/* ==========================================================================
   kumoworks — design system
   Editorial / technical. Warm paper, ink, burnt orange. No gradients, no robots.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f2ed;
  --paper-2: #e9e7df;
  --paper-3: #dfdcd2;
  --card: #ffffff;
  --ink: #101214;
  --ink-2: #2a2e31;
  --muted: #5e625f;
  --faint: #6b6f6b;
  --line: rgba(16, 18, 20, 0.14);
  --line-strong: rgba(16, 18, 20, 0.28);
  --accent: #1f3aff;
  --accent-bright: #3d5bff;
  --accent-soft: #dde3ff;
  --accent-on-dark: #9aa9ff;
  --green: #1f3aff;
  --green-soft: #dde3ff;
  --dark: #0c0e11;
  --dark-2: #14171b;
  --dark-line: rgba(243, 242, 237, 0.14);
  --dark-muted: #a6a8a3;
  --light: #f3f2ed;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gutter: 28px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(16, 18, 20, 0.08);
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1, h2, h3 { font-family: var(--font-display); }
strong { font-weight: 600; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--light); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 999;
  background: var(--ink);
  color: var(--light);
  padding: 10px 16px;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Layout ----------------------------------------------------------------- */
.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 124px) 0;
  position: relative;
}
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--dark {
  background: var(--dark);
  color: var(--light);
}
.section--dark .eyebrow { color: var(--dark-muted); }
.section--dark .muted { color: var(--dark-muted); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--dark { background: var(--dark-line); }

/* Typography ------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.8vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.display em { font-style: italic; }
.display--md { font-size: clamp(2.6rem, 4.6vw, 4.3rem); line-height: 0.98; }
.display--sm { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: var(--dark-muted); }
.eyebrow--accent { color: var(--accent); }

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}
.section--dark .lede { color: #d8d4c8; }

.muted { color: var(--muted); }
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.serif { font-family: var(--font-display); }
.accent { color: var(--accent); }
.small { font-size: 0.875rem; line-height: 1.55; }
.tiny { font-size: 0.75rem; line-height: 1.5; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--light);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn__arrow {
  font-family: var(--font-sans);
  font-size: 15px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.btn--sm { min-height: 38px; padding: 0 16px; font-size: 12.5px; gap: 8px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 14.5px; }
.btn--light {
  background: var(--light);
  border-color: var(--light);
  color: var(--ink);
}
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--light); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--light); }
.btn--ghost-light {
  background: transparent;
  border-color: rgba(243, 242, 237, 0.32);
  color: var(--light);
}
.btn--ghost-light:hover { background: var(--light); color: var(--ink); border-color: var(--light); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow--light { border-color: rgba(243, 242, 237, 0.3); color: var(--light); }
.link-arrow--light:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

/* Status / tags ---------------------------------------------------------- */
.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 58, 255, 0.12);
  animation: pulse 2.4s infinite;
}
.status-dot--light {
  background: #9aa9ff;
  box-shadow: 0 0 0 3px rgba(154, 169, 255, 0.14);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
}
.tag--accent { border-color: rgba(31, 58, 255, 0.3); color: var(--accent); background: rgba(31, 58, 255, 0.05); }
.tag--green { border-color: rgba(31, 58, 255, 0.3); color: var(--green); background: rgba(31, 58, 255, 0.05); }
.tag--dark { border-color: var(--dark-line); color: var(--dark-muted); }

/* Announcement + header -------------------------------------------------- */
.announce {
  background: var(--ink);
  color: var(--light);
  font-size: 12px;
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 36px;
}
.announce p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #d8d4c8;
}
.announce a {
  color: var(--light);
  border-bottom: 1px solid rgba(243, 242, 237, 0.35);
  padding-bottom: 1px;
  white-space: nowrap;
}
.announce a:hover { color: #9aa9ff; border-color: #9aa9ff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(16, 18, 20, 0.06); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__mark { width: 26px; height: 26px; color: var(--ink); }
.brand__word {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.brand--light .brand__mark,
.brand--light .brand__word { color: var(--light); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
  margin-left: auto;
}
.site-nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 4px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after { right: 0; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  position: relative;
}
.nav-toggle__bar {
  position: absolute;
  left: 50%; top: 50%;
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%) translateY(-3px);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.nav-toggle__bar:last-child { transform: translate(-50%, -50%) translateY(3px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 0 28px;
}
.mobile-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 30px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 18px; align-self: flex-start; }
.mobile-nav__meta {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Mobile sticky CTA ------------------------------------------------------- */
.mobile-cta { display: none; }

@media (max-width: 680px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(243, 242, 237, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { min-height: 44px; font-size: 12px; padding: 0 14px; }
  .page-book .mobile-cta, .page-thank-you .mobile-cta { display: none; }
  body { padding-bottom: 72px; }
  .page-book, .page-thank-you { padding-bottom: 0; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero__copy { position: relative; z-index: 1; }
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--line-strong);
}
.hero h1 {
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: -0.028em;
  margin-bottom: 28px;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 em { color: var(--accent); }
.hero__sub {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 48ch;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--green);
  border-radius: 50%;
}

.hero__visual {
  position: relative;
  z-index: 1;
  padding: 12px 0 72px;
}

/* Agent console */
.console {
  position: relative;
  background: linear-gradient(155deg, #101214 0%, #08090b 100%);
  border: 1px solid rgba(243, 242, 237, 0.18);
  border-radius: 4px;
  color: var(--light);
  box-shadow: 22px 22px 0 rgba(16, 18, 20, 0.06), var(--shadow);
  overflow: hidden;
}
.console::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 242, 237, 0.09) 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  opacity: 0.4;
  pointer-events: none;
}
.console__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 44px;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.console__dots { display: flex; gap: 5px; margin-right: 4px; }
.console__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(243, 242, 237, 0.2); }
.console__dots i:first-child { background: var(--accent-bright); }
.console__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9aa9ff;
}
.console__body { position: relative; z-index: 1; padding: 20px 20px 18px; }
.console__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dark-muted);
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(243, 242, 237, 0.14);
}
.console__meta strong { color: var(--light); font-weight: 500; }

