/* ============================================================
   TheKeyWeb — styles.css
   Mobile-first, responsive, performance-first
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --bg:            #080808;
  --bg-surface:    #0f0f0f;
  --bg-glass:      rgba(255,255,255,0.04);
  --border-glass:  rgba(255,255,255,0.08);
  --text-primary:  #f4f4f4;
  --text-secondary:#9a9a9a;
  --text-muted:    #555;

  /* Brand accents */
  --red:       #E50914;
  --red-glow:  rgba(229,9,20,0.35);
  --red-soft:  rgba(229,9,20,0.12);

  --orange:      #F47521;
  --orange-glow: rgba(244,117,33,0.35);
  --orange-soft: rgba(244,117,33,0.12);

  --blue:      #0063E5;
  --blue-glow: rgba(0,99,229,0.35);
  --blue-soft: rgba(0,99,229,0.12);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --radius-card: 18px;
  --radius-btn:  10px;
  --header-h:    64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.97);
  border-bottom: 1px solid var(--border-glass);
  isolation: isolate;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}
.logo-key {
  font-size: 1.3rem;
  color: var(--red);
  line-height: 1;
}
.logo-text em {
  font-style: normal;
  color: var(--red);
}

/* Desktop nav */
.header-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  color: var(--text-secondary);
}
.nav-link:hover { color: var(--text-primary); }

.nav-link--netflix:hover  { background: var(--red-soft);    border-color: var(--red);    color: var(--red); }
.nav-link--crunchyroll:hover { background: var(--orange-soft); border-color: var(--orange); color: var(--orange); }
.nav-link--disney:hover   { background: var(--blue-soft);   border-color: var(--blue);   color: var(--blue); }

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.mobile-menu.is-open {
  max-height: 240px;
  padding: 10px 20px 18px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mobile-nav-link--netflix:active,
.mobile-nav-link--netflix:hover  { background: var(--red-soft);    color: var(--red);    border-color: var(--red); }
.mobile-nav-link--crunchyroll:active,
.mobile-nav-link--crunchyroll:hover { background: var(--orange-soft); color: var(--orange); border-color: var(--orange); }
.mobile-nav-link--disney:active,
.mobile-nav-link--disney:hover   { background: var(--blue-soft);   color: var(--blue);   border-color: var(--blue); }

/* ── HUB SECTION ──────────────────────────────────────────── */
.hub-section {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 20px clamp(36px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

/* Ambient orbs */
.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.18;
}
.ambient__orb--red    { width: 420px; height: 420px; background: var(--red);    top: -80px; left: -80px; opacity: 0.13; }
.ambient__orb--orange { width: 320px; height: 320px; background: var(--orange); bottom: 0;  right: -60px; opacity: 0.11; }
.ambient__orb--blue   { width: 380px; height: 380px; background: var(--blue);   bottom: -60px; left: 30%; opacity: 0.10; }

/* Hub grid: mobile = stacked, desktop = side-by-side */
.hub-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ── HERO CONTENT ─────────────────────────────────────────── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.badge--live {
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.35);
  color: var(--red);
}
.badge--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}
.eyebrow-text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.hero-brand {
  background: linear-gradient(90deg, #fff 30%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
}

/* CTA buttons */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  width: 100%;
  justify-content: flex-start;
}
.cta-btn:active { transform: scale(0.98); }

.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cta-dot--netflix     { background: var(--red);    box-shadow: 0 0 6px var(--red); }
.cta-dot--crunchyroll { background: var(--orange);  box-shadow: 0 0 6px var(--orange); }
.cta-dot--disney      { background: var(--blue);   box-shadow: 0 0 6px var(--blue); }

