/* QuestDesk premium 3D homepage. The v4 Kingdom is the stage (a live scene or rendered stills of the same world);
   every surface on top of it is dressed like the game's slate-and-brass signs. Normal scrolling; the camera follows. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/brand/home-rpg/fonts/fraunces-var.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/brand/home-rpg/fonts/manrope-var.woff2') format('woff2'); }

:root {
  --ink: #0c1016; --ink-deep: #090c11; --slate: #151c25; --slate-2: #1b2430; --slate-3: #263142;
  --ivory: #ece4d3; --ivory-2: #c8bfad; --ivory-3: #a39b8c;
  --brass: #d9a94e; --brass-hi: #f0cd7c; --brass-lo: #8c6a2c;
  --line: rgba(217, 169, 78, .26); --line-strong: rgba(217, 169, 78, .6); --hair: rgba(236, 228, 211, .11);
  --approve: #ffd84d; --ask: #7fb8ff; --review: #c5f57a;
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
  --plate-w: 410px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); color: var(--ivory); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-variation-settings: 'opsz' 96, 'SOFT' 30; text-wrap: balance; color: var(--ivory); }
h1 { font-size: clamp(38px, 4.2vw, 56px); line-height: 1.05; }
h1 em { color: var(--brass-hi); font-style: normal; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
a { color: var(--brass-hi); }
.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: var(--ivory-2); max-width: 60ch; margin-top: 14px; }
.kicker { font: 700 12px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.note, .fine { font-size: 14px; line-height: 1.5; color: var(--ivory-3); margin-top: 16px; }
.fine .tag { vertical-align: 1px; margin-right: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--brass); color: #1a1206; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }
.svg-defs { position: absolute; }
.wrap { width: min(1180px, 100% - 2 * clamp(16px, 3vw, 32px)); margin: 0 auto; }

/* ---- shared pieces --------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 700 16px/1.1 var(--font-ui); text-decoration: none; text-align: center; cursor: pointer; transition: transform .15s var(--ease), background-color .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-brass { color: #1a1206; background: linear-gradient(180deg, #f2d185, #d4a045); border: 1px solid #f6dc9c; box-shadow: inset 0 -2px 0 rgba(120, 80, 20, .45), 0 12px 26px -14px rgba(217, 169, 78, .9); }
.btn-brass:hover { color: #1a1206; background: linear-gradient(180deg, #f7dc9d, #ddb057); }
.btn-slate { color: var(--ivory); background: rgba(21, 28, 37, .78); border: 1px solid var(--line-strong); }
.btn-slate:hover { color: var(--ivory); background: rgba(38, 49, 66, .9); border-color: var(--brass-hi); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 9px; white-space: nowrap; }
.btn[disabled] { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.actions .btn { padding-inline: 14px; font-size: 13px; }
.actions-centre { justify-content: center; }

.plate { position: relative; background: linear-gradient(145deg, rgba(21, 29, 39, .97), rgba(10, 17, 24, .92)); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 2.1vw, 30px); box-shadow: inset 0 1px 0 rgba(240, 205, 124, .13), 0 25px 70px -30px #000; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.plate::before { content: ''; position: absolute; top: -1px; left: 24px; width: 42px; height: 2px; background: var(--brass-hi); box-shadow: 0 0 18px #d9a94e55; }
.plate-hero { background: linear-gradient(120deg, #0c141bea, #0c141bc4); }
.early-access { display: inline-block; color: var(--ivory-3); font-size: 12px; margin-top: 12px; }
.capability-note { margin-top: 18px; font-size: 13px; color: var(--ivory-3); }
.capability-note summary, .quest-scope summary { cursor: pointer; padding: 8px 0; color: var(--ivory-2); }
.capability-note[open] { padding-bottom: 10px; }
.capability-note .fine { margin-top: 8px; }
.quest-scope { font-size: 13px; }
.role-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--hair); }
.role-strip span { font-size: 11px; color: var(--ivory-3); }
.role-strip b { display: block; font-size: 14px; color: var(--brass-hi); margin-bottom: 4px; }
.role-strip img { display: block; width: 100%; height: 90px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 5px 8px #0008); }
.board { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(12, 16, 22, .55); display: grid; gap: 14px; }
.board-k { display: block; font: 700 11px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-3); }
.board-k em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ask); margin-left: 6px; }
.board b { display: block; color: var(--ivory); font-size: 17px; line-height: 1.3; margin-top: 4px; }
.board p { font-size: 14px; color: var(--ivory-2); margin-top: 6px; }
.board-goal-title { font-family: var(--font-display); font-size: 28px !important; letter-spacing: -.02em; color: var(--brass-hi) !important; }
.board-who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ivory-2); margin-top: 8px; }

.tag { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 5px 10px; border-radius: 999px; border: 1px solid; font: 700 12px/1.2 var(--font-ui); letter-spacing: .01em; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.tag-built { color: var(--brass-hi); background: rgba(217, 169, 78, .12); border-color: rgba(217, 169, 78, .5); }
.tag-dev { color: #a9cfff; background: rgba(127, 184, 255, .09); border-color: rgba(127, 184, 255, .42); }
.tag-dev::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1px solid currentColor; }
.tag-planned { color: var(--ivory-2); border-style: dashed; border-color: rgba(236, 228, 211, .38); }
.tag-planned::before { background: none; border: 1px solid currentColor; }
.tag-example { color: var(--ivory-2); background: rgba(236, 228, 211, .05); border-color: rgba(236, 228, 211, .22); white-space: normal; }
.tag-example::before { width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); }

.mk { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font: 800 14px/1 var(--font-ui); font-style: normal; vertical-align: -5px; }
.mk-approve { background: var(--approve); color: #231900; box-shadow: 0 0 12px rgba(255, 216, 77, .5); }
.mk-ask { background: var(--ask); color: #071a31; box-shadow: 0 0 12px rgba(127, 184, 255, .5); }
.mk-review { width: 14px; height: 14px; margin: 0 4px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, #d6f99a, #8fd14f); box-shadow: 0 0 12px rgba(197, 245, 122, .6); font-size: 0; color: transparent; vertical-align: -2px; }
.mk-done { background: var(--brass-hi); color: #1a1206; box-shadow: 0 0 12px rgba(240, 205, 124, .5); }
.mk-work { width: 12px; height: 12px; margin: 0 5px; border-radius: 50%; background: var(--brass-hi); box-shadow: 0 0 0 4px rgba(217, 169, 78, .2), 0 0 14px rgba(240, 205, 124, .8); vertical-align: -1px; }
.mk-idle { width: 12px; height: 12px; margin: 0 5px; border-radius: 50%; background: transparent; border: 2px solid var(--ivory-3); }
html[data-motion="on"] .mk-work { animation: mk-pulse 1.8s ease-in-out infinite; }
@keyframes mk-pulse { 50% { box-shadow: 0 0 0 7px rgba(217, 169, 78, .1), 0 0 18px rgba(240, 205, 124, .9); } }

/* ---- navigation ------------------------------------------------------------------------------ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-solid, .nav:focus-within { background: rgba(10, 13, 18, .9); border-bottom-color: var(--hair); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; color: var(--brass); }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a, .nav-signin { color: var(--ivory-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover, .nav-signin:hover { color: var(--ivory); }
.nav-end { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; min-height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ivory); font-weight: 700; font-size: 14px; background: rgba(21, 28, 37, .8); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 220px; padding: 8px; border-radius: 12px; background: #121921; border: 1px solid var(--line); box-shadow: 0 24px 48px -20px #000; }
.nav-menu nav a { padding: 12px; border-radius: 8px; color: var(--ivory); text-decoration: none; font-weight: 600; }
.nav-menu nav a:hover { background: var(--slate-2); }
.menu-motion { margin-top: 4px; padding: 12px; border: 0; border-top: 1px solid var(--hair); border-radius: 0 0 8px 8px; background: none; color: var(--ivory-2); font: 600 14px var(--font-ui); text-align: left; cursor: pointer; }
.menu-motion:hover { background: var(--slate-2); color: var(--brass-hi); }

/* ---- the stage ------------------------------------------------------------------------------- */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--ink); overflow: hidden; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(12, 16, 22, .55), transparent 18%, transparent 82%, rgba(12, 16, 22, .6)); }
.stage-posters, .stage-poster, .stage-poster img, .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster img { object-fit: cover; object-position: 60% 45%; display: block; }
.stage-poster { opacity: 0; transition: opacity .9s var(--ease); }
.stage-poster.is-on { opacity: 1; }
.stage-canvas { display: block; opacity: 0; transition: opacity 1.1s var(--ease); }
.stage-canvas.is-on { opacity: 1; }
.stage-dip { position: absolute; inset: 0; background-color: transparent; background-position: center; background-size: cover; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.stage-dip.is-on { opacity: .96; }
.stage-load { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; font-size: 13px; color: var(--ivory-3); z-index: 2; }
.stage-load-bar { width: 180px; height: 3px; border-radius: 2px; background: rgba(236, 228, 211, .12); overflow: hidden; }
.stage-load-bar i { display: block; height: 100%; width: 0; background: var(--brass); transition: width .3s ease; }
.stage-note { position: absolute; right: 16px; bottom: 12px; font-size: 12px; color: var(--ivory-3); z-index: 2; }
.world-labels { position: absolute; inset: 0; pointer-events: none; }
.world-label { position: absolute; top: 0; left: 0; width: 156px; padding: 9px 12px; background: #121923f2; border: 1px solid #b58a4690; border-radius: 7px; text-align: center; box-shadow: inset 0 0 0 3px #e9c77a0b, 0 5px 22px #0008; }
.world-label b { display: block; color: #f5d58d; font: 700 16px/1.3 var(--font-display); }
.world-label span { display: block; margin-top: 4px; color: #e3e1db; font: 500 12px/1.35 var(--font-ui); white-space: nowrap; }
.world-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.world-leaders line { stroke: #f0cd7ca6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.world-label { will-change: transform; }
.world-label.is-compact { width: auto; min-width: 112px; padding: 8px 12px; }
.world-label.is-compact span { display: block; }
.story-location { position: fixed; left: 50%; bottom: 19px; z-index: 5; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 17px; background: #101821ef; border: 1px solid #d9a94e55; border-radius: 30px; color: var(--ivory-2); font-size: 12px; box-shadow: 0 5px 25px #0005; pointer-events: none; }
.story-location b { color: var(--brass-hi); font-weight: 600; }
.story-location i { height: 3px; width: 48px; background: #e7c47720; border-radius: 3px; overflow: hidden; }
.story-location i::after { content: ''; display: block; height: 100%; width: var(--story-progress, 10%); background: var(--brass-hi); transition: width .25s; }
.scene-motion { position: fixed; left: 20px; bottom: 20px; z-index: 6; min-height: 44px; padding: 10px 16px; border-radius: 24px; border: 1px solid var(--line); color: var(--ivory-2); background: #101821ed; font: 600 13px var(--font-ui); cursor: pointer; }
.scene-motion:hover { color: var(--brass-hi); border-color: var(--brass); }
.scene-motion:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
/* Stills drift slowly while motion is on: the phone view of the same Kingdom is not a frozen picture. */
@keyframes still-drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); } }
html[data-mode="static"] .stage-poster.is-on img,
html[data-mode="static"] .beat-media img,
html[data-mode="static"] .hero-media img { animation: still-drift 22s ease-in-out infinite alternate; }
html[data-motion="reduced"][data-mode="static"] .stage-poster img,
html[data-motion="reduced"][data-mode="static"] .beat-media img,
html[data-motion="reduced"][data-mode="static"] .hero-media img { animation-play-state: paused; }
html[data-motion="on"] .stage-dip { transition: opacity .3s ease; }
html[data-motion="on"] .stage-canvas { transition: opacity .8s ease; }
html[data-motion="reduced"] .stage-dip { transition: none; }
html.capture .scene-motion { display: none; }
html.capture .story-location { display: none; }
@media (max-width: 900px) { .story-location { display: none; } }
html.capture .world-labels { visibility: hidden; }

/* ---- beats ----------------------------------------------------------------------------------- */
main { position: relative; z-index: 1; }
.beat { position: relative; min-height: 110svh; padding: calc(var(--nav-h) + 5vh) clamp(16px, 3vw, 48px) 7vh; display: grid; align-content: center; grid-template-columns: minmax(0, var(--plate-w)) 1fr minmax(0, var(--plate-w)); }
.beat-begin { grid-template-columns: 1fr; align-content: end; min-height: 130svh; }
.beat-begin .plate { grid-column: 1; width: min(620px,100%); }
.beat-hero { min-height: 100vh; min-height: 100svh; }
.plate.side-left { grid-column: 1; }
.plate.side-right { grid-column: 3; }
.plate.plate-centre { grid-column: 2; max-width: 620px; justify-self: center; text-align: center; }
.plate-hero { max-width: 560px; }
.caption { grid-column: 3; align-self: end; justify-self: end; max-width: 380px; font-size: 13px; color: var(--ivory-3); text-align: right; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.beat-media { display: none; margin: 0; }
.hero-media { display: none; margin: 0; }

/* the way in */
.doors { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.door { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(12, 16, 22, .5); color: var(--ivory); text-decoration: none; transition: border-color .2s, background-color .2s, transform .15s var(--ease); }
.door:hover { border-color: var(--line-strong); background: rgba(21, 28, 37, .9); }
.door:active { transform: scale(.985); }
.door b { grid-column: 1; font-size: 16px; }
.door span { grid-column: 1; font-size: 13.5px; color: var(--ivory-2); }
.door i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; color: var(--brass); font-size: 20px; }

/* the plan board */
.milestones { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.milestones li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; font-size: 14px; color: var(--ivory-2); }
.milestones li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ivory-3); }
.milestones li.is-done { color: var(--ivory-3); }
.milestones li.is-done::before { background: var(--review); border-color: var(--review); }
.milestones li.is-now { color: var(--ivory); font-weight: 700; }
.milestones li.is-now::before { background: var(--brass); border-color: var(--brass-hi); box-shadow: 0 0 10px rgba(217, 169, 78, .6); }
.milestones small { font-size: 12px; color: var(--ivory-3); }
.next-quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.next-quests li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ivory-2); padding-top: 6px; border-top: 1px dashed var(--hair); }
.next-quests small { color: var(--brass); white-space: nowrap; }

/* connect */
.connect-demo { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(12, 16, 22, .55); display: grid; gap: 14px; }
.connect-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.connect-key b { display: block; font-size: 15px; margin-top: 4px; }
.connect-key small { display: block; font-size: 12.5px; color: var(--ivory-3); margin-top: 2px; }
.connect-demo.is-on .connect-key b::after { content: " · connected (example)"; color: var(--review); font-weight: 600; }
.connect-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ivory-2); }
.connect-facts b { color: var(--ivory); }
.connect-facts b::after { content: ":"; }