.run {
  position: relative;
  padding: 6px 0 2px;
}
.run__step {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 0;
  opacity: 0;
  transform: translateY(6px);
  animation: run-in 0.5s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.32s);
}
.run__step::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 25px;
  bottom: -11px;
  width: 1px;
  background: rgba(243, 242, 237, 0.14);
}
.run__step:last-child::before { display: none; }
.run__dot {
  width: 13px; height: 13px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid rgba(243, 242, 237, 0.28);
  background: #0b0d0f;
  position: relative;
}
.run__step--done .run__dot { background: #172a7a; border-color: #4f66ff; }
.run__step--done .run__dot::after {
  content: "";
  position: absolute;
  left: 4px; top: 1.5px;
  width: 3px; height: 6px;
  border-right: 1px solid #d8e0ff;
  border-bottom: 1px solid #d8e0ff;
  transform: rotate(42deg);
}
.run__step--active .run__dot { border-color: var(--accent-bright); background: var(--accent); box-shadow: 0 0 0 4px rgba(61, 91, 255, 0.14); }
.run__title { font-size: 12.5px; line-height: 1.35; color: #eae7dd; }
.run__title strong { color: var(--light); font-weight: 600; }
.run__meta { font-family: var(--font-mono); font-size: 8.5px; color: var(--dark-muted); margin-top: 3px; letter-spacing: 0.03em; }
.run__time { font-family: var(--font-mono); font-size: 9px; color: var(--dark-muted); white-space: nowrap; padding-top: 2px; }
.run__step--active .run__time { color: #9aa9ff; }

@keyframes run-in {
  to { opacity: 1; transform: translateY(0); }
}

.console__approval {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 2px 26px;
  padding: 10px 12px;
  background: rgba(31, 58, 255, 0.1);
  border: 1px solid rgba(61, 91, 255, 0.35);
  border-left: 2px solid var(--accent-bright);
  border-radius: 2px;
  opacity: 0;
  animation: run-in 0.5s var(--ease) 2.3s forwards;
}
.console__approval span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: #b8c2ff; }
.console__approval strong { display: block; font-size: 11px; color: var(--light); font-weight: 500; letter-spacing: 0; text-transform: none; margin-top: 2px; }

.console__foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--dark-line);
}
.console__foot div {
  padding: 14px 16px;
  border-right: 1px solid var(--dark-line);
}
.console__foot div:last-child { border-right: 0; }
.console__foot strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--light);
  margin-bottom: 5px;
}
.console__foot span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.console-note {
  position: absolute;
  left: -22px;
  bottom: -46px;
  width: 218px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  box-shadow: 8px 8px 0 rgba(16, 18, 20, 0.07);
  transform: rotate(-2.2deg);
  z-index: 2;
}
.console-note p { margin: 0; font-size: 11.5px; line-height: 1.45; }
.console-note strong { display: block; font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* Marquee ---------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  padding-left: 28px;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__item::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.65;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Section heads ---------------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(38px, 5vw, 60px);
}
.section-head--dark { border-color: var(--dark-line); }
.section-head__aside .eyebrow { margin-bottom: 0; }
.section-head__main h2 { max-width: 20ch; }
.section-head__main .lede { margin-top: 22px; }
.section-head__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 8px;
}

/* Stats ------------------------------------------------------------------ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 28px 28px 26px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.stat__label { font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 28ch; }
.stat__src {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}
.stat-row--dark { border-color: var(--dark-line); }
.stat-row--dark .stat { border-color: var(--dark-line); }
.stat-row--dark .stat__num { color: var(--light); }
.stat-row--dark .stat__label { color: var(--dark-muted); }
.stat-row--dark .stat__src { color: #8f928c; }
a.stat__src { text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
a.stat__src:hover { color: var(--accent); border-color: var(--accent); }
.section--dark a.stat__src:hover { color: var(--light); border-color: var(--accent-on-dark); }

/* Problem ---------------------------------------------------------------- */
.problem {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.problem__sticky { position: sticky; top: 112px; }
.problem__sticky h2 { max-width: 12ch; margin-bottom: 24px; }
.problem__sticky h2 em { color: var(--accent-bright); }
.problem__list { border-top: 1px solid var(--dark-line); }
.problem__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--dark-line);
}
.problem__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-on-dark);
  padding-top: 4px;
}
.problem__item h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
  color: var(--light);
}
.problem__item p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--dark-muted); }
.problem__quote {
  margin-top: 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--dark-line);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  color: #d8d4c8;
  max-width: 34ch;
}

