:root {
  --wood-950: #140d05;
  --wood-900: #1c130a;
  --wood-800: #2a1c0d;
  --wood-700: #3a2812;
  --gold-500: #b08530;
  --gold-300: #d8ac54;
  --gold-200: #f0c862;
  --parchment-100: #f3e5bb;
  --parchment-200: #ead7a2;
  --parchment-300: #dfc88e;
  --ink: #291b0b;
  --ink-soft: #674b21;
  --cream: #eadbb5;
  --cream-soft: #cdb988;
  --blue: #2f5aa8;
  --red: #9d3b33;
  --green: #5f7f3e;
  --violet: #6d548e;
  --line: rgba(176, 133, 48, .38);
  --shadow: 0 18px 46px rgba(0, 0, 0, .4);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background: var(--wood-950);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(90% 62% at 50% 0%, rgba(58, 52, 90, .65), transparent 68%),
    linear-gradient(180deg, var(--wood-800), var(--wood-950) 68%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 52px),
    radial-gradient(1px 1px at 17% 11%, #fff 40%, transparent 42%),
    radial-gradient(1px 1px at 69% 7%, #fff 40%, transparent 42%),
    radial-gradient(1.2px 1.2px at 84% 18%, #ffe6a7 40%, transparent 42%);
}

a { color: inherit; }

button, input { font: inherit; }

img, svg { display: block; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold-200);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

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

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 13, 5, .92);
  backdrop-filter: blur(10px);
}

.site-nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-200);
  text-decoration: none;
  font: 600 16px/1 "Cinzel", Georgia, serif;
  letter-spacing: .15em;
}

.brand svg { width: 31px; height: 36px; }

.desktop-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-links > a:not(.button) {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  opacity: .82;
}

.desktop-links > a:not(.button):hover,
.desktop-links > a[aria-current="page"] {
  opacity: 1;
  color: var(--gold-200);
  background: rgba(176, 133, 48, .12);
}

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

.mobile-nav { display: none; margin-left: auto; position: relative; }

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-200);
  font: 600 13px/1 "Cinzel", Georgia, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mobile-nav summary::-webkit-details-marker { display: none; }

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(290px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid var(--gold-500);
  border-radius: 12px;
  background: var(--wood-800);
  box-shadow: var(--shadow);
}

.mobile-nav-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--cream);
  text-decoration: none;
  border-radius: 7px;
}

.mobile-nav-panel a:hover { background: rgba(176, 133, 48, .14); }

.mobile-nav-panel .button { justify-content: center; margin-top: 7px; }

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  background: var(--gold-300);
  box-shadow: 0 3px 0 #76500e;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .065em;
  font: 600 12px/1.2 "Cinzel", Georgia, serif;
  transition: transform .18s ease, filter .18s ease;
}

.button:hover { filter: brightness(1.07); transform: translateY(-1px); }