/* the quest card */
.plate-work { max-width: 560px; }
.quest-card { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 16, 22, .6); display: grid; gap: 10px; }
.qc-status { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ivory); }
.qc-role { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--ivory-3); }
.qc-facts { margin: 0; display: grid; gap: 8px; }
.qc-facts div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; font-size: 13.5px; }
.qc-facts dt { color: var(--ivory-3); }
.qc-facts dd { margin: 0; color: var(--ivory-2); }
.qc-hint { font-size: 13.5px; color: var(--ivory-2); }
.qc-working { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ivory); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brass-hi); box-shadow: 0 0 0 4px rgba(217, 169, 78, .2); }
html[data-motion="on"] .pulse { animation: mk-pulse 1.4s ease-in-out infinite; }
.qc-question p { font-size: 16px; color: var(--ivory); }
.qc-answers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.qc-draft { margin: 0; padding: 12px 14px; border-left: 3px solid var(--brass); background: rgba(21, 28, 37, .7); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ivory-2); display: grid; gap: 8px; }
.qc-draft.is-revised { border-left-color: var(--review); }
.qc-measured { font-size: 12.5px; color: var(--ivory-3); }
.qc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qc-xp { font-weight: 700; color: var(--brass-hi); font-size: 15px; }
.quest-card[data-step="proposed"] [data-qc-mk] { background: var(--approve); color: #231900; }
.quest-card[data-step="working"] [data-qc-mk], .quest-card[data-step="working2"] [data-qc-mk] { background: var(--brass-hi); color: #1a1206; }
.quest-card[data-step="question"] [data-qc-mk] { background: var(--ask); color: #071a31; }
.quest-card[data-step="delivered"] [data-qc-mk] { width: 14px; height: 14px; margin: 0 4px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, #d6f99a, #8fd14f); color: transparent; font-size: 0; }
.quest-card[data-step="accepted"] [data-qc-mk] { background: var(--review); color: #1d3300; }

/* room and tools */
.agents { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.agents li { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; background: rgba(12, 16, 22, .5); font-size: 13.5px; }
.agents b { color: var(--ivory); font-weight: 700; }
.agents span { grid-column: 2; color: var(--ivory-2); }
.board-tool p { font-size: 14px; }
.board-tool b { display: inline; font-size: inherit; color: var(--ivory); }

/* grow */
.tiers { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(12, 16, 22, .55); display: grid; gap: 12px; }
.tier-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tier-tab { display: grid; gap: 2px; padding: 10px 6px; border-radius: 9px; border: 1px solid var(--hair); background: rgba(21, 28, 37, .8); color: var(--ivory-2); font: 700 14px/1.1 var(--font-ui); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.tier-tab small { font-size: 11px; font-weight: 600; color: var(--ivory-3); }
.tier-tab[aria-pressed="true"] { border-color: var(--brass-hi); background: rgba(217, 169, 78, .16); color: var(--ivory); }
.tier-tab[aria-pressed="true"] small { color: var(--brass-hi); }
.tier-tab:hover { border-color: var(--line-strong); }
.tier-line { font-size: 13.5px; color: var(--ivory-2); }
.xp-rules { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ivory-2); }
.xp-rules li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; }
.xp-rules b { color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.xp-note { grid-template-columns: 1fr !important; color: var(--ivory-3); font-size: 13px; }

/* later: desk and levels */
.views { margin-top: 18px; display: grid; gap: 12px; }
.view-tabs { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--hair); border-radius: 10px; background: rgba(12, 16, 22, .55); width: fit-content; }
.view-tab { padding: 8px 14px; border-radius: 8px; border: 0; background: transparent; color: var(--ivory-2); font: 700 14px/1.1 var(--font-ui); cursor: pointer; }
.view-tab[aria-pressed="true"] { background: rgba(217, 169, 78, .18); color: var(--ivory); }
.desk { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--ivory-2); }
.desk caption { text-align: left; caption-side: top; margin-bottom: 8px; }
.desk th, .desk td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--hair); }
.desk th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-3); }
.desk td:first-child { color: var(--ivory); font-weight: 700; }
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.levels li { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 9px; background: rgba(12, 16, 22, .5); font-size: 12.5px; }
.levels b { color: var(--ivory); }
.levels span { color: var(--brass-hi); font-weight: 700; }

