:root {
  --bg-1: #020a06;
  --bg-2: #083221;
  --bg-3: #0f4a2f;
  --surface: rgba(8, 24, 16, 0.7);
  --surface-2: rgba(10, 38, 24, 0.74);
  --line: rgba(138, 255, 186, 0.28);
  --line-strong: rgba(161, 255, 200, 0.56);
  --text: #edfff3;
  --muted: #b8dbc5;
  --accent: #8dffc0;
  --accent-2: #34d87b;
  --accent-3: #baffd5;
  --shadow: 0 24px 60px rgba(2, 14, 9, 0.65);
  --hero-scroll: 0px;
  --track-shift: 0px;
  --speed-shift: 0px;
  --smoke-shift: 0px;
  --cab-shift: 0px;
  --cab-roll: 0deg;
  --desk-shift: 0px;
  --throttle-shift: 0px;
  --scenery-shift: 0px;
  --signal-shift: 0px;
  --train-rise: 0px;
  --train-scale: 1;
  --glow-pulse: 1;
  --tunnel-shift: 0px;
  --station-flash: 0.3;
  --wall-glow: 0.2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(130, 255, 182, 0.2), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(74, 218, 132, 0.2), transparent 28%),
    radial-gradient(circle at 50% 86%, rgba(39, 180, 98, 0.12), transparent 40%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2) 52%, var(--bg-3));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: min(44vw, 520px);
  height: min(44vw, 520px);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(58px);
  z-index: 0;
}

body::before {
  top: -12vw;
  left: -10vw;
  background: rgba(140, 255, 196, 0.15);
}

body::after {
  bottom: -16vw;
  right: -10vw;
  background: rgba(56, 226, 124, 0.14);
}

body.pre-enter {
  overflow: hidden;
}

body.pre-enter .topbar,
body.pre-enter main,
body.pre-enter footer {
  filter: blur(6px) saturate(0.9);
  transform: scale(1.01);
  pointer-events: none;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
  opacity: 0.2;
  z-index: 1;
}

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(120, 255, 177, 0.2), transparent 38%),
    radial-gradient(circle at 50% 85%, rgba(38, 137, 82, 0.3), transparent 46%),
    linear-gradient(160deg, rgba(0, 0, 0, 0.8), rgba(2, 20, 11, 0.94));
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.entry-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.entry-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

.entry-card {
  position: relative;
  z-index: 2;
  width: min(590px, 100%);
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(7, 34, 21, 0.82), rgba(4, 19, 12, 0.78));
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(9px);
  padding: 1.5rem;
  text-align: center;
}

.entry-kicker {
  margin: 0;
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-card h1 {
  margin: 0.6rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(2.3rem, 8vw, 4.2rem);
}

.entry-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.entry-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  color: var(--accent-3);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.entry-admin-link:hover {
  color: #ffffff;
}

.enter-btn {
  position: relative;
  z-index: 4;
  margin-top: 1.2rem;
  border: 1px solid rgba(3, 24, 13, 0.8);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: #032010;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 0.8rem 2rem;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(6, 86, 43, 0.5);
}

.enter-btn::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 18px;
  border: 1px solid rgba(150, 255, 196, 0.3);
  opacity: 0.6;
  animation: pulseRing 2.4s ease-out infinite;
}

.motion-btn {
  animation: buttonFloat 2.6s ease-in-out infinite;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.motion-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 36px rgba(7, 95, 47, 0.5);
}

@keyframes buttonFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.96);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 50;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.76rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(5, 20, 13, 0.8), rgba(5, 17, 11, 0.64));
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
}

.brand-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(136, 255, 190, 0.82);
}

.menu {
  display: flex;
  justify-content: flex-end;
  gap: 0.56rem;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 25, 15, 0.6);
  padding: 0.5rem 0.82rem;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.menu a:hover {
  color: #052112;
  background: var(--accent);
  border-color: rgba(164, 255, 199, 0.78);
  transform: translateY(-2px);
}

.menu a.menu-accent {
  color: #042111;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(164, 255, 199, 0.88);
  box-shadow: 0 10px 22px rgba(18, 110, 63, 0.26);
}

.menu a.menu-accent:hover {
  color: #021208;
  background: linear-gradient(135deg, #c6ffd9, #59e18e);
}

main {
  width: min(1240px, calc(100% - 2rem));
  margin: 1rem auto 2.4rem;
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: min(90vh, 860px);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: stretch;
  perspective: 1200px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(194, 255, 221, 0.2), transparent 20%),
    radial-gradient(circle at 50% 44%, rgba(94, 191, 133, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 42, 31, 0.88), rgba(5, 15, 10, 0.98) 78%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(164, 255, 201, 0.08), transparent 24%),
    linear-gradient(108deg, rgba(0, 0, 0, 0.62), rgba(5, 34, 22, 0.3) 48%, rgba(11, 61, 38, 0.36)),
    linear-gradient(to top, rgba(1, 10, 6, 0.92), transparent 48%);
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transform-style: preserve-3d;
}

.train-hud {
  position: absolute;
  left: 50%;
  top: 6%;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hud-chip {
  border-radius: 999px;
  border: 1px solid rgba(190, 255, 219, 0.28);
  background: rgba(6, 25, 15, 0.7);
  color: #d9ffea;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.42rem 0.72rem;
  box-shadow: 0 0 16px rgba(116, 255, 175, 0.12);
}

.cab-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.cab-shell {
  position: absolute;
  inset: 1rem 1rem 18% 1rem;
  z-index: 1;
  border-radius: 34px 34px 20px 20px;
  transform-style: preserve-3d;
  transform: translateY(var(--cab-shift)) rotateY(var(--cab-roll));
}

.cab-shell::before,
.cab-shell::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 10%;
  background:
    linear-gradient(180deg, rgba(24, 45, 34, 0.96), rgba(6, 11, 8, 0.98)),
    linear-gradient(90deg, rgba(194, 255, 222, 0.06), transparent 65%);
  border: 1px solid rgba(168, 255, 201, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.cab-shell::before {
  left: 0;
  clip-path: polygon(0 0, 100% 6%, 84% 100%, 0 100%);
}

.cab-shell::after {
  right: 0;
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 16% 100%);
}

.cab-ceiling {
  position: absolute;
  inset: 0 0 auto 0;
  height: 19%;
  border-radius: 30px 30px 0 0;
  background:
    linear-gradient(180deg, rgba(16, 34, 25, 0.96), rgba(8, 15, 11, 0.98)),
    linear-gradient(90deg, rgba(173, 255, 210, 0.08), transparent 30%, transparent 70%, rgba(173, 255, 210, 0.08));
  border: 1px solid rgba(164, 255, 199, 0.16);
  box-shadow: inset 0 -18px 28px rgba(0, 0, 0, 0.46);
}

.cab-window-frame {
  position: absolute;
  inset: 10% 8% 13% 8%;
  border-radius: 24px 24px 16px 16px;
  padding: clamp(14px, 1.8vw, 24px);
  background:
    linear-gradient(145deg, rgba(16, 42, 28, 0.98), rgba(8, 14, 10, 0.96)),
    linear-gradient(90deg, rgba(180, 255, 213, 0.08), transparent 20%, transparent 80%, rgba(180, 255, 213, 0.08));
  border: 1px solid rgba(168, 255, 201, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(204, 255, 224, 0.08),
    0 24px 38px rgba(0, 0, 0, 0.34);
}

.cab-window-frame::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -2%;
  height: 18%;
  border-radius: 16px 16px 22px 22px;
  background: linear-gradient(180deg, rgba(35, 52, 43, 0.8), rgba(7, 10, 8, 0.98));
  filter: blur(1px);
}

.cab-window {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px 18px 14px 14px;
  background:
    radial-gradient(circle at 50% 12%, rgba(196, 255, 225, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(32, 63, 48, 0.95), rgba(11, 18, 14, 0.98) 62%);
  box-shadow: inset 0 -60px 80px rgba(0, 0, 0, 0.42);
}

.cab-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
  pointer-events: none;
}

.tunnel-arch {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(229, 255, 239, 0.06), transparent 18%),
    radial-gradient(circle at 50% -8%, rgba(18, 33, 25, 0.98) 0 48%, transparent 49%),
    linear-gradient(180deg, rgba(10, 16, 13, 0.98), transparent 26%);
}

