/* ==========================================================================
   SRI BALAJI SCAFFOLDING — "SCAFFOLD RISE" (homepage redesign)
   Dark cinematic system. Loaded by index.html only; the other four pages
   still run assets/css/style.css.

   Palette rules (WCAG AA checked against --void #07090C):
     --ink    #F2F4F8  17.4:1
     --ink-2  #A9B1BE  9.1:1
     --ink-3  #7E8798  5.6:1   (tertiary / mono labels)
     --amber  #FF7A1A  7.0:1   (accent + accent-as-text)
     black on amber button   7.0:1
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root {
  --void:      #07090C;
  --void-2:    #0A0D12;
  --panel:     #0E1218;
  --panel-2:   #131822;
  --line:      rgba(255, 255, 255, .085);
  --line-2:    rgba(255, 255, 255, .16);
  --grid:      rgba(255, 255, 255, .032);

  --ink:       #F2F4F8;
  --ink-2:     #A9B1BE;
  --ink-3:     #7E8798;

  --amber:     #FF7A1A;
  --amber-2:   #FFA055;
  --amber-dim: rgba(255, 122, 26, .14);
  --on-amber:  #0A0704;
  --steel:     #6FA8DC;
  --green:     #37D39B;

  --r:    10px;
  --r-lg: 18px;
  --pill: 999px;

  --sh-1: 0 1px 2px rgba(0,0,0,.5);
  --sh-2: 0 18px 44px -18px rgba(0,0,0,.85);
  --sh-glow: 0 0 0 1px rgba(255,122,26,.28), 0 14px 44px -14px rgba(255,122,26,.42);

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

  --gut: clamp(18px, 4vw, 40px);
  --sec: clamp(76px, 10vw, 150px);

  --font-d: "Archivo", "Inter", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ Lenis */
/* Lenis rewrites the scroll position on every animation frame. With the
   browser's own smooth scrolling still on, each of those writes kicks off a
   second ~500ms animation that the next frame interrupts: the page lurches
   backwards, crawls, then stops responding to the wheel entirely.
   Lenis puts `lenis` on <html>; while it owns the scrollbar native smoothing
   has to be off. Everything without the class — no-JS, dead failsafe,
   reduced motion — keeps the smooth rule above for anchor jumps. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: clamp(15px, .55vw + 13.6px, 16.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--amber); color: var(--on-amber); }

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

.container {
  width: min(1280px, 100% - var(--gut) * 2);
  margin-inline: auto;
}
.container--narrow { width: min(900px, 100% - var(--gut) * 2); }

/* ------------------------------------------------------------ accessibility */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--amber);
  color: var(--on-amber);
  font: 600 13px/1 var(--font-m);
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--pill);
  transform: translateY(-240%);
  transition: transform .28s var(--ease);
}
.skip-link:focus-visible { transform: none; outline-offset: 2px; }

#main:focus { outline: none; }

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

/* ------------------------------------------------------------- scroll bar */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 200;
  width: 100%; height: 2px;
  appearance: none;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.progress::-webkit-progress-bar { background: transparent; }
.progress::-webkit-progress-value { background: var(--amber); box-shadow: 0 0 12px rgba(255,122,26,.7); }
.progress::-moz-progress-bar      { background: var(--amber); }

