/* MERGE Buildwise Trading Corp. — design system
   Palette: structural steel + safety amber (identity: black/gold logo).
   Type: Archivo (wdth 62–125) display+body, Spline Sans Mono for spec labels. */

:root {
  --ink: oklch(0.165 0.01 75);          /* canvas dark, warm charcoal */
  --ink-2: oklch(0.205 0.012 75);       /* raised dark surface */
  --ink-3: oklch(0.245 0.014 75);       /* highest dark surface */
  --line: oklch(1 0 0 / 0.1);           /* hairline on dark */
  --line-strong: oklch(1 0 0 / 0.18);
  --text: oklch(0.94 0.004 80);         /* on dark */
  --text-mute: oklch(0.74 0.012 80);    /* on dark, secondary (≥4.5:1) */
  --gold: oklch(0.76 0.135 80);         /* safety amber / brand gold */
  --gold-deep: oklch(0.62 0.125 72);
  --gold-ghost: oklch(0.76 0.135 80 / 0.12);
  --paper: oklch(0.965 0 0);            /* light section canvas, chroma 0 */
  --paper-2: oklch(0.925 0.002 80);     /* light raised surface */
  --line-lt: oklch(0.165 0.01 75 / 0.14);
  --ink-on-paper: oklch(0.22 0.012 75);
  --mute-on-paper: oklch(0.42 0.014 75);

  --font-d: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-b: "Archivo", system-ui, sans-serif;
  --font-m: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;

  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0: clamp(0.96rem, 0.92rem + 0.2vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-5: clamp(3.1rem, 2.1rem + 5vw, 6rem);

  --space-1: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-2: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --space-3: clamp(1.75rem, 1.5rem + 1.25vw, 3rem);
  --space-4: clamp(3rem, 2.4rem + 3vw, 6rem);
  --space-5: clamp(4.5rem, 3.4rem + 5.5vw, 10rem);

  --wrap: 74rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 40; --z-drawer: 50; --z-lightbox: 60; --z-toast: 70;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-b);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; font-family: var(--font-d); }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

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

.wrap { width: min(var(--wrap), 100% - clamp(2rem, 6vw, 5rem)); margin-inline: auto; }

/* ---------- type voice ---------- */
.display {
  font-family: var(--font-d);
  font-variation-settings: "wdth" 122;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
}
.h-section { font-size: var(--step-3); }
.h-hero { font-size: var(--step-5); }
/* Narrow screens: pull the width axis in so the longest word always fits */
@media (max-width: 620px) {
  .h-hero { font-variation-settings: "wdth" 100; font-size: clamp(2.1rem, 10.5vw, 3.4rem); }
}
.spec {
  font-family: var(--font-m);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--text-mute); font-weight: 400; }

/* ---------- survey-tape divider (brand system, one repeating motif) ---------- */
.tape {
  height: 14px;
  border: 0;
  margin: 0;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg,
      var(--gold) 0 1.5px, transparent 1.5px 24px) 0 100% / 100% 7px no-repeat,
    repeating-linear-gradient(90deg,
      var(--gold) 0 1.5px, transparent 1.5px 120px) 0 100% / 100% 14px no-repeat;
  opacity: 0.85;
}
.section-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.section-head .tape { width: min(9rem, 30%); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  font-family: var(--font-d); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.02em;
  border: 1px solid transparent; border-radius: 3px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--ink); position: relative; overflow: clip; }
