:root {
  --rw-color-black: #050709;
  --rw-color-bg: #0b1014;
  --rw-color-graphite: #151c22;
  --rw-color-surface-raised: #1d252b;
  --rw-color-border: #343c42;
  --rw-color-steel: #8c9498;
  --rw-color-forged: #d7d5ce;
  --rw-color-text: #d7d5ce;
  --rw-color-text-bright: #f2f0e8;
  --rw-color-orange: #ff6a00;
  --rw-color-amber: #ff9a1f;
  --rw-color-blue-steel: #5d7f96;
  --rw-font-display: "Rajdhani", "Orbitron", "Eurostile", "Inter Tight", sans-serif;
  --rw-font-body: "Inter", "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rw-font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --rw-space-1: 4px;
  --rw-space-2: 8px;
  --rw-space-3: 12px;
  --rw-space-4: 16px;
  --rw-space-6: 24px;
  --rw-space-10: 40px;
  --rw-space-16: 64px;
  --rw-radius-sm: 4px;
  --rw-radius-md: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--rw-color-black);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(93, 127, 150, 0.22), transparent 36rem),
    linear-gradient(180deg, #050709 0%, #0b1014 52%, #050709 100%);
  color: var(--rw-color-text);
  font-family: var(--rw-font-body);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(215, 213, 206, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 213, 206, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.035) 50%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
  opacity: 0.26;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-160%);
  border: 1px solid var(--rw-color-orange);
  background: var(--rw-color-black);
  color: var(--rw-color-text-bright);
  padding: 0.7rem 0.9rem;
  font-family: var(--rw-font-mono);
  font-size: 0.85rem;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--rw-color-amber);
  outline-offset: 4px;
}

.site-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 32px), 1500px);
  min-height: 72px;
  transform: translateX(-50%);
  border: 1px solid rgba(215, 213, 206, 0.16);
  border-top: 0;
  background: rgba(5, 7, 9, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 -1px 0 rgba(93, 127, 150, 0.45);
}

