/* ============================================================
   SRVL — virtual-self-era Y2K / utopian-tech
   stark black void · white line art · pale cyan glow
   ============================================================ */

:root {
  --bg: #060407;
  --maroon: #1c0b12;
  --line: rgba(235, 238, 245, .22);
  --line-soft: rgba(235, 238, 245, .1);
  --ice: #eef0f6;
  --cyan: #b8ecff;
  --cyan-glow: rgba(150, 225, 255, .55);
  --dim: #7d7886;
  --ok: #9dffc4;
  --degrade: #ff5a1f;  /* degraded-register orange — corruption / "earned moments" only */
  --mono: "Share Tech Mono", monospace;
  --display: "Michroma", sans-serif;
  --jp: "Share Tech Mono", monospace; /* was Noto Sans JP — Japanese retired in favour of the transmission script */
}

/* ============ TRANSMISSION SCRIPT — invented glyph cipher ============
   Rendered by assets/ts-script.js from elements carrying [data-ts-text].
   Glyphs are 1em SVG squares; size via font-size, colour via `color`. */
.ts-glyph {
  width: 1em; height: 1em; flex: none;
  display: inline-block; vertical-align: -0.12em;
}
.ts-text {
  display: inline-flex; align-items: center;
  gap: 0.34em;          /* tracking between glyphs */
  line-height: 1;
  color: var(--dim);
}
/* block-level subtitles: keep centred + preserve surrounding margins */
.hero-jp.ts-text, .sec-jp.ts-text { display: flex; justify-content: center; padding-left: 0; }
.release-jp.ts-text { gap: 0.28em; }

/* Degraded register — the "error" state from the transmission specimen sheet
   (05 / REGISTER 02). Interference can touch ANY transmission-script glyph:
   main.js adds .glitching in random bursts (usually a few scattered glyphs,
   occasionally a full-line breakdown), then the signal reasserts — clean
   message, brief corruption, return to clean. */
.ts-text--degraded { color: var(--ice); }  /* brighter base for the footer line */
.ts-glyph.glitching {
  animation: ts-glitch .46s linear;
}

@keyframes ts-glitch {
  /* clean → bright chromatic breakdown (white core + white/cyan glow, orange
     & cyan misregistration ghosts, broken strokes, jitter) → clean.
     No colour at 0/100% so each element decays from and reasserts to its own
     base register (dim for subtitles, ice for the footer). */
  0%   { stroke-dasharray: 0;   transform: none; filter: none; }
  20%  { color: #fff; stroke-dasharray: 15 6; transform: translate(1.4px,-1px) rotate(-4deg);
         filter: drop-shadow(3px 2px 0 var(--degrade)) drop-shadow(-3px -2px 0 var(--cyan)) drop-shadow(0 0 5px rgba(255,255,255,.9)); }
  45%  { color: #fff; stroke-dasharray: 9 10; transform: translate(-1.6px,1.2px) rotate(4deg);
         filter: drop-shadow(-4px 2px 0 var(--degrade)) drop-shadow(3px -2px 0 var(--cyan)) drop-shadow(0 0 6px var(--cyan-glow)); }
  70%  { color: #fff; stroke-dasharray: 22 5; transform: translate(1px,.6px) rotate(-2deg);
         filter: drop-shadow(3px -2px 0 var(--degrade)) drop-shadow(-2px 3px 0 var(--cyan)) drop-shadow(0 0 5px rgba(255,255,255,.85)); }
  100% { stroke-dasharray: 0;   transform: none; filter: none; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, var(--maroon) 0%, transparent 65%),
    radial-gradient(ellipse 55% 35% at 50% 100%, #120810 0%, transparent 65%);
  color: var(--ice);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: var(--bg); }
a { color: var(--ice); text-decoration: none; }

/* ============ BOOT SCREEN ============ */
#boot {
  position: fixed; inset: 0; z-index: 200;
  background: #020203;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 8vw;
  transition: opacity .6s, visibility .6s;
}
#boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
#boot-log {
  font-family: var(--mono); font-size: 14px; letter-spacing: .08em;
  color: var(--ice); white-space: pre-wrap;
  min-height: 12em; text-shadow: 0 0 12px var(--cyan-glow);
  text-align: left;
}
.boot-bar {
  width: min(360px, 70vw); height: 3px;
  background: var(--line-soft); margin-top: 1.5em;
}
.boot-bar-fill {
  height: 100%; width: 0%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width .15s;
}