.btn-gold:hover { background: oklch(0.82 0.14 82); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, oklch(1 0 0 / 0.4) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn-gold:hover::after { transform: translateX(130%); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.on-paper .btn-ghost { border-color: var(--line-lt); color: var(--ink-on-paper); }
.on-paper .btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: oklch(0.165 0.01 75 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img {
  height: 44px; width: auto; object-fit: contain;
  animation: logo-pop 0.9s var(--ease) 0.15s both;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.brand:hover img { transform: scale(1.07); filter: drop-shadow(0 0 14px oklch(0.76 0.135 80 / 0.45)); }
@keyframes logo-pop {
  0% { opacity: 0; transform: scale(0.55) rotate(-10deg); }
  62% { opacity: 1; transform: scale(1.1) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
/* The logo lockup already carries the company name */
.brand .brand-name { display: none; }
.brand-name {
  font-family: var(--font-d); font-weight: 800; font-variation-settings: "wdth" 116;
  text-transform: uppercase; font-size: 0.95rem; line-height: 1.1; letter-spacing: 0.01em;
}
.brand-name small { display: block; font-family: var(--font-m); font-weight: 500; font-size: 0.58rem; letter-spacing: 0.22em; color: var(--gold); font-variation-settings: normal; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 0.6rem 0.85rem; text-decoration: none;
  font-weight: 600; font-size: 0.92rem; color: var(--text-mute);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-cta { margin-left: 0.75rem; padding: 0.65rem 1.15rem; min-height: 44px; }
.nav-links a.nav-cta { color: var(--ink); font-family: var(--font-d); }
.nav-links a.nav-cta:hover { color: var(--ink); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px;
  background: none; border: 1px solid var(--line-strong); border-radius: 3px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: var(--z-drawer);
    flex-direction: column; justify-content: center; align-items: stretch; gap: 0;
    background: oklch(0.15 0.01 75 / 0.98);
    padding: 6rem clamp(2rem, 8vw, 4rem);
    transform: translateY(-100%); visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; transition: transform 0.45s var(--ease); }
  .nav-links a {
    font-family: var(--font-d); font-variation-settings: "wdth" 118; font-weight: 800;
    text-transform: uppercase; font-size: clamp(1.8rem, 7vw, 2.6rem); padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { margin: 1.5rem 0 0; justify-content: center; }
  .nav-close-row { position: absolute; top: 1rem; right: clamp(2rem, 8vw, 4rem); }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 861px) { .nav-close-row { display: none; } }

/* scroll progress */
.scroll-progress {
  position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--gold);
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding-top: clamp(6rem, 12vh, 9rem);
  overflow: clip;
  isolation: isolate;
}
.hero {
  background:
    linear-gradient(oklch(1 0 0 / 0.028) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, oklch(1 0 0 / 0.028) 1px, transparent 1px) 0 0 / 72px 100%,
    var(--ink);
}
.hero-media {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(58%, 46rem); z-index: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.86) saturate(0.92);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(84deg, var(--ink) 4%, oklch(0.165 0.01 75 / 0.55) 34%, oklch(0.165 0.01 75 / 0.06) 68%, oklch(0.165 0.01 75 / 0.3) 100%);
}
.hero-media::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(16% - 6px); width: 3px;
  background: var(--gold); z-index: 1;
  transform: skewX(-8.5deg); transform-origin: top;
}
.hero-scrim { position: absolute; inset: auto 0 0 0; height: 30%; z-index: 1; background: linear-gradient(0deg, var(--ink) 6%, transparent 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }
@media (max-width: 860px) {
  .hero-media { width: 100%; clip-path: none; opacity: 0.36; }
  .hero-media::before { display: none; }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 12%, oklch(0.165 0.01 75 / 0.55) 60%, oklch(0.165 0.01 75 / 0.35) 100%); }
}
.hero-inner { padding-bottom: var(--space-4); }
.hero-kicker { display: flex; align-items: center; gap: 0.9rem; margin-bottom: var(--space-2); }
.hero-kicker .tape { width: 4.5rem; }
.h-hero .swap-line { display: block; overflow: clip; }
.h-hero .line-inner { display: block; animation: line-rise 0.9s var(--ease) both; }
.h-hero .swap-line:nth-child(2) .line-inner { animation-delay: 0.14s; }
@keyframes line-rise { from { transform: translateY(108%); } to { transform: none; } }
.h-hero .gold { color: var(--gold); }
.hero-verb { display: inline-block; min-width: 6ch; }
.hero-verb .verb {
  display: inline-block;
  animation: verb-in 0.55s var(--ease);
}
@keyframes verb-in {
  from { opacity: 0; transform: translateY(0.35em); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero-sub { margin-top: var(--space-2); font-size: var(--step-1); line-height: 1.5; color: var(--text-mute); max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--space-3); }
.hero-creds { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.cred { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); }
.cred svg { color: var(--gold); flex: none; }
.hero-chip {
  position: absolute; right: clamp(1rem, 4vw, 3rem); top: clamp(6.5rem, 14vh, 9rem);
  font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); background: oklch(0.14 0.01 75 / 0.72); border: 1px solid var(--line-strong);
  padding: 0.5rem 0.8rem; border-radius: 2px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-chip b { color: var(--gold); font-weight: 600; }
@media (max-width: 860px) { .hero-chip { display: none; } }

/* entrance choreography */
.hero [data-hero-seq] { opacity: 0; transform: translateY(26px); animation: hero-rise 0.9s var(--ease) forwards; }
.hero [data-hero-seq="1"] { animation-delay: 0.05s; }
.hero [data-hero-seq="2"] { animation-delay: 0.16s; }
.hero [data-hero-seq="3"] { animation-delay: 0.28s; }
.hero [data-hero-seq="4"] { animation-delay: 0.4s; }
.hero [data-hero-seq="5"] { animation-delay: 0.52s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }
.hero-media { animation: hero-unveil 1.2s var(--ease) both; }
@keyframes hero-unveil {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to { clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
}
@media (max-width: 860px) {
  .hero-media { animation-name: hero-fade; }
  @keyframes hero-fade { from { opacity: 0; } to { opacity: 0.36; } }
}

/* ---------- capability marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden; white-space: nowrap;
  padding-block: 0.85rem;
}
.marquee-track { display: inline-flex; gap: 3rem; padding-right: 3rem; animation: marquee 34s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-d); font-variation-settings: "wdth" 118; font-weight: 700;
  text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--text-mute);
  display: inline-flex; align-items: center; gap: 3rem;
}
.marquee-track span::after { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* jump nav (services) */
.jump-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
.jump-nav .chip { text-decoration: none; }

/* ---------- sections ---------- */
.section { padding-block: var(--space-5); position: relative; }
.section.tight { padding-block: var(--space-4); }
.on-paper { background: var(--paper); color: var(--ink-on-paper); }
.on-paper .lede, .on-paper .muted { color: var(--mute-on-paper); }
.on-paper .spec { color: var(--gold-deep); }
.muted { color: var(--text-mute); }

/* scroll reveal */
[data-reveal] { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal]:not(.revealed) { opacity: 0; transform: translateY(30px); }
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* survey tape draws in when its section reveals */
.js [data-reveal] .tape { transform-origin: 0 50%; transition: transform 1s var(--ease) 0.15s; }
.js [data-reveal]:not(.revealed) .tape { transform: scaleX(0); }
.js [data-reveal].revealed .tape { transform: scaleX(1); }

/* staggered children: mark a container with data-stagger (plus data-reveal) */
.js [data-stagger] > * { transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.js [data-stagger]:not(.revealed) > * { opacity: 0; transform: translateY(18px); }
.js [data-stagger].revealed > * { opacity: 1; transform: none; }
[data-stagger].revealed > :nth-child(2) { transition-delay: 60ms; }
[data-stagger].revealed > :nth-child(3) { transition-delay: 120ms; }
[data-stagger].revealed > :nth-child(4) { transition-delay: 180ms; }
[data-stagger].revealed > :nth-child(5) { transition-delay: 240ms; }
[data-stagger].revealed > :nth-child(6) { transition-delay: 300ms; }
[data-stagger].revealed > :nth-child(7) { transition-delay: 360ms; }
[data-stagger].revealed > :nth-child(8) { transition-delay: 420ms; }
[data-stagger].revealed > :nth-child(n+9) { transition-delay: 480ms; }

/* cross-page transition (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.18s; }
::view-transition-new(root) { animation-duration: 0.26s; }

/* ---------- service explorer ---------- */
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3); align-items: start; }
.svc-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-lt); }
.svc-index button {
  display: grid; grid-template-columns: 3ch 1fr auto; align-items: baseline; gap: 1rem;
  width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line-lt);
  padding: 0.95rem 0.5rem;
  font-family: var(--font-d); font-weight: 700; font-size: var(--step-1);
  color: var(--mute-on-paper);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), padding-left 0.3s var(--ease);
}
.svc-index .num { font-family: var(--font-m); font-size: 0.78rem; font-weight: 500; color: var(--gold-deep); }
.svc-index .go { font-family: var(--font-m); font-size: 0.85rem; opacity: 0; transition: opacity 0.25s; }
.svc-index button:hover { color: var(--ink-on-paper); }
.svc-index button[aria-selected="true"] { color: var(--ink-on-paper); background: var(--gold-ghost); padding-left: 0.9rem; }
.svc-index button[aria-selected="true"] .go { opacity: 1; }
.svc-stage {
  position: sticky; top: 6.5rem;
  background: var(--ink); color: var(--text);
  padding: var(--space-3);
  border-radius: 4px;
  overflow: clip;
  min-height: 22rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.8rem;
}
.svc-stage .spec { color: var(--gold); }
.svc-stage h3 { font-size: var(--step-2); text-transform: uppercase; font-variation-settings: "wdth" 116; }
.svc-stage p { color: var(--text-mute); margin: 0; }
.svc-stage .stage-photo { position: absolute; inset: 0; }
.svc-stage .stage-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: saturate(0.85); }
.svc-stage > :not(.stage-photo) { position: relative; }
.svc-stage.swapping .stage-body { animation: verb-in 0.45s var(--ease); }
.svc-stage .btn { align-self: flex-start; margin-top: 0.6rem; }
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-stage { position: static; min-height: 16rem; }
}

