/* ============================================================================
   Summit Ridge Roofing - style.css
   "Rugged Premium": deep charcoal, weathered steel, roofing red.
   Mobile-first. All brand values live in :root so the skeleton rebrands fast.
   ========================================================================== */

:root {
  /* Palette (locked spec) */
  --bg:        #1A1D21;
  --bg-2:      #22262B;
  --slate:     #3A4048;
  --text:      #EDEFF1;
  --text-dim:  #9BA3AB;
  --accent:    #C8362F;
  --accent-2:  #E8743B;

  /* Derived */
  --bg-3:      #2A2F35;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --shadow:    0 18px 50px rgba(0,0,0,.45);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.35);

  /* Type */
  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1200px;
  --maxw-bleed: 1800px;   /* bleed cap: assets are 1672px native, never upscale past this */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 76px;

  /* Vertical rhythm: ONE value for every section, top equals bottom (round 2).
     The old tight/base/loose/xloose modifiers still exist in the markup but all
     resolve to the same rhythm, so no section opens with an oversized gap. */
  --pad-section: clamp(4rem, 7.5vw, 6.75rem);
  --head-gap-section: clamp(2.5rem, 4.5vw, 3.75rem);
  --pad-tight:  var(--pad-section);
  --pad-base:   var(--pad-section);
  --pad-loose:  var(--pad-section);
  --pad-xloose: var(--pad-section);

  /* Motion. Nothing on this site runs at a default duration.
     --ease-lay  : heavy decelerate, for things arriving under their own weight
     --ease-seat : slower return, so material settles rather than snaps back */
  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-lay:  cubic-bezier(.16,.84,.44,1);
  --ease-seat: cubic-bezier(.33,1,.68,1);
  --dur-lift:  220ms;   /* raise: quick */
  --dur-seat:  480ms;   /* return: slow */
  --dur-drift: 900ms;   /* image drift under a hovered tile */
  --dur-box:   260ms;
  --dur-box-out: 420ms;
  --dur-lightbox: 320ms;
}

/* --- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* `clip`, not `hidden`: overflow-x:hidden turns the body into a scroll
     container, which silently disables position:sticky for every descendant.
     `clip` guards against horizontal overflow without that side effect. */
  overflow-x: clip;
  /* subtle depth instead of flat black */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(200,54,47,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(58,64,72,.30), transparent 55%);
  background-attachment: fixed;
}

/* fine grain texture overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- Typography --------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }

/* Section openers carry real display weight. The hero still leads at 5.5rem,
   but the gap below it is now a scale rather than a cliff. */