/* ------------------------------------------------------------ utility bar */
.util {
  background: var(--void-2);
  border-bottom: 1px solid var(--line);
  font: 500 11px/1 var(--font-m);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  z-index: 60;
}
.util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.util-left, .util-right { display: flex; align-items: center; gap: 12px; }
.util a { color: var(--ink-2); transition: color .2s var(--ease); }
.util a:hover { color: var(--amber); }
.util-sep { opacity: .4; }
.util-show-sm { display: none; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(55,211,155,.55);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(55,211,155,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(55,211,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(55,211,155,0); }
}

/* ---------------------------------------------------------------- header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 12, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); background: rgba(7,9,12,.9); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  min-height: 74px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--amber);
  border-radius: 9px;
  color: var(--amber);
  font: 800 15px/1 var(--font-d);
  letter-spacing: .02em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.logo:hover .logo-mark { background: var(--amber); color: var(--on-amber); }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-name { font: 800 15.5px/1.1 var(--font-d); letter-spacing: -.02em; }
.logo-sub {
  font: 500 9.5px/1 var(--font-m);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.header-phone .mono {
  font: 500 9.5px/1 var(--font-m);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.header-phone strong { font: 700 15px/1.2 var(--font-d); letter-spacing: -.01em; }
.header-phone:hover strong { color: var(--amber); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
}
.burger span {
  display: block; height: 1.7px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }

/* --------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: var(--amber);
  color: var(--on-amber);
  font: 700 15px/1 var(--font-d);
  letter-spacing: -.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-glow); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 17px 32px; font-size: 16.5px; }
.btn--full { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost::after { background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.12) 50%, transparent 80%); }
.btn--ghost:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.34); box-shadow: none; }

.btn--dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--dark:hover { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }

/* ----------------------------------------------------------- text helpers */
.mono {
  font-family: var(--font-m);
  font-size: .72em;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 11.5px/1 var(--font-m);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: clamp(26px, 4vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
  transform-origin: left;
}

.h2 {
  font-size: clamp(2.05rem, 4.4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -.035em;
  font-stretch: 112%;
  line-height: 1.02;
}
.h2 em, .h2 .accent { font-style: normal; color: var(--amber); }

.lead {
  font-size: clamp(1.02rem, .5vw + .92rem, 1.24rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 60ch;
}
.lead strong { color: var(--ink); font-weight: 650; }

.section { padding: var(--sec) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 68px); display: grid; gap: 18px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.rule {
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
}
.js .rule { will-change: transform; }

/* ============================================================ HERO */
.hero {
  position: relative;
  padding: clamp(56px, 8vh, 104px) 0 clamp(48px, 6vh, 76px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(255,122,26,.15), transparent 62%),
    radial-gradient(900px 700px at 8% 92%, rgba(111,168,220,.09), transparent 65%),
    linear-gradient(var(--void), var(--void));
}
.hero::after {
  content: "";
  position: absolute; inset: -1px;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 95% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 95% at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: rgba(255,255,255,.035);
  font: 500 11px/1 var(--font-m);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.6rem, 6.6vw, 5.5rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: .96;
  letter-spacing: -.04em;
}
.hero h1 .accent {
  color: var(--amber);
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: .07em;
  width: 100%; height: .085em;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}
.js .hero h1 .accent.is-drawn::after { animation: drawUnderline .85s var(--ease-out) forwards; }
@keyframes drawUnderline { to { transform: scaleX(1); } }

.hero-lead { margin-top: 26px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-trust svg { width: 15px; height: 15px; color: var(--amber); flex: none; }

/* hero media --------------------------------------------------------- */
.hero-media { position: relative; }

.hero-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
  background: var(--panel);
  aspect-ratio: 4 / 3.05;
}
.hero-frame picture, .hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-frame img { transform: scale(1.06); }
.js .hero-frame .clip { position: absolute; inset: 0; overflow: hidden; }

.hero-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(7,9,12,.72));
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  background: rgba(7,9,12,.66);
  backdrop-filter: blur(10px);
}
.hero-tag .mono { color: var(--ink-3); font-size: 9.5px; letter-spacing: .2em; }
.hero-tag strong { font: 700 14.5px/1.2 var(--font-d); }

.tick { position: absolute; width: 16px; height: 16px; z-index: 3; pointer-events: none; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--amber); }
.tick::before { width: 100%; height: 1.5px; }
.tick::after  { width: 1.5px; height: 100%; }
.tick.tl { top: 12px; left: 12px; }
.tick.tr { top: 12px; right: 12px; transform: scaleX(-1); }
.tick.bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.tick.br { bottom: 12px; right: 12px; transform: scale(-1); }

.hero-float {
  position: absolute;
  top: -18px; right: -10px;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  border-radius: var(--r);
  background: var(--amber);
  color: var(--on-amber);
  box-shadow: 0 22px 46px -18px rgba(255,122,26,.65);
}
.hero-float .mono { font-size: 9.5px; letter-spacing: .18em; opacity: .78; }
.hero-float strong { font: 900 25px/1 var(--font-d); letter-spacing: -.03em; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(255,255,255,.03);
  font: 500 11px/1 var(--font-m);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(40px, 6vh, 64px);
  font: 500 10.5px/1 var(--font-m);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.scroll-cue i {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(var(--amber), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  animation: cueRun 2.1s var(--ease) infinite;
}
@keyframes cueRun {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================== STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel), var(--void-2));
  overflow: hidden;
}
.stat {
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 34px);
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}
.stat.is-in::before { transition: transform .7s var(--ease-out); transform: scaleX(1); }

