:root {
  --accent: #4fa3ff;
  --accent-dim: rgba(79, 163, 255, 0.55);
  --ink: #eaf2ff;
  --bg: #05060a;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --display: 'Syncopate', var(--mono);
  --amp: 0;
}

* { box-sizing: border-box;
webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently */
}

html { background: var(--bg); }

/* easter egg: once the sky is clear, the default light-blue accent all but
   disappears against a bright sky (light-on-light) -- darken it site-wide,
   then hand the popup card (dark background, always) its own bright accent
   back so its own text doesn't go dark-on-dark */
html.sky-clear {
  --accent: #163a68;
  --accent-dim: rgba(22, 58, 104, 0.75);
}

html.sky-clear .terminal {
  --accent: #4fa3ff;
  --accent-dim: rgba(79, 163, 255, 0.55);
}

body {
  margin: 0;
  padding: 0;
  /* deliberately no background here -- body's own background paints *after*
     negative z-index descendants (see #sky-video), so it was sitting on top of
     the sky video no matter what. html's background above already propagates
     to the canvas itself, which paints beneath everything, negative z-index
     included -- that's the layer we actually want as the fallback. */
  color: var(--ink);
  font-family: var(--mono);
  cursor: default;
}

::selection { background: var(--accent); color: #000; }

/* ---------- page loader (same glitch treatment as the demo page's loader) ---------- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#page-loader-logo {
  width: 160px;
  height: auto;
  animation: page-loader-glitch 1.65s infinite steps(2, end);
  transform-origin: center center;
}

@keyframes page-loader-glitch {
  0% { transform: translate3d(0, 0, 0) scale(1); filter: none; clip-path: inset(0 0 0 0); opacity: 1; }
  8% { transform: translate3d(-4px, 1px, 0) scale(1.02); filter: contrast(1.8) brightness(1.08) drop-shadow(-3px 0 rgba(255, 70, 70, 0.5)); clip-path: inset(8% 0 68% 0); opacity: 0.92; }
  12% { transform: translate3d(4px, -1px, 0) scale(0.992); filter: contrast(1.95) brightness(1.1) drop-shadow(3px 0 rgba(90, 170, 255, 0.48)); clip-path: inset(58% 0 12% 0); opacity: 0.98; }
  18% { transform: translate3d(-2px, 0, 0) scale(1.01); filter: contrast(1.35) brightness(1.04) drop-shadow(-2px 0 rgba(255, 90, 90, 0.22)) drop-shadow(2px 0 rgba(90, 170, 255, 0.18)); clip-path: inset(22% 0 46% 0); }
  24% { transform: translate3d(0, 0, 0) scale(1); filter: none; clip-path: inset(0 0 0 0); opacity: 1; }
  62% { transform: translate3d(0, 0, 0) scale(1); filter: none; clip-path: inset(0 0 0 0); opacity: 1; }
  70% { transform: translate3d(3px, 0, 0) scale(1.015); filter: contrast(1.7) brightness(1.06) drop-shadow(2px 0 rgba(90, 170, 255, 0.35)); clip-path: inset(70% 0 6% 0); opacity: 0.95; }
  76% { transform: translate3d(-5px, 1px, 0) scale(0.99); filter: contrast(2) brightness(1.12) drop-shadow(-4px 0 rgba(255, 70, 70, 0.4)); clip-path: inset(10% 0 74% 0); opacity: 0.9; }
  84% { transform: translate3d(2px, -1px, 0) scale(1.008); filter: contrast(1.25) brightness(1.03); clip-path: inset(36% 0 28% 0); opacity: 0.97; }
  100% { transform: translate3d(0, 0, 0) scale(1); filter: none; clip-path: inset(0 0 0 0); opacity: 1; }
}

/* easter egg: real sky footage, full-screen, behind the WebGL canvas -- only
   visible where the storm shader tears transparent holes in itself */
#sky-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  /* shows through the same holes as the video itself until its first frame has
     decoded -- without this, a hole opening before that lands on the page's
     plain black background instead of anything sky-like */
  background: linear-gradient(160deg, #2e4a72 0%, #6f9bd6 55%, #cfe3f5 100%);
}

#container {
  position: fixed;
  inset: 0;
  touch-action: none;
  z-index: 0;
}

#container:before{
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 2;
  top: 0px;
  left: 0px;
  content: "";
  background-size: 3.5px;
  background-image: url(https://latitude-one.com/static/img/textures/back_dots.png);
  mix-blend-mode: overlay;
  transition: width 0.5s, opacity 0.5s;
  opacity: 0.4;
}

.sky-clear #container:before{
  opacity:0.2;
}

#rain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

#lightning {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

#flash {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: #cfe0ff;
  opacity: 0;
}

