/* =========================================================================
   Motif, a molecular-biology bench for Claude Science
   v2, Claude Science theme: warm cream + charcoal, peach product panels,
   serif display, one terracotta accent, the provenance thread signature.
   ========================================================================= */

:root {
  /* Surfaces */
  --cream: #FAF9F5;         /* lightest page bg */
  --parchment: #F1EEE5;     /* warm section bg */
  --sand: #EAE3D5;
  --paper: #FFFFFF;
  --peach: #E9C7B0;         /* product-panel container */
  --peach-lo: #EFD8C6;
  --dark: #262624;          /* dark section bg (Claude charcoal) */
  --dark-2: #1E1D1B;

  /* Warm accents */
  --clay: #C0603C;          /* PRIMARY terracotta */
  --clay-ink: #A6482A;
  --clay-deep: #8C3D24;
  --sage: #7F9270;
  --sage-deep: #5E7350;
  --mist: #6E90AE;
  --mist-deep: #4D6E8C;
  --gold: #C79A44;

  /* Ink */
  --ink: #201F1C;
  --ink-2: #4A453D;
  --ink-3: #736A5D;
  --ink-4: #9A8F7F;
  --cream-text: #ECE4D6;
  --cream-text-2: #B7AC9B;

  /* Lines */
  --line: rgba(32, 31, 28, 0.13);
  --line-soft: rgba(32, 31, 28, 0.08);
  --line-strong: rgba(32, 31, 28, 0.22);
  --line-cream: rgba(236, 228, 214, 0.16);

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --shadow-card: 0 1px 2px rgba(32,31,28,0.05), 0 18px 40px -26px rgba(32,31,28,0.35);
  --shadow-float: 0 44px 90px -48px rgba(90,45,25,0.5), 0 2px 10px rgba(32,31,28,0.06);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  line-height: 1.62;
  color: var(--ink-2);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.06; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

::selection { background: rgba(192,96,60,0.22); color: var(--clay-deep); }
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-parchment { background: var(--parchment); }
.bg-cream { background: var(--cream); }

.eyebrow {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.19em; text-transform: uppercase; color: var(--clay-ink);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow .ast { width: 0.95em; height: 0.95em; flex: none; }
.eyebrow--onDark { color: #E39A72; }

.section-head { max-width: 46rem; }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); margin-top: 1rem; }
.section-head .lead { margin-top: 1.1rem; font-size: clamp(1.08rem, 1rem + 0.5vw, 1.28rem); color: var(--ink-2); max-width: 40rem; }
.lead { line-height: 1.55; }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }
em.u { color: var(--clay); font-style: italic; font-weight: 400; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  background: rgba(250, 249, 245, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(250, 249, 245, 0.92); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 600; font-size: 1.34rem; color: var(--ink); letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand__for { font-family: var(--mono); font-size: 0.61rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 0.2em 0.6em; margin-left: 0.15rem; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav__links a { font-size: 0.94rem; color: var(--ink-2); transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 900px) { .nav__links a:not(.nav__gh) { display: none; } .brand__for { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.72em 1.25em; border-radius: 999px; border: 1px solid transparent; line-height: 1;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 10px 26px -14px rgba(140,61,36,0.9); }
.btn--primary:hover { background: var(--clay-ink); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,0.55); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #fff; border-color: var(--line-strong); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #000; transform: translateY(-1px); }
.btn--sm { padding: 0.55em 1em; font-size: 0.88rem; }
.btn--link { padding: 0.4em 0; color: var(--clay-ink); font-weight: 600; }
.btn--link:hover { color: var(--clay-deep); }
.btn--link .arrow { transition: transform 0.2s var(--ease); }
.btn--link:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1.12fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 2; }
.hero__copy { max-width: 34rem; }
.hero h1 { font-size: clamp(2.7rem, 1.6rem + 4.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; margin-top: 1.4rem; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--clay); }
.hero__lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem); color: var(--ink-2); }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero__trust { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.35rem; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.hero__trust span { display: inline-flex; align-items: center; gap: 0.5em; }
.hero__trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

.motif-strip { margin-top: 1.7rem; font-family: var(--mono); font-size: 1.02rem; letter-spacing: 0.34em; font-weight: 500; user-select: none; }
.motif-strip .b { opacity: 0; animation: baseIn 0.5s var(--ease) forwards; }
.nt-a { color: var(--nt-a, #C0603C); } .nt-t { color: var(--nt-t, #6E90AE); } .nt-g { color: var(--nt-g, #7F9270); } .nt-c { color: var(--nt-c, #C79A44); }
@keyframes baseIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .motif-strip .b { opacity: 1; animation: none; } }

/* hero image inside a Claude-style peach product container */
.hero__stage { position: relative; }
.panel {
  position: relative; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--peach-lo), var(--peach));
  padding: clamp(14px, 2.2vw, 26px);
  box-shadow: var(--shadow-float);
}
.panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,0.35); pointer-events: none; }
.panel__inner { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px -30px rgba(60,30,15,0.6); background: var(--cream); aspect-ratio: 16 / 10; }
.panel__inner img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 60% 46%; }
.hero__stage { align-self: center; }
.hero__chip {
  position: absolute; left: 6px; bottom: -14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.7rem 0.9rem; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--ink-2); max-width: 16rem;
}
.hero__chip .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sage-deep); box-shadow: 0 0 0 0 rgba(94,115,80,0.5); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,115,80,0.45); } 70% { box-shadow: 0 0 0 10px rgba(94,115,80,0); } 100% { box-shadow: 0 0 0 0 rgba(94,115,80,0); } }
.hero__chip .mono { color: var(--ink); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .hero__chip .pulse { animation: none; } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 2.6rem; } .hero__copy { max-width: none; } }

