/* =========================================================
   Casey — caseur2.0  //  Backrooms / liminal portfolio
   Themeable via [data-theme] on <html> (see LEVELS below).
   ========================================================= */

:root {
  --sans: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 5vw, 6rem);
  --exit: #33c04a;

  /* LEVEL 0 — The Yellow (default) */
  --wall:  #c9b84e;
  --wall2: #b3a33f;
  --fg:    #211d09;
  --muted: #5c521f;
  --accent:#f6f0a8;
  --glow:  #fff7c0;
  --frame: #efe7b0;
  --line:  rgba(33,29,9,0.25);
}
:root[data-theme="concrete"] {
  --wall:#9a9893; --wall2:#83817c; --fg:#1b1b19; --muted:#54524d;
  --accent:#d8d6cf; --glow:#efede7; --frame:#c7c5bf; --line:rgba(27,27,25,0.22);
}
:root[data-theme="pool"] {
  --wall:#bfe6e2; --wall2:#a7d8d3; --fg:#123434; --muted:#3f6b6a;
  --accent:#eafffb; --glow:#ffffff; --frame:#e0f5f2; --line:rgba(18,52,52,0.18); --exit:#0e8f8a;
}
:root[data-theme="run"] {
  --wall:#280f0d; --wall2:#180807; --fg:#f2d9d5; --muted:#bd867e;
  --accent:#e0432f; --glow:#ff5a44; --frame:#3a1512; --line:rgba(242,217,213,0.18); --exit:#e0432f;
}
:root[data-theme="fun"] {
  --wall:#e9b7dd; --wall2:#dfa3d1; --fg:#3a1030; --muted:#7a3a68;
  --accent:#fff0fb; --glow:#ffffff; --frame:#f6d9ef; --line:rgba(58,16,48,0.18); --exit:#c0398f;
}
:root[data-theme="amber"] {   /* old CRT terminal */
  --wall:#191104; --wall2:#0e0a02; --fg:#ffb000; --muted:#8a5e12;
  --accent:#ffb000; --glow:#ffd66a; --frame:#241905; --line:rgba(255,176,0,0.22); --exit:#ffb000;
}
:root[data-theme="noir"] {    /* high-contrast black & white */
  --wall:#1c1c1c; --wall2:#0e0e0e; --fg:#ededed; --muted:#8a8a8a;
  --accent:#ffffff; --glow:#ffffff; --frame:#2a2a2a; --line:rgba(255,255,255,0.18); --exit:#c9c9c9;
}
:root[data-theme="sewer"] {   /* murky green */
  --wall:#39492a; --wall2:#26331b; --fg:#e2ecca; --muted:#8fa06a;
  --accent:#bde04c; --glow:#d8ff5c; --frame:#2b391d; --line:rgba(226,236,202,0.18); --exit:#8fbf3a;
}
:root[data-theme="night"] {   /* deep indigo */
  --wall:#1a2036; --wall2:#111528; --fg:#dfe4f5; --muted:#7b84a8;
  --accent:#6f8cff; --glow:#a9baff; --frame:#232a44; --line:rgba(223,228,245,0.18); --exit:#5cc0e0;
}
:root[data-theme="vapor"] {   /* purple / cyan */
  --wall:#2a1a3a; --wall2:#1c1128; --fg:#f6e4ff; --muted:#a878c8;
  --accent:#ff6ad5; --glow:#7afcff; --frame:#33224a; --line:rgba(246,228,255,0.18); --exit:#7afcff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* `clip` (not `hidden`) — stops horizontal overflow from inflating the mobile
   layout viewport, without turning html into a scroll container (which would
   break the sticky/pinned feature section). */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background-color: var(--wall);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.035) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, var(--wall) 0%, var(--wall2) 100%);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400; line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--fg); color: var(--wall); }

