:root {
  --bg: #030806;
  --bg-deep: #040a07;
  --forest: #0c2117;
  --gold: #F2BE3C;
  --gold-text: #E3CF97;
  --gold-soft: #F1E2B4;
  --silver: #E3E7EC;
  --silver-text: #CDD6DE;
  --cream: #F4EFE0;
  --body: #A6B2A6;
  --font-mark: 'Cinzel', 'Times New Roman', serif;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-text: 'EB Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--font-text); font-size: 19px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-soft); }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(242, 190, 60, .3); color: var(--cream); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- hero ---------- */
.hero { position: relative; container-type: inline-size; min-height: 100svh; overflow: hidden; }
.hero-stage { position: absolute; inset: 0 0 auto; height: 100svh; pointer-events: none; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.heat-defs { position: absolute; }

/* --R and this padding repeat computeLayout (js/layout.js), so the text sits under the rings without JS. */
.hero-content {
  --R: calc(min(150cqw, 125svh) * .092);
  position: relative;
  z-index: 1;
  padding: calc(max(var(--R) * 1.6, 29svh) + var(--R) * 1.65) 20px 56px;
  text-align: center;
}
.wordmark { margin: 0; font-family: var(--font-mark); font-weight: 500; font-size: 13px; line-height: 1.4; letter-spacing: .36em; text-indent: .36em; color: var(--gold-text); }
h1 { margin: 14px 0 0; font-family: var(--font-head); font-weight: 400; font-style: italic; font-size: clamp(38px, 6vw, 58px); line-height: 1.05; color: var(--cream); }
.sub { margin: 14px auto 0; max-width: 470px; font-family: var(--font-text); font-size: 19px; line-height: 1.45; color: var(--body); }
.ctas { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-mark);
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: .18em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(227, 207, 151, .55);
  color: var(--gold-soft);
  text-decoration: none;
  background: rgba(227, 207, 151, .07);
  transition: background .3s, border-color .3s, color .3s;
}
.btn:hover { background: rgba(227, 207, 151, .16); border-color: rgba(227, 207, 151, .9); color: var(--cream); }
.btn.ghost { border-color: rgba(205, 214, 222, .28); color: var(--silver-text); background: transparent; }
.btn.ghost:hover { border-color: rgba(205, 214, 222, .7); color: var(--silver); }
.btn-lg { font-size: 14px; padding: 17px 34px; }

/* ---------- the reveal ----------
   Hidden only while the opening can run. With no JS, or with reduced motion, the text never hides. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-content:not(.show) { opacity: 0; transform: translateY(14px); pointer-events: none; }
  /* If opening.js never runs, show the text anyway. Keyed on opening-alive so a page opened in a
     background tab doesn't show its text before the opening has played. */
  .js:not(.opening-alive) .hero-content:not(.show) { animation: failsafe 0s 9s forwards; }
}
@keyframes failsafe { to { opacity: 1; transform: none; pointer-events: auto; } }
.hero-content.show { transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.hero-content.show.instant { transition: opacity .3s ease, transform .3s ease; }

[data-forge] { --final: #F4EFE0; }
.forging .ch { animation: forge 1.7s cubic-bezier(.3, .6, .3, 1) both; animation-delay: calc(var(--i) * var(--step, 30ms) + var(--d, 0ms)); }
@keyframes forge {
  0% { opacity: 0; color: #4a0c00; text-shadow: 0 0 0 rgba(255, 60, 0, 0); }
  16% { opacity: 1; color: #a8220a; text-shadow: 0 0 6px rgba(255, 60, 0, .9), 0 0 18px rgba(255, 30, 0, .55); }
  26% { color: #c93a10; text-shadow: 0 0 4px rgba(255, 80, 10, .7), 0 0 14px rgba(255, 40, 0, .4); }
  42% { color: #ff7a1a; text-shadow: 0 0 8px rgba(255, 140, 40, .95), 0 0 26px rgba(255, 90, 0, .65); }
  64% { color: #ffd36b; text-shadow: 0 0 10px rgba(255, 214, 120, .85), 0 0 30px rgba(255, 150, 40, .45); }
  100% { opacity: 1; color: var(--final); text-shadow: 0 0 0 rgba(255, 200, 120, 0); }
}
.forging .ctas { animation: ember 1.4s ease both; animation-delay: 1.7s; }
@keyframes ember {
  0% { opacity: 0; filter: drop-shadow(0 0 10px rgba(255, 120, 30, .8)); }
  50% { opacity: 1; }
  100% { opacity: 1; filter: drop-shadow(0 0 0 rgba(255, 120, 30, 0)); }
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 56px;
  padding: 0 clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(3, 8, 6, .86);
  border-bottom: 1px solid rgba(227, 207, 151, .14);
  backdrop-filter: blur(10px);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility .35s;
}
.topbar.is-on { visibility: visible; opacity: 1; }
.topbar a { font-family: var(--font-mark); font-size: 12px; letter-spacing: .18em; color: var(--gold-text); text-decoration: none; }
.topbar a:hover { color: var(--cream); }
.topbar-home { display: inline-flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 0; white-space: nowrap; }
.topbar-home img { display: block; height: 28px; width: auto; flex: none; }
.topbar-link { padding: 8px 0; white-space: nowrap; color: var(--silver-text) !important; }
@media (max-width: 420px) {
  .topbar-home span { display: none; }
}

/* ---------- scroll reveals (only ever added by site.js) ---------- */
h2 { --final: var(--cream); }
.forge-pending { opacity: 0; }
.forging-quick { --step: 22ms; }
.forging-quick .ch { animation: forge 1.1s cubic-bezier(.3, .6, .3, 1) both; animation-delay: calc(var(--i) * var(--step)); }
.drift-pending { opacity: 0; transform: translateY(24px); }
.drift-in { animation: drift .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes drift { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .site-footer .replay-link { display: none; }
}

/* ---------- sections ---------- */
.band { padding: clamp(72px, 11vw, 136px) 0; scroll-margin-top: 56px; }
.band-glow { background: radial-gradient(ellipse 80% 460px at 50% 500px, var(--forest), transparent); }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 24px; }
.narrow { width: min(680px, 100%); text-align: center; }
.label { margin: 0; font-family: var(--font-mark); font-weight: 500; font-size: 12.5px; letter-spacing: .3em; text-indent: .3em; color: var(--gold-text); text-align: center; }
h2 { margin: 12px 0 0; font-family: var(--font-head); font-weight: 400; font-style: italic; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.12; color: var(--cream); text-align: center; }
.narrow > p:not(.label) { margin: 22px 0 0; }
.lede { max-width: 640px; margin: 22px auto 0; text-align: center; font-size: 20px; }

.features {
  list-style: none;
  margin: clamp(56px, 8vw, 88px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px 56px;
}
.feature { flex: 0 1 300px; text-align: center; }
.phone {
  width: min(68vw, 260px);
  margin: 0 auto;
  padding: 7px;
  border-radius: 36px;
  border: 1px solid rgba(227, 207, 151, .38);
  background: #070d0a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 44px rgba(242, 190, 60, .05);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 28px; background: #101a24; }
.feature h3 { margin: 26px 0 0; font-family: var(--font-head); font-weight: 500; font-size: 27px; line-height: 1.2; color: var(--cream); }
.feature p { margin: 8px 0 0; font-size: 18px; line-height: 1.5; }

@media (min-width: 1040px) {
  .feature:nth-child(even) { margin-top: 56px; }
}

.cta-row { margin-top: clamp(64px, 8vw, 96px); text-align: center; }
.stores { margin: 22px 0 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.email { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 32px); }
.email a { text-decoration-color: rgba(242, 190, 60, .4); text-underline-offset: 5px; overflow-wrap: anywhere; }

/* ---------- plain document pages ---------- */
.doc { width: min(720px, 100%); margin: 0 auto; padding: clamp(104px, 14vw, 136px) 24px clamp(64px, 10vw, 104px); }
.doc h1 { margin: 0; }
.doc-sub { margin: 10px 0 0; font-family: var(--font-mark); font-size: 13px; letter-spacing: .14em; line-height: 1.6; color: var(--gold-text); }
.doc h2 { margin: 52px 0 0; font-size: clamp(29px, 3.6vw, 34px); text-align: left; }
.doc h3 { margin: 34px 0 0; font-family: var(--font-head); font-weight: 500; font-size: 25px; line-height: 1.25; color: var(--cream); }
.doc p { margin: 14px 0 0; }
.doc p.tight { margin-top: 4px; }
.doc ol, .doc ul { margin: 14px 0 0; padding-left: 1.4em; }
.doc li { margin-top: 8px; }
.doc strong { font-weight: 500; color: var(--cream); }

/* ---------- 404 ---------- */
.lost main { min-height: 100svh; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lost img { display: block; height: 120px; width: auto; margin-bottom: 36px; }
.lost h1 { margin: 12px 0 30px; }

/* ---------- footer ---------- */
.site-footer { padding: 44px 0 52px; border-top: 1px solid rgba(227, 207, 151, .14); background: var(--bg-deep); font-size: 16px; text-align: center; }
.legal { margin: 0; }
.site-footer nav { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.site-footer a { display: inline-block; padding: 6px 0; color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }

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