/* ============================================================================
   TOTEMPHONIA — START PAGE  ·  "DER MORGENCHOR"
   ----------------------------------------------------------------------------
   Shared by /index.html (DE) and /en/index.html (EN).
   Loads AFTER /style.css (site chrome: header, menu, footer, font-faces)
   and only restyles what the start page owns. Companion logic: /start.js
   (full audit + concept notes live at the top of that file).
   ============================================================================ */

/* ---- additional font weights (files exist in /fonts, undeclared in style.css) */
@font-face {
  font-family: 'OPTIAuvantGothic-Medium';
  src: url('fonts/OPTIAuvantGothic-Medium.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaNowText-Regular';
  src: url('fonts/HelveticaNowText-Regular.ttf') format('truetype');
  font-display: swap;
}

/* ============================== TOKENS ==================================== */
body.page-home {
  --paper: #F1F1F1;          /* the studio's original cool paper     */
  --paper-2: #E8E8E8;        /* slightly deeper paper, plate mats    */
  --ink: #121212;            /* the studio's original ink            */
  --mut: #6A6A6A;            /* mid grey, captions                   */
  --terra: #A4683C;          /* clay / terracotta — lines + accents  */
  --moss: #4A5446;           /* deep grey-green — secondary accent   */
  --line: rgba(29, 24, 19, .16);
  --line-soft: rgba(29, 24, 19, .08);

  --ease: cubic-bezier(.25, .46, .45, .94);     /* physical standard  */
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* dramatic arrival   */
  --ease-in: cubic-bezier(.7, 0, .84, 0);       /* exit               */

  --mono: 'HelveticaNowText-Light', Arial, sans-serif;  /* labels share the chrome face */
  --disp: 'OPTIAuvantGothic-Bold', Arial, sans-serif;
  --disp-m: 'OPTIAuvantGothic-Medium', 'OPTIAuvantGothic-Bold', Arial, sans-serif;
  --body-f: 'HelveticaNowText-Light', Arial, sans-serif;
  --med-f: 'HelveticaNowText-Medium', Arial, sans-serif;

  --wrap: min(1480px, 92vw);

  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

body.page-home main {
  padding-top: 0;
  display: block;
  min-height: 0;
}

/* paper tooth — a static grain laid over everything, like printed stock */
body.page-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ====================== CHROME ADAPTION (header/nav) ====================== */
body.page-home .header-content h1 { color: var(--ink); }
body.page-home .header-line { background-color: var(--ink); opacity: .8; }
body.page-home .glass-blur {
  background: rgba(241, 241, 241, .06);
}
body.page-home footer {
  color: var(--mut);
  border-top: 1px solid var(--line);
  margin-top: clamp(56px, 9vh, 110px);
  padding: 26px 0 calc(22px + env(safe-area-inset-bottom));
}

/* scroll progress — a single hairline filling down the right edge */
.progress {
  position: fixed;
  top: 0; right: 0;
  width: 2px;
  height: 100vh;
  z-index: 9400;
  pointer-events: none;
}
.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  opacity: .25;
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

/* ============================ TYPE SYSTEM ================================= */
.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.75;
  color: var(--mut);
}
.mono b { font-family: var(--med-f); font-weight: 400; color: var(--ink); }
.mono em { font-style: normal; color: var(--terra); }

.plate-title {
  font-family: var(--disp);
  font-size: clamp(38px, 5.4vw, 86px);
  line-height: .98;
  letter-spacing: -.025em;
  /* optical left-align: the display face has a wide side bearing, so its ink
     edge is nudged back to sit flush with the body text + scroll line */
  margin: 0 0 clamp(22px, 3.4vh, 38px) -.045em;
  color: var(--ink);
}
.plate-title .w { display: inline-block; }
/* chars get side bleed (padding offset by negative margin) so the composited
   layer box covers the full glyph ink — otherwise round letters get clipped
   on the right while the wave animates */
.plate-title .c {
  display: inline-block;
  padding: 0 .12em;
  margin: 0 -.12em;
}

.plate-body {
  font-family: var(--body-f);
  font-size: clamp(15px, 1.55vw, 17.5px);
  line-height: 1.62;
  margin: 0;
  max-width: 46ch;
}
.plate-body b { font-family: var(--med-f); font-weight: 400; }

/* links — underline draws from the left, retracts to the right */
.link {
  position: relative;
  display: inline-block;
  font-family: var(--med-f);
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-row { margin: clamp(22px, 3.4vh, 36px) 0 0; }

.cap-link {
  color: inherit;
  text-decoration: none;
  transition: color .35s var(--ease);
}
.cap-link:hover, .cap-link:focus-visible { color: var(--terra); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--med-f);
  font-size: .82rem;
  letter-spacing: .05em;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--paper);
}

