/* Shared by every public page: fonts, palette, header and footer.
   Night is the default. Day is chosen with the toggle and remembered alongside the workspace's theme. */
@font-face { font-family: Alegreya; src: url('/public-site/alegreya.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: Alegreya; src: url('/public-site/alegreya-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('/public-site/alegreya-sans-500.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('/public-site/alegreya-sans-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('/public-site/alegreya-sans-800.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }

:root {
  color-scheme: dark;
  --serif: Alegreya, Georgia, 'Times New Roman', serif;
  --sans: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --width: 1180px;

  --bg: #0a1124;
  --bg-2: #0f1830;
  --panel: #141e3a;
  --panel-2: #1b2748;
  --line: #2b3862;
  --text: #f6eedf;
  --text-2: #d9d6d6;
  --muted: #aab3cc;
  --lantern: #ffc46b;
  --ember: #ff8a6b;
  --accent-fill: #ffc46b;
  --accent-fill-hover: #ffd894;
  --accent-ink: #231203;
  --focus: #ffe2a8;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f2ea;
  --bg-2: #ede6d6;
  --panel: #fffdf8;
  --panel-2: #f5eedf;
  --line: #d9ccb2;
  --text: #10233c;
  --text-2: #2d3d55;
  --muted: #4d5a70;
  --lantern: #99500a;
  --ember: #b83d1c;
  --accent-fill: #b83d1c;
  --accent-fill-hover: #9c3216;
  --accent-ink: #fff;
  --focus: #0b5d78;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.6; overflow-wrap: break-word; }
main { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 20; padding: 10px 16px; border-radius: 6px; background: var(--accent-fill); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.site-head { position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-family: var(--serif); font-size: 25px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand img { display: block; border-radius: 10px; }
.brand .dot { color: var(--ember); }
.site-head nav { display: flex; gap: 4px; margin-inline-start: auto; font-size: 17px; font-weight: 500; }
.site-head nav a { padding: 8px 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; }
.site-head nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }
.site-head nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--lantern); border-radius: 6px 6px 0 0; }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--lantern); color: var(--lantern); }
.theme-toggle[hidden] { display: none; }
.theme-toggle .icon-sun { display: none; }
[data-theme='light'] .theme-toggle .icon-sun { display: block; }
[data-theme='light'] .theme-toggle .icon-moon { display: none; }

.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 48px 28px; font-size: 16.5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-tag { margin: 14px 0 0; color: var(--muted); }
.foot-title { margin: 0 0 10px; color: var(--text); font-weight: 700; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a:not(.brand) { color: var(--muted); text-decoration: none; }
.site-foot a:not(.brand):hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.foot-base p { margin: 0; }

@media (max-width: 720px) {
  .site-head .wrap { justify-content: space-between; }
  .site-head nav { order: 3; width: 100%; margin: 0 -12px; justify-content: space-between; }
  .site-head nav a { padding: 8px 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* The studio's own pages. Quotid keeps its separate look in quotid.css. */

/* ---------- Scene palette: the same drawing, by night and by day ---------- */
:root {
  --sky-a: #070d24; --sky-b: #141a45; --sky-c: #3d2f63; --sky-d: #c26a6c;
  --sea-a: #2c2f62; --sea-b: #111d44; --sea-c: #0a1124;
  --far: #1a1c47; --near: #0b1230; --fore: #060b20; --sand: #20264f; --stripe: #2f2c55;
  --cloud: #6f4d82; --cloud-o: .35;
  --glint: #9fb6ec; --glint-o: .34; --glade: #ffe2b0; --glade-o: 1;
  --moon-o: 1; --sun-o: 0; --star-o: 1;
  --lit: #ffc46b; --lantern-o: 1;
  --scene-ink: #fbf3e4; --scene-ink-2: #e6dfda;
  --box: rgb(9 15 36 / .86); --box-line: rgb(255 196 107 / .5); --box-text: #f6eedf;
  --choice: rgb(255 255 255 / .06); --choice-line: rgb(255 255 255 / .16);
}
:root[data-theme='light'] {
  --sky-a: #49b9dc; --sky-b: #8bd8e6; --sky-c: #c9eee8; --sky-d: #fff0cf;
  --sea-a: #2bc3c0; --sea-b: #149fae; --sea-c: #f6f2ea;
  --far: #2e8f7f; --near: #17665f; --fore: #0f4b49; --sand: #f7e7c4; --stripe: #cf4a2c;
  --cloud: #fff; --cloud-o: .8;
  --glint: #e6fffb; --glint-o: .6; --glade: #fff; --glade-o: .5;
  --moon-o: 0; --sun-o: 1; --star-o: 0;
  --lit: #ffe6a8; --lantern-o: .3;
  --scene-ink: #0c2138; --scene-ink-2: #173450;
  --box: rgb(255 252 244 / .92); --box-line: rgb(16 35 60 / .28); --box-text: #10233c;
  --choice: rgb(16 35 60 / .05); --choice-line: rgb(16 35 60 / .2);
}

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.55rem; line-height: 1.2; }
h1 em, h2 em { color: var(--lantern); font-style: italic; font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 1em; }
.prose { font-family: var(--serif); font-size: 1.14rem; line-height: 1.62; color: var(--text-2); max-width: 62ch; }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; color: var(--text); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--muted); }
.label { margin: 0 0 14px; color: var(--lantern); font-size: .94rem; font-weight: 700; letter-spacing: .02em; }
.ask::before { content: '▸ '; content: '▸ ' / ''; }
.link { display: inline-block; color: var(--lantern); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { color: var(--text); text-decoration-thickness: 2px; }
.prose a:not([class]), .small-note a { color: var(--lantern); text-underline-offset: 3px; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 11px 22px; border-radius: 8px; background: var(--accent-fill); color: var(--accent-ink); font-weight: 800; font-size: 1.06rem; text-decoration: none; overflow-wrap: anywhere; }
.button:hover { background: var(--accent-fill-hover); }
.tag { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .86rem; font-weight: 500; white-space: nowrap; }

/* ---------- Page rhythm ---------- */
.band { padding-block: clamp(60px, 8vw, 104px); border-top: 1px solid var(--line); }
.band.alt { background: var(--bg-2); }
.band-head { margin-bottom: clamp(30px, 4vw, 48px); }
.band-head .lead { margin-top: 16px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 72px); align-items: start; }
.two.center { align-items: center; }
.two h2 + .lead { margin-top: 18px; }
.spaced { margin-top: 18px; }

/* ---------- Home: the opening scene ---------- */
.home .site-head { position: absolute; inset: 0 0 auto; border-bottom: 0; --text: var(--scene-ink); --text-2: var(--scene-ink-2); --line: color-mix(in srgb, var(--scene-ink) 35%, transparent); }
.scene { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: max(680px, 100svh); padding-block: 92px 28px; color: var(--scene-ink); background: var(--sea-c); }
.scene-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }
.scene::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.scene-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; width: min(var(--width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.title-card { max-width: 800px; padding-top: clamp(8px, 4vh, 44px); }
.title-card .label { color: var(--scene-ink-2); }
.title-card h1 { text-shadow: 0 2px 26px color-mix(in srgb, var(--sky-a) 70%, transparent); }
.title-card h1 em { color: inherit; }
.dialogue-wrap { width: min(860px, 100%); margin-inline: auto; }
.nameplate { display: inline-block; margin: 0 0 -1px 22px; padding: 5px 18px 4px; border: 1px solid var(--box-line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--box); color: var(--lantern); font-family: var(--serif); font-size: 1.06rem; font-weight: 800; }
.dialogue { padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 30px); border: 1px solid var(--box-line); border-radius: 12px; background: var(--box); color: var(--box-text); box-shadow: 0 20px 50px rgb(3 6 20 / .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dialogue-line { font-family: var(--serif); font-size: clamp(1.18rem, 1.9vw, 1.36rem); line-height: 1.42; }
.dialogue-line .ghost { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-top: 16px; }
.choices a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; border: 1px solid var(--choice-line); border-radius: 8px; background: var(--choice); color: var(--box-text); font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.choices a::before { content: '▸'; content: '▸' / ''; color: var(--lantern); transition: transform .15s; }
.choices a:hover, .choices a:focus-visible { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.choices a:hover::before, .choices a:focus-visible::before { color: inherit; transform: translateX(3px); }
.scene-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 18px; margin: 10px 2px 0; color: var(--scene-ink-2); font-size: .86rem; }
.release { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.release[hidden] { display: none; }

/* Scene drawing */
.stop-glow-a { stop-color: #ffd98f; stop-opacity: .72; }
.stop-glow-b { stop-color: #ff9d57; stop-opacity: .22; }
.stop-glow-c { stop-color: #ff9d57; stop-opacity: 0; }
.stop-sky-a { stop-color: var(--sky-a); }
.stop-sky-b { stop-color: var(--sky-b); }
.stop-sky-c { stop-color: var(--sky-c); }
.stop-sky-d { stop-color: var(--sky-d); }
.stop-sea-a { stop-color: var(--sea-a); }
.stop-sea-b { stop-color: var(--sea-b); }
.stop-sea-c { stop-color: var(--sea-c); }
.stars { fill: #fff6df; opacity: var(--star-o); }
.moon { fill: #fff0c8; opacity: var(--moon-o); }
.moon-halo { opacity: calc(var(--moon-o) * .32); }
.sun { fill: #fff6cf; opacity: var(--sun-o); }
.sun-halo { opacity: var(--sun-o); }
.stop-sun-a { stop-color: #fff8d6; stop-opacity: .75; }
.stop-sun-b { stop-color: #fff8d6; stop-opacity: 0; }
.cloud { fill: var(--cloud); opacity: var(--cloud-o); }
.far { fill: var(--far); stroke: none; }
.far .palm-trunk, .near-island .palm-trunk, .foreground .palm-trunk { fill: none; stroke-linecap: round; }
.far .palm-trunk { stroke: var(--far); }
.near-island { fill: var(--near); }
.near-island .palm-trunk { stroke: var(--near); }
.foreground { fill: var(--fore); }
.foreground .palm-trunk { stroke: var(--fore); }
.foreground .sand, .near-island .sand { fill: var(--sand); }
.stripe { fill: var(--stripe); }
.lit { fill: var(--lit); }
.glint, .glade { fill: none; stroke-linecap: round; }
.glint { stroke: var(--glint); stroke-width: 2; opacity: var(--glint-o); }
.glade { stroke: var(--glade); stroke-width: 1.8; }
.glade-0 { opacity: calc(var(--glade-o) * .42); }
.glade-1 { opacity: calc(var(--glade-o) * .26); }
.glade-2 { opacity: calc(var(--glade-o) * .13); }
.lit-soft { opacity: .78; }
.hull { fill: var(--near); }
.hull-stroke { fill: none; stroke: var(--near); stroke-linecap: round; }
.hull-line { stroke: var(--lit); stroke-width: 1.4; opacity: .6; }
.lantern-rib { fill: none; stroke: #c9622d; stroke-width: 1; opacity: .55; }
.lantern-cap { fill: #6b2f1e; }
.lantern-glow { opacity: var(--lantern-o); }
.lantern-reflection { fill: none; stroke: #ffb65e; stroke-linecap: round; opacity: calc(var(--lantern-o) * .42); }
.loose-lantern { position: absolute; left: var(--x); top: var(--y); z-index: -1; width: 92px; height: 92px; margin: -46px 0 0 -46px; pointer-events: none; overflow: visible; animation: release 15s ease-out forwards; }
@keyframes release { 0% { opacity: 0; transform: translateY(10px) scale(.5); } 8% { opacity: 1; transform: translateY(0) scale(.7); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-58vh) translateX(36px) scale(.32); } }

@media (prefers-reduced-motion: no-preference) {
  .drift { animation: drift 11s ease-in-out infinite alternate; }
  .drift-b { animation-duration: 15s; animation-delay: -4s; }
  .drift-c { animation-duration: 9s; animation-delay: -2s; }
  .drift-d { animation-duration: 13s; animation-delay: -7s; }
  .rock { animation: rock 7s ease-in-out infinite alternate; transform-origin: 0 10px; }
  .glint-a { animation: shimmer 9s ease-in-out infinite alternate; }
  .glint-b { animation: shimmer 12s ease-in-out infinite alternate-reverse; }
  .twinkle-1 { animation: twinkle 5s ease-in-out infinite alternate; }
  .twinkle-2 { animation: twinkle 7s ease-in-out infinite alternate-reverse; }
}
@keyframes drift { from { transform: translate(-5px, 7px); } to { transform: translate(6px, -9px); } }
@keyframes rock { from { transform: rotate(-1deg) translateY(1px); } to { transform: rotate(1deg) translateY(-2px); } }
@keyframes shimmer { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes twinkle { from { opacity: calc(var(--star-o) * .4); } to { opacity: var(--star-o); } }
@media (prefers-reduced-motion: reduce) { .loose-lantern { animation: fade 4s ease forwards; } }
@keyframes fade { 0%, 100% { opacity: 0; } 15%, 75% { opacity: 1; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; }

/* ---------- Inner page opener ---------- */
.opener { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 84px) max(110px, 12vw); background: linear-gradient(var(--sky-a), var(--sky-b) 48%, var(--sky-c) 78%, var(--sky-d)); color: var(--scene-ink); }
.opener .label { color: var(--scene-ink-2); }
.opener h1 em { color: inherit; }
.opener .lead { margin-top: 18px; color: var(--scene-ink); }
.opener a { color: inherit; }
.horizon { position: absolute; inset: auto 0 -1px; width: 100%; height: max(84px, 9.4vw); display: block; }
.strip-sea { fill: var(--bg); }
.opener .horizon .glint { stroke: var(--muted); opacity: .25; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--scene-ink-2); font-size: .94rem; }
.breadcrumbs a { text-underline-offset: 3px; }
.opener + .band { border-top: 0; }

/* ---------- A Lantern for Tomorrow ---------- */
.cg { margin: 0; }
.cg img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 0 0 5px var(--panel), 0 0 0 6px var(--line), 0 24px 60px rgb(0 0 0 / .32); }
.cg figcaption { margin-top: 18px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.facts { display: grid; gap: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.small-note { color: var(--muted); font-size: .94rem; line-height: 1.45; max-width: 58ch; }
.game-concept .cg { margin-bottom: clamp(40px, 5vw, 60px); }

/* ---------- The road ---------- */
.road-title { margin-bottom: 26px; }
.road { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.road::before { content: ''; position: absolute; top: 22px; left: 22px; right: 16%; border-top: 2px dashed var(--line); }
.road li { position: relative; }
.road-mark { position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border: 2px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--muted); }
.band.alt .road-mark { background: var(--bg-2); }
.road .now .road-mark { border-color: var(--lantern); color: var(--lantern); box-shadow: 0 0 26px color-mix(in srgb, var(--lantern) 42%, transparent); }
.road-when { display: block; color: var(--muted); font-size: .94rem; font-weight: 700; }
.road .now .road-when { color: var(--lantern); }
.road h3 { margin: 2px 0 8px; }
.road p { color: var(--muted); max-width: 30ch; line-height: 1.45; }

/* ---------- The cast ---------- */
.cast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cast-card { position: relative; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.sigil { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 18px; border: 1px solid var(--lantern); border-radius: 50%; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--lantern) 34%, transparent), transparent 70%); color: var(--lantern); font-family: var(--serif); font-size: 36px; font-weight: 800; line-height: 1; }
.sigil.big { width: 92px; height: 92px; font-size: 50px; border-color: currentColor; color: var(--scene-ink); background: rgb(255 255 255 / .08); }
.cast-card h3 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.cast-card h3 a { color: inherit; text-decoration: none; }
.cast-card h3 a:hover { color: var(--lantern); }
.cast-card h3 span { color: var(--lantern); font-family: var(--sans); font-size: .7em; }
.role { margin: 6px 0 14px; color: var(--lantern); font-weight: 700; }
.past-work { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .98rem; line-height: 1.5; }
.past-work p + p { margin-top: 8px; }

/* ---------- Crafts ---------- */
.crafts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 60px); }
.crafts article { padding-top: 16px; border-top: 2px solid var(--lantern); }
.crafts h3 { margin-bottom: 8px; }
.crafts p { color: var(--muted); line-height: 1.5; }

/* ---------- Devlog ---------- */
.slots { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.slot { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 8px 28px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .15s; }
.slot:hover { border-color: var(--lantern); }
.slot-when { color: var(--muted); font-size: .96rem; line-height: 1.35; }
.slot-when strong { display: block; color: var(--lantern); }
.slot-title { font-size: 1.55rem; line-height: 1.2; }
.slot-title a { color: inherit; text-decoration: none; }
.slot-title a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.slot p { margin-top: 8px; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.5; }
.log-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 24px; }
.entry .prose { margin-top: 0; }
.entry-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: 62ch; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Contact ---------- */
.closing { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 110px) max(130px, 13vw); text-align: center; background: linear-gradient(var(--bg), var(--sky-b) 45%, var(--sky-c) 75%, var(--sky-d)); color: var(--scene-ink); border-top: 1px solid var(--line); }
.closing .label { color: var(--scene-ink-2); }
.closing h2 { margin-inline: auto; max-width: 16em; }
.closing p:not(.label) { margin: 16px auto 0; color: var(--scene-ink-2); }
.closing .strip-sea { fill: var(--bg-2); }
.reach { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.reach a:not(.button) { color: inherit; font-weight: 700; text-underline-offset: 4px; }
.closing .button, .opener .button { background: var(--accent-fill); }
.contact-page { display: grid; gap: 22px; }
.contact-page .reach { align-items: flex-start; }
.contact-page .reach a:not(.button) { color: var(--lantern); }

/* ---------- Founder pages ---------- */
.founder-role { margin-top: 12px; font-weight: 700; color: var(--scene-ink); }
.work-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 56px); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.work-card img { display: block; margin-bottom: 16px; border-radius: 22%; }
.work-card .button { margin-top: 22px; }
.attribution { margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* ---------- Not found ---------- */
.lost .choices { max-width: 640px; }
.lost .choices a { background: var(--panel); color: var(--text); border-color: var(--line); }
.lost .choices a:hover, .lost .choices a:focus-visible { background: var(--accent-fill); color: var(--accent-ink); }

/* ---------- Short laptop screens: keep the boat in view and the whole box above the fold ---------- */
@media (min-width: 721px) and (max-height: 760px) {
  .scene { min-height: max(600px, 100svh); padding-block: 72px 16px; }
  .scene-inner { gap: 14px; }
  .title-card { padding-top: 0; }
  .title-card h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
  .dialogue { padding: 14px 22px; }
  .dialogue-line { font-size: 1.14rem; }
  .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
  .choices a { min-height: 42px; padding: 6px 10px; gap: 7px; font-size: .95rem; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 860px) {
  .two, .cast, .work-card { grid-template-columns: minmax(0, 1fr); }
  .crafts { grid-template-columns: minmax(0, 1fr); }
  .road { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .road::before { top: 22px; bottom: 24px; left: 22px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .road li { padding-left: 64px; min-height: 46px; }
  .road-mark { position: absolute; left: 0; top: 0; margin: 0; }
  .road p { max-width: none; }
  .slot { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .slot-when strong { display: inline; }
  .slot-when strong::after { content: ' · '; color: var(--muted); font-weight: 500; }
}
@media (max-width: 720px) {
  .home .scene { padding-top: 124px; }
  .home .site-head nav { padding-block: 2px; border: 1px solid var(--box-line); border-radius: 10px; background: var(--box); --text: var(--box-text); --text-2: var(--box-text); margin-inline: 0; }
  .scene-art { height: 62%; bottom: auto; }
  .sky-light { transform: translateY(84px); }
  .dialogue-wrap { margin-top: auto; }
  .nameplate { margin-left: 14px; }
}
@media (max-width: 380px) { h1 { font-size: 2.55rem; } }
@media (max-width: 480px) {
  .choices { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .choices a { min-height: 44px; }
  .scene-note { font-size: .82rem; }
}
