/* ==========================================================================
   Astartis Lab — astartis.si
   ========================================================================== */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --void: #04050a;
  --ink: #ede8df;
  --ink-2: rgba(237, 232, 223, .72);
  --ink-3: rgba(237, 232, 223, .5);
  --ink-4: rgba(237, 232, 223, .3);
  --line: rgba(237, 232, 223, .12);
  --line-2: rgba(237, 232, 223, .2);
  --dawn: #ff9d5c;
  --corona: #ffe4bf;
  --limb: #59c2ff;
  --live: #7ee2a8;
  --panel: rgba(10, 12, 22, .42);

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; }
::selection { background: rgba(255, 157, 92, .35); color: #fff; }

:focus-visible { outline: 1.5px solid var(--corona); outline-offset: 4px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--void);
  font: 500 14px/1 var(--sans); transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.faint { color: var(--ink-4); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- sky layers ---------- */
.sky, .sky-fallback, .grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky { z-index: 0; display: block; background: var(--void); }
.sky-fallback {
  z-index: 0; display: none;
  background:
    radial-gradient(60% 18% at 50% 72%, rgba(255, 157, 92, .28), transparent 70%),
    radial-gradient(120% 60% at 50% 120%, rgba(30, 60, 140, .35), transparent 60%),
    var(--void);
}
.no-webgl .sky { display: none; }
.no-webgl .sky-fallback, .no-js .sky-fallback { display: block; }
.no-js .sky { display: none; }
.grain {
  z-index: 1; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer, .nav { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease), background-color .6s var(--ease), backdrop-filter .6s var(--ease), padding .6s var(--ease);
}
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  opacity: 0; transition: opacity .6s var(--ease);
}
.nav.is-scrolled { background: rgba(4, 5, 10, .55); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); padding-top: 12px; padding-bottom: 12px; }
.nav.is-scrolled::after { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__mark { height: 22px; width: auto; color: var(--ink); filter: drop-shadow(0 0 6px rgba(255, 228, 191, .35)); }
.nav__name { font: 500 13px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.nav__name span { color: var(--ink-3); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { position: relative; font-size: 14px; color: var(--ink-2); transition: color .3s; padding: 6px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--corona); box-shadow: 0 0 8px var(--corona); transform: scale(0); transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scale(1); }
.lang {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--ink-3);
  transition: border-color .3s, background-color .3s;
}
.lang:hover { border-color: var(--ink-3); background: rgba(237, 232, 223, .04); }
.lang__sep { width: 1px; height: 10px; background: var(--line-2); }
html[lang='en'] .lang [data-lang='en'], html[lang='sl'] .lang [data-lang='sl'] { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px var(--gutter) 0;
}
.hero__inner { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateY(-15vh); transform: translateY(-15svh); will-change: transform, opacity; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-3); margin-bottom: clamp(28px, 4.5vh, 48px); }
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--corona); box-shadow: 0 0 10px 2px rgba(255, 196, 140, .7); animation: pulse 3.2s var(--ease-io) infinite; }
.hero__title { width: min(78vw, 980px); color: var(--ink); }
.wordmark { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 24px rgba(255, 228, 191, .16)); }
.wordmark__glint { filter: drop-shadow(0 0 6px rgba(255, 214, 170, .9)) drop-shadow(0 0 18px rgba(255, 170, 110, .5)); pointer-events: none; }
.hero__title { cursor: default; }
.hero__lab { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 32px); margin-top: clamp(16px, 2.6vw, 30px); color: var(--ink-2); }
.hero__lab svg { width: clamp(46px, 6vw, 80px); height: auto; overflow: visible; }
.hero__lab::before, .hero__lab::after {
  content: ''; height: 1px; flex: 1; max-width: 340px;
  background: linear-gradient(90deg, transparent, var(--line-2));
  transform-origin: right center;
}
.hero__lab::after { background: linear-gradient(90deg, var(--line-2), transparent); transform-origin: left center; }
.hero__tagline {
  margin-top: clamp(28px, 4.5vh, 52px);
  font: 400 clamp(22px, 2.7vw, 34px)/1.2 var(--serif); color: var(--ink-2); letter-spacing: .005em;
}
.hero__tagline em { color: var(--corona); text-shadow: 0 0 30px rgba(255, 196, 140, .35); }

.hero__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(28px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  color: var(--ink-3); font-size: 11px;
}
.hero__coords { line-height: 1.9; }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; color: var(--ink-2); }
.hero__scroll-line { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: linear-gradient(transparent, var(--corona)); animation: drip 2.4s var(--ease-io) infinite;
}

/* ---------- intro choreography (JS adds .intro on <html>, then .is-in per element) ---------- */
.js .nav { opacity: 0; transform: translateY(-12px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), background-color .6s var(--ease), padding .6s var(--ease); }
.js .nav.is-in { opacity: 1; transform: none; }
.js .nav.is-in.is-hidden { transform: translateY(-110%); }
.js [data-intro] { opacity: 0; }
.js [data-intro].is-in { opacity: 1; }
.js [data-intro='eyebrow'] { transform: translateY(10px); filter: blur(6px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease); }
.js [data-intro='eyebrow'].is-in { transform: none; filter: none; }
.js [data-intro='word'] { opacity: 1; }
.js [data-intro='word'] path[pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js [data-intro='word'].is-in path[pathLength] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s var(--ease-io); }
.js [data-intro='word'].is-in path:nth-child(1) { transition-delay: 0s; }
.js [data-intro='word'].is-in path:nth-child(2) { transition-delay: .08s; }
.js [data-intro='word'].is-in path:nth-child(3) { transition-delay: .16s; }
.js [data-intro='word'].is-in path:nth-child(4) { transition-delay: .24s; }
.js [data-intro='word'].is-in path:nth-child(5) { transition-delay: .32s; }
.js [data-intro='word'].is-in path:nth-child(6) { transition-delay: .40s; }
.js [data-intro='word'].is-in path:nth-child(7) { transition-delay: .48s; }
.js [data-intro='word'].is-in path:nth-child(8) { transition-delay: .56s; }
.js [data-intro='lab'] { opacity: 1; }
.js [data-intro='lab'] svg { opacity: 0; transform: translateY(6px); transition: opacity 1.2s var(--ease) .2s, transform 1.2s var(--ease) .2s; }
.js [data-intro='lab']::before, .js [data-intro='lab']::after { transform: scaleX(0); transition: transform 1.6s var(--ease); }
.js [data-intro='lab'].is-in svg { opacity: 1; transform: none; }
.js [data-intro='lab'].is-in::before, .js [data-intro='lab'].is-in::after { transform: none; }
.js [data-intro='tagline'] { opacity: 1; }
.js [data-intro='tagline'] .w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.js [data-intro='tagline'].is-in .w { opacity: 1; transform: none; filter: none; }
.js [data-intro='meta'] { transform: translateY(8px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js [data-intro='meta'].is-in { transform: none; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 15vh, 190px) 0; }
.label { color: var(--ink-3); display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.label::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, var(--dawn), transparent); }
.h2 {
  font: 400 clamp(44px, 7.2vw, 104px)/.98 var(--serif); letter-spacing: -.012em; color: var(--ink);
  max-width: 14ch;
}
.h2 em { color: var(--corona); }
.lede { margin-top: 28px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }
.section__head { margin-bottom: clamp(56px, 8vw, 110px); }