/* services page: detail cards */
.svc-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-3);
  padding-block: var(--space-3); border-top: 1px solid var(--line);
  scroll-margin-top: 6.5rem;
}
.svc-detail:last-of-type { border-bottom: 1px solid var(--line); }
.svc-detail h3 { font-size: var(--step-2); text-transform: uppercase; font-variation-settings: "wdth" 116; }
.svc-detail .num-big { font-family: var(--font-m); color: var(--gold); font-size: 0.8rem; margin-bottom: 0.6rem; display: block; }
.svc-detail ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.svc-detail li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--text-mute); }
.svc-detail li::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; position: relative; top: -1px; }
@media (max-width: 720px) { .svc-detail { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- supply chips ---------- */
.supply-band { background: var(--ink-2); border-block: 1px solid var(--line); }
.supply-flex { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: var(--space-2); }
.chip {
  font-family: var(--font-m); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--text-mute);
  padding: 0.55rem 0.9rem; border-radius: 999px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- projects ---------- */
.proj-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 30rem);
  gap: var(--space-2);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: 1rem;
  scrollbar-color: var(--gold) transparent;
}
.proj-rail::-webkit-scrollbar { height: 6px; }
.proj-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.proj-card {
  scroll-snap-align: start;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 4.6; border-radius: 4px; overflow: clip;
  text-decoration: none; color: var(--text);
  isolation: isolate;
}
.proj-card img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.7s var(--ease); }
.proj-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, oklch(0.13 0.012 75 / 0.92) 0%, oklch(0.13 0.012 75 / 0.25) 45%, transparent 70%); }
.proj-card:hover img { transform: scale(1.05); filter: brightness(1.06); }
.proj-card .meta { padding: var(--space-2); display: grid; gap: 0.35rem; }
.proj-card .cat { font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.proj-card h3 { font-size: var(--step-1); text-transform: uppercase; font-variation-settings: "wdth" 114; }
.proj-card .place { font-size: 0.88rem; color: var(--text-mute); }

/* projects page feature rows */
.proj-feature {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3);
  align-items: center; padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}
