/* ============================================================
   Coming Soon — cinematic minimal
   One warm point of light in a dark, precise room.
   ============================================================ */

:root {
  /* Color — monochrome cinema + a single warm tungsten light */
  --ink:        #09090a;            /* base, near-black */
  --ink-2:      #0d0d0f;            /* faint raise */
  --surface:    #141416;            /* controls / panels */
  --light:      #f3f1ec;            /* warm off-white, primary text */
  --muted:      #82828a;            /* secondary text */
  --faint:      #4a4a51;            /* tertiary, micro-labels */
  --hair:       rgba(243,241,236,.11);
  --hair-soft:  rgba(243,241,236,.055);
  --glow:       #ecd9b0;            /* warm projector light — the only accent */
  --glow-ink:   #1a1408;           /* text on the warm fill */
  --glow-soft:  rgba(236,217,176,.16);

  --maxw: 1120px;
  --screen-w: 820px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --step-label: .72rem;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--light);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmosphere: a soft pool of light high-center, like a screen washing the room */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(236,217,176,.07), transparent 55%),
    radial-gradient(90% 60% at 50% 38%, rgba(236,217,176,.045), transparent 60%);
}

/* faint grain for cinematic texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: .035;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout shell ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0 24px;
}

/* ---------- top bar ---------- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 0 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--light);
  text-decoration: none;
}
.brand__mark {
  width: 26px;
  height: 26px;
  color: var(--glow);
  flex: none;
}
.brand__name {
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--step-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 0 var(--glow-soft);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(236,217,176,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(236,217,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,217,176,0); }
}

/* ---------- main stage ---------- */
.stage {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px, 6vh, 72px) 0 40px;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--step-label);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(24px, 4vh, 40px);
}
.eyebrow .dash { color: var(--faint); margin: 0 .55em; }

/* ----- the screen (video window) ----- */
.screen {
  position: relative;
  width: min(100%, var(--screen-w));
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #060607;
  border: 1px solid var(--hair);
  overflow: hidden;
  /* projector glow */
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6),
    0 40px 120px -40px rgba(236,217,176,.22),
    0 24px 80px -30px rgba(0,0,0,.9);
}
.screen__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* gentle vignette + top sheen, sells the "screen" without touching the footage */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 18%),
    radial-gradient(120% 100% at 50% 0%, transparent 60%, rgba(0,0,0,.35));
  border-radius: var(--radius);
}

/* sound toggle, lives quietly on the screen */
.sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(8,8,9,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--light);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.sound:hover { border-color: var(--glow-soft); color: var(--glow); }
.sound svg { width: 13px; height: 13px; }

/* ----- timecode strip — the signature detail ----- */
.reel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(100%, var(--screen-w));
  margin-top: 16px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.reel__label { white-space: nowrap; }
.reel__track {
  position: relative;
  height: 1px;
  background: var(--hair);
}
.reel__fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow-soft);
}
.reel__fill::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--glow);
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--glow);
}
.reel__time { white-space: nowrap; color: var(--light); }

/* ----- ethos ----- */
.ethos {
  margin-top: clamp(40px, 7vh, 76px);
  max-width: 640px;
}
.ethos__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.ethos__title em {
  font-style: normal;
  color: var(--glow);
}
.ethos__sub {
  margin: 22px auto 0;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.6;
}

/* ----- subscribe ----- */
.notify {
  margin-top: clamp(30px, 5vh, 44px);
  width: min(100%, 460px);
}
.field {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field:focus-within {
  border-color: var(--glow-soft);
  box-shadow: 0 0 0 4px rgba(236,217,176,.07);
}
.field__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--light);
  font: inherit;
  font-size: .96rem;
  letter-spacing: .01em;
}
.field__input::placeholder { color: var(--faint); }
.field__input:focus { outline: none; }
.field__btn {
  flex: none;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--glow);
  color: var(--glow-ink);
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: filter .25s var(--ease), box-shadow .25s var(--ease), transform .1s var(--ease);
}
.field__btn:hover { filter: brightness(1.07); box-shadow: 0 0 30px -6px var(--glow-soft); }
.field__btn:active { transform: translateY(1px); }
.field__btn:disabled { opacity: .55; cursor: default; }

/* honeypot — visually gone, still in the DOM for bots */
.gotcha {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.notify__msg {
  min-height: 1.2em;
  margin: 14px 2px 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: none;
}
.notify__msg[data-tone="ok"]    { color: var(--glow); }
.notify__msg[data-tone="error"] { color: #e9a98f; }

/* success swap-in */
.notify.is-done .field { display: none; }
.notify__done {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px;
  border: 1px solid var(--glow-soft);
  border-radius: 999px;
  color: var(--glow);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.notify.is-done .notify__done { display: flex; }
.notify__done svg { width: 15px; height: 15px; }

/* ---------- footer ---------- */
.foot {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 0 26px;
  border-top: 1px solid var(--hair-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot a {
  color: var(--muted);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.foot a:hover { color: var(--glow); }
.foot__right { display: inline-flex; gap: 22px; }

/* ---------- focus + a11y ---------- */
:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- entrance: house lights dim up ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
  }
  .is-ready .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  }
  .is-ready .reveal[data-delay="1"] { transition-delay: .08s; }
  .is-ready .reveal[data-delay="2"] { transition-delay: .22s; }
  .is-ready .reveal[data-delay="3"] { transition-delay: .42s; }
  .is-ready .reveal[data-delay="4"] { transition-delay: .58s; }
  .is-ready .reveal[data-delay="5"] { transition-delay: .72s; }
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .page { padding: 0 18px; }
  .bar { padding-top: 20px; }
  .brand__name { font-size: .86rem; }
  .status__text { display: none; }       /* keep just the live dot on small screens */
  .reel { grid-template-columns: 1fr; gap: 8px; justify-items: stretch; }
  .reel__label, .reel__time { text-align: center; }
  .reel__track { order: 3; }
  .field { flex-wrap: wrap; border-radius: 18px; }
  .field__input { flex-basis: 100%; padding: 12px 14px; text-align: center; }
  .field__btn { flex-basis: 100%; }
  .foot { flex-direction: column; gap: 10px; text-align: center; }
}
