/* ==========================================================================
   R.A.C Carpentry & Joinery
   Direction: workshop-industrial. Van black, ply white, one voltage green.
   ========================================================================== */

:root {
  --ink: #0A0A09;
  --ink-2: #131311;
  --ink-3: #1D1D1A;
  --paper: #F3F1EA;
  --paper-2: #E7E4DA;
  --volt: #3DF06B;
  --volt-deep: #1FC24C;
  --dust: #C99A5E;
  --muted-d: #A29F95;   /* muted text on ink   (AA) */
  --muted-l: #57554E;   /* muted text on paper (AA) */
  --line-d: rgba(243, 241, 234, 0.14);
  --line-l: rgba(10, 10, 9, 0.16);

  --f-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --step--2: clamp(0.69rem, 0.66rem + 0.18vw, 0.80rem);
  --step--1: clamp(0.83rem, 0.78rem + 0.29vw, 1.00rem);
  --step-0:  clamp(1.00rem, 0.91rem + 0.43vw, 1.25rem);
  --step-1:  clamp(1.20rem, 1.07rem + 0.63vw, 1.56rem);
  --step-2:  clamp(1.44rem, 1.26rem + 0.89vw, 1.95rem);
  --step-3:  clamp(1.73rem, 1.48rem + 1.24vw, 2.44rem);
  --step-4:  clamp(2.07rem, 1.73rem + 1.70vw, 3.05rem);
  --display: clamp(3.2rem, 1.2rem + 8.4vw, 10.5rem);

  --space-2xs: clamp(0.50rem, 0.46rem + 0.22vw, 0.63rem);
  --space-xs:  clamp(0.75rem, 0.68rem + 0.33vw, 0.94rem);
  --space-s:   clamp(1.00rem, 0.91rem + 0.43vw, 1.25rem);
  --space-m:   clamp(1.50rem, 1.37rem + 0.65vw, 1.88rem);
  --space-l:   clamp(2.00rem, 1.83rem + 0.87vw, 2.50rem);
  --space-xl:  clamp(3.00rem, 2.74rem + 1.30vw, 3.75rem);
  --space-2xl: clamp(4.00rem, 3.65rem + 1.74vw, 5.00rem);
  --space-3xl: clamp(6.00rem, 5.48rem + 2.61vw, 7.50rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.65, 0.01, 0.05, 0.99);
  --ease-snap: cubic-bezier(0.85, 0, 0.15, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 100;
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  background: var(--volt); color: var(--ink); padding: .6rem 1rem;
  font-family: var(--f-mono); font-size: var(--step--1);
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- Shared type ---------- */
.serif, em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-variation-settings: normal; text-transform: none; }

.display {
  font-size: var(--display);
  font-weight: 850;
  font-variation-settings: 'wdth' 118;
  line-height: .86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.display .serif, .display em { font-size: 1.12em; line-height: .7; letter-spacing: -0.02em; }

.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }

.label, .overline {
  font-family: var(--f-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label { color: var(--muted-l); }
.label--light { color: var(--muted-d); }
.label--ink { color: var(--ink); opacity: .72; }

/* Directional underline links */
.u-link { position: relative; display: inline-block; }
.u-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
@media (hover: hover) { .u-link:hover::after { transform: scaleX(1); transform-origin: left; } }
.u-link:focus-visible::after { transform: scaleX(1); }

/* Text-swap (label slides out, twin slides in) */
.swap { position: relative; display: inline-grid; overflow: hidden; }
.swap > span { grid-area: 1 / 1; transition: transform .5s var(--ease-out); }
.swap > span:nth-child(2) { transform: translateY(110%); }
@media (hover: hover) {
  a:hover > .swap > span:first-child, button:hover > .swap > span:first-child { transform: translateY(-110%); }
  a:hover > .swap > span:nth-child(2), button:hover > .swap > span:nth-child(2) { transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--paper); --bd: currentColor;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: .9rem;
  min-height: 3.6rem; padding: 0 1.6rem;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd); border-radius: 999px;
  font-family: var(--f-mono); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; white-space: nowrap;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--paper));
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
@media (hover: hover) { .btn:hover::before { transform: translateY(0); } }
.btn:active { transform: scale(.97); }
.btn__arrow { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .45s var(--ease-out); }
@media (hover: hover) { .btn:hover .btn__arrow { transform: translateX(4px) rotate(-45deg); } }

.btn--volt { --bg: var(--volt); --fg: var(--ink); --bd: var(--volt); --fill: var(--paper); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.btn--line { --fg: var(--paper); --bd: rgba(243,241,234,.5); --fill: var(--paper); }
@media (hover: hover) { .btn--line:hover { color: var(--ink); border-color: var(--paper); } }
.btn--ink { --bg: var(--ink); --fg: var(--volt); --bd: var(--ink); --fill: var(--paper); }
@media (hover: hover) { .btn--ink:hover { color: var(--ink); } }
.btn__ig { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn__ig .f { fill: currentColor; stroke: none; }

/* ---------- Loader: measure then cut ---------- */
.loader { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.loader__half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); transition: transform 1.1s var(--ease-io); }
.loader__half--top { top: 0; }
.loader__half--bottom { bottom: 0; }
.loader__center {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .9rem;
  transition: opacity .35s ease, transform .6s var(--ease-out);
}
.loader__blade { width: 44px; height: 44px; color: var(--volt); animation: spin 1.1s linear infinite; }
.loader__count { font-family: var(--f-mono); font-size: var(--step-3); font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.loader__count small { font-size: .45em; margin-left: .35em; color: var(--muted-d); }
.loader__label { font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-d); }
.loader__kerf {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--volt); box-shadow: 0 0 18px 2px rgba(61,240,107,.65);
  transform: scaleX(0); transform-origin: left;
}
.loader.is-cut .loader__center { opacity: 0; transform: scale(.94); }
.loader.is-cut .loader__kerf { transform: scaleX(1); transition: transform .55s var(--ease-snap), opacity .4s .75s ease; opacity: 0; }
.loader.is-open .loader__half--top { transform: translateY(-101%); }
.loader.is-open .loader__half--bottom { transform: translateY(101%); }
.loader.is-done { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cursor (saw blade) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 180; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; color: var(--volt); opacity: 0; transition: opacity .3s ease; }
.cursor svg { width: 100%; height: 100%; transition: transform .45s var(--ease-out); --hole: transparent; }
.cursor.is-hover svg { transform: scale(2.1); }
.cursor.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; } .has-cursor input, .has-cursor textarea { cursor: text; } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 120; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--volt); transform-origin: left; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: var(--space-m);
  padding: 1.1rem var(--gutter);
  transition: transform .6s var(--ease-out), background-color .4s ease, padding .4s var(--ease-out);
}
.nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-d); opacity: 0; transition: opacity .4s ease; }
.nav.is-scrolled { background: rgba(10,10,9,.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); padding-block: .75rem; }
.nav.is-scrolled::after { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.nav__mark { width: 34px; height: 34px; color: var(--volt); transition: transform .8s var(--ease-out); }
@media (hover: hover) { .nav__brand:hover .nav__mark { transform: rotate(180deg); } }
.nav__word { display: flex; flex-direction: column; font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 1.05rem; line-height: 1; letter-spacing: .02em; }
.nav__word em { font-size: .8rem; letter-spacing: .02em; color: var(--muted-d); margin-top: .2rem; }
.nav__links { display: flex; gap: var(--space-m); font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; }
.nav__call {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem; border-radius: 999px; background: var(--volt); color: var(--ink);
  font-family: var(--f-mono); font-size: var(--step--2); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .4s var(--ease-out);
}
.nav__call:active { transform: scale(.96); }
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.5); opacity: .5; } }
.nav__menu { display: none; align-items: center; gap: .7rem; background: none; border: 0; padding: .5rem 0; cursor: pointer; font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; }
.nav__burger { display: grid; gap: 6px; width: 26px; }
.nav__burger i { display: block; height: 2px; background: currentColor; transition: transform .45s var(--ease-out); }
.nav__menu[aria-expanded="true"] .nav__burger i:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--gutter) var(--space-l);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; gap: .4rem; }
.menu nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: clamp(2.4rem, 11vw, 4.5rem); font-weight: 850; font-variation-settings: 'wdth' 115; line-height: 1; text-transform: uppercase; letter-spacing: -.03em;
  transform: translateY(40px); opacity: 0; transition: transform .7s var(--ease-out), opacity .7s var(--ease-out), color .3s ease;
}
.menu nav a small { font-family: var(--f-mono); font-size: .8rem; font-weight: 400; color: var(--volt); letter-spacing: .1em; }
.menu.is-open nav a { transform: none; opacity: 1; }
.menu.is-open nav a:nth-child(2) { transition-delay: .06s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .12s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .18s; }
.menu nav a:active { color: var(--volt); }
.menu__foot { display: grid; gap: .6rem; font-family: var(--f-mono); font-size: var(--step--1); }
.menu__foot a:first-child { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); color: var(--volt); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 9rem var(--gutter) calc(var(--space-xl) + 3.5rem);
  overflow: hidden; isolation: isolate;
}
.hero__film { position: absolute; inset: 0; z-index: -2; background: #0d0907; }
.hero__gl, .hero__video, .hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; opacity: 0; transition: opacity 1.2s ease; filter: saturate(.85) contrast(1.05); }
.hero.has-video .hero__video { opacity: 1; }
.hero.has-video .hero__gl { opacity: 0; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,9,.66) 0%, rgba(10,10,9,.2) 50%, rgba(10,10,9,0) 75%),
    linear-gradient(0deg, rgba(10,10,9,.85) 0%, rgba(10,10,9,0) 40%),
    linear-gradient(180deg, rgba(10,10,9,.6) 0%, rgba(10,10,9,0) 22%);
}

