:root {
  --ink: #14141c;
  --ink-dim: rgba(20, 20, 28, 0.56);
  --line: rgba(20, 20, 30, 0.14);
  --accent: #ff2e7e;
  --accent-2: #6d4bff;
  --accent-3: #00b3a4;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff; /* flat white so the video's white studio backdrop blends seamlessly */
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── three.js canvas: fixed full-bleed behind content ── */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}

/* studio lighting: a soft global sweep applied OVER everything so the
   square video edge never shows as a seam against the white page */
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 32%, rgba(255, 255, 255, 0) 42%, rgba(18, 20, 32, 0.05) 78%, rgba(18, 20, 32, 0.13) 100%),
    radial-gradient(60% 18% at 50% 96%, rgba(18, 20, 32, 0.10), transparent 75%);
}
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Loader ── */
.loader {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; background: #ffffff;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  font-family: "Archivo", sans-serif; font-weight: 900;
  font-size: clamp(2rem, 8vw, 4.5rem); letter-spacing: 0.14em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.loader__bar {
  width: min(280px, 60vw); height: 3px; border-radius: 99px;
  background: rgba(20, 20, 30, 0.10); overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s linear;
}
.loader__pct { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }

/* ── Fixed chrome ── */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 3vw, 34px) clamp(20px, 4vw, 52px);
  pointer-events: none;
}
.chrome__brand {
  font-family: "Archivo", sans-serif; font-weight: 900;
  letter-spacing: 0.22em; font-size: clamp(1rem, 2vw, 1.3rem);
}
.chrome__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(8px);
  color: var(--ink-dim);
}
.chrome__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 46, 126, 0.5); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 46, 126, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(255, 46, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 46, 126, 0); }
}

/* scroll cue */
.scrollcue {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim);
  transition: opacity 0.5s var(--ease);
}
.scrollcue svg { animation: bob 1.8s var(--ease) infinite; }
.scrollcue.is-hidden { opacity: 0; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Scrolling content ── */
.content { position: relative; z-index: 10; }
.panel {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 6vw, 90px); pointer-events: none;
}
.panel * { pointer-events: auto; }
.panel--right { align-items: flex-end; text-align: right; }
.panel--left { align-items: flex-start; text-align: left; }
.panel--final { align-items: center; text-align: center; justify-content: center; }

.eyebrow {
  font-size: clamp(0.72rem, 1.5vw, 0.9rem); letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; font-weight: 600;
}
.headline {
  font-family: "Archivo", sans-serif; font-weight: 900;
  font-size: clamp(2.8rem, 11vw, 8.5rem); line-height: 0.92; letter-spacing: -0.02em;
}
.headline em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  margin-top: 24px; max-width: 30ch; font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-dim); line-height: 1.5;
}
.caption {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 6.5rem); line-height: 0.92; letter-spacing: -0.01em;
}

.finalline {
  font-family: "Archivo", sans-serif; font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 7rem); line-height: 0.94; letter-spacing: -0.02em;
}
.final-sub { margin-top: 22px; max-width: 42ch; color: var(--ink-dim); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.55; }

.notify {
  margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: #ffffff; padding: 8px; border-radius: 99px;
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(20, 20, 40, 0.10);
}
.notify input {
  border: 0; background: transparent; color: var(--ink); font: inherit;
  padding: 13px 22px; min-width: min(260px, 60vw); outline: none;
}
.notify input::placeholder { color: rgba(20, 20, 30, 0.4); }
.notify button {
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 13px 30px; border-radius: 99px; color: #fff;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.notify button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(109, 75, 255, 0.35); }
.notify-msg { margin-top: 14px; min-height: 1.2em; color: var(--accent-2); font-size: 0.9rem; letter-spacing: 0.04em; font-weight: 600; }

.social { margin-top: 38px; display: flex; gap: 26px; }
.social a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; transition: color 0.25s;
}
.social a:hover { color: var(--ink); }
.copyright { margin-top: 30px; font-size: 0.72rem; letter-spacing: 0.12em; color: rgba(20, 20, 30, 0.34); }

@media (max-width: 600px) {
  .panel--right, .panel--left { align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scrollcue svg, .chrome__badge .dot { animation: none; }
}
