/* GritWik — a map drawn by hand. Paper, ink, negative space. */
:root {
  --paper: oklch(0.965 0.018 85);
  --paper-2: oklch(0.935 0.026 82);
  --paper-3: oklch(0.9 0.03 80);
  --ink: oklch(0.24 0.018 50);
  --ink-2: oklch(0.44 0.02 50);
  --ink-3: oklch(0.62 0.018 55);
  --rule: oklch(0.3 0.02 50 / 0.16);
  --red: oklch(0.66 0.19 42);          /* flame orange: the riso accent */
  --flame: oklch(0.66 0.19 42);
  --flame-deep: oklch(0.54 0.18 38);
  --flame-soft: oklch(0.66 0.19 42 / 0.12);
  --blue: oklch(0.42 0.09 265);        /* ballpoint */
  --purple: oklch(0.45 0.2 320);       /* the purple marker from the real card */
  --gold: oklch(0.72 0.12 85);
  --moss: oklch(0.52 0.09 140);
  --moss-soft: oklch(0.5 0.09 140 / 0.12);
  --clay-soft: oklch(0.55 0.08 60 / 0.12);

  --font-display: 'Clash Display', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --font-body: 'General Sans', 'Inter', system-ui, sans-serif;
  --font-prose: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-hand: 'Caveat', cursive;
  --font-type: 'General Sans', 'Inter', system-ui, sans-serif;

  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1.0625rem; --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  --text-hero: clamp(2.6rem, 1.4rem + 5.4vw, 5.8rem);
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s8: 3rem; --s10: 4rem; --s12: 6rem; --s16: 8rem;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .27 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-weight: 700; }
em { font-style: normal; }
p { margin: 0; }
.skip { position: absolute; left: var(--s4); top: -3rem; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3); z-index: 60; }
.skip:focus { top: var(--s2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.type { font-family: var(--font-type); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.type.red { color: var(--flame-deep); }
.stamp { display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; padding: .15rem .5rem; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--flame-deep); transform: rotate(-2deg); white-space: nowrap; }
.hand { font-family: var(--font-hand); font-weight: 500; }
.ink-rule { border: 0; height: 1px; background: var(--rule); margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(var(--s4), 4vw, var(--s10)); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1.1rem; text-decoration: none; font-size: var(--text-sm);
  border: 1.5px solid var(--ink); border-radius: 6px; color: var(--ink); background: transparent; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--flame-deep); border-color: var(--flame-deep); }
.btn.red { border-color: var(--flame-deep); color: var(--flame-deep); }
.btn.red:hover { background: var(--flame-deep); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---------- Header ---------- */
.top { position: relative; z-index: 80; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s5); padding: var(--s4) clamp(var(--s4), 4vw, var(--s10)); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.03em; text-decoration: none; line-height: 1; display: inline-flex; align-items: baseline; gap: 0; padding-bottom: 2px; }
.wordmark .wm-sub { margin-left: .6rem; }
.wm-i { position: relative; display: inline-block; }
.wm-i .venn-flame { position: absolute; left: 50%; top: -0.5em; width: .9em; height: .78em; transform: translateX(-50%); transform-origin: 50% 100%; animation: flicker 2.4s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: translateX(-50%) scaleY(1) rotate(-3deg); } to { transform: translateX(-50%) scaleY(1.12) rotate(3deg); } }
.wm-sub { font-family: var(--font-hand); font-size: 1.05rem; color: var(--ink-3); transform: rotate(-6deg) translateY(-4px); display: inline-block; font-weight: 500; }
.mode-switch { justify-self: center; display: inline-flex; gap: 0; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; position: relative; background: var(--paper); }
.mode-tab { position: relative; z-index: 2; padding: .45rem 1rem; border-radius: 999px; text-decoration: none; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; }
.mode-tab.active { color: var(--paper); }
.mode-thumb { position: absolute; z-index: 1; top: 3px; bottom: 3px; left: 3px; width: calc(33.333% - 2px); border-radius: 999px; background: var(--ink); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
html[data-mode="wiki"] .mode-thumb { transform: translateX(100%); }
.wiki-nav { display: none; gap: var(--s3); justify-self: end; align-items: center; position: relative; }
html[data-mode="wiki"] .wiki-nav { display: flex; }
.wiki-nav > a.pull { text-decoration: none; font-family: var(--font-body); font-size: .8125rem; font-weight: 600; color: var(--flame-deep); padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.wiki-nav > a.pull:hover { border-bottom-color: var(--flame); } .wiki-nav > a.pull::before { content: "✦ "; }
.xmenu-btn { display: inline-flex; align-items: center; gap: .5rem; height: 38px; padding: 0 .9rem 0 .7rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--font-type); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.xmenu-btn:hover { background: var(--ink); color: var(--paper); }
.xm-lines { display: inline-grid; gap: 4px; width: 18px; } .xm-lines i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s, width .3s; } .xm-lines i:last-child { width: 11px; }
.xmenu-btn[aria-expanded="true"] .xm-lines i:first-child { transform: translateY(2.75px) rotate(45deg); } .xmenu-btn[aria-expanded="true"] .xm-lines i:last-child { width: 18px; transform: translateY(-2.75px) rotate(-45deg); }
.xmenu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: var(--s4); padding: var(--s4) var(--s5); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 30px 70px -20px oklch(0 0 0 / .5), 0 0 0 5px var(--paper); width: min(760px, calc(100vw - 2rem)); }
.xmenu::before { content: ""; position: absolute; top: -8px; right: 44px; width: 14px; height: 14px; background: var(--paper); border-left: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); transform: rotate(45deg); }
.xm-col { display: grid; gap: 2px; align-content: start; } .xm-h { font-family: var(--font-type); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding: 0 .55rem .35rem; border-bottom: 1px dashed var(--rule); margin-bottom: .3rem; }
.xmenu a { display: grid; gap: 1px; text-decoration: none; color: var(--ink); padding: .45rem .55rem; border-radius: 7px; border-left: 3px solid transparent; }
.xmenu a:hover, .xmenu a:focus-visible { background: var(--paper-2); outline: none; } .xmenu a.active { border-left-color: var(--flame); background: var(--paper-2); }
.xmenu a b { font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1.15; } .xmenu a small { font-family: var(--font-hand); font-size: .92rem; color: var(--ink-2); line-height: 1.2; }
.xm-col:nth-child(3) a:first-child b { color: var(--purple); }
@media (max-width: 760px) { .xmenu { position: fixed; top: auto; left: 1rem; right: 1rem; width: auto; grid-template-columns: 1fr 1fr; gap: var(--s3); padding: var(--s4); max-height: 70vh; overflow: auto; } .xmenu::before { display: none; } .xmenu a b { font-size: .9rem; } .xmenu a small { font-size: .82rem; } .xmenu-btn .xm-word { display: none; } .xmenu-btn { padding: 0 .7rem; } }

main { min-height: 70vh; }

/* ---------- MAP ---------- */
.map-page { padding-bottom: var(--s16); }
.map-head { padding: clamp(var(--s8), 8vh, var(--s12)) 0 var(--s6); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s8); align-items: end; }
.map-head h1 { font-size: clamp(2.4rem, 1.2rem + 4.2vw, 4.8rem); line-height: .95; }
.map-head h1 em { color: var(--flame); }
.map-head .lede { font-family: var(--font-prose); font-size: var(--text-lg); color: var(--ink-2); max-width: 46ch; margin-top: var(--s5); line-height: 1.45; }
.map-head .map-art { position: relative; width: 100%; }
.map-head .map-art img { border-radius: 12px; border: 1.5px solid var(--ink); box-shadow: 0 1px 0 oklch(0.3 0.03 50 / 0.08), 0 14px 30px -18px oklch(0.3 0.05 50 / 0.45); }
.map-head .map-art .stamp { position: absolute; top: var(--s3); left: var(--s3); background: var(--paper); }
.map-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) 280px; }
.map-head .legend { font-size: var(--text-sm); color: var(--ink-2); border-left: 1px solid var(--rule); padding-left: var(--s5); align-self: end; }
.legend .type { margin-bottom: var(--s3); display: block; }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.legend li { display: flex; align-items: center; gap: .7rem; }
.legend svg { width: 22px; height: 22px; flex: none; }
.legend .hand { font-size: 1.15rem; }

