:root {
  --bg: #030507;
  --ink: #eef2f7;
  --ink-2: rgba(226, 234, 245, 0.62);
  --ink-3: rgba(226, 234, 245, 0.46);
  --line: rgba(226, 234, 245, 0.22);
  --accent: #ffb86b;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --pad: 20px;
  --col2: 152px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body);
  overflow: hidden; -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.65; }
.dim { color: var(--ink-3); }

/* ---------- stage ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
body.no-gl #stage { display: none; }
body.no-gl { background: radial-gradient(60% 50% at 50% 45%, #1a2433 0%, #070a0f 55%, var(--bg) 100%); }
#veil { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3,5,7,.55) 0%, transparent 16%, transparent 80%, rgba(3,5,7,.6) 100%); }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: opacity 1.4s var(--ease), visibility 0s 1.4s;
}
body:not(.is-loading) #loader { opacity: 0; visibility: hidden; }
#loader-text::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.loader-pct { font-family: var(--display); font-weight: 300; font-size: clamp(64px, 9vw, 128px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 18px 0 14px; }
.loader-bar { display: block; width: min(240px, 50vw); height: 1px; background: var(--line); margin-bottom: 8px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- HUD ---------- */
.hud { position: fixed; left: 0; right: 0; z-index: 30; padding: var(--pad); pointer-events: none; display: flex; }
.hud > * { pointer-events: auto; }
.hud-top { top: 0; align-items: flex-start; }
.hud-bottom { bottom: 0; align-items: flex-end; gap: 28px; }
.hud-col { display: flex; flex-direction: column; width: calc(var(--col2) - var(--pad)); flex: none; }
.hud-index { width: auto; }
.bracket { color: var(--ink-3); margin-bottom: 10px; white-space: pre; }
.navlink { color: var(--ink-3); transition: color .3s; }
.navlink:hover, .navlink.is-active { color: var(--ink); }
#index li { position: relative; }
#index .group { color: var(--ink-3); margin-top: 10px; font-size: 9px; }
#index a { display: block; color: var(--ink-3); transition: color .3s, padding .4s var(--ease); white-space: nowrap; }
#index a:hover { color: var(--ink-2); }
#index a.is-active { color: var(--ink); padding-left: 15px; }
#index a::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; background: var(--accent); opacity: 0; transition: opacity .3s; }
#index a.is-active::before { opacity: 1; }
.hud-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hud-tagline { color: var(--ink-2); }
.hud-brand { border: 1px dashed var(--line); padding: 7px 14px; transition: background .3s, color .3s; }
.hud-brand:hover { background: var(--ink); color: #0a0c10; }
#counter { width: calc(var(--col2) - var(--pad)); flex: none; }
.hud-hint { margin-right: auto; }
#coords { margin-right: clamp(20px, 12vw, 220px); font-variant-numeric: tabular-nums; }
#clock { font-variant-numeric: tabular-nums; }

.ticks { position: fixed; left: var(--pad); top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; gap: 5px; }
.ticks button { width: 12px; height: 13px; position: relative; }
.ticks button::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ink-3); transition: background .3s, width .3s; }
.ticks button.is-active::after { background: var(--ink); width: 3px; }

/* ---------- index view ---------- */
#index-view { position: fixed; inset: 0; z-index: 10; pointer-events: none; transition: opacity .7s var(--ease); }
#index-view > * { pointer-events: auto; }
body.is-loading #index-view, body.is-loading .hud, body.is-loading .ticks { opacity: 0; }
.hud, .ticks { transition: opacity 1.2s .4s var(--ease); }

.arrow { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 22px; color: var(--ink-2); padding: 18px; text-shadow: 0 0 12px rgba(0,0,0,.9); transition: color .3s, transform .4s var(--ease); }
.arrow-prev { left: calc(50% - min(20.5vw, 320px)); }
.arrow-next { right: calc(50% - min(20.5vw, 320px)); }
.arrow:hover { color: var(--ink); }
.arrow-prev:hover { transform: translate(-5px, -50%); }
.arrow-next:hover { transform: translate(5px, -50%); }

#leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none !important; overflow: visible; }
#leader polyline { fill: none; stroke: rgba(238, 242, 247, 0.75); stroke-width: 1; }
#leader rect { fill: var(--ink); }