/* ============ CRT OVERLAYS ============ */
.scanlines {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.vignette {
  position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 58%, rgba(0,0,0,.5) 100%);
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line-soft);
}
/* backdrop blur on ::before so backdrop-filter doesn't trap fixed children */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(6,4,7,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-logo {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--display); font-size: 16px;
  letter-spacing: .35em; color: var(--ice);
  z-index: 2;
}
.nav-logo .cross { color: var(--cyan); font-size: 12px; }
.nav-jp {
  font-family: var(--jp); font-weight: 300;
  font-size: 11px; color: var(--dim); letter-spacing: .3em;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 12px; letter-spacing: .3em; color: var(--dim);
  transition: color .2s, text-shadow .2s;
  padding: 4px 0;
}
.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan-glow);
}
/* persistent listen CTA — compact version of .btn for the nav bar */
.nav-cta {
  font-size: 11px; letter-spacing: .25em;
  padding: 8px 16px; z-index: 2;
}

.nav-burger {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ice); font-size: 22px; line-height: 1;
  padding: 4px 14px; cursor: pointer; z-index: 2;
  transition: border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:hover { border-color: var(--cyan); color: var(--cyan); }

/* mobile overlay behind the nav drawer */
.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 88;
  background: rgba(6,4,7,.7); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
}
.nav-overlay.open { display: block; }
.nav-overlay.visible { opacity: 1; }

/* ============ SHARED: corners & frames ============ */
.corner {
  position: absolute; width: 18px; height: 18px; pointer-events: none;
}
.corner::before, .corner::after { content: ""; position: absolute; background: var(--ice); }
.corner::before { width: 100%; height: 1px; }
.corner::after { width: 1px; height: 100%; }
.c-tl { top: 0; left: 0; }
.c-tr { top: 0; right: 0; transform: scaleX(-1); }
.c-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.c-br { bottom: 0; right: 0; transform: scale(-1); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 20px 70px;
  overflow: hidden;
}

/* canvas fills entire hero background */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.hero-deco {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  width: min(680px, 86vw);
  font-size: 11px; letter-spacing: .35em; color: var(--dim);
  white-space: nowrap; z-index: 1;
}
.hero-deco .rule { flex: 1; height: 1px; background: var(--line-soft); }
.hero-deco span:first-child, .hero-deco span:last-child { color: var(--cyan); font-size: 10px; }
.deco-t { top: 92px; }
.deco-b { bottom: 34px; }

.edge-mark {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--jp); font-weight: 300; font-size: 11px;
  color: var(--dim); letter-spacing: .4em; line-height: 2.1;
  writing-mode: vertical-rl; z-index: 1;
}
.em-l { left: 26px; }
.em-r { right: 26px; }

.hero-inner { position: relative; z-index: 1; }

.hero-jp {
  font-family: var(--jp); font-weight: 300;
  font-size: 13px; letter-spacing: .55em; color: var(--dim);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(42px, 11vw, 110px);
  letter-spacing: .22em; line-height: 1;
  margin: 0 0 14px; padding-left: .22em;
  color: var(--ice);
  text-shadow:
    0 0 8px rgba(238,240,246,.45),
    0 0 38px var(--cyan-glow);
}
.tdot { color: var(--cyan); font-size: .45em; vertical-align: .35em; }

.hero-sub {
  font-size: clamp(10px, 2.2vw, 14px); letter-spacing: .5em;
  color: var(--dim); margin-bottom: 26px;
}

.hero-meta {
  display: flex; gap: 16px; justify-content: center; align-items: center;
  font-size: 11px; letter-spacing: .3em; color: var(--dim);
  margin-bottom: 38px; flex-wrap: wrap;
}
.hero-meta .sep { color: var(--cyan); font-size: 9px; }

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: .26em;
  padding: 13px 28px; cursor: pointer;
  color: var(--ice);
  border: 1px solid var(--line);
  background: rgba(238,240,246,.02);
  transition: border-color .2s, box-shadow .25s, color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
  display: inline-block;
}
.btn:hover {
  border-color: var(--cyan); color: var(--cyan);
  background: rgba(150,225,255,.05);
  box-shadow: 0 0 22px rgba(150,225,255,.25), inset 0 0 18px rgba(150,225,255,.06);
  text-shadow: 0 0 10px var(--cyan-glow);
}
.btn:active { transform: translateY(1px); }