.proj-feature:nth-of-type(even) .proj-media { order: 2; }
.proj-media { display: grid; gap: 0.8rem; }
.proj-media button { padding: 0; border: 0; background: none; border-radius: 4px; overflow: clip; }
.proj-media img { border-radius: 4px; transition: transform 0.6s var(--ease); width: 100%; object-fit: cover; aspect-ratio: 16/10; cursor: zoom-in; }
.proj-media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.proj-media .pair img { aspect-ratio: 4/3; }
.proj-media img:hover { transform: scale(1.03); }
.proj-info h3 { font-size: var(--step-2); text-transform: uppercase; font-variation-settings: "wdth" 116; margin-bottom: 0.6rem; }
.proj-facts { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; font-family: var(--font-m); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute); }
.proj-facts b { color: var(--gold); font-weight: 500; }
@media (max-width: 820px) {
  .proj-feature { grid-template-columns: 1fr; }
  .proj-feature:nth-of-type(even) .proj-media { order: 0; }
}

/* lightbox */
.lightbox {
  border: 0; padding: 0; background: oklch(0.1 0.01 75 / 0.94);
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox img { max-width: min(92vw, 70rem); max-height: 84vh; width: auto; border-radius: 4px; }
.lightbox figcaption { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-family: var(--font-m); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); }
.lightbox .close-x {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 48px; height: 48px; border-radius: 3px;
  background: var(--ink-2); color: var(--text); border: 1px solid var(--line-strong);
  font-size: 1.2rem; line-height: 1;
}
.lightbox::backdrop { background: transparent; }