.section-title {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--accent-2);
  margin-bottom: 1.15rem;
  display: block;
}
.eyebrow--light { color: #ffd9c2; }

.section-sub {
  text-wrap: balance;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  max-width: 60ch;
  margin-top: 1.5rem;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: #fff;
  /* Weighted, asymmetric: lifts on --ease-lay, returns slower on --ease-seat. */
  transition:
    background var(--dur-box-out) var(--ease-seat),
    transform var(--dur-box-out) var(--ease-seat),
    box-shadow var(--dur-box-out) var(--ease-seat),
    border-color var(--dur-box-out) var(--ease-seat);
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible {
  transition:
    background var(--dur-box) var(--ease-lay),
    transform var(--dur-box) var(--ease-lay),
    box-shadow var(--dur-box) var(--ease-lay),
    border-color var(--dur-box) var(--ease-lay);
}
.btn--accent {
  background: var(--accent);
  box-shadow: 0 8px 22px -6px rgba(200,54,47,.42);
}
.btn--accent:hover, .btn--accent:focus-visible {
  background: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -8px rgba(232,116,59,.52);
}
.btn--accent:active { transform: translateY(-1px); transition-duration: 90ms; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--accent-2); color: #fff; transform: translateY(-3px);
  box-shadow: 0 16px 34px -12px rgba(0,0,0,.6);
}
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(20,22,25,0);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(20,22,25,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  background:
    linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  clip-path: polygon(50% 0, 100% 55%, 82% 55%, 82% 100%, 18% 100%, 18% 55%, 0 55%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; }
.brand-tagline { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; }

.nav-list { display: flex; gap: 1.6rem; }
.nav-list a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: .25rem 0;
  transition: color .2s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 380ms var(--ease-lay);
}
.nav-list a:not(:hover)::after { transform-origin: right; transition-duration: 480ms; transition-timing-function: var(--ease-seat); }
.nav-list a:hover, .nav-list a.is-active { color: var(--text); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }

.header-cta { padding: .65rem 1.25rem; font-size: .85rem; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .4rem; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drops BELOW the header rather than sitting inside its flex row. Previously
   this panel was a sibling flex item, so it was laid out beside the brand:
   it squeezed the wordmark and spilled over the hero at small widths.
   The explicit [hidden] rule matters too, because an author `display` value
   beats the UA rule for the hidden attribute. */
.mobile-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(20,22,25,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.5rem;
  display: flex; flex-direction: column; gap: .25rem;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-list a {
  display: block; padding: .9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--text);
}
.mobile-nav .btn { margin-top: 1rem; }

/* --- Sections ----------------------------------------------------------- *
   REUSABLE LAYOUT MODIFIERS.
   Section rhythm is composed from these, never hand-tuned per section, so the
   skeleton still rebrands (med spa / plumbing / HVAC / dental) by re-dealing
   the same modifiers in a different order.

     rhythm  : --tight | --base | --loose | --xloose   (vertical air)
     width   : --narrow | --mid | --bleed              (horizontal treatment)
     shape   : --split                                 (uneven two-column)

   House rule: no more than two consecutive sections may share a treatment.
   Current order is band / standard / split / standard / bleed / narrow /
   contained / split, so the longest run of any one treatment is 1.
 * ------------------------------------------------------------------------ */
.section { position: relative; padding: var(--pad-base) 0; z-index: 2; }

/* rhythm */
.section--tight  { padding-block: var(--pad-tight); }
.section--base   { padding-block: var(--pad-base); }
.section--loose  { padding-block: var(--pad-loose); }
.section--xloose { padding-block: var(--pad-xloose); }

/* width: each just re-points the container cap, so nesting stays predictable */
.section--narrow { --maxw: 980px; }
.section--mid    { --maxw: 1340px; }
.section--wide   { --maxw: 1560px; }
.section--bleed  { --maxw: var(--maxw-bleed); }
/* Bleed runs its content to the viewport edge; only text regains a gutter. */
.section--bleed > .container { padding-inline: 0; }
.section--bleed .section-head { padding-inline: var(--gutter); }

/* Grid children default to min-width:auto, which refuses to shrink past the
   content's min-content width and silently blows out the page on narrow
   screens. Split columns must be allowed to shrink. */
.section--split > .container > * { min-width: 0; }

.section-head {
  max-width: 860px;
  margin: 0 auto var(--head-gap-section);
  text-align: center;
}

.section-head--left { text-align: left; margin-inline: 0; }
/* For openers that are headline-only (no sub-paragraph) and want to hold one
   line at full display size. The 860px default is a reading measure for body
   copy; a display line does not need it and gets clipped into a wrap by it. */
.section-head--wide { max-width: none; }
.section-head .section-sub { margin-inline: auto; }
.section-head--left .section-sub { margin-inline: 0; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; }
.hero-pin {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--bg) center/cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,22,25,.55) 0%, rgba(20,22,25,.25) 35%, rgba(20,22,25,.78) 100%),
    linear-gradient(90deg, rgba(20,22,25,.75) 0%, transparent 55%);
}
.hero-content { position: relative; z-index: 2; max-width: 1060px; }
.hero-eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; font-weight: 600;
  color: var(--text); opacity: .9; margin-bottom: 1.1rem;
  display: inline-block; padding: .4rem .85rem;
  border: 1px solid var(--line-2); border-radius: 100px;
  background: rgba(0,0,0,.25);
}
.hero-headline {
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  text-transform: uppercase;
  max-width: none;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero-sub {
  text-wrap: pretty;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: #d7dbdf;
  max-width: 54ch;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-scrollhint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em; font-size: .68rem;
  color: var(--text-dim);
}
.hero-scrollhint-line { width: 1px; height: 42px; background: linear-gradient(var(--accent-2), transparent); position: relative; overflow: hidden; }
.hero-scrollhint-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--text);
  animation: scrollPulse 1.8s var(--ease) infinite;
}
@keyframes scrollPulse { 0% { top: -50%; } 100% { top: 120%; } }

/* =========================================================================
   TRUST STRIP  (four centered cards under the hero)
   ========================================================================= */
/* A structural band bolted across the page (1560 cap). Each claim is its own
   small card: icon on top in a pitched badge, title and line centered. */
.trust {
  position: relative; z-index: 3;
  background: linear-gradient(180deg, var(--bg-2), #1E2227);
  border-block: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem;
}
.trust-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .85rem;
  min-width: 0;
  padding: 1.5rem 1rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  overflow: hidden;
}
/* a single warm hairline along the top edge, fading out at both ends */
.trust-item::before {
  content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,116,59,.55), transparent);
}
.trust-icon {
  position: relative;
  flex: none; width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(232,116,59,.18), rgba(200,54,47,.04) 60%), var(--bg);
  border: 1px solid rgba(232,116,59,.28);
  color: var(--accent-2);
  box-shadow: 0 10px 24px -12px rgba(200,54,47,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.trust-icon svg { width: 26px; height: 26px; }
.trust-copy { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.trust-label { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1.02rem; line-height: 1.2; }
.trust-sub { color: var(--text-dim); font-size: .85rem; line-height: 1.4; }

/* =========================================================================
   SERVICES  (Pattern A: Index & Stage)
   ========================================================================= */
.services { overflow: clip; }
/* Depth: topographic contour lines out of the top-left corner (Hill Country). */
.depth-contours {
  position: absolute; left: 0; top: 0;
  width: min(520px, 60vw); height: auto;
  color: var(--text); opacity: .07;
  pointer-events: none; z-index: 0;
}
.services > .container { position: relative; z-index: 1; }
/* Round 2: the Index & Stage runs wider than the reading column so the four
   services (list and photo stage) read big. The opener keeps its measure. */
.services { --maxw: 1480px; }

.srv {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
.srv-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-2);
}
.srv-item {
  all: unset; box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem 48px minmax(0, 1fr) 22px;
  column-gap: .85rem;
  align-items: center;
  padding: 1.15rem 1rem;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  isolation: isolate;
}
/* The active row is a raised plate, not a bar: a soft panel fades in behind it. */
.srv-item::before {
  content: ""; position: absolute; inset: 4px 0; z-index: -1;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(200,54,47,.13), rgba(200,54,47,.03) 70%, transparent),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  box-shadow: inset 0 0 0 1px rgba(232,116,59,.16);
  opacity: 0; transform: scaleY(.9);
  transition: opacity 420ms var(--ease-seat), transform 420ms var(--ease-seat);
}
.srv-item[aria-selected="true"]::before { opacity: 1; transform: none; transition-timing-function: var(--ease-lay); }
.srv-num {
  font-family: var(--font-head); font-weight: 500; font-size: .85rem; letter-spacing: .12em;
  color: var(--slate); transition: color .3s var(--ease);
}
.srv-ic {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02);
  color: var(--text-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.srv-ic svg { width: 24px; height: 24px; }
.srv-t {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.6rem); text-wrap: balance;
  line-height: 1.15; text-transform: uppercase; letter-spacing: .01em;
  color: var(--text-dim);
  transition: color .3s var(--ease);
}
.srv-arr { width: 22px; height: 22px; color: var(--slate); transition: color .3s var(--ease), transform 420ms var(--ease-seat); }
.srv-arr svg { width: 100%; height: 100%; display: block; }
/* Description opens under the title (grid-rows 0fr -> 1fr, no max-height guess). */
.srv-d {
  grid-column: 3 / 5;
  display: grid; grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 480ms var(--ease-seat), opacity 360ms var(--ease-seat);
}
.srv-d > span { overflow: hidden; color: var(--text-dim); font-size: 1.02rem; line-height: 1.62; text-wrap: pretty; max-width: 52ch; }
.srv-item[aria-selected="true"] .srv-d { grid-template-rows: 1fr; opacity: 1; }
.srv-item[aria-selected="true"] .srv-d > span { padding-top: .55rem; }

