:root {
  --canvas-w: 1672px;
  --canvas-h: 941px;
  --scaled-width: 1672px;
  --scaled-height: 941px;
  --scale: 1;
  --bg: #030302;
  --panel: rgba(6, 5, 3, 0.86);
  --panel-strong: rgba(7, 5, 3, 0.94);
  --gold: #df9d3f;
  --gold-soft: #935b1d;
  --gold-bright: #ffd477;
  --text: #f7ead2;
  --muted: rgba(247, 234, 210, 0.68);
  --faint: rgba(247, 234, 210, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(82, 50, 15, 0.22), transparent 58%),
    #020201;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

.presentation {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #020201;
}

.intro-slide {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020201;
  opacity: 1;
  transition: opacity 460ms ease, visibility 0s linear 0s;
}

.intro-slide::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
  content: "";
  pointer-events: none;
}

.intro-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.intro-action {
  position: absolute;
  right: clamp(18px, 3vw, 48px);
  bottom: clamp(18px, 3vw, 42px);
  z-index: 1;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid rgba(255, 225, 143, 0.75);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 225, 154, 0.96), rgba(185, 116, 39, 0.96));
  color: #160c04;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 0 24px rgba(255, 190, 70, 0.24);
}

.intro-action:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 30px rgba(255, 204, 91, 0.46);
}

.presentation.is-roadmap .intro-slide {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 460ms ease, visibility 0s linear 460ms;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.roadmap-shell {
  position: fixed;
  top: calc((100vh - var(--scaled-height)) / 2);
  left: calc((100vw - var(--scaled-width)) / 2);
  width: var(--canvas-w);
  height: var(--canvas-h);
  overflow: hidden;
  background:
    url("assets/fixed-reference.png") 0 0 / 1672px 941px no-repeat,
    var(--bg);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.82);
  transform: scale(var(--scale));
  transform-origin: top left;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 460ms ease, visibility 0s linear 460ms;
}

.presentation.is-roadmap .roadmap-shell {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 460ms ease, visibility 0s linear 0s;
}

/* The reference artwork contains the old copy; keep that area clean before the live panel opens. */
.roadmap-shell.is-initial-view::after {
  position: absolute;
  z-index: 4;
  top: 510px;
  left: 1204px;
  width: 438px;
  height: 270px;
  background: #050403;
  content: "";
  pointer-events: none;
}

.roadmap-stage {
  position: absolute;
  inset: 0;
  width: 1672px;
  height: 941px;
}

.stage-header {
  position: absolute;
  top: 23px;
  left: 52px;
  display: grid;
  width: 1590px;
  height: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 0 0 10px;
  background: linear-gradient(180deg, rgba(3, 3, 2, 0.92), rgba(3, 3, 2, 0.78) 72%, rgba(3, 3, 2, 0));
  opacity: 0;
  pointer-events: none;
}

.stage-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(223, 157, 63, 0.16), rgba(223, 157, 63, 0.58) 23%, rgba(223, 157, 63, 0.5) 76%, rgba(223, 157, 63, 0.12));
  box-shadow: 0 0 11px rgba(223, 157, 63, 0.22);
  content: "";
}

.stage-header::before {
  position: absolute;
  top: 2px;
  left: -35px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(223, 157, 63, 0.7);
  border-radius: 50%;
  color: var(--gold-bright);
  content: "✦";
  font-size: 25px;
  text-shadow: 0 0 12px rgba(255, 203, 95, 0.68);
  transform: rotate(45deg);
}

.title-line {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  padding-left: 28px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

h1 {
  margin: 0;
  color: var(--gold-bright);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 202, 96, 0.26);
  white-space: nowrap;
}

h1 span {
  color: var(--text);
  text-transform: none;
}

.title-line p {
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(223, 157, 63, 0.42);
  color: var(--gold);
  font-size: 18px;
  font-style: italic;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
}

.header-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.header-meta::before {
  color: var(--gold-bright);
  content: "✦";
  font-size: 18px;
  text-shadow: 0 0 12px rgba(255, 203, 95, 0.68);
}

.header-meta span:not(:first-child)::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(255, 203, 95, 0.68);
  content: "";
  vertical-align: middle;
}

.roadmap-layout {
  position: absolute;
  inset: 0;
}

.chapters-area {
  position: absolute;
  top: 140px;
  left: 17px;
  width: 1141px;
  height: 640px;
}