.tunnel-arch::before,
.tunnel-arch::after {
  content: "";
  position: absolute;
  top: 6%;
  bottom: 8%;
  width: 19%;
  background:
    linear-gradient(180deg, rgba(30, 39, 34, 0.98), rgba(11, 14, 12, 0.98)),
    repeating-linear-gradient(
      to bottom,
      rgba(214, 255, 230, calc(0.05 + var(--wall-glow))) 0 4px,
      transparent 4px 42px
    );
  opacity: 0.96;
  filter: blur(0.4px);
}

.tunnel-arch::before {
  left: -1%;
  clip-path: polygon(0 0, 100% 16%, 84% 100%, 0 100%);
}

.tunnel-arch::after {
  right: -1%;
  clip-path: polygon(16% 16%, 100% 0, 100% 100%, 0 100%);
}

.window-glow,
.headlight-glare,
.distant-lights,
.tunnel-arch,
.tunnel-lights,
.station-wash,
.side-scenery,
.window-divider,
.wiper,
.horizon-band,
.track-vanish,
.track-floor,
.train-nose,
.signal {
  position: absolute;
}

.window-glow {
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(170, 255, 205, 0.16), transparent 26%),
    radial-gradient(circle at 50% 68%, rgba(115, 255, 175, 0.08), transparent 34%);
}

.headlight-glare {
  left: 50%;
  top: 24%;
  width: 48%;
  height: 28%;
  transform: translateX(-50%) scale(var(--glow-pulse));
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 250, 211, 0.7), rgba(255, 250, 211, 0.1) 42%, transparent 68%);
  filter: blur(12px);
  opacity: 0.82;
}

.distant-lights {
  left: 0;
  right: 0;
  top: 10%;
  height: 24%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 246, 190, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 40%, rgba(204, 255, 220, 0.86) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 28%, rgba(255, 244, 170, 1) 0 3px, transparent 4px),
    radial-gradient(circle at 67% 42%, rgba(190, 255, 217, 0.88) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 55%, rgba(255, 247, 194, 0.84) 0 2px, transparent 3px);
  filter: blur(0.1px);
  opacity: 0.78;
}

.tunnel-lights {
  top: 10%;
  bottom: 10%;
  width: 12%;
  z-index: 1;
  opacity: 0.84;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 246, 183, 0.95) 0 14px,
      rgba(255, 246, 183, 0.32) 14px 18px,
      transparent 18px 84px
    );
  background-position: center var(--tunnel-shift);
  filter: blur(0.6px);
}

.tunnel-lights-left {
  left: 6%;
  transform: skewY(12deg);
}

.tunnel-lights-right {
  right: 6%;
  transform: skewY(-12deg);
}

.station-wash {
  top: 16%;
  bottom: 12%;
  width: 24%;
  z-index: 1;
  opacity: var(--station-flash);
  filter: blur(10px);
  mix-blend-mode: screen;
}

.station-wash-left {
  left: 0;
  background:
    linear-gradient(90deg, rgba(255, 246, 201, 0.28), rgba(217, 255, 232, 0.08), transparent 72%);
  transform: skewY(10deg);
}

.station-wash-right {
  right: 0;
  background:
    linear-gradient(270deg, rgba(255, 246, 201, 0.28), rgba(217, 255, 232, 0.08), transparent 72%);
  transform: skewY(-10deg);
}

.side-scenery {
  top: 22%;
  bottom: 12%;
  width: 18%;
  opacity: 0.48;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(232, 255, 240, 0.22) 0 18px,
      rgba(21, 33, 27, 0.08) 18px 54px,
      rgba(232, 255, 240, 0.14) 54px 66px,
      rgba(21, 33, 27, 0.08) 66px 120px
    );
  background-position: center var(--scenery-shift);
  filter: blur(1.4px);
  z-index: 2;
}

.side-scenery-left {
  left: 0;
  transform: skewY(14deg);
}

.side-scenery-right {
  right: 0;
  transform: skewY(-14deg);
}

.window-divider {
  left: 50%;
  top: 0;
  bottom: 10%;
  width: clamp(10px, 1.4vw, 16px);
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(22, 42, 31, 0.98), rgba(9, 14, 11, 0.96)),
    linear-gradient(90deg, rgba(196, 255, 223, 0.08), transparent 45%, transparent 55%, rgba(196, 255, 223, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(196, 255, 223, 0.06),
    0 0 18px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.wiper {
  bottom: 8%;
  width: 34%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(205, 230, 216, 0.12), rgba(22, 27, 24, 0.96));
  transform-origin: right center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.wiper-left {
  left: 16%;
  transform: rotate(-24deg);
}

.wiper-right {
  right: 16%;
  transform: scaleX(-1) rotate(-24deg);
}

.horizon-band {
  left: 16%;
  right: 16%;
  top: 26%;
  height: 14%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(203, 255, 224, 0.28), rgba(140, 255, 192, 0.06) 55%, transparent 68%);
  filter: blur(8px);
}

.track-vanish {
  left: 50%;
  top: 27%;
  width: 44%;
  height: 18%;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(250, 255, 241, 0.18), rgba(255, 250, 205, 0.05) 60%, transparent),
    radial-gradient(circle at 50% 12%, rgba(255, 248, 202, 0.54), transparent 48%);
  clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%);
  filter: blur(2px);
  opacity: 0.86;
}

.track-floor {
  left: 6%;
  right: 6%;
  bottom: -2%;
  top: 30%;
  overflow: hidden;
  transform: perspective(860px) rotateX(62deg) scaleX(1.12);
  transform-origin: center top;
  z-index: 3;
}

.track-floor::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(70, 84, 74, 0.18), rgba(12, 13, 10, 0.98) 26%),
    linear-gradient(90deg, rgba(96, 78, 52, 0.18), transparent 14%, transparent 86%, rgba(96, 78, 52, 0.18));
  clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.track-floor::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(245, 255, 250, 0.08) 0 4px,
      transparent 4px 20px
    );
  background-position: center var(--speed-shift);
  opacity: 0.28;
  z-index: 1;
}

