/* ============================================================
   Already Built — landing page
   Concept: "The Blueprint" — precision-engineering aesthetic.
   Palette borrowed from the Eidmi token set.
   ============================================================ */

:root {
  /* color */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3fa;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --subtle: #64748b;
  --accent: #2563eb;
  --accent-bright: #60a5fa;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.2);
  --dark-bg: #0b1120;
  --dark-line: rgba(148, 184, 255, 0.14);
  --dark-text: #e6ecf7;
  --dark-muted: #9fb0c9;
  --dark-label: rgba(191, 219, 254, 0.95);

  /* type — Zodiak (display serif) + Switzer (body sans), per the Eidmi pairing */
  --font-display: "Zodiak", "Gambarino", Georgia, "Times New Roman", serif;
  --font-body: "Switzer", "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", "Menlo", monospace;

  /* misc */
  --radius: 8px;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
  --header-h: 84px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 85% -120px, rgba(37, 99, 235, 0.07), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 38%, #edf2f8 100%);
  background-color: var(--bg);
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, dt, figure, ol, ul {
  margin: 0;
  padding: 0;
}
ol, ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
strong {
  font-weight: 600;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.container {
  width: min(1240px, calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
}
.skip-link:focus-visible {
  top: 12px;
}

/* noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
@media (max-width: 720px) {
  body::after {
    display: none;
  }
}

/* ---------- type helpers ---------- */
.mono,
.rule-index,
.rule-label,
.hero-eyebrow,
.cta-eyebrow,
.frame-meta,
.work-index,
.work-kicker,
.work-fig,
.work-counter,
.work-metric-label,
.stat-label,
.trust-label,
.diff-foot,
.process-num,
.scrollcue-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

/* split-text plumbing */
.js [data-split] {
  visibility: hidden;
}
.js [data-split].is-split {
  visibility: visible;
}
.split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-block: 0.1em;
  margin-block: -0.1em;
}
.split-inner {
  display: inline-block;
  will-change: transform;
}
.js [data-fade] {
  opacity: 0;
}
.js [data-fade].is-shown,
.no-anim [data-fade] {
  opacity: 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.78rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out),
    background-color 220ms ease, color 220ms ease, border-color 220ms ease;
  position: relative;
}
.btn-arrow {
  display: inline-block;
  transition: transform 220ms var(--ease-out);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}
.btn-dark:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}
.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(2, 8, 23, 0.4);
}
.btn-light:hover {
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.45);
}
.btn-xl {
  min-height: 56px;
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 320ms ease, backdrop-filter 320ms ease;
}
.header-inner {
  width: min(1380px, calc(100% - 3rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header-rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
  opacity: 0;
  transition: opacity 320ms ease;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}
.wordmark img {
  height: 60px;
  width: auto;
  transition: filter 320ms ease;
}
/* the source logo is white — invert it for the light header state */
.site-header.is-light .wordmark img {
  filter: invert(1) hue-rotate(180deg);
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a {
  position: relative;
  padding: 0.5rem 0;
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease-out);
}
.site-nav a:hover {
  opacity: 1;
}
.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-header {
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
  border-radius: 6px;
}

/* ---------- mobile menu ---------- */
.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
}
.menu-toggle-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 300ms var(--ease-out), top 300ms var(--ease-out);
}
.menu-toggle-bar:nth-child(1) { top: 19px; }
.menu-toggle-bar:nth-child(2) { top: 27px; }
.menu-open .menu-toggle-bar:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-toggle-bar:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1.5rem) 1.6rem 3rem;
  background:
    radial-gradient(700px 420px at 82% 0%, rgba(37, 99, 235, 0.09), transparent 60%),
    linear-gradient(165deg, #0a0e17 0%, #0c1322 60%, #0e1830 100%);
  color: var(--dark-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 320ms ease;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: #f8fafc;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(148, 184, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-nav a::after {
  content: "\2192";
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: rgba(159, 176, 201, 0.85);
}
.mobile-menu-nav a,
.mobile-menu-cta {
  transform: translateY(14px);
  opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 320ms ease;
}
.menu-open .mobile-menu-nav a,
.menu-open .mobile-menu-cta {
  transform: translateY(0);
  opacity: 1;
}
.menu-open .mobile-menu-nav a:nth-child(1) { transition-delay: 60ms; }
.menu-open .mobile-menu-nav a:nth-child(2) { transition-delay: 120ms; }
.menu-open .mobile-menu-cta { transition-delay: 200ms; }
.mobile-menu-cta {
  margin-top: 2.2rem;
  justify-content: center;
}

/* while the overlay is open the header sits on dark — force dark styling.
   html.menu-open outranks .site-header.is-light, which appears later. */
html.menu-open .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--dark-text);
}
html.menu-open .site-header .header-rule {
  opacity: 0;
}
html.menu-open .site-header.is-light .wordmark img {
  filter: none;
}
html.menu-open body {
  overflow: hidden;
}

