/* 더바이블무브먼트 AI · 1기 후기 — ACT I (walk) / ACT II (atlas) */

:root {
  --bg: #FFFFFF;
  --ink: #1F1F1F;
  --ink-2: #4B4B4B;
  --ink-3: #8F8F8F;
  --ink-4: #C4C4C4;
  --line: #ECECEC;

  /* one soft colour per voice — used only for dots, trails and small accents */
  --v1: #F08FA6;
  --v2: #58BDB5;
  --v3: #EDBE4A;
  --v4: #83C177;
  --v5: #7EA5E8;

  --hand: 'Gowun Dodum', 'Klee One', 'Pretendard Variable', Pretendard, sans-serif;
  --klee: 'Klee One', 'Gowun Dodum', sans-serif;
  --sans: 'Avenir Next', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  --ground: 25vh;
  --steps: 5;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
ol, ul { list-style: none; }
.nb { white-space: nowrap; } /* a Korean meaning unit: lines break only between these */
/* underlines look drawn with a coloured pencil: the colour band sits under a white stencil
   (ragged stroke + paper grain) and fades at both ends; works across line breaks */
u { text-decoration: none; padding-bottom: .16em;
  background:
    linear-gradient(90deg, var(--bg), rgba(255, 255, 255, 0) .3em) left bottom / .45em .8em no-repeat,
    linear-gradient(270deg, var(--bg), rgba(255, 255, 255, 0) .3em) right bottom / .45em .8em no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='16' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-5%25' y='-60%25' width='110%25' height='220%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.22 .8' numOctaves='2' seed='4' result='t'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='t' scale='3' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.28 1.05' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.5 0 0 0 -1.28'/%3E%3C/filter%3E%3Cmask id='m'%3E%3Crect width='200' height='16' fill='%23fff'/%3E%3Cpath d='M-6 8.6C40 7.2 80 9.6 120 8.2S170 7.6 206 8.6' fill='none' stroke='%23000' stroke-width='7.2' filter='url(%23r)'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='200' height='16' fill='%23fff' mask='url(%23m)'/%3E%3Crect width='200' height='16' filter='url(%23g)'/%3E%3C/svg%3E") left bottom / 11em .8em repeat-x,
    linear-gradient(var(--c, var(--v2)), var(--c, var(--v2))) left 0 bottom .08em / 100% .58em no-repeat; /* only as tall as the stroke, so no sliver shows at the tile edges */
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.klee { font-family: var(--klee); letter-spacing: .02em; }
.display { font-family: var(--hand); font-weight: 400; letter-spacing: -.01em; line-height: 1.32; }
.micro { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* round buttons (as in the walkable atlas) */
.round { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); border: 1px solid #EFEFEF; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 26px rgba(0, 0, 0, .07); transition: transform .25s var(--ease), box-shadow .25s; }
.round svg { width: 20px; height: 20px; }
.round:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 30px rgba(0, 0, 0, .1); }
.round:active { transform: scale(.96); }

/* ENTER pill */
.enter { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; font-size: 14.5px; line-height: 1.4; text-decoration: none; transition: background .25s, color .25s; }
.enter > .klee:first-child { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: #fff; transition: background .25s, color .25s; }
.enter:hover { background: var(--ink); color: #fff; }
.enter:hover > .klee:first-child { background: #fff; color: var(--ink); }
.enter .dur { font-size: 12px; color: var(--ink-3); }
.enter:hover .dur { color: #bbb; }
.enter.ghost { border-color: var(--ink-4); }

/* ---------- top bar ---------- */
.bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 68px; display: flex; align-items: center; gap: 20px; padding: 0 24px; transition: background .3s, box-shadow .3s; }
.bar.solid { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--hand); font-size: 17px; }
.brand-sub { font-size: 12.5px; color: var(--ink-3); }
.acts { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 4px; border-radius: 999px; }
.act { display: flex; align-items: baseline; gap: 7px; font-size: 13.5px; text-decoration: none; color: var(--ink-3); padding: 6px 14px; border-radius: 999px; transition: color .25s, background .25s; }
.act .klee { font-size: 11px; letter-spacing: .08em; }
.act.on { color: var(--ink); background: #F4F4F2; }

/* ============ ACT I · WALK ============ */
.walk { position: relative; height: calc(var(--steps) * 88vh + 100vh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.world { position: absolute; top: 0; left: 0; height: 100%; width: calc((var(--steps) + 1) * 100vw); will-change: transform; }

.ground { position: absolute; left: 0; right: 0; bottom: var(--ground); height: 8px; margin-bottom: -4px; background: radial-gradient(circle, var(--ink-4) 1.5px, transparent 1.9px) 0 50% / 12px 8px repeat-x; }
.ground-lit { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--ink) 0 16.7%, var(--v1) 16.7% 33.3%, var(--v2) 33.3% 50%, var(--v3) 50% 66.7%, var(--v4) 66.7% 83.3%, var(--ink) 83.3% 100%); background-size: calc((var(--steps) + 1) * 100vw) 100%; -webkit-mask: radial-gradient(circle, #000 2.2px, transparent 2.6px) 0 50% / 12px 8px repeat-x; mask: radial-gradient(circle, #000 2.2px, transparent 2.6px) 0 50% / 12px 8px repeat-x; }

.st { position: absolute; top: 0; bottom: 0; left: 0; width: 100vw; }
.st-text { position: absolute; left: 40vw; top: 19vh; width: min(34vw, 470px); }
.st-intro .st-text { left: 34vw; top: 21vh; width: min(52vw, 760px); }
.st-text > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.st.on .st-text > * { opacity: 1; transform: none; }
.st.on .st-text > :nth-child(2) { transition-delay: .06s; }
.st.on .st-text > :nth-child(3) { transition-delay: .14s; }
.st.on .st-text > :nth-child(4) { transition-delay: .22s; }
.st.on .st-text > :nth-child(5) { transition-delay: .3s; }
.st .micro { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }
.st .display { font-size: clamp(2rem, 3.6vw, 3.3rem); margin: 12px 0 18px; }
.st-intro .display { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1.18; margin-top: 16px; }
.st-lead { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--ink-2); line-height: 1.85; }
.st-quote { font-family: var(--hand); font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.75; color: var(--ink); }
.st-who { margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.st-who span { font-weight: 400; color: var(--ink-3); margin-left: 8px; font-size: 13px; }
.hint { margin-top: 36px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.key { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border: 1px solid var(--ink-4); border-radius: 999px; font-size: 12px; color: var(--ink-2); }

/* line-drawn props: strokes draw themselves when the walker arrives */
.prop { position: absolute; left: 73vw; bottom: calc(var(--ground) - 1px); width: clamp(150px, 19vw, 270px); overflow: visible; }
.prop .ink { fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.prop .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.3s var(--ease); }
.st.on .prop .draw { stroke-dashoffset: 0; }
.prop .sign-t { font-family: var(--hand); font-size: 17px; fill: var(--ink); opacity: 0; transition: opacity .6s .9s; }
.prop .sign-t.small { font-size: 14px; }
.st.on .prop .sign-t { opacity: 1; }
.prop .rays, .prop .speed, .prop .lamp, .prop .arc { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 8; opacity: 0; transition: opacity .6s 1s; }
.prop .heart, .prop .wheel-dot, .prop .spark { fill: var(--c); stroke: none; opacity: 0; transition: opacity .6s 1.1s; }
.prop-sign .spark { fill: var(--v1); }
.prop .ball circle { fill: var(--c); stroke: var(--ink); stroke-width: 2; }
.prop .ball path { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.prop .ball { opacity: 0; transition: opacity .6s .9s; }
.st.on .prop .rays, .st.on .prop .speed, .st.on .prop .lamp, .st.on .prop .arc, .st.on .prop .heart, .st.on .prop .wheel-dot, .st.on .prop .spark, .st.on .prop .ball { opacity: 1; }
.st.on .prop .heart { animation: float 3.2s 1.2s ease-in-out infinite; }
.st.on .prop .spark circle { animation: twinkle 2.4s ease-in-out infinite; }
.st.on .prop .spark circle:nth-child(2) { animation-delay: .8s; }
.st.on .prop .spark circle:nth-child(3) { animation-delay: 1.5s; }
.st.on .prop .speed path { animation: speed 1.2s linear infinite; }
.st.on .prop .ball { animation: bounce 2.6s 1.2s var(--ease) infinite; }
.heart, .ball { transform-box: fill-box; transform-origin: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes speed { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -16; } }
@keyframes bounce { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(18px, -26px); } 70% { transform: translate(8px, -6px); } }

/* final stop: dotted portal and the colour trails of the voices you met */
.st-portal .st-text { left: 30vw; top: 15vh; width: min(34vw, 460px); }
.portal { position: absolute; left: 63vw; bottom: calc(var(--ground) - 8px); width: min(30vw, 400px); overflow: visible; }
.ring { fill: none; stroke: var(--ink-4); stroke-width: 4; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
.r1 { stroke-dasharray: 0 13; animation: spin 60s linear infinite; }
.r2 { stroke-dasharray: 0 11; stroke: var(--ink-3); animation: spin 40s linear infinite reverse; }
.r3 { stroke-dasharray: 0 9; stroke: var(--ink); animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trails { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trails path { fill: none; stroke: var(--ink-4); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 15; opacity: .5; vector-effect: non-scaling-stroke; transition: stroke .6s, opacity .6s; }
.trails path.lit { stroke: var(--c); opacity: 1; animation: flow 2.2s linear infinite; }
@keyframes flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -30; } }

/* the walker */
.walker { position: absolute; z-index: 3; left: 24vw; bottom: calc(var(--ground) - 1px); width: clamp(62px, 6.8vw, 96px); color: var(--ink); pointer-events: none; }
.walker svg { overflow: visible; transition: transform .25s; }
.walker.back svg { transform: scaleX(-1); }
.walker .shadow { position: absolute; left: 22%; right: 22%; bottom: -5px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .07); }
.leg, .arm { transform-box: view-box; }
.leg { transform-origin: 32px 60px; }
.arm { transform-origin: 32px 32px; }
.walking .leg-f { animation: legA .62s linear infinite; }
.walking .leg-b { animation: legB .62s linear infinite; }
.walking .arm-f { animation: armA .62s linear infinite; }
.walking .arm-b { animation: armB .62s linear infinite; }
.walking .w-body { animation: bob .31s ease-in-out infinite; }
@keyframes legA { 0%, 100% { transform: rotate(22deg); } 50% { transform: rotate(-22deg); } }
@keyframes legB { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }
@keyframes armA { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }
@keyframes armB { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(-16deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }

/* HUD + controls */
.hud { position: absolute; z-index: 4; left: 24px; top: 88px; }
.hud-act { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
.hud-title { font-family: var(--hand); font-size: 15px; margin-top: 2px; }
.hud-walk { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.hud-dots, .walked-dots { display: inline-flex; gap: 6px; }
.hud-dots i, .walked-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-4); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.hud-dots i.on, .walked-dots i.on { background: var(--c); border-color: var(--c); transform: scale(1.1); }
.ctrl { position: absolute; z-index: 5; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; }
.ctrl-hint { margin-left: 6px; font-size: 12px; color: var(--ink-3); }
.skipdown { position: absolute; z-index: 5; right: 24px; bottom: 24px; }

/* ============ ACT II · ATLAS ============ */
.atlas { position: relative; max-width: 1180px; margin: 0 auto; padding: 150px 28px 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 80px; }
.index { position: sticky; top: 110px; align-self: start; }
.index-act { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; margin-bottom: 18px; }
.index ol { display: grid; gap: 2px; }
.index a { position: relative; display: grid; padding: 7px 0 7px 18px; font-size: 12px; color: var(--ink-3); text-decoration: none; line-height: 1.35; transition: color .25s; }
.index a .klee { font-size: 14px; color: var(--ink-2); }
.index a::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; border: 1.3px solid var(--ink-4); transition: background .25s, border-color .25s; }
.index a.on, .index a:hover { color: var(--ink); }
.index a.on .klee { color: var(--ink); }
.index a.on::before { background: var(--ink); border-color: var(--ink); }

.atlas-main { min-width: 0; max-width: 860px; }
.atlas-head .display.big { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.24; margin: 14px 0 26px; }
.lead { font-size: 17.5px; color: var(--ink-2); max-width: 34em; }
.walked { margin-top: 34px; padding: 18px 20px; border: 1px dashed var(--ink-4); border-radius: 16px; display: inline-grid; gap: 6px; }
.walked .klee { font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; }
.walked-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }

.sec { padding-top: 132px; }
.sec h3.display { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 12px 0 24px; }
.sec-note { font-size: 15.5px; color: var(--ink-2); max-width: 36em; margin-bottom: 36px; }
.prose p { font-size: 17px; line-height: 1.95; max-width: 34em; margin-bottom: 1.1em; }
.prose .prose-last { font-family: var(--hand); font-size: 20px; line-height: 1.7; margin-top: 1.6em; }
.prose .prose-lede { font-family: var(--hand); font-size: 24px; line-height: 1.6; margin-bottom: .7em; }
.prose.center { text-align: center; margin: 0 auto; }
.prose.center p { margin-inline: auto; }

/* voices */
.vlist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.vcard { display: grid; align-content: start; gap: 10px; }
.vthumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #f3f3f1; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.vcard.wide .vthumb { aspect-ratio: 16 / 9; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vcard:hover .vthumb img { transform: scale(1.03); }
.vcard:hover .vthumb { box-shadow: 0 0 0 2px var(--c); }
.vplay { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.vplay::after { content: ""; position: absolute; left: 22px; top: 18px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--ink); }
.vdur { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 999px; }
.vname { font-family: var(--hand); font-size: 18px; line-height: 1.35; display: grid; margin-top: 4px; }
.vname small { font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
.vline { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.vcard.wide { width: 100%; margin-bottom: 44px; }

/* before / after */
.shifts { display: grid; border-top: 1px solid var(--line); }
.shifts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px 44px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.shifts .klee { display: block; font-size: 11.5px; letter-spacing: .1em; margin-bottom: 6px; }
.shifts .was { font-size: 15.5px; color: var(--ink-3); line-height: 1.8; }
.shifts .was .klee { color: var(--ink-4); }
.shifts .now { font-family: var(--hand); font-size: 19px; line-height: 1.7; }
.shifts .now .klee { color: var(--ink); }
.shifts .now .klee::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.shifts .by { grid-column: 2; font-size: 13px; color: var(--ink-3); }

/* scenes */
.day-block + .day-block { margin-top: 112px; }
.day-label { display: flex; align-items: baseline; gap: 14px; padding-top: 20px; margin-bottom: 36px; border-top: 1px solid var(--ink); }
.day-label b { font-family: var(--hand); font-weight: 400; font-size: 1.5rem; }
.day-label .klee { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.day { display: grid; gap: 64px; }
.moment { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 24px; }
.m-time { grid-row: span 2; font-size: 22px; line-height: 1.2; color: var(--ink); }
.m-text { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; max-width: 34em; }
.m-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-column: 2; }
.ph { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 12px; aspect-ratio: 3 / 2; background: #f3f3f1; cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ph:hover img { transform: scale(1.03); }
.ph.wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.ph.wide.tall { aspect-ratio: 4 / 3; } /* phone snapshot, kept whole */

/* reviews */
.feature { margin: 0 0 56px; padding: 34px 0 34px 30px; border-left: 3px solid var(--c); }
.feature blockquote { font-family: var(--hand); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.7; }
.feature figcaption { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.reviews { columns: 2; column-gap: 48px; }
.review { break-inside: avoid; margin-bottom: 40px; }
.review p { font-size: 15.5px; line-height: 1.9; }
.review .by { margin-top: 10px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.review .by::before { content: ""; width: 18px; height: 1px; background: var(--ink-4); }
/* a review followed by what the same person sent after the course (kept whole across both columns) */
.review-wide { column-span: all; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 56px; padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.review-after { margin-top: 26px; padding: 2px 0 2px 20px; border-left: 2px solid var(--c); }
.review-after .ra-label { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.review-after p:not(.ra-label) { font-size: 15px; line-height: 1.85; margin-bottom: .7em; }
.site-card { display: block; color: inherit; text-decoration: none; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.site-card img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
.site-card:hover img { transform: scale(1.02); }
.site-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); }
.site-cap .klee { color: var(--ink-3); white-space: nowrap; }

/* epilogue */
.epi-quote { font-family: var(--hand); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.6; text-align: center; max-width: 30em; margin: 0 auto 48px; }
.prose + .epi-quote { margin-top: 72px; }
.epi-quote cite { display: block; margin-top: 16px; font-family: var(--sans); font-style: normal; font-size: 13.5px; color: var(--ink-3); }
.group { margin-top: 56px; }
.group .ph { aspect-ratio: 16 / 9; }
.group .ph img { object-position: 50% 90%; }
.group figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* next */
.next { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.next-course { border: 1px solid var(--ink); border-radius: 22px; padding: 34px; }
.next-course .display { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.next-date { font-size: 14px; color: var(--ink-3); margin: 6px 0 18px; }
.next-course p:not(.next-date) { font-size: 15.5px; color: var(--ink-2); }
.host { border-radius: 22px; padding: 34px; background: #F7F7F5; font-size: 14.5px; color: var(--ink-2); }
.host-name { font-family: var(--hand); font-size: 24px; color: var(--ink); margin: 6px 0 10px; }
.host-more { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.host-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.host-links a { font-size: 13px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink-4); background: #fff; transition: border-color .2s; }
.host-links a:hover { border-color: var(--ink); }

.foot { margin-top: 140px; padding: 34px 0 60px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr auto; gap: 20px 32px; font-size: 13px; color: var(--ink-3); }
.foot-brand { font-family: var(--hand); font-size: 16px; color: var(--ink); display: grid; }
.foot-brand .klee { font-size: 12px; color: var(--ink-3); }
.foot a { text-decoration: none; color: var(--ink); white-space: nowrap; }

/* ============ theater ============ */
.theater { position: fixed; inset: 0; z-index: 90; background: rgba(255, 255, 255, .985); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 72px 24px 32px; }
.theater[hidden] { display: none; }
.th-box { display: grid; grid-template-columns: auto minmax(0, 360px); gap: 56px; align-items: center; max-width: 100%; }
.th-media { position: relative; height: min(80vh, 760px); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #111; box-shadow: 0 30px 80px rgba(0, 0, 0, .16); cursor: pointer; }
.th-media video { width: 100%; height: 100%; object-fit: cover; }
.theater.wide .th-box { grid-template-columns: minmax(0, 1fr); gap: 26px; justify-items: center; }
.theater.wide .th-media { height: auto; width: min(76vw, 1000px, calc((100vh - 280px) * 1.7778)); aspect-ratio: 16 / 9; }
.theater.wide .th-text { text-align: center; max-width: 640px; }
.theater.wide .th-quote { display: none; }
.theater.wide .th-text .micro, .theater.wide .th-nav { justify-content: center; }
.th-cap { position: absolute; left: 12px; right: 12px; bottom: 30px; text-align: center; font-size: 19px; font-weight: 600; line-height: 1.5; text-wrap: balance; color: #fff; pointer-events: none; }
.th-cap span { background: rgba(10, 10, 10, .66); padding: 3px 10px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.theater.wide .th-cap { font-size: clamp(18px, 1.7vw, 22px); bottom: 36px; }
.th-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: opacity .3s, transform .3s var(--ease); }
.th-play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 3px; }
.th-play:hover { transform: scale(1.05); }
.theater.playing .th-play { opacity: 0; pointer-events: none; }
.th-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.th-bar span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.th-text .micro { display: flex; align-items: center; gap: 8px; }
.th-text .display { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 10px 0 16px; }
.th-quote { font-family: var(--hand); font-size: 19px; line-height: 1.75; }
.th-who { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.th-nav { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.th-nav .klee { margin-left: 6px; font-size: 13px; color: var(--ink-3); }
.th-close { position: fixed; top: 16px; right: 16px; z-index: 2; }

/* ============ lightbox ============ */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(255, 255, 255, .985); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 64px 12px 28px; }
.lb[hidden] { display: none; }
.lb-fig { display: grid; justify-items: center; gap: 14px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); border-radius: 12px; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .14); }
.lb-fig figcaption { font-size: 13px; color: var(--ink-3); text-align: center; }
.lb-nav { justify-self: center; }
.lb-close { position: fixed; top: 16px; right: 16px; }

/* ---------- responsive ---------- */
/* mobile-only pieces (hidden on desktop) */
.chips { display: none; }
.hint-touch { display: none; }
.hint-desk, .hint-touch { align-items: center; gap: 8px; }
.hint-desk { display: inline-flex; }
.sec, .atlas-head { scroll-margin-top: 84px; }
a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .atlas { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 110px; }
  .index { display: none; }
  .chips { display: flex; gap: 6px; position: sticky; top: 68px; z-index: 20; margin: 0 -28px 36px; padding: 10px 28px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; line-height: 1.2; text-decoration: none; color: var(--ink-2); padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
  .chips a .klee { font-size: 11px; color: var(--ink-3); }
  .chips a.on { color: #fff; background: var(--ink); border-color: var(--ink); }
  .chips a.on .klee { color: #bdbdbd; }
  .sec, .atlas-head { scroll-margin-top: 132px; }
  .vlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .th-box { grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: center; }
  .th-media { height: min(66vh, 640px); }
  .th-text { text-align: center; max-width: 520px; }
  .th-text .micro, .th-nav { justify-content: center; }
  .th-quote { display: none; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root { --ground: 19svh; }
  body { font-size: 16px; }
  .bar { height: 60px; gap: 10px; padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }
  .acts { position: static; transform: none; margin: 0 0 0 auto; gap: 2px; }
  .act { padding: 6px 10px; font-size: 13px; }
  .act .klee { display: none; }

  /* ACT I */
  .st-text, .st-intro .st-text, .st-portal .st-text { left: 6vw; top: 78px; width: 88vw; }
  .st .display { font-size: clamp(1.75rem, 8vw, 2.3rem); margin: 8px 0 12px; }
  .st-intro .display { font-size: clamp(2.4rem, 11.5vw, 3.2rem); margin-top: 12px; }
  .st-intro .micro { white-space: nowrap; font-size: min(11.5px, 3.1vw); letter-spacing: 0; } /* one line on every phone */
  .st-lead { font-size: 15.5px; }
  .st-quote { font-size: 16px; line-height: 1.72; }
  .st-who { margin-top: 10px; font-size: 14px; }
  .st-who span { display: block; margin: 2px 0 0; }
  .enter { margin-top: 16px; min-height: 44px; padding: 9px 18px 9px 9px; font-size: 14.5px; }
  .hint { margin-top: 22px; }
  .prop { left: auto; right: 4vw; width: 44vw; }
  .walker { left: 7vw; width: 60px; }
  .portal { left: auto; right: 3vw; width: 56vw; }
  .hud { top: auto; left: auto; right: max(16px, env(safe-area-inset-right)); bottom: calc(28px + env(safe-area-inset-bottom)); text-align: right; }
  .hud-act, .hud-title { display: none; }
  .hud-walk { margin: 0; justify-content: flex-end; }
  .ctrl { left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ctrl-hint { display: none; }
  .round { width: 46px; height: 46px; }
  .skipdown { display: none; }

  /* ACT II */
  .atlas { padding: 96px 18px 0; }
  .chips { top: 60px; margin: 0 -18px 30px; padding: 10px 18px; }
  .sec, .atlas-head { scroll-margin-top: 118px; }
  .sec { padding-top: 88px; }
  .atlas-head .display.big { font-size: clamp(1.9rem, 8.6vw, 2.6rem); margin: 10px 0 20px; }
  .lead { font-size: 16px; }
  .walked { display: grid; margin-top: 26px; padding: 14px 16px; }
  .walked-row { align-items: flex-start; font-size: 13.5px; line-height: 1.6; }
  .walked-dots { margin-top: 5px; }
  .sec h3.display { font-size: clamp(1.7rem, 7.6vw, 2.2rem); margin: 10px 0 18px; }
  .sec-note { font-size: 15px; margin-bottom: 26px; }
  .prose p { font-size: 16.5px; line-height: 1.9; }
  .prose .prose-last { font-size: 18px; }
  .vlist { gap: 22px 12px; }
  .vname { font-size: 16.5px; }
  .vline { font-size: 13px; }
  .shifts li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 0; }
  .shifts .by { grid-column: 1; }
  .shifts .now { font-size: 17.5px; }
  .day { gap: 48px; }
  .day-block + .day-block { margin-top: 84px; }
  .day-label { margin-bottom: 28px; }
  .day-label b { font-size: 1.35rem; }
  .moment { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .m-time { grid-row: auto; font-size: 20px; }
  .m-photos { grid-column: 1; gap: 8px; }
  .ph.wide { aspect-ratio: 3 / 2; }
  .feature { padding: 22px 0 22px 18px; margin-bottom: 40px; }
  .feature blockquote { font-size: 1.15rem; }
  .reviews { columns: 1; }
  .review-wide { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 40px; padding-bottom: 36px; }
  .review-after { padding-left: 16px; }
  .site-cap { font-size: 12.5px; padding: 10px 12px; }
  .review { margin-bottom: 32px; }
  .epi-quote { font-size: 1.3rem; margin-bottom: 36px; }
  .prose + .epi-quote { margin-top: 52px; }
  .prose .prose-lede { font-size: 21px; }
  .next { grid-template-columns: minmax(0, 1fr); }
  .next-course, .host { padding: 24px; }
  .foot { grid-template-columns: minmax(0, 1fr); margin-top: 100px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }

  /* interview player: full screen, like stories */
  .theater { padding: 0; background: #000; place-items: stretch; overscroll-behavior: contain; touch-action: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .th-box { position: relative; display: block; width: 100%; height: 100vh; height: 100svh; }
  .th-media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; cursor: default; }
  .th-media video { object-fit: cover; }
  .th-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(transparent, rgba(0, 0, 0, .74)); pointer-events: none; }
  .th-cap { z-index: 2; bottom: calc(148px + env(safe-area-inset-bottom)); font-size: 19.5px; left: 14px; right: 14px; }
  .th-play { z-index: 2; }
  .th-bar { top: calc(10px + env(safe-area-inset-top)); bottom: auto; left: 14px; right: 14px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .28); }
  .th-text { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 0 max(18px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); text-align: left; color: #fff; pointer-events: none; }
  .th-text .micro { grid-column: 1 / -1; justify-content: flex-start; color: rgba(255, 255, 255, .78); }
  .th-text .display { grid-column: 1 / -1; font-size: 1.65rem; margin: 6px 0 10px; color: #fff; text-wrap: balance; }
  .th-who { grid-column: 1; grid-row: 3; margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
  .th-quote { display: none; }
  .th-nav { grid-column: 2; grid-row: 3; margin: 0; gap: 8px; pointer-events: auto; }
  .th-nav .klee { display: none; }
  .th-nav .round, .th-close { width: 44px; height: 44px; background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .th-close { top: calc(24px + env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }

  /* photo viewer */
  .lb { grid-template-columns: minmax(0, 1fr); padding: 64px 10px calc(90px + env(safe-area-inset-bottom)); }
  .lb-nav { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .lb-close { top: calc(12px + env(safe-area-inset-top)); }
}

/* short phones (e.g. iPhone SE) */
@media (max-width: 760px) and (max-height: 700px) {
  .st-text, .st-intro .st-text, .st-portal .st-text { top: 70px; }
  .st .display { font-size: 1.6rem; margin: 6px 0 8px; }
  .st-intro .display { font-size: 2.3rem; }
  .st-quote { font-size: 14.5px; line-height: 1.65; }
  .prop { width: 36vw; }
  .hint { margin-top: 14px; }
}

/* phones held sideways */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --ground: 13svh; }
  .bar { height: 52px; }
  .st-text, .st-intro .st-text, .st-portal .st-text { top: 60px; left: 30vw; width: 46vw; }
  .st .display { font-size: 1.45rem; margin: 4px 0 8px; }
  .st-intro .display { font-size: 2rem; }
  .st-quote { font-size: 13.5px; line-height: 1.6; }
  .st-who { margin-top: 6px; }
  .enter { margin-top: 10px; }
  .hint, .hud, .ctrl-hint { display: none; }
  .prop { left: 79vw; right: auto; width: 17vw; }
  .walker { left: 14vw; width: 46px; }
  .portal { left: 70vw; right: auto; width: 24vw; }
}

/* touch devices: swipe instead of arrow keys */
@media (hover: none) and (pointer: coarse) {
  .hint-desk { display: none; }
  .hint-touch { display: inline-flex; }
  .ctrl-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .st-text > * { opacity: 1 !important; transform: none !important; }
  .prop .draw { stroke-dashoffset: 0 !important; }
  .prop .rays, .prop .speed, .prop .lamp, .prop .arc, .prop .heart, .prop .wheel-dot, .prop .spark, .prop .ball, .prop .sign-t { opacity: 1 !important; }
}
