/* LensLink — lenslink.news. One night look (board D, v3.7). */
:root {
  color-scheme: dark;
  --space: #04060a;
  --star: #eef1f6;
  --dust: #a3acbb;
  --faint: #6e7889;
  --line: rgba(196, 214, 255, .14);
  --line-hi: rgba(196, 214, 255, .32);
  --glass: rgba(14, 19, 28, .8);
  --sodium: #f7ba50;
  --teal: #17A1A8;
  --held: #2D2A8C;
  --ar: 'IBM Plex Sans Arabic', 'Geeza Pro', Tahoma, sans-serif;
  --en: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --g-l: max(16px, env(safe-area-inset-left, 0px));
  --g-r: max(16px, env(safe-area-inset-right, 0px));
  --edge: 44px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--space); color: var(--star); scroll-behavior: smooth; overscroll-behavior-x: none; }
body { font-family: var(--ar); -webkit-font-smoothing: antialiased; background: var(--space); overflow-x: hidden; overscroll-behavior-x: none; }
html[lang='en'] body { font-family: var(--en); }
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.eyebrow { font-size: 11px; font-weight: 600; color: var(--dust); letter-spacing: .04em; }
html[lang='en'] .eyebrow { letter-spacing: .24em; text-transform: uppercase; }
.solid { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; background: #f4f5f7; color: #0b0f18; font-weight: 700; font-size: 14px; transition: transform .2s; }
.solid:hover { transform: translateY(-1px); }
.ghost { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-hi); font-size: 14px; }
.ghost:hover { background: rgba(255,255,255,.06); }
.ghost.static:hover { background: none; }

/* Fixed layers */
#poster { position: fixed; inset: 0; z-index: 0; background:
  radial-gradient(ellipse 140% 70% at 50% 128%, #2a3f7a 0 36%, #142347 44%, transparent 46%),
  radial-gradient(ellipse 160% 60% at 50% 118%, rgba(94,156,234,.45), transparent 60%), var(--space); transition: opacity .8s ease; }
#poster.gone { opacity: 0; }
#globe { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; touch-action: pan-y; cursor: grab; }
#globe.dragging { cursor: grabbing; }
#beam, #arc { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
#beam-line { stroke: rgba(255,255,255,.7); stroke-width: 1; }
#beam-top { fill: var(--space); stroke: #fff; stroke-width: 1.5; }
#beam-dot { fill: var(--sodium); filter: drop-shadow(0 0 8px var(--sodium)) drop-shadow(0 0 14px var(--sodium)); }
#arc-path { stroke: url(#arc-g); stroke-width: 2; fill: none; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.4s ease; }
#arc.show #arc-path { stroke-dashoffset: 0; }

/* L0 · intro */
#intro { position: fixed; inset: 0; z-index: 40; pointer-events: auto; transition: opacity .7s ease; }
#intro.done { opacity: 0; pointer-events: none; }
#iris { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-word { position: absolute; left: 0; right: 0; bottom: 18vh; text-align: center; display: grid; gap: 10px; transition: opacity .6s; }
.intro-word .ar-w { font: 500 44px var(--ar); }
.intro-word .en-w { font: 300 13px var(--en); letter-spacing: .5em; color: var(--faint); }
#intro.open .intro-word { opacity: 0; }
.intro-skip, .intro-sound { position: absolute; bottom: 34px; font-size: 12.5px; color: var(--dust); }
.intro-skip { inset-inline-end: var(--edge); }
.intro-sound { inset-inline-start: var(--edge); color: var(--faint); }

/* Top bar and wire */
.top { position: fixed; top: 0; inset-inline: 0; z-index: 20; height: 68px; display: flex; align-items: center; gap: 32px;
  padding-inline: max(var(--edge), var(--g-l)) max(var(--edge), var(--g-r)); padding-top: env(safe-area-inset-top, 0px);
  transition: opacity .5s ease, transform .5s ease, background .4s; }