/* Workflow cards --------------------------------------------------------- */
.wf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.wf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 24px 24px 20px;
  background: var(--card);
  transition: background 0.3s var(--ease);
}
.wf-card:hover { background: #ffffff; }
.wf-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.wf-card__icon {
  width: 30px; height: 30px;
  color: var(--ink);
  opacity: 0.75;
}
.wf-card__icon svg { width: 100%; height: 100%; }
.wf-card h3 {
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  max-width: 15ch;
  text-wrap: balance;
}
.wf-card__body { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.wf-card__body strong { color: var(--ink); font-weight: 500; }
.wf-card__metric {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.wf-card__metric b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.wf-card__metric span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
}
.wf-card__arrow {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 14px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.wf-card:hover .wf-card__arrow { opacity: 1; transform: translate(0, 0); }
.wf-card:hover .wf-card__top { padding-right: 20px; }
.wf-card__metric { padding-right: 24px; }

/* Offers ----------------------------------------------------------------- */
.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--dark-line);
  background: rgba(243, 242, 237, 0.025);
  border-radius: var(--radius);
}
.offer--featured {
  background: var(--light);
  color: var(--ink);
  border-color: var(--light);
}
.offer__badge {
  position: absolute;
  top: -11px; left: 24px;
  padding: 4px 9px;
  background: var(--accent);
  color: var(--light);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offer__step {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 18px;
}
.offer--featured .offer__step { color: var(--accent); }
.offer h3 {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}
.offer__desc { font-size: 12.5px; line-height: 1.55; color: var(--dark-muted); min-height: 58px; }
.offer--featured .offer__desc { color: var(--muted); }
.offer__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 4px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-line);
}
.offer--featured .offer__price { border-color: var(--line); }
.offer__price b { font-family: var(--font-display); font-size: 36px; font-weight: 400; letter-spacing: -0.03em; }
.offer__price span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dark-muted); }
.offer--featured .offer__price span { color: var(--muted); }
.offer__time { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; color: var(--dark-muted); margin-bottom: 18px; }
.offer--featured .offer__time { color: var(--muted); }
.offer__list { margin: 0 0 22px; display: grid; gap: 8px; }
.offer__list li {
  position: relative;
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.45;
  color: #d8d4c8;
}
.offer--featured .offer__list li { color: var(--ink-2); }
.offer__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 6px; height: 6px;
  border: 1px solid var(--accent-bright);
  border-radius: 50%;
}
.offer--featured .offer__list li::before { border-color: var(--accent); }
.offer .btn { margin-top: auto; width: 100%; }
.offer__note {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.45;
  color: var(--dark-muted);
  text-align: center;
}
.offer--featured .offer__note { color: var(--muted); }

/* Cases ------------------------------------------------------------------ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.case-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}
.case-card__metric {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.6vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}
.case-card__metric-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.case-card h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.case-card p { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.case-card__chart { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.case-card__chart svg { width: 100%; height: 46px; overflow: visible; }
.case-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}
.illustrative-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.illustrative-note::before {
  content: "i";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 15px; height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 10px;
  font-style: italic;
  margin-top: 1px;
}

/* Process ---------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 28px 26px 28px 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:not(:first-child) { padding-left: 26px; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
  margin-bottom: 20px;
}
.step:first-child .step__num { background: var(--ink); color: var(--light); border-color: var(--ink); }
.step h3 { font-size: 25px; line-height: 1.05; margin-bottom: 10px; }
.step p { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.step__meta { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

/* Guardrails ------------------------------------------------------------- */
.guardrails {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.guardrails__intro { position: sticky; top: 112px; }
.guardrails__intro h2 { max-width: 13ch; margin-bottom: 22px; }
.guardrails__intro h2 em { color: var(--accent-bright); }
.guardrail-list { border-top: 1px solid var(--dark-line); }
.guardrail {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--dark-line);
}
.guardrail__icon { width: 22px; height: 22px; color: var(--accent-bright); margin-top: 2px; }
.guardrail h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  color: var(--light);
}
.guardrail p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--dark-muted); }