/* The blade, breaking off the right edge like it does on the van */
.hero__blade-wrap {
  position: absolute; z-index: -1;
  width: min(84vh, 54vw); aspect-ratio: 1;
  right: max(-24vh, -16vw); top: 50%;
  translate: 0 -50%;
  will-change: transform;
}
.blade, .hero__ghost { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.blade { filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
.blade__teeth { fill: var(--volt); }
.blade__face { fill: var(--ink); }
.blade__score { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 9; opacity: .5; }
.blade__rim { fill: none; stroke: var(--volt); stroke-width: 1.5; opacity: .35; }
.blade__text { fill: var(--paper); font-family: var(--f-serif); font-size: 34px; letter-spacing: 5px; }
.blade__pin { fill: var(--volt); }
.blade__tools { fill: var(--volt); stroke: var(--ink); stroke-width: 6; paint-order: stroke; }
.hero__ghost { fill: none; stroke: rgba(243,241,234,.16); stroke-width: 1; scale: 1.28; }

.hero__inner { position: relative; max-width: 1500px; }
.overline { display: flex; align-items: center; gap: .9rem; color: var(--paper); margin-bottom: var(--space-m); }
.overline__bar { width: 2.5rem; height: 2px; background: var(--volt); }
.hero__title {
  font-size: clamp(3.4rem, 0.6rem + 10.2vw, 12rem);
  font-weight: 900; font-variation-settings: 'wdth' 112;
  line-height: .84; letter-spacing: -0.045em; text-transform: uppercase;
}
.hero__title em {
  font-size: 1.14em; letter-spacing: -.02em; line-height: .6;
  color: var(--volt); padding-right: .08em;
}
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--space-l) var(--space-xl); margin-top: var(--space-l);
}
.hero__lede { max-width: 34ch; font-size: var(--step-1); line-height: 1.4; font-variation-settings: 'wdth' 100; color: rgba(243,241,234,.86); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-right: auto; }

