:root {
  --bg: #07080c;
  --ink: #f6f1e6;
  --muted: #b7b0a3;
  --gold: #f0d48a;
  --gold-deep: #a8742c;
  --gold-hot: #fff6d2;
  --red: #d32626;
  --line: rgba(240, 212, 138, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --serif: "Cinzel", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --italic: "Cormorant Garamond", Georgia, serif;
  --nav: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 0.75rem); }

section[id] { scroll-margin-top: calc(var(--nav) + 0.75rem); }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(212, 160, 60, 0.16), transparent 60%),
    radial-gradient(760px 460px at -10% 30%, rgba(90, 120, 160, 0.16), transparent 55%),
    radial-gradient(600px 380px at 50% 120%, rgba(180, 40, 30, 0.08), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input { font: inherit; }

[hidden] { display: none !important; }

p { margin: 0 0 0.85rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0; }

h1 {
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 { font-size: clamp(2rem, 4.4vw, 3.45rem); max-width: 16ch; }

.gold-text {
  color: var(--gold);
  background-image: linear-gradient(180deg, #fff8dc 0%, #f0d48a 42%, #c8963a 78%, #fff1c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.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;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: #1a1206;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus { top: 1rem; }

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

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.13;
  mix-blend-mode: overlay;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.nav.scrolled {
  background: rgba(7, 8, 12, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 34%;
  border: 1px solid rgba(240, 212, 138, 0.65);
  box-shadow: 0 0 16px rgba(255, 186, 60, 0.45);
}

.brand-name {
  font-family: var(--serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

#navMenu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

#navMenu a:not(.btn) {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #efe8da;
}

#navMenu a:not(.btn):hover,
#navMenu a:not(.btn).is-active { color: var(--gold); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold);
  cursor: pointer;
}

.nav-toggle i {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle i:nth-of-type(1) { top: 15px; }
.nav-toggle i:nth-of-type(2) { top: 21px; }
.nav-toggle i:nth-of-type(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] i:nth-of-type(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] i:nth-of-type(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Hero */

.hero-media {
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: #12151c;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  animation: ken 26s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

#embers,
.bolt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#embers { z-index: 1; }

.bolt {
  z-index: 2;
  background:
    linear-gradient(115deg, transparent 35%, rgba(220, 230, 255, 0.28) 46%, transparent 52%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), transparent 42%);
  opacity: 0;
  mix-blend-mode: screen;
  animation: flash 11s infinite;
}

.hero-dock {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
  padding-bottom: 2.6rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), transparent);
}

.eyebrow.left::after { margin-left: 0; }

.hero h1,
.ticker {
  background-image: linear-gradient(100deg, #8a6220 0%, #fff6d2 35%, #f0d48a 50%, #fff6d2 65%, #8a6220 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
}

.ticker {
  margin: 0.35rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: none;
}

.tick { text-transform: none; }

.tagline {
  margin: 0.85rem auto 0;
  max-width: 18ch;
  font-family: var(--italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  color: var(--gold-hot);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.cta-row.left { justify-content: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.92rem 1.35rem;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-sm { padding: 0.62rem 0.95rem; }

.btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, #fff3c9 0%, #f0d48a 40%, #d7a441 100%);
  box-shadow: 0 10px 30px rgba(215, 164, 65, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: glow 2.8s ease-in-out infinite;
}

.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-ghost {
  color: var(--gold-hot);
  background: rgba(0, 0, 0, 0.28);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(240, 212, 138, 0.65);
  background: rgba(240, 212, 138, 0.08);
}

.ca-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(640px, 100%);
  margin: 1.15rem auto 0;
  padding: 0.72rem 0.85rem 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.ca-chip:hover { border-color: rgba(240, 212, 138, 0.55); }

.ca-label,
.ca-action {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
}

.ca-chip code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92rem;
  color: #f3ecdf;
}

.ca-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

/* Marquee */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee p {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0.85rem 0.7rem;
  white-space: nowrap;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold-hot);
}

.marquee i { color: var(--red); font-style: normal; }

.marquee .tick {
  letter-spacing: 0.08em;
  text-transform: none;
}

/* Sections */

.block { padding: clamp(4rem, 8vw, 6.5rem) 0; }

#about { overflow: hidden; }

.section-head { margin-bottom: 1.35rem; }

.intro {
  max-width: 62ch;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) 1.14fr;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}

.portrait {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(circle, rgba(255, 186, 60, 0.55), transparent 68%);
  filter: blur(16px);
  z-index: 0;
  animation: pulse 3.6s ease-in-out infinite;
}

.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
  border: 1px solid rgba(240, 212, 138, 0.45);
  box-shadow: var(--shadow), 0 0 40px rgba(232, 184, 74, 0.18);
  animation: float 5.5s ease-in-out infinite;
}

.ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 112%;
  height: 112%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(240, 212, 138, 0.18);
  border-top-color: rgba(255, 236, 190, 0.95);
  animation: spin 16s linear infinite;
  pointer-events: none;
}

.ring.two {
  width: 126%;
  height: 126%;
  animation-duration: 24s;
  animation-direction: reverse;
  border-top-color: transparent;
  border-right-color: rgba(211, 38, 38, 0.75);
}

.lede {
  color: var(--ink);
  border-left: 2px solid var(--red);
  padding-left: 1rem;
}

.about-grid p:not(.eyebrow) { color: var(--muted); max-width: 62ch; }
.lede { color: #f3ecdf; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.cards,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.card {
  position: relative;
  padding: 1.3rem 1.2rem 1.35rem;
  border-radius: 1.05rem;
  background: linear-gradient(180deg, rgba(255, 244, 214, 0.055), rgba(8, 9, 12, 0.45));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 212, 138, 0.5);
}

.card p { color: #ddd6c8; }

.numeral {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 212, 138, 0.85);
}

.card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.35rem;
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.stat {
  padding: 1.1rem 1rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.stat p {
  margin: 0 0 0.3rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.stat strong {
  display: block;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in { opacity: 1; transform: none; }

.closer {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.closer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
}

.closer-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 8, 12, 0.94), rgba(7, 8, 12, 0.62) 42%, rgba(7, 8, 12, 0.78));
}

.closer-copy {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 2rem));
  margin: 2rem 1rem;
  padding: 2.1rem 1.5rem 1.8rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(240, 212, 138, 0.28);
  background: rgba(7, 8, 12, 0.62);
  backdrop-filter: blur(8px);
}

.closer h2 {
  margin: 0 auto 1.3rem;
  max-width: 12ch;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  background: rgba(0, 0, 0, 0.35);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.footer strong {
  font-family: var(--serif);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer p { margin: 0.3rem 0 0; color: var(--muted); }

.disclaimer { max-width: 70ch; font-size: 0.92rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 80;
  translate: -50% 160%;
  background: #16130c;
  color: var(--gold-hot);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow);
  transition: translate 0.35s ease;
}

.toast.show { translate: -50% 0; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #07080c; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#f0d48a, #8a5a16);
  border-radius: 99px;
}

::selection { background: rgba(240, 212, 138, 0.35); color: white; }

@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

@keyframes shine {
  to { background-position: 220% center; }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(215, 164, 65, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.75); }
  50% { box-shadow: 0 12px 36px rgba(255, 206, 110, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.75); }
}

@keyframes flash {
  0%, 88%, 100% { opacity: 0; }
  89% { opacity: 0.55; }
  90% { opacity: 0.05; }
  92% { opacity: 0.32; }
  94% { opacity: 0; }
}

@media (min-width: 761px) {
  .hero h1,
  .hero .ticker {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }

  .brand-name { display: none; }

  #navMenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.8rem 1rem 1rem;
    background: rgba(7, 8, 12, 0.97);
    border-bottom: 1px solid var(--line);
  }

  #navMenu.open { display: flex; }

  #navMenu a:not(.btn) { padding: 0.7rem 0.2rem; }

  .about-grid,
  .cards,
  .steps,
  .footer-inner { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr 1fr; }

  .cta-row.left { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .hero-media { aspect-ratio: 4 / 5; }

  .hero-media img {
    object-position: 20% 42%;
    animation: none;
  }

  .hero-dock { margin-top: -1.25rem; }

  .tagline { max-width: 16ch; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }

  .ca-chip { border-radius: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-media img,
  .marquee-track,
  .portrait img,
  .portrait::before,
  .ring,
  .btn-gold,
  .bolt,
  .hero h1,
  .ticker {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