/* Calculator ------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.calc__inputs { padding: clamp(24px, 3.5vw, 40px); border-right: 1px solid var(--line); }
.calc__output { padding: clamp(24px, 3.5vw, 40px); background: var(--ink); color: var(--light); display: flex; flex-direction: column; }
.calc__title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.calc__field { margin-bottom: 26px; }
.calc__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.calc__label output {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(31, 58, 255, 0.07);
  padding: 3px 7px;
  border-radius: 2px;
}
.calc__hint { font-size: 10px; color: var(--faint); margin-top: 8px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--ink);
  transition: background 0.2s;
}
input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--ink);
}
input[type="range"]:hover::-webkit-slider-thumb { background: var(--accent); }
input[type="range"]:focus-visible::-webkit-slider-thumb { background: var(--accent); }

.calc__output-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 8px;
}
.calc__savings {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.calc__savings-sub { font-size: 11.5px; color: var(--dark-muted); margin-bottom: 24px; }
.calc__breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  margin-bottom: 20px;
}
.calc__breakdown div { padding: 14px 0; border-right: 1px solid var(--dark-line); }
.calc__breakdown div:last-child { border-right: 0; padding-left: 16px; }
.calc__breakdown b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1; margin-bottom: 4px; }
.calc__breakdown span { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dark-muted); }
.calc__bar {
  display: flex;
  height: 6px;
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(243, 242, 237, 0.1);
}
.calc__bar i { display: block; height: 100%; background: var(--accent-bright); transition: width 0.4s var(--ease); }
.calc__bar i + i { background: rgba(243, 242, 237, 0.35); }
.calc__legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 22px;
}
.calc__output .btn { margin-top: auto; }
.calc__disclaimer { font-size: 9.5px; line-height: 1.45; color: var(--dark-muted); margin: 12px 0 0; }

/* About ------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.about-card {
  position: relative;
  padding: 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about-card__mark {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 22px;
  background: var(--card);
}
.about-card blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.about-card__sig {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-copy h2 { max-width: 16ch; margin-bottom: 24px; }
.about-copy p { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 58ch; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .btn { margin-top: 26px; }

.principles { margin-top: 34px; border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.principle dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.principle dd { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }

/* Quotes ----------------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.quote-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
}
.quote-card__mark {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 18px;
}
.quote-card blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.quote-card__who { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.quote-card__avatar {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-2);
  flex-shrink: 0;
}
.quote-card__name { font-size: 12px; font-weight: 600; line-height: 1.3; }
.quote-card__role { font-size: 10px; color: var(--muted); line-height: 1.4; }
.quote-card__sample {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 3px 5px;
}

/* Pricing preview -------------------------------------------------------- */
.price-rows { border-top: 1px solid var(--line); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 150px 40px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding 0.2s;
}
.price-row:hover { background: rgba(255, 255, 255, 0.7); padding-left: 12px; padding-right: 12px; }
.price-row h3 { font-size: 25px; line-height: 1; }
.price-row__desc { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.price-row__price { font-family: var(--font-display); font-size: 24px; }
.price-row__price span { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); display: block; margin-top: 3px; }
.price-row__time { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.price-row__arrow { font-size: 16px; color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s; }
.price-row:hover .price-row__arrow { transform: translateX(4px); color: var(--accent); }

/* FAQ -------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.faq-intro { position: sticky; top: 112px; }
.faq-intro h2 { max-width: 11ch; margin-bottom: 18px; }
.faq-intro .btn { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-item__body { padding: 0 40px 20px 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.faq-item__body p:last-child { margin-bottom: 0; }

/* CTA band --------------------------------------------------------------- */
.cta-band {
  background: var(--dark);
  color: var(--light);
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -10%; top: -40%;
  width: 60%; height: 180%;
  background-image: radial-gradient(rgba(243, 242, 237, 0.13) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
  transform: rotate(-8deg);
  opacity: 0.5;
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.cta-band h2 { max-width: 15ch; }
.cta-band h2 em { color: var(--accent-bright); }
.cta-band__sub { margin: 22px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--dark-muted); max-width: 48ch; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-band__meta { margin: 0; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dark-muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--light);
  padding: clamp(48px, 6vw, 76px) 0 0;
  border-top: 1px solid var(--dark-line);
  overflow: hidden;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}
.site-footer__blurb { margin: 18px 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--dark-muted); max-width: 34ch; }
.site-footer__place { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #8f928c; margin: 0; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer__col h3 {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f928c;
  margin-bottom: 6px;
}
.site-footer__col a { font-size: 12.5px; color: #c9c5b9; transition: color 0.2s; }
.site-footer__col a:hover { color: var(--light); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 20px 0;
  border-top: 1px solid var(--dark-line);
  font-size: 10.5px;
  color: #8f928c;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 18px; }
.site-footer__legal a:hover { color: var(--light); }
.site-footer__note { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 0.72;
  letter-spacing: -0.05em;
  color: rgba(243, 242, 237, 0.07);
  white-space: nowrap;
  padding-top: 24px;
  margin-bottom: -0.1em;
  user-select: none;
}
.site-footer__wordmark span { color: var(--accent); opacity: 0.5; }

/* Interior page hero ----------------------------------------------------- */
.page-hero {
  padding: clamp(52px, 7vw, 88px) 0 clamp(38px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 90%);
  pointer-events: none;
}
.page-hero__inner { position: relative; }
.page-hero h1 {
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  text-wrap: balance;
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin-bottom: 22px;
}
.page-hero h1 em { color: var(--accent); }
.page-hero .lede { max-width: 60ch; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--faint); }
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Library ---------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  position: sticky;
  top: 72px;
  background: var(--paper);
  z-index: 20;
}
.filter-bar__label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.filter-chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--light); }
.filter-count { margin-left: auto; font-family: var(--font-mono); font-size: 8.5px; color: var(--faint); }

.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lib-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  scroll-margin-top: 130px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.lib-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.lib-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.lib-card h2 { font-size: 30px; line-height: 1.02; margin-bottom: 10px; max-width: 18ch; }
.lib-card__lede { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; }
.ba__col { background: var(--paper); padding: 12px 14px; }
.ba__label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ba__col p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.ba__col--after { background: rgba(31, 58, 255, 0.045); }
.ba__col--after .ba__label { color: var(--green); }
.lib-card__specs { display: grid; gap: 8px; margin-bottom: 18px; }
.lib-card__spec { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 11px; line-height: 1.45; }
.lib-card__spec dt { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.lib-card__spec dd { margin: 0; color: var(--ink-2); }
.lib-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.lib-card__metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.lib-card__metric b { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); text-transform: none; }
.lib-empty { display: none; padding: 48px 0; text-align: center; color: var(--muted); }