body.scrolled .top { background: rgba(4,6,10,.72); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle, var(--space) 0 30%, transparent 31%), conic-gradient(#1F74CC, #17A1A8, #43B14B, #EDB51F, #F4861F, #D2307A, #6C3E9E, #1F74CC); }
.word { font: 800 19px/1 'Plus Jakarta Sans', var(--en); letter-spacing: -.02em; transition: opacity .35s, filter .35s; }
.word b { color: #7fb2f0; font-weight: 800; }
.word.morph { opacity: 0; filter: blur(6px); }
.links { display: flex; gap: 28px; flex: 1; color: var(--dust); font-size: 14px; }
.links a:hover { color: var(--star); }
.lang { color: var(--dust); font-size: 13.5px; }
html[lang='ar'] .lang { font-family: var(--en); }
html[lang='en'] .lang { font-family: var(--ar); }
.signin { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-hi); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.signin:hover { background: rgba(255,255,255,.06); }
.wire { position: fixed; top: 68px; inset-inline: 0; z-index: 19; height: 34px; display: flex; align-items: center; gap: 24px;
  padding-inline-start: max(var(--edge), var(--g-l)); border-block: 1px solid var(--line); background: rgba(4,6,10,.45); overflow: hidden;
  transition: opacity .5s ease, transform .5s ease; }
.wire-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
html[lang='en'] .wire-tag { letter-spacing: .24em; text-transform: uppercase; }
.wire-tag i { width: 7px; height: 7px; border-radius: 50%; background: #D2307A; box-shadow: 0 0 10px #D2307A; animation: pulse 2s ease-in-out infinite; }
.wire-track { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent); }
.wire-items { display: flex; gap: 34px; width: max-content; animation: wire 70s linear infinite; }
html[dir='rtl'] .wire-items { animation-name: wire-rtl; }
.wire-item { display: inline-flex; gap: 8px; align-items: baseline; font-size: 12.5px; white-space: nowrap; }
.wire-item time { font: 11px var(--mono); color: var(--faint); }
.wire-item b { color: var(--dust); font-weight: 600; }
.wire-item.lead b { color: var(--sodium); }
@keyframes wire { to { transform: translateX(-50%); } }
@keyframes wire-rtl { to { transform: translateX(50%); } }
@keyframes pulse { 50% { opacity: .35; transform: scale(1.35); } }
body.in-dive .top, body.in-dive .wire, body.in-intro .top, body.in-intro .wire { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* L1/L2 · horizon */
#horizon { position: fixed; inset: 0; z-index: 5; pointer-events: none; transition: opacity .6s ease; }
#horizon.away { opacity: 0 !important; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
#horizon > button, #horizon .timeline { pointer-events: auto; }
#horizon .timeline { touch-action: pan-y; }
.thesis { position: absolute; top: 132px; inset-inline: 0; text-align: center; color: var(--dust); font-size: 17px; padding-inline: 24px; }
html[lang='en'] .thesis { font-size: 15px; }
.row { position: absolute; top: 31vh; inset-inline: 0; height: 120px; }
.story { position: absolute; top: 0; left: 0; width: 520px; margin-left: -260px; text-align: center; will-change: transform, filter, opacity; }
.story .eyebrow { display: block; }
.story h2 { font-weight: 500; font-size: 36px; margin: 12px 0 8px; white-space: nowrap; }
html[lang='en'] .story h2 { font-weight: 300; font-size: 27px; letter-spacing: .12em; text-transform: uppercase; }
.story p { color: var(--dust); font-size: 13px; }
.round { position: absolute; left: 50%; bottom: 112px; width: 76px; height: 76px; margin-left: -38px; border-radius: 50%; background: #f4f5f7;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: transform .25s ease; display: grid; place-items: center; }
.round:hover { transform: scale(1.06); }
.plus, .plus::after { display: block; width: 28px; height: 1.5px; background: #0b0f18; }
.plus::after { content: ''; transform: rotate(90deg); }
.round.x .plus { transform: rotate(45deg); }
.round-label { position: absolute; left: 0; right: 0; bottom: 86px; text-align: center; font-size: 11px; color: var(--dust); }
.timeline { position: absolute; bottom: 26px; inset-inline: 120px; }
.rail { display: flex; justify-content: space-between; margin-bottom: 10px; }
.rail button { font-size: 11px; color: var(--faint); transition: color .3s; padding: 2px 0; }
.rail button.on { color: var(--star); font-weight: 700; }
.bar { position: relative; height: 2px; background: rgba(255,255,255,.14); }
.bar-fill { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; background: var(--star); width: 0; }
#bar-ticks span { position: absolute; top: -3px; width: 1px; height: 8px; background: rgba(255,255,255,.3); }
.rail-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 10.5px; color: var(--faint); }

/* L3–L5 · dive */
#dive { position: fixed; inset: 0; z-index: 8; pointer-events: none; }
#dive > * { pointer-events: auto; }
.crumb { position: absolute; top: 28px; inset-inline-start: max(var(--edge), var(--g-l)); display: grid; gap: 6px; }
.crumb h1 { font-weight: 600; font-size: 30px; }
html[lang='en'] .crumb h1 { font-weight: 300; letter-spacing: .04em; }
.beats { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.dive-tools { position: absolute; top: 28px; inset-inline-end: max(var(--edge), var(--g-r)); display: flex; align-items: center; gap: 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--dust); }
.switch i { width: 40px; height: 22px; border-radius: 11px; background: rgba(255,255,255,.18); position: relative; transition: background .25s; }
.switch i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .25s; }
.switch[aria-checked='true'] { color: var(--star); }
.switch[aria-checked='true'] i { background: var(--teal); }
.switch[aria-checked='true'] i::after { inset-inline-start: 21px; }
.dive-tools .ghost { padding: 9px 16px; font-size: 13px; }
.close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-hi); display: grid; place-items: center; flex-shrink: 0; }
.close span, .close span::after { display: block; width: 16px; height: 1.5px; background: var(--star); transform: rotate(45deg); }
.close span::after { content: ''; transform: rotate(90deg); }
.hint { position: absolute; bottom: 30px; inset-inline-start: max(var(--edge), var(--g-l)); padding: 12px 16px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line); color: var(--dust); font-size: 12.5px; backdrop-filter: blur(14px); }
#pins, #glows { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; opacity: 0; transition: opacity .4s; will-change: transform; }
.pin.show { opacity: 1; }
.pin-thumb { width: 64px; height: 44px; border-radius: 8px; padding: 2px; background: var(--c); box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: transform .2s; }
.pin:hover .pin-thumb, .pin.on .pin-thumb { transform: scale(1.12); background: #fff; }
.pin-thumb svg { display: block; width: 100%; height: 100%; border-radius: 6px; }
.pin-stem { width: 1px; height: 12px; margin: 0 auto; background: var(--c); }
.pin-dot { width: 7px; height: 7px; margin: -1px auto 0; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px var(--c); }
.glow { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: auto; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle, rgba(23,161,168,.85) 0, rgba(23,161,168,.3) 45%, transparent 70%); font: 700 11px var(--mono); color: #fff; }
.glow.show { opacity: 1; }
.glow.on { background: radial-gradient(circle, #fff 0 12%, rgba(23,161,168,.9) 14%, rgba(23,161,168,.3) 48%, transparent 70%); color: #04060a; }
.card { position: absolute; top: 210px; inset-inline-end: max(var(--edge), var(--g-r)); width: 390px; padding: 20px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0,0,0,.45); display: grid; gap: 12px; }
.card h3 { font-size: 17px; font-weight: 600; line-height: 1.45; }
.card .meta { font-size: 11.5px; color: var(--dust); }
.card .watch { justify-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: #f4f5f7; color: #0b0f18; font-weight: 700; font-size: 13px; }
.card .watch::before { content: ''; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #0b0f18; }
html[dir='rtl'] .card .watch::before { transform: scaleX(-1); }
.clock { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 12px; border-top: 1px solid var(--line); }
.clock div { display: grid; gap: 4px; position: relative; }
.clock i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #fff; position: relative; z-index: 1; }
.clock div:not(:last-child)::after { content: ''; position: absolute; top: 4.5px; inset-inline-start: 10px; inset-inline-end: 0; height: 1px; background: var(--line-hi); }
.clock div:last-child i { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.clock time { font: 12.5px var(--mono); }
.clock span { font-size: 11px; color: var(--dust); }
.pass { position: absolute; top: 200px; right: max(var(--edge), var(--g-r)); width: 360px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #1a2131, #0e131d); border: 1px solid var(--line-hi); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: perspective(1400px) rotateY(-8deg); animation: flip .7s cubic-bezier(.2,.8,.2,1); }
@keyframes flip { from { transform: perspective(1400px) rotateY(-80deg); opacity: 0; } }
.pass-band { height: 6px; background: linear-gradient(90deg, #1F74CC, #17A1A8, #43B14B, #EDB51F, #F4861F, #D2307A, #6C3E9E); }
.pass-body { padding: 20px; display: grid; gap: 12px; }
.pass-head { display: flex; justify-content: space-between; align-items: center; }
.pass-who { display: flex; gap: 14px; align-items: center; }
.pass-who strong { display: block; font-size: 21px; }
.pass-who span { font-size: 12px; color: var(--dust); }
.portrait { width: 64px; height: 64px; border-radius: 50%; padding: 2px; flex-shrink: 0; background: conic-gradient(#1F74CC, #17A1A8, #43B14B, #EDB51F, #F4861F, #D2307A, #6C3E9E, #1F74CC); }
.portrait svg { display: block; width: 100%; height: 100%; border-radius: 50%; background: #121a2b; }
.pass-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 0; border-block: 1px solid var(--line); }
.pass-stats b { display: block; font: 600 15px var(--mono); }
.pass-stats span { font-size: 10.5px; color: var(--dust); }
.pass-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pass-work svg { display: block; width: 100%; height: 62px; border-radius: 8px; }
.pass .solid { width: 100%; }
.pass small { font-size: 10.5px; color: var(--faint); text-align: center; }
.arc-label { position: absolute; padding: 8px 12px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); font-size: 11.5px; backdrop-filter: blur(10px); }

/* L4a · player */
.player { position: fixed; inset: 0; z-index: 30; background: #000; overflow: hidden; }
.player-media { position: absolute; inset: 0; overflow: hidden; }
.player-media img { position: absolute; max-width: none; transform-origin: 0 0; filter: brightness(1.15) contrast(1.05); will-change: transform; }
.player::before, .player::after { content: ''; position: absolute; inset-inline: 0; z-index: 1; pointer-events: none; }
.player::before { top: 0; height: 45%; background: linear-gradient(rgba(4,6,10,.92), rgba(4,6,10,.5) 50%, transparent); }
.player::after { bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(4,6,10,.85)); }
.player-head { position: absolute; z-index: 2; top: 36px; inset-inline: max(var(--edge), var(--g-l)) max(var(--edge), var(--g-r)); display: grid; gap: 8px; justify-items: start; }
.player-head h2 { font-weight: 600; font-size: 34px; }
html[lang='en'] .player-head h2 { font-weight: 300; letter-spacing: .06em; }
.player-head p, #player-time { color: var(--dust); font-size: 13px; }
.player-bar { position: absolute; z-index: 2; left: 160px; right: 160px; bottom: 52px; display: flex; align-items: center; gap: 22px; font: 600 13px var(--en); letter-spacing: .1em; }
.player-track { flex: 1; height: 2px; background: rgba(255,255,255,.2); position: relative; }
#player-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.player .round { z-index: 3; bottom: 88px; width: 78px; height: 78px; margin-left: -39px; }

/* L6 · desk */
.desk { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding-inline: max(80px, var(--g-l)) max(80px, var(--g-r)); background: radial-gradient(ellipse at 50% 50%, rgba(4,6,10,.2), rgba(4,6,10,.75)); }
.desk-panel { width: 440px; padding: 26px; border-radius: 18px; background: rgba(18,24,36,.88); border: 1px solid var(--line); backdrop-filter: blur(16px); display: grid; gap: 14px; }
.desk-panel h2 { font-size: 24px; font-weight: 600; line-height: 1.5; }
.desk-steps { list-style: none; display: grid; gap: 11px; }
.desk-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--faint); }
.desk-steps li i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-hi); display: grid; place-items: center; font: normal 10.5px var(--mono); flex-shrink: 0; }
.desk-steps li.done { color: var(--star); }
.desk-steps li.done i { background: var(--teal); border: 0; color: #fff; }
.desk-steps li.now { color: var(--star); font-weight: 700; }
.desk-steps li.now i { background: var(--held); border: 0; color: #fff; }
.desk-note { font-size: 13px; color: var(--dust); line-height: 1.75; padding-top: 14px; border-top: 1px solid var(--line); min-height: 76px; }
.desk-actions { display: flex; gap: 10px; }
.desk-actions .solid { flex: 1; }
.desk-demo { font-size: 10px; color: var(--faint); }
.vault-wrap { position: relative; width: 300px; height: 300px; flex-shrink: 0; }
.vault-tag { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 5px 12px; border-radius: 999px; background: var(--held); color: #fff; font-size: 12px; font-weight: 700; transition: background .4s, opacity .4s; }
.vault-tag.released { background: #1B7C45; }
#vault { position: absolute; left: 0; top: 34px; width: 300px; height: 240px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.02) 40%, rgba(94,156,234,.08)); border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 30px 80px rgba(0,0,0,.5); }
.desk-photos { position: absolute; left: 0; right: 0; bottom: -64px; display: flex; gap: 8px; justify-content: center; }
.desk-photos svg { width: 90px; height: 60px; border-radius: 8px; animation: rise .6s cubic-bezier(.2,.8,.2,1) backwards; }
.desk-photos svg:nth-child(2) { animation-delay: .12s; } .desk-photos svg:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* Scroll: spacer, doors, footer (L7) */
#page { position: relative; z-index: 4; pointer-events: none; }
#page > * { pointer-events: auto; }
.spacer { height: 100vh; height: 100svh; pointer-events: none !important; position: relative; }
.scroll-hint { position: absolute; bottom: -28px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--faint); }
.doors { min-height: 100vh; padding: 140px max(120px, var(--g-r)) 80px max(120px, var(--g-l)); display: grid; gap: 28px; align-content: center;
  background: linear-gradient(rgba(4,6,10,0), rgba(4,6,10,.55) 30%, rgba(4,6,10,.92)); }
.doors > h2 { text-align: center; font-weight: 600; font-size: 40px; }
html[lang='en'] .doors > h2 { font-weight: 300; letter-spacing: .02em; }
.door-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.door { border-radius: 24px; padding: 34px; border: 1px solid var(--line-hi); display: grid; gap: 14px; align-content: start; backdrop-filter: blur(10px); }
.door.news { background: linear-gradient(160deg, rgba(31,116,204,.22), rgba(14,19,28,.85)); }
.door.corr { background: linear-gradient(160deg, rgba(210,48,122,.2), rgba(14,19,28,.85)); }
.door h3 { font-size: 28px; font-weight: 600; line-height: 1.45; }
.door p { color: var(--dust); font-size: 14px; line-height: 1.8; }
.door .small { font-size: 12.5px; color: var(--faint); }
.door-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.contact { display: flex; gap: 22px; flex-wrap: wrap; font: 12.5px var(--mono); color: var(--star); user-select: all; }
html[dir='rtl'] .contact { justify-content: flex-end; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; padding: 26px max(var(--edge), var(--g-r)) 40px max(var(--edge), var(--g-l));
  border-top: 1px solid var(--line); background: rgba(4,6,10,.96); }
.foot-brand { display: grid; gap: 8px; }
.foot-brand p, .foot-credit p { font-size: 11px; color: var(--faint); line-height: 1.6; max-width: 520px; }
.foot-links { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--dust); }
.foot-links small { display: block; font-size: 10px; color: var(--faint); }
.foot-credit { text-align: end; display: grid; gap: 4px; }
html[lang='en'] .foot-credit .built { letter-spacing: .12em; text-transform: uppercase; }
.credit { position: fixed; bottom: 8px; inset-inline-end: max(var(--edge), var(--g-r)); z-index: 7; font-size: 10.5px; color: var(--faint); transition: opacity .4s; }
body.scrolled .credit { opacity: 0; }
#debug { position: fixed; top: 110px; left: 12px; z-index: 50; font: 11px/1.5 var(--mono); color: #9fe; background: rgba(0,0,0,.6); padding: 6px 8px; border-radius: 6px; direction: ltr; white-space: pre; }

@media (max-width: 720px) {
  :root { --edge: 16px; }
  .top { gap: 14px; height: 56px; }
  .links, .signin { display: none; }
  .lang { margin-inline-start: auto; }
  .wire { top: 56px; height: 30px; }
  .wire-item { font-size: 11px; }
  .thesis { top: 110px; font-size: 16px; color: var(--star); line-height: 1.6; }
  .row { top: 27vh; }
  .story { width: 340px; margin-left: -170px; }
  .story h2 { font-size: 24px; }
  html[lang='en'] .story h2 { font-size: 19px; }
  .round { width: 62px; height: 62px; margin-left: -31px; bottom: 132px; }
  .round-label { bottom: 108px; }
  .timeline { inset-inline: 20px; bottom: 44px; }
  .rail button:nth-child(n+7) { display: none; }
  .desk-only { display: none; }
  .intro-word .ar-w { font-size: 30px; }
  .crumb { top: 64px; }
  .crumb h1 { font-size: 21px; }
  .beats, .hint { display: none; }
  .dive-tools { top: 16px; gap: 10px; inset-inline-end: 16px; }
  .dive-tools .ghost { padding: 7px 11px; font-size: 11.5px; }
  .switch { font-size: 11.5px; gap: 6px; }
  .close { width: 36px; height: 36px; }
  .card { top: auto; bottom: 22px; inset-inline: 12px; width: auto; }
  .pass { top: auto; bottom: 18px; left: 12px; right: 12px; width: auto; transform: none; }
  .pass-work svg { height: 52px; }
  .pin-thumb { width: 46px; height: 32px; }
  .player-head { top: 72px; }
  .player-head h2 { font-size: 21px; }
  .player-bar { left: 18px; right: 18px; bottom: 44px; font-size: 11px; gap: 12px; }
  .player .round { width: 60px; height: 60px; margin-left: -30px; bottom: 80px; }
  .desk { flex-direction: column-reverse; justify-content: flex-end; padding: 80px 12px 16px; gap: 70px; overflow-y: auto; }
  .desk-panel { width: 100%; padding: 18px; }
  .desk-panel h2 { font-size: 18px; }
  .vault-wrap { width: 220px; height: 200px; }
  #vault { width: 220px; height: 176px; }
  .desk-photos svg { width: 66px; height: 44px; }
  .doors { padding: 100px 16px 50px; }
  .doors > h2 { font-size: 24px; }
  .door-row { grid-template-columns: 1fr; gap: 14px; }
  .door { padding: 20px; }
  .door h3 { font-size: 20px; }
  .foot { grid-template-columns: 1fr; gap: 16px; }
  .foot-credit { text-align: start; }
  .credit { inset-inline: 0; text-align: center; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wire-items, .wire-tag i { animation: none; }
  .pass { animation: none; }
}
@media (max-width: 720px) { body.in-dive .credit { display: none; } }
