/* ==========================================================================
   Just Decks DMV — style.css
   Tokens first. Edit colors / type here, not in components.
   ========================================================================== */
:root {
  /* Palette from the job photos: fresh asphalt + safety-cone orange */
  --bg: #101214;              /* fresh blacktop */
  --bg-2: #171A1D;
  --bg-3: #22272C;
  --surface: #F3F0EA;
  --surface-2: #E6E1D7;
  --text: #15171A;
  --muted: #5A5F66;
  --on-dark: #F3F0EA;
  --on-dark-muted: rgba(243, 240, 234, .74);
  --accent: #C2410C;          /* cone orange: CTAs (white text 5.2:1) */
  --accent-hover: #9A3412;
  --accent-bright: #FF7A1A;   /* orange on asphalt backgrounds */
  --accent-2: #1F5F8B;        /* links */
  --line: rgba(21, 23, 26, .12);
  --line-dark: rgba(243, 240, 234, .14);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
  --step-4: clamp(3rem, 1.8rem + 5.6vw, 7rem);
  --step-5: clamp(3.4rem, 1.6rem + 8.4vw, 10rem);

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px; --space-9: 144px;

  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;

  --mbpx: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: .95; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.on-dark { color: var(--accent-bright); }
.h2 { font-size: var(--step-4); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.accent-text { color: var(--accent-bright); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform var(--dur) var(--ease-out), border-color var(--dur-fast) ease, color var(--dur-fast) ease;
  touch-action: manipulation; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-arrow svg { transition: transform var(--dur) var(--ease-out); }
.btn-arrow:hover svg { transform: translateX(4px); }
.btn-glass { --btn-bg: rgba(243, 240, 234, .1); --btn-fg: var(--on-dark); border-color: rgba(243, 240, 234, .28); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.btn-glass:hover { background: rgba(243, 240, 234, .2); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--text); border-color: rgba(21, 23, 26, .3); }
.btn-outline:hover { background: var(--text); color: var(--surface); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }

/* ---------- Logo (deck-plank mark + wordmark, layered so it can animate) ---------- */
.logo { --lfs: 16px; position: relative; display: inline-flex; align-items: center; gap: .55em; font-size: var(--lfs); color: var(--on-dark); line-height: 1; }
.logo-mark { width: 3.1em; height: auto; flex: none; overflow: visible; }
.logo-mark .pl { fill: currentColor; transform-box: fill-box; transform-origin: 50% 50%; }
.logo-mark .pl3 { opacity: .55; }
.logo-mark .pl2 { opacity: .8; }
.logo-mark .pl1 { fill: var(--accent-bright); opacity: 1; }
.logo-word { display: flex; flex-direction: column; gap: .18em; font-family: var(--font-display); text-transform: uppercase; }
.logo-word b { display: block; font-size: 2em; font-weight: 800; letter-spacing: .02em; line-height: .85; white-space: nowrap; }
.logo-word small { display: block; font-size: .78em; font-weight: 600; letter-spacing: .42em; opacity: .7; white-space: nowrap; }
.logo--dark { color: var(--text); }
.logo--dark .pl1 { fill: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  color: var(--on-dark);
  transition: background-color var(--dur) ease, backdrop-filter var(--dur) ease, box-shadow var(--dur) ease;
}
.nav.is-solid { background: rgba(16, 18, 20, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line-dark); }
@media (max-width: 767px) { .nav.is-solid { background: rgba(16, 18, 20, .96); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand .logo { --lfs: 13px; }
.brand .logo-mark .pl { transition: transform 600ms var(--ease-out); }
.brand:hover .pl3, .brand:focus-visible .pl3 { transform: translate(8%, -18%); }
.brand:hover .pl2, .brand:focus-visible .pl2 { transform: translate(4%, -8%); }
.nav.is-intro .brand .logo { opacity: 0; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--on-dark-muted); transition: color var(--dur-fast) ease; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--accent-bright); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--on-dark); }
.nav-links a[aria-current="true"]::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-phone svg { width: 18px; height: 18px; color: var(--accent-bright); }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(243,240,234,.08); color: var(--on-dark); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { position: relative; width: 20px; height: 2px; background: currentColor; transition: background-color var(--dur-fast); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg); color: var(--on-dark);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 32px;
  clip-path: circle(0% at calc(100% - 40px) 36px); visibility: hidden;
  transition: clip-path 600ms var(--ease-in-out), visibility 0s linear 600ms;
}
.nav-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; transition: clip-path 700ms var(--ease-in-out), visibility 0s; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 3.6rem); font-weight: 700; text-transform: uppercase; text-decoration: none; line-height: 1; border-bottom: 1px solid var(--line-dark); }
.mobile-menu nav a span { font-family: var(--font-body); font-size: .8rem; color: var(--accent-bright); font-weight: 700; }
.mobile-menu .mm-contact { display: grid; gap: 12px; margin-top: auto; }

