/* Genie marketing site. Colours are the app's own tokens (app/tokens.css):
   warm cream canvas, charcoal, and the orange / amber / khaki brand family. */
@font-face { font-family: "Cal Sans"; src: url("assets/CalSansVF.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #ece8df; --bg-soft: #e3ded2; --raised: #fbfaf7; --border: #dcd5c7;
  --ink: #1d1c1a; --muted: #5a564d; --faint: #665f52;
  --accent: #a33f17; --accent-strong: #8a3412; --accent-soft: #ffe3d4;
  --fill: #ff7a45; --fill-2: #ff9b54; --on-fill: #1b0d05;
  --amber: #ffc95c; --cream: #efe9de; --khaki: #b3ab8e;
  --green: #2f6b5a; --green-soft: #dcefe5;
  --dark-bg: #262523; --dark-card: #302f2c; --dark-ink: #f4f1ea; --dark-muted: #b0aca2; --dark-line: #34332f;
  --a: #0f7a74; --c: #1f55f0; --g: #bb8c45; --t: #f02d16;
  --focus: #2f6fb0; --on-accent: #1b0d05; --shade: 40, 36, 28;
  --radius: 22px;
  color-scheme: light;
}
/* Light is the default; dark mode only when the visitor picks it with the moon button. */
:root[data-theme="dark"] {
  --bg: #1c1b19; --bg-soft: #242321; --raised: #262523; --border: #3a3935;
  --ink: #f4f1ea; --muted: #aaa69c; --faint: #77746d;
  --accent: #ff9468; --accent-strong: #ffab88; --accent-soft: #3d2418;
  --green: #63b597; --green-soft: #1f342c;
  --dark-bg: #2a2926; --dark-card: #33322f; --dark-line: #3f3e3a;
  --a: #3fc2b8; --c: #6f9bff; --g: #d9935f; --t: #ff6a55;
  --focus: #7fb0e0; --shade: 0, 0, 0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
h1, h2, h3, h4 { font-family: "Cal Sans", system-ui, sans-serif; font-weight: 600; letter-spacing: .005em; margin: 0; }
em { font-style: normal; color: var(--accent); }
a { color: var(--accent); }
code { font: 13px ui-monospace, Menlo, monospace; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* ---------- chrome ---------- */
.preview-flag {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 99px; opacity: .85; pointer-events: none; white-space: nowrap;
}
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 22px;
  padding: 14px clamp(16px, 4vw, 48px);
  /* Solid, slightly see-through: a backdrop blur had to be recomputed whenever anything
     moved beneath it and halved the frame rate on Intel Macs (measured). */
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 600 21px "Cal Sans", system-ui, sans-serif; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--ink); width: 40px; height: 40px;
  border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
a[aria-current="page"] { color: var(--ink) !important; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-only, .menu-toggle { display: none; }
.menu-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: none; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 15px; } .menu-toggle span:last-child { top: 22px; }
.menu-open .menu-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 19px; transform: rotate(-45deg); }
@media (max-width: 1100px) {
  .nav { gap: 12px; }
  .nav .theme-toggle { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    padding: 8px clamp(16px, 4vw, 48px) 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 30px 40px -30px rgba(var(--shade), .35); }
  .menu-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--border); }
  .menu-only { display: block; }
}
@media (max-width: 420px) { .nav-dl { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 99px;
  font: 600 16px system-ui, sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: translate .2s, background-color .2s, border-color .2s; color: var(--ink); background: var(--raised); }
.btn:hover { translate: 0 -2px; }
.btn-primary { background: var(--fill); color: var(--on-fill); }
.btn-primary:hover { background: var(--fill-2); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-small { padding: 9px 18px; font-size: 14px; background: var(--ink); color: var(--bg); }
.btn-small.btn-primary { background: var(--fill); color: var(--on-fill); }
.link-btn { background: none; border: 0; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
.sub, .lede { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 620px; }
.fine { color: var(--faint); font-size: 14px; margin-top: 14px; }
.art-caption { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--faint);
  font-size: 13px; margin: 10px 0 0; }
.art-caption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.art-caption.on-dark { color: var(--dark-muted); }
.center-cap { margin-top: 28px; }

.band { padding: clamp(90px, 13vw, 170px) clamp(16px, 5vw, 64px); position: relative; overflow-x: clip; }
main { overflow-x: clip; }
.band-soft { background: var(--bg-soft); }
.band-dark { background: var(--dark-bg); color: var(--dark-ink); }
.band-dark .sub { color: var(--dark-muted); }
.band-dark em { color: var(--fill); }
.section-head { max-width: 1180px; margin: 0 auto 60px; }
.section-head.center { text-align: center; }
.section-head.center .sub { margin-inline: auto; }
.section-head h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; margin-bottom: 22px; }
.split-head .line { overflow: hidden; padding-bottom: .06em; }

/* ---------- 1 hero ---------- */
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  gap: clamp(24px, 4vw, 70px); padding: 120px clamp(16px, 5vw, 64px) 60px; max-width: 1440px; margin: 0 auto; }
.hero-title { font-size: clamp(46px, 7.4vw, 108px); line-height: .98; margin-bottom: 28px; }
.hero-title em { display: block; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-art { margin: 0; }
#hero-svg { width: 100%; height: auto; display: block; overflow: visible; }
#hero-letters text { fill: var(--faint); transition: fill .6s; }
#hero-letters.colored .bA { fill: var(--a); } #hero-letters.colored .bC { fill: var(--c); }
#hero-letters.colored .bG { fill: var(--g); } #hero-letters.colored .bT { fill: var(--t); }
#hero-letters .gap { fill: var(--border); }
#hero-tree path { stroke: var(--ink); stroke-width: 2.5; }
#hero-tips circle { fill: var(--accent); }
#hero-labels text { fill: var(--muted); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 110px; }
  .hero-art { order: -1; max-width: 560px; }
}

/* ---------- 2 one window ---------- */
.flip-stage { max-width: 1180px; margin: 0 auto; position: relative; min-height: 540px; display: grid; align-items: center; }
.app-window { display: none; }
.flip-stage.is-docked .scatter { display: none; }
.flip-stage.is-docked .app-window { display: block; }
.scatter { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.task { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-radius: 14px; background: var(--raised);
  border: 1px solid var(--border); box-shadow: 0 10px 30px -18px rgba(var(--shade), .45); font-weight: 600; font-size: 16px; white-space: nowrap; }
.t-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 16px; }
.app-window { margin: 0 auto; width: 100%; max-width: 980px; border-radius: 16px; background: var(--raised);
  border: 1px solid var(--border); box-shadow: 0 40px 80px -40px rgba(var(--shade), .5); }
