/* Ocean palette, typography, components; responsive overrides grouped at the end. */
:root { color-scheme: dark; --ink: #e2e5db; --muted: #adbec0; --sea: #9fc5b8; --line: #a4c2bb28; --paper: url("assets/tide.jpg"); --header-height: 76px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: #08151b; color: var(--ink); font: 16px/1.8 "Segoe UI", Arial, sans-serif; font-family: 'Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: 'Noto Serif SC','Songti SC',SimSun,serif; font-weight: 400; }
h2 { font-size: clamp(34px,4vw,56px); line-height: 1.4; letter-spacing: .025em; }
h2 em { color: var(--sea); font-weight: 400; }
h3 { font-size: 27px; line-height: 1.4; margin-bottom: 14px; }
p + p { margin-top: 16px; }
p { color: var(--muted); max-width: 68ch; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid #e9c58a; outline-offset: 5px; }
button:disabled { cursor: default; }
.skip { position: fixed; top: -70px; left: 20px; z-index: 50; background: #e1ece0; color: #07151b; padding: 8px 15px; }
.skip:focus { top: 10px; }
.site-header { height: 76px; padding: 0 5%; position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; z-index: 5; border-bottom: 1px solid var(--line); background: #07141bf2; backdrop-filter: blur(12px); }
.signature { font: 26px Georgia, serif; font-size: 26px; flex-shrink: 0; }
.signature span { font: 10px "Segoe UI", sans-serif; letter-spacing: .18em; }
nav { display: flex; gap: clamp(12px,2vw,28px); font-size: 13px; }
nav a:hover, .text-link:hover { color: var(--sea); }
.quiet-button { background: transparent; border: 1px solid #b0c7bd55; padding: 8px 14px; color: var(--ink); font-size: 12px; }
.quiet-button:hover { background: #c2dfce12; }
.hero { min-height: 680px; height: min(900px, 100svh); position: relative; display: flex; align-items: center; overflow: hidden; background: #09161b; }
.hero-art { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 67% center; opacity: .77; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#06141cf5 0%,#071820ad 45%,#06141c22 100%),linear-gradient(0deg,#08151b,transparent 40%); pointer-events: none; }
.hero-content { z-index: 2; position: relative; margin: 110px 0 100px 8%; max-width: 850px; }
.eyebrow, .section-label { font-size: 10px; letter-spacing: .2em; color: var(--sea); }
.hero h1 { font-size: clamp(76px,8vw,124px); letter-spacing: .07em; line-height: 1.15; margin: 35px 0; text-shadow: 0 6px 45px #02090c; }
.hero h1 em { font-weight: 400; font-size: .86em; color: #bcd3c7; font-style: italic; }
.tagline { font: 20px/1.55 Georgia, serif; color: #d3ddd5; font-size: clamp(19px,2vw,25px); font-family: 'Noto Serif SC','Songti SC',SimSun,serif; letter-spacing: .06em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { border: 1px solid #bad5c5; background: #bad5c5; color: #10252a; padding: 12px 21px; font-size: 13px; letter-spacing: .03em; }
.button span { margin-left: 15px; }
.button.secondary { background: #06171a70; color: #d9e6dc; }
.button:hover { filter: brightness(1.15); }
.media-note { font-size: 11px; margin-top: 10px; color: #acbbb5; }
.hero-bottom { position: absolute; bottom: 26px; left: 5%; right: 5%; display: flex; justify-content: space-between; z-index: 2; font-size: 10px; letter-spacing: .12em; }
.mist { position: absolute; inset: -15%; z-index: 1; background: radial-gradient(ellipse at 65% 75%, #9ebfb438, transparent 44%); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.section { max-width: 1280px; padding: 100px 60px; margin: auto; border-bottom: 1px solid var(--line); padding-top: 96px; padding-bottom: 96px; }
.section-label { margin-bottom: 28px; font-size: 11px; }
.intro-grid, .section-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; }
.lead { font-size: 20px; line-height: 1.65; color: #d2ded8; }
.facts { margin: 50px 0 0; display: flex; gap: 32px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
dt { font-size: 11px; color: var(--muted); margin-bottom: 7px; }
dd { margin: 0; font-size: 14px; }
.section-heading > p { max-width: 48ch; padding-top: 12px; }
.game-loop { padding: 28px 0; margin: 36px 0; list-style: none; display: grid; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 24px; justify-content: space-between; font-size: 12px; color: #ccdad1; grid-template-columns: repeat(4,minmax(0,1fr)); }
.game-loop li:not(:last-child)::after { content: " →"; color: #698d8c; margin-left: 20px; position: absolute; right: -14px; top: 0; margin: 0; pointer-events: none; }
.puzzle-experience { display: grid; grid-template-columns: 1fr; gap: 45px; padding: 30px; background: #0c2028; border: 1px solid #6d989445; transition: background 2s, box-shadow 2s; }
.puzzle-experience.restored { background: #173831; box-shadow: 0 0 80px #7abba218; }
.puzzle-copy h3 { font-size: 36px; margin: 0; grid-column: 1; }
.puzzle-copy p { font-size: 13px; }
.asset-note, p.asset-note { font-size: 11px; color: #91a8aa; line-height: 1.7; }
.puzzle-counter { display: flex; align-items: baseline; gap: 12px; margin-top: 25px; }
.puzzle-counter span:first-child { font: 45px Georgia, serif; color: var(--sea); }
.puzzle-counter span:last-child { font-size: 11px; color: var(--muted); }
#puzzle-status { min-height: 3.6em; margin-top: 10px; color: #c4d9cb; grid-column: 2; }
[hidden] { display: none !important; }
.caption, figcaption { font-size: 11px; line-height: 1.6; color: #8da4a6; margin-top: 14px; }
.panel-top h3 { font-size: 24px; margin-bottom: 0; }
.evidence-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.text-link { display: inline-block; margin-top: 35px; font-size: 13px; color: var(--sea); }
footer { padding: 30px 5%; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.no-motion { scroll-behavior: auto; }
.puzzle-copy { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px 35px; align-items: start; }
.puzzle-copy .eyebrow, .puzzle-copy .asset-note, .puzzle-copy .actions, #puzzle-status { grid-column: 1 / -1; }
.puzzle-copy .puzzle-counter { margin: 0; grid-column: 1; }
#restoration-canvas { display: block; width: 100%; aspect-ratio: 1000 / 850; touch-action: none; cursor: grab; outline-offset: 4px; max-width: 760px; margin: 0 auto; }
#restoration-canvas:active { cursor: grabbing; }
.puzzle-copy .eyebrow { grid-column: 1; }
#puzzle-instructions { grid-column: 2; grid-row: 1 / 3; }
.puzzle-surface { position: relative; width: 100%; max-width: 760px; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
section[id], #puzzle-experience { scroll-margin-top: 0; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.5; margin: 14px 0 10px; }
img { max-width: 100%; }
nav a { padding: 10px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
nav a[aria-current='location'] { color: #e4f2e8; border-bottom-color: var(--sea); }
.hero .eyebrow { font-size: 12px; letter-spacing: .15em; }
.button, .quiet-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.asset-note,p.asset-note,.caption,figcaption { font-size: 12px; color: #a6b8b7; }
.game-loop li { position: relative; display: block; flex-direction: column; gap: 7px; padding: 0; }
.game-loop b { color: var(--sea); font: 22px Georgia,serif; }
.game-loop strong { font-size: 14px; font-weight: 500; line-height: 1.4; }
.game-loop small { color: var(--muted); font-size: 12px; }
.mechanic-art { margin-top: 22px; }
.mechanic-art img { width: 100%; aspect-ratio: 16/9; object-fit: contain; display: block; background: #071319; }
.media-slot { min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; margin-top: 22px; min-width: 0; }
.media-slot > span { color: #bbccc6; font-size: 11px; }
.media-slot p { font-size: 13px; max-width: 45ch; }
.media-slot.has-media { border: 0; padding: 0; background: transparent; }
.media-slot img,.media-slot video { width: 100%; max-height: 560px; object-fit: contain; display: block; background: #061217; }
.media-slot figcaption { margin: 0; }
.puzzle-disclosure { margin-top: 40px; border: 1px solid var(--line); }
.puzzle-disclosure summary { padding: 22px; cursor: pointer; font-size: 16px; color: var(--ink); }
.puzzle-disclosure summary span { color: var(--muted); font-size: 11px; float: right; margin: 4px 0 0 16px; }
.puzzle-disclosure .puzzle-experience { border: 0; border-top: 1px solid var(--line); }
.puzzle-copy .actions { margin-top: 0; }
.footage-strip .media-slot { min-height: 150px; }
.panel-top { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; }
.narrative h2 { font-size: clamp(32px,3.4vw,46px); }
.narrative-timeline { margin-top: 36px; }
.narrative-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center; padding: 36px 0; }
.narrative-row:nth-child(even) figure { order: 2; }
.narrative-row img { width: 100%; height: 370px; object-fit: contain; display: block; background: #071319; }
.narrative-row h3 { margin-top: 12px; }
.narrative-row p { font-size: 14px; }
.narrative-row .eyebrow { font-size: 11px; }
.narrative-evidence { border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px!important; }
.narrative-evidence span { color: #91a8aa; }
.reveal-in { animation: section-enter .45s ease-out both; }
.site-header nav::-webkit-scrollbar { display: none; }
summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #e9c58a; outline-offset: 4px; }
.reference-disclosure { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 18px; }
.reference-disclosure summary { cursor: pointer; color: var(--sea); }
.media-slot.has-media .text-link { margin-top: 0; }
.media-slot video { aspect-ratio: 16/9; }
.media-slot img { height: auto; aspect-ratio: 16/9; }
h2 em,.hero h1 em { font-style: normal; }
.eyebrow,.section-label { letter-spacing: .12em; }
.game-loop li > a { display: flex; flex-direction: column; gap: 7px; min-height: 44px; padding: 12px 10px; border-radius: 4px; transition: background .18s,color .18s; }
.game-loop li > a:hover,.game-loop li > a:focus-visible { background: #9fc5b814; color: #e4f2e8; }
#exploration-guide,#fragment-guide,#environment-change,#puzzle-progression { scroll-margin-top: 0; }
.footage-strip { margin: 48px 0 36px; }
.presentation-block { max-width: 880px; margin: 32px auto 0; }
.media-slot.document img { aspect-ratio: auto; max-height: 420px; }
.media-slot p.caption { max-width: none; margin: 0; }
.media-slot .text-link { margin: 0; }
.puzzle-close { margin: 0 30px 24px; }
.reference-disclosure > p { margin-top: 18px; }
.summary-link { color: var(--sea); }

/* Five-chapter editorial layout, reusing the existing media and type components. */
.project-overview { border:0; }
.project-facts { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:24px; }
.story-scope { margin-top:32px; font-size:14px; max-width:78ch; color:var(--muted); }
.narrative-row:nth-child(even) { grid-template-columns:1fr 1.5fr; }
.experience-sequence { margin:48px 0; }
.experience-row,.development-row { display:grid; grid-template-columns:.75fr 1.5fr; gap:48px; align-items:center; margin:64px 0; }
.experience-row:nth-child(even) { grid-template-columns:1.5fr .75fr; }
.experience-row:nth-child(even) .experience-copy { order:2; }
.experience-row .media-slot,.experience-row .mechanic-art,.development-row .media-slot { margin-top:0; }
.experience-row h3,.development-row h3,.concept-to-game > h3 { margin:14px 0; }
.experience-row .button { margin-top:24px; }
.development-row { grid-template-columns:.85fr 1.4fr; align-items:start; }
.development-row .media-slot.document img { max-height:520px; }
.concept-to-game { margin-top:72px; }
.concept-to-game > p { max-width:76ch; }
.concept-to-game .evidence-grid { margin-top:28px; }
.final-record { margin-bottom:32px; }
.contribution-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 56px; margin-top:44px; }
.contribution-grid article { padding-top:20px; border-top:1px solid var(--line); }
.contribution-grid h3 { margin:10px 0; font-size:25px; }
.contribution-grid p { font-size:15px; }
.contribution-grid .eyebrow { font-size:11px; }
.reflection-note { max-width:820px; padding:40px 0; margin-top:32px; }
.credits { margin-top:24px; padding-top:32px; border-top:1px solid var(--line); }
.credits .facts { margin-top:24px; border-top:0; padding-top:0; }
.anchor-alias { display:block; height:0; }
@keyframes drift { from { transform:translate(-3%,0); } to { transform:translate(3%,-4%); } }
@keyframes section-enter { from { transform:translateY(12px); } to { transform:translateY(0); } }
@media(max-width:1000px) {
 .signature span { display:none; } .site-header { padding-inline:4%; } nav { gap:16px; }
 .section { padding-inline:6%; } .intro-grid,.section-heading { gap:30px; }
 .experience-row,.development-row { gap:30px; }
 .facts { flex-wrap:wrap; } .project-facts { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
 :root { --header-height:112px; }
 .site-header { height:112px; display:grid; grid-template-columns:1fr auto; gap:4px 16px; padding:10px 5%; }
 .site-header nav { grid-row:2; grid-column:1/-1; width:100%; min-width:0; overflow-x:auto; gap:20px; font-size:12px; scrollbar-width:none; }
 .site-header #motion-toggle { grid-column:2; grid-row:1; min-height:34px; padding:4px 10px; }
 .hero { min-height:720px; height:95svh; } .hero-content { margin:160px 6% 100px; }
 .hero h1 { font-size:clamp(70px,15vw,102px); } .hero .eyebrow { max-width:310px; }
 .hero-bottom { gap:20px; font-size:9px; } .hero-bottom > span:last-child { display:none; }
 .section { padding:64px 6%; }
 .intro-grid,.section-heading,.experience-row,.experience-row:nth-child(even),.development-row { grid-template-columns:1fr; gap:24px; }
 .experience-row:nth-child(even) .experience-copy { order:0; }
 .game-loop { grid-template-columns:1fr 1fr; gap:16px; padding:12px 0; }
 .game-loop li:not(:last-child)::after { content:none; }
 .panel-top { display:block; }
 .narrative-row,.narrative-row:nth-child(even) { grid-template-columns:1fr; gap:20px; }
 .narrative-row:nth-child(even) figure { order:0; }
 .narrative-row img { height:auto; max-height:380px; }
 .puzzle-copy { display:block; } .puzzle-copy > * { margin-bottom:14px; }
 .puzzle-experience { padding:16px; } .puzzle-copy h3 { font-size:30px; }
 .puzzle-close { margin:0 16px 20px; } .puzzle-disclosure summary span { display:none; }
 .project-facts { grid-template-columns:1fr 1fr; }
 .experience-row,.development-row { margin:44px 0; }
}
@media(max-width:540px) {
 .evidence-grid,.contribution-grid { grid-template-columns:1fr; }
 .hero .actions { flex-direction:column; align-items:flex-start; }
 .facts { gap:22px; } .credits .facts > div { width:100%; }
 footer { gap:20px; align-items:center; } .puzzle-copy h3 br { display:none; }
 .reflection-note { padding-bottom:16px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }
