/* Local cinematic redesign layer. Loaded after the exported page styles. */

@font-face {
  font-family: 'Russo One Local';
  src: url('../trainers/assets/fonts/russo-one-cyrillic.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #F5F1E8;
  --surface: #FBF9F4;
  --surface-secondary: #EEE9DF;
  --surface-elevated: var(--surface-secondary);
  --text-primary: #182129;
  --text-secondary: #5D6770;
  --text-muted: #8A9298;
  --primary: #2B7472;
  --primary-pressed: #245F5D;
  --primary-soft: #DCEAE7;
  --info: #6D8FB3;
  --info-soft: #E4EBF2;
  --gold: #B99052;
  --gold-dark: #9D7741;
  --border: #D9D2C5;
  --divider: #E5E0D7;
  --success: #4E7B68;
  --danger: #A85D5D;
  --gz-bg: var(--bg);
  --gz-bg-deep: var(--surface-secondary);
  --gz-surface: color-mix(in srgb, var(--surface) 86%, transparent);
  --gz-surface-solid: var(--surface);
  --gz-ink: var(--text-primary);
  --gz-muted: var(--text-secondary);
  --gz-line: var(--border);
  --gz-blue: var(--info);
  --gz-aqua: var(--primary);
  --gz-label-accent: var(--primary);
  --gz-gold: var(--gold);
  --gz-gold-light: var(--primary-soft);
  --gz-danger: var(--danger);
  --gz-atmosphere-primary: color-mix(in srgb, var(--primary) 20%, transparent);
  --gz-atmosphere-secondary: color-mix(in srgb, var(--info) 16%, transparent);
  --gz-atmosphere-human: color-mix(in srgb, var(--gold) 13%, transparent);
  --gz-atmosphere-opacity: 0.34;
  --gz-section-bg: color-mix(in srgb, var(--surface) 72%, transparent);
  --gz-section-alt-bg: color-mix(in srgb, var(--surface-secondary) 82%, transparent);
  --gz-dark-section-bg: color-mix(in srgb, var(--surface-secondary) 94%, transparent);
  --gz-footer-muted: #9aa0aa;
  --gz-radius: 28px;
  --gz-shadow: 0 24px 80px rgba(8, 27, 39, 0.11);
  --story\2d progress: 0;
  --pointer-x: 0;
  --pointer-y: 0;
}

html {
  scroll-behavior: auto;
  background: var(--gz-bg);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  background: transparent;
  color: var(--gz-ink);
  overflow-x: clip;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
}

body::before {
  z-index: -2;
  inset: -18vmax;
  background:
    radial-gradient(circle at 22% 24%, var(--gz-atmosphere-secondary), transparent 34%),
    radial-gradient(circle at 78% 40%, var(--gz-atmosphere-primary), transparent 31%),
    radial-gradient(circle at 50% 82%, var(--gz-atmosphere-human), transparent 29%);
  opacity: 0.72;
  transform: translate3d(-1.5%, -1%, 0) scale(1.02);
  animation: site-aurora 28s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

body::after {
  z-index: -1;
  inset: 0;
  background: url('../images/tild6463-6432-4632-b834-373237633663__noise.svg') 0 0 / 500px 500px repeat;
  mix-blend-mode: soft-light;
  opacity: 0.025;
}

#site-atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: var(--gz-atmosphere-opacity);
  pointer-events: none;
}

.metal-human {
  position: fixed;
  right: clamp(-210px, -9vw, -90px);
  bottom: -2vh;
  width: min(54vw, 820px);
  height: min(84vh, 880px);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(calc(var(--pointer-x, 0) * 8px), calc(var(--pointer-y, 0) * 5px), 0) scale(0.985);
  transition: opacity 280ms ease, transform 180ms ease-out;
  -webkit-mask-image: radial-gradient(ellipse 54% 52% at 52% 54%, #000 0%, #000 60%, rgba(0, 0, 0, 0.88) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 54% 52% at 52% 54%, #000 0%, #000 60%, rgba(0, 0, 0, 0.88) 70%, transparent 100%);
}

.metal-human::before,
.metal-human::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.metal-human::before {
  z-index: 1;
  background: radial-gradient(ellipse 38% 60% at 53% 48%, rgba(43, 116, 114, 0.18), transparent 72%);
  mix-blend-mode: multiply;
}

.metal-human::after {
  z-index: 2;
  background: linear-gradient(90deg, var(--gz-section-bg) 0%, transparent 30%, transparent 72%, var(--gz-section-bg) 100%);
  opacity: 0.14;
}

.metal-human video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.96) contrast(1.34) brightness(0.92);
}

[data-theme='cyber'] .metal-human::before {
  background: radial-gradient(ellipse 38% 60% at 53% 48%, rgba(142, 169, 198, 0.22), transparent 72%);
  mix-blend-mode: screen;
}

[data-theme='cyber'] .metal-human video {
  filter: saturate(1.02) contrast(1.32) brightness(1.16);
}

.metal-human-active .metal-human {
  z-index: 0;
  opacity: 0.74;
  transform: translate3d(calc(var(--pointer-x, 0) * 8px), calc(var(--pointer-y, 0) * 5px), 0) scale(1);
  mix-blend-mode: normal;
}

[data-theme='cyber'].metal-human-active .metal-human {
  opacity: 0.78;
  mix-blend-mode: normal;
}

.metal-human-active .sec,
.metal-human-active .sec-w,
.metal-human-active .stats-sec {
  position: relative;
  z-index: 1;
}

