/* ============================================================================
   CEDAR SPUR ROOFING
   Design system + layout
   ----------------------------------------------------------------------------
   Palette : Charcoal Black · Deep Graphite · Warm Limestone · Texas Amber · Off White
   Type    : Archivo (variable width — architectural headlines) + Inter (body)
   ========================================================================== */

/* ---------- 0. FONTS (self-hosted — no third-party requests) ------------- */
/* Archivo Variable carries a width axis (62–125), which is what gives the
   headlines their architectural, drawn-to-fit character. Inter for body. */
@font-face{
  font-family:'Archivo';
  src:url('../assets/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight:100 900;
  font-stretch:62% 125%;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Inter';
  src:url('../assets/fonts/inter-var.woff2') format('woff2-variations');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root{
  /* Core palette */
  --ink:        #0A0B0D;   /* charcoal black   */
  --ink-2:      #101216;
  --graphite:   #15181D;   /* deep graphite    */
  --graphite-2: #1E232A;
  --graphite-3: #2A3038;
  --limestone:  #C6B9A2;   /* warm limestone   */
  --limestone-d:#8E836F;
  --amber:      #E39A2E;   /* texas sunset amber */
  --amber-hi:   #F7BC5E;
  --amber-dim:  rgba(227,154,46,.14);
  --off:        #F3F0E9;   /* off white        */
  --off-dim:    #A9A69F;
  --steel:      #767C86;

  /* Semantic */
  --bg:         var(--ink);
  --fg:         var(--off);
  --muted:      #8B9199;
  --rule:       rgba(243,240,233,.12);
  --rule-soft:  rgba(243,240,233,.06);

  /* Type scale (fluid). Sized so the two hero lines wrap to two lines on a
     laptop and still leave the CTAs and trust row above the fold. */
  --fs-hero:  clamp(2.05rem, 4.4vw, 4.3rem);
  --fs-h1:    clamp(1.95rem, 3.9vw, 3.7rem);
  --fs-h2:    clamp(1.75rem, 3.3vw, 3.1rem);
  --fs-h3:    clamp(1.25rem, 2.1vw, 1.75rem);
  --fs-lead:  clamp(1.02rem, 1.35vw, 1.3rem);
  --fs-body:  clamp(.95rem, 1.05vw, 1.06rem);
  --fs-micro: .72rem;

  /* Rhythm */
  --gutter:  clamp(1.25rem, 4vw, 4.5rem);
  --section: clamp(5rem, 11vh, 9.5rem);
  --maxw:    1440px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --hud-w: 168px;
  --nav-h: 76px;
}

/* ---------- 2. RESET ----------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:auto; }
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size:var(--fs-body);
  line-height:1.62;
  font-feature-settings:'kern' 1,'liga' 1,'cv05' 1;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* `clip` rather than `hidden`: hidden turns the root into a scroll container,
   which silently breaks position:sticky and scroll-anchoring further down. */
html,body{ overflow-x:clip; max-width:100%; }
#cinema,.section{ max-width:100%; }
img,svg,video,canvas{ display:block; max-width:100%; }
img,video{ height:auto; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
h1,h2,h3,h4{ margin:0; font-weight:600; line-height:1.02; letter-spacing:-.022em; }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }

/* Accessible focus — visible everywhere, never removed */
:focus-visible{
  outline:2px solid var(--amber);
  outline-offset:3px;
  border-radius:2px;
}

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:9999;
  background:var(--amber); color:#111; padding:.85rem 1.35rem;
  font-weight:600; letter-spacing:.02em;
}
.skip-link:focus{ left:1rem; top:1rem; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- 3. TYPE PRIMITIVES ------------------------------------------- */
.display{
  font-family:'Archivo','Archivo Expanded',Impact,'Arial Narrow',sans-serif;
  font-variation-settings:'wdth' 112,'wght' 700;
  font-weight:700;
  letter-spacing:-.028em;
  line-height:.96;
  text-transform:none;
}
.display--condensed{ font-variation-settings:'wdth' 78,'wght' 700; letter-spacing:-.01em; }

.eyebrow{
  font-family:'Archivo',sans-serif;
  font-variation-settings:'wdth' 88,'wght' 600;
  font-size:var(--fs-micro);
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--amber);
  display:flex; align-items:center; gap:.85rem;
  margin:0 0 1.4rem;
}
.eyebrow::before{
  content:''; width:clamp(20px,3vw,46px); height:1px;
  background:currentColor; opacity:.55; flex:none;
}
.eyebrow--plain::before{ display:none; }
/* Tracking this wide wraps a long eyebrow onto two lines on a phone. */
@media (max-width:560px){ .eyebrow{ letter-spacing:.17em; gap:.6rem; } }

.lead{ font-size:var(--fs-lead); line-height:1.6; color:#CFCCC4; max-width:60ch; }
.muted{ color:var(--muted); }
.amber{ color:var(--amber); }

/* Technical annotation used across the layout grid */
.annot{
  font-family:'Archivo',sans-serif;
  font-variation-settings:'wdth' 76,'wght' 500;
  font-size:.66rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--steel);
}

/* ---------- 4. LAYOUT ---------------------------------------------------- */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section{ position:relative; padding-block:var(--section); }
.section--tight{ padding-block:clamp(3rem,6vh,5rem); }
.rule{ height:1px; background:var(--rule-soft); border:0; margin:0; }

.grid{ display:grid; gap:clamp(1.5rem,3vw,3rem); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .grid-2,.grid-3{ grid-template-columns:1fr; } }

/* Panels that sit above the film get a legibility scrim */
.panel{
  position:relative;
  background:linear-gradient(180deg,rgba(10,11,13,.0) 0%,rgba(10,11,13,.82) 16%,rgba(10,11,13,.94) 50%,rgba(10,11,13,.82) 84%,rgba(10,11,13,0) 100%);
}
.solid{ background:var(--ink); }
.solid-2{ background:var(--graphite); }

/* ---------- 5. BUTTONS --------------------------------------------------- */
.btn{
  --btn-bg:var(--amber); --btn-fg:#100D07; --btn-bd:var(--amber);
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  gap:.7rem; min-height:54px; padding:0 1.7rem;
  background:var(--btn-bg); color:var(--btn-fg);
  border:1px solid var(--btn-bd);
  font-family:'Archivo',sans-serif;
  font-variation-settings:'wdth' 96,'wght' 650;
  font-size:.86rem; letter-spacing:.085em; text-transform:uppercase;
  overflow:hidden; isolation:isolate;
  transition:color .4s var(--ease),border-color .4s var(--ease),transform .5s var(--ease);
  will-change:transform;
}
.btn::after{
  content:''; position:absolute; inset:0; z-index:-1;
  background:radial-gradient(120px circle at var(--mx,50%) var(--my,50%),var(--amber-hi),transparent 72%);
  opacity:0; transition:opacity .45s var(--ease);
}
.btn:hover::after{ opacity:.85; }
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }

.btn--ghost{ --btn-bg:transparent; --btn-fg:var(--off); --btn-bd:rgba(243,240,233,.28); }
.btn--ghost::after{ background:radial-gradient(160px circle at var(--mx,50%) var(--my,50%),rgba(227,154,46,.22),transparent 70%); }
.btn--ghost:hover{ --btn-bd:var(--amber); color:var(--off); }

.btn--sm{ min-height:44px; padding:0 1.15rem; font-size:.74rem; }
.btn--wide{ width:100%; }

.btn-row{ display:flex; flex-wrap:wrap; gap:.85rem; }

/* Text link with a tracing underline */
.tlink{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 92,'wght' 600;
  font-size:.8rem; letter-spacing:.13em; text-transform:uppercase; color:var(--amber);
  padding-bottom:.35rem; position:relative;
}
.tlink::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background:currentColor; transform:scaleX(.28); transform-origin:left;
  transition:transform .55s var(--ease-out);
}
.tlink:hover::after{ transform:scaleX(1); }

/* ---------- 6. NAVIGATION ------------------------------------------------ */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:120;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:transparent;
  border-bottom:1px solid transparent;
  transition:background .5s var(--ease),border-color .5s var(--ease),backdrop-filter .5s var(--ease);
}
.nav.is-stuck{
  background:rgba(10,11,13,.88);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
  backdrop-filter:saturate(140%) blur(14px);
  border-bottom-color:var(--rule);
}
.nav__inner{
  width:100%; max-width:var(--maxw); margin-inline:auto;
  padding-inline:var(--gutter);
  display:flex; align-items:center; gap:1.5rem;
}
.brand{ display:flex; align-items:center; gap:.7rem; flex:none; }
.brand__mark{ width:26px; height:30px; flex:none; }
.brand__name{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 84,'wght' 700;
  font-size:.92rem; letter-spacing:.15em; text-transform:uppercase; line-height:1;
  white-space:nowrap;
}
.brand__name small{ display:block; font-size:.56rem; letter-spacing:.3em; color:var(--amber); margin-top:.32rem; font-variation-settings:'wdth' 76,'wght' 500; }

.nav__links{ display:flex; align-items:center; gap:clamp(.9rem,1.6vw,1.75rem); margin-left:auto; }
.nav__links a{
  font-size:.78rem; letter-spacing:.055em; color:#D7D4CD;
  padding:.4rem 0; position:relative; white-space:nowrap;
  transition:color .3s var(--ease);
}
.nav__links a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--amber); transform:scaleX(0); transform-origin:left;
  transition:transform .45s var(--ease-out);
}
.nav__links a:hover{ color:var(--off); }
.nav__links a:hover::after{ transform:scaleX(1); }

