/* Layout concept: one glowing cobalt stage. A curved grid overhead, a horizon ring
   and a lit planet edge below; content floats on it in soft glass pills.
   Type follows the supplied references: wide heavy italic for display, an italic
   humanist sans for everything else. Single committed dark look, re-toned per realm. */
:root {
  color-scheme: dark;
  --void: #020a48;        /* deep stage blue */
  --navy: #06106e;        /* raised ground */
  --cobalt: #2f47e6;      /* primary action */
  --ultra: #7d90ff;       /* borders, focus */
  --lav: #b9c3ff;         /* labels, links */
  --ice: #eef0ff;         /* text */
  --dim: #c6cdff;         /* secondary text */
  --panel: rgba(4, 12, 92, .62);
  --line: rgba(150, 165, 255, .5);
  --glow: rgba(110, 135, 255, .75);
  --btn-ink: #ffffff;
  --btn-top: #647bff; --btn-bot: #2c44e2;
  --ok: #9af0d2; --warn: #ffe08f; --plan: #d6c8ff; --res: #a5dcff;
  --mock-bg: rgba(60, 44, 0, .6); --mock-ink: #ffe39a; --mock-line: #d2a93a;
  --err: #ffb0b0;

  --f-display: "Archivo", "Helvetica Neue", "Arial Black", Arial, sans-serif;
  --f-body: "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
body[data-realm="qigana"] {
  --panel: rgba(12, 8, 70, .66);
  --line: rgba(170, 160, 255, .55);
}
body[data-realm="celestara"] {
  --void: #2a1206;
  --navy: #3a1a08;
  --cobalt: #a8281a;
  --ultra: #e9b23a;
  --lav: #ffd98a;
  --ice: #fff4dc;
  --dim: #ecd0a2;
  --panel: rgba(46, 18, 6, .82);
  --line: rgba(240, 190, 90, .6);
  --glow: rgba(255, 200, 100, .6);
  --btn-top: #c8402c; --btn-bot: #8e1f14;
}

* { box-sizing: border-box; }
html { background: var(--void); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--void); color: var(--ice);
  font: italic 400 1.04rem/1.6 var(--f-body);
  display: flex; flex-direction: column;
  transition: background-color .7s ease, color .4s ease;
}
main { flex: 1; position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lav); }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
h1:focus { outline: none; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ice); color: var(--void); padding: 8px 12px; border-radius: 999px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap.narrow { max-width: 600px; }
.stack { display: flex; flex-direction: column; gap: 44px; padding-block: 44px 80px; }
.stack > * { min-width: 0; }