.stat-val {
  font: 900 clamp(2.1rem, 4vw, 3.4rem)/1 var(--font-d);
  font-stretch: 115%;
  letter-spacing: -.045em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.stat-val .suf { color: var(--amber); font-size: .62em; margin-left: 2px; }
.stat-lbl {
  display: block;
  margin-top: 10px;
  font: 500 10.5px/1.5 var(--font-m);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================== MARQUEE */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--void-2);
  overflow: hidden;
  padding: 17px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track ul { display: flex; align-items: center; }
.ticker-track li {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font: 800 clamp(13px, 1.1vw, 15.5px)/1 var(--font-d);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker-track li::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--amber);
  transform: rotate(45deg);
  flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================== BENTO */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
}
.tile {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease-out), border-color .4s var(--ease), box-shadow .45s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(255,122,26,.16), transparent 70%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.tile:hover {
  transform: translateY(-5px);
  border-color: rgba(255,122,26,.42);
  box-shadow: 0 26px 54px -26px rgba(0,0,0,.9);
}
.tile:hover::before { opacity: 1; }

.tile--wide { grid-column: span 3; }
.tile--tall { grid-column: span 3; }
.tile--xl   { grid-column: span 4; }
.tile--sm   { grid-column: span 2; }

.tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tile-ico {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
  color: var(--amber);
  flex: none;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease-out);
}
.tile-ico svg { width: 23px; height: 23px; }
.tile:hover .tile-ico { background: var(--amber); border-color: var(--amber); color: var(--on-amber); transform: rotate(-6deg) scale(1.06); }

.tile-num {
  font: 500 11px/1 var(--font-m);
  letter-spacing: .16em;
  color: var(--ink-3);
  padding-top: 6px;
}
.tile h3 { font-size: clamp(1.15rem, 1.5vw, 1.42rem); font-weight: 800; letter-spacing: -.025em; }
.tile p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.tile-flag {
  position: absolute;
  top: 0; right: clamp(24px, 2.4vw, 34px);
  padding: 6px 13px;
  background: var(--amber);
  color: var(--on-amber);
  border-radius: 0 0 var(--r) var(--r);
  font: 700 9.5px/1 var(--font-m);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tile-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tile-rate { font-size: 13.5px; color: var(--ink-3); }
.tile-rate b {
  color: var(--amber);
  font: 800 19px/1 var(--font-d);
  letter-spacing: -.02em;
  margin-right: 2px;
}
.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 13.5px/1 var(--font-d);
  color: var(--ink);
  transition: gap .3s var(--ease-out), color .3s var(--ease);
}
.tile-link svg { width: 15px; height: 15px; transition: transform .35s var(--ease-out); }
.tile:hover .tile-link { color: var(--amber); gap: 11px; }
.tile:hover .tile-link svg { transform: translateX(3px); }

/* ========================================================== BUILD (pinned) */
.build {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 30%, rgba(255,122,26,.08), transparent 60%),
    var(--void-2);
  border-block: 1px solid var(--line);
}
.build-pin {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
  min-height: 100svh;
  padding: clamp(50px, 7vh, 90px) 0;
}

