/* ============================================================
   THE UPPER ROOM — Editorial Luxury / dawn-dark palette
   ============================================================ */
:root {
  --bg: #0b0c10;
  --bg-raised: #101218;
  --surface: #14161d;
  --ink: #f2ede2;
  --ink-dim: #a49d8f;
  --ink-faint: #6d675c;
  --gold: #c9a45c;
  --gold-bright: #e8cd8e;
  --gold-deep: #8f7134;
  --hairline: rgba(242, 237, 226, 0.08);
  --hairline-strong: rgba(242, 237, 226, 0.14);
  --ease-lux: cubic-bezier(0.32, 0.72, 0, 1);
  --radius-xl: 2rem;
  --radius-inner: calc(2rem - 0.4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--gold-bright); }

.container { width: min(1160px, 100%); margin-inline: auto; padding-inline: 1.5rem; }
.container.narrow { width: min(760px, 100%); }

/* ---- atmosphere ---- */
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.dawn-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 82% -6%, rgba(201, 164, 92, 0.13), transparent 62%),
    radial-gradient(40rem 28rem at -12% 42%, rgba(90, 74, 44, 0.1), transparent 60%),
    radial-gradient(46rem 36rem at 55% 118%, rgba(201, 164, 92, 0.07), transparent 65%);
}
main, .footer, .nav-wrap { position: relative; z-index: 1; }

/* ---- eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--hairline-strong); border-radius: 999px;
  padding: 0.35rem 0.9rem; margin-bottom: 1.6rem;
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  border-radius: 999px; padding: 0.85rem 0.85rem 0.85rem 1.6rem;
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.6s var(--ease-lux), box-shadow 0.6s var(--ease-lux), background 0.6s var(--ease-lux);
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: linear-gradient(140deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #1a1408;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 18px 44px -18px rgba(201, 164, 92, 0.55);
}
.btn-gold:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 22px 54px -16px rgba(201, 164, 92, 0.7); transform: translateY(-1px); }
.btn-orb {
  width: 2rem; height: 2rem; border-radius: 999px;
  background: rgba(20, 14, 4, 0.16);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.6s var(--ease-lux);
}
.btn-orb svg { width: 0.85rem; height: 0.85rem; }
.btn:hover .btn-orb { transform: translate(2px, -2px) scale(1.06); }
.btn-ghost {
  border: 1px solid var(--hairline-strong); color: var(--ink);
  padding: 0.85rem 1.6rem; background: transparent;
}
.btn-ghost:hover { background: rgba(242, 237, 226, 0.05); transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 0.55rem 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-sm .btn-orb { width: 1.6rem; height: 1.6rem; }
.btn-full { width: 100%; justify-content: space-between; }

/* ---- nav ---- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding-top: 1.4rem; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1.6rem;
  background: rgba(11, 12, 16, 0.65);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1.2rem;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--ink); text-decoration: none;
  font-family: "Fraunces", serif; font-size: 1.02rem; letter-spacing: 0.01em;
}
.nav-mark { width: 1.35rem; height: 1.35rem; color: var(--gold); }

/* ---- hero ---- */
.hero { padding: 9.5rem 0 7rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 4.9rem); margin-bottom: 1.6rem; }
.hero-sub { color: var(--ink-dim); font-size: 1.08rem; max-width: 34rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }

.countdown-card { display: inline-flex; flex-direction: column; gap: 0.4rem; }
.countdown-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.countdown { display: flex; align-items: baseline; gap: 0.55rem; }
.cd-unit { display: flex; flex-direction: column; align-items: center; }
.cd-unit span { font-family: "Fraunces", serif; font-size: 2.1rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; line-height: 1; }
.cd-unit small { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.35rem; }
.cd-sep { color: var(--ink-faint); font-size: 1.4rem; transform: translateY(-0.3rem); }