/* ---------- process ---------- */
.process { counter-reset: step; }
.process-track { position: relative; display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.process-track::before {
  content: ""; position: absolute; left: 1.35rem; top: 0.5rem; bottom: 0.5rem; width: 2px;
  background: var(--line-lt);
}
.process-line { position: absolute; left: 1.35rem; top: 0.5rem; width: 2px; height: 0; background: var(--gold-deep); transition: height 0.2s linear; }
.step-item { position: relative; padding-left: 4rem; counter-increment: step; }
.step-item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -0.1rem;
  width: 2.8rem; height: 2.8rem; display: grid; place-items: center;
  font-family: var(--font-m); font-size: 0.8rem; font-weight: 600;
  background: var(--paper); color: var(--gold-deep);
  border: 2px solid var(--gold-deep); border-radius: 50%;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step-item.active::before {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
  box-shadow: 0 0 0 6px oklch(0.62 0.125 72 / 0.15);
}
.step-item h3 { font-size: var(--step-1); text-transform: uppercase; font-variation-settings: "wdth" 112; margin-bottom: 0.4rem; }
.step-item p { color: var(--mute-on-paper); margin: 0; }

/* ---------- leadership / about ---------- */
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-2); margin-top: var(--space-2); }
.lead-card { border: 1px solid var(--line); border-radius: 4px; padding: var(--space-2); background: var(--ink-2); }
.lead-card .role { font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.lead-card h3 { font-size: var(--step-1); margin-top: 0.4rem; }
.value-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.value-row h3 { font-size: var(--step-1); text-transform: uppercase; font-variation-settings: "wdth" 112; margin-bottom: 0.5rem; }
.value-row p { margin: 0; }

/* ---------- client strip ---------- */
.client-strip { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: var(--space-3); }
.client-strip img {
  height: clamp(4.4rem, 8vw, 5.6rem); width: auto;
  background: oklch(0.99 0 0); padding: 0.7rem 1.1rem; border-radius: 4px;
  border: 1px solid var(--line-strong);
  filter: grayscale(1); opacity: 0.85;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.client-strip img:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); counter-reset: stat; }
.stat { position: relative; counter-increment: stat; border-top: 3px solid oklch(0.62 0.125 72 / 0.4); padding-top: 1.2rem; transition: border-color 0.3s var(--ease); }
.stat::before {
  content: "N° " counter(stat, decimal-leading-zero);
  position: absolute; top: 0.45rem; right: 0;
  font-family: var(--font-m); font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--mute-on-paper); opacity: 0.7;
}
.stat:hover { border-top-color: var(--gold); }
.stat b {
  display: block; font-family: var(--font-d); font-variation-settings: "wdth" 122; font-weight: 800;
  font-size: clamp(3.4rem, 2.4rem + 4.5vw, 6rem); line-height: 0.95; letter-spacing: -0.02em;
  background: linear-gradient(168deg, oklch(0.82 0.145 86) 12%, oklch(0.68 0.135 76) 55%, oklch(0.52 0.11 66) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 3px 12px oklch(0.62 0.125 72 / 0.28));
}
.stat span { display: block; margin-top: 0.6rem; color: var(--mute-on-paper); font-size: 0.95rem; max-width: 26ch; text-wrap: pretty; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; margin-top: var(--space-3); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0.2rem; cursor: pointer;
  font-family: var(--font-d); font-weight: 700; font-size: var(--step-0);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-m); color: var(--gold); font-size: 1.2rem; transition: transform 0.3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0.2rem 1.2rem; color: var(--text-mute); max-width: 65ch; }