#flash.strike {
  transition: opacity 70ms ease-out;
  opacity: 0.55;
}

#container.shake {
  animation: storm-shake 260ms ease-in-out;
}

@keyframes storm-shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 3px); }
  40% { transform: translate(5px, -4px); }
  60% { transform: translate(-4px, -2px); }
  80% { transform: translate(3px, 3px); }
  100% { transform: translate(0, 0); }
}

#ripples {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border: 1px solid rgba(210, 228, 255, 0.8);
  border-radius: 50%;
  animation: ripple-grow 700ms ease-out forwards;
}

@keyframes ripple-grow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(9); opacity: 0; }
}

/* film grain + scanlines, purely decorative, sit above the shader */
#grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain-shift 1.4s steps(2) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 1%); }
  100% { transform: translate(1%, -2%); }
}

#scanlines {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0px,
    rgba(0, 0, 0, 0.16) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* ---------- HUD ---------- */
#hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  text-transform: uppercase;
}

/* language switch, top-right -- its own row (not .hud-block's column) since
   it's just two short buttons side by side */
#lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--accent-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px;
  transition: color 0.25s ease;
}

.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--accent); font-weight: 700; }

.hud-block {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
}

/* row instead of .hud-block's default column -- stacking the wide hint chip
   directly under the tiny logo icon read as lopsided, side by side (like
   #sound-toggle's own icon+label) balances much better */
.hud-top-left { top: 0; left: 0; flex-direction: row; align-items: center; gap: 12px; }

.brand-logo {
  height: 26px;
  width: auto;
  /* .hud-block is a column flexbox with no align-items set, so it defaults to
     stretch -- since .logo-hint (wider than the logo) joined it as a sibling,
     the logo was being stretched horizontally to match that width instead of
     keeping its own aspect ratio */
  align-self: flex-start;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px var(--accent-dim));
  transition: filter 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
  cursor: pointer;
  /* a faint, slow breathing glow -- just enough to feel "alive" and worth a
     click, without giving away that it's the easter egg */
  animation: brand-logo-breathe 3.4s ease-in-out infinite;
}

@keyframes brand-logo-breathe {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-dim)); opacity: 0.9; }
  50% { filter: drop-shadow(0 0 13px var(--accent)); opacity: 1; }
}

.brand-logo.glitching {
  filter: drop-shadow(0 0 8px var(--accent-dim)) hue-rotate(50deg) saturate(4);
  transform: translate(-3px, 1px);
}

/* punchy feedback on every single click, so it's obviously interactive even
   before the 3rd/5th click thresholds do anything */
.brand-logo.pulse {
  animation: brand-logo-pulse 0.35s ease-out;
}

@keyframes brand-logo-pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 8px var(--accent-dim)) brightness(1); }
  30% { transform: scale(1.4); filter: drop-shadow(0 0 18px var(--accent)) brightness(1.7); }
  100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--accent-dim)) brightness(1); }
}

/* easter egg build-up: kicks in at the 3rd click, holds until the 5th (or resets) */
.brand-logo.bugging {
  animation: brand-logo-bug 0.35s steps(2, end) infinite;
}

@keyframes brand-logo-bug {
  0% { filter: drop-shadow(0 0 8px var(--accent-dim)); transform: translate(0, 0); }
  20% { filter: drop-shadow(0 0 10px var(--accent)) hue-rotate(60deg) saturate(4); transform: translate(-3px, 1px); }
  40% { filter: drop-shadow(0 0 10px var(--accent)) contrast(1.8); transform: translate(2px, -1px); }
  60% { filter: drop-shadow(0 0 10px var(--accent)) hue-rotate(-40deg) saturate(3); transform: translate(-2px, 0); }
  80% { filter: drop-shadow(0 0 8px var(--accent-dim)); transform: translate(1px, 1px); }
  100% { filter: drop-shadow(0 0 8px var(--accent-dim)); transform: translate(0, 0); }
}

#sound-toggle {
  position: fixed;
  z-index: 10;
  bottom: 0;
  right: 0;
  pointer-events: auto;
  background: transparent;
  border: 1px solid var(--accent-dim);
  color: var(--accent-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  margin: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

#sound-toggle:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* easter egg: once the storm has parted, a single click on the logo is the
   way back -- this just explains that, faded in only while the sky is clear.
   given the same bordered/blurred "chip" treatment as #sound-toggle instead
   of floating raw text -- its own dark backdrop reads on any patch of sky,
   bright or dark, and it looks like a deliberate piece of UI instead of a
   stray label. */
.logo-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(5, 8, 16, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  /* stays inert (and out of the way of clicks) while hidden -- only clickable
     once it's actually visible, see html.sky-clear .logo-hint below */
  pointer-events: none;
}

.logo-hint-icon {
  display: inline-block;
  animation: logo-hint-nudge 2.6s ease-in-out infinite;
}

@keyframes logo-hint-nudge {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-30deg); }
}