/* ============================== HERO ====================================== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
}
#chorus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.6s var(--ease) .55s;
  will-change: transform;
  cursor: crosshair;
}
body.loaded #chorus { opacity: 1; }

.hero-type {
  position: absolute;
  left: 5vw;
  bottom: clamp(86px, 15vh, 170px);
  z-index: 2;
  pointer-events: none;
}
/* one brutalist stack — all three lines in the same heavy display face */
.hero-h1 {
  margin: 0;
  font-family: var(--disp);
  font-weight: normal;
  color: var(--ink);
  line-height: .93;
  letter-spacing: -.045em;
}
.hero-h1 .hl {
  display: block;
  margin-left: -.045em;          /* optical: pull the ink flush with the lede + scroll line */
  padding-right: .08em;          /* ink overhang of the last glyph */
  font-size: clamp(56px, 9.6vw, 142px);   /* sized so "FÜR DAS ACHTSAME" fits */
  color: var(--ink);
}
.hl-b {
  margin-top: .04em;            /* room for the Ö diaeresis at this scale */
}

.hero-lede {
  font-family: var(--med-f);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.45;
  max-width: 44ch;
  margin: clamp(22px, 3.6vh, 36px) 0 0;
  color: var(--ink);
}

/* quiet instrument strip along the bottom edge: rule of the field + toggle */
.hero-foot {
  position: absolute;
  right: 5vw;
  bottom: 3.4vh;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  text-align: right;
}
.still-note { margin: 0; }
.still-note .note-touch { display: none; }
@media (hover: none) {
  .still-note .note-mouse { display: none; }
  .still-note .note-touch { display: inline; }
}

.sound-toggle {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color .4s var(--ease), color .4s var(--ease), background .4s var(--ease);
}
.sound-toggle:hover, .sound-toggle:focus-visible { border-color: var(--ink); }
.sound-toggle[aria-pressed="true"] {
  border-color: var(--terra);
  color: var(--terra);
}

/* breathing scroll line — the only scroll affordance, under the headline */
.scroll-line {
  position: absolute;
  left: 5vw;
  bottom: 3.4vh;
  z-index: 2;
  width: 1px;
  height: 54px;
  background: var(--ink);
  opacity: .45;
  transform-origin: top;
  animation: breathe 3s var(--ease) infinite alternate;
}
@keyframes breathe {
  from { transform: scaleY(.6); }
  to   { transform: scaleY(1); }
}

/* page-entry choreography */
[data-hl] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  transition-delay: var(--d, 0s);
}
body.loaded [data-hl] {
  opacity: 1;
  transform: none;
}

/* ============================ PLATES (sections) =========================== */
.plate {
  position: relative;
  padding: clamp(80px, 13vh, 180px) 0;   /* silence between worlds, tightened */
}
/* GEMS sits closer to the field-recordings plate that follows */
.plate-gems { padding-bottom: clamp(60px, 9vh, 130px); }
.plate-archiv { padding-top: clamp(60px, 9vh, 130px); }
.plate-inner {
  width: var(--wrap);
  margin: 0 auto;
}