.on-paper .faq details { border-color: var(--line-lt); }
.on-paper .faq { border-color: var(--line-lt); }
.on-paper .faq .a { color: var(--mute-on-paper); }

/* ---------- quote builder ---------- */
.qb { border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); overflow: clip; }
.qb-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem var(--space-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.qb-steps { display: flex; gap: 0.4rem; }
.qb-steps i {
  width: 2.4rem; height: 4px; border-radius: 2px; background: var(--line-strong); font-style: normal;
  transition: background 0.3s var(--ease);
}
.qb-steps i.done { background: var(--gold); }
.qb-body { padding: var(--space-3) var(--space-2); }
.qb-pane { display: none; }
.qb-pane.active { display: block; animation: verb-in 0.4s var(--ease); }
.qb h3 { font-size: var(--step-2); text-transform: uppercase; font-variation-settings: "wdth" 114; margin-bottom: var(--space-2); }
.qb-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.7rem; }
.qb-svc {
  text-align: left; padding: 0.9rem 1rem; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: transparent; color: var(--text);
  font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.qb-svc:hover { border-color: var(--gold); }
.qb-svc[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-ghost); color: var(--gold); }
.qb label { display: block; font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin: 1.2rem 0 0.4rem; }
.qb input, .qb textarea, .qb select {
  width: 100%; padding: 0.8rem 0.9rem; min-height: 48px;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 3px;
  font: inherit; font-size: 1rem;
}
.qb input::placeholder, .qb textarea::placeholder { color: oklch(0.62 0.012 80); }
.qb input:focus, .qb textarea:focus, .qb select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.qb .err { color: oklch(0.78 0.14 25); font-size: 0.85rem; margin-top: 0.35rem; display: none; }
.qb .field.invalid .err { display: block; }
.qb .field.invalid input, .qb .field.invalid textarea { border-color: oklch(0.62 0.16 25); }
.qb-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: var(--space-3); }
.qb-review {
  background: var(--ink); border: 1px solid var(--line); border-radius: 3px;
  padding: var(--space-2); font-family: var(--font-m); font-size: 0.82rem; line-height: 1.8;
  white-space: pre-wrap; color: var(--text-mute); max-height: 20rem; overflow: auto;
}
.qb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .qb-grid2 { grid-template-columns: 1fr; } }