.action-bar { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 185svh; background: var(--bg); color: var(--on-dark); }
.hero-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; overflow: hidden; background: var(--bg);
  clip-path: inset(0% 0% 0% 0% round 0px); will-change: clip-path, transform;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; transform-origin: 50% 50%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(16,18,20,.78) 0%, rgba(16,18,20,.35) 30%, rgba(16,18,20,.45) 60%, rgba(16,18,20,.94) 100%),
  radial-gradient(120% 80% at 20% 70%, rgba(16,18,20,.6), transparent 60%); }
.hero-shade-2 { position: absolute; inset: 0; background: var(--bg); opacity: 0; }

/* Layered photo stack: three cards at different depths, pulled apart by scroll */
.hero-stack { position: absolute; z-index: 1; right: clamp(20px, 4vw, 80px); top: 37%; width: clamp(190px, 19vw, 290px); aspect-ratio: 3 / 4; transform: translateY(-58%); perspective: 1400px; pointer-events: none; }
.hs { position: absolute; inset: 0; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(243,240,234,.12); will-change: transform; }
.hs img { width: 100%; height: 100%; object-fit: cover; }
.hs-1 { transform: translate3d(-46%, -14%, -220px) rotateY(18deg) rotateZ(-6deg); filter: brightness(.6); }
.hs-2 { transform: translate3d(-22%, 6%, -110px) rotateY(14deg) rotateZ(-2deg); filter: brightness(.8); }
.hs-3 { transform: translate3d(0, 0, 0) rotateY(10deg) rotateZ(3deg); }

.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(96px, 14vh, 150px); }
.hero-eyebrow { margin-bottom: var(--space-4); }
.hero-title { font-size: var(--step-5); line-height: .86; letter-spacing: -.005em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-top: var(--space-5); }
.hero-lede { max-width: 46ch; font-size: var(--step-1); color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { position: absolute; z-index: 2; left: 0; right: 0; bottom: 24px; }
.hero-badges ul { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .875rem; font-weight: 600; color: var(--on-dark-muted); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 16px; height: 16px; color: var(--accent-bright); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--line-dark); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent-bright); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- Ticker (scroll-driven, no autoplay) ---------- */
.ticker { position: relative; background: var(--bg); color: var(--on-dark); padding: 22px 0; overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.ticker-track { display: flex; gap: 48px; width: max-content; will-change: transform; }
.ticker-item { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ticker-item::after { content: ""; width: 10px; height: 10px; background: var(--accent-bright); transform: rotate(45deg); }
.ticker-item.is-dim { color: transparent; -webkit-text-stroke: 1px rgba(243,240,234,.5); }

/* ---------- Impact statement ---------- */
.impact { position: relative; height: 220svh; background: var(--bg); color: var(--on-dark); }
.impact-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.impact-text { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 1rem + 4.4vw, 5.6rem); line-height: .98; letter-spacing: .005em; max-width: 18ch; }
.impact-text .w { display: inline-block; opacity: .16; }
html:not(.anim) .impact-text .w { opacity: 1; }
.impact-meta { margin-top: var(--space-5); display: flex; align-items: center; gap: 14px; color: var(--on-dark-muted); font-weight: 600; }
.impact-meta .rule { width: 64px; height: 2px; background: var(--accent-bright); }

/* ---------- 3D Build section ---------- */
.build { position: relative; height: 480svh; background: var(--bg); color: var(--on-dark); }
.build-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1600px; }
/* Blurred copy of the clip fills the room behind the tilted phone-shaped card */
.build-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; filter: blur(36px) saturate(1.1); opacity: .45; }
.build-sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(16,18,20,.96) 0%, rgba(16,18,20,.7) 40%, rgba(16,18,20,.2) 75%); }
.build-stage {
  position: absolute; z-index: 2; right: clamp(120px, 15vw, 260px); top: 50%;
  height: min(78svh, 720px); aspect-ratio: 600 / 1066;
  border-radius: 30px; overflow: hidden; background: var(--bg-3);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(243,240,234,.14);
  transform: translateY(-50%) rotateY(-14deg) rotateX(4deg); transform-style: preserve-3d; will-change: transform;
}
.build-poster, .build-seq { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.build-poster { object-fit: cover; }
.build-seq { opacity: 0; transition: opacity 400ms ease; }
.build-stage.is-ready .build-seq { opacity: 1; }
.build-tag { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 9px 12px; border-radius: 12px; background: rgba(16,18,20,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); }
.build-ui { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); pointer-events: none; }
.build-ui * { pointer-events: auto; }
.build-head { max-width: 30rem; }
.build-head .h2 { font-size: var(--step-3); margin-top: var(--space-3); }
.build-steps { position: relative; margin-top: var(--space-6); max-width: 27rem; min-height: 12.5rem; }
.build-step { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity 450ms var(--ease-out), transform 650ms var(--ease-out), visibility 0s linear 450ms; }
.build-step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 450ms var(--ease-out), transform 650ms var(--ease-out), visibility 0s; }
.build-step .num { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-bright); }
.build-step h3 { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.8rem); margin: 6px 0 12px; }
.build-step p { color: var(--on-dark-muted); }
html:not(.anim) .build { height: auto; }
html:not(.anim) .build-sticky { position: relative; height: auto; min-height: 100svh; }
html:not(.anim) .build-steps { min-height: 0; display: grid; gap: var(--space-5); }
html:not(.anim) .build-step { position: relative; opacity: 1; visibility: visible; transform: none; }
.build-progress { position: absolute; z-index: 4; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.build-progress button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 32px; padding: 0; background: none; border: 0; color: var(--on-dark-muted); font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: .9rem; cursor: pointer; }
.build-progress button::after { content: ""; width: 26px; height: 2px; background: currentColor; transition: width var(--dur) var(--ease-out), background-color var(--dur) ease; }
.build-progress button.is-active { color: var(--on-dark); }
.build-progress button.is-active::after { width: 52px; background: var(--accent-bright); }
.build-bar { position: absolute; z-index: 4; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--line-dark); }
.build-bar i { display: block; height: 100%; width: 100%; background: var(--accent-bright); transform: scaleX(0); transform-origin: left; }