/* ---------- thesis ---------- */
.thesis { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--parchment); }
.thesis__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.thesis h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
.proofs { display: grid; gap: 1.1rem; }
.proof { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem 1rem; align-items: start; }
.proof__mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--line); color: var(--clay-ink); }
.proof__mark svg { width: 20px; height: 20px; }
.proof h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: 0; }
.proof p { margin-top: 0.2rem; font-size: 0.96rem; color: var(--ink-3); }
@media (max-width: 780px) { .thesis__inner { grid-template-columns: 1fr; } }

/* ---------- provenance thread (signature) ---------- */
.lineage__track { position: relative; margin-top: 3rem; }
.thread { position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; overflow: visible; }
.thread svg { position: absolute; inset: 0; width: 2px; height: 100%; overflow: visible; }
.thread path { fill: none; stroke: var(--clay); stroke-width: 2; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.stages { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.stage { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem; align-items: start; }
.stage__node { position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 1.5px solid var(--line); color: var(--ink-3); font-family: var(--mono); font-size: 0.9rem; font-weight: 600; transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease); }
.stage.is-lit .stage__node { border-color: var(--clay); color: #fff; background: var(--clay); transform: scale(1.04); }
.stage__body { padding-top: 0.35rem; }
.stage__k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-ink); }
.stage h3 { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem); margin-top: 0.35rem; }
.stage p { margin-top: 0.5rem; color: var(--ink-2); max-width: 34rem; }
.stage__meta { margin-top: 0.7rem; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); background: rgba(255,255,255,0.5); border: 1px solid var(--line-soft); border-radius: 8px; padding: 0.4em 0.7em; display: inline-block; }
@media (max-width: 620px) { .stage { grid-template-columns: 44px 1fr; gap: 1rem; } .stage__node { width: 44px; height: 44px; font-size: 0.8rem; } .thread { left: 21px; } }

