/* ==========================================================================
   BIDWISE BUREAU — monochrome editorial theme v2 (desktop-first redesign)
   Strict black & white. Space Grotesk + Newsreader italic accents.
   Monumental type, hairline rules, hover-invert rows, scroll-driven motion.
   No external dependencies. Vanilla CSS + IO + rAF in js/main.js.
   Image rule: every 3D render appears EXACTLY ONCE across the page.
   ========================================================================== */

:root {
  --black: #000;
  --ink: #0a0a0a;
  --panel: #0d0d0d;
  --panel-2: #141414;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --white: #fff;
  --paper: #fafafa;
  --gray-1: #f2f2f2;
  --gray-2: #bdbdbd;
  --gray-3: #8a8a8a;
  --gray-4: #5c5c5c;
  --ink-2: #3d3d3d;
  --ink-3: #6a6a6a;
  --hline: rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* expo-out: fluid, physical */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: min(1360px, 94vw);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--black); }
body {
  font-family: var(--font);
  color: var(--gray-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; filter: grayscale(1); }
a { color: inherit; }
ul { list-style: none; }
::selection { background: var(--white); color: var(--black); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 8px; border: 2px solid var(--black); }

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

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--white); color: var(--black);
  padding: 10px 18px; border-radius: 6px; font-weight: 600;
  transition: top 0.3s var(--ease); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap.narrow { width: min(880px, 92vw); }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150;
  mix-blend-mode: difference; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: #fff; transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- header: 3-zone grid — links left, brand dead-center, CTA right ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  color: #fff;
}
/* solid blur bar fades in once the page scrolls — keeps nav legible
   over images and body copy (no more see-through collisions) */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(4, 4, 4, 0.78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.site-header.scrolled::before { opacity: 1; }
.site-header .nav { position: relative; z-index: 1; }
.site-header .nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding-block: 20px;
}
.nav-desktop { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; }
.brand {
  grid-column: 2; grid-row: 1; justify-self: center; text-align: center;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.brand span { font-weight: 300; }
.site-header .nav-cta { grid-column: 3; grid-row: 1; justify-self: end; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: #fff;
  position: relative; padding-block: 6px; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: #fff; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.menu-toggle {
  display: none;
  grid-column: 3; grid-row: 1; justify-self: end;
}

/* ---------- nav overlay (mobile) ---------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 110; background: #000;
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0.7s;
  visibility: hidden;
  padding: 90px 24px 40px; overflow-y: auto;
}
body.menu-open { overflow: hidden; }
.nav-overlay.open { clip-path: inset(0 0 0% 0); visibility: visible; }
.nav-overlay ul { text-align: center; display: grid; gap: 6px; }
.nav-overlay a {
  display: block; text-decoration: none; color: #fff;
  font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em;
  padding: 8px 20px; opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav-overlay.open a { opacity: 1; transform: none; }
.nav-overlay .mnum {
  font-size: 0.75rem; letter-spacing: 0.3em; color: var(--gray-3);
  vertical-align: super; margin-right: 12px;
}

/* ---------- typography ---------- */
.micro {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gray-3); margin-bottom: 26px;
  display: flex; align-items: center; gap: 18px;
}
.micro::after {
  content: ""; height: 1px; width: 72px; background: currentColor; opacity: 0.45;
}
.invert .micro { color: var(--ink-3); }
/* editorial section index numbers */
#services > .wrap > .micro::before { content: "01"; color: var(--white); letter-spacing: 0.1em; }
#process .process-sticky > .micro::before { content: "02"; color: var(--black); letter-spacing: 0.1em; }
#samples > .wrap > .micro::before { content: "03"; color: var(--white); letter-spacing: 0.1em; }
#pricing > .wrap > .micro::before { content: "04"; color: var(--black); letter-spacing: 0.1em; }
#faq .wrap > .micro::before { content: "05"; color: var(--white); letter-spacing: 0.1em; }
#contact .contact-copy > .micro::before { content: "06"; color: var(--black); letter-spacing: 0.1em; }

