:root {
  --bg: #000;
  --ink: #ededf0;
  --muted: #6e6e73;
  --line: rgba(255, 255, 255, .09);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 6vw;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

/* ---------- Film layers ---------- */

.grain, .vignette { position: fixed; inset: 0; pointer-events: none; }

.grain {
  z-index: 40; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.vignette {
  z-index: 30;
  background:
    linear-gradient(#000, transparent 14%, transparent 86%, #000),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .75) 100%);
}

/* ---------- Fixed chrome ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}

.brand { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand span { color: var(--muted); font-weight: 400; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 30px; border-radius: 999px; border: 0;
  background: var(--ink); color: #000;
  font: inherit; font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: transform .4s var(--ease), background .3s;
}
.pill:hover { transform: scale(1.04); background: #fff; }
.pill-small {
  height: 34px; padding: 0 18px; font-size: 13px;
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.pill-small:hover { background: var(--ink); color: #000; }

.hud {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  padding: 24px var(--gutter);
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hud b { color: var(--ink); font-weight: 500; }

.progress { position: fixed; inset: auto 0 0 0; z-index: 50; height: 1px; background: var(--line); }
.progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Scenes: one headline per screen ---------- */

.scene {
  --p: 1; /* presence, 0–1, driven by scroll */
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 0 var(--gutter);
  display: grid; place-items: center; text-align: center;
  overflow: hidden; overflow: clip;
  scroll-snap-align: start;
}

.scene-glow {
  position: absolute; left: 50%; top: 56%; translate: -50% -50%;
  width: min(1400px, 170vw); aspect-ratio: 1.5; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, #14143a), transparent);
  opacity: calc(var(--p) * .6);
  pointer-events: none;
}

.scene-inner {
  position: relative; z-index: 2; max-width: 1500px;
  opacity: var(--p);
  transform: scale(calc(.9 + .1 * var(--p)));
  filter: blur(calc((1 - var(--p)) * 18px));
  will-change: opacity, transform, filter;
}

.kicker {
  margin-bottom: 5vh; padding-left: .42em;
  font-size: 12px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted);
}

.headline {
  padding-bottom: .12em;
  font-size: clamp(54px, min(12vw, 21vh), 210px); font-weight: 600;
  letter-spacing: -.06em; line-height: .92; text-wrap: balance;
  background: linear-gradient(180deg, #fff 20%, #7c7c84 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.caption {
  margin-top: 4vh;
  font-size: clamp(17px, 1.5vw, 23px); font-weight: 400; letter-spacing: -.01em;
  color: var(--muted);
}

/* intro */
.fade { opacity: 0; animation: rise 2.2s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Hero ---------- */

.hero { align-items: start; padding-top: 19vh; padding-top: 19svh; }

.hero-stage {
  position: absolute; left: 0; right: 0; top: 60vh; top: 60svh; z-index: 1;
  display: grid; place-items: start center;
  perspective: 1400px;
}
.hero-stage::after { /* phone sinks into the dark */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 40vh; height: 40svh; z-index: 2;
  background: linear-gradient(transparent 20%, #000 96%);
  pointer-events: none;
}

.phone {
  --w: min(300px, 62vw);
  position: relative; width: var(--w); aspect-ratio: 9 / 19.2;
  border-radius: calc(var(--w) * .17);
  padding: 2px;
  background: linear-gradient(160deg, #6b6b73, #0a0a0c 30%, #000 70%, #2a2a2e);
  box-shadow: 0 0 120px -20px rgba(94, 92, 230, .45);
  opacity: var(--p, 1);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--float, 0px));
  transition: transform .8s var(--ease);
  animation: float 9s ease-in-out infinite;
}
@property --float { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes float { 0%, 100% { --float: 0px; } 50% { --float: -14px; } }

.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * .163);
  background: #000;
}

.aurora { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .7; will-change: transform; }
.a1 { width: 90%; aspect-ratio: 1; left: -34%; top: 2%; background: #3d3ad6; animation: drift1 15s ease-in-out infinite; }
.a2 { width: 85%; aspect-ratio: 1; right: -36%; top: 22%; background: #b81f47; animation: drift2 19s ease-in-out infinite; }
.a3 { width: 70%; aspect-ratio: 1; left: 12%; top: 40%; background: #1d6f8f; animation: drift3 13s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(40%, 26%) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-45%, -20%) scale(.9); } }
@keyframes drift3 { 50% { transform: translate(15%, -40%) scale(1.2); } }

.screen-ui {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 15%;
  padding-top: 12%; color: #fff;
}
.clock { font-size: 14px; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.hello { font-size: calc(var(--w) * .19); font-weight: 300; letter-spacing: -.05em; }

.sheen {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 26%);
}

/* ---------- Specs ---------- */

.specs { max-width: 1500px; margin: 0 auto; padding: 4vh var(--gutter) 22vh; }

.specs dl > div {
  display: grid; grid-template-columns: minmax(120px, 1fr) 4fr; align-items: baseline; gap: 4vw;
  padding: 7vh 0; border-top: 1px solid var(--line);
}
.specs dt {
  font-size: 12px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--muted);
}
.specs dd { display: grid; grid-template-columns: 1.1fr 1fr; align-items: baseline; gap: 4vw; }
.specs b {
  font-size: clamp(44px, 7.4vw, 124px); font-weight: 600; letter-spacing: -.055em; line-height: .95;
}
.specs span { color: var(--muted); font-size: clamp(16px, 1.4vw, 21px); max-width: 30ch; }

.reveal { opacity: 0; transform: translateY(50px); filter: blur(10px); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease), filter 1.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Reserve ---------- */

.reserve .scene-glow { opacity: calc(var(--p) * .9); top: 70%; }

.reserve-form {
  margin: 7vh auto 0; max-width: 500px; display: flex; gap: 8px;
  padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  transition: border-color .4s;
}
.reserve-form:focus-within { border-color: rgba(255, 255, 255, .4); }
.reserve-form input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  padding: 0 20px; color: var(--ink); font: inherit; font-size: 16px;
}
.reserve-form input::placeholder { color: var(--muted); }
.reserve-msg { margin-top: 18px; min-height: 1.5em; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */

.footer {
  position: relative; z-index: 35;
  padding: 28px var(--gutter) 72px;
  border-top: 1px solid var(--line);
  color: #55555a; font-size: 12px; line-height: 1.6;
  scroll-snap-align: end;
}
.footer p { max-width: 80ch; }
.footer p + p { margin-top: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .headline { font-size: clamp(50px, 16vw, 120px); }
  .hud-hint { display: none; }
  .specs dl > div { grid-template-columns: 1fr; gap: 18px; padding: 6vh 0; }
  .specs dd { grid-template-columns: 1fr; gap: 14px; }
  .reserve-form { flex-direction: column; border-radius: 30px; padding: 8px; }
  .reserve-form input { height: 52px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .fade, .reveal { opacity: 1; transform: none; filter: none; }
}
