/* demirkaan.com — the evening system ("22:00"), in the zeigarn brand.
 * One pixel-art evening at his desk, finished like a CRT; the page is its HUD.
 * Brand book (brand/ZEIGARNBRAND.md): Barlow for the cinematic layer,
 * Silkscreen only at 8 / 16 / 24 px with whole-pixel tracking, red only in the
 * lenses, no radii, no soft shadows, no gradients but light.
 */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("/assets/fonts/SilkscreenZG-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --night-0: #06080f;
  --night-1: #0e1424;
  --night-2: #19233f;
  --moon: #c3cde5;
  --text: rgba(230, 235, 245, 0.85);
  --text-soft: rgba(230, 235, 245, 0.72);
  --text-dim: rgba(230, 235, 245, 0.62);
  --hair: rgba(230, 235, 245, 0.35);
  --lamp: #ffcf7a;
  --window: #d9a35a;
  --silver-hi: #f4f6fa;
  --f-cine: "Barlow", sans-serif;
  --f-pixel: "Silkscreen", monospace;
  --edge-x: 40px; /* HUD insets */
  --edge-y: 28px;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html { background: var(--night-0); color-scheme: dark; scrollbar-color: var(--night-2) var(--night-0); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--night-0);
  color: var(--text);
  font-family: var(--f-cine);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
::selection { background: var(--moon); color: var(--night-0); }
a { color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }

/* Silkscreen, the in-world layer: native sizes only. */
.px { font-family: var(--f-pixel); font-size: 16px; line-height: 1; letter-spacing: 2px; text-transform: uppercase; font-weight: 400; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 120;
  padding: 12px 14px;
  background: var(--moon); color: var(--night-0);
  font-family: var(--f-pixel); font-size: 16px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------- the HUD */

.hud-top {
  position: fixed; top: var(--edge-y); left: var(--edge-x); right: var(--edge-x); z-index: 80;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  pointer-events: none;
}
.hud-top a, .hud-top button { pointer-events: auto; }

.wordmark {
  justify-self: start;
  color: var(--text);
  font-family: var(--f-cine); font-weight: 300; font-size: 15px; line-height: 1;
  letter-spacing: 0.6em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}

.clock {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--f-pixel); font-size: 16px; line-height: 1; letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
html.hud-on .clock__colon { animation: blink 1s steps(1) infinite; }

.hud-top__end { justify-self: end; display: flex; align-items: center; gap: 22px; }

.links ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.links a {
  display: block; white-space: nowrap;
  color: var(--text-dim);
  font-family: var(--f-cine); font-weight: 400; font-size: 13px; line-height: 1;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  transition: color 0.15s ease;
}
.links a:hover, .links a:focus-visible { color: var(--silver-hi); }
.links a:hover .m__in, .links a:focus-visible .m__in { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* A word in a mask: the only way type enters. */
.m, .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.m__in, .w__in { display: inline-block; will-change: transform; }

.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 8px;
  border: 1px solid var(--hair);
  color: var(--text-dim);
  font-family: var(--f-pixel); font-size: 16px; line-height: 1; letter-spacing: 2px; text-decoration: none;
}
.chip:hover, .chip:focus-visible { color: var(--silver-hi); border-color: rgba(230, 235, 245, 0.9); }
button.chip { background: none; cursor: pointer; }
.lang { position: relative; }
.lang__list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 90; min-width: 200px; margin: 0; padding: 6px 0; list-style: none; background: var(--night-1); border: 1px solid rgba(230, 235, 245, 0.16); transform-origin: 50% 0; }
.lang__list a { display: flex; align-items: center; gap: 14px; padding: 10px 16px; color: var(--text-dim); text-decoration: none; font-family: var(--f-pixel); font-size: 16px; letter-spacing: 2px; }
.lang__list a .lang__name { font-family: var(--f-cine); font-size: 14px; letter-spacing: 0.04em; color: var(--text); }
.lang__list a:hover, .lang__list a:focus-visible { background: var(--lamp); color: var(--night-0); }
.lang__list a:hover .lang__name, .lang__list a:focus-visible .lang__name { color: var(--night-0); }
.lang__list a[aria-current] { color: var(--silver-hi); }
.menu-panel__langs { display: flex; flex-wrap: wrap; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.menu-panel__langs a { color: var(--text-dim); text-decoration: none; }
.menu-panel__langs a[aria-current] { color: var(--silver-hi); }
.btn .narrow { display: none; }

/* Sound: off until asked. A pixel speaker: an X when off, two waves when on (as on zeigarn.com). */
.sound {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--text-dim);
  font-family: var(--f-pixel); font-size: 16px; line-height: 1; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
}
.sound:hover, .sound:focus-visible { color: var(--silver-hi); }
.sound__icon { display: block; flex: none; fill: currentColor; shape-rendering: crispEdges; }
.sound__w1, .sound__w2, .sound.is-on .sound__x { display: none; }
.sound.is-on .sound__w1, .sound.is-on .sound__w2 { display: inline; }
.sound.is-on .sound__w2 { animation: sound-wave 1.2s steps(1) infinite; }
@keyframes sound-wave { 0% { visibility: visible; } 66% { visibility: hidden; } }
.sound--menu { margin-top: 40px; align-self: flex-start; }

/* The top HUD keeps the clock centred: where a language runs long, the sound label
 * goes first, then the links move into the menu, then the language chip, then
 * "Work with me" (site.js fitHud). */
html.hud-tight .hud-top .sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.hud-compact .hud-top .links { display: none; }
html.hud-compact .hud-top .menu-btn { display: inline-block; }
html.hud-narrow .hud-top .lang, html.hud-min .hud-top .btn--small { display: none; }

.menu-btn {
  display: none;
  min-height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--text-dim);
  font-family: var(--f-pixel); font-size: 16px; line-height: 1; letter-spacing: 2px; text-transform: uppercase;
}
.menu-btn:hover, .menu-btn:focus-visible { color: var(--silver-hi); }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border: 0;
  font-family: var(--f-pixel); font-size: 16px; font-weight: 400; line-height: 1;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s cubic-bezier(0.34, 1.4, 0.64, 1), transform 0.15s cubic-bezier(0.34, 1.4, 0.64, 1), border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { color: var(--night-0); background: rgba(230, 235, 245, 0.92); box-shadow: 4px 4px 0 var(--night-2); }