/* ---- double-bezel shells ---- */
.bezel {
  background: rgba(242, 237, 226, 0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 0.4rem;
}
.bezel-core {
  background: linear-gradient(175deg, var(--surface), var(--bg-raised));
  border-radius: var(--radius-inner);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  height: 100%;
}

/* ---- hero art: the upper-room window ---- */
.hero-window { padding: 2.4rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.window-arch {
  position: relative; width: min(15rem, 60vw); aspect-ratio: 3 / 4.1;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px 999px 14px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #171a22 0%, #12141b 55%, #0e1015 100%);
}
.window-light {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 50% -8%, rgba(232, 205, 142, 0.5), rgba(201, 164, 92, 0.14) 46%, transparent 72%),
    radial-gradient(70% 40% at 50% 100%, rgba(201, 164, 92, 0.1), transparent 70%);
  animation: dawnbreathe 7s ease-in-out infinite alternate;
}
@keyframes dawnbreathe { from { opacity: 0.75; transform: translateY(2%); } to { opacity: 1; transform: translateY(0); } }
.window-bars { position: absolute; inset: 0; }
.window-bars span { position: absolute; background: var(--bg); }
.window-bars span:first-child { left: 50%; top: 0; bottom: 0; width: 5px; transform: translateX(-50%); }
.window-bars span:last-child { top: 42%; left: 0; right: 0; height: 5px; }
.window-caption { text-align: center; display: flex; flex-direction: column; gap: 0.6rem; max-width: 20rem; }
.wc-line { font-family: "Fraunces", serif; font-style: italic; font-size: 0.98rem; color: var(--ink-dim); line-height: 1.55; }
.wc-ref { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---- manifesto ---- */
.manifesto { padding: 7rem 0; text-align: center; }
.manifesto h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 2.4rem; }
.manifesto-body p { color: var(--ink-dim); font-size: 1.08rem; margin-bottom: 1.4rem; }
.manifesto-punch { font-family: "Fraunces", serif; font-style: italic; font-size: 1.25rem !important; color: var(--ink) !important; margin-top: 2rem; }

/* ---- the morning ---- */
.morning { padding: 7rem 0; }
.section-head { text-align: center; margin-bottom: 3.4rem; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 1rem; }
.section-sub { color: var(--ink-dim); }
.rhythm { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.rhythm-card { padding: 1.9rem 1.7rem; display: flex; flex-direction: column; gap: 0.65rem; position: relative; }
.rhythm-num { position: absolute; top: 1.5rem; right: 1.6rem; font-family: "Fraunces", serif; font-size: 0.9rem; color: var(--ink-faint); }
.rhythm-icon { font-size: 1.5rem; }
.rhythm-card h3 { font-size: 1.3rem; color: var(--gold-bright); }
.rhythm-card p { color: var(--ink-dim); font-size: 0.95rem; }

/* ---- for you ---- */
.foryou { padding: 7rem 0; }
.foryou h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2.4rem; }
.foryou-list { list-style: none; display: flex; flex-direction: column; }
.foryou-list li {
  padding: 1.4rem 0.4rem 1.4rem 2.4rem; position: relative;
  border-top: 1px solid var(--hairline);
  color: var(--ink-dim); font-size: 1.06rem;
}
.foryou-list li:last-child { border-bottom: 1px solid var(--hairline); }
.foryou-list li::before {
  content: "✦"; position: absolute; left: 0.4rem; top: 1.4rem;
  color: var(--gold); font-size: 0.85rem;
}
.foryou-note { margin-top: 2.2rem; font-family: "Fraunces", serif; font-style: italic; font-size: 1.15rem; color: var(--ink); }

/* ---- details strip ---- */
.details { padding: 3rem 0 7rem; }
.details-core { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2rem 2.4rem; }
.detail { display: flex; flex-direction: column; gap: 0.35rem; }
.detail-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.detail-value { font-family: "Fraunces", serif; font-size: 1.08rem; }

/* ---- join ---- */
.join { padding: 4rem 0 8rem; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.join-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 1.4rem; }
.join-copy p { color: var(--ink-dim); max-width: 30rem; }
.form-core { padding: 2.2rem 2rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.3rem; }
.field label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--ink-dim); }
.field-hint { text-transform: none; letter-spacing: 0; color: var(--ink-faint); font-weight: 400; }
.field input {
  background: rgba(11, 12, 16, 0.6);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  color: var(--ink); font-family: inherit; font-size: 1rem;
  transition: border-color 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.14); }
.field input::placeholder { color: var(--ink-faint); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.4rem 0 1.5rem; cursor: pointer; }
.consent input { margin-top: 0.28rem; accent-color: var(--gold); width: 1rem; height: 1rem; flex-shrink: 0; }
.consent span { font-size: 0.8rem; color: var(--ink-faint); line-height: 1.55; }
.form-msg { margin-top: 0.9rem; font-size: 0.88rem; color: #e08b8b; min-height: 1.2em; }
.form-success { text-align: center; padding: 1.6rem 0.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.success-flame { font-size: 2.2rem; }
.form-success h3 { font-size: 1.6rem; color: var(--gold-bright); }
.form-success p { color: var(--ink-dim); font-size: 0.95rem; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--hairline); padding: 4.5rem 0 3.5rem; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-mark { width: 1.8rem; height: 1.8rem; color: var(--gold); }
.footer-creed { font-family: "Fraunces", serif; font-size: 1.2rem; }
.footer-motto { color: var(--ink-dim); font-style: italic; font-size: 0.95rem; max-width: 30rem; }
.footer-fine { color: var(--ink-faint); font-size: 0.8rem; margin-top: 1rem; }

/* ---- reveal choreography ---- */
.reveal { opacity: 0; transform: translateY(3.2rem); filter: blur(6px); transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux), filter 0.9s var(--ease-lux); }
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .window-light { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- mobile ---- */
@media (max-width: 900px) {
  .hero-grid, .join-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .rhythm { grid-template-columns: 1fr; }
  .details-core { grid-template-columns: 1fr 1fr; padding: 1.7rem 1.5rem; }
  .hero { padding: 8rem 0 4.5rem; }
  .manifesto, .morning, .foryou { padding: 4.5rem 0; }
  .join { padding: 2.5rem 0 5rem; }
  .hero-art { order: -1; }
  .hero-window { padding: 1.8rem 1.2rem; }
}
@media (max-width: 480px) {
  .details-core { grid-template-columns: 1fr; }
  .nav-pill { gap: 0.8rem; }
  .nav-brand span { font-size: 0.92rem; }
}