.map-frame { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.map-svg { width: 100%; min-width: 820px; height: auto; display: block; font-family: var(--font-hand); }
.map-svg .region, .map-svg .fog, .map-svg .route, .map-svg .compass, .map-svg .scale { pointer-events: none; }
.map-svg .region-fill { stroke: var(--ink); stroke-width: 1.2; fill-opacity: 1; stroke-dasharray: 3 5; stroke-linecap: round; }
.map-svg .region-name { font-size: 30px; fill: var(--ink); font-weight: 700; }
.map-svg .region-sub { font-family: var(--font-type); font-size: 11px; font-weight: 600; letter-spacing: 1.4px; fill: var(--ink-2); text-transform: uppercase; }
.map-svg .route { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .45; }
.map-svg .route.walked { stroke: var(--red); stroke-width: 1.6; stroke-dasharray: none; opacity: .9; }
.map-svg .node { cursor: pointer; }
.map-svg .node .glyph { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; transition: transform .2s ease; transform-box: fill-box; transform-origin: center; }
.map-svg .node:hover .glyph, .map-svg .node:focus .glyph { transform: scale(1.25); stroke: var(--red); }
.map-svg .node .label { font-size: 17px; fill: var(--ink); pointer-events: none; }
.map-svg .node.seen .glyph { fill: var(--ink); }
.map-svg .node.seen .label { fill: var(--ink-2); }
.map-svg .node.here .glyph { stroke: var(--red); fill: var(--red); }
.map-svg .you { font-family: var(--font-hand); font-size: 18px; fill: var(--red); font-weight: 700; }
.map-svg .fog { fill: url(#hatch); stroke: var(--ink-2); stroke-dasharray: 4 4; }
.map-svg .fog-label { font-family: var(--font-type); font-size: 11px; letter-spacing: 1.5px; fill: var(--ink-2); }
.map-svg .compass text, .map-svg .scale text { font-family: var(--font-type); font-size: 10px; font-weight: 600; letter-spacing: 1px; fill: var(--ink-2); }
.map-svg .margin-note { font-size: 16px; fill: var(--ink-3); }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); color: var(--ink-2); font-size: var(--text-sm); }
.map-foot .hand { font-size: 1.3rem; }

/* ---------- Tiny generic ---------- */
.page { padding: clamp(var(--s8), 7vh, var(--s12)) 0 var(--s16); }
.page-head { max-width: 62ch; margin-bottom: var(--s10); }
.page-head h1 { font-size: var(--text-2xl); }
.page-head .lede { font-family: var(--font-prose); font-size: var(--text-lg); color: var(--ink-2); margin-top: var(--s4); line-height: 1.45; }
.page-head .type { display: block; margin-bottom: var(--s3); }
.sym { width: 26px; height: 26px; vertical-align: middle; }

/* ---------- WALL (physical) ---------- */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s10) var(--s6); margin-top: var(--s6); }
.pin-card { position: relative; text-decoration: none; display: block; transition: transform .25s ease; }
.pin-card:hover { transform: translateY(-4px) rotate(0deg) !important; }
.pin-card img { box-shadow: 0 2px 2px oklch(0 0 0 / .08), 0 14px 26px -14px oklch(0 0 0 / .4); background: #fff; }
.pin, .pin-card .pin { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, oklch(0.86 0.1 80), oklch(0.5 0.08 70)); box-shadow: 0 2px 3px oklch(0 0 0 / .35); z-index: 2; }
.pin-card .cap { margin-top: var(--s3); font-family: var(--font-hand); font-size: 1.2rem; color: var(--ink-2); line-height: 1.2; }
.pin-card .cap .type { display: block; margin-top: .2rem; }
.pin-card.real::after { content: "real"; position: absolute; left: 8px; top: 8px; font-family: var(--font-type); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--flame); color: #fff; padding: .15rem .4rem; border-radius: 3px; }
.filter-bar { display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; align-items: baseline; margin-top: var(--s6); }
.tag { display: inline-block; text-decoration: none; font-family: var(--font-hand); font-size: 1.15rem; color: var(--flame-deep); border-bottom: 1px solid currentColor; line-height: 1.1; }
.tag::before { content: "#"; opacity: .55; }
.tag.on { background: var(--flame); color: #fff; border-color: transparent; padding: 0 .4rem; border-radius: 3px; }

/* ---------- CARD ---------- */
.card-view { padding: var(--s6) 0 var(--s16); }
.crumbs { font-family: var(--font-type); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: var(--s6); }
.crumbs a { color: var(--ink-3); }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--s6), 6vw, var(--s12)); align-items: start; }
.artifact { position: sticky; top: var(--s5); }
.artifact img { box-shadow: 0 2px 2px oklch(0 0 0 / .08), 0 30px 50px -34px oklch(0 0 0 / .55); background: #fff; transform: rotate(-1deg); }
.artifact figcaption { font-family: var(--font-hand); font-size: 1.15rem; color: var(--ink-3); margin-top: var(--s4); }
.artifact .coords { margin-top: var(--s5); display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; font-size: var(--text-sm); color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: var(--s4); }
.artifact .coords .type { padding-top: .3rem; }
.artifact .deck-face { margin-top: var(--s6); }
.artifact .deck-face img { border-radius: 10px; border: 1.5px solid var(--ink); transform: rotate(1.5deg); max-width: 260px; }
.artifact .deck-face figcaption { margin-top: var(--s3); }
.reading h1 { font-size: var(--text-2xl); }
.reading .type { display: block; margin-bottom: var(--s3); }
.tags { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: var(--s5) 0 var(--s6); }
.prose p { font-family: var(--font-prose); font-size: 1.125rem; line-height: 1.62; }
.prose p + p { margin-top: 1em; }

.sec { margin-top: var(--s10); }
.sec-h { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.sec-h h2 { font-size: var(--text-xl); }
.sec-h .sym { color: var(--ink); }
.sec-h .count { font-family: var(--font-type); font-size: .7rem; letter-spacing: .1em; color: var(--ink-3); margin-left: auto; }

.voice { margin: var(--s6) 0 var(--s2); display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: var(--s3) 0; }
.voice button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 1rem; }
.voice button:hover { background: var(--ink); color: var(--paper); }
.voice canvas { width: 100%; height: 48px; display: block; }
.voice .time { font-family: var(--font-type); font-size: var(--text-xs); color: var(--ink-2); }
.voice-note { font-family: var(--font-type); font-size: .72rem; color: var(--ink-3); margin-bottom: var(--s5); }
.transcript { font-family: var(--font-hand); font-size: 1.4rem; line-height: 1.3; color: var(--ink-2); margin: 0 0 var(--s6); padding-left: var(--s4); border-left: 2px solid var(--flame); }

.reply { padding: var(--s4) 0; border-top: 1px dashed var(--rule); display: grid; gap: var(--s3); }
.reply img { max-width: 300px; box-shadow: 0 10px 24px -14px oklch(0 0 0 / .5); transform: rotate(1.5deg); }
.reply q { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.25; quotes: "“" "”"; }
.reply .from { font-family: var(--font-type); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.note-line { font-family: var(--font-hand); font-size: 1.25rem; color: var(--ink-3); }
.reply-cta { margin-top: var(--s4); font-size: var(--text-sm); color: var(--ink-2); display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* Salon */
.salon { border: 1px solid var(--rule); border-radius: 12px; padding: var(--s5); position: relative; background: #fff; box-shadow: 0 1px 0 oklch(0.3 0.03 50 / 0.08), 0 10px 24px -14px oklch(0.3 0.05 50 / 0.35); }
.salon::before { content: "back room"; position: absolute; top: -.75rem; left: var(--s5); background: var(--flame); color: #fff; padding: .1rem .5rem; border-radius: 3px; font-family: var(--font-type); font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-2deg); }
.salon-intro { font-size: var(--text-sm); color: var(--ink-2); margin-bottom: var(--s4); max-width: 60ch; }
.post { display: grid; grid-template-columns: 34px 1fr; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--rule); align-items: start; }
.post:first-of-type { border-top: 0; }
.post .av { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--font-hand); font-size: 1.1rem; background: var(--paper); }
.post .who { font-family: var(--font-type); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: .7rem; align-items: baseline; }
.post .who .when { color: var(--ink-3); margin-left: auto; }
.post .body { margin-top: .2rem; line-height: 1.45; font-size: 1.02rem; }
.post.hand .body { font-family: var(--font-hand); font-size: 1.4rem; line-height: 1.25; }
.post.voice .body { font-family: var(--font-type); font-size: .92rem; color: var(--ink-2); }
.post.voice .body::before { content: "▶ "; color: var(--flame-deep); }
.post.drawing .body { font-family: var(--font-hand); font-size: 1.3rem; color: var(--purple); }
.post.mine .av { background: var(--ink); color: var(--paper); }
.riff { margin-top: var(--s4); display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: end; border-top: 1.5px solid var(--ink); padding-top: var(--s4); }
.riff label { font-family: var(--font-type); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: .3rem; }
.riff textarea { width: 100%; font: inherit; font-family: var(--font-hand); font-size: 1.35rem; line-height: 1.25; background: transparent; border: 0; border-bottom: 1px dashed var(--ink-3); color: var(--ink); resize: none; padding: .2rem 0; min-height: 2.4rem; }
.riff textarea:focus { outline: none; border-bottom-color: var(--flame); }
.riff .hint { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--ink-3); }
.projects { margin-top: var(--s5); }
.projects h3 { font-family: var(--font-type); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s3); }
.project { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-top: 1px dotted var(--rule); }
.project b { font-weight: 400; font-size: 1.05rem; }
.project .from { display: block; font-family: var(--font-type); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: .15rem; }
.stage { font-family: var(--font-hand); font-size: 1.1rem; color: var(--flame-deep); white-space: nowrap; }
.stage small { display: block; font-family: var(--font-type); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.salon-soon { margin-top: var(--s5); display: flex; gap: var(--s3); flex-wrap: wrap; }
.soon { font-family: var(--font-type); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border: 1px dashed var(--ink-3); padding: .25rem .55rem; border-radius: 999px; }
.salon-links { margin-top: var(--s4); display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; font-size: var(--text-sm); }

/* Alleys & door */
.alley-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.alley { text-decoration: none; display: block; position: relative; }
.alley img { box-shadow: 0 10px 20px -12px oklch(0 0 0 / .5); transform: rotate(var(--rot, 0deg)); transition: transform .2s ease; }
.alley:hover img { transform: rotate(0deg) translateY(-3px); }
.alley .cap { font-family: var(--font-hand); font-size: 1.15rem; margin-top: var(--s2); color: var(--ink-2); line-height: 1.2; }
.alley .arrow { display: block; font-family: var(--font-hand); color: var(--flame-deep); font-size: 1.25rem; margin-bottom: .2rem; }
.door { margin-top: var(--s10); background: var(--ink); color: var(--paper); padding: var(--s6); position: relative; border-radius: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: var(--s6); align-items: center; }
.door .type { display: block; margin-bottom: var(--s2); color: var(--flame); }
.door h2 { font-size: var(--text-xl); color: var(--paper); }
.door .when { font-family: var(--font-hand); font-size: 1.35rem; color: oklch(0.85 0.02 85); margin: var(--s2) 0 var(--s3); }
.door p.blurb { font-family: var(--font-prose); line-height: 1.5; color: oklch(0.88 0.015 85); max-width: 46ch; }
.door .door-actions { margin-top: var(--s5); display: flex; gap: var(--s3); flex-wrap: wrap; }
.door .btn { border-color: var(--paper); color: var(--paper); }
.door .btn.solid { background: var(--flame); border-color: var(--flame); color: var(--ink); }
.door .btn.solid:hover { background: var(--paper); border-color: var(--paper); }
.door .door .door-art img { border-radius: 8px; border: 1.5px solid oklch(1 0 0 / .25); transform: rotate(2deg); aspect-ratio: 4/5; object-fit: cover; }
.door.opened::after { content: "door opened ✓"; position: absolute; right: var(--s5); top: var(--s4); font-family: var(--font-hand); color: var(--flame); font-size: 1.2rem; transform: rotate(6deg); }

/* ---------- Trail bar ---------- */
.trail { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 35; width: min(680px, calc(100% - 24px)); }
.trail-inner { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s4); align-items: center; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: .45rem .5rem .45rem 1rem; box-shadow: 0 20px 40px -24px oklch(0 0 0 / .5); }
.trail-svg { width: 100%; height: 40px; color: var(--ink-2); }
.trail-meta { display: flex; gap: var(--s4); font-family: var(--font-type); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; align-items: center; }
.trail-meta b { color: var(--ink); font-weight: 400; font-size: .85rem; }
.omni { display: inline-flex; align-items: center; gap: .4rem; }
.omni-bar { width: 60px; height: 6px; border-radius: 999px; border: 1px solid var(--ink-3); overflow: hidden; display: inline-block; }
.omni-bar i { display: block; height: 100%; width: 0; background: var(--flame); transition: width .5s ease; }
.trail-btn { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; background: var(--ink); color: var(--paper); padding: .55rem .9rem; border-radius: 999px; white-space: nowrap; }

/* ---------- GUIDE (deck) ---------- */
.guide { padding-bottom: var(--s16); }
.guide-cover { min-height: 88vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s10); align-items: center; padding-top: var(--s8); }
.guide-cover h1 { font-size: var(--text-hero); line-height: .95; }
.guide-cover .sub { font-size: var(--text-xl); margin-top: var(--s5); }
.guide-cover .sub { font-family: var(--font-prose); }
.guide-cover .sub + .sub { font-style: italic; color: var(--ink-2); margin-top: var(--s2); }
.guide-cover .art { position: relative; }
.guide-cover .art .stamp { position: absolute; top: var(--s4); left: var(--s4); background: var(--paper); transform: rotate(-4deg); }
.guide-cover .art img { border-radius: 12px; border: 1.5px solid var(--ink); }
.guide-cover .copy-stamp { display: inline-block; margin-top: var(--s6); border: 2px solid var(--flame); color: var(--flame-deep); font-family: var(--font-type); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .4rem .7rem; border-radius: 3px; transform: rotate(-3deg); }
.folio { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, .9fr); gap: var(--s8); padding: clamp(var(--s10), 10vh, var(--s16)) 0; border-top: 1px solid var(--rule); align-items: start; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.folio.in { opacity: 1; transform: none; }
.folio .ref { font-family: var(--font-type); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: .5rem; }
.folio .ref b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--flame); font-weight: 700; letter-spacing: 0; line-height: 1; margin-bottom: .3rem; }
.folio h2 { font-size: var(--text-2xl); margin: var(--s2) 0 var(--s5); max-width: 22ch; }
.folio .copy p { font-family: var(--font-prose); color: var(--ink-2); line-height: 1.6; max-width: 56ch; font-size: 1.0625rem; }
.folio .copy p + p { margin-top: 1em; }
.folio .art { position: relative; justify-self: end; width: 100%; max-width: 440px; margin-top: var(--s2); }
.folio .art img { box-shadow: 0 2px 2px oklch(0 0 0 / .08), 0 24px 40px -28px oklch(0 0 0 / .5); transform: rotate(1.2deg); background: #fff; border-radius: 8px; }
.folio:nth-child(even) .art img { transform: rotate(-1.4deg); }
.margin-note { margin-top: var(--s6); font-family: var(--font-hand); font-size: 1.4rem; color: var(--flame-deep); line-height: 1.2; max-width: 34ch; padding-left: var(--s4); border-left: 2px solid var(--flame); }
.margin-note small { display: block; font-family: var(--font-type); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .3rem; }
.folio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); max-width: 60ch; }
.folio-list li { border-top: 1px solid var(--rule); padding-top: var(--s3); display: grid; grid-template-columns: 9rem 1fr; gap: var(--s4); }
.folio-list b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.folio-list span { font-family: var(--font-prose); color: var(--ink-2); line-height: 1.5; font-size: var(--text-base); }
.rings-wrap { max-width: 440px; justify-self: end; width: 100%; }
.rings-svg { width: 100%; height: auto; font-family: var(--font-hand); }
.guide-close { padding: var(--s12) 0 0; text-align: center; }
.guide-close h2 { font-size: var(--text-2xl); }
.guide-close .acts { display: flex; gap: var(--s3); justify-content: center; margin-top: var(--s6); flex-wrap: wrap; }
.guide-rail { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: grid; gap: 9px; z-index: 30; }
.guide-rail a { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-3); display: block; }
.guide-rail a.on { background: var(--flame); border-color: var(--flame); transform: scale(1.3); }