.button.blue { color: #f5ead1; background: var(--blue); box-shadow: 0 3px 0 #172f5d; }

.button.ghost {
  color: var(--gold-200);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.button.ghost:hover { background: rgba(176, 133, 48, .12); }

.button.large { min-height: 50px; padding-inline: 24px; font-size: 14px; }

.page-hero {
  position: relative;
  padding: 86px 0 70px;
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(780px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.hero-crest { width: 76px; height: 90px; margin: 0 auto 18px; filter: drop-shadow(0 8px 20px #000); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-300);
  font: 600 12px/1.4 "Cinzel", Georgia, serif;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.page-hero h1,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  color: var(--gold-200);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
}

.page-hero h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(42px, 7.2vw, 76px);
  line-height: 1.08;
  text-shadow: 0 2px 0 #694a13, 0 18px 38px rgba(0, 0, 0, .48);
}

.hero-lead {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--cream);
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
}

.hero-note {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--cream-soft);
  font-size: 17px;
}

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 42px auto 0;
  border-block: 1px solid var(--line);
}

.hero-fact { padding: 16px 12px; }
.hero-fact + .hero-fact { border-left: 1px solid var(--line); }
.hero-fact strong { display: block; color: var(--gold-200); font: 600 17px/1.2 "Cinzel", Georgia, serif; }
.hero-fact span { display: block; margin-top: 5px; color: var(--cream-soft); font-size: 14px; }

.content-section { padding: 70px 0; }
.content-section.compact { padding-block: 48px; }
.content-section.tint { background: rgba(0, 0, 0, .14); border-block: 1px solid rgba(176, 133, 48, .15); }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.section-heading p { margin: 12px 0 0; color: var(--cream-soft); font-size: 18px; }

.parchment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.parchment-grid.two { grid-template-columns: repeat(2, 1fr); }
.parchment-grid.four { grid-template-columns: repeat(4, 1fr); }

.parchment-card {
  position: relative;
  min-width: 0;
  padding: 30px 24px 24px;
  color: var(--ink);
  background: var(--parchment-200);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.parchment-card .ribbon-label {
  position: absolute;
  top: -13px;
  left: 20px;
  padding: 5px 11px 6px;
  border-radius: 6px;
  color: #fff4da;
  background: var(--gold-500);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
  font: 600 10px/1.2 "Cinzel", Georgia, serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ribbon-label.green { background: var(--green); }
.ribbon-label.red { background: var(--red); }
.ribbon-label.blue { background: var(--blue); }
.ribbon-label.violet { background: var(--violet); }

.card-icon { display: block; margin: 4px 0 12px; font-size: 30px; line-height: 1; }
.parchment-card h3 { margin: 0 0 8px; color: #26190a; font: 600 19px/1.25 "Cinzel", Georgia, serif; }
.parchment-card p { margin: 0; color: #4d3612; font-size: 17px; line-height: 1.45; }
.parchment-card p + p { margin-top: 10px; }
.parchment-card ul { margin: 12px 0 0; padding-left: 20px; color: #4d3612; }
.parchment-card li + li { margin-top: 5px; }

.link-card { text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 24px 52px rgba(0, 0, 0, .5); }
.link-card .card-link { display: inline-block; margin-top: 16px; color: #6c480f; font: 600 12px/1.2 "Cinzel", Georgia, serif; letter-spacing: .05em; text-transform: uppercase; }

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.journey::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: var(--line);
}

.journey-step { position: relative; text-align: center; }
.journey-step .number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-200);
  background: var(--wood-800);
  font: 600 16px/1 "Cinzel", Georgia, serif;
}

.journey-step h3 { margin: 0 0 6px; color: var(--gold-200); font: 600 15px/1.25 "Cinzel", Georgia, serif; }
.journey-step p { margin: 0; color: var(--cream-soft); font-size: 15px; }

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-300);
  border-radius: 12px;
  background: rgba(0, 0, 0, .2);
}

.callout .callout-icon { font-size: 31px; }
.callout h3 { margin: 0 0 5px; color: var(--gold-200); font: 600 18px/1.3 "Cinzel", Georgia, serif; }
.callout p { margin: 0; color: var(--cream-soft); }

.feature-index { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.feature-index a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--cream); text-decoration: none; font-size: 15px; }
.feature-index a:hover { color: var(--gold-200); background: rgba(176, 133, 48, .12); }

.feature-group { scroll-margin-top: 86px; }
.feature-group + .feature-group { margin-top: 52px; }
.feature-group-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.feature-group-head h2 { margin: 0; color: var(--gold-200); font: 600 clamp(24px, 3.2vw, 34px)/1.2 "Cinzel", Georgia, serif; }
.feature-group-head p { max-width: 600px; margin: 6px 0 0; color: var(--cream-soft); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #f6eed8;
  background: var(--green);
  font: 600 10px/1.25 "Cinzel", Georgia, serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.status.experimental { background: var(--violet); }
.status.next { background: var(--red); }
.status.validated { background: var(--blue); }
.status.horizon { color: #2b1a08; background: var(--gold-300); }

.feature-card .status { margin-bottom: 14px; }

.not-yet {
  padding: 30px;
  border: 1px dashed var(--gold-500);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .17);
}
.not-yet h2 { margin: 0; color: var(--gold-200); font: 600 25px/1.25 "Cinzel", Georgia, serif; }
.not-yet p { color: var(--cream-soft); }
.not-yet ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; margin: 18px 0 0; padding-left: 20px; }

.roadmap-intro {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: stretch;
}

.roadmap-principle { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, .2); }
.roadmap-principle h2 { margin: 0 0 8px; color: var(--gold-200); font: 600 23px/1.3 "Cinzel", Georgia, serif; }
.roadmap-principle p { margin: 0; color: var(--cream-soft); }