.srv-item:hover .srv-t, .srv-item[aria-selected="true"] .srv-t { color: var(--text); }
.srv-item[aria-selected="true"] .srv-num { color: var(--accent-2); }
.srv-item[aria-selected="true"] .srv-ic {
  color: #fff;
  border-color: rgba(232,116,59,.5);
  background: linear-gradient(150deg, var(--accent), #9E2A24);
  box-shadow: 0 12px 26px -12px rgba(200,54,47,.8), inset 0 1px 0 rgba(255,255,255,.18);
}
.srv-item[aria-selected="true"] .srv-arr { color: var(--accent-2); transform: translateX(4px); }
.srv-item:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 12px; }

/* Stage: one photo at full size, framed with drafting corner marks. */
.srv-stage {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.9), 0 0 0 1px var(--line);
  order: -1;
}
.srv-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity 700ms var(--ease-seat), transform 1400ms var(--ease-seat);
}
.srv-stage img.on { opacity: 1; transform: scale(1); }
.srv-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,22,25,.35) 0%, transparent 28%, transparent 52%, rgba(14,15,18,.82) 100%);
}
.srv-corner {
  position: absolute; z-index: 2; width: 22px; height: 22px; pointer-events: none;
  border: 0 solid rgba(255,255,255,.55);
}
.srv-corner--tl { top: 16px; left: 16px; border-top-width: 1.5px; border-left-width: 1.5px; }
.srv-corner--tr { top: 16px; right: 16px; border-top-width: 1.5px; border-right-width: 1.5px; }
.srv-corner--bl { bottom: 16px; left: 16px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.srv-corner--br { bottom: 16px; right: 16px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.srv-count {
  position: absolute; z-index: 2; top: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .2em; color: rgba(237,239,241,.72);
  padding: .3rem .75rem; border-radius: 100px;
  background: rgba(20,22,25,.4); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.srv-count b { color: #fff; font-weight: 600; }
.srv-cap {
  position: absolute; z-index: 2; left: 50%; bottom: clamp(1rem, 2.4vw, 1.75rem);
  transform: translateX(-50%);
  width: min(88%, 520px);
  text-align: center;
  padding: 1rem 1.25rem 1.05rem;
  border-radius: 14px;
  background: rgba(20,22,25,.55);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.8);
  color: #D6DADF; font-size: .95rem; line-height: 1.5;
  text-wrap: balance;
}
.srv-cap b {
  display: block; margin-bottom: .35rem;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-2);
}
.srv-cap.is-in { animation: capIn 560ms var(--ease-lay); }
@keyframes capIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (min-width: 960px) {
  .srv { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
  .srv-stage { order: 0; aspect-ratio: auto; min-height: clamp(540px, 46vw, 680px); }
  /* the rule line travels with the rows (not the stretched list box), so no gap opens above row 1 */
  .srv-list { justify-content: center; border-top: 0; }
  .srv-item:first-child { border-top: 1px solid var(--line-2); }
  .srv-item { grid-template-columns: 2rem 56px minmax(0, 1fr) 24px; column-gap: 1.1rem; padding: 1.45rem 1.2rem; }
  .srv-ic { width: 56px; height: 56px; border-radius: 14px; }
  .srv-ic svg { width: 27px; height: 27px; }
  .srv-cap { width: min(84%, 600px); font-size: 1.02rem; padding: 1.15rem 1.5rem 1.2rem; }
}
@media (max-width: 480px) {
  .srv-item { grid-template-columns: 40px minmax(0, 1fr) 20px; column-gap: .8rem; padding: 1rem .6rem; }
  .srv-num { display: none; }
  .srv-ic { width: 40px; height: 40px; border-radius: 10px; }
  .srv-ic svg { width: 21px; height: 21px; }
  .srv-d { grid-column: 1 / -1; }
  .srv-cap { font-size: .88rem; padding: .8rem 1rem; }
  .srv-count { display: none; }
}

/* =========================================================================
   WHY  (image-backed band)
   ========================================================================= */
/* Centred opener over a full-bleed image band, per the original build.
   overflow is `clip` rather than `hidden` only because `hidden` makes this a
   scroll container, which would silently disable position:sticky for anything
   nested inside it later. Visually identical. */
.why { position: relative; background: var(--bg-2) center/cover no-repeat fixed; overflow: clip; }
/* Mobile/iOS do not paint background-attachment:fixed, which hid the roof-crew photo.
   Fall back to scroll so the image shows (desktop keeps the fixed parallax). */
@media (max-width: 768px) { .why { background-attachment: scroll; } }
.why-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,25,.86), rgba(20,22,25,.92)),
              linear-gradient(90deg, rgba(20,22,25,.6), rgba(20,22,25,.4));
}
.why-inner { position: relative; z-index: 2; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
/* Glass plates over the crew photo: icon on top, everything centered. */
.why-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(170deg, rgba(42,47,53,.62), rgba(26,29,33,.5));
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem clamp(1.5rem, 3vw, 2.5rem) 2.1rem;
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.why-ic {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 1.1rem;
  border-radius: 50%;
  color: var(--accent-2);
  background: radial-gradient(circle at 50% 30%, rgba(232,116,59,.2), rgba(20,22,25,.6) 70%);
  border: 1px solid rgba(232,116,59,.3);
  box-shadow: 0 0 0 6px rgba(232,116,59,.05);
}
.why-ic svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: .55rem; letter-spacing: .01em; }
.why-card p { color: var(--text-dim); max-width: 46ch; text-wrap: balance; }