/* ---------- MECHANISM ---------- */
.mech-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s10); align-items: center; }
.bilayer-svg { width: 100%; height: auto; font-family: var(--font-hand); }
.bilayer-svg .sheet { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.bilayer-svg .gap { fill: oklch(0.78 0.06 250 / .22); stroke: var(--blue); stroke-dasharray: 3 5; }
.bilayer-svg .lbl { font-size: 20px; fill: var(--ink); }
.bilayer-svg .lbl.small { font-size: 15px; fill: var(--ink-2); }
.bilayer-svg .red { fill: var(--flame-deep); }
.bilayer-svg .parts circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.bilayer-svg .parts line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); margin-top: var(--s12); }
.move { border-top: 1.5px solid var(--ink); padding-top: var(--s3); }
.move .sym { width: 30px; height: 30px; margin-bottom: var(--s2); }
.move h3 { font-size: var(--text-lg); }
.move p { font-family: var(--font-prose); font-size: var(--text-sm); color: var(--ink-2); margin-top: var(--s2); line-height: 1.5; }
.principles { margin-top: var(--s12); counter-reset: pr; max-width: 70ch; }
.principle { display: grid; grid-template-columns: 4rem 1fr; gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--rule); counter-increment: pr; }
.principle::before { content: counter(pr, decimal-leading-zero); font-family: var(--font-display); color: var(--flame); font-size: 1.1rem; font-weight: 700; padding-top: .35rem; }
.principle h3 { font-size: var(--text-xl); }
.principle p { font-family: var(--font-prose); color: var(--ink-2); margin-top: var(--s2); line-height: 1.55; }
.scales { margin-top: var(--s12); display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); text-align: center; }
.scale-item svg { width: 100%; max-width: 120px; height: auto; margin-inline: auto; }
.scale-item .hand { font-size: 1.3rem; display: block; margin-top: var(--s2); }
.scale-item .type { display: block; margin-top: .1rem; }
.mech-close { margin-top: var(--s12); max-width: 60ch; }
.mech-close h2 { font-size: var(--text-xl); margin-bottom: var(--s3); }
.mech-close p { font-family: var(--font-prose); color: var(--ink-2); line-height: 1.55; }
.mech-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s12); }
.mech-art figure { margin: 0; }
.mech-art img { border-radius: 10px; border: 1.5px solid var(--ink); }
.mech-art figcaption { font-family: var(--font-hand); font-size: 1.2rem; color: var(--ink-2); margin-top: var(--s2); }

/* ---------- SALONS index ---------- */
.salon-list { display: grid; gap: var(--s6); }
.salon-row { display: grid; grid-template-columns: 110px 1fr auto; gap: var(--s5); align-items: center; padding: var(--s5) 0; border-top: 1px solid var(--rule); text-decoration: none; }
.salon-row img { box-shadow: 0 8px 16px -10px oklch(0 0 0 / .5); transform: rotate(-1.5deg); }
.salon-row h3 { font-size: var(--text-lg); }
.salon-row .meta { font-family: var(--font-type); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: .3rem; }
.salon-row .last { font-family: var(--font-hand); font-size: 1.2rem; color: var(--ink-2); margin-top: .3rem; }
.proj-board { margin-top: var(--s12); }
.proj-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.proj-col h3 { font-family: var(--font-type); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); padding-bottom: .4rem; margin-bottom: var(--s3); }
.proj-card { padding: var(--s3) 0; border-bottom: 1px dotted var(--rule); font-size: var(--text-sm); }
.proj-card a { text-decoration: none; }
.proj-card .hand { font-size: 1.1rem; color: var(--flame-deep); display: block; }

/* ---------- Index / Post / Remember ---------- */
.index-cols { columns: 3; column-gap: var(--s10); }
.index-group { break-inside: avoid; margin-bottom: var(--s6); }
.index-group h2 { font-size: var(--text-xl); color: var(--flame); margin-bottom: var(--s2); }
.index-group ul { list-style: none; margin: 0; padding: 0; }
.index-group li { display: flex; justify-content: space-between; gap: var(--s3); padding: .2rem 0; border-bottom: 1px dotted var(--rule); font-size: var(--text-sm); }
.index-group li .n { color: var(--ink-3); font-family: var(--font-type); font-size: .7rem; }
.index-group li.hidden-door { color: var(--flame-deep); font-family: var(--font-hand); font-size: 1.15rem; }
.ruliad { margin-top: var(--s12); max-width: 60ch; border-left: 2px solid var(--ink); padding-left: var(--s5); }
.ruliad h2 { font-size: var(--text-xl); margin: var(--s2) 0; }
.ruliad p { font-family: var(--font-prose); color: var(--ink-2); line-height: 1.55; }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8); }
.way .sym { width: 34px; height: 34px; margin-bottom: var(--s3); }
.way h2 { font-size: var(--text-lg); margin-bottom: var(--s2); }
.way p { font-family: var(--font-prose); font-size: var(--text-sm); color: var(--ink-2); line-height: 1.55; }
.pipeline { margin: var(--s12) 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s3); }
.pipeline div { font-size: var(--text-xs); color: var(--ink-2); padding-top: var(--s2); border-top: 1.5px solid var(--ink); line-height: 1.4; }
.pipeline b { display: block; font-family: var(--font-hand); font-size: 1.3rem; color: var(--ink); font-weight: 500; }
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s10); align-items: start; }
.address { font-style: normal; font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.25; padding: var(--s5) var(--s6); border: 1.5px solid var(--ink); max-width: 420px; transform: rotate(-1deg); background: var(--paper-2); }
.address small { display: block; font-family: var(--font-type); font-size: .7rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink-3); margin-top: var(--s3); line-height: 1.4; }
.rules { font-family: var(--font-prose); font-size: 1.02rem; color: var(--ink-2); line-height: 1.55; margin: 0; padding-left: 1.2rem; }
.rules li + li { margin-top: .5rem; }
.remember-card { border: 1.5px solid var(--ink); padding: clamp(var(--s6), 5vw, var(--s10)); transform: rotate(-.6deg); max-width: 720px; background: var(--paper-2); }
.remember-card h2 { font-size: var(--text-xl); line-height: 1.2; }
.remember-card p { margin-top: var(--s4); font-family: var(--font-prose); color: var(--ink-2); line-height: 1.5; }
.acts { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.lore { margin-top: var(--s12); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s10); align-items: center; }
.lore img { box-shadow: 0 20px 40px -28px oklch(0 0 0 / .5); transform: rotate(1.5deg); }