.cta-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-btn--netflix:hover    { background: var(--red-soft);    border-color: var(--red);    color: var(--red); }
.cta-btn--crunchyroll:hover{ background: var(--orange-soft); border-color: var(--orange); color: var(--orange); }
.cta-btn--disney:hover     { background: var(--blue-soft);   border-color: var(--blue);   color: var(--blue); }
.cta-btn:hover .cta-arrow  { opacity: 1; transform: translateX(3px); }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 4px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.trust-icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── CARDS PANEL ──────────────────────────────────────────── */
.cards-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
  isolation: isolate;
}

/* ── SERVICE CARD BASE ────────────────────────────────────── */
.service-card {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 150px;
  min-width: 0;
  width: 100%;
  isolation: isolate;
  contain: layout paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;

  /* Brand glow variables. Desktop uses the original stronger glow.
     Mobile uses a cheaper paint-safe glow pulse instead of sticky :hover. */
  --card-accent: rgba(255,255,255,0.35);
  --card-glow-hover: rgba(255,255,255,0.18);
  --card-glow-panel: rgba(255,255,255,0.08);
}
.service-card::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2px;
  height: 52%;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse at 50% 100%, var(--card-glow-hover) 0%, var(--card-glow-panel) 42%, transparent 74%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.22s ease;
  contain: paint;
}
.service-card:active {
  transform: none;
}

/* Card atmosphere (decorative bg) */
.card-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

/* Card glow bottom pulse */
.card-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}
.service-card:focus-visible .card-glow { opacity: 0.7; }

/* Card body content */
.card-body {
  position: relative;
  z-index: 2;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-service-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}
.card-name {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

.card-enter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.card-enter-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card-enter-arrow {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.service-card:focus-visible .card-enter-arrow {
  transform: translateX(3px);
}

/* ── NETFLIX CARD ─────────────────────────────────────────── */
.service-card--netflix {
  background: linear-gradient(135deg, #100808 0%, #0d0202 100%);
  --card-accent: var(--red);
  --card-glow-hover: rgba(229,9,20,0.34);
  --card-glow-panel: rgba(229,9,20,0.14);
}
.service-card--netflix:hover {
  border-color: var(--red);
  box-shadow: 0 0 32px var(--red-glow), inset 0 0 24px rgba(229,9,20,0.06);
  transform: translateY(-4px);
}
.service-card--netflix .card-service-label { color: var(--red); }
.service-card--netflix .card-name          { color: #fff; }
.service-card--netflix .card-enter         { color: var(--red); }
.service-card--netflix .card-glow          { background: var(--red); }

/* Netflix atmosphere: cinematic film strips */
.card-atmosphere--netflix .atm-strip {
  position: absolute;
  height: 100%;
  top: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, rgba(229,9,20,0.18), transparent);
}
.card-atmosphere--netflix .atm-strip--1 { right: 60px; }
.card-atmosphere--netflix .atm-strip--2 { right: 90px; opacity: 0.5; }
.card-atmosphere--netflix .atm-panel--1 {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,0.15) 0%, transparent 70%);
}
.card-atmosphere--netflix .atm-circle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(229,9,20,0.2);
}

/* ── CRUNCHYROLL CARD ─────────────────────────────────────── */
.service-card--crunchyroll {
  background: linear-gradient(135deg, #100900 0%, #0d0800 100%);
  --card-accent: var(--orange);
  --card-glow-hover: rgba(244,117,33,0.34);
  --card-glow-panel: rgba(244,117,33,0.14);
}
.service-card--crunchyroll:hover {
  border-color: var(--orange);
  box-shadow: 0 0 32px var(--orange-glow), inset 0 0 24px rgba(244,117,33,0.06);
  transform: translateY(-4px);
}
.service-card--crunchyroll .card-service-label { color: var(--orange); }
.service-card--crunchyroll .card-name          { color: #fff; }
.service-card--crunchyroll .card-enter         { color: var(--orange); }
.service-card--crunchyroll .card-glow          { background: var(--orange); }

/* Crunchyroll atmosphere: diamond/speed lines */
.card-atmosphere--crunchyroll {
  display: flex;
  align-items: center;
}
.atm-diamonds {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}
.atm-diamonds span {
  display: block;
  width: 10px;
  height: 10px;
  background: rgba(244,117,33,0.15);
  transform: rotate(45deg);
  border: 1px solid rgba(244,117,33,0.25);
}
.atm-diamonds span:nth-child(odd)  { transform: rotate(45deg) scale(0.7); opacity: 0.6; }
.atm-circle--cr {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,117,33,0.12) 0%, transparent 65%);
  border: 1px solid rgba(244,117,33,0.15);
}