.cw-bar { border-radius: 16px 16px 0 0; display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.cw-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.cw-bar i:first-child { background: #ff5f57; } .cw-bar i:nth-child(2) { background: #febc2e; } .cw-bar i:nth-child(3) { background: #28c840; }
.cw-bar span { margin-left: 12px; }
.cw-body { display: grid; grid-template-columns: 250px 1fr; min-height: 420px; }
.cw-side { padding: 14px 10px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.cw-side .task { padding: 7px 10px; border-radius: 8px; box-shadow: none; border-color: transparent; background: transparent; font-size: 14px; font-weight: 500; }
.cw-side .task .t-ico { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
.cw-main { padding: 22px; display: grid; }
.cw-placeholder { border: 2px dashed var(--border); border-radius: 12px; display: grid; place-content: center; text-align: center; gap: 4px; color: var(--faint); font-size: 14px; }
.cw-placeholder strong { color: var(--accent); font-size: 15px; }
.flip-note { text-align: center; margin-top: 24px; }
@media (max-width: 700px) {
  .task { padding: 12px 14px; font-size: 14px; }
  .cw-body { grid-template-columns: 1fr; }
  .cw-side { border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; }
  .cw-main { min-height: 220px; }
}

/* ---------- 3 journey ---------- */
.journey { background: var(--bg); }
.journey-pin { height: 100vh; height: 100svh; display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(20px, 4vw, 60px); padding: 80px clamp(16px, 5vw, 64px) 40px; max-width: 1440px; margin: 0 auto; }
.journey-rail { position: relative; height: 62vh; display: flex; }
.rail-track { width: 3px; border-radius: 3px; background: var(--border); position: relative; margin: 10px 0; }
.rail-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(1); border-radius: 3px; }
.rail-steps { list-style: none; margin: 0 0 0 -9px; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.rail-steps li { position: relative; padding-left: 26px; font-size: 14px; font-weight: 600; color: var(--faint); transition: color .3s; }
.rail-steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--border); transition: border-color .3s, background-color .3s; }
.rail-steps li.on { color: var(--ink); }
.rail-steps li.on::before { border-color: var(--accent); background: var(--accent); }
.journey-text { position: relative; }
.steps { position: relative; min-height: 290px; }
.step { position: absolute; inset: 0 0 auto 0; }
.step + .step { visibility: hidden; }
.step-n { font: 600 15px "Cal Sans", sans-serif; color: var(--accent); }
.step h3 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; margin: 6px 0 18px; }
.step p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); margin: 0; }
.journey-stage { background: var(--bg-soft); border-radius: 28px; padding: 18px; }
#stage-svg { width: 100%; height: auto; display: block; max-height: 70vh; }
.scene + .scene { opacity: 0; }
#sc-import .file rect { fill: var(--raised); stroke: var(--border); stroke-width: 2; }
#sc-import .file text { fill: var(--ink); text-anchor: middle; font: 600 22px ui-monospace, Menlo, monospace; }
#sc-import .file text.small { font: 13px system-ui, sans-serif; fill: var(--muted); }
#sc-import .trace { fill: none; stroke-width: 3; }
#sc-import .trace.a { stroke: var(--a); } #sc-import .trace.c { stroke: var(--c); }
#sc-tree path, #fig-tree path { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
#sc-tree text, #fig-tree text, #sc-delimit text { fill: var(--ink); font: italic 14px system-ui, sans-serif; }
#sc-tree text.support, #fig-tree text.support { font: 600 11px system-ui, sans-serif; fill: var(--green); font-style: normal; }
#sc-figure .paper { fill: var(--raised); stroke: var(--border); }
#sc-figure .fig-export rect { fill: var(--accent); }
#sc-figure .fig-export text { fill: #fff; text-anchor: middle; font: 600 13px system-ui, sans-serif; }
.methods-card { background: var(--raised); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px;
  font: 19px/1.6 Georgia, "Times New Roman", serif; color: var(--ink); }
.methods-card p { margin: 14px 0 0; }
.methods-tag { font: 600 12px system-ui, sans-serif; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 99px; }
@media (max-width: 900px) {
  .journey-pin { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; gap: 14px; padding-top: 74px; }
  .journey-rail { height: auto; order: -1; }
  .rail-track { display: none; }
  .rail-steps { flex-direction: row; margin: 0; gap: 4px; flex-wrap: wrap; }
  .rail-steps li { padding: 4px 10px; border-radius: 99px; background: var(--bg-soft); font-size: 12px; }
  .rail-steps li::before { display: none; }
  .rail-steps li.on { background: var(--fill); color: var(--on-fill); }
  .journey-stage { order: 1; padding: 8px; border-radius: 18px; }
  #stage-svg { max-height: 42vh; margin: 0 auto; }
  .steps { min-height: 180px; }
  .journey-text .eyebrow { display: none; }
  .step h3 { margin: 2px 0 8px; }
}

/* ---------- 4 eDNA ---------- */
.edna-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.edna-grid .section-head { margin: 0; }
.edna-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.edna-steps li { display: flex; gap: 14px; align-items: baseline; color: var(--dark-muted); padding-bottom: 14px; border-bottom: 1px solid var(--dark-line); font-size: 16px; }
.edna-steps b { color: var(--dark-ink); min-width: 60px; font-family: "Cal Sans", sans-serif; font-weight: 600; font-size: 19px; }
#edna-svg { width: 100%; height: auto; display: block; }
#edna-drop { fill: #7c9fe0; }
.edna-read { stroke-width: 3; stroke-linecap: round; }
.coast { fill: #2a2925; stroke: #4a463e; stroke-width: 1.5; }
.site circle.ring { fill: none; stroke-width: 2; }
.site text { fill: var(--dark-ink); font: 600 11px system-ui, sans-serif; }
.wheel-label { fill: var(--dark-ink); font: 600 12px system-ui, sans-serif; }
.edna-story { padding-block: clamp(96px, 10vw, 120px) clamp(60px, 7vw, 90px); }
@media (max-width: 900px) { .edna-grid { grid-template-columns: 1fr; } .edna-art { max-width: 480px; margin: 0 auto; } }

/* ---------- 5 genie ---------- */
.genie-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.genie-grid .section-head { margin: 0; }
.local-badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 12px 18px; border-radius: 14px;
  background: var(--green-soft); color: var(--green); font-size: 16px; }
.local-badge svg { fill: none; stroke: currentColor; stroke-width: 2; }
.local-badge b { color: var(--green); }
.chat { background: var(--raised); border: 1px solid var(--border); border-radius: 24px; padding: 20px; box-shadow: 0 40px 80px -50px rgba(var(--shade), .5);
  display: flex; flex-direction: column; gap: 14px; }
.chat-head { display: flex; align-items: center; gap: 10px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.chat-head small { margin-left: auto; color: var(--faint); font-weight: 500; font-size: 12px; }
.genie-dot { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--accent), var(--green), var(--accent)); }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.msg p { margin: 0; }
.msg.you { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.msg.genie { align-self: flex-start; background: var(--bg-soft); border-bottom-left-radius: 6px; }
.suggest { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.run-btn { position: relative; }
.run-btn::after { content: ""; position: absolute; inset: -5px; border-radius: 99px; border: 2px solid var(--accent); opacity: 0; }
.run-btn.pulse::after { animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .run-btn.pulse::after { animation: none; } }
@media (max-width: 900px) { .genie-grid { grid-template-columns: 1fr; } }

/* ---------- 6 figures ---------- */
.fig-wrap { max-width: 860px; margin: 0 auto; }
.fig-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; background: var(--raised); border: 1px solid var(--border);
  width: max-content; max-width: 100%; margin-inline: auto; padding: 5px; border-radius: 99px; }
.fig-tabs button { border: 0; background: none; font: 600 15px system-ui, sans-serif; color: var(--muted); padding: 9px 18px; border-radius: 99px; cursor: pointer; }
.fig-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.fig-card { background: var(--raised); border: 1px solid var(--border); border-radius: 24px; padding: 24px; position: relative; overflow: hidden; }
#chart-svg { width: 100%; height: auto; display: block; }
#chart-grid line { stroke: var(--border); }
#chart-labels text { fill: var(--muted); font: 13px system-ui, sans-serif; text-anchor: middle; }
#chart-labels text.val { fill: var(--ink); font-weight: 700; }
.fig-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: var(--faint); font-size: 14px; }
.export-toast { position: absolute; left: 50%; top: 20px; transform: translate(-50%, -200%); background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 99px; font-size: 14px; white-space: nowrap; }
.export-toast .tick { color: var(--green); font-weight: 700; margin-right: 4px; }
.export-toast small { opacity: .6; }

/* ---------- 7 provenance ---------- */
.chain { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.chain-line { position: absolute; left: 10%; right: 10%; top: 27px; height: 3px; background: var(--border); border-radius: 3px; }
.chain-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--green), var(--accent)); transform-origin: left; border-radius: 3px; }
.link { position: relative; text-align: center; }
.node { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--raised);
  border: 3px solid var(--green); font: 600 20px "Cal Sans", sans-serif; position: relative; z-index: 1; }