#label { position: absolute; left: 73.5%; top: 24.5%; width: min(24vw, 340px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 7px; color: var(--ink-2); white-space: nowrap; }
a.chip.solid { background: var(--ink); color: #0a0c10; border-color: var(--ink); }
#label-title, #label-measure { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 3.7vw, 60px); line-height: 0.98; letter-spacing: -0.015em; text-transform: uppercase; margin-bottom: 14px; }
#label-measure { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; visibility: hidden; pointer-events: none; }
#label-role { color: var(--ink-2); margin-bottom: 8px; }
#label-blurb { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 18px; max-width: 300px; }
.cta { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
#label .cta { transition: opacity .5s var(--ease), transform .7s var(--ease), padding .55s var(--ease); }
.cta::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -3px; background: var(--accent); opacity: 0; transform: scale(0); transition: opacity .35s, transform .55s var(--ease); }
.cta::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .65s var(--ease); }
.cta > span { transition: transform .55s var(--ease), letter-spacing .55s var(--ease); }
.cta:hover, .cta:focus-visible { padding-left: 15px; }
.cta:hover::before, .cta:focus-visible::before { opacity: 1; transform: none; }
.cta:hover::after, .cta:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.cta:hover > span:first-child, .cta:focus-visible > span:first-child { transform: translateX(4px); }
#label > * { transition: opacity .5s var(--ease), transform .7s var(--ease); }
#label.is-out > * { opacity: 0; transform: translateY(8px); transition-duration: .2s; }
#label > *:nth-child(2) { transition-delay: .05s; } #label > *:nth-child(3) { transition-delay: .1s; }
#label > *:nth-child(4) { transition-delay: .15s; } #label > *:nth-child(5) { transition-delay: .2s; }

.stats { position: absolute; left: var(--col2); bottom: 64px; display: flex; gap: 40px; transition: opacity .6s var(--ease); }
.stats strong { display: block; font-family: var(--display); font-weight: 300; font-size: 34px; line-height: 1; margin-bottom: 6px; }
.stats span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
body:not(.is-intro) .stats { opacity: 0; pointer-events: none; }

/* ---------- detail view ---------- */
#detail {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(3, 5, 7, 0.6); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 44px, #000 150px, #000 calc(100% - 100px), transparent calc(100% - 36px));
  mask-image: linear-gradient(to bottom, transparent 44px, #000 150px, #000 calc(100% - 100px), transparent calc(100% - 36px));
  opacity: 0; transition: opacity .7s var(--ease);
}
#detail[hidden] { display: none; }
body.is-detail #detail { opacity: 1; }
body.is-detail #index-view { opacity: 0; pointer-events: none; }
body.is-detail #index-view > * { pointer-events: none; }
body.is-detail .hud-hint, body.is-detail #counter { visibility: hidden; }

.detail-inner { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(32px, 8.4vw, 182px); padding: 210px var(--pad) 140px var(--col2); max-width: 1760px; outline: none; }
.d-side { position: sticky; top: 210px; align-self: start; max-height: calc(100vh - 250px); display: flex; flex-direction: column; }
.d-back { display: inline-flex; gap: 8px; color: var(--ink); margin-bottom: 36px; align-self: flex-start; }
.d-back:hover { color: var(--accent); }
.d-title { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 2.1vw, 34px); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 22px; }
.d-lead { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 40px; }
.d-meta { display: grid; grid-template-columns: 112px 1fr; row-gap: 4px; margin-bottom: 36px; }
.d-meta dt { color: var(--ink-3); } .d-meta dd { color: var(--ink); }
.d-meta dt, .d-meta dd { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.8; }
.d-scroll { margin-top: 60px; color: var(--ink-2); }

.d-main { min-width: 0; counter-reset: fig; }
.d-main > * + * { margin-top: 26px; }
.d-fig img, .d-shot img { display: block; width: 100%; height: auto; background: #0b0e13; }
.pd-scroll { overflow-x: auto; padding: 8px 0 4px; }
.pd svg { display: block; width: 100%; min-width: 820px; height: auto; overflow: visible; }
.pd text { font-family: var(--mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); opacity: 0; animation: pd-fade .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
.pd .pd-title { fill: var(--ink-3); --i: 0; }
.pd .pd-note { font-size: 11.5px; fill: var(--ink-2); }
.pd rect { fill: rgba(226,234,245,.035); stroke: rgba(226,234,245,.55); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: wf-draw .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms); }
.pd .is-loop rect { stroke: var(--accent); fill: rgba(255,184,107,.05); }
.pd-arrow, .pd-loop { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; animation: pd-fade .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 350ms); }
.pd-loop { stroke-dasharray: 5 5; stroke: rgba(255,184,107,.75); }
@keyframes pd-fade { to { opacity: 1; } }
.ld { position: relative; display: block; overflow: hidden; }
.ld.is-pending { aspect-ratio: 16 / 9; }
.ld.is-pending img { position: absolute; inset: 0; height: 100%; opacity: 0; }
.ld.is-late img { animation: ld-reveal .45s var(--ease) both; }
@keyframes ld-reveal { from { opacity: 0; clip-path: inset(0 0 100% 0); filter: brightness(1.8) saturate(0); } to { opacity: 1; clip-path: inset(0 0 0 0); filter: none; } }
.ld-ui { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none;
  border: 1px solid rgba(226,234,245,.1);
  background:
    linear-gradient(rgba(226,234,245,.045) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(226,234,245,.045) 1px, transparent 1px) 0 0 / 28px 100%,
    rgba(8,11,16,.72);
  animation: pd-fade .25s .15s forwards; }