.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(150%);
  z-index: var(--z-toast);
  background: var(--gold); color: var(--ink); font-weight: 700; font-size: 0.9rem;
  padding: 0.8rem 1.3rem; border-radius: 3px;
  transition: transform 0.4s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.post-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  border: 1px solid var(--line); border-radius: 4px; padding: var(--space-2);
  background: var(--ink-2); text-decoration: none; color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.post-card .pdate { font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.post-card h3 { font-size: var(--step-1); line-height: 1.2; }
.post-card p { color: var(--text-mute); font-size: 0.92rem; margin: 0; }
.post-card .more { margin-top: auto; font-family: var(--font-m); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }

.article { padding-top: clamp(7rem, 15vh, 10rem); }
.article-head { margin-bottom: var(--space-3); }
.article-head h1 { font-size: var(--step-3); }
.article-body { max-width: 68ch; }
.article-body h2 { font-size: var(--step-2); margin: var(--space-3) 0 0.8rem; }
.article-body h3 { font-size: var(--step-1); margin: var(--space-2) 0 0.6rem; }
.article-body ul, .article-body ol { padding-left: 1.2rem; color: var(--text); }
.article-body li { margin-bottom: 0.45rem; }
.article-body a { color: var(--gold); }
.article-cta { margin-top: var(--space-4); border: 1px solid var(--line); border-radius: 4px; padding: var(--space-3); background: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: clip; }
.cta-band .h-section { font-size: var(--step-4); }
.cta-band .bg-word {
  position: absolute; inset: auto 0 -0.18em 0; z-index: 0;
  font-family: var(--font-d); font-variation-settings: "wdth" 125; font-weight: 800;
  font-size: clamp(6rem, 22vw, 20rem); line-height: 1; text-transform: uppercase;
  color: oklch(1 0 0 / 0.035); text-align: center; pointer-events: none; user-select: none;
  white-space: nowrap;
}
.cta-band .wrap { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: oklch(0.14 0.01 75); padding-block: var(--space-4) var(--space-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--space-3); }
.foot-grid h4 { font-family: var(--font-m); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-grid a { color: var(--text-mute); text-decoration: none; transition: color 0.2s; }
.foot-grid a:hover { color: var(--gold); }
.foot-grid address { font-style: normal; color: var(--text-mute); line-height: 1.8; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-mute); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* page hero (inner pages) */
.page-hero { padding: clamp(8rem, 18vh, 11rem) 0 var(--space-4); }
.page-hero h1 { font-size: var(--step-4); }
.page-hero .lede { margin-top: var(--space-2); max-width: 52ch; }
.crumbs { display: flex; gap: 0.5rem; font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: var(--space-2); list-style: none; padding: 0; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--gold); }

/* skip link */
.skip-link {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 100;
  background: var(--gold); color: var(--ink); font-weight: 700;
  padding: 0.7rem 1rem; border-radius: 3px; text-decoration: none;
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus-visible { transform: none; }

/* back-to-top */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: var(--z-nav);
  width: 48px; height: 48px; border-radius: 3px;
  background: var(--ink-2); border: 1px solid var(--line-strong); color: var(--gold);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- resources & checklists ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.res-card {
  display: flex; flex-direction: column; gap: 0.8rem;
  border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2);
  padding: var(--space-2); text-decoration: none; color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.res-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.res-card .res-kind { font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.res-card h3 { font-size: var(--step-1); line-height: 1.2; }
.res-card p { color: var(--text-mute); font-size: 0.92rem; margin: 0; }
.res-card .more { margin-top: auto; font-family: var(--font-m); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }

.checklist { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 0.35rem; }
.checklist li { border: 1px solid var(--line); border-radius: 3px; background: var(--ink-2); transition: border-color 0.25s var(--ease), background 0.25s var(--ease); }
.checklist li:has(:checked) { border-color: oklch(0.62 0.125 72 / 0.6); background: var(--gold-ghost); }
.checklist label { display: flex; gap: 0.85rem; align-items: baseline; padding: 0.85rem 1rem; cursor: pointer; }
.checklist input[type="checkbox"] {
  flex: none; width: 1.15rem; height: 1.15rem; accent-color: var(--gold);
  position: relative; top: 0.15rem; cursor: pointer;
}
.checklist li:has(:checked) label { color: var(--text-mute); text-decoration: line-through; text-decoration-color: oklch(0.62 0.125 72 / 0.6); }
.check-progress {
  position: sticky; top: 5.2rem; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: oklch(0.205 0.012 75 / 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0.8rem 1.1rem; margin-top: var(--space-3);
}
.check-progress .cp-label { font-family: var(--font-m); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.check-progress .cp-bar { flex: 1 1 8rem; height: 5px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.check-progress .cp-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.4s var(--ease); }
.checklist-h { font-size: var(--step-1); text-transform: uppercase; font-variation-settings: "wdth" 112; margin-top: var(--space-3); }

.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: var(--gold); }

@media print {
  .site-header, .site-footer, .to-top, .check-progress button, .article-cta, .cta-band, .skip-link, .scroll-progress { display: none !important; }
  body { background: #fff; color: #111; }
  .article { padding-top: 1rem; }
  .checklist li, .check-progress { background: #fff; border-color: #bbb; }
  .checklist li:has(:checked) { background: #f5efe0; }
  .display, .spec, .checklist-h { color: #111; }
  .lede, .muted { color: #444; }
  .stat b { -webkit-text-fill-color: initial; color: #a67c1b; background: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal]:not(.revealed) { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero [data-hero-seq] { opacity: 1; transform: none; animation: none; }
  .hero-media img { animation: none; transform: none; }
}
