:root {
  font-family: "Hanken Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: #191817;
  background: #f0ede4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #f0ede4;
  --paper-deep: #e7e0d1;
  --ink: #191817;
  --ink-soft: #141311;
  --panel: #f7f4ed;
  --panel-light: #ece7db;
  --line: rgba(25, 24, 23, .18);
  --line-soft: rgba(25, 24, 23, .12);
  --muted: #6f6b63;
  --muted-dark: #8b857b;
  --text: #191817;
  --teal: #63d2c1;
  --teal-deep: #087f72;
  --amber: #d6a24f;
  --white: #fffdf7;
  --dark: #0b1014;
  --dark-line: #2a3a40;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--text); }
body, button, a { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.site-shell { min-height: 100vh; overflow-x: hidden; }
.site-nav { position: fixed; top: 20px; left: 50%; z-index: 20; display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 40px)); min-height: 58px; padding: 8px 10px 8px 18px; border: 1px solid rgba(25, 24, 23, .18); border-radius: 999px; background: rgba(240, 237, 228, .9); transform: translateX(-50%); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Arial Narrow", "Hanken Grotesk", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.brand img { border-radius: 8px; }
.site-menu { display: flex; align-items: center; gap: 26px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.site-menu a { transition: color .2s ease, transform .2s var(--ease); }
.site-menu a:hover { color: var(--teal-deep); transform: translateY(-1px); }
.site-menu .nav-cta { padding: 11px 16px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; }
.site-menu .nav-cta:hover { color: var(--ink); background: var(--teal); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }

.section-pad { padding: 180px max(24px, 5vw); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); align-items: center; gap: clamp(48px, 8vw, 132px); min-height: 900px; padding-top: 190px; }
.hero-copy { max-width: 760px; }
.hero-kicker, .section-kicker, .card-kicker { margin: 0 0 22px; color: var(--teal-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 500; letter-spacing: 0; line-height: .94; }
.hero-deck { max-width: 580px; margin: 34px 0 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.55; }
.hero-actions, .action-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 21px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 700; transition: transform .25s var(--ease), background .25s ease, color .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--teal-deep); color: var(--white); }
.button-secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--teal); color: var(--teal); }
.hero-media { margin: 0; }
.media-frame { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep); box-shadow: 18px 18px 0 #d9d0c0; }
.media-frame::after { position: absolute; inset: 0; content: ""; border: 1px solid rgba(99, 210, 193, .18); pointer-events: none; }
.hero-media img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; filter: saturate(.9) contrast(1.03); transition: transform 1s var(--ease), filter 1s ease; }
.hero-media:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.05); }
.hero-media figcaption { max-width: 34ch; margin-top: 16px; color: var(--muted-dark); font-size: 12px; line-height: 1.5; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-deep); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: .16em; white-space: nowrap; }
.marquee-track { display: flex; align-items: center; width: max-content; gap: 26px; padding: 18px 0; animation: marquee 28s linear infinite; }
.marquee i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-intro { max-width: 710px; margin-bottom: 76px; }
.section-intro h2, .proof-copy h2, .action-panel h2 { max-width: 900px; margin: 0; color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: clamp(2.5rem, 5vw, 5.4rem); font-weight: 500; letter-spacing: 0; line-height: .98; }
.section-intro > p:last-child, .proof-copy > p:last-child, .action-panel > div > p:last-child { max-width: 660px; margin: 26px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.bento-grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(280px, auto)); gap: 14px; }
.bento-card { position: relative; overflow: hidden; min-height: 280px; border: 1px solid var(--line); background: var(--paper-deep); transition: border-color .3s ease, transform .4s var(--ease); }
.bento-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.bento-architecture { grid-column: span 7; grid-row: span 2; display: grid; grid-template-rows: 1fr auto; }
.bento-cache, .bento-trace { grid-column: span 5; padding: 32px; }
.card-image { overflow: hidden; min-height: 0; background: var(--paper); }
.architecture-image img { width: 100%; height: 100%; padding: 14px; object-fit: contain; opacity: .96; transition: transform .8s var(--ease), opacity .8s ease; }
.bento-architecture:hover .architecture-image img { opacity: 1; transform: scale(1.03); }
.bento-copy { padding: 30px 32px 34px; border-top: 1px solid var(--line); }
.bento-card h3 { max-width: 16ch; margin: 0; color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: 26px; font-weight: 500; line-height: 1.05; }
.bento-card p:not(.card-kicker) { max-width: 46ch; margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-kicker { margin-bottom: 22px; font-size: 9px; }
.card-link { display: inline-flex; gap: 10px; margin-top: 28px; color: var(--teal); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.card-link span { transition: transform .25s var(--ease); }
.card-link:hover span { transform: translate(3px, -3px); }
.cache-lines { position: relative; display: grid; gap: 9px; margin-bottom: 55px; }
.cache-lines span { display: block; height: 16px; border: 1px solid var(--line); background: var(--panel-light); }
.cache-lines span:nth-child(2) { width: 74%; border-color: rgba(99, 210, 193, .34); }
.cache-lines span:nth-child(3) { width: 46%; border-color: rgba(214, 162, 79, .4); }
.cache-lines b { position: absolute; left: 44%; top: -8px; width: 2px; height: 70px; background: var(--teal); }
.trace-mini { overflow: hidden; height: 180px; margin: -32px -32px 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
.trace-mini img { width: 100%; height: 100%; object-fit: contain; filter: saturate(.9); transition: transform .8s var(--ease), filter .8s ease; }
.bento-trace:hover .trace-mini img { transform: scale(1.05); filter: saturate(1); }

.trace-section { background: var(--paper-deep); color: var(--ink); }
.trace-section .section-intro h2 { color: var(--ink); }
.trace-section .section-intro > p:last-child { color: var(--muted); }
.accordion-layout { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr); gap: clamp(30px, 7vw, 120px); align-items: stretch; }
.accordion-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.accordion-item { display: grid; grid-template-columns: minmax(120px, .65fr) minmax(0, 1fr) 22px; gap: 16px; align-items: center; min-height: 120px; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.accordion-item:hover, .accordion-item.is-active { color: var(--ink); }
.accordion-title { color: var(--muted); font-size: 21px; transition: color .25s ease; }
.accordion-item.is-active .accordion-title { color: var(--teal); }
.accordion-description { color: var(--muted-dark); font-size: 12px; line-height: 1.45; transition: color .25s ease; }
.accordion-item:hover .accordion-description, .accordion-item.is-active .accordion-description { color: var(--muted); }
.accordion-arrow { color: var(--muted-dark); font-size: 16px; transition: color .25s ease, transform .25s var(--ease); }
.accordion-item:hover .accordion-arrow, .accordion-item.is-active .accordion-arrow { color: var(--teal); transform: translate(2px, -2px); }
.accordion-stage { position: relative; min-height: 500px; margin: 0; border: 1px solid var(--line); background: var(--paper); }
.accordion-stage img { width: 100%; height: 100%; min-height: 500px; object-fit: contain; filter: saturate(.92); }
.accordion-stage figcaption { position: absolute; right: 15px; bottom: 14px; padding: 7px 8px; background: rgba(240, 237, 228, .92); color: var(--teal-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; letter-spacing: .08em; }

.proof-section { display: grid; grid-template-columns: minmax(0, .86fr) minmax(360px, .74fr); gap: clamp(50px, 10vw, 170px); align-items: start; }
.proof-copy { position: sticky; top: 140px; }
.proof-copy h2 { font-size: clamp(2.6rem, 4.8vw, 5rem); }
.scrub-copy span { color: var(--ink); opacity: .18; transition: opacity .2s ease; }
.stack-stage { position: relative; display: grid; min-height: 690px; padding-top: 70px; }
.stack-card { position: sticky; top: 160px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; margin-bottom: -170px; padding: 32px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .24); transform-origin: center top; transition: transform .3s var(--ease); }
.stack-card:nth-child(2) { margin-top: 50px; }
.stack-card:nth-child(3) { margin-top: 100px; }
.stack-card-dark { background: #121c22; }
.stack-card-teal { background: var(--teal-deep); color: #071b19; }
.stack-card-amber { background: var(--amber); color: #1d170d; }
.stack-card h3 { margin: 35px 0 auto; font-size: 28px; font-weight: 500; }
.stack-card strong { display: block; margin-top: 32px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; }
.stack-card p { max-width: 32ch; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.stack-card-teal p, .stack-card-amber p { color: rgba(7, 27, 25, .68); }
.stack-mark { align-self: flex-end; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; opacity: .7; }

.evidence-section { background: var(--paper); }
.benchmark-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; letter-spacing: .1em; }
.benchmark-context { max-width: 78ch; margin: 14px 0 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.6; }
.evidence-visuals { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 14px; margin-top: 16px; }
.evidence-figure { min-width: 0; margin: 0; border: 1px solid var(--line); background: var(--panel); }
.evidence-figure img { width: 100%; height: auto; }
.evidence-figure figcaption { min-height: 52px; padding: 12px 16px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.benchmark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.benchmark-card { min-height: 320px; padding: 30px; border: 1px solid var(--line); background: var(--panel); }
.benchmark-card-featured { background: var(--teal); border-color: var(--teal); }
.benchmark-card h3, .evidence-note h3 { margin: 0; color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: 27px; font-weight: 500; line-height: 1.05; }
.benchmark-card strong, .evidence-note strong { display: block; margin-top: 46px; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; }
.benchmark-card strong small, .evidence-note strong small { font-size: .34em; font-weight: 600; }
.benchmark-card-featured .card-kicker, .benchmark-card-featured h3, .benchmark-card-featured strong { color: #071b19; }
.benchmark-card dl { display: grid; gap: 8px; margin: 38px 0 0; }
.benchmark-card dl div { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.benchmark-card-featured dl div { border-color: rgba(7, 27, 25, .25); }
.benchmark-card dt, .benchmark-card dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.benchmark-card dt { color: var(--muted); }
.benchmark-card dd { color: var(--ink); font-weight: 700; text-align: right; }
.benchmark-card-featured dt { color: rgba(7, 27, 25, .68); }
.benchmark-card-featured dd { color: #071b19; }
.evidence-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.evidence-note { min-height: 230px; padding: 30px; border-top: 3px solid var(--teal-deep); background: var(--paper-deep); }
.evidence-note-quality { border-top-color: var(--amber); }
.evidence-note strong { margin-top: 22px; font-size: clamp(2rem, 4vw, 3rem); }
.evidence-note h3 { margin-top: 16px; font-size: 23px; }
.evidence-note p:not(.card-kicker) { max-width: 54ch; margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.source-note { margin: 24px 0 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.6; }
.source-note a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

.action-section { padding-top: 100px; padding-bottom: 120px; }
.action-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; min-height: 430px; padding: clamp(32px, 6vw, 72px); background: var(--teal); color: #071b19; }
.action-panel h2 { max-width: 760px; color: #071b19; }
.action-panel > div > p:last-child { color: rgba(7, 27, 25, .72); }
.button-light { background: var(--white); color: #071b19; }
.button-light:hover { background: #071b19; color: var(--white); }
.button-outline { border-color: rgba(7, 27, 25, .48); color: #071b19; }
.button-outline:hover { border-color: #071b19; background: rgba(7, 27, 25, .08); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px max(24px, 5vw); border-top: 1px solid var(--dark-line); background: var(--ink-soft); color: #9aabae; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.site-footer .brand { color: var(--white); }
.site-footer p { margin: 0; }
.site-footer > a:last-child { color: var(--teal); }

.motion-ready .hero-copy > * { opacity: 0; transform: translateY(32px); }
.motion-ready .hero-media { opacity: 0; transform: translateY(40px) scale(.96); }
.reveal-media { transform-origin: center center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 180px; }
  .hero-copy { max-width: 820px; }
  .hero-media { max-width: 720px; }
  .bento-grid { grid-template-rows: auto; }
  .bento-architecture, .bento-cache, .bento-trace { grid-column: span 12; grid-row: span 1; }
  .bento-architecture { min-height: 620px; }
  .proof-section { grid-template-columns: 1fr; }
  .proof-copy { position: static; max-width: 760px; }
  .stack-stage { min-height: 720px; max-width: 760px; }
  .evidence-visuals, .benchmark-grid, .evidence-notes { grid-template-columns: 1fr; }
  .action-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .site-nav { width: calc(100% - 24px); top: 12px; }
  .menu-toggle { display: block; }
  .site-menu { position: absolute; top: 66px; right: 0; display: none; width: 220px; padding: 16px; border: 1px solid var(--line); background: var(--panel); }
  .site-menu.is-open { display: grid; gap: 16px; }
  .site-menu .nav-cta { text-align: center; }
  .section-pad { padding: 120px 20px; }
  .hero { gap: 54px; padding-top: 150px; }
  .hero h1 { font-size: clamp(3.25rem, 15vw, 5.4rem); }
  .hero-actions, .action-buttons { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .section-intro { margin-bottom: 46px; }
  .bento-architecture { min-height: 500px; }
  .bento-cache, .bento-trace { padding: 24px; }
  .trace-mini { margin: -24px -24px 24px; }
  .accordion-layout { grid-template-columns: 1fr; }
  .accordion-item { grid-template-columns: 1fr 22px; gap: 8px; min-height: 104px; }
  .accordion-description { grid-column: 1 / -1; }
  .accordion-stage, .accordion-stage img { min-height: 330px; }
  .stack-stage { min-height: 670px; }
  .stack-card { min-height: 280px; padding: 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