@media (pointer: coarse), (max-width: 900px) {
  .metal-human {
    right: -28vw;
    bottom: -4vh;
    width: 112vw;
    height: 78vh;
    opacity: 0;
    transform: none;
    -webkit-mask-image: radial-gradient(ellipse 54% 52% at 56% 54%, #000 0%, #000 58%, rgba(0, 0, 0, 0.86) 69%, transparent 100%);
    mask-image: radial-gradient(ellipse 54% 52% at 56% 54%, #000 0%, #000 58%, rgba(0, 0, 0, 0.86) 69%, transparent 100%);
  }

  .metal-human video {
    object-position: center bottom;
  }

  .metal-human-active .metal-human {
    z-index: 0;
    opacity: 0.74;
    transform: none;
    mix-blend-mode: normal;
  }

  [data-theme='cyber'].metal-human-active .metal-human {
    z-index: 0;
    opacity: 0.78;
    transform: none;
    mix-blend-mode: normal;
  }
}

@keyframes site-aurora {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1.02);
    opacity: 0.62;
  }
  52% {
    transform: translate3d(2%, 1.5%, 0) scale(1.06);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(-0.5%, 2%, 0) scale(1.04);
    opacity: 0.68;
  }
}

body,
button,
a {
  font-family: 'Manrope', sans-serif;
}

::selection {
  color: #071115;
  background: var(--gz-gold-light);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--gz-gold);
  outline-offset: 4px;
}

/* Navigation */
.nav {
  height: 76px;
  padding: 0 clamp(22px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(4, 12, 18, 0.78), rgba(4, 12, 18, 0));
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: blur(0);
  transition: background-color 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
}

.nav.is-scrolled,
.nav.is-open {
  background: rgba(5, 16, 23, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.25);
}

.nav-logo img {
  width: 38px;
  height: 38px;
  opacity: 1;
}

.nav-logo-text {
  font-family: 'Russo One Local', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.11em;
}

.nav-links {
  gap: clamp(22px, 3vw, 42px);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
}

.theme-toggle {
  position: relative;
  isolation: isolate;
  width: 172px;
  min-width: 172px;
  height: 44px;
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 16%, transparent);
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  text-transform: none;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4px 50% 4px 4px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 24%, transparent);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1);
}

html:not([data-theme='cyber']) .theme-toggle::before {
  transform: translateX(0);
}

.theme-toggle__label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-size: .68rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1;
  color: inherit;
  transition: color 200ms ease;
}

.theme-toggle__icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

html[data-theme='cyber'] .theme-toggle,
html:not([data-theme='cyber']) .theme-toggle {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 16%, transparent);
  color: var(--text-secondary);
}

html[data-theme='cyber'] .theme-toggle__label[data-theme-label='cyber'] { color: #06201b; }
html:not([data-theme='cyber']) .theme-toggle__label[data-theme-label='standard'] { color: #f7fffd; }

.menu-toggle,
[data-menu-toggle] {
  --burger-shift: 7px;
}

.menu-toggle span,
[data-menu-toggle] span {
  transition: transform 240ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1),
[data-menu-toggle][aria-expanded="true"] span:nth-child(1) {
  transform: translateY(var(--burger-shift)) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2),
[data-menu-toggle][aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.4);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3),
[data-menu-toggle][aria-expanded="true"] span:nth-child(3) {
  transform: translateY(calc(-1 * var(--burger-shift))) rotate(-45deg);
}

[data-nav-panel],
.nav-panel {
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, opacity 160ms ease;
}

[data-nav-panel][data-open="true"],
.nav-panel[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Hero */
.hero {
  min-height: 100svh;
  padding-top: 0;
  isolation: isolate;
  background: #02070a;
  color: #F3EFE6;
}

.hero::before {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 7, 10, 0.98) 0%, rgba(2, 7, 10, 0.93) 34%, rgba(2, 7, 10, 0.48) 58%, rgba(2, 7, 10, 0.12) 100%),
    linear-gradient(180deg, rgba(2, 7, 10, 0.16), rgba(2, 7, 10, 0.03) 58%, rgba(2, 7, 10, 0.82));
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.98;
  overflow: hidden;
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 82%, #02070a 100%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.92) contrast(1.05);
  transition: filter 420ms ease;
}

.hero-orb {
  position: absolute;
  width: min(46vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(2px);
  display: none;
  pointer-events: none;
  z-index: -1;
}

.hero-orb::before,
.hero-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 239, 186, 0.19);
}

.hero-orb::after {
  inset: 14%;
  border-color: rgba(74, 218, 209, 0.16);
}

.hero-orb--one {
  right: -12vw;
  top: 12%;
}

.hero-orb--two {
  width: min(27vw, 410px);
  left: -8vw;
  bottom: 2%;
}

.hero-inner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(16px, 2vh, 24px);
  max-width: 1480px;
  min-height: 100svh;
  padding: clamp(90px, 12vh, 124px) clamp(24px, 6.6vw, 104px) clamp(22px, 3.2vh, 34px);
  text-align: left;
  z-index: 3;
}

.hero-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero-content {
  width: min(820px, 57vw);
  text-align: left;
  z-index: 1;
}

.hero-pill--primary {
  border-color: rgba(255, 240, 189, 0.58);
  background: linear-gradient(120deg, rgba(228, 180, 93, 0.18), rgba(26, 174, 168, 0.14));
  box-shadow: 0 0 30px rgba(228, 180, 93, 0.08);
}