.nav__cta{ margin-left:1.25rem; flex:none; }
.nav__phone{ display:flex; align-items:center; gap:.45rem; font-size:.78rem; color:#D7D4CD; }

.nav__toggle{ display:none; margin-left:auto; width:44px; height:44px; align-items:center; justify-content:center; }
.nav__toggle span{ display:block; width:22px; height:1.5px; background:var(--off); position:relative; transition:background .3s; }
.nav__toggle span::before,.nav__toggle span::after{ content:''; position:absolute; left:0; width:22px; height:1.5px; background:var(--off); transition:transform .4s var(--ease); }
.nav__toggle span::before{ top:-7px; } .nav__toggle span::after{ top:7px; }
.nav.is-open .nav__toggle span{ background:transparent; }
.nav.is-open .nav__toggle span::before{ transform:translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after{ transform:translateY(-7px) rotate(-45deg); }

.nav__drawer{
  position:fixed; inset:var(--nav-h) 0 0 0; z-index:110;
  /* Fully opaque: at 97% the amber headline underneath still ghosted through,
     and backdrop-filter is not guaranteed. */
  background:var(--ink);
  padding:2rem var(--gutter) 7rem;
  display:flex; flex-direction:column; gap:.25rem;
  transform:translateY(-12px); opacity:0; pointer-events:none; visibility:hidden;
  transition:opacity .4s var(--ease),transform .5s var(--ease),visibility .4s;
  overflow-y:auto;
}
.nav.is-open ~ .nav__drawer,.nav__drawer.is-open{ opacity:1; transform:none; pointer-events:auto; visibility:visible; }
.nav__drawer a{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 90,'wght' 600;
  font-size:1.42rem; letter-spacing:-.01em; padding:.72rem 0;
  border-bottom:1px solid var(--rule-soft);
}
.nav__drawer .btn{ margin-top:1.75rem; }

@media (max-width:1080px){
  .nav__links,.nav__cta,.nav__phone{ display:none; }
  .nav__toggle{ display:flex; }
}

/* ---------- 7. CINEMATIC STAGE ------------------------------------------- */
.film{
  position:fixed; inset:0; z-index:0;
  background:var(--ink);
  overflow:hidden;
  contain:strict;
}
.film__media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  will-change:opacity;
}
.film video.film__media{ opacity:0; transition:opacity .8s var(--ease); }
.film video.film__media.is-ready{ opacity:1; }
/* Poster/still fallback layer, also the reduced-motion presentation */
.film__stills{ position:absolute; inset:0; }
.film__still{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .9s var(--ease); will-change:opacity;
}
.film__still.is-on{ opacity:1; }

/* Cinematic grade over the footage: vignette + warm/cool separation */
.film__grade{
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(140% 100% at 50% 42%,transparent 38%,rgba(10,11,13,.58) 100%),
    linear-gradient(180deg,rgba(10,11,13,.62) 0%,transparent 22%,transparent 62%,rgba(10,11,13,.78) 100%);
}
/* Fine film grain. The element is deliberately only slightly larger than the
   viewport — an inset of -140% makes it ~4x the screen area and the repaint
   cost of animating that dominates the scroll frame budget. */
.film__grain{
  position:absolute; inset:-12%; pointer-events:none; opacity:.14;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
  animation:grain 1.6s steps(3) infinite;
  will-change:transform;
  contain:strict;
}
@keyframes grain{
  0%{transform:translate3d(0,0,0)}
  33%{transform:translate3d(-2%,1.4%,0)}
  66%{transform:translate3d(1.6%,-2%,0)}
  100%{transform:translate3d(0,0,0)}
}
/* Grain is a texture, not information. It is the first thing to go on devices
   that are more likely to be thermally or GPU constrained. */
@media (max-width:1080px),(pointer:coarse){ .film__grain{ display:none; } }

/* Rain particles — canvas layer, only active during the storm chapter */
.film__weather{ position:absolute; inset:0; pointer-events:none; opacity:0; transition:opacity 1.1s var(--ease); }
.film__weather.is-on{ opacity:1; }

/* Everything above the film */
.content{ position:relative; z-index:10; }

/* Loading veil */
.boot{
  position:fixed; inset:0; z-index:400; background:var(--ink);
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:1.6rem;
  transition:opacity .8s var(--ease),visibility .8s;
}
.boot.is-done{ opacity:0; visibility:hidden; pointer-events:none; }
.boot__bar{ width:min(240px,52vw); height:1px; background:rgba(243,240,233,.14); overflow:hidden; }
.boot__bar i{ display:block; height:100%; width:0%; background:var(--amber); transition:width .35s var(--ease); }
.boot__label{ font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 78,'wght' 500; font-size:.66rem; letter-spacing:.34em; text-transform:uppercase; color:var(--steel); }

/* ---------- 8. ROOF PROTECTION HUD --------------------------------------- */
.hud{
  position:fixed; z-index:90;
  right:clamp(.9rem,2.2vw,2.4rem);
  top:50%; transform:translateY(-50%);
  width:var(--hud-w);
  pointer-events:none;
  opacity:0; transition:opacity .8s var(--ease);
}
.hud.is-visible{ opacity:1; }
.hud__head{
  display:flex; justify-content:space-between; align-items:baseline;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 74,'wght' 500;
  font-size:.55rem; letter-spacing:.24em; text-transform:uppercase; color:var(--steel);
  padding-bottom:.65rem; margin-bottom:.85rem;
  border-bottom:1px solid var(--rule-soft);
}
.hud__pct{ color:var(--amber); font-variant-numeric:tabular-nums; }
.hud__list{ display:flex; flex-direction:column; gap:.05rem; }
.hud__item{
  position:relative;
  display:grid; grid-template-columns:26px 1fr; align-items:center; gap:.6rem;
  padding:.44rem 0;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 76,'wght' 500;
  font-size:.6rem; letter-spacing:.19em; text-transform:uppercase;
  color:rgba(243,240,233,.3);
  transition:color .55s var(--ease);
}
.hud__tick{
  height:1px; width:100%; background:currentColor; opacity:.42;
  transform-origin:left; transition:transform .55s var(--ease),opacity .55s var(--ease);
}
.hud__item.is-past{ color:rgba(243,240,233,.5); }
.hud__item.is-active{ color:var(--amber); }
.hud__item.is-active .hud__tick{ opacity:1; transform:scaleX(1.55); box-shadow:0 0 10px rgba(227,154,46,.7); }
.hud__item.is-active::after{
  content:''; position:absolute; left:-10px; top:50%; width:3px; height:3px; margin-top:-1.5px;
  background:var(--amber); border-radius:50%; box-shadow:0 0 8px 1px rgba(227,154,46,.85);
}
.hud__rail{
  position:absolute; left:-10px; top:34px; bottom:0; width:1px;
  background:linear-gradient(180deg,transparent,rgba(243,240,233,.1) 12%,rgba(243,240,233,.1) 88%,transparent);
}
.hud__rail i{
  position:absolute; left:0; top:0; width:1px; height:0%;
  background:linear-gradient(180deg,rgba(227,154,46,.15),var(--amber));
}
@media (max-width:1080px){ .hud{ display:none; } }

/* ---------- 9. HERO ------------------------------------------------------ */
.hero{
  position:relative;          /* containing block for the scrim and scroll cue */
  min-height:100svh;
  display:flex; align-items:flex-end;
  padding-bottom:clamp(4.5rem,11vh,8.5rem);
  padding-top:calc(var(--nav-h) + 2rem);
}
.hero__inner{ position:relative; z-index:2; max-width:min(46rem,100%); }
/* Legibility scrim. The film under the hero is golden-hour bright, and white
   type on warm sky is the fastest way to fail a contrast check. */
.hero::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(100deg,rgba(8,9,11,.9) 0%,rgba(8,9,11,.72) 34%,rgba(8,9,11,.28) 62%,transparent 84%),
    linear-gradient(0deg,rgba(8,9,11,.72) 0%,transparent 42%);
}
.hero h1{
  font-size:var(--fs-hero);
  margin-bottom:clamp(1rem,1.7vw,1.4rem);
  text-wrap:balance;
  max-width:17ch;
}
.hero h1 span{ display:block; }
.hero h1 .l2{ color:var(--limestone); }
.hero__sub{ font-size:var(--fs-lead); color:#CFCCC4; max-width:52ch; margin-bottom:clamp(1.8rem,3vw,2.6rem); }
.hero .btn-row{ margin-bottom:clamp(2.4rem,5vh,3.6rem); }

.trust{
  display:flex; flex-wrap:wrap; gap:0;
  border-top:1px solid var(--rule);
  padding-top:1.2rem;
}
.trust li{
  display:flex; align-items:center; gap:.6rem;
  padding:.35rem clamp(.9rem,2vw,1.9rem) .35rem 0;
  margin-right:clamp(.9rem,2vw,1.9rem);
  border-right:1px solid var(--rule-soft);
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 80,'wght' 500;
  font-size:.66rem; letter-spacing:.17em; text-transform:uppercase; color:#B4B0A8;
}
.trust li:last-child{ border-right:0; margin-right:0; }
.trust svg{ width:13px; height:13px; color:var(--amber); flex:none; }

.scroll-cue{
  position:absolute; left:var(--gutter); bottom:1.6rem;
  display:flex; align-items:center; gap:.7rem;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 74,'wght' 500;
  font-size:.58rem; letter-spacing:.28em; text-transform:uppercase; color:var(--steel);
}
.scroll-cue i{ display:block; width:34px; height:1px; background:var(--rule); position:relative; overflow:hidden; }
.scroll-cue i::after{ content:''; position:absolute; inset:0; background:var(--amber); transform:translateX(-100%); animation:cue 2.4s var(--ease) infinite; }
@keyframes cue{ 0%{transform:translateX(-100%)}55%{transform:translateX(100%)}100%{transform:translateX(100%)} }

/* ---------- 10. REVEAL SYSTEM (masking, not plain fades) ----------------- */
[data-reveal]{ opacity:0; }
[data-reveal].is-in{ opacity:1; }

.mask{ display:block; overflow:hidden; }
.mask > *{
  display:block;
  transform:translateY(112%) rotate(1.2deg);
  transition:transform 1.05s var(--ease-out);
  will-change:transform;
}
.is-in .mask > *,.mask.is-in > *{ transform:none; }

.wipe{ clip-path:inset(0 100% 0 0); transition:clip-path 1.15s var(--ease-out); }
.is-in .wipe,.wipe.is-in{ clip-path:inset(0 0 0 0); }

.rise{ transform:translateY(28px); opacity:0; transition:transform .95s var(--ease-out),opacity .8s var(--ease); }
.is-in .rise,.rise.is-in{ transform:none; opacity:1; }

.line-draw{ transform:scaleX(0); transform-origin:left; transition:transform 1.2s var(--ease-out); }
.is-in .line-draw,.line-draw.is-in{ transform:scaleX(1); }

/* Stagger helper */
[data-stagger] > *{ transition-delay:calc(var(--i,0) * 90ms); }

/* ---------- 11. STORM SECTION -------------------------------------------- */
.facts{ display:grid; gap:0; border-top:1px solid var(--rule); margin-top:clamp(2rem,4vw,3rem); }
.fact{
  display:grid; grid-template-columns:auto 1fr; gap:clamp(1rem,2.5vw,2.4rem);
  align-items:start; padding:clamp(1.1rem,2.4vw,1.9rem) 0;
  border-bottom:1px solid var(--rule-soft);
}
.fact__n{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 68,'wght' 700;
  font-size:clamp(2rem,4.6vw,3.4rem); line-height:.9; color:var(--amber);
  font-variant-numeric:tabular-nums; min-width:3.4ch;
}
.fact__n sup{ font-size:.42em; top:-.85em; position:relative; letter-spacing:0; }
.fact__t{ font-size:clamp(.98rem,1.3vw,1.16rem); color:#D2CFC8; line-height:1.5; padding-top:.2rem; }
.fact__t em{ display:block; font-style:normal; font-size:.78rem; letter-spacing:.02em; color:var(--muted); margin-top:.4rem; }

/* ---------- 12. INSPECTION CALLOUTS -------------------------------------- */
.callouts{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,4vw,4rem); align-items:start; }
@media (max-width:960px){ .callouts{ grid-template-columns:1fr; } }

.co-list{ border-top:1px solid var(--rule); }
.co{
  border-bottom:1px solid var(--rule-soft);
}
.co__btn{
  width:100%; display:grid; grid-template-columns:auto 1fr auto; gap:1.1rem;
  align-items:center; text-align:left; padding:clamp(1rem,2vw,1.35rem) 0;
  transition:color .4s var(--ease);
}
.co__idx{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 72,'wght' 500;
  font-size:.62rem; letter-spacing:.16em; color:var(--steel); min-width:2.6ch;
  transition:color .4s var(--ease);
}
.co__name{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 96,'wght' 600;
  font-size:clamp(1.05rem,1.7vw,1.4rem); letter-spacing:-.012em; color:#CFCCC4;
  transition:color .4s var(--ease);
}
.co__plus{ width:12px; height:12px; position:relative; opacity:.5; transition:opacity .4s,transform .5s var(--ease); }
.co__plus::before,.co__plus::after{ content:''; position:absolute; background:currentColor; }
.co__plus::before{ left:0; right:0; top:50%; height:1px; margin-top:-.5px; }
.co__plus::after{ top:0; bottom:0; left:50%; width:1px; margin-left:-.5px; transition:transform .5s var(--ease); }
.co.is-open .co__plus{ opacity:1; color:var(--amber); }
.co.is-open .co__plus::after{ transform:scaleY(0); }
.co.is-open .co__name,.co:hover .co__name{ color:var(--off); }
.co.is-open .co__idx{ color:var(--amber); }
.co__body{ overflow:hidden; height:0; transition:height .6s var(--ease-out); }
.co__body p{ padding:0 0 1.3rem calc(2.6ch + 1.1rem); color:var(--muted); max-width:52ch; margin:0; }

/* Roof diagram that the callouts point at */
.roofdiag{ position:relative; aspect-ratio:4/3; border:1px solid var(--rule-soft); background:rgba(21,24,29,.55); }
.roofdiag svg{ position:absolute; inset:0; width:100%; height:100%; }
.roofdiag .rd-part{ transition:opacity .5s var(--ease),stroke .5s var(--ease); }
.roofdiag .rd-hot{ opacity:0; transition:opacity .5s var(--ease); }
.roofdiag .rd-hot.is-on{ opacity:1; }
.roofdiag__cap{
  position:absolute; left:1.1rem; bottom:1rem;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 74,'wght' 500;
  font-size:.58rem; letter-spacing:.2em; text-transform:uppercase; color:var(--steel);
}

/* ---------- 13. SERVICE CARDS -------------------------------------------- */
.svc{ display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--rule); }
@media (max-width:1000px){ .svc{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:660px){ .svc{ grid-template-columns:1fr; } }

.svc__card{
  position:relative; isolation:isolate;
  display:flex; flex-direction:column;
  padding:clamp(1.6rem,3vw,2.6rem) clamp(1.3rem,2.4vw,2.1rem) clamp(1.8rem,3vw,2.4rem);
  border-right:1px solid var(--rule-soft);
  border-bottom:1px solid var(--rule-soft);
  min-height:clamp(280px,34vh,360px);
  overflow:hidden;
  transition:background .6s var(--ease);
}
.svc__card::before{
  content:''; position:absolute; inset:auto 0 0 0; height:1px; background:var(--amber);
  transform:scaleX(0); transform-origin:left; transition:transform .7s var(--ease-out); z-index:2;
}
.svc__card::after{
  content:''; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(160deg,rgba(227,154,46,.11),transparent 62%);
  opacity:0; transition:opacity .6s var(--ease);
}
.svc__card:hover::before,.svc__card:focus-within::before{ transform:scaleX(1); }
.svc__card:hover::after,.svc__card:focus-within::after{ opacity:1; }
.svc__card:hover{ background:rgba(30,35,42,.42); }

.svc__num{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 70,'wght' 500;
  font-size:.6rem; letter-spacing:.22em; color:var(--steel); margin-bottom:auto;
}
.svc__ico{ width:34px; height:34px; color:var(--amber); margin:0 0 1.4rem; opacity:.9; }
.svc__t{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 98,'wght' 650;
  font-size:clamp(1.15rem,1.75vw,1.45rem); letter-spacing:-.015em;
  margin:0 0 .75rem;
}
.svc__d{ color:var(--muted); font-size:.95rem; line-height:1.58; margin:0 0 1.3rem; }
.svc__card .tlink{ margin-top:auto; align-self:flex-start; }
.svc__link{ position:absolute; inset:0; z-index:3; }

/* ---------- 14. EXPLODED ROOF SYSTEM ------------------------------------- */
.system{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,5rem); align-items:center; }
@media (max-width:1000px){ .system{ grid-template-columns:1fr; } }

