/* ═══════════════════════════════════════════════════════════════════════════
   aiworklab — design system
   Editorial-scholarly aesthetic. Cream paper + ink + saffron highlighter.
   Edit tokens at the top to rebrand.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── colour ── */
  --paper:        #F2EDE2;   /* warm parchment cream */
  --paper-deep:   #E8DFC9;   /* slightly darker cream */
  --paper-edge:   #DDD2B5;   /* warmest rule */
  --ink:          #15181F;   /* deep blue-black */
  --ink-2:        #3A4250;   /* mid */
  --ink-3:        #6B7280;   /* muted */
  --rule:         #D9CFB8;   /* warm rule */

  --saffron:      #E8A33D;   /* the highlighter — primary accent */
  --saffron-deep: #C77E1A;   /* deeper saffron */
  --saffron-soft: #F4D790;   /* a softer wash */
  --teal:         #2A4F5E;   /* deep scholarly teal */
  --terracotta:   #B65C2D;   /* warm secondary */
  --moss:         #5C6B3E;   /* tertiary */

  --bg-contrast:  #15181F;   /* deepest dark for inverted sections */
  --ink-on-dark:  #F2EDE2;
  --rule-on-dark: rgba(242,237,226,0.14);

  /* ── radii ── */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ── shadow ── */
  --shadow-1: 0 1px 0 rgba(21,24,31,0.04), 0 8px 24px -12px rgba(21,24,31,0.10);
  --shadow-2: 0 2px 0 rgba(21,24,31,0.06), 0 30px 60px -30px rgba(21,24,31,0.20);
  --shadow-lift: 0 1px 0 rgba(21,24,31,0.04), 0 24px 48px -16px rgba(21,24,31,0.16);

  /* ── type ── */
  --font-display: "Fraunces", "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans:    "Geist", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ── layout ── */
  --max:        1200px;
  --max-narrow: 780px;
  --max-wide:   1400px;
  --gutter:     clamp(20px, 4vw, 48px);
}

/* ── reset & base ── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--saffron); color: var(--ink); }

/* ── paper texture ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(232,163,61,0.05), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(42,79,94,0.04), transparent 35%);
}
main, header, footer { position: relative; z-index: 1; }

/* ── containers ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
section.tight { padding: clamp(40px, 5vw, 72px) 0; }
section.dark { background: var(--bg-contrast); color: var(--ink-on-dark); }
section.dark .lede { color: rgba(242,237,226,0.72); }
section.dark .kicker { color: rgba(242,237,226,0.55); }
section.dark .kicker::before { background: currentColor; }
section.cream { background: var(--paper-deep); }

/* ═════════════════════════════════════════════════════════════════════════
   typography
   ═════════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
h1 { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 5vw, 62px); letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
h4 { font-size: 20px; letter-spacing: -0.015em; }
p  { margin: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.display-italic, em.fancy {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
  color: var(--teal);
}
section.dark .display-italic, section.dark em.fancy { color: var(--saffron); }
.muted { color: var(--ink-3); }
.lede {
  font-size: clamp(17px, 1.3vw, 19.5px);
  color: var(--ink-2);
  line-height: 1.55;
}

/* The signature highlighter mark */
.hl {
  background: linear-gradient(180deg, transparent 58%, var(--saffron-soft) 58%, var(--saffron-soft) 92%, transparent 92%);
  padding: 0 0.05em;
  font-style: normal;
}
.hl-strong {
  background: linear-gradient(180deg, transparent 58%, var(--saffron) 58%, var(--saffron) 92%, transparent 92%);
  padding: 0 0.05em;
}