/* ── DISNEY PLUS CARD ─────────────────────────────────────── */
.service-card--disney {
  background: linear-gradient(135deg, #020814 0%, #000d1a 100%);
  --card-accent: var(--blue);
  --card-glow-hover: rgba(0,99,229,0.34);
  --card-glow-panel: rgba(0,99,229,0.14);
}
.service-card--disney:hover {
  border-color: var(--blue);
  box-shadow: 0 0 32px var(--blue-glow), inset 0 0 24px rgba(0,99,229,0.06);
  transform: translateY(-4px);
}
.service-card--disney .card-service-label { color: #4d9fff; }
.service-card--disney .card-name          { color: #fff; }
.service-card--disney .card-enter         { color: #4d9fff; }
.service-card--disney .card-glow          { background: var(--blue); }

/* Disney atmosphere: stars + arc */
.atm-stars {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.atm-stars span {
  position: absolute;
  border-radius: 50%;
  background: rgba(100,180,255,0.6);
}
.atm-stars span:nth-child(1) { width:2px;height:2px;top:18%;right:22%; }
.atm-stars span:nth-child(2) { width:3px;height:3px;top:35%;right:15%; opacity:0.7; }
.atm-stars span:nth-child(3) { width:2px;height:2px;top:55%;right:28%; opacity:0.5; }
.atm-stars span:nth-child(4) { width:4px;height:4px;top:22%;right:40%; opacity:0.4; }
.atm-stars span:nth-child(5) { width:2px;height:2px;top:70%;right:18%; opacity:0.8; }
.atm-stars span:nth-child(6) { width:2px;height:2px;top:14%;right:32%; opacity:0.6; }
.atm-stars span:nth-child(7) { width:3px;height:3px;top:42%;right:8%;  opacity:0.5; }
.atm-stars span:nth-child(8) { width:2px;height:2px;top:62%;right:38%; opacity:0.4; }

.atm-arc {
  position: absolute;
  right: 10px;
  bottom: -20px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(0,99,229,0.2);
}
.atm-arc--2 {
  right: 30px;
  bottom: -35px;
  width: 90px;
  height: 90px;
  border-color: rgba(0,99,229,0.12);
}

/* ── FEATURE BAR ──────────────────────────────────────────── */
.feature-bar {
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-surface);
  padding: 28px 20px;
}
.feature-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 18px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-divider {
  display: none;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon-wrap svg { width: 18px; height: 18px; }
.feature-icon-wrap--red    { background: var(--red-soft);    color: var(--red); }
.feature-icon-wrap--orange { background: var(--orange-soft); color: var(--orange); }
.feature-icon-wrap--blue   { background: var(--blue-soft);   color: var(--blue); }
.feature-icon-wrap--white  { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

.feature-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.feature-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  padding: 28px 20px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  font-weight: 700;
}
.footer-logo .logo-key { color: var(--red); }
.footer-logo .logo-text em { color: var(--red); font-style: normal; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ── TABLET — 600px+ ──────────────────────────────────────── */
@media (min-width: 600px) {
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cta-btn {
    width: auto;
    min-width: 180px;
    flex: 1 1 auto;
    max-width: 220px;
  }

  .cards-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
  }
  /* Netflix spans full width in 2-col grid */
  .service-card--netflix { grid-column: 1 / -1; }
}

/* ── DESKTOP — 900px+ ─────────────────────────────────────── */
@media (min-width: 900px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .header-nav  { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .hero-ctas {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .cta-btn {
    width: 100%;
    max-width: 300px;
    flex: none;
    justify-content: flex-start;
  }

  .cards-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    align-content: start;
  }
  .service-card--netflix    { grid-column: 1 / -1; min-height: 170px; }
  .service-card--crunchyroll,
  .service-card--disney     { min-height: 190px; }

  /* Slightly smaller card-name at this breakpoint to prevent overflow in narrow 2-col grid */
  .card-name { font-size: 1.35rem; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .feature-bar-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* ── LARGE DESKTOP — 1100px+ ──────────────────────────────── */
@media (min-width: 1100px) {
  .hub-grid {
    grid-template-columns: 42% 1fr;
    gap: 64px;
  }

  .cards-panel {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .service-card--netflix {
    grid-column: 1 / -1;
    min-height: 200px;
  }
  .service-card--crunchyroll,
  .service-card--disney { min-height: 210px; }

  /* Restore larger font — cards are wider here */
  .card-name { font-size: clamp(1.5rem, 2.2vw, 2rem); }
  .card-body { padding: 26px 26px; }
}

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* ── MOBILE COMPOSITING FIXES ────────────────────────────────
   Android Chrome can keep :hover layers alive after a tap and then smear
   filtered/transformed elements while scrolling. These overrides keep the
   mobile version on cheap paint paths while preserving the same visual theme.
*/
@media (hover: none), (pointer: coarse), (max-width: 899px) {
  html { scroll-behavior: auto; }

  .site-header {
    background: rgba(8,8,8,0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .ambient {
    display: none;
  }

  .service-card {
    transform: none !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.22s ease !important;
    will-change: auto !important;
  }

  .service-card:hover,
  .service-card--netflix:hover,
  .service-card--crunchyroll:hover,
  .service-card--disney:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .service-card:active,
  .service-card.is-tap-glowing,
  .service-card:focus-visible {
    transform: none !important;
    border-color: var(--card-accent) !important;
    box-shadow: 0 0 0 1px var(--card-glow-panel), 0 0 22px var(--card-glow-hover), inset 0 0 18px var(--card-glow-panel) !important;
  }

  .service-card:active::after,
  .service-card.is-tap-glowing::after,
  .service-card:focus-visible::after {
    opacity: 1;
  }

  .service-card:hover .card-enter-arrow {
    transform: none !important;
  }

  .service-card:active .card-enter-arrow,
  .service-card.is-tap-glowing .card-enter-arrow,
  .service-card:focus-visible .card-enter-arrow {
    transform: translateX(3px) !important;
  }

  .card-glow {
    display: none !important;
  }

  .card-atmosphere {
    transform: none !important;
  }

  .atm-panel--1,
  .atm-circle,
  .atm-circle--cr,
  .atm-diamonds,
  .atm-arc {
    transform: none !important;
  }

  .card-atmosphere--netflix .atm-panel--1 {
    top: calc(50% - 60px);
  }

  .card-atmosphere--netflix .atm-circle {
    top: calc(50% - 40px);
  }

  .atm-circle--cr {
    top: calc(50% - 45px);
  }

  .atm-diamonds {
    top: calc(50% - 5px);
  }
}

/* Hover effects only on real desktop pointers. Mobile taps must not trigger
   sticky hover transforms, because that is what caused the duplicated card
   text / scroll smear seen on Android Chrome. */
@media (hover: hover) and (pointer: fine) {
  .site-header {
    background: rgba(8,8,8,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .service-card:hover::after,
  .service-card:focus-visible::after { opacity: 1; }
  .service-card:hover .card-glow  { opacity: 1; }
  .service-card:active .card-glow { opacity: 0.7; }
  .service-card:hover .card-enter-arrow { transform: translateX(4px); }
}
