/* Atlas portfolio — design system + public pages. */
:root {
  --paper: #efe6d0; --ivory: #f6f0e0; --cream: #f9f4e8; --parch: #e6dcc0;
  --ink: #2a3a33; --ink2: #4d6357; --ink3: #7a8b80;
  --forest: #2f4a3a; --deep: #213a2e; --sage: #a8b794; --teal: #4e7f7d; --bluegreen: #6f9a96;
  --terra: #b5674a; --ochre: #c79a3c; --rule: rgba(42, 58, 51, .22);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --gutter: clamp(18px, 4vw, 56px);
  --u: .8;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { /* subtle paper grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .25  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ivory); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
.eyebrow, .mono, .meta dt, .tabs button, .chip { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 500; color: var(--ink2); }
.hand { font-family: var(--hand); color: var(--terra); }
p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; } .prose li { margin-bottom: .3em; }

/* ---------- page chrome (all pages except the atlas) ---------- */
.chrome { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px var(--gutter); border-bottom: 1px solid var(--rule); background: rgba(246, 240, 224, .85); backdrop-filter: blur(6px); position: sticky; top: 0; }
.wordmark { font-family: var(--serif); font-size: 26px; font-weight: 500; text-decoration: none; color: var(--ink); letter-spacing: .01em; }
.wordmark:hover { color: var(--forest); }
.topnav, .chrome nav { display: flex; gap: clamp(14px, 2.2vw, 30px); align-items: baseline; flex-wrap: wrap; }
.topnav a, .chrome nav a { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .15em; text-decoration: none; color: var(--ink); padding: 4px 0; border-bottom: 1px solid transparent; }
.topnav a:hover, .chrome nav a:hover, .chrome nav a[aria-current="page"] { border-color: var(--terra); color: var(--ink); }
.chrome .atlas-link { color: var(--terra); }
.menu-btn { display: none; font-family: var(--sans); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; background: none; border: 1px solid var(--rule); padding: 8px 14px; color: var(--ink); cursor: pointer; }
.page { position: relative; z-index: 1; min-height: 70vh; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.page-head { padding: clamp(44px, 8vw, 96px) 0 clamp(26px, 4vw, 48px); border-bottom: 1px solid var(--rule); margin-bottom: clamp(30px, 5vw, 60px); }
.page-head h1 { font-size: clamp(40px, 7vw, 84px); max-width: 15ch; }
.page-head .lead { font-size: clamp(20px, 2.2vw, 26px); max-width: 44ch; margin-top: 18px; color: var(--ink2); font-style: italic; }
.page-head .eyebrow { display: block; margin-bottom: 18px; }
.foot { position: relative; z-index: 1; margin-top: 90px; padding: 34px var(--gutter) 44px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: space-between; background: rgba(230, 220, 192, .5); }
.foot a { color: var(--ink2); }

/* ---------- homepage atlas ---------- */
body.is-home { overflow: hidden; }
.atlas { position: fixed; inset: 0; height: 100dvh; overflow: hidden; z-index: 1; }
.atlas-sky { position: absolute; inset: 0; background: linear-gradient(#d9e5d6, #f5edd8 26%); }
.atlas-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.atlas-layer > svg, .atlas-fg > svg { will-change: transform; display: block; height: 100%; width: auto; max-width: none; }
.atlas-fg { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; overflow: hidden; pointer-events: none; z-index: 4; }
.atlas-scroller { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; z-index: 3; outline: none; }
.atlas-scroller::-webkit-scrollbar { display: none; }
.atlas-scroller.dragging { cursor: grabbing; user-select: none; }
.atlas-world { position: relative; height: 100%; flex: none; }
.atlas-world > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.atlas-top { position: absolute; z-index: 8; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px var(--gutter) 40px; background: linear-gradient(rgba(246, 240, 224, .82), rgba(246, 240, 224, 0)); pointer-events: none; }
.atlas-top > * { pointer-events: auto; }
.topnav-m { position: absolute; z-index: 9; top: 62px; right: var(--gutter); background: var(--ivory); border: 1px solid var(--rule); padding: 8px 20px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(33, 58, 46, .18); }
.topnav-m[hidden] { display: none; }
.topnav-m a { font-family: var(--sans); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; text-decoration: none; color: var(--ink); padding: 11px 0; border-bottom: 1px solid var(--rule); }
.topnav-m a:last-child { border: 0; }

.intro { position: absolute; top: 15%; width: min(calc(var(--u) * 760px), 86vw); padding: clamp(18px, 2.4vw, 34px) clamp(20px, 2.8vw, 40px); background: rgba(249, 244, 232, .9); border: 1px solid rgba(42, 58, 51, .3); box-shadow: 0 0 0 5px rgba(249, 244, 232, .55), 0 18px 40px rgba(33, 58, 46, .12); }
.intro::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(42, 58, 51, .18); pointer-events: none; }
.intro h1 { font-size: clamp(38px, 5.6vw, 78px); margin: 8px 0 12px; font-weight: 500; }
.intro .lead { font-size: clamp(16px, 1.5vw, 21px); line-height: 1.45; font-style: italic; color: var(--ink2); max-width: 44ch; }
.intro .lead p { margin: 0 0 14px; }
.explore { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; background: var(--forest); color: var(--cream); border: 0; padding: 14px 22px; cursor: pointer; transition: background .2s; }
.explore:hover { background: var(--terra); }
.explore span { display: inline-block; transition: transform .25s; } .explore:hover span { transform: translateX(5px); }

.plaque { position: absolute; top: 11%; width: min(360px, 78vw); padding: 18px 22px 20px; background: rgba(249, 244, 232, .88); border: 1px solid rgba(42, 58, 51, .3); box-shadow: 0 0 0 4px rgba(249, 244, 232, .5), 0 14px 30px rgba(33, 58, 46, .12); }
.plaque::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(42, 58, 51, .15); pointer-events: none; }
.plaque .num { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--terra); }
.plaque h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 4px 0 4px; }
.plaque .sub { font-style: italic; color: var(--ink2); font-size: 17px; margin: 0 0 8px; }
.plaque .desc { font-size: 15.5px; line-height: 1.4; color: var(--ink2); border-top: 1px solid var(--rule); padding-top: 9px; margin-top: 8px; }
@media (max-height: 700px) { .plaque .desc { display: none; } }

.marker { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); z-index: 5; }
.marker .pin { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--terra); border: 2px solid var(--cream); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(33, 58, 46, .35); transition: transform .2s, background .2s; }
.marker .pin::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--terra); opacity: .55; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
.marker .pin b { font-family: var(--sans); font-weight: 500; font-size: 10.5px; color: var(--cream); letter-spacing: .02em; }
.marker .tag { display: flex; flex-direction: column; background: rgba(249, 244, 232, .94); border: 1px solid rgba(42, 58, 51, .28); padding: 5px 10px 6px; max-width: 220px; box-shadow: 0 4px 12px rgba(33, 58, 46, .16); }
.marker .tag strong { font-weight: 600; font-size: 15px; line-height: 1.15; }
.marker .tag em { font-family: var(--sans); font-style: normal; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin-top: 2px; }
.marker.flip { flex-direction: row-reverse; }
.marker:hover, .marker:focus-visible { z-index: 7; }
.marker:hover .pin, .marker:focus-visible .pin { transform: scale(1.12); background: var(--forest); }
.marker .print { position: absolute; bottom: calc(100% + 10px); left: 0; width: 200px; padding: 6px 6px 24px; background: #fffdf4; border: 1px solid rgba(42, 58, 51, .25); box-shadow: 0 12px 26px rgba(33, 58, 46, .28); transform: rotate(-2deg) scale(.9); transform-origin: bottom left; opacity: 0; pointer-events: none; transition: .25s; }
.marker.flip .print { left: auto; right: 0; transform-origin: bottom right; }
.marker .print img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.marker:hover .print, .marker:focus-visible .print { opacity: 1; transform: rotate(-2deg) scale(1); }
@media (hover: none) { .marker .print { display: none; } }

.finale { position: absolute; top: 18%; width: min(calc(var(--u) * 400px), 84vw); padding: 24px 28px; background: rgba(249, 244, 232, .9); border: 1px solid rgba(42, 58, 51, .3); box-shadow: 0 0 0 5px rgba(249, 244, 232, .5); }
.finale h2 { font-size: 34px; margin: 6px 0 10px; } .finale .desc { color: var(--ink2); font-style: italic; margin-bottom: 14px; font-size: 17px; } .finale .desc p { margin: 0 0 8px; }
.finale-links { font-family: var(--sans); font-size: 13px; margin: 0 0 16px; }

.hud { position: absolute; z-index: 9; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(780px, 94vw); display: grid; grid-template-columns: 42px 1fr 42px; grid-template-rows: auto auto; gap: 4px 10px; align-items: center; padding: 10px 14px 8px; background: rgba(249, 244, 232, .92); border: 1px solid rgba(42, 58, 51, .32); box-shadow: 0 8px 26px rgba(33, 58, 46, .22); backdrop-filter: blur(5px); }
.hud-arrow { width: 38px; height: 38px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: .2s; }
.hud-arrow:hover { background: var(--forest); color: var(--cream); }
.hud-track { position: relative; height: 46px; cursor: pointer; }
.hud-rule { position: absolute; left: 0; right: 0; top: 11px; height: 0; border-top: 1px dashed var(--ink2); opacity: .6; }
.hud-thumb { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; background: var(--terra); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--cream); pointer-events: none; transition: left .06s linear; }
.hud-tick { position: absolute; top: 0; transform: translateX(-50%); background: none; border: 0; padding: 0 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink2); font-family: var(--sans); }
.hud-tick::before { content: ''; width: 1px; height: 12px; background: var(--ink2); margin-bottom: 3px; }
.hud-tick .n { font-size: 10px; letter-spacing: .12em; } .hud-tick .l { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; margin-top: 1px; opacity: .8; }
.hud-tick.on { color: var(--terra); } .hud-tick.on::before { background: var(--terra); height: 14px; }
.hud-here { grid-column: 1 / -1; margin: 0; text-align: center; font-family: var(--hand); font-size: 20px; line-height: 1; color: var(--forest); }
.scroll-hint { position: absolute; z-index: 9; right: var(--gutter); bottom: 128px; margin: 0; font-family: var(--hand); font-size: 24px; color: var(--forest); background: rgba(249, 244, 232, .85); padding: 4px 14px; transition: opacity .6s; }
.scroll-hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; } .scroll-hint.gone { opacity: 0; pointer-events: none; }
@keyframes nudge { 50% { transform: translateX(8px); } }