/* Margin annotation — small monospace label hanging off body text */
.note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* Folio — page-reference-style indicator */
.folio {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.folio b { color: var(--ink); font-weight: 500; }

/* ═════════════════════════════════════════════════════════════════════════
   buttons
   ═════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1),
              background 200ms ease, color 200ms ease, border-color 200ms ease,
              box-shadow 200ms ease;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; box-shadow: var(--shadow-1); }
.btn-accent { background: var(--saffron); color: var(--ink); }
.btn-accent:hover { background: var(--saffron-deep); color: var(--paper); }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-deep); border-color: var(--ink-2); }
.btn-ghost-dark {
  background: transparent;
  border-color: rgba(242,237,226,0.22);
  color: var(--ink-on-dark);
}
.btn-ghost-dark:hover { background: rgba(242,237,226,0.08); border-color: rgba(242,237,226,0.4); }
.btn .arr { transition: transform 220ms ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ═════════════════════════════════════════════════════════════════════════
   navigation
   ═════════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background 250ms ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 200ms ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--saffron);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px;
  border-radius: var(--r-pill);
  color: var(--ink);
}
.mob-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--paper);
  z-index: 35;
  padding: 32px var(--gutter);
}
.mob-menu.is-open { display: block; }
.mob-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-right .nav-cta-plain { display: none; }
  .burger { display: inline-flex; }
}

/* ── logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { position: relative; padding-bottom: 2px; }
.logo-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 1px;
  height: 5px;
  background: var(--saffron);
  opacity: 0.32;
  border-radius: 1px;
}

/* ═════════════════════════════════════════════════════════════════════════
   page hero (inner pages)
   ═════════════════════════════════════════════════════════════════════════ */
.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 4vw, 56px); }
.page-hero .kicker { color: var(--ink-3); }
.page-hero h1 { margin-top: 20px; max-width: 16ch; }
.page-hero .lede { margin-top: 24px; max-width: 56ch; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── section header ── */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { margin-top: 18px; }
.sec-head .lede { margin-top: 18px; }
.sec-head.centered { text-align: center; margin-inline: auto; }
.sec-head.centered .kicker { justify-content: center; }

/* ═════════════════════════════════════════════════════════════════════════
   pills, chips, tags
   ═════════════════════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--paper-deep) 50%, transparent);
}
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 26%, transparent);
}
.pill .dot.teal { background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 26%, transparent); }
.pill .dot.terra { background: var(--terracotta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta) 22%, transparent); }

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--paper-deep);
  color: var(--ink-2);
}
.chip.accent { background: var(--saffron); color: var(--ink); }
.chip.teal { background: var(--teal); color: var(--paper); }
.chip.outline { background: transparent; border: 1px solid var(--rule); }

/* ═════════════════════════════════════════════════════════════════════════
   cards
   ═════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
}
.card.surface { background: var(--paper); }
.card.dark { background: var(--bg-contrast); color: var(--ink-on-dark); border-color: transparent; }
.card.dark p { color: rgba(242,237,226,0.72); }
.card.accent { background: var(--saffron); color: var(--ink); border-color: transparent; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-2); max-width: 52ch; }

/* ═════════════════════════════════════════════════════════════════════════
   FAQ accordion
   ═════════════════════════════════════════════════════════════════════════ */
.faq { max-width: 880px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.018em;
}
.faq-q:hover { color: var(--ink-2); }
.faq-q .ic {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 300ms ease, background 200ms ease;
}
.faq-item[open] .faq-q .ic { transform: rotate(45deg); background: var(--saffron); }
.faq-a { padding: 0 80px 28px 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }

/* ═════════════════════════════════════════════════════════════════════════
   prose (policies, about, blog posts)
   ═════════════════════════════════════════════════════════════════════════ */
.prose { max-width: 68ch; margin: 0 auto; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(26px, 3vw, 38px); color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: clamp(20px, 2vw, 24px); color: var(--ink); margin-top: 1.6em; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.72; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.45em; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--saffron) 80%, transparent);
  text-decoration-thickness: 2px;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--saffron);
  padding-left: 1em;
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink);
  margin: 1.6em 0;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--paper-deep);
  border-radius: 6px;
  color: var(--teal);
}
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose .sub-meta {
  display: flex; gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

/* ═════════════════════════════════════════════════════════════════════════
   contact tiles
   ═════════════════════════════════════════════════════════════════════════ */
.contact-card {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.contact-tile:hover {
  border-color: var(--ink-2);
  transform: translateY(-2px);
  background: #fff;
}
.contact-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--paper-deep);
  color: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease;
}
.contact-tile:hover .contact-ico { background: var(--saffron); }
.contact-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-val {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.contact-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }

/* ═════════════════════════════════════════════════════════════════════════
   stats
   ═════════════════════════════════════════════════════════════════════════ */
