/* A.R.B Roofing: "Ridge Line". Tokens and rules live in DESIGN.md. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-italic.woff2') format('woff2');
}

:root {
  --ridge: #F3F5F9;
  --sheet: #FFFFFF;
  --navy: #0B2463;
  --navy-deep: #03154F;
  --royal: #1D57A5;
  --royal-hi: #2A6BC4;
  --black: #0A0B0E;
  --steel: #5A6478;
  --hair: #D5DCE8;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --section: clamp(56px, 8vw, 116px);
  --header-h: 76px;
  --cut: 12px;

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 90px; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--ridge);
  color: var(--navy);
  font-family: var(--body);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(29, 87, 165, 0.18); }
::selection { background: var(--royal); color: #fff; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--black); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2.05rem, 1.3rem + 2.9vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  padding-bottom: 0.08em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; }

/* ---------- Buttons: speed-stripe slab, colour swap only ---------- */
.btn {
  --bg: var(--black);
  --fg: #fff;
  --s: var(--royal);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px 0 20px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-stretch: 108%;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
/* The logo's three speed stripes lead every label. */
.btn::before {
  content: ""; flex: none; margin-right: 4px;
  width: 26px; height: 16px;
  background: linear-gradient(180deg, var(--s) 0 3.5px, transparent 3.5px 6.25px, var(--s) 6.25px 9.75px, transparent 9.75px 12.5px, var(--s) 12.5px 16px);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.btn:hover { --bg: var(--royal); --s: #fff; }
.btn--royal { --bg: var(--royal); --s: #fff; }
.btn--royal:hover { --bg: var(--black); --s: var(--royal); }
.btn--line { --fg: var(--navy); --s: var(--navy); background: transparent; border: 2px solid var(--navy); }
.btn--line:hover { background: var(--royal); border-color: var(--royal); --fg: #fff; --s: #fff; }
.btn--lg { min-height: 56px; font-size: 1.04rem; }
.btn--wide { width: 100%; justify-content: center; }
.btn__icon { flex: none; width: 18px; height: 18px; }
/* The header call button carries a phone icon instead of the stripes. */
.header-call::before { display: none; }
.btn__num { font-weight: 500; opacity: 0.82; font-stretch: 100%; }
.btn:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; --bg: var(--royal); --fg: #fff; --s: #fff; }
.btn--line:focus-visible { background: var(--royal); border-color: var(--royal); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--header-h);
  background: rgba(243, 245, 249, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform 420ms var(--ease-out), border-color 300ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hair); }
.site-header.is-hidden { transform: translateY(-105%); }
.site-header__inner {
  height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand img { width: 64px; height: auto; }
.nav {
  /* Centred on the viewport: the full-width fixed header is the containing block. */
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  display: flex; gap: clamp(18px, 2.4vw, 36px);
}
.nav a {
  font-weight: 600; font-size: 0.97rem; text-decoration: none; color: var(--navy);
  padding: 8px 0; position: relative;
  transition: color 220ms ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--royal); transform: scaleX(0); transform-origin: right;
  transition: transform 320ms var(--ease-out);
}
.nav a:hover { color: var(--royal); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }
.header-call__num { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 700px;
  max-height: 1080px;
  overflow: hidden;
}
.hero__roof {
  --ey: 81; --px: 80; --py: 38; --ry: 56;
  position: absolute; inset: 0;
  container-type: size;
}
.hero__photo {
  position: absolute; inset: 0;
  clip-path: polygon(0 calc(var(--ey) * 1%), calc(var(--px) * 1%) calc(var(--py) * 1%), 100% calc(var(--ry) * 1%), 100% 100%, 0 100%);
  overflow: hidden;
  background: #9fb6d6;
}
.hero__photo picture { position: absolute; inset: 0; }
.hero__photo img {
  position: absolute; left: 0; top: 20%;
  width: 100%; height: 92%;
  object-fit: cover; object-position: 50% 30%;
  will-change: transform;
}
.hero__line {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.hero__line polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: miter; stroke-miterlimit: 10; }
.hero__line--black polyline { stroke: var(--black); stroke-width: 9px; }
.hero__line--royal { translate: 0 -17px; }
.hero__line--royal polyline { stroke: var(--royal); stroke-width: 8px; }
.hero__roofer {
  --t: 0.76;
  position: absolute;
  left: calc(var(--px) * var(--t) * 1%);
  top: calc((var(--ey) - var(--t) * (var(--ey) - var(--py))) * 1%);
  width: clamp(84px, 8.6cqw, 150px);
  translate: -50% calc(-100% - 12px);
  transform-origin: 50% 100%;
  rotate: calc(12.4deg - atan2(calc((var(--ey) - var(--py)) * 1cqh), calc(var(--px) * 1cqw)));
  color: var(--black);
}
.hero__roofer img { width: 100%; }
.hero__copy {
  position: absolute; z-index: 2;
  left: 0; right: 0; top: calc(var(--header-h) + clamp(20px, 5svh, 64px));
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
}
.hero__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(2.5rem, min(1.2rem + 4.3vw, 7.6svh), 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.hero__title .line { display: block; overflow: hidden; padding: 0 0.08em 0.1em 0; margin-bottom: -0.1em; }
.hero__title .line > span { display: inline-block; white-space: nowrap; }
.hero__sub { margin-top: clamp(14px, 2svh, 22px); max-width: 33rem; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.5; color: #24345f; }
.hero__ctas { margin-top: clamp(18px, 3svh, 30px); display: flex; flex-wrap: wrap; gap: 12px 14px; }
.hero__card {
  position: absolute; z-index: 3;
  left: var(--gutter); bottom: clamp(20px, 5svh, 52px);
  width: clamp(168px, 17vw, 260px);
  background: var(--sheet);
  padding: 8px 8px 12px;
  rotate: -3deg;
  box-shadow: 0 30px 60px -30px rgba(11, 36, 99, 0.55);
}
.hero__card-img { overflow: hidden; aspect-ratio: 4 / 3; }
.hero__card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero__card figcaption { padding: 9px 4px 0; font-size: 0.82rem; line-height: 1.35; color: var(--steel); }
.hero__card strong { display: block; color: var(--navy); font-style: italic; font-stretch: 112%; font-size: 0.98rem; }

/* Hero intro: CSS keyframes on first paint (never waits on JS). */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: wipeUp 1100ms var(--ease-out) 120ms both; }
  .hero__photo img { animation: settle 1600ms var(--ease-out) 120ms both; }
  .hero__line { animation: draw 1100ms var(--ease-io) 60ms both; }
  .hero__line--royal { animation-delay: 200ms; }
  .hero__roofer img { animation: dropIn 700ms var(--ease-out) 900ms both; }
  .hero__title .line > span { animation: rise 800ms var(--ease-out) both; }
  .hero__title .line:nth-child(1) > span { animation-delay: 160ms; }
  .hero__title .line:nth-child(2) > span { animation-delay: 250ms; }
  .hero__sub { animation: fadeUp 800ms var(--ease-out) 420ms both; }
  .hero__ctas { animation: fadeUp 800ms var(--ease-out) 520ms both; }
  .hero__card { animation: cardIn 900ms var(--ease-out) 760ms both; }
}
@keyframes wipeUp { from { clip-path: polygon(0 100%, calc(var(--px) * 1%) 100%, 100% 100%, 100% 100%, 0 100%); } }
@keyframes settle { from { scale: 1.12; } }
@keyframes draw { from { clip-path: inset(-40px 100% -40px 0); } to { clip-path: inset(-40px 0 -40px 0); } }
@keyframes dropIn { from { translate: 0 -46px; opacity: 0; } }
@keyframes rise { from { translate: 0 105%; } }
@keyframes fadeUp { from { translate: 0 18px; opacity: 0; } }
@keyframes cardIn { from { translate: 0 40px; opacity: 0; rotate: 4deg; } }

/* ---------- Banner marquee (the logo's ROOFING banner) ---------- */
.banner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  background: var(--black); color: #fff;
  height: 64px;
  overflow: hidden;
}
.cta__stripes, .tile__stripes {
  flex: none; display: grid; gap: 5px; width: clamp(40px, 7vw, 110px); padding: 0 0 0 0; position: relative; z-index: 2;
}
.cta__stripes i, .tile__stripes i { display: block; height: 6px; background: var(--royal); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.banner__track { flex: 1; display: flex; min-width: 0; overflow: hidden; }
.banner__list {
  flex: none; display: flex; align-items: center;
  animation: marquee 38s linear infinite;
}
.banner__list li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-style: italic; font-weight: 800; font-stretch: 118%;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); letter-spacing: 0.01em; white-space: nowrap;
}
.banner__list li::after {
  content: ""; width: 26px; height: 14px; flex: none;
  background: var(--royal);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 78% 100%, 50% 42%, 22% 100%);
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__copy { display: grid; gap: 22px; max-width: 44rem; }
.about__copy p:not(.lead) { color: #3a4766; max-width: 38rem; }
.about__card { background: var(--sheet); border: 1px solid var(--hair); }
.about__plate { padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px) 18px; display: grid; justify-items: center; gap: 6px; border-bottom: 1px solid var(--hair); }
.about__plate img { width: min(300px, 78%); }
.about__name { font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.creds div { padding: 16px 20px; }
.creds div:nth-child(odd) { border-right: 1px solid var(--hair); }
.creds div:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
.creds dt { font-size: 0.8rem; color: var(--steel); }
.creds dd { margin: 2px 0 0; font-weight: 700; font-stretch: 108%; font-size: 1.02rem; }

/* ---------- Services bento ---------- */
.services { background: var(--sheet); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section-head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head__sub, .jobs__sub { color: var(--steel); font-size: 1.05rem; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(220px, auto)) auto;
  grid-template-areas:
    "a a b b"
    "a a c d"
    "e f c g"
    "h h h g";
  gap: 14px;
}
.tile { position: relative; display: flex; flex-direction: column; background: var(--ridge); border: 1px solid var(--hair); padding: 8px; min-width: 0; }
.tile--a { grid-area: a; } .tile--b { grid-area: b; } .tile--c { grid-area: c; } .tile--d { grid-area: d; }
.tile--e { grid-area: e; } .tile--f { grid-area: f; } .tile--g { grid-area: g; } .tile--h { grid-area: h; }
.tile__img { position: relative; flex: 1; min-height: 150px; overflow: hidden; clip-path: polygon(0 18px, 18px 0, 100% 0, 100% 100%, 0 100%); }
.tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__img img { scale: 1.04; } }
.tile__text { padding: 14px 8px 6px; }
.tile h3 { font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.22rem; line-height: 1.15; letter-spacing: -0.01em; }
.tile p { margin-top: 4px; font-size: 0.95rem; line-height: 1.45; color: #46526e; }
.tile--a h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.tile--solid { background: var(--navy); color: #fff; border-color: var(--navy); justify-content: flex-end; padding: 22px 20px; }
.tile--solid p { color: #c9d4ec; }
.tile__mark { width: 84px; color: #fff; margin-bottom: auto; }
.tile--stripe { background: var(--black); color: #fff; border-color: var(--black); flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 0 22px 20px; gap: 20px; }
.tile--stripe p { color: #c8cdd8; }
.tile--stripe .tile__stripes { width: clamp(70px, 12vw, 160px); }
.tile--stripe .tile__stripes i { height: 9px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Recent jobs (pinned horizontal) ---------- */
.jobs { position: relative; background: var(--ridge); }
.jobs__pin { height: 100svh; min-height: 520px; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3.4svh, 36px); padding: clamp(18px, 4svh, 48px) 0; overflow: hidden; }
.jobs__head { display: grid; gap: 8px; }
.jobs__head .display { font-size: clamp(1.8rem, 1rem + 3.6svh, 3.4rem); }
.jobs__viewport { overflow: hidden; padding: 16px 0; }
.jobs__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.job {
  --h: clamp(220px, 44svh, 440px);
  flex: none;
  display: flex; flex-direction: column;
  background: var(--sheet); border: 1px solid var(--hair);
  padding: 10px 10px 16px;
  width: calc(var(--h) * 1.28);
}
.job--pair { width: calc(var(--h) * 1.9); }
.job__frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; height: var(--h); }
.job__frame { position: relative; height: var(--h); overflow: hidden; background: var(--hair); }
.job__frames .job__frame { height: 100%; }
.job__frame img { width: 100%; height: 100%; object-fit: cover; }
.job__frame figcaption {
  position: absolute; left: 0; bottom: 12px;
  background: var(--black); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 5px 16px 5px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.job__frames .job__frame + .job__frame figcaption { background: var(--royal); }
/* Gable-topped frames: each job photo is cut like the logo's house window. */
.job__frame--gable { clip-path: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%); }
.job__frame--tall img { object-position: 50% 60%; }
.job__text { padding: 14px 6px 0; display: grid; gap: 4px; }
.job__place { font-style: italic; font-weight: 800; font-stretch: 115%; font-size: clamp(1.2rem, 0.8rem + 1.6svh, 1.6rem); line-height: 1.1; }
.job__text p { color: #46526e; font-size: 0.97rem; line-height: 1.45; max-width: 34ch; }
.job--note { background: var(--navy); border-color: var(--navy); color: #fff; justify-content: center; }
.job__note { padding: 24px; display: grid; gap: 12px; justify-items: start; }
.job__note svg { width: 96px; }
.job__note p { color: #c9d4ec; }
.job__note .btn { margin-top: 8px; }

/* ---------- Reviews ---------- */
.reviews__title { margin-bottom: clamp(28px, 4vw, 48px); }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px; }
.quote { background: var(--sheet); border: 1px solid var(--hair); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote blockquote p { font-size: 1.12rem; line-height: 1.55; color: var(--navy); }
.quote--lead { grid-row: span 2; background: var(--navy); border-color: var(--navy); position: relative; overflow: hidden; }
.quote--lead blockquote p { color: #fff; font-style: italic; font-weight: 700; font-stretch: 108%; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.15rem); line-height: 1.3; letter-spacing: -0.01em; }
.quote__photo { margin: 6px calc(clamp(24px, 3vw, 40px) * -1) calc(clamp(24px, 3vw, 40px) * -1); aspect-ratio: 16 / 7; overflow: hidden; clip-path: polygon(0 22%, 62% 0, 100% 16%, 100% 100%, 0 100%); }
.quote__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.quote--lead::before {
  content: ""; position: absolute; right: -40px; top: -30px; width: 260px; height: 130px;
  border-top: 14px solid var(--royal); border-right: 0;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  opacity: 0.0;
}
.quote figcaption { display: grid; gap: 2px; font-size: 0.9rem; color: var(--steel); }
.quote figcaption strong { color: var(--navy); font-size: 1rem; }
.quote--lead figcaption, .quote--lead figcaption strong { color: #fff; }
.quote--lead figcaption span { color: #b9c6e4; }
.quote__intro { font-weight: 700; color: var(--steel); font-size: 0.95rem; margin-bottom: 14px; }
.words { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.words li {
  font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  padding: 6px 18px 7px 14px; background: var(--ridge); border: 1px solid var(--hair);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.quote--words figcaption a { color: var(--royal); font-weight: 700; text-underline-offset: 4px; }
.quote--words figcaption a:hover { color: var(--navy); }

/* ---------- Area + map ---------- */
.area { background: var(--sheet); border-top: 1px solid var(--hair); }
.area__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.area__copy { display: grid; gap: clamp(24px, 3vw, 40px); align-content: start; }
.area__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--black); }
.fact { padding: 20px 20px 4px 0; display: grid; gap: 8px; align-content: start; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--hair); }
.fact h3 { font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.3rem; }
.fact p { color: #46526e; font-size: 0.98rem; }
.fact__link { color: var(--royal); font-weight: 700; text-underline-offset: 4px; }
.fact__link:hover { color: var(--navy); }
.area__map { min-height: 380px; }
.map { position: relative; height: 100%; min-height: 380px; border: 8px solid var(--ridge); outline: 1px solid var(--hair); background: var(--ridge); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__shield { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; }
.map__shield span { background: var(--black); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 6px 12px; opacity: 0; transition: opacity 220ms ease; }
.map__shield:hover span, .map__shield:focus-visible span { opacity: 1; }
.map.is-active .map__shield { display: none; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 3px solid var(--black); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0;
  font-weight: 700; font-stretch: 106%; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  transition: color 220ms ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--royal); }
.faq__item summary i {
  flex: none; width: 34px; height: 34px; position: relative;
  border: 2px solid currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  border: 0; background: var(--navy);
  transition: background-color 220ms ease, rotate 420ms var(--ease-io);
}
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; translate: -50% -50%; }
.faq__item summary i::after { rotate: 90deg; transition: rotate 420ms var(--ease-io); }
.faq__item[open] summary i { background: var(--royal); }
.faq__item[open] summary i::after { rotate: 0deg; }
.faq__answer { overflow: hidden; }
.faq__answer p { padding: 0 52px 22px 0; color: #3e4a66; max-width: 60ch; }

/* ---------- CTA banner ---------- */
.cta { position: relative; background: var(--black); color: #fff; display: flex; align-items: center; overflow: hidden; }
.cta__stripes { width: clamp(28px, 8vw, 140px); gap: 8px; }
.cta__stripes i { height: 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.cta__stripes--r i { clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
.cta__inner { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px 48px; align-items: center; }
.cta__title { font-style: italic; font-weight: 800; font-stretch: 115%; font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.3rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; padding-bottom: 0.08em; }
.cta__actions { display: grid; gap: 18px; justify-items: start; }
.cta__phone { display: grid; text-decoration: none; font-style: italic; font-weight: 800; font-stretch: 118%; font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; color: #fff; transition: color 220ms ease; }
.cta__phone span { font-size: 0.95rem; font-style: normal; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: #9fb4dc; margin-bottom: 8px; }
.cta__phone:hover { color: #6f9be0; }

/* ---------- Footer ---------- */
.footer { background: var(--ridge); padding-top: clamp(48px, 6vw, 88px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__brand { display: grid; gap: 12px; align-content: start; }
.footer__brand img { width: 120px; }
.footer__brand p { color: var(--steel); font-size: 0.95rem; max-width: 24ch; }
.footer__title { font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.5rem; color: var(--royal); margin-bottom: 14px; letter-spacing: -0.01em; }
.footer__col li + li { margin-top: 8px; }
.footer__col a, .footer__plain li { font-size: 0.95rem; color: #2f3c5e; text-decoration: none; overflow-wrap: anywhere; }
.footer__col a { transition: color 220ms ease; }
.footer__col a:hover { color: var(--royal); }
/* Wordmark sinks into the bottom edge of the page: cropped just above the full stops. */
.footer__mark { padding: clamp(20px, 3vw, 40px) var(--gutter) 0; }
.footer__mark img { width: 100%; max-width: 1600px; margin: 0 auto; aspect-ratio: 1756 / 318; object-fit: cover; object-position: 50% 0; opacity: 0.95; }
.footer__legal { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--hair); padding-top: 18px; }
.footer__legal p { font-size: 0.88rem; color: var(--steel); }
.footer__legal a { color: var(--royal); font-weight: 600; text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 35; pointer-events: none; overscroll-behavior: contain; }
.mobile-menu[hidden] { display: block; visibility: hidden; }
.mobile-menu__panel {
  position: absolute; inset: 0;
  background: var(--ridge);
  padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 500ms var(--ease-io);
}
.mobile-menu__nav { display: grid; gap: 4px; }
.mobile-menu__nav a { display: block; overflow: hidden; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.mobile-menu__nav a span { display: block; font-style: italic; font-weight: 800; font-stretch: 115%; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; translate: 0 110%; transition: translate 500ms var(--ease-io); }
.mobile-menu__foot { display: grid; gap: 14px; opacity: 0; translate: 0 16px; transition: opacity 500ms var(--ease-io), translate 500ms var(--ease-io); }
.mobile-menu__mail { color: var(--royal); font-weight: 600; text-align: center; }
.mobile-menu.is-open { pointer-events: auto; }
.mobile-menu.is-open .mobile-menu__panel { clip-path: inset(0 0 0 0); }
.mobile-menu.is-open .mobile-menu__nav a span { translate: 0 0; }
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; translate: 0 0; }
.mobile-menu__nav a:nth-child(1) span { transition-delay: 60ms; }
.mobile-menu__nav a:nth-child(2) span { transition-delay: 100ms; }
.mobile-menu__nav a:nth-child(3) span { transition-delay: 140ms; }
.mobile-menu__nav a:nth-child(4) span { transition-delay: 180ms; }
.mobile-menu__nav a:nth-child(5) span { transition-delay: 220ms; }
.mobile-menu__foot { transition-delay: 240ms; }
/* Closing mirrors opening: same curve and duration, reversed order. */
.mobile-menu:not(.is-open) .mobile-menu__panel { transition-delay: 160ms; }
.mobile-menu:not(.is-open) .mobile-menu__nav a:nth-child(5) span { transition-delay: 0ms; }
.mobile-menu:not(.is-open) .mobile-menu__nav a:nth-child(4) span { transition-delay: 30ms; }
.mobile-menu:not(.is-open) .mobile-menu__nav a:nth-child(3) span { transition-delay: 60ms; }
.mobile-menu:not(.is-open) .mobile-menu__nav a:nth-child(2) span { transition-delay: 90ms; }
.mobile-menu:not(.is-open) .mobile-menu__nav a:nth-child(1) span { transition-delay: 120ms; }
.mobile-menu:not(.is-open) .mobile-menu__foot { transition-delay: 0ms; }

/* ---------- Reveal (JS adds .has-motion; content is visible without JS) ---------- */
.has-motion [data-reveal], .has-motion [data-reveal-item] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a { font-size: 0.92rem; }
}
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  /* Phones: the number itself sits in the header, next to the menu. */
  .header-call { --bg: var(--royal); margin-left: auto; margin-right: 8px; min-height: 48px; padding: 0 14px; gap: 8px; font-size: 0.95rem; }
  .header-call:hover { --bg: var(--black); }
  .header-call__label { display: none; }
  .header-call__num { display: inline; font-variant-numeric: tabular-nums; }
  .brand img { width: 54px; }
  .menu-toggle {
    display: grid; place-items: center;
    width: 48px; height: 48px; border: 0; background: var(--black); color: #fff; cursor: pointer;
  }
  /* Menu icon: the logo's three speed stripes, folding into an X when open. */
  .menu-toggle__bars { display: grid; gap: 4px; width: 26px; }
  .menu-toggle__bars i {
    display: block; height: 4px; background: #fff;
    clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
    transition: rotate 420ms var(--ease-io), translate 420ms var(--ease-io), opacity 420ms var(--ease-io), clip-path 420ms var(--ease-io), background-color 420ms var(--ease-io);
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars i { background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { translate: 0 8px; rotate: 45deg; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { translate: 0 -8px; rotate: -45deg; }

  .hero { height: auto; min-height: 0; max-height: none; overflow: hidden; display: flex; flex-direction: column; }
  .hero__copy { position: relative; top: auto; padding-top: calc(var(--header-h) + 28px); }
  .hero__title { font-size: clamp(2.1rem, 9.6vw, 3.4rem); }
  .hero__title .line > span { white-space: normal; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }

  /* Phones: hero copy and every main section heading + description centred. */
  .hero__copy, .about__copy, .section-head, .jobs__head, .reviews__title, .area__copy > .display, .faq__grid > .display, .cta__inner { text-align: center; }
  .hero__sub, .section-head, .about__copy p { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .about__copy, .section-head, .cta__inner, .cta__actions { justify-items: center; }
  .cta__phone { justify-items: center; }
  .hero__roof { --ey: 30; --px: 68; --py: 4; --ry: 16; position: relative; inset: auto; height: clamp(340px, 52svh, 520px); margin-top: clamp(72px, 15vw, 116px); order: 2; }
  .hero__photo img { top: -10%; height: 116%; }
  .hero__roofer { --t: 0.78; width: clamp(64px, 19cqw, 110px); }
  .hero__card { width: clamp(128px, 36vw, 190px); bottom: 18px; padding: 6px 6px 9px; }
  .hero__card figcaption { font-size: 0.74rem; }
  .hero__card strong { font-size: 0.86rem; }

  .about__grid, .area__grid, .faq__grid, .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-template-areas:
      "a a"
      "b b"
      "c d"
      "c e"
      "f g"
      "h h";
  }
  .tile__img { min-height: 160px; }
  .tile--a .tile__img, .tile--b .tile__img { aspect-ratio: 4 / 3; flex: none; }
  .tile--c .tile__img { min-height: 300px; }
  .tile h3 { font-size: 1.08rem; }
  .tile--solid { padding: 18px 14px; }
  .tile__mark { width: 64px; margin-bottom: 18px; }
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .quote--lead { grid-row: auto; }
  .area__facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; justify-items: center; }
  /* Phones: footer centred to match the section headings. */
  .footer__grid, .footer__legal { text-align: center; }
  .footer__brand p { margin-inline: auto; }
  .job { --h: clamp(190px, 38svh, 340px); width: min(calc(var(--h) * 1.15), 78vw); }
  .job--pair { width: min(calc(var(--h) * 1.7), 88vw); }
}
@media (max-width: 359px) {
  .header-call { padding: 0 10px; font-size: 0.88rem; }
  .header-call .btn__icon { display: none; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d" "e" "f" "g" "h"; }
  .tile__img { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
  .tile--c .tile__img { aspect-ratio: 4 / 5; min-height: 0; }
  .tile--f .tile__img { aspect-ratio: 4 / 3; }
  .tile--stripe { flex-direction: column; align-items: flex-start; padding: 20px; }
  .tile--stripe .tile__stripes { display: none; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .creds { grid-template-columns: minmax(0, 1fr); }
  .creds div:nth-child(odd) { border-right: 0; }
  .creds div:not(:last-child) { border-bottom: 1px solid var(--hair); }
  .cta__stripes { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .banner__list { animation: none; }
  .banner__track { overflow-x: auto; }
  .mobile-menu__panel, .mobile-menu__nav a span, .mobile-menu__foot { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .tile__img img { transition: none; }
}