/* ---------- Atmosphere overlays ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; }
.fx-grain {
  inset: -50%; z-index: 9995; opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(3) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0);} 33%{transform:translate(-3%,2%);} 66%{transform:translate(2%,-3%);} }
.fx-scan {
  z-index: 9996; opacity: 0.35;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.09) 0 1px, transparent 1px 3px);
}
.fx-vignette {
  z-index: 9994;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,0.45) 100%);
}
.fx-flicker {
  z-index: 9993; background: var(--glow); mix-blend-mode: overlay; opacity: 0;
  animation: flicker 7s infinite steps(1);
}
@keyframes flicker {
  0%,19%,21%,23%,55%,57%,100% { opacity: 0; }
  20% { opacity: 0.12; } 22% { opacity: 0.04; } 56% { opacity: 0.14; }
}

/* ---------- Background: endless hallway + roaming entity ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#top { position: relative; z-index: 1; }

.bg-hall { position: absolute; inset: 0; overflow: hidden; }
.bg-hall__floor, .bg-hall__ceil {
  position: absolute; left: -25%; width: 150%; height: 80vh;
  color: var(--accent); opacity: 0.13;
  background-image:
    repeating-linear-gradient(to right, currentColor 0 2px, transparent 2px 7vmin),
    repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 9vmin);
  -webkit-mask-image: linear-gradient(var(--m1, to top), #000, transparent 85%);
          mask-image: linear-gradient(var(--m1, to top), #000, transparent 85%);
}
.bg-hall__floor { bottom: 0; transform-origin: bottom center; transform: perspective(45vh) rotateX(81deg); animation: hallDown 5s linear infinite; }
.bg-hall__ceil  { top: 0; --m1: to bottom; transform-origin: top center; transform: perspective(45vh) rotateX(-81deg); animation: hallUp 5s linear infinite; }
@keyframes hallDown { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 0 9vmin; } }
@keyframes hallUp   { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 0 -9vmin; } }

/* the thing under the wallpaper — follows the cursor, always behind the content */
.bg-entity {
  position: absolute; top: 0; left: 0; width: 46vmax; height: 46vmax;
  margin: -23vmax 0 0 -23vmax;        /* so translate(x,y) centres it on the cursor */
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.62), rgba(0,0,0,0) 62%);
  filter: blur(28px); opacity: .55; will-change: transform;
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--fg); pointer-events: none; z-index: 100000;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease);
  display: grid; place-items: center; mix-blend-mode: difference;
}
.cursor.is-hover { width: 70px; height: 70px; mix-blend-mode: normal; background: var(--fg); }
.cursor__label { font-family: var(--mono); font-size: 12px; color: var(--wall); opacity: 0; transition: opacity .25s; }
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9997; }
.progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--glow)); box-shadow: 0 0 12px var(--glow); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9990; background: var(--wall);
  display: grid; place-items: center; transition: transform .9s var(--ease);
}
.loader.is-done { transform: translateY(-101%); }
.loader__inner { text-align: center; font-family: var(--mono); }
.loader__code { color: var(--exit); letter-spacing: .2em; font-size: .8rem; }
.loader__count { color: var(--muted); margin-top: .8rem; font-size: .85rem; letter-spacing: .1em; }
.loader__name { font-family: var(--sans); font-weight: 600; font-size: clamp(1.6rem, 6vw, 3rem); letter-spacing: .35em; margin-top: .6rem; text-transform: uppercase; animation: textflick 4s infinite; }
.loader__name > span { display: block; }
.loader__tag { color: var(--muted); margin-top: .6rem; font-size: .8rem; }
@keyframes textflick { 0%,96%,100%{opacity:1;} 97%{opacity:.3;} 98%{opacity:.9;} 99%{opacity:.4;} }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem var(--pad); font-family: var(--mono);
  transform: translateY(-120%); transition: transform .8s var(--ease);
  background: linear-gradient(180deg, rgba(0,0,0,0.14), transparent);
}
.nav.is-in { transform: translateY(0); }
.nav__logo { font-weight: 600; font-size: 1rem; letter-spacing: .05em; display: inline-flex; align-items: center; gap: .5rem; }
/* the signature mark — masked so it takes the current theme colour, not a baked-in fill */
.nav__logo-mark {
  display: block; width: clamp(88px, 11vw, 124px); aspect-ratio: 1000 / 205;
  background: currentColor;
  -webkit-mask: url(../images/logo.svg) no-repeat center / contain;
          mask: url(../images/logo.svg) no-repeat center / contain;
  transition: filter .4s var(--ease), opacity .4s var(--ease);
}
.nav__logo:hover .nav__logo-mark { filter: drop-shadow(0 0 10px var(--glow)); }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav__links { display: flex; gap: clamp(.8rem, 2.5vw, 2rem); }
.nav__links a { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-3px; height:2px; width:0; background: var(--accent); transition: width .35s var(--ease); box-shadow: 0 0 8px var(--glow); }
.nav__links a:hover::after { width: 100%; }
.nav__amb {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted);
  background: transparent; border: 1px solid var(--line); padding: .3rem .55rem; cursor: none; border-radius: 2px;
}
.nav__amb.is-on { color: var(--fg); border-color: var(--accent); }

/* burger — only exists at menu widths (see Responsive) */
.nav__burger {
  display: none; background: transparent; border: 1px solid var(--line);
  padding: .5rem .55rem; cursor: none; border-radius: 2px; color: var(--fg);
  transition: border-color .3s var(--ease);
}
.nav__burger[aria-expanded="true"] { border-color: var(--accent); }
.nav__burger-box { display: block; position: relative; width: 20px; height: 14px; }
.nav__burger-box i {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .45s var(--ease), opacity .2s linear;
}
.nav__burger-box i:nth-child(1) { top: 0; }
.nav__burger-box i:nth-child(2) { top: 6px; }
.nav__burger-box i:nth-child(3) { top: 12px; }
.nav__burger[aria-expanded="true"] .nav__burger-box i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] .nav__burger-box i:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] .nav__burger-box i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Full-screen menu ----------
   Sits under the grain/scanline/vignette overlays (9993+) on purpose, so the
   whole room-atmosphere treatment washes over it too. */