@media (min-width: 761px) {
  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 760px) {
  .site-header .site-nav,
  .site-header .btn-header {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  /* mobile hero: drop the drafting frame, SEC label, and scroll cue */
  .hero .hero-frame,
  .hero .hero-scrollcue {
    display: none;
  }
}

/* header over dark hero */
.site-header.is-dark {
  color: var(--dark-text);
}
.site-header.is-dark .btn-header {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.site-header.is-dark .btn-header:hover {
  background: #fff;
  color: var(--ink);
}

/* header scrolled into light page */
.site-header.is-light {
  color: var(--ink);
  background: rgba(248, 250, 253, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.site-header.is-light .header-rule {
  opacity: 1;
}
.site-header.is-light .btn-header {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.site-header.is-light .btn-header:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

/* ---------- section rule (annotation header) ---------- */
.section-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--subtle);
  margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem);
}
.rule-index {
  color: var(--accent);
}
.rule-index::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  margin-right: 0.6rem;
  transform: rotate(45deg) translateY(-1px);
}
.rule-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  margin-right: 0.65rem;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.9);
  animation: pulse-dot 2.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============================================================
   01 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 700px at 70% 20%, rgba(37, 99, 235, 0.08), transparent 65%),
    linear-gradient(165deg, #0a0e17 0%, #0c1322 55%, #0e1830 100%);
  color: var(--dark-text);
  overflow: clip;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 14, 23, 0.55) 0%, transparent 22%, transparent 62%, rgba(10, 14, 23, 0.92) 100%),
    radial-gradient(900px 520px at 28% 58%, rgba(10, 14, 23, 0.62), transparent 70%);
}

.hero-frame {
  position: absolute;
  inset: clamp(86px, 9vh, 110px) clamp(18px, 3vw, 40px) clamp(20px, 4vh, 36px);
  pointer-events: none;
  border: 1px solid rgba(148, 184, 255, 0.12);
}
.frame-tick {
  position: absolute;
  width: 14px;
  height: 14px;
}
.frame-tick::before,
.frame-tick::after {
  content: "";
  position: absolute;
  background: rgba(191, 219, 254, 0.7);
}
.frame-tick::before { width: 14px; height: 1px; top: 50%; }
.frame-tick::after  { width: 1px; height: 14px; left: 50%; }
.tick-tl { top: -7px; left: -7px; }
.tick-tr { top: -7px; right: -7px; }
.tick-bl { bottom: -7px; left: -7px; }
.tick-br { bottom: -7px; right: -7px; }

