/* CYCLE OF NOW — styles */

@font-face {
  font-family: "Marguerite";
  src: url("../fonts/MargueriteGrotesk-Regular.woff2") format("woff2"), url("../fonts/MargueriteGrotesk-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Marguerite Medium";
  src: url("../fonts/MargueriteGrotesk-Medium.woff2") format("woff2"), url("../fonts/MargueriteGrotesk-Medium.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "HAL Timezone";
  src: url("../fonts/HALTimezone-Regular.woff2") format("woff2"), url("../fonts/HALTimezone-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --aubergine: #33152d;
  --aubergine-hover: #4a2b43;
  --off-white: #fafafa;
  --ink-soft: #5c4458;
  --error: #b3261e;

  --font-sans: "Marguerite", Arial, sans-serif;
  --font-medium: "Marguerite Medium", Arial, sans-serif;
  --font-serif: "HAL Timezone", Georgia, serif;

  --ease-spring: cubic-bezier(.33, 0, .2, 1.22);
  --shadow-card: 0 12px 40px -12px rgba(0, 0, 0, .45);
  --edge: 1.25rem;
}
@media (min-width: 40rem) {
  :root { --edge: 2rem; }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background-color: var(--aubergine);
  color: var(--off-white);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: inherit; }
button, input { font: inherit; letter-spacing: inherit; color: inherit; background: transparent; border-radius: 0; }
button { cursor: pointer; }
svg, canvas { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--off-white); color: var(--aubergine); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border-width: 0;
}

/* Rise-in */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.rise--2 { animation-delay: 150ms; }
.rise--3 { animation-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
}

/* Stage */
.stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--aubergine);
}
.stage__canvas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.stage__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 48%, rgba(51, 21, 45, .82) 0%, rgba(51, 21, 45, .45) 55%, rgba(51, 21, 45, 0) 100%);
}

/* Phase bar */
.phases {
  position: absolute; z-index: 20;
  top: var(--edge); left: var(--edge); right: var(--edge);
  display: flex; gap: .25rem;
}
.phases__item { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.phases__track { height: 2px; overflow: hidden; border-radius: 999px; background: rgb(250 250 250 / .35); }
.phases__fill {
  height: 100%; border-radius: 999px; background: var(--off-white);
  transform: scaleX(0); transform-origin: left;
}
.phases__name {
  font-family: var(--font-medium); font-size: 10px; line-height: 1; white-space: nowrap;
  color: var(--off-white); opacity: .55; transition: opacity .5s;
}
.phases__name[aria-current] { opacity: 1; }
@media (min-width: 40rem) {
  .phases { gap: .375rem; }
  .phases__name { font-size: 11px; }
}

/* Hero */
.hero {
  position: relative; z-index: 10;
  display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  width: 100%; max-width: 48rem; margin-inline: auto;
  padding: 6rem 1.5rem;
  text-align: center;
}
.hero__mark { width: 2.5rem; margin-bottom: .25rem; color: var(--off-white); }
/* The turn runs on an HTML wrapper with its own compositor layer, animated from cycle.js with
   curves inside 0–1, so Safari (Core Animation) can run it off the main thread too. */
.mark-turn { display: block; will-change: transform; backface-visibility: hidden; }
.mark { display: block; width: 100%; height: auto; }
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero__headline { font-size: 1.65rem; line-height: 1.05; letter-spacing: -.025em; }
.hero__intro { max-width: 24rem; font-size: .875rem; line-height: 1.375; color: rgb(250 250 250 / .8); }
.hero__waitlist { display: flex; justify-content: center; width: 100%; }
@media (min-width: 40rem) {
  .hero { gap: 2.5rem; }
  .hero__mark { width: 2.75rem; margin-bottom: .5rem; }
  .hero__headline { font-size: 2.25rem; }
  .hero__intro { font-size: 1rem; }
}
@media (min-width: 48rem) {
  .hero__headline { font-size: 2.6rem; }
}

/* Waiting list */
.waitlist {
  width: 100%; max-width: 28rem;
  padding: .375rem;
  border-radius: .375rem;
  background: var(--off-white);
  color: var(--aubergine);
  box-shadow: var(--shadow-card);
}
.waitlist__row { display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 40rem) {
  .waitlist__row { flex-direction: row; }
}
.waitlist__input {
  flex: 1; min-width: 0;
  padding: .625rem .75rem;
  border-radius: 4px;
  font-size: .875rem; line-height: 1.25rem;
}
.waitlist__input::placeholder { color: rgb(92 68 88 / .7); opacity: 1; }
.waitlist__input:focus { outline: none; }
.waitlist__input:focus-visible { box-shadow: 0 0 0 2px rgb(51 21 45 / .3); }
.waitlist__button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1rem;
  border-radius: 6px;
  background: var(--aubergine);
  color: var(--off-white);
  font-family: var(--font-medium); font-size: 11px; text-transform: uppercase; letter-spacing: .025em;
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), opacity .15s cubic-bezier(.4, 0, .2, 1);
}
.waitlist__button:hover { background: var(--aubergine-hover); }
.waitlist__button:focus { outline: none; }
.waitlist__button:focus-visible { box-shadow: 0 0 0 2px var(--off-white), 0 0 0 4px var(--aubergine); }
.waitlist__button:disabled { opacity: .6; cursor: default; }
.waitlist__arrow { transition: transform .15s cubic-bezier(.4, 0, .2, 1); }
.waitlist__button:hover .waitlist__arrow { transform: translateX(.125rem); }
.waitlist__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist__error {
  padding: .5rem .75rem .375rem;
  text-align: left; font-size: .75rem; line-height: 1rem; color: var(--error);
}
.waitlist--done { padding: 1rem 1.25rem; text-align: center; }
.waitlist__kicker { font-family: var(--font-medium); font-size: 11px; text-transform: uppercase; letter-spacing: .025em; }
.waitlist__thanks { margin-top: .375rem; font-size: 1rem; line-height: 1.375; }

/* Consent line */
.consent {
  position: absolute; z-index: 20;
  left: var(--edge); right: var(--edge); bottom: calc(var(--edge) + 1.5rem);
  text-align: center; font-size: 11px; line-height: 1.375; color: rgb(250 250 250 / .5);
}
.consent a { text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
.consent a:hover { color: var(--off-white); }
@media (min-width: 48rem) {
  .consent { left: 25%; right: 25%; bottom: var(--edge); line-height: 1; }
}
/* Corners */
.corner {
  position: absolute; z-index: 20; bottom: var(--edge);
  font-family: var(--font-medium); font-size: 10px; line-height: 1; text-transform: uppercase; letter-spacing: .025em;
}
.corner--left { left: var(--edge); }
.corner--right { right: var(--edge); }
.corner a { text-underline-offset: 4px; }
.corner a:hover { text-decoration: underline; }
.kern-c { margin-right: -.06em; }
@media (min-width: 40rem) {
  .corner { font-size: 11px; }
}