.stats { display: grid; gap: 14px; }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stats.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .stats.cols-3, .stats.cols-4 { grid-template-columns: 1fr 1fr; } }
.stat {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 24px;
}
.stat .big {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.stat .big .saffron { color: var(--saffron-deep); }
.stat .big .teal { color: var(--teal); }
.stat .lbl {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ═════════════════════════════════════════════════════════════════════════
   footer
   ═════════════════════════════════════════════════════════════════════════ */
.foot { padding: 64px 0 28px; border-top: 1px solid var(--rule); position: relative; z-index: 1; }
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
}
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot h5 {
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--ink-2); font-size: 14.5px; transition: color 150ms ease; }
.foot a:hover { color: var(--ink); }
.foot .tag { color: var(--ink-2); margin-top: 16px; font-size: 14.5px; max-width: 34ch; line-height: 1.55; }
.foot .addr { color: var(--ink-3); font-size: 13px; line-height: 1.55; margin-top: 10px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
  line-height: 1.6;
}
.foot-bottom .fb-right { text-align: right; max-width: 50ch; }
@media (max-width: 640px) { .foot-bottom .fb-right { text-align: left; } }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.socials a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ═════════════════════════════════════════════════════════════════════════
   motion
   ═════════════════════════════════════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-up 700ms cubic-bezier(.2,.7,.2,1) both; }
.fade-in.d1 { animation-delay: 80ms; }
.fade-in.d2 { animation-delay: 160ms; }
.fade-in.d3 { animation-delay: 240ms; }
.fade-in.d4 { animation-delay: 320ms; }
.fade-in.d5 { animation-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   homepage-specific blocks
   ═════════════════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.038em;
}
.hero h1 em.fancy {
  display: inline-block;
  position: relative;
}
.hero .lede { margin-top: 22px; max-width: 48ch; font-size: clamp(16px, 1.2vw, 18.5px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero-cta .meta-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 6px;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero .pill { padding: 6px 12px 6px 8px; font-size: 12.5px; }

/* ── CONCEPT GRAPH (hero visual) ── */
.graph-wrap {
  position: relative;
  align-self: stretch;
  min-height: 460px;
}
.graph-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--saffron) 14%, transparent), transparent 55%),
    radial-gradient(circle at 25% 80%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 55%),
    var(--bg-contrast);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--rule-on-dark);
}
.graph-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(242,237,226,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,237,226,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
}
.graph-label {
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.55);
  pointer-events: none;
  z-index: 3;
}
.graph-label .live { display: inline-flex; align-items: center; gap: 8px; }
.graph-label .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 22%, transparent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
.graph-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.graph-svg .edge { stroke: rgba(242,237,226,0.18); stroke-width: 1.5; fill: none; }
.graph-svg .edge.lit { stroke: var(--saffron); stroke-width: 2; }
.graph-svg .node circle { transition: r 300ms ease; }
.graph-svg .node text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  fill: rgba(242,237,226,0.76);
  text-anchor: middle;
}
.graph-svg .node.encountered circle { fill: rgba(242,237,226,0.18); stroke: rgba(242,237,226,0.4); stroke-width: 1.5; }
.graph-svg .node.explained   circle { fill: var(--paper); stroke: rgba(242,237,226,0.6); stroke-width: 1.5; }
.graph-svg .node.demonstrated circle { fill: var(--teal);   stroke: var(--paper); stroke-width: 2; }
.graph-svg .node.mastered    circle { fill: var(--saffron); stroke: var(--paper); stroke-width: 2; }
.graph-svg .node.mastered::after { /* SVG spec note: not real, but kept for future */ }
.graph-svg .pulse {
  fill: var(--saffron);
  opacity: 0.45;
  animation: pulse 2.2s ease-out infinite;
  transform-origin: center;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(2.6); opacity: 0; }
}
.graph-legend {
  position: absolute;
  bottom: 18px; left: 18px;
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.62);
  z-index: 3;
}
.graph-legend i {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}
.graph-legend .l1 i { background: rgba(242,237,226,0.25); }
.graph-legend .l2 i { background: var(--paper); }
.graph-legend .l3 i { background: var(--teal); }
.graph-legend .l4 i { background: var(--saffron); }