html.sky-clear .logo-hint {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  cursor: pointer;
}

#sound-toggle.on #sound-icon { color: var(--accent); animation: pulse 1.6s ease-in-out infinite; }

#sound-toggle.electrified {
  animation: electrified-edges 1.6s ease-out;
}

@keyframes electrified-edges {
  0% { border-color: #fff; box-shadow: 0 0 5px 1px var(--accent), 0 0 16px 4px var(--accent); }
  8% { border-color: var(--accent-dim); box-shadow: none; }
  16% { border-color: #fff; box-shadow: 0 0 6px 2px var(--accent), 0 0 20px 5px var(--accent); }
  25% { border-color: var(--accent-dim); box-shadow: none; }
  38% { border-color: #fff; box-shadow: 0 0 4px 1px var(--accent), 0 0 12px 3px var(--accent-dim); }
  50% { border-color: var(--accent-dim); box-shadow: none; }
  65% { border-color: #fff; box-shadow: 0 0 3px 1px var(--accent-dim); }
  100% { border-color: var(--accent-dim); box-shadow: none; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* ---------- content ---------- */
#content {
  position: relative;
  z-index: 5;
}

.panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8vw;
  text-align: center;
}

.hero { gap: 0; position: relative; }

/* the label mark -- a downward equilateral triangle, sitting behind the hero
   content. an SVG polygon instead of a clip-path div -- clip-path has no
   equivalent of stroke-linejoin, so there's no way to round a polygon's
   corners with it, only with an actual stroked shape. */
.brand-triangle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(65vw, 620px);
  aspect-ratio: 1 / 0.866;
  opacity: 0.4;
  overflow: visible;
  pointer-events: none;
  z-index: -10;
}

.brand-triangle polygon {
  fill: #000;
  /* the "plus ou moins gras" knob -- bump this up/down to test weights.
     non-scaling-stroke keeps it a constant physical thickness regardless of
     how big the triangle itself is scaled (min(65vw, 620px) above) */
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.glitch-title {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  margin: 0;
  color: var(--ink);
  text-shadow:
    0 0 calc(36px + var(--amp) * 70px) var(--accent-dim),
    0 0 calc(90px + var(--amp) * 160px) rgba(79, 163, 255, 0.25);
  white-space: nowrap;
}

.subtitle {
  margin-top: 1.6em;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  color: var(--accent);
  opacity: 0.85;
}

/* minimal, terminal-style countdown to release -- sits under "we keep on
   dancing", bigger than any other HUD text on the page so it reads as its
   own beat, not a footnote. tabular digits so the clock doesn't jitter in
   width as it ticks down */
.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.countdown-label {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent-dim);
}

.countdown-clock {
  display: flex;
  gap: clamp(0.5em, 1.5vw, 1.1em);
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-dim), 0 0 40px rgba(79, 163, 255, 0.2);
}

.countdown-seg {
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
}

.countdown-seg span {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
}

.countdown-seg b {
  margin-left: 0.1em;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--accent-dim);
}

.countdown-out {
  font-family: var(--display);
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-dim), 0 0 40px rgba(79, 163, 255, 0.2);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  letter-spacing: 0.1em;
}

/* easter egg: under a clear sky the darkened site-wide --accent (see the
   html.sky-clear rule near the top) reads as near-invisible navy against
   bright sky footage -- pin the countdown to plain white instead, same
   treatment as .logo-hint gets for the same reason */
html.sky-clear .countdown-clock,
html.sky-clear .countdown-out {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.45), 0 0 40px rgba(255, 255, 255, 0.15);
}

html.sky-clear .countdown-label {
  color: rgba(255, 255, 255, 0.7);
}

.sound-hint {
  margin-top: 0.9em;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: white;
}

.scroll-cue {
  position: absolute;
  bottom: 7vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-dim);
}

.scroll-cue-arrow {
  font-size: 27px;
  line-height: 1;
  color: var(--accent);
  animation: cue-bounce 1.3s ease-in-out infinite;
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ---------- scroll-pinned lyrics ---------- */
.lyrics-scroll {
  position: relative;
  height: 280vh;
}

.lyrics-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10vw;
}

.lyrics-text {
  max-width: 980px;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.55;
  font-weight: 500;
  text-align: center;
}

.lyrics-text .word {
  display: inline-block;
  margin: 0 0.08em;
  color: var(--ink);
  opacity: 0.14;
  filter: blur(5px);
  transition: opacity 0.5s ease, filter 0.5s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.lyrics-text .word.seen {
  opacity: 1;
  filter: blur(0);
}

.lyrics-text .word.current {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-dim);
}

.sky-clear .word.current {
  color:white !important;
}