/* =========================================================================
   PROCESS  (How It Works: a drawn rail, four lit stations)
   ========================================================================= */
.process {
  --step-gap: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(180deg, #20252C 0%, #1D2228 100%);
  border-top: 1px solid var(--line);
  overflow: clip;
}
/* Depth: a drafting grid (minor + major lines) fading out from the top-right. */
.process-blueprint {
  position: absolute; inset: 0 0 auto auto; width: min(900px, 90%); height: 80%;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(150,180,215,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,180,215,.09) 1px, transparent 1px),
    linear-gradient(rgba(150,180,215,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,180,215,.045) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: right -1px top -1px;
  -webkit-mask: radial-gradient(ellipse 80% 90% at 100% 0%, #000 0%, rgba(0,0,0,.4) 45%, transparent 75%);
          mask: radial-gradient(ellipse 80% 90% at 100% 0%, #000 0%, rgba(0,0,0,.4) 45%, transparent 75%);
}
.process > .container { position: relative; z-index: 1; }
.process .section-head { --head-gap-section: clamp(3rem, 5vw, 4.25rem); }

.process-track { position: relative; }
.process-steps { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
.process-step { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }

/* Station node */
.process-node {
  position: relative; z-index: 2;
  width: 72px; height: 72px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #1C2026;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  transition: color 500ms var(--ease-lay), border-color 500ms var(--ease-lay), box-shadow 700ms var(--ease-lay), background 500ms var(--ease-lay);
}
.process-node svg { width: 28px; height: 28px; position: relative; }
.process-node-ring {
  position: absolute; inset: -9px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.12);
  transition: border-color 500ms var(--ease-lay), transform 1200ms var(--ease-lay);
}
.process-track.is-live .process-node {
  color: #fff;
  border-color: rgba(232,116,59,.6);
  background: radial-gradient(circle at 50% 30%, #3a2522, #1C2026 70%);
  box-shadow: 0 0 0 6px rgba(200,54,47,.08), 0 14px 34px -10px rgba(200,54,47,.55);
}
.process-track.is-live .process-node-ring { border-color: rgba(232,116,59,.35); transform: rotate(45deg); }
.process-track.is-live .process-step:nth-child(1) .process-node, .process-track.is-live .process-step:nth-child(1) .process-node-ring { transition-delay: 150ms; }
.process-track.is-live .process-step:nth-child(2) .process-node, .process-track.is-live .process-step:nth-child(2) .process-node-ring { transition-delay: 550ms; }
.process-track.is-live .process-step:nth-child(3) .process-node, .process-track.is-live .process-step:nth-child(3) .process-node-ring { transition-delay: 950ms; }
.process-track.is-live .process-step:nth-child(4) .process-node, .process-track.is-live .process-step:nth-child(4) .process-node-ring { transition-delay: 1350ms; }

/* Station card */
.process-card {
  position: relative; overflow: hidden;
  flex: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  margin-top: 1.6rem;
  padding: 2.1rem 1.25rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -36px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
}
/* a roof-pitch notch on the top edge, pointing at the station above */
.process-card::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 64px; height: 12px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(232,116,59,.7), transparent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: .8;
}
.process-ghost {
  position: absolute; right: .12em; top: -.12em; z-index: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 6.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
  pointer-events: none;
}
.process-kicker, .process-card h3, .process-card p, .process-yield { position: relative; z-index: 1; }
.process-kicker {
  font-family: var(--font-head); font-weight: 600; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .55rem;
}
.process-card h3 { font-size: 1.55rem; text-transform: uppercase; margin-bottom: .6rem; }
.process-card p { color: var(--text-dim); font-size: .97rem; text-wrap: wrap; margin-bottom: 1.35rem; }
.process-yield {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem; border-radius: 100px;
  font-family: var(--font-head); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: #F3C3A4;
  background: rgba(232,116,59,.08);
  border: 1px solid rgba(232,116,59,.26);
}
.process-yield::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px rgba(232,116,59,.8); }

/* Rail: a dimension line running node to node, drawn in red when it comes into view. */
.process-rail { display: none; }
@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem var(--step-gap); }
}
@media (min-width: 1200px) {
  .process-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--step-gap); }
  .process-rail {
    display: block; position: absolute; z-index: 1;
    top: 35px; height: 2px;
    left: calc((100% - 3 * var(--step-gap)) / 8);
    right: calc((100% - 3 * var(--step-gap)) / 8);
    background:
      repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 22px) center / 100% 8px no-repeat,
      linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.12)) center / 100% 1px no-repeat;
    height: 8px; top: 32px;
  }
  .process-rail-live {
    position: absolute; left: 0; right: 0; top: 3px; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px rgba(232,116,59,.55);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 1500ms cubic-bezier(.45,.05,.25,1) 150ms;
  }
  .process-track.is-live .process-rail-live { transform: scaleX(1); }
}