/* ── MARQUEE (logos) ── */
.marquee-section { padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px); }
.marquee-head {
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.marquee-head .lede { max-width: 38ch; }
.marquee-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: clamp(40px, 6vw, 72px);
  width: max-content;
  animation: slide 38s linear infinite;
  align-items: center;
  padding: 8px 0;
}
.marquee-track:hover { animation-play-state: paused; }
.marq-logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  opacity: 0.55;
  transition: opacity 200ms ease;
  flex-shrink: 0;
}
.marq-logo:hover { opacity: 1; }
.marq-logo img { height: 100%; width: auto; max-width: 140px; object-fit: contain; display: block; filter: brightness(0) saturate(100%); }
.marq-logo.icon img { max-width: 36px; filter: none; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── THREE MODES ── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
@media (max-width: 920px) { .modes-grid { grid-template-columns: 1fr; } }
.mode-card {
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 340px;
}
.mode-card.autopilot { background: var(--paper-deep); border: 1px solid var(--rule); }
.mode-card.copilot   { background: var(--saffron); color: var(--ink); border: 1px solid transparent; }
.mode-card.coach     { background: var(--bg-contrast); color: var(--ink-on-dark); border: 1px solid transparent; }
.mode-card .mode-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.mode-card h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.022em;
}
.mode-card p { font-size: 15px; line-height: 1.6; max-width: 36ch; }
.mode-card.copilot p { color: rgba(21,24,31,0.78); }
.mode-card.coach p   { color: rgba(242,237,226,0.74); }
.mode-card .when {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  opacity: 0.85;
}

/* ── EXPLAIN-TO-MERGE block ── */
.merge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 980px) { .merge-grid { grid-template-columns: 1fr; } }

.merge-mock {
  background: var(--bg-contrast);
  color: var(--ink-on-dark);
  border-radius: var(--r-lg);
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.merge-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.55);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(242,237,226,0.12);
}
.merge-mock .diff-line { padding: 1px 8px; border-radius: 3px; }
.merge-mock .diff-add { background: rgba(52,217,122,0.10); color: #92E5A8; }
.merge-mock .diff-rem { background: rgba(232,108,60,0.10); color: #F4B49C; }
.merge-mock .diff-line.muted { color: rgba(242,237,226,0.55); }
.merge-mock .prompt {
  margin-top: 16px;
  background: rgba(232,163,61,0.10);
  border-left: 2px solid var(--saffron);
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
  color: rgba(242,237,226,0.95);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
}
.merge-mock .prompt b { color: var(--saffron); }
.merge-mock .answer {
  margin-top: 12px;
  background: rgba(242,237,226,0.06);
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: rgba(242,237,226,0.92);
  line-height: 1.55;
}
.merge-mock .gate {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 14px;
  background: rgba(52,217,122,0.10);
  border-radius: 6px;
  color: #92E5A8;
  font-family: var(--font-sans);
  font-size: 13px;
}
.merge-mock .gate svg { flex-shrink: 0; }

/* ── BYO MODEL ── */
.byo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .byo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .byo-grid { grid-template-columns: 1fr; } }
.byo-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 22px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.byo-card .byo-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--paper-deep);
  display: grid; place-items: center;
  color: var(--ink);
}
.byo-card h4 { margin-top: 4px; }
.byo-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.byo-card .lst { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.byo-card .lst .chip { font-size: 10.5px; padding: 3px 8px; }

/* ── TESTIMONIALS ── */
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px) { .tgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .tgrid { grid-template-columns: 1fr; } }
.tcard {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
}
.tcard.feature { background: var(--bg-contrast); color: var(--ink-on-dark); border-color: transparent; }
.tcard.feature .role { color: rgba(242,237,226,0.55); }
.tcard .ql {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--saffron);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}
.tcard blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.35vw, 18.5px);
  letter-spacing: -0.01em;
  line-height: 1.55;
  color: inherit;
  flex: 1;
}
.tcard.feature blockquote { font-size: clamp(18px, 1.6vw, 21px); }
.tcard .author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.tcard .av-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  background: var(--saffron);
}
.tcard.feature .av-dot { background: var(--saffron); color: var(--ink); }
.tcard .name { font-weight: 500; font-size: 13.5px; line-height: 1.3; }
.tcard .role { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

/* ── FINAL CTA ── */
.cta-card {
  background: var(--bg-contrast);
  color: var(--ink-on-dark);
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(232,163,61,0.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(42,79,94,0.30), transparent 50%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card .kicker { color: rgba(242,237,226,0.6); }
.cta-card h2 { margin-top: 18px; max-width: 18ch; margin-inline: auto; }
.cta-card .lede { margin-top: 20px; max-width: 56ch; margin-inline: auto; color: rgba(242,237,226,0.75); }
.cta-card .actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ═════════════════════════════════════════════════════════════════════════
   product page blocks
   ═════════════════════════════════════════════════════════════════════════ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature-row.flip { direction: rtl; }
.feature-row.flip > * { direction: ltr; }
@media (max-width: 920px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; direction: ltr; }
}
.feature-row + .feature-row { margin-top: clamp(64px, 8vw, 112px); }
.feature-row .visual {
  border-radius: var(--r-lg);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 32px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.feature-row .visual.dark {
  background: var(--bg-contrast);
  color: var(--ink-on-dark);
  border-color: transparent;
}
.feature-row h2 { font-size: clamp(28px, 3.6vw, 44px); }
.feature-row .lede { margin-top: 16px; }
.feature-row .pts { margin-top: 22px; display: grid; gap: 14px; }
.feature-row .pt { display: flex; gap: 12px; align-items: flex-start; }
.feature-row .pt .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--saffron-deep);
  margin-top: 4px;
  flex-shrink: 0;
  width: 24px;
}
.feature-row .pt h4 { font-size: 17px; margin-bottom: 4px; }
.feature-row .pt p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ═════════════════════════════════════════════════════════════════════════
   pricing
   ═════════════════════════════════════════════════════════════════════════ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1080px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .price-grid { grid-template-columns: 1fr; } }