.finale {
  gap: 3em;
  padding-bottom: 10vh;
}

.lyric.big {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.6vw, 3rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 700;
}

/* ---------- terminal ---------- */
.terminal {
  width: min(560px, 90vw);
  border: 1px solid var(--accent-dim);
  background: rgba(10, 14, 24, 0.55);
  backdrop-filter: blur(6px);
  padding: 20px 24px;
  text-align: left;
}

/* easter egg: as long as the sky is clear, the reward box gets a slow, ongoing
   glow -- not just a one-off flash -- so whenever you actually look at the
   page, it's obvious this box is the thing to look at, not a status line next
   to the social links. kept in the site's own ice-blue/white -- any other hue
   blurred out over a blue sky just read as a muddy smudge. */
html.sky-clear .terminal {
  border-color: var(--accent);
  animation: terminal-glow-idle 3.4s ease-in-out infinite;
}

@keyframes terminal-glow-idle {
  0%, 100% { box-shadow: 0 0 20px 1px rgba(234, 242, 255, 0.3), 0 0 42px 6px var(--accent-dim); }
  50% { box-shadow: 0 0 30px 3px rgba(234, 242, 255, 0.5), 0 0 60px 10px var(--accent-dim); }
}

/* draws the eye here the moment the page auto-scrolls down to it, so the box
   that just changed doesn't look like it changed on its own -- transform/
   filter instead of box-shadow so it layers on top of the idle glow above
   instead of fighting it for the same property */
.terminal.highlight {
  animation: terminal-punch 1.6s ease-out;
}

@keyframes terminal-punch {
  0% { transform: scale(1); filter: brightness(1); }
  8% { transform: scale(1.045); filter: brightness(1.7); }
  22% { transform: scale(0.99); filter: brightness(0.95); }
  36% { transform: scale(1.025); filter: brightness(1.45); }
  55% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1); filter: brightness(1); }
}

.terminal-head {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent-dim);
  margin-bottom: 14px;
}

.terminal-privacy-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
  opacity: 0.7;
  text-decoration: underline;
}
.terminal-privacy-link:hover {
  opacity: 1;
}

/* easter egg: only shown once the hidden frequency has been found and there's
   no email on file yet -- see renderSubscriptionBox() in the JS */
.terminal-hint {
  display: none;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 16px;
}

/* easter egg: the actual reward, called out wherever it's mentioned -- the
   surrounding sentence is just context, this is the part worth reading. plain
   bright white (not a new hue) stands out from the dimmer blue text around it
   without introducing a colour that fights the blue sky/UI everywhere else */
.perk {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

#notify-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notify-input {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 10px;
}

.prompt { color: var(--accent); }

#notify-email {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

#notify-email::placeholder { color: rgba(234, 242, 255, 0.35); }

#notify-form button {
  background: transparent;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

#notify-form button:hover {
  background: var(--accent);
  color: #000;
}

#terminal-response {
  margin-top: 12px;
  font-size: 0.8rem;
  min-height: 1.2em;
  color: var(--accent);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.6em;
  font-size: 1.3rem;
}

.socials a {
  color: var(--accent-dim);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  line-height: 1;
}

.socials a:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

@media (max-width: 900px), (max-height: 520px) {
  .hud-block { padding: 14px 16px; font-size: 10px; }
  .panel { padding: 0 7vw; }

  .glitch-title {
    font-size: clamp(1.6rem, 10.5vw, 2.8rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .subtitle {
    font-size: 1rem;
    letter-spacing: 0.16em;
  }

  .sound-hint {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .countdown-clock {
    gap: 0.5em;
  }

  .scroll-cue {
    bottom: 6vh;
    font-size: 15px;
    letter-spacing: 0.14em;
  }

  .scroll-cue-arrow {
    font-size: 26px;
  }

  /* a touch smaller than desktop, same proportions -- still reads properly
     behind the title instead of shrinking down to nothing. shifted up so it sits
     around the title itself, instead of centering on the whole content block
     (title + subtitle + hint + button), which pushed it down past the title */
  .brand-triangle {
    top: 38%;
    width: min(58vw, 360px);
  }

  /* frees up the bottom for the scroll-cue alone -- the toggle flows in,
     centered right under the subtitle, instead of sitting in the corner.
     margin-top is px, not em -- em here would resolve against this button's own
     11px font-size (a few px), nowhere near enough to clear the triangle's point */
  #sound-toggle {
    position: static;
    margin: 0;
    margin-top: 110px;
  }

  /* SEND was overflowing past the terminal box next to the input -- stack it
     below, full width, instead of squeezing it onto the same line */
  #notify-form {
    flex-wrap: wrap;
  }

  #notify-form button {
    width: 100%;
    margin-top: 8px;
  }
}