/* =========================================================================
   SEPARATOR: layered roofline (How It Works -> Our Work)
   Three receding rows of rooftops in one element; the nearest row carries
   the red ridge line and is the same colour as the gallery below it.
   ========================================================================= */
.sep-roofline {
  position: relative; z-index: 2;
  height: clamp(56px, 6.7vw, 96px);
  margin-top: -1px;
  background: #1D2228;
  line-height: 0;
}
.sep-roofline svg { display: block; width: 100%; height: 100%; }
.rl-back  { fill: #252A31; }
.rl-mid   { fill: #20242A; }
.rl-front { fill: var(--bg); }
.rl-line  { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rl-line--mid   { stroke: rgba(255,255,255,.13); stroke-width: 1; }
.rl-line--front { stroke: var(--accent); stroke-width: 1.5; opacity: .8; filter: drop-shadow(0 0 4px rgba(200,54,47,.55)); }
/* =========================================================================
   GALLERY
   ========================================================================= */
/* Treatment: full-bleed mosaic. Runs to the viewport edge (capped at
   --maxw-bleed so 1672px assets never upsample) with the tightest internal
   gaps on the page, so the imagery reads as one continuous surface.
   Every tile is native 16:9 (no crop). Mobile = 2-col with a full-width
   featured banner; desktop = 3-col with a 2x2 featured tile. */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; grid-auto-flow: row dense; }

/* Two layers on purpose:
     .gallery-item  = the COURSE layer. GSAP drives its transform/clip during
                      lay-up. Nothing else may write transform here.
     .gallery-frame = the HOVER layer. CSS drives lift-and-seat.
   Keeping them separate is what stops the scroll animation and the hover
   state from fighting over a single transform property. */
.gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 0; padding: 0; background: none;
  cursor: pointer;
  z-index: 0;
}
.gallery-item:hover, .gallery-item:focus-visible { z-index: 3; }

.gallery-frame {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--bg-2);
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  /* seat: the slow half of the pair */
  transition:
    transform var(--dur-seat) var(--ease-seat),
    box-shadow var(--dur-seat) var(--ease-seat);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.005);
  filter: saturate(.95) contrast(1.02);
  transition: transform var(--dur-drift) var(--ease-seat), filter var(--dur-seat) var(--ease-seat);
}

/* Light rake: a warm band crossing the tile the way late sun crosses shingle
   texture. Sits over the image, under the affordance. */
.gallery-frame::before {
  content: ""; position: absolute; inset: -20%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 38%,
    rgba(232,116,59,.16) 47%,
    rgba(255,226,196,.20) 51%,
    rgba(232,116,59,.10) 56%,
    transparent 66%);
  transform: translateX(-62%);
  opacity: 0;
  transition: transform var(--dur-drift) var(--ease-seat), opacity var(--dur-seat) var(--ease-seat);
}
/* Corner weight: exists to seat the affordance, not to darken over nothing. */
.gallery-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(200deg, rgba(20,22,25,.55) 0%, transparent 34%);
  opacity: 0;
  transition: opacity var(--dur-seat) var(--ease-seat);
}

/* The payload the old gradient was missing: an actual "open this" cue. */
.gallery-cue {
  position: absolute; top: .85rem; right: .85rem; z-index: 3;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  background: rgba(20,22,25,.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: translate(6px, -6px) scale(.92);
  transition:
    opacity var(--dur-seat) var(--ease-seat),
    transform var(--dur-seat) var(--ease-seat);
}
.gallery-cue svg { width: 16px; height: 16px; display: block; }

/* lift: raise fast (--ease-lay), return slow (--ease-seat, above).
   The asymmetry is the whole point. Heavy material does not snap back. */
.gallery-item:hover .gallery-frame,
.gallery-item:focus-visible .gallery-frame {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px -10px rgba(0,0,0,.72), 0 1px 0 rgba(255,255,255,.07) inset;
  transition:
    transform var(--dur-lift) var(--ease-lay),
    box-shadow var(--dur-lift) var(--ease-lay);
}
.gallery-item:hover img, .gallery-item:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.05);
}
.gallery-item:hover .gallery-frame::before,
.gallery-item:focus-visible .gallery-frame::before { transform: translateX(62%); opacity: 1; }
.gallery-item:hover .gallery-frame::after,
.gallery-item:focus-visible .gallery-frame::after { opacity: 1; }
.gallery-item:hover .gallery-cue,
.gallery-item:focus-visible .gallery-cue {
  opacity: 1; transform: translate(0,0) scale(1);
  transition:
    opacity var(--dur-lift) var(--ease-lay),
    transform var(--dur-lift) var(--ease-lay);
}
.gallery-item:focus-visible { outline: none; }
.gallery-item:focus-visible .gallery-frame { outline: 3px solid var(--accent-2); outline-offset: -3px; }
/* Featured tile: full-width banner on mobile */
.gallery-item:first-child { grid-column: 1 / -1; }