.exploded{
  position:relative; aspect-ratio:1/1; max-width:620px; width:100%; margin-inline:auto;
  perspective:1200px;
}
.exploded__stack{
  position:absolute; inset:0;
  transform-style:preserve-3d;
  transform:rotateX(58deg) rotateZ(-38deg) scale(.78);
}
.layer{
  position:absolute; left:16%; top:22%; width:68%; height:44%;
  border:1px solid rgba(227,154,46,.35);
  background:linear-gradient(135deg,rgba(30,35,42,.9),rgba(15,18,22,.78));
  box-shadow:0 18px 40px rgba(0,0,0,.55);
  transform:translateZ(0);
  transition:transform 1s var(--ease-out),border-color .5s,box-shadow .5s;
  will-change:transform;
}
.layer::after{
  content:attr(data-label);
  position:absolute; left:calc(100% + 14px); top:50%; transform:translateY(-50%);
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 74,'wght' 500;
  font-size:.55rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--steel); white-space:nowrap; opacity:0; transition:opacity .5s var(--ease);
}
.exploded.is-open .layer::after{ opacity:1; }
/* The floating layer labels sit outside the stack's box. Below the two-column
   breakpoint the list beneath already names every layer, so drop them rather
   than let a nowrap label widen the document. */
@media (max-width:1000px){ .layer::after{ display:none; } }
.layer.is-active{ border-color:var(--amber); box-shadow:0 0 0 1px rgba(227,154,46,.35),0 24px 60px rgba(227,154,46,.16); }
.layer.is-active::after{ color:var(--amber); opacity:1; }