.hud {
  position: absolute; top: 6.6rem; left: var(--gutter);
  display: flex; gap: 1.2rem; align-items: center;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,241,234,.7);
}
.hud__rec { display: inline-flex; align-items: center; gap: .45rem; color: var(--paper); }
.hud__rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.2s steps(2, jump-none) infinite; }
.hud__tc { font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: .15; } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: calc(var(--space-xl) + 3.5rem);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue i { position: relative; width: 1px; height: 64px; background: var(--line-d); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--volt); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Hero entrance (after loader cut) */
[data-hero-in] { transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out); }
.is-loading [data-hero-in] { opacity: 0; transform: translateY(40px); }
.is-loading .hero__title [data-hero-in] { opacity: 1; transform: translateY(110%); }
.hero__title .line:nth-child(2) [data-hero-in] { transition-delay: .08s; }
.hero__title .line:nth-child(3) [data-hero-in] { transition-delay: .16s; }
.hero__foot [data-hero-in]:first-child { transition-delay: .3s; }
.hero__foot [data-hero-in]:last-child { transition-delay: .4s; }
.hero__blade-wrap { transition: opacity 1.4s var(--ease-out), scale 1.6s var(--ease-out); }
.is-loading .hero__blade-wrap { opacity: 0; scale: .7; }
.hud, .scroll-cue { transition: opacity 1s .6s ease; }
.is-loading .hud, .is-loading .scroll-cue { opacity: 0; }