.hero-badge {
  margin: 0 0 20px;
  color: var(--gz-gold-light);
  background: rgba(255, 241, 192, 0.07);
  border-color: rgba(255, 241, 192, 0.26);
}

.hero-badge-dot {
  background: var(--gz-gold);
}

.hero-title {
  max-width: 820px;
  margin: 0 0 22px;
  color: #F3EFE6;
  font-size: clamp(50px, 5vw, 78px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-title span {
  color: transparent;
  background: linear-gradient(90deg, #F3EFE6 0%, #DCEAE7 43%, #D0AE72 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-sub {
  max-width: 580px;
  margin: 0 0 24px;
  color: rgba(242, 252, 250, 0.72);
  font-size: clamp(17px, 1.42vw, 20px);
  line-height: 1.55;
}

.hero-btns {
  justify-content: flex-start;
  margin: 0 0 24px;
}

.hero-stats {
  justify-content: flex-start;
  gap: clamp(20px, 3vw, 38px);
  margin-bottom: 20px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-n {
  color: #F3EFE6;
  font-size: 26px;
}

.hero-stat-l {
  margin-top: 4px;
  color: rgba(242, 252, 250, 0.62);
  font-size: 9px;
}

.hero-stat-div {
  background: rgba(255, 255, 255, 0.18);
}

.hero-directions {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  justify-content: stretch;
  width: 100%;
}

.hero-pill {
  min-height: 48px;
  padding: 9px 13px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(4, 13, 17, 0.54);
  box-shadow: none;
  backdrop-filter: blur(14px) saturate(1.15);
}

.hero-pill:hover {
  border-color: rgba(255, 240, 189, 0.56);
  background: rgba(255, 255, 255, 0.1);
}

.pill-num {
  flex: 0 0 auto;
  color: var(--gz-gold);
  font-size: 9px;
}

.pill-txt {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
}

.btn-p,
.btn-s {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 999px;
}

.btn-p {
  background: var(--primary);
  box-shadow: 0 14px 42px color-mix(in srgb, var(--primary) 28%, transparent);
}

.btn-p:hover {
  background: var(--primary-pressed);
}

.btn-s {
  color: #F3EFE6;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.btn-s:hover {
  color: #F3EFE6;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(48px, 9vh, 92px);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll__line {
  position: relative;
  width: 66px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.hero-scroll__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gz-gold);
  transform: translateX(-100%);
  animation: hero-line 2.4s ease-in-out infinite;
}

@keyframes hero-line {
  45%, 100% { transform: translateX(100%); }
}

/* Scroll story */
.frame-story {
  position: relative;
  height: 220svh;
  color: #f8fbfa;
  background: #020508;
}

.story-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 68% 50%, rgba(0, 224, 255, 0.12), transparent 31%),
    linear-gradient(145deg, #010407 0%, #030a0f 55%, #020508 100%);
}

.story-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 4, 8, 0.88) 0%, rgba(0, 4, 8, 0.32) 42%, rgba(0, 4, 8, 0.06) 76%),
    linear-gradient(180deg, rgba(0, 2, 4, 0.56), transparent 22%, transparent 73%, rgba(0, 2, 4, 0.8));
  transform: translate3d(calc((var(--story\2d progress) - 0.5) * -12px), 0, 0);
  will-change: transform;
}

.frame-story__video,
.frame-story__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-story__video {
  z-index: 1;
  opacity: 0;
  transition: opacity 120ms linear;
}

.frame-story__frame {
  z-index: 0;
}

.frame-story.is-video-ready .frame-story__video {
  opacity: 1;
}

.story-glow {
  position: absolute;
  left: 65%;
  top: 50%;
  width: min(72vw, 980px);
  aspect-ratio: 1;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.16), rgba(22, 97, 146, 0.05) 46%, transparent 68%);
  filter: blur(12px);
  transform: translate3d(-50%, -50%, 0) scale(calc(0.82 + var(--story\2d progress) * 0.18));
  opacity: calc(0.32 + var(--story\2d progress) * 0.48);
}

.frame-story--hands {
  height: 220svh;
}

.frame-story--hands .story-glow {
  left: 52%;
  background: radial-gradient(circle, rgba(70, 202, 255, 0.14), rgba(116, 56, 186, 0.06) 48%, transparent 70%);
}

.frame-story--lotus-door {
  height: 240svh;
}

.frame-story--lotus-door .story-stage {
  background:
    radial-gradient(circle at 50% 51%, rgba(247, 202, 111, 0.18), transparent 23%),
    linear-gradient(145deg, #03060b 0%, #0b1320 54%, #020508 100%);
}

.frame-story--lotus-door .story-stage::after {
  background:
    linear-gradient(90deg, rgba(0, 4, 8, 0.88) 0%, rgba(0, 4, 8, 0.38) 42%, rgba(0, 4, 8, 0.12) 78%),
    linear-gradient(180deg, rgba(0, 2, 4, 0.7), transparent 25%, transparent 68%, rgba(0, 2, 4, 0.84));
}

.frame-story--lotus-door .story-glow {
  left: 50%;
  top: 51%;
  width: min(78vw, 1380px);
  background: radial-gradient(circle, rgba(255, 212, 128, 0.28), rgba(88, 170, 224, 0.11) 38%, transparent 68%);
}

.frame-story--lotus-door .frame-story__frame,
.frame-story--lotus-door .frame-story__video {
  aspect-ratio: 1920 / 1080;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.04) contrast(1.08);
}