.brand-mark,
.jump-link {
  min-height: 52px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border-right: 1px solid rgba(215, 213, 206, 0.14);
  color: var(--rw-color-text-bright);
  font-family: var(--rw-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.header-code,
.header-line,
.jump-link,
.eyebrow,
.build-kicker,
.site-footer {
  font-family: var(--rw-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-code {
  padding: 0 1rem;
  border-right: 1px solid rgba(215, 213, 206, 0.14);
  color: var(--rw-color-steel);
  font-size: 0.78rem;
  white-space: nowrap;
}

.header-line {
  padding: 0 1rem;
  color: rgba(215, 213, 206, 0.76);
  font-size: 0.75rem;
}

.jump-link {
  display: inline-grid;
  place-items: center;
  padding: 0 1.1rem;
  border-left: 1px solid rgba(215, 213, 206, 0.14);
  color: var(--rw-color-text-bright);
  font-size: 0.78rem;
}

.jump-link:hover {
  color: var(--rw-color-amber);
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding: 88px 24px 0;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(215, 213, 206, 0.28) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(215, 213, 206, 0.2) 50%, transparent 50.2%);
  opacity: 0.42;
}

.hero-registration span {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: rgba(215, 213, 206, 0.7);
  opacity: 0.6;
}

.hero-registration span:nth-child(1) {
  top: 110px;
  left: 28px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero-registration span:nth-child(2) {
  top: 110px;
  right: 28px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.hero-registration span:nth-child(3) {
  left: 28px;
  bottom: 118px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.hero-registration span:nth-child(4) {
  right: 28px;
  bottom: 118px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.hero-inner {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-bottom: 42px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--rw-color-blue-steel);
  font-size: 0.78rem;
}

.hero-lockup {
  width: min(100%, 1040px);
  margin-inline: auto;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.7));
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--rw-color-text-bright);
  font-family: var(--rw-font-display);
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  width: min(1180px, 100%);
  margin-top: clamp(1rem, 3vw, 2rem);
  font-size: clamp(2.7rem, 6.2vw, 5.8rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--rw-color-steel);
  font-family: var(--rw-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero-meta span {
  border: 1px solid rgba(215, 213, 206, 0.18);
  border-radius: var(--rw-radius-sm);
  padding: 0.55rem 0.7rem;
  background: rgba(11, 16, 20, 0.72);
}

.hero-meta b {
  color: var(--rw-color-orange);
  font-weight: 700;
}

.registry-peek {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(54px, 86px));
  align-items: center;
  gap: 1px;
  width: min(920px, calc(100% - 24px));
  margin: 0 auto;
  border: 1px solid rgba(215, 213, 206, 0.2);
  border-bottom: 0;
  background: rgba(215, 213, 206, 0.16);
  color: var(--rw-color-text-bright);
  text-decoration: none;
}

.registry-peek span,
.registry-peek strong {
  min-height: 58px;
  display: grid;
  place-items: center;
  background: rgba(11, 16, 20, 0.92);
  font-family: var(--rw-font-mono);
  letter-spacing: 0.16em;
}

.registry-peek span {
  justify-content: start;
  padding-inline: 1rem;
  color: var(--rw-color-steel);
  font-size: 0.78rem;
}

.registry-peek strong {
  color: var(--rw-color-orange);
}

.registry {
  padding: clamp(4rem, 7vw, 7rem) 24px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  width: min(1260px, 100%);
  margin: 0 auto 1.5rem;
  border-bottom: 1px solid rgba(215, 213, 206, 0.2);
  padding-bottom: 1rem;
}

.section-heading h2,
.principles h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.build-record {
  position: relative;
  display: grid;
  width: min(1260px, 100%);
  min-height: 390px;
  margin: 0 auto 1rem;
  border: 1px solid rgba(215, 213, 206, 0.2);
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(135deg, rgba(215, 213, 206, 0.08), transparent 38%),
    rgba(21, 28, 34, 0.72);
  box-shadow: inset 0 1px 0 rgba(93, 127, 150, 0.35), 0 28px 60px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.build-record::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--rw-color-orange), transparent 24%, var(--rw-color-blue-steel), transparent);
  opacity: 0.8;
}

.build-record::after {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(215, 213, 206, 0.08);
}

.build-index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  color: rgba(215, 213, 206, 0.12);
  font-family: var(--rw-font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 0.72;
}

.build-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.build-kicker {
  margin-bottom: 0.9rem;
  color: var(--rw-color-orange);
  font-size: 0.82rem;
}

.build-copy h3 {
  max-width: 780px;
  font-size: clamp(2.1rem, 5vw, 5rem);
}

.build-copy p {
  max-width: 640px;
  margin: 1.25rem 0 0;
  color: rgba(215, 213, 206, 0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  margin: 2rem 0 0;
  background: rgba(215, 213, 206, 0.16);
}

dl div {
  min-height: 82px;
  padding: 0.9rem 1rem;
  background: rgba(5, 7, 9, 0.55);
}

dt {
  color: var(--rw-color-blue-steel);
  font-family: var(--rw-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

dd {
  margin: 0.28rem 0 0;
  color: var(--rw-color-text-bright);
  font-weight: 600;
}

.build-rooklet {
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr);
}

.build-rooklet .build-visual {
  position: relative;
  min-height: 100%;
  border-right: 1px solid rgba(215, 213, 206, 0.14);
  background:
    linear-gradient(90deg, rgba(93, 127, 150, 0.18), transparent),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(215, 213, 206, 0.06) 26px 27px);
}

.build-rooklet .build-visual img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(84%, 380px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.62));
}

.rail {
  position: absolute;
  left: 14%;
  right: 14%;
  height: 1px;
  background: rgba(215, 213, 206, 0.42);
}

.rail-a {
  top: 22%;
}

.rail-b {
  bottom: 18%;
}

.build-market {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.74fr);
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.06), transparent 28%),
    rgba(21, 28, 34, 0.72);
}

.market-trace {
  position: relative;
  min-height: 100%;
  border-left: 1px solid rgba(215, 213, 206, 0.14);
  background:
    linear-gradient(180deg, transparent, rgba(93, 127, 150, 0.13)),
    repeating-linear-gradient(0deg, rgba(215, 213, 206, 0.1) 0 1px, transparent 1px 42px);
}

.market-trace span {
  position: absolute;
  left: 20%;
  width: 58%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rw-color-forged), var(--rw-color-orange), transparent);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.2);
}

.market-trace span:nth-child(1) { top: 22%; width: 34%; }
.market-trace span:nth-child(2) { top: 34%; left: 32%; width: 48%; }
.market-trace span:nth-child(3) { top: 46%; left: 16%; width: 64%; }
.market-trace span:nth-child(4) { top: 58%; left: 42%; width: 36%; }
.market-trace span:nth-child(5) { top: 70%; left: 22%; width: 54%; }
.market-trace span:nth-child(6) { top: 82%; left: 52%; width: 24%; }

.build-rookie {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
}