/* ==========================================================================
   TICKERS: crossed tape, like the stripes on the van
   ========================================================================== */
.tickers { position: relative; z-index: 2; height: clamp(8rem, 16vw, 13rem); margin-top: calc(clamp(8rem, 16vw, 13rem) / -2.4); margin-bottom: calc(clamp(8rem, 16vw, 13rem) / -2.4); pointer-events: none; }
.ticker { position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; padding: .95rem 0; }
.ticker--volt { background: var(--volt); color: var(--ink); transform: translateY(-50%) rotate(-3deg); z-index: 2; }
.ticker--ink { background: var(--paper); color: var(--ink); transform: translateY(-50%) rotate(2.2deg); }
.ticker__track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  font-size: clamp(1.2rem, .8rem + 1.6vw, 2.2rem); font-weight: 900; font-variation-settings: 'wdth' 125; text-transform: uppercase; letter-spacing: -.01em; line-height: 1;
  animation: marquee 32s linear infinite;
}
.ticker__track--rev { animation-direction: reverse; animation-duration: 40s; font-family: var(--f-mono); font-weight: 500; font-size: clamp(.8rem, .7rem + .4vw, 1rem); letter-spacing: .2em; }
.ticker__track svg { width: 1.3em; height: 1.3em; color: var(--ink); --hole: var(--volt); animation: spin 4s linear infinite; }
.ticker__track b { font-weight: 400; color: var(--volt-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   INTRO / MANIFESTO
   ========================================================================== */
.intro {
  position: relative; background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: minmax(10rem, 1fr) 4fr; gap: var(--space-l);
  padding: calc(var(--space-3xl) + 4rem) var(--gutter) var(--space-3xl);
}
.intro__side { display: flex; flex-direction: column; justify-content: space-between; }
.intro__blade { width: clamp(3rem, 6vw, 5.5rem); height: auto; aspect-ratio: 1; color: var(--ink); --hole: var(--paper); }
.intro__text {
  font-size: clamp(1.9rem, 1rem + 3.6vw, 4.6rem);
  font-weight: 700; font-variation-settings: 'wdth' 100;
  line-height: 1.06; letter-spacing: -.03em; text-wrap: pretty;
}
.intro__text .w { opacity: .14; transition: opacity .35s ease; }
.intro__text .w.on { opacity: 1; }
.intro__text s { position: relative; text-decoration: none; display: inline-block; }
.intro__text s::after {
  content: ''; position: absolute; left: -2%; right: -2%; top: 54%; height: .16em;
  background: var(--volt); transform: scaleX(0) rotate(-2deg); transform-origin: left;
  transition: transform .7s var(--ease-out); mix-blend-mode: multiply;
}
.intro__text s.cut::after { transform: scaleX(1) rotate(-2deg); }

/* ==========================================================================
   WORK / SERVICES
   ========================================================================== */
.work { background: var(--ink); padding: var(--space-3xl) var(--gutter); }
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-m); margin-bottom: var(--space-2xl); }
.work__head .label { order: 2; }
.work__head .serif { color: var(--volt); }

.work__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-2xl); align-items: start; }