.link:last-child .node { border-color: var(--accent); }
.link h4 { font-size: 22px; margin-bottom: 8px; }
.link p { color: var(--muted); font-size: 15px; margin: 0; }
.link code { color: var(--green); }
@media (max-width: 820px) {
  .chain { grid-template-columns: 1fr; gap: 26px; max-width: 420px; }
  .chain-line { left: 27px; right: auto; top: 20px; bottom: 20px; width: 3px; height: auto; }
  .chain-fill { transform-origin: top; background: linear-gradient(180deg, var(--green), var(--accent)); }
  .link { text-align: left; padding-left: 80px; min-height: 56px; }
  .node { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- 8 engines ---------- */
.engine-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.engine { padding: 16px 18px; border-radius: 14px; background: var(--dark-card); border: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 4px; }
.engine b { font-family: "Cal Sans", sans-serif; font-weight: 600; font-size: 18px; color: var(--dark-ink); }
.engine span { font-size: 12.5px; color: var(--dark-muted); line-height: 1.4; }
.engine .ver { color: var(--fill); font: 600 12px ui-monospace, Menlo, monospace; }
.engine.core { grid-column: span 2; background: linear-gradient(135deg, var(--fill-2), var(--fill)); border: 0; justify-content: center; }
.engine.core b { font-size: 26px; color: var(--on-fill); } .engine.core span { color: var(--on-fill); opacity: .8; }
@media (max-width: 340px) { .engine.core { grid-column: auto; } }
.credits { max-width: 1180px; margin: 30px auto 0; color: var(--dark-muted); font-size: 14px; }

/* ---------- 9 suite ---------- */
.suite { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app-card { padding: 28px 24px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--border); }
.app-card h4 { font-size: 26px; margin: 18px 0 8px; }
.app-card p { color: var(--muted); font-size: 15px; margin: 0; }
.app-card.now { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.app-card.now p { color: #d9d3c6; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--fill); color: var(--on-fill); }
.pill.soon { background: var(--bg-soft); color: var(--muted); }
/* Upcoming apps are shown at full strength; the "Coming" label says they are not out yet. */
@media (max-width: 900px) { .suite { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .suite { grid-template-columns: 1fr; } }

/* ---------- 10 download + faq ---------- */
.dl { max-width: 760px; margin: 0 auto; text-align: center; }
.dl-icon { margin-bottom: 18px; }
.dl h2 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; margin-bottom: 18px; }
.dl .sub { margin: 0 auto 30px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.choice { display: block; padding: 20px 22px; border-radius: 14px; text-decoration: none; background: var(--raised); border: 1px solid var(--border); color: var(--ink);
  transition: translate .2s, border-color .2s; }
.choice:hover { translate: 0 -3px; border-color: var(--accent); }
.choice strong { display: block; font-size: 19px; }
.choice span { color: var(--muted); font-size: 15px; }
.choice.primary { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.choice.primary span { color: inherit; opacity: .85; }
.which { background: var(--raised); border-radius: 12px; padding: 14px 18px; font-size: 15px; margin-top: 18px; text-align: left; border: 1px solid var(--border); }
.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; text-align: left; margin-top: 26px; font-size: 16px; }
.note p { margin: 0 0 6px; } .note ol { padding-left: 1.3em; } .note li { margin: 6px 0; }
.ui { font-weight: 600; }
.faq { max-width: 760px; margin: 90px auto 0; }
.faq h3 { font-size: 34px; margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0 0 20px; color: var(--muted); }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }

.foot { padding: 50px clamp(16px, 5vw, 64px) 70px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.foot-small { max-width: 1180px; margin: 14px auto 0; font-size: 12px; color: var(--faint); }


/* ---------- multipage additions ---------- */
#page { min-height: 100vh; }
.page-hero { min-height: 82vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: 130px clamp(16px, 5vw, 64px) 70px; max-width: 1440px; margin: 0 auto; }
.page-title { font-size: clamp(42px, 6.2vw, 92px); line-height: 1; margin-bottom: 26px; }
.page-title em { display: block; }
@media (max-width: 900px) { .page-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 110px; } }

/* loops: small looping illustrations */
.loop { background: var(--bg-soft); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); }
.loop svg { width: 100%; aspect-ratio: 3 / 2; height: auto; display: block; }
.loop-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--raised) 70%, transparent); }
.loop-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.loop-bar span { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.loop-hero { background: var(--raised); border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 40px 80px -50px rgba(var(--shade), .45); }
.band-soft .loop { background: var(--raised); }

/* capability grid */
.caps { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cap { display: block; text-decoration: none; color: var(--ink); background: var(--raised); border: 1px solid var(--border); border-radius: 22px; padding: 14px 14px 22px;
  transition: translate .25s, border-color .25s, box-shadow .25s; }
.cap:hover { translate: 0 -4px; border-color: var(--accent); box-shadow: 0 30px 50px -36px rgba(var(--shade), .5); }
.cap .loop { background: var(--bg-soft); margin-bottom: 16px; }
.cap h3 { font-size: 22px; margin: 0 8px 6px; }
.cap p { color: var(--muted); font-size: 15px; margin: 0 8px; line-height: 1.5; }

/* area pages: chapter rail + rows */
.area { max-width: 1320px; margin: 0 auto; padding: 40px clamp(16px, 5vw, 64px) 60px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); }
.chapters { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 2px; padding-left: 20px; }
.chapters-track { position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--border); }
.chapters-fill { position: absolute; inset: 0; background: var(--accent); border-radius: 3px; transform-origin: top; }
.chapters a { font-size: 14px; color: var(--faint); text-decoration: none; padding: 5px 0; transition: color .25s; }
.chapters a.done { color: var(--muted); }
.chapters a.on { color: var(--ink); font-weight: 700; }
.rows { display: flex; flex-direction: column; gap: clamp(70px, 10vw, 130px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); align-items: center; scroll-margin-top: 90px; }
.row.alt .row-text { order: 2; }
.row-n { font: 600 15px "Cal Sans", sans-serif; color: var(--accent); margin: 0 0 6px; }
.row h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin-bottom: 16px; }
.row p { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--border); }
@media (max-width: 900px) {
  .area { grid-template-columns: 1fr; padding-top: 0; }
  .chapters { position: sticky; top: 64px; z-index: 5; flex-direction: row; overflow-x: auto; gap: 6px; padding: 10px 0; margin: 0 -16px; padding-inline: 16px;
    background: var(--bg); scrollbar-width: none; }
  .chapters-track { display: none; }
  .chapters a { white-space: nowrap; padding: 6px 12px; border-radius: 99px; background: var(--bg-soft); font-size: 13px; }
  .chapters a.on { background: var(--fill); color: var(--on-fill); }
  .row { grid-template-columns: 1fr; }
  .row.alt .row-text { order: 0; }
}

/* screen-recording slots */
.video-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-grid.one { grid-template-columns: minmax(0, 760px); justify-content: center; }
.video-slot { margin: 0; }
.video-frame { aspect-ratio: 16 / 10; border-radius: 18px; border: 2px dashed var(--border); background: var(--raised); display: grid; place-content: center;
  text-align: center; gap: 6px; padding: 24px; overflow: hidden; }