.menu {
  position: fixed; inset: 0; z-index: 9980; overflow: hidden;
  background-color: var(--wall2);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.045) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, var(--wall) 0%, var(--wall2) 100%);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .75s var(--ease), visibility 0s linear .75s;
}
.menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .75s var(--ease), visibility 0s; }

/* the corridor keeps receding behind the menu */
.menu__hall { position: absolute; inset: 0; overflow: hidden; opacity: .5; pointer-events: none; }
.menu__hall-floor, .menu__hall-ceil {
  position: absolute; left: -25%; width: 150%; height: 70vh; color: var(--accent); opacity: .16;
  background-image:
    repeating-linear-gradient(to right, currentColor 0 2px, transparent 2px 9vmin),
    repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 11vmin);
  -webkit-mask-image: linear-gradient(var(--m1, to top), #000, transparent 88%);
          mask-image: linear-gradient(var(--m1, to top), #000, transparent 88%);
}
.menu__hall-floor { bottom: 0; transform-origin: bottom center; transform: perspective(45vh) rotateX(80deg); animation: hallDown 7s linear infinite; }
.menu__hall-ceil  { top: 0; --m1: to bottom; transform-origin: top center; transform: perspective(45vh) rotateX(-80deg); animation: hallUp 7s linear infinite; }

.menu__inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem; padding: calc(1rem + 54px) var(--pad) calc(1rem + env(safe-area-inset-bottom));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}

/* status strip */
.menu__status {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .7rem;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .5s var(--ease) .25s, transform .5s var(--ease) .25s;
}
.menu.is-open .menu__status { opacity: 1; transform: none; }
.menu__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--exit); box-shadow: 0 0 8px var(--exit); animation: blink 1.6s steps(1) infinite; }
.menu__time { margin-left: auto; font-variant-numeric: tabular-nums; }

/* the doors */
.menu__nav { display: flex; flex-direction: column; padding: 1rem 0; }
.menu__nav a {
  position: relative; display: flex; align-items: baseline; gap: clamp(.7rem, 3vw, 1.4rem);
  padding: clamp(.5rem, 2.2vw, .9rem) 0; border-bottom: 1px solid var(--line);
}
.menu__nav a:first-child { border-top: 1px solid var(--line); }
/* accent wash that sweeps in from the left on press/hover */
.menu__nav a::before {
  content: ""; position: absolute; left: calc(var(--pad) * -1); right: calc(var(--pad) * -1); top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0; transform: scaleX(.35); transform-origin: left;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.menu__nav a:hover::before, .menu__nav a:focus-visible::before, .menu__nav a:active::before { opacity: .16; transform: scaleX(1); }
.menu__no {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--muted);
  flex: 0 0 auto; transition: color .35s var(--ease);
}
.menu__nav a:hover .menu__no, .menu__nav a:focus-visible .menu__no { color: var(--accent); }
/* mask-reveal, staggered per item */
.menu__word { display: block; overflow: hidden; }
.menu__word em {
  display: block; font-style: normal; font-weight: 600;
  font-size: clamp(2.6rem, 15vw, 5.5rem); line-height: 1;
  letter-spacing: .01em; text-transform: uppercase;
  transform: translateY(110%);
  transition: transform .8s var(--ease), text-shadow .35s var(--ease);
}
.menu.is-open .menu__word em { transform: translateY(0); transition-delay: calc(var(--i) * 70ms + 200ms); }
.menu__nav a:hover .menu__word em, .menu__nav a:focus-visible .menu__word em { text-shadow: 0 0 34px var(--glow); }
.menu__exit .menu__word em { color: var(--exit); text-shadow: 0 0 26px var(--exit); }
.menu__exit:hover .menu__word em { text-shadow: 0 0 46px var(--exit); }

/* footer block */
.menu__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem;
  border-top: 1px solid var(--line); padding-top: 1rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease) .5s, transform .6s var(--ease) .5s;
}
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu__amb {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted);
  background: transparent; border: 1px solid var(--line); padding: .35rem .6rem; cursor: none; border-radius: 2px;
}
.menu__amb.is-on { color: var(--fg); border-color: var(--accent); }
.menu__social { display: flex; gap: 1rem; }
.menu__social a { position: relative; text-transform: uppercase; }
.menu__social a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0; background: var(--accent);
  transition: width .35s var(--ease);
}
.menu__social a:hover::after { width: 100%; }
.menu__sig { flex: 1 0 100%; color: var(--muted); font-size: .66rem; letter-spacing: .1em; }

/* while the menu is open the burger has to stay above it */
html.is-menu-open { overflow-y: hidden; }
html.is-menu-open .nav { z-index: 9986; }

/* ---------- Reveal primitives ---------- */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(115%); transition: transform 1s var(--ease); }
.reveal-line.is-in > span { transform: translateY(0); }
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: translateY(0); }
.word { display: inline-block; opacity: .18; transition: opacity .45s var(--ease); }
.word.is-lit { opacity: 1; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(115%); transition: transform .9s var(--ease); }
.split-line.is-in > span { transform: translateY(0); }
.flick { animation: textflick 5s infinite; }