/* ============ TICKER ============ */
.ticker {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden; white-space: nowrap; padding: 9px 0;
}
.ticker-track { display: inline-flex; animation: tick 30s linear infinite; }
.ticker-track span {
  font-size: 12px; letter-spacing: .3em; color: var(--dim);
  font-family: var(--jp); font-weight: 300; padding-right: 20px;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ SIGNAL BANDS — full-bleed machine output between sections ====
   The site's "imagery": transmission script at large scale, drifting slowly.
   Glyphs are .ts-text so the interference driver corrupts them too. */
.signal-band {
  overflow: hidden; white-space: nowrap;
  margin: 100px 0 -30px;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.signal-band-track { display: inline-flex; animation: tick 140s linear infinite; }
.signal-band-track .ts-text {
  font-size: clamp(34px, 5vw, 58px);
  gap: .5em; padding-right: .5em;
  color: var(--dim); opacity: .38;
}

/* ============ SECTIONS ============ */
.section {
  max-width: 920px; margin: 0 auto; padding: 110px 24px 20px;
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s, transform .8s;
}
.section.vis { opacity: 1; transform: none; }

.section-head { text-align: center; margin-bottom: 52px; }
.sec-kicker { font-size: 11px; letter-spacing: .6em; color: var(--cyan); padding-left: .6em; }
.sec-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 5vw, 38px); letter-spacing: .4em; padding-left: .4em;
  margin: 10px 0 6px;
  text-shadow: 0 0 24px rgba(150,225,255,.25);
}
.sec-jp {
  font-family: var(--jp); font-weight: 300;
  font-size: 12px; letter-spacing: .45em; color: var(--dim); padding-left: .45em;
}

/* ============ MUSIC — frame ============ */
.frame {
  position: relative; border: 1px solid var(--line-soft);
  padding: 26px; background: rgba(238,240,246,.015);
}
.frame-label {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 0 16px;
  font-size: 11px; letter-spacing: .4em; color: var(--cyan);
}
.frame-body { min-height: 160px; display: grid; place-items: center; }
.frame-body iframe { width: 100%; border: 0; display: block; }
.frame-placeholder {
  text-align: center; color: var(--dim);
  font-family: var(--jp); font-weight: 300;
  letter-spacing: .35em; font-size: 14px; line-height: 2.4;
}

/* video embed */
.frame-video { min-height: unset; display: block; }
.frame-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* ============ FEATURED RELEASE — latest transmission as second hero ============ */
.feature {
  display: grid; grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 48px; align-items: center;
  margin-bottom: 40px;
}
.feature-art { position: relative; display: block; padding: 14px; }
.feature-art img {
  display: block; width: 100%;
  border: 1px solid var(--line-soft);
  filter: saturate(.9);
  box-shadow: 0 0 70px rgba(150,225,255,.09);
  transition: filter .3s, box-shadow .3s;
}
.feature:hover .feature-art img {
  filter: saturate(1.05);
  box-shadow: 0 0 90px rgba(150,225,255,.18);
}
.feature-info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.feature-no { font-size: 11px; letter-spacing: .5em; color: var(--cyan); }
.feature-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 3.6vw, 40px); letter-spacing: .1em; line-height: 1.25;
  color: var(--ice);
  text-shadow: 0 0 30px rgba(150,225,255,.2);
  transition: color .2s, text-shadow .2s;
}
.feature:hover .feature-title { color: var(--cyan); text-shadow: 0 0 18px var(--cyan-glow); }
.feature-jp { font-size: 12px; color: var(--dim); }
.feature-specs {
  font-family: var(--jp); font-weight: 300;
  font-size: 12px; letter-spacing: .18em; line-height: 2.1;
  color: var(--dim);
}
.feature-listen { margin-top: 4px; }
.feature:hover .feature-listen {
  border-color: var(--cyan); color: var(--cyan);
  background: rgba(150,225,255,.05);
  box-shadow: 0 0 22px rgba(150,225,255,.25);
}

/* ============ RELEASES ============ */
.release-list { width: 100%; }
.release {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px; align-items: center;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s;
}
.release:last-child { border-bottom: none; }
.release:hover { background: rgba(150,225,255,.04); }

.release-art {
  display: block; width: 72px; height: 72px; overflow: hidden;
  border: 1px solid var(--line-soft); flex-shrink: 0;
}
.release-art img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85);
  transition: filter .25s, transform .3s;
}
.release:hover .release-art img { filter: saturate(1.1); transform: scale(1.05); }
.release-art-fallback { mix-blend-mode: screen; }