.story-copy {
  position: absolute;
  left: clamp(24px, 7vw, 108px);
  top: clamp(126px, 23vh, 236px);
  width: min(520px, 34vw);
  min-height: clamp(132px, 18vh, 196px);
  z-index: 9;
  pointer-events: none;
}

.story-copy::before {
  content: '';
  position: absolute;
  inset: -42px -52px -42px -34px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at left center, rgba(0, 4, 8, 0.82), rgba(0, 4, 8, 0.48) 48%, transparent 76%);
}

.story-copy [data-story-cue] {
  --cue-opacity: 0;
  --cue-y: 26px;
  --cue-reveal: 0;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  margin: 0;
  color: #F3EFE6;
  font-size: clamp(30px, 3.25vw, 54px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
  opacity: var(--cue-opacity);
  transform: translate3d(0, var(--cue-y), 0);
  clip-path: inset(calc((1 - var(--cue-reveal)) * 100%) 0 0 0);
  will-change: transform, opacity, clip-path;
}

.story-copy [data-story-cue]:nth-child(1) {
  --cue-enter: clamp(0, calc(var(--story\2d progress) * 5), 1);
  --cue-exit: clamp(0, calc((var(--story\2d progress) - 0.58) * 5), 1);
  --cue-opacity: min(var(--cue-enter), calc(1 - var(--cue-exit)));
  --cue-y: calc(26px - var(--cue-enter) * 26px - var(--cue-exit) * 112px);
  --cue-reveal: var(--cue-enter);
}

.story-copy [data-story-cue]:nth-child(2) {
  --cue-enter: clamp(0, calc((var(--story\2d progress) - 0.38) * 5), 1);
  --cue-opacity: var(--cue-enter);
  --cue-y: calc(26px - var(--cue-enter) * 26px);
  --cue-reveal: var(--cue-enter);
}

.story-visual {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.frame-story__frame,
.frame-story__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.07);
  transform: scale(calc(1 + (1 - var(--story\2d progress)) * 0.025));
  transform-origin: center;
  will-change: transform;
}

/* Content system */
.sec,
.sec-w {
  padding: clamp(76px, 9vw, 126px) 0;
  background: var(--gz-section-bg);
}

.sec-w:nth-of-type(even),
.partners-sec {
  background: var(--gz-section-alt-bg);
}

.wrap {
  max-width: 1320px;
  padding: 0 clamp(20px, 5vw, 72px);
}

.sec-hd,
.sec-hd-row {
  margin-bottom: clamp(38px, 5vw, 66px);
}

.sec-tag,
.app-n,
.dir-num-lbl,
.proc-sn {
  color: var(--gz-label-accent);
}

.sec-title {
  color: var(--gz-ink);
  font-size: clamp(34px, 4.6vw, 68px);
}

.sec-desc,
.why-d,
.app-d,
.proc-d,
.partner-desc {
  color: var(--gz-muted);
}

.why-grid {
  gap: 18px;
}

.why-card,
.app-card,
.proc-card {
  border: 1px solid var(--gz-line);
  background: var(--gz-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(14px);
}

.why-card {
  padding: clamp(28px, 3vw, 42px);
  border-radius: var(--gz-radius);
}

.why-card:hover,
.app-card:hover {
  border-color: rgba(31, 113, 184, 0.38);
  box-shadow: var(--gz-shadow);
}

.why-ic {
  background: rgba(26, 174, 168, 0.1);
}

.why-t,
.app-t,
.proc-t,
.dir-title {
  color: var(--gz-ink);
}

.dir-row {
  grid-template-columns: 68px 1fr auto;
  padding: 31px 0;
  border-bottom-color: var(--gz-line);
}

.dir-row:hover {
  padding-left: 10px;
}

.dir-tag {
  color: var(--gz-muted);
  border-color: var(--gz-line);
}

.rlp-wrap {
  min-height: 430px;
  border-radius: 36px;
  box-shadow: var(--gz-shadow);
}

.rlp-photo {
  position: relative;
}

.rlp-photo img {
  position: absolute;
  inset: 0;
}

.apps-grid {
  gap: 18px;
}

.sec-actions {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.games-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid rgba(11, 111, 107, 0.3);
  border-radius: 999px;
  color: var(--gz-label-accent);
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.games-focus {
  --training-accent: #2B7472;
  --training-card: #FBF9F4;
  --training-card-alt: #EEE9DF;
  --training-text: #182129;
  --training-muted: #5D6770;
  --training-meta: #8A9298;
  --training-line: #D9D2C5;
  --training-nav: color-mix(in srgb, #FBF9F4 94%, transparent);
  --training-shadow: 0 18px 52px rgba(18, 38, 39, 0.16);
  position: relative;
  isolation: isolate;
  padding-block: clamp(92px, 9vw, 144px);
  overflow: hidden;
  background: #10171C;
  color: #F3EFE6;
}

.games-focus::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../images/content/dna-course-dark.webp') center / cover no-repeat;
  opacity: 0.54;
  pointer-events: none;
}

.games-focus::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 7, 12, 0.88), rgba(5, 9, 14, 0.72) 45%, rgba(3, 7, 12, 0.94)),
    radial-gradient(circle at 18% 38%, rgba(38, 225, 205, 0.14), transparent 34%);
  pointer-events: none;
}

.games-focus .sec-title {
  max-width: 920px;
  font-size: clamp(38px, 4.2vw, 56px);
  text-shadow: 0 12px 44px rgba(26, 174, 168, 0.12);
  color: #F3EFE6;
}