.section-title {
  font-size: clamp(2.8rem, 6.8vw, 5.6rem); font-weight: 600;
  letter-spacing: -0.05em; line-height: 1.0; margin-bottom: 30px;
  color: var(--white); max-width: 16ch;
}
.invert .section-title { color: var(--black); }
.section-title em, .serif-accent {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--gray-2);
  max-width: 62ch; font-weight: 300;
}
.lede.narrow { max-width: 60ch; margin-bottom: 64px; }
.invert .lede { color: var(--ink-2); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .micro { justify-content: center; }
.center .section-title { margin-inline: auto; }

/* line-by-line clip reveal */
.rl-group .rl { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.rl-group .rl > span {
  display: block; transform: translateY(112%);
  transition: transform 1.15s var(--ease); transition-delay: var(--d, 0s);
  will-change: transform;
}
.rl-group.in .rl > span { transform: translateY(0); }
.rl-dim > span { color: var(--gray-3); }

/* generic fade-up reveal */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s); will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 18px 36px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              color 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
  will-change: transform; position: relative; overflow: hidden;
}
.btn span { position: relative; z-index: 1; }
.btn-solid { background: var(--white); color: var(--black); }
.btn-solid:hover { box-shadow: 0 0 44px rgba(255, 255, 255, 0.28); }
.btn-solid::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(0, 0, 0, 0.16), transparent);
  transform: skewX(-20deg); transition: left 0.7s var(--ease); pointer-events: none;
}
.btn-solid:hover::after { left: 135%; }
.btn-ghost { border-color: var(--line); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { box-shadow: 0 0 44px rgba(0, 0, 0, 0.35); }
.btn-sm { padding: 11px 24px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.invert .btn-solid { background: var(--black); color: var(--white); }
.invert .btn-solid:hover { box-shadow: 0 0 44px rgba(0, 0, 0, 0.3); }
.invert .btn-solid::after {
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}
.invert .btn-ghost { border-color: var(--hline); color: var(--black); }
.invert .btn-ghost:hover { border-color: var(--black); background: rgba(0, 0, 0, 0.05); }

/* ==========================================================================
   HERO v2 — monumental: full viewport, giant outlined backdrop word,
   overlapping chrome render, stats as a ruled strip.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 0; overflow: hidden;
}
.hero::after {
  content: "BIDWISE";
  position: absolute; left: 50%; bottom: -4vw;
  transform: translateX(-50%);
  font-size: 23vw; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-top {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 0; align-items: center;
}
.hero-copy { position: relative; z-index: 2; padding-right: 24px; }
.hero-title {
  font-size: clamp(3.4rem, 9.2vw, 8.2rem); font-weight: 700;
  letter-spacing: -0.055em; line-height: 0.96; margin-bottom: 32px;
  color: var(--white);
}
.hero-title .rl:last-child > span { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.hero-ctas { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-media { position: relative; perspective: 1200px; z-index: 1; margin-left: -40px; }
.hero-media img {
  width: min(100%, 620px); margin-inline: auto;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: grayscale(1) drop-shadow(0 40px 90px rgba(255, 255, 255, 0.08));
  animation: heroFloat 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -26px; }
}
/* stats: ruled strip pinned to hero bottom */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 72px; border-top: 1px solid var(--line);
  position: relative; z-index: 2; background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.stat { padding: 26px 32px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: block; font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-weight: 700;
  letter-spacing: -0.04em; color: var(--white); line-height: 1;
}
.stat span { font-size: 0.86rem; color: var(--gray-3); display: block; margin-top: 10px; max-width: 32ch; }
.scroll-cue { display: none; }

/* ---------- marquee: white band ---------- */
.marquee {
  border-block: 1px solid rgba(0, 0, 0, 0.08); overflow: hidden; white-space: nowrap;
  padding: 22px 0; background: var(--white);
}
.marquee-track {
  display: inline-flex; align-items: center;
  animation: marquee 26s linear infinite; will-change: transform;
}
.marquee-track > * { margin-right: 48px; }
.marquee-track span {
  font-size: 1rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: #0a0a0a;
}
.marquee-track i { color: #9a9a9a; font-style: normal; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 8vw, 120px) 0; position: relative; }
.invert { background: var(--white); color: var(--black); }
.section.invert { border-block: 1px solid rgba(0, 0, 0, 0.07); }
.invert .lede strong { color: var(--black); }
.invert ::selection { background: var(--black); color: var(--white); }
.invert :focus-visible { outline-color: var(--black); }
section[id] { scroll-margin-top: 88px; }

/* ==========================================================================
   SERVICES v2 — editorial index rows with hover invert.
   One row per service: giant numeral, title+body, price chip. Hover flips
   the whole row black-on-white. No cards, no stacking.
   ========================================================================== */
.services-intro {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px); align-items: end;
  margin-bottom: 64px;
}
.services-intro .lede.narrow { margin-bottom: 0; }
.services-media { perspective: 1200px; }
.services-media img {
  width: min(100%, 520px); margin-inline: auto;
  border: 1px solid var(--line-soft); border-radius: 20px;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: grayscale(1) drop-shadow(0 40px 90px rgba(255, 255, 255, 0.08));
  animation: heroFloat 10s ease-in-out infinite;
  will-change: transform;
}
.stack { display: grid; border-bottom: 1px solid var(--line); }
.stack-card {
  position: static;
  display: grid; grid-template-columns: 150px 1fr auto; gap: clamp(24px, 4vw, 64px);
  align-items: center;
  background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  padding: 52px 20px; margin: 0; box-shadow: none; overflow: visible;
  transition: background 0.5s var(--ease);
}
.stack-card:nth-child(1) { --i: 0; }
.stack-card:nth-child(2) { --i: 1; }
.stack-card:nth-child(3) { --i: 2; }
.card-num {
  font-size: clamp(3.6rem, 7vw, 6.4rem); font-weight: 700; letter-spacing: -0.05em;
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gray-4);
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease);
}
.stack-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 600;
  letter-spacing: -0.035em; color: var(--white); margin-bottom: 12px;
  transition: color 0.5s var(--ease);
}
.stack-card p { color: var(--gray-2); max-width: 58ch; font-weight: 300; transition: color 0.5s var(--ease); }
.price-hint {
  display: inline-block; font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--white);
  border: 1px solid var(--line); border-radius: 100px; padding: 12px 22px;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
