:root {
  --bg: #0c0a12;
  --pink: #ff4fd8;
  --cyan: #41f0ff;
  --lime: #c8ff4a;
  --warm: #ffb86b;
  --ink: #f7f2ea;
  --muted: #a59bb8;
  --bezel: #1a1624;
  --bezel-edge: #2e283c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: Syne, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
.mono { font-family: "IBM Plex Mono", monospace; }
code {
  font-family: "IBM Plex Mono", monospace;
  font-size: .88em;
  color: var(--cyan);
  background: rgba(65,240,255,.08);
  padding: .1em .35em;
  border-radius: .25rem;
}
.vhs-overlay {
  pointer-events: none; position: fixed; inset: 0; z-index: 80; opacity: .07;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.15) 3px);
  mix-blend-mode: soft-light;
}
.scanlines {
  pointer-events: none; position: fixed; inset: 0; z-index: 79;
  background: linear-gradient(rgba(18,16,24,0) 50%, rgba(0,0,0,.15) 50%);
  background-size: 100% 4px; opacity: .35;
}
.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1.25rem; border-bottom: 2px solid rgba(255,255,255,.12);
  font-family: "IBM Plex Mono", monospace; font-size: .85rem;
  background: rgba(0,0,0,.35);
  position: relative; z-index: 5;
}
.ch span { color: var(--lime); }
.brand { font-weight: 700; letter-spacing: .12em; }
.clock { color: var(--cyan); }