.build-steps { position: relative; display: grid; gap: clamp(26px, 4vh, 44px); }
.build-step {
  display: grid;
  align-content: center;
  gap: 16px;
}
/* rise.js promotes these to an absolutely-stacked stack only when it pins
   the section on desktop; otherwise they read as a normal list. */
.build-steps.is-pinned { display: block; margin-bottom: 76px; }
.build-steps.is-pinned .build-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
.build-steps.is-pinned .build-step.is-active { opacity: 1; visibility: visible; }
.build-step-num {
  font: 900 clamp(3.4rem, 8vw, 6.6rem)/.85 var(--font-d);
  font-stretch: 120%;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,122,26,.9);
}
.build-step h3 { font-size: clamp(1.6rem, 2.9vw, 2.5rem); letter-spacing: -.035em; }
.build-step p { color: var(--ink-2); font-size: clamp(1rem, .4vw + .94rem, 1.14rem); max-width: 46ch; }

.build-rail {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: clamp(26px, 4vh, 44px);
}
/* once pinned every .build-step is out of flow, so the rail would collapse
   onto the top of the stack — park it just under the wrapper instead. */
.build-steps.is-pinned .build-rail {
  display: flex;
  position: absolute;
  left: 0; right: 0;
  bottom: -56px;
  margin-top: 0;
}
.build-rail i {
  display: block;
  height: 3px;
  flex: 1;
  background: var(--line-2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.build-rail i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}
.build-rail i.is-done::after { transform: scaleX(1); transition: transform .5s var(--ease-out); }
.build-rail span {
  font: 500 10.5px/1 var(--font-m);
  letter-spacing: .16em;
  color: var(--ink-3);
}

.build-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.028), transparent);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  padding: clamp(14px, 2vw, 26px);
  overflow: hidden;
}
.build-stage::after {
  content: "SCAFFOLD ELEVATION — DWG 05";
  position: absolute;
  top: 14px; right: 16px;
  font: 500 9.5px/1 var(--font-m);
  letter-spacing: .18em;
  color: var(--ink-3);
  opacity: .75;
}
.sc { width: 100%; height: auto; display: block; }

/* butt caps: with dasharray == path length a square cap leaves a visible
   dot at every undrawn element */
.sc-draw { fill: none; stroke-linecap: butt; }
.sc-g-ghost line { stroke: rgba(255,255,255,.07); stroke-width: 3.4; stroke-linecap: square; }
.sc-std  { stroke: rgba(255,255,255,.42); stroke-width: 3.4; }
.sc-led  { stroke: rgba(255,255,255,.30); stroke-width: 2.6; }
.sc-brace{ stroke: var(--amber); stroke-width: 2.4; opacity: .95; }
.sc-plank{ fill: rgba(255,122,26,.18); stroke: var(--amber); stroke-width: 1.4; }
.sc-rail { stroke: rgba(255,255,255,.5); stroke-width: 2.4; }
.sc-base { fill: rgba(255,255,255,.14); }
.sc-lad  { stroke: rgba(255,255,255,.28); stroke-width: 2; }
.sc-note {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: .14em;
  fill: var(--ink-3);
  text-transform: uppercase;
}
.sc-note--hot { fill: var(--amber); }

/* ============================================================ SPEC TABLE */
.spec {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
}
.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px clamp(18px, 2vw, 28px);
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.spec-title { font: 700 15px/1.2 var(--font-d); letter-spacing: -.01em; }
.spec-head .mono { color: var(--ink-3); font-size: 10.5px; }

.spec-scroll { overflow-x: auto; }
.spec table { width: 100%; border-collapse: collapse; min-width: 640px; }
.spec th, .spec td {
  padding: 15px clamp(18px, 2vw, 28px);
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec th {
  font: 500 10.5px/1 var(--font-m);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(255,255,255,.02);
}
.spec td:first-child { font-weight: 650; color: var(--ink); white-space: nowrap; }
.spec td:nth-child(2) { color: var(--ink-2); font-family: var(--font-m); font-size: 13px; }
.spec td:last-child  { color: var(--ink-3); }
.spec tbody tr { transition: background .25s var(--ease); }
.spec tbody tr:hover { background: rgba(255,122,26,.06); }
.spec tbody tr:last-child td { border-bottom: 0; }

.spec-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: 13px;
  color: var(--ink-3);
}
.spec-note svg { flex: none; color: var(--amber); }