/* ---------- feature bands ---------- */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.band--flip .band__media { order: 2; }
.band__copy { max-width: 30rem; }
.band__copy h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); margin-top: 0.9rem; }
.band__copy p { margin-top: 1.05rem; color: var(--ink-2); }
.band__list { margin-top: 1.3rem; display: grid; gap: 0.7rem; padding: 0; }
.band__list li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.98rem; color: var(--ink-2); }
.band__list li::before { content: ""; margin-top: 0.55em; width: 7px; height: 7px; border-radius: 2px; background: var(--sage); transform: rotate(45deg); }
.band__media { position: relative; }
.figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: var(--paper); }
.figure img { width: 100%; height: auto; display: block; }
figcaption { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-4); padding: 0.65rem 0.85rem; letter-spacing: 0.02em; border-top: 1px solid var(--line-soft); }
/* composed figure: real prompt card overlaid on the workspace render */
.figure--flow { position: relative; }
.flow__ask { position: absolute; top: 6.5%; left: 4.5%; width: min(52%, 22rem); background: var(--cream); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 26px -16px rgba(60,30,15,0.55); padding: 0.62rem 0.78rem 0.7rem; }
.flow__from { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-ink); margin-bottom: 0.3rem; }
.flow__text { display: block; font-size: clamp(0.72rem, 0.62rem + 0.4vw, 0.9rem); line-height: 1.42; color: var(--ink); }
@media (max-width: 420px) { .flow__ask { width: 62%; padding: 0.5rem 0.6rem 0.55rem; } }
/* in-your-control: framed product screenshots (dark UI on the cream page) */
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.screenshot-window { margin: 0; background: var(--dark); border-color: rgba(32, 31, 28, 0.3); border-radius: var(--radius-lg); box-shadow: 0 28px 60px -34px rgba(32, 31, 28, 0.7); }
.screenshot-window__bar { height: 2rem; position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)); border-bottom: 1px solid var(--line-cream); }
.screenshot-window__bar::before { content: ""; position: absolute; top: 50%; left: 1rem; width: 7px; height: 7px; border-radius: 50%; background: rgba(236,228,214,0.38); box-shadow: 13px 0 0 rgba(236,228,214,0.25), 26px 0 0 rgba(236,228,214,0.16); transform: translateY(-50%); }
.screenshot-window__image { padding: clamp(0.55rem, 1.4vw, 0.85rem); background: var(--dark-2); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.screenshot-window__image img { width: 100%; height: 100%; object-fit: contain; display: block; border: 1px solid rgba(236,228,214,0.1); border-radius: 10px; box-shadow: 0 12px 28px -18px rgba(0,0,0,0.9); }
.screenshot-window figcaption { color: var(--cream-text-2); background: var(--dark); border-top-color: var(--line-cream); }
.video-window { max-width: 60rem; margin: 1.7rem auto 0; }
.screenshot-window__image video { width: 100%; height: 100%; object-fit: contain; display: block; border: 1px solid rgba(236,228,214,0.1); border-radius: 10px; }

/* real-session walkthrough: numbered steps, each a real product screenshot */
.session { list-style: none; padding: 0; margin: clamp(2.2rem, 5vw, 3.6rem) auto 0; max-width: 62rem; display: grid; gap: clamp(2.6rem, 6vw, 4.2rem); }
.session__step { display: grid; gap: 1.15rem; }
.session__meta { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.session__num { justify-self: start; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--clay); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.18rem 0.72rem; line-height: 1.35; white-space: nowrap; }
.session__caption h3 { font-size: clamp(1.18rem, 1rem + 0.75vw, 1.5rem); }
.session__caption p { margin-top: 0.5rem; color: var(--ink-2); max-width: 42rem; }
.session__step .screenshot-window { margin: 0; }
.session__step .screenshot-window__image { aspect-ratio: auto; }
.session__step .screenshot-window__image img { height: auto; }
@media (max-width: 560px) { .session__meta { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Connector setup showcase */
.connect { max-width: 60rem; margin: clamp(2.2rem, 5vw, 3.4rem) auto 0; display: grid; gap: clamp(1.8rem, 4vw, 2.8rem); }
.connect__item { display: grid; gap: 1rem; }
.connect .screenshot-window__image { aspect-ratio: auto; }
.connect .screenshot-window__image img { height: auto; }
.connect__note { color: var(--ink-2); max-width: 44rem; }
.connect__note strong { color: var(--ink); font-weight: 600; }

/* Important-note callout */
.callout { max-width: 62rem; margin: clamp(2rem, 5vw, 3rem) auto 0; padding: clamp(1.1rem, 2.5vw, 1.5rem) clamp(1.2rem, 3vw, 1.7rem); background: rgba(192, 96, 60, 0.06); border: 1px solid var(--line); border-left: 3px solid var(--clay); border-radius: var(--radius); }
.callout h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.callout p { margin: 0; color: var(--ink-2); }

/* Cloning & maps: full-width real screenshot + capability row */
.cloning-window { max-width: 60rem; margin: clamp(1.8rem, 4vw, 2.6rem) auto 0; }
.cloning-window .screenshot-window__image { aspect-ratio: auto; }
.cloning-window .screenshot-window__image img { height: auto; }
.cloning-list { max-width: 60rem; margin: 1.6rem auto 0; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 1.6rem; }
@media (max-width: 700px) { .cloning-list { grid-template-columns: 1fr; } }

/* Get started (near-top setup) */
.setup { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.setup__steps { list-style: none; counter-reset: setup; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.setup__step { counter-increment: setup; position: relative; padding-left: 3.2rem; }
.setup__step::before { content: counter(setup, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--clay); border: 1.5px solid var(--line); border-radius: 999px; }
.setup__step h3 { font-size: 1.05rem; margin: 0.2rem 0 0.3rem; }
.setup__step p { margin: 0; color: var(--ink-2); }
.setup__step .code { margin-top: 0.75rem; }
.setup__aside { display: grid; gap: 1.3rem; }
.setup__links { display: grid; gap: 0.7rem; justify-items: start; }
.setup__preview { padding: 1.2rem 1.3rem; background: var(--parchment); border: 1px solid var(--line); border-radius: var(--radius); }
.setup__preview h3 { font-size: 1rem; margin: 0 0 0.4rem; }
.setup__preview p { margin: 0 0 1rem; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) { .setup { grid-template-columns: 1fr; } }
.setup__fast { margin-top: clamp(1.6rem, 3.5vw, 2.2rem); padding: clamp(1.15rem, 2.6vw, 1.7rem) clamp(1.2rem, 3vw, 1.8rem); background: rgba(192, 96, 60, 0.06); border: 1px solid rgba(192, 96, 60, 0.22); border-left: 3px solid var(--clay); border-radius: var(--radius); }
.setup__fast-tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--clay); }
.setup__fast h3 { font-size: 1.25rem; margin: 0.45rem 0 0.5rem; }
.setup__fast p { margin: 0.5rem 0; color: var(--ink-2); max-width: 44rem; }
.setup__fast .code { margin: 0.7rem 0; white-space: pre-wrap; overflow-wrap: break-word; }
.setup__or { margin: clamp(1.5rem, 3.5vw, 2rem) 0 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.setup__or + .setup { margin-top: 0.9rem; }
.setup__shot { max-width: 30rem; margin-top: 0.95rem; }
.setup__shot .screenshot-window__image { aspect-ratio: auto; }
.setup__shot .screenshot-window__image img { height: auto; }
.setup__shot figcaption { font-size: 0.68rem; }

@media (max-width: 760px) { .screenshot-grid { grid-template-columns: 1fr; } }
@media (max-width: 840px) { .band { grid-template-columns: 1fr; gap: 2rem; } .band--flip .band__media { order: 0; } .band__copy { max-width: none; } }

/* ---------- interactive viz mounts ---------- */
.viz { display: grid; place-items: center; }
.viz--map { width: 100%; max-width: 620px; aspect-ratio: 1 / 1; margin-inline: auto; }
.viz--codons { width: 100%; }
.viz__fallback { width: 100%; }

/* ---------- dark showcase (Claude Science style: product panel + accordion) ---------- */
.showcase { position: relative; background: var(--dark); color: var(--cream-text); overflow: hidden; }
.showcase .container { z-index: 2; }
.showcase__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.showcase__panel { border-radius: var(--radius-xl); background: linear-gradient(160deg, var(--peach-lo), var(--peach)); padding: clamp(14px, 2vw, 22px); box-shadow: 0 50px 90px -50px rgba(0,0,0,0.8); }
.showcase__panel .panel__inner { box-shadow: 0 18px 40px -28px rgba(0,0,0,0.7); aspect-ratio: auto; background: #14100c; }
.showcase__panel .panel__inner img { height: auto; object-fit: contain; object-position: center; }
.showcase h2 { color: #FBF3E7; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); margin-top: 1rem; }
.showcase > .container > .showcase__intro { max-width: 34rem; margin-bottom: 2.5rem; }
.showcase__intro p { color: var(--cream-text-2); margin-top: 1rem; }

.accordion { display: grid; }
.acc { border-top: 1px solid var(--line-cream); }
.acc:last-child { border-bottom: 1px solid var(--line-cream); }
.acc__btn { width: 100%; text-align: left; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 0.2rem; color: #FBF3E7; }
.acc__btn h3 { color: inherit; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.42rem); font-weight: 500; flex: 1; }
.acc__ic { width: 26px; height: 26px; flex: none; position: relative; }
.acc__ic::before, .acc__ic::after { content: ""; position: absolute; background: #E39A72; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.acc__ic::before { left: 3px; right: 3px; top: 12px; height: 2px; }
.acc__ic::after { top: 3px; bottom: 3px; left: 12px; width: 2px; }
.acc.is-open .acc__ic::after { transform: scaleY(0); opacity: 0; }
.acc__panel { overflow: hidden; height: 0; transition: height 0.34s var(--ease); }
.acc__inner { padding: 0 0 1.3rem; color: var(--cream-text-2); max-width: 34rem; }
.acc__inner code { font-family: var(--mono); font-size: 0.85em; color: #E7D8C4; background: rgba(255,255,255,0.06); padding: 0.1em 0.4em; border-radius: 5px; }
.showcase__tags { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-family: var(--mono); font-size: 0.76rem; padding: 0.35em 0.75em; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); color: var(--cream-text); }
.tag .d { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.5em; vertical-align: middle; }
@media (max-width: 860px) { .showcase__grid { grid-template-columns: 1fr; } }

/* ---------- capabilities ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.stat { text-align: left; padding: 1.2rem 1.3rem; border-left: 2px solid var(--clay); background: rgba(255,255,255,0.45); border-radius: 0 12px 12px 0; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); color: var(--ink); letter-spacing: -0.02em; }
.stat span { font-size: 0.86rem; color: var(--ink-3); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.5rem; }
.cap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.cap:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.cap__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); color: var(--clay-ink); border: 1px solid var(--line-soft); }
.cap__ic svg { width: 20px; height: 20px; }
.cap h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-top: 1rem; }
.cap p { margin-top: 0.5rem; font-size: 0.93rem; color: var(--ink-3); }
.cap ul { margin: 0.8rem 0 0; padding: 0; }
.cap li { list-style: none; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); padding: 0.28em 0; border-top: 1px dashed var(--line-soft); }
.cap li:first-child { border-top: none; }
@media (max-width: 900px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* ---------- gallery strip ---------- */
.gallery { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gcard { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-card); transition: transform 0.25s var(--ease); }
.gcard:hover { transform: translateY(-3px); }
.gcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gcard span { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-4); padding: 0.55rem 0.7rem; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- quick start (tabs) ---------- */
.tabs { margin-top: 2.4rem; }
.tabs__row { display: flex; gap: 0.4rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--ink-3); padding: 0.75rem 1.1rem; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--clay); }
.tab:hover { color: var(--ink); }
.tabpanel { display: none; padding-top: 1.8rem; }
.tabpanel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.tabpanel__copy h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.tabpanel__copy p { margin-top: 0.7rem; color: var(--ink-2); }
.tabpanel__copy .btn { margin-top: 1.2rem; }
.code { background: var(--dark-2); color: var(--cream-text); border-radius: 12px; font-family: var(--mono); font-size: 0.84rem; line-height: 1.75; padding: 1.1rem 1.2rem; overflow-x: auto; border: 1px solid rgba(255,255,255,0.06); }
.code .c { color: #9A8A72; } .code .p { color: #E39A72; } .code .s { color: #A9C08E; } .code .k { color: #E7D8C4; }
@media (max-width: 780px) { .tabpanel.is-active { grid-template-columns: 1fr; } }

/* setup-help FAQ (native disclosure, no JS) */
.faq { max-width: 47rem; margin: clamp(1.8rem, 4vw, 2.6rem) 0 0; display: grid; gap: 0.65rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color 0.2s var(--ease); }
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary { cursor: pointer; list-style: none; padding: 0.95rem 1.15rem; font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--clay); font-size: 1.25rem; line-height: 1; flex: none; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__body { padding: 0 1.15rem 1.05rem; color: var(--ink-2); font-size: 0.97rem; line-height: 1.6; max-width: 44rem; }
.faq__body .mono { font-family: var(--mono); font-size: 0.9em; color: var(--ink); }

/* ---------- boundaries ---------- */
.honesty { background: var(--parchment); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.7rem, 4vw, 3rem); }
.honesty__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.8rem; }
.claim { border-radius: 14px; padding: 1.2rem 1.3rem; border: 1px solid var(--line-soft); }
.claim--do { background: rgba(127,146,112,0.12); }
.claim--dont { background: rgba(192,96,60,0.09); }
.claim h4 { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.claim--do h4 { color: var(--sage-deep); } .claim--dont h4 { color: var(--clay-ink); }
.claim ul { margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.claim li { list-style: none; font-size: 0.93rem; color: var(--ink-2); padding-left: 1.3rem; position: relative; }
.claim li::before { position: absolute; left: 0; top: 0.05em; font-family: var(--mono); }
.claim--do li::before { content: "✓"; color: var(--sage-deep); }
.claim--dont li::before { content: "→"; color: var(--clay); }
@media (max-width: 700px) { .honesty__grid { grid-template-columns: 1fr; } }

/* ---------- closer ---------- */
.closer__box { background: var(--clay); color: #fff; border-radius: var(--radius-xl); padding: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; text-align: center; }
.closer__box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 100% at 50% 0%, rgba(255,255,255,0.14), transparent 60%); }
.closer h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); position: relative; }
.closer p { color: rgba(255,255,255,0.9); margin: 1rem auto 0; max-width: 34rem; position: relative; }
.closer__cta { margin-top: 1.8rem; display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; position: relative; }
.closer .btn--primary { background: #fff; color: var(--clay-deep); }
.closer .btn--primary:hover { background: #FBF3E7; }
.closer .btn--ghost { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.4); }
.closer .btn--ghost:hover { background: rgba(255,255,255,0.18); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { padding-block: 3rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .brand { font-size: 1.15rem; }
.footer__tag { margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-3); max-width: 22rem; }
.footer h5 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.9rem; }
.footer__col a { display: block; font-size: 0.93rem; color: var(--ink-2); padding: 0.28em 0; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--clay-ink); }
.footer__legal { border-top: 1px solid var(--line-soft); padding-block: 1.4rem; font-size: 0.8rem; color: var(--ink-4); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer__legal p { max-width: 52rem; line-height: 1.5; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brandcol { grid-column: 1 / -1; } }

/* ---------- new-user starters ---------- */
.starters__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 2.4rem; }
.mascot-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; text-align: center; }
.mascot-card img { width: 172px; height: auto; margin: 0 auto 0.4rem; display: block; filter: drop-shadow(0 10px 18px rgba(90,45,25,0.18)); }
.mascot-card h3 { font-size: 1.35rem; }
.mascot-card p { margin-top: 0.5rem; font-size: 0.92rem; color: var(--ink-3); }
.mascot-card .mono { display: inline-block; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-ink); }
.prompt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.prompt { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.05rem 1.15rem; display: grid; gap: 0.45rem; transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease); }
.prompt:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.prompt__q { font-family: var(--mono); font-size: 0.87rem; color: var(--ink); line-height: 1.5; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: start; }
.prompt__q .chev { color: var(--clay); font-weight: 600; }
.prompt__a { font-size: 0.85rem; color: var(--ink-3); padding-left: 1.1rem; }
@media (max-width: 820px) { .starters__grid { grid-template-columns: 1fr; } .prompt-list { grid-template-columns: 1fr; } }