.frame-meta {
  position: absolute;
  top: -0.5em;
  font-size: 0.66rem;
  color: rgba(159, 176, 201, 0.85);
  background: transparent;
  padding-inline: 0.6rem;
}
.frame-meta-left { left: 28px; }
.frame-meta-right { right: 28px; }

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(7rem, 14vh, 9rem);
  padding-bottom: clamp(6rem, 12vh, 8rem);
  max-width: 1240px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  color: var(--dark-label);
  margin-bottom: 1.6rem;
}
.hero-heading {
  font-size: clamp(2.5rem, 6.2vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #f8fafc;
  max-width: 18ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 1.8rem;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.7;
  color: var(--dark-muted);
}
.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.hero-secondary {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-muted);
  border-bottom: 1px solid rgba(159, 176, 201, 0.4);
  padding-bottom: 3px;
  transition: color 200ms ease, border-color 200ms ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.hero-secondary:hover {
  color: #fff;
  border-color: #fff;
}

.hero-scrollcue {
  position: absolute;
  bottom: clamp(28px, 5vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: rgba(159, 176, 201, 0.9);
}
.scrollcue-label {
  font-size: 0.64rem;
}
.scrollcue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.9), transparent);
  animation: scroll-drip 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes scroll-drip {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* ============================================================
   02 · STATS
   ============================================================ */
.stats {
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  position: relative;
  padding: 0.4rem 2rem 0.6rem 1.6rem;
  border-left: 1px solid var(--border-strong);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 18px;
  background: var(--accent);
}
.stat-label {
  font-size: 0.7rem;
  color: var(--subtle);
  order: 2;
}
.stat-figure {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-top: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.stats-cta-row {
  margin-top: clamp(2.8rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
}

/* ============================================================
   03 · TRUST MARQUEE
   ============================================================ */
.trust {
  padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(4.5rem, 7vw, 6.5rem);
}
.trust-label {
  font-size: 0.72rem;
  color: var(--subtle);
  text-align: center;
  margin-bottom: 2.2rem;
}
.trust-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  border-block: 1px solid var(--border);
  padding-block: 1.35rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  animation: marquee 60s linear infinite;
}
.trust-marquee:hover .trust-track {
  animation-play-state: paused;
}
.trust-track li {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.005em;
  color: var(--muted);
  white-space: nowrap;
  padding-inline: 1.6rem;
  position: relative;
}
.trust-track li::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(37, 99, 235, 0.55);
  transform: translateY(-50%) rotate(45deg);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
  .trust-marquee { flex-wrap: wrap; }
}

/* ============================================================
   04 · FEATURED CASE
   ============================================================ */
.featured {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.featured-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.018em;
  max-width: 18ch;
  text-wrap: balance;
}
.featured-copy p {
  margin-top: 1.6rem;
  margin-bottom: 2.2rem;
  color: var(--muted);
  max-width: 58ch;
}

.featured-portrait {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  box-shadow: var(--shadow-soft);
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.featured-portrait img {
  border-radius: 4px;
  width: 100%;
}
.plate-tick {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 1;
}
.plate-tick::before,
.plate-tick::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.plate-tick::before { width: 12px; height: 1px; top: 50%; }
.plate-tick::after  { width: 1px; height: 12px; left: 50%; }
.featured-portrait .tick-tl { top: -6px; left: -6px; }
.featured-portrait .tick-tr { top: -6px; right: -6px; }
.featured-portrait .tick-bl { bottom: -6px; left: -6px; }
.featured-portrait .tick-br { bottom: -6px; right: -6px; }

.featured-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.featured-caption strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
}
.featured-caption span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
  text-align: right;
}

/* ============================================================
   05 · WORK RAIL
   ============================================================ */
.work {
  position: relative;
}
.work-pin {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 1024px) {
  .work-pin {
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 1.5rem) 2rem;
  }
}
@media (min-width: 1024px) and (max-height: 880px) {
  .work-head-row {
    margin-bottom: 1.4rem;
  }
  .work-plate {
    min-height: 240px;
  }
  .schem {
    max-width: 240px;
  }
  .work-metric-figure {
    font-size: 1.6rem;
  }
  .work-title {
    font-size: 1.55rem;
    margin-top: 0.9rem;
  }
  .work-body {
    font-size: 0.93rem;
  }
}
.work-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: clamp(2.4rem, 4.5vw, 3.6rem);
}
.work-head-row h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
}
.work-head-sub {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.99rem;
}
.work-head-sub a {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid rgba(37, 99, 235, 0.35);
  transition: border-color 200ms ease;
}
.work-head-sub a:hover {
  border-color: var(--accent);
}

