:root {
  --bg: #07070f;
  --bg-2: #0c0c19;
  --panel: #11111f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0f7;
  --muted: #a3a8bd;
  --dim: #6c7188;
  --violet: #8b6cff;
  --cyan: #3fd8ff;
  --amber: #ffb547;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
.container { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad { background: linear-gradient(100deg, var(--violet), var(--cyan) 50%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 36em; margin-top: 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: linear-gradient(135deg, var(--violet), #6a4dff); color: #fff; box-shadow: 0 10px 40px rgba(139, 108, 255, 0.35);
  transition: translate .25s ease, box-shadow .25s ease; }
.btn:hover { translate: 0 -2px; box-shadow: 0 16px 50px rgba(139, 108, 255, 0.5); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-ghost { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); backdrop-filter: blur(10px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.btn-big { padding: 18px 34px; font-size: 1.1rem; margin-top: 34px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter); transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 7, 15, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 800; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; color: var(--muted); font-size: .92rem; transition: color .2s; }
.links a:hover { color: var(--text); }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(7,7,15,.55) 0%, rgba(7,7,15,.1) 30%, rgba(7,7,15,.25) 55%, rgba(7,7,15,.96) 100%),
  radial-gradient(120% 80% at 50% 110%, rgba(7,7,15,.9), transparent 60%); }
.spot { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .0;
  background: radial-gradient(260px 260px at var(--x, 50%) var(--y, 40%), rgba(63, 216, 255, .22), transparent 70%); transition: opacity .4s; }
.hero:hover .spot { opacity: 1; }
.hero-copy { padding: 0 var(--gutter) clamp(70px, 11vh, 130px); max-width: 1200px; width: 100%; margin: 0 auto; }
.hero-title { font-size: clamp(3.2rem, 10vw, 8.6rem); line-height: .92; letter-spacing: -0.055em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .word { display: inline-block; }
.hero-title .serif { font-weight: 400; background: linear-gradient(100deg, #fff, var(--amber) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d4d7e6; max-width: 34em; margin-top: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: .8rem; color: var(--dim); }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* showcase */
.showcase { position: relative; padding: 12vh 0; background: radial-gradient(70% 50% at 70% 50%, rgba(139,108,255,.12), transparent 70%); }
.showcase-pin { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.6fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  width: min(1360px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.steps { list-style: none; padding: 0; margin: 34px 0 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 54px; border-radius: 16px; color: var(--dim); background: rgba(255,255,255,.02);
  border: 1px solid transparent; transition: color .4s, background .4s, border-color .4s; font-size: .98rem; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.06); color: var(--dim); transition: background .4s, color .4s; }
.steps li b { color: inherit; }
.steps li.active { color: var(--text); background: rgba(139,108,255,.1); border-color: rgba(139,108,255,.35); }
.steps li.active::before { background: var(--violet); color: #fff; }
.device-wrap { position: relative; perspective: 1600px; }
.device { position: relative; border-radius: 16px; overflow: hidden; background: #1a1a26; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  transform-origin: 50% 60%; will-change: transform; }
.device-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #222230; font-size: .72rem; color: var(--dim); }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.device-bar i:nth-child(2) { background: #febc2e; }
.device-bar i:nth-child(3) { background: #28c840; }
.device-bar span { margin-left: auto; margin-right: auto; transform: translateX(-24px); }
.device video { width: 100%; aspect-ratio: 1480 / 900; object-fit: cover; }
.device-glow { position: absolute; inset: 12% 8% -8%; z-index: -1; filter: blur(60px); opacity: .7;
  background: conic-gradient(from 200deg, var(--violet), var(--cyan), var(--amber), var(--violet)); border-radius: 40%; }

/* chain */
.chain-section { padding: 16vh 0 14vh; }
.chain { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 64px; }
.chain-line { position: absolute; left: 10%; right: 10%; top: 6px; width: 80%; height: 26px; overflow: visible; }
.chain-line path { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.node { position: relative; text-align: center; display: grid; justify-items: center; gap: 8px; padding-top: 6px; }
.node-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 3px var(--violet), 0 0 30px rgba(139,108,255,.6); margin-bottom: 12px; position: relative; z-index: 1; }
.node:nth-child(3) .node-dot { box-shadow: 0 0 0 3px #6f9dff, 0 0 30px rgba(111,157,255,.6); }
.node:nth-child(4) .node-dot { box-shadow: 0 0 0 3px var(--cyan), 0 0 30px rgba(63,216,255,.6); }
.node:nth-child(5) .node-dot { box-shadow: 0 0 0 3px #b9d2a3, 0 0 30px rgba(185,210,163,.5); }
.node:nth-child(6) .node-dot { box-shadow: 0 0 0 3px var(--amber), 0 0 30px rgba(255,181,71,.6); }
.node b { font-size: 1.02rem; }
.node small { color: var(--muted); font-size: .85rem; max-width: 16em; }

/* split sections */
.split { padding: 14vh 0; position: relative; }
.split-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.reverse .split-copy { order: 2; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 40%, transparent 70%); box-shadow: 0 0 14px var(--cyan); }
.ticks b { color: var(--text); font-weight: 600; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: .85rem; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.chips li:last-child { background: linear-gradient(135deg, rgba(139,108,255,.35), rgba(63,216,255,.25)); box-shadow: inset 0 0 0 1px rgba(139,108,255,.6); }
.split-media { position: relative; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); background: #13131f; }
.shot img, .shot video { width: 100%; height: auto; }
.glow-violet { box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(139,108,255,.3), 0 0 120px rgba(139,108,255,.25); }
.timeline { position: absolute; right: -18px; bottom: -34px; width: min(300px, 60%); padding: 16px 18px; border-radius: 18px; display: grid; gap: 9px;
  background: rgba(17,17,31,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.tl-row { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; font-size: .72rem; color: var(--muted); }
.tl-row i { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--amber)); width: 0; }

/* 3D room */
.room { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; }
.room-media { position: absolute; inset: -4% 0; }
.room-media video { width: 100%; height: 100%; object-fit: cover; }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7,7,15,.2) 25%, rgba(7,7,15,.35) 60%, var(--bg) 100%); }
.room-copy { position: relative; z-index: 1; padding-bottom: 16vh; }

/* features */
.features { padding: 16vh 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.card { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: translate .35s ease, box-shadow .35s ease; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(139,108,255,.18), transparent 70%); }
.card:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px rgba(139,108,255,.4); }
.card:hover::before { opacity: 1; }
.card .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(139,108,255,.3), rgba(63,216,255,.2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.card p { color: var(--muted); margin-top: 10px; font-size: .96rem; }

/* numbers */
.numbers { padding: 8vh 0 12vh; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 26px 22px; border-radius: var(--radius); background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -0.04em; font-weight: 800;
  background: linear-gradient(100deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; }

/* gallery */
.gallery { position: relative; padding: 10vh 0; overflow: hidden; }
.gallery-pin { min-height: 100vh; display: grid; align-content: center; gap: 46px; }
.gallery-track { display: flex; gap: 26px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.gallery-track figure { margin: 0; width: min(62vw, 820px); flex: none; }
.gallery-track img { width: 100%; aspect-ratio: 1480 / 900; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.gallery-track figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* CTA */
.cta { position: relative; padding: 20vh 0; text-align: center; overflow: hidden; isolation: isolate; }
.cta-inner { display: grid; justify-items: center; }
.cta-icon { border-radius: 24px; margin-bottom: 30px; box-shadow: 0 20px 70px rgba(139,108,255,.45); }
.cta .lead { margin-left: auto; margin-right: auto; }
.fine { margin-top: 20px; color: var(--dim); font-size: .85rem; }
.beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.beams i { position: absolute; top: -20%; width: 34vw; height: 140%; left: 50%; transform-origin: 50% 0; filter: blur(30px); opacity: .45;
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent 75%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); animation: sweep 9s ease-in-out infinite alternate; }
.beams i:nth-child(1) { margin-left: -38vw; background: linear-gradient(180deg, rgba(139,108,255,.8), transparent 75%); animation-delay: -3s; }
.beams i:nth-child(2) { margin-left: -17vw; background: linear-gradient(180deg, rgba(63,216,255,.7), transparent 75%); animation-duration: 11s; }
.beams i:nth-child(3) { margin-left: 4vw; background: linear-gradient(180deg, rgba(255,181,71,.7), transparent 75%); animation-delay: -6s; }
@keyframes sweep { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.foot { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--dim); font-size: .82rem; }
.foot p { max-width: 46em; }
.brand.small { font-size: .95rem; color: var(--text); }
.brand.small img { border-radius: 6px; }

/* entry states (set by main.js only when animating) */
.js .reveal-up, .js .card, .js .node, .js .stat, .js .split-copy > *, .js .room-copy > * { opacity: 0; transform: translateY(28px); }
.js .hero-title .word { transform: translateY(110%); }

/* tablets and phones */
@media (max-width: 980px) {
  .links { display: none; }
  .showcase-pin { grid-template-columns: 1fr; min-height: 0; }
  .split-grid { grid-template-columns: 1fr; }
  .reverse .split-copy { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .chain { grid-template-columns: 1fr; gap: 26px; justify-items: start; }
  .chain-line { display: none; }
  .node { grid-template-columns: 26px 1fr; text-align: left; justify-items: start; column-gap: 16px; row-gap: 2px; }
  .node-dot { grid-row: span 2; margin: 2px 0 0; }
  .timeline { right: 10px; bottom: -28px; }
  .gallery-pin { min-height: 0; }
  .gallery-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .gallery-track figure { width: 84vw; scroll-snap-align: center; }
}
@media (max-width: 560px) {
  .grid, .stats { grid-template-columns: 1fr; }
  .btn-small { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .timeline { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; }
  .room { min-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beams i, .scroll-hint span { animation: none; }
  .tl-row i { width: var(--w); }
}

/* the pinned section's heading shares the screen with the app window */
.showcase-copy h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.showcase-copy .steps li { padding-top: 12px; padding-bottom: 12px; }

/* gallery frames fit the screen's height on laptops */
@media (min-width: 981px) {
  .gallery-track figure { width: min(58vw, calc(58vh * 1.644), 860px); }
  .gallery-pin { gap: 34px; }
}
.gallery-pin { grid-template-columns: minmax(0, 1fr); }
.gallery-track { justify-self: start; }