/* reveal on enter */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- 01 lab ---------- */
.lab__text {
  font: 400 clamp(32px, 4.5vw, 68px)/1.12 var(--serif); letter-spacing: -.008em;
  max-width: 22ch; color: var(--ink);
}
.lab__text .w { color: var(--ink); opacity: .14; transition: opacity .5s linear, text-shadow .5s linear; }
.lab__text .w.is-lit { opacity: 1; }
.lab__text .w.is-hot { text-shadow: 0 0 22px rgba(255, 210, 160, .55); }
.platforms {
  margin-top: clamp(48px, 7vw, 88px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
}
.platforms__k { color: var(--ink-3); margin-right: 10px; display: flex; align-items: center; gap: 14px; }
.platforms__k::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, var(--limb), transparent); }
.platform {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 12, 22, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 400 clamp(20px, 1.7vw, 24px)/1 var(--serif); color: var(--ink);
}
.platform svg { width: 22px; height: 22px; color: var(--corona); filter: drop-shadow(0 0 6px rgba(255, 196, 140, .35)); }
.principles {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line); padding-top: 40px;
}
.principle { position: relative; }
.principle__n { position: absolute; right: 0; top: 0; color: var(--ink-4); }
.principle__icon { width: 44px; height: 44px; color: var(--corona); fill: var(--corona); margin-bottom: 26px; filter: drop-shadow(0 0 10px rgba(255, 196, 140, .35)); }
.principle h3 { font: 400 30px/1.1 var(--serif); margin-bottom: 14px; }
.principle p { color: var(--ink-2); max-width: 34ch; font-size: 16px; }
.principle:nth-child(2) { --rd: .12s; }
.principle:nth-child(3) { --rd: .24s; }

/* ---------- 02 work ---------- */
.products { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.constellation path { fill: none; stroke: rgba(255, 228, 191, .32); stroke-width: 1; stroke-dasharray: 3 7; }

.product {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 44px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 19, 34, .62), rgba(8, 9, 18, .5));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}
.product::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 210, 160, .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
}
.product::after {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 190, 130, .07), transparent 50%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.product:hover::before, .product:hover::after { opacity: 1; }
.product--live { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.product__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink-3); margin-bottom: 30px; flex-wrap: wrap; }
.product__id { color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 5, 10, .4); font-size: 11px; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status__note { color: var(--ink-4); padding-left: 10px; border-left: 1px solid var(--line); }
.status--live { color: var(--live); }
.status--live .status__dot { animation: pulse 2.4s var(--ease-io) infinite; }
.status--soon { color: var(--dawn); }
.status--soon .status__dot { animation: blink 1.6s steps(2, jump-none) infinite; }
.status--next { color: var(--ink-3); }
.status--next .status__dot { background: transparent; border: 1px dashed currentColor; box-shadow: none; }
.product__name { font: 400 clamp(46px, 5.6vw, 84px)/1 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; }
.product--soon .product__name, .product--next .product__name { font-size: clamp(40px, 4.4vw, 64px); }
.product__name--logo { margin-bottom: 26px; line-height: 0; }
.product__name--logo img { height: clamp(38px, 3.7vw, 56px); width: auto; filter: drop-shadow(0 0 22px rgba(38, 119, 245, .22)); }
.product__desc { color: var(--ink-2); max-width: 44ch; font-size: clamp(16px, 1.25vw, 18px); }
.product__facts { margin: 30px 0 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.product__facts li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.product__facts li::before {
  content: ''; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  background: var(--corona);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px var(--corona));
}
.product--next .product__desc { margin-bottom: 30px; }
.product__facts--compact { margin: 24px 0 30px; }
.product__facts--compact li { padding-top: 11px; padding-bottom: 11px; font-size: 14px; }
.product__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.product--live .product__ctas { margin-top: 0; }
.product__ctas .btn--ghost { margin-top: 0; }
.product--soon, .product--next { --rd: .1s; }
.product--next { --rd: .2s; }

.btn {
  position: relative; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px 15px 24px; border-radius: 999px;
  background: var(--ink); color: var(--void);
  font: 500 15px/1 var(--sans);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255, 228, 191, .08), 0 10px 40px -10px rgba(255, 196, 140, .6); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); margin-top: auto; }
.btn--ghost:hover { background: rgba(237, 232, 223, .06); box-shadow: none; }
.btn--ghost:hover svg { transform: translateX(3px); }