/* ---------- Ticket overlay ---------- */
.ticket-overlay { position: fixed; inset: 0; z-index: 70; background: oklch(0.2 0.02 50 / .6); display: grid; place-items: center; padding: var(--s4); backdrop-filter: blur(4px); overflow: auto; }
.ticket-card { background: var(--paper); border: 1.5px solid var(--ink); max-width: 540px; width: 100%; padding: var(--s6); box-shadow: 0 40px 80px -30px oklch(0 0 0 / .7); animation: pop .5s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: translateY(20px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.ticket-card img { margin: 0 auto var(--s5); max-width: 300px; transform: rotate(-2deg); box-shadow: 0 20px 30px -20px oklch(0 0 0 / .7); }
.ticket-card h2 { font-size: var(--text-xl); margin: var(--s2) 0 var(--s3); }
.ticket-card p { color: var(--ink-2); line-height: 1.5; }
.ticket-actions { display: flex; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--ink); padding: var(--s8) clamp(var(--s4), 4vw, var(--s10)) calc(var(--s8) + 70px); font-size: var(--text-sm); color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: var(--s8); max-width: var(--wrap); margin-inline: auto; }
.foot-wm { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--ink); margin-bottom: var(--s2); }
.foot-h { font-family: var(--font-type); font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin-bottom: var(--s2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .map-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .map-head .map-art { display: none; }
  .index-cols { columns: 2; }
  .pipeline { grid-template-columns: repeat(4, 1fr); }
  .folio { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .folio .art, .rings-wrap { grid-column: 2; justify-self: start; }
  .moves, .proj-cols { grid-template-columns: repeat(2, 1fr); }
  .scales { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; row-gap: var(--s3); }
  .mode-switch { justify-self: end; }
  .wiki-nav { grid-column: 1 / -1; justify-self: stretch; width: 100%; gap: var(--s3); justify-content: space-between; }
  .wiki-nav > a.pull { font-size: .9rem; }
  .map-head, .guide-cover, .mech-hero, .card-grid, .post-grid, .lore, .ways { grid-template-columns: 1fr; }
  .map-head .map-art { justify-self: start; width: min(100%, 240px); }
  .door { grid-template-columns: 1fr; }
  .door .door-art { max-width: 180px; }
  .mech-art { grid-template-columns: 1fr; }
  .map-head .legend { border-left: 0; padding-left: 0; }
  .guide-cover { min-height: 0; }
  .guide-cover .art { max-width: 320px; }
  .folio { grid-template-columns: 1fr; gap: var(--s5); }
  .folio .ref { display: flex; gap: var(--s3); align-items: baseline; }
  .folio .ref b { font-size: 1.2rem; margin: 0; }
  .folio .art { max-width: 360px; }
  .folio-list li { grid-template-columns: 1fr; gap: var(--s1); }
  .guide-rail { display: none; }
  .artifact { position: static; }
  .alley-grid { grid-template-columns: 1fr; }
  .alley img { max-width: 300px; }
  .trail-inner { grid-template-columns: minmax(0, 1fr) auto; padding: .4rem .4rem .4rem .9rem; gap: var(--s2); }
  .trail-svg { display: none; }
  .trail-meta { gap: var(--s3); overflow: hidden; }
  .omni-bar { width: 40px; }
  .trail-btn { padding: .5rem .7rem; }
  .index-cols { columns: 1; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .moves, .proj-cols { grid-template-columns: 1fr; }
  .scales { grid-template-columns: repeat(2, 1fr); }
  .salon-row { grid-template-columns: 80px 1fr; }
  .salon-row .stage { grid-column: 2; }
  .riff { grid-template-columns: 1fr; }
  .wall-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s8) var(--s4); }
}
@media (max-width: 480px) {
  .wm-sub { display: none; }
  .top { gap: var(--s3); }
  .wordmark { font-size: 1.5rem; white-space: nowrap; }
  .mode-tab { padding: .4rem .45rem; font-size: .58rem; min-height: 32px; }
  .mode-tab-start::after { display: none; }
  .wall-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .folio { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- GATHERINGS ---------- */
.gath { padding-bottom: var(--s16); }
.g-hero { position: relative; min-height: 86vh; display: grid; align-items: end; overflow: hidden; background: var(--ink) center / cover no-repeat; color: var(--paper); }
.g-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.g-hero-video.ready { opacity: 1; }
.g-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.2 0.02 50 / .25) 0%, oklch(0.2 0.02 50 / .55) 45%, oklch(0.2 0.02 50 / .92) 100%), linear-gradient(90deg, oklch(0.2 0.02 50 / .55) 0%, oklch(0.2 0.02 50 / 0) 60%); pointer-events: none; z-index: 1; }
.g-hero-copy { position: relative; z-index: 2; padding-block: var(--s10) var(--s12); max-width: var(--wrap); width: 100%; }
.g-hero-copy h1 { font-size: var(--text-hero); line-height: .95; color: var(--paper); max-width: 12ch; }
.g-hero-copy h1 em { color: var(--flame); }
.g-hero-copy .lede { font-family: var(--font-prose); font-size: var(--text-lg); color: oklch(0.9 0.015 85); max-width: 52ch; margin-top: var(--s5); line-height: 1.45; }
.g-hero-copy .btn { border-color: var(--paper); color: var(--paper); }
.g-hero-copy .btn.solid { background: var(--flame); border-color: var(--flame); color: var(--ink); }
.g-hero-copy .btn.solid:hover { background: var(--paper); border-color: var(--paper); }
.g-hero-stamp { position: absolute; top: var(--s5); right: var(--s5); z-index: 2; background: var(--paper); }
.g-venue { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s10); padding-block: var(--s12) var(--s8); align-items: center; }
.venue-quote { margin: 0; border-left: 3px solid var(--flame); padding-left: var(--s6); }
.venue-quote p { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.2; letter-spacing: -0.02em; }
.venue-quote cite { display: block; margin-top: var(--s3); font-style: normal; font-family: var(--font-type); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.venue-quote cite a { color: var(--flame-deep); }
.prose-p { font-family: var(--font-prose); font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.g-how { padding-block: var(--s8); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); margin-top: var(--s5); }
.how-steps div { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.how-steps b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); margin-bottom: var(--s2); }
.how-steps span { font-family: var(--font-prose); font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; }
.gathering { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(var(--s6), 5vw, var(--s12)); align-items: center; padding-block: clamp(var(--s10), 10vh, var(--s16)); border-bottom: 1px solid var(--rule); }
.gathering.flip .g-media { order: 2; }
.g-media { position: relative; }
.g-media .g-video, .g-media .kb img, .g-media > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--ink); display: block; }
.g-media .kb.vid { position: relative; aspect-ratio: 1/1; }
.g-media .kb.vid img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; animation: none; }
.g-media .g-video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; opacity: 0; transition: opacity .8s ease; }
.g-media .g-video.ready { opacity: 1; }
.g-media .g-video { transform: scale(1.06); }
.gathering.has-video { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-media .kb { overflow: hidden; border-radius: 12px; }
.g-media .kb img { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-2%, 1.5%); } }
.g-media .stamp { position: absolute; top: var(--s4); left: var(--s4); background: var(--paper); transform: rotate(-3deg); white-space: normal; max-width: calc(100% - 2 * var(--s4) - 8px); }
.g-copy h2 { font-size: var(--text-2xl); margin: var(--s2) 0 var(--s2); }
.g-copy h2 .invite { font-family: var(--font-hand); font-size: 1.3rem; font-weight: 500; color: var(--flame-deep); letter-spacing: 0; margin-left: .5rem; white-space: nowrap; }
.g-where { font-size: 1.35rem; color: var(--ink-2); margin-bottom: var(--s4); }
.g-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-top: var(--s6); }
.g-cards .type { display: block; margin-bottom: var(--s2); }
.thumbs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.thumb img { width: 84px; height: 63px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rule); box-shadow: 0 6px 12px -8px oklch(0 0 0 / .5); transition: transform .15s ease; background: #fff; }
.thumb:hover img { transform: translateY(-3px) rotate(-2deg); }
.g-bilayer { margin-top: var(--s6); font-family: var(--font-hand); font-size: 1.35rem; color: var(--flame-deep); line-height: 1.25; padding-left: var(--s4); border-left: 2px solid var(--flame); }
.g-bilayer .type { display: block; margin-bottom: .2rem; color: var(--ink-3); }
.door-bilayer { font-size: 1.3rem; color: var(--flame); margin-top: var(--s3); }
.g-matrix { padding-top: var(--s12); }
.venues { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.venue { display: flex; flex-direction: column; gap: .4rem; padding: var(--s5); border-radius: 12px; text-decoration: none; min-height: 190px; }
.venue b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.venue > span:last-child { font-family: var(--font-prose); font-size: var(--text-sm); color: var(--ink-2); line-height: 1.45; }
.venue.active { background: var(--flame-soft); border: 1.5px solid var(--ink); }
.venue.active:hover { transform: translateY(-2px); }
.venue.uncharted { border: 1.5px dashed var(--ink-3); color: var(--ink-2); }

/* ---------- ECOSYSTEM ---------- */
.loop-wrap { max-width: 820px; margin-inline: auto; }
.loop-svg { width: 100%; height: auto; font-family: var(--font-body); }
.loop-arrow { fill: none; stroke: var(--flame); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; }
.loop-node { cursor: pointer; }
.loop-circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; transition: fill .2s ease; }
.loop-node:hover .loop-circle, .loop-node:focus .loop-circle { fill: var(--flame-soft); stroke: var(--flame-deep); }
.loop-glyph { stroke: var(--ink); stroke-width: 1.5; }
.loop-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; fill: var(--ink); }
.loop-sub { font-family: var(--font-hand); font-size: 15px; fill: var(--ink-2); }
.loop-center .sheet { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.loop-center .gapfill { fill: var(--flame-soft); stroke: var(--flame); stroke-dasharray: 2 4; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin-top: var(--s12); }
.eco-col { border-top: 2px solid var(--ink); padding-top: var(--s4); }
.eco-col h3 { font-size: var(--text-lg); margin: var(--s2) 0 var(--s3); }
.eco-col p { font-family: var(--font-prose); font-size: var(--text-sm); color: var(--ink-2); line-height: 1.55; }
.eco-deck { margin-top: var(--s12); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s8); align-items: center; background: var(--ink); color: var(--paper); border-radius: 12px; padding: var(--s6); }
.eco-deck h2 { font-size: var(--text-xl); color: var(--paper); margin: var(--s2) 0 var(--s3); }
.eco-deck .prose-p { color: oklch(0.88 0.015 85); }
.eco-deck img { border-radius: 8px; aspect-ratio: 2/3; object-fit: cover; border: 1.5px solid oklch(1 0 0 / .25); transform: rotate(-2deg); }
.eco-deck .btn { border-color: var(--paper); color: var(--paper); }
.eco-deck .btn.solid { background: var(--flame); border-color: var(--flame); color: var(--ink); }
.map-svg .node.venue .glyph { fill: var(--flame-soft); stroke: var(--flame-deep); }
.map-svg .venue-label { font-weight: 700; }