/* ---------- Section shell ---------- */
.section { padding-block: clamp(80px, 12vw, 160px); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(40px, 6vw, 80px); }
.section-head.split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: var(--space-6); }

/* ---------- Services (stacking cards) ---------- */
.services { background: var(--surface); }
.stack { display: grid; gap: 28px; }
.svc { position: sticky; top: calc(var(--nav-h) + 16px + var(--i, 0) * 14px); transform-origin: 50% 0%; }
.svc-card {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(78svh, 640px);
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(21,23,26,.35);
}
.svc:nth-child(even) .svc-card { background: var(--bg-2); color: var(--on-dark); }
.svc:nth-child(even) .svc-body p, .svc:nth-child(even) .svc-list li { color: var(--on-dark-muted); }
.svc-body { display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(28px, 4vw, 56px); }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.svc-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 2.4rem + 3vw, 5.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.svc:nth-child(even) .svc-num { -webkit-text-stroke-color: var(--accent-bright); }
.svc-tag { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; }
.svc:nth-child(even) .svc-tag { color: var(--on-dark-muted); }
.svc h3 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem); }
.svc-body p { color: var(--muted); max-width: 48ch; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: auto; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .9375rem; color: var(--text); }
.svc-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.svc:nth-child(even) .svc-list svg { color: var(--accent-bright); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.svc:nth-child(even) .btn-outline { --btn-fg: var(--on-dark); border-color: var(--line-dark); }
.svc:nth-child(even) .btn-outline:hover { background: var(--on-dark); color: var(--bg); }
.svc-media { position: relative; overflow: hidden; min-height: 280px; }
.svc-media-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 600ms var(--ease-out); }
.svc-media img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,18,20,.35), transparent 40%); pointer-events: none; }