/* plates */
.plate { position: relative; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, rgba(20, 28, 60, .55), rgba(4, 5, 10, .6)); overflow: hidden; }
.plate figcaption { position: absolute; left: 18px; right: 18px; bottom: 14px; color: var(--ink-4); font-size: 10px; letter-spacing: .12em; text-transform: none; }
.plate--road { aspect-ratio: 1; color: rgba(237, 232, 223, .55); }
.plate--road svg { width: 100%; height: 100%; }
.plate__reticle circle { fill: none; stroke: rgba(237, 232, 223, .12); stroke-width: 1; }
.plate__ticks line { stroke: rgba(237, 232, 223, .22); stroke-width: 1; }
.plate__labels text { fill: rgba(237, 232, 223, .38); font-size: 10px; letter-spacing: .14em; }
.plate__labels text.dim { fill: rgba(237, 232, 223, .22); }
.road path { stroke-width: 1.2; }
.road__stop { stroke: rgba(255, 157, 92, .8); stroke-width: 2; stroke-dasharray: 4 4; }
.car--a { animation: carA 7s var(--ease-io) infinite; }
.car--b { animation: carB 7s var(--ease-io) infinite; }
@keyframes carA {
  0%   { transform: translate(216px, 430px); opacity: 0; }
  6%   { opacity: 1; }
  24%, 52% { transform: translate(216px, 262px); }
  80%  { transform: translate(216px, 60px); opacity: 1; }
  88%, 100% { transform: translate(216px, -30px); opacity: 0; }
}
@keyframes carB {
  0%   { transform: translate(430px, 184px); opacity: 0; }
  10%  { opacity: 1; }
  26%  { transform: translate(300px, 184px); }
  54%  { transform: translate(40px, 184px); opacity: 1; }
  62%, 100% { transform: translate(-30px, 184px); opacity: 0; }
}

.plate--signal, .plate--void { aspect-ratio: 16 / 9; margin-bottom: 30px; display: grid; place-items: center; }
.plate--signal .ring {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%; border-radius: 50%;
  border: 1px solid rgba(255, 157, 92, .5); opacity: 0; animation: ring 4.2s var(--ease) infinite;
}
.plate--signal .ring:nth-child(2) { animation-delay: 1.4s; }
.plate--signal .ring:nth-child(3) { animation-delay: 2.8s; }
.minor-star {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 3px rgba(255, 196, 140, .75), 0 0 50px 10px rgba(255, 157, 92, .25);
  animation: flicker 3.2s ease-in-out infinite;
}
.minor-star::before, .minor-star::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, rgba(255, 240, 220, .9), transparent);
  width: 90px; height: 1px; margin: -.5px 0 0 -45px;
}
.minor-star::after { transform: rotate(90deg) scaleX(.7); }
.plate--signal .minor-star { margin-bottom: 14%; }
.type { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); font: 400 13px/1 var(--mono); color: var(--corona); white-space: nowrap; letter-spacing: 0; }
.type__text {
  display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; padding-right: 3px;
  border-right: 2px solid var(--dawn);
  animation: type 8s steps(var(--n, 28), end) infinite, caret .9s steps(2, jump-none) infinite;
}
@keyframes type { 0%, 6% { width: 0; } 42%, 86% { width: calc(var(--n, 28) * 1ch + 3px); } 100% { width: 0; } }
@keyframes caret { 0% { border-right-color: var(--dawn); } 100% { border-right-color: transparent; } }

.void-ring { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(237, 232, 223, .2); animation: spin 60s linear infinite; }
.void-ring::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgba(237, 232, 223, .08); }
.speck { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; animation: speck 4.4s ease-in-out infinite; animation-delay: var(--d); box-shadow: 0 0 6px 1px rgba(200, 225, 255, .8); }
.void-q { font: italic 400 46px/1 var(--serif); color: var(--ink-4); }