/* hover: full row inverts to white */
.stack-card:hover { background: var(--white); }
.stack-card:hover .card-num { color: var(--black); -webkit-text-stroke-color: var(--black); }
.stack-card:hover h3 { color: var(--black); }
.stack-card:hover p { color: var(--ink-2); }
.stack-card:hover .price-hint { color: var(--black); border-color: rgba(0, 0, 0, 0.3); }
/* spotlight sheen (kept subtle on rows) */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.09), transparent 65%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.spot:hover::before { opacity: 0; } /* rows use full invert instead */
.invert .spot::before {
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 0, 0, 0.08), transparent 65%);
}

/* ==========================================================================
   PROCESS v2 (white) — blueprint grid, sticky gallery column,
   monumental step rows with timeline rail.
   ========================================================================== */
.section-process.invert { background: var(--paper); }
.section-process.invert::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
}
.section-process.invert .process-grid { position: relative; z-index: 1; }
.process-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 6vw, 110px);
  align-items: start;
}
.process-sticky { position: sticky; top: 110px; }
/* monolith: framed black art piece — gallery style on white */
.process-media {
  margin-top: 44px; border-radius: 22px; overflow: hidden;
  background: #000; border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 16px; max-width: 440px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}
.process-media img { width: 100%; border-radius: 10px; will-change: transform; transform: scale(1.12); }
.process-steps { position: relative; border-top: 1px solid var(--hline); }
.process-steps::before {
  content: ""; position: absolute; left: 46px; top: 90px; bottom: 90px;
  width: 1px; background: rgba(0, 0, 0, 0.14);
}
.step {
  position: relative;
  padding: 56px 24px; margin: 0 -24px;
  display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: start;
  border-bottom: 1px solid var(--hline);
  transition: background 0.45s var(--ease);
}
.step::before {
  content: ""; position: absolute; left: 65px; top: 66px;
  width: 9px; height: 9px; border-radius: 50%; background: #000;
  transform: translateX(-50%); z-index: 1;
  transition: transform 0.45s var(--ease);
}
.step:hover { background: rgba(0, 0, 0, 0.03); }
.step:hover::before { transform: translateX(-50%) scale(1.5); }
.step-num {
  font-size: clamp(3rem, 5.5vw, 4.6rem); font-weight: 700; letter-spacing: -0.045em;
  color: transparent; -webkit-text-stroke: 1.5px #9a9a9a; line-height: 1; text-align: center;
  transition: color 0.45s var(--ease), -webkit-text-stroke-color 0.45s var(--ease);
}
.step:hover .step-num { color: #000; -webkit-text-stroke-color: #000; }
.step h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em;
  color: var(--black); margin-bottom: 14px; text-align: left;
}
.step p { color: var(--ink-2); max-width: 54ch; font-weight: 300; font-size: 1.06rem; line-height: 1.75; grid-column: 2; }

/* ==========================================================================
   SAMPLES v2 (black) — full-bleed cinematic banner, 3-column card grid,
   3D tilt + spotlight preserved.
   ========================================================================== */
.samples-banner {
  margin: 24px calc(50% - 50vw) 72px; width: 100vw; max-width: 100vw;
  border-block: 1px solid var(--line-soft); overflow: hidden;
}
.samples-banner img {
  width: 100%; height: clamp(300px, 36vw, 480px); object-fit: cover;
  transform: scale(1.15); will-change: transform;
}
#samples .lede.narrow { margin-bottom: 0; }
.samples {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 0; perspective: 1600px; align-items: stretch;
}
.sample-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 2.6vw, 44px);
  display: flex; flex-direction: column;
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.sample-card:hover { border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.sample-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sample-top .micro { margin-bottom: 0; }
.sample-top .micro::after { display: none; }
.sample-index { font-size: 0.85rem; letter-spacing: 0.2em; color: var(--gray-4); }
.sample-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em;
  color: var(--white); margin: 20px 0 18px; line-height: 1.2; flex: none;
}
.sample-meta { display: grid; gap: 10px; margin-bottom: 24px; }
.sample-meta li { color: var(--gray-3); font-size: 0.92rem; line-height: 1.55; }
.sample-meta strong { color: var(--gray-1); font-weight: 600; }
.excerpt { border-top: 1px solid var(--line-soft); margin-top: auto; }
.excerpt summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.excerpt summary::-webkit-details-marker { display: none; }
.excerpt summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 300; line-height: 1;
  transition: transform 0.45s var(--ease); flex: none;
}
.excerpt[open] summary::after { transform: rotate(45deg); }
.excerpt-body { padding: 6px 0 26px; display: grid; gap: 18px; }
.excerpt-body blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem); letter-spacing: -0.01em;
  color: var(--white); line-height: 1.5; border-left: 2px solid var(--white); padding-left: 22px;
}
.excerpt-body table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.excerpt-body caption { text-align: left; padding-bottom: 10px; color: var(--gray-1); font-weight: 600; }
.excerpt-body th, .excerpt-body td {
  text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); color: var(--gray-2);
}
.excerpt-body th { color: var(--white); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.excerpt-body p { color: var(--gray-2); font-size: 0.95rem; }

/* ==========================================================================
   PRICING v2 (white) — monumental statement, framed diptych below.
   ========================================================================== */
#pricing .section-title { max-width: 18ch; }
/* single framed art piece, centered */
.pricing-duo {
  display: block;
  max-width: 720px; margin: 64px auto;
}
.pricing-media {
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.pricing-media img {
  border-radius: 10px; width: 100%;
  height: clamp(260px, 30vw, 400px); object-fit: cover;
  transform: scale(1.12); will-change: transform;
}
.pricing-body { margin-top: 8px; }
.pricing-body .lede { max-width: 66ch; }
.pricing-body .lede strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15em; }
.pricing-cta { margin-top: 40px; }

/* ==========================================================================
   FAQ v2 (black) — sticky visual rail left, accordion right.
   ========================================================================== */
#faq .wrap.narrow {
  width: var(--wrap);
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  column-gap: clamp(48px, 6vw, 110px); align-items: start;
}
#faq .micro { grid-column: 1; grid-row: 1; }
#faq .section-title { grid-column: 1; grid-row: 2; }
#faq .faq-media { grid-column: 1; grid-row: 3; position: sticky; top: 120px; margin: 8px 0 0; perspective: 1000px; }
#faq .faq-media img {
  width: min(100%, 340px);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: grayscale(1) drop-shadow(0 30px 80px rgba(255, 255, 255, 0.1));
  animation: heroFloat 11s ease-in-out infinite; will-change: transform;
}
.faq { grid-column: 2; grid-row: 1 / span 3; display: grid; margin-top: 0; align-content: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 30px 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 500; letter-spacing: -0.02em;
  color: var(--white); transition: transform 0.4s var(--ease);
}
.faq-item summary:hover .faq-q { transform: translateX(10px); }
.faq-x { position: relative; width: 22px; height: 22px; flex: none; }
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; background: var(--white); transition: transform 0.45s var(--ease);
}
.faq-x::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-x::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq-item[open] .faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::before { transform: rotate(180deg); }
.faq-item .answer { padding: 0 8px 34px; max-width: 62ch; }
.faq-item .answer p { color: var(--gray-2); font-weight: 300; font-size: 1.02rem; }

