/* =====================================================================
   ICR — "Join the Reserve" teaser
   A single scroll: the phone draws you in, dusk falls, and you land
   inside Virgil's letter — which is the waiting list.
   Tokens come from site.css; the phone from phones.css.
   ===================================================================== */

html, body { height: auto; }
body.teaser {
  overflow-x: hidden;
  background: var(--bone);
}
html { scroll-behavior: auto; }

/* crest — sits under the masthead, fades with the intro */
.t-crest {
  position: fixed;
  top: 64px; left: 50%; transform: translateX(-50%);
  z-index: 56;
  width: 104px; height: 60px; object-fit: contain;
  pointer-events: none;
  transition: opacity var(--m-deliberate) var(--ease-soft);
}

/* ---------- minimal masthead ---------- */
.t-mast {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding: 26px 20px 0;
  pointer-events: none;
  transition: opacity var(--m-deliberate) var(--ease-soft);
}
.t-mast .line {
  font-family: var(--ff-display);
  font-size: 17px; font-weight: 500;
  letter-spacing: 0.32em; padding-left: 0.32em;
  color: var(--lead); line-height: 1;
}
.t-mast .sub {
  font-size: 7.5px; font-weight: 600; letter-spacing: 0.28em;
  color: var(--ash); text-transform: uppercase;
}
.t-mast.hidden { opacity: 0; }

/* ---------- scroll track + sticky stage ---------- */
.zoom-track { height: 620vh; position: relative; }
.zoom-stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.zoom-phone {
  will-change: transform;
  transform-origin: center center;
}

/* ---------- intro overlay ---------- */
.t-intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 7vh;
  text-align: center;
  pointer-events: none;
}
.t-intro h1 {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.015em; line-height: 1.2;
  color: var(--lead);
  margin: 0;
}
.t-intro h1 em { font-style: italic; color: var(--oxblood); }
.t-intro .scroll-hint {
  margin-top: 26px;
  font-family: var(--ff-display); font-style: italic;
  font-size: 14px; color: var(--ash);
  animation: hint-drift 2.6s var(--ease-soft) infinite;
}
@keyframes hint-drift {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ---------- phase captions ---------- */
.t-caption {
  position: fixed;
  left: 50%; bottom: 9vh;
  transform: translate(-50%, 14px);
  z-index: 55;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  width: min(82vw, 560px);
}
.t-caption .eb {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ash);
}
.t-caption .eb .tick { color: var(--oxblood); }
.t-caption p {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.25;
  color: var(--lead);
  margin: 8px 0 0;
  text-wrap: balance;
}
.t-caption p em { font-style: italic; color: var(--oxblood); }

/* ---------- seam mask into the letter ---------- */
.t-seam {
  position: fixed; inset: 0;
  z-index: 58;
  background: var(--smoke);
  opacity: 0;
  pointer-events: none;
}

/* ---------- the letter (waitlist) ---------- */
.t-letter {
  position: relative;
  z-index: 59;
  background: var(--smoke);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 14vh var(--gutter);
}
.t-letter::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 15% 0%, rgba(217,176,72,0.10), transparent 70%),
    radial-gradient(45% 40% at 90% 100%, rgba(107,31,35,0.12), transparent 70%);
}
.t-letter .inner {
  position: relative;
  width: min(640px, 100%);
  display: flex; flex-direction: column;
  gap: 22px;
}
.t-letter .eb {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: #D9B048;
}
.t-letter .eb .vmark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 0.5px solid rgba(217,176,72,0.45);
  color: #D9B048; font-family: var(--ff-display); font-style: italic;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.t-letter h2 {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12; letter-spacing: -0.02em;
  color: #EFE9DD;
  margin: 0;
  text-wrap: balance;
}
.t-letter h2 em { font-style: italic; color: #D9B048; }
.t-letter .note {
  font-family: var(--ff-display);
  font-size: 17px; line-height: 1.55;
  color: rgba(239,233,221,0.72);
  margin: 0;
  text-wrap: pretty;
}

/* the reply row — borderless italic input, the island anatomy */
.t-form {
  border-top: 0.5px solid rgba(239,233,221,0.16);
  padding-top: 18px;
  display: flex; align-items: baseline; gap: 12px;
}
.t-form .dash { font-family: var(--ff-display); font-style: italic; color: rgba(239,233,221,0.4); }
.t-form input {
  flex: 1;
  background: none; border: 0; outline: none;
  font-family: var(--ff-display); font-style: italic;
  font-size: 19px; color: #EFE9DD;
  padding: 6px 0;
  min-width: 0;
}
.t-form input::placeholder { color: rgba(239,233,221,0.38); }
.t-form button {
  background: none; border: 0; cursor: pointer;
  font-family: var(--ff-display); font-style: italic; font-weight: 500;
  font-size: 20px; letter-spacing: -0.02em;
  color: #D9B048;
  padding: 6px 4px;
  white-space: nowrap;
  transition: transform var(--m-fast);
}
.t-form button:hover { transform: translateX(3px); }
.t-form button:active { transform: scale(0.95); }
.t-form.error input { color: #C47272; }

.t-confirm {
  display: none;
  border-top: 0.5px solid rgba(239,233,221,0.16);
  padding-top: 18px;
  font-family: var(--ff-display); font-style: italic;
  font-size: 19px; line-height: 1.5;
  color: #EFE9DD;
}
.t-confirm .no { color: #D9B048; font-variant-numeric: tabular-nums; }
.t-letter.joined .t-form { display: none; }
.t-letter.joined .t-confirm { display: block; }

.t-letter .fine {
  font-size: 12px; line-height: 1.6;
  color: rgba(239,233,221,0.4);
  font-family: var(--ff-ui);
  margin: 0;
}

/* colophon line */
.t-colo {
  position: relative; z-index: 59;
  background: var(--smoke);
  text-align: center;
  padding: 0 var(--gutter) 42px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(239,233,221,0.3);
}

/* ---------- reduced motion / no-JS: a quiet static page ---------- */
@media (prefers-reduced-motion: reduce) {
  .zoom-track { height: auto; }
  .zoom-stage { position: relative; height: auto; padding: 140px 0 80px; }
  .t-intro { position: relative; inset: auto; padding: 120px 20px 40px; }
  .t-caption, .t-seam { display: none; }
  .t-intro .scroll-hint { animation: none; display: none; }
}

@media (max-width: 600px) {
  .t-caption { bottom: 6vh; }
  .t-form input { font-size: 16px; }
}