/* chapter dividers — really bold ink bars that punctuate the worlds. Solid,
   square-edged, in the title-font colour and as tall as the plate titles. */
.chapter-rule {
  width: var(--wrap);
  height: clamp(38px, 5.4vw, 86px);
  margin: 0 auto;
  background: var(--ink);
}

/* scroll reveals */
[data-rv] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-rv].in {
  opacity: 1;
  transform: none;
}
/* split titles: words rise individually once the title is .in */
.plate-title[data-split] .w {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--wi) * 120ms + var(--d, 0s));
}
.plate-title.in .w {
  opacity: 1;
  transform: none;
}
/* character wave on hover (start.js toggles .wave) */
.plate-title .c {
  transition: transform .6s var(--ease-out);
  transition-delay: calc(var(--ci) * 30ms);
}
.plate-title.wave .c {
  transform: translateY(calc(sin(var(--ci) * .55) * -6px));
}

.fig-cap {
  margin-top: 14px;
  text-align: left;
}
.fig-cap::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--moss);
  vertical-align: middle;
  margin-right: 10px;
}

/* ------------------------- TAFEL I · KLANGARCHIV ------------------------- */
.plate-archiv .plate-title {
  font-size: clamp(44px, 7.4vw, 128px);
  max-width: 12ch;
  position: relative;
  z-index: 2;
  margin-bottom: -.34em;   /* the headline leans over the plates */
}
.archiv-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 28px);
  align-items: start;
}
.archiv-copy {
  grid-column: 1 / 4;
  position: sticky;
  top: 18vh;
  padding-top: clamp(60px, 12vh, 130px);
}
.archiv-copy .link { margin-top: 26px; }
/* four equal plates in a calm 2 × 2 block */
.archiv-photos {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 30px);
  align-items: start;
}
.ph { margin: 0; }
/* the whole plate is the link — image and caption both lead to the recording */
.ph-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.ph-link:focus-visible {
  outline: 2px solid var(--rc, var(--ink));
  outline-offset: 4px;
}
.ph-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  transform: scale(1.05);
  transition: transform 1.3s var(--ease-out), border-color .5s var(--ease);
}
.ph.in .ph-frame { transform: scale(1); }
/* zoom layer — same ease-in zoom as the klangarchiv page */
.ph-zoom {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform .9s cubic-bezier(.7, 0, .5, 1);
  will-change: transform;
}
.ph:hover .ph-zoom,
.ph:focus-within .ph-zoom { transform: scale(1.1); }
.ph-frame img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
  filter: sepia(.09) contrast(.98);
}
.ph .fig-cap { max-width: 100%; }
/* each sonic world carries its own earth tone */
.ph[data-r="bolivia"]  { --rc: #B29F23; }
.ph[data-r="colombia"] { --rc: #845053; }
.ph[data-r="berlin"]   { --rc: #6F8F73; }
.ph[data-r="betlem"]   { --rc: #7C97AF; }
.ph .fig-cap::before { background: var(--rc, var(--moss)); }
.ph .cap-link { color: var(--rc, var(--ink)); }
.ph .cap-link:hover, .ph .cap-link:focus-visible { color: var(--ink); }
.ph:hover .ph-frame,
.ph:focus-within .ph-frame { border-color: var(--rc, var(--line)); }

/* --------------------------- TAFEL II · GEMS ------------------------------ */
.plate-gems { overflow: clip; }
/* GEMS subtitle — make it carry the plate label loud and clear */
.gems-sub {
  margin: 0 0 18px;
  font-family: var(--med-f);
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: .22em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink);
}
.gems-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(22px, 3.6vh, 44px);   /* the chain figure tucks closer */
}
.gems-works {
  margin: 0;
  --player-h: clamp(150px, 19vh, 172px);
}
/* Reserve the player's height at the foot of the list so opening a track never
   changes the column height — the chain figure below stays fixed in place. The
   reserve collapses to zero exactly when an open player takes its place. */
.gems-works::after {
  content: "";
  display: block;
  height: calc(var(--player-h) + 1px);
}
.gems-works:has(.work-frame:not([hidden]))::after { height: 0; }
.gems-tl-head {
  margin: 0 0 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}
/* each work is a tracklist row that plays in place — lazy SoundCloud player */
.gems-works .work {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(14px, 1.8vh, 20px) 0;
  cursor: pointer;
  font-family: var(--body-f);
  text-align: left;
  color: var(--mut);
  transition: color .3s var(--ease);
}
.gems-idx {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--mut);
  transition: color .3s var(--ease);
}
.gems-works .w-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gems-works .w-title {
  font-family: var(--med-f);
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: -.012em;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.gems-works .w-loc {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mut);
}
.gems-works .tri {
  font-size: 1.1rem;
  color: var(--terra);
  transition: transform .45s var(--ease-out);
}
.gems-works .work.on .tri { transform: rotate(90deg); }
.gems-works .work:hover .w-title,
.gems-works .work:focus-visible .w-title,
.gems-works .work.on .w-title,
.gems-works .work:hover .gems-idx,
.gems-works .work.on .gems-idx { color: var(--terra); }
/* the player opens inline, directly beneath the track that was tapped. The
   classic SoundCloud player shows the cover art thumbnail on the left. */
.work-frame {
  height: var(--player-h);
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
/* stay fully collapsed until a track is tapped — the class rule above would
   otherwise override the browser's [hidden] { display:none } and leave a gap */
.work-frame[hidden] { display: none; }
.work-frame iframe {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  border: 0;
}
.fig-chain-wrap { margin: 0; }
#fig-chain {
  display: block;
  width: 100%;
  aspect-ratio: 920 / 235;
}

/* --------------------------- TAFEL III · APP ------------------------------ */
.app-chip {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--line);
  margin-bottom: clamp(18px, 2.6vh, 28px);
}
.app-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(30px, 5.5vw, 84px);
  align-items: center;
}
.fig-stave-wrap { margin: 0; }
/* one instrument: Nature Radio on top, intensity stave it drives below */
#fig-radio {
  display: block;
  width: 100%;
  aspect-ratio: 860 / 170;
}
#fig-stave {
  display: block;
  width: 100%;
  aspect-ratio: 860 / 250;
  margin-top: clamp(4px, 1vh, 14px);
}
.app-copy { padding-top: 0; }
.ctas {
  margin-top: clamp(26px, 4vh, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}

/* eight listening sessions — an interactive demo reel of the engine */
.demo {
  margin-top: clamp(54px, 9vh, 110px);
}
.demo-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 0 0 clamp(18px, 2.6vh, 28px);
}
.demo-head .demo-more {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.demo-head .demo-more:hover { color: var(--terra); border-color: var(--terra); }
.demo-reel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 22px);
}
.demo-cell {
  display: flex;
  flex-direction: column;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
}
/* the still */
.demo-figure {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.demo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(.98) saturate(.96);
  transform: scale(1.25);   /* pre-zoomed to ~80% of the still; hover adds on top */
  transform-origin: 50% 50%;
  transition: transform .9s var(--ease-out), filter .4s var(--ease);
}
.demo-cell:hover .demo-thumb,
.demo-cell:focus-visible .demo-thumb { transform: scale(1.33); filter: contrast(1) saturate(1); }
/* play affordance */
.demo-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  font-size: .8rem;
  padding-left: 3px;
  background: rgba(18, 18, 18, .34);
  opacity: 0;
  transform: scale(.84);
  transition: opacity .4s var(--ease), transform .4s var(--ease-out);
}
.demo-cell:hover .demo-play,
.demo-cell:focus-visible .demo-play { opacity: 1; transform: scale(1); }
/* caption */
.demo-body {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  padding: 11px 2px 0;
}
.demo-no {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--mut);
  padding-top: .15em;
}
.demo-title {
  font-family: var(--med-f);
  font-size: clamp(15px, 1.15vw, 17px);
  letter-spacing: -.01em;
  color: var(--ink);
  transition: color .35s var(--ease);
}
.demo-cell:hover .demo-title,
.demo-cell:focus-visible .demo-title { color: var(--terra); }
.demo-kind {
  grid-column: 2;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--mut);
}

