/* Oventide · coming soon. Dark canvas and ink from the brand kit (design/brand-oventide-2026-11-02). */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-italic-latin.woff2) format("woff2");
}

:root {
  --canvas: #191B18;
  --ink: #F1EFE6;
  --body: #D0D2C6;
  --muted: #ABB2A2;
  --line: rgba(241, 239, 230, 0.14);
  --action: #D8B58D;
  --action-hover: #E4C49F;
  --on-action: #242117;
  --focus: #E8D1A0;
  --ember: #E3AD3F;
  --error: #F0A493;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: min(calc(100% - 2 * var(--gutter)), 1144px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--canvas);
  color: var(--body);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol { margin: 0; }
em { font-style: italic; }
a { color: inherit; }
::selection { background: rgba(216, 181, 141, 0.35); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- the scene: oven light rising at dusk ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Shown when WebGL is unavailable; the script hides it once the shader draws. */
.scene::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 118%, rgba(214, 112, 52, 0.55) 0%, rgba(140, 58, 26, 0.35) 32%, rgba(60, 28, 18, 0.18) 58%, transparent 78%),
    var(--canvas);
}
.scene.is-live::before { opacity: 0; transition: opacity 1.2s ease; }
.scene__grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
.scene__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(140% 90% at 50% 40%, transparent 55%, rgba(8, 9, 8, 0.65) 100%);
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

main, .foot { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(72px + env(safe-area-inset-top)) var(--gutter) clamp(96px, 16vh, 180px);
}

.pilot {
  position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 0; right: 0; width: max-content; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(25, 27, 24, 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--body);
  white-space: nowrap;
}
.pilot__light {
  width: 7px; height: 7px; border-radius: 50%;
  background: #F2A65A;
  box-shadow: 0 0 0 0 rgba(242, 166, 90, 0.6), 0 0 10px 2px rgba(242, 140, 60, 0.7);
  animation: pilot 2.8s ease-in-out infinite;
}
@keyframes pilot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 166, 90, 0.5), 0 0 8px 1px rgba(242, 140, 60, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(242, 166, 90, 0), 0 0 14px 3px rgba(242, 140, 60, 0.85); }
}

.hero__mark { margin: 0 0 clamp(28px, 5vh, 52px); line-height: 0; color: var(--ink); }
.lockup { width: clamp(150px, 19vw, 220px); height: auto; overflow: visible; }
.lockup .ring { transform-box: fill-box; transform-origin: center; }