/* ---------- type ---------- */
.display, h2, .dest-name, .globe-name, .chain dt, .planned strong, .brand span {
  font-family: var(--f-display); font-style: italic; font-weight: 800; font-stretch: 125%; letter-spacing: -.01em;
}
.display {
  font-size: clamp(1.9rem, 5.4vw, 3.7rem); line-height: 1.04;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #e3e7ff 45%, #a9b4ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px var(--glow));
  padding: .1em .16em .2em; margin: -.1em -.16em -.2em; /* room for the italic overhang and descenders inside the clip box */
}
body[data-realm="celestara"] .display { background-image: linear-gradient(180deg, #fff 0%, #ffe9b8 55%, #f3c261 100%); }
h2 { font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.2; color: #fff; text-shadow: 0 0 16px var(--glow); }
h3 { font: italic 800 1.05rem/1.3 var(--f-body); color: #fff; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.26rem); line-height: 1.5; max-width: 58ch; }
.eyebrow { font: normal 700 .74rem/1.4 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--lav); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fine { font-size: .9rem; color: var(--dim); max-width: 62ch; }
.head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.head.center { align-items: center; text-align: center; }
.block { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.block > p { max-width: 66ch; }
.addr { font-style: normal; font-weight: 600; user-select: all; overflow-wrap: anywhere; }

/* ---------- status tags ---------- */
.tag { font: normal 800 .64rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap; display: inline-block; background: rgba(2, 8, 60, .45); }
.t-live { color: var(--ok); }
.t-dev { color: var(--warn); }
.t-plan { color: var(--plan); border-style: dashed; }
.t-res { color: var(--res); border-style: dashed; }
.t-soon { color: var(--dim); }

/* ---------- controls: slanted primary, pill secondary ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 34px; margin-inline: 8px; background: none; border: 0; color: var(--btn-ink); font: italic 800 1.12rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-22deg); border-radius: 12px; background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); border: 1.5px solid #e6eaff; box-shadow: 0 0 20px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .5); transition: box-shadow .2s, filter .2s; }
.btn::after { content: "›"; font: normal 400 1.6rem/1 var(--f-body); margin-left: 4px; }
.btn:hover::before { box-shadow: 0 0 34px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .6); filter: brightness(1.12); }
.btn small { font: normal 800 .62rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.btn.ghost { margin-inline: 0; font-weight: 600; font-size: 1.02rem; }
.btn.ghost::before { transform: none; border-radius: 999px; background: rgba(3, 10, 80, .5); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(200, 210, 255, .35); }
.btn.ghost::after { content: none; }
.btn.ghost:hover::before { border-color: #fff; }
.link { font-weight: 700; text-underline-offset: 4px; }
.back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 46px; padding: 8px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--ice); font-weight: 700; text-decoration: none; }
.back:hover { border-color: #fff; }
.copy { font: normal 800 .64rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; background: transparent; color: var(--lav); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.copy:hover { border-color: #fff; color: #fff; }

/* glass surface shared by panels, rows, fields */
.dest a, .pv, .panel, .still, .field, .form-card {
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(215, 222, 255, .4), 0 0 24px rgba(30, 60, 255, .22);
}

/* ---------- top bar ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(2, 8, 66, .72); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body[data-realm="celestara"] .bar { background: var(--panel); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--void); }
.bar-in { max-width: 1240px; margin-inline: auto; padding: 8px var(--gutter-r) 8px var(--gutter-l); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; }
.brand span { font-size: 1.18rem; text-shadow: 0 0 12px var(--glow); }
.brand img { width: 34px; height: auto; }
.nav-primary, .nav-secondary { display: flex; gap: 2px; }
.nav-primary { margin-right: auto; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ice); text-decoration: none; font-weight: 700; font-size: .98rem; border-radius: 999px; border: 1px solid transparent; }
.nav-secondary a { color: var(--dim); font-weight: 600; }
.bar nav a:hover { color: #fff; border-color: var(--line); }
.bar nav a[aria-current="page"] { color: #fff; border-color: var(--ultra); box-shadow: 0 0 14px var(--glow), inset 0 1px 0 rgba(215, 222, 255, .4); }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 20px; background: transparent; color: var(--ice); border: 1px solid var(--line); border-radius: 999px; font: italic 700 .98rem/1 var(--f-body); cursor: pointer; }
.menu-panel { display: flex; flex-direction: column; gap: 6px; padding: 8px var(--gutter-r) 14px var(--gutter-l); border-top: 1px solid var(--line); max-height: calc(100vh - 62px); overflow-y: auto; }
.menu-panel a { min-height: 50px !important; border-color: var(--line) !important; padding: 0 20px !important; }
.menu-panel[hidden] { display: none; }
@media (max-width: 860px) {
  .nav-primary, .nav-secondary { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@media (min-width: 861px) { .menu-panel { display: none; } }

/* ---------- stage: fixed backdrop for standard pages ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
body:not([data-realm]) .sky-base, body[data-realm="qigana"] .sky-qigana, body[data-realm="celestara"] .sky-celestara { opacity: 1; }
.sky-layer i { position: absolute; display: block; }

.sky-base { background: radial-gradient(ellipse 90% 60% at 50% 108%, #1230ff 0%, #0a1cc4 30%, rgba(6, 16, 120, 0) 70%), linear-gradient(180deg, #01063a 0%, #031066 45%, #06168e 100%); }
.sky-base .grid { position: absolute; inset: 0 0 auto; width: 100%; height: 46%; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%); mask-image: linear-gradient(180deg, #000 20%, transparent 100%); }
.sky-base .ring { opacity: .45; left: 50%; top: 24%; width: max(128vw, 1050px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 2px solid rgba(60, 96, 255, .85); box-shadow: 0 0 34px rgba(40, 80, 255, .7), inset 0 0 60px rgba(20, 50, 255, .25); }
.sky-base .planet { left: 50%; top: 94%; width: max(190vw, 1500px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 0%, #1634ff 0%, #0a1cc4 22%, #06128e 55%); border-top: 3px solid #dfe6ff; box-shadow: 0 -8px 46px rgba(130, 160, 255, .95), 0 -2px 120px rgba(40, 80, 255, .9); }

.sky-qigana { background: linear-gradient(180deg, #05062a 0%, #130f5c 42%, #2c2196 78%, #4a3fc2 100%); }
.sky-qigana i { left: -20%; width: 140%; height: 46%; top: 2%; filter: blur(38px); mix-blend-mode: screen; transform-origin: 50% 100%; animation: aurora 16s ease-in-out infinite alternate; }
.sky-qigana i:nth-child(1) { background: repeating-linear-gradient(96deg, transparent 0 5%, rgba(64, 240, 214, .55) 8%, transparent 13%); clip-path: ellipse(50% 46% at 50% 60%); }
.sky-qigana i:nth-child(2) { top: 8%; background: repeating-linear-gradient(84deg, transparent 0 7%, rgba(170, 96, 255, .6) 11%, transparent 17%); clip-path: ellipse(46% 40% at 44% 58%); animation-duration: 22s; animation-direction: alternate-reverse; }
.sky-qigana i:nth-child(3) { top: 14%; height: 34%; background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(255, 110, 220, .34) 12%, transparent 16%); clip-path: ellipse(40% 38% at 58% 56%); animation-duration: 28s; }
@keyframes aurora { from { transform: translateX(-3%) skewX(-5deg) scaleY(.94); } to { transform: translateX(3%) skewX(5deg) scaleY(1.06); } }

.sky-celestara { background: linear-gradient(180deg, #c45a10 0%, #ee9320 26%, #f8b53c 55%, #fbd27c 82%, #fde6b6 100%); }
.sky-celestara i { border-radius: 50%; background: rgba(255, 226, 150, .55); filter: blur(22px); animation: drift 40s ease-in-out infinite alternate; }
.sky-celestara i:nth-child(1) { left: 6%; top: 16%; width: 46%; height: 9%; }
.sky-celestara i:nth-child(2) { left: 48%; top: 30%; width: 52%; height: 8%; animation-duration: 55s; animation-direction: alternate-reverse; }
.sky-celestara i:nth-child(3) { left: 14%; top: 50%; width: 60%; height: 10%; background: rgba(255, 240, 200, .5); animation-duration: 70s; }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }

/* film grain, as in the references */
.sky-grain, .hero-grain { position: absolute; inset: 0; opacity: .38; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .84 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-grain { opacity: .55; }

/* ---------- landing hero: the supplied reference scene, used as-is ---------- */
.hero { position: relative; display: flex; flex-direction: column; overflow: hidden; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0a1156 0%, #0a1156 40%, #92a0f4 40.1%, #a7b2fb 100%); }
.hero-top { position: relative; z-index: 2; max-width: 1280px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding-block: 40px 0; }
.hero-top .display { font-size: clamp(2.8rem, 8.4vw, 6.6rem); line-height: 1.12; margin: 0;
  background-image: linear-gradient(180deg, #f4f5ff 0%, #c9ceff 40%, #b3baff 100%);
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 22px rgba(120, 140, 255, .9)); }
.hero-top .lede { max-width: 50ch; font-size: clamp(1rem, 1.4vw, 1.14rem); color: #dfe3ff; }
.hero-art { display: block; position: relative; z-index: 1; margin-top: -70px; }
.hero-art img { width: 100%; height: clamp(380px, 50vw, 74vh); object-fit: cover; object-position: 50% 78%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px); mask-image: linear-gradient(180deg, transparent 0, #000 120px); }
.hero-ground { position: relative; z-index: 2; max-width: 1280px; margin-top: -118px; padding-bottom: 30px; }
.hero-grain { z-index: 3; opacity: .5; }

.dest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dest a { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; justify-content: center; min-height: 88px; padding: 12px 22px; border-radius: 30px; color: var(--ice); text-decoration: none; min-width: 0;
  background: rgba(5, 14, 100, .78); transition: border-color .2s, box-shadow .2s, transform .2s; }
.dest a:hover, .dest a:focus-visible { border-color: #fff; box-shadow: inset 0 1px 0 rgba(215, 222, 255, .5), 0 0 28px var(--glow); transform: translateY(-3px); }
.dest-name { font-size: 1.05rem; line-height: 1.2; color: #fff; }
.dest-what { font-size: .86rem; line-height: 1.3; color: var(--dim); }
.dest .tag { margin-top: 6px; }
@media (max-width: 760px) {
  .hero-top { padding-top: 28px; }
  .hero-art { margin-top: -30px; }
  .hero-art img { height: 300px; object-position: 62% 70%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70px); mask-image: linear-gradient(180deg, transparent 0, #000 70px); }
  .hero-ground { margin-top: -28px; }
  .dest { grid-template-columns: 1fr; }
  .dest a { min-height: 76px; border-radius: 999px; padding-inline: 26px; }
}


/* desktop: destinations are set straight onto the ground, no boxes */
@media (min-width: 761px) {
  .hero-top { padding-top: 52px; }
  .hero-ground { margin-top: -132px; padding-bottom: 40px; }
  .dest { gap: 0; }
  .dest a { background: none; border: 0; border-left: 1px solid rgba(10, 22, 153, .32); border-radius: 0; box-shadow: none; min-height: 0; padding: 4px 16px 4px 26px; gap: 4px; }
  .dest a:first-child { border-left-color: transparent; }
  .dest a:hover, .dest a:focus-visible { box-shadow: none; transform: none; border-color: rgba(10, 22, 153, .32); }
  .dest a:first-child:hover, .dest a:first-child:focus-visible { border-left-color: transparent; }
  .dest-name { font-size: clamp(1.25rem, 2vw, 1.7rem); color: #0a1699; transition: color .2s, text-shadow .2s; }
  .dest-name::after { content: "›"; font: normal 400 1em/1 var(--f-body); display: inline-block; margin-left: .3em; transition: transform .2s; }
  .dest a:hover .dest-name, .dest a:focus-visible .dest-name { color: #fff; text-shadow: 0 0 18px #1a2cff, 0 0 4px #1a2cff; }
  .dest a:hover .dest-name::after { transform: translateX(6px); }
  .dest-what { color: #1626a8; font-weight: 600; font-size: .92rem; }
}
}

/* ---------- shared blocks ---------- */
.chain { display: grid; width: 100%; border-left: 1px solid var(--line); }
.chain > div { padding: 12px 0 12px 22px; position: relative; }
.chain > div::before { content: ""; position: absolute; left: -6px; top: 20px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--ultra)); box-shadow: 0 0 12px var(--glow); }
.chain dt { font-size: 1.06rem; line-height: 1.35; color: #fff; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chain dd { max-width: 62ch; margin-top: 4px; }

.previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; width: 100%; }
.pv { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; border-radius: 30px; color: var(--ice); text-decoration: none; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.pv:hover { border-color: #fff; box-shadow: inset 0 1px 0 rgba(215, 222, 255, .5), 0 0 30px var(--glow); }
.pv-art { height: 150px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; background: radial-gradient(ellipse at 50% 110%, rgba(140, 165, 255, .75), rgba(40, 70, 255, .3) 45%, transparent 72%); overflow: hidden; }
.pv-logo img { height: 110px; width: auto; }
.pv-globes img { width: 48%; }
.pv-covers img { width: 30%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.pv p { font-size: .96rem; color: var(--dim); flex: 1; }
.go { font-weight: 800; color: #fff; }
.go::after { content: " ›"; font-style: normal; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 900px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 28px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps strong { font-family: var(--f-display); font-style: italic; font-weight: 800; font-stretch: 125%; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.1; color: #fff; text-shadow: 0 0 16px var(--glow); }
.steps span { font-size: 1.05rem; color: var(--ice); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 20px 0; gap: 6px; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps span { max-width: none; }
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; width: 100%; max-width: 900px; }
.pair .block { gap: 10px; }
.pair p:not(.eyebrow) { font-size: 1.05rem; max-width: 34ch; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
/* running text is upright for readability; headings, buttons and labels stay italic */
.lede, .block > p:not(.eyebrow), .prose p, .fine, .steps span, .row-main span, .chain dd, .pv p, .feature-body p, .check span, .mock, .tracks span, .credits dd, .plain li, .pair p:not(.eyebrow) { font-style: normal; }
.fine { color: var(--ice); opacity: .88; }

.rows { width: 100%; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; min-height: 68px; padding: 14px 4px; color: var(--ice); text-decoration: none; border-bottom: 1px solid var(--line); transition: padding .2s; }
a.row:hover { padding-left: 12px; }
a.row:hover strong { text-shadow: 0 0 14px var(--glow); }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main strong { color: #fff; font-weight: 800; font-size: 1.1rem; }
.row-main span { font-size: .96rem; color: var(--dim); }
.ext { font-weight: 800; font-size: .92rem; color: #fff; white-space: nowrap; }

/* ---------- realm runners ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; align-self: center; padding: 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; color: var(--ice); font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.subnav a:hover { border-color: var(--line); color: #fff; }
.subnav a[aria-current="page"] { background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); color: #fff; border-color: #e6eaff; box-shadow: 0 0 16px var(--glow); }
.menu-panel a.sub { padding-left: 44px !important; min-height: 44px !important; color: var(--dim); }

.feature { display: block; width: 100%; padding: 26px 4px; color: var(--ice); text-decoration: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: padding .2s; }
.feature:hover { padding-left: 12px; }
.feature-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.globes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; align-items: end; }
.globe { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 12px 22px; border-radius: 34px; color: var(--ice); text-decoration: none; border: 1px solid transparent; }
.globe img { transition: transform .35s ease; filter: drop-shadow(0 18px 34px rgba(60, 90, 255, .75)); will-change: transform; }
.globe:hover img, .globe:focus-visible img { transform: translateY(-6px) scale(1.03); }
.globe:hover, .globe:focus-visible { border-color: var(--line); }
.globe-name { font-size: clamp(1.25rem, 2.8vw, 1.8rem); line-height: 1.15; color: #fff; text-shadow: 0 0 16px var(--glow); }
@media (max-width: 600px) { .globes { grid-template-columns: 1fr; gap: 8px; } .globe img { max-width: 340px; } }
body.entering .globe:not(:hover):not(:focus) { opacity: .25; transition: opacity .4s; }

.realm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; width: 100%; }
.realm-globe { filter: drop-shadow(0 22px 36px rgba(0, 0, 0, .45)); }
.panel { border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.still { width: 100%; max-width: 760px; border-radius: 26px; overflow: hidden; }
.still figcaption { font: normal 700 .7rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--lav); padding: 12px 18px; }
@media (max-width: 760px) { .realm-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- about ---------- */
.about-line { font-family: var(--f-display); font-style: italic; font-weight: 800; font-stretch: 125%; font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.2; color: #fff; text-shadow: 0 0 16px var(--glow); }
.prose { gap: 20px; }
.prose > p { font-size: 1.1rem; line-height: 1.65; max-width: 68ch; }
.realm .lede { font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* ---------- archive / sonics / about / careers / community ---------- */
.frescoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; width: 100%; }
.frescoes img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 18px; }

.tracks { width: 100%; max-width: 720px; border-top: 1px solid var(--line); counter-reset: t; }
.tracks li { counter-increment: t; display: grid; grid-template-columns: 2.4em 1fr auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tracks li::before { content: counter(t, decimal-leading-zero); grid-row: 1 / span 2; font: normal 700 .84rem/1.9 var(--f-body); color: var(--dim); font-variant-numeric: tabular-nums; }
.tracks strong { color: #fff; font-weight: 800; }
.tracks time { grid-column: 3; grid-row: 1 / span 2; align-self: center; font: normal 600 .9rem/1 var(--f-body); color: var(--dim); font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.tracks span { grid-column: 2; font-size: .92rem; color: var(--dim); }

.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; width: 100%; }
.spot { display: flex; flex-direction: column; gap: 4px; color: var(--ice); text-decoration: none; min-width: 0; }
.spot img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 6px; }
.spot strong { color: #fff; font-weight: 800; }
.spot span { font-size: .9rem; color: var(--dim); }
a.spot:hover img { border-color: #fff; box-shadow: 0 0 22px var(--glow); }

.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; width: 100%; }
.credits > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.credits dt { color: #fff; font-weight: 800; }
.credits dd { font-size: .88rem; color: var(--dim); }

.award { flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
.award img { width: 120px; }
.award > div { display: flex; flex-direction: column; gap: 6px; }
.contacts { display: grid; gap: 12px; }
.contacts > div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; }
.contacts dt { font: normal 700 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.contacts dd { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; width: 100%; }
.roles > div { display: flex; flex-direction: column; }
.roles h3 { font: normal 700 .74rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--lav); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.roles a { display: flex; align-items: center; min-height: 52px; color: var(--ice); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); transition: padding .2s; }
.roles a:hover { color: #fff; padding-left: 8px; }
.plain { list-style: disc; padding-left: 1.2em; display: grid; gap: 4px; }
.plain li::marker { color: var(--lav); }
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 24px; width: 100%; }
.channels a { display: flex; align-items: center; min-height: 48px; color: var(--ice); text-decoration: none; border-bottom: 1px solid var(--line); }
.channels a:hover { color: #fff; }
.channels a::after { content: "↗"; margin-left: auto; color: var(--dim); font-style: normal; }

/* ---------- waitlist (mock), after the supplied sign-up screen ---------- */
.auth { align-items: center; text-align: center; gap: 28px; padding-block: 56px 96px; }
.auth .head { align-items: center; gap: 10px; }
.auth .display { font-size: clamp(2.1rem, 9vw, 3.6rem); }
.auth-sub { font: italic 600 1.3rem/1.2 var(--f-body); color: var(--ice); }
.form { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.field { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 26px; border-radius: 999px; }
.field:focus-within { border-color: #fff; box-shadow: inset 0 1px 0 rgba(215, 222, 255, .5), 0 0 26px var(--glow); }
.field svg { width: 24px; height: 24px; flex: none; stroke: var(--ice); fill: none; stroke-width: 1.6; }
.field input { flex: 1; min-width: 0; min-height: 60px; background: transparent; border: 0; outline: 0; color: #fff; font: italic 600 1.12rem var(--f-body); }
.field input::placeholder { color: var(--lav); opacity: .9; }
.field.is-invalid { border-color: var(--err); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; text-align: left; min-height: 44px; cursor: pointer; font-size: .96rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cobalt); }
.form .btn { min-width: min(100%, 320px); justify-content: center; }
.form .btn.ghost { min-width: min(100%, 300px); }
.form-msg { min-height: 1.6em; font-size: .98rem; }
.form-msg.is-error { color: var(--err); }
.form-msg.is-ok { color: var(--ok); font-weight: 700; }
.btn:disabled { opacity: .6; cursor: progress; }
.form-msg.is-mock { color: var(--mock-ink); background: var(--mock-bg); border: 1px dashed var(--mock-line); border-radius: 18px; padding: 12px 16px; }
.mock { color: var(--mock-ink); font-size: .98rem; max-width: 34ch; }
.mock strong { display: block; font-weight: 800; }

/* ---------- review notes ---------- */
.note { align-self: stretch; max-width: none !important; font: normal 500 .86rem/1.5 var(--f-body); color: var(--mock-ink); border: 1px dashed var(--mock-line); border-radius: 18px; background: var(--mock-bg); padding: 12px 16px; text-align: left; }
.note::before { content: "Review note · "; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
body.no-notes .note { display: none; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); background: rgba(2, 8, 66, .72); }
body[data-realm="celestara"] .foot { background: var(--panel); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding-block: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-right: auto; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ice); text-decoration: none; font-weight: 700; }
.foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-contact, .foot-copy { font-size: .9rem; color: var(--dim); }
.draft { background: #2e2200; color: var(--mock-ink); border-top: 1px dashed var(--mock-line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.draft-in { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-block: 8px; font: normal 800 .7rem/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.draft button { min-height: 36px; padding: 0 16px; background: transparent; color: inherit; border: 1px solid var(--mock-line); border-radius: 999px; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- home story ---------- */
.story { gap: 14px; padding-top: 8px; }
.story > p { font-size: 1.12rem; line-height: 1.6; max-width: 62ch; }

/* ---------- the Archive: its own ancient look, taken from the frescoes ----------
   aged plaster ground, lapis and gold, classical upright lettering, square frames */
body[data-realm="archive"] {
  --void: #d8c5a2; --navy: #cdb891;
  --cobalt: #1f3a8a; --ultra: #a8842f;
  --lav: #1f3a8a; --ice: #2c2317; --dim: #5a4c38;
  --panel: rgba(240, 228, 204, .78); --line: rgba(140, 104, 38, .55);
  --glow: rgba(168, 132, 47, .0);
  --btn-top: #2b4aa8; --btn-bot: #182c74;
  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-body: "EB Garamond", Georgia, "Times New Roman", serif;
  color-scheme: light;
  font-style: normal; font-size: 1.14rem;
}
body[data-realm="archive"]::before { background: #d8c5a2; }
.sky-archive {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 247, 226, .85), transparent 70%),
    radial-gradient(ellipse 50% 40% at 8% 70%, rgba(120, 92, 52, .28), transparent 70%),
    radial-gradient(ellipse 45% 40% at 96% 30%, rgba(120, 92, 52, .22), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .9 -.28'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #e8d9bb 0%, #d9c6a3 55%, #c8b188 100%);
}
body[data-realm="archive"] .sky-archive { opacity: 1; }
body[data-realm="archive"] .sky-grain { opacity: .12; mix-blend-mode: multiply; }

body[data-realm="archive"] .bar, body[data-realm="archive"] .foot { background: rgba(232, 218, 190, .92); }
body[data-realm="archive"] .brand, body[data-realm="archive"] .bar nav a, body[data-realm="archive"] .menu-btn,
body[data-realm="archive"] .foot nav a { color: var(--ice); font-style: normal; }
body[data-realm="archive"] .brand span { font-style: normal; font-weight: 700; font-stretch: normal; letter-spacing: .14em; text-transform: uppercase; text-shadow: none; }
body[data-realm="archive"] .bar nav a { font-weight: 500; font-size: 1.08rem; border-radius: 2px; }
body[data-realm="archive"] .nav-secondary a { color: var(--dim); }
body[data-realm="archive"] .bar nav a:hover { color: var(--cobalt); }
body[data-realm="archive"] .bar nav a[aria-current="page"] { color: var(--cobalt); border-color: var(--ultra); box-shadow: none; }
body[data-realm="archive"] .menu-btn { border-radius: 2px; }

body[data-realm="archive"] .display {
  font-style: normal; font-weight: 600; font-stretch: normal; text-transform: uppercase; letter-spacing: .22em;
  font-size: clamp(2.4rem, 7vw, 4.6rem); padding: .05em 0 .05em .22em; margin: 0;
  background-image: linear-gradient(180deg, #2f4fb0 0%, #1f3a8a 55%, #14245c 100%);
  filter: drop-shadow(0 1px 0 rgba(255, 244, 214, .7));
}
body[data-realm="archive"] .eyebrow { font-family: var(--f-display); font-weight: 700; font-size: .9rem; letter-spacing: .26em; color: #8a6a22; }
body[data-realm="archive"] .lede { font-style: normal; font-size: clamp(1.2rem, 1.9vw, 1.42rem); line-height: 1.55; max-width: 56ch; color: var(--ice); }
.orn { width: 240px; height: 40px; fill: none; stroke: #a8842f; stroke-width: 1.2; }
.orn .orn-disc { fill: #1f3a8a; stroke: #a8842f; stroke-width: 1.6; }
.orn .orn-star { fill: #e6c877; stroke: none; }
.orn .orn-dot { fill: #a8842f; stroke: none; }

body[data-realm="archive"] .subnav { border-radius: 2px; background: rgba(240, 228, 204, .8); box-shadow: inset 0 0 0 3px rgba(240, 228, 204, .8), inset 0 0 0 4px rgba(140, 104, 38, .45); padding: 8px; }
body[data-realm="archive"] .subnav a { border-radius: 1px; font-weight: 600; font-size: 1.08rem; color: var(--ice); }
body[data-realm="archive"] .subnav a:hover { color: var(--cobalt); border-color: var(--line); }
body[data-realm="archive"] .subnav a[aria-current="page"] { background: #1f3a8a; color: #f6ecd2; border-color: #a8842f; box-shadow: none; }

body[data-realm="archive"] .btn.ghost { color: var(--cobalt); font: 600 1.1rem/1.2 var(--f-body); letter-spacing: .02em; }
body[data-realm="archive"] .btn.ghost::before { border-radius: 2px; background: rgba(246, 236, 210, .75); border: 1px solid #a8842f; box-shadow: inset 0 0 0 3px rgba(246, 236, 210, .75), inset 0 0 0 4px rgba(140, 104, 38, .45); }
body[data-realm="archive"] .btn.ghost:hover::before { border-color: #1f3a8a; }

body[data-realm="archive"] .frescoes { grid-template-columns: 1fr; gap: 34px; padding: 9px; max-width: 980px; margin-inline: auto; }
body[data-realm="archive"] .frescoes img { border: 0; border-radius: 1px; box-shadow: 0 0 0 1px #8a6a22, 0 0 0 7px #eadbb9, 0 0 0 8px #a8842f, 0 0 0 9px #6f5420, 0 14px 26px rgba(60, 40, 12, .38); }
body[data-realm="archive"] .frescoes img:first-child { grid-column: 1 / -1; }
@media (max-width: 700px) { body[data-realm="archive"] .frescoes { grid-template-columns: 1fr; gap: 28px; } }

body[data-realm="archive"] .foot-contact, body[data-realm="archive"] .foot-copy { color: var(--dim); font-style: normal; }
body[data-realm="archive"] :focus-visible { outline-color: #1f3a8a; }
body[data-realm="archive"] .menu-panel a { color: var(--ice); }

/* ---------- Qonvergence Worlds page, in the site's own look ---------- */
.lab { width: 100%; margin: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 44px rgba(60, 90, 255, .5), inset 0 1px 0 rgba(215, 222, 255, .4); }
.lab img { width: 100%; height: auto; display: block; }
.deploy { font-style: normal; font-size: 1rem; line-height: 1.55; max-width: 60ch; padding: 2px 0 2px 18px; border-left: 2px solid var(--ultra); color: var(--ice); }
.deploy strong { font-weight: 800; color: #fff; }
.gateway { width: 100%; max-width: 760px; margin-top: 8px; padding: 4px 0 4px 22px; border-left: 2px solid var(--ultra); display: flex; flex-direction: column; gap: 8px; }
.gateway p { font-style: normal; max-width: 62ch; }
.steps.steps { max-width: none; }

.w-arch { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); align-items: start; width: 100%; margin-top: 8px; }
.w-pillar, .w-gate-box { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); min-width: 0; }
.w-pillar.p1 { grid-column: 1; } .w-arrow.a1 { grid-column: 2; } .w-pillar.p2 { grid-column: 3; } .w-arrow.a2 { grid-column: 4; } .w-pillar.p3 { grid-column: 5; }
.w-pillar, .w-arrow { grid-row: 1; }
.w-k { font: normal 700 .68rem/1.3 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--lav); }
.w-pillar strong, .w-gate-box strong { font-family: var(--f-display); font-style: italic; font-weight: 800; font-stretch: 125%; font-size: 1.08rem; line-height: 1.2; color: #fff; }
.w-pillar span:last-child, .w-gate-box span:last-child { font-style: normal; color: var(--dim); font-size: .94rem; line-height: 1.5; }
.w-arrow { align-self: center; height: 1px; margin-inline: 8px; background: var(--ultra); position: relative; }
.w-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--ultra); border-block: 4.500px solid transparent; }
.w-gate { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; align-items: center; }
.w-down { width: 1px; height: 30px; background: #fff; position: relative; }
.w-down::after { content: ""; position: absolute; left: -4px; bottom: -1px; border-top: 7px solid #fff; border-inline: 4.500px solid transparent; }
.w-gate-box { width: 100%; border-color: #e6eaff; background: linear-gradient(180deg, rgba(100, 123, 255, .5), rgba(44, 68, 226, .5)); box-shadow: 0 0 26px var(--glow); }
.w-gate-box .w-k, .w-gate-box span:last-child { color: var(--ice); }
.w-llm { padding: 10px 28px; border: 1px dashed var(--line); border-radius: 999px; font: normal 800 .84rem/1 var(--f-body); letter-spacing: .16em; color: var(--ice); }
@media (max-width: 820px) {
  .w-arch { grid-template-columns: 1fr; }
  .w-pillar.p1, .w-pillar.p2, .w-pillar.p3, .w-arrow.a1, .w-arrow.a2, .w-gate { grid-column: 1; grid-row: auto; }
  .w-gate { order: 9; margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); }
  .w-gate > .w-down:first-child { display: none; }
  .w-arrow { width: 1px; height: 28px; margin: 0 auto; }
  .w-arrow::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 0; border-top: 7px solid var(--ultra); border-inline: 4.500px solid transparent; }
}

.ext.soon { color: var(--dim); font-weight: 700; }