.btn--primary:hover { background: var(--lamp); box-shadow: 2px 2px 0 var(--night-2); transform: translate(2px, 2px); }
.btn--primary:active { box-shadow: 0 0 0 var(--night-2); transform: translate(4px, 4px); }
.btn--secondary { color: var(--text); background: rgba(6, 8, 15, 0.35); border: 1px solid var(--hair); }
.btn--secondary:hover { border-color: rgba(230, 235, 245, 0.9); color: var(--silver-hi); }
.btn--secondary:active { transform: translate(2px, 2px); }
.btn--small { height: 32px; padding: 0 12px; box-shadow: 3px 3px 0 var(--night-2); }
.btn--small:hover { box-shadow: 1px 1px 0 var(--night-2); }

/* ---------------------------------------------------------------- hero */

.hero {
  --ledge: 60vh;
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

/* The stage: one CRT behind the whole page. */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--night-0); }
.stage__canvas { display: block; width: 100%; height: 100%; }
.stage__poster { position: absolute; inset: 0; }
.stage__poster img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
main { position: relative; z-index: 2; }

/* The keyword block, on the dark wall left of the desk. */
.hero__copy {
  --fit: 1;
  position: absolute; z-index: 5;
  left: 7vw; bottom: max(84px, 9vh);
  max-width: min(62vw, 980px);
}
.hero__title { margin: 0; font-weight: 400; color: rgba(255, 255, 255, 0.88); text-shadow: 0 0 18px rgba(0, 0, 0, 0.6); text-transform: uppercase; }
.hero__l1 { display: block; font-weight: 300; font-size: calc(clamp(16px, 2.3vw, 44px) * var(--fit)); line-height: 1.39; letter-spacing: 0.34em; }
.hero__l2 { display: block; font-weight: 400; font-size: calc(clamp(40px, 5.2vw, 100px) * var(--fit)); line-height: 1.25; letter-spacing: 0.16em; }
.hero__l1 .w, .hero__l2 .w { margin-right: 0.08em; }