.work-rail-wrap {
  overflow: hidden;
}
.work-rail {
  display: flex;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  padding-left: max(calc((100vw - 1240px) / 2), 1.5rem);
  padding-right: max(calc((100vw - 1240px) / 2), 1.5rem);
  will-change: transform;
}
.work-panel {
  flex: 0 0 auto;
  width: min(900px, 82vw);
}
.work-card {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(1.5rem, 2.6vw, 2.6rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.work-plate {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  overflow: hidden;
}
.schem {
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
  flex: 1;
}
.schem path,
.schem rect,
.schem circle,
.schem line {
  stroke: rgba(15, 23, 42, 0.55);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.schem .dash {
  stroke-dasharray: 4 5;
  stroke: rgba(15, 23, 42, 0.32);
}
.schem .acc {
  stroke: var(--accent);
}
.schem .dash.acc {
  stroke: rgba(37, 99, 235, 0.75);
}
.work-metric {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}
.work-metric-figure {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.work-metric-label {
  font-size: 0.62rem;
  color: var(--subtle);
}
.work-fig {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.62rem;
  color: var(--accent);
}
.work-info {
  display: flex;
  flex-direction: column;
  padding-block: 0.4rem;
}
.work-index {
  font-size: 0.66rem;
  color: var(--subtle);
  margin-bottom: auto;
}
.work-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-top: 1.4rem;
}
.work-kicker {
  font-size: 0.66rem;
  color: var(--accent);
  margin-top: 0.7rem;
}
.work-body {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.99rem;
  max-width: 46ch;
}
.work-body strong {
  color: var(--ink);
}

.work-progress {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(2rem, 3.6vw, 3rem);
}
.work-counter {
  font-size: 0.7rem;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.work-bar {
  flex: 1;
  height: 1px;
  background: var(--border);
  position: relative;
}
.work-bar-fill {
  position: absolute;
  inset: -0.5px 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* mobile / no-pin fallback: swipeable rail */
@media (max-width: 1023px) {
  .work-rail-wrap {
    overflow: visible;
  }
  .work-rail {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .work-rail::-webkit-scrollbar {
    display: none;
  }
  .work-panel {
    scroll-snap-align: center;
    width: min(640px, 88vw);
  }
  .work-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .work-plate {
    min-height: 0;
  }
  .schem {
    max-width: 280px;
  }
  .work-index {
    margin-bottom: 0;
  }
  .work-title {
    margin-top: 0.8rem;
  }
}

/* ============================================================
   06 · DIFFERENTIATORS (sticky stack)
   ============================================================ */
.diff {
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.diff-heading {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
  text-wrap: balance;
}
.diff-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.diff-card {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem + var(--i) * 3.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.4vw, 3rem) clamp(1.4rem, 3.4vw, 3.2rem);
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.05), var(--shadow-soft);
  min-height: 16rem;
}
.diff-num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(37, 99, 235, 0.55);
}
.diff-title {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}
.diff-body p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 52ch;
}
.diff-foot {
  font-size: 0.66rem;
  color: var(--subtle);
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-top: 1.6rem;
}
.diff-card-dark {
  background: linear-gradient(160deg, #0d1320 0%, #11192c 100%);
  border-color: rgba(148, 184, 255, 0.18);
  color: var(--dark-text);
}
.diff-card-dark .diff-body p {
  color: var(--dark-muted);
}
.diff-card-dark .diff-foot {
  border-top-color: rgba(148, 184, 255, 0.18);
  color: var(--dark-muted);
}
.diff-card-dark .diff-num {
  -webkit-text-stroke: 1.5px rgba(96, 165, 250, 0.8);
}

@media (max-width: 760px) {
  .diff-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    top: calc(var(--header-h) + 0.8rem + var(--i) * 1.1rem);
    min-height: 0;
  }
  .diff-num {
    font-size: 2.4rem;
    -webkit-text-stroke-width: 1.2px;
  }
}

/* ============================================================
   07 · PROCESS
   ============================================================ */
.process {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(5rem, 9vw, 8rem);
}
.process-heading {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  margin-bottom: clamp(3rem, 6vw, 4.6rem);
}
.process-track {
  position: relative;
  height: 1px;
  background: var(--border);
  margin-bottom: -1px;
}
.process-line {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem);
}
.process-step {
  position: relative;
  padding-top: 2.2rem;
}
.process-marker {
  position: absolute;
  top: -8px;
  left: 0;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  transform: rotate(45deg);
}
.process-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 400ms ease;
}
.process-step.is-active .process-dot {
  opacity: 1;
}
.process-step.is-active .process-marker {
  border-color: var(--accent);
}
.process-num {
  font-size: 0.7rem;
  color: var(--accent);
}
.process-title {
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  margin-top: 0.8rem;
}
.process-body {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.99rem;
  max-width: 38ch;
}

@media (max-width: 760px) {
  .process-track {
    display: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-left: 1px solid var(--border);
  }
  .process-step {
    padding: 0 0 2.4rem 1.8rem;
  }
  .process-step:last-child {
    padding-bottom: 0;
  }
  .process-marker {
    top: 4px;
    left: -9px;
  }
}

/* ============================================================
   08 · CTA BAND + FOOTER
   ============================================================ */
.cta-band {
  position: relative;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(37, 99, 235, 0.1), transparent 65%),
    linear-gradient(180deg, #0a0e17 0%, #0d1526 70%, #0a0e17 100%);
  color: var(--dark-text);
  padding: clamp(5.5rem, 11vw, 9.5rem) 0;
  overflow: clip;
}
.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(820px 480px at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(820px 480px at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.cta-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-eyebrow {
  font-size: 0.74rem;
  color: var(--dark-label);
  margin-bottom: 1.4rem;
}
.cta-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  color: #f8fafc;
  max-width: 16ch;
  text-wrap: balance;
}
.cta-body {
  margin-top: 1.5rem;
  margin-bottom: 2.4rem;
  max-width: 52ch;
  color: var(--dark-muted);
  font-size: 1.05rem;
}
.cta-fineprint {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: rgba(159, 176, 201, 0.75);
}

.site-footer {
  background: #0a0e17;
  color: var(--dark-muted);
  border-top: 1px solid rgba(148, 184, 255, 0.12);
  padding: 2.6rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.footer-brand img {
  width: 142px;
  height: auto;
}
.footer-nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.9rem;
}
.footer-nav a {
  opacity: 0.8;
  transition: opacity 200ms ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover {
  opacity: 1;
}
.footer-legal {
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ============================================================
   Responsive odds & ends
   ============================================================ */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-portrait {
    max-width: 440px;
  }
  .work-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.4rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  .container {
    width: calc(100% - 2.4rem);
  }
  .wordmark img {
    height: 44px;
  }
  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .featured-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .featured-caption span {
    text-align: left;
  }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(10, 14, 23, 0.6) 0%, transparent 24%, transparent 56%, rgba(10, 14, 23, 0.94) 100%),
      radial-gradient(420px 540px at 40% 62%, rgba(10, 14, 23, 0.75), transparent 75%);
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
  }
  .stat {
    padding-right: 0.8rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SUBPAGES — compact dark hero + page-specific sections
   ============================================================ */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(37, 99, 235, 0.09), transparent 65%),
    linear-gradient(165deg, #0a0e17 0%, #0c1322 55%, #0e1830 100%);
  color: var(--dark-text);
  padding: calc(var(--header-h) + clamp(3.5rem, 8vh, 6.5rem)) 0 clamp(3.5rem, 7vh, 5.5rem);
  overflow: clip;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(980px 460px at 28% 30%, #000 25%, transparent 78%);
  mask-image: radial-gradient(980px 460px at 28% 30%, #000 25%, transparent 78%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
}
.page-title {
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  line-height: 1.08;
  max-width: 20ch;
  color: #f8fafc;
  text-wrap: balance;
}
.page-sub {
  margin-top: 1.3rem;
  max-width: 56ch;
  color: var(--dark-muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
}
.page-meta {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.7rem;
  color: rgba(159, 176, 201, 0.85);
  margin-top: 1.4rem;
}

/* ---------- verticals (services) ---------- */
.verticals {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.verticals-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 20ch;
}
.verticals-head p {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: clamp(2.4rem, 4.5vw, 3.4rem);
}
.vertical-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.vertical-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.vertical-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.vertical-icon svg {
  width: 22px;
  height: 22px;
}
.vertical-card h3 {
  font-size: 1.32rem;
}
.vertical-card > p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.vertical-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.vertical-tags li {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.55rem;
}

/* ---------- bio (about) ---------- */
.bio {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.bio-heading {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 18ch;
  margin-bottom: clamp(2.4rem, 4.5vw, 3.4rem);
}
.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.bio-copy p {
  color: var(--muted);
  max-width: 62ch;
}
.bio-copy p + p {
  margin-top: 1.3rem;
}

/* ---------- booking ---------- */
.booking {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem);
}
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.8rem, 3.5vw, 3.5rem);
  align-items: start;
}
.agenda-plate {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft);
}
.agenda-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  color: var(--accent);
}
.agenda-list {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
}
.agenda-list li {
  display: flex;
  gap: 0.95rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border);
}
.agenda-list li:first-child {
  padding-top: 0;
}
.agenda-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.agenda-body {
  color: var(--muted);
  font-size: 0.99rem;
}
.agenda-body strong {
  color: var(--ink);
}
.agenda-closing {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  color: var(--subtle);
}
.embed-plate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(0.8rem, 1.5vw, 1.3rem);
  box-shadow: var(--shadow-soft);
}
.cal-inline-wrapper {
  width: 100%;
  min-height: 620px;
}

/* ---------- legal ---------- */
.legal-body {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.legal-prose {
  max-width: 720px;
}
.legal-prose h2 {
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-prose p {
  color: var(--muted);
}
.legal-prose p + p {
  margin-top: 0.9rem;
}
.legal-prose strong {
  color: var(--ink);
}
.legal-prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(37, 99, 235, 0.35);
  transition: border-color 200ms ease;
}
.legal-prose a:hover {
  border-color: var(--accent);
}

@media (max-width: 1000px) {
  .vertical-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-grid {
    grid-template-columns: 1fr;
  }
  .agenda-plate {
    position: static;
  }
}
@media (max-width: 900px) {
  .bio-layout {
    grid-template-columns: 1fr;
  }
  .bio .featured-portrait {
    max-width: 440px;
  }
}
@media (max-width: 640px) {
  .vertical-grid {
    grid-template-columns: 1fr;
  }
}

/* reduced motion: hand everything its final state */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .scrollcue-line {
    animation: none;
  }
}
