/* a4ai.ch — 2026-04-23 rebuild
   Chat-led Swiss editorial. Cream paper, ink black, alpine red.
   Minimal, original, shipped from zero. */

/* -------- tokens -------- */
:root {
  --paper: #F2EDE2;
  --paper-2: #EAE3D4;
  --paper-3: #E0D7C2;
  --ink: #1A1815;
  --ink-2: #2B2824;
  --mute: #6B6355;
  --rule: #CFC6B3;
  --red: #CE3A1E;
  --red-deep: #9E2912;
  --amber: #D89A52;

  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --edge: clamp(20px, 4vw, 56px);
  --col: min(1280px, 100% - var(--edge) * 2);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* -------- reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }

/* paper grain, site-wide, cheap */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* skip link */
.skip { position: absolute; left: -999px; top: 0; padding: 8px 12px; background: var(--ink); color: var(--paper); z-index: 1000; }
.skip:focus { left: 8px; top: 8px; }

/* -------- nav -------- */
.nav {
  position: sticky; top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  width: var(--col); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.wordmark em {
  font-style: italic;
  color: var(--red-deep);
}
.wordmark .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  display: inline-block;
  transform: translateY(-2px);
  margin: 0 2px;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--red);
  transition: width .35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.hamburger { display: none; }

/* -------- hero / chat-led -------- */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
  isolation: isolate;
}
.hero-inner {
  width: var(--col); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.hero-left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 580px; }
.hero-meta {
  display: flex; flex-direction: column; gap: 18px;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker .kbar {
  width: 28px; height: 1px; background: var(--red);
}

.hero-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero-h1 em {
  font-style: italic;
  color: var(--red-deep);
}
.hero-h1 .amp {
  font-style: italic;
  color: var(--amber);
  font-size: 0.85em;
  vertical-align: -0.03em;
  padding: 0 0.05em;
}

.hero-lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0;
}
.hero-lede strong { font-weight: 600; color: var(--ink); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .2s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
  will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.hero-footnote {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.hero-footnote .live {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-footnote .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(206, 58, 30, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(206, 58, 30, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(206, 58, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 58, 30, 0); }
}

/* -------- the chat surface (hero-right) -------- */
.chat {
  position: relative;
  background: linear-gradient(180deg, #F8F4EB 0%, #EFE8D8 100%);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
  min-height: 580px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 60px -40px rgba(26, 24, 21, 0.35);
  overflow: hidden;
}
.chat::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 80% -10%, rgba(216, 154, 82, 0.18), transparent 60%),
              radial-gradient(90% 50% at 10% 110%, rgba(206, 58, 30, 0.10), transparent 60%);
  pointer-events: none;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--rule);
  position: relative; z-index: 1;
}
.chat-head-id {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.orb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #F7B896 0%, #D85A36 38%, #9E2912 78%, #5E170A 100%);
  box-shadow:
    inset -4px -5px 10px rgba(0,0,0,0.35),
    inset 3px 4px 8px rgba(255, 220, 200, 0.35),
    0 3px 8px rgba(158, 41, 18, 0.25);
  position: relative;
  animation: orb-breathe 4.5s var(--ease) infinite;
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.08); }
}
.chat-head-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-stream {
  position: relative; z-index: 1;
  flex: 1;
  padding: 16px 4px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.chat-stream::-webkit-scrollbar { width: 6px; }
.chat-stream::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 6px; }

.msg {
  margin-bottom: 14px;
  max-width: 92%;
  animation: msg-in .45s var(--ease) both;
}
.msg.bot { margin-right: auto; }
.msg.user { margin-left: auto; }
.msg-author {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.msg.user .msg-author { text-align: right; }
.msg-bubble {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 252, 244, 0.82);
  border: 1px solid rgba(207, 198, 179, 0.6);
  backdrop-filter: blur(6px);
}
.msg.user .msg-bubble {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
.msg-bubble p { margin: 0 0 8px; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-bubble ul { margin: 6px 0 0; padding-left: 18px; }
.msg-bubble li { margin-bottom: 2px; }
.msg-bubble strong { font-weight: 600; }
.msg-bubble .tw::after {
  content: "▍";
  color: var(--red);
  animation: cursor 1s step-end infinite;
  margin-left: 1px;
  font-weight: 400;
}
.msg-bubble .tw.done::after { content: ""; }
@keyframes cursor { 50% { opacity: 0; } }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-typing {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 252, 244, 0.7);
  border: 1px solid rgba(207, 198, 179, 0.5);
  border-radius: 14px;
  width: fit-content;
  margin-bottom: 14px;
}
.chat-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--mute);
  animation: dot 1.3s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-chips {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 4px 10px;
  border-top: 1px solid var(--rule);
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.6);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.on { background: var(--red-deep); color: var(--paper); border-color: var(--red-deep); }
.chip:active { transform: scale(0.97); }