.games-focus .sec-hd-row {
  margin-bottom: clamp(42px, 6vw, 74px);
}

.games-focus .sec-desc {
  max-width: 430px;
  font-size: 17px;
  color: #B7C0C5;
}

.trainer-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 clamp(24px, 3vw, 34px);
  padding: 7px;
  border: 1px solid var(--training-line);
  border-radius: 22px;
  background: var(--training-nav);
}

.trainer-filter__button {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--training-muted);
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.trainer-filter__button:hover {
  color: var(--training-text);
  transform: translateY(-1px);
}

.trainer-filter__button[aria-selected='true'] {
  border-color: color-mix(in srgb, var(--training-accent) 48%, transparent);
  background: var(--training-accent);
  color: #f7fffd;
}

.trainer-filter__button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.games-focus .app-card[hidden] {
  display: none !important;
}

.games-focus .app-card:not([hidden]) {
  animation: trainer-filter-in 260ms cubic-bezier(.2, .8, .2, 1) both;
}

.games-focus .apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.games-focus .app-card {
  --course-accent: var(--primary);
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 22px;
  min-height: 196px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--training-line);
  border-radius: 26px;
  background: var(--training-card);
  color: var(--training-text);
  box-shadow: var(--training-shadow);
  text-decoration: none;
}

.games-focus .app-n {
  color: var(--gz-label-accent);
}

.games-focus .app-d {
  min-height: 0;
  margin-top: 8px;
  color: var(--training-muted);
  line-height: 1.48;
}

.games-focus .app-card:hover {
  transform: translateY(-5px);
  border-color: var(--training-accent);
}

.trainer-course-visual {
  position: relative;
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--training-card-alt);
  isolation: isolate;
}

.trainer-course-visual::before,
.trainer-course-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.trainer-course-visual::before {
  inset: -5px;
  border: 1px solid color-mix(in srgb, var(--course-accent) 60%, transparent);
  border-block-color: transparent;
  animation: trainer-ring-spin 8s linear infinite;
}

.trainer-course-visual::after {
  inset: 10px;
  border: 1px solid color-mix(in srgb, var(--course-accent) 32%, transparent);
  animation: trainer-ring-pulse 2.8s ease-in-out infinite;
}

.trainer-course-visual img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.9;
}

.trainer-course-illustration {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  border-radius: 50%;
  color: var(--course-accent);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--info) 16%, transparent), transparent 48%),
    var(--training-card-alt);
}

.trainer-course-illustration .tv-halo {
  fill: color-mix(in srgb, var(--surface-elevated) 86%, transparent);
  stroke: color-mix(in srgb, var(--primary) 24%, transparent);
  stroke-width: 1;
}

.trainer-course-illustration .tv-panel {
  fill: color-mix(in srgb, var(--surface-elevated) 90%, transparent);
  stroke: var(--border);
  stroke-width: 1.2;
}

.trainer-course-illustration .tv-grid rect,
.trainer-course-illustration .tv-keys rect {
  fill: var(--info-soft);
  stroke: color-mix(in srgb, var(--info) 42%, transparent);
  stroke-width: 1;
}

.trainer-course-illustration .tv-primary { --tv-tone: var(--primary); }
.trainer-course-illustration .tv-info { --tv-tone: var(--info); }
.trainer-course-illustration .tv-gold { --tv-tone: var(--gold); }
.trainer-course-illustration :is(.tv-primary, .tv-info, .tv-gold):not(.tv-stroke) { fill: var(--tv-tone); }

.trainer-course-illustration .tv-stroke {
  fill: none;
  stroke: var(--tv-tone, var(--divider));
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-course-illustration .tv-number {
  font: 700 31px/1 'Manrope', sans-serif;
}

.trainer-course-illustration .tv-number-small {
  fill: var(--text-secondary);
  font: 700 13px/1 'Manrope', sans-serif;
}

.trainer-course-illustration .tv-ai {
  fill: var(--bg);
}

.trainer-course-illustration .tv-grid,
.trainer-course-illustration .tv-keys,
.trainer-course-illustration .tv-lotus {
  transform-box: fill-box;
  transform-origin: center;
  animation: trainer-visual-drift 4.8s ease-in-out infinite;
}

.trainer-course-illustration .tv-node,
.trainer-course-illustration .tv-breath-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: trainer-visual-pulse 2.8s ease-in-out infinite;
}

.trainer-course-body {
  min-width: 0;
}

.trainer-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--training-meta);
  font-size: 11px;
}

.trainer-course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trainer-course-meta svg,
.trainer-course-arrow svg {
  width: 14px;
  height: 14px;
}

.trainer-course-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trainer-course-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--course-accent);
  border-radius: 50%;
  color: var(--course-accent);
  transition: transform 220ms ease, background 220ms ease;
}

.trainer-course-card:hover .trainer-course-arrow {
  transform: translateX(3px);
  background: color-mix(in srgb, var(--course-accent) 12%, transparent);
}

.games-focus .trainer-course-card { --course-accent: var(--training-accent); }

.games-focus .app-card.trainer-course-card {
  background: var(--training-card);
  color: var(--training-text);
}

.games-focus .app-t {
  display: block;
  margin: 3px 0 0;
  color: var(--training-text);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.18;
}