.legend { display: grid; gap: 9px; padding: 22px; color: var(--ink); background: var(--parchment-200); border: 1px solid var(--gold-500); border-radius: var(--radius); }
.legend h2 { margin: 0 0 5px; font: 600 18px/1.3 "Cinzel", Georgia, serif; }
.legend-row { display: flex; align-items: center; gap: 9px; font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 36px; }
.filter-button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  font: 600 11px/1.2 "Cinzel", Georgia, serif;
  letter-spacing: .04em;
}
.filter-button:hover,
.filter-button[aria-pressed="true"] { color: var(--ink); background: var(--gold-300); border-color: var(--gold-300); }

.roadmap-section { scroll-margin-top: 90px; }
.roadmap-section + .roadmap-section { margin-top: 58px; }
.roadmap-section > h2 { margin: 0 0 8px; color: var(--gold-200); font: 600 clamp(25px, 3.2vw, 36px)/1.2 "Cinzel", Georgia, serif; }
.roadmap-section > p { max-width: 780px; margin: 0 0 24px; color: var(--cream-soft); }

.roadmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.roadmap-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 14, 5, .72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
.roadmap-card[hidden] { display: none; }
.roadmap-card .status { margin-bottom: 13px; }
.roadmap-card h3 { margin: 0 0 8px; color: var(--gold-200); font: 600 18px/1.35 "Cinzel", Georgia, serif; }
.roadmap-card p { margin: 0; color: var(--cream-soft); font-size: 16px; }
.roadmap-card ul { margin: 12px 0 0; padding-left: 20px; color: var(--cream-soft); font-size: 16px; }
.roadmap-card li + li { margin-top: 6px; }
.roadmap-card time { display: block; margin-top: 16px; color: var(--gold-300); font-size: 14px; font-style: italic; }

.final-cta {
  margin: 22px auto 0;
  padding: 44px 30px;
  border: 1px solid var(--gold-500);
  border-radius: 18px;
  text-align: center;
  background: var(--wood-900);
  box-shadow: var(--shadow);
}
.final-cta h2 { font-size: clamp(26px, 4vw, 37px); }
.final-cta p { max-width: 650px; margin: 10px auto 24px; color: var(--cream-soft); }

.site-footer { margin-top: 24px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: #b7a06f; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer-brand { color: var(--gold-200); font: 600 16px/1.3 "Cinzel", Georgia, serif; letter-spacing: .1em; }
.site-footer p { margin: 9px 0 0; font-size: 15px; }
.footer-links strong { display: block; margin-bottom: 8px; color: var(--cream); font: 600 12px/1.3 "Cinzel", Georgia, serif; letter-spacing: .07em; text-transform: uppercase; }
.footer-links a { display: block; width: max-content; color: var(--cream-soft); text-decoration: none; font-size: 15px; }
.footer-links a + a { margin-top: 5px; }
.footer-links a:hover { color: var(--gold-200); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(176, 133, 48, .18); font-size: 14px; }

@media (max-width: 980px) {
  .desktop-links { display: none; }
  .mobile-nav { display: block; }
  .parchment-grid.four { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .journey::before { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .shell { width: min(100% - 28px, 1160px); }
  .page-hero { padding: 62px 0 52px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .hero-fact:nth-child(4) { border-top: 1px solid var(--line); }
  .content-section { padding: 54px 0; }
  .parchment-grid,
  .parchment-grid.two,
  .roadmap-grid,
  .roadmap-intro { grid-template-columns: 1fr; }
  .not-yet ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .site-nav { min-height: 61px; }
  .brand { font-size: 14px; letter-spacing: .1em; }
  .brand svg { width: 27px; height: 32px; }
  .button.large { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact + .hero-fact { border-left: 0; border-top: 1px solid var(--line); }
  .parchment-grid.four,
  .journey { grid-template-columns: 1fr; }
  .journey-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; text-align: left; }
  .journey-step .number { grid-row: 1 / span 2; margin: 0; }
  .journey-step h3 { align-self: end; }
  .parchment-card,
  .roadmap-card { padding-inline: 20px; }
  .callout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