.chapter-grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
}

.chapter-card {
  position: relative;
  min-width: 0;
  height: 640px;
}

.chapter-hero {
  position: relative;
  display: grid;
  width: 100%;
  height: 300px;
  align-content: end;
  padding: 0 22px 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-align: center;
  opacity: 0;
}

.chapter-hero:hover,
.chapter-card.is-active .chapter-hero {
  filter: drop-shadow(0 0 18px rgba(255, 190, 70, 0.38));
}

.chapter-number {
  position: absolute;
  top: -38px;
  left: 50%;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  background: rgba(7, 5, 3, 0.86);
  color: var(--gold-bright);
  font-size: 29px;
  transform: translateX(-50%);
  box-shadow: 0 0 22px rgba(255, 197, 77, 0.58);
}

.chapter-title {
  max-width: 200px;
  margin: 0 0 9px;
  color: var(--gold-bright);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.08;
  text-transform: uppercase;
  justify-self: center;
}

.chapter-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.25;
}

.chapter-card:nth-child(2) .chapter-title {
  max-width: 230px;
}

.milestone-list {
  position: absolute;
  top: auto;
  bottom: 41px;
  left: 50%;
  display: grid;
  width: 218px;
  gap: 9px;
  margin: 0;
  transform: translateX(-50%);
}

.milestone-list::before {
  position: absolute;
  top: -17px;
  bottom: -24px;
  left: -18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(223, 157, 63, 0.72), rgba(223, 157, 63, 0.1));
  content: "";
}

.milestone-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 66px;
  padding: 8px 12px;
  border: 1px solid rgba(223, 157, 63, 0.34);
  border-radius: 7px;
  background: rgba(6, 5, 3, 0.72);
  cursor: pointer;
  text-align: left;
}

.milestone-row.is-plain {
  grid-template-columns: minmax(0, 1fr) 16px;
  padding-left: 12px;
}

.milestone-row::before {
  position: absolute;
  top: 50%;
  left: -23px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: #050403;
  content: "";
  transform: translateY(-50%);
}

.milestone-row:hover,
.milestone-row.is-active {
  border-color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(255, 190, 70, 0.24);
}

.milestone-row.is-active::before {
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(255, 202, 96, 0.7);
}

.milestone-index {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(223, 157, 63, 0.5);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 16px;
}

.milestone-title {
  color: var(--text);
  font-size: 17px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.milestone-arrow {
  color: var(--gold-bright);
  font-size: 24px;
}

.nested-projects {
  display: grid;
  gap: 9px;
  margin: -3px 0 8px 42px;
  color: var(--gold-bright);
  font-size: 14px;
}

.nested-projects button {
  position: relative;
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  text-align: left;
}

.nested-projects button::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(255, 202, 96, 0.62);
  content: "";
}

.nested-projects button:hover,
.nested-projects button.is-active {
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 202, 96, 0.58);
}

.detail-panel {
  position: absolute;
  top: 95px;
  left: 1187px;
  width: 472px;
  height: 752px;
  min-height: 0;
  padding: 28px 16px 11px;
  border: 1px solid rgba(223, 157, 63, 0.68);
  border-radius: 5px;
  z-index: 5;
  background: #050403;
  box-shadow: inset 0 0 0 1px rgba(255, 224, 150, 0.08), 0 0 28px rgba(255, 186, 67, 0.12);
}

.detail-panel.is-closed {
  display: none;
}

.detail-panel.is-initial-view {
  opacity: 0;
  pointer-events: auto;
}

.detail-panel::before,
.detail-panel::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(223, 157, 63, 0.12);
  content: "";
  pointer-events: none;
}

.detail-panel::after {
  inset: auto 14px 10px;
  height: 1px;
  border: 0;
  background: rgba(223, 157, 63, 0.28);
}

.panel-close {
  position: absolute;
  top: 15px;
  right: 16px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 29px;
}

.panel-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 8px 21px;
}

.panel-number {
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 29px;
  box-shadow: 0 0 20px rgba(255, 199, 86, 0.48);
}

.panel-heading h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
  text-transform: uppercase;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.panel-preview {
  position: relative;
  z-index: 1;
  height: 284px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(223, 157, 63, 0.36);
  border-radius: 4px;
  background: #050403;
}

.panel-preview.has-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}

.panel-preview.is-clickable {
  cursor: pointer;
}