.games-focus .app-n { display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes trainer-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes trainer-ring-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.94); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes trainer-visual-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes trainer-visual-pulse {
  0%, 100% { opacity: .56; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes trainer-filter-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

[data-theme='cyber'] .games-focus {
  --training-accent: #66A9A4;
  --training-card: #172027;
  --training-card-alt: #10171C;
  --training-text: #F3EFE6;
  --training-muted: #B7C0C5;
  --training-meta: #879199;
  --training-line: #2A3941;
  --training-nav: color-mix(in srgb, #172027 88%, transparent);
  --training-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  background: var(--bg);
}

[data-theme='cyber'] .trainer-filter__button[aria-selected='true'] { color: #06201b; }

.app-card {
  border-radius: var(--gz-radius);
}

.app-img {
  border-radius: var(--gz-radius) var(--gz-radius) 0 0;
}

img[data-content-image] {
  object-fit: cover;
}

[data-content-image='redlines'] {
  object-position: 58% 50%;
}

[data-content-image='rules'] {
  object-position: 50% 48%;
}

[data-content-image='app-kids'] {
  object-position: 62% 50%;
}

[data-content-image='app-family'] {
  object-position: 52% 48%;
}

[data-content-image='app-detector'] {
  object-position: 57% 50%;
}

[data-content-image='app-footprint'] {
  object-position: 52% 54%;
}

[data-content-image='train-visual'] {
  object-position: 50% 50%;
}

[data-content-image='train-text'] {
  object-position: 56% 48%;
}

[data-content-image='train-numbers'] {
  object-position: 50% 50%;
}

[data-content-image='train-typing'] {
  object-position: 55% 55%;
}

[data-content-image='train-maze'] {
  object-position: 55% 50%;
}

[data-content-image='train-breathing'] {
  object-position: 48% 50%;
}

.app-lnk {
  color: var(--gz-blue);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.stats-sec {
  background: var(--gz-dark-section-bg);
}

.stats-sec .stat-n { color: var(--text-primary); }
.stats-sec .stat-l { color: var(--text-secondary); }

/* Red-line accordion */
.redline-list {
  border-top: 1px solid var(--gz-line);
}

.redline-item {
  border-bottom: 1px solid var(--gz-line);
}

.redline-item h3 {
  margin: 0;
}

.redline-trigger {
  display: grid;
  grid-template-columns: 58px 1fr 44px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 12px 0;
  border: 0;
  color: var(--gz-ink);
  background: transparent;
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.redline-index {
  color: var(--gz-danger);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.redline-plus {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gz-line);
  border-radius: 50%;
  justify-self: end;
}

.redline-plus::before,
.redline-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease;
}

.redline-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.redline-trigger[aria-expanded='true'] .redline-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.redline-panel {
  max-width: 820px;
  padding: 0 58px 28px;
  color: var(--gz-muted);
}

.redline-panel[hidden] {
  display: none;
}

.redline-safe {
  margin-top: 8px;
  color: var(--gz-ink);
  font-weight: 650;
}

.proc-grid {
  gap: 14px;
}

.proc-card {
  border-radius: 22px;
}

.footer {
  background: rgba(4, 17, 23, 0.97);
}

.footer-tagline,
.footer-col-t,
.footer-copy {
  color: var(--gz-footer-muted);
}

.footer-logo-t,
.footer-col-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Cyber theme */
html[data-theme='cyber'] {
  --bg: #10171C;
  --surface: #172027;
  --surface-elevated: #1D2830;
  --text-primary: #F3EFE6;
  --text-secondary: #B7C0C5;
  --text-muted: #879199;
  --primary: #66A9A4;
  --primary-pressed: #55938F;
  --primary-soft: #203D3D;
  --info: #8EA9C6;
  --info-soft: #20303D;
  --gold: #D0AE72;
  --gold-soft: #3B3226;
  --border: #2A3941;
  --divider: #233038;
  --success: #7DA892;
  --danger: #D18A83;
  --gz-bg: var(--bg);
  --gz-bg-deep: var(--surface-elevated);
  --gz-surface: color-mix(in srgb, var(--surface) 88%, transparent);
  --gz-surface-solid: var(--surface);
  --gz-ink: var(--text-primary);
  --gz-muted: var(--text-secondary);
  --gz-line: var(--border);
  --gz-blue: var(--info);
  --gz-aqua: var(--primary);
  --gz-label-accent: var(--primary);
  --gz-gold: var(--gold);
  --gz-danger: var(--danger);
  --gz-atmosphere-primary: color-mix(in srgb, var(--primary) 20%, transparent);
  --gz-atmosphere-secondary: color-mix(in srgb, var(--info) 13%, transparent);
  --gz-atmosphere-human: color-mix(in srgb, var(--gold) 11%, transparent);
  --gz-atmosphere-opacity: 0.42;
  --gz-section-bg: color-mix(in srgb, var(--surface) 74%, transparent);
  --gz-section-alt-bg: color-mix(in srgb, var(--surface-elevated) 84%, transparent);
  --gz-dark-section-bg: color-mix(in srgb, var(--bg) 94%, transparent);
}

[data-theme='cyber'] body {
  background: transparent !important;
}

[data-theme='cyber'] .sec,
[data-theme='cyber'] .sec-w,
[data-theme='cyber'] .partners-sec {
  background: var(--gz-section-bg);
}

[data-theme='cyber'] .sec-w:nth-of-type(even),
[data-theme='cyber'] .partners-sec {
  background: var(--gz-section-alt-bg);
}

[data-theme='cyber'] .hero {
  background:
    radial-gradient(circle at 68% 48%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 31%),
    radial-gradient(circle at 27% 73%, color-mix(in srgb, var(--info) 11%, transparent), transparent 27%),
    var(--bg);
}

[data-theme='cyber'] .btn-p {
  background: var(--primary);
  box-shadow: 0 14px 44px color-mix(in srgb, var(--primary) 28%, transparent);
}

[data-theme='cyber'] .hero-title span {
  background-image: linear-gradient(90deg, var(--text-primary), var(--info) 52%, var(--gold));
}

[data-theme='cyber'] .why-card,
[data-theme='cyber'] .app-card,
[data-theme='cyber'] .proc-card {
  background: var(--gz-surface);
  border-color: var(--gz-line);
  box-shadow: none;
}

[data-theme='cyber'] .app-card:first-child {
  background: var(--gz-surface);
}

/* Four applications: standard responsive cards */
.app-showcase {
  position: relative;
}

.app-showcase-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.app-showcase-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--gz-line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--gz-surface) 92%, transparent);
  box-shadow: 0 26px 70px rgba(8, 27, 39, 0.14);
  transition: transform 260ms ease, border-color 240ms ease;
}

.app-showcase-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--gz-accent) 55%, transparent); }