/* =========================================================================
   STORM CALLOUT
   ========================================================================= */
/* Treatment: full-bleed background, deliberately narrow offset content, and
   the tightest rhythm on the page. Compression is the point: this is the
   urgency band, so it should feel closer and more pressed than its neighbours. */
.storm { position: relative; overflow: hidden; background: var(--slate) center/cover no-repeat; padding: var(--pad-tight) 0; z-index: 2; }
.storm-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,22,25,.92) 0%, rgba(20,22,25,.7) 50%, rgba(200,54,47,.35) 100%);
}
/* Content sits narrow and hard left inside the normal 1200 grid, so the band
   reads as off-centre against a full-bleed backdrop rather than as another
   centred column. */
.storm-container { position: relative; z-index: 2; }
.storm-inner { max-width: 720px; margin-inline-end: auto; }
.storm-heading { font-size: clamp(2.1rem, 5.5vw, 3.7rem); text-transform: uppercase; letter-spacing: -0.015em; text-wrap: balance; }
.storm-body { color: #d7dbdf; font-size: clamp(1.05rem, 1.8vw, 1.25rem); margin: 1.5rem 0 2.25rem; max-width: 50ch; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
/* Its own surface between two photo bands: a warmer charcoal, a shingle-course
   texture rising from the bottom-left, and the brand mark as a faint
   watermark in the top-right (the only watermark on the page). */
.testimonials {
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(200,54,47,.09), transparent 60%),
    linear-gradient(180deg, #1E2126 0%, #1A1D21 100%);
  overflow: clip;
}
.testimonials-shingles {
  position: absolute; left: 0; bottom: 0; width: min(760px, 80%); height: 70%;
  pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36' viewBox='0 0 72 36'%3E%3Cg fill='none' stroke='%23EDEFF1' stroke-opacity='.12' stroke-width='1'%3E%3Cpath d='M0 17.5h72M0 35.5h72M18 0v17.5M54 0v17.5M0 18v17.5M36 18v17.5M72 18v17.5'/%3E%3Cpath d='M2 17.5c4-1.5 10-1.5 14 0M38 17.5c4-1.5 10-1.5 14 0M20 35.5c4-1.5 10-1.5 14 0M56 35.5c4-1.5 10-1.5 14 0' stroke-opacity='.08'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 36px;
  -webkit-mask: radial-gradient(ellipse 90% 95% at 0% 100%, #000 10%, rgba(0,0,0,.35) 50%, transparent 78%);
          mask: radial-gradient(ellipse 90% 95% at 0% 100%, #000 10%, rgba(0,0,0,.35) 50%, transparent 78%);
}
.testimonials-watermark {
  position: absolute; top: clamp(1.5rem, 4vw, 3rem); right: clamp(-4rem, -2vw, -1rem);
  width: clamp(220px, 28vw, 400px); aspect-ratio: 1;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  clip-path: polygon(50% 0, 100% 55%, 82% 55%, 82% 100%, 18% 100%, 18% 55%, 0 55%);
  opacity: .045; pointer-events: none; z-index: 0;
}
.testimonials > .container { position: relative; z-index: 1; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.testimonial {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.1rem clamp(1.4rem, 2.4vw, 2rem) 1.8rem;
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(46,51,58,.62), rgba(26,29,33,.55));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06);
}
/* oversized quote glyph sitting behind the copy */
.testimonial::before {
  content: "\201C"; position: absolute; top: .02em; left: .12em;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 8rem; line-height: 1;
  color: var(--accent); opacity: .16; pointer-events: none;
}
.testimonial-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: .55rem; margin-bottom: 1.2rem; }
.testimonial-stars { display: inline-flex; gap: 3px; color: var(--accent-2); }
.testimonial-stars svg { width: 17px; height: 17px; fill: currentColor; stroke-width: 1.2; }
.testimonial-job {
  font-family: var(--font-head); font-weight: 500; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim);
}
.testimonial-quote { position: relative; font-size: 1rem; line-height: 1.65; color: #E3E6E9; text-wrap: pretty; }
.testimonial-meta {
  position: relative; margin-top: auto; padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  text-align: left;
}
.testimonial-quote + .testimonial-meta { margin-top: 1.5rem; border-top: 1px solid var(--line); width: 100%; }
.testimonial-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .04em; color: #fff;
  background: linear-gradient(150deg, var(--slate), var(--bg-3));
  border: 1px solid rgba(232,116,59,.35);
}
.testimonial-name { display: block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; line-height: 1.25; }
.testimonial-loc { display: block; color: var(--text-dim); font-size: .85rem; line-height: 1.35; }
@media (min-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
}
/* =========================================================================
   CONTACT
   ========================================================================= */
/* Treatment: full-bleed dusk band closing the page. Scroll attachment, not
   fixed: this section is tall, and fixed backgrounds are unreliable on iOS. */
.contact { position: relative; overflow: clip; background: var(--bg) center/cover no-repeat; }
/* The source frame is already a near-dark dusk exposure, so it needs far less
   scrim than the Storm band. Heavy only on the left, where the display
   headline sits; the right stays open so the horizon glow actually reads. */
.contact-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,22,25,.90) 0%, rgba(20,22,25,.62) 46%, rgba(20,22,25,.30) 100%),
    linear-gradient(180deg, rgba(20,22,25,.72) 0%, rgba(20,22,25,.12) 32%, rgba(20,22,25,.34) 70%, rgba(20,22,25,.86) 100%);
}
.contact-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-details { margin-top: 1.75rem; display: grid; gap: .65rem; }
/* Value stays on the same line as its label and wraps internally if it runs
   long. min-width:0 on the value is what lets it shrink instead of forcing the
   whole grid column wider than the viewport. */