/* ==========================================================================
   CONTACT v2 (white) — editorial split, gallery-framed torus, sharp form card.
   ========================================================================== */
.section-contact.invert { background: var(--paper); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.contact-points { display: grid; gap: 16px; margin-top: 32px; }
.contact-points li {
  position: relative; padding-left: 34px; color: var(--ink-2); font-weight: 300; font-size: 1.02rem;
}
.contact-points li::before {
  content: "→"; position: absolute; left: 0; color: var(--black); font-weight: 600;
}
.contact-mail { margin-top: 32px; color: var(--ink-3); }
.contact-mail a {
  color: var(--black); font-weight: 600; text-decoration: underline;
  text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.contact-media { margin-top: 44px; perspective: 1000px; }
.contact-media img {
  width: min(100%, 440px);
  background: #000; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 22px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: grayscale(1);
  animation: heroFloat 11s ease-in-out infinite; will-change: transform;
}
.contact-form {
  background: var(--white); border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 20px;
  padding: clamp(32px, 3.6vw, 54px); display: grid; gap: 22px;
  position: sticky; top: 110px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}
.field { display: grid; gap: 9px; }
.field label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-3);
}
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--black);
  background: #f4f4f4; border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 12px;
  padding: 15px 18px; width: 100%;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--black); background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}