/* ---------- 03 name ---------- */
.name__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.name__text .h2 { margin-bottom: 40px; max-width: 12ch; }
.name__text p:not(.label) { color: var(--ink-2); max-width: 44ch; font-size: clamp(16px, 1.25vw, 18px); margin-bottom: 20px; }
.name__text p em { color: var(--ink); font-family: var(--serif); font-size: 1.2em; }
.name__p3 { color: var(--ink) !important; font: 400 clamp(22px, 2.2vw, 30px)/1.25 var(--serif) !important; margin-top: 36px; padding-left: 22px; border-left: 1px solid var(--dawn); }

.helix { position: relative; padding: clamp(14px, 2vw, 28px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 13, 26, .55), rgba(4, 5, 10, .35)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.helix svg { width: 100%; height: auto; overflow: visible; }
.hx-sky { opacity: var(--hx-sky, .3); }
.hx-twilight { opacity: var(--hx-glow, .4); }
.hx-alt { fill: none; stroke: rgba(237, 232, 223, .07); stroke-width: 1; stroke-dasharray: 2 6; }
.hx-grid text { fill: rgba(237, 232, 223, .28); font-size: 10px; letter-spacing: .1em; }
.hx-path { fill: none; stroke: rgba(255, 228, 191, .18); stroke-width: 1; stroke-dasharray: 3 6; }
.hx-path--sun { stroke: rgba(255, 157, 92, .2); }
.hx-horizon { stroke: rgba(237, 232, 223, .55); stroke-width: 1.2; }
.hx-ground { fill: rgba(2, 3, 6, .78); }
.hx-tick { stroke: rgba(237, 232, 223, .5); }
.hx-sun circle { fill: #ffb070; filter: drop-shadow(0 0 14px rgba(255, 157, 92, .9)); }
.hx-arc path { fill: none; stroke: rgba(255, 157, 92, .65); stroke-width: 1; }
.hx-arc .hx-drop { stroke-dasharray: 2 4; stroke: rgba(255, 157, 92, .45); }
.hx-label { fill: rgba(237, 232, 223, .82); font-size: 11px; letter-spacing: .12em; }
.hx-label--dim { fill: rgba(237, 232, 223, .45); }
.hx-lead { fill: none; stroke: rgba(237, 232, 223, .35); stroke-width: 1; }
.hx-star__spikes { fill: #fff; filter: drop-shadow(0 0 4px rgba(255, 240, 220, .9)); }
.hx-star { opacity: var(--hx-star, 0); }
.hx-callout--star { opacity: var(--hx-callout, 0); transition: opacity .4s; }
.days { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 18px; padding: 0 6px; }
.days__label { color: var(--ink-4); font-size: 10px; }
.days__label--first { color: var(--corona); }
.days__row { display: flex; justify-content: space-between; align-items: center; height: 14px; }
.days__row i { width: 3px; height: 3px; border-radius: 50%; background: rgba(237, 232, 223, .2); }
.days__row i:last-child { width: 9px; height: 9px; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 196, 140, .8); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.helix figcaption { margin-top: 16px; padding: 0 6px; color: var(--ink-4); font-size: 10px; letter-spacing: .12em; text-transform: none; }

/* ---------- 04 contact ---------- */
.contact .h2 { max-width: 13ch; }
.signal {
  position: relative; margin-top: clamp(56px, 7vw, 90px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(26px, 3.4vw, 48px) clamp(24px, 3.4vw, 52px);
  border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(20, 22, 40, .6), rgba(6, 7, 14, .45));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  overflow: hidden; isolation: isolate;
}
.signal::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 210, 160, .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
}
.signal:hover::before { opacity: 1; }
.signal__email {
  position: relative;
  font: 400 clamp(28px, 4.6vw, 70px)/1.05 var(--serif); letter-spacing: -.01em;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--corona) 50%, var(--ink) 60%, var(--ink) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position 1.4s var(--ease);
}
.signal__email:hover { background-position: 0 0; }
.signal__user { white-space: nowrap; }
.signal__at { font-style: italic; color: inherit; }
.signal__domain { opacity: .75; }
.copy {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-2);
  transition: border-color .3s, color .3s, background-color .3s;
}
.copy svg { width: 16px; height: 16px; }
.copy:hover { border-color: var(--ink-3); color: var(--ink); background: rgba(237, 232, 223, .05); }
.copy.is-done { color: var(--live); border-color: rgba(126, 226, 168, .5); }
.signal__wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 140, .7), transparent);
  background-size: 40% 100%; background-repeat: no-repeat; animation: scan 5s var(--ease-io) infinite;
}
.contact__grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact__card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 18px; row-gap: 6px; align-items: center;
  padding: 24px 26px; border-radius: 22px; border: 1px solid var(--line);
  background: rgba(10, 12, 22, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
a.contact__card:hover { border-color: var(--line-2); background: rgba(18, 20, 34, .55); }
.contact__icon { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--ink-2); }
.contact__k { color: var(--ink-3); font-size: 11px; }
.contact__v { grid-column: 2; color: var(--ink); font-size: 16px; }
.contact__arrow { grid-row: 1 / 3; grid-column: 3; width: 16px; height: 16px; color: var(--ink-3); transition: transform .4s var(--ease), color .4s; }
a.contact__card:hover .contact__arrow { transform: translate(2px, -2px); color: var(--ink); }
.contact__card:nth-child(2) { --rd: .1s; }
.contact__card:nth-child(3) { --rd: .2s; }