@media (max-width: 1024px) {
  .how-steps, .venues { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .g-hero { min-height: 70vh; }
  .g-venue, .gathering, .eco-grid, .eco-deck, .g-cards { grid-template-columns: 1fr; }
  .gathering.flip .g-media { order: 0; }
  .how-steps, .venues { grid-template-columns: 1fr; }
  .eco-deck img { max-width: 180px; }
}

/* ---------- front and back (card page) ---------- */
.faces { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.face { border: 1.5px solid var(--ink); border-radius: 10px; padding: var(--s4) var(--s5); background: var(--paper); position: relative; min-height: 150px; display: flex; flex-direction: column; gap: var(--s3); }
.face::after { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--rule); border-radius: 6px; pointer-events: none; }
.face.aliveness { border-color: var(--flame-deep); }
.face.safety { border-color: var(--moss); }
.face .type b { color: var(--ink); }
.face.aliveness .type b { color: var(--flame-deep); }
.face.safety .type b { color: var(--moss); }
.face p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.25; letter-spacing: -.01em; }
@media (max-width: 640px) { .faces { grid-template-columns: 1fr; } }

/* ---------- draw a hand ---------- */
.hand-controls { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s8); }
.hand-controls .hint { color: var(--ink-3); font-size: 1.15rem; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; background: var(--paper); }
.seg button { border: 0; background: transparent; font: 600 var(--text-sm) var(--font-body); color: var(--ink-2); width: 40px; height: 36px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--paper); }
.hand-spread { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 300px)); justify-content: center; gap: var(--s6); margin: 0 auto var(--s10); perspective: 1400px; }
.hcard { aspect-ratio: 2 / 3; position: relative; cursor: pointer; transform: rotate(var(--rot, 0deg)); transition: transform .25s ease; outline-offset: 6px; }
.hcard:hover { transform: rotate(var(--rot, 0deg)) translateY(-6px); }
.hcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hcard.flipped .hcard-inner { transform: rotateY(180deg); }
.hface { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; border: 1.5px solid var(--ink); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); background: var(--paper); box-shadow: 0 2px 2px oklch(0 0 0 / .08), 0 26px 40px -30px oklch(0 0 0 / .55); overflow: hidden; }
.hface::after { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--rule); border-radius: 9px; pointer-events: none; }
.hface.front.aliveness { border-color: var(--flame-deep); }
.hface.front.safety { border-color: var(--moss); }
.hface.back { transform: rotateY(180deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hface.back::after { border-color: oklch(1 0 0 / .18); }
.hface.back.aliveness { background: oklch(0.3 0.08 40); }
.hface.back.safety { background: oklch(0.3 0.05 150); }
.hface .line { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem); line-height: 1.2; letter-spacing: -.01em; flex: 1; }
.hface .chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.pole { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-type); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; border: 1px solid currentColor; border-radius: 999px; padding: .2rem .55rem; color: var(--ink-2); }
.pole.aliveness { color: var(--flame-deep); }
.pole.safety { color: var(--moss); }
.hface.back .pole { color: oklch(0.9 0.02 85); }
.hface.back .pole.aliveness { color: oklch(0.82 0.12 60); }
.hface.back .pole.safety { color: oklch(0.85 0.08 140); }
.sym-s { width: 12px; height: 12px; }
.hthumb { display: grid; grid-template-columns: 56px 1fr; gap: var(--s3); align-items: center; }
.hthumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); background: #fff; }
.hthumb span { font-family: var(--font-type); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.3; }
.flip-hint { font-family: var(--font-hand); font-size: 1.05rem; color: var(--ink-3); position: absolute; right: var(--s5); bottom: var(--s3); }
.hface.back .flip-hint { color: oklch(0.75 0.02 85); }
.hlink { color: inherit; font-family: var(--font-hand); font-size: 1.25rem; }
.hand-story { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s10); align-items: start; }
.scenes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.scenes li { border-left: 3px solid var(--ink); padding: var(--s2) 0 var(--s2) var(--s4); }
.scenes li.aliveness { border-left-color: var(--flame); }
.scenes li.safety { border-left-color: var(--moss); }
.scenes li p { margin: var(--s1) 0 0; font-family: var(--font-prose); font-size: var(--text-lg); line-height: 1.35; }
.poles-wrap { position: sticky; top: 90px; }
.poles-svg { width: 100%; max-width: 320px; margin: 0 auto; display: block; }
.poles-svg .pole-lbl { font-family: var(--font-type); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; fill: var(--ink-3); }
.poles-svg .pole-lbl.on { fill: var(--ink); }
.poles-svg .pole-n { font-family: var(--font-hand); font-size: 13px; fill: var(--ink-2); }
.hand-foot { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s10); padding-top: var(--s5); border-top: 1px solid var(--rule); font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 900px) { .hand-story { grid-template-columns: 1fr; } .poles-wrap { position: static; } }
@media (max-width: 720px) { .hand-spread { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); } .hcard { transform: none; } .hcard:hover { transform: translateY(-4px); } .hface { padding: var(--s4); } }
@media (max-width: 420px) { .hand-spread { grid-template-columns: 1fr; max-width: 320px; } }

/* ---------- mechanism additions ---------- */
.eight-c { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s8); align-items: center; margin-top: var(--s12); padding: var(--s8); border: 1.5px solid var(--ink); border-radius: 16px; background: var(--paper-2); }
.eight-c h2 { font-family: var(--font-display); font-size: var(--text-xl); margin: var(--s2) 0 var(--s4); letter-spacing: -.01em; }
.eight-c-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.eight-c-list span { font-family: var(--font-hand); font-size: 1.6rem; color: var(--ink); border-bottom: 1px dashed var(--rule); padding-bottom: var(--s1); }
.eight-c-list span:nth-child(odd) { transform: rotate(-1deg); }
.eight-c-list span:nth-child(even) { transform: rotate(1deg); color: var(--flame-deep); }
.night-pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); margin-top: var(--s10); }
.night-pages figure { margin: 0; }
.night-pages img { border-radius: 8px; box-shadow: 0 2px 2px oklch(0 0 0 / .08), 0 20px 34px -26px oklch(0 0 0 / .5); transform: rotate(-1deg); background: #fff; }
.night-pages figure:nth-child(even) img { transform: rotate(1.2deg); }
.night-pages figcaption { font-family: var(--font-hand); font-size: 1.1rem; color: var(--ink-2); margin-top: var(--s3); }
@media (max-width: 900px) { .eight-c { grid-template-columns: 1fr; } .night-pages { grid-template-columns: repeat(2, 1fr); } }

/* back to the Omni compass: visible in both modes */
.to-compass { position: fixed; left: 14px; bottom: 14px; z-index: 36; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: .4rem .85rem .4rem .5rem; box-shadow: 0 16px 30px -20px oklch(0 0 0 / .6); }
.to-compass:hover { background: var(--ink); color: var(--paper); }
.tc-ring { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; }
.tc-ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--flame); }
.tc-ring::after { content: ""; position: absolute; left: 50%; top: -3px; width: 1.5px; height: 7px; margin-left: -.75px; background: currentColor; }
@media (max-width: 720px) { .to-compass span:last-child { display: none; } .to-compass { padding: .4rem .5rem; bottom: 70px; } }