.contact-details li { display: flex; flex-wrap: nowrap; gap: .6rem; align-items: baseline; color: var(--text-dim); }
/* 56px, not 78px: the longest label ("PROPERTY") measures 48px, so the extra
   30px was dead space that pushed the address onto a second line. */
.contact-details .cd-label { flex: 0 0 56px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--accent-2); }
.contact-details li > :last-child { flex: 1 1 auto; min-width: 0; }
.contact-details a { color: var(--text); }
.contact-details a:hover { color: var(--accent-2); }

/* Fully opaque panel with real elevation: it now sits over photography, so it
   has to read as a surface resting on the image rather than a tint of it. */
/* Glass card over the dusk photo: translucent, blurred, hairline border. */
.contact-form {
  position: relative;
  background: linear-gradient(160deg, rgba(42,47,53,.52), rgba(20,22,25,.46));
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08);
}
.contact .section-title { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
.contact .section-head { margin-bottom: 0; }
/* Single column on phones: two fields side by side at 375 forced the whole
   form wider than the viewport. Pairs up from 560. */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.form-row { margin-top: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field input, .field textarea { min-width: 0; max-width: 100%; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--text-dim); }
.field label .req { color: var(--accent-2); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--text);
  background: rgba(14,15,18,.5);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #6c747c; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,54,47,.25);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { margin-top: 1.4rem; }
.form-note { margin-top: 1rem; text-align: center; color: var(--text-dim); font-size: .82rem; }
.form-note.is-success { color: var(--accent-2); }

/* =========================================================================
   FOOTER  (compact: logo + blurb, one row of links, one NAP block,
   and a single concept line underneath)
   ========================================================================= */
.site-footer { position: relative; z-index: 2; background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(2.25rem, 4vw, 3rem); }
.footer-inner {
  display: grid; grid-template-columns: 1fr; gap: 1.75rem;
  padding-bottom: clamp(1.75rem, 3vw, 2.25rem);
  align-items: center;
}
.brand--footer { display: inline-flex; margin-bottom: .8rem; }
.footer-blurb { color: var(--text-dim); max-width: 50ch; font-size: .92rem; line-height: 1.55; text-wrap: balance; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.footer-nav a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); font-size: .88rem; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--accent-2); }
.footer-nap { display: grid; gap: .3rem; color: var(--text-dim); font-size: .88rem; }
.footer-nap a { transition: color .2s var(--ease); }
.footer-nap a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.1rem 0; }
/* Bottom row (round 2, shared structure across concept builds): fictional-company
   line on the left, "Built by Summit Oak AI" + recolored mark on the right.
   Phones: stacked, left line first, both centered. */
.footer-bottom-row { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; }
.footer-disclaimer { color: var(--text-dim); font-size: .8rem; line-height: 1.4; margin: 0; }
@media (max-width: 719px) { .footer-bottom-row { padding-inline: 14px; } .footer-disclaimer { font-size: clamp(.66rem, 2.8vw, .8rem); letter-spacing: -0.005em; text-wrap: balance; } }
@media (min-width: 720px) {
  .footer-bottom-row { flex-direction: row; justify-content: space-between; text-align: left; gap: 1.5rem; }
  .footer-disclaimer { white-space: nowrap; }
}
.footer-credit { color: var(--text-dim); font-size: .8rem; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: color .2s var(--ease); }
.footer-credit:hover { color: var(--text); }
.footer-credit .soak-mark {
  display: inline-block; width: 20px; height: 20px; flex: none;
  background-color: var(--accent);
  -webkit-mask: url(../assets/images/summitoak-mark.png) center / contain no-repeat;
          mask: url(../assets/images/summitoak-mark.png) center / contain no-repeat;
  opacity: .9; transition: opacity .2s ease;
}
.footer-credit:hover .soak-mark { opacity: 1; }
.footer-credit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (min-width: 1100px) {
  .footer-inner { grid-template-columns: minmax(0, 1.25fr) auto auto; gap: clamp(2rem, 5vw, 4.5rem); }
  .footer-nav ul { flex-wrap: nowrap; }
}
/* =========================================================================
   LIGHTBOX
   ========================================================================= */