.release-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.release-no { font-size: 10px; letter-spacing: .4em; color: var(--dim); }
.release-title {
  font-family: var(--display); font-size: clamp(12px, 2.4vw, 17px);
  letter-spacing: .18em; color: var(--ice);
  transition: color .2s, text-shadow .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.release:hover .release-title { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }
.release-jp {
  font-family: var(--jp); font-weight: 300;
  font-size: 11px; letter-spacing: .35em; color: var(--dim);
}

.release-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.release-date { font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.release-listen {
  font-size: 11px; letter-spacing: .3em;
  padding: 6px 14px; border: 1px solid var(--line);
  color: var(--ice); white-space: nowrap;
  transition: border-color .2s, color .2s, box-shadow .25s;
}
.release:hover .release-listen {
  border-color: var(--cyan); color: var(--cyan);
  box-shadow: 0 0 16px rgba(150,225,255,.2);
}

.stream-links {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px; justify-content: center;
}

/* ============ UNIT ============ */
.unit-grid {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 40px; align-items: center;
}
.unit-visual { position: relative; }
.unit-logo {
  display: block; width: 100%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, black 52%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 72% at center, black 52%, transparent 76%);
  filter: drop-shadow(0 0 20px rgba(150,225,255,.15));
}

/* diagnostic scan stage */
.scan-stage {
  position: relative; padding: 14px; overflow: hidden;
}
.scan-stage .unit-logo { position: relative; z-index: 2; }

.scan-grid {
  position: absolute; inset: 14px; z-index: 1;
  background-image:
    linear-gradient(rgba(184,236,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,236,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

/* RGB-split glitch clones — flicker in briefly */
.scan-stage .scan-img-r, .scan-stage .scan-img-c {
  position: absolute; top: 14px; left: 14px; width: calc(100% - 28px); z-index: 2;
  opacity: 0; pointer-events: none;
}
.scan-img-r { filter: drop-shadow(0 0 1px red) hue-rotate(140deg); animation: glitchclone-r 7s steps(1) infinite; }
.scan-img-c { filter: drop-shadow(0 0 1px cyan); animation: glitchclone-c 7s steps(1) infinite 3.5s; }
@keyframes glitchclone-r {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: none; }
  92% { opacity: .7; transform: translate(-4px, 1px); clip-path: inset(15% 0 60% 0); }
  94% { opacity: .7; transform: translate(3px, -1px); clip-path: inset(65% 0 10% 0); }
  96% { opacity: 0; }
}
@keyframes glitchclone-c {
  0%, 90%, 100% { opacity: 0; transform: none; clip-path: none; }
  91% { opacity: .6; transform: translate(4px, -2px); clip-path: inset(40% 0 35% 0); }
  93% { opacity: .6; transform: translate(-3px, 2px); clip-path: inset(5% 0 75% 0); }
  95% { opacity: 0; }
}

/* sweeping scanline */
.scanline {
  position: absolute; left: 14px; right: 14px; height: 26px; z-index: 3;
  background: linear-gradient(180deg,
    transparent 0%, rgba(184,236,255,.12) 45%,
    rgba(184,236,255,.5) 50%, rgba(184,236,255,.12) 55%, transparent 100%);
  animation: scansweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scansweep {
  0%, 100% { top: 4%; opacity: 0; }
  8% { opacity: 1; }
  46% { top: 88%; opacity: 1; }
  54% { opacity: 0; }
  60% { top: 88%; opacity: 0; }
  68% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 4%; opacity: 0; }
}

/* crosshair callout tags */
.scan-tag {
  position: absolute; z-index: 4;
  font-size: 9px; letter-spacing: .2em; color: var(--cyan);
  font-family: var(--jp); font-weight: 300;
  white-space: nowrap; opacity: 0;
  animation: tagblink 9s infinite;
}
.scan-tag i {
  display: inline-block; width: 7px; height: 7px; margin-right: 7px;
  border: 1px solid var(--cyan); transform: rotate(45deg);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.tag-1 { top: 16%; left: 2%; animation-delay: 0s; }
.tag-2 { top: 46%; right: 1%; animation-delay: 3s; }
.tag-3 { bottom: 17%; left: 6%; animation-delay: 6s; }
@keyframes tagblink {
  0%, 100% { opacity: 0; }
  4%, 30% { opacity: 1; }
  34% { opacity: 0; }
}

.scan-readout {
  text-align: center; margin-top: 6px;
  font-size: 10px; letter-spacing: .4em; color: var(--dim);
}
.scan-readout span { color: var(--cyan); }

.terminal {
  background: rgba(2,2,4,.7); border: 1px solid var(--line-soft);
  padding: 24px 26px; font-size: 14px;
  box-shadow: inset 0 0 50px rgba(150,225,255,.03);
}
.terminal p { margin: 2px 0; }
.prompt { color: var(--cyan); }
.ok { color: var(--ok); text-shadow: 0 0 10px rgba(157,255,196,.5); }
.unit-bio {
  color: var(--dim); margin: 14px 0 !important;
  font-style: italic; line-height: 2;
}

.blink-caret::after {
  content: "▮"; color: var(--cyan);
  animation: blink 1s steps(1) infinite; margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ SIGNAL — deployments + follow terminal ============ */
.signal-terminal { max-width: 620px; margin: 0 auto; }
.signal-follow { margin-top: 18px !important; }
.signal-terminal a { color: var(--cyan); transition: text-shadow .2s; }
.signal-terminal a:hover { text-shadow: 0 0 12px var(--cyan-glow); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.socials a {
  padding: 10px 18px; border: 1px solid var(--line-soft); color: var(--dim);
  font-size: 11px; letter-spacing: .3em;
  transition: all .2s; min-width: 44px; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.socials a:hover {
  border-color: var(--cyan); color: var(--cyan);
  box-shadow: 0 0 16px rgba(150,225,255,.2);
}

/* ============ FOOTER ============ */
.footer {
  margin-top: 110px; padding: 44px 24px 60px;
  padding-bottom: max(54px, env(safe-area-inset-bottom, 0px) + 40px);
  text-align: center;
  color: var(--dim); font-size: 12px; letter-spacing: .25em;
}
.footer-deco { color: var(--cyan); font-size: 11px; letter-spacing: .2em; margin-bottom: 18px; opacity: .7; }
.footer-socials { margin-bottom: 22px; }
.footer-tiny {
  margin-top: 10px; opacity: .5;
  font-family: var(--jp); font-weight: 300; letter-spacing: .3em; font-size: 11px;
}
/* rendered as cipher glyphs: let the long line wrap + centre, and give the
   tiny glyphs a touch more size than the old text so strokes stay legible */
.footer-tiny.ts-text { flex-wrap: wrap; justify-content: center; gap: .3em .28em; font-size: 13px; }

/* ============ RESPONSIVE — tablet ============ */
@media (max-width: 820px) {
  .unit-grid { grid-template-columns: 1fr; text-align: center; }
  .unit-visual { max-width: 220px; margin: 0 auto; }
  .edge-mark { display: none; }
}

/* ============ RESPONSIVE — mobile ============ */
@media (max-width: 640px) {
  body { font-size: 15px; }

  /* nav: full-screen drawer */
  .nav { padding: 12px 18px; }
  .nav-jp { display: none; }
  .nav-cta { margin-left: auto; margin-right: 12px; padding: 7px 12px; font-size: 10px; }
  .nav-burger { display: flex; align-items: center; justify-content: center; z-index: 95; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(280px, 80vw);
    flex-direction: column; justify-content: center;
    gap: 6px; align-items: center;
    background: rgba(6,4,7,.98);
    border-left: 1px solid var(--line-soft);
    padding: 60px 30px 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 89;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 15px; letter-spacing: .35em;
    padding: 12px 0; width: 100%; text-align: center;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: none; }

  /* hero */
  .hero { padding: 90px 16px 60px; }
  .deco-t { top: 72px; width: 88vw; font-size: 10px; }
  .deco-b { bottom: 20px; width: 88vw; font-size: 10px; }
  .hero-jp { font-size: 11px; letter-spacing: .3em; margin-bottom: 18px; }
  .hero-meta { gap: 10px; margin-bottom: 28px; }
  .btn { padding: 12px 20px; font-size: 12px; letter-spacing: .18em; }

  /* sections */
  .section { padding: 80px 18px 20px; }
  .section-head { margin-bottom: 36px; }

  /* featured release stacks: art on top, info centred beneath */
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature-art { max-width: 320px; margin: 0 auto; }
  .feature-info { align-items: center; text-align: center; }
  .feature-specs { text-align: left; }

  /* releases */
  .release {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 14px;
  }
  .release-art { width: 56px; height: 56px; grid-row: 1 / 3; }
  .release-main { grid-column: 2; }
  .release-side {
    grid-column: 2; flex-direction: row;
    align-items: center; justify-content: space-between;
    gap: 8px;
  }
  .release-listen { padding: 5px 10px; font-size: 10px; }

  /* stream links */
  .stream-links { gap: 8px; }
  .stream-links .btn { flex: 1 1 calc(50% - 8px); text-align: center; }

  /* unit */
  .unit-grid { gap: 24px; }
  .unit-visual { max-width: 180px; }
  .terminal { padding: 18px 18px; font-size: 12px; }

  /* signal terminal */
  .socials a { font-size: 11px; padding: 10px 12px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 36px; }
  .stream-links .btn { flex: 1 1 100%; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  #hero-canvas { display: none; }
}