/* ---------- the ecosystem in one drawing ---------- */
.em-wrap { margin: 0; width: 100%; }
.em-svg { width: 100%; height: auto; display: block; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; font-family: var(--font-body); }
.em-gridline { fill: none; stroke: var(--ink); stroke-width: .5; opacity: .08; }
.em-type { font-family: var(--font-type); font-size: 11px; font-weight: 600; letter-spacing: .14em; fill: var(--ink-3); }
.em-hand { font-family: var(--font-hand); font-size: 17px; fill: var(--ink-2); }
.em-hand.small { font-size: 15px; fill: var(--ink-3); }
.em-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; fill: var(--ink); letter-spacing: -.01em; }
.em-n { font-family: var(--font-display); font-weight: 700; font-size: 20px; fill: var(--flame); }
.em-node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; transition: fill .2s, stroke .2s, r .2s; }
.em-station { cursor: pointer; outline: none; }
.em-station:hover .em-node, .em-station:focus .em-node, .em-station.on .em-node { fill: var(--flame-soft); stroke: var(--flame-deep); }
.em-station:hover .em-name, .em-station.on .em-name { fill: var(--flame-deep); }
.em-spiral { fill: none; stroke: var(--ink); stroke-width: .9; opacity: .22; stroke-dasharray: 2 6; stroke-linecap: round; }
.em-loop { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.em-lift, .em-return { fill: none; stroke: var(--flame); stroke-width: 1.8; stroke-dasharray: 5 6; stroke-linecap: round; animation: em-flow 1.6s linear infinite; }
.em-return { stroke: var(--blue); }
.em-arrowhead { fill: var(--flame); }
.em-return + text, .em-return ~ .em-hand { }
@keyframes em-flow { to { stroke-dashoffset: -22; } }
.em-trav rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.em-sheet { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.em-gap { fill: var(--flame-soft); stroke: var(--flame); stroke-dasharray: 2 4; }
.em-spark { fill: var(--flame); animation: em-pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes em-pulse { 50% { opacity: .35; } }
.em-card { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3; }
.em-card.top { fill: oklch(0.985 0.01 85); }
.em-lines { stroke: var(--ink-3); stroke-width: 1.2; stroke-linecap: round; }
.em-thread { fill: none; stroke-width: 1.1; opacity: .55; stroke-dasharray: 3 5; }
.em-dot { stroke: var(--paper); stroke-width: 2; }
.em-sat-name { font-family: var(--font-body); font-weight: 600; font-size: 14px; fill: var(--ink); }
.em-sat-sub { font-family: var(--font-hand); font-size: 14px; fill: var(--ink-3); }
.em-sat a:hover .em-sat-name { fill: var(--flame-deep); text-decoration: underline; }
.em-sat.em-soon .em-dot { fill: var(--paper) !important; stroke: var(--blue); stroke-dasharray: 2 2; }
.em-sat.em-soon .em-sat-name { fill: var(--ink-2); }
.em-mini { fill: var(--paper); stroke: var(--ink); stroke-width: 1.1; }
.em-scale-n { font-family: var(--font-display); font-weight: 600; font-size: 15px; fill: var(--ink); }
.em-scale-s { font-family: var(--font-hand); font-size: 14px; fill: var(--ink-3); }
.em-dots { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.em-caption { margin-top: var(--s3); font-family: var(--font-hand); font-size: 1.2rem; line-height: 1.3; color: var(--ink-2); min-height: 2.6em; }
.em-caption b { font-family: var(--font-display); font-weight: 600; color: var(--flame-deep); font-size: 1rem; }
.folio.wide { grid-template-columns: 5rem minmax(0, 1fr); }
.folio.wide .copy { max-width: 70ch; }
.folio.wide .em-wrap { grid-column: 1 / -1; margin-top: var(--s6); }
.folio.wide .spiral-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4) var(--s6); margin: var(--s5) 0 0; padding: 0; list-style: none; counter-reset: step; }
.folio.wide .spiral-steps li { border-top: 1.5px solid var(--ink); padding-top: var(--s3); }
.folio.wide .spiral-steps b { display: block; font-family: var(--font-display); font-size: var(--text-lg); color: var(--flame); margin-bottom: .2rem; }
.folio.wide .spiral-steps span { font-family: var(--font-prose); color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.eco-hero { margin: var(--s6) 0 var(--s10); }
@media (max-width: 760px) {
  .em-svg { min-width: 980px; }
  .em-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
  .folio.wide .spiral-steps { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .em-lift, .em-return, .em-spark { animation: none; } .em-trav { display: none; } }

/* ---------- the worn artifact ---------- */
.worn-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s5); margin-top: var(--s8); }
.worn-fig { margin: 0; grid-column: span var(--span, 2); }
.worn-fig img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--ink); }
.worn-fig figcaption { font-family: var(--font-hand); font-size: 1.15rem; line-height: 1.25; color: var(--ink-2); margin-top: var(--s3); }
.worn-fig figcaption .type { display: block; margin-bottom: .25rem; color: var(--flame-deep); }
.worn-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s8); margin-top: var(--s12); }
.worn-cols > div { border-top: 2px solid var(--ink); padding-top: var(--s4); }
.worn-cols h3 { font-size: var(--text-lg); margin: var(--s2) 0 var(--s3); }
.worn-cols p { font-family: var(--font-prose); color: var(--ink-2); line-height: 1.6; font-size: 1rem; }
.worn-foot { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-top: var(--s10); padding-top: var(--s4); border-top: 1px solid var(--rule); color: var(--ink-3); font-size: var(--text-sm); }
.worn-foot .hand { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 900px) { .worn-grid { grid-template-columns: 1fr 1fr; } .worn-fig { grid-column: span 1; } .worn-fig[style="--span:6"] { grid-column: span 2; } .worn-cols { grid-template-columns: 1fr; } }

.artifact .back-img { margin-top: var(--s5); width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 18px 40px -22px oklch(0 0 0 / .55); transform: rotate(.6deg); }
.artifact figcaption b { font-family: var(--font-display); font-weight: 600; color: var(--flame-deep); }