.board { position: sticky; top: 12vh; height: 76vh; min-height: 480px; }
.board__inner {
  position: relative; height: 100%;
  background: var(--ink-2); border: 1px solid var(--line-d);
  overflow: hidden;
}
.board__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
}
.dwg {
  position: absolute; inset: 7% 8% 16%; width: 84%; height: 77%;
  fill: none; stroke: var(--paper); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transition: opacity .5s ease;
}
.dwg path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io); }
.dwg path:nth-of-type(2) { transition-delay: .1s; }
.dwg path:nth-of-type(3) { transition-delay: .25s; }
.dwg path:nth-of-type(4) { transition-delay: .4s; }
.dwg path:nth-of-type(5) { transition-delay: .55s; }
.dwg path:nth-of-type(6) { transition-delay: .7s; }
.dwg path:nth-of-type(7) { transition-delay: .85s; }
.dwg path:nth-of-type(n+8) { transition-delay: 1s; }
.dwg .g { stroke: var(--line-d); stroke-width: 1; }
.dwg .v { stroke: var(--volt); stroke-width: 2.4; }
.dwg .glow { filter: drop-shadow(0 0 5px rgba(61,240,107,.8)); }
.dwg .d { stroke-dasharray: 1 1; stroke: var(--muted-d); stroke-width: 1; }
.dwg .m { stroke: var(--volt); stroke-width: 1; opacity: .8; }
.dwg text { fill: var(--volt); stroke: none; font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-anchor: middle; opacity: 0; transition: opacity .6s 1.3s ease; }
.dwg text.t-sm { fill: var(--muted-d); font-size: 10px; letter-spacing: .16em; }
.dwg.is-active { opacity: 1; }
.dwg.is-active path { stroke-dashoffset: 0; }
.dwg.is-active text { opacity: 1; }
/* dashed swing lines: draw, then stay dashed */
.dwg.is-active .d { stroke-dasharray: .012 .012; transition: stroke-dasharray 0s 2.2s, stroke-dashoffset 1.6s .7s var(--ease-io); }

.board__title {
  position: absolute; right: 0; bottom: 0;
  display: grid; grid-template-columns: auto auto; border-top: 1px solid var(--line-d); border-left: 1px solid var(--line-d);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d);
  background: var(--ink-2);
}
.board__title span { padding: .55rem .9rem; border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); margin: 0 -1px -1px 0; }
.board__title span:first-child { color: var(--volt); font-weight: 500; }
.board__title [data-dwg-name] { color: var(--paper); }
.board__ruler {
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px; border-right: 1px solid var(--line-d);
  background: repeating-linear-gradient(0deg, var(--line-d) 0 1px, transparent 1px 8px);
}

.work__list { display: grid; }
.svc {
  min-height: 76vh; display: flex; flex-direction: column; justify-content: center; gap: var(--space-s);
  padding-block: var(--space-xl); border-top: 1px solid var(--line-d);
  opacity: .32; transition: opacity .6s var(--ease-out);
}
.svc:first-child { border-top: 0; }
.svc.is-active { opacity: 1; }
.svc__no { font-family: var(--f-mono); font-size: var(--step--1); color: var(--volt); letter-spacing: .1em; }
.svc__title {
  font-size: clamp(2.6rem, 1.2rem + 4.4vw, 6rem);
  font-weight: 900; font-variation-settings: 'wdth' 120;
  line-height: .88; letter-spacing: -.04em; text-transform: uppercase;
}
.svc__text { max-width: 44ch; color: rgba(243,241,234,.8); }
.svc__list { display: grid; margin-top: var(--space-2xs); border-top: 1px solid var(--line-d); max-width: 30rem; }
.svc__list li {
  display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line-d);
  font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .02em;
}
.svc__list li::before { content: ''; width: 8px; height: 8px; background: var(--volt); clip-path: polygon(0 0, 100% 50%, 0 100%); flex: none; }
.svc__cta { align-self: flex-start; margin-top: var(--space-xs); color: var(--volt); font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; }

/* ==========================================================================
   PROCESS: horizontal run with a tape measure
   ========================================================================== */
.process { position: relative; background: var(--paper); color: var(--ink); }
.process__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.process__track { display: flex; align-items: stretch; gap: 0; padding-left: var(--gutter); will-change: transform; }
.step {
  flex: none; width: clamp(20rem, 34vw, 34rem);
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-s);
  min-height: 56vh; padding: var(--space-l) var(--space-l) var(--space-l) 0; margin-right: var(--space-l);
  border-left: 1px solid var(--line-l); padding-left: var(--space-l);
}
.step--intro { width: clamp(22rem, 44vw, 46rem); border-left: 0; padding-left: 0; justify-content: space-between; }
.step--intro .display { font-size: clamp(3rem, 1rem + 7vw, 9rem); }
.step__hint { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .06em; color: var(--muted-l); }
.step__no {
  font-size: clamp(6rem, 3rem + 10vw, 13rem); font-weight: 900; font-variation-settings: 'wdth' 125;
  line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--ink);
  margin-bottom: auto; transition: color .5s var(--ease-out);
}
.step.is-live .step__no { color: var(--volt); -webkit-text-stroke-color: var(--ink); }
.step h3 { font-size: var(--step-4); font-weight: 900; font-variation-settings: 'wdth' 120; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }
.step p { max-width: 30ch; color: var(--muted-l); }