.app-showcase-card > a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 14px 14px 24px;
  color: var(--gz-ink);
  text-decoration: none;
}

.app-showcase-card > a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gz-accent) 46%, transparent);
  outline-offset: 5px;
  border-radius: 24px;
}

.app-showcase-visual {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 20px;
  background: var(--gz-section-alt-bg);
}

.app-showcase-visual img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 620ms ease; }
.app-showcase-card:hover .app-showcase-visual img, .app-showcase-card[data-active='true'] .app-showcase-visual img { transform: scale(1.045); }
.app-showcase-meta { margin: 0 8px 12px; color: var(--gz-accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.app-showcase-card strong { margin: 0 8px 12px; font-size: clamp(21px, 2vw, 28px); line-height: 1.08; letter-spacing: -.025em; }
.app-showcase-copy { margin: 0 8px 24px; color: var(--gz-muted); font-size: 14px; line-height: 1.62; }
.app-showcase-open { display: inline-flex; align-items: center; gap: 8px; margin: auto 8px 0; color: var(--gz-accent); font-weight: 800; }
.app-showcase-open svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .app-showcase-rail {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-showcase-card, .app-showcase-visual img { transition: none; }
  .app-showcase-card { transform: none; }
}

[data-theme='cyber'] .sec-title,
[data-theme='cyber'] .why-t,
[data-theme='cyber'] .app-t,
[data-theme='cyber'] .proc-t,
[data-theme='cyber'] .dir-title,
[data-theme='cyber'] .redline-trigger,
[data-theme='cyber'] .redline-safe {
  color: var(--gz-ink);
}

/* Short desktop viewports */
@media (max-height: 760px) and (min-width: 721px) {
  .hero-inner {
    padding-top: 72px;
    padding-bottom: 94px;
  }

  .hero-title {
    font-size: clamp(46px, 4.6vw, 66px);
  }

  .hero-sub,
  .hero-btns {
    margin-bottom: 16px;
  }

}

/* Tablet */
@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .nav-logo {
    min-width: 44px;
    min-height: 44px;
  }

  .theme-toggle {
    min-height: 44px;
  }

  .nav-burger {
    display: flex;
  }

  .nav-mobile-menu {
    display: flex;
    position: absolute;
    top: 76px;
    height: calc(100svh - 76px);
    max-height: calc(100svh - 76px);
    bottom: auto;
  }

  .hero-content {
    width: min(710px, 62vw);
  }

  .story-copy {
    left: 34px;
    width: min(440px, 36vw);
  }

}

@media (max-width: 900px) {
  .rlp-photo {
    aspect-ratio: 3 / 2;
    order: -1;
  }

  .frame-story--lotus-door {
    height: 220svh;
  }

  .frame-story--hands {
    height: 200svh;
  }

  .hero-visual {
    inset: 0;
    width: 100%;
    opacity: 0.7;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .rlp-photo {
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  .nav {
    height: 68px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: minmax(44px, 1fr) auto 44px;
    column-gap: 8px;
  }

  .nav-logo-text {
    display: none;
  }

  .nav-logo {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    justify-self: start;
    justify-content: center;
  }

  .nav-logo img {
    width: 36px;
    height: 36px;
  }

  .theme-toggle {
    width: 148px;
    min-width: 148px;
    min-height: 44px;
    margin: 0;
    padding: 4px;
  }

  .theme-toggle__label { font-size: .66rem; }

  .trainer-filter {
    display: flex;
    gap: 6px;
    margin-inline: -18px;
    padding: 6px 18px 10px;
    overflow-x: auto;
    border-inline: 0;
    border-radius: 0;
    scrollbar-width: none;
  }

  .trainer-filter::-webkit-scrollbar { display: none; }

  .trainer-filter__button {
    min-width: max-content;
    min-height: 44px;
    padding: 9px 13px;
  }

  .nav-burger { justify-self: end; }

  .nav-mobile-menu {
    position: absolute;
    top: 68px;
    height: calc(100svh - 68px);
    max-height: calc(100svh - 68px);
    bottom: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(1, 7, 10, 0.7) 0%, rgba(1, 7, 10, 0.48) 30%, rgba(1, 7, 10, 0.91) 63%, rgba(1, 7, 10, 0.99) 100%),
      linear-gradient(90deg, rgba(1, 7, 10, 0.92), rgba(1, 7, 10, 0.24));
  }

  .hero-visual {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.62 !important;
  }

  .hero-visual img {
    object-position: 66% center;
  }

  .hero-inner {
    min-height: auto;
    grid-template-rows: auto auto;
    padding: 96px 20px 24px;
  }

  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-content {
    width: 100%;
  }

  .hero-title {
    margin-bottom: 16px;
    font-size: clamp(36px, 10vw, 46px);
    line-height: 0.98;
  }

  .hero-sub {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-btns {
    align-items: stretch;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    margin-bottom: 18px;
  }

  .btn-p,
  .btn-s {
    flex: 1;
    min-width: 0;
    width: auto;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-badge {
    margin-bottom: 16px;
  }

  .hero-stats {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-bottom: 14px;
  }

  .hero-stat {
    flex: 1;
  }

  .hero-stat-n {
    font-size: 22px;
  }

  .hero-stat-l {
    font-size: 8px;
  }

  .hero-stat-div {
    display: block;
  }

  .hero-directions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-pill {
    min-height: 52px;
    padding: 8px 10px;
  }

  .pill-txt {
    font-size: 10px;
  }

  .hero-orb--one {
    top: 8%;
    right: -38vw;
    width: 96vw;
  }

  .frame-story--lotus-door {
    height: 200svh;
  }

  .frame-story--hands {
    height: 180svh;
  }

  .story-stage {
    height: 100svh;
    min-height: 620px;
  }

  .story-stage::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.03) 31%, rgba(0, 0, 0, 0.1) 62%, rgba(0, 0, 0, 0.86) 100%);
  }

  .story-copy {
    left: 20px;
    top: max(118px, calc(env(safe-area-inset-top) + 86px));
    width: min(340px, 72vw);
    min-height: 144px;
  }

  .story-glow {
    left: 54%;
    top: 50%;
    width: 124vw;
  }

  .frame-story__frame {
    object-fit: cover;
  }

  .frame-story--lotus-door .story-stage::after {
    background:
      linear-gradient(180deg, rgba(0, 2, 4, 0.84) 0%, rgba(0, 2, 4, 0.16) 32%, rgba(0, 2, 4, 0.2) 60%, rgba(0, 2, 4, 0.9) 100%),
      linear-gradient(90deg, rgba(0, 2, 4, 0.4), transparent 55%);
  }

  .frame-story--lotus-door .story-glow {
    left: 50%;
    top: 49%;
  }

  .frame-story--lotus-door .frame-story__frame {
    object-position: center center;
  }

  .story-copy [data-story-cue] {
    font-size: clamp(28px, 8vw, 42px);
  }

  .sec,
  .sec-w {
    padding: 72px 0;
  }

  .wrap {
    padding: 0 18px;
  }

  .sec-hd-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .sec-actions {
    justify-items: start;
  }

  .games-jump {
    width: 100%;
  }

  .games-focus::before {
    inset: 10px;
    border-radius: 28px;
  }

  .why-grid,
  .proc-grid {
    grid-template-columns: 1fr;
  }

  .dir-row {
    grid-template-columns: 40px 1fr 26px;
    gap: 12px;
    padding: 24px 0;
  }

  .dir-tags {
    gap: 5px;
  }

  .rlp-wrap {
    border-radius: 26px;
  }

  .games-focus .apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 18px;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
  }

  .games-focus .app-card {
    grid-template-columns: 104px minmax(0, 1fr) 44px;
    gap: 16px;
    min-height: 164px;
    padding: 18px;
  }

  .trainer-course-visual { width: 104px; }

  .games-focus .sec-title {
    max-width: 100%;
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .games-focus .app-d {
    min-height: 0;
  }

  .redline-trigger {
    grid-template-columns: 34px 1fr 40px;
    min-height: 78px;
    gap: 8px;
  }

  .redline-panel {
    padding: 0 0 24px 34px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 36px;
  }

  .games-focus .app-card {
    grid-template-columns: 86px minmax(0, 1fr) 38px;
    gap: 12px;
    padding: 14px;
  }

  .trainer-course-visual { width: 86px; }
  .trainer-course-arrow { width: 38px; height: 38px; }
  .trainer-course-meta { gap: 6px 10px; font-size: 10px; }
  .games-focus .app-d { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

/* Motion and capability fallbacks */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .trainer-course-visual::before,
  .trainer-course-visual::after,
  .trainer-course-illustration * { animation: none; }

  .frame-story {
    min-height: 100svh;
    height: auto;
    position: relative;
  }

  .story-stage {
    position: relative;
    min-height: 100svh;
    height: auto;
  }

  .frame-story__frame {
    transform: none;
  }

  .story-stage::after {
    transform: none;
  }

  .story-copy {
    display: grid;
    gap: 18px;
  }

  .story-copy [data-story-cue] {
    position: static;
    opacity: 1;
    transform: none;
    clip-path: none;
    will-change: auto;
  }

  .menu-toggle span,
  [data-menu-toggle] span,
  [data-nav-panel],
  .nav-panel {
    transition-duration: 0.01ms !important;
  }

  #site-atmosphere {
    display: none;
  }

  .metal-human-active .metal-human {
    opacity: 0.28;
    transform: none;
  }

  body::before {
    animation: none;
    transform: none;
    opacity: 0.38;
  }
}

.no-atmosphere #site-atmosphere {
  display: none;
}

.no-atmosphere .hero {
  background:
    radial-gradient(circle at 70% 42%, rgba(43, 177, 173, 0.18), transparent 30%),
    linear-gradient(145deg, #071720, #183e3f);
}