.chat-composer {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--rule);
}
.chat-composer input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14px;
  padding: 10px 6px;
}
.chat-composer input::placeholder { color: var(--mute); }
.send-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.send-btn:hover { background: var(--red-deep); }
.send-btn:active { transform: scale(0.94); }
.send-btn svg { width: 14px; height: 14px; }

.book-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  animation: msg-in .4s var(--ease) both;
  animation-delay: .15s;
}
.book-cta:hover { background: var(--red-deep); }

/* -------- problem band -------- */
.problem {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.problem-inner {
  width: var(--col);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
}
.problem-eye {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.problem-eye::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--red);
}
.problem-h {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: .96;
  font-size: clamp(44px, 6.5vw, 96px);
  margin: 0;
  max-width: 22ch;
}
.problem-h em { color: var(--red-deep); font-style: italic; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.problem-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  color: var(--red);
  letter-spacing: -.02em;
}
.problem-stat p {
  font-size: clamp(14.5px, 1.1vw, 17px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 38ch;
}
.problem-stat p small {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}
.problem-foot {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0;
}

@media (max-width: 760px) {
  .problem-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* -------- team (names foreground, employer logos as ghost backdrop) -------- */
.team {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 14vw, 180px) 0 clamp(88px, 12vw, 160px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
/* Alumni logo wall — Rippling/Ramp/Linear pattern: greyscale, own strip, aggregate framing, footer disclaimer */
.team-alumni {
  max-width: 1100px;
  margin: 0 0 clamp(56px, 7vw, 96px);
  padding: clamp(22px, 3vw, 36px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.team-alumni-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: clamp(20px, 2.5vw, 30px);
}
.team-alumni-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: clamp(20px, 3.4vw, 56px);
}
.team-alumni-row img {
  width: 100%;
  height: clamp(30px, 4.2vw, 48px);
  max-height: 48px;
  object-fit: contain;
  opacity: 0.62;
  filter: grayscale(1) contrast(1.02);
  transition: opacity .25s var(--ease);
}
.team-alumni-row img:hover { opacity: 0.95; }
.team-alumni-note {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--mute);
  margin: clamp(18px, 2vw, 26px) 0 0;
  max-width: 62ch;
}

.team-inner {
  position: relative;
  z-index: 2;
  width: var(--col);
  margin: 0 auto;
}
.team-eye {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.team-eye::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--red);
}
.team-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 140px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--ink);
  max-width: 15ch;
}
.team-h em {
  font-style: italic;
  color: var(--red-deep);
}
.team-lede {
  font-family: var(--sans);
  font-size: clamp(15.5px, 1.15vw, 18.5px);
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 clamp(48px, 6vw, 80px);
}

/* Tim — lead row spanning full team column */
.team-lead {
  position: relative;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tm-lead-link {
  display: grid;
  grid-template-columns: 1fr auto 18px;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(30px, 3.4vw, 48px) 0;
  color: var(--ink);
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .22s var(--ease);
}
.tm-lead-link:hover,
.tm-lead-link:focus-visible {
  color: var(--red-deep);
  padding-left: 14px;
  outline: none;
}
.tm-lead-link .tm-name {
  font-size: clamp(36px, 4.4vw, 64px);
}

/* The other four — horizontal row under Tim, spread across same strip as the ghost logos */
.team-row {
  list-style: none;
  margin: 0;
  padding: clamp(28px, 3.4vw, 44px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.team-row > li { margin: 0; }
.team-row a {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr auto;
  row-gap: 6px;
  column-gap: 10px;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  padding: 2px 0;
  transition: color .15s var(--ease), transform .2s var(--ease);
}
.team-row a:hover,
.team-row a:focus-visible {
  color: var(--red-deep);
  transform: translateY(-2px);
  outline: none;
}
.team-row .tm-name {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.15;
  grid-column: 1;
  grid-row: 1;
}
.team-row .tm-role {
  grid-column: 1 / -1;
  grid-row: 2;
}
.team-row .tm-li {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

/* Shared label styles (lead + row) */
.tm-name {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.012em;
}
.tm-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  transition: color .15s var(--ease);
}
a:hover .tm-role,
a:focus-visible .tm-role { color: var(--red); }
.tm-li {
  width: 16px;
  height: 16px;
  color: var(--mute);
  opacity: .55;
  transition: opacity .15s var(--ease), color .15s var(--ease);
}
a:hover .tm-li,
a:focus-visible .tm-li {
  opacity: 1;
  color: var(--red-deep);
}

/* -------- stack (logo grid) -------- */
.stack {
  padding: clamp(80px, 9vw, 130px) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.stack-inner { width: var(--col); margin: 0 auto; }
.stack-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
  max-width: 900px;
}
.stack-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.stack-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--red);
}
.stack-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: .98;
  font-size: clamp(40px, 6vw, 88px);
  margin: 0;
  max-width: 20ch;
}
.stack-title em { color: var(--red-deep); font-style: italic; }
.stack-lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 4px 0 0;
}

.logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.logo-grid .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 112px;
  position: relative;
  transition: background .2s var(--ease), transform .2s var(--ease);
  filter: grayscale(12%);
  opacity: .92;
}
.logo-grid .logo:hover {
  background: rgba(255, 255, 255, 0.45);
  filter: grayscale(0%);
  opacity: 1;
}
.logo-grid .logo img {
  max-width: 100%;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.logo-grid .logo.wordmark .word {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1;
  font-weight: 400;
}
.logo-grid .logo.wordmark .word-sm {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
}
.logo-grid .logo.muted-tile { filter: grayscale(100%); opacity: .7; }
.logo-grid .logo.muted-tile:hover { filter: grayscale(40%); opacity: 1; }

.stack-foot {
  margin-top: clamp(32px, 3.5vw, 56px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 64ch;
}
.stack-foot em { color: var(--red-deep); font-style: normal; }

@media (max-width: 1024px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid .logo { padding: 22px 10px; min-height: 98px; gap: 8px; }
  .logo-grid .logo svg { width: 26px; height: 26px; }
  .logo-grid .logo.wordmark .word { font-size: 17px; }
  .logo-grid .logo.wordmark .word.muted { font-size: 11px; }
}

/* -------- starter prompts (chat hero) -------- */
.starter-prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px 2px;
  border-top: 1px solid var(--rule);
  transition: opacity .3s var(--ease), max-height .3s var(--ease);
  overflow: hidden;
  max-height: 400px;
}
.starter-prompts.used {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
}
.starter-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0 0 2px;
}
.starter {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.35;
  transition: color .15s var(--ease);
  display: block;
}
.starter em {
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 1px;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.starter:hover em,
.starter:focus-visible em {
  border-bottom-color: var(--red);
  color: var(--red-deep);
}
.starter:focus-visible { outline: none; }

/* -------- workflows ledger -------- */
.ledger {
  padding: clamp(72px, 10vw, 120px) 0;
}
.ledger-inner { width: var(--col); margin: 0 auto; }
.ledger-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}
.ledger h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.ledger h2 em {
  font-style: italic;
  color: var(--red-deep);
}
.ledger-intro {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
  justify-self: end;
  text-align: right;
}
.ledger-intro strong { font-weight: 600; color: var(--ink); }