/* ---------- Signs ---------- */
.sign { font-family: var(--mono); font-weight: 600; letter-spacing: .15em; font-size: .75rem; padding: .35rem .7rem; display: inline-block; }
.sign--exit { color: #eafff0; background: var(--exit); box-shadow: 0 0 18px var(--exit); border-radius: 2px; }
.sign--room { color: var(--muted); border: 1px solid var(--line); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--pad); }
.hero__signs { position: absolute; top: 18%; width: 100%; display: flex; justify-content: space-between; padding: 0 var(--pad); left: 0; }
.hero__pre { font-family: var(--mono); font-size: clamp(.8rem, 2vw, 1rem); color: var(--muted); letter-spacing: .05em; }
.hero__title { font-weight: 600; font-size: clamp(4rem, 24vw, 20rem); line-height: .9; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 0 40px var(--glow); }
.hero__tag { font-family: var(--mono); font-size: clamp(.85rem, 2.6vw, 1.4rem); color: var(--fg); margin-top: .6rem; }
.hero__sub { font-family: var(--mono); font-size: clamp(.7rem, 1.6vw, .85rem); letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-top: .8rem; }
.hero__scroll { position: absolute; bottom: var(--pad); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .3rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.hero__scroll-arrow { font-size: 1.3rem; animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(7px);} }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; white-space: nowrap; background: var(--fg); color: var(--wall); padding: .7rem 0; margin: 3rem 0; }
.marquee__track { display: inline-block; will-change: transform; font-family: var(--mono); font-weight: 600; font-size: clamp(1rem, 3.5vw, 2rem); letter-spacing: .05em; }

/* ---------- STATEMENT ---------- */
.statement { padding: clamp(4rem, 12vh, 10rem) var(--pad); max-width: 1100px; margin: 0 auto; }
.statement__text { font-weight: 300; font-size: clamp(1.5rem, 4.5vw, 3.4rem); line-height: 1.25; }

/* ---------- SECTION TITLES ---------- */
.section-title { font-weight: 600; font-size: clamp(1.8rem, 6vw, 4rem); letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 0 30px var(--glow); }
.section-note { font-family: var(--mono); font-size: clamp(.8rem, 2vw, 1rem); color: var(--muted); margin-top: .5rem; letter-spacing: .04em; }

/* ---------- THE WALL (clean art plates) ---------- */
.wall { padding: clamp(3rem, 8vh, 7rem) var(--pad) clamp(4rem, 12vh, 9rem); perspective: 1500px; }
.wall__head { margin-bottom: 3.2rem; position: relative; }
.wall__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 26vw, 300px), 1fr));
  gap: clamp(1.1rem, 2.6vw, 2.4rem); will-change: transform; transform-origin: center; }

/* --- Art plate --- */
.plate { position: relative; cursor: none; opacity: 1; overflow: hidden; will-change: transform, opacity; }
@keyframes plateIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.plate__media { position: relative; overflow: hidden; aspect-ratio: 4/5; background: #141310;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  outline: 1px solid transparent; outline-offset: -1px;
  transition: box-shadow .4s var(--ease), outline-color .4s var(--ease); }
.plate:hover .plate__media { box-shadow: 0 20px 46px rgba(0,0,0,.6); outline-color: var(--accent); }
.plate__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03);
  filter: grayscale(.14) brightness(.9) contrast(1.02);
  transition: transform .7s var(--ease), filter .5s var(--ease); }
.plate:hover .plate__media img { transform: scale(1.06); filter: none; }
.plate__idx { position: absolute; top: 10px; left: 11px; z-index: 2; font-family: var(--mono);
  font-size: .6rem; letter-spacing: .18em; color: #fff; mix-blend-mode: difference; opacity: .7; }
.plate__new { position: absolute; top: 9px; right: 10px; z-index: 2; font-family: var(--mono);
  font-size: .56rem; letter-spacing: .1em; background: var(--exit); color: #012; padding: .12rem .4rem; box-shadow: 0 0 10px var(--exit); }
.plate__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2rem .85rem .8rem; display: flex; flex-direction: column; gap: .1rem;
  font-family: var(--mono); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78));
  transform: translateY(101%); transition: transform .5s var(--ease); }