/* roadmap */
.section.roadmap { position: relative; padding: 14vh 0; background: linear-gradient(180deg, rgba(12, 16, 22, .2), rgba(12, 16, 22, .96) 14%, rgba(12, 16, 22, .96) 86%, rgba(12, 16, 22, .2)); }
.roadmap-head { max-width: 680px; }
/* A connected timeline: five stages left to right on wide screens, a vertical path on smaller ones. */
.roadmap-track { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.roadmap-track::before { content: ''; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: linear-gradient(90deg, var(--brass-hi), var(--line) 24%, var(--hair)); }
.road-stage { position: relative; padding-top: 30px; display: flex; }
.road-stage::before { content: ''; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--slate); border: 2px solid var(--line-strong); }
.road-stage.is-now::before { background: var(--brass-hi); border-color: var(--brass-hi); box-shadow: 0 0 0 5px rgba(217, 169, 78, .16), 0 0 18px rgba(240, 205, 124, .55); }
.road-card { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; border: 1px solid var(--hair); border-radius: 10px; background: linear-gradient(145deg, rgba(21, 29, 39, .97), rgba(10, 17, 24, .92)); }
.road-stage.is-now .road-card { border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(240, 205, 124, .18); }
.road-step { margin: 0; font: 700 11px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); }
.road-stage.is-now .road-step { color: var(--brass); }
.road-card .tag { margin: 0; }
.road-card h3 { font-size: 19px; line-height: 1.22; }
@media (min-width: 1101px) { .road-card h3 { min-height: 2.44em; } } /* two title lines on the wide timeline, so every card's text starts level */
.road-card p:not(.tag):not(.road-step) { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ivory-2); }
.roadmap-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.roadmap-now { max-width: 72ch; }
.roadmap-now .fine { margin: 0; }
.now-list { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ivory-2); font-size: 14px; line-height: 1.5; }
.roadmap-foot .actions { margin-top: 0; }