.rail {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(219, 241, 228, 0.94) 24%, rgba(128, 144, 134, 0.98));
  filter: drop-shadow(0 0 14px rgba(230, 255, 243, 0.26));
  z-index: 4;
}

.rail-left {
  clip-path: polygon(43.8% 0, 47.8% 0, 15.8% 100%, 4.2% 100%);
}

.rail-right {
  clip-path: polygon(52.2% 0, 56.2% 0, 95.8% 100%, 84.2% 100%);
}

.sleeper-field {
  inset: 0;
  clip-path: polygon(33% 0, 67% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(156, 121, 68, 0.98) 0 16px,
      rgba(92, 68, 37, 0.98) 16px 26px,
      transparent 26px 48px
    );
  background-position: center var(--track-shift);
  opacity: 0.98;
  z-index: 3;
}

.speed-lines {
  inset: 2% 8% 0 8%;
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(236, 255, 244, 0.24) 0 8px,
      transparent 8px 24px
    );
  background-position: center var(--speed-shift);
  opacity: 0.78;
  z-index: 5;
}

.train-nose {
  left: 50%;
  bottom: 10%;
  width: clamp(150px, 21vw, 250px);
  height: 30%;
  transform: translateX(-50%) translateY(var(--train-rise)) scale(var(--train-scale));
  transform-origin: center bottom;
  z-index: 6;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.train-nose-top {
  position: absolute;
  left: 24%;
  right: 24%;
  top: 0;
  height: 22%;
  border-radius: 18px 18px 10px 10px;
  background:
    linear-gradient(180deg, rgba(25, 58, 40, 0.96), rgba(10, 26, 17, 0.98)),
    linear-gradient(90deg, rgba(208, 255, 226, 0.06), transparent 24%, transparent 76%, rgba(208, 255, 226, 0.06));
  border: 1px solid rgba(189, 255, 214, 0.18);
}

.train-nose-body {
  position: absolute;
  inset: 14% 0 0 0;
  border-radius: 26px 26px 34px 34px;
  background:
    linear-gradient(180deg, rgba(17, 45, 30, 0.98), rgba(6, 17, 11, 0.98)),
    linear-gradient(90deg, rgba(194, 255, 220, 0.08), transparent 18%, transparent 82%, rgba(194, 255, 220, 0.08));
  border: 1px solid rgba(176, 255, 207, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 -28px 34px rgba(0, 0, 0, 0.38);
}

.train-nose-body::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 9%;
  height: 18%;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(147, 255, 194, 0.06), transparent);
}

.nose-window,
.nose-light,
.nose-grill,
.nose-mark {
  position: absolute;
}

.nose-window {
  top: 16%;
  width: 22%;
  height: 18%;
  border-radius: 12px 12px 10px 10px;
  background:
    linear-gradient(180deg, rgba(209, 255, 229, 0.22), rgba(13, 29, 21, 0.96)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(200, 255, 222, 0.18);
  box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.22);
}

.nose-window-left {
  left: 20%;
}

.nose-window-right {
  right: 20%;
}

.nose-light {
  bottom: 24%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 249, 191, 0.96);
  box-shadow:
    0 0 22px rgba(255, 243, 146, 0.94),
    0 0 42px rgba(255, 243, 146, 0.42);
}

.nose-light-left {
  left: 20%;
}

.nose-light-right {
  right: 20%;
}

.nose-grill {
  left: 28%;
  right: 28%;
  bottom: 18%;
  height: 16%;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(195, 255, 218, 0.12) 0 4px,
      rgba(13, 23, 17, 0.98) 4px 8px
    );
  border: 1px solid rgba(175, 255, 206, 0.16);
}

.nose-mark {
  left: 50%;
  top: 42%;
  width: 18%;
  height: 30%;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 18%, 84% 100%, 16% 100%, 0 18%);
  background: linear-gradient(180deg, rgba(127, 255, 176, 0.92), rgba(40, 177, 95, 0.9));
  opacity: 0.9;
}

.calendar-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.66rem;
  margin-bottom: 0.9rem;
}

.calendar-preview-card {
  border-radius: 16px;
  border: 1px solid rgba(173, 255, 201, 0.22);
  background: linear-gradient(160deg, rgba(9, 33, 20, 0.86), rgba(6, 20, 13, 0.74));
  padding: 0.8rem;
  box-shadow: 0 18px 28px rgba(3, 19, 11, 0.28);
  transform: translateY(0);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.calendar-preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(173, 255, 201, 0.56);
  box-shadow: 0 24px 36px rgba(3, 19, 11, 0.36);
}

.preview-month {
  display: inline-flex;
  margin-bottom: 0.58rem;
  border-radius: 999px;
  padding: 0.24rem 0.54rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #032212;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-preview-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
}

.calendar-preview-card p {
  margin: 0.34rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.smoke-layer {
  inset: 0;
  opacity: 0.46;
  filter: blur(10px);
}

.smoke-layer-a {
  background:
    radial-gradient(circle at 24% 76%, rgba(204, 255, 223, 0.3), transparent 16%),
    radial-gradient(circle at 50% 82%, rgba(210, 255, 227, 0.28), transparent 18%),
    radial-gradient(circle at 72% 74%, rgba(210, 255, 227, 0.24), transparent 14%);
  transform: translateY(var(--smoke-shift)) scale(1.04);
}

.smoke-layer-b {
  background:
    radial-gradient(circle at 34% 58%, rgba(182, 255, 212, 0.18), transparent 14%),
    radial-gradient(circle at 64% 62%, rgba(182, 255, 212, 0.16), transparent 12%);
}

.signal {
  bottom: 18%;
  width: clamp(30px, 4vw, 44px);
  height: 32%;
  opacity: 0.78;
  transform: translateY(var(--signal-shift));
  z-index: 7;
}

.signal::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 72%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(206, 226, 214, 0.16), rgba(32, 39, 34, 0.9));
}

.signal span {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(194, 255, 220, 0.92);
  box-shadow: 0 0 18px rgba(194, 255, 220, 0.9);
}

.signal span:last-child {
  top: 24%;
  width: 8px;
  height: 8px;
  background: rgba(255, 241, 156, 0.86);
  box-shadow: 0 0 12px rgba(255, 241, 156, 0.78);
}

.signal-left {
  left: 17%;
}

.signal-left span:first-child {
  top: 6%;
}

.signal-right {
  right: 17%;
}

.signal-right span:first-child {
  top: 14%;
}

.cab-pillars {
  position: absolute;
  inset: 0;
}

.pillar {
  position: absolute;
  top: 8%;
  bottom: 12%;
  width: clamp(18px, 2vw, 24px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(19, 41, 30, 0.98), rgba(5, 12, 9, 0.94)),
    linear-gradient(90deg, rgba(181, 255, 211, 0.08), transparent 34%, transparent 66%, rgba(181, 255, 211, 0.08));
  box-shadow: inset 0 0 0 1px rgba(177, 255, 208, 0.08);
}

.pillar-left {
  left: 5.4%;
}