/* [hidden] MUST be restated. An author `display` value beats the UA rule for
   the hidden attribute, so without this the overlay stays in the render tree
   at opacity 0 and z-index 300, swallowing clicks across the whole page. */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,13,15,.94);
  padding: clamp(1rem, 4vw, 3rem);
  /* --dur-lightbox is mirrored by LIGHTBOX_MS in main.js; keep them in step. */
  opacity: 0; transition: opacity var(--dur-lightbox) var(--ease-seat);
}
.lightbox.is-open { opacity: 1; transition: opacity var(--dur-lightbox) var(--ease-lay); }
.lightbox-figure {
  max-width: min(1100px, 92vw); max-height: 86vh;
  display: flex; flex-direction: column; gap: .75rem;
  transform: translateY(14px) scale(.985);
  transition: transform var(--dur-lightbox) var(--ease-seat);
}
.lightbox.is-open .lightbox-figure { transform: none; transition: transform 520ms var(--ease-lay); }
.lightbox-img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox-caption { text-align: center; color: var(--text-dim); font-size: .9rem; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line-2);
  color: #fff; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; line-height: 1;
  transition: background var(--dur-box-out) var(--ease-seat), transform var(--dur-box-out) var(--ease-seat);
}
.lightbox-close:hover, .lightbox-nav:hover {
  background: var(--accent); transform: scale(1.06);
  transition: background var(--dur-box) var(--ease-lay), transform var(--dur-box) var(--ease-lay);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

/* =========================================================================
   REVEAL ANIMATION HOOKS (JS adds .is-visible)
   Reveal offset travels through --reveal-y rather than writing `transform`
   directly, so an element can be both revealed and hovered without the two
   states clobbering each other's transform.
   ========================================================================= */
[data-reveal], .reveal-child {
  opacity: 0;
  --reveal-y: 30px;
  transform: translateY(var(--reveal-y));
  transition: opacity 820ms var(--ease-lay), transform 820ms var(--ease-lay);
}
[data-reveal].is-visible, .reveal-child.is-visible { opacity: 1; --reveal-y: 0px; }


/* =========================================================================
   COURSE LAY-UP  (signature interaction)
   A roof is laid in overlapping courses, eave first, each course lapping the
   one below it. Grid items inherit that: they rise from beneath a clipped
   edge, bottom course first, left to right across each course the way a crew
   works, then settle under their own weight.

   GSAP owns transform/clip-path/box-shadow on .course-item while laying.
   These declarations are only the pre-JS resting state and the no-JS
   fallback: if GSAP never initialises, initCourses() marks everything laid,
   so nothing can be stranded invisible.
   ========================================================================= */
.course-item { will-change: transform, clip-path; }
.course-item.is-laid { will-change: auto; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  /* 3-col hero mosaic: featured spans 2x2 (native 16:9), two singles stack beside it */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@media (min-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  /* Contact: copy and glass form balanced; both columns centre on each other
     so neither side towers over the other. */
  .contact-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
}
/* Between 768 and 1023 the splits stay stacked: at those widths a .78fr copy
   column gets too tall and the composition stops reading as deliberate. */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* Mobile nav swap */
@media (max-width: 880px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 881px) {
  .mobile-nav { display: none !important; }
}

/* =========================================================================
   REDUCED MOTION: disable scrub/reveals, show final states
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

  /* Everything shows its FINAL state. Nothing hidden, nothing mid-transition. */
  [data-reveal], .reveal-child { opacity: 1 !important; --reveal-y: 0px !important; transform: none !important; }
  .course-item {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    box-shadow: none !important;
  }
  .hero-scrollhint-line::after { display: none; }

  /* Neutralise the new hover motion so pointer-over cannot jump anything. */
  .gallery-item:hover .gallery-frame,
  .gallery-item:focus-visible .gallery-frame { transform: none !important; }
  .gallery-item:hover img,
  .gallery-item:focus-visible img { transform: scale(1.005) !important; }
  .gallery-frame::before { display: none !important; }
  .gallery-item:hover .gallery-cue,
  .gallery-item:focus-visible .gallery-cue { transform: none !important; }
  .srv-stage img { transform: none !important; }
  .srv-cap.is-in { animation: none !important; }
  .process-rail-live { transform: none !important; }
  .btn:hover, .btn:focus-visible,
  .lightbox-close:hover, .lightbox-nav:hover { transform: none !important; }
  .lightbox-prev, .lightbox-next { transform: translateY(-50%) !important; }
  .lightbox-figure, .lightbox.is-open .lightbox-figure { transform: none !important; }
}


/* Brand-colored magnifier cursor on click-to-zoom photos (replaces removed on-card badges). */
.gallery-item { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Ccircle cx='13' cy='13' r='8' stroke='%23ffffff' stroke-width='4'/%3E%3Cline x1='19' y1='19' x2='29' y2='29' stroke='%23ffffff' stroke-width='4'/%3E%3Ccircle cx='13' cy='13' r='8' stroke='%23C8362F' stroke-width='2.4'/%3E%3Cline x1='19' y1='19' x2='29' y2='29' stroke='%23C8362F' stroke-width='2.4'/%3E%3C/g%3E%3C/svg%3E") 13 13, zoom-in !important; }

/* Mobile reframe: shift the hero framing down so the roof crew sits lower in view. */
@media (max-width: 768px) {
  .hero-video { object-position: 50% 18%; }
}

/* Mobile: the scroll hint sits over the wrapped hero CTAs, so hide it on phones. */
@media (max-width: 768px) {
  .hero-scrollhint { display: none; }
}



/* Phones: keep short labels whole and display lines at three words or more. */
@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; max-width: none; }
  .hero-eyebrow { font-size: .68rem; letter-spacing: .1em; padding: .38rem .7rem; }
  .trust-grid { gap: .6rem; }
  .trust-item { padding: 1.2rem .4rem 1.1rem; }
  .trust-label { font-size: .84rem; letter-spacing: .01em; }
  .trust-sub { font-size: .78rem; }
  .srv-t { font-size: 1.02rem; letter-spacing: 0; }
  .storm-heading { font-size: 1.85rem; }
  .footer-nav ul { gap: .6rem 1rem; }
  .footer-nav a { font-size: .82rem; letter-spacing: .06em; }
}

/* Mid widths: the wordmark stays on one line, so the nav and CTA tighten. */
@media (min-width: 881px) and (max-width: 1180px) {
  .header-inner { gap: 1rem; }
  .nav-list { gap: 1rem; }
  .nav-list a { font-size: .82rem; letter-spacing: .06em; }
  .header-cta { padding: .6rem .9rem; font-size: .76rem; letter-spacing: .04em; }
}