.video-frame > span { color: var(--accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.video-frame > b { color: var(--muted); font-weight: 500; font-size: 16px; max-width: 360px; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-slot[data-src] .video-frame { border: 0; padding: 0; }
.video-slot figcaption { color: var(--faint); font-size: 13px; margin-top: 10px; text-align: center; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* next-page cards, teasers, CTA */
.teasers { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.next-card { display: block; text-decoration: none; color: var(--ink); background: var(--raised); border: 1px solid var(--border); border-radius: 26px; padding: 22px 26px 30px;
  transition: translate .25s, border-color .25s; }
.next-card:hover { translate: 0 -4px; border-color: var(--accent); }
.next-card .loop { margin-bottom: 22px; }
.next-card h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; margin-bottom: 12px; }
.next-card p { color: var(--muted); margin: 0; }
.next-card .more { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 700; }
.next { padding-block: 40px 110px; }
.next-card.wide { max-width: 1180px; margin: 0 auto; padding: 36px 40px; }
.next-card.wide h3 { font-size: clamp(32px, 4vw, 56px); }
@media (max-width: 760px) { .teasers { grid-template-columns: 1fr; } }
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(38px, 5.6vw, 72px); margin: 18px 0 14px; }
.cta-band .sub { margin: 0 auto 30px; }

/* Ask Genie + about */
.page-hero .chat { align-self: center; }
.principles { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principles.four { grid-template-columns: repeat(4, 1fr); }
.principles.two { grid-template-columns: repeat(2, 1fr); }
.principle { background: var(--raised); border: 1px solid var(--border); border-radius: 22px; padding: 16px 18px 26px; }
.principle .loop { margin-bottom: 18px; background: var(--bg-soft); }
.principle h3 { font-size: 23px; margin: 4px 4px 8px; }
.principle p { color: var(--muted); font-size: 15.5px; margin: 0 4px; }
@media (max-width: 1000px) { .principles, .principles.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .principles, .principles.four { grid-template-columns: 1fr; } }
.facts { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.facts .section-head { margin: 0; }
.fact-list { margin: 0; display: grid; gap: 0; }
.fact-list div { padding: 18px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.fact-list dt { font-weight: 700; } .fact-list dd { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact-list div { grid-template-columns: 1fr; gap: 4px; } }

/* download page */
.dl-page { padding-top: 130px; }
.dl-h { font-size: 30px; margin: 46px 0 14px; text-align: left; }
.dl-steps { text-align: left; padding-left: 1.3em; }

/* footer */
.foot-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 30px; }
.foot-grid h5 { margin: 0 0 12px; font: 700 12px system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.foot-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 15px; }
.foot-grid a:not(.brand):hover { color: var(--ink); }
.foot-brand p { margin: 10px 0 0; }
.foot-legal { max-width: 1180px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.edna-story .page-title { font-size: clamp(38px, 4.4vw, 66px); margin-bottom: 18px; }
.edna-story .page-title em { display: inline; }
.edna-story .edna-steps { margin-top: 22px; }

/* ---------- borrowed techniques (see notes) ---------- */
.chain-line { overflow: visible; }
.packet { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); opacity: 0; z-index: 2; }
@media (max-width: 820px) { .packet { left: 50%; top: 0; margin: -4.5px 0 0 -4.5px; } }

.zoom-line { height: 100vh; height: 100svh; display: grid; place-items: center; text-align: center; padding: 0 16px; overflow: hidden; }
.zoom-line h2 { font-size: clamp(40px, 7vw, 110px); line-height: 1.02; max-width: 1100px; }
.zoom-line .zw { display: inline-block; }

.marquee { padding: 70px 0 80px; overflow: hidden; border-top: 1px solid var(--border); }
.center-eyebrow { text-align: center; }
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee-track span { font: 600 clamp(34px, 5vw, 72px) "Cal Sans", system-ui, sans-serif; padding: 0 .45em; white-space: nowrap; color: var(--ink); }
.marquee-track span:nth-child(3n+2) { color: var(--accent); }
.marquee-track span::after { content: "·"; margin-left: .45em; color: var(--border); }
.marquee-more { text-align: center; margin-top: 18px; font-size: 15px; }

.ask { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.ask-chips { display: flex; flex-direction: column; gap: 10px; }
.ask-chip { text-align: left; font: 600 16px system-ui, sans-serif; color: var(--ink); background: var(--raised); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background-color .2s, translate .2s; }
.ask-chip:hover { border-color: var(--accent); translate: 4px 0; }
.ask-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ask-window { background: var(--raised); border: 1px solid var(--border); border-radius: 22px; padding: 18px; min-height: 240px; box-shadow: 0 40px 80px -50px rgba(var(--shade), .5); }
.ask-answer { margin-top: 14px; max-width: 100%; }
.ask-answer p { margin: 0; }
@media (max-width: 760px) { .ask { grid-template-columns: 1fr; } }

/* ---------- fun effects (ideas from the waleananus site) ---------- */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (min-width: 1101px) { .nav-links { position: relative; } }
.nav-marker { position: absolute; left: 0; bottom: -8px; height: 2px; width: 0; border-radius: 2px; background: var(--accent); opacity: 0; pointer-events: none; }
.nav-links a[aria-current="page"] { text-decoration: none; }
@media (max-width: 1100px) { .nav-marker { display: none; } .nav-links a[aria-current="page"] { color: var(--accent) !important; } }

.hero { position: relative; isolation: isolate; }
.dna-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.dna-snow i { position: absolute; font: 700 16px ui-monospace, Menlo, monospace; font-style: normal; }
.dna-snow .bA { color: var(--a); } .dna-snow .bC { color: var(--c); } .dna-snow .bG { color: var(--g); } .dna-snow .bT { color: var(--t); }

.spot-grid { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(22, 1fr); gap: 4px; }
.spot-cell { aspect-ratio: 1; border: 0; border-radius: 6px; font: 700 clamp(9px, 1.4vw, 15px) ui-monospace, Menlo, monospace; color: #fff; cursor: pointer; padding: 0;
  transition: outline-color .2s; outline: 3px solid transparent; outline-offset: 1px; position: relative; }
.spot-cell.bA { background: var(--a); } .spot-cell.bC { background: var(--c); } .spot-cell.bG { background: var(--g); } .spot-cell.bT { background: var(--t); }
.spot-cell:hover { outline-color: var(--ink); }
.spot-cell.guess { outline-color: var(--faint); }
.spot-cell.hit { outline-color: var(--ink); z-index: 2; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 30%, transparent); }
.spot-foot { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.spot-msg { margin: 0; font-weight: 600; min-height: 1.6em; }
@media (max-width: 600px) { .spot-grid { gap: 2px; } .spot-cell { border-radius: 3px; } }

.hgallery { padding: 110px 0 60px; overflow: hidden; }
.hg-head { max-width: 1180px; margin: 0 auto 40px; padding: 0 clamp(16px, 5vw, 64px); }
.hg-head h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; margin-bottom: 22px; }
.hg-progress { height: 3px; background: var(--border); border-radius: 3px; max-width: 320px; overflow: hidden; }
.hg-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hg-viewport { overflow-x: auto; scrollbar-width: none; padding: 10px clamp(16px, 5vw, 64px) 20px; scroll-snap-type: x mandatory; }
.hgallery.is-pinned .hg-viewport { overflow: visible; scroll-snap-type: none; }
.hg-track { display: flex; gap: 22px; width: max-content; }
.hg-card { margin: 0; width: clamp(260px, 34vw, 460px); scroll-snap-align: start; }
.hg-card .loop { background: var(--raised); box-shadow: 0 30px 60px -40px rgba(var(--shade), .45); }
.hg-card figcaption { font: 600 18px "Cal Sans", system-ui, sans-serif; margin-top: 14px; }
.hgallery .art-caption { margin-top: 20px; }

.stats { max-width: 1180px; margin: 0 auto 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 22px 24px; border-radius: 18px; background: var(--dark-card); border: 1px solid var(--dark-line); }
.stat b { display: block; font: 600 clamp(48px, 6vw, 84px)/1 "Cal Sans", system-ui, sans-serif; color: var(--fill); }
.stat span { color: var(--dark-muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

.bounce-head { font-size: clamp(38px, 5.6vw, 72px); margin: 18px 0 14px; }
.foot { overflow: hidden; }
.foot-big { max-width: 1180px; margin: 36px auto 0; font: 600 clamp(80px, 19vw, 260px)/.85 "Cal Sans", system-ui, sans-serif; letter-spacing: -.02em;
  color: color-mix(in srgb, var(--ink) 7%, transparent); text-align: center; user-select: none; }

/* ---------- the Genie logo, alive ---------- */
.genie-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.genie-logo { display: block; line-height: 0; }
.genie-logo svg, .genie-logo img { height: 100%; width: auto; display: block; overflow: visible; }
.genie-logo[role="button"] { cursor: pointer; border-radius: 12px; }
.nav-genie .genie-logo { height: 36px; }
.hero-genie { margin-bottom: 14px; }
.hero-genie .genie-logo { height: clamp(110px, 14vw, 170px); }
.page-genie { margin-bottom: 12px; }
.page-genie .genie-logo { height: clamp(120px, 15vw, 190px); }
.cta-genie .genie-logo, .dl-genie .genie-logo { height: 150px; }
.dl-genie { margin-bottom: 10px; }
.genie-wish { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 10px; white-space: nowrap; pointer-events: none;
  font: 600 14px system-ui, sans-serif; background: var(--ink); color: var(--bg); padding: 7px 14px; border-radius: 99px; opacity: 0; z-index: 3; }
.genie-wish:empty { display: none; }
.hero-genie .genie-wish, .page-genie .genie-wish { left: 100%; top: 38%; transform: none; margin: 0 0 0 16px; }
.genie-spark { position: absolute; font: 700 14px ui-monospace, Menlo, monospace; font-style: normal; pointer-events: none; z-index: 4; margin: -8px 0 0 -5px; }
.genie-spark.bA { color: var(--a); } .genie-spark.bC { color: var(--c); } .genie-spark.bG { color: var(--g); } .genie-spark.bT { color: var(--t); }
.foot-big-row { max-width: 1180px; margin: 36px auto 0; display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 24px); }
.foot-big-row .foot-big { margin: 0; }
.foot-genie .genie-logo { height: clamp(90px, 15vw, 210px); }
.foot-genie .genie-wish { top: auto; bottom: 100%; margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .genie-wish { opacity: 1; } }
@media (max-width: 700px) { .hero-genie .genie-wish, .page-genie .genie-wish { left: 0; top: 100%; margin: 8px 0 0; white-space: normal; width: max-content; max-width: 78vw; } }

/* ---------- Home hero: a centred stage for the genie ---------- */
.hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 0;
  min-height: 100vh; min-height: 100svh; padding-top: 96px; padding-bottom: 70px; max-width: none; }
.hero-stage { display: flex; justify-content: center; }
.hero-genie { margin: 0 0 6px; }
.hero-genie .genie-logo { height: clamp(220px, 34vh, 360px); }
.genie-glow { position: absolute; left: 50%; top: 52%; width: 150%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 201, 92, .5) 0%, rgba(255, 122, 69, .22) 38%, rgba(255, 122, 69, 0) 68%); opacity: .8; }
.hero-copy { max-width: 1040px; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(44px, 6.4vw, 100px); margin-bottom: 22px; }
.hero .lede { margin-inline: auto; }
.hero .cta-row { justify-content: center; margin-top: 28px; }
@media (max-width: 900px) { .hero { padding-top: 90px; } .hero-genie .genie-logo { height: clamp(180px, 30vh, 260px); } }
.hero-copy { max-width: 1280px; }
.hero-title { font-size: clamp(42px, 5.4vw, 92px); }
.hero-genie .genie-logo { height: clamp(200px, 30vh, 320px); }
.genie-spark.stream { font-size: 20px; text-shadow: 0 0 10px currentColor; }

/* ---------- genie as GPU layers (smooth entrance) ---------- */
.genie-logo { aspect-ratio: 1536 / 2184; }
.g-stack { position: relative; display: block; height: 100%; width: 100%; will-change: transform; }
.g-stack > svg, .g-reveal, .g-reveal-in { position: absolute; inset: 0; display: block; }
.genie-logo .g-stack svg { width: 100%; height: 100%; overflow: visible; will-change: transform; }
.g-reveal { overflow: hidden; will-change: transform; }
.g-reveal-in { will-change: transform; }
.genie-glow { will-change: transform, opacity; }
.genie-spark { will-change: transform, opacity; }
.genie-spark.stream { text-shadow: none; font-size: 22px; }

/* skip link + anchor offsets under the fixed nav */
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
[id] { scroll-margin-top: 84px; }

/* ---------- Home hero banner: drifting DNA ribbons + aurora ---------- */
/* No mask or blur here: both force the moving layers to be re-composited every frame.
   A static gradient on top fades the bottom edge instead. */
.hero-banner { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hero-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, var(--bg)); }
.aurora { position: absolute; width: 46vw; aspect-ratio: 1; border-radius: 50%; will-change: transform; opacity: .55; }
.aurora.a1 { left: -8vw; top: -12vw; background: radial-gradient(circle, rgba(255, 155, 84, .55), rgba(255, 155, 84, 0) 65%); }
.aurora.a2 { right: -10vw; top: 6vw; background: radial-gradient(circle, rgba(255, 201, 92, .5), rgba(255, 201, 92, 0) 65%); }
.aurora.a3 { left: 30vw; bottom: -18vw; background: radial-gradient(circle, rgba(179, 171, 142, .45), rgba(179, 171, 142, 0) 65%); }
.ribbon-layer { position: absolute; left: 0; width: 100%; will-change: transform; }
.ribbon-layer svg { display: block; width: 200%; height: 100%; will-change: transform; }
.ribbon-layer.far { top: 4%; height: 46%; opacity: .12; rotate: -6deg; scale: 1.15; }
.ribbon-layer.mid { top: 40%; height: 34%; opacity: .22; rotate: 4deg; }
.ribbon-layer.near { top: 68%; height: 26%; opacity: .3; rotate: -3deg; }
:root[data-theme="dark"] .ribbon-layer.far { opacity: .22; } :root[data-theme="dark"] .ribbon-layer.mid { opacity: .3; } :root[data-theme="dark"] .ribbon-layer.near { opacity: .38; }
:root[data-theme="dark"] .aurora { opacity: .3; }
.cap, .next-card, .principle { transform-style: preserve-3d; }

/* ---------- toolbox lists ---------- */
.toolbox { max-width: 1180px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.toolbox li { background: var(--raised); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.toolbox b { display: block; color: var(--ink); font: 600 17px "Cal Sans", system-ui, sans-serif; margin-bottom: 4px; }

/* ---------- phones and small screens ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.nav { padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left)); padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right)); }
.theme-toggle, .menu-toggle { width: 44px; height: 44px; }
.chapters a { min-height: 36px; display: inline-flex; align-items: center; }
@media (max-width: 700px) {
  .preview-flag { left: auto; right: 10px; transform: none; bottom: max(10px, env(safe-area-inset-bottom)); font-size: 10px; padding: 5px 10px; }
  .hero { padding-top: 84px; padding-bottom: 48px; }
  .hero-genie .genie-logo { height: clamp(160px, 24vh, 220px); }
  .hero .lede { font-size: 16px; }
  .ribbon-layer.near { display: none; }
  .ribbon-layer.far { opacity: .1; }
  .ribbon-layer.mid { opacity: .12; top: 22%; }
  .aurora { width: 80vw; }
  .band { padding-left: 16px; padding-right: 16px; }
  .section-head h2, .hg-head h2, .dl h2 { font-size: clamp(32px, 9vw, 44px); }
  .page-title { font-size: clamp(36px, 10vw, 48px); }
  .row h2 { font-size: 28px; }
  .cta-row .btn { min-height: 48px; }
  .fig-tabs button, .ask-chip, .faq summary { min-height: 44px; }
  .spot-cell { font-size: 13px; border-radius: 5px; }
  .foot-big { font-size: 28vw; }
  .zoom-line h2 { font-size: clamp(34px, 11vw, 56px); }
  .engine.core { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .nav-dl { display: none; } }
/* Each drifting letter on its own GPU layer: moving them without this repainted the
   whole hero every frame (measured: median frame 30 ms → see README performance notes). */
.dna-snow i { will-change: transform; backface-visibility: hidden; }
.hero-banner canvas { position: absolute; inset: 0; display: block; }

/* ---------- Home: the hero step path ---------- */
.hero-path { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; position: relative; }
.hero-path::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px); z-index: -1; }
.hero-path button { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 18px; border-radius: 99px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--raised) 85%, transparent);
  font: 600 clamp(15px, 1.25vw, 18px) "Cal Sans", system-ui, sans-serif; color: var(--ink); cursor: pointer;
  transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s; }