/* YouTube lightbox */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw;
  background: rgba(18, 18, 18, .88);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.yt-modal.in { opacity: 1; }
.yt-box { position: relative; width: min(1040px, 92vw); aspect-ratio: 16 / 9; }
.yt-box iframe { width: 100%; height: 100%; border: 0; background: #000; }
.yt-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  background: none;
  border: 0;
  cursor: pointer;
}

/* ------------------------- TAFEL IV · SOUNDWALK --------------------------- */
.plate-walk { text-align: center; }
.plate-walk .plate-title { max-width: 16ch; margin-inline: auto; }
.plate-walk .plate-body { margin-inline: auto; }
.plate-walk .btn { margin-top: clamp(30px, 4.5vh, 46px); }
.fig-route-wrap {
  margin: 0 auto clamp(40px, 7vh, 80px);
  max-width: 760px;
}
.fig-route-wrap svg { display: block; width: 100%; height: auto; }
/* kept thicker for emphasis */
#route-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: 1;
}
.route-stop .core {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2.2;
}
.route-stop .ring {
  fill: none;
  stroke: var(--terra);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
/* the walking listener travels the route as it draws */
#route-walker {
  fill: var(--ink);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
/* listening arcs ))) bloom at each station — except STILLE, which stays silent */
.route-stop .ear {
  fill: none;
  stroke: var(--terra);
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity .7s var(--ease) .4s;
}
.route-stop .ear.e2 { transition-delay: .6s; }
.route-stop.hit .ear { opacity: .75; }
.route-stop.hit .ring { animation: ping 1.5s var(--ease-out) both; }
.route-stop text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  fill: var(--mut);
  opacity: 0;
  transition: opacity .8s var(--ease) .2s;
}
.route-stop.hit text { opacity: 1; }
.route-stop.hit .core { fill: var(--terra); stroke: var(--terra); }
@keyframes ping {
  0%   { opacity: .8; transform: scale(.4); }
  100% { opacity: 0;  transform: scale(2.6); }
}

