:root {
  --ink: #05030a;
  --paper: #eee9ee;
  --red: #ef1643;
  --home-progress: 0;
  --scene-accent: #ef1643;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
::selection { background: var(--red); color: #fff; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #05030a;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.home-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: #030207;
  transition: opacity .7s ease, visibility .7s ease;
}
.home-loader::before,
.home-loader::after {
  content: "";
  position: absolute;
  width: min(62vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(239,22,67,.28);
  border-radius: 50%;
  box-shadow: 0 0 130px rgba(239,22,67,.12);
  animation: loader-orbit 2.2s ease-in-out infinite alternate;
}
.home-loader::after { width: min(38vw, 340px); opacity: .45; animation-delay: -.8s; }
.home-loader > i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 28px var(--red); }
.home-loader > b { position: absolute; margin-top: 74px; color: #8b838f; font-size: 8px; letter-spacing: .42em; }
.home-loader > span { position: absolute; width: 120px; height: 1px; margin-top: 108px; overflow: hidden; background: #241d27; }
.home-loader > span::after { content: ""; display: block; width: 42%; height: 100%; background: var(--red); animation: loader-line 1.2s infinite; }
.is-ready .home-loader { opacity: 0; visibility: hidden; }
@keyframes loader-orbit { to { opacity: .34; transform: scale(.9) rotate(10deg); } }
@keyframes loader-line { from { transform: translateX(-120%); } to { transform: translateX(300%); } }

.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  right: 0;
  min-height: 82px;
  padding: max(18px, env(safe-area-inset-top)) max(5vw, env(safe-area-inset-right)) 12px max(5vw, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(#05030a 0, rgba(5,3,10,.67) 48%, transparent 100%);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.site-brand > i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 19px var(--red); }
.site-brand span { font-size: 9px; font-weight: 700; line-height: 1.45; letter-spacing: .34em; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.primary-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #77707c;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .26em;
  text-decoration: none;
  transition: color .25s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active { color: #fff; }
.header-code { color: #6c6470; font-size: 7px; letter-spacing: .22em; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; }
.nav-toggle i { position: absolute; right: 0; top: 18px; width: 22px; height: 1px; background: #aaa3ad; }
.nav-toggle i:last-child { top: 25px; width: 14px; }

.home-story {
  position: relative;
  height: calc(var(--home-scene-count) * 100vh);
  height: calc(var(--home-scene-count) * 100svh);
}
.home-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 45%, #17101d 0, #090610 38%, #05030a 70%);
}
.home-scene {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: opacity, transform;
}
.home-scene.is-active { pointer-events: auto; }
.intro-scene { opacity: 1; }

.intro-orbit {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(239,22,67,.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 140px rgba(239,22,67,.08), inset 0 0 90px rgba(239,22,67,.05);
}
.intro-orbit::before,
.intro-orbit::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px dashed rgba(239,22,67,.2);
  border-radius: 50%;
  animation: orbit 28s linear infinite;
}
.intro-orbit::after { inset: 31%; border-style: solid; opacity: .48; animation-direction: reverse; animation-duration: 18s; }
.intro-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 22px var(--red); }
.intro-orbit i:nth-child(1) { left: 9%; top: 31%; }
.intro-orbit i:nth-child(2) { right: 15%; top: 18%; }
.intro-orbit i:nth-child(3) { right: 6%; bottom: 28%; }
.intro-orbit b { position: absolute; left: 50%; top: 50%; color: rgba(255,255,255,.025); font-size: clamp(10rem, 28vw, 28rem); line-height: .8; transform: translate(-50%, -50%); }
@keyframes orbit { to { transform: rotate(360deg); } }

.intro-copy {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 43%;
  width: min(94vw, 1180px);
  text-align: center;
  transform: translate(-50%, -50%);
}
.intro-copy > p,
.universe-copy > span { margin: 0; color: var(--red); font-size: 8px; font-weight: 700; letter-spacing: .36em; }
.intro-copy h1 { margin: 15px 0 18px; font-size: clamp(4.8rem, 10.5vw, 11.5rem); line-height: .73; letter-spacing: -.085em; }
.intro-copy h1 span,
.intro-copy h1 em { display: block; font-style: normal; }
.intro-copy h1 em { color: transparent; -webkit-text-stroke: 1px #9d949f; }
.intro-copy small { color: #8b8390; font: italic 12px Georgia, serif; }

.universe-portals {
  position: absolute;
  z-index: 5;
  left: 5vw;
  right: 5vw;
  bottom: max(5.5vh, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid #2b242e;
  background: #2b242e;
}
.universe-portal {
  position: relative;
  min-height: clamp(82px, 12vh, 126px);
  overflow: hidden;
  background: #08050b;
  text-decoration: none;
  transition: background .3s ease;
}
.universe-portal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #08050b 28%, rgba(8,5,11,.7), rgba(8,5,11,.15)); }
.universe-portal img { position: absolute; right: 0; top: 50%; width: 54%; height: 180%; object-fit: cover; object-position: 50% 40%; opacity: .42; filter: saturate(.7) contrast(1.1); transform: translateY(-50%); transition: opacity .3s ease, transform .45s ease; }
.universe-portal > span { position: absolute; z-index: 2; left: 18px; top: 50%; display: grid; gap: 5px; transform: translateY(-50%); }
.universe-portal b { color: var(--portal-accent); font-size: 7px; letter-spacing: .25em; }
.universe-portal strong { font-size: clamp(13px, 1.25vw, 19px); letter-spacing: -.03em; }
.universe-portal small { color: #77707b; font-size: 7px; letter-spacing: .18em; text-transform: uppercase; }
.universe-portal > i { position: absolute; z-index: 3; right: 13px; bottom: 12px; color: var(--portal-accent); font-style: normal; }
.universe-portal:hover,
.universe-portal:focus-visible { background: color-mix(in srgb, var(--portal-accent) 11%, #08050b); }
.universe-portal:hover img,
.universe-portal:focus-visible img { opacity: .7; transform: translateY(-50%) scale(1.06); }

.universe-scene { --scene-x: 0px; background: #05030a; }
.universe-visual { position: absolute; inset: 0; overflow: hidden; }
.universe-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #05030a 0, rgba(5,3,10,.88) 22%, rgba(5,3,10,.18) 54%, rgba(5,3,10,.63) 100%),
    linear-gradient(0deg, #05030a 0, transparent 36%, rgba(5,3,10,.35) 100%);
}
.universe-glow { position: absolute; inset: 0; background: radial-gradient(circle at 64% 45%, color-mix(in srgb, var(--scene-accent) 34%, transparent), transparent 42%); mix-blend-mode: screen; }
.universe-art {
  position: absolute;
  top: 50%;
  width: min(47vw, calc(100dvh * .563));
  height: min(83.5vw, 100dvh);
  object-fit: contain;
  filter: saturate(.88) contrast(1.09) brightness(.7) drop-shadow(0 24px 60px rgba(0,0,0,.55));
  will-change: transform;
}
.universe-art--front { z-index: 0; left: 56%; transform: translate3d(calc(-50% + var(--scene-x)), -50%, 0) scale(1.04); }
.universe-art--back { left: 82%; opacity: .42; filter: saturate(.65) contrast(1.1) brightness(.48) blur(.4px); transform: translate3d(calc(-50% - var(--scene-x)), -50%, 0) scale(.86); }

.universe-copy {
  position: absolute;
  z-index: 5;
  left: 7vw;
  top: 42%;
  width: min(520px, 34vw);
  transform: translateY(-50%);
}
.universe-copy > span { color: var(--scene-accent); }
.universe-copy h2 { margin: 13px 0 20px; font: 400 clamp(4rem, 8vw, 9rem)/.78 Georgia, "Times New Roman", serif; letter-spacing: -.075em; text-wrap: balance; }
.universe-copy p { max-width: 420px; margin: 0; color: #9a929e; font: italic clamp(12px, 1vw, 16px)/1.65 Georgia, serif; }
.universe-count {
  position: absolute;
  z-index: 6;
  right: 5vw;
  top: 17vh;
  color: var(--scene-accent);
  font: 700 clamp(3rem, 5vw, 6rem)/.8 Arial, sans-serif;
  letter-spacing: -.06em;
  text-align: right;
}
.universe-count small { display: block; margin-top: 9px; color: #7d7581; font-size: 7px; letter-spacing: .26em; }

.experience-grid {
  position: absolute;
  z-index: 7;
  right: 5vw;
  bottom: max(6vh, env(safe-area-inset-bottom));
  width: min(47vw, 720px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #302833;
  background: #302833;
}
.experience-card {
  position: relative;
  min-height: clamp(40px, 5.3vh, 57px);
  padding: 9px 38px 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  background: rgba(7,4,10,.88);
  text-decoration: none;
  transition: background .25s ease;
}
.experience-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--card-accent); transform: scaleY(0); transition: transform .25s ease; }
.experience-card > span { display: grid; gap: 4px; min-width: 68px; }
.experience-card b { color: var(--card-accent); font-size: 6px; letter-spacing: .2em; }
.experience-card small { color: #6f6873; font-size: 6px; letter-spacing: .13em; text-transform: uppercase; }
.experience-card strong { color: #d7d0d8; font-size: clamp(10px, .9vw, 14px); text-align: right; }
.experience-card > i { position: absolute; right: 13px; color: var(--card-accent); font-style: normal; }
.experience-card:hover,
.experience-card:focus-visible { background: color-mix(in srgb, var(--card-accent) 13%, #08050b); }
.experience-card:hover::before,
.experience-card:focus-visible::before { transform: scaleY(1); }

.home-vignette,
.home-grain { position: absolute; inset: 0; pointer-events: none; }
.home-vignette { z-index: 30; background: radial-gradient(circle at 54% 44%, transparent 28%, rgba(4,2,8,.13) 58%, #040208 100%); }
.home-grain {
  z-index: 31;
  opacity: .07;
  background:
    repeating-radial-gradient(circle at 30% 40%, transparent 0 1px, rgba(255,255,255,.11) 1px 1.5px, transparent 1.5px 4px),
    repeating-linear-gradient(117deg, transparent 0 5px, rgba(255,255,255,.035) 5px 6px);
  background-size: 83px 79px, 67px 71px;
  mix-blend-mode: soft-light;
}
.home-rail { position: absolute; z-index: 40; color: #5f5764; font-size: 7px; letter-spacing: .2em; pointer-events: none; }
.home-rail--left { left: 2.4vw; top: 35%; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.home-rail--left i { width: 1px; height: 45px; background: #332c36; }
.home-rail--right { right: 2.1vw; top: 34%; display: flex; align-items: center; gap: 14px; writing-mode: vertical-rl; }
.home-rail--right i { width: 1px; height: 70px; background: #3a303c; }
.home-rail--right b { color: var(--red); }
.home-scroll { position: absolute; z-index: 40; left: 50%; bottom: max(2.5vh, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #706974; font-size: 7px; letter-spacing: .3em; transform: translateX(-50%); }
.home-scroll i { width: 1px; height: 26px; background: linear-gradient(var(--red), transparent); }
.home-cursor { position: fixed; z-index: 200; left: 0; top: 0; width: 44px; height: 44px; border: 1px solid rgba(239,22,67,.68); border-radius: 50%; box-shadow: 0 0 22px rgba(239,22,67,.14); transform: translate(-100px,-100px); pointer-events: none; transition: width .2s ease, height .2s ease, border-color .25s ease; }
.home-cursor span { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--red); transform: translate(-50%,-50%); }

.home-end { min-height: 30vh; padding: 8vh 6vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #211a24; background: #05030a; color: #77707b; font-size: 8px; letter-spacing: .26em; text-transform: uppercase; }
.home-end button { min-height: 46px; padding: 0 18px; border: 1px solid #38303b; background: none; color: #d8d1d9; letter-spacing: .2em; }
noscript p { position: fixed; z-index: 1000; inset: auto 0 0; margin: 0; padding: 12px; background: #b4002b; color: #fff; text-align: center; }

@media (max-width: 980px) {
  .site-header { min-height: calc(66px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .site-brand span { display: none; }
  .header-code { margin-left: auto; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: calc(66px + env(safe-area-inset-top)) 0 auto; display: none; flex-direction: column; gap: 12px; padding: 26px; border-bottom: 1px solid #28202b; background: rgba(5,3,10,.97); }
  .menu-open .primary-nav { display: flex; }
  .primary-nav a { min-height: 42px; }
  .intro-orbit { width: min(92vw, 690px); }
  .intro-copy { top: 38%; }
  .intro-copy h1 { font-size: clamp(4.2rem, 15vw, 8.5rem); }
  .universe-portals { left: 20px; right: 20px; bottom: max(5vh, env(safe-area-inset-bottom)); grid-template-columns: repeat(2, 1fr); }
  .universe-portal { min-height: clamp(65px, 10vh, 95px); }
  .universe-copy { left: 7vw; top: 20%; width: min(60vw, 500px); transform: none; }
  .universe-copy h2 { margin: 9px 0 12px; font-size: clamp(3.3rem, 10vw, 6.5rem); }
  .universe-copy p { max-width: 380px; font-size: 11px; }
  .universe-art { top: 44%; width: min(72vw, calc(100dvh * .563)); height: min(128vw, 100dvh); }
  .universe-art--front { left: 58%; }
  .universe-art--back { left: 88%; }
  .universe-count { right: 24px; top: 17%; }
  .experience-grid { left: 24px; right: 24px; bottom: max(6vh, env(safe-area-inset-bottom)); width: auto; }
  .experience-card { min-height: clamp(35px, 4.8vh, 49px); }
  .home-rail--left { display: none; }
  .home-rail--right { right: 7px; top: 38%; }
  .home-scroll { right: 19px; left: auto; top: calc(78px + env(safe-area-inset-top)); bottom: auto; transform: none; }
  .home-scroll span { writing-mode: vertical-rl; }
  .home-cursor { display: none; }
}

@media (max-width: 600px) {
  .header-code { font-size: 6px; }
  .intro-copy { top: 34%; }
  .intro-copy > p { padding: 0 36px; font-size: 6px; line-height: 1.7; }
  .intro-copy h1 { margin: 10px 0 12px; font-size: 17vw; }
  .intro-copy small { font-size: 10px; }
  .universe-portals { bottom: max(4vh, env(safe-area-inset-bottom)); }
  .universe-portal { min-height: 70px; }
  .universe-portal > span { left: 11px; }
  .universe-portal small { display: none; }
  .universe-portal > i { right: 8px; bottom: 8px; }
  .universe-copy { left: 24px; right: 24px; top: 14%; width: auto; }
  .universe-copy > span { font-size: 6px; }
  .universe-copy h2 { font-size: 15vw; }
  .universe-copy p { max-width: 80%; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .universe-art { top: 43%; width: 100vw; height: 100dvh; object-fit: cover; }
  .universe-art--front { left: 50%; }
  .universe-art--back { display: none; }
  .universe-visual::before { background: linear-gradient(0deg, #05030a 0, rgba(5,3,10,.84) 14%, rgba(5,3,10,.08) 51%, rgba(5,3,10,.78) 100%); }
  .universe-count { right: 20px; top: 13%; font-size: 12vw; }
  .experience-grid { left: 20px; right: 20px; bottom: max(5vh, env(safe-area-inset-bottom)); }
  .experience-card { min-height: 38px; padding: 7px 27px 7px 9px; }
  .experience-card > span { min-width: 0; }
  .experience-card small { display: none; }
  .experience-card strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .experience-card > i { right: 8px; }
  .home-end { flex-direction: column; align-items: flex-start; }
}

@media (max-height: 690px) and (orientation: landscape) {
  .site-header { min-height: 62px; padding-top: 10px; }
  .intro-copy { top: 38%; }
  .intro-copy h1 { font-size: 16vh; }
  .universe-portals { bottom: 4vh; }
  .universe-copy { top: 42%; }
  .universe-copy h2 { font-size: 10vh; }
  .experience-card { min-height: 34px; }
}

@media (pointer: coarse) { .home-cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .home-cursor { display: none; }
}
