:root {
  --night: #0b0914;
  --panel: #181226;
  --moonlight: #fff3e4;
  --muted: #bfb4d0;
  --accent: #caaafa;
  --primary: #4e327a;
  --primary-hover: #624194;
  --line: #372a4d;
  --image-bg: #100c1e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 65% 470px at 72% 280px, #201537 0%, transparent 90%), var(--night);
  color: var(--moonlight);
  font: 16px/1.6 system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[aria-disabled="true"] { cursor: default; }
header, .hero, .vision, .portal, footer { width: min(1120px, 88%); margin-inline: auto; }

header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-block: 20px;
}
header { border-bottom: 1px solid var(--line); }
.brand { white-space: nowrap; }
.brand { color: var(--moonlight); font-size: 21px; font-weight: 950; letter-spacing: -.055em; }
.brand::before { content: '✦'; color: var(--accent); margin-right: 9px; font-size: 14px; vertical-align: 2px; }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 34px); font-size: 13px; font-weight: 650; }
nav a:not(.nav-pill):hover { color: var(--accent); }
.nav-pill, .eyebrow, .section-kicker, .art-label, .coordinate, .micro, .scroll, .link-state, .ca-box div > span {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
}
.nav-pill { color: var(--accent); background: #241834; padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.nav-pill:hover { background: #332347; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding-block: clamp(38px, 6vw, 82px) 28px;
}
.eyebrow, .section-kicker, .micro { color: var(--accent); }
.hero h1 {
  font-size: clamp(65px, 9vw, 132px);
  font-weight: 950;
  line-height: .84;
  letter-spacing: -.075em;
  margin: 17px 0 22px;
}
.hero h1 span {
  display: block;
  padding: .02em .12em .09em 0;
  color: var(--accent);
}
.hero-sub { color: var(--muted); font-size: clamp(18px, 2.15vw, 27px); line-height: 1.22; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.button, .text-link, .ca-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}
.primary, .ca-box button { color: #fffdf3; background: var(--primary); border: 1px solid transparent; }
.primary:hover, .ca-box button:not(:disabled):hover { background: var(--primary-hover); }
.text-link { border: 1px solid #514068; color: var(--moonlight); }
.text-link[href]:hover { background: #241834; }
.text-link[aria-disabled="true"] { opacity: .65; }
.micro { margin-top: 25px; font-size: 10px; }
.hero-art {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 10px 0;
  border-radius: 28px;
  box-shadow: 0 22px 65px #1b073f70, 0 0 55px #9761ee12;
}
.art-shell {
  aspect-ratio: 1.13;
  position: relative;
  overflow: hidden;
  background: var(--image-bg);
  border-radius: 20px;
}
.art-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.art-label, .coordinate { display: inline-block; padding: 12px 5px; color: var(--muted); }
.art-label { color: var(--moonlight); }
.coordinate { float: right; font-size: 9px; line-height: 1.95; }
.scroll { grid-column: 1 / -1; justify-self: start; color: var(--muted); }
.scroll span { padding-left: 7px; }
.ticker { padding: 13px 6%; background: #171023; border-block: 1px solid #372a4d; color: #decaef; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .14em; }

.vision, .portal { padding-top: clamp(58px, 8vw, 100px); }
.section-kicker { margin-bottom: 15px; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
h2 { font-size: clamp(35px, 6vw, 66px); font-weight: 750; line-height: 1.03; letter-spacing: -.045em; margin: 0; }
h2 em { color: var(--accent); font-style: normal; }
.vision-grid p, .section-sub, .contract p { color: var(--muted); margin: 0 0 12px; }
.signature { color: var(--accent); font-size: 18px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.principles > div { padding: 20px; background: #151020; border: 1px solid var(--line); border-radius: 17px; }
.principles > div:nth-child(2) { background: #1d142d; }
.principles > div:nth-child(3) { background: #181325; }
h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.principles p, .portal-card p { margin: 0; color: var(--muted); font-size: 13px; }
.section-sub { margin-top: 12px; }
.portal-links { margin-top: 23px; display: grid; gap: 10px; }
.portal-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}
.portal-card[href]:hover { border-color: #9469c5; background: #211632; }
.portal-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  background: #2a1c3e;
  border-radius: 12px;
  color: var(--moonlight);
  font-size: 23px;
}
.pump-icon { width: 29px; height: auto; }
.link-state { margin-left: auto; color: var(--accent); text-align: right; font-size: 9px; }
.arrow { color: var(--accent); font-size: 21px; }

.contract {
  width: min(1120px, 88%);
  margin: clamp(56px, 8vw, 100px) auto 40px;
  padding: clamp(24px, 5vw, 60px);
  border: 1px solid #372a4d;
  border-radius: 26px;
  background: radial-gradient(ellipse at 50% 0%, #291a42, #171020 72%);
  text-align: center;
}
.contract h2 { margin: 12px 0; }
.ca-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 690px;
  margin: 23px auto 10px;
  padding: 12px 14px;
  border: 1px solid #372a4d;
  border-radius: 17px;
  background: var(--panel);
  text-align: left;
}
.ca-box > div { min-width: 0; }
.ca-box div > span { display: block; color: var(--muted); font-size: 9px; }
.ca-box code { font-family: inherit; font-size: 13px; overflow-wrap: anywhere; }
.ca-box button { cursor: pointer; white-space: nowrap; }
.ca-box button:disabled { color: #c7bad8; background: #241934; cursor: default; }
.contract .contract-hint, #copy-status, footer p, footer > span { font-size: 12px; }
#copy-status { min-height: 19px; color: var(--accent); }
footer { border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0; }
.cursor-glow { display: none; }

@media (max-width: 680px) {
  .hero, .vision-grid, .principles { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(62px, 16vw, 102px); }
  .hero-art { width: 100%; max-width: 480px; }
  .vision-grid { gap: 16px; }
  .principles { margin-top: 24px; }
  .ca-box { align-items: stretch; flex-direction: column; }
}
@media (max-width: 380px) {
  header { gap: 8px; }
  nav { font-size: 11px; gap: 9px; }
  .nav-pill { font-size: 9px; padding-inline: 8px; }
  .portal-card { gap: 9px; padding-inline: 9px; }
  .coordinate { letter-spacing: .05em; }
  .art-label { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-art, .scroll {
    animation: astral-arrive 640ms cubic-bezier(.2, .75, .3, 1) backwards;
  }
  .hero-copy h1 { animation-delay: 70ms; }
  .hero-copy .hero-sub { animation-delay: 140ms; }
  .hero-copy .hero-actions { animation-delay: 210ms; }
  .hero-copy .micro, .scroll { animation-delay: 280ms; }
  .hero-art { animation-delay: 120ms; }
  .art-shell img { animation: astral-portrait 1500ms ease-out 120ms backwards; }
  .scroll span { display: inline-block; animation: astral-nudge 900ms ease-in-out 700ms 2; }

  .reveal.is-visible { animation: astral-arrive 560ms cubic-bezier(.2, .75, .3, 1); }
  .reveal:focus-within { animation: none; }

  .nav-pill, .button, .text-link, .ca-box button, .portal-card {
    transition: background-color 180ms ease, border-color 180ms ease,
      box-shadow 180ms ease, translate 180ms ease;
  }
  .button:focus-visible, .text-link[href]:focus-visible,
  .portal-card[href]:focus-visible, .ca-box button:focus-visible {
    translate: 0 -2px;
    box-shadow: 0 6px 14px #8e59c634;
  }
  @media (hover: hover) {
    .nav-pill:hover, .button:hover, .text-link[href]:hover,
    .portal-card[href]:hover, .ca-box button:not(:disabled):hover {
      translate: 0 -2px;
      box-shadow: 0 6px 14px #8e59c634;
    }
    .portal-card .arrow { transition: translate 180ms ease; }
    .portal-card[href]:hover .arrow { translate: 3px -3px; }
  }
}

@keyframes astral-arrive {
  from { opacity: .25; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes astral-portrait {
  from { scale: 1.08; }
  to { scale: 1; }
}

@keyframes astral-nudge {
  50% { transform: translateY(4px); }
}

/* RGB display theme */
:root {
  color-scheme: dark;
  --night: #090a0e;
  --panel: #13141c;
  --moonlight: #f9f5ef;
  --muted: #bebbc8;
  --accent: #ff9c50;
  --primary: #ff9c50;
  --primary-hover: #ffbd8a;
  --line: #373641;
  --image-bg: #0a0b10;
  --mono: "Cascadia Mono", Consolas, monospace;
  --rgb: linear-gradient(90deg,#ff553c,#ffae4b,#e8f56a,#5af69c,#63c7ff,#a587ff,#ff61a3);
}
body {
  background: radial-gradient(ellipse at 77% 7%, #2b1e40 0%, transparent 34rem),
    radial-gradient(ellipse at 9% 30%, #291b1f, transparent 40rem),
    repeating-linear-gradient(0deg,#ffffff08 0 1px,transparent 1px 5px), var(--night);
}
header { min-height: 76px; }
.brand::before { content: "▥"; font-family: var(--mono); }
nav { flex-wrap: wrap; }
.nav-pill, .eyebrow, .section-kicker, .art-label, .coordinate, .micro,
.scroll, .link-state, .ca-box div > span, .ticker, .signature, .ca-box code {
  font-family: var(--mono);
}
.nav-pill, .text-link { border: 1px solid var(--line); background: #13141c; }
.nav-pill:hover, .text-link[href]:hover { background: #242029; border-color: var(--accent); }
.hero h1 { font-size: clamp(54px, 9vw, 132px); line-height: .86; }
.hero h1 span { text-shadow: 2px 0 #ff52779c, -2px 0 #57e8fa9c; }
.hero-sub { line-height: 1.35; }
.hero .eyebrow::before { content: "■"; margin-right: 9px; color: #65f1a0; }
.button, .text-link, .ca-box button, .nav-pill { border-radius: 5px; }
.primary, .ca-box button { color: #19100b; }
.hero-art {
  border-radius: 9px;
  padding: 9px 9px 0;
  box-shadow: 0 20px 60px #0009, 0 0 36px #e4683720;
}
.art-shell { aspect-ratio: 1; border-radius: 4px; }
.art-shell img { object-fit: contain; }
.coordinate { color: #65f1a0; }
.ticker { background: #14131b; border: 0; color: var(--moonlight); position: relative; }
.ticker::before, .ticker::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--rgb);
}
.ticker::after { inset: auto 0 0; opacity: .5; }
.signature { font-size: 14px; }
.principles > div:nth-child(n), .portal-card, .contract, .ca-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
}
.principles > div:nth-child(n) { border-top: 2px solid var(--accent); }
.principles > div:nth-child(2) { border-top-color: #f373a6; }
.principles > div:nth-child(3) { border-top-color: #77d7ff; }
.portal-card[href]:hover { background: #201c27; border-color: var(--accent); }
.portal-icon { background: #232330; border-radius: 5px; }
.contract { background: radial-gradient(ellipse at top, #302130, var(--panel) 75%); }
.ca-box { background: var(--night); }
@media (min-width: 681px) and (max-width: 900px) {
  .hero h1 { font-size: clamp(54px, 8.6vw, 85px); }
}
@media (max-width: 680px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(55px, 16vw, 96px); }
}