/* ------------------------- TAFEL V · JUST NOISE --------------------------- */
.plate-noise { padding-bottom: clamp(70px, 11vh, 150px); }
/* one inverted slab — paper static on solid ink */
.noise-stage {
  position: relative;
  height: clamp(300px, 52vh, 560px);
  background: var(--ink);
  overflow: hidden;
}
#fig-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.noise-title {
  position: absolute;
  left: max(4vw, calc((100vw - var(--wrap)) / 2));
  bottom: clamp(18px, 4vh, 44px);
  margin: 0;
  font-family: var(--disp);
  font-weight: normal;
  font-size: clamp(60px, 11.5vw, 180px);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--paper);
  pointer-events: none;
  padding-right: .12em;   /* negative tracking pulls the box in — keep the final glyph's ink */
}
.noise-row {
  width: var(--wrap);
  margin: clamp(30px, 5vh, 54px) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px 40px;
}
.noise-row .plate-body { max-width: 34ch; }

/* --------------------------- SITE FOOTER --------------------------------- */
/* one balanced plate: studio statement + stone, the info paragraph, and a
   meta row carrying mail and copyright. Overrides the base page-home footer. */
body.page-home footer.site-footer {
  color: var(--ink);
  border-top: 0;
  margin: 0;
  padding: clamp(80px, 13vh, 170px) 0 calc(clamp(36px, 6vh, 64px) + env(safe-area-inset-bottom));
}
.footer-inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 90px);
}
/* studio words, stone and info text sit in one row with equal spacing between
   all three; align-items centres them on a shared baseline-ish midline */