.panel-preview.is-clickable:hover {
  border-color: rgba(255, 212, 119, 0.7);
  box-shadow: 0 0 20px rgba(255, 190, 70, 0.22);
}

.preview-image {
  position: absolute;
  inset: 0;
  background: var(--preview) center / cover no-repeat;
}

.preview-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(223, 157, 63, 0.34);
  border-radius: 5px;
  color: var(--text);
  text-decoration: none;
  background: #050403;
}

.preview-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.76));
  content: "";
}

.preview-card:hover {
  border-color: rgba(255, 212, 119, 0.7);
  box-shadow: 0 0 18px rgba(255, 190, 70, 0.22);
}

.preview-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 1;
  color: var(--gold-bright);
  font-size: 17px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.75);
}

.preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 74% 48%, rgba(255, 202, 96, 0.2), transparent 25%),
    linear-gradient(90deg, rgba(3, 3, 2, 0.94), rgba(18, 11, 6, 0.72)),
    var(--preview);
}

.preview-fallback h4 {
  max-width: 220px;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
}

.preview-fallback p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.primary-action.is-hidden {
  display: none;
}

.primary-action,
.secondary-action,
.next-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.primary-action {
  width: 100%;
  border: 1px solid rgba(255, 225, 143, 0.7);
  background: linear-gradient(135deg, #ffe19a, #b97427);
  color: #110a04;
  font-size: 16px;
}

.bottom-bar {
  position: absolute;
  top: 837px;
  left: 19px;
  display: grid;
  width: 1624px;
  grid-template-columns: 650px 465px 489px;
  gap: 0;
  align-items: center;
  opacity: 0;
  pointer-events: auto;
}

.roadmap-shell.is-initial-view .milestone-list {
  opacity: 1;
}

.roadmap-shell.is-initial-view .milestone-list::before,
.roadmap-shell.is-initial-view .milestone-row {
  opacity: 0;
}

.roadmap-shell.is-initial-view.is-interacted .milestone-row.is-active {
  opacity: 1;
  border-color: var(--gold-bright);
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 212, 119, 0.72),
    0 0 22px rgba(255, 190, 70, 0.68),
    inset 0 0 18px rgba(255, 190, 70, 0.16);
}

.roadmap-shell.is-initial-view.is-interacted .milestone-row.is-active > * {
  visibility: hidden;
}

.roadmap-shell.is-initial-view.is-interacted .milestone-row.is-active::before {
  visibility: hidden;
}

.roadmap-shell.is-initial-view .chapter-card:nth-child(1) .milestone-list {
  transform: translate(-50%, -5px);
}

.roadmap-shell.is-initial-view .chapter-card:nth-child(2) .milestone-row:nth-child(1),
.roadmap-shell.is-initial-view .chapter-card:nth-child(2) .milestone-row:nth-child(2) {
  transform: translateY(75px);
}

.roadmap-shell.is-initial-view .chapter-card:nth-child(2) .milestone-row:nth-child(3) {
  pointer-events: none;
}

.roadmap-shell.is-initial-view .chapter-card:nth-child(4) .milestone-list {
  transform: translate(-50%, 25px);
}

.progress-card,
.quote-card {
  min-height: 88px;
  margin: 0;
  padding: 18px 23px;
  border: 1px solid rgba(223, 157, 63, 0.26);
  background: rgba(5, 4, 3, 0.72);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 11px;
  color: var(--gold);
  font-size: 17px;
}

.progress-copy strong {
  color: var(--text);
  font-weight: 400;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(223, 157, 63, 0.32);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9a611f, #ffd77f, #ffae3a);
  box-shadow: 0 0 16px rgba(255, 200, 84, 0.72);
}

.quote-card {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.footer-actions {
  margin-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.secondary-action,
.next-action {
  min-width: 0;
  border: 1px solid rgba(223, 157, 63, 0.36);
  font-size: 16px;
}

.secondary-action {
  background: rgba(5, 4, 3, 0.82);
  color: var(--gold-bright);
}

.next-action {
  background: linear-gradient(135deg, #ffe19a, #b97427);
  color: #110a04;
}

.chapter-hero:focus-visible,
.milestone-row:focus-visible,
.nested-projects button:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.next-action:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.intro-action:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.is-pulsing {
  animation: pulseGlow 620ms ease;
}

@keyframes pulseGlow {
  45% {
    box-shadow: 0 0 28px rgba(255, 200, 84, 0.5);
  }
}