/* ---------- Work gallery (horizontal on scroll) ---------- */
.work { position: relative; background: var(--bg); color: var(--on-dark); }
.work-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding-top: var(--nav-h); }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.work-head .h2 { font-size: var(--step-3); margin-top: 12px; }
.work-count { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .14em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.work-track { display: flex; gap: clamp(14px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.shot { position: relative; flex: none; width: clamp(240px, 28vw, 440px); height: clamp(320px, 60svh, 620px); margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.shot img { position: absolute; top: 0; left: -10%; width: 120%; height: 100%; max-width: none; object-fit: cover; }
.shot figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(16,18,20,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .875rem; font-weight: 700; }
.shot figcaption span { color: var(--accent-bright); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.work-note { color: var(--on-dark-muted); font-size: .875rem; }
html:not(.anim) .work-sticky { position: relative; height: auto; padding-block: 120px; }
html:not(.anim) .work-track { width: auto; flex-wrap: wrap; }

/* ---------- About ---------- */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-media { position: relative; aspect-ratio: 4 / 5; }
.about-media figure { position: absolute; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(21,23,26,.5); }
.about-media figure img { width: 100%; height: 100%; object-fit: cover; }
.about-media .m1 { inset: 0 18% 14% 0; }
.about-media .m2 { right: 0; bottom: 0; width: 52%; aspect-ratio: 3 / 4; border: 8px solid var(--surface); }
.license-badge { position: absolute; left: -12px; bottom: 6%; z-index: 2; display: grid; gap: 2px; padding: 16px 20px; border-radius: 16px; background: var(--accent); color: #fff; box-shadow: 0 20px 40px -20px rgba(194,65,12,.6); }
.license-badge b { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.05; letter-spacing: .04em; }
.license-badge small { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.about-copy .h2 { font-size: var(--step-3); margin: var(--space-3) 0 var(--space-4); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: var(--space-6); }
.pillar { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pillar svg { width: 26px; height: 26px; color: var(--accent); }
.pillar h3 { font-size: 1.45rem; margin: 12px 0 6px; }
.pillar p { font-size: .9375rem; color: var(--muted); line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--accent); color: #fff; overflow: hidden; padding-block: clamp(72px, 10vw, 140px); }
.cta-rows { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; opacity: .14; pointer-events: none; }
.cta-row { display: flex; gap: 40px; width: max-content; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(4rem, 3rem + 6vw, 10rem); line-height: .9; white-space: nowrap; will-change: transform; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); }
.cta-inner h2 { font-size: var(--step-4); max-width: 13ch; }
.cta-inner p { margin-top: 12px; font-size: var(--step-1); opacity: .92; max-width: 40ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { --btn-bg: var(--bg); }
.cta-band .btn:hover { background: #000; }
.cta-band .btn-glass { --btn-bg: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); }
.cta-band .btn-glass:hover { background: rgba(255,255,255,.24); }

/* ---------- Contact ---------- */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info .h2 { font-size: var(--step-3); margin: var(--space-3) 0 var(--space-4); }
.info-list { display: grid; gap: 4px; margin-top: var(--space-6); border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent); }
.info-row .ico svg { width: 20px; height: 20px; }
.info-row h3 { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; line-height: 1.4; }
.info-row a, .info-row .strong { color: var(--text); font-weight: 700; text-decoration-color: rgba(31,95,139,.35); text-underline-offset: 3px; }
.info-row a:hover { color: var(--accent-2); }
.info-row .tabular { font-variant-numeric: tabular-nums; }
.socials { display: flex; gap: 10px; margin-top: var(--space-5); }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.socials a:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.socials svg { width: 18px; height: 18px; }

.form-card { padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(21,23,26,.45); }
.form-logo { --lfs: 12px; margin-bottom: var(--space-4); }
.form-card h3 { font-size: 2.4rem; }
.form-card > p { color: var(--muted); margin: 8px 0 var(--space-5); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 700; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(21,23,26,.18); background: var(--surface);
  font-size: 1rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); background: #fff; box-shadow: 0 0 0 4px rgba(31,95,139,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B42318; }
.field .err { display: none; font-size: .8125rem; font-weight: 600; color: #B42318; }
.field.has-error .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: var(--space-5); }
.form-foot small { color: var(--muted); max-width: 34ch; }
.form-success { display: none; padding: 20px; border-radius: 14px; background: #EAF3EC; color: #1E4D2B; border: 1px solid #B9D8C1; margin-top: var(--space-4); }
.form-success.is-visible { display: block; }
.form-success b { display: block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: var(--on-dark); padding: clamp(64px, 8vw, 110px) 0 32px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .14em; color: var(--on-dark-muted); margin-bottom: 16px; }
.footer p, .footer li { color: var(--on-dark-muted); font-size: .9375rem; }
.footer ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color var(--dur-fast); }
.footer a:hover { color: var(--accent-bright); }
.footer .tabular { font-variant-numeric: tabular-nums; }
.footer-big { position: relative; margin: clamp(56px, 7vw, 110px) auto 0; width: min(100%, 980px); display: grid; justify-items: center; }
.footer-big .logo { --lfs: clamp(22px, 7.4vw, 72px); }
.footer-tag { margin-top: 22px; text-align: center; font-family: var(--font-display); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(.85rem, .6rem + .6vw, 1.15rem); color: var(--on-dark-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .875rem; color: var(--on-dark-muted); }

/* ---------- Intro: the planks lay down, then fly into the nav ---------- */
.intro { display: none; }
html.anim .intro.is-on { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); color: var(--on-dark); }
.intro-bg { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, #2A2F35 0%, var(--bg) 70%); }
.intro-logo { --lfs: clamp(18px, 4.6vw, 44px); transform-origin: 0 0; }
.intro-skip { position: absolute; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark-muted); font-weight: 600; cursor: pointer; }
.intro-skip:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.intro-line { position: absolute; left: 50%; bottom: 18%; width: min(240px, 50vw); height: 2px; transform: translateX(-50%); background: var(--line-dark); overflow: hidden; }
.intro-line i { display: block; height: 100%; background: var(--accent-bright); transform: scaleX(0); transform-origin: left; }

/* ---------- Motion helpers ---------- */
html { scroll-padding-top: var(--nav-h); }
html.anim [data-reveal] { opacity: 0; transform: translateY(40px); }
html.anim .hero-title .line > span { transform: translateY(110%); }
html.anim [data-hero-in] { opacity: 0; transform: translateY(24px); }
.blurring .mb { filter: url(#mblur); }
.touch.blurring .mb { filter: blur(var(--mbpx)); }
.skewer { position: absolute; inset: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .section-head.split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stack { width: clamp(180px, 20vw, 240px); top: 38%; }
}
@media (max-width: 900px) {
  .hero-stack { display: none; }
  .svc-card { grid-template-columns: 1fr; min-height: 0; }
  .svc-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .build-sticky::after { background: linear-gradient(180deg, rgba(16,18,20,.2) 0%, rgba(16,18,20,.55) 45%, rgba(16,18,20,.96) 70%); }
  .build-stage { right: auto; left: 50%; top: calc(var(--nav-h) + 60px); height: 42svh; border-radius: 22px; transform: translateX(-50%) rotateX(6deg); }
  .build-ui { justify-content: flex-end; padding-bottom: 56px; }
  .build-head .h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .build-steps { margin-top: var(--space-4); min-height: 11.5rem; }
  .build-step h3 { font-size: 2.3rem; margin: 2px 0 6px; }
  .build-step p { font-size: .975rem; }
  .build-progress { top: calc(var(--nav-h) + 16px); transform: none; display: flex; gap: 6px; left: var(--gutter); right: var(--gutter); justify-content: flex-start; }
  .build-progress button { font-size: .8rem; flex-direction: column-reverse; align-items: flex-start; gap: 6px; flex: 1; }
  .build-progress button::after, .build-progress button.is-active::after { width: 100%; }
}
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .nav-phone, .nav-cta .btn { display: none; }
  .brand .logo { --lfs: 11px; }
  .hero { height: 165svh; }
  .hero-copy { padding-bottom: 150px; }
  .hero-title { font-size: clamp(3.1rem, 15vw, 5rem); }
  .hero-lede { font-size: 1.0625rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-badges { bottom: 88px; }
  .hero-badges ul { gap: 6px 16px; font-size: .8125rem; }
  .scroll-cue { display: none; }
  .build-stage { height: 40svh; }
  .build-tag { left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; font-size: .6rem; letter-spacing: .08em; text-align: center; }
  .build-steps { min-height: 12.5rem; }
  .svc { top: calc(var(--nav-h) + 10px + var(--i, 0) * 8px); }
  .svc-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .shot { width: 72vw; height: 52svh; }
  .work-sticky { gap: 20px; }
  .work-head .h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .work-head { flex-direction: column; align-items: flex-start; }
  .action-bar {
    position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(16,18,20,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform 500ms var(--ease-out);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar .btn { min-height: 48px; padding: 12px 14px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero { height: 100svh; }
  .impact { height: auto; }
  .impact-sticky { position: relative; height: auto; padding-block: 120px; }
  .svc { position: relative; top: 0; }
}
