/* Journa.win: the one-page site for Legacy.
   Mobile first (designed at 390 px; wider screens add room and larger type, never more columns of text).
   Dark on purpose: the page is the night sky a Journey is charted on. Colours: charcoal, midnight blue, gold, copper, ivory, emerald.
   IM Fell English (Igino Marini, from the Fell types of the 1670s; SIL Open Font License, fonts/im-fell/OFL.txt) is Journa's display face. */

@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/im-fell/im-fell-english.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/im-fell/im-fell-english-italic.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --charcoal: #121317;
  --charcoal-2: #18191f;
  --black: #0b0c0f;
  --midnight: #0a1424;
  --midnight-2: #0f1d33;
  --midnight-3: #16294a;
  --gold: #d9b35e;
  --gold-soft: #ecd395;
  --copper: #c4804c;
  --ivory: #f4ecdb;
  --ivory-2: rgba(244, 236, 219, .76);
  --ivory-3: rgba(244, 236, 219, .54);
  --emerald: #45b892;
  --line: rgba(244, 236, 219, .12);
  --display: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.25rem, 5.5vw, 3rem);
  --measure: 42rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #07101d; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--charcoal); color: var(--ivory); font: 400 1.0625rem/1.6 var(--serif); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
a { color: var(--gold-soft); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--gold); color: #1a1408; padding: .65rem 1rem; border-radius: 10px; font: 600 .95rem var(--sans); text-decoration: none; }
.skip:focus { top: 1rem; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .65rem var(--pad); padding-top: max(.65rem, env(safe-area-inset-top));
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.top.is-scrolled { background: rgba(10, 20, 36, .84); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.mark { display: inline-flex; align-items: baseline; gap: .5rem; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--ivory); text-decoration: none; font-synthesis: none; }
.mark-sub { font: 600 .64rem var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.top .btn-sm { transition: opacity .35s, transform .35s, filter .2s; }
html.js .top:not(.is-scrolled) .btn-sm { opacity: 0; transform: translateY(-4px); pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.25rem; padding: .9rem 1.9rem;
  border-radius: 999px; background: linear-gradient(180deg, #e8c97f, var(--gold)); color: #1b1408;
  font: 650 1.02rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  box-shadow: 0 12px 30px -12px rgba(217, 179, 94, .6), inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 36px -12px rgba(217, 179, 94, .75), inset 0 1px 0 rgba(255, 255, 255, .38); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 2.5rem; padding: .55rem 1.15rem; font-size: .92rem; }
.btn-lg { min-height: 3.6rem; padding: 1rem 2.3rem; font-size: 1.1rem; }
.btn-ghost { background: transparent; color: var(--gold-soft); box-shadow: inset 0 0 0 1.5px rgba(217, 179, 94, .55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); filter: none; }
.btn-ic { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Sections ---------- */
.sec { position: relative; isolation: isolate; padding: clamp(4rem, 11vh, 9.5rem) var(--pad); text-align: center; scroll-margin-top: 4rem; }
.sec > * { margin-inline: auto; max-width: var(--measure); }
.sec-charcoal { background: var(--charcoal); }
.sec-dark { background: linear-gradient(180deg, var(--charcoal), #0e0f12 60%, var(--charcoal)); }
.sec-black { background: var(--black); }
.sec-midnight { background: radial-gradient(120% 70% at 50% 0%, var(--midnight-3), var(--midnight) 62%, #08111f); }
.sec-warm { background: radial-gradient(90% 55% at 50% 52%, rgba(196, 128, 76, .1), transparent 70%), #131215; }
.sec-deep { background: radial-gradient(60% 45% at 50% 50%, rgba(217, 179, 94, .12), transparent 70%), radial-gradient(130% 90% at 50% 50%, #0d1a30, #050a13); }
.sec-hero-echo { background: radial-gradient(90% 60% at 50% 34%, #172b4c 0%, var(--midnight) 60%, #07101d 100%); }
.sec-final { background: radial-gradient(70% 55% at 50% 40%, rgba(217, 179, 94, .14), transparent 70%), linear-gradient(180deg, #07101d, #0a1424 50%, #060b14); }
.sec-chart::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(217, 179, 94, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 179, 94, .05) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
}

/* ---------- Type ---------- */
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; font-synthesis: none; letter-spacing: -.005em; text-wrap: balance; color: var(--ivory); }
h1 { font-size: clamp(2.8rem, 11.6vw, 6.4rem); line-height: .98; }
h2 { font-size: clamp(2.35rem, 9.6vw, 5rem); line-height: 1.04; }
h1 .line, .two-line > span, .statement > span, .statement-xl > span { display: block; }
.gold { color: var(--gold-soft); font-style: italic; }
.dim { color: var(--ivory-3); }
.lead { max-width: 33ch; margin: 1.15rem auto 0; font-size: clamp(1.1rem, 4.5vw, 1.4rem); line-height: 1.55; color: var(--ivory-2); text-wrap: pretty; }
.lead-strong { color: var(--ivory); }
.kicker { font: 600 .74rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--copper); margin-bottom: 1rem; }
.question { margin-top: 1.7rem; font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 5.8vw, 2.1rem); line-height: 1.2; color: var(--gold-soft); }
.example { max-width: 17ch; margin: 1.4rem auto 0; font-family: var(--display); font-style: italic; font-size: clamp(1.7rem, 7.4vw, 3rem); line-height: 1.14; color: var(--gold-soft); text-wrap: balance; }
.subhead { margin-top: .9rem; font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 6.4vw, 2.4rem); color: var(--gold-soft); }
.fine { margin-top: 1.4rem; font: 500 .82rem var(--sans); letter-spacing: .08em; color: var(--ivory-3); }
.cta { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin-top: 2.2rem; }
.cta-pair { gap: .9rem; }

/* ---------- Graphics ---------- */
.art { width: 100%; max-width: 32rem; margin-top: 2.4rem; }
.art-wide { max-width: 38rem; }
.art svg, .flow-step svg { display: block; width: 100%; height: auto; overflow: visible; }
.sec > .art:first-child { margin-top: 0; }

/* Evidence pieces */
.s-af { fill: #142540; stroke: rgba(244, 236, 219, .66); stroke-width: 1.5; stroke-linejoin: round; }
.s-al { fill: none; stroke: rgba(244, 236, 219, .45); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.s-tag { fill: var(--copper); }
.s-ph { fill: #1e3556; }
.s-mt { fill: #3e6b89; }
.s-sun { fill: var(--gold); }
.s-nf { fill: rgba(196, 128, 76, .2); stroke: var(--copper); stroke-width: 1.5; stroke-linejoin: round; }
.s-cf { fill: rgba(69, 184, 146, .16); stroke: var(--emerald); stroke-width: 1.4; stroke-linejoin: round; }
.s-lf { fill: rgba(236, 211, 149, .08); stroke: rgba(236, 211, 149, .62); stroke-width: 1.4; }
.s-ink { fill: none; stroke: rgba(244, 236, 219, .5); stroke-width: 1.1; stroke-linecap: round; }
.s-hd { stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; }
.s-dot { fill: rgba(244, 236, 219, .5); }
.s-spark { fill: var(--gold); }
.s-rring { fill: none; stroke: rgba(217, 179, 94, .55); stroke-width: 1.2; }
.s-thin { stroke-width: .7; stroke-dasharray: 1.5 3; }
.s-rthin { stroke: rgba(217, 179, 94, .4); stroke-width: .8; }
.s-rpt { fill: rgba(217, 179, 94, .25); stroke: rgba(217, 179, 94, .7); stroke-width: .8; stroke-linejoin: round; }
.s-rpt2 { fill: rgba(217, 179, 94, .6); }

/* Line icons */
.ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Constellation (graphics 01 and 09) */
.chart circle, .chart path { fill: none; stroke: rgba(244, 236, 219, .065); stroke-width: 1; }
.dust circle { fill: rgba(244, 236, 219, .5); }
.ln { fill: none; stroke: rgba(217, 179, 94, .62); stroke-width: 1.3; stroke-linecap: round; }
.ln-dot { fill: none; stroke: rgba(244, 236, 219, .3); stroke-width: 1.1; stroke-dasharray: 1.5 5; stroke-linecap: round; }
.st { fill: var(--ivory); }
.st.b { fill: #fff4d8; }
.st.core { fill: var(--gold-soft); }
.halo { fill: url(#rg-soft); }
.halo-core { fill: url(#rg-core); }
.g09 .ln { stroke: rgba(217, 179, 94, .85); stroke-width: 1.4; }
.rose-bg { opacity: .1; }
.ring-done { fill: none; stroke: rgba(217, 179, 94, .22); stroke-width: 1; stroke-dasharray: 2 6; }
.lbls text { font-family: var(--display); font-style: italic; font-size: 13px; fill: rgba(244, 236, 219, .74); paint-order: stroke; stroke: #0c1829; stroke-width: 4px; stroke-linejoin: round; }
.lbls .you { fill: var(--gold-soft); font-size: 14px; }

/* Graphic 02: scattered */
.stubs path { fill: none; stroke: rgba(244, 236, 219, .2); stroke-width: 1.2; stroke-dasharray: 2 4; stroke-linecap: round; }
.tilt { transform-box: fill-box; transform-origin: center; }
.art-chaos .tilt { transform: rotate(var(--r, 0deg)); animation: drift var(--dur, 8s) ease-in-out var(--del, 0s) infinite alternate; }
@keyframes drift { from { transform: rotate(var(--r, 0deg)) translateY(-3px); } to { transform: rotate(calc(var(--r, 0deg) + 2.5deg)) translateY(4px); } }

/* Graphic 03: meaning emerging */
.thread { fill: none; stroke: rgba(217, 179, 94, .7); stroke-width: 1.5; stroke-linecap: round; }
.nthread { fill: none; stroke: rgba(196, 128, 76, .55); stroke-width: 1.1; stroke-linecap: round; }
.knot-dot { fill: var(--gold); }
.core-star { fill: #fff4d8; }
.core-spark { fill: var(--gold-soft); }

/* Graphic 04: historical chart */
.card { fill: #0f1b2e; stroke: rgba(217, 179, 94, .3); stroke-width: 1.2; }
.grid { fill: none; stroke: rgba(244, 236, 219, .05); stroke-width: 1; }
.contour path { fill: none; stroke: rgba(217, 179, 94, .16); stroke-width: 1; }
.river { fill: none; stroke: #3e6b89; stroke-width: 3.4; stroke-linecap: round; opacity: .9; }
.map-label { font-family: var(--display); font-size: 15px; letter-spacing: 6px; fill: rgba(217, 179, 94, .78); }
.map-river { font-style: italic; font-size: 11.5px; letter-spacing: .5px; fill: rgba(150, 186, 208, .85); }
.rose-sm { opacity: .75; }
.leader { fill: none; stroke: rgba(244, 236, 219, .32); stroke-width: 1; stroke-dasharray: 2 4; }
.route-x { fill: none; stroke: var(--emerald); stroke-width: 2.4; stroke-dasharray: 6 6; stroke-linecap: round; animation: march 2.6s linear infinite; }
.route-dot { fill: var(--gold); }
.pin-ring { fill: rgba(196, 128, 76, .18); stroke: var(--copper); stroke-width: 1.3; transform-box: fill-box; transform-origin: center; animation: ripple 3.2s ease-out infinite; }
.pin-dot { fill: var(--copper); }
.dest { fill: rgba(217, 179, 94, .08); stroke: var(--gold); stroke-width: 1.3; stroke-dasharray: 3 4; }
.dest-q { font-family: var(--display); font-size: 25px; fill: var(--gold-soft); }

/* Graphic 05: living expedition */
.ground { fill: none; stroke: url(#lg-ground); stroke-width: 1; }
.horizon { stroke: url(#lg-horizon); stroke-width: 1.4; }
.arc { fill: none; stroke: rgba(244, 236, 219, .18); stroke-width: 1; stroke-dasharray: 2 5; }
.tick { stroke: rgba(217, 179, 94, .45); stroke-width: 1.2; stroke-linecap: round; }
.bearing { fill: none; stroke: rgba(217, 179, 94, .6); stroke-width: 1.2; stroke-linecap: round; }
.course { fill: none; stroke: var(--emerald); stroke-width: 2.4; stroke-dasharray: 6 6; stroke-linecap: round; animation: march 2.6s linear infinite; }
.spark { fill: var(--gold-soft); }
.node { fill: var(--midnight-2); stroke: rgba(217, 179, 94, .65); stroke-width: 1.4; }
.node-em { stroke: var(--emerald); stroke-width: 1.8; }
.ico { color: var(--ivory); }
.ico-em { color: #8fe0c2; }
.house { fill: var(--midnight-2); stroke: var(--gold-soft); stroke-width: 1.8; stroke-linejoin: round; }
.house-d { fill: none; stroke: rgba(236, 211, 149, .72); stroke-width: 1.4; stroke-linejoin: round; }

/* Graphic 06: orbit */
.orbit { fill: none; stroke: rgba(244, 236, 219, .18); stroke-width: 1; stroke-dasharray: 2 6; transform-box: view-box; transform-origin: 200px 200px; animation: spin 140s linear infinite; }
.orbit-2 { animation-direction: reverse; animation-duration: 200s; }
.tether { fill: none; stroke: rgba(217, 179, 94, .24); stroke-width: 1; }
.pulse { fill: none; stroke: var(--gold-soft); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .07 .93; stroke-dashoffset: 1; animation: pulse 4.2s linear infinite; }
.p2 { animation-delay: -.7s; } .p3 { animation-delay: -1.4s; } .p4 { animation-delay: -2.1s; } .p5 { animation-delay: -2.8s; } .p6 { animation-delay: -3.5s; }
.core-glow { opacity: .9; }
.core-breathe { transform-box: fill-box; transform-origin: center; animation: breathe 6s ease-in-out infinite; }
.core-ring { fill: none; stroke: rgba(217, 179, 94, .3); stroke-width: 1; }
.core-disc { fill: #0d1a2e; stroke: var(--gold); stroke-width: 1.4; }
.core-label { font-family: var(--display); font-size: 17px; fill: var(--gold-soft); }
.core-label-sm { font-size: 13.5px; }
.pnode { fill: var(--midnight-2); stroke: var(--gold-soft); stroke-width: 1.6; }
.plabels text { font: 500 12.5px var(--sans); letter-spacing: .02em; fill: rgba(244, 236, 219, .84); }

/* Graphic 07: journey map */
.ring { fill: none; stroke: rgba(244, 236, 219, .1); stroke-width: 1; stroke-dasharray: 2 6; }
.spoke { fill: none; stroke: rgba(244, 236, 219, .07); stroke-width: 1; }
.g07 .thread { stroke: rgba(217, 179, 94, .55); stroke-width: 1.3; }
.exp { fill: none; stroke: var(--emerald); stroke-width: 2.4; stroke-dasharray: 6 5; stroke-linecap: round; animation: march 3s linear infinite; }
.exp-2 { animation-duration: 3.6s; }
.wnode { fill: var(--midnight-2); stroke: rgba(217, 179, 94, .7); stroke-width: 1.4; }
.wicons { color: var(--gold-soft); }
.wflags { color: var(--emerald); }
.wlabels text { font: 600 11px var(--sans); letter-spacing: .16em; fill: rgba(244, 236, 219, .84); text-anchor: middle; }

/* Graphic 08: journey → expedition → world */
.f-ring { fill: rgba(15, 29, 51, .6); stroke: rgba(217, 179, 94, .55); stroke-width: 1.4; }
.f-ln { fill: none; stroke: rgba(217, 179, 94, .6); stroke-width: 1.2; stroke-linejoin: round; }
.f-st { fill: var(--ivory); }
.f-core { fill: var(--gold-soft); }
.f-badge { fill: var(--midnight); stroke: var(--gold); stroke-width: 1.3; }
.f-ic { color: var(--gold-soft); }
.f-thread { fill: none; stroke: rgba(217, 179, 94, .5); stroke-width: 1.1; stroke-dasharray: 2 4; }
.f-who { fill: var(--ivory); stroke: rgba(217, 179, 94, .7); stroke-width: 1; }
.f-route { fill: none; stroke: var(--emerald); stroke-width: 2.2; stroke-dasharray: 5 5; stroke-linecap: round; animation: march 3s linear infinite; }
.f-start { fill: var(--gold); }
.f-end { fill: var(--emerald); }
.f-flag { color: var(--emerald); }
.f-orbit { fill: none; stroke: rgba(244, 236, 219, .16); stroke-dasharray: 2 5; }
.f-globe { fill: rgba(15, 29, 51, .7); stroke: rgba(217, 179, 94, .6); stroke-width: 1.3; }
.f-mer { fill: none; stroke: rgba(244, 236, 219, .16); stroke-width: 1; }

/* ---------- 1. Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 4.4rem; padding-bottom: 3rem; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 30%, #172b4c 0%, var(--midnight) 60%, #07101d 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background:
    radial-gradient(1.3px 1.3px at 7% 12%, #f4ecdb 50%, transparent 52%),
    radial-gradient(1px 1px at 19% 64%, #f4ecdb 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 31% 88%, #f4ecdb 50%, transparent 52%),
    radial-gradient(1px 1px at 44% 7%, #f4ecdb 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 58% 93%, #ecd395 50%, transparent 52%),
    radial-gradient(1px 1px at 71% 6%, #f4ecdb 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 83% 58%, #f4ecdb 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 22%, #f4ecdb 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 96% 81%, #ecd395 50%, transparent 52%),
    radial-gradient(1px 1px at 4% 46%, #f4ecdb 50%, transparent 52%),
    radial-gradient(1px 1px at 12% 96%, #f4ecdb 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 88% 40%, #f4ecdb 50%, transparent 52%);
}
.art-hero { width: min(80vw, 36vh, 34rem); width: min(80vw, 36svh, 34rem); max-width: none; margin: 0 auto .4rem; }
.hero-copy { max-width: var(--measure); }
.hero .lead { margin-top: .9rem; }
.scroll-cue { display: none; position: absolute; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); width: 2.75rem; height: 2.75rem; margin-left: -1.375rem; place-items: center; color: var(--ivory-3); border-radius: 50%; animation: bob 2.6s ease-in-out infinite; }
.scroll-cue svg { width: 1.5rem; height: 1.5rem; }
.scroll-cue:hover { color: var(--gold-soft); }

/* Twinkling and the threads still forming */
.st.t1 { animation: twinkle 4.2s ease-in-out infinite; }
.st.t2 { animation: twinkle 5.6s ease-in-out -1.8s infinite; }
.st.t3 { animation: twinkle 3.6s ease-in-out -2.6s infinite; }
.g01 .halo-core { animation: glow 5s ease-in-out infinite; }
.forming { stroke-dasharray: 1; stroke-dashoffset: 1; animation: forming 7.5s ease-in-out infinite; }
.f2 { animation-delay: 2.5s; }
.f3 { animation-delay: 5s; }

/* ---------- 2. Positioning ---------- */
.statement { font-size: clamp(2.2rem, 9.4vw, 5.2rem); line-height: 1.06; }
.statement .gold { margin-top: .35em; }

/* ---------- 3, 10, 13. Two-line headlines after a graphic ---------- */
.two-line { margin-top: 2.6rem; }
.sec > .two-line:first-child { margin-top: 0; }
.two-line .gold { margin-top: .25em; }
.art + h2 { margin-top: 2.6rem; }

/* ---------- 4. Shift ---------- */
.words { display: flex; flex-wrap: wrap; justify-content: center; gap: .15em .6em; max-width: 30rem; margin-top: 1.6rem; font-family: var(--display); font-size: clamp(1.5rem, 6.4vw, 2.3rem); line-height: 1.3; }
.words span { color: var(--ivory-2); }
.words span:nth-child(2n) { color: var(--gold-soft); font-style: italic; }
html.js .words span { opacity: 0; transform: translateY(.4rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .words.is-in span { opacity: 1; transform: none; }
.words span:nth-child(2) { transition-delay: .12s; } .words span:nth-child(3) { transition-delay: .24s; } .words span:nth-child(4) { transition-delay: .36s; }
.words span:nth-child(5) { transition-delay: .48s; } .words span:nth-child(6) { transition-delay: .6s; }

/* ---------- 5, 6. Expeditions ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.8rem; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem .5rem .75rem; border-radius: 999px; background: rgba(244, 236, 219, .04); box-shadow: inset 0 0 0 1px rgba(217, 179, 94, .32); font: 500 .95rem var(--sans); color: var(--ivory-2); }
.chips svg { width: 1.15rem; height: 1.15rem; color: var(--gold); }

/* ---------- 7. Sources ---------- */
.providers { margin-top: 2rem; font-family: var(--display); font-size: clamp(1.25rem, 5.2vw, 1.75rem); line-height: 1.45; color: var(--ivory-3); max-width: 24ch; }

/* ---------- 8. Philosophy ---------- */
.philosophy { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.statement-xl { font-size: clamp(2.8rem, 12.2vw, 7.2rem); line-height: 1; }
.statement-xl .gold { margin-top: .3em; }

/* ---------- 9. Showcase ---------- */
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin-top: 1.6rem; font: 500 .92rem var(--sans); color: var(--ivory-2); }
.legend li { display: inline-flex; align-items: center; gap: .55rem; }
.key { display: inline-block; flex: none; }
.key-world { width: .95rem; height: .95rem; border-radius: 50%; background: var(--midnight-2); box-shadow: inset 0 0 0 1.5px rgba(217, 179, 94, .8); }
.key-thread { width: 1.8rem; height: 1.5px; background: var(--gold); }
.key-exp { width: 1.8rem; height: 0; border-top: 2.5px dashed var(--emerald); }

/* ---------- 10. Journa·World ---------- */
.world .lead:first-of-type { margin-top: 1.5rem; }
.flow { display: flex; flex-direction: column; align-items: center; gap: .4rem; max-width: 52rem; margin-top: 2.8rem; }
.flow-step { width: min(11rem, 52vw); }
.flow-step figcaption { display: flex; flex-direction: column; gap: .2rem; margin-top: .7rem; }
.flow-name { font-family: var(--display); font-size: 1.55rem; color: var(--ivory); }
.flow-note { font: 500 .85rem var(--sans); letter-spacing: .04em; color: var(--ivory-3); }
.flow-arrow { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--gold); transform: rotate(90deg); }
.flow-arrow svg { width: 1.5rem; height: 1.5rem; }

/* ---------- 11. Manifesto ---------- */
.manifesto { padding-top: clamp(4rem, 12vh, 8rem); padding-bottom: clamp(4rem, 12vh, 8rem); }
.stanza { max-width: 46rem; padding: clamp(2.6rem, 8vh, 4.5rem) 0; border-top: 1px solid rgba(217, 179, 94, .2); }
.stanza:first-child { border-top: 0; }
.stanza .no { font-family: var(--display); font-size: clamp(1.55rem, 6.4vw, 3rem); line-height: 1.15; color: var(--ivory-3); text-wrap: balance; }
.stanza .yes { margin-top: .4rem; font-family: var(--display); font-style: italic; font-size: clamp(2.4rem, 10.4vw, 5rem); line-height: 1.04; color: var(--gold-soft); text-wrap: balance; }
.manifesto .cta { margin-top: 1rem; }

/* ---------- 12. Attributes ---------- */
.attrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 56rem; margin-top: 2.6rem; }
.attrs li { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1.4rem .8rem 1.3rem; border-radius: 18px; background: linear-gradient(180deg, rgba(244, 236, 219, .045), rgba(244, 236, 219, .015)); box-shadow: inset 0 0 0 1px var(--line); font: 500 .98rem/1.3 var(--sans); color: var(--ivory-2); text-wrap: balance; }
.attr-ic { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; color: var(--gold-soft); background: radial-gradient(circle, rgba(217, 179, 94, .14), transparent 70%); box-shadow: inset 0 0 0 1px rgba(217, 179, 94, .4); }
.attr-ic svg { width: 1.6rem; height: 1.6rem; }

/* ---------- 13. Closing ---------- */
.art-closing { width: min(88vw, 34rem); }

/* ---------- 14. Final ---------- */
.final { padding-top: clamp(6rem, 18vh, 11rem); padding-bottom: clamp(6rem, 18vh, 11rem); }
.final h2 { font-size: clamp(2.9rem, 12vw, 6.4rem); }

/* ---------- Footer ---------- */
.foot { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.8rem var(--pad) max(2.8rem, env(safe-area-inset-bottom)); background: #06090f; border-top: 1px solid var(--line); text-align: center; font: 500 .92rem var(--sans); color: var(--ivory-3); }
.foot .fine { margin-top: 0; }

/* ---------- Reveal on scroll (only when scripts run; without them everything simply shows) ---------- */
html.js .reveal { opacity: 0; transform: translateY(1.1rem); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .18s; }
html.js .reveal.d2 { transition-delay: .4s; }
html.js .reveal.d3 { transition-delay: .65s; }
html.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.45, .05, .2, 1); }
html.js .is-in .draw { stroke-dashoffset: 0; }
html.js .w2 { transition-delay: .25s; } html.js .w3 { transition-delay: .5s; } html.js .w4 { transition-delay: .75s; } html.js .w5 { transition-delay: 1s; } html.js .w6 { transition-delay: 1.25s; }
html.js .art-shift .tilt { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, 0deg)); transition: transform 1.9s var(--ease); }
html.js .is-in .art-shift .tilt { transform: none; }
html.js .art .knot-dot { opacity: 0; transition: opacity .8s ease 1.9s; }
html.js .art.is-in .knot-dot { opacity: 1; }
html.js .g03 .core-glow, html.js .g03 .core-spark { opacity: .2; transition: opacity 2s ease 1.3s; }
html.js .is-in .g03 .core-glow, html.js .is-in .g03 .core-spark { opacity: 1; }
html.js .g09 .lbls text { opacity: 0; transition: opacity 1.2s ease 2s; }
html.js .is-in .g09 .lbls text { opacity: 1; }

/* ---------- Motion ---------- */
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .32; } }
@keyframes glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes forming { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } 42%, 78% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes march { to { stroke-dashoffset: -24; } }
@keyframes ripple { 0% { transform: scale(.8); opacity: 1; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.06); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, html.js .words span { opacity: 1; transform: none; }
  html.js .draw { stroke-dashoffset: 0; }
  html.js .art-shift .tilt { transform: none; }
  html.js .art .knot-dot, html.js .g03 .core-glow, html.js .g03 .core-spark, html.js .g09 .lbls text { opacity: 1; }
  .art-chaos .tilt { transform: rotate(var(--r, 0deg)); }
  .forming { stroke-dashoffset: 0; opacity: .6; }
  .pulse { display: none; }
}

/* ---------- Wider screens: more room, larger type, the same single column ---------- */
@media (min-width: 760px) {
  .attrs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .flow { flex-direction: row; align-items: flex-start; justify-content: center; gap: 1rem; }
  .flow-step { width: 12.5rem; }
  .flow-arrow { transform: none; margin-top: 5.2rem; }
  .cta-pair { flex-direction: row; justify-content: center; }
}
@media (min-width: 1100px) {
  .top { padding-inline: 3rem; }
  .art { max-width: 36rem; }
  .art-wide { max-width: 42rem; }
  .flow-step { width: 15rem; }
  .flow-arrow { margin-top: 6.4rem; }
}

/* Big screens: headlines may run wider than the reading measure. */
@media (min-width: 900px) {
  .sec > h2 { max-width: 60rem; }
}

/* A landscape screen: the hero sets the constellation beside the words, so the download sits on the first screen. */
@media (min-width: 1000px) and (orientation: landscape) {
  .hero { flex-direction: row-reverse; gap: clamp(2.5rem, 5vw, 6rem); padding-inline: clamp(3rem, 7vw, 8rem); text-align: left; }
  .hero .art-hero { flex: none; width: min(42vw, 72vh, 42rem); margin: 0; }
  .hero-copy { flex: 0 1 36rem; margin: 0; }
  .hero h1 { font-size: clamp(3.6rem, 5.4vw, 6rem); }
  .hero .lead { margin-left: 0; max-width: 34ch; }
  .hero .cta { align-items: flex-start; }
}
@media (min-width: 1000px) and (min-height: 720px) {
  .scroll-cue { display: grid; }
}

/* The tilts' own angles and timings, which the page once set in style attributes (journa.world's content policy refuses those). */
.tilt-1 { --r:-14deg;--dur:8s; }
.tilt-2 { --r:10deg;--dur:9.5s;--del:-2s; }
.tilt-3 { --r:-7deg;--dur:7.4s;--del:-4s; }
.tilt-4 { --r:15deg;--dur:10s;--del:-1s; }
.tilt-5 { --r:5deg;--dur:8.6s;--del:-3s; }
.tilt-6 { --r:-12deg;--dur:9s;--del:-5s; }
.tilt-7 { --r:19deg;--dur:7.8s;--del:-2.5s; }
.tilt-8 { --r:-9deg;--dur:10.5s;--del:-6s; }
.tilt-9 { --r:-14deg;--tx:-8px;--ty:-28px; }
.tilt-10 { --r:-7deg;--tx:-22px;--ty:86px; }
.tilt-11 { --r:10deg;--tx:-38px;--ty:-40px; }
.tilt-12 { --r:15deg;--tx:-10px;--ty:-44px; }
.tilt-13 { --r:-12deg;--tx:-82px;--ty:-96px; }
.tilt-14 { --r:19deg;--tx:2px;--ty:-8px; }
.tilt-15 { --r:5deg;--tx:10px;--ty:-22px; }