.pillar-right {
  right: 5.4%;
}

.control-desk {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2%;
  height: 20%;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1rem;
  align-items: end;
  transform-style: preserve-3d;
  transform: translateY(var(--desk-shift)) perspective(1100px) rotateX(68deg);
}

.control-desk::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 82%;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(192, 255, 220, 0.18), transparent 70%);
  filter: blur(10px);
}

.desk-panel,
.desk-core {
  position: relative;
  height: 100%;
  border-radius: 24px 24px 12px 12px;
  border: 1px solid rgba(165, 255, 199, 0.18);
  background:
    linear-gradient(180deg, rgba(11, 31, 21, 0.96), rgba(7, 11, 9, 0.98)),
    linear-gradient(90deg, rgba(173, 255, 208, 0.06), transparent 24%, transparent 76%, rgba(173, 255, 208, 0.06));
  box-shadow: inset 0 10px 20px rgba(255, 255, 255, 0.03);
}

.desk-panel {
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.desk-core {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gauge {
  display: grid;
  gap: 0.2rem;
}

.gauge strong {
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
}

.gauge span {
  color: var(--muted);
  font-size: 0.76rem;
}

.dial {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(203, 255, 224, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 50%, rgba(6, 12, 9, 0.95) 0 52%, transparent 53%),
    conic-gradient(from 180deg, rgba(84, 108, 92, 0.28), rgba(170, 255, 205, 0.72), rgba(84, 108, 92, 0.28));
}

.dial-green {
  box-shadow: 0 0 18px rgba(117, 255, 175, 0.18);
}

.dial-soft {
  box-shadow: 0 0 18px rgba(243, 255, 186, 0.12);
}

.console-light {
  position: absolute;
  top: 22%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.console-light-a {
  left: 20%;
  background: rgba(127, 255, 176, 0.98);
  box-shadow: 0 0 18px rgba(127, 255, 176, 0.9);
}

.console-light-b {
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 237, 133, 0.96);
  box-shadow: 0 0 16px rgba(255, 237, 133, 0.84);
}

.console-light-c {
  right: 20%;
  background: rgba(200, 255, 223, 0.94);
  box-shadow: 0 0 16px rgba(200, 255, 223, 0.82);
}

.throttle-slot {
  width: 72%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42, 55, 48, 0.96), rgba(16, 20, 17, 0.98));
  box-shadow: inset 0 0 0 1px rgba(181, 255, 211, 0.08);
}

.throttle {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 28px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(182, 255, 212, 0.92), rgba(57, 185, 110, 0.82));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.32);
  transform: translateX(var(--throttle-shift)) translateY(-50%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 3;
  margin: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(5, 23, 14, 0.56), rgba(4, 16, 10, 0.42));
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.hero-content {
  align-self: start;
  max-width: min(620px, calc(100% - 2.4rem));
  padding: clamp(1.05rem, 2.4vw, 1.55rem);
}

.kicker {
  margin: 0;
  font-size: 0.74rem;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  margin: 0.55rem 0 0;
  max-width: 14ch;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 6vw, 5.1rem);
  line-height: 0.94;
  text-wrap: balance;
}

.hero h1 span {
  color: #cbffe1;
  text-shadow: 0 0 28px rgba(147, 255, 199, 0.28);
}

.lead {
  margin: 0.92rem 0 0;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 0.74rem 1rem;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  color: #032212;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px rgba(24, 108, 63, 0.34);
}

.btn-outline {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(7, 29, 18, 0.7);
}

.btn-admin {
  color: #042111;
  background: rgba(198, 255, 219, 0.94);
  border: 1px solid rgba(189, 255, 214, 0.95);
  box-shadow: 0 12px 24px rgba(20, 103, 60, 0.28);
}

.admin-note {
  margin: 0.68rem 0 0;
  color: rgba(227, 255, 238, 0.78);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.hero-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.54rem;
}

.metric-card {
  border-radius: 12px;
  border: 1px solid rgba(163, 255, 201, 0.24);
  background: rgba(7, 29, 18, 0.52);
  padding: 0.58rem;
  display: grid;
  gap: 0.22rem;
}

.metric-card strong {
  font-family: "Sora", sans-serif;
  font-size: 0.84rem;
}

.metric-card span {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-panel {
  align-self: start;
  justify-self: end;
  width: min(380px, calc(100% - 2.4rem));
  padding: 1rem;
  transform-style: preserve-3d;
}

.access-panel {
  scroll-margin-top: 6.8rem;
}

.hero-panel h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.06rem;
}

.panel-tag {
  margin: 0 0 0.42rem;
  font-size: 0.72rem;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.access-copy {
  margin: 0.72rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-panel ul {
  margin: 0.72rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.52rem;
}

.access-points {
  margin-top: 0.9rem;
}

.flash-stack {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.flash-pill {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.68rem 0.8rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

.flash-danger {
  color: #ffe3e3;
  background: rgba(130, 20, 20, 0.34);
  border-color: rgba(255, 154, 154, 0.34);
}

.flash-warning {
  color: #fff1d3;
  background: rgba(139, 81, 5, 0.3);
  border-color: rgba(255, 202, 124, 0.34);
}

.flash-success {
  color: #ddffe8;
  background: rgba(8, 108, 58, 0.28);
  border-color: rgba(145, 255, 196, 0.28);
}

.access-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.78rem;
}

.field {
  display: grid;
  gap: 0.38rem;
}

.field span {
  font-size: 0.76rem;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.field input {
  width: 100%;
  border: 1px solid rgba(170, 255, 205, 0.18);
  border-radius: 14px;
  background: rgba(3, 16, 10, 0.74);
  color: var(--text);
  padding: 0.9rem 0.95rem;
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.field input::placeholder {
  color: rgba(210, 240, 220, 0.4);
}

.field input:focus {
  border-color: rgba(164, 255, 199, 0.72);
  box-shadow: 0 0 0 4px rgba(91, 228, 149, 0.14);
}

.access-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.access-meta,
.session-badges {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.access-meta span,
.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 255, 202, 0.18);
  background: rgba(6, 26, 15, 0.62);
  padding: 0.44rem 0.7rem;
  color: var(--text);
  font-size: 0.76rem;
}

.access-footnote {
  margin: 0.82rem 0 0;
  color: rgba(232, 255, 240, 0.68);
  font-size: 0.79rem;
  line-height: 1.45;
}

.access-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.panel-cta {
  margin-top: 0.8rem;
  display: inline-flex;
}

.ticker {
  border-radius: 16px;
  border: 1px solid rgba(151, 255, 192, 0.2);
  background: rgba(6, 25, 15, 0.56);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  white-space: nowrap;
  padding: 0.64rem 0.7rem;
  animation: tickerMove 30s linear infinite;
}

.ticker-track span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-3);
}

.ticker-track span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 0.52rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(136, 255, 190, 0.68);
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
}

.hero::after,
.ticker::after,
.section::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -24%;
  width: 32%;
  background: linear-gradient(110deg, transparent, rgba(220, 255, 236, 0.26), transparent);
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.is-visible.hero::after,
.is-visible.ticker::after,
.is-visible.section::after {
  animation: sectionSweep 1.1s ease-out var(--reveal-delay, 0ms) 1;
}

@keyframes sectionSweep {
  0% {
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(430%) skewX(-18deg);
    opacity: 0;
  }
}

.section-head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

.section-tag {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
}

.section h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
}