/* ---------- footer ---------- */
.footer { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom)); }
.footer__stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 18vh; gap: 32px; }
.footer__word { width: min(100%, 1360px); height: auto; overflow: visible; }
.footer__base { stroke: rgba(237, 232, 223, .5); }
.footer__glint { mix-blend-mode: screen; }
.footer__top { display: inline-flex; gap: 10px; color: var(--ink-3); transition: color .3s; }
.footer__top:hover { color: var(--ink); }
.footer__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 11px;
}
.footer__note { color: var(--ink-4); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--ink); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 999px; background: rgba(237, 232, 223, .95); color: var(--void);
  font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- keyframes ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.82); } }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .2; } }
@keyframes drip { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes ring { 0% { transform: scale(.3); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .65; } 55% { opacity: .9; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes speck { 0%, 100% { opacity: 0; transform: scale(.5); } 50% { opacity: .9; transform: scale(1); } }
@keyframes scan { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .product--live { grid-template-columns: 1fr; }
  .name__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .nav__name { font-size: 11px; letter-spacing: .26em; }
  .hero__title { width: 88vw; }
  .hero__inner { transform: translateY(-17svh); }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 18px; font-size: 10px; }
  .hero__scroll { position: absolute; right: 0; bottom: 0; }
  .hero__coords .faint { display: none; }
  .principles { grid-template-columns: 1fr; gap: 44px; }
  .products { grid-template-columns: 1fr; }
  .product { border-radius: 22px; }
  .status__note { display: none; }
  .signal { border-radius: 22px; }
  .signal__email { font-size: clamp(24px, 7.6vw, 40px); }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__word g { stroke-width: 4.5; }
  .days__label:first-child { display: none; }
  .hx-label { font-size: 19px; letter-spacing: .06em; }
  .hx-grid text { font-size: 16px; }
  .hx-east { display: none; }
  .signal__email { overflow-wrap: normal; }
  .days { grid-template-columns: 1fr auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  /* never blanket-reset `transform` on SVG children: it would override their transform attributes */
  .js [data-reveal], .js [data-intro], .js .nav,
  .js [data-intro='lab'] svg, .js [data-intro='tagline'] .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js [data-intro='lab']::before, .js [data-intro='lab']::after { transform: none !important; }
  .js [data-intro='word'] path[pathLength] { stroke-dashoffset: 0 !important; }
  .lab__text .w { opacity: 1 !important; }
  .car--a { transform: translate(216px, 262px); opacity: 1; }
  .car--b { transform: translate(300px, 184px); opacity: 1; }
  .type__text { width: auto !important; border-right-color: transparent !important; }
}