.ld.is-loaded .ld-ui { animation: ld-out .3s forwards; }
.d-main .ld { cursor: zoom-in; }
.ld-zoom { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; background: rgba(3,5,7,.78); color: var(--ink); border: 1px solid var(--line); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.ld:hover .ld-zoom { opacity: 1; transform: none; }
.ld.is-pending .ld-zoom { display: none; }

/* ---------- image viewer ---------- */
#lb { position: fixed; inset: 0; z-index: 40; background: rgba(3,5,7,0); transition: background .5s var(--ease), backdrop-filter .5s; }
#lb[hidden] { display: none; }
#lb.is-open { background: rgba(3,5,7,.93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb-stage { position: absolute; inset: 0; display: flex; overflow: auto; padding: 78px 75px 72px; cursor: zoom-out; overscroll-behavior: contain; }
#lb.is-full .lb-stage { padding: 78px 24px 72px; }
.lb-frame { position: relative; margin: auto; flex: none; will-change: transform; }
.lb-frame img { display: block; background: #0b0e13; cursor: zoom-out; }
#lb.can-zoom .lb-frame img { cursor: zoom-in; } #lb.is-full .lb-frame img { cursor: zoom-out; }
.lb-frame .ld-c { border-color: var(--accent); opacity: 0; transition: opacity .3s .35s, transform .6s .35s var(--ease); }
.lb-frame .ld-c.tl { left: -9px; top: -9px; transform: translate(8px, 8px); } .lb-frame .ld-c.tr { right: -9px; top: -9px; transform: translate(-8px, 8px); }
.lb-frame .ld-c.bl { left: -9px; bottom: -9px; transform: translate(8px, -8px); } .lb-frame .ld-c.br { right: -9px; bottom: -9px; transform: translate(-8px, -8px); }
#lb.is-open .lb-frame .ld-c { opacity: 1; transform: none; }
.lb-scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent); box-shadow: 0 0 18px 2px rgba(255,184,107,.55); opacity: 0; pointer-events: none; }
.lb-frame.is-in .lb-scan { animation: lb-scan .8s .25s var(--ease) both; }
@keyframes lb-scan { 0% { top: 0; opacity: 0; } 15% { opacity: .9; } 100% { top: 100%; opacity: 0; } }
.lb-bar { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 18px; padding: var(--pad); pointer-events: none; opacity: 0; transition: opacity .4s .15s, transform .6s .15s var(--ease); }
.lb-top { top: 0; transform: translateY(-8px); background: linear-gradient(rgba(3,5,7,.85), transparent); } .lb-bottom { bottom: 0; transform: translateY(8px); background: linear-gradient(transparent, rgba(3,5,7,.85)); }
#lb.is-open .lb-bar { opacity: 1; transform: none; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb-tools { margin-left: auto; display: flex; gap: 8px; pointer-events: auto; flex: none; }
.lb-btn { background: rgba(3,5,7,.6); color: var(--ink); border: 1px solid var(--line); padding: 7px 12px; cursor: pointer; transition: color .3s, border-color .3s; }
.lb-btn:hover, .lb-btn:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
.lb-btn[hidden], .lb-arrow[hidden] { display: none; }
.lb-cap { font-size: 14px; color: var(--ink-2); } .lb-hint { margin-left: auto; flex: none; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink-2); font-family: var(--mono); font-size: 22px; padding: 22px; cursor: pointer; opacity: 0; transition: opacity .4s .2s, color .3s, transform .4s var(--ease); }
#lb.is-open .lb-arrow { opacity: 1; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }
.lb-arrow:hover { color: var(--accent); } .lb-prev:hover { transform: translate(-4px, -50%); } .lb-next:hover { transform: translate(4px, -50%); }
@media (max-width: 900px) { .lb-stage { padding: 70px 12px 96px; } .lb-arrow { top: auto; bottom: 34px; transform: none !important; } .lb-hint { display: none; } }
@keyframes ld-out { from { opacity: 1; } to { opacity: 0; } }
.ld-scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(255,184,107,.10) 85%, rgba(255,184,107,.9) 100%); border-bottom: 1px solid var(--accent); animation: ld-scan 1.25s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes ld-scan { from { top: -90px; } to { top: 100%; } }
.ld-c { position: absolute; width: 12px; height: 12px; border: 0 solid var(--ink); }
.ld-c.tl { left: 10px; top: 10px; border-width: 1px 0 0 1px; } .ld-c.tr { right: 10px; top: 10px; border-width: 1px 1px 0 0; }
.ld-c.bl { left: 10px; bottom: 10px; border-width: 0 0 1px 1px; } .ld-c.br { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.ld-mid { position: relative; display: grid; justify-items: center; gap: 10px; }
.ld-bar { width: 140px; height: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 12px); position: relative; }
.ld-bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 12px); animation: ld-bar 1s steps(12) infinite; }
@keyframes ld-bar { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ld-tag { position: absolute; left: 30px; bottom: 9px; }
@keyframes wf-draw { to { stroke-dashoffset: 0; } }
.d-fig figcaption, .d-cap { display: flex; justify-content: space-between; gap: 24px; margin-top: 20px; font-family: var(--body); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.d-cap { margin-bottom: 64px; }
.d-shot + .d-shot, .d-main > .d-grid + .d-grid { margin-top: 40px; }
.d-cap::after, .d-fig figcaption::after { counter-increment: fig; content: counter(fig, decimal-leading-zero); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); flex: none; }
.d-fig figcaption span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.d-text { max-width: 720px; padding: 34px 0 30px; }
.d-text p, .d-text li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.d-text p + p, .d-text ul + p, .d-text p + ul { margin-top: 16px; }
.d-text h2, .d-text h3, .d-label { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 40px 0 14px; display: block; }
.d-text ul { display: grid; gap: 8px; }
.d-text li { padding-left: 18px; position: relative; }
.d-text li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; background: var(--accent); }
.d-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.d-grid > .d-shot + .d-shot { margin-top: 0; }
.d-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-grid .d-cap { margin-bottom: 40px; }
.d-aspect img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; height: auto; }
.d-text strong { color: var(--ink); font-weight: 500; }
.d-missing { aspect-ratio: 16 / 5; border: 1px dashed var(--line); display: grid; place-items: center; }
.d-next { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 90px !important; width: 100%; text-align: left; }
.d-next strong { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.4vw, 54px); text-transform: uppercase; display: block; margin-top: 6px; transition: transform .5s var(--ease); }
.d-next:hover strong { transform: translateX(10px); }
.d-about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; margin-bottom: 36px; }
.d-about-stats strong { display: block; font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1; margin-bottom: 4px; }
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.d-two .d-label:first-child { margin-top: 0; }
.d-in > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.d-in > *:nth-child(2) { animation-delay: .07s; } .d-in > *:nth-child(3) { animation-delay: .14s; }
.d-in > *:nth-child(4) { animation-delay: .21s; } .d-in > *:nth-child(n+5) { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.noscript { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: grid; place-content: center; gap: 12px; padding: 24px; }
.noscript a { text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  :root { --pad: 16px; --col2: 16px; }
  .hud-index, .hud-tagline, #coords, .hud-hint, .ticks { display: none; }
  .hud-col { flex-direction: row; gap: 10px; width: auto; }
  .hud-col .bracket { display: none; }
  .hud-brand { margin-left: auto; }
  #counter { width: auto; margin-right: auto; }
  #leader { display: none; }
  #label { left: var(--pad); right: var(--pad); top: auto; bottom: 120px; width: auto; }
  #label-blurb { max-width: 420px; }
  .arrow { top: auto; bottom: 44px; transform: none !important; padding: 12px; }
  .arrow-prev { left: calc(50% - 60px); } .arrow-next { right: calc(50% - 60px); }
  .stats { display: none; }
  .detail-inner { grid-template-columns: 1fr; gap: 48px; padding: 96px var(--pad) 110px; }
  .d-side { position: static; max-height: none; }
  /* phone: hero image first, then back link, title and details */
  .detail-inner { display: flex; flex-direction: column; gap: 0; }
  .d-side, .d-main { display: contents; }
  .d-hero { order: -2; margin: 0 0 30px !important; }
  .d-back { order: -1; margin-bottom: 26px; }
  .d-side > .chips { margin-bottom: 16px; }
  .d-scroll { display: none; }
  .d-grid, .d-grid.c3, .d-two { grid-template-columns: 1fr; }
}
@media (max-height: 760px) and (min-width: 901px) {
  #index .group { margin-top: 4px; }
  .mono { line-height: 1.5; }
  .detail-inner { padding-top: 150px; } .d-side { top: 150px; max-height: calc(100vh - 180px); }
  .d-side { overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; transition-duration: .01s !important; }
}

/* keep the long index out of the way while reading a project */
body.is-detail #index a:not(.is-active), body.is-detail #index .group { display: none; }