.footer-statement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}
.close-words {
  font-family: var(--disp);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: .03em;
  text-align: left;
  color: var(--ink);
}
.close-stone {
  width: clamp(108px, 12vw, 168px);
  height: auto;
  mix-blend-mode: multiply;
}
.footer-info {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.4vh, 26px);
}
.footer-info .plate-body {
  font-size: clamp(14px, 1.5vw, 16.5px);
  max-width: none;   /* fill the row out to the site's right edge */
  text-align: left;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px 30px;
  padding-top: clamp(26px, 4.5vh, 44px);
}
.footer-mail {
  font-family: var(--med-f);
  font-size: clamp(17px, 1.9vw, 22px);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer-mail:hover, .footer-mail:focus-visible {
  color: var(--terra);
  border-color: var(--terra);
}
.footer-copy {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0;
}
@media (max-width: 760px) {
  .footer-inner { gap: clamp(36px, 6vh, 64px); }
  .footer-statement { gap: clamp(22px, 6vw, 40px); }
  .footer-info { flex-basis: 100%; }
}

/* ============================ RESPONSIVE ================================== */
@media (max-width: 1000px) {
  .archiv-grid { grid-template-columns: repeat(6, 1fr); }
  .archiv-copy {
    grid-column: 1 / 7;
    position: static;
    padding-top: 0;
    margin-bottom: clamp(26px, 5vh, 44px);
  }
  .plate-archiv .plate-title { margin-bottom: .2em; }
  .archiv-photos { grid-column: 1 / 7; }
  .gems-grid, .app-grid { grid-template-columns: 1fr; }
  .gems-works { text-align: left; }
  .app-copy { padding-top: 0; }
  .demo-reel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  /* hero becomes a flowing column — no absolute overlap on small screens */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 92px 5vw calc(9vh + env(safe-area-inset-bottom));
  }
  .hero-type {
    position: relative;
    left: auto;
    bottom: auto;
    margin-bottom: clamp(26px, 5vh, 48px);
  }
  .hero-foot {
    position: relative;
    right: auto;
    bottom: auto;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
  }
  .scroll-line { left: auto; right: 7vw; }
  .ph-b { margin-top: 8vh; }
  .noise-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .mono { font-size: .62rem; letter-spacing: .15em; }
  .archiv-grid { grid-template-columns: 1fr; }
  .archiv-photos { grid-column: auto; gap: 12px; }
  .hero-lede { max-width: 30ch; }
}

/* ========================= REDUCED MOTION ================================= */
@media (prefers-reduced-motion: reduce) {
  [data-hl], [data-rv],
  .plate-title[data-split] .w {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #chorus { opacity: 1; transition: none; }
  .ph-frame { transform: none; transition: none; }
  .ph-zoom { transition: none; }
  .ph:hover .ph-zoom, .ph:focus-within .ph-zoom { transform: none; }
  .scroll-line { animation: none; }
  .plate-title .c { transition: none; }
  .plate-title.wave .c { transform: none; }
  .route-stop .ring { animation: none !important; }
  .route-stop text { opacity: 1; transition: none; }
  .route-stop .core { fill: var(--paper) !important; stroke: var(--ink) !important; }
  .route-stop .ear { opacity: .75; transition: none; }
  #route-walker { opacity: 0 !important; }
  .demo-thumb { transition: none; }
  .demo-cell:hover .demo-thumb, .demo-cell:focus-visible .demo-thumb { transform: scale(1.25); }
  .yt-modal { transition: none; }
  body.page-home header,
  body.page-home .menu-toggle,
  body.page-home .lang-toggle { transition: opacity .5s var(--ease); }
}