.tape { position: relative; margin-top: var(--space-xl); height: 58px; }
.tape__hook { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--gutter) + 6px); background: #2a2a26; border-right: 4px solid #6d6b63; z-index: 1; }
.tape__strip {
  position: absolute; left: var(--gutter); top: 0; height: 100%; width: 800vw;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 100px) 0 0 / 100% 60% no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px) 0 0 / 100% 42% no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 100% 24% no-repeat,
    var(--volt);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.14), inset 0 3px 0 rgba(255,255,255,.35);
  will-change: transform;
}
.tape__strip span { position: absolute; bottom: 6px; font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--ink); transform: translateX(4px); }
.tape__strip span.r { color: #b3261e; }

/* ==========================================================================
   VAN
   ========================================================================== */
.van {
  background: var(--ink); display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-2xl); align-items: center;
  padding: var(--space-3xl) var(--gutter);
}
.van__copy { display: grid; gap: var(--space-m); justify-items: start; }
.van__copy .serif { color: var(--volt); }
.van__text { max-width: 36ch; color: rgba(243,241,234,.8); }
.van__figure { position: relative; overflow: hidden; clip-path: inset(12% 12% 12% 12%); transition: clip-path 1.4s var(--ease-io); }
.van__figure.is-in { clip-path: inset(0 0 0 0); }
.van__figure img { width: 100%; height: auto; aspect-ratio: 1125 / 700; object-fit: cover; scale: 1.18; will-change: transform; }
.van__figure figcaption {
  position: absolute; left: 0; bottom: 0; display: flex; gap: 1rem; padding: .7rem 1rem;
  background: var(--ink); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d);
}
.van__figure figcaption span { color: var(--volt); }

/* ==========================================================================
   QUOTE
   ========================================================================== */
.quote {
  background: var(--volt); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-2xl);
  padding: var(--space-3xl) var(--gutter);
}
.quote .display { font-size: clamp(3rem, 1rem + 6vw, 8rem); }
.quote__head { display: flex; flex-direction: column; gap: var(--space-m); }
.quote__lede { max-width: 34ch; font-size: var(--step-1); line-height: 1.4; }
.quote__direct { display: grid; gap: .5rem; justify-items: start; margin-top: auto; padding-top: var(--space-l); border-top: 1.5px solid var(--ink); font-family: var(--f-mono); font-size: var(--step--1); }
.quote__phone { font-family: var(--f-display); font-size: clamp(2rem, 1rem + 3.4vw, 3.8rem); font-weight: 900; font-variation-settings: 'wdth' 118; letter-spacing: -.03em; line-height: 1; margin: .2rem 0 .5rem; transition: letter-spacing .5s var(--ease-out); }
@media (hover: hover) { .quote__phone:hover { letter-spacing: 0; } }