.form-note { font-size: 0.8rem; color: #9a9a9a; }
.form-error { font-size: 0.9rem; color: #a00; }
.form-error a { color: #a00; }
.form-success {
  display: none; border: 1px solid rgba(0, 0, 0, 0.6); border-radius: 14px;
  padding: 26px; background: rgba(0, 0, 0, 0.03);
}
.form-success.show { display: block; animation: popIn 0.6s var(--ease); }
.form-success h3 { color: var(--black); letter-spacing: -0.02em; margin-bottom: 8px; }
.form-success p { color: var(--ink-2); font-size: 0.95rem; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* ==========================================================================
   FOOTER v2 (black) — CTA band, monumental wordmark.
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 88px 0 36px; overflow: hidden; }
.footer-cta {
  display: grid; grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
  margin-bottom: 80px; padding: clamp(36px, 4.5vw, 72px);
  border: 1px solid var(--line); border-radius: 26px; background: var(--panel);
  overflow: hidden; position: relative;
}
.footer-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 90% at 20% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 50%, #000 20%, transparent 70%);
}
.footer-cta-media { perspective: 1200px; position: relative; z-index: 1; }
.footer-cta-media img {
  width: min(100%, 360px); margin-inline: auto;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: grayscale(1) drop-shadow(0 30px 80px rgba(255, 255, 255, 0.1));
  animation: heroFloat 12s ease-in-out infinite;
  will-change: transform;
}
.footer-cta-copy { position: relative; z-index: 1; }
.footer-cta-copy h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 700;
  letter-spacing: -0.05em; line-height: 1.0; color: var(--white);
  margin-bottom: 20px;
}
.footer-cta-copy p { color: var(--gray-2); font-weight: 300; max-width: 48ch; margin-bottom: 32px; }
.footer-cta-copy p:last-child { margin-bottom: 0; }
.footer-word {
  font-size: clamp(4rem, 15vw, 13rem); font-weight: 700; letter-spacing: -0.05em;
  line-height: 0.9; color: var(--white); text-transform: uppercase;
  margin-bottom: 56px; user-select: none;
}
.footer-word::first-line { color: transparent; -webkit-text-stroke: 1.5px var(--gray-4); }
.footer-grid {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 44px;
}
.footer-tag { color: var(--gray-3); max-width: 34ch; font-weight: 300; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 44px; }
.footer-links a {
  color: var(--gray-2); text-decoration: none; font-size: 0.9rem;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease); display: inline-block;
}
.footer-links a:hover { color: var(--white); transform: translateX(6px); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-top: 26px;
  color: var(--gray-4); font-size: 0.85rem;
}
.footer-bottom a { color: var(--gray-3); }