.hero__lead-mask { overflow: hidden; margin-top: 14px; padding-bottom: 2px; }
.hero__lead {
  margin: 0; max-width: min(34em, 52vw);
  color: var(--text-soft);
  font-size: 17px; line-height: 1.6;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.55);
  text-wrap: pretty;
}
.hero__lead-line { padding-bottom: 1px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__cta .btn { transform-origin: 50% 50%; }

.scroll-cue {
  position: absolute; right: var(--edge-x); bottom: var(--edge-y); z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0;
  color: var(--text-dim);
  font-family: var(--f-pixel); font-size: 16px; line-height: 1; letter-spacing: 2px; text-transform: uppercase;
  pointer-events: none;
}
.scroll-cue__caret { width: 4px; height: 8px; margin-right: 2px; background: var(--text-soft); animation: blink 1s steps(1) infinite; }
.scroll-cue.is-gone { visibility: hidden; }

@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------ the build bar */

.loadbar {
  position: fixed; left: var(--edge-x); bottom: var(--edge-y); z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  max-width: calc(100vw - 2 * var(--edge-x));
  color: var(--text);
  font-family: var(--f-pixel); font-size: 16px; line-height: 1; letter-spacing: 2px; text-transform: uppercase;
  pointer-events: none;
}
.loadbar__label { white-space: nowrap; min-height: 16px; }
.loadbar__cells { display: inline-flex; gap: 2px; }
.loadbar__cell { width: 6px; height: 12px; background: rgba(230, 235, 245, 0.14); }
.loadbar__cell.is-on { background: rgba(230, 235, 245, 0.85); }
.loadbar__num { min-width: 4ch; }
/* zeigarn's bar sticks at 99; this one ships */
.loadbar.is-shipped .loadbar__label { color: var(--lamp); }
.loadbar.is-shipped .loadbar__cell { background: var(--silver-hi); }
.loadbar.is-shipped .loadbar__num { display: none; }
/* --------------------------------------------------------------- menu */

.menu-panel {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column;
  padding: 18px 16px 28px;
  background: var(--night-1);
  visibility: hidden;
  transform-origin: 50% 50%;
}
.menu-panel.is-open { visibility: visible; }
.menu-panel__top { display: flex; align-items: center; justify-content: space-between; }
.menu-btn--close { display: inline-block; }
.menu-panel__nav { display: flex; flex-direction: column; gap: 22px; margin-top: 72px; }
.menu-panel__nav a {
  color: var(--text);
  font-family: var(--f-cine); font-weight: 300; font-size: 28px; line-height: 1.2;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
}
.menu-panel__nav a:hover, .menu-panel__nav a:focus-visible { color: var(--silver-hi); }
.menu-panel__foot { margin: auto 0 0; color: rgba(230, 235, 245, 0.42); font-family: var(--f-pixel); font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }

/* ------------------------------------------------------------ sections */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.px-s { font-family: var(--f-pixel); font-size: 8px; line-height: 2; letter-spacing: 1px; text-transform: uppercase; }

.sec { position: relative; min-height: 100vh; padding: 20vh 7vw 16vh; }
.sec__head { max-width: 46rem; }
.sec__stamp { margin: 0 0 22px; color: var(--text-dim); }
.kw { margin: 0; font-weight: 400; color: rgba(255, 255, 255, 0.88); text-shadow: 0 0 18px rgba(0, 0, 0, 0.6); text-transform: uppercase; }
.kw__l1 { display: block; font-weight: 300; font-size: clamp(14px, 1.8vw, 34px); line-height: 1.39; letter-spacing: 0.34em; }
.kw__l2 { display: block; font-weight: 400; font-size: clamp(34px, 4.4vw, 84px); line-height: 1.25; letter-spacing: 0.16em; }
.kw .w { margin-right: 0.08em; }
.sec__lead { margin: 18px 0 0; max-width: 34em; color: var(--text-soft); font-size: 17px; line-height: 1.6; text-shadow: 0 0 14px rgba(0, 0, 0, 0.6); text-wrap: pretty; }
.sec__lead a, .foot a { color: var(--text); text-underline-offset: 3px; }
.panel, .proj, .about__body, .form, .foot { background: rgba(6, 8, 15, 0.72); border: 1px solid rgba(230, 235, 245, 0.12); }
[data-panel] { transform-origin: 50% 50%; }
/* documents: privacy, 404 */
body.doc { background: var(--night-0); }
.doc__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: var(--edge-y) var(--edge-x); }
.doc__back { color: var(--text-dim); text-decoration: none; }
.doc__back:hover, .doc__back:focus-visible { color: var(--silver-hi); }
.doc__main { max-width: 760px; margin: 0 auto; padding: 12vh 24px 8vh; }
.doc__main .kw { margin-bottom: 6vh; }
.doc__main section { margin: 0 0 40px; }
.doc__main h2 { margin: 0 0 12px; font-weight: 400; font-size: 16px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-hi); }
.doc__main p { margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.doc__main a:not(.btn), .lost a:not(.btn) { color: var(--text); text-underline-offset: 3px; }
.doc__main code { font-family: var(--f-pixel); font-size: 16px; letter-spacing: 1px; color: var(--text); }
.doc__foot { max-width: 760px; margin: 0 auto; padding: 0 24px 8vh; }
.lost { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.lost__bar { display: flex; width: min(420px, 100%); height: 14px; margin: 28px 0 6px; padding: 2px; border: 1px solid var(--hair); }
.lost__bar span { width: 99%; background: repeating-linear-gradient(to right, rgba(230, 235, 245, 0.85) 0 6px, transparent 6px 8px); position: relative; }
.lost__bar span::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: var(--lens-2); animation: blink 0.8333s steps(1) infinite; }
.lost .foot__small { margin-top: 28px; }

/* the HUD's section index */
.index { position: fixed; right: var(--edge-x); bottom: var(--edge-y); z-index: 70; margin: 0; color: var(--text-dim); pointer-events: none; }
html[data-scene="desk"] .index { visibility: hidden; }

/* -------------------------------------------------------- intro pre-states */
/* Only with JS and motion: without either, everything is simply there. */

html.js:not(.is-ready) .wordmark .wl,
html.js:not(.is-ready) [data-power],
html.js:not(.is-ready) [data-power-cta],
html.js:not(.is-ready) .hero__lead,
html.js:not(.is-ready) .scroll-cue { visibility: hidden; }
html.js:not(.is-ready) .w__in,
html.js:not(.is-ready) .m__in { transform: translateY(105%); }
html.js:not(.hud-on) .clock__colon,
html.js:not(.hud-on) .loadbar__cells { visibility: hidden; }

/* ?still=1: the canvas alone, for tools/poster.mjs */
html.is-still, html.is-still body { overflow: hidden; }
html.is-still .hud-top, html.is-still .hero__copy, html.is-still .scroll-cue, html.is-still .loadbar,
html.is-still .menu-panel, html.is-still .sec, html.is-still .foot, html.is-still .index, html.is-still .skip { display: none !important; }


/* ------------------------------------------------------------ sections */

.sec { position: relative; min-height: 100vh; padding: 20vh 7vw 16vh; }
.sec__head { max-width: 46rem; }
.sec__stamp { margin: 0 0 22px; color: var(--text-dim); }
.kw { margin: 0; font-weight: 400; color: rgba(255, 255, 255, 0.88); text-shadow: 0 0 18px rgba(0, 0, 0, 0.6); text-transform: uppercase; }
.kw__l1 { display: block; font-weight: 300; font-size: clamp(14px, 1.6vw, 30px); line-height: 1.39; letter-spacing: 0.34em; }
.kw__l2 { display: block; font-weight: 400; font-size: clamp(34px, 4.4vw, 84px); line-height: 1.2; letter-spacing: 0.14em; }
.kw .w { margin-right: 0.08em; }
.sec__lead { margin: 18px 0 0; max-width: 34em; color: var(--text-soft); font-size: 17px; line-height: 1.6; text-shadow: 0 0 14px rgba(0, 0, 0, 0.6); text-wrap: pretty; }
[data-panel] { transform-origin: 50% 50%; }

/* the projects: one screen each, the copy on the dark side of the frame */
.sec--project { min-height: 150vh; padding-top: 24vh; }
.sec--project .sec__head, .proj { max-width: min(560px, 40vw); }
.proj { margin-top: 30px; padding: 24px 26px; background: rgba(6, 8, 15, 0.94); } /* it may sit over a bright app on the glass */
.proj__text { margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.proj__facts { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(230, 235, 245, 0.1); }
.proj__facts div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: baseline; }
.proj__facts dt { margin: 0; color: var(--text-dim); }
.proj__facts dd { margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; letter-spacing: 0.04em; }
.proj__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 24px 0 0; }
.proj__soon { color: var(--text-dim); }
.proj__more { margin-left: 4px; color: var(--text-dim); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; }
.proj__more:hover, .proj__more:focus-visible { color: var(--silver-hi); text-decoration: underline; text-underline-offset: 6px; }