/* ---------- portfolio index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip { cursor: pointer; background: transparent; border: 1px solid var(--rule); padding: 9px 16px; color: var(--ink); transition: .2s; }
.chip:hover { border-color: var(--forest); } .chip[aria-pressed="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.index { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 34px; }
.card { text-decoration: none; color: var(--ink); display: block; }
.card .plate { position: relative; background: #fffdf4; padding: 8px; border: 1px solid var(--rule); box-shadow: 0 10px 24px rgba(33, 58, 46, .1); transition: transform .3s, box-shadow .3s; }
.card:hover .plate { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(33, 58, 46, .16); }
.card .plate img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.card .no { position: absolute; top: 14px; left: 14px; background: var(--cream); font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em; padding: 3px 8px; color: var(--terra); }
.card h3 { font-size: 25px; margin: 14px 0 4px; } .card .cat { font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.card p { margin: 6px 0 0; font-size: 16.5px; color: var(--ink2); }
.empty { padding: 40px 0; font-style: italic; color: var(--ink2); }

/* ---------- project pages ---------- */
.proj-head { padding: clamp(40px, 7vw, 84px) 0 28px; }
.crumbs { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--ink2); }
.proj-head h1 { font-size: clamp(36px, 6.4vw, 80px); max-width: 18ch; }
.proj-head .lead { font-size: clamp(20px, 2vw, 25px); font-style: italic; color: var(--ink2); max-width: 46ch; margin-top: 18px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 32px 0 0; }
.meta div { padding: 14px 18px 14px 0; } .meta dt { margin-bottom: 4px; } .meta dd { margin: 0; font-size: 18px; }
.hero { margin: 8px 0 0; } .hero img, .fig img { width: 100%; height: auto; background: var(--parch); }
.blocks { padding: 44px 0 0; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 84px); }
.blk-section { display: grid; grid-template-columns: minmax(160px, 1fr) 2.4fr; gap: 20px 40px; align-items: start; border-top: 1px solid var(--rule); padding-top: 22px; }
.blk-section h2, .blk-split h2, .blk-list h2, .blk-steps h2, .blk-quote + * { font-size: clamp(26px, 3vw, 38px); }
.blk-section .eyebrow { display: block; margin-bottom: 10px; color: var(--terra); }
.blk-section .prose, .blk-split .prose { font-size: 20px; max-width: 58ch; }
.fig { margin: 0; } .fig.wide { margin-inline: calc(-1 * var(--gutter)); } .fig figcaption, .figs figcaption { font-family: var(--sans); font-size: 12px; letter-spacing: .04em; color: var(--ink2); margin-top: 8px; display: flex; gap: 10px; }
.fig figcaption::before, .figs figcaption::before { content: '—'; color: var(--terra); }
.zoomable { cursor: zoom-in; }
.figs { display: grid; gap: 18px; } .figs.c2 { grid-template-columns: repeat(2, 1fr); } .figs.c3 { grid-template-columns: repeat(3, 1fr); } .figs.c4 { grid-template-columns: repeat(4, 1fr); }
.figs.masonry { display: block; columns: 3 260px; column-gap: 18px; } .figs.masonry figure { break-inside: avoid; margin: 0 0 18px; }
.figs img { width: 100%; height: auto; background: var(--parch); } .figs figure { margin: 0; }
.blk-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; } .blk-split.flip .fig { order: 2; }
.blk-split h2 { margin-bottom: 16px; }
.blk-list h2, .blk-steps h2 { margin-bottom: 22px; }
.mat { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.mat div { padding: 14px 18px 16px 0; border-bottom: 1px solid var(--rule); } .mat strong { display: block; font-weight: 600; font-size: 19px; } .mat span { color: var(--ink2); font-size: 16px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 14px; } .steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--sans); font-size: 11.5px; letter-spacing: .16em; color: var(--terra); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 24px; margin-bottom: 6px; } .steps p { font-size: 17px; color: var(--ink2); margin: 0; }
.blk-quote { font-size: clamp(26px, 3.6vw, 44px); font-style: italic; max-width: 26ch; line-height: 1.2; margin-inline: auto; text-align: center; padding: 20px 0; } .blk-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; margin-top: 14px; color: var(--ink2); }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--ink); margin-top: clamp(56px, 8vw, 110px); padding-top: 22px; }
.proj-nav a { text-decoration: none; color: var(--ink); } .proj-nav a:last-child { text-align: right; } .proj-nav small { display: block; font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink2); margin-bottom: 4px; } .proj-nav strong { font-size: 24px; font-weight: 500; }
.back-atlas { display: inline-block; margin-top: 26px; font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- about / notes / worlds / contact ---------- */
.cols { display: grid; grid-template-columns: 1fr 1.6fr; gap: 44px; align-items: start; }
.portrait img { width: 100%; height: auto; border: 8px solid #fffdf4; box-shadow: 0 12px 28px rgba(33, 58, 46, .16); background: var(--parch); }
.rows > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px 30px; padding: 18px 0; border-top: 1px solid var(--rule); }
.rows h2 { font-size: 20px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; color: var(--terra); }
.skillset { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; } .skillset h3 { font-size: 22px; margin-bottom: 8px; } .skillset ul { margin: 0; padding: 0; list-style: none; font-size: 17px; color: var(--ink2); } .skillset li { padding: 5px 0; border-top: 1px solid var(--rule); }
.btn { display: inline-block; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; background: var(--forest); color: var(--cream); padding: 14px 22px; text-decoration: none; transition: .2s; } .btn:hover { background: var(--terra); color: var(--cream); }
.note { display: grid; grid-template-columns: 1fr 1.4fr; gap: 34px; padding: 40px 0; border-top: 1px solid var(--rule); align-items: start; } .note:nth-child(even) .figs { order: -1; }
.note h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 8px 0 14px; }
.worlds-grid { display: grid; gap: 70px; }
.world { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; } .world:nth-child(even) { grid-template-columns: 1fr 1.5fr; } .world:nth-child(even) .fig { order: 2; }
.world h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 12px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--ink); } .contact-list li { display: grid; grid-template-columns: 160px 1fr; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 22px; } .contact-list .eyebrow { align-self: center; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(24, 34, 29, .94); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 24px; animation: rise .25s both; }
.lb img { max-width: min(96vw, 1800px); max-height: 80vh; object-fit: contain; background: transparent; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb p { color: var(--cream); font-family: var(--sans); font-size: 13px; letter-spacing: .04em; margin: 14px 0 0; text-align: center; min-height: 1.4em; }
.lb button { position: absolute; background: rgba(249, 244, 232, .12); color: var(--cream); border: 1px solid rgba(249, 244, 232, .3); width: 46px; height: 46px; font-size: 22px; cursor: pointer; } .lb button:hover { background: var(--terra); }
.lb .x { top: 18px; right: 18px; } .lb .pv { left: 18px; top: 50%; } .lb .nx { right: 18px; top: 50%; }

.toast-setup { margin: 40px auto; max-width: 640px; padding: 24px; border: 1px solid var(--terra); background: var(--cream); font-family: var(--sans); font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 18px; }
  .topnav { display: none; } .menu-btn { display: block; pointer-events: auto; }
  .chrome nav { display: none; } .chrome .menu-btn { display: block; } .chrome.open nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--ivory); padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--rule); gap: 0; } .chrome.open nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .chrome { padding: 14px var(--gutter); }
  .blk-section, .blk-split, .cols, .note, .world, .world:nth-child(even), .rows > div, .contact-list li { grid-template-columns: 1fr; }
  .blk-split.flip .fig, .note:nth-child(even) .figs, .world:nth-child(even) .fig { order: 0; }
  .figs.c3, .figs.c4 { grid-template-columns: repeat(2, 1fr); } .fig.wide { margin-inline: calc(-1 * var(--gutter)); }
  .hud { grid-template-columns: 36px 1fr 36px; padding: 8px 10px 6px; bottom: 10px; } .hud-tick .l { display: none; } .hud-track { height: 30px; }
  .scroll-hint { bottom: 112px; font-size: 20px; }
  .marker .tag { max-width: 150px; } .marker .tag strong { font-size: 13.5px; }
}
@media (max-width: 520px) { .figs.c2, .figs.c3, .figs.c4 { grid-template-columns: 1fr; } .proj-nav { grid-template-columns: 1fr; } .proj-nav a:last-child { text-align: left; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { body::before, .chrome, .foot, .atlas { display: none; } }
[hidden] { display: none !important; }