.plate:hover .plate__cap { transform: translateY(0); }
.plate__cap::before { content: ""; position: absolute; top: .55rem; left: .85rem; width: 30px; height: 2px;
  background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.plate__cap b { font-weight: 600; font-size: .88rem; letter-spacing: .01em; }
.plate__cap span { font-size: .68rem; color: #cfc9bd; }

/* ---------- Ghost drifting headline words ---------- */
.ghost { position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  font-family: var(--display, var(--sans)); font-weight: 700; font-size: clamp(3.5rem, 16vw, 12rem);
  letter-spacing: -.02em; line-height: 1; white-space: nowrap; pointer-events: none; z-index: 0;
  color: transparent; -webkit-text-stroke: 1px var(--line); text-stroke: 1px var(--line);
  opacity: .5; will-change: transform; }
.ghost--right { left: auto; right: 0; }
.wall__head .section-title, .wall__head .section-note,
.feeds__head .section-title, .feeds__head .section-note,
.about__text .section-title { position: relative; z-index: 1; }

/* ---------- SURVEILLANCE MONITORS (kept for Live Feeds only) ---------- */

.cam {
  position: relative; background: linear-gradient(#141513, #0b0c0a); border-radius: 12px;
  padding: 10px 10px 0; box-shadow: 0 12px 30px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05), inset 0 2px 2px rgba(255,255,255,.06);
  opacity: 1; animation: plateIn .7s var(--ease) both; transition: box-shadow .3s;
}
.cam:hover { box-shadow: 0 18px 44px rgba(0,0,0,.65), 0 0 0 1px var(--accent), 0 0 26px var(--glow); z-index: 5; }

.cam__bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; padding: 4px 4px 8px; color: #86a586; }
.cam__rec { display: flex; align-items: center; gap: 6px; color: #d7e8d7; }
.cam__rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; animation: blink 1.2s steps(1) infinite; }
.cam__time { color: #9fbf9f; font-variant-numeric: tabular-nums; }

.cam__screen { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; background: #000; box-shadow: inset 0 0 0 1px rgba(0,0,0,.8); }
.cam__screen img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03);
  filter: grayscale(1) brightness(.72) sepia(1) hue-rotate(55deg) saturate(2.4) contrast(1.12);
  transition: filter .4s ease; }
.cam:hover .cam__screen img { filter: none; animation: camGlitch .45s steps(2,end) 1; }
.cam__screen::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.30) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.cam__screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 130% at 50% 50%, transparent 55%, rgba(0,0,0,.55)); box-shadow: inset 0 0 46px rgba(0,0,0,.75); }
.cam__scanbar { position: absolute; left: 0; right: 0; height: 16%; z-index: 2; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,0)); animation: scanbar 4.5s linear infinite; }
@keyframes scanbar { from { top: -18%; } to { top: 116%; } }