/* —— hero TV: normal document flow (no sticky / no tall spacer) —— */
.scrub-story {
  position: relative;
}
.scrub-hero {
  display: flex;
  align-items: center;
  padding: 1.5rem 1.25rem 2rem;
  min-height: min(100vh, 720px);
}
.hero-split {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1fr 1.05fr; gap: 2.5rem; }
  .hero-copy { text-align: left; }
  .hero-copy .sub { margin-left: 0; margin-right: 0; }
  .hero-actions { justify-content: flex-start; }
}
.hero-copy { text-align: center; }
.tag {
  font-family: "IBM Plex Mono", monospace; font-size: .75rem;
  color: var(--warm); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem;
}
.mega {
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  font-weight: 800; line-height: .95; margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  width: 100%; overflow: hidden;
}
.glitch::before {
  color: var(--cyan); z-index: -1;
  animation: glitchA 2.4s infinite linear alternate-reverse;
  clip-path: inset(0 0 55% 0);
}
.glitch::after {
  color: var(--pink); z-index: -2;
  animation: glitchB 1.8s infinite linear alternate-reverse;
  clip-path: inset(45% 0 0 0);
}
@keyframes glitchA {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(3px, -1px); }
  60% { transform: translate(-2px, 0); }
  100% { transform: translate(0); }
}
@keyframes glitchB {
  0% { transform: translate(0); }
  25% { transform: translate(3px, -1px); }
  50% { transform: translate(-3px, 2px); }
  100% { transform: translate(1px, 0); }
}
.sub {
  max-width: 34rem; margin: 0 auto 1.5rem; color: var(--muted);
  font-family: system-ui, sans-serif; line-height: 1.6;
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.btn {
  text-decoration: none; font-weight: 700; padding: .75rem 1.35rem;
  border-radius: .4rem; border: 2px solid transparent; letter-spacing: .04em;
}
.btn.primary { background: var(--lime); color: #101008; }
.btn.ghost { border-color: var(--pink); color: var(--pink); }
.scrub-hint {
  font-family: "IBM Plex Mono", monospace;
  font-size: .9rem;
  color: var(--cyan);
  letter-spacing: .08em;
  margin-top: .75rem;
  animation: hintPulse 1.6s ease-in-out infinite;
}
.scrub-hint.is-hidden { opacity: 0; pointer-events: none; transition: opacity .4s; }
@keyframes hintPulse {
  0%, 100% { opacity: .55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}
.scrub-meta {
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--muted);
  min-height: 1.2em;
}

/* —— CRT / TV frame —— */
.tv-wrap { display: flex; justify-content: center; }
.tv { width: min(100%, 460px); }
.tv-bezel {
  background: linear-gradient(160deg, #2a2438 0%, var(--bezel) 40%, #12101a 100%);
  border-radius: 1.35rem 1.35rem 1.1rem 1.1rem;
  padding: 1.1rem 1.1rem .85rem;
  border: 3px solid var(--bezel-edge);
  box-shadow:
    0 0 0 2px rgba(255,79,216,.15),
    0 24px 60px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.tv-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: .55rem;
  overflow: hidden;
  background: #05040a;
  box-shadow:
    inset 0 0 0 2px #0a0810,
    inset 0 0 40px rgba(0,0,0,.7);
}
.scrub-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05040a;
}
/* soft chromatic / vignette glass */
.tv-glass {
  pointer-events: none;
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(65,240,255,.08), transparent 45%),
    radial-gradient(ellipse at center, transparent 48%, rgba(0,0,0,.5) 100%);
  mix-blend-mode: screen;
  opacity: .85;
}
.tv-glass::before,
.tv-glass::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: screen;
}
.tv-glass::before {
  background: linear-gradient(90deg, rgba(255,79,216,.35), transparent 40%, transparent 60%, rgba(65,240,255,.3));
  transform: translateX(-1px);
}
.tv-glass::after {
  background: linear-gradient(90deg, rgba(65,240,255,.25), transparent 45%);
  transform: translateX(1px);
}
.tv-scan {
  pointer-events: none;
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.22) 3px
  );
  opacity: .45;
  animation: scanDrift 8s linear infinite;
}
@keyframes scanDrift {
  to { background-position: 0 12px; }
}
.tv-chrome {
  pointer-events: none;
  position: absolute;
  left: .65rem; right: .65rem; top: .55rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  color: rgba(247,242,234,.85);
  text-shadow: 0 1px 2px #000;
  z-index: 2;
}
.tv-chrome .rec {
  display: inline-flex; align-items: center; gap: .35rem;
  color: #ff4466; letter-spacing: .08em;
}
.tv-chrome .rec i {
  width: .45rem; height: .45rem; border-radius: 50%;
  background: #ff4466;
  box-shadow: 0 0 8px #ff4466;
  animation: blink 1s step-end infinite;
  display: inline-block;
}
.tv-chrome .timecode { color: var(--cyan); }
.tv-chin {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .7rem; padding: 0 .25rem;
}
.speaker {
  width: 2.4rem; height: .55rem;
  background: repeating-linear-gradient(90deg, #0a0810 0 3px, #3a3348 3px 5px);
  border-radius: 2px; opacity: .7;
}
.brand-badge {
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--muted);
}
.power-led {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime), 0 0 2px #fff;
  animation: ledPulse 2.4s ease-in-out infinite;
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.tv-stand {
  width: 38%;
  height: .55rem;
  margin: .35rem auto 0;
  background: linear-gradient(180deg, #2a2438, #12101a);
  border-radius: 0 0 .4rem .4rem;
  box-shadow: 0 8px 16px rgba(0,0,0,.4);
}
.tv-stand::after {
  content: "";
  display: block;
  width: 70%;
  height: .35rem;
  margin: .25rem auto 0;
  background: #1a1624;
  border-radius: .2rem;
}

.ticker {
  overflow: hidden; border-block: 2px solid rgba(65,240,255,.35);
  background: rgba(65,240,255,.06); padding: .55rem 0;
  margin-top: -.5rem;
}
.ticker-track {
  display: flex; width: max-content;
  animation: marquee 18s linear infinite;
  font-family: "IBM Plex Mono", monospace; font-size: .85rem; color: var(--cyan);
}
.ticker-track span { padding-right: 2rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.services { max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem; }
.services h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.blink { color: #ff4466; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  padding: 1.35rem; border-radius: .75rem; border: 2px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: rotate(-1deg) scale(1.02); box-shadow: 6px 6px 0 rgba(255,79,216,.35); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-family: system-ui, sans-serif; font-size: .92rem; }
.c1 { border-color: rgba(65,240,255,.45); }
.c2 { border-color: rgba(255,79,216,.45); }
.c3 { border-color: rgba(200,255,74,.45); }
.c4 { border-color: rgba(255,184,107,.45); }

.panel {
  max-width: 1100px; margin: 0 auto 3rem; padding: 1.25rem;
  display: grid; gap: 1.5rem; align-items: start;
}
@media (min-width: 800px) { .panel { grid-template-columns: 1fr 1fr; } }
.note-box {
  padding: 1.35rem;
  border-radius: .75rem;
  border: 2px dashed rgba(65,240,255,.35);
  background: rgba(65,240,255,.05);
}
.note-box h2, .panel h2 { font-size: 1.45rem; margin-bottom: .75rem; }
.note-box p, .panel p {
  color: var(--muted); font-family: system-ui, sans-serif;
  margin-bottom: 1rem; line-height: 1.6;
}
.mail {
  color: var(--lime); font-weight: 700; font-size: 1.15rem; text-decoration: none;
  border-bottom: 2px solid var(--lime);
}
footer {
  display: flex; justify-content: space-between; padding: 1rem 1.25rem;
  border-top: 2px solid rgba(255,255,255,.1); font-family: "IBM Plex Mono", monospace;
  font-size: .8rem; color: var(--muted);
}
footer a { color: var(--cyan); text-decoration: none; }

@media (max-width: 600px) {
  .tv { width: min(100%, 340px); }
  .mega { font-size: clamp(2rem, 11vw, 3.2rem); }
}