.hero-path button:hover { border-color: var(--fill); }
.hero-path button i { width: 9px; height: 9px; border-radius: 50%; }
.hero-path i.bA { background: var(--a); } .hero-path i.bC { background: var(--c); } .hero-path i.bG { background: var(--g); } .hero-path i.bT { background: var(--t); }
.hero-path button.on { background: var(--fill); border-color: var(--fill); color: var(--on-fill); box-shadow: 0 10px 26px -12px rgba(255, 122, 69, .9); }
.hero-path button.on i { background: var(--on-fill); }
.path-spark { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: #fff; box-shadow: 0 0 0 4px rgba(255, 201, 92, .55), 0 0 24px 6px rgba(255, 122, 69, .6); z-index: 2; will-change: transform; }
.hero-sub { margin: 14px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .02em; }
@media (max-width: 700px) { .hero-path { gap: 8px; } .hero-path button { padding: 8px 13px; min-height: 42px; font-size: 14px; } .hero-path::before { display: none; } }

/* ---------- Home: analyses gallery + live window ---------- */
.caps-gallery { padding-top: 90px; }
.caps-gallery .hg-card { width: clamp(270px, 25vw, 340px); }
.caps-gallery .hg-card h3 { font-size: 21px; }
.cw-live { display: grid; place-items: center; gap: 8px; color: var(--faint); font-size: 13px; }
.cw-live .loop { width: min(100%, 520px); border: 0; background: var(--bg-soft); }

/* ---------- "Watch it work" demos ---------- */
.video-frame.has-demo { border: 0; padding: 0; display: block; background: none; }
.demo { height: 100%; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(var(--shade), .5); position: relative; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.demo-bar i:first-child { background: #ff5f57; } .demo-bar i:nth-child(2) { background: #febc2e; } .demo-bar i:nth-child(3) { background: #28c840; }
.demo-bar span { margin-left: 10px; }
.demo-body { position: relative; flex: 1; min-height: 0; }
.demo-svg, .demo-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 12px; border-top: 1px solid var(--border); min-height: 42px; }
.demo-step { font: 600 15px "Cal Sans", system-ui, sans-serif; color: var(--ink); }
.demo-tag { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.demo-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.demo-prog i { display: block; height: 100%; background: var(--fill); transform-origin: left; transform: scaleX(0); }
.demo-methods, .demo-chat { font: 14px/1.6 Georgia, "Times New Roman", serif; color: var(--ink); }
.demo-chat { font: 13.5px/1.5 system-ui, sans-serif; }
.demo-methods b { color: var(--accent); font-weight: 600; }
.demo-slider { position: absolute; right: 16px; top: 14px; opacity: 0; background: var(--raised); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px;
  font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 20px -14px rgba(var(--shade), .5); }
.demo-slider b { color: var(--ink); min-width: 1.4em; }
.demo-slider span { width: 90px; height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; }
.demo-slider span i { display: block; height: 100%; background: var(--fill); transform-origin: left; transform: scaleX(.09); }
.video-frame { aspect-ratio: 16 / 10.5; }
@media (max-width: 700px) { .demo-tag { display: none; } .demo-step { font-size: 13.5px; } }
.page-hero.solo { grid-template-columns: minmax(0, 1fr); min-height: auto; text-align: center; padding-bottom: 20px; }
.page-hero.solo .page-hero-copy { max-width: 900px; margin: 0 auto; }
.page-hero.solo .lede { margin-inline: auto; }
#provenance { padding-top: 50px; }
/* Docking animation: GPU layers, and no shadow repaints while the cards move. */
.flip-stage .task, .app-window { will-change: transform; }
.flip-stage.flipping .task { box-shadow: none; transition: none; }

/* Galleries as grids (no pinned sideways scroll). */
.hgallery { padding: 90px clamp(16px, 5vw, 64px) 70px; }
.hg-head { padding: 0; }
.hg-progress { display: none; }
.hg-viewport { overflow: visible; padding: 0; scroll-snap-type: none; max-width: 1240px; margin: 0 auto; }
.hg-track { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hg-card, .caps-gallery .hg-card { width: auto; }

/* ---------- main menu: Analyses mega-menu ---------- */
@media (min-width: 1101px) { .nav-links { align-items: center; } }
.nav-top, .nav-drop-btn { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 0; cursor: pointer; font: inherit; font-size: 15px; }
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"], .nav-drop-btn.is-current { color: var(--ink); }
.nav-drop-btn svg { transition: transform .25s; }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 16px); left: 50%; translate: -50% 0; width: min(760px, 92vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 14px; border-radius: 20px; background: var(--raised); border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(var(--shade), .45);
  visibility: hidden; opacity: 0; z-index: 60; }
.nav-panel.open { visibility: visible; opacity: 1; }
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* hover bridge */
.nav-links .nav-card { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  text-decoration: none; color: var(--ink); transition: background-color .2s, translate .2s; }
.nav-links .nav-card:hover, .nav-links .nav-card[aria-current] { background: var(--bg-soft); translate: 0 -2px; }
.nav-links .nav-card svg { grid-row: span 2; width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: var(--bg-soft); }
.nav-links .nav-card:hover svg { background: var(--raised); }
.nav-links .nav-card b { font: 600 15px "Cal Sans", system-ui, sans-serif; }
.nav-links .nav-card span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.nav-links .nav-card[aria-current] b { color: var(--accent); }
@media (max-width: 1100px) {
  .menu-open .nav-links { max-height: calc(100svh - 72px); overflow-y: auto; padding-bottom: 28px; }
  .nav-drop { width: 100%; }
  .nav-drop-btn { display: none; }
  .nav-panel { position: static; translate: none; width: auto; visibility: visible; opacity: 1; grid-template-columns: 1fr; padding: 6px 0 10px; border: 0; box-shadow: none; background: none; gap: 2px; }
  .nav-panel::before { display: none; }
  .nav-links .nav-card { padding: 10px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-links .nav-card b { font-size: 20px; }
  .nav-links > .nav-top, .nav-links > .menu-only { font: 600 20px "Cal Sans", system-ui, sans-serif; color: var(--ink); }
}
/* The docking stage has a fixed size, so its contents' changes needn't re-lay-out the
   whole page (that cost ~250 ms per dock on an Intel Mac, measured). */
.flip-stage { contain: layout style; }

/* "Next page" link: a slim line on a rule, not a big floating card. */
.next { padding-block: 0 80px; }
.next-card.wide { max-width: 1180px; margin: 0 auto; padding: 22px 0 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.next-card.wide:hover { translate: none; }
.next-card.wide .eyebrow { margin: 0; color: var(--faint); }
.next-card.wide h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 0; }
.next-card.wide h3 em { display: inline-block; transition: translate .25s; }
.next-card.wide:hover h3 em { translate: 6px 0; }
.next-card.wide p { font-size: 15px; margin: 0; flex-basis: 100%; }

/* ---------- walk-through: no pin, sticky picture, steps scroll past ---------- */
.journey-pin { height: auto; align-items: start; padding-top: 60px; padding-bottom: 60px; }
.journey-rail { position: sticky; top: 18vh; height: 62vh; }
.journey-stage { position: sticky; top: 14vh; }
#stage-svg { max-height: 72vh; }
.steps { min-height: 0; display: flex; flex-direction: column; gap: 0; }
.step, .step + .step { position: static; visibility: visible; min-height: 52vh; display: flex; flex-direction: column; justify-content: center;
  transition: color .35s; }
/* Every step stays fully readable; the one in view is marked, not the others faded. */
.step.on h3 { color: var(--accent); }
@media (max-width: 900px) {
  .journey-pin { grid-template-columns: 1fr; padding-top: 30px; }
  .journey-rail { display: none; }
  .journey-stage { order: -1; top: 70px; z-index: 2; background: var(--bg-soft); }
  #stage-svg { max-height: 34vh; }
  .step, .step + .step { min-height: 40vh; }
  .journey-text .eyebrow { position: static; }
}
@media (prefers-reduced-motion: reduce) { .step, .step h3 { transition: none; } }

/* Wider menu panel, centred under the bar, one line per title and description. */
.nav-panel { position: fixed; top: 74px; left: 50%; translate: -50% 0; width: min(1060px, 94vw); }
.nav-links .nav-card b, .nav-links .nav-card span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .nav-panel { position: static; translate: none; width: auto; } }
.nav .nav-dl { margin-left: 4px; }
@media (max-width: 1100px) { .nav .menu-toggle { margin-left: auto; } .nav .nav-dl { margin-left: auto; } .nav .nav-dl + .menu-toggle { margin-left: 0; } }
@media (max-width: 420px) { .nav .nav-dl + .menu-toggle { margin-left: auto; } }

/* Lab Space: three home teasers, FAQ sits close under its heading */
@media (min-width: 1101px) { .teasers:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 761px) and (max-width: 1100px) { .teasers > :nth-child(3) { grid-column: 1 / -1; } }
.lab-faq .faq { margin-top: 30px; }

/* Agent-ready band and eDNA field row */
.agent-rules { margin-top: 48px; }
.principle code, .fact-list code { font-size: .92em; background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; }
.field-row { max-width: 1180px; margin: 0 auto; }
.field-row h2 em { font-style: normal; color: var(--accent); }


/* ======================================================================
   House-style pass (2026-10-30, after the Taste skill's rules): the page
   decides instead of decorating.
   - Two typefaces: Cal Sans for display, the system text face for reading.
   - No labels above headings, no 01/02/03, no monospace outside code.
   - Headlines one colour; surfaces separated by a tone step, never a line,
     an outline or a shadow. Nothing meant to be read under 13px, and
     running text in the full ink.
   Interface fragments (the app window, the demos) carry data-ui and keep
   their own borders.
   ====================================================================== */
.eyebrow:not(.keep), .row-n { display: none; }
.next-card .eyebrow, .next-card.wide .eyebrow { display: none; }

h1 em, h2 em, h3 em, .page-title em, .hero-title em, .band-dark h1 em, .band-dark h2 em, .field-row h2 em { color: inherit; }
h1, h2 { letter-spacing: -.02em; text-wrap: balance; }
h3 { text-wrap: balance; }

/* Reading text: full ink, 17px or more. */
.lede, .sub, .row-text p, .cap p, .next-card p, .principle p, .ans p, .toolbox li, .fact-list dd { color: var(--ink); }
.row-text p, .cap p, .principle p, .next-card p, .toolbox li { font-size: 17px; line-height: 1.55; }
.lede, .sub { font-size: clamp(18px, 1.5vw, 21px); }

/* Small type: 13px floor, sentence case. */
.preview-flag { font-size: 13px; text-transform: none; letter-spacing: 0; }
.foot h5 { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.foot-small, .foot-legal { font-size: 13px; }
.tags li { font-size: 13px; font-family: inherit; border: 0; background: var(--bg-soft); }
.band-soft .tags li { background: var(--raised); }
.art-caption, .center-cap { font-size: 13px; }

/* Illustrations: a tone step, no outline, no fake window dots. */
.loop { border: 0; border-radius: 14px; box-shadow: none; }
.loop-bar { background: none; border: 0; padding: 12px 16px 0; }
.loop-bar i { display: none; }
.loop-bar span { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.loop-hero { border: 0; box-shadow: none; }
.hg-card .loop { box-shadow: none; }

/* Entries and teasers: no card in a card, no rules; space does the separating. */
.cap, .next-card:not(.wide), .principle { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.cap:hover, .next-card:not(.wide):hover { translate: none; box-shadow: none; }
.cap:hover h3, .next-card:hover h3 { color: var(--accent); }
.cap .loop, .principle .loop, .next-card .loop { background: var(--bg-soft); }
.band-soft .cap .loop, .band-soft .principle .loop { background: var(--raised); }
.cap h3, .cap p, .principle h3, .principle p { margin-inline: 0; }
.caps-gallery .hg-card h3 { font-size: 22px; }
.next-card.wide { background: var(--bg-soft); border: 0; border-radius: 0; padding: clamp(28px, 4vw, 48px); }
.next-card.wide:hover { translate: none; background: var(--accent-soft); }
.toolbox li { background: var(--bg-soft); border: 0; border-radius: 12px; }
.band-soft .toolbox li { background: var(--raised); }

/* Chrome without lines. */
.nav { border-bottom: 0; }
.nav-panel { border: 0; }
.btn, .btn-ghost, .btn-small { border: 0; }
.btn-ghost { background: var(--bg-soft); }
.marquee, .foot, .foot-legal { border-top: 0; }
.marquee { background: var(--bg-soft); }

/* Hero: no halo, the path as a plain chain of steps. */
.genie-glow, .aurora { display: none; }
.hero-path { gap: 4px 2px; }
.hero-path::before { display: none; }
.hero-path li { display: inline-flex; align-items: center; }
.hero-path li + li::before { content: "→"; color: var(--faint); margin: 0 6px 0 4px; }
.hero-path button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 6px 4px; min-height: 44px; box-shadow: none; }
.hero-path button i { display: none; }
.hero-path button:hover { border-bottom-color: var(--border); }
.hero-path button.on { background: none; color: var(--accent); border-bottom-color: var(--accent); box-shadow: none; }
.path-spark { box-shadow: none; background: var(--fill); width: 8px; height: 8px; margin: -4px 0 0 -4px; }

/* Rhythm: sections clearly apart, left-aligned heads. */
.band { padding-block: clamp(80px, 11vw, 160px); }
.band.next { padding-block: 24px 120px; }
.section-head.center { text-align: left; max-width: 1240px; margin-inline: auto; }
.section-head.center .sub { margin-inline: 0; }
.lede, .sub, .row-text p { text-wrap: pretty; }
/* A closed menu is not on the page at all (it was only invisible). */
@media (min-width: 1101px) { .nav-panel:not(.open) { display: none; } }
/* Last lines and outlines: tone steps instead. */
.task { border: 0; box-shadow: none; }
.menu-toggle, .theme-toggle { border: 0; background: var(--bg-soft); }
.chat, .ask-window, .suggest, .fig-tabs, .choice, .which, .ask-chip { border: 0; box-shadow: none; }
.chat-head { border-bottom: 0; }
.ask-chip { background: var(--bg-soft); }
.choice, .which, .suggest { background: var(--bg-soft); }
.faq details { border-bottom: 0; background: var(--bg-soft); border-radius: 12px; padding: 0 18px; margin-bottom: 8px; }
.fact-list div { border-bottom: 0; background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 8px; }
.edna-steps li { border-bottom: 0; }
.step-n { display: none; }
@media (max-width: 700px) {
  .hero-title { font-size: 34px; }
  .hero-title em { display: inline; }
}
.preview-flag { pointer-events: auto; }
.preview-flag a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Cite Genie (About): the citation as plain, selectable text on a calm field. */
.cite-box { max-width: 760px; margin: 0 auto; padding: clamp(20px, 3vw, 32px); border-radius: 18px; background: var(--bg-soft); }
.cite-box p { margin: 0; font-size: clamp(17px, 1.2vw, 19px); line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; user-select: all; }

/* Guides: numbered steps and a closing line of links. */
.guide-steps { max-width: 820px; }
.guide-steps li { margin-bottom: 14px; }
.guide-steps b { color: var(--ink); }
.guide-more { max-width: 820px; margin: 32px auto 0; color: var(--muted); }

/* ---------- Ten programs, one window (home): a pinned scene, scattered programs fly into Genie ---------- */
.ow { padding: 0 clamp(16px, 5vw, 64px); }
.ow-scene { position: relative; max-width: 1280px; margin: 0 auto; height: 100svh; min-height: 640px; max-height: 920px;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.ow-head h2 { font-size: clamp(44px, 5vw, 84px); line-height: 1; margin-bottom: 24px; }
.ow-head .sub { max-width: 44ch; color: var(--ink); }
.ow-stage { position: relative; height: min(76svh, 640px); display: grid; place-items: center; }
.ow-app { position: absolute; width: clamp(150px, 15vw, 196px); border-radius: 12px; background: var(--raised); overflow: hidden;
  box-shadow: 0 18px 36px -18px rgba(var(--shade), .45); transform-origin: 0 0; will-change: transform; z-index: 2; }
.ow-bar { display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; background: var(--bg-soft); font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ow-bar i { width: 6px; height: 6px; border-radius: 50%; background: #cfc7b6; flex: none; }
.ow-bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; }
.ow-app svg { display: block; width: 100%; height: auto; }
/* The scattered layout: the "before" picture. */
.ow-app:nth-of-type(1) { left: 0%; top: 2%; }   .ow-app:nth-of-type(2) { left: 34%; top: 0%; }  .ow-app:nth-of-type(3) { left: 66%; top: 5%; }
.ow-app:nth-of-type(4) { left: 6%; top: 32%; }  .ow-app:nth-of-type(5) { left: 40%; top: 28%; } .ow-app:nth-of-type(6) { left: 70%; top: 34%; }
.ow-app:nth-of-type(7) { left: 0%; top: 64%; }  .ow-app:nth-of-type(8) { left: 26%; top: 70%; } .ow-app:nth-of-type(9) { left: 50%; top: 62%; }
.ow-app:nth-of-type(10) { left: 72%; top: 70%; }
.ow-files { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ow-file { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; filter: drop-shadow(0 4px 6px rgba(var(--shade), .25)); }
.ow-file img { width: 38px; height: auto; }
.ow-file b { padding: 2px 7px; border-radius: 999px; background: var(--raised); color: var(--ink); font-size: 10.5px; font-weight: 700; }
/* The "after": one Genie window, its sidebar holding all ten. */
.ow-window { position: relative; z-index: 1; width: min(100%, 720px); border-radius: 16px; background: var(--raised);
  box-shadow: 0 40px 80px -40px rgba(var(--shade), .55); overflow: hidden; opacity: 0; }
.ow-body { display: grid; grid-template-columns: 200px 1fr; }
.ow-side { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; background: var(--raised); }
.ow-row { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fill); flex: none; }
.ow-row:nth-child(5) { background: var(--accent-soft); }
.ow-main { padding: 18px; display: grid; place-items: center; background: var(--bg-soft); }
.ow-main .loop { width: 100%; border: 0; background: transparent; }
@media (max-width: 900px) {
  .ow-scene { height: auto; min-height: 0; max-height: none; grid-template-columns: 1fr; padding-block: 72px 48px; }
  .ow-stage { height: 520px; }
  .ow-app { width: 132px; }
  .ow-bar { font-size: 9.5px; height: 20px; }
  .ow-body { grid-template-columns: 150px 1fr; }
  .ow-row { font-size: 11.5px; height: 26px; gap: 7px; padding: 0 7px; }
  .ow-main { padding: 10px; }
}
@media (max-width: 480px) { .ow-body { grid-template-columns: 1fr; } .ow-main { display: none; } .ow-window { width: 100%; } }

/* What's new: dated entries, one after another. */
.news { max-width: 820px; margin: 0 auto; display: grid; gap: clamp(40px, 6vw, 72px); }
.news-item time { display: block; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.news-item h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 16px; }
.news-item ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; color: var(--ink); }

/* Compare: one calm card per alternative. */
.compare { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.cmp { background: var(--raised); border-radius: 22px; padding: clamp(24px, 2.6vw, 36px); }
.cmp h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 0 0 16px; }
.cmp p { margin: 0 0 14px; color: var(--ink); }
.cmp-pick { margin-top: 18px !important; font-weight: 700; color: var(--accent) !important; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }

/* Help: a list of topics, then short numbered articles. */
.help-toc { max-width: 820px; margin: 0 auto 56px; display: flex; flex-wrap: wrap; gap: 8px; }
.help-toc a { padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.help-toc a:hover { background: var(--accent-soft); }
.help { max-width: 820px; margin: 0 auto; display: grid; gap: clamp(40px, 5vw, 64px); }
.help-item { scroll-margin-top: 96px; }
.help-item h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 16px; }

/* No dark bands (Nov 27): the old dark-band tokens now resolve to the light palette */
:root { --dark-bg: var(--bg-soft); --dark-card: var(--raised); --dark-ink: var(--ink); --dark-muted: var(--muted); --dark-line: var(--border); }
.coast { fill: var(--cream); stroke: var(--border); }
.soon-pop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(var(--shade), .38); backdrop-filter: blur(3px); }
.soon-pop[hidden] { display: none; }
.soon-card { position: relative; width: min(420px, 100%); padding: 34px 32px 28px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--border); box-shadow: 0 30px 80px -30px rgba(var(--shade), .55); text-align: center; color: var(--ink); }
.soon-logo { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); margin-bottom: 14px; }
.soon-logo img { width: 52px; height: 52px; }
.soon-for { margin: 0; font-size: 15px; color: var(--muted); }
.soon-card h2 { margin: 4px 0 10px; font-size: 32px; line-height: 1.15; }
.soon-card p:not(.soon-for) { margin: 0 0 22px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.soon-ok { font: inherit; font-weight: 600; font-size: 16px; padding: 12px 34px; border-radius: 999px; border: 0; background: var(--fill); color: var(--on-fill); cursor: pointer; }
.soon-ok:hover { background: #ff8c5c; }
.soon-ok:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Home: eDNA to GBIF flow */
.ef-wrap { max-width: 1180px; margin: 10px auto 40px; overflow-x: auto; }
#ef-svg { width: 100%; min-width: 760px; height: auto; display: block; overflow: visible; }
.ef-track { stroke: var(--border); stroke-width: 4; stroke-linecap: round; fill: none; }
.ef-line { stroke: var(--fill); stroke-width: 4; stroke-linecap: round; fill: none; }
.ef-ring { fill: var(--raised); stroke: var(--border); stroke-width: 2; transition: stroke .3s; }
.ef-node.on .ef-ring { stroke: var(--fill); }
.ef-l { font: 600 15px "Cal Sans", system-ui, sans-serif; fill: var(--ink); text-anchor: middle; }
.ef-s { font: 12.5px system-ui, sans-serif; fill: var(--muted); text-anchor: middle; }
.ef-pulse { fill: var(--fill); }
.ef-stats { margin-bottom: 48px; }
.ef-stats .principle h3 { font-size: clamp(40px, 5vw, 64px); color: var(--fill); }
.ef-shot { display: block; margin: -6px -6px 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; background: var(--cream); }
.ef-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ef-surveys .next-card:hover .ef-shot img { transform: scale(1.06) translateY(-2%); }
