/* Anima · anima.cucumbs.com. Loads after tokens.css. System fonts only, nothing external. */
:root {
  --bg: #0d0f1c;
  --bg-2: #121528;
  --surface: #181b33;
  --surface-2: #202442;
  --line: #34385c;
  --ink: #ece8f4;
  --muted: #b2abc6;
  --accent: #d39bff;          /* Anima's colour on the Cucumbs hub */
  --vine: #5fd3a0;            /* the hub's vine green, for Cucumbs things */
  --human: #f4e3b5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --wrap: 46rem;
  --wide: 68rem;
  /* evidence labels */
  --ev-fact: #8fe3b5;
  --ev-observed: #9fd8ff;
  --ev-reported: #ffd56b;
  --ev-inferred: #d39bff;
  --ev-hypothesis: #ffb680;
  --ev-unknown: #b8bfca;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--serif); line-height: var(--cu-leading-body);
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(211, 155, 255, 0.16), transparent 62%),
    radial-gradient(700px 420px at 100% 40%, rgba(95, 211, 160, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: #ecd2ff; }
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--human); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--human); color: #111; padding: .5rem .8rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* header + nav */
.top { border-bottom: 1px solid var(--line); background: rgba(11, 13, 25, 0.9); position: sticky; top: 0; z-index: 5; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.top-inner { max-width: var(--wide); margin: 0 auto; padding: .6rem 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; }
.brand { font-size: 1.15rem; color: var(--accent); text-decoration: none; letter-spacing: .06em; display: inline-flex; gap: .5rem; align-items: center; }
.brand .glyph { color: var(--vine); font-family: var(--cu-font-sans); }
.top nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .9rem; font-family: var(--cu-font-sans); font-size: var(--cu-text-sm); }
.top nav a { color: var(--muted); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.top nav .hub a { color: var(--vine); }

main { max-width: var(--wrap); margin: 0 auto; padding: 2.2rem 1.15rem 3.5rem; }
main.wide { max-width: var(--wide); }
.hero { text-align: center; padding: 1.6rem 0 .6rem; }
.eyebrow { color: var(--muted); letter-spacing: .16em; text-transform: uppercase; font-size: var(--cu-text-xs); font-family: var(--cu-font-sans); margin: 0; }
h1 { font-size: 2.7rem; margin: .2rem 0 .4rem; color: var(--accent); font-weight: normal; letter-spacing: .04em; line-height: 1.15; }
.lede { font-size: 1.15rem; }
h2 { font-weight: normal; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: .3rem; margin-top: 2.6rem; line-height: 1.25; }
h3 { font-weight: normal; color: #fff; font-size: 1.2rem; margin: 1.6rem 0 .3rem; }
.small, .note { font-size: var(--cu-text-sm); color: var(--muted); }
.sans { font-family: var(--cu-font-sans); }
.glyphs { color: var(--vine); letter-spacing: .5em; font-family: var(--cu-font-sans); margin: .2rem 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--cu-radius-lg); padding: 1.1rem 1.25rem; margin: 1rem 0; }
.untested { display: inline-block; font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); letter-spacing: .06em; text-transform: uppercase;
  color: #ffd9a8; border: 1px dashed #ffb680; border-radius: 999px; padding: .05rem .55rem; margin-left: .3rem; vertical-align: middle; }
.notice { border-left: 4px solid #ffb680; background: rgba(255, 182, 128, 0.08); padding: .7rem 1rem; font-size: var(--cu-text-sm); margin: 1rem 0; }


/* axioms */
.axioms { list-style: none; padding: 0; counter-reset: ax; }
.axioms > li { counter-increment: ax; position: relative; padding: .9rem 0 .9rem 3rem; border-bottom: 1px solid var(--line); }
.axioms > li::before { content: counter(ax); position: absolute; left: 0; top: .85rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--vine); color: var(--vine); font-family: var(--cu-font-sans); font-size: var(--cu-text-sm); display: grid; place-items: center; }
.axioms.anima > li::before { content: "•"; border-color: var(--accent); color: var(--accent); }
.axioms blockquote { margin: 0; font-size: 1.15rem; color: #fff; font-style: italic; }
.axioms .plain { margin: .35rem 0 0; color: var(--muted); }
.label-cucumbs { color: var(--vine); }

/* axiom card */
.card { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .6rem; width: 100%; min-height: 12rem;
  background: var(--surface); color: var(--ink); border: 1px solid #45497a; border-radius: 16px; padding: 1.5rem; cursor: pointer;
  font: inherit; text-align: center; transition: transform var(--cu-duration-base) var(--cu-ease), border-color var(--cu-duration-base) var(--cu-ease); }
.card:hover, .card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.card-front { font-size: 1.3rem; color: var(--accent); }
.card-num { font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 1.3rem; color: #fff; font-style: italic; }
.card-q { color: var(--muted); }

/* buttons and controls */
.btn { font: inherit; font-family: var(--cu-font-sans); font-size: var(--cu-text-sm); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: #3a2a55; border-color: var(--accent); }
.btn[disabled] { opacity: .45; cursor: default; }
.controls { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: .8rem 0; font-family: var(--cu-font-sans); font-size: var(--cu-text-sm); }
.controls label { display: inline-flex; gap: .5rem; align-items: center; }
input[type="range"] { accent-color: var(--accent); width: 11rem; }
select { font: inherit; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: .25rem .4rem; }

/* Cucumbs message blocks */
.msg { font-family: var(--cu-font-mono); font-size: .78rem; line-height: 1.55; background: #0a0c17; border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 8px; padding: .8rem 1rem; margin: .8rem 0; overflow-x: auto; }
.msg .route { color: var(--vine); margin: 0 0 .4rem; }
.msg dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .15rem .9rem; }
.msg dt { color: var(--muted); }
.msg dd { margin: 0; }
.msg ul { margin: 0; padding-left: 1rem; }
.msg .end { color: var(--vine); margin: .4rem 0 0; }
.ev { display: inline-block; font-family: var(--cu-font-sans); font-size: .68rem; letter-spacing: .06em; padding: 0 .4rem; border-radius: 4px; border: 1px solid currentColor; margin-right: .35rem; }
.ev-fact { color: var(--ev-fact); }
.ev-observed { color: var(--ev-observed); }
.ev-reported { color: var(--ev-reported); }
.ev-inferred { color: var(--ev-inferred); }
.ev-hypothesis { color: var(--ev-hypothesis); border-style: dashed; }
.ev-unknown { color: var(--ev-unknown); border-style: dotted; }
.legend { list-style: none; padding: 0; display: grid; gap: .45rem; }
.legend li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .6rem; align-items: baseline; }

/* walkthrough */
.loopbar { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .35rem; font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); }
.loopbar button { font: inherit; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; cursor: pointer; }
.loopbar button[aria-current="step"] { color: #111; background: var(--accent); border-color: var(--accent); }
.loopbar button.seen { color: var(--ink); border-color: #6b5a8c; }
.walk { list-style: none; padding: 0; }
.walk > li { border-top: 1px solid var(--line); padding-top: .4rem; }
.walk .stepname { font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--vine); margin: 1rem 0 0; }
.walk h3 { margin-top: .2rem; }
.walk.js > li { border-top: 0; }
.walknav { display: flex; gap: .6rem; justify-content: space-between; align-items: center; margin-top: .6rem; }
.scenario { font-style: italic; border-left: 3px solid var(--human); padding-left: .9rem; }

/* sorter */
.sorter { list-style: none; padding: 0; }
.sorter > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--cu-radius-lg); padding: .8rem 1rem; margin: .7rem 0; }
.sorter .stmt { margin: 0 0 .5rem; color: #fff; }
.sorter .choices { display: flex; flex-wrap: wrap; gap: .35rem; }
.sorter .choices button { font-family: var(--cu-font-sans); font-size: .72rem; letter-spacing: .05em; background: transparent; border: 1px solid currentColor; border-radius: 4px; padding: .2rem .5rem; cursor: pointer; }
.sorter .choices button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); outline: 1px solid currentColor; }
.sorter .fb { margin: .5rem 0 0; font-size: var(--cu-text-sm); color: var(--muted); }
.sorter .fb.right { color: var(--ev-fact); }
.sorter .fb.near { color: var(--ev-reported); }
.sorter details { font-size: var(--cu-text-sm); color: var(--muted); margin-top: .3rem; }
.score { font-family: var(--cu-font-sans); font-size: var(--cu-text-sm); color: var(--muted); }