/* the developer */
.sec--about { min-height: 150vh; display: flex; align-items: flex-end; padding-bottom: 14vh; }
.about { max-width: min(560px, 44vw); }
.about__body { margin-top: 30px; padding: 24px 26px; }
.about__h { margin: 0 0 12px; color: var(--text-dim); font-weight: 400; }
.about__h + .what { margin-top: 0; }
.what { display: grid; gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.what h4 { margin: 0 0 4px; font-weight: 400; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-hi); }
.what p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.55; }
.stack { margin: 0; color: var(--text); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }

/* work with me: the form beside the shipped build */
.sec--work { min-height: 160vh; }
.sec--work .sec__head, .form { max-width: min(600px, 44vw); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; padding: 24px 26px; }
.form__field { display: grid; gap: 8px; }
.form__field--wide, .form__captcha, .form__end, .form__or { grid-column: 1 / -1; }
.form__field span { color: var(--text-dim); }
.form input, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(230, 235, 245, 0.2); background: rgba(6, 8, 15, 0.6);
  color: var(--silver-hi); font: inherit; font-size: 16px; line-height: 1.5;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--moon); outline-offset: 0; border-color: transparent; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__captcha:empty { display: none; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { margin: 0; color: var(--text-soft); font-size: 15px; }
.form__status[data-kind="ok"] { color: var(--silver-hi); }
.form__status[data-kind="error"] { color: var(--lamp); }
.form__or { margin: 0; color: var(--text-dim); font-size: 14px; }
.form__or a { color: var(--text); text-underline-offset: 3px; }

/* 03:00: the roof, zeigarn's first frame */
.sec--night { min-height: 130vh; display: flex; align-items: flex-end; padding-bottom: 18vh; }
.sec--night .sec__head { min-width: 0; max-width: min(560px, 44vw); }
.night__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.night__latest { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--text-soft); font-size: 15px; text-decoration: none; }
.night__latest .px-s { color: var(--text-dim); }
.night__latest:hover { color: var(--silver-hi); }