.rookie-stamp {
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(215, 213, 206, 0.14);
  background:
    radial-gradient(circle, rgba(255, 106, 0, 0.12), transparent 34%),
    conic-gradient(from 90deg, transparent, rgba(93, 127, 150, 0.28), transparent 42%);
}

.rookie-stamp::before {
  position: absolute;
  width: min(74%, 330px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(215, 213, 206, 0.22);
  border-radius: 50%;
}

.rookie-stamp img {
  position: relative;
  z-index: 1;
  width: min(62%, 260px);
  opacity: 0.92;
}

.principles {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  width: min(1260px, calc(100% - 48px));
  margin: clamp(4rem, 7vw, 7rem) auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(215, 213, 206, 0.2);
  border-bottom: 1px solid rgba(215, 213, 206, 0.2);
}

.principles ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  position: relative;
  border: 1px solid rgba(215, 213, 206, 0.16);
  padding: 1rem 1rem 1rem 2.6rem;
  background: rgba(21, 28, 34, 0.58);
  color: var(--rw-color-text-bright);
  font-weight: 600;
}

.principles li::before {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  transform: translateY(-50%);
  content: "";
  border: 1px solid var(--rw-color-orange);
  background: rgba(255, 106, 0, 0.28);
  box-shadow: 0 0 14px rgba(255, 106, 0, 0.28);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 auto;
  width: min(1260px, calc(100% - 48px));
  border-top: 1px solid rgba(215, 213, 206, 0.2);
  padding: 1.4rem 0 2rem;
  color: var(--rw-color-steel);
  font-size: 0.74rem;
}

.site-footer strong {
  color: var(--rw-color-text-bright);
}

.reveal {
  transform: translateY(18px);
  opacity: 0.82;
  transition: transform 700ms ease, opacity 700ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::after {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: -1;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.9), transparent);
    animation: scan 5.5s ease-in-out infinite;
  }

  .market-trace span {
    animation: pulse 3.8s ease-in-out infinite;
  }

  .market-trace span:nth-child(2n) {
    animation-delay: 700ms;
  }

  .hero-lockup {
    animation: settle 900ms ease both;
  }
}

@keyframes scan {
  0%, 100% { transform: translateY(90px); opacity: 0; }
  18%, 72% { opacity: 0.8; }
  50% { transform: translateY(calc(100svh - 86px)); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}

@keyframes settle {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 0;
    width: min(calc(100% - 20px), 1500px);
  }

  .brand-mark {
    border-bottom: 1px solid rgba(215, 213, 206, 0.14);
  }

  .jump-link {
    border-bottom: 1px solid rgba(215, 213, 206, 0.14);
  }

  .header-code,
  .header-line {
    display: none;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-inner {
    padding-bottom: 116px;
  }

  .hero-lockup {
    width: min(112%, 760px);
  }

  .section-heading,
  .principles {
    display: block;
  }

  .build-rooklet,
  .build-market,
  .build-rookie {
    grid-template-columns: 1fr;
  }

  .build-rooklet .build-visual,
  .market-trace,
  .rookie-stamp {
    min-height: 220px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(215, 213, 206, 0.14);
  }

  .build-market .build-copy {
    order: 2;
  }

  .market-trace {
    order: 1;
  }

  .principles ul {
    margin-top: 1.4rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 60px;
  }

  .brand-mark,
  .jump-link {
    min-height: 48px;
    padding-inline: 0.72rem;
  }

  .brand-mark span {
    font-size: 1rem;
  }

  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  .jump-link {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-inner {
    padding-bottom: 24px;
  }

  .hero-registration span {
    width: 28px;
    height: 28px;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4.7rem);
  }

  .hero-meta {
    display: grid;
    width: 100%;
  }

  .hero-meta span {
    width: 100%;
  }

  .registry-peek {
    grid-template-columns: 1fr repeat(3, 48px);
    width: 100%;
  }

  .registry-peek span,
  .registry-peek strong {
    min-height: 52px;
    letter-spacing: 0.08em;
  }

  .registry-peek span {
    padding-inline: 0.8rem;
    font-size: 0.72rem;
  }

  .registry {
    padding-inline: 16px;
  }

  .build-record {
    min-height: 0;
  }

  .build-copy {
    padding: 1.6rem;
  }

  .build-copy h3 {
    font-size: clamp(2rem, 12vw, 3.6rem);
  }

  dl {
    grid-template-columns: 1fr;
  }

  .principles,
  .site-footer {
    width: calc(100% - 32px);
  }
}

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

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