:root {
  --color-space: #0B1026;
  --color-gold: #F0C75E;
  --color-ember: #FF6B35;
  --color-sapphire: #1A2A4A;
  --color-mist: #D1D5DB;
  --color-stone: #6B7280;
  --color-moss: #7A8B5A;
  --color-clay: #C66A4A;
  --color-chalk: #F5F0E6;
  --grad-gold: linear-gradient(100deg, #F0C75E 0%, #FFB347 50%, #FF6B35 100%);
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Segoe UI", "Arial Narrow", sans-serif;
  --shell-max: 1280px;
  --shadow-deep: 0 20px 48px -28px rgba(2, 5, 18, .8);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-space);
  color: var(--color-mist);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--color-chalk);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.9rem); }
h4 { font-size: 1.1rem; }

p {
  margin: 0 0 1.2rem;
}

ul, ol {
  padding-left: 1.3rem;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--color-ember);
}

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

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--color-gold);
  color: var(--color-space);
}

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

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 1280px) {
  .shell {
    padding-inline: 48px;
  }
}

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

.orbit-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-11 { grid-column: span 11; }
.span-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .span-1, .span-2, .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-10, .span-11, .span-12 {
    grid-column: 1 / -1;
  }
}

.orbit-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--grad-gold);
  color: var(--color-space);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(255, 107, 53, .28);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.orbit-cta:hover {
  color: var(--color-space);
  transform: translateY(-2px) translateX(-1px);
  box-shadow: 7px 8px 0 rgba(255, 107, 53, .42);
}

.orbit-cta--compact {
  padding: 10px 16px;
  font-size: .9rem;
}

.orbit-cta__arrow {
  font-size: 1.25em;
  line-height: 1;
  transition: transform .2s var(--ease-out);
}

.orbit-cta:hover .orbit-cta__arrow {
  transform: translateX(4px);
}

.orbit-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .9rem;
  letter-spacing: .04em;
  border-radius: 3px;
  transition: background .2s ease, color .2s ease;
}

.orbit-ghost:hover {
  background: var(--color-gold);
  color: var(--color-space);
}

.prose {
  max-width: 72ch;
}

.prose p,
.prose li {
  font-size: 1rem;
  color: var(--color-mist);
}

.prose h2 {
  margin-top: 2em;
}

.prose strong {
  color: var(--color-chalk);
  font-weight: 700;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  font-size: .85rem;
}

.crumbs li::after {
  content: "/";
  margin: 0 .55rem;
  color: var(--color-stone);
}

.crumbs li:last-child::after {
  display: none;
}

.crumbs a {
  color: var(--color-stone);
}

.crumbs a:hover {
  color: var(--color-gold);
}

.crumbs [aria-current="page"] {
  color: var(--color-gold);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-sapphire);
  border: 1px solid rgba(240, 199, 94, .28);
  border-left: 3px solid var(--color-ember);
  color: var(--color-mist);
  font-size: .78rem;
  letter-spacing: .06em;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-ember);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .18);
}

.badge--moss {
  border-left-color: var(--color-moss);
}

.badge--moss::before {
  background: var(--color-moss);
  box-shadow: 0 0 0 3px rgba(122, 139, 90, .18);
}

.panel {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 2px;
}

.panel-void {
  background: var(--color-sapphire);
}

.panel-space {
  background: var(--color-space);
  border: 1px solid rgba(240, 199, 94, .18);
}

.panel-chalk {
  background: var(--color-chalk);
  color: var(--color-space);
}

.panel-chalk h1,
.panel-chalk h2,
.panel-chalk h3 {
  color: var(--color-space);
}

.kicker {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .75rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-ember);
}

.artifact {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(240, 199, 94, .12), transparent 38%),
    var(--color-sapphire);
  border: 2px solid rgba(240, 199, 94, .35);
  box-shadow: var(--shadow-deep);
}

.artifact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32%;
  background:
    linear-gradient(120deg, rgba(122, 139, 90, .42) 0 18%, rgba(198, 106, 74, .3) 18% 46%, transparent 46% 100%);
  clip-path: polygon(0 100%, 0 34%, 12% 14%, 28% 38%, 47% 8%, 68% 36%, 84% 10%, 100% 28%, 100% 100%);
}

.artifact--wide {
  min-height: 180px;
}

.artifact--tall {
  min-height: 420px;
}

.artifact--ember {
  border-color: rgba(255, 107, 53, .45);
}

.chapter-nav {
  position: sticky;
  top: 108px;
}

.chapter-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.chapter-nav-link {
  display: block;
  padding: 10px 14px;
  border-left: 3px solid var(--color-stone);
  color: var(--color-stone);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .9rem;
  letter-spacing: .04em;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.chapter-nav-link:hover {
  color: var(--color-gold);
  border-left-color: var(--color-gold);
}

.chapter-nav-link.is-active {
  color: var(--color-ember);
  border-left-color: var(--color-ember);
  background: rgba(255, 107, 53, .08);
}

[data-count] {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-gold);
}

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s var(--ease-out);
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.masthead {
  position: relative;
  z-index: 100;
  background: var(--color-space);
  border-bottom: 1px solid rgba(240, 199, 94, .3);
  isolation: isolate;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 300px at 75% -50%, rgba(240, 199, 94, .2), transparent 70%),
    linear-gradient(90deg, transparent, rgba(240, 199, 94, .06), rgba(255, 107, 53, .06), transparent);
  background-size: 100% 100%, 220% 100%;
  animation: gold-drift 14s linear infinite;
}

