/* Layout: one fixed WebGL stage; the page scrolls through six scenes laid over it.
   Brand: VirexionLabs e-shop – deep-sea navy, cold blue light, squared Saira type. Single dark look. */
:root {
  --bg: #030a10;         /* deep sea */
  --surface: #071019;    /* panels */
  --line: #202a33;       /* hairlines */
  --muted: #a4adb8;      /* secondary text */
  --text: #f4f6f8;       /* primary text */
  --blue: #087bff;       /* brand blue */
  --blue-2: #0060ee;     /* gradient end */
  --accent: #087bff;
  --display: "Saira", "Arial Narrow", Arial, sans-serif;
  --body: "Saira", Arial, Helvetica, sans-serif;
  --wordmark: "Saira Condensed", Impact, "Arial Narrow", sans-serif;
  --progress: 0;
  --hero-ui: 1;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: #67adff; }
:focus-visible { outline: 2px solid #67b1ff; outline-offset: 3px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-defs { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.octo { display: inline-block; width: 46px; height: 52px; background: currentColor; -webkit-mask: url(../img/octopus.png) center / contain no-repeat; mask: url(../img/octopus.png) center / contain no-repeat; flex-shrink: 0; }
.eyebrow { margin: 0; font: 500 12px/1.4 var(--body); letter-spacing: 3px; text-transform: uppercase; color: #8e98a8; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

/* buttons, as in the shop */
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 13px 22px; background: linear-gradient(100deg, var(--blue), var(--blue-2)); border: 1px solid #2187ff; border-radius: 3px; color: #fff; font: 600 12px/1 var(--body); letter-spacing: 1.8px; }
.primary svg { width: 18px; height: 18px; }
.primary:hover { filter: brightness(1.15); color: #fff; }
.secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border: 1px solid #3e5267; border-radius: 3px; font: 600 12px/1 var(--body); letter-spacing: 1.8px; background: rgba(3,10,16,.4); }
.secondary:hover { background: #102235; border-color: #689dce; color: var(--text); }

/* ---------- loader */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); transition: opacity .8s ease .2s, visibility 0s 1s; }
.loader .octo { width: 64px; height: 72px; color: var(--text); }
.loader b { font: 700 26px/1 var(--wordmark); letter-spacing: .5px; }
.loader i { width: 140px; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 200% 100%; animation: load 1.1s linear infinite; }
@keyframes load { from { background-position: 200% 0 } to { background-position: -200% 0 } }
body.ready .loader { opacity: 0; visibility: hidden; }

/* ---------- fixed backgrounds */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.bg > div { position: absolute; inset: 0; will-change: opacity; }
.bg-studio { background: radial-gradient(ellipse 60% 80% at 50% 30%, #0c2236 0%, var(--bg) 70%); }
.bg-studio::before { content: ""; position: absolute; left: 50%; bottom: 0; height: 112vh; aspect-ratio: 980 / 1254; max-width: none; transform: translateX(-50%); background: url(../img/rock.webp) center bottom / cover no-repeat; -webkit-mask: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(transparent, #000 18%); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(transparent, #000 18%); mask-composite: intersect; }
.bg-studio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,10,16,.5) 0%, transparent 30%, transparent 75%, rgba(3,10,16,.65) 100%); }
.bg-studio .haze { position: absolute; left: 50%; top: 0; width: 70vw; height: 90vh; transform: translateX(-50%); background: radial-gradient(ellipse 40% 60% at 50% 0%, rgba(103,173,255,.28), transparent 70%); mix-blend-mode: screen; }
.bg-accent { opacity: 0; background: radial-gradient(ellipse 60% 75% at 62% 50%, #2a7fe6 0%, #0b4aa8 22%, #06203f 52%, var(--bg) 88%); }
.bg-accent::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask: radial-gradient(ellipse at 62% 50%, #000, transparent 70%); }
.bg-fog { opacity: 0; background: radial-gradient(ellipse 85% 70% at 50% 50%, #1b5fb8 0%, #0a2a55 45%, var(--bg) 100%); }
.manifest-word { opacity: 0; inset: auto !important; left: 50% !important; top: 46% !important; height: auto; transform: translate(-50%, -50%); width: 100vw; text-align: center; font: 800 clamp(48px, 10.5vw, 190px)/.9 var(--display); letter-spacing: -.02em; text-transform: uppercase; color: rgba(244,246,248,.9); text-shadow: 0 0 80px rgba(8,123,255,.6); }
.fog-front { opacity: 0; }
.fog-front i { position: absolute; width: 70vw; height: 60vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(170,205,255,.42), rgba(8,123,255,.22) 55%, transparent); filter: blur(44px); animation: drift 18s ease-in-out infinite alternate; }
.fog-front i:nth-child(1) { left: -20vw; top: 20vh; }
.fog-front i:nth-child(2) { right: -25vw; top: -10vh; animation-duration: 22s; }
.fog-front i:nth-child(3) { left: 10vw; bottom: -30vh; animation-duration: 16s; animation-delay: -6s; }
.fog-front i:nth-child(4) { right: 0; bottom: 5vh; width: 50vw; animation-duration: 25s; }
.fog-front i:nth-child(5) { left: 30vw; top: 35vh; width: 40vw; height: 30vh; opacity: .6; animation-duration: 14s; }
.fog-front i:nth-child(6) { left: -10vw; top: -20vh; width: 60vw; opacity: .5; animation-duration: 20s; animation-delay: -9s; }
@keyframes drift { from { transform: translate3d(-6vw, 2vh, 0) scale(1); } to { transform: translate3d(8vw, -4vh, 0) scale(1.18); } }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; display: block; touch-action: pan-y; cursor: grab; }
#gl.grabbing { cursor: grabbing; }
body.no-gl #gl { display: none; }

/* ---------- header (shop header) */
.top { position: fixed; z-index: 10; left: 0; right: 0; top: 0; padding-top: env(safe-area-inset-top, 0px); background: rgba(4,11,17,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { height: 80px; width: min(1320px, calc(100% - 64px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand strong { display: block; font: 700 27px/1 var(--wordmark); letter-spacing: -.2px; }
.brand small { display: block; font: 500 9px/1 var(--body); letter-spacing: 2.4px; margin-top: 5px; color: #c6ccd3; }
.nav { display: flex; gap: 34px; font: 500 12px/1 var(--body); letter-spacing: 1.4px; }
.nav a { padding: 14px 0; border-bottom: 1px solid transparent; }
.nav a.active { border-color: #639bd0; }
.actions { display: flex; align-items: center; gap: 20px; }
.icon-btn { position: relative; display: grid; place-items: center; padding: 6px; color: var(--text); }
.icon-btn em { position: absolute; top: -2px; right: -2px; min-width: 17px; padding: 1px 4px; border-radius: 50%; background: var(--blue); font: 600 10px/1.4 var(--body); font-style: normal; text-align: center; }
.motto { font: 500 10px/1.5 var(--body); letter-spacing: 2px; border-left: 1px solid var(--line); padding-left: 20px; color: #c6ccd3; }
.menu-btn { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.progress::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--progress)); background: linear-gradient(90deg, transparent, var(--blue)); box-shadow: 0 0 8px var(--blue); }
.menu { position: fixed; z-index: 9; inset: 0; display: grid; align-content: center; justify-items: center; gap: 4px; background: rgba(3,10,16,.92); backdrop-filter: blur(14px); }
.menu a { font: 700 clamp(28px, 6vw, 52px)/1.15 var(--display); text-transform: uppercase; letter-spacing: -.5px; }

/* ---------- feature nav */
.fnav { position: fixed; z-index: 6; right: clamp(12px, 2.4vw, 32px); top: 50%; transform: translate(20px, -50%); display: grid; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s; }
.fnav.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.fnav button { width: 40px; height: 40px; border-radius: 3px; border: 1px solid #2e4052; background: rgba(3,10,16,.55); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.fnav svg { width: 19px; height: 19px; }
.fnav button.on { background: linear-gradient(100deg, var(--blue), var(--blue-2)); border-color: #2187ff; }

/* ---------- content layers */
main { position: relative; z-index: 3; pointer-events: none; }
main a, main button, main input, main summary, main details p, .panel, .trust, .foot { pointer-events: auto; }

.hero { height: 100vh; position: relative; opacity: var(--hero-ui); }
.hero-copy { position: absolute; left: max(32px, calc((100vw - 1320px) / 2)); bottom: 15vh; display: grid; gap: 8px; max-width: 420px; }
.hero-copy h1 { font: 700 clamp(36px, 4.4vw, 64px)/1 var(--display); letter-spacing: -1.2px; text-transform: uppercase; }
.hero-copy .sub { margin: 0 0 10px; color: #bec5cd; font-size: 17px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.side-motto { position: absolute; right: max(32px, calc((100vw - 1320px) / 2)); bottom: 17vh; margin: 0; font: 500 12px/1.9 var(--body); letter-spacing: 4px; color: #d6dbe1; }
.side-motto i { display: block; width: 36px; height: 1px; background: #c6ccd3; margin: 22px 0; }
.arrow { position: absolute; top: 46%; width: 46px; height: 46px; border-radius: 3px; border: 1px solid #3e5267; background: rgba(3,10,16,.55); backdrop-filter: blur(6px); display: grid; place-items: center; }
.arrow:hover { background: #102235; border-color: #689dce; }
.arrow svg { width: 18px; height: 18px; stroke-width: 1.8; }
.arrow-l { left: calc(50% - clamp(130px, 13vw, 220px) - 23px); }
.arrow-r { left: calc(50% + clamp(130px, 13vw, 220px) - 23px); }
.trust-mini { position: absolute; left: max(32px, calc((100vw - 1320px) / 2)); bottom: 5vh; display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.35; color: #d6dbe1; }
.trust-mini li { display: flex; align-items: center; gap: 12px; }
.trust-mini svg { width: 30px; height: 30px; }
.hint { position: absolute; right: max(32px, calc((100vw - 1320px) / 2)); bottom: 5vh; margin: 0; font: 500 11px/1 var(--body); letter-spacing: 3px; color: var(--muted); }
.hint::after { content: ""; display: block; width: 1px; height: 36px; margin: 10px auto 0; background: linear-gradient(var(--muted), transparent); }

.features { height: calc(6 * 80vh + 100vh); position: relative; }
.feat-stage { position: sticky; top: 0; height: 100vh; }
.feat-step { position: absolute; left: max(32px, calc((100vw - 1320px) / 2)); top: 52%; width: min(440px, 40vw); transform: translateY(-40%); opacity: 0; transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.feat-step.on { opacity: 1; transform: translateY(-50%); }
.feat-step .eyebrow { color: #9fc8ff; margin-bottom: 10px; }
.feat-step h2 { font: 700 clamp(34px, 4.4vw, 66px)/1 var(--display); letter-spacing: -1.2px; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.feat-step.on h2 { animation: glitch .6s steps(2, end) 1; }
.feat-step p:not(.eyebrow) { max-width: 40ch; margin: 16px 0 0; color: #c9cfd6; font-size: 15px; line-height: 1.65; }
.feat-step .kind { margin-top: 8px !important; color: var(--text) !important; font-size: 18px !important; }
@keyframes glitch {
  0% { clip-path: inset(0 0 60% 0); transform: translateX(-8px); }
  25% { clip-path: inset(40% 0 20% 0); transform: translateX(6px); }
  50% { clip-path: inset(10% 0 50% 0); transform: translateX(-4px); }
  75% { clip-path: inset(0 0 0 0); transform: translateX(2px); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}

.manifest { height: 170vh; position: relative; }
.manifest-cap { position: sticky; top: calc(100vh - 80px); text-align: center; margin: 0; font: 500 12px/1 var(--body); letter-spacing: 4px; color: #d6dbe1; }

.lineup { height: 200vh; position: relative; }
.lineup-in { position: sticky; top: 0; height: 100vh; padding: 112px max(32px, calc((100vw - 1320px) / 2)) 32px; display: grid; justify-items: end; align-content: center; }
.panel { width: min(560px, 100%); background: rgba(7,16,25,.82); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.panel h2 { font: 700 26px/1.1 var(--display); text-transform: uppercase; margin-top: 6px; }
.panel .lede { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; min-width: 0; border-top: 1px solid var(--line); }
.prow b { display: block; font-weight: 600; font-size: 15px; }
.prow small { display: block; color: var(--muted); font-size: 12.5px; }
.prow-go { flex-shrink: 0; width: 34px; height: 34px; border-radius: 2px; background: #0c1824; border: 1px solid #2e4052; display: grid; place-items: center; }
.prow-go svg { width: 17px; height: 17px; }
.prow.on .prow-go, .prow-go:hover { background: linear-gradient(100deg, var(--blue), var(--blue-2)); border-color: #2187ff; }
.prow.on b { color: #67adff; }

.trust { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--surface); padding: 30px max(32px, calc((100vw - 1320px) / 2)); }
.trust > div { display: flex; align-items: center; gap: 22px; padding: 0 22px; border-left: 1px solid var(--line); }
.trust > div:first-child { border-left: 0; padding-left: 0; }
.trust svg { width: 44px; height: 44px; }
.trust p { margin: 0; }
.trust b { display: block; font: 500 12px/1.5 var(--body); letter-spacing: 2px; }
.trust span { display: block; font-size: 12px; color: var(--muted); }

.faq { min-height: 120vh; position: relative; display: grid; grid-template-columns: 1fr minmax(0, 600px); align-items: end; gap: 32px 64px; padding: 30vh max(32px, calc((100vw - 1320px) / 2)) 12vh; }
.faq-title { font: 700 clamp(44px, 7vw, 110px)/.95 var(--display); letter-spacing: -2px; text-transform: uppercase; margin-top: 8px; text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); background: rgba(7,16,25,.78); backdrop-filter: blur(10px); padding: 0 20px; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font: 500 15px/1.35 var(--body); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 22px/1 var(--body); color: #67adff; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #c1c9d2; max-width: 60ch; }
.faq details a { color: #67adff; }

.join { min-height: 100vh; display: grid; align-content: start; justify-items: center; text-align: center; gap: 12px; padding: 20vh 16px 0; }
.join h2 { font: 700 clamp(30px, 4.4vw, 60px)/1.05 var(--display); letter-spacing: -1px; text-transform: uppercase; max-width: 16ch; }
.join-form { display: flex; width: min(420px, 100%); height: 48px; margin-top: 10px; border: 1px solid #2e4052; border-radius: 3px; background: rgba(3,10,16,.75); }
.join-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 14px; }
.join-form input:focus-visible { outline: none; }
.join-form:focus-within { border-color: #689dce; }
.join-form button { width: 52px; border-left: 1px solid #2e4052; display: grid; place-items: center; }
.join-form button:hover { background: var(--blue); }
.join-form svg { width: 18px; height: 18px; }
.join-msg { min-height: 1.6em; max-width: 52ch; margin: 0; font-size: 13px; color: var(--muted); }

.foot { position: relative; border-top: 1px solid var(--line); background: linear-gradient(140deg, #07131c, #02070b); padding: 0 max(32px, calc((100vw - 1320px) / 2)) env(safe-area-inset-bottom, 0px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 34px 0 28px; }
.foot h3 { font: 500 11px/1 var(--body); letter-spacing: 2px; margin-bottom: 14px; }
.foot-grid > div > a:not(.brand), .text-btn { display: block; padding: 0; font-size: 13px; line-height: 1.9; color: #aeb7c2; text-align: left; }
.foot-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 18px 0 20px; color: #8e9ba8; font-size: 11px; }
.foot-bottom span:last-child { font-size: 9px; letter-spacing: 2.7px; }

/* ---------- tablet / phone */
@media (max-width: 1100px) {
  .motto, .side-motto { display: none; }
  .nav { gap: 22px; }
  .trust-mini { display: none; }
  .trust { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .trust > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .top-in { height: 66px; width: calc(100% - 32px); gap: 10px; }
  .nav, .hide-s { display: none; }
  .menu-btn { display: grid; }
  .actions { gap: 8px; }
  .brand .octo { width: 34px; height: 40px; }
  .brand strong { font-size: 21px; }
  .brand small { font-size: 7.5px; letter-spacing: 1.6px; }
  .hero-copy { left: 16px; right: 16px; bottom: 6vh; max-width: none; justify-items: start; }
  .hero-copy .sub { font-size: 15px; }
  .arrow { top: 42%; }
  .arrow-l { left: 12px; } .arrow-r { left: auto; right: 12px; }
  .hint { display: none; }
  .feat-step { left: 16px; right: 16px; width: auto; top: auto; bottom: 6vh; transform: translateY(16px); }
  .feat-step.on { transform: none; }
  .fnav { right: 10px; top: 34%; gap: 8px; }
  .fnav button { width: 34px; height: 34px; }
  .lineup-in { padding: 86px 16px 16px; align-content: end; justify-items: stretch; }
  .panel { width: 100%; padding: 18px; }
  .prow { padding: 6px 0; }
  .plist { column-gap: 12px; }
  .prow small { display: none; }
  .panel .lede { display: none; }
  .trust { grid-template-columns: 1fr; padding: 24px 16px; }
  .trust > div { border-left: 0; padding: 0; }
  .faq { grid-template-columns: 1fr; padding: 24vh 16px 10vh; }
  .foot { padding-inline: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .fog-front i, .loader i { animation: none; }
  .feat-step.on h2 { animation: none; }
}
body.vialtest main, body.vialtest .top, body.vialtest .fnav, body.vialtest .bg > div:not(.bg-studio) { display: none !important; }