/* ---------- ambient layer ---------- */
.ambient-host { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- hackathon video (TEMP — remove after hackathon, with #hackathon in index.html + main.js block) ---------- */
#hackathon .section-head { margin-inline: auto; text-align: center; }
#hackathon .section-head .lead { margin-inline: auto; }
.ytlite { max-width: 42rem; }
.ytlite__btn { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; width: 100%; height: 100%; background: var(--dark-2); border: 1px solid rgba(236,228,214,0.1); border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; display: block; }
.ytlite__poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease), filter 0.3s var(--ease); }
.ytlite__btn:hover .ytlite__poster { transform: scale(1.02); filter: brightness(1.04); }
.ytlite__play { position: absolute; inset: 0; display: grid; place-items: center; }
.ytlite__play svg { width: clamp(56px, 9vw, 74px); height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45)); opacity: 0.92; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.ytlite__btn:hover .ytlite__play svg, .ytlite__btn:focus-visible .ytlite__play svg { opacity: 1; transform: scale(1.06); }
.ytlite__btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.ytlite__frame { width: 100%; height: 100%; border: 0; border-radius: 10px; display: block; }
.ytlite__yt { color: var(--clay-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.ytlite__yt:hover { color: var(--clay-deep); }
@media (prefers-reduced-motion: reduce) {
  .ytlite__poster, .ytlite__play svg { transition: none; }
  .ytlite__btn:hover .ytlite__poster { transform: none; filter: none; }
  .ytlite__btn:hover .ytlite__play svg, .ytlite__btn:focus-visible .ytlite__play svg { transform: none; }
}