/* ---------- the salon room (mock-up) ---------- */
.room-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s5); margin-top: var(--s8); align-items: start; }
.room-col { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s3); }
.room-col h2 { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-lg); margin: var(--s2) 0 0; border-bottom: 1.5px solid var(--ink); padding-bottom: var(--s2); }
.room-col h2 small { font-family: var(--font-hand); font-size: .95rem; color: var(--ink-3); font-weight: 400; }
.msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); max-height: 420px; overflow: auto; }
.msg { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s3); background: var(--paper-2, oklch(0.97 0.012 85)); border: 1px solid var(--rule); border-radius: 10px 10px 10px 2px; padding: .55rem .8rem; }
.msg b { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--flame-deep); } .msg small { font-family: var(--font-type); font-size: .7rem; color: var(--ink-3); }
.msg span { grid-column: 1 / -1; font-family: var(--font-hand); font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
.msg.me { border-radius: 10px 10px 2px 10px; background: var(--flame-soft); } .msg.me b { color: var(--ink); }
.say, .add { display: flex; gap: var(--s2); } .say input, .add input { flex: 1; min-width: 0; font-family: var(--font-hand); font-size: 1.05rem; padding: .55rem .8rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; }
.todos, .rems, .docs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.todo label { display: flex; gap: .6rem; align-items: flex-start; font-family: var(--font-hand); font-size: 1.08rem; line-height: 1.3; cursor: pointer; } .todo input { margin-top: .3rem; accent-color: var(--flame); }
.todo small { display: block; font-family: var(--font-type); font-size: .7rem; color: var(--ink-3); margin-left: 1.7rem; }
.todo.done span { text-decoration: line-through; color: var(--ink-3); }
.rem { display: grid; grid-template-columns: 2.6rem 1fr; gap: var(--s2); align-items: baseline; font-family: var(--font-hand); font-size: 1.02rem; } .rem b { font-family: var(--font-type); font-size: .72rem; letter-spacing: .08em; color: var(--paper); background: var(--ink); border-radius: 4px; text-align: center; padding: .15rem 0; }
.doc { display: grid; grid-template-columns: 26px 1fr; gap: var(--s3); align-items: center; } .doc-ic { width: 22px; height: 28px; border: 1.5px solid var(--ink); border-radius: 2px; position: relative; background: #fff; } .doc-ic::after { content: ""; position: absolute; left: 4px; right: 4px; top: 7px; height: 2px; background: var(--ink-3); box-shadow: 0 5px 0 var(--ink-3), 0 10px 0 var(--ink-3); }
.doc b { font-family: var(--font-body); font-weight: 600; font-size: .92rem; display: block; } .doc small { font-family: var(--font-type); font-size: .7rem; color: var(--ink-3); }
.add-doc { justify-self: start; }
.room-cal { margin-top: var(--s6); padding: var(--s5); border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); }
.room-cal > h2 { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; font-size: var(--text-lg); margin: 0 0 var(--s3); } .room-cal > h2 small { font-family: var(--font-hand); font-weight: 400; font-size: 1rem; color: var(--ink-2); }
.cal { display: grid; gap: var(--s3); } .cal-h { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.cal-tog { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px; background: var(--paper-2); } .cal-tog button { border: 0; background: none; font-family: var(--font-type); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; color: var(--ink-2); cursor: pointer; } .cal-tog button.on { background: var(--ink); color: var(--paper); }
.cal-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .cal-wgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-family: var(--font-type); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--ink-3); padding-bottom: 2px; }
.cal-day { min-height: 76px; border: 1px solid var(--rule); border-radius: 8px; padding: 4px 5px 5px; display: grid; grid-template-rows: auto 1fr; gap: 3px; min-width: 0; background: var(--paper); } .cal-day.empty { border: 0; background: none; }
.cal-day.today { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); } .cal-dh { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-type); font-size: .75rem; color: var(--ink-2); } .cal-dh b { font-weight: 600; color: var(--ink); } .cal-day.today .cal-dh b { color: var(--red); }
.cal-week .cal-day { min-height: 150px; } .cal-week .cal-dh { justify-content: flex-start; gap: .4rem; } .cal-week .cal-dh b { font-size: 1.1rem; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; min-width: 0; }
.cal-ev { font-family: var(--font-hand); font-size: .9rem; line-height: 1.25; padding: 1px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); border-left: 3px solid transparent; min-width: 0; }
.cal-week .cal-ev { font-size: 1rem; padding: 3px 7px; }
.cal-ev.c-mass { background: oklch(0.92 0.06 42); border-left-color: var(--flame); } .cal-ev.c-cards { background: oklch(0.93 0.04 260); border-left-color: var(--blue); } .cal-ev.c-mail { background: oklch(0.93 0.05 140); border-left-color: var(--moss, #4f7f5f); } .cal-ev.c-table { background: oklch(0.93 0.05 300); border-left-color: var(--purple); } .cal-ev.c-men { background: var(--paper-2); border-left-color: var(--ink); } .cal-ev.c-youth { background: oklch(0.93 0.06 350); border-left-color: #ff4fb0; } .cal-ev.c-salon { background: oklch(0.95 0.03 300); border-left-color: var(--purple); border-left-style: dashed; } .cal-ev.c-none { color: var(--ink-3); background: none; }
@media (max-width: 760px) { .cal-mgrid { gap: 2px; } .cal-day { min-height: 56px; padding: 3px; border-radius: 5px; } .cal-month .cal-ev { font-size: 0; padding: 0; height: 5px; border-radius: 3px; border-left: 0; } .cal-month .cal-ev.c-mass { background: var(--flame); } .cal-month .cal-ev.c-cards { background: var(--blue); } .cal-month .cal-ev.c-mail { background: var(--moss, #4f7f5f); } .cal-month .cal-ev.c-table, .cal-month .cal-ev.c-salon { background: var(--purple); } .cal-month .cal-ev.c-men { background: var(--ink); } .cal-month .cal-ev.c-youth { background: #ff4fb0; } .cal-wgrid { grid-template-columns: 1fr; } .cal-week .cal-day { min-height: 0; } .cal-week .cal-ev { white-space: normal; } }
.room-foot { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-top: var(--s8); padding-top: var(--s4); border-top: 1px solid var(--rule); color: var(--ink-3); font-size: var(--text-sm); } .room-foot .hand { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 1000px) { .room-grid { grid-template-columns: 1fr; } .msgs { max-height: 300px; } }

/* ---------- membership (mock-up) ---------- */
.price-row { display: grid; grid-template-columns: 340px 1fr; gap: var(--s6); margin-top: var(--s8); align-items: start; }
.price-card { background: var(--ink); color: var(--paper); border-radius: 12px; padding: var(--s5); display: grid; gap: var(--s3); transform: rotate(-.6deg); } .price-card .type { color: var(--red); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 4.2rem; line-height: .9; letter-spacing: -.03em; } .per { font-family: var(--font-hand); color: oklch(0.8 0.02 85); }
.inc { margin: 0; padding: 0 0 0 1.1rem; font-family: var(--font-hand); font-size: 1.05rem; line-height: 1.5; } .price-card .btn.solid { background: var(--red); border-color: var(--red); color: var(--paper); justify-self: start; } .price-card .hand { color: oklch(0.8 0.02 85); font-size: .98rem; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s6); } .perks li { border-top: 1.5px solid var(--ink); padding-top: var(--s3); display: grid; gap: .3rem; } .perks b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; } .perks span { font-family: var(--font-prose); color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.where { margin-top: var(--s10); } .where h2 { font-size: var(--text-xl); margin: 0 0 var(--s3); }
.bar { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; height: 44px; } .bar span { width: var(--w); display: grid; place-items: center; font-family: var(--font-type); font-size: .68rem; letter-spacing: .04em; color: var(--paper); text-align: center; padding: 0 .3rem; white-space: nowrap; overflow: hidden; }
.bar .b1 { background: var(--moss); } .bar .b2 { background: var(--flame); } .bar .b3 { background: var(--blue); } .bar .b4 { background: var(--purple); }
.where .hand { color: var(--ink-2); font-size: 1.1rem; margin-top: var(--s3); }
@media (max-width: 860px) { .price-row { grid-template-columns: 1fr; } .price-card { transform: none; } .perks { grid-template-columns: 1fr; } .bar { height: auto; flex-direction: column; border-radius: 10px; } .bar span { width: 100%; padding: .5rem; } }

.mode-tab-start { color: var(--red); } .mode-tab-start::after { content: "↗"; margin-left: .3rem; font-size: .8em; }

/* the wick: a candle "i" whose flame is two rings meeting; the lens between them is the omni */
.venn-flame { overflow: visible; }
.venn-flame .vf-a { fill: none; stroke: #ff4fb0; stroke-width: 2.1; stroke-linecap: round; }
.venn-flame .vf-b { fill: none; stroke: #4f6fd8; stroke-width: 2.1; }
.venn-flame .vf-lens { fill: #ff8a3d; }
.venn-flame .vf-spark { fill: #7a3fe0; }

/* the real room */
.gathering.real .g-media .kb.vid { aspect-ratio: 16/10; }
.gathering.real .g-media .g-video { object-fit: cover; }
.gathering.real .stamp { background: var(--ink); color: var(--paper); }
.g-hero-stamp.real { background: var(--ink); color: var(--paper); border-color: var(--ink); white-space: normal; max-width: min(60vw, 320px); text-align: right; }

/* the real room, in the salon mock-up */
.room-real { margin: var(--s6) 0 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s3); align-items: stretch; }
.room-real img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--ink); display: block; aspect-ratio: 16/10; }
.room-real figcaption { grid-column: 1 / -1; color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 760px) { .room-real { grid-template-columns: 1fr; } }

/* about: the rings */
.about-grid { display: grid; grid-template-columns: minmax(280px, 520px) 1fr; gap: var(--s8); margin-top: var(--s8); align-items: start; }
.fractal-fig { margin: 0; position: sticky; top: var(--s6); }
.fractal-fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.fractal-fig .ring circle { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.fractal-fig .ring.trust circle { stroke-dasharray: 6 8; stroke-width: 2.4; }
.fractal-fig .ring.fed circle { stroke: var(--blue); }
.fractal-fig .ring.guild circle { stroke: var(--flame); }
.fractal-fig .ring.fam circle { stroke: var(--purple); }
.fractal-fig .omni-dot circle { fill: var(--purple); stroke: var(--ink); stroke-width: 1.5; }
.fractal-fig .omni-dot .ring-l { fill: var(--paper); font-size: 11px; }
.fractal-fig .ring-l { font-family: var(--font-type); font-size: 12px; letter-spacing: .14em; fill: var(--ink); }
.fractal-fig .ring-s { font-family: var(--font-hand); font-size: 14px; fill: var(--ink-2); }
.fractal-fig .spokes line { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 6; }
.fractal-fig figcaption { margin-top: var(--s3); color: var(--ink-2); font-size: 1.05rem; }
.about-copy h2 { font-size: var(--text-xl); margin: var(--s6) 0 var(--s3); } .about-copy h2:first-child { margin-top: 0; }
.rings { margin: 0; padding: 0 0 0 1.4rem; display: grid; gap: var(--s3); font-family: var(--font-prose); font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); }
.rings li::marker { font-family: var(--font-display); font-weight: 700; color: var(--flame-deep); }
.rings b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); }
.plain li { font-family: var(--font-hand); font-size: 1.12rem; line-height: 1.4; padding-left: 1.4rem; position: relative; color: var(--ink); }
.plain li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); border: 1.5px solid var(--ink); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .fractal-fig { position: static; max-width: 460px; } }

/* the Omni score: chip, ticket, member page */
.cred-chip { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--ink-2); font-family: var(--font-type); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border: 1px solid var(--rule); border-radius: 999px; }
.cred-chip:hover { border-color: var(--ink); color: var(--ink); }
.cred-bar { width: 34px; height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; display: inline-block; } .cred-bar i { display: block; height: 100%; width: 0; background: var(--purple); transition: width .5s; }
.cred-card { border-color: var(--purple); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--purple), 0 40px 80px -30px oklch(0 0 0 / .7); }
.cred-seal { width: 72px; height: 62px; margin: 0 auto var(--s4); } .cred-seal svg { width: 100%; height: 100%; overflow: visible; }
.cred-unlocks { margin: var(--s3) 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; } .cred-unlocks li { font-family: var(--font-hand); font-size: 1.08rem; line-height: 1.3; padding-left: 1.3rem; position: relative; color: var(--ink); }
.cred-unlocks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); }
.cred-pair { margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1.5px dashed var(--purple); border-radius: 8px; } .cred-pair p { margin: .3rem 0 0; font-family: var(--font-hand); font-size: 1.05rem; }
.cred-card .fine { font-family: var(--font-type); font-size: .68rem; color: var(--ink-3); margin-top: var(--s3); }
.price-row.three { grid-template-columns: repeat(3, 1fr); }
.price-row.three .price-card { transform: none; } .price-row.three .price { font-size: 3.4rem; }
.price-card.standard { background: var(--paper-2); color: var(--ink); border: 1.5px solid var(--ink); } .price-card.standard .per, .price-card.standard .hand { color: var(--ink-2); } .price-card.standard .type { color: var(--flame-deep); } .price-card.standard .btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price-card.need { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink); } .price-card.need .per { color: var(--ink-2); } .price-card.need .type { color: var(--purple); }
.perks-h { font-size: var(--text-xl); margin: var(--s10) 0 var(--s4); }
#joinNote { display: block; margin-top: var(--s3); color: var(--ink-2); }
.score-explain { margin-top: var(--s10); padding: var(--s6); border: 1.5px solid var(--purple); border-radius: 10px; background: oklch(0.96 0.02 300 / .5); } .score-explain h2 { font-size: var(--text-xl); margin: var(--s2) 0 var(--s3); }
.score-row { display: grid; grid-template-columns: 300px 1fr; gap: var(--s6); margin-top: var(--s8); align-items: start; }
.score-dial { background: var(--ink); color: var(--paper); border-radius: 12px; padding: var(--s5); display: grid; gap: .3rem; justify-items: start; } .score-dial .type { color: var(--purple); }
.score-n { font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: .9; letter-spacing: -.03em; } .score-t { font-family: var(--font-hand); font-size: 1.3rem; color: var(--flame); }
.score-bar { width: 100%; height: 8px; border-radius: 4px; background: oklch(0.35 0.02 300); overflow: hidden; margin-top: .4rem; } .score-bar i { display: block; height: 100%; background: var(--purple); transition: width .5s; }
.score-dial .hand { color: oklch(0.82 0.02 85); }
.score-log { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; padding: var(--s4) var(--s5); } .score-log ul { list-style: none; margin: var(--s2) 0; padding: 0; display: grid; gap: .3rem; } .score-log li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s3); font-family: var(--font-hand); font-size: 1.02rem; } .score-log b { font-family: var(--font-type); font-size: .8rem; text-align: right; } .score-log b.up { color: var(--moss-deep, #2f7d4f); } .score-log b.down { color: var(--red); } .score-log .hand { color: var(--ink-3); font-size: .95rem; margin: var(--s3) 0 0; }
.pair-card { margin-top: var(--s6); padding: var(--s5) var(--s6); border: 2px solid var(--purple); border-radius: 12px; background: oklch(0.96 0.02 300 / .6); } .pair-card h3 { font-size: var(--text-xl); margin: var(--s2) 0 var(--s2); } .pair-card.locked { border-style: dashed; opacity: .85; } .pair-card .hand { font-size: 1.1rem; color: var(--ink-2); }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); } .tier { border: 1.5px solid var(--rule); border-radius: 10px; padding: var(--s4); display: grid; gap: .4rem; align-content: start; opacity: .6; } .tier.open { opacity: 1; border-color: var(--ink); } .tier.now { border-color: var(--purple); box-shadow: 0 0 0 3px oklch(0.8 0.1 300 / .4); }
.tier b { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; } .tier ul { margin: 0; padding: 0 0 0 1rem; font-family: var(--font-hand); font-size: .98rem; line-height: 1.3; color: var(--ink-2); display: grid; gap: .25rem; }
.fine-print { margin-top: var(--s6); color: var(--ink-3); font-size: .95rem; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } .price-row.three { grid-template-columns: 1fr; } .score-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } .cred-chip span:last-child { display: none; } }