/* =============================================================== SPLIT */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
  background: var(--panel);
}
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(210deg, transparent 45%, rgba(7,9,12,.6));
  pointer-events: none;
}
.media-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  background: rgba(7,9,12,.7);
  backdrop-filter: blur(10px);
}
.media-badge b { font: 900 27px/1 var(--font-d); color: var(--amber); letter-spacing: -.03em; }
.media-badge span {
  font: 500 10px/1.3 var(--font-m);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.feature-list { display: grid; gap: 4px; margin-top: 32px; }
.feature-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.feature-item:last-child { border-bottom: 1px solid var(--line); }
.feature-ico {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--amber);
  background: rgba(255,122,26,.07);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.feature-ico svg { width: 21px; height: 21px; }
.feature-item:hover .feature-ico { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.feature-item h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.02em; }
.feature-item p { font-size: 14.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.55; }

/* ============================================================ EQUIP ROWS */
.equip-list { display: grid; gap: 0; margin-top: 30px; }
.equip-row {
  display: flex;
  gap: 20px;
  padding: 19px 4px;
  border-top: 1px solid var(--line);
  transition: padding-left .35s var(--ease-out), background .35s var(--ease);
}
.equip-row:last-child { border-bottom: 1px solid var(--line); }
.equip-row:hover { padding-left: 14px; background: rgba(255,255,255,.022); }
.equip-row > .mono { color: var(--amber); font-size: 11px; padding-top: 5px; flex: none; }
.equip-row h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.equip-row p { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; }

/* =============================================================== AREAS */
.areas-band {
  border-block: 1px solid var(--line);
  background: var(--void-2);
  padding: clamp(46px, 6vw, 76px) 0;
  overflow: hidden;
}
.area-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.area-marquee + .area-marquee { margin-top: 14px; }
.area-track {
  display: flex;
  width: max-content;
  gap: 12px;
  will-change: transform;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(255,255,255,.032);
  font: 500 13.5px/1 var(--font-b);
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.area-chip::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--amber);
  transform: rotate(45deg);
  opacity: .6;
}
.area-chip:hover { border-color: var(--amber); color: var(--ink); background: var(--amber-dim); }
.area-chip--all {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
}
.area-chip--all::before { background: var(--on-amber); opacity: .55; }

/* ============================================================== REVIEWS */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.4vw, 20px); }
.review {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  transition: transform .45s var(--ease-out), border-color .4s var(--ease);
}
.review:hover { transform: translateY(-4px); border-color: rgba(255,122,26,.36); }
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars svg { width: 16px; height: 16px; }
.review blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.reviewer { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,122,26,.14);
  border: 1px solid rgba(255,122,26,.4);
  color: var(--amber);
  font: 700 13.5px/1 var(--font-d);
  flex: none;
}
.reviewer strong { display: block; font: 700 14.5px/1.25 var(--font-d); }
/* scope past .avatar — a bare `.reviewer span` would win on specificity and
   flatten the avatar's display:grid back to block */
.reviewer > div span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ================================================================= FAQ */
.faq { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.faq-item[open] { border-color: rgba(255,122,26,.4); background: var(--panel-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(18px, 2vw, 26px);
  cursor: pointer;
  font: 700 clamp(1rem, 1.1vw, 1.12rem)/1.4 var(--font-d);
  letter-spacing: -.02em;
  list-style: none;
  transition: color .3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--amber); }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background:
    linear-gradient(var(--amber), var(--amber)) center/12px 1.6px no-repeat,
    linear-gradient(var(--amber), var(--amber)) center/1.6px 12px no-repeat;
  transition: transform .4s var(--ease-out), background-color .35s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--amber);
  background-image:
    linear-gradient(var(--on-amber), var(--on-amber)),
    linear-gradient(var(--on-amber), var(--on-amber));
}
.faq-body { padding: 0 clamp(18px, 2vw, 26px) 22px; }
.faq-body p { color: var(--ink-2); font-size: 15.5px; max-width: 74ch; }