.ledger-list {
  list-style: none;
  padding: 0; margin: 0;
}
.ledger-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.9fr) 120px;
  align-items: baseline;
  gap: clamp(16px, 2.5vw, 40px);
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .25s var(--ease), padding .25s var(--ease);
  position: relative;
  cursor: pointer;
}
.ledger-row:first-child { border-top: 1px solid var(--rule); }
.ledger-row::before {
  content: "";
  position: absolute;
  left: -32px; top: 50%;
  width: 0; height: 1px;
  background: var(--red);
  transition: width .4s var(--ease);
}
.ledger-row:hover::before { width: 24px; }
.ledger-row:hover { background: rgba(255, 252, 244, 0.5); }
.ledger-row:hover .ledger-title em { color: var(--red); }
.ledger-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.1em;
}
.ledger-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ledger-title em {
  font-style: italic;
  color: var(--red-deep);
  transition: color .25s var(--ease);
}
.ledger-branch {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.ledger-save {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.ledger-save small {
  display: block;
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.ledger-cta {
  justify-self: end;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.ledger-cta .arr { transition: transform .25s var(--ease); }
.ledger-row:hover .ledger-cta { color: var(--red-deep); }
.ledger-row:hover .ledger-cta .arr { transform: translateX(4px); }

/* -------- pricing + compliance (merged) -------- */
.merged {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.merged-inner {
  width: var(--col); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.merged-left .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.merged-left .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--red);
}
.merged-left h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
}
.merged-left h2 em { font-style: italic; color: var(--red-deep); }

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.price-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.price-row.feature {
  background: rgba(255, 250, 238, 0.6);
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid var(--ink);
  margin: 16px 0;
  box-shadow: 0 20px 40px -30px rgba(26,24,21,0.18);
  grid-template-columns: 160px minmax(0, 1fr) auto;
}
.price-row.feature-soft {
  background: rgba(216, 154, 82, 0.06);
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  margin: 4px 0;
  grid-template-columns: 160px minmax(0, 1fr) auto;
}
.price-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  padding-top: 4px;
}
.price-name em { font-style: italic; color: var(--red-deep); }
.price-body { display: flex; flex-direction: column; gap: 10px; }
.price-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.price-incl {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-incl li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.price-incl li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.price-bridge {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--red-deep);
  text-transform: none;
}
.price-val {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: right;
  color: var(--ink);
}
.price-val small {
  display: block;
  font-size: 10px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.merged-right {
  position: sticky; top: 100px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
}
.merged-right .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.merged-right .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.merged-right h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.merged-right h3 em { font-style: italic; color: var(--red-deep); }
.merged-right p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.trust-details {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.trust-details summary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.trust-details summary::-webkit-details-marker { display: none; }
.trust-details summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--red);
  transition: transform .2s var(--ease);
}
.trust-details[open] summary::after { content: "−"; }
.trust-list {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.trust-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
}
.trust-list li:last-child { border-bottom: 0; }
.trust-list strong { font-weight: 600; color: var(--ink); }

/* -------- final CTA -------- */
.final {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}
.final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 50% at 78% 40%, rgba(206, 58, 30, 0.35), transparent 60%),
    radial-gradient(60% 50% at 20% 100%, rgba(216, 154, 82, 0.18), transparent 70%);
  pointer-events: none;
}
.final-inner {
  width: var(--col); margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.final h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper);
}
.final h2 em { font-style: italic; color: #F3A48A; }
.final-sub {
  font-size: 16px;
  color: rgba(242, 237, 226, 0.75);
  margin: 20px 0 28px;
  max-width: 42ch;
}
.final-orb {
  justify-self: center;
  position: relative;
  width: min(360px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #F7C7A8 0%, #E5744A 28%, #CE3A1E 55%, #7E1E0D 85%, #3A0E05 100%);
  box-shadow:
    inset -18px -22px 50px rgba(0,0,0,0.55),
    inset 10px 12px 30px rgba(255, 220, 200, 0.28),
    0 50px 110px -30px rgba(206, 58, 30, 0.55),
    0 0 120px rgba(206, 58, 30, 0.18);
  animation: orb-breathe 5s var(--ease) infinite;
}
.final-orb::before {
  content: "";
  position: absolute;
  top: 12%; left: 18%;
  width: 22%; height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 240, 225, 0.55), transparent 70%);
  filter: blur(3px);
  pointer-events: none;
}
.final-orb::after {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 58, 30, 0.25) 0%, transparent 55%);
  z-index: -1;
  filter: blur(16px);
  animation: orb-breathe 5s var(--ease) infinite reverse;
}
.final-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.final .btn-primary { background: var(--paper); color: var(--ink); }
.final .btn-primary:hover { background: var(--red); color: var(--paper); }
.final .btn-ghost { border-color: rgba(242, 237, 226, 0.4); color: var(--paper); }
.final .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* -------- footer -------- */
.foot {
  padding: 40px 0 32px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.foot-inner {
  width: var(--col); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }

/* -------- reveal -------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------- mobile -------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-left { min-height: 0; }
  .hero-footnote { grid-template-columns: 1fr; text-align: left; }
  .chat { min-height: 480px; }
  .team-alumni-row { grid-template-columns: repeat(4, 1fr); gap: 28px 24px; row-gap: clamp(26px, 6vw, 40px); }
  .team-alumni-row img { height: clamp(26px, 6vw, 40px); }
  .tm-lead-link { grid-template-columns: 1fr 18px; grid-template-rows: auto auto; gap: 6px 14px; }
  .tm-lead-link .tm-role { grid-column: 1 / -1; grid-row: 2; }
  .tm-lead-link .tm-li { grid-column: 2; grid-row: 1; }
  .team-row { grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 4vw, 32px); }
  .ledger-row {
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
  }
  .ledger-branch { grid-column: 2 / 4; grid-row: 2; font-size: 12.5px; color: var(--mute); }
  .ledger-save { display: none; }
  .ledger-cta { grid-column: 3; grid-row: 1; }
  .ledger-title { font-size: 22px; }
  .ledger-head { grid-template-columns: 1fr; }
  .ledger-intro { text-align: left; justify-self: start; }
  .merged-inner { grid-template-columns: 1fr; }
  .merged-right { position: static; }
  .price-row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .price-desc { grid-column: 1 / 3; }
  .final-inner { grid-template-columns: 1fr; text-align: left; }
  .final-orb { order: -1; width: 220px; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .orb, .final-orb { animation: none; }
}