/* mastery: the matchmaking network */
.scissor-fig .sc-rings circle { fill: none; stroke-width: 2.4; } .scissor-fig .sc-rings .m { stroke: var(--blue); } .scissor-fig .sc-rings .n { stroke: var(--red, #c23b3b); }
.scissor-fig .sc-lens { fill: oklch(0.85 0.12 300 / .35); stroke: var(--purple); stroke-width: 1.5; }
.scissor-fig .sc-l { font-family: var(--font-type); font-size: 13px; letter-spacing: .16em; fill: var(--ink); } .scissor-fig .sc-s { font-family: var(--font-hand); font-size: 14px; fill: var(--ink-2); }
.scissor-fig .sc-o { font-family: var(--font-display); font-weight: 700; font-size: 18px; fill: var(--purple); } .scissor-fig .sc-os { font-family: var(--font-hand); font-size: 14px; fill: var(--ink); }
.scissor-fig .sc-arrow { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 6; }
.net-fig { margin: var(--s5) 0 0; padding: var(--s4); border: 1.5px dashed var(--rule); border-radius: 10px; background: var(--paper); } .net-fig svg { width: 100%; height: auto; display: block; }
.net-fig .net-lines line { stroke: var(--purple); stroke-width: 1.6; stroke-dasharray: 4 5; } .net-fig .net-key .pair { stroke: var(--purple); stroke-width: 1.6; stroke-dasharray: 4 5; }
.net-fig .per { fill: var(--ink); } .net-fig .fam circle { fill: var(--flame); stroke: var(--paper); stroke-width: 1.5; } .net-fig .sin { fill: none; stroke: var(--ink); stroke-width: 2; }
.net-fig .net-key text { font-family: var(--font-hand); font-size: 13px; fill: var(--ink-2); }
.net-fig figcaption { margin-top: var(--s3); color: var(--ink-2); font-size: 1rem; }
.mastery .acts { flex-wrap: wrap; }

/* the pairing, played out */
.pair-sim { margin: var(--s8) 0 var(--s4); padding: var(--s5) var(--s5) var(--s4); border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 6px 6px 0 var(--paper-2); }
.ps-head h2 { margin: var(--s2) 0 0; font-size: var(--text-xl); }
.ps-svg { width: 100%; max-width: 900px; height: auto; display: block; margin: var(--s4) auto 0; font-family: var(--font-hand); overflow: visible; }
.ps-ground path { fill: none; stroke: var(--rule); stroke-width: 1.5; stroke-dasharray: 2 7; }
.ps-ring { fill: none; stroke-width: 2.2; } .ps-ring.you { stroke: var(--blue); } .ps-ring.them { stroke: var(--red); transition: opacity .8s; }
.ps-dot { fill: var(--ink); } .ps-dot.them { fill: var(--red); }
.ps-l { font-family: var(--font-type); font-size: 13px; letter-spacing: .18em; fill: var(--ink); } .ps-s { font-size: 14px; fill: var(--ink-2); } .ps-linel { font-size: 12px; fill: var(--purple); }
.ps-bar { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1; } .ps-fill { fill: var(--purple); transition: width 1.2s cubic-bezier(.2,.8,.2,1); } .ps-line { stroke: var(--purple); stroke-width: 2; }
.ps-pt { font-size: 14px; fill: var(--moss-deep, #2f7d4f); font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.ps-fog ellipse { fill: var(--paper-2); opacity: .97; transition: opacity 1.2s; } .ps-q { font-family: var(--font-display); font-weight: 700; font-size: 44px; fill: var(--ink-3); transition: opacity .6s; }
.ps-card rect { fill: #fff; stroke: var(--ink); stroke-width: 1.5; } .ps-ct { font-family: var(--font-type); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; fill: var(--red); } .ps-cp { font-family: var(--font-hand); font-size: 12px; line-height: 1.15; color: var(--ink); }
.ps-card { opacity: 0; transition: opacity .8s; } .ps-who { opacity: 0; transition: opacity .8s; }
.ps-link { stroke: var(--purple); stroke-width: 2; stroke-dasharray: 6 6; stroke-dashoffset: 0; opacity: 0; transition: opacity .6s; }
.ps-lens path { fill: oklch(0.85 0.12 300 / 0); stroke: var(--purple); stroke-width: 0; transition: fill 1s, stroke-width .6s; } .ps-o { font-family: var(--font-display); font-weight: 700; font-size: 14px; fill: var(--purple); opacity: 0; transition: opacity .8s; }
.ps-spark text { font-size: 22px; fill: var(--flame); opacity: 0; transform-origin: center; transition: opacity .4s; }
.ps-cap { font-size: 19px; fill: var(--ink); }
.ps-you, .ps-them { transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.pair-sim[data-step="4"] .ps-you { transform: translateX(110px); } .pair-sim[data-step="4"] .ps-them { transform: translateX(-110px); }
.pair-sim[data-step="4"] .ps-link { opacity: 0; animation: none; }
/* steps */
.pair-sim[data-step="0"] .ps-them .ps-ring, .pair-sim[data-step="0"] .ps-them .ps-dot { opacity: .25; } .pair-sim[data-step="1"] .ps-them .ps-ring, .pair-sim[data-step="1"] .ps-them .ps-dot { opacity: .25; }
.pair-sim[data-step="0"] .ps-fill { width: 30px; }
.pair-sim:not([data-step="0"]) .ps-fill { width: 96px; } .pair-sim:not([data-step="0"]) .ps-pt { opacity: 1; transform: none; }
.pair-sim[data-step="1"] .ps-pt:nth-child(1) { transition-delay: .1s; } .pair-sim[data-step="1"] .ps-pt:nth-child(2) { transition-delay: .4s; } .pair-sim[data-step="1"] .ps-pt:nth-child(3) { transition-delay: .7s; } .pair-sim[data-step="1"] .ps-pt:nth-child(4) { transition-delay: 1s; }
.pair-sim[data-step="2"] .ps-fill, .pair-sim[data-step="3"] .ps-fill, .pair-sim[data-step="4"] .ps-fill { width: 134px; }
.pair-sim[data-step="2"] .ps-fog ellipse, .pair-sim[data-step="3"] .ps-fog ellipse, .pair-sim[data-step="4"] .ps-fog ellipse { opacity: 0; }
.pair-sim[data-step="2"] .ps-q, .pair-sim[data-step="3"] .ps-q, .pair-sim[data-step="4"] .ps-q { opacity: 0; }
.pair-sim[data-step="3"] .ps-card, .pair-sim[data-step="4"] .ps-card, .pair-sim[data-step="3"] .ps-who, .pair-sim[data-step="4"] .ps-who { opacity: 1; }
.pair-sim[data-step="3"] .ps-link { opacity: 1; animation: ps-dash 1.2s linear infinite; }
.pair-sim[data-step="4"] .ps-lens path { fill: oklch(0.85 0.12 300 / .45); stroke-width: 1.5; } .pair-sim[data-step="4"] .ps-o { opacity: 1; }
.pair-sim[data-step="4"] .ps-spark text { opacity: 1; animation: ps-pop .9s ease-out both; } .pair-sim[data-step="4"] .ps-spark text:nth-child(2) { animation-delay: .15s; } .pair-sim[data-step="4"] .ps-spark text:nth-child(3) { animation-delay: .3s; } .pair-sim[data-step="4"] .ps-spark text:nth-child(4) { animation-delay: .45s; } .pair-sim[data-step="4"] .ps-spark text:nth-child(5) { animation-delay: .6s; }
.pair-sim[data-step="4"] .ps-you .ps-ring, .pair-sim[data-step="4"] .ps-them .ps-ring { animation: ps-breathe 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ps-dash { to { stroke-dashoffset: -24; } }
@keyframes ps-pop { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ps-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .pair-sim * { animation: none !important; transition: none !important; } }
.ps-ctl { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s3); }
.ps-steps { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: var(--s3); flex-wrap: wrap; } .ps-steps li { font-family: var(--font-type); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: .2rem .5rem; border: 1px solid var(--rule); border-radius: 999px; } .ps-steps li.on { color: var(--paper); background: var(--purple); border-color: var(--purple); }
.ps-note { margin: var(--s3) 0 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) { .pair-sim { padding: var(--s4); } .ps-steps { margin-left: 0; } .ps-cap { font-size: 20px; } }

/* IRL: dirty feet retreats */
.irl-hero { margin: 0 0 var(--s8); display: grid; gap: var(--s3); } .irl-hero video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--paper-2); background: #1a1620; } .irl-hero figcaption { color: var(--ink-2); font-size: 1.05rem; }
.irl-h { font-size: var(--text-xl); margin: 0 0 var(--s4); }
.fmts { list-style: none; margin: 0 0 var(--s10); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: var(--s4); }
.fmt { border: 1.5px solid var(--ink); border-radius: 10px; padding: var(--s4) var(--s4) var(--s3); background: var(--paper); display: grid; gap: var(--s2); align-content: start; transform: rotate(var(--r, 0deg)); }
.fmt:nth-child(odd) { --r: -.5deg; } .fmt:nth-child(even) { --r: .5deg; } .fmt:nth-child(3) { border-color: var(--red); box-shadow: 5px 5px 0 oklch(0.92 0.06 42); }
.fmt h3 { font-size: 1.35rem; margin: 0; line-height: 1.1; } .fmt .prose-p { font-size: .98rem; margin: 0; } .fmt-q { color: var(--ink-2); font-size: 1.05rem; margin: 0; } .fmt-status { font-family: var(--font-type); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-top: 1px dashed var(--rule); padding-top: var(--s2); margin-top: var(--s1); }
.irl-grid { display: grid; grid-template-columns: minmax(280px, 480px) 1fr; gap: var(--s8); align-items: start; }
.irl-fig { margin: 0; position: sticky; top: var(--s6); } .irl-fig svg { width: 100%; height: auto; display: block; } .irl-fig figcaption { margin-top: var(--s3); color: var(--ink-2); font-size: 1.02rem; }
.irl-fig.small { position: static; max-width: 340px; margin: var(--s4) 0 var(--s2); }
.irl-copy h2 { font-size: var(--text-xl); margin: var(--s6) 0 var(--s3); } .irl-copy h2:first-child { margin-top: 0; }
.fire-svg { background: var(--ink); border-radius: 12px; border: 2px solid var(--ink); } .fr-ground ellipse { fill: none; stroke: oklch(0.6 0.03 85 / .6); stroke-width: 1.5; stroke-dasharray: 3 7; } .fr-people circle, .fr-people path { fill: oklch(0.35 0.03 300); stroke: oklch(0.85 0.05 85); stroke-width: 1.4; }
.fr-fire path { fill: var(--flame); stroke: oklch(0.6 0.15 42); stroke-width: 1.2; } .fr-fire .inner { fill: oklch(0.95 0.1 85); stroke: none; } .fr-fire .logs { fill: none; stroke: oklch(0.55 0.06 60); stroke-width: 4; stroke-linecap: round; }
.fr-words text { font-family: var(--font-type); font-size: 12px; letter-spacing: .2em; fill: oklch(0.88 0.06 85); } .fr-sparks circle { fill: oklch(0.95 0.1 85); }
.lost-svg .box { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; } .lost-svg .heart { fill: var(--red); stroke: var(--ink); stroke-width: 1.2; } .lost-svg .soul { fill: oklch(0.9 0.08 85); stroke: var(--ink); stroke-width: 1.2; }
.lost-svg .sign { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; } .lost-svg .sign-l { font-family: var(--font-display); font-weight: 700; font-size: 13px; fill: var(--ink); letter-spacing: .08em; } .lost-svg .sign-s { font-family: var(--font-hand); font-size: 10.5px; fill: var(--ink-2); }
@media (max-width: 900px) { .irl-grid { grid-template-columns: 1fr; } .irl-fig { position: static; max-width: 520px; } .fmt { --r: 0deg !important; } .fmts { grid-template-columns: 1fr; } }
