:root{--sea:#111f28;--deep:#0d1921;--land:#263338;--paper:#e8e4da;--ink:#202e33;--muted:#a3b1b3;--line:#3b4b50;--amber:#d8af78;--serif:Georgia,"Songti SC","Noto Serif CJK SC","SimSun",serif;--sans:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;--mono:"Cascadia Code",Consolas,monospace}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--sea);color:var(--paper);font:16px/1.75 var(--sans);-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{color:inherit;cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[role="button"]:focus-visible{outline:2px solid var(--amber);outline-offset:6px}
::selection{background:var(--amber);color:var(--sea)}
[hidden]{display:none!important}
.wrap{width:min(1120px,calc(100% - 96px));margin-inline:auto}
.small{font:11px/1.5 var(--mono);letter-spacing:.13em;text-transform:uppercase}
.muted{color:var(--muted)}
.skip{position:fixed;left:20px;top:-100px;background:var(--paper);color:var(--ink);padding:10px 20px;z-index:20}
.skip:focus{top:10px}
header{position:relative;z-index:2}
.navigation{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}
.brand{display:flex;align-items:center;gap:13px;flex-shrink:0}
.brand svg{width:29px;height:40px;color:var(--amber)}
.brand-name{font-size:25px;letter-spacing:.18em;font-weight:550;line-height:1.15}
.brand-en{font:9px var(--mono);letter-spacing:.19em;display:block;margin-top:6px}
.navigation nav{display:flex;align-items:center;gap:32px;font-size:13px}
.navigation nav a{padding:8px 0;color:#c8cfcd}
.navigation nav a:hover{color:var(--amber)}
#language-toggle{border:1px solid var(--line);padding:7px 12px;background:none;font:11px var(--mono);min-height:36px}
.language-active{color:var(--amber)}
.hero{position:relative;min-height:790px;isolation:isolate}
.hero-copy{padding-top:64px;position:relative;z-index:2;pointer-events:none;width:fit-content}
.hero-copy a{pointer-events:auto}
.eyebrow{color:var(--amber);display:flex;align-items:center;gap:13px;margin:0 0 26px}
.eyebrow:before{content:"";width:26px;height:1px;background:var(--amber)}
h1{font-family:var(--serif);font-weight:400;font-size:clamp(48px,6.25vw,80px);line-height:1.27;letter-spacing:-.055em;margin:0}
h1 span{display:block}
h1 .second{padding-left:.66em}
.hero-sub{margin-top:32px;max-width:340px}
.hero-sub strong{font-size:17px;font-weight:500;letter-spacing:.04em}
.hero-sub p{color:var(--muted);font-size:13px;max-width:310px;margin:11px 0 24px;line-height:1.95}
.text-link{font-size:13px;display:inline-flex;align-items:center;gap:34px;border-bottom:1px solid #64716e;padding:0 0 8px}
.text-link:hover{color:var(--amber);border-color:var(--amber)}
.text-link .arrow{font-size:20px;font-family:var(--serif)}
.harbor{position:absolute;z-index:0;width:960px;right:-56px;top:90px;margin:0}
.harbor svg{display:block;width:100%;height:auto;overflow:visible}
.harbor .terrain{fill:var(--land);stroke:#62706d;stroke-width:1.2}
.harbor .contour{fill:none;stroke:#71817c;stroke-width:.8;opacity:.25}
.harbor .waterline{fill:none;stroke:#597174;stroke-width:.7;opacity:.32}
.harbor .jetty{fill:#4a5351;stroke:#879089;stroke-width:1}
.harbor .dock{fill:#444b46;stroke:#9c9987;stroke-width:.8}
.harbor .building{fill:#34413f;stroke:#728077;stroke-width:.9}
.harbor .roof{fill:none;stroke:#68786e;stroke-width:.7}
.harbor .lamp{fill:var(--amber)}
.harbor .halo{fill:var(--amber);opacity:.08}
.harbor .route{fill:none;stroke:var(--amber);stroke-width:1;stroke-dasharray:3 9;opacity:.45}
.map-text{fill:#9baaa8;font:10px var(--mono);letter-spacing:2px}
.land-label{fill:#b4bab0;font:12px var(--serif);letter-spacing:5px}
.project-marker{cursor:pointer;outline:none}
.project-marker .hit{fill:transparent}
.project-marker .pin{fill:var(--sea);stroke:#9caa9f;stroke-width:1.5;transition:fill .2s,stroke .2s}
.project-marker .ring{fill:none;stroke:var(--amber);stroke-width:1;opacity:0}
.project-marker text{font:12px var(--sans);fill:#d6d8cc;paint-order:stroke;stroke:var(--sea);stroke-width:5px;stroke-linejoin:round}
.project-marker .marker-number{font:9px var(--mono);fill:var(--paper);stroke:none}
.project-marker:hover .pin,.project-marker:focus-visible .pin,.project-marker[aria-pressed="true"] .pin{fill:var(--amber);stroke:var(--amber)}
.project-marker:hover .marker-number,.project-marker:focus-visible .marker-number,.project-marker[aria-pressed="true"] .marker-number{fill:var(--sea)}
.project-marker:hover .ring,.project-marker:focus-visible .ring,.project-marker[aria-pressed="true"] .ring{opacity:1}
.project-marker[aria-pressed="true"] text{fill:var(--amber)}
.project-marker[aria-pressed="true"] .marker-number{fill:var(--sea)}
.project-marker:focus-visible .ring{stroke-width:3}
.harbor-caption{position:absolute;bottom:75px;right:28px;display:flex;align-items:center;gap:11px;font-size:11px;color:var(--muted)}
.harbor-caption i{width:5px;height:5px;border-radius:100%;background:var(--amber)}
.hero-foot{position:absolute;bottom:33px;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-end;gap:18px;font-size:11px;color:var(--muted)}
.hero-foot .caption{font-family:var(--serif);font-size:16px;color:#c5c9bf;letter-spacing:.12em}
.hero-foot .note{max-width:240px;text-align:right;line-height:1.7}
.hero-foot .note span{display:block}
.hero-foot .note .small{font-size:9px;color:#9caaa8}
.projects{padding:35px 0 68px;border-top:1px solid #65736c}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:30px}
.section-heading h2{margin:0;font-size:19px;font-weight:500;letter-spacing:.1em}
.section-heading h2 small{font:10px var(--mono);letter-spacing:.14em;margin-left:15px;color:var(--muted)}
.section-heading>p{margin:0;color:var(--muted);font-size:11px}
.project-layout{display:grid;grid-template-columns:1.06fr 1fr;gap:70px}
.project-menu{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;align-content:start}
.project-choice{display:flex;align-items:center;gap:12px;text-align:left;border:0;border-bottom:1px solid var(--line);background:none;min-height:65px;padding:12px 0;font-size:13px;line-height:1.5}
.project-choice .number{font:10px var(--mono);color:var(--muted)}
.project-choice .choice-arrow{margin-left:auto;opacity:0;color:var(--amber)}
.project-choice:hover,.project-choice[aria-pressed="true"]{color:var(--amber)}
.project-choice[aria-pressed="true"] .choice-arrow{opacity:1}
.project-choice[aria-pressed="true"]{border-color:var(--amber)}
.selected-project{border-left:1px solid var(--line);padding-left:34px;min-height:219px}
.project-kicker{display:flex;justify-content:space-between;gap:20px;color:var(--amber);margin:0 0 12px}
.selected-project h3{font:400 29px/1.35 var(--serif);margin:0 0 15px;letter-spacing:-.025em}
.selected-project p{font-size:13px;color:#acb9b8;margin:0;line-height:1.9}
.selected-project .project-scope{font-size:10px;color:#9aa8a8;margin-top:22px}
.project-menu-label{font-size:10px;color:var(--muted);margin-top:18px}
.reading-shore{background:var(--paper);color:var(--ink);position:relative}
.reading-shore:before{content:"";position:absolute;top:0;left:0;right:0;height:6px;background:repeating-linear-gradient(90deg,#9a9f92 0,#9a9f92 1px,transparent 1px,transparent 12px);opacity:.45}
.reading-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:88px;padding-top:64px;padding-bottom:66px}
.reading-shore .section-heading{margin-bottom:24px}
.reading-shore .section-heading h2 small{color:#68716c}
.reading-shore .muted{color:#626e6a}
.post{border-top:1px solid #b9bfb3}
.post:last-child{border-bottom:1px solid #b9bfb3}
.post summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:17px;padding:19px 0;font-size:16px;line-height:1.5}
.post summary::-webkit-details-marker{display:none}
.post summary:after{content:"+";margin-left:auto;color:#6b756d;font-size:22px;font-weight:300}
.post[open] summary:after{content:"−"}
.post summary .small{font-size:10px;color:#66716b;flex-shrink:0}
.post p{font-size:13px;line-height:1.9;margin:0 0 18px;padding-left:34px;color:#53635d}
.post .draft-label{display:block;margin-top:11px;font-size:10px;letter-spacing:.05em}
.writing-note{font-size:10px;color:#6a756c;margin:15px 0 0}
.about{padding-left:34px;border-left:1px solid #b9bfb3}
.about .author{font:25px var(--serif);margin:0 0 18px}
.about .author small{font:11px var(--mono);margin-left:12px;color:#66716b}
.about p{font-size:13px;color:#53635d;line-height:1.95}
.about .welcome{font-family:var(--serif);font-size:18px;color:var(--ink);line-height:1.8;margin-top:25px}
.about .welcome small{display:block;font:11px/1.8 var(--sans);color:#626e6a;margin-top:7px}
.shore-lamp{width:30px;height:43px;margin-top:22px;stroke:#6a756c;fill:none;stroke-width:1.2}
footer{padding:28px 0;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:10px;color:var(--muted)}
.footer-brand{color:var(--paper);letter-spacing:.12em}
.footer-right{display:flex;align-items:center;gap:28px}
#terminal-toggle{padding:8px 12px;border:1px solid var(--line);background:none;color:#c6cec8;font:11px var(--mono)}
#terminal-toggle:hover{color:var(--amber);border-color:var(--amber)}
#terminal-panel{position:fixed;inset:0;z-index:30;display:flex;align-items:flex-end;justify-content:center}
.terminal-backdrop{position:absolute;inset:0;background:#061018b8}
.terminal-drawer{position:relative;background:var(--deep);width:min(780px,100%);max-height:85dvh;border:1px solid #667269;border-bottom:0;box-shadow:0 -20px 90px #0004;padding:23px 30px 27px;display:flex;flex-direction:column}
.terminal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px;gap:15px}
.terminal-header h2{font:13px var(--mono);color:var(--amber);margin:0}
.terminal-header p{font-size:10px;margin:5px 0 0;color:var(--muted)}
#terminal-close{border:1px solid var(--line);background:none;padding:6px 12px;font-size:12px}
.terminal-welcome{font:12px/1.7 var(--mono);color:var(--muted);margin:17px 0 6px}
#terminal-output{overflow:auto;min-height:90px;max-height:40dvh;font:12px/1.8 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere}
#terminal-output p{margin:6px 0 15px}
#terminal-output .command{color:var(--amber);margin-bottom:0}
.terminal-input-line{display:flex;gap:12px;border-top:1px solid var(--line);padding-top:14px;margin-top:18px;align-items:center}
.terminal-input-line label{font:12px var(--mono);color:var(--amber);white-space:nowrap}
#terminal-input{border:0;border-bottom:1px solid #586962;background:transparent;color:var(--paper);min-width:0;flex:1;font:13px var(--mono);padding:9px 0;border-radius:0}
.terminal-footnote{font-size:10px;color:var(--muted);margin:15px 0 0}
html[lang="en"] h1{font-size:clamp(48px,6.3vw,79px);letter-spacing:-.045em;line-height:1.1}
html[lang="en"] .hero-sub{margin-top:30px}
html[lang="en"] .hero-sub p{line-height:1.8}
html[lang="en"] .brand-name{letter-spacing:0;font:24px var(--serif)}
html[lang="en"] .project-choice{font-size:12px}
@media(min-width:1450px){.hero{min-height:830px}
.harbor{width:1030px;right:-85px;top:80px}}
@media(max-width:1000px){.wrap{width:calc(100% - 64px)}
.harbor{width:850px;right:-80px;top:180px}
.hero{min-height:810px}
.hero-copy{padding-top:48px}
h1{font-size:64px}
.project-layout{gap:32px}
.reading-grid{gap:40px}
.hero-sub p{max-width:280px}
.hero-sub{max-width:285px}
.harbor-caption{right:105px}
.navigation nav{gap:22px}}
@media(max-width:720px){.wrap{width:calc(100% - 40px)}
.navigation{height:86px;gap:12px}
.brand{gap:8px}
.brand svg{width:21px;height:33px}
.brand-name{font-size:21px}
.brand-en{font-size:7px}
.navigation nav{gap:15px;font-size:12px}
#language-toggle{padding:6px 8px;font-size:10px;min-height:34px}
.hero{min-height:auto;padding-bottom:80px}
.hero-copy{padding-top:40px;width:100%;pointer-events:auto}
.eyebrow{font-size:10px;margin-bottom:20px}
h1{font-size:clamp(40px,9vw,62px);letter-spacing:-.05em}
.hero-sub{margin-top:23px;max-width:100%;display:grid;grid-template-columns:1fr auto;gap:0 20px}
.hero-sub strong{font-size:14px;grid-column:1/-1}
.hero-sub p{font-size:12px;max-width:380px;margin:9px 0 0;line-height:1.85}
.hero-sub .text-link{align-self:end;font-size:11px;gap:15px;white-space:nowrap;padding-bottom:4px}
.harbor{position:relative;width:calc(100% + 40px);right:auto;top:auto;margin:7px -20px -2px;overflow:hidden}
.harbor svg{width:135%;max-width:none;transform:translateX(-23%);overflow:visible}
.harbor-caption{bottom:7px;right:22px;font-size:9px}
.hero-foot{bottom:23px;gap:12px}
.hero-foot .caption{font-size:13px}
.hero-foot .note{font-size:9px;max-width:160px}
.hero-foot .note .small{font-size:7px}
.projects{padding:27px 0 42px}
.section-heading{margin-bottom:20px}
.section-heading h2{font-size:17px}
.section-heading h2 small{font-size:9px;margin-left:9px}
.section-heading>p{font-size:10px}
.project-layout{grid-template-columns:1fr;gap:28px}
.project-menu{gap:0 21px}
.project-choice{min-height:56px;font-size:12px;gap:9px}
.selected-project{padding-left:19px;min-height:0}
.selected-project h3{font-size:27px}
.selected-project p{font-size:12px}
.selected-project .project-scope{margin-top:15px}
.reading-grid{grid-template-columns:1fr;gap:39px;padding-top:39px;padding-bottom:41px}
.about{padding:29px 0 0;border-left:0;border-top:1px solid #b9bfb3}
.about .section-heading{margin-bottom:20px}
.about .welcome{margin-bottom:0}
.shore-lamp{float:right;margin-top:-45px;margin-right:8px}
.post summary{font-size:14px;gap:12px}
.post p{padding-left:0}
.about p{max-width:500px}
.about .welcome small{padding-right:42px}
footer{padding:21px 0;align-items:flex-start}
.footer-right{flex-direction:column-reverse;align-items:flex-end;gap:10px}
.footer-credit{font-size:9px}
.terminal-drawer{padding:20px}
.terminal-header h2{font-size:12px}
.terminal-input-line{gap:8px}
.terminal-input-line label{font-size:10px}
html[lang="en"] h1{font-size:clamp(44px,10vw,65px)}
html[lang="en"] .brand-name{font-size:20px}
html[lang="en"] .navigation nav{gap:10px}
html[lang="en"] .hero-sub{margin-top:23px}
html[lang="en"] .hero-sub p{font-size:11px}
html[lang="en"] .hero-foot .caption{font-size:12px;letter-spacing:0}}
@media(max-width:380px){.wrap{width:calc(100% - 32px)}
.navigation nav{gap:10px}
.brand svg{display:none}
.hero-sub{display:block}
.hero-sub .text-link{margin-top:16px}
.harbor{width:calc(100% + 32px);margin-inline:-16px}
.section-heading>p{max-width:140px;text-align:right}
html[lang="en"] .brand-name{font-size:18px}}
@media(min-width:721px) and (max-width:1200px){.harbor{right:-32px;max-width:calc(100% + 64px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}
*,*:before,*:after{animation:none!important;transition:none!important}}

/* Main site navigation and reading links */
.brand-en:empty { display: none; }
#project-detail-link { margin-top: 1.1rem; color: var(--amber); }
.footer-info { display: grid; gap: .65rem; }
.footer-brand { font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .83rem; }
.footer-links a { padding-block: .25rem; }
.footer-links a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
#terminal-toggle { white-space: nowrap; }
@media (max-width: 480px) {
  .navigation { flex-wrap: wrap; height: auto; padding: 1rem 0 .8rem; gap: .6rem 1rem; }
  .navigation nav { flex-wrap: wrap; }
  footer { flex-wrap: wrap; gap: .9rem; }
  .footer-links { gap: .25rem .85rem; }
}

/* ---- 2026-11 refinement: three tiers of projects, status lamps, quieter motion ---- */
body { text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
.small, .number, .marker-number { font-variant-numeric: tabular-nums; }

/* A thin night sky behind the harbour: a few fixed stars and a faint band. */
.hero:before {
  content: ""; position: absolute; inset: 0 -48px 110px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.3px 1.3px at 7% 9%, #e8e4dacc 50%, transparent 52%),
    radial-gradient(1px 1px at 16% 31%, #e8e4da77 50%, transparent 52%),
    radial-gradient(1px 1px at 23% 6%, #e8e4da88 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 31% 21%, #d8af78aa 50%, transparent 52%),
    radial-gradient(1px 1px at 38% 12%, #e8e4da66 50%, transparent 52%),
    radial-gradient(1px 1px at 44% 3%, #e8e4da99 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 52% 17%, #e8e4da77 50%, transparent 52%),
    radial-gradient(1px 1px at 57% 7%, #e8e4da55 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 2%, #e8e4da88 50%, transparent 52%),
    radial-gradient(1px 1px at 3% 47%, #e8e4da55 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 28% 44%, #e8e4da44 50%, transparent 52%),
    radial-gradient(1px 1px at 35% 58%, #e8e4da33 50%, transparent 52%),
    radial-gradient(1px 1px at 11% 71%, #e8e4da33 50%, transparent 52%),
    linear-gradient(116deg, transparent 30%, #a3b1b30b 41%, #d8af780a 47%, #a3b1b308 53%, transparent 64%);
}

/* The page arrives in order: words first, then the harbour. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy h1 { animation-delay: .12s; }
.hero-copy .hero-sub { animation-delay: .3s; }
.harbor { animation: fade 1.5s ease .15s both; }
.hero-foot { animation: fade 1.2s ease .7s both; }

/* The harbour is quiet, not still. */
@keyframes breathe { 0%, 100% { opacity: .06; } 50% { opacity: .14; } }
@keyframes drift { to { stroke-dashoffset: -240; } }
@keyframes pulse { 0% { transform: scale(.75); opacity: .85; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: .18; transform: scale(.82) rotate(0deg); } 50% { opacity: .5; transform: scale(1.06) rotate(8deg); } }
#warm-lamp circle:first-child { animation: breathe 7s ease-in-out infinite; }
.harbor .route { animation: drift 70s linear infinite; }
.harbor .bearing { fill: none; stroke: #a3b1b3; stroke-width: .6; stroke-dasharray: 1 6; opacity: .5; }

.project-marker .pin, .project-marker .ring, .project-marker text, .project-marker .star, .project-marker .house { transition: fill .25s, stroke .25s, opacity .25s; }
.project-marker .pulse { fill: none; stroke: var(--amber); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.project-marker[aria-pressed="true"] .pulse { animation: pulse 3.2s ease-out infinite; }
.project-marker .state { fill: var(--sea); stroke: #9caa9f; stroke-width: 1; }
.project-marker.st-on .state, .project-marker.st-done .state { fill: var(--amber); stroke: var(--sea); stroke-width: 1.4; }
.project-marker.st-part .state { fill: #8d7a5a; stroke: var(--sea); stroke-width: 1.4; }
.project-marker.st-fail .state { fill: var(--sea); stroke: #cf7a62; stroke-width: 1.2; }
.project-marker.voyage .glow { fill: var(--amber); opacity: .05; }
.project-marker.voyage .rays { fill: none; stroke: var(--paper); stroke-width: .6; transform-box: fill-box; transform-origin: center; animation: twinkle 7s ease-in-out infinite; }
.project-marker.voyage .star { fill: var(--paper); }
.project-marker.voyage text { font: 13px var(--serif); letter-spacing: 2.5px; }
.project-marker.voyage .marker-sub { font: 8px var(--mono); letter-spacing: 2px; fill: #9baaa8; }
.project-marker.voyage:hover .star, .project-marker.voyage:focus-visible .star, .project-marker.voyage[aria-pressed="true"] .star { fill: var(--amber); }
.project-marker.shore .house { fill: #34413f; stroke: #9caa9f; stroke-width: 1.1; }
.project-marker.shore .window { fill: var(--amber); opacity: .8; }
.project-marker.shore:hover .house, .project-marker.shore:focus-visible .house, .project-marker.shore[aria-pressed="true"] .house { stroke: var(--amber); fill: #3d4a47; }

/* Status lamps, shared by the index and the panel. */
.lamp { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.2px solid #9caa9f; }
.lamp.st-on { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 3px #d8af7829; }
.lamp.st-done { background: #9caa9f; }
.lamp.st-part { background: linear-gradient(90deg, var(--amber) 50%, transparent 50%); border-color: var(--amber); }
.lamp.st-prog { border-style: dotted; }
.lamp.st-fail { border-color: #cf7a62; border-style: dashed; }

/* Index: the voyage, the berths, the shore. */
.project-menu-group + .project-menu-group { margin-top: 30px; }
.project-menu-group .project-menu-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 2px; font: 10px/1.6 var(--mono); letter-spacing: .14em; color: var(--amber); }
.project-menu-group .project-menu-label small { font: 11px/1.6 var(--sans); letter-spacing: 0; color: var(--muted); }
.project-choice { transition: color .2s, border-color .25s, padding .25s; }
.project-choice:hover { padding-left: 5px; }
.project-choice .number { min-width: 1.7em; }
.choice-text { display: grid; gap: 1px; min-width: 0; }
.choice-what { font: 11px/1.5 var(--sans); color: var(--muted); transition: color .2s; }
.project-choice .lamp { margin-left: auto; }
.project-choice .lamp + .choice-arrow { margin-left: 10px; }
.project-choice .choice-arrow { transition: opacity .2s, transform .25s; transform: translate(-3px, 3px); }
.project-choice[aria-pressed="true"] .choice-arrow { transform: none; }
.tier-voyage .project-menu { grid-template-columns: 1fr; }
.tier-voyage .project-choice { min-height: 80px; }
.tier-voyage .project-choice .number { color: var(--amber); font-size: 13px; }
.tier-voyage [data-project-name] { font: 21px/1.3 var(--serif); letter-spacing: .08em; }
.tier-voyage .choice-what { font-size: 12px; }

/* Panel */
.selected-project .project-what { font: 15px/1.6 var(--serif); color: var(--paper); letter-spacing: .02em; margin: -7px 0 14px; }
.project-facts { display: grid; grid-template-columns: auto 1fr; margin: 22px 0 0; border-top: 1px solid var(--line); }
.project-facts div { display: contents; }
.project-facts dt { padding: 11px 24px 11px 0; border-bottom: 1px solid var(--line); font: 10px/1.9 var(--mono); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.project-facts dd { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: #d3d8d1; }
#project-detail-link { gap: 22px; }
.text-link .arrow { transition: transform .25s; }
.text-link:hover .arrow { transform: translate(3px, -3px); }
.selected-project.swap > * { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.selected-project.swap > :nth-child(2) { animation-delay: .04s; }
.selected-project.swap > :nth-child(n+3) { animation-delay: .09s; }

/* Shore: one finished piece of writing, and the keeper's card. */
a.post { display: flex; align-items: center; gap: 17px; padding: 19px 0; font-size: 16px; line-height: 1.5; }
a.post .small { font-size: 10px; color: #66716b; flex-shrink: 0; }
.post-text { display: grid; gap: 3px; min-width: 0; }
.post-text small { font-size: 12px; line-height: 1.7; color: #53635d; }
a.post:after { content: "↗"; margin-left: auto; padding-left: 14px; color: #6b756d; font: 20px var(--serif); transition: transform .25s, color .2s; }
a.post:hover { color: #7a4f17; }
a.post:hover:after { transform: translate(3px, -3px); color: #7a4f17; }
.post summary { transition: color .2s; }
.post summary:hover { color: #7a4f17; }
.about-card { margin-top: 20px; padding-top: 18px; border-top: 1px solid #b9bfb3; }
.about .card-role { margin: 0 0 9px; font: 15px/1.6 var(--serif); color: var(--ink); }
.card-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12px; line-height: 1.8; color: #53635d; }
.card-facts li:before { content: "— "; color: #9aa39a; }
.stack { margin-top: 12px; font-size: 12px; color: #53635d; }
.stack summary { cursor: pointer; padding: 6px 0; font: 10px/1.8 var(--mono); letter-spacing: .1em; color: #66716b; }
.stack summary:hover { color: var(--ink); }
.stack ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; line-height: 1.75; }
.stack b { display: block; font: 600 12px/1.7 var(--serif); color: var(--ink); }
.about .about-method { margin: 18px 0 0; }
.about .text-link { color: var(--ink); border-color: #9aa39a; gap: 22px; }
.about .text-link:hover { color: #7a4f17; border-color: #7a4f17; }
.footer-links a, .navigation nav a, #terminal-toggle, #language-toggle { transition: color .2s, border-color .2s; }
#language-toggle:hover { border-color: var(--amber); color: var(--amber); }

@media (max-width: 720px) {
  .hero:before { inset: 0 0 40%; }
  .project-menu-group + .project-menu-group { margin-top: 22px; }
  .tier-voyage [data-project-name] { font-size: 19px; }
  .project-marker.voyage text { font-size: 15px; }
  .about-card { margin-top: 16px; }
}

/* ---- welcome cover: a quiet first screen under warm lamplight; scrolling steps it back into the page ---- */
.cover { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.cover .hero { flex: 1; }
/* Night closes in at the edges; the lighthouse lamp warms what is near it. */
.cover:before, .cover:after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cover:before { background: radial-gradient(125% 110% at var(--lamp-x, 68%) var(--lamp-y, 36%), transparent 38%, rgb(4 9 13 / .66) 100%); opacity: calc(1 - var(--p, 0) * .6); }
.cover:after { mix-blend-mode: screen; background: radial-gradient(54% 60% at var(--lamp-x, 68%) var(--lamp-y, 36%), rgb(255 176 92 / .26), rgb(255 158 78 / .12) 30%, rgb(214 146 86 / .05) 58%, transparent 78%); opacity: calc(1 - var(--p, 0) * .55); animation: filament 9s ease-in-out infinite; }
@keyframes filament { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(.84); } 60% { filter: brightness(.95); } }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; z-index: 4; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 0; font: 9px/1 var(--mono); letter-spacing: .34em; text-indent: .34em; color: var(--muted); opacity: calc(1 - var(--p, 0) * 4); pointer-events: none; }
.scroll-cue:after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--amber), transparent); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 35% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(10px); opacity: 0; } }
.harbor-caption a { display: inline-flex; align-items: baseline; gap: 9px; color: var(--paper); }
.harbor-caption a b { font: 14px var(--serif); letter-spacing: .06em; color: var(--amber); }
.harbor-caption a .arrow { font: 15px var(--serif); color: var(--amber); transition: transform .25s; }
.harbor-caption a:hover .arrow { transform: translate(3px, -3px); }

@media (min-width: 1001px) {
  .cover-track { height: calc(max(100svh, 600px) + 48vh); }
  .cover { position: sticky; top: 0; height: max(100svh, 600px); min-height: 0; overflow: hidden; transform: scale(calc(1 - var(--p, 0) * .06)); border-radius: calc(var(--p, 0) * 22px); outline: 1px solid rgb(101 115 108 / calc(var(--p, 0) * .8)); outline-offset: -1px; will-change: transform; }
  .cover .hero { min-height: 500px; display: flex; flex-direction: column; justify-content: center; }
  .cover .hero-copy { padding-top: 0; padding-bottom: 60px; }
  html[lang="en"] .cover h1 { font-size: clamp(44px, 4.6vw, 62px); }
  .cover .harbor { top: 50%; translate: 0 -52%; width: clamp(600px, calc((100svh - 215px) * 1.43), 960px); }
  /* At rest the cover shows only the title, the harbour and its lights. The rest arrives with the scroll. */
  .cover .hero-foot { animation: none; }
  .cover .hero-sub p, .cover .hero-foot, .cover .harbor-caption, .cover .map-text, .cover .land-label, .cover .bearing,
  .cover .project-marker text:not(.marker-number) { opacity: clamp(0, calc(var(--p, 0) * 1.9 - .3), 1); }
  .cover .project-marker text:not(.marker-number) { transition: opacity .3s, fill .25s; }
  .cover .project-marker:hover text, .cover .project-marker:focus-visible text, .cover .project-marker[aria-pressed="true"] text,
  .cover .harbor-caption.picked { opacity: 1; }
}
@media (min-width: 1450px) {
  .cover .harbor { width: clamp(600px, calc((100svh - 215px) * 1.43), 1030px); }
}
@media (min-width: 1001px) and (max-height: 800px) {
  .navigation { height: 78px; }
  h1, html[lang="en"] h1 { font-size: clamp(42px, 8.4vh, 66px); }
  .hero-sub { margin-top: 24px; }
  .cover .hero-copy { padding-bottom: 44px; }
}
@media (max-width: 1000px) {
  .scroll-cue { display: none; }
  /* Narrower charts leave the land to the map caption; the index below still names the shore tier. */
  .harbor .land-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-track { height: auto; }
  .cover { position: relative; height: auto; min-height: 100svh; transform: none; border-radius: 0; outline: 0; }
  .cover .hero-sub p, .cover .hero-foot, .cover .harbor-caption, .cover .map-text, .cover .land-label, .cover .bearing,
  .cover .project-marker text:not(.marker-number) { opacity: 1; }
}

/* ---- the redrawn harbour chart ---- */
.harbor .isobath { fill: none; stroke: #597174; stroke-width: .7; opacity: .26; }
.harbor .swell { fill: none; stroke: #678184; stroke-width: .7; opacity: .32; }
.harbor .apron { fill: #303e41; stroke: none; }
.harbor .road { fill: none; stroke: #1b2a31; stroke-width: 5; opacity: .75; }
.harbor .lane { fill: none; stroke: #1b2a31; stroke-width: 2.6; opacity: .6; }
.harbor .window { fill: var(--amber); opacity: .8; }
.harbor .wall-edge { fill: none; stroke: #879089; stroke-width: 11.6; stroke-linecap: round; stroke-linejoin: round; }
.harbor .wall { fill: none; stroke: #4a5351; stroke-width: 9.6; stroke-linecap: round; stroke-linejoin: round; }
.harbor .wall-top { fill: none; stroke: #b1b19b; stroke-width: .7; opacity: .7; }
.harbor .quay-edge { fill: none; stroke: #a9ad9c; stroke-width: 1.5; }
.harbor .wake { fill: none; stroke: #9fb0ad; stroke-width: .7; opacity: .45; }
.harbor .lantern { fill: #f2c98a; }
.harbor .halo { opacity: .07; animation: breathe 7s ease-in-out infinite; }
@media (min-width: 1001px) {
  .cover .isobath, .cover .swell, .cover .contour { opacity: calc(.1 + var(--p, 0) * .16); }
  /* The panel stays in view while the reader goes down the index. */
  .selected-project { position: sticky; top: 32px; align-self: start; }
}

/* ---- the way to write, under the welcome line ---- */
.about .about-mail { margin: 16px 0 0; }
.about .about-mail .text-link { font: 12px var(--mono); letter-spacing: .02em; }

/* ---- going to a project page and back: the two pages dissolve into each other (page.css carries the same rule) ---- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .36s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* ---- print: dark ink on white paper, the whole index instead of the moving parts ---- */
@media print {
  @page { margin: 16mm 15mm; }
  html, body { background: #fff !important; }
  *, *:before, *:after { color: #1f2b2f !important; background: transparent !important; border-color: #c3c7bf !important;
    box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  .skip, .navigation nav, .scroll-cue, .harbor, .harbor-caption, .hero-foot, .selected-project, .shore-lamp, .choice-arrow,
  .post .arrow, #terminal-toggle, #terminal-panel, .cover:before, .cover:after, .hero:before { display: none !important; }
  .cover-track { height: auto !important; }
  .cover { position: static !important; height: auto !important; min-height: 0 !important; transform: none !important; outline: 0 !important; }
  .cover .hero { min-height: 0 !important; padding: 0 !important; }
  .cover .hero-sub p, .cover .hero-foot { opacity: 1 !important; }
  .hero-copy { max-width: none !important; padding: 8mm 0 4mm !important; }
  h1 { font-size: 30pt !important; }
  .project-layout { display: block !important; }
  .project-choice { break-inside: avoid; }
  .reading-shore { padding: 0 !important; }
  .reading-grid { display: block !important; padding: 6mm 0 0 !important; }
  .about { border: 0 !important; padding: 6mm 0 0 !important; }
  section { break-inside: auto; }
  .post, .about-card { break-inside: avoid; }
  footer { padding-top: 4mm !important; }
}
