/* Onten coming-soon page. Tokens follow brand/README.md: ink, cream, soft gold, signal blue, Sora. */

@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --ink: #0E1726;
  --cream: #F6F5F1;
  --gold: #E9C27D; /* warm champagne gold for this page; the logo keeps its own dot */
  --blue: #5B9BFF;
  /* Space */
  --void: #04070D;
  --void-raised: #0A1120;
  /* Text on space */
  --text: var(--cream);
  --text-muted: rgb(246 245 241 / 0.66);
  --text-faint: rgb(246 245 241 / 0.62);
  --line: rgb(246 245 241 / 0.12);
  --line-strong: rgb(246 245 241 / 0.22);
  --focus: var(--gold);
  /* Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fallback universe when the canvas is unavailable. */
  background:
    radial-gradient(ellipse 60% 45% at 50% 42%, rgb(233 194 125 / 0.10), transparent 70%),
    radial-gradient(ellipse 90% 60% at 20% 80%, rgb(62 123 219 / 0.14), transparent 70%),
    radial-gradient(ellipse 80% 60% at 85% 15%, rgb(91 155 255 / 0.07), transparent 70%),
    linear-gradient(180deg, var(--void-raised), var(--void));
  overflow-x: hidden;
}

::selection { background: rgb(233 194 125 / 0.35); color: var(--cream); }

.cosmos {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
}
.cosmos.is-live { opacity: 1; }

/* Edge vignette keeps text legible and focuses the eye on the brain. */
.veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 85% at 50% 45%, transparent 55%, rgb(2 4 8 / 0.75) 100%),
    linear-gradient(180deg, transparent 58%, rgb(2 4 8 / 0.55) 100%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(13rem, 1fr) auto auto;
  padding:
    max(var(--space-6), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--space-6), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  pointer-events: none;
}
.page a, .page button { pointer-events: auto; }

.masthead {
  display: flex;
  justify-content: center;
}
.logo {
  display: block;
  width: clamp(7.5rem, 11vw, 9.5rem);
  height: auto;
  /* The artwork already carries its clear-space margin. */
}

.stage { min-height: 13rem; }

.message {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
  padding-bottom: clamp(var(--space-8), 5vh, var(--space-12));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgb(10 17 32 / 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.beacon {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgb(233 194 125 / 0.8);
}
.beacon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: beacon 2.4s var(--ease-out) infinite;
}
@keyframes beacon {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(3.2); opacity: 0; }
}

.headline {
  margin: 0;
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgb(4 7 13 / 0.9);
}

.lede {
  margin: var(--space-4) auto 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  text-shadow: 0 1px 24px rgb(4 7 13 / 0.95);
}
.gold {
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}
/* Break between thoughts, never inside one. */
.phrase { display: inline-block; }

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  width: min(100%, 34rem);
  margin: 0 auto;
}

.contact {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--cream);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.email:hover { background: rgb(246 245 241 / 0.07); color: var(--gold); }

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.email .icon { color: var(--text-faint); transition: color 0.2s; }
.email:hover .icon { color: var(--gold); }

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.icon-button:hover { background: rgb(246 245 241 / 0.07); color: var(--cream); }
.icon-button .icon { grid-area: 1 / 1; transition: opacity 0.2s, transform 0.3s var(--ease-out); }

.copy .icon-check { opacity: 0; transform: scale(0.6); color: var(--gold); }
.copy.is-done .icon-copy { opacity: 0; transform: scale(0.6); }
.copy.is-done .icon-check { opacity: 1; transform: none; }
.tip {
  position: absolute;
  bottom: calc(100% + var(--space-1));
  left: 50%;
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
  pointer-events: none;
}
.copy.is-done .tip { opacity: 1; transform: translate(-50%, 0); }

.legal {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}


:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

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

/* Entrance: content resolves out of the dark after the universe appears. */
.reveal {
  animation: reveal 1.4s var(--ease-out) both;
  animation-delay: calc(0.5s + var(--i, 0) * 0.14s);
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Short landscape screens: tighten so the message and footer never collide. */
@media (max-height: 640px) and (orientation: landscape) {
  .page { grid-template-rows: auto minmax(8rem, 1fr) auto auto; padding-top: var(--space-4); }
  .stage { min-height: 8rem; }
  .message { padding-bottom: var(--space-4); }
  .eyebrow { margin-bottom: var(--space-2); }
  .lede { margin-top: var(--space-2); }
  .footer { padding-top: var(--space-3); gap: var(--space-1); }
}

@media (max-width: 480px) {
  .page { grid-template-rows: auto minmax(15rem, 1fr) auto auto; }
  .footer { padding-top: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .beacon::after { animation: none; opacity: 0; }
  .cosmos { transition: none; }
}

@media (forced-colors: active) {
  .cosmos, .veil { display: none; }
  .eyebrow { border-color: CanvasText; }
}