@keyframes gold-drift {
  from { background-position: 0% 0%; }
  to { background-position: 200% 0%; }
}

.masthead-skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--color-gold);
  color: var(--color-space);
  font-family: var(--font-head);
  font-weight: 900;
  border-radius: 0 0 6px 6px;
  transition: top .2s ease;
}

.masthead-skip:focus-visible {
  top: 0;
}

.masthead-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 82px;
}

.masthead-id {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--color-chalk);
}

.masthead-id:hover {
  color: var(--color-chalk);
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--color-space);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  box-shadow: 0 0 26px rgba(240, 199, 94, .4);
  flex-shrink: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: .02em;
  color: var(--color-chalk);
}

.masthead-id:hover .brand-title {
  color: var(--color-gold);
}

.brand-tagline {
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--color-stone);
  text-transform: uppercase;
}

.major-nav {
  margin-left: auto;
}

.major-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.major-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 3px;
  color: var(--color-mist);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .9rem;
  letter-spacing: .04em;
  transition: color .2s ease, background .2s ease;
}

.major-nav-link:hover {
  color: var(--color-gold);
  background: rgba(240, 199, 94, .08);
}

.major-nav-link[aria-current="page"] {
  color: var(--color-gold);
}

.major-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.masthead-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(240, 199, 94, .6);
  border-radius: 3px;
  transition: border-color .2s ease, background .2s ease;
}

.nav-toggle:hover {
  background: rgba(240, 199, 94, .08);
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  position: relative;
  transition: transform .2s var(--ease-out), background .2s ease;
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.burger-lines::before {
  top: -6px;
}

.burger-lines::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .burger-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.scanline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--grad-gold);
  z-index: 10;
  transition: width .08s linear;
}

.ridge {
  height: 46px;
  background:
    linear-gradient(130deg, transparent 0 8%, rgba(240, 199, 94, .22) 8% 16%, transparent 16% 30%, rgba(255, 107, 53, .24) 30% 42%, transparent 42% 60%, rgba(122, 139, 90, .2) 60% 70%, transparent 70% 100%);
}

.earthline {
  position: relative;
  margin-top: auto;
  background:
    radial-gradient(1100px 320px at 12% 0%, rgba(26, 42, 74, .75), transparent 62%),
    var(--color-space);
  border-top: 1px solid rgba(240, 199, 94, .24);
}

.earthline::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-gold);
  opacity: .8;
}

.earthline-inner {
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 48px;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--color-space);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(240, 199, 94, .3);
}

.footer-brand-tag {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--color-chalk);
  letter-spacing: .03em;
}

.footer-trust {
  max-width: 42ch;
  color: var(--color-mist);
  font-size: .95rem;
  line-height: 1.9;
}

.footer-note {
  color: var(--color-stone);
  font-size: .82rem;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer-catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-catalog-list a {
  color: var(--color-mist);
  transition: color .2s ease, padding-left .2s ease;
}

.footer-catalog-list a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--color-stone);
  font-size: .9rem;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.footer-policy-links a {
  color: var(--color-gold);
  font-size: .85rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-block: 22px;
  border-top: 1px solid rgba(209, 213, 219, .12);
  color: var(--color-stone);
  font-size: .82rem;
}

.rocket-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  padding: 14px 18px;
  background: var(--grad-gold);
  color: var(--color-space);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .9rem;
  letter-spacing: .02em;
  border: none;
  border-radius: 40px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease-out);
}

.rocket-btn.is-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rocket-btn:hover {
  filter: brightness(1.06);
}

@media (max-width: 1080px) {
  .masthead-inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .major-nav {
    order: 9;
    flex-basis: 100%;
    margin-left: 0;
    display: none;
    width: 100%;
    background: var(--color-sapphire);
    border-top: 1px solid rgba(240, 199, 94, .28);
    box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .6);
    max-height: 80vh;
    overflow-y: auto;
  }

  .major-nav[data-open] {
    display: block;
  }

  .major-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0;
  }

  .major-nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 2px;
  }

  .major-nav-link[aria-current="page"] {
    background: rgba(240, 199, 94, .12);
  }

  .major-nav-link[aria-current="page"]::after {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .masthead-id {
    gap: 10px;
  }

  .monogram {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-tagline {
    font-size: .7rem;
  }

  .orbit-cta--compact {
    padding: 9px 12px;
  }

  .orbit-cta--compact span:first-child {
    display: none;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .rocket-btn {
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
    font-size: .8rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .masthead::before {
    animation: none;
  }
}