.gallery-controls {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.ctrl {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(7, 30, 18, 0.7);
  border-radius: 10px;
  padding: 0.45rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.ctrl:hover {
  background: var(--accent);
  color: #032111;
  transform: translateY(-2px);
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 24vw);
  gap: 0.76rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding-bottom: 0.42rem;
  scroll-snap-type: x mandatory;
}

.gallery-track::-webkit-scrollbar {
  height: 8px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: rgba(132, 255, 180, 0.45);
  border-radius: 999px;
}

.gallery-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(174, 255, 202, 0.24);
  background: rgba(6, 24, 15, 0.82);
  scroll-snap-align: start;
  transform: perspective(920px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.gallery-card:hover {
  border-color: rgba(174, 255, 202, 0.52);
  box-shadow: 0 18px 30px rgba(4, 26, 14, 0.48);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 0.5rem 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 0.82rem;
}

.calendar-shell {
  border-radius: 14px;
  border: 1px solid rgba(135, 220, 166, 0.46);
  background: #f6fff8;
  padding: 0.66rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.7rem;
}

.tag {
  border-radius: 999px;
  padding: 0.28rem 0.54rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #12251a;
}

.tag.receso {
  background: #cdead1;
}

.tag.cte {
  background: #f7d7e3;
}

.tag.suspension {
  background: #e6e6e6;
}

.tag.registro {
  background: #d4e4fb;
}

.tag.taller {
  background: #fff3b0;
}

#calendar {
  color: #25382b;
  min-height: 680px;
}

.calendar-fallback-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.66rem;
  min-height: 680px;
  align-content: start;
}

.calendar-fallback-item {
  border-radius: 14px;
  border: 1px solid rgba(29, 97, 58, 0.16);
  background: linear-gradient(160deg, #ffffff, #eef7f0);
  padding: 0.82rem;
  box-shadow: 0 12px 22px rgba(31, 62, 43, 0.08);
  display: grid;
  gap: 0.34rem;
}

.calendar-fallback-month {
  display: inline-flex;
  justify-self: start;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: #1f7c46;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-fallback-item strong {
  color: #183122;
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
}

.calendar-fallback-chip {
  justify-self: start;
  border-radius: 999px;
  padding: 0.26rem 0.54rem;
  background: #dff5e6;
  color: #1b5b36;
  font-size: 0.76rem;
  font-weight: 700;
}

#calendar .fc-toolbar-title {
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
}

#calendar .fc-button-primary {
  background: #1f7c46;
  border-color: #1f7c46;
}

#calendar .fc-button-primary:not(:disabled):hover {
  background: #175f34;
  border-color: #175f34;
}

.fc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: 2px;
}