.sys-list{ border-top:1px solid var(--rule); }
.sys-item{
  display:grid; grid-template-columns:auto 1fr; gap:1.2rem; align-items:baseline;
  padding:clamp(.85rem,1.8vw,1.15rem) 0; border-bottom:1px solid var(--rule-soft);
  cursor:default; transition:padding-left .5s var(--ease);
}
.sys-item.is-active{ padding-left:.7rem; }
.sys-item__n{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 70,'wght' 500;
  font-size:.6rem; letter-spacing:.18em; color:var(--steel); transition:color .4s;
}
.sys-item.is-active .sys-item__n{ color:var(--amber); }
.sys-item__t{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 94,'wght' 600;
  font-size:1.02rem; color:#CFCCC4; margin:0 0 .25rem; transition:color .4s;
}
.sys-item.is-active .sys-item__t{ color:var(--off); }
.sys-item__d{ font-size:.87rem; color:var(--muted); margin:0; }

/* ---------- 15. BEFORE / AFTER ------------------------------------------- */
.ba{
  position:relative; width:100%; aspect-ratio:16/9;
  overflow:hidden; border:1px solid var(--rule-soft);
  background:var(--graphite); touch-action:pan-y;
  cursor:ew-resize; user-select:none; -webkit-user-select:none;
}
.ba img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  /* Without this the browser starts a native image drag on pointerdown and
     fires pointercancel, killing the slider mid-drag. */
  pointer-events:none;
  -webkit-user-drag:none;
  user-select:none; -webkit-user-select:none;
}
.ba__after{ clip-path:inset(0 0 0 var(--split,50%)); }
.ba__handle{
  position:absolute; top:0; bottom:0; left:var(--split,50%);
  width:2px; background:var(--off); transform:translateX(-1px);
  box-shadow:0 0 22px rgba(0,0,0,.7); z-index:3;
}
.ba__grip{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:52px; height:52px; border-radius:50%;
  border:1px solid rgba(243,240,233,.85); background:rgba(10,11,13,.55);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  display:grid; place-items:center; gap:0;
}
.ba__grip::before,.ba__grip::after{
  content:''; position:absolute; width:0; height:0;
  border-block:5px solid transparent;
}
.ba__grip::before{ left:14px; border-right:7px solid var(--off); }
.ba__grip::after{ right:14px; border-left:7px solid var(--off); }
.ba__tag{
  position:absolute; top:1rem; z-index:2;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 74,'wght' 600;
  font-size:.58rem; letter-spacing:.24em; text-transform:uppercase;
  padding:.42rem .8rem; background:rgba(10,11,13,.72); border:1px solid var(--rule);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.ba__tag--l{ left:1rem; color:#E5B3B3; }
.ba__tag--r{ right:1rem; color:var(--amber); }
.ba__hint{
  position:absolute; left:50%; bottom:1rem; transform:translateX(-50%); z-index:4;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 74,'wght' 500;
  font-size:.56rem; letter-spacing:.22em; text-transform:uppercase; color:rgba(243,240,233,.65);
  pointer-events:none; transition:opacity .5s;
}
.ba.is-touched .ba__hint{ opacity:0; }
.ba:focus-visible{ outline:2px solid var(--amber); outline-offset:4px; }

@media (max-width:640px){
  /* A 16:9 strip is only ~200px tall on a phone. Crop to a taller frame so the
     transformation is actually readable, and shorten the labels so the two
     tags cannot collide across a narrow viewport. */
  .ba{ aspect-ratio:5/4; }
  .ba__tag{ font-size:.5rem; letter-spacing:.16em; padding:.34rem .55rem; top:.7rem; }
  .ba__tag--l{ left:.7rem; } .ba__tag--r{ right:.7rem; }
  .ba__tag .long{ display:none; }
  .ba__grip{ width:44px; height:44px; }
}

/* ---------- 16. WHY US --------------------------------------------------- */
.why{ display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--rule); }
@media (max-width:960px){ .why{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .why{ grid-template-columns:1fr; } }
.why__i{
  padding:clamp(1.5rem,3vw,2.4rem) clamp(1.1rem,2.2vw,2rem) clamp(1.8rem,3vw,2.4rem) 0;
  border-bottom:1px solid var(--rule-soft); border-right:1px solid var(--rule-soft);
  position:relative;
}
.why__i:nth-child(3n){ border-right:0; }
@media (max-width:960px){ .why__i:nth-child(3n){ border-right:1px solid var(--rule-soft); } .why__i:nth-child(2n){ border-right:0; } }
@media (max-width:620px){ .why__i{ border-right:0; padding-right:0; } }
.why__n{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 68,'wght' 500;
  font-size:.6rem; letter-spacing:.2em; color:var(--amber); display:block; margin-bottom:1.1rem;
}
.why__t{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 96,'wght' 620;
  font-size:clamp(1.05rem,1.5vw,1.28rem); margin:0 0 .6rem; letter-spacing:-.012em;
}
.why__d{ color:var(--muted); font-size:.93rem; margin:0; max-width:34ch; }

/* ---------- 17. TEXAS MAP ------------------------------------------------ */
.map{ position:relative; display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(2rem,4vw,4rem); align-items:center; }
@media (max-width:960px){ .map{ grid-template-columns:1fr; } }
.map__stage{ position:relative; width:100%; }
.map__svg{ width:100%; height:auto; overflow:visible; }
.map__outline{
  fill:rgba(28,33,40,.72); stroke:rgba(198,185,162,.42); stroke-width:.55;
  stroke-linejoin:round;
  stroke-dasharray:420; stroke-dashoffset:420;
  transition:stroke-dashoffset 2.8s var(--ease-out);
}
.is-in .map__outline{ stroke-dashoffset:0; }

/* Cluster ring + leader line, drawn in SVG units so they scale with the map */
.map__ring{
  fill:none; stroke:var(--amber); stroke-width:.35; opacity:0;
  transition:opacity .8s var(--ease) .9s;
}
.map__ring--2{ stroke-width:.2; stroke-dasharray:1.2 1.6; opacity:0; transition-delay:1.15s; }
.is-in .map__ring{ opacity:.85; }
.is-in .map__ring--2{ opacity:.35; }
.map__leader{
  fill:none; stroke:rgba(198,185,162,.5); stroke-width:.28;
  stroke-dasharray:60; stroke-dashoffset:60;
  transition:stroke-dashoffset 1s var(--ease-out) 1.3s;
}
.is-in .map__leader{ stroke-dashoffset:0; }

.pin{ position:absolute; transform:translate(-50%,-50%); }
.pin__dot{
  display:block; width:7px; height:7px; border-radius:50%; background:var(--amber);
  box-shadow:0 0 8px 1px rgba(227,154,46,.5);
  opacity:0; transform:scale(.3);
  transition:opacity .6s var(--ease),transform .6s var(--ease-out);
}
.is-in .pin__dot{ opacity:1; transform:none; }
.is-in .pin--cluster:nth-child(1) .pin__dot{ transition-delay:.55s; }
.is-in .pin--cluster:nth-child(2) .pin__dot{ transition-delay:.65s; }
.is-in .pin--cluster:nth-child(3) .pin__dot{ transition-delay:.75s; }
.is-in .pin--cluster:nth-child(4) .pin__dot{ transition-delay:.85s; }
.is-in .pin--cluster:nth-child(5) .pin__dot{ transition-delay:.95s; }
.pin--cluster a{ display:block; padding:7px; margin:-7px; }        /* tap target */
.pin--cluster:hover .pin__dot,.pin--cluster a:focus-visible .pin__dot{
  transform:scale(1.5); box-shadow:0 0 14px 3px rgba(227,154,46,.75);
}
.pin--future .pin__dot{ background:var(--steel); box-shadow:none; opacity:.45; }

/* Per-pin name appears only on hover/focus, so the cluster never turns to mush */
.pin__tip{
  position:absolute; left:50%; bottom:calc(100% + 8px); transform:translateX(-50%);
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 76,'wght' 550;
  font-size:.58rem; letter-spacing:.14em; text-transform:uppercase; white-space:nowrap;
  color:#100D07; background:var(--amber); padding:.28rem .5rem;
  opacity:0; pointer-events:none; transition:opacity .25s var(--ease);
}
.pin--cluster:hover .pin__tip,.pin--cluster a:focus-visible .pin__tip{ opacity:1; }

.pin--label{ transform:translate(-100%,-50%); }
.pin__group{
  display:block; text-align:right; white-space:nowrap;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 80,'wght' 600;
  font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:var(--off);
  opacity:0; transform:translateX(8px);
  transition:opacity .6s var(--ease) .9s,transform .7s var(--ease-out) .9s;
}
.pin__group em{
  display:block; font-style:normal; margin-top:.35rem;
  font-variation-settings:'wdth' 74,'wght' 500; font-size:.56rem;
  letter-spacing:.18em; color:var(--amber);
}
.is-in .pin__group{ opacity:1; transform:none; }

.pin__label{
  position:absolute; left:13px; top:50%; transform:translateY(-50%);
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 76,'wght' 550;
  font-size:.58rem; letter-spacing:.15em; text-transform:uppercase;
  white-space:nowrap; color:var(--steel);
  opacity:0; transition:opacity .5s var(--ease) 1s;
}
.is-in .pin__label{ opacity:1; }
.pin--future .pin__label::after{ content:' · planned'; opacity:.65; }

@media (max-width:560px){
  .pin__group{ font-size:.6rem; }
  .pin__group em{ font-size:.5rem; }
}

.areas-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:.1rem 1.5rem; border-top:1px solid var(--rule); margin-top:1.8rem; }
.areas-list a{ display:flex; justify-content:space-between; align-items:center; padding:.7rem 0; border-bottom:1px solid var(--rule-soft); font-size:.9rem; color:#CFCCC4; transition:color .3s,padding-left .4s var(--ease); }
.areas-list a:hover{ color:var(--amber); padding-left:.5rem; }
.areas-list a span{ font-size:.62rem; letter-spacing:.14em; color:var(--steel); }

/* ---------- 18. REVIEWS -------------------------------------------------- */
.rev{ position:relative; min-height:clamp(320px,42vh,420px); display:flex; flex-direction:column; justify-content:center; }
.rev__slide{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center;
  opacity:0; visibility:hidden; transition:opacity .7s var(--ease),visibility .7s;
}
.rev__slide.is-on{ opacity:1; visibility:visible; position:relative; }
.rev__stars{ color:var(--amber); letter-spacing:.32em; font-size:1rem; margin-bottom:1.6rem; }
.rev__q{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 92,'wght' 500;
  font-size:clamp(1.35rem,3.4vw,2.6rem); line-height:1.24; letter-spacing:-.02em;
  color:var(--off); margin:0 0 1.8rem; max-width:22ch; text-wrap:balance;
}
@media (min-width:900px){ .rev__q{ max-width:18ch; } }
.rev__by{ font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 76,'wght' 550; font-size:.66rem; letter-spacing:.22em; text-transform:uppercase; color:var(--muted); }
.rev__by em{ display:block; font-style:normal; color:var(--steel); font-size:.58rem; margin-top:.4rem; letter-spacing:.16em; }
.rev__nav{ display:flex; align-items:center; gap:1rem; margin-top:2.4rem; }
.rev__btn{ width:42px; height:42px; border:1px solid var(--rule); display:grid; place-items:center; transition:border-color .4s,background .4s; }
.rev__btn:hover{ border-color:var(--amber); background:var(--amber-dim); }
.rev__btn svg{ width:14px; height:14px; }
.rev__count{ font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 72,'wght' 500; font-size:.62rem; letter-spacing:.2em; color:var(--steel); font-variant-numeric:tabular-nums; }

.platforms{ display:flex; flex-wrap:wrap; gap:.7rem; margin-top:2.6rem; padding-top:1.6rem; border-top:1px solid var(--rule-soft); }
.platform{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.55rem .95rem; border:1px solid var(--rule-soft);
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 76,'wght' 550;
  font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; color:var(--steel);
}
.platform.is-live{ color:#CFCCC4; border-color:var(--rule); }
.platform.is-live:hover{ border-color:var(--amber); color:var(--amber); }
.platform i{ width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.5; }
.platform.is-live i{ background:var(--amber); opacity:1; }

/* ---------- 19. GALLERY -------------------------------------------------- */
.gal__filters{ display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:clamp(1.6rem,3vw,2.4rem); }
.gal__f{
  padding:.55rem 1.05rem; border:1px solid var(--rule-soft);
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 78,'wght' 550;
  font-size:.63rem; letter-spacing:.17em; text-transform:uppercase; color:var(--muted);
  transition:color .35s,border-color .35s,background .35s;
}
.gal__f:hover{ color:var(--off); border-color:var(--rule); }
.gal__f.is-on{ color:#100D07; background:var(--amber); border-color:var(--amber); }

.gal__grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:clamp(.5rem,1vw,1rem); }
.gal__i{
  position:relative; overflow:hidden; background:var(--graphite);
  grid-column:span 4; aspect-ratio:4/3;
  transition:opacity .5s var(--ease),transform .6s var(--ease);
}
.gal__i:nth-child(1),.gal__i:nth-child(6){ grid-column:span 8; aspect-ratio:16/9; }
@media (max-width:900px){
  .gal__i{ grid-column:span 6; }
  .gal__i:nth-child(1),.gal__i:nth-child(6){ grid-column:span 12; }
}
@media (max-width:560px){ .gal__i,.gal__i:nth-child(1),.gal__i:nth-child(6){ grid-column:span 12; } }
.gal__i.is-hidden{ display:none; }
.gal__i img{ width:100%; height:100%; object-fit:cover; transition:transform 1.3s var(--ease-out),filter .7s; filter:saturate(.9); }
.gal__i:hover img{ transform:scale(1.055); filter:saturate(1.05); }
.gal__i figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:1.6rem 1.2rem .95rem;
  background:linear-gradient(180deg,transparent,rgba(10,11,13,.88));
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 78,'wght' 550;
  font-size:.62rem; letter-spacing:.17em; text-transform:uppercase; color:#D7D4CD;
  display:flex; justify-content:space-between; gap:1rem;
}
.gal__i figcaption span{ color:var(--amber); }

/* ---------- 20. FORM ----------------------------------------------------- */
.form{ display:grid; gap:1.15rem; }
.field{ position:relative; display:flex; flex-direction:column; gap:.5rem; }
.field label{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 76,'wght' 550;
  font-size:.62rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted);
}
.field label .req{ color:var(--amber); }
.field input,.field select,.field textarea{
  width:100%; min-height:54px; padding:.9rem 1rem;
  background:rgba(30,35,42,.55); color:var(--off);
  border:1px solid var(--rule); border-radius:0;
  font:inherit; font-size:1rem;
  transition:border-color .35s var(--ease),background .35s var(--ease);
  -webkit-appearance:none; appearance:none;
}
.field select{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23E39A2E' stroke-width='1.4'/></svg>");
  background-repeat:no-repeat; background-position:right 1rem center;
  padding-right:2.6rem;
}
.field input:hover,.field select:hover,.field textarea:hover{ border-color:rgba(243,240,233,.24); }
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--amber); background:rgba(30,35,42,.85); outline:none;
  box-shadow:0 0 0 1px var(--amber);
}
.field .err{
  font-size:.76rem; color:#F0846A; letter-spacing:.01em; min-height:0;
  opacity:0; transform:translateY(-4px); transition:opacity .3s,transform .3s;
}
.field.is-invalid input,.field.is-invalid select{ border-color:#C4553B; box-shadow:0 0 0 1px rgba(196,85,59,.5); }
.field.is-invalid .err{ opacity:1; transform:none; }
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:1.15rem; }
@media (max-width:640px){ .form__row{ grid-template-columns:1fr; } }
.form__note{ font-size:.76rem; color:var(--steel); margin:0; }
.form__ok{
  border:1px solid var(--amber); background:var(--amber-dim);
  padding:1.6rem; display:none;
}
.form__ok.is-on{ display:block; }
.form__ok h3{ font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 94,'wght' 650; font-size:1.3rem; margin:0 0 .5rem; }
.hp{ position:absolute; left:-9999px; opacity:0; height:0; width:0; }