.price {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.price.featured {
  background: var(--bg-contrast);
  color: var(--ink-on-dark);
  border-color: transparent;
}
.price .tier {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.price .who {
  font-size: 13.5px;
  color: var(--ink-3);
}
.price.featured .who { color: rgba(242,237,226,0.58); }
.price .amt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.price .amt small {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: 0;
  font-weight: 400;
}
.price.featured .amt small { color: rgba(242,237,226,0.6); }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.price li {
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.price.featured li { color: rgba(242,237,226,0.85); }
.price li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 1px;
  background: var(--saffron);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'><path d='M5 13l5 5L20 7'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'><path d='M5 13l5 5L20 7'/></svg>") center / contain no-repeat;
}
.price .ribbon {
  position: absolute;
  top: -10px;
  right: 22px;
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

/* ═════════════════════════════════════════════════════════════════════════
   careers
   ═════════════════════════════════════════════════════════════════════════ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 920px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
}
.value .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--saffron-deep);
}
.value h3 { font-size: 22px; margin: 8px 0 10px; }
.value p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.role-list { margin-top: 32px; border-top: 1px solid var(--rule); }
.role {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 8px;
  border-bottom: 1px solid var(--rule);
  transition: background 200ms ease;
}
.role:hover { background: var(--paper-deep); }
@media (max-width: 820px) {
  .role { grid-template-columns: 1fr; gap: 6px; padding: 20px 8px; }
}
.role h3 { font-size: 22px; }
.role .meta { font-size: 13.5px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ═════════════════════════════════════════════════════════════════════════
   blog
   ═════════════════════════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 920px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.bpost {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.bpost:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--ink-2); }
.bpost .meta {
  display: flex; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bpost h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.bpost p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.bpost .by {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.bpost .av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
}

/* utility */
.spacer-md { height: clamp(32px, 4vw, 56px); }
.spacer-lg { height: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.dim { color: var(--ink-3); }
.caps {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ═════════════════════════════════════════════════════════════════════════
   inline arrow svg fragments
   ═════════════════════════════════════════════════════════════════════════ */
.arr {
  display: inline-block;
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 5l7 7-7 7'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 5l7 7-7 7'/></svg>") center / contain no-repeat;
  vertical-align: -2px;
}