/* Pricing page ----------------------------------------------------------- */
.pricing-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
}
.price-card--featured { background: var(--ink); color: var(--light); border-color: var(--ink); position: relative; }
.price-card__flag {
  position: absolute;
  top: -11px; left: 24px;
  background: var(--accent);
  color: var(--light);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-card__step { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.price-card--featured .price-card__step { color: #a6a8a3; }
.price-card h2 { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.price-card__desc { font-size: 12.5px; line-height: 1.55; color: var(--muted); min-height: 58px; }
.price-card--featured .price-card__desc { color: #a6a8a3; }
.price-card__price { margin: 20px 0 4px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.price-card--featured .price-card__price { border-color: var(--dark-line); }
.price-card__price b { font-family: var(--font-display); font-size: 42px; font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
.price-card__price span { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.price-card--featured .price-card__price span { color: #a6a8a3; }
.price-card__time { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 18px; }
.price-card--featured .price-card__time { color: #a6a8a3; }
.price-card__list { display: grid; gap: 9px; margin: 0 0 24px; }
.price-card__list li { position: relative; padding-left: 17px; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.price-card--featured .price-card__list li { color: #d8d4c8; }
.price-card__list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border: 1px solid var(--accent); border-radius: 50%; }
.price-card--featured .price-card__list li::before { border-color: var(--accent-bright); }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card__note { margin: 10px 0 0; font-size: 9.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.price-card--featured .price-card__note { color: #8f928c; }

.enterprise-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 24px 26px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
}
.enterprise-strip h3 { font-size: 26px; line-height: 1; }
.enterprise-strip p { margin: 6px 0 0; font-size: 12px; color: var(--muted); max-width: 62ch; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: top; }
table.compare thead th { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); font-weight: 500; }
table.compare tbody th { font-weight: 500; color: var(--ink); width: 30%; }
table.compare td { color: var(--muted); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
table.compare .yes { color: var(--green); font-weight: 600; }
table.compare .no { color: var(--faint); }

/* Booking page ----------------------------------------------------------- */
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.book-aside { position: sticky; top: 100px; }
.book-aside h2 { max-width: 14ch; margin-bottom: 18px; }
.book-aside p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.book-steps { margin: 28px 0 0; border-top: 1px solid var(--line); }
.book-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.book-step__num { font-family: var(--font-mono); font-size: 9px; color: var(--accent); padding-top: 2px; }
.book-step h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.book-step p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.book-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.book-extra .eyebrow { margin-bottom: 12px; }
.book-aside__meta { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }

.book-panel {
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.book-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.book-panel__head h2 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.book-panel__head span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.book-panel__body { padding: 22px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: #ffffff; }
.field textarea { resize: vertical; min-height: 74px; }
.field__hint { font-size: 9.5px; color: var(--faint); }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.form-note { font-size: 9.5px; line-height: 1.45; color: var(--faint); max-width: 36ch; }
.form-error { color: var(--accent); font-size: 10px; display: none; }
.form-error.is-visible { display: block; }

.booking-step-2[hidden] { display: none; }
.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.calendar-head h3 { font-family: var(--font-sans); font-size: 14px; font-weight: 600; }
.calendar-head p { margin: 4px 0 0; font-size: 10.5px; color: var(--muted); }
.calendar-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid rgba(31, 58, 255, 0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.calendar-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 18px; }
.calendar-day {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 4px;
  text-align: center;
  border-radius: 2px;
  transition: all 0.2s;
}
.calendar-day span { display: block; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.calendar-day strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 400; line-height: 1; }
.calendar-day.is-active { background: var(--ink); border-color: var(--ink); color: var(--light); }
.calendar-day.is-active span { color: #a6a8a3; }
.calendar-day:hover:not(.is-active) { border-color: var(--line-strong); background: var(--paper-2); }
.calendar-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.calendar-slot {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  border-radius: 2px;
  transition: all 0.2s;
}
.calendar-slot:hover { border-color: var(--ink); background: var(--paper-2); }
.calendar-slot.is-selected { background: var(--accent); border-color: var(--accent); color: var(--light); }
.calendar-note { margin: 14px 0 0; font-size: 9.5px; line-height: 1.45; color: var(--faint); }
.calendar-confirm {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--green);
  background: rgba(31, 58, 255, 0.05);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--green);
}
.calendar-confirm[hidden] { display: none; }
.calendly-inline-widget { min-width: 280px; height: 640px; }
.booking-success { padding: 30px 0; text-align: center; }
.booking-success h3 { font-size: 30px; margin-bottom: 10px; }
.booking-success p { font-size: 13px; color: var(--muted); max-width: 40ch; margin: 0 auto 18px; }

/* Prose ------------------------------------------------------------------ */
.prose { max-width: 760px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.03; margin: 48px 0 16px; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.45rem; line-height: 1.15; margin: 32px 0 12px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 20px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(31, 58, 255, 0.3); }
.prose a:hover { border-color: var(--accent); }
.prose blockquote {
  margin: 28px 0;
  padding: 20px 0 20px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.3;
  color: var(--ink);
}
.prose blockquote p { font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; color: inherit; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--paper-2); padding: 2px 5px; border-radius: 2px; }
.prose pre { background: var(--ink); color: var(--light); padding: 18px; overflow-x: auto; border-radius: 3px; margin: 0 0 24px; }
.prose pre code { background: transparent; padding: 0; color: inherit; font-size: 12px; line-height: 1.6; }
.prose img { margin: 28px 0; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 13px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); font-weight: 600; }
.prose__callout {
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  font-size: 13.5px;
  line-height: 1.6;
}
.prose__callout p:last-child { margin-bottom: 0; }
.prose__sources { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose__sources h2 { font-size: 24px; margin-top: 0; }
.prose__sources ol { padding-left: 20px; }
.prose__sources li { font-size: 11.5px; line-height: 1.55; color: var(--muted); margin-bottom: 8px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: clamp(30px, 5vw, 80px); justify-content: space-between; align-items: start; }
.article-toc { position: sticky; top: 110px; border-left: 1px solid var(--line); padding-left: 20px; }
.article-toc h2 { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.article-toc a { display: block; font-size: 11.5px; line-height: 1.45; color: var(--muted); padding: 4px 0; }
.article-toc a:hover { color: var(--accent); }

/* Insights index --------------------------------------------------------- */
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.insight-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.insight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.insight-card__meta { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.insight-card h2 { font-size: 27px; line-height: 1.05; margin-bottom: 10px; }
.insight-card p { font-size: 12px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.insight-card__more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; display: flex; justify-content: space-between; }
.insight-card:hover .insight-card__more { color: var(--accent); }

/* About page ------------------------------------------------------------- */
.about-page-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-page-grid h2 { max-width: 14ch; margin-bottom: 22px; }
.about-page-grid p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.founder-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
}
.founder-card__head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.founder-card__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--light); display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; }
.founder-card__name { font-size: 14px; font-weight: 600; }
.founder-card__role { font-size: 10.5px; color: var(--muted); }
.founder-card blockquote { margin: 0 0 18px; font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.founder-card p { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.stack-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }

/* Legal / simple pages --------------------------------------------------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 28px; margin: 36px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 20px; margin-bottom: 18px; }
.legal__updated { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-bottom: 28px; }

/* 404 -------------------------------------------------------------------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page__code { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.error-page h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 16px; }
.error-page p { color: var(--muted); max-width: 40ch; margin: 0 auto 26px; }

/* Reveal ----------------------------------------------------------------- */
.no-js .reveal { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero h1 { max-width: 17ch; }
  .hero__visual { max-width: 760px; margin-inline: auto; padding-bottom: 34px; }
  .hero::before { background-size: 50% 100%; }
  .site-nav { gap: 18px; }
  .section-head { grid-template-columns: 140px minmax(0, 1fr); }
  .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-row { grid-template-columns: minmax(0, 1fr) 150px 120px 30px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-toc { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav { display: block; }
  .mobile-nav[hidden] { display: none; }
  .site-header__actions .btn--primary { display: none; }
  .wf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid, .quote-grid, .insight-grid { grid-template-columns: 1fr 1fr; }
  .case-grid > :last-child, .quote-grid > :last-child, .insight-grid > :last-child { grid-column: 1 / -1; }
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .step:nth-child(4) { border-top: 1px solid var(--line); }
  .problem, .guardrails, .about-grid, .faq-grid, .book-grid, .about-page-grid { grid-template-columns: 1fr; }
  .problem__sticky, .guardrails__intro, .faq-intro, .book-aside { position: static; }
  .guardrails__intro h2, .faq-intro h2 { max-width: 18ch; }
  .calc { grid-template-columns: 1fr; }
  .calc__inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-band__inner { grid-template-columns: 1fr; align-items: start; }
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__brand .site-footer__blurb { max-width: 46ch; }
  .lib-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 560px; }
  .price-card__desc { min-height: 0; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-head__aside { display: flex; justify-content: space-between; align-items: baseline; }
  .section-head__index { margin: 0; }
  .book-aside { position: static; }
  .book-extra { grid-template-columns: 1fr; gap: 24px; }
  .filter-bar { top: 72px; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .announce__inner { min-height: 34px; font-size: 10.5px; }
  .announce a { display: none; }
  .site-header__inner { height: 64px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(3rem, 12.5vw, 4.4rem); }
  .hero__kicker { font-size: 9px; letter-spacing: 0.1em; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-arrow { align-self: flex-start; }
  .console-note { position: static; left: auto; bottom: auto; width: auto; margin: 16px 0 0; transform: none; box-shadow: 5px 5px 0 rgba(14,26,34,.06); }
  .console { box-shadow: 10px 10px 0 rgba(14,26,34,.06); }
  .console__foot strong { font-size: 19px; }
  .console__body { padding: 16px 14px; }
  .wf-grid { grid-template-columns: 1fr; }
  .wf-card { min-height: 0; }
  .case-grid, .quote-grid, .insight-grid { grid-template-columns: 1fr; }
  .case-grid > :last-child, .quote-grid > :last-child, .insight-grid > :last-child { grid-column: auto; }
  .process { grid-template-columns: 1fr; }
  .step, .step:not(:first-child) { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step:nth-child(3), .step:nth-child(4) { border-top: 0; }
  .price-row { grid-template-columns: minmax(0, 1fr) 34px; gap: 8px 14px; padding: 18px 0; }
  .price-row__price { grid-column: 1; grid-row: 2; }
  .price-row__time { grid-column: 1; grid-row: 3; }
  .price-row__arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__col:last-child { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__note { display: none; }
  .cta-band__actions .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .calendar-days { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .calendar-day { padding: 7px 2px; }
  .calendar-day strong { font-size: 18px; }
  .calendar-slots { grid-template-columns: 1fr 1fr; }
  .book-panel__body { padding: 16px; }
  .stat { padding: 22px 0; }
  .ba { grid-template-columns: 1fr; }
  .ba__col--after { border-top: 1px solid var(--line); }
  .enterprise-strip { flex-direction: column; align-items: flex-start; }
  .filter-bar { position: static; }
  .filter-count { width: 100%; margin-left: 0; }
  .page-hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .article-layout { gap: 0; }
  .prose h2 { margin-top: 38px; }
}

@media (max-width: 380px) {
  .console__foot { grid-template-columns: 1fr; }
  .console__foot div { border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .console__foot div:last-child { border-bottom: 0; }
}

/* Motion preferences ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .run__step, .console__approval { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .announce, .site-header, .cta-band, .site-footer, .filter-bar, .site-noise { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
}

/* System map (approach) -------------------------------------------------- */
.system-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
  border: 1px solid var(--dark-line);
  background: var(--dark-line);
  gap: 1px;
}
.system-map__layer {
  background: var(--dark);
  padding: 22px 20px;
}
.system-map__num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent-on-dark);
}
.system-map__layer h3 {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  color: var(--light);
  margin: 10px 0 8px;
}
.system-map__layer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--dark-muted);
  min-height: 50px;
}
.system-map__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.system-map__arrow {
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--accent-bright);
  font-size: 14px;
}
.arch-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  margin-top: 18px;
}
.arch-note > div { background: var(--dark); padding: 18px 20px; }
.arch-note .mono { display: block; color: var(--accent-on-dark); margin-bottom: 7px; font-size: 8px; }
.arch-note p { margin: 0; font-size: 11px; line-height: 1.55; color: var(--dark-muted); }

@media (max-width: 900px) {
  .system-map { grid-template-columns: 1fr; }
  .system-map__arrow { display: none; }
  .system-map__layer p { min-height: 0; }
  .arch-note { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Theme v2 — professional consultancy
   Slate + teal, sans display, less editorial italic. Structural layout stays.
   ========================================================================== */

:root {
  --radius: 4px;
}

h1, h2, h3 { font-weight: 500; }

.display {
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.display--md {
  font-size: clamp(2.35rem, 3.8vw, 3.55rem);
  line-height: 1.02;
}
.display--sm {
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.06;
}
.hero h1 {
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
  max-width: 17ch;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.section-head__main h2 { max-width: 22ch; }
.cta-band h2 { max-width: 16ch; }

/* Display italics become a restrained accent line, not an editorial flourish. */
.display em,
.hero h1 em,
.page-hero h1 em,
.about-copy h2 em,
.faq-intro h2 em {
  font-style: normal;
  color: var(--accent);
}
.section--dark .display em,
.section--dark h2 em,
.cta-band h2 em,
.problem__sticky h2 em,
.guardrails__intro h2 em {
  color: var(--accent-on-dark);
}

/* Sans display for pull quotes and numbers; keep weight confident, not decorative. */
.about-card blockquote,
.quote-card blockquote,
.prose blockquote {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
}
.stat__num,
.case-card__metric,
.calc__savings,
.price-row__price,
.offer__price b,
.price-card__price b,
.console__foot strong,
.about-card__mark,
.error-page h1 {
  font-weight: 500;
}
.site-footer__wordmark {
  font-weight: 600;
  letter-spacing: -0.065em;
}
.brand__word { font-weight: 600; }

/* A slightly cooler, less papery surface for cards and form controls. */
.wf-card:hover { background: #fbfcfb; }
.field input:focus,
.field textarea:focus,
.field select:focus { background: #ffffff; }
.mobile-cta { background: rgba(243, 242, 237, 0.96); }

/* Keep the agent console dark and technical, but in the new navy/teal palette. */
.console {
  background: linear-gradient(155deg, #101214 0%, #08090b 100%);
  border-color: rgba(243, 242, 237, 0.18);
}
.console::after { background-image: radial-gradient(rgba(243, 242, 237, 0.09) 0.6px, transparent 0.6px); }
.console__approval {
  background: rgba(31, 58, 255, 0.14);
  border-color: rgba(61, 91, 255, 0.42);
  border-left-color: var(--accent-on-dark);
}
.console__approval span { color: var(--accent-on-dark); }
.console__live { color: #9aa9ff; }
.run__step--done .run__dot { background: #172a7a; border-color: #4f66ff; }
.run__step--active .run__dot {
  border-color: var(--accent-on-dark);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 91, 255, 0.16);
}
.run__step--active .run__time { color: #9aa9ff; }

/* Slightly quieter section rules and a more corporate footer wordmark. */
.site-footer__wordmark { color: rgba(243, 242, 237, 0.055); }
.site-footer__wordmark span { color: var(--accent-bright); opacity: 0.7; }

/* Typographic polish for dense UI. */
.eyebrow { letter-spacing: 0.14em; }
.mono { letter-spacing: 0.07em; }
.btn { letter-spacing: -0.005em; }

/* Theme v2.1 — Signal Cobalt: bone, ink, cobalt, chartreuse signal. */
:root {
  --signal: #d8ff4f;
  --green: #2e7d5b;
  --green-soft: #dcebe4;
}
h1, h2, h3 { font-weight: 600; font-stretch: 108%; }
.display, .hero h1, .page-hero h1 { font-weight: 600; font-stretch: 110%; }
.display--md, .display--sm { font-stretch: 108%; }
.brand__word { font-weight: 600; letter-spacing: -0.04em; }
.site-footer__wordmark { font-weight: 700; font-stretch: 112%; }

.status-dot {
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px rgba(216, 255, 79, 0.16);
}
.status-dot--light {
  background: var(--signal);
  box-shadow: 0 0 0 1px rgba(12, 14, 17, 0.4), 0 0 0 4px rgba(216, 255, 79, 0.16);
}
.console__live { color: var(--signal); }
.run__step--active .run__dot {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgba(216, 255, 79, 0.16);
}
.run__step--active .run__time { color: var(--signal); }
.console__approval {
  background: rgba(31, 58, 255, 0.14);
  border-color: rgba(154, 169, 255, 0.45);
  border-left-color: var(--signal);
}
.console__approval span { color: var(--signal); }
.site-footer__wordmark span { color: var(--signal); opacity: 0.6; }

/* Signature section rule: a small signal square at the start of each section. */
.section-head { position: relative; }
.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  background: var(--signal);
  border: 1px solid var(--ink);
}
.section--dark .section-head::before { border-color: var(--light); }

/* Marquee: clear the fade and keep the first label readable. */
.marquee__track { padding-left: clamp(32px, 5vw, 76px); }

/* Theme v2.2 — signature details */
.hero h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.6rem);
  max-width: 20ch;
  line-height: 1.0;
}
.marquee {
  mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
}
/* Cobalt primary buttons; variants keep their own treatment. */
.btn { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.btn--light { background: var(--light); border-color: var(--light); color: var(--ink); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--light); }
.btn--ghost-light { background: transparent; border-color: rgba(243, 242, 237, 0.32); color: var(--light); }
.btn--ghost-light:hover { background: var(--light); border-color: var(--light); color: var(--ink); }

/* ==========================================================================
   Layout v3 — fixed operations sidebar + wide workspace
   ========================================================================== */

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 20px;
  background: var(--dark);
  color: var(--light);
  border-right: 1px solid var(--dark-line);
  overflow-y: auto;
}
.sidebar__head { display: flex; flex-direction: column; gap: 9px; }
.sidebar .brand { gap: 10px; }
.sidebar .brand__mark { width: 25px; height: 25px; }
.sidebar .brand__word { font-size: 18px; }
.sidebar__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.sidebar__nav { display: flex; flex-direction: column; margin-top: 46px; }
.sidebar__nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--dark-line);
  font-size: 14px;
  line-height: 1.2;
  color: #c7d1d0;
  transition: color 0.2s;
}
.sidebar__nav a span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #7d878c;
}
.sidebar__nav a:hover,
.sidebar__nav a[aria-current="page"] { color: var(--signal); }
.sidebar__nav a:hover span,
.sidebar__nav a[aria-current="page"] span { color: var(--signal); }

.sidebar__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-top: auto;
  padding-top: 30px;
}
.sidebar__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.sidebar__cta .btn { width: 100%; }
.sidebar__cta .link-arrow { font-size: 12px; }

.sidebar__foot {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7d878c;
}
.sidebar__foot a { color: #c7d1d0; }
.sidebar__foot a:hover { color: var(--signal); }
.sidebar__social { display: flex; gap: 12px; margin-top: 5px; }

.site-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  margin-left: 236px;
}
.site-main > main { flex: 1; }

.mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 110;
}
.mobile-bar.is-scrolled { box-shadow: 0 8px 30px rgba(16, 18, 20, 0.06); }
.mobile-bar .brand__mark { width: 24px; height: 24px; }

/* Desktop content now starts at the top of the workspace. */
.site-main .announce { border-bottom: 1px solid var(--line); }
.site-main .page-hero { padding-top: clamp(48px, 6vw, 76px); }
.filter-bar { top: 0; }
.lib-card { scroll-margin-top: 100px; }
.problem__sticky,
.guardrails__intro,
.faq-intro,
.book-aside,
.article-toc { top: 24px; }

@media (max-width: 1080px) {
  .sidebar { width: 220px; padding-inline: 18px; }
  .site-main { margin-left: 220px; }
  .sidebar__nav a { font-size: 13px; }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .site-main { margin-left: 0; }
  .mobile-bar { display: flex; }
  .mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 105;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 24px 50px rgba(16, 18, 20, 0.12);
  }
  .filter-bar { top: 64px; }
  .lib-card { scroll-margin-top: 140px; }
}

@media (max-width: 680px) {
  .mobile-bar { height: 60px; }
  .mobile-nav { top: 60px; max-height: calc(100vh - 60px); }
  .site-main .announce { border-bottom: 0; }
}

/* Sidebar focus + tighter price cards */
.sidebar__focus {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--dark-line);
}
.sidebar__label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}
.sidebar__focus p:last-child {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #a6a8a3;
}
.sidebar__cta { margin-top: 28px; padding-top: 0; }
.sidebar__foot { margin-top: auto; }
.price-card__price b,
.offer__price b { white-space: nowrap; }
.price-card__price b { font-size: clamp(30px, 2.6vw, 36px); }

/* Hourly calculator: three output tiles */
.calc__breakdown--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc__breakdown--3 > div { border-right: 1px solid var(--dark-line); }
.calc__breakdown--3 > div:last-child { border-right: 0; padding-left: 16px; }
@media (max-width: 680px) {
  .calc__breakdown--3 { grid-template-columns: 1fr; }
  .calc__breakdown--3 > div { border-right: 0; border-bottom: 1px solid var(--dark-line); padding-left: 0; }
  .calc__breakdown--3 > div:last-child { border-bottom: 0; padding-left: 0; }
}