/* ---------- anchored sections clear the fixed header ---------- */
section[id] { scroll-margin-top: 88px; }

/* ==========================================================================
   RESPONSIVE — desktop-first: the design above targets ≥1200px.
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-desktop, .site-header .nav-cta { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 7px; background: none; border: 0;
    cursor: pointer; padding: 10px; z-index: 130; position: relative;
  }
  .menu-toggle span {
    display: block; width: 30px; height: 2px; background: #fff;
    transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
  }
  body.menu-open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  body.menu-open .menu-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  /* process: single-column stack — title + single full-width image on top, steps below */
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-sticky { position: static; }
  .process-media { max-width: none; margin-top: 32px; }

  /* samples: 2-col */
  .samples { grid-template-columns: repeat(2, 1fr); }

  /* faq: single column */
  #faq .wrap.narrow { grid-template-columns: 1fr; }
  #faq .micro, #faq .section-title, #faq .faq-media, #faq .faq { grid-column: 1; grid-row: auto; }
  #faq .faq-media { position: static; margin: 24px 0 8px; }
  #faq .faq-media img { width: min(60vw, 300px); }
  #faq .faq { margin-top: 32px; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 104px; }
  .hero::after { font-size: 30vw; bottom: -6vw; }
  .hero-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { margin-left: 0; margin-top: 4px; }
  .hero-media img { width: min(72vw, 420px); }
  .hero-stats { grid-template-columns: 1fr; margin-top: 48px; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .stat:first-child { border-top: 0; padding-top: 26px; }
  .services-intro { grid-template-columns: 1fr; margin-bottom: 48px; }
  .services-media img { width: min(80vw, 440px); }
  .stack-card { grid-template-columns: 1fr; gap: 18px; padding: 40px 16px; }
  .card-num { font-size: 3.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { position: static; }
  .footer-cta { grid-template-columns: 1fr; margin-bottom: 70px; }
  .footer-cta-media img { width: min(72vw, 340px); }
  .pricing-duo { max-width: 640px; }
  .samples { grid-template-columns: 1fr; }
  .samples-banner img { height: clamp(220px, 52vw, 340px); }
}

@media (max-width: 600px) {
  .hero-ctas .btn { width: 100%; }
  .card-num { font-size: 2.8rem; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step p { grid-column: auto; }
  .process-steps::before, .step::before { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .micro { letter-spacing: 0.22em; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .rl-group .rl > span { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-media img, .contact-media img, .services-media img, .footer-cta-media img,
  .samples-banner img, .faq-media img, .pricing-duo img { animation: none; transform: none; }
}