/* needs you */
.needs { position: fixed; right: 16px; bottom: 16px; z-index: 5; width: min(360px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 16, 22, .9); backdrop-filter: blur(8px); box-shadow: 0 24px 48px -24px #000; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.needs.is-on { opacity: 1; transform: none; pointer-events: auto; }
.needs-head { display: flex; justify-content: space-between; align-items: center; font: 700 12px/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.needs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.needs li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 4px; border-top: 1px solid var(--hair); }
.needs li b { display: block; color: var(--ivory); font-weight: 600; }
.needs li small { color: var(--ivory-3); }
.needs li em { font-style: normal; font-weight: 700; color: var(--brass-hi); }
.needs li.is-done { opacity: .45; }

/* footer */
.footer { position: relative; z-index: 1; background: var(--ink-deep); border-top: 1px solid var(--hair); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: 28px 0; font-size: 14px; color: var(--ivory-3); }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: var(--ivory-2); text-decoration: none; }

/* ---- modes ----------------------------------------------------------------------------------- */
html[data-mode="static"] .stage-canvas, html[data-mode="static"] .stage-load { display: none; }
@media (min-width: 901px) {
  html[data-mode="static"] .stage-posters { width: calc(100% - 470px); left: auto; right: 0; }
  html[data-mode="static"] .stage[data-beat="plan"] .stage-posters,
  html[data-mode="static"] .stage[data-beat="room"] .stage-posters,
  html[data-mode="static"] .stage[data-beat="later"] .stage-posters { left: 0; right: auto; }
  html[data-mode="static"] .stage-poster img { object-fit: contain; }
}
html[data-mode="live"] .stage-poster.is-off { opacity: 0; }
html.capture .nav, html.capture main, html.capture .needs, html.capture .footer, html.capture .stage-load, html.capture .stage-note { visibility: hidden !important; }
html.capture .stage::after { display: none !important; }