.fc-badge {
  border-radius: 999px;
  background: #1f7c46;
  color: #fff;
  padding: 1px 4px;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.highlights {
  border-radius: 14px;
  border: 1px solid rgba(174, 255, 202, 0.2);
  background: rgba(7, 27, 17, 0.74);
  padding: 0.84rem;
}

.highlights h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.highlights ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.highlights li {
  display: grid;
  gap: 0.14rem;
}

.highlights strong {
  color: var(--text);
  font-size: 0.88rem;
}

.highlights span {
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.72rem;
}

.contact-card {
  text-decoration: none;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid rgba(173, 255, 201, 0.24);
  background: rgba(7, 30, 18, 0.78);
  padding: 0.85rem;
  display: grid;
  gap: 0.34rem;
  transform-style: preserve-3d;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(173, 255, 201, 0.56);
  box-shadow: 0 14px 26px rgba(4, 22, 12, 0.46);
}

.contact-card img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

footer {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto 1.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.footer-access {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--accent-3);
  text-decoration: none;
  font-weight: 700;
}

.footer-access:hover {
  color: #ffffff;
}

body.reveal-ready .hero,
body.reveal-ready .ticker,
body.reveal-ready .section,
body.reveal-ready .hero-content,
body.reveal-ready .hero-panel,
body.reveal-ready .contact-card,
body.reveal-ready .gallery-card,
body.reveal-ready .calendar-preview-card,
body.reveal-ready footer {
  opacity: 0;
  transform: translateY(48px) rotateX(12deg) scale(0.96);
  filter: saturate(0.74) blur(4px);
  transition: opacity 0.82s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.82s cubic-bezier(0.2, 0.9, 0.2, 1), filter 0.82s cubic-bezier(0.2, 0.9, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

body.reveal-ready .is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 820px;
  }

  .hero-content,
  .hero-panel {
    margin: 0.92rem;
  }

  .hero-panel {
    width: auto;
    justify-self: auto;
  }

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

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .cab-shell {
    inset: 0.85rem 0.85rem 20% 0.85rem;
  }

  .cab-window-frame {
    inset: 10% 7% 14% 7%;
  }

  .hero-content {
    max-width: min(560px, calc(100% - 1.84rem));
  }

  .control-desk {
    left: 6%;
    right: 6%;
    height: 18%;
  }

  .calendar-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ticker-track {
    animation-duration: 24s;
  }
}

@media (max-width: 760px) {
  .topbar {
    width: calc(100% - 1rem);
    padding: 0.62rem 0.68rem;
    border-radius: 12px;
    grid-template-columns: 1fr;
    top: 0.4rem;
  }

  .menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    gap: 0.42rem;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu a {
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 0.44rem 0.64rem;
  }

  main {
    width: calc(100% - 1rem);
    margin: 0.85rem auto 1.8rem;
    gap: 0.82rem;
  }

  .hero {
    border-radius: 18px;
    min-height: 760px;
  }

  .train-hud {
    top: 4%;
    gap: 0.34rem;
    flex-wrap: wrap;
    width: calc(100% - 1rem);
    justify-content: center;
  }

  .hud-chip {
    font-size: 0.62rem;
    padding: 0.34rem 0.52rem;
  }

  .hero-content,
  .hero-panel {
    margin: 0.72rem;
    border-radius: 14px;
  }

  .hero-content {
    padding: 0.92rem;
  }

  .hero-panel {
    padding: 0.88rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .cab-shell {
    inset: 0.72rem 0.72rem 22% 0.72rem;
  }

  .cab-window-frame {
    inset: 11% 5% 16% 5%;
    border-radius: 18px 18px 14px 14px;
  }

  .cab-window {
    border-radius: 14px 14px 12px 12px;
  }

  .window-divider {
    width: 10px;
  }

  .wiper {
    width: 38%;
    height: 3px;
  }

  .track-floor {
    left: 3%;
    right: 3%;
    top: 40%;
  }

  .tunnel-lights {
    width: 10%;
    opacity: 0.64;
  }

  .station-wash {
    width: 20%;
  }

  .train-nose {
    bottom: 11%;
    width: clamp(132px, 34vw, 210px);
    height: 27%;
  }

  .signal {
    width: 26px;
    opacity: 0.52;
  }

  .control-desk {
    left: 3.5%;
    right: 3.5%;
    bottom: 1.4%;
    height: 17%;
    gap: 0.54rem;
    grid-template-columns: 0.9fr 1.2fr 0.9fr;
  }

  .desk-panel,
  .desk-core {
    border-radius: 16px 16px 10px 10px;
  }

  .desk-panel {
    padding: 0.74rem;
  }

  .gauge strong {
    font-size: 0.76rem;
  }

  .gauge span {
    display: none;
  }

  .dial {
    width: 42px;
    height: 42px;
  }

  .section {
    border-radius: 16px;
    padding: 0.88rem;
  }

  .section h2 {
    font-size: clamp(1.08rem, 5.5vw, 1.48rem);
  }

  .gallery-track {
    grid-auto-columns: minmax(230px, 82vw);
  }

  .calendar-shell {
    padding: 0.52rem;
  }

  .calendar-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-fallback-board {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  #calendar .fc-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.42rem;
  }

  #calendar .fc-toolbar-title {
    font-size: 0.95rem;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: clamp(1.9rem, 12vw, 3.2rem);
    max-width: none;
  }

  .ticker-track {
    animation-duration: 20s;
  }
}

@media (max-width: 560px) {
  .entry-card {
    border-radius: 16px;
    padding: 1.05rem;
  }

  .entry-card p {
    font-size: 0.94rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 11.5vw, 2.7rem);
    line-height: 0.98;
  }

  .hero-metrics {
    gap: 0.42rem;
  }

  .hero {
    min-height: 680px;
  }

  .cab-shell {
    inset: 0.64rem 0.64rem 24% 0.64rem;
  }

  .cab-ceiling {
    height: 16%;
  }

  .cab-window-frame {
    inset: 10% 4% 18% 4%;
    padding: 12px;
  }

  .train-hud {
    top: 3.2%;
  }

  .window-divider {
    width: 8px;
    bottom: 12%;
  }

  .wiper {
    width: 40%;
  }

  .signal-right {
    right: 10%;
  }

  .signal-left {
    left: 10%;
  }

  .tunnel-lights {
    width: 9%;
    opacity: 0.54;
  }

  .station-wash {
    width: 17%;
  }

  .train-nose {
    bottom: 12%;
    width: clamp(120px, 42vw, 180px);
    height: 24%;
  }

  .nose-light {
    width: 14px;
    height: 14px;
  }

  .control-desk {
    grid-template-columns: 0.74fr 1.1fr 0.74fr;
    height: 15%;
    gap: 0.4rem;
  }

  .desk-panel {
    padding: 0.56rem;
  }

  .console-light {
    top: 18%;
    width: 10px;
    height: 10px;
  }

  .throttle-slot {
    width: 82%;
  }

  .throttle {
    width: 24px;
    height: 40px;
  }

  .metric-card strong {
    font-size: 0.8rem;
  }

  .calendar-preview {
    grid-template-columns: 1fr;
  }

  .calendar-preview-card {
    padding: 0.68rem;
  }

  .gallery-track {
    grid-auto-columns: minmax(88vw, 88vw);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .ticker-track {
    animation-duration: 17s;
  }
}

@media (hover: none) and (pointer: coarse) {
  .motion-btn:hover,
  .btn:hover,
  .gallery-card:hover,
  .contact-card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-btn,
  .ticker-track,
  .enter-btn::before {
    animation: none !important;
  }

  body.reveal-ready .hero,
  body.reveal-ready .ticker,
  body.reveal-ready .section,
  body.reveal-ready .hero-content,
  body.reveal-ready .hero-panel,
  body.reveal-ready .contact-card,
  body.reveal-ready .gallery-card,
  body.reveal-ready footer {
    transition-duration: 0.28s;
  }
}

/* Cinematic hero override */
.hero {
  --scene-pan-x: 0;
  --scene-pan-y: 0;
  --grid-shift: 0px;
  --orbit-rotate: 0deg;
  --beam-shift: 0px;
  --core-float: 0px;
  --card-float: 0px;
  --glow-strength: 1;
  --scanline-shift: 0px;
  --aurora-shift: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  grid-template-areas:
    "content visual"
    "panel visual";
  gap: clamp(1.2rem, 3vw, 2.4rem) clamp(1.4rem, 3.6vw, 3.2rem);
  align-items: start;
  min-height: min(1020px, 114svh);
  padding: clamp(6.8rem, 9vw, 8.6rem) clamp(1.1rem, 4vw, 4rem) clamp(3rem, 5vw, 4rem);
  overflow: clip;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  inset: 8% auto auto -12%;
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 255, 175, 0.22), transparent 72%);
  filter: blur(18px);
}

.hero::after {
  inset: auto -8% 4% auto;
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 184, 105, 0.18), transparent 72%);
  filter: blur(24px);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 255, 169, 0.17), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(42, 161, 92, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(4, 18, 12, 0.98), rgba(2, 10, 7, 1));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(140deg, rgba(3, 15, 10, 0.18) 0%, rgba(3, 15, 10, 0.78) 30%, rgba(3, 15, 10, 0.24) 62%, rgba(3, 15, 10, 0.9) 100%),
    radial-gradient(circle at 50% 40%, rgba(120, 255, 173, 0.1), transparent 42%);
}

.hero-visual {
  position: relative;
  grid-area: visual;
  min-height: clamp(560px, 58vw, 860px);
  pointer-events: none;
  z-index: 1;
  align-self: stretch;
}

.hero-atmosphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.scene-hud {
  position: absolute;
  top: clamp(1rem, 2vw, 1.4rem);
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 0.65rem;
  transform: translateX(-50%);
}

.hud-chip {
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(162, 255, 204, 0.28);
  border-radius: 999px;
  background: rgba(7, 30, 20, 0.7);
  color: rgba(231, 255, 240, 0.88);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.scene-shell {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(740px, 100%);
  aspect-ratio: 1.05;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    perspective(1800px)
    rotateX(10deg)
    rotateY(calc(var(--scene-pan-x) * 0.07deg))
    rotateZ(calc(var(--scene-pan-x) * 0.02deg));
  filter: drop-shadow(0 48px 100px rgba(0, 0, 0, 0.42));
}

.scene-backdrop,
.scene-aurora,
.scene-stars,
.scene-grid,
.scene-beam,
.scene-orbit,
.scene-axis,
.scene-core,
.showcase-card,
.signal-column,
.scene-scanline {
  position: absolute;
}

.scene-backdrop {
  inset: 8% 6% 5%;
  border-radius: 42px;
  border: 1px solid rgba(156, 255, 197, 0.16);
  background:
    radial-gradient(circle at 50% 40%, rgba(79, 255, 150, 0.18), transparent 28%),
    radial-gradient(circle at 50% 65%, rgba(24, 121, 64, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(7, 29, 20, 0.88) 0%, rgba(5, 18, 12, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(224, 255, 234, 0.08),
    inset 0 -20px 80px rgba(0, 0, 0, 0.32),
    0 24px 70px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transform: translateZ(-50px);
}

.scene-backdrop::before,
.scene-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
}

.scene-backdrop::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0) 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
}

.scene-backdrop::after {
  inset: -10% -18%;
  background: linear-gradient(120deg, transparent 30%, rgba(198, 255, 218, 0.22) 48%, transparent 62%);
  transform: translateX(calc(var(--beam-shift) * 0.8));
  opacity: 0.65;
}

.scene-aurora {
  inset: 6% 9% 26%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 44%, rgba(118, 255, 171, 0.3), transparent 34%),
    radial-gradient(circle at 70% 26%, rgba(55, 189, 112, 0.26), transparent 28%),
    radial-gradient(circle at 52% 54%, rgba(229, 255, 236, 0.12), transparent 38%);
  filter: blur(34px);
  opacity: 0.9;
  transform: translateY(calc(var(--aurora-shift) * 0.5));
  animation: auroraDrift 16s ease-in-out infinite alternate;
}