/* ================================================================= CTA */
.cta-card {
  position: relative;
  padding: clamp(40px, 6vw, 78px) clamp(24px, 4vw, 64px);
  border: 1px solid rgba(255,122,26,.3);
  border-radius: calc(var(--r-lg) + 6px);
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(255,122,26,.18), transparent 65%),
    linear-gradient(160deg, var(--panel-2), var(--void-2));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent);
}
.cta-card h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-stretch: 112%;
  letter-spacing: -.04em;
  margin-inline: auto;
  max-width: 18ch;
}
.cta-card p {
  margin: 20px auto 0;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: clamp(1rem, .4vw + .94rem, 1.14rem);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.cta-meta li {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 500 12px/1 var(--font-m);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cta-meta svg { width: 15px; height: 15px; color: var(--amber); flex: none; }

/* ============================================================== FOOTER */
.footer {
  border-top: 1px solid var(--line);
  background: var(--void-2);
  padding: clamp(50px, 6vw, 82px) 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 54px);
}
.footer-brand p {
  margin: 20px 0 24px;
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 40ch;
}
.footer h3 {
  font: 500 10.5px/1 var(--font-m);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: 14.5px; color: var(--ink-2); transition: color .25s var(--ease), padding-left .3s var(--ease-out); }
.footer-links a:hover { color: var(--amber); padding-left: 6px; }
.footer-contact { display: grid; gap: 11px; font-size: 14.5px; color: var(--ink-2); }
.footer-contact a { transition: color .25s var(--ease); }
.footer-contact a:hover { color: var(--amber); }
.footer-phone { font: 800 20px/1.2 var(--font-d); color: var(--ink) !important; letter-spacing: -.02em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(38px, 5vw, 62px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { transition: color .25s var(--ease); }
.footer-bottom a:hover { color: var(--amber); }

/* ======================================================= STICKY CTA PILL */
.callpill {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 22px;
  border: 1px solid rgba(255,122,26,.45);
  border-radius: var(--pill);
  background: rgba(10, 13, 18, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,.95);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .55s var(--ease-out), opacity .4s var(--ease);
}
.callpill.is-shown { transform: none; opacity: 1; }
.callpill-label { display: flex; flex-direction: column; gap: 1px; }
.callpill-label .mono { font-size: 9.5px; letter-spacing: .17em; color: var(--ink-3); }
.callpill-label strong { font: 700 14.5px/1.15 var(--font-d); }
.callpill .btn { padding: 12px 20px; font-size: 14.5px; }

/* ========================================================= MOBILE PANEL */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 18px var(--gut) 26px;
  background: var(--void);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .55s var(--ease-out), visibility .55s;
}
.nav-panel[data-open="true"] { transform: none; visibility: visible; }
.nav-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-panel-close {
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: transparent;
  font-size: 17px;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav-panel-close:hover { background: rgba(255,255,255,.06); border-color: var(--amber); }

.nav-panel nav { display: grid; gap: 2px; margin-top: clamp(28px, 6vh, 54px); }
.nav-panel nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font: 800 clamp(1.5rem, 7vw, 2.1rem)/1.15 var(--font-d);
  letter-spacing: -.03em;
  transition: color .3s var(--ease), padding-left .35s var(--ease-out);
}
.nav-panel nav a span {
  font: 500 10.5px/1 var(--font-m);
  letter-spacing: .18em;
  color: var(--ink-3);
}
.nav-panel nav a:hover { color: var(--amber); padding-left: 10px; }

.nav-panel-foot { margin-top: auto; display: grid; gap: 16px; padding-top: 26px; }
.nav-panel-foot .mono { color: var(--ink-3); font-size: 10.5px; letter-spacing: .16em; }

/* ======================================================== MOBILE CALLBAR */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  gap: 10px;
  padding: 11px var(--gut) calc(11px + env(safe-area-inset-bottom));
  background: rgba(7, 9, 12, .93);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.callbar .btn { width: auto; min-width: 0; flex: 1 1 auto; }
.callbar .btn--ghost { flex: 0 0 auto; }

/* ============================================================ SPLIT TEXT */
.js [data-split] .lm {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* keeps descenders + the accent underline from being clipped */
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.js [data-split] .lm > i {
  display: block;
  font-style: inherit;
  transform: translateY(118%);
  will-change: transform;
}
.rise-dead [data-split] .lm > i { transform: none !important; }

/* generic scroll reveal (JS-driven, no dead zone) */
.js [data-rise] { opacity: 0; transform: translateY(26px); }
.rise-dead [data-rise] { opacity: 1 !important; transform: none !important; }

/* ========================================================== RESPONSIVE */
@media (max-width: 1180px) {
  .header-phone { display: none; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { order: -1; }
  .hero h1 { font-size: clamp(2.4rem, 8.4vw, 4.2rem); }
  .build-pin { grid-template-columns: 1fr; min-height: 0; }
  .build-stage { order: -1; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile, .tile--sm { grid-column: span 2; }
  .tile--wide, .tile--tall, .tile--xl { grid-column: span 4; }
  .reviews { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 768px) {
  .util-hide { display: none; }
  /* the fixed .callbar owns the CTA from here down; the header one only
     pushes past the viewport on 320–414px phones */
  .header-cta { display: none; }
  .burger { margin-left: auto; }
  .callbar { display: flex; }
  .callpill { display: none; }
  body { padding-bottom: 76px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--sm, .tile--wide, .tile--tall, .tile--xl { grid-column: span 2; }
  .hero-float { top: -14px; right: 0; padding: 11px 16px; }
  .hero-float strong { font-size: 21px; }
}

@media (max-width: 640px) {
  .util-hide-sm { display: none; }
  .util-show-sm { display: inline; }
  .d-br { display: none; }
  .header-inner { min-height: 64px; }
  .logo-sub { display: none; }
  .hero-trust { gap: 9px 18px; }
  .hero-trust li { font-size: 13px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--sm, .tile--wide, .tile--tall, .tile--xl { grid-column: span 1; }
  .hero-meta { gap: 8px; }
  .hero-meta span { font-size: 10px; padding: 6px 11px; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-split] .lm > i { transform: none !important; }
  .js [data-rise] { opacity: 1 !important; transform: none !important; }
  .rule { transform: scaleX(1) !important; }
  .hero h1 .accent::after { transform: scaleX(1) !important; }
  .scroll-cue { display: none; }
  .build-step { position: relative !important; opacity: 1 !important; visibility: visible !important; }
}

/* ------------------------------------------------------------- no motion */
.rise-dead [data-rise] { opacity: 1 !important; transform: none !important; }
.rise-dead .rule { transform: scaleX(1) !important; }
.rise-dead .build-step { position: relative; opacity: 1; visibility: visible; }


/* ------------------------------------------------- dead-switch overrides */
/* rise.js writes inline styles (clip-path, stroke-dashoffset, opacity) as it
   animates. If it dies mid-flight the 3s failsafe flips .rise-dead on and
   these must win back over those inline values. */
.rise-dead .hero-frame { clip-path: none !important; -webkit-clip-path: none !important; }
.rise-dead .hero-frame img { transform: none !important; }
.rise-dead .hero-float,
.rise-dead .scroll-cue { opacity: 1 !important; transform: none !important; }
.rise-dead .hero h1 .accent::after { transform: scaleX(1) !important; }
.rise-dead .stat::before { transform: scaleX(1) !important; }
.rise-dead .sc-draw { stroke-dashoffset: 0 !important; }
.rise-dead .sc-g-base,
.rise-dead .sc-g-plank,
.rise-dead .sc-g-note { opacity: 1 !important; }
.rise-dead .sc-plank { transform: none !important; }
.rise-dead .build-rail i { opacity: .3 !important; }
.rise-dead .build-rail i.is-done { opacity: 1 !important; }