/* Layout: an Apple-style studio page on black. Sticky glass bar, one centred column for the words,
   wide grids for the program, formula paper behind everything and Alyxia floating over the headline.
   Strictly black, white and greys; Alyxia's type: Inter, Instrument Serif Italic, Geist Mono. */
:root {
  color-scheme: dark;
  --bg: #000;
  --surface: rgba(22, 22, 24, 0.62);
  --surface-hi: rgba(34, 34, 37, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(255, 255, 255, 0.2);
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #6e6e73;
  --band: #f5f5f7;
  --band-fg: #1d1d1f;
  --band-2: #6e6e73;

  --sans: "AIV Sans", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "AIV Serif", "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "AIV Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --nav-h: 52px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@font-face { font-family: "AIV Sans"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "AIV Serif"; src: url("../fonts/serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "AIV Mono"; src: url("../fonts/mono.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) url("../img/math.webp") repeat 50% 0 / 1200px 1200px;
  color: var(--fg);
  font: 400 1.0625rem/1.5 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60;
  background: rgba(0, 0, 0, 0.78);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.sans { font-family: var(--sans); font-weight: 700; font-style: normal; letter-spacing: -0.04em; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.012em; }
.glow { text-shadow: 0 0 0.45em rgba(255, 255, 255, 0.3), 0 0 0.12em rgba(255, 255, 255, 0.32); }
.eyebrow { font: 600 0.82rem/1.3 var(--sans); letter-spacing: -0.005em; color: var(--fg-3); text-align: center; margin-bottom: 14px; }
.section-title {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em;
  text-align: center; margin: 0 auto; max-width: 15em; text-wrap: balance;
}
.section-title .serif, .hero-title .serif, .case-quote .serif { font-size: 1.12em; }
.section-sub {
  max-width: 34em; margin: 18px auto 0; text-align: center; color: var(--fg-2);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem); line-height: 1.47; letter-spacing: -0.015em; text-wrap: pretty;
}

/* ---------- Buttons and links ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  font: 500 1.0625rem/1 var(--sans); letter-spacing: -0.012em; white-space: nowrap;
  color: #000; background: var(--fg); text-decoration: none;
  padding: 0.95em 1.55em; border: 0; border-radius: 980px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pill:hover { background: #fff; }
.pill:active { transform: scale(0.98); }
.pill-sm { font-size: 0.8rem; padding: 0.6em 1.1em; }
.pill-lg { font-size: 1.1rem; padding: 1.05em 2.2em; }
.more { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.012em; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more span { display: inline-block; transition: transform 0.2s ease; }
.more:hover span { transform: translateX(3px); }

/* formulas live at the sides; the centre column stays quiet behind the text */
.veil {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0, rgba(0, 0, 0, 0.8) calc(50% - 480px), rgba(0, 0, 0, 0.8) calc(50% + 480px), rgba(0, 0, 0, 0.1) 100%);
}
@media (max-width: 760px) { .veil { background: rgba(0, 0, 0, 0.45); } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h);
  max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.nav-mark { text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.nav-mark .sans { letter-spacing: -0.03em; }
.nav-mark .serif { font-size: 1.16em; color: var(--fg-2); }
.nav-links { display: flex; gap: 30px; font-size: 0.8rem; color: var(--fg-2); }
.nav-links a { text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--fg); }

/* ---------- Page and hero ---------- */
.page { position: relative; overflow-x: clip; }
@supports not (overflow: clip) { .page { overflow-x: hidden; } }
.hero-math { position: absolute; left: 0; right: 0; top: 0; height: 940px; max-width: 1480px; margin: 0 auto; pointer-events: none; z-index: 0; }
.mf { position: absolute; opacity: 0.16; animation: mf-drift 24s ease-in-out infinite alternate; }
.mf-1 { left: 3%; top: 96px; width: 300px; }
.mf-2 { left: 7%; top: 420px; width: 170px; opacity: 0.13; animation-duration: 29s; animation-delay: -6s; }
.mf-3 { left: 4%; top: 640px; width: 150px; opacity: 0.11; animation-duration: 21s; animation-delay: -12s; }
.mf-4 { right: 2%; top: 150px; width: 300px; animation-duration: 26s; animation-delay: -3s; }
.mf-5 { right: 8%; top: 430px; width: 130px; opacity: 0.13; animation-duration: 31s; animation-delay: -9s; }
.mf-6 { right: 6%; top: 660px; width: 94px; opacity: 0.11; animation-duration: 23s; animation-delay: -15s; }
@keyframes mf-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(12px, -18px, 0); } }

.hero {
  position: relative; z-index: 1; text-align: center; max-width: 1080px; margin: 0 auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: clamp(44px, 8vh, 92px) 0;
}
.alyxia-wrap {
  position: relative; width: clamp(116px, 15vw, 188px); aspect-ratio: 1; max-width: 100%;
  margin: 0 auto clamp(26px, 4vh, 40px);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.8s var(--ease), opacity 0.3s ease;
}
.alyxia-float { position: absolute; inset: 0; animation: aly-bob 6.4s ease-in-out infinite; }
.alyxia { width: 100%; height: 100%; animation: aly-turn 120s linear infinite; }
.alyxia-glow {
  position: absolute; left: 50%; bottom: -20%; width: 90%; height: 18%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), transparent);
  animation: aly-glow 6.4s ease-in-out infinite;
}
@keyframes aly-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
@keyframes aly-turn { to { transform: rotate(360deg); } }
@keyframes aly-glow { 0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); } 50% { opacity: 0.55; transform: translateX(-50%) scale(0.84); } }

.hero-title {
  font-size: clamp(2.6rem, 9vw, 6.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em;
  margin: 0 auto;
}
.hero-title .w { display: inline-block; }
.hero-title .serif { letter-spacing: -0.015em; }
.br-d { display: none; }
@media (min-width: 700px) { .br-d { display: inline; } }
.slot .rotator { display: inline-block; text-align: center; white-space: nowrap; transition: width 0.45s var(--ease); }
.rot-word { display: inline-block; transition: opacity 0.32s ease, transform 0.32s ease, filter 0.32s ease; }
.rot-word.is-out { opacity: 0; transform: translateY(0.22em); filter: blur(6px); }
.hero-sub {
  max-width: 33em; margin: clamp(20px, 3vh, 30px) auto 0; color: var(--fg-2);
  font-size: clamp(1.06rem, 1.7vw, 1.32rem); line-height: 1.45; letter-spacing: -0.016em; text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 30px; margin-top: 34px; }
.scroll-cue { display: flex; justify-content: center; margin-top: clamp(40px, 7vh, 72px); }
.scroll-cue span {
  display: block; width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%) 0 0 / 100% 200% no-repeat;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* hero choreography after the intro: hidden only while the intro runs */
.intro-on .hero .eyebrow, .intro-on .hero-title .w, .intro-on .hero-sub, .intro-on .hero-ctas,
.intro-on .scroll-cue, .intro-on .alyxia-wrap, .intro-on .nav, .intro-on .hero-math { opacity: 0; }
.intro-on.aly-in .alyxia-wrap { opacity: 1; }
.intro-on .alyxia-float { animation-play-state: paused; }
.intro-on:not(.intro-js) .hero .eyebrow, .intro-on:not(.intro-js) .hero-title .w, .intro-on:not(.intro-js) .hero-sub,
.intro-on:not(.intro-js) .hero-ctas, .intro-on:not(.intro-js) .scroll-cue, .intro-on:not(.intro-js) .alyxia-wrap,
.intro-on:not(.intro-js) .nav, .intro-on:not(.intro-js) .hero-math { animation: failsafe-show 0.01s 6s forwards; }
@keyframes failsafe-show { to { opacity: 1; } }
.hero-play .hero-title .w { animation: word-in 0.9s var(--ease) both; }
.hero-play .hero-title .w:nth-of-type(2) { animation-delay: 0.12s; }
.hero-play .hero-title .w:nth-of-type(3) { animation-delay: 0.3s; }
.hero-play .hero-title .w:nth-of-type(4) { animation-delay: 0.42s; }
.hero-play .hero .eyebrow { animation: rise 0.7s 0.02s var(--ease) both; }
.hero-play .hero-sub { animation: rise 0.8s 0.62s var(--ease) both; }
.hero-play .hero-ctas { animation: rise 0.8s 0.78s var(--ease) both; }
.hero-play .scroll-cue { animation: rise 0.8s 1s var(--ease) both; }
.hero-play .nav { animation: fade 0.8s 0.5s ease both; }
.hero-play .hero-math { animation: fade 2s 0.6s ease both; }
@keyframes word-in { from { opacity: 0; transform: translateY(0.2em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Blocks ---------- */
.block {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: clamp(96px, 13vw, 160px) 0;
}
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.tile {
  position: relative; padding: 26px 24px 28px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease);
}
.tile:hover { border-color: var(--line-hi); background: var(--surface-hi); transform: translateY(-3px); }
.ico { width: 26px; height: 26px; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-title { margin: 0 0 8px; font: 700 1.18rem/1.2 var(--sans); letter-spacing: -0.026em; }
.tile-desc { font-size: 0.94rem; line-height: 1.5; color: var(--fg-2); letter-spacing: -0.01em; }

/* ---------- Demo (VSL slot) ---------- */
.demo {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: center; gap: clamp(28px, 5vw, 64px);
  max-width: 980px; margin: clamp(44px, 6vw, 68px) auto 0; padding: clamp(22px, 4.6vw, 56px);
  border-radius: 32px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 30, 33, 0.72), rgba(12, 12, 13, 0.72));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 70px 160px -70px rgba(255, 255, 255, 0.2);
}
.demo-prompt { min-width: 0; }
.dp-head {
  display: flex; justify-content: space-between; gap: 12px; font: 500 0.72rem/1 var(--mono); color: var(--fg-3);
  padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.dp-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.d-line { display: grid; gap: 6px; transition: opacity 0.45s ease; }
.d-k { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.d-t { font: 400 clamp(0.9rem, 1.45vw, 1.02rem)/1.5 var(--mono); color: var(--fg); min-height: 1.5em; letter-spacing: -0.01em; }
.d-t::before { content: "> "; color: var(--fg-3); }
.d-line.typing .d-t::after {
  content: ""; display: inline-block; width: 0.55em; height: 1.1em; margin-left: 0.06em;
  background: var(--fg); vertical-align: -0.2em; animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.demo-phone {
  justify-self: center; position: relative; width: min(250px, 100%); aspect-ratio: 9 / 16;
  border-radius: 40px; background: #0c0c0d; border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 90px -40px rgba(255, 255, 255, 0.22);
}
.ph-screen { position: absolute; inset: 7px; border-radius: 33px; overflow: hidden; background: #000; --gen: 1; --bar: 0; }
.ph-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000;
  filter: blur(calc((1 - var(--gen)) * 18px)) brightness(calc(0.5 + var(--gen) * 0.5));
  transform: scale(calc(1.08 - var(--gen) * 0.08));
}
.ph-veil {
  position: absolute; inset: 0; clip-path: inset(calc(var(--gen) * 100%) 0 0 0);
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px), #000;
}
.ph-scan {
  position: absolute; left: 0; right: 0; top: calc(var(--gen) * 100%); height: 2px; margin-top: -1px;
  background: #fff; box-shadow: 0 0 14px 3px rgba(255, 255, 255, 0.5); opacity: 0; transition: opacity 0.3s ease;
}
.ph-gen, .ph-pub {
  position: absolute; top: 6%; left: 50%; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 6px 10px; border-radius: 980px; transform: translateX(-50%);
}
.ph-gen { font: 500 0.62rem/1 var(--mono); letter-spacing: 0.04em; color: var(--fg); background: rgba(0, 0, 0, 0.62); border: 1px solid var(--line-hi); opacity: 0; transition: opacity 0.3s ease; }
.ph-pct { font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: right; }
.ph-pub {
  font: 600 0.62rem/1 var(--sans); letter-spacing: 0.02em; background: var(--fg); color: #000;
  opacity: 0; transform: translate(-50%, -8px) scale(0.92); transition: opacity 0.4s ease, transform 0.45s var(--ease);
}
.demo.generating .ph-scan, .demo.generating .ph-gen { opacity: 1; }
.demo.pub .ph-pub { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ph-sound, .ph-play {
  position: absolute; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  color: var(--fg); background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line-hi); border-radius: 50%;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.2s ease;
}
.ph-sound:hover, .ph-play:hover { background: rgba(40, 40, 44, 0.75); }
.ph-sound { right: 10px; bottom: 24px; width: 34px; height: 34px; }
.ph-sound svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ph-sound .i-on, .ph-sound[aria-pressed="true"] .i-off { display: none; }
.ph-sound[aria-pressed="true"] .i-on { display: block; }
.ph-play { left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); }
.ph-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.ph-bar { position: absolute; left: 12%; right: 12%; bottom: 11px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.ph-bar span { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(var(--bar)); }
.demo-note { text-align: center; color: var(--fg-3); font-size: 0.86rem; margin-top: 20px; }
.demo.is-live .d-line { opacity: 0.22; }
.demo.is-live .d-line.on { opacity: 1; }

/* ---------- Light band (marquee) ---------- */
.band {
  position: relative; z-index: 1; background: var(--band); color: var(--band-fg); overflow: hidden;
  margin-top: clamp(96px, 13vw, 160px); padding-block: clamp(30px, 4.4vw, 48px);
  display: grid; gap: clamp(12px, 1.8vw, 18px);
}
.band-label { font: 600 0.82rem/1.3 var(--sans); color: var(--band-2); text-align: center; padding-left: var(--gutter-l); padding-right: var(--gutter-r); margin-bottom: 6px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.m-track { display: flex; width: max-content; animation: mq-left 80s linear infinite; }
.m-right .m-track { animation-name: mq-right; animation-duration: 70s; }
.marquee:hover .m-track { animation-play-state: paused; }
@keyframes mq-left { to { transform: translateX(-50%); } }
@keyframes mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.m-list { display: flex; list-style: none; margin: 0; padding: 0; }
.m-list li { display: flex; align-items: center; gap: clamp(1.3rem, 3vw, 2.4rem); padding-right: clamp(1.3rem, 3vw, 2.4rem); white-space: nowrap; }
.m-list li::after { content: ""; width: 1px; height: 0.8em; background: rgba(0, 0, 0, 0.16); }
.m-formats li { font: 700 clamp(1.5rem, 3.4vw, 2.4rem)/1.15 var(--sans); letter-spacing: -0.04em; }
.m-sectors li { font: italic 400 clamp(1.55rem, 3.5vw, 2.45rem)/1.15 var(--serif); color: var(--band-2); letter-spacing: -0.01em; }

/* ---------- Program ---------- */
.mod-carousel { margin-top: clamp(44px, 6vw, 68px); }
.mod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.tile-num { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.04em; color: var(--fg-3); }
.mod-navs { display: none; justify-content: center; gap: 12px; margin-top: 18px; }
.mod-nav {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line-hi); background: rgba(22, 22, 24, 0.8); color: var(--fg);
}
.mod-nav:hover { background: rgba(44, 44, 48, 0.9); }

/* ---------- Audience ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(44px, 6vw, 68px); }
.aud-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-hi); margin-bottom: 26px; }
.aud-ico .ico { width: 22px; height: 22px; }

/* ---------- Skills orbit ---------- */
.orbit { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; margin: clamp(28px, 4vw, 44px) auto 0; container-type: inline-size; --radius: 40cqw; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 70%); mask-image: radial-gradient(circle, #000 50%, transparent 70%);
  animation: core-breathe 7s ease-in-out infinite;
}
@keyframes core-breathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
.orbit-ring { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; animation: spin 90s linear infinite; }
.sk { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--radius))); }
.sk-fix { display: block; width: max-content; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); }
.sk-card {
  display: block; width: clamp(5.8rem, 23cqw, 9.4rem); padding: 0.5rem 0.65rem;
  font: 500 clamp(0.62rem, 2.2cqw, 0.82rem)/1.25 var(--sans); letter-spacing: -0.01em; text-align: center; color: var(--fg);
  background: rgba(18, 18, 20, 0.88); border: 1px solid var(--line-hi); border-radius: 14px;
  animation: spin-rev 90s linear infinite;
}
.sk:nth-child(1) { --a: 0deg; } .sk:nth-child(2) { --a: 36deg; } .sk:nth-child(3) { --a: 72deg; } .sk:nth-child(4) { --a: 108deg; } .sk:nth-child(5) { --a: 144deg; }
.sk:nth-child(6) { --a: 180deg; } .sk:nth-child(7) { --a: 216deg; } .sk:nth-child(8) { --a: 252deg; } .sk:nth-child(9) { --a: 288deg; } .sk:nth-child(10) { --a: 324deg; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

/* ---------- Case ---------- */
.case { text-align: center; }
.case-quote { margin: 6px auto 0; max-width: 16em; font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.case-text { max-width: 33em; margin: 28px auto 24px; color: var(--fg-2); font-size: clamp(1.04rem, 1.5vw, 1.22rem); line-height: 1.47; letter-spacing: -0.015em; }

/* ---------- Price ---------- */
.price-card {
  max-width: 560px; margin: clamp(44px, 6vw, 60px) auto 0; text-align: center;
  padding: clamp(32px, 5vw, 50px) clamp(22px, 5vw, 46px); border-radius: 32px;
  background: linear-gradient(180deg, rgba(34, 34, 37, 0.78), rgba(14, 14, 15, 0.78));
  border: 1px solid var(--line-hi);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 70px 160px -70px rgba(255, 255, 255, 0.22);
}
.price-plan { font-size: 1.25rem; }
.price-plan .sans { letter-spacing: -0.03em; }
.price-plan .serif { font-size: 1.16em; color: var(--fg-2); }
.plan-name { font: 500 0.82rem/1 var(--sans); color: var(--fg-3); margin-top: 10px; }
.price-value { margin-top: 30px; font-size: clamp(3.8rem, 11vw, 5.4rem); line-height: 1; }
.price-value .sans { letter-spacing: -0.055em; }
.price-tax { margin-top: 12px; color: var(--fg-2); font-size: 0.98rem; }
.price-total { margin: 14px auto 32px; max-width: 30em; color: var(--fg-3); font-size: 0.85rem; line-height: 1.5; }
.btn-pay { width: 100%; max-width: 340px; }
.pay-alert {
  margin: 16px auto 0; max-width: 30em; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line-hi); background: rgba(255, 255, 255, 0.07); font-size: 0.88rem; color: var(--fg);
}
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 28px 0 12px; }
.pay-methods li { font: 500 0.78rem/1 var(--sans); padding: 8px 12px; border-radius: 980px; border: 1px solid var(--line); color: var(--fg-2); }
.pay-note { font-size: 0.8rem; color: var(--fg-3); max-width: 32em; margin: 0 auto; line-height: 1.5; }
@media (min-width: 600px) { .pay-methods { gap: 6px; } .pay-methods li { padding: 8px 10px; } }
.secure { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); text-align: left; }
.secure-title { display: flex; align-items: center; gap: 10px; font: 600 0.98rem/1 var(--sans); letter-spacing: -0.015em; margin-bottom: 16px; }
.secure-title .ico { width: 18px; height: 18px; stroke-width: 1.6; }
.secure-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.secure-list li { position: relative; padding-left: 28px; font-size: 0.9rem; line-height: 1.5; color: var(--fg-2); }
.secure-list li::before {
  content: ""; position: absolute; left: 0; top: 0.22em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.6 3.2 3.1L13 4.4' fill='none' stroke='%23f5f5f7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.url { color: var(--fg); font-family: var(--mono); font-size: 0.9em; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; padding-bottom: clamp(96px, 13vw, 160px); }
.faq-list { margin-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 2px; font: 600 clamp(1.05rem, 1.8vw, 1.3rem)/1.3 var(--sans); letter-spacing: -0.022em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px; transition: transform 0.3s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23f5f5f7' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.faq-item.is-open summary::after, .faq-item[open]:not(.is-anim) summary::after { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item.is-anim:not(.is-open) .faq-a { grid-template-rows: 0fr; }
.faq-in { overflow: hidden; min-height: 0; }
.faq-in p { padding: 0 2px 26px; max-width: 42em; color: var(--fg-2); font-size: 1.0625rem; line-height: 1.55; letter-spacing: -0.012em; }
.faq-cta { text-align: center; margin-top: 48px; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.72); }
.foot-in {
  max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 36px 52px;
  display: grid; gap: 8px; text-align: center; color: var(--fg-3); font-size: 0.8rem;
}
.foot-mark { font-size: 1.1rem; color: var(--fg); }
.foot-mark .sans { letter-spacing: -0.03em; }
.foot-mark .serif { font-size: 1.16em; color: var(--fg-2); }
.foot a { text-underline-offset: 3px; }

/* ---------- Intro visualizer ---------- */
#intro {
  position: fixed; inset: 0; z-index: 100; display: none;
  place-items: center; align-content: center; gap: clamp(12px, 2.2vh, 20px);
  background: #000; color: var(--fg); cursor: pointer;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px));
}
.intro-on #intro { display: grid; }
.intro-on:not(.intro-js) #intro { animation: intro-failsafe 0.4s 6s forwards; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.intro-stage { position: relative; width: min(70vmin, 520px); aspect-ratio: 1; }
.intro-key { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(0.94); will-change: transform, opacity; }
.intro-viz { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-mark { font-size: clamp(1.9rem, 4.8vw, 2.8rem); line-height: 1; clip-path: inset(-20% 100% -30% -4%); }
.intro-mark .sans { letter-spacing: -0.035em; }
.intro-mark .serif { font-size: 1.14em; color: var(--fg-2); }
.intro-js .intro-mark { animation: mark-write 1s 0.3s cubic-bezier(0.3, 0.6, 0.2, 1) forwards; }
@keyframes mark-write { to { clip-path: inset(-20% -4% -30% -4%); } }
.intro-meta { display: flex; gap: 1em; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); opacity: 0; }
.intro-js .intro-meta { animation: rise 0.5s 0.5s forwards; }
.intro-count { color: var(--fg); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.intro-skip {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: none; border: 0; padding: 8px; cursor: pointer;
  font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.intro-skip:hover { color: var(--fg); }
.intro-lock, .intro-lock body { overflow: hidden; }

/* ---------- Framing guard (site build) ---------- */
.framed-msg { display: none; }
.is-framed .framed-msg { display: grid; position: fixed; inset: 0; z-index: 200; place-content: center; justify-items: center; gap: 16px; text-align: center; background: #000; padding: 24px; }
.is-framed .page, .is-framed .nav, .is-framed #intro { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .aud-grid { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo-phone { order: -1; width: min(220px, 62%); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .mf-2, .mf-3, .mf-4, .mf-5 { display: none; }
  .mf-1 { left: -24px; top: 54px; width: 220px; opacity: 0.1; }
  .mf-6 { right: 14px; top: 260px; width: 80px; opacity: 0.1; }
}
@media (max-width: 699px) {
  .hero-title { font-size: min(11vw, 2.9rem); }
  .hero-title .slot { display: block; }
}
@media (max-width: 640px) {
  .mod-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
    padding: 4px var(--gutter-r) 8px var(--gutter-l); scroll-padding-inline: var(--gutter-l);
    scrollbar-width: none;
  }
  .mod-grid::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }
  .mod-navs { display: flex; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .alyxia-float, .alyxia, .alyxia-glow, .mf, .scroll-cue span, .m-track, .orbit-ring, .sk-card, .orbit-core { animation: none !important; }
  .rot-word, .faq-a, .tile, .slot .rotator { transition: none !important; }
  .m-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .m-list[aria-hidden="true"] { display: none; }
  .m-list { flex-wrap: wrap; justify-content: center; }
}