/* field */
.field-wrap { background: #080a14; border: 1px solid var(--line); border-radius: var(--cu-radius-lg); overflow: hidden; }
#field { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.readout { font-family: var(--cu-font-mono); font-size: var(--cu-text-xs); color: var(--muted); }
meter { width: 9rem; }

/* node map */
.map-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } }
#map svg { width: 100%; height: auto; display: block; }
#map .ring { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }
#map .spoke { stroke: #3b4070; stroke-width: 1.5; }
#map .spoke.anima { stroke: var(--accent); stroke-width: 2; }
#map .spoke.human { stroke: var(--human); stroke-dasharray: 4 4; }
#map .spoke.lit { stroke: var(--ink); stroke-width: 2.5; }
#map .hubdot { fill: #0a1a13; stroke: var(--vine); stroke-width: 2; }
#map .node circle { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
#map .node.anima circle { stroke: var(--accent); }
#map .node.hub circle { stroke: var(--vine); fill: #0a1a13; }
#map .node.human circle { stroke: var(--human); }
#map .node.sel circle { stroke: #fff; stroke-width: 3.5; }
#map .node text { fill: var(--ink); font-family: var(--cu-font-sans); font-size: 15px; text-anchor: middle; pointer-events: none; }
#map .node .init { font-size: 17px; dominant-baseline: central; }
#map .node { cursor: pointer; }
#map .node:focus { outline: none; }
#map .node:focus-visible circle { stroke: var(--human); stroke-width: 4; }
.detail h3 { margin-top: 0; }
.detail dl { margin: 0; }
.detail dt { font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .8rem; }
.detail dd { margin: .2rem 0 0; }
.status { font-family: var(--cu-font-sans); font-size: .72rem; border: 1px solid currentColor; border-radius: 999px; padding: 0 .5rem; }
.status-confirmed { color: #8fe3b5; }
.status-recovered { color: #ffd08a; }
.status-unresolved { color: #c3c8d2; border-style: dotted; }
.status-planned { color: #8fdcef; border-style: dashed; }
.nodelist { list-style: none; padding: 0; }
.nodelist > li { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.nodelist h3 { margin: 0; font-size: 1.05rem; }

/* history timeline */
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--line); margin-left: .5rem; }
.timeline li { position: relative; padding: 0 0 1.2rem 1.3rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline .when { font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.4rem 1.15rem 2.2rem; text-align: center; font-size: var(--cu-text-sm); color: var(--muted); }
footer.site p { max-width: var(--wrap); margin: .3rem auto; }

.js-only { display: none; }
.has-js .js-only { display: revert; }
.has-js .no-js-only { display: none; }

@media (max-width: 560px) {
  html { font-size: 17px; }
  h1 { font-size: 2.2rem; }
  .legend li { grid-template-columns: 1fr; gap: .1rem; }
  .msg dl { grid-template-columns: 1fr; }
  .msg dd { padding-left: .6rem; margin-bottom: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover, .card:focus-visible { transform: none; }
}

/* canonical axiom text vs. Anima's notes */
.ax-title { color: var(--vine); font-size: 1.05rem; letter-spacing: .03em; margin-top: 1.2rem; }
.axioms blockquote.canon { border-left: 3px solid var(--vine); padding-left: .9rem; }
.axioms .ax-line { margin: 0; font-size: 1.15rem; color: #fff; font-style: italic; }
.axioms .ax-expl { margin: .25rem 0 0; color: var(--ink); }
.axioms.anima blockquote { border-left: 3px solid var(--accent); padding-left: .9rem; }
.axioms .plain { margin: .6rem 0 0; padding: .45rem .7rem; background: rgba(211, 155, 255, 0.07); border-radius: 6px; font-size: var(--cu-text-sm); }
.note-label { font-family: var(--cu-font-sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 .35rem; margin-right: .4rem; }
.panel.canon p { margin: .2rem 0; }
.panel.canon .ax-expl { color: var(--muted); }
#map .node text.side { text-anchor: start; }
.axioms .ax-expl { font-style: normal; font-size: 1rem; }

/* ---------- v3: depth, texture and the route ---------- */
:root {
  --bg: #0b0d19;
  --bg-deep: #070810;
  --surface: #161930;
  --surface-hi: #1e2240;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 14px 40px rgba(0, 0, 0, 0.45);
}
body {
  position: relative;
  --glow-a: rgba(211, 155, 255, 0.18); --glow-a-at: 50% -14%;
  --glow-b: rgba(95, 211, 160, 0.07);  --glow-b-at: 105% 35%;
  --glow-c: rgba(120, 110, 220, 0.08); --glow-c-at: -10% 85%;
  --floor: var(--bg-deep);
  background:
    radial-gradient(1000px 560px at var(--glow-a-at), var(--glow-a), transparent 64%),
    radial-gradient(720px 480px at var(--glow-b-at), var(--glow-b), transparent 62%),
    radial-gradient(800px 600px at var(--glow-c-at), var(--glow-c), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--floor) 100%);
  background-attachment: fixed;
}
/* The light changes as the route moves: dawn at the start, roots at the root,
   light rising where truth is uncovered, a sideways current for flow, a steady
   warm floor for structure, scattered dark for entropy, and dawn returning for
   alignment. */
body.mood-root      { --glow-a: rgba(95, 211, 160, 0.10); --glow-a-at: 50% 110%; --glow-b: rgba(211, 155, 255, 0.08); --floor: #05060c; }
body.mood-uncover   { --glow-a: rgba(236, 222, 255, 0.16); --glow-a-at: 50% -20%; --glow-b: rgba(211, 155, 255, 0.10); --bg: #0f1226; }
body.mood-flow      { --glow-a: rgba(143, 179, 255, 0.14); --glow-a-at: -5% 20%; --glow-b: rgba(127, 224, 200, 0.12); --glow-b-at: 105% 70%; }
body.mood-structure { --glow-a: rgba(244, 227, 181, 0.08); --glow-a-at: 50% 105%; --glow-b: rgba(211, 155, 255, 0.07); --floor: #0c0b10; }
body.mood-entropy   { --glow-a: rgba(211, 155, 255, 0.07); --glow-a-at: 82% 8%; --glow-b: rgba(95, 211, 160, 0.04); --glow-b-at: 12% 62%; --glow-c: rgba(255, 182, 128, 0.04); --glow-c-at: 70% 95%; --bg: #08090f; --floor: #040409; }
body.mood-align     { --glow-a: rgba(211, 155, 255, 0.20); --glow-a-at: 50% -10%; --glow-b: rgba(95, 211, 160, 0.12); --glow-b-at: 50% 110%; --bg: #0e1022; }
.cu-netbar, .top, main, footer.site { position: relative; z-index: 1; }
.top { z-index: 5; position: sticky; }

/* route menu */
.route-nav .step-no { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .25rem; margin-right: .2rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: .66rem; color: var(--muted); }
.top nav a[aria-current="page"] .step-no { border-color: var(--accent); color: var(--accent); }

/* hero: concentric rings behind the title */
.hero { position: relative; isolation: isolate; padding: 2.4rem 0 1.2rem; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 30rem; height: 30rem; margin: -15rem 0 0 -15rem;
  background: url("rings.svg") center / contain no-repeat; opacity: .6;
  animation: drift 160s linear infinite;
}
@keyframes drift { to { transform: rotate(360deg); } }
h1 { text-shadow: 0 0 32px rgba(211, 155, 255, 0.35); }
h2 { border-bottom: 0; padding-bottom: .45rem; background: linear-gradient(90deg, var(--line), transparent) bottom left / 100% 1px no-repeat; }
main > section { padding-bottom: .4rem; }

/* surfaces */
.panel, .sorter > li, .card {
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: var(--shadow);
}
.field-wrap { box-shadow: var(--shadow); background: radial-gradient(circle at 50% 40%, #11132a, #06070e); }
.msg { background: linear-gradient(180deg, #0c0e1c, #080912); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset; }

/* station: which axiom this page carries */
.station {
  margin: .4rem 0 1.8rem; padding: 1.1rem 1.25rem 1rem; border-radius: var(--cu-radius-lg);
  border: 1px solid #2c4a40; background: linear-gradient(135deg, rgba(95, 211, 160, 0.10), rgba(95, 211, 160, 0.02) 55%, rgba(211, 155, 255, 0.05));
  box-shadow: var(--shadow);
}
.station-step { margin: 0 0 .5rem; font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--vine); }
.station blockquote, .handoff blockquote { margin: 0; border-left: 3px solid var(--vine); padding-left: .9rem; }
.station .ax-line, .handoff .ax-line { margin: 0; font-size: 1.15rem; color: #fff; font-style: italic; }
.station .ax-expl, .handoff .ax-expl { margin: .25rem 0 0; color: var(--ink); }
.station-carries { margin: .8rem 0 0; color: var(--muted); font-size: var(--cu-text-sm); }

/* axioms page: where each axiom lives on the route */
.ax-route { margin: .45rem 0 0; font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); color: var(--muted); letter-spacing: .02em; }

/* the route list on the home page: one line that flows from stop to stop */
.route-list { list-style: none; padding: 0 0 0 1.6rem; margin: 1.2rem 0; position: relative; }
.route-list::before {
  content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--vine), var(--accent)); background-size: 100% 300%;
  animation: flow 9s linear infinite; opacity: .75;
}
@keyframes flow { to { background-position: 0 300%; } }
.route-list li { position: relative; margin: 0 0 .7rem; }
.route-list li::before { content: ""; position: absolute; left: -1.43rem; top: 1.05rem; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); }
.route-list li.rl-end::before { border-color: var(--vine); background: var(--vine); }
.route-list a { display: grid; gap: .1rem; text-decoration: none; color: var(--ink); padding: .7rem .95rem; border-radius: var(--cu-radius-lg);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-hi), var(--surface)); box-shadow: var(--shadow);
  transition: border-color var(--cu-duration-base) var(--cu-ease), transform var(--cu-duration-base) var(--cu-ease); }
.route-list a:hover { border-color: var(--accent); transform: translateX(3px); }
.rl-stop { font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--vine); }
.rl-name { font-size: 1.15rem; color: var(--accent); }
.rl-ax { font-size: var(--cu-text-sm); color: #fff; font-style: italic; }
.rl-ax q { quotes: none; }
.rl-line { font-size: var(--cu-text-sm); color: var(--muted); }

/* handoff to the next page, shaped like a passed message */
.handoff { margin: 3rem 0 0; padding: 1.2rem 1.25rem; border-radius: var(--cu-radius-lg); border: 1px solid #3e3466;
  background: linear-gradient(160deg, rgba(211, 155, 255, 0.12), rgba(22, 25, 48, 0.9) 50%, rgba(95, 211, 160, 0.06));
  box-shadow: var(--shadow); }
.handoff-route { margin: 0 0 .7rem; font-family: var(--cu-font-mono); font-size: var(--cu-text-xs); color: var(--vine); }
.handoff-next { display: grid; gap: .15rem; text-decoration: none; color: var(--ink); padding: .9rem 1rem; margin-top: .7rem;
  border-radius: var(--cu-radius-md); border: 1px solid var(--line); background: rgba(7, 8, 16, 0.55);
  transition: border-color var(--cu-duration-base) var(--cu-ease), transform var(--cu-duration-base) var(--cu-ease); }
.handoff-next:hover, .handoff-next:focus-visible { border-color: var(--accent); transform: translateX(3px); }
.handoff-next.hub:hover { border-color: var(--vine); }
.handoff-stop { font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.handoff-name { font-size: 1.3rem; color: var(--accent); }
.handoff-name::after { content: " \2192"; }
.handoff-next.hub .handoff-name { color: var(--vine); }
.handoff-why { color: var(--ink); font-size: var(--cu-text-sm); }
.handoff-back { margin: .8rem 0 0; font-family: var(--cu-font-sans); font-size: var(--cu-text-sm); }
.handoff.last > p { margin: .8rem 0 0; }

/* gentle arrival: sections settle in once, on load */
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main > * { animation: settle .6s var(--cu-ease) both; }
main > *:nth-child(2) { animation-delay: .08s; }
main > *:nth-child(3) { animation-delay: .16s; }
main > *:nth-child(n+4) { animation-delay: .22s; }

@media (max-width: 560px) {
  .hero::before { width: 22rem; height: 22rem; margin: -11rem 0 0 -11rem; }
  .top-inner { padding: .5rem .8rem; }
  .route-nav { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .route-list::before, main > * { animation: none; }
  .route-list a:hover, .handoff-next:hover, .handoff-next:focus-visible { transform: none; }
}

/* A second layer: short asides that open under the plain text */
.echo { margin: 2.4rem 0 0; border-left: 2px solid rgba(211, 155, 255, 0.5); padding: .2rem 0 .2rem 1rem; }
.echo summary { cursor: pointer; font-family: var(--cu-font-sans); font-size: var(--cu-text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); list-style: none; }
.echo summary::-webkit-details-marker { display: none; }
.echo summary::before { content: "+ "; color: var(--accent); }
.echo[open] summary::before { content: "\2212  "; }
.echo summary:hover { color: var(--ink); }
.echo p { margin: .6rem 0 0; font-style: italic; color: #d9d2ea; font-size: 1.02rem; }