.hero__title {
  font: 400 clamp(3rem, 8.6vw, 7.75rem)/0.94 var(--serif);
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.1em; margin: -0.04em -0.06em -0.1em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { color: #F6E7CF; }

.hero__sub {
  margin-top: clamp(16px, 2.6vh, 26px);
  font: 400 clamp(1.25rem, 2.2vw, 1.75rem)/1.3 var(--serif);
  color: var(--body);
}

/* ---------- the waitlist ---------- */
.join { width: min(100%, 500px); margin-top: clamp(28px, 5vh, 48px); scroll-margin-top: 30vh; }
.join__row {
  display: flex; gap: 6px; padding: 6px;
  border: 1px solid rgba(241, 239, 230, 0.2); border-radius: 999px;
  background: rgba(20, 21, 19, 0.55);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.join__row:focus-within { border-color: rgba(232, 209, 160, 0.55); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(232, 209, 160, 0.12); }
.join.is-error .join__row { border-color: rgba(240, 164, 147, 0.7); }
.join__input {
  flex: 1; min-width: 0;
  padding: 0 8px 0 18px; height: 48px;
  border: 0; background: transparent; color: var(--ink);
  font: 400 1rem/1 var(--sans);
}
.join__input::placeholder { color: rgba(171, 178, 162, 0.75); }
.join__input:focus { outline: none; }
.join__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join__button {
  position: relative; flex: none;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--action); color: var(--on-action);
  font: 600 0.9375rem/1 var(--sans); letter-spacing: 0.01em;
  cursor: pointer; overflow: hidden;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.join__button:hover { background: var(--action-hover); }
.join__button:active { transform: scale(0.97); }
.join__button[disabled] { cursor: progress; }
.join__button[disabled] span { opacity: 0.55; }
.join__note { margin-top: 12px; min-height: 1.5em; font-size: 0.875rem; color: var(--muted); }
.join.is-error .join__note { color: var(--error); }

.joined {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 62px; padding: 10px 22px;
  border: 1px solid rgba(216, 181, 141, 0.4); border-radius: 999px;
  background: rgba(20, 21, 19, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--ink); font: 400 1.25rem/1.25 var(--serif);
  animation: rise 0.7s var(--ease-out) both;
}
.joined svg { flex: none; width: 26px; height: 26px; color: var(--action); }

/* ---------- the oven-time band ---------- */
.band {
  display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: clamp(24px, 4vw, 64px);
  width: var(--wrap); margin: 0 auto; padding: clamp(28px, 4vh, 40px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  align-items: end;
}
.eyebrow { font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.count {
  display: flex; align-items: baseline;
  margin-top: 10px;
  font: 400 clamp(3rem, 6.4vw, 5.5rem)/0.9 var(--serif);
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.count__unit { display: inline-block; min-width: 0.94em; text-align: center; }
.count__unit:first-child { text-align: left; }
.count__sep { padding: 0 0.05em; color: rgba(241, 239, 230, 0.35); transform: translateY(-0.06em); }
.count.is-now { font-style: italic; }
.band__note { margin-top: 12px; font-size: 0.9375rem; color: var(--body); }
.here { margin-top: 10px; font: 400 clamp(2rem, 3.4vw, 2.75rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.band__define { padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line); }
.define__word { font: 400 clamp(2rem, 3.4vw, 2.75rem)/1 var(--serif); color: var(--ink); }
.define__say { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.define__means { margin-top: 10px; font: 400 1.1875rem/1.35 var(--serif); color: var(--body); max-width: 26ch; }

/* ---------- how it works ---------- */
.promise { width: var(--wrap); margin: 0 auto; padding: clamp(80px, 14vh, 160px) 0 clamp(64px, 10vh, 120px); }
.promise__title { font: 400 clamp(2.5rem, 5.6vw, 4.75rem)/1 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.promise__lead { margin-top: 14px; font: 400 clamp(1.125rem, 1.8vw, 1.375rem)/1.4 var(--serif); color: var(--body); }
.promise__list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(40px, 7vh, 72px);
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.promise__list li {
  position: relative;
  padding: clamp(24px, 2.6vw, 36px);
  background: rgba(22, 24, 21, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.4s ease;
}
.promise__list li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(216, 181, 141, 0.7), transparent);
  transform: scaleX(0); transition: transform 0.6s var(--ease-out);
}
.promise__list li:hover { background: rgba(30, 32, 28, 0.9); }
.promise__list li:hover::after { transform: scaleX(1); }
.promise__n { font: 400 1rem/1 var(--serif); font-style: italic; color: var(--action); }
.promise__list h3 { margin-top: clamp(36px, 6vh, 64px); font: 400 1.625rem/1.15 var(--serif); color: var(--ink); }
.promise__list p { margin-top: 12px; font-size: 0.9375rem; line-height: 1.55; color: var(--body); }
.promise--ember .promise__n, .promise--ember h3 { color: var(--ember); }
.promise--ember::after { background: linear-gradient(90deg, transparent, rgba(227, 173, 63, 0.8), transparent) !important; }
.promise__cta {
  display: inline-flex; gap: 8px; align-items: center;
  margin-top: clamp(32px, 5vh, 48px);
  font: 400 1.375rem/1.2 var(--serif); color: var(--ink);
  text-decoration: underline; text-decoration-color: rgba(216, 181, 141, 0.5); text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}
.promise__cta:hover { text-decoration-color: var(--action); }

/* ---------- footer ---------- */
.foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  width: var(--wrap); margin: 0 auto; padding: 28px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--muted);
}
.foot__mark { line-height: 0; color: var(--ink); }
.foot__mark svg { height: 22px; width: auto; }
.foot__legal { margin-left: auto; }

/* ---------- entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes ring-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes lid-in {
  0% { opacity: 0; transform: translateY(-16px); }
  55% { opacity: 1; transform: translateY(0.8px); }
  72% { transform: translateY(-1.6px); }
  86% { transform: translateY(0.3px); }
  100% { opacity: 1; transform: none; }
}
@keyframes word-in { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Lid offsets are in the symbol's own units (the lockup scales them by about 1.9). Backwards fill, so hover works after. */
.js .lockup .ring { animation: ring-in 0.9s var(--ease-out) 0.15s both; }
.js .lockup .lid { animation: lid-in 1.15s cubic-bezier(0.3, 0.7, 0.2, 1) 0.5s backwards; }
.js .lockup .word { animation: word-in 1s var(--ease-out) 1.05s both; }
.js .hero__title .line > span { animation: line-up 1.1s var(--ease-out) both; }
.js .hero__title .line:nth-child(1) > span { animation-delay: 1.2s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 1.32s; }
.js .reveal { animation: rise 1s var(--ease-out) both; }
.js .hero__sub { animation-delay: 1.65s; }
.js .join { animation-delay: 1.8s; }
.js .band { animation-delay: 2s; }
.js .pilot { animation: rise 0.8s var(--ease-out) 0.1s both; }

/* The lid lifts a little when you reach for it. */
.hero__mark:hover .lockup .lid { transform: translateY(-3px); transition: transform 0.45s var(--ease-out); }
.hero__mark .lockup .lid { transition: transform 0.6s var(--ease-out); }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .band { grid-template-columns: 1fr 1fr; }
  .band__define { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .promise__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 72px; }
  .join__row { flex-direction: column; border-radius: 22px; padding: 6px; }
  .join__input { height: 52px; padding-left: 14px; text-align: center; }
  .join__button { width: 100%; height: 52px; border-radius: 16px; }
  .band { grid-template-columns: 1fr; text-align: left; }
  .band__here { padding-top: 24px; border-top: 1px solid var(--line); }
  .promise__list { grid-template-columns: 1fr; }
  .promise__list h3 { margin-top: 28px; }
  .foot__legal { margin-left: 0; width: 100%; }
  .joined { border-radius: 22px; font-size: 1.125rem; }
}
@media (max-height: 640px) and (min-width: 561px) {
  .pilot { position: static; margin-bottom: 24px; }
  .hero { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- the joined and not-found pages ---------- */
.hero--note .hero__mark a { display: inline-block; color: inherit; }
.hero__title--note { font-size: clamp(2.75rem, 7vw, 5.5rem); }
.hero--note .promise__cta { margin-top: 36px; }