/* ---- responsive ------------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  :root { --plate-w: 340px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12px; }
  h1 { font-size: 48px; }
  /* The timeline turns vertical: one stage per row along a brass path, easy to read on tablets and phones. */
  .roadmap-track { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; padding-left: 30px; max-width: 680px; }
  .roadmap-track::before { left: 7px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: linear-gradient(180deg, var(--brass-hi), var(--line) 30%, var(--hair)); }
  .road-stage { padding-top: 0; }
  .road-stage::before { top: 20px; left: -30px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav-signin { display: none; }
  .nav-cta-more { display: none; }
  /* Phones and tablets: the stage is a rendered still per beat, shown inside the flow above each plate. */
  .stage { position: fixed; }
  .world-labels { display: none; }
  .beat { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 24px) 16px 40px; min-height: 0; align-content: start; gap: 14px; }
  .beat-hero { min-height: 100svh; align-content: end; padding-bottom: 32px; }
  .hero-media { display: block; aspect-ratio: 8 / 5; overflow: hidden; }
  .hero-media img { width: 100%; height: 100%; object-fit: contain; }
  .beat-hero { align-content: start; }
  html[data-mode="static"] .stage-posters { opacity: .12; }
  .beat-begin { min-height: 80svh; align-content: end; }
  .tag { white-space: normal; }
  .plate, .plate.side-right, .plate.side-left, .plate.plate-centre { grid-column: 1; max-width: none; }
  .caption { grid-column: 1; text-align: left; justify-self: start; }
  .beat-media { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); aspect-ratio: 8 / 5; background: var(--slate); }
  .beat-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .needs { left: 16px; right: 16px; width: auto; bottom: 12px; }
  .needs ul li:nth-child(n+3) { display: none; }
  /* On phones the pause control sits under the navigation, clear of the bottom location pill and the needs card. */
  .scene-motion { position: absolute; left: auto; right: 12px; bottom: auto; top: calc(var(--nav-h) + 8px); padding: 8px 14px; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  h1 { font-size: 34px; }
  .plate { padding: 18px; }
  .btn { width: 100%; }
}
/* Paused motion (the Pause control or ?motion=off): no transitions, no smooth scrolling, no drift or pulses. */
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] .stage-poster, html[data-motion="reduced"] .stage-canvas, html[data-motion="reduced"] .stage-dip,
html[data-motion="reduced"] .needs, html[data-motion="reduced"] .btn, html[data-motion="reduced"] .door { transition: none; }
/* Pages without the homepage's Pause control (the guides, /login) share this file and keep following the OS setting. */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion]) { scroll-behavior: auto; }
  html:not([data-motion]) .btn, html:not([data-motion]) .door { transition: none; }
}