/* ---------- 21. FINAL CTA ------------------------------------------------ */
.final{ position:relative; z-index:20; background:var(--ink); }
.final__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(2.5rem,6vw,6rem); align-items:start; }
@media (max-width:960px){ .final__grid{ grid-template-columns:1fr; } }
.final h2{ font-size:var(--fs-h1); margin-bottom:1.4rem; }
.final h2 .l2{ color:var(--amber); display:block; }

/* ---------- 22. EMERGENCY BAND ------------------------------------------- */
.emerg{
  position:relative; overflow:hidden;
  background:linear-gradient(120deg,#1A1206 0%,#241708 45%,#140E05 100%);
  border-block:1px solid rgba(227,154,46,.28);
}
.emerg::before{
  content:''; position:absolute; inset:0;
  background:repeating-linear-gradient(115deg,transparent 0 22px,rgba(227,154,46,.045) 22px 24px);
  pointer-events:none;
}
.emerg__inner{ position:relative; display:grid; grid-template-columns:1.2fr .8fr; gap:clamp(2rem,4vw,4rem); align-items:center; }
@media (max-width:860px){ .emerg__inner{ grid-template-columns:1fr; } }

/* ---------- 23. FOOTER --------------------------------------------------- */
.foot{ background:#07080A; border-top:1px solid var(--rule-soft); position:relative; z-index:20; }
.foot__top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:clamp(1.6rem,3vw,3rem); padding-block:clamp(3rem,6vh,4.5rem); }
@media (max-width:900px){ .foot__top{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .foot__top{ grid-template-columns:1fr; } }
.foot h4{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 74,'wght' 600;
  font-size:.6rem; letter-spacing:.24em; text-transform:uppercase; color:var(--amber);
  margin:0 0 1.2rem;
}
.foot a{ color:#A5A29B; font-size:.9rem; display:inline-block; padding:.28rem 0; transition:color .3s; }
.foot a:hover{ color:var(--off); }
.foot__bottom{
  display:flex; flex-wrap:wrap; gap:1rem 2rem; justify-content:space-between; align-items:center;
  padding-block:1.5rem; border-top:1px solid var(--rule-soft);
  font-size:.76rem; color:var(--steel);
}
.foot__disc{ font-size:.72rem; color:#5F656D; max-width:76ch; padding-bottom:1.6rem; line-height:1.65; }

/* ---------- 24. MOBILE STICKY CTA ---------------------------------------- */
.mcta{
  position:fixed; left:0; right:0; bottom:0; z-index:130;
  display:none; grid-template-columns:1fr 1fr;
  background:rgba(10,11,13,.94);
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  border-top:1px solid var(--rule);
  padding-bottom:env(safe-area-inset-bottom);
  transform:translateY(110%); transition:transform .55s var(--ease);
}
.mcta.is-on{ transform:none; }
.mcta a{
  display:flex; align-items:center; justify-content:center; gap:.55rem;
  min-height:58px; padding:0 .75rem;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 84,'wght' 620;
  font-size:.76rem; letter-spacing:.13em; text-transform:uppercase;
}
.mcta a:first-child{ color:var(--off); border-right:1px solid var(--rule); }
.mcta a:last-child{ background:var(--amber); color:#100D07; }
.mcta svg{ width:15px; height:15px; flex:none; }
@media (max-width:1080px){
  .mcta{ display:grid; }
  body{ padding-bottom:0; }
  .foot__bottom{ padding-bottom:5.5rem; }
}

/* ---------- 25. STAT COUNTERS -------------------------------------------- */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--rule-soft); border:1px solid var(--rule-soft); }
@media (max-width:760px){ .stats{ grid-template-columns:repeat(2,1fr); } }
.stat{ background:var(--ink); padding:clamp(1.4rem,2.6vw,2rem); }
.stat__v{
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 76,'wght' 700;
  font-size:clamp(1.8rem,3.6vw,2.9rem); line-height:1; color:var(--off);
  font-variant-numeric:tabular-nums; display:flex; align-items:baseline; gap:.1em;
}
.stat__v small{ font-size:.58em; color:var(--amber); font-variation-settings:'wdth' 74,'wght' 600; }
.stat__l{ font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 74,'wght' 500; font-size:.6rem; letter-spacing:.19em; text-transform:uppercase; color:var(--steel); margin-top:.85rem; }

/* ---------- 26. SUB-PAGE (services / areas) ------------------------------ */
.sub-hero{
  position:relative; min-height:clamp(420px,58vh,620px);
  display:flex; align-items:flex-end; padding-top:calc(var(--nav-h) + 3rem);
  padding-bottom:clamp(2.5rem,6vh,4.5rem);
  background:var(--ink);
  overflow:hidden;
}
.sub-hero__bg{ position:absolute; inset:0; }
.sub-hero__bg img{ width:100%; height:100%; object-fit:cover; opacity:.42; }
.sub-hero__bg::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(10,11,13,.75),rgba(10,11,13,.35) 45%,rgba(10,11,13,.96)); }
.sub-hero .wrap{ position:relative; }
.sub-hero h1{ font-size:var(--fs-h1); max-width:20ch; margin-bottom:1.2rem; }

.crumbs{ display:flex; flex-wrap:wrap; gap:.55rem; align-items:center; font-size:.68rem; letter-spacing:.13em; text-transform:uppercase; color:var(--steel); margin-bottom:1.5rem; }
.crumbs a:hover{ color:var(--amber); }
.crumbs span{ opacity:.4; }

.prose{ max-width:70ch; }
.prose h2{ font-size:var(--fs-h3); margin:2.6rem 0 1rem; font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 96,'wght' 650; }
.prose h3{ font-size:1.08rem; margin:1.8rem 0 .6rem; font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 92,'wght' 620; }
.prose p{ color:#B9B6AF; }
.prose ul.ticks li{ display:grid; grid-template-columns:auto 1fr; gap:.8rem; padding:.5rem 0; color:#B9B6AF; }
.prose ul.ticks svg{ width:14px; height:14px; color:var(--amber); margin-top:.42rem; }

.faq__i{ border-bottom:1px solid var(--rule-soft); }
.faq__q{
  width:100%; text-align:left; display:grid; grid-template-columns:1fr auto; gap:1.5rem; align-items:center;
  padding:1.2rem 0;
  font-family:'Archivo',sans-serif; font-variation-settings:'wdth' 94,'wght' 600;
  font-size:clamp(1rem,1.5vw,1.15rem); color:#CFCCC4; transition:color .35s;
}
.faq__q:hover{ color:var(--off); }
.faq__i.is-open .faq__q{ color:var(--amber); }
.faq__a{ overflow:hidden; height:0; transition:height .55s var(--ease-out); }
.faq__a p{ color:var(--muted); max-width:64ch; padding-bottom:1.3rem; margin:0; }

/* ---------- 27. REDUCED MOTION / FALLBACKS ------------------------------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  [data-reveal],.rise,.mask > *,.wipe,.line-draw{ opacity:1 !important; transform:none !important; clip-path:none !important; }
  .film__grain,.scroll-cue i::after{ display:none; }
  .film video.film__media{ display:none; }
}
html.no-motion .film__grain{ display:none; }
html.no-motion .film video{ display:none; }

/* Print — sensible, text-first */
@media print{
  .film,.hud,.mcta,.nav,.boot,.scroll-cue{ display:none !important; }
  body{ background:#fff; color:#000; }
  .panel{ background:none; }
}