.scene-stars {
  inset: 11% 12% 28%;
  background:
    radial-gradient(circle at 14% 34%, rgba(222, 255, 232, 0.86) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 22%, rgba(222, 255, 232, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 56%, rgba(222, 255, 232, 0.56) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 18%, rgba(222, 255, 232, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 46%, rgba(222, 255, 232, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 27% 12%, rgba(222, 255, 232, 0.44) 0 1px, transparent 2px);
  opacity: 0.7;
  animation: starBlink 9s ease-in-out infinite alternate;
}

.scene-grid {
  left: 7%;
  right: 7%;
  bottom: 5%;
  height: 38%;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(106, 255, 170, 0.08), rgba(106, 255, 170, 0)),
    repeating-linear-gradient(to right, rgba(157, 255, 198, 0.1) 0, rgba(157, 255, 198, 0.1) 1px, transparent 1px, transparent 54px),
    repeating-linear-gradient(to bottom, rgba(157, 255, 198, 0.14) 0, rgba(157, 255, 198, 0.14) 1px, transparent 1px, transparent 26px);
  background-position:
    center top,
    center center,
    center calc(var(--grid-shift) * 1.4);
  box-shadow:
    inset 0 26px 40px rgba(106, 255, 170, 0.08),
    0 -20px 60px rgba(16, 118, 62, 0.14);
  opacity: 0.85;
}

.scene-beam {
  left: 50%;
  top: 14%;
  width: 22%;
  height: 66%;
  transform: translateX(-50%) translateY(calc(var(--beam-shift) * 0.12));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(216, 255, 229, 0), rgba(216, 255, 229, 0.4) 28%, rgba(100, 255, 166, 0.18) 74%, rgba(216, 255, 229, 0));
  filter: blur(12px);
  opacity: calc(0.62 * var(--glow-strength));
}

.scene-orbit {
  top: 48%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(169, 255, 205, 0.2);
  transform-style: preserve-3d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.orbit-back {
  width: 58%;
  aspect-ratio: 1;
  transform:
    translate(-50%, -50%)
    rotateX(75deg)
    rotateZ(var(--orbit-rotate));
}

.orbit-front {
  width: 72%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(169, 255, 205, 0.16);
  transform:
    translate(-50%, -50%)
    rotateX(82deg)
    rotateZ(calc(var(--orbit-rotate) * -1.35));
}

.scene-axis {
  left: 50%;
  top: 16%;
  bottom: 18%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(213, 255, 228, 0), rgba(213, 255, 228, 0.64), rgba(213, 255, 228, 0));
  opacity: 0.78;
}

.scene-core {
  top: 47%;
  left: 50%;
  width: 33%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translateY(var(--core-float))
    rotateX(calc(var(--scene-pan-y) * -0.12deg))
    rotateY(calc(var(--scene-pan-x) * 0.18deg));
}

.core-glow,
.core-shell,
.core-ring,
.core-crest {
  position: absolute;
}

.core-glow {
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113, 255, 173, 0.34), rgba(113, 255, 173, 0.06) 50%, transparent 74%);
  filter: blur(34px);
  opacity: calc(0.82 * var(--glow-strength));
}

.core-shell {
  inset: 14%;
  border-radius: 34px;
  border: 1px solid rgba(206, 255, 223, 0.16);
  background:
    linear-gradient(180deg, rgba(203, 255, 224, 0.08), rgba(203, 255, 224, 0.02)),
    linear-gradient(135deg, rgba(15, 48, 33, 0.96), rgba(7, 22, 15, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 40px rgba(0, 0, 0, 0.26),
    0 16px 40px rgba(0, 0, 0, 0.3);
  transform: rotate(45deg);
}

.core-ring {
  border-radius: 34px;
  border: 1px solid rgba(171, 255, 208, 0.22);
}

.core-ring-a {
  inset: 5%;
  transform: rotate(calc(var(--orbit-rotate) * -0.82));
}

.core-ring-b {
  inset: 20%;
  border-style: dashed;
  border-color: rgba(171, 255, 208, 0.2);
  transform: rotate(calc(var(--orbit-rotate) * 0.64));
}

.core-crest {
  top: 50%;
  left: 50%;
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  min-width: 44%;
  padding: 1.05rem 1.2rem 0.95rem;
  border: 1px solid rgba(219, 255, 232, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(228, 255, 239, 0.12), rgba(228, 255, 239, 0.02)),
    linear-gradient(135deg, rgba(10, 38, 26, 0.9), rgba(6, 19, 13, 0.96));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -50%) translateZ(24px);
  text-align: center;
}

.crest-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #69ff9f;
  box-shadow: 0 0 18px rgba(105, 255, 159, 0.85);
}

.core-crest strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
}