.cam__foot { display: flex; justify-content: space-between; gap: .5rem; align-items: center;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; padding: 8px 4px 12px; min-height: 2.4em; }
.cam__code { color: #5f7a5f; flex: 0 0 auto; }
.cam__label { color: #789878; text-align: right; overflow: hidden; white-space: nowrap; }
.cam:hover .cam__label { color: #eafff0; text-shadow: 0 0 8px var(--glow); }
.cam__label .caret { animation: blink 1s steps(1) infinite; }

.cam__tag { position: absolute; top: 8px; right: 8px; z-index: 4; font-family: var(--mono); font-size: .58rem;
  letter-spacing: .1em; background: var(--exit); color: #012; padding: .12rem .4rem; box-shadow: 0 0 10px var(--exit); }

@keyframes camGlitch {
  0%   { clip-path: inset(0);            transform: translate(0) scale(1.03); }
  15%  { clip-path: inset(14% 0 55% 0);  transform: translate(-6px) scale(1.03); }
  30%  { clip-path: inset(60% 0 12% 0);  transform: translate(6px) scale(1.03); }
  45%  { clip-path: inset(28% 0 40% 0);  transform: translate(-4px) scale(1.05); }
  60%  { clip-path: inset(72% 0 8% 0);   transform: translate(4px) scale(1.03); }
  75%  { clip-path: inset(8% 0 74% 0);   transform: translate(-2px) scale(1.03); }
  100% { clip-path: inset(0);            transform: translate(0) scale(1.03); }
}

/* ---------- LIVE FEEDS (horizontal video monitors) ---------- */
.feeds { padding: clamp(3rem, 8vh, 6rem) 0; overflow: hidden; }
.feeds__head { padding: 0 var(--pad) 2.5rem; position: relative; }
.feeds__track { display: flex; gap: clamp(1.5rem, 4vw, 3rem); padding: 0 var(--pad); will-change: transform; }
.feeds__track .cam { flex: 0 0 auto; width: clamp(280px, 40vw, 520px); }
.feeds__track .cam__screen { aspect-ratio: 16/10; }

/* video inside a monitor */
.cam__screen video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03);
  filter: brightness(.9) contrast(1.05) saturate(.85) sepia(.25) hue-rotate(35deg);
  transition: filter .4s ease; }
.cam:hover .cam__screen video { filter: none; }
.cam--live .cam__rec i { background: #35c04a; box-shadow: 0 0 8px #35c04a; }
.cam--live .cam__label { color: #7fe6a0; }

/* featured pinned video */
.feature__img video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FEATURE (pinned) ---------- */
.feature { position: relative; height: 220vh; }   /* travel for the water to rise across */
.feature__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.feature__img { position: absolute; inset: 0; z-index: 0; }
.feature__img::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.6)); }
/* headline needs room to breathe; the 42ch measure belongs on the body copy, not the h3 —
   .split-line's overflow:hidden (the reveal mask) clips sideways otherwise */
.feature__caption { position: relative; z-index: 2; text-align: center; max-width: min(92vw, 60rem);
  margin-inline: auto; padding: var(--pad); color: #f4efd6; }
.feature__idx { font-family: var(--mono); font-size: .9rem; color: var(--accent); letter-spacing: .1em; }
.feature__caption h3 { font-weight: 600; font-size: clamp(2.6rem, 12vw, 8rem); line-height: .9; margin: .4rem 0 1rem; text-transform: uppercase; text-shadow: 0 0 30px rgba(0,0,0,.6); }
.feature__caption p { font-family: var(--mono); font-size: .95rem; max-width: 42ch; margin-inline: auto; }

/* ---------- BOTTLE FILL (scroll-driven specimen fluid) ----------
   --fill (0–1) is written by updateBottle() in js/main.js; everything else derives from it. */
.feature { --fill: 0; --liq: rgba(120, 214, 190, .30); --liq-lip: rgba(196, 255, 236, .55); }
.fluid { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none;
  height: calc(var(--fill) * 100%);
  opacity: min(1, calc(var(--fill) * 14));   /* no stray meniscus on the floor before it starts */
  background: linear-gradient(180deg, var(--liq), rgba(28, 92, 80, .42));
  backdrop-filter: blur(1.5px) saturate(1.35) hue-rotate(-10deg);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.35) hue-rotate(-10deg);
  box-shadow: inset 0 22px 40px -22px rgba(226, 255, 245, .5); }
/* meniscus — two scalloped bands drifting at different speeds */
.fluid__wave { position: absolute; left: 0; width: 200%; height: 22px; bottom: 100%;
  background: radial-gradient(ellipse 34px 22px at 50% 100%, var(--liq-lip) 99%, transparent 100%) repeat-x 0 100%/68px 22px; }
.fluid__wave--a { animation: fluid-drift 7s linear infinite; opacity: .9; }
.fluid__wave--b { animation: fluid-drift 11s linear infinite reverse; opacity: .45; height: 14px;
  background-size: 44px 14px; }
@keyframes fluid-drift { to { transform: translateX(-68px); } }
/* rising bubbles, only visible inside the fluid */
.fluid__bubbles { position: absolute; inset: 0; overflow: hidden; }
.fluid__bubbles i { position: absolute; left: var(--x); bottom: -12%; width: 10px; height: 10px;
  border-radius: 50%; background: rgba(232, 255, 246, .5); box-shadow: inset 0 0 3px rgba(255,255,255,.9);
  transform: scale(var(--s)); animation: fluid-rise var(--d) linear infinite; }
@keyframes fluid-rise {
  0%   { transform: translate(0, 0) scale(var(--s)); opacity: 0; }
  12%  { opacity: .85; }
  100% { transform: translate(14px, -100vh) scale(var(--s)); opacity: 0; }
}
/* headline fills with fluid as the waterline crosses it.
   grid-stacking both copies in one cell keeps the overlay glyph-perfect. */
.feature__title { position: relative; display: grid; }
.feature__title > * { grid-area: 1 / 1; }
.feature__title-sunk { margin: .4rem 0 1rem; pointer-events: none;
  font-weight: 600; font-size: clamp(2.6rem, 12vw, 8rem); line-height: .9; text-transform: uppercase;
  color: #bdf6e2; text-shadow: 0 0 26px rgba(140, 255, 220, .45);
  clip-path: inset(calc(var(--sunk, 1) * 100%) 0 0 0); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(4rem, 12vh, 9rem) var(--pad); align-items: center; }
.about__portrait { position: relative; background: #0c0d0b; padding: 10px; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 18px rgba(0,0,0,.32), 0 30px 64px rgba(0,0,0,.45),
              inset 0 0 40px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s var(--ease); }
/* gradient hairline ring — 1px border drawn as a masked gradient so it catches the light */
.about__portrait::before { content: ""; position: absolute; inset: 0; z-index: 3; padding: 1px;
  border-radius: inherit; pointer-events: none; opacity: .9; transition: opacity .5s var(--ease);
  background: linear-gradient(145deg, var(--accent), rgba(255,255,255,.16) 34%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; }
.about__portrait:hover::before { opacity: 1; }
.about__portrait.is-in { opacity: 1; transform: none; }
.about__portrait .frame { aspect-ratio: 3/4; overflow: hidden; border-radius: 5px; }
.about__portrait .frame img { filter: saturate(.85) contrast(1.05) brightness(.9); transition: filter .5s var(--ease); }
.about__portrait:hover .frame img { filter: none; }
/* viewfinder corner brackets */
.vf { position: absolute; width: 46px; height: 46px; z-index: 2; pointer-events: none; opacity: .8;
  border: 1px solid var(--accent); filter: drop-shadow(0 0 2px var(--glow)); }
.vf--tl { top: 4px; left: 4px; border-right: 0; border-bottom: 0; border-top-left-radius: 7px; }
.vf--tr { top: 4px; right: 4px; border-left: 0; border-bottom: 0; border-top-right-radius: 7px; }
.vf--bl { bottom: 4px; left: 4px; border-right: 0; border-top: 0; border-bottom-left-radius: 7px; }
.vf--br { bottom: 4px; right: 4px; border-left: 0; border-top: 0; border-bottom-right-radius: 7px; }
/* subject ID strip */
.about__id { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  border-radius: 0 0 5px 5px;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; color: #eafff0;
  padding: 1.6rem .6rem .5rem; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.about__id b { color: #ff5a4a; margin-right: .4rem; letter-spacing: .1em; }
.about__text { position: relative; }
.about__text .section-title { margin-bottom: 1.5rem; }
.about__text > p { font-weight: 300; font-size: clamp(1.3rem, 3vw, 2.1rem); line-height: 1.3; }
.about__list { list-style: none; margin-top: 2rem; font-family: var(--mono); }
.about__list li { display: flex; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; opacity: 0; transform: translateX(-16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.about__list li.is-in { opacity: 1; transform: translateX(0); }
.about__list li span { color: var(--accent); }
.about__list li em { color: var(--exit); font-style: normal; }

/* ---------- CONTACT ---------- */
.contact { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--pad); gap: 1rem; position: relative; }
.contact__exit { margin-bottom: 1rem; font-size: 1rem; }
.contact__label { font-family: var(--mono); font-size: clamp(.9rem, 2.5vw, 1.2rem); color: var(--muted); }
.contact__mail { font-weight: 600; font-size: clamp(2.8rem, 13vw, 9rem); line-height: .95; text-transform: uppercase; letter-spacing: .02em; display: inline-block; transition: text-shadow .3s; text-shadow: 0 0 40px var(--glow); }
.contact__mail:hover { text-shadow: 0 0 60px var(--glow), 0 0 20px var(--accent); }
.contact__links { display: flex; gap: 2rem; margin-top: 1rem; font-family: var(--mono); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.contact__links a { position: relative; }
.contact__links a::after { content:""; position:absolute; left:0; bottom:-3px; width:100%; height:2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); box-shadow: 0 0 8px var(--glow); }
.contact__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer { margin-top: clamp(3rem, 10vh, 7rem); width: 100%; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .72rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.4rem; }
.footer__staff { cursor: none; letter-spacing: .1em; }
.footer__staff:hover { color: var(--fg); }

/* ===================== MODAL ===================== */
.modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.7); display: grid; place-items: center; backdrop-filter: blur(2px); }
.modal[hidden] { display: none; }
.modal__box { width: min(360px, 90vw); background: var(--wall2); border: 1px solid var(--line); box-shadow: 0 0 60px rgba(0,0,0,.7); font-family: var(--mono); color: var(--fg); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; background: var(--fg); color: var(--wall); font-weight: 600; letter-spacing: .1em; font-size: .85rem; }
.modal__x, .admin__x { background: none; border: none; color: inherit; cursor: none; font-family: var(--mono); }
.modal__hint { padding: 1rem 1rem .3rem; font-size: .8rem; color: var(--muted); }
.modal form { padding: .5rem 1rem 1rem; display: grid; gap: .6rem; }
.modal__input { width: 100%; padding: .7rem; background: var(--wall); border: 1px solid var(--line); color: var(--fg); font-family: var(--mono); letter-spacing: .3em; text-align: center; }
.modal__input:focus { outline: 2px solid var(--accent); }
.modal__err { padding: 0 1rem 1rem; color: var(--exit); font-size: .78rem; min-height: 1rem; }

.btn { padding: .7rem 1rem; background: var(--fg); color: var(--wall); border: none; font-family: var(--mono); font-weight: 600; letter-spacing: .1em; cursor: none; transition: filter .2s; }
.btn:hover { filter: brightness(1.15); }

/* ===================== ADMIN DRAWER ===================== */
.admin { position: fixed; top: 0; right: 0; z-index: 9999; width: min(360px, 92vw); height: 100svh; overflow-y: auto; background: var(--wall2); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0,0,0,.5); font-family: var(--mono); color: var(--fg); transform: translateX(0); }
.admin[hidden] { display: none; }
.admin__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--fg); color: var(--wall); font-weight: 600; letter-spacing: .1em; }
.admin__block { padding: 1.2rem 1rem; border-bottom: 1px solid var(--line); }
.admin__block h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.admin__themes { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.admin__themes button { display: flex; align-items: center; gap: .5rem; padding: .5rem .55rem; background: var(--wall); border: 1px solid var(--line); color: var(--fg); font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; cursor: none; text-align: left; transition: border-color .2s, transform .15s; }
.admin__themes button:hover { transform: translateY(-1px); }
.admin__themes button.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.admin__themes i { width: 15px; height: 15px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 8px var(--sw); flex: 0 0 auto; }
.admin__drop { display: grid; place-items: center; min-height: 120px; border: 1px dashed var(--line); background: var(--wall); cursor: none; margin-bottom: .6rem; position: relative; overflow: hidden; padding: .5rem; text-align: center; font-size: .78rem; color: var(--muted); }
.admin__drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.admin__input { width: 100%; padding: .6rem; margin-bottom: .5rem; background: var(--wall); border: 1px solid var(--line); color: var(--fg); font-family: var(--mono); font-size: .82rem; }
.admin__input:focus { outline: 1px solid var(--accent); }
.admin__err { color: var(--exit); font-size: .76rem; min-height: .8rem; }
.admin__list { display: grid; gap: .5rem; }
.admin__item { display: flex; gap: .6rem; align-items: center; background: var(--wall); border: 1px solid var(--line); padding: .4rem; }
.admin__item img { width: 42px; height: 42px; object-fit: cover; flex: 0 0 auto; }
.admin__item .t { flex: 1; min-width: 0; font-size: .78rem; display: flex; flex-direction: column; overflow: hidden; }
.admin__item .t em { font-style: normal; font-size: .64rem; color: var(--muted); letter-spacing: .06em; }
.admin__vid { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; background: #000; color: var(--exit); font-size: .9rem; }
.admin__tip { font-size: .66rem; color: var(--muted); line-height: 1.5; margin-top: .5rem; }
.admin__tip b { color: var(--fg); font-weight: 600; }
.admin__item button { background: none; border: none; color: var(--exit); cursor: none; font-size: .9rem; }
.admin__empty { font-size: .78rem; color: var(--muted); }
.admin__note { padding: 1rem; font-size: .72rem; color: var(--muted); line-height: 1.5; }

/* ===================== LIGHTBOX ===================== */
body.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(7,7,5,.92);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  opacity: 0; transition: opacity .3s ease; }
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb__stage { display: flex; flex-direction: column; gap: 1.1rem; max-width: min(1100px, 92vw); max-height: 88vh; }
.lb__media { display: flex; justify-content: center; align-items: center; min-height: 0; }
.lb__media img, .lb__media video { max-width: 100%; max-height: 68vh; object-fit: contain;
  background: #000; box-shadow: 0 30px 90px rgba(0,0,0,.7); border-radius: 2px; }
.lb__cap { text-align: center; font-family: var(--mono); }
.lb__cap h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.2rem, 3vw, 2rem);
  text-transform: uppercase; letter-spacing: .03em; color: #f4efe2; text-shadow: 0 0 24px rgba(0,0,0,.6); }
.lb__cap p { color: #b8b3a8; font-size: .82rem; letter-spacing: .05em; margin-top: .25rem; }
.lb__desc { max-width: 58ch; margin: .5rem auto 0 !important; color: #d8d3c7; line-height: 1.5; }
.lb__close { position: fixed; top: 1.1rem; right: 1.2rem; }
.lb__nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 1rem; } .lb__next { right: 1rem; }
.lb__close, .lb__nav { z-index: 2; width: 46px; height: 46px; border-radius: 50%; cursor: none;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); color: #fff;
  transition: background .2s, border-color .2s, color .2s; }
.lb__close:hover, .lb__nav:hover { background: var(--accent); border-color: var(--accent); color: #111; }
@media (max-width: 560px) { .lb__nav { top: auto; bottom: 1rem; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .feature { height: 150vh; }
  /* inline links give way to the full-screen menu */
  .nav__links { display: none; }
  .nav__amb { display: none; }          /* surfaced inside the menu instead */
  .nav__burger { display: inline-flex; }
  .hero__signs { top: 12%; }

  /* Live Feeds: swipe natively instead of the desktop scroll-driven transform */
  .feeds { overflow: visible; }
  .feeds__track {
    transform: none !important;            /* neutralise any inline transform */
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: var(--pad);
    padding-bottom: .5rem;
    scrollbar-width: none;
  }
  .feeds__track::-webkit-scrollbar { display: none; }
  .feeds__track .cam { width: min(78vw, 420px); scroll-snap-align: center; }
  .feeds__track::after { content: ""; flex: 0 0 var(--pad); }  /* trailing gutter */
}
@media (max-width: 520px) {
  .footer { flex-direction: column; gap: .5rem; text-align: center; }
}
/* above the breakpoint the menu must not exist at all — no stray tab stops */
@media (min-width: 821px) { .menu { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-line > span, .reveal-up, .split-line > span, .cam, .plate, .about__portrait, .about__list li { transform: none !important; opacity: 1 !important; }
  .plate { clip-path: none !important; }
  .bg-hall, .bg-entity, .cam__scanbar, .fx-grain, .fx-flicker, .blink { animation: none !important; }
  /* the rAF loop is skipped here, so --fill never updates — show the jar filled and still */
  .feature { --fill: .62 !important; }
  .fluid__wave, .fluid__bubbles { display: none !important; }
  .feature__title-sunk { clip-path: inset(100% 0 0 0) !important; }
  .bg-entity { display: none; }
  .menu__hall-floor, .menu__hall-ceil, .menu__dot { animation: none !important; }
  .menu__word em { transform: none !important; }
  .menu { clip-path: none !important; }
  .menu:not(.is-open) { visibility: hidden !important; }
}