.form { display: grid; gap: var(--space-m); align-content: start; background: var(--paper); padding: var(--space-l); border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.form__set { border: 0; padding: 0; margin: 0; display: grid; gap: .8rem; }
.form__set legend, .field > span { font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-l); padding: 0; margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: var(--step--1); font-weight: 600; font-variation-settings: 'wdth' 105;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.chip span::before { content: ''; width: 0; height: 8px; border-radius: 50%; background: var(--volt); transition: width .3s var(--ease-out); }
@media (hover: hover) { .chip:hover span { background: var(--paper-2); } }
.chip input:checked + span { background: var(--ink); color: var(--volt); }
.chip input:checked + span::before { width: 8px; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
.field { display: grid; }
.field > span { margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  padding: .55rem 0 .6rem; font-size: var(--step-1); font-weight: 600; font-variation-settings: 'wdth' 105; resize: vertical;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field textarea { font-size: var(--step-0); font-weight: 500; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #8d8a80; font-weight: 400; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 2px 0 var(--volt-deep); border-color: var(--volt-deep); }
.field.is-error input { border-color: #b3261e; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: var(--space-2xs); }
.form__note { font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: .06em; color: var(--muted-l); max-width: 34ch; }
.form__note.is-error { color: #b3261e; }
.form__note.is-ok { color: var(--ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { background: var(--ink); padding: var(--space-3xl) var(--gutter) var(--space-m); overflow: hidden; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-l); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--line-d); }
.foot__say { font-size: clamp(2.2rem, 1rem + 4.4vw, 5.6rem); font-weight: 900; font-variation-settings: 'wdth' 118; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.foot__say .serif { color: var(--volt); font-size: 1.1em; }
.foot__cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: var(--space-l); padding-block: var(--space-xl); font-family: var(--f-mono); font-size: var(--step--1); }
.foot__cols .label { margin-bottom: .6rem; }
.foot__cols p:not(.label) { color: rgba(243,241,234,.8); }

.wordmark { position: relative; line-height: .78; font-size: 25.5vw; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.05em; margin: 0 0 var(--space-m) -.03em; user-select: none; }
.wordmark span { display: block; white-space: nowrap; }
.wordmark__line { color: transparent; -webkit-text-stroke: 1.5px rgba(243,241,234,.35); }
.wordmark__fill { position: absolute; left: 0; top: 0; color: var(--volt); clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-io); }
.wordmark.is-in .wordmark__fill { clip-path: inset(0 0 0 0); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-family: var(--f-mono); font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }

/* ---------- Generic reveal ---------- */
[data-reveal] { transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(2rem); }
.js .line > [data-reveal]:not(.is-in) { opacity: 1; transform: translateY(110%); }
.line + .line > [data-reveal] { transition-delay: .08s; }
.line + .line + .line > [data-reveal] { transition-delay: .16s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .foot__cols { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: var(--space-2xl); }
}

@media (max-width: 900px) {
  .hero { padding-top: 6rem; }
  .hero__blade-wrap { width: 104vw; right: -56vw; top: 31%; }
  .overline { font-size: .62rem; letter-spacing: .1em; gap: .6rem; }
  .overline__bar { width: 1.5rem; }
  .hud { top: auto; bottom: calc(100% - 5.6rem); left: var(--gutter); right: auto; display: none; }
  .scroll-cue { display: none; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }

  .intro { grid-template-columns: 1fr; padding-top: calc(var(--space-2xl) + 4rem); }
  .intro__side { flex-direction: row; align-items: center; }

  .work__grid { grid-template-columns: 1fr; gap: 0; }
  .board { top: 0; height: calc(40vh + 4.6rem); min-height: 0; z-index: 2; background: var(--ink); margin-inline: calc(var(--gutter) * -1); padding: 4.6rem var(--gutter) .8rem; }
  .board::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2.5rem; height: 2.5rem; background: linear-gradient(var(--ink), transparent); pointer-events: none; }
  .board__title { font-size: .58rem; }
  .board__title span { padding: .4rem .6rem; }
  .dwg { inset: 5% 6% 22%; width: 88%; height: 73%; }
  .svc { min-height: auto; padding-block: var(--space-2xl); opacity: 1; }

  .process__pin { position: static; height: auto; padding: var(--space-3xl) 0; }
  .process__track { flex-direction: column; padding-right: var(--gutter); transform: none !important; }
  .step, .step--intro { width: auto; min-height: 0; margin-right: 0; padding: var(--space-l) 0; border-left: 0; border-top: 1px solid var(--line-l); }
  .step--intro { border-top: 0; gap: var(--space-m); }
  .step__no { font-size: 5.5rem; margin-bottom: var(--space-2xs); }
  .tape { display: none; }

  .van { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .quote__direct { margin-top: var(--space-s); }
}

@media (max-width: 560px) {
  .nav__call .swap span:first-child { font-size: 0; }
  .nav__call .swap span:first-child::after { content: 'Call'; font-size: var(--step--2); }
  .nav__word em { display: none; }
  .form { padding: var(--space-m); box-shadow: 6px 6px 0 var(--ink); }
  .form__row { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__cols a { word-break: break-all; }
  .btn { padding: 0 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .loader { display: none; }
}