.core-crest small {
  color: rgba(227, 255, 237, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.showcase-card {
  width: clamp(190px, 19vw, 250px);
  aspect-ratio: 0.82;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(204, 255, 223, 0.18);
  background: #0b2016;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%),
    linear-gradient(180deg, rgba(5, 12, 8, 0) 32%, rgba(5, 12, 8, 0.9) 100%);
  z-index: 1;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.showcase-card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 0.34rem;
  padding: 1rem 1rem 1.1rem;
}

.showcase-card-copy span {
  color: rgba(219, 255, 230, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.showcase-card-copy strong {
  color: #f5fff9;
  font-size: 1rem;
  line-height: 1.15;
}

.showcase-card-left {
  top: 22%;
  left: 4%;
  transform:
    translateY(calc(var(--card-float) * -1.1))
    translateX(calc(var(--scene-pan-x) * -0.24px))
    rotateX(8deg)
    rotateY(22deg);
}

.showcase-card-right {
  top: 15%;
  right: 4%;
  transform:
    translateY(var(--card-float))
    translateX(calc(var(--scene-pan-x) * 0.2px))
    rotateX(8deg)
    rotateY(-22deg);
}

.signal-column {
  display: grid;
  gap: 0.22rem;
  width: clamp(148px, 15vw, 180px);
  padding: 1rem 1rem 0.95rem;
  border-radius: 24px;
  border: 1px solid rgba(208, 255, 226, 0.14);
  background:
    linear-gradient(180deg, rgba(228, 255, 238, 0.08), rgba(228, 255, 238, 0.02)),
    rgba(8, 30, 20, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.signal-column strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.signal-column small,
.signal-label {
  color: rgba(223, 255, 234, 0.7);
}

.signal-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.signal-column small {
  font-size: 0.8rem;
  line-height: 1.2;
}

.signal-column-left {
  bottom: 17%;
  left: 2%;
  transform:
    translateY(calc(var(--card-float) * 0.55))
    translateX(calc(var(--scene-pan-x) * -0.16px))
    rotateY(16deg);
}

.signal-column-right {
  top: 26%;
  right: 0;
  transform:
    translateY(calc(var(--card-float) * -0.42))
    translateX(calc(var(--scene-pan-x) * 0.14px))
    rotateY(-16deg);
}

.scene-scanline {
  right: 12%;
  left: 12%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(212, 255, 227, 0.86), transparent);
  opacity: 0.8;
  filter: blur(0.4px);
}

.scene-scanline-a {
  top: 24%;
  transform: translateY(var(--scanline-shift));
}

.scene-scanline-b {
  top: 68%;
  transform: translateY(calc(var(--scanline-shift) * -0.68));
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 2;
}

.hero-content {
  grid-area: content;
  max-width: 45rem;
  padding-top: clamp(5.4rem, 7vw, 6.8rem);
}

.kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(187, 255, 212, 0.2);
  background: rgba(8, 28, 19, 0.74);
  color: rgba(226, 255, 236, 0.88);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 9.8ch;
  margin: 0;
  color: #f5fff9;
  font-size: clamp(3.8rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.hero-content h1 span {
  display: block;
  color: rgba(218, 255, 231, 0.84);
  text-shadow: 0 0 24px rgba(90, 255, 158, 0.12);
}

.lead {
  max-width: 35rem;
  margin-top: 1.3rem;
  color: rgba(224, 255, 234, 0.72);
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-actions .btn {
  min-height: 54px;
  padding-inline: 1.35rem;
}

.hero-actions .btn-solid {
  background: linear-gradient(135deg, #84ffab, #26d26d);
  color: #072014;
  box-shadow: 0 14px 34px rgba(34, 164, 90, 0.26);
}

.hero-actions .btn-outline,
.hero-actions .btn-admin {
  background: rgba(8, 28, 19, 0.72);
  border: 1px solid rgba(182, 255, 210, 0.18);
  color: #f4fff8;
}

.admin-note {
  margin-top: 1rem;
  color: rgba(217, 255, 229, 0.62);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 40rem;
  margin-top: 2rem;
}

.hero-metrics .metric-card:last-child {
  grid-column: span 2;
}

.metric-card {
  position: relative;
  min-height: 104px;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(198, 255, 220, 0.14);
  background:
    linear-gradient(180deg, rgba(231, 255, 240, 0.06), rgba(231, 255, 240, 0.02)),
    rgba(8, 24, 17, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 36px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: -40% 34% auto -20%;
  height: 120%;
  background: radial-gradient(circle, rgba(117, 255, 172, 0.14), transparent 68%);
}

.metric-card strong {
  position: relative;
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-card span {
  position: relative;
  color: rgba(223, 255, 234, 0.68);
  line-height: 1.35;
}

.hero-panel {
  grid-area: panel;
  width: min(100%, 470px);
  margin-top: 0.15rem;
  padding: clamp(1.2rem, 2vw, 1.5rem);
  border-radius: 32px;
  border: 1px solid rgba(200, 255, 221, 0.16);
  background:
    linear-gradient(180deg, rgba(233, 255, 241, 0.08), rgba(233, 255, 241, 0.02)),
    rgba(7, 23, 16, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 56px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  justify-self: start;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(104, 255, 164, 0.08), transparent 38%, transparent);
  pointer-events: none;
}

.panel-tag {
  display: inline-flex;
  margin-bottom: 0.6rem;
  color: rgba(221, 255, 233, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.access-copy,
.access-footnote {
  color: rgba(221, 255, 232, 0.68);
}

.session-badge,
.access-meta span {
  border: 1px solid rgba(193, 255, 217, 0.14);
  background: rgba(8, 29, 19, 0.7);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  color: rgba(232, 255, 241, 0.76);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(197, 255, 220, 0.16);
  background: rgba(5, 16, 11, 0.86);
  color: #f5fff9;
}

.field input::placeholder {
  color: rgba(210, 255, 225, 0.34);
}

.access-submit {
  width: 100%;
}

.flash-pill {
  border-radius: 16px;
}

@keyframes auroraDrift {
  0% {
    transform: translateY(calc(var(--aurora-shift) * 0.35)) scale(1);
  }
  100% {
    transform: translateY(calc(var(--aurora-shift) * 0.55 - 10px)) scale(1.04);
  }
}

@keyframes starBlink {
  0% {
    opacity: 0.54;
  }
  100% {
    opacity: 0.82;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "visual"
      "panel";
    align-items: start;
    min-height: auto;
  }

  .hero-visual {
    height: clamp(460px, 64vw, 620px);
    margin-bottom: 1.6rem;
  }

  .scene-hud {
    top: 0.6rem;
  }

  .scene-shell {
    top: 50%;
    left: 50%;
    width: min(820px, 94vw);
  }

  .hero-content {
    max-width: none;
    padding-top: 0;
  }

  .hero-panel {
    width: 100%;
    margin-top: 0;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 6.1rem 1rem 3rem;
  }

  .hero-visual {
    height: 430px;
  }

  .scene-hud {
    top: 0.2rem;
    gap: 0.45rem;
    flex-wrap: wrap;
    width: min(100%, 92vw);
    justify-content: center;
  }

  .hud-chip {
    padding: 0.44rem 0.66rem;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .scene-shell {
    width: min(100%, 560px);
  }

  .scene-backdrop {
    inset: 10% 2% 5%;
    border-radius: 32px;
  }

  .scene-grid {
    right: 3%;
    left: 3%;
    height: 35%;
    clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  }

  .showcase-card {
    width: max(138px, 36vw);
    border-radius: 22px;
  }

  .showcase-card-left {
    top: 22%;
    left: 1%;
  }

  .showcase-card-right {
    top: 14%;
    right: 1%;
  }

  .signal-column {
    width: max(124px, 31vw);
    padding: 0.8rem;
  }

  .signal-column-left {
    left: 2%;
    bottom: 11%;
  }

  .signal-column-right {
    top: 28%;
    right: 2%;
  }

  .hero-content h1 {
    max-width: none;
    font-size: clamp(3.2rem, 16vw, 4.6rem);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

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

  .hero-metrics .metric-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    height: 360px;
  }

  .scene-shell {
    width: 100%;
  }

  .scene-orbit {
    width: 70%;
  }

  .orbit-front {
    width: 84%;
  }

  .scene-core {
    width: 42%;
  }

  .showcase-card {
    width: max(122px, 39vw);
  }

  .showcase-card-copy {
    padding: 0.72rem;
  }

  .showcase-card-copy strong {
    font-size: 0.86rem;
  }

  .signal-column {
    display: none;
  }

  .hero-panel {
    border-radius: 24px;
  }

  .metric-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-aurora,
  .scene-stars {
    animation: none !important;
  }
}