/* the footer */
.foot { position: relative; z-index: 2; margin: 0 7vw 9vh; padding: 28px; display: grid; gap: 18px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot__links, .foot__langs { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.foot__links a { color: var(--text-dim); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; }
.foot__links a:hover { color: var(--silver-hi); }
.foot__langs a { color: var(--text-dim); text-decoration: none; }
.foot__langs a[aria-current] { color: var(--silver-hi); }
.foot__small { margin: 0; color: var(--text-dim); font-size: 13px; }

/* a demo, full screen, powered on like a tube */
.demo { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; background: var(--night-0); transform-origin: 50% 50%; }
.demo[hidden] { display: none; }
.demo__top { display: flex; align-items: center; gap: 22px; padding: 16px var(--edge-x); border-bottom: 1px solid rgba(230, 235, 245, 0.1); }
.demo__title { margin: 0 auto 0 0; color: var(--text); }
.demo__tab { color: var(--text-dim); text-decoration: none; }
.demo__tab:hover, .demo__tab:focus-visible { color: var(--silver-hi); }
.demo__screen { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 18px; }
.demo__screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; border-radius: 6px; }
.demo__screen.is-phone iframe { width: min(420px, 100%); height: min(860px, 100%); border-radius: 18px; }

/* ----------------------------------------------------- pages: projects */

.plist { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.plist__item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px; background: rgba(6, 8, 15, 0.72); border: 1px solid rgba(230, 235, 245, 0.12); }
.plist__item img { display: block; width: 200px; height: 140px; object-fit: cover; image-rendering: auto; background: #000; }
.plist__item h2 { margin: 0 0 6px; font-weight: 400; font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver-hi); }
.plist__item h2 a { color: inherit; text-decoration: none; }
.plist__item h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.plist__item .px-s { color: var(--text-dim); }
.doc__main .plist__item p { font-size: 15px; line-height: 1.6; }
.plist__item .proj__actions { margin-top: 14px; }
.ppage__shot { display: block; width: 100%; height: auto; margin: 0 0 36px; background: #000; }
.ppage__shot--phone { width: min(360px, 100%); }
.doc__main .ppage__pitch { margin: 0 0 18px; color: var(--text) !important; font-size: clamp(18px, 1.6vw, 21px) !important; line-height: 1.6 !important; }
.ppage .proj__facts { margin-top: 28px; }
.ppage .proj__actions { margin-bottom: 48px; }

/* ------------------------------------------------------- narrow screens */

@media (max-width: 1179px) {
  .sec--project .sec__head, .proj, .about, .sec--work .sec__head, .form, .sec--night .sec__head { max-width: min(560px, 52vw); }
}

/* Tall screens (phones, portrait tablets): the scene fills the top, the copy follows below. */
@media (max-aspect-ratio: 6/5) {
  .hero__copy { top: auto; bottom: 84px; display: block; }
  .hero__cta { margin-top: 22px; }
  .sec--project { padding-top: 58vh; }
  .sec--project .sec__head, .proj, .about, .sec--work .sec__head, .form, .sec--night .sec__head { max-width: 640px; }
  .sec--about { align-items: flex-start; padding-top: 60vh; }
  .sec--work { padding-top: 52vh; }
  .form { grid-template-columns: 1fr; }
}

@media (max-width: 759px) {
  /* the phone's top bar has room for the name, the clock and the menu: the sound waits in the menu */
  .hud-top .sound { display: none; }
  .hero__copy { top: auto; bottom: 72px; }
  /* the bottom HUD gets a ground of its own: the copy scrolls under it */
  .loadbar { left: 0; right: 0; bottom: 0; max-width: none; padding: 10px 16px 14px; background: rgba(6, 8, 15, 0.9); }
  .sec { padding: 96px 20px 12vh; }
  .sec--project { padding-top: 56vh; }
  .sec--work { padding-top: 50vh; }
  .kw__l1 { font-size: 13px; letter-spacing: 0.26em; }
  .kw__l2 { font-size: clamp(30px, 9vw, 44px); letter-spacing: 0.1em; }
  .sec__lead { font-size: 15px; }
  .proj, .about__body, .form { padding: 18px; }
  .proj__facts div { grid-template-columns: 1fr; gap: 4px; }
  .foot { margin: 0 16px 8vh; padding: 20px; }
  .index { display: none; }
  .plist__item { grid-template-columns: 1fr; }
  .plist__item img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .demo__top { gap: 14px; }
  .demo__tab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sound.is-on .sound__w2 { animation: none; }
}
