@font-face {
  font-family: "Instrument Serif";
  src: url("assets/InstrumentSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #05070d;
  --panel: rgba(12, 18, 34, 0.78);
  --line: rgba(190, 218, 255, 0.18);
  --text: #f4f7ff;
  --muted: #9ba9c3;
  --blue: #65a7ff;
  --violet: #a98cff;
  --ice: #dcecff;
  --max: 1240px;
  --radius: 24px;
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(69, 103, 255, 0.22), transparent 38%),
    radial-gradient(circle at 0 40%, rgba(157, 116, 255, 0.12), transparent 28%),
    var(--ink);
  color: var(--text);
  font: 400 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
main { transition: opacity .24s ease, transform .28s cubic-bezier(.22,.76,.28,1); will-change: opacity, transform; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .16;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--pointer-x) var(--pointer-y), rgba(118, 160, 255, .085), transparent 68%);
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, .72);
  backdrop-filter: blur(20px);
}
.nav { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; font-family: "Instrument Serif", Georgia, serif; font-size: 1.25rem; font-weight: 400; letter-spacing: -.02em; }
.brand-mark {
  display: block;
  width: 37px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(93, 114, 255, .48));
}
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-family: "Instrument Serif", Georgia, serif; font-size: 1.12rem; font-weight: 400; letter-spacing: .01em; }
.nav-links a { padding: 24px 0 21px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: white; border-color: var(--blue); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: white; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: white;
  color: #080b14;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.secondary { background: rgba(255,255,255,.05); color: white; }
.button.secondary:hover { border-color: rgba(128, 176, 255, .65); background: rgba(97, 140, 255, .12); }
.button[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.hero { min-height: calc(100svh - 72px); display: grid; align-items: end; position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; background: #05070d; }
.hero-media::after { content: ""; position: absolute; z-index: 3; inset: 0; background: linear-gradient(90deg, rgba(3,5,10,.98) 0%, rgba(3,5,10,.79) 34%, rgba(3,5,10,.12) 74%), linear-gradient(0deg, rgba(3,5,10,.95) 0%, transparent 55%); pointer-events: none; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.045); transition: opacity 1.25s ease, transform 7s cubic-bezier(.2,.7,.2,1); }
.hero-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.9) contrast(1.05); }
.hero-slide figcaption { position: absolute; clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.hero-content { position: relative; z-index: 4; padding-block: 92px 84px; }
.tile-word { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); width: min(780px, 79vw); margin: 0 0 24px; font: 900 clamp(2.8rem, 7.4vw, 7.2rem)/1 Arial Black, Impact, ui-sans-serif, sans-serif; letter-spacing: -.055em; text-shadow: none; }
.tile-word span { display: grid; place-items: center; aspect-ratio: .8; overflow: hidden; border-right: 8px solid rgba(2,4,9,.78); background: rgba(7,10,16,.89); color: #f7f7f5; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transform-origin: 50% 0; }
.tile-word span:nth-child(even) { background: rgba(11,15,24,.88); }
.tile-word.is-assembling span { animation: letter-roll-in .62s cubic-bezier(.2,.85,.24,1) both; }
.tile-word.is-assembling span:nth-child(2) { animation-delay: .1s; }
.tile-word.is-assembling span:nth-child(3) { animation-delay: .2s; }
.tile-word.is-assembling span:nth-child(4) { animation-delay: .3s; }
.tile-word.is-assembling span:nth-child(5) { animation-delay: .4s; }
.tile-word.is-assembling span:nth-child(6) { animation-delay: .5s; }
.tile-word.is-assembling span:nth-child(7) { animation-delay: .6s; }
@keyframes letter-roll-in {
  0% { opacity: 0; transform: translateY(-105%) rotateX(70deg); filter: blur(7px); }
  65% { opacity: 1; transform: translateY(7%) rotateX(-7deg); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}
.hero-campaign .lede { max-width: 690px; color: #f1f4fb; font-size: clamp(1.08rem, 2vw, 1.34rem); text-shadow: 0 2px 18px #000; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { margin: 18px 0 20px; font-size: clamp(4.7rem, 13vw, 10.4rem); line-height: .78; letter-spacing: -.065em; text-shadow: 0 20px 70px rgba(91, 131, 255, .22); }
h2 { font-size: clamp(2.6rem, 5.7vw, 5.4rem); line-height: .92; letter-spacing: -.045em; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 760; }
.lede { max-width: 640px; color: #d4dced; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.ticker { min-height: 52px; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); color: var(--ice); background: rgba(49,75,146,.12); }
.ticker-terminal { display: flex; align-items: center; min-height: 52px; font: 700 clamp(.78rem, 1.4vw, .9rem)/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; }
.ticker-prompt { flex: 0 0 auto; margin-right: 14px; color: var(--blue); text-shadow: 0 0 16px rgba(101,167,255,.75); }
.typing-caret { width: 8px; height: 1.05em; margin-left: 4px; background: currentColor; animation: caret-blink .7s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

.section { padding-block: clamp(76px, 10vw, 140px); }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; margin-bottom: 48px; align-items: start; }
.section-head p { color: var(--muted); max-width: 620px; }
.face-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.face-sheet { position: relative; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: #777b84; box-shadow: 0 38px 120px rgba(0,0,0,.38); }
.face-sheet::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -80px 120px rgba(20,35,70,.11); pointer-events: none; }
.face-sheet img { width: 100%; }
.face-copy h2 { margin-bottom: 28px; }
.face-copy p { max-width: 560px; color: var(--muted); font-size: 1.08rem; }
.face-copy .button { margin-top: 12px; }

.editorial-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; padding-bottom: 28px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.editorial-head h2 { margin: 0; }
.canon-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(36px, 6vw, 86px); align-items: start; }
.prompt-stack { display: grid; gap: 18px; }
.prompt-card { border: 1px solid var(--line); background: rgba(7, 11, 20, .78); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.prompt-card header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 .8rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.prompt-card p { margin: 0; padding: 20px; color: #d9e2f3; font: 400 .94rem/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.canon-copy { min-width: 72px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(177, 204, 255, .3); background: transparent; color: var(--ice); font: 700 .78rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.canon-copy:hover { border-color: var(--blue); background: rgba(101,167,255,.1); }
.canon-lead { margin-bottom: 22px; color: white; font: 400 clamp(2rem, 4vw, 3.8rem)/1.02 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; }
.canon-copy-block > p:not(.canon-lead) { color: var(--muted); font-size: 1.05rem; }
.constant-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.constant-line span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: #c8d8f1; font: 700 .75rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }

.looks-section { overflow: hidden; }
.looks-section .editorial-head { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.looks-rail { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-color: rgba(116, 161, 255, .52) rgba(255,255,255,.05); padding: 0 max(20px, calc((100vw - var(--max)) / 2)) 28px; cursor: grab; }
.looks-rail:active { cursor: grabbing; }
.look-card { flex: 0 0 clamp(280px, 24vw, 360px); margin: 0; scroll-snap-align: start; }
.look-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); background: #0a0e18; filter: saturate(.88); transition: transform .55s ease, filter .55s ease; }
.look-card:hover img { transform: translateY(-6px); filter: saturate(1.03); }
.look-card figcaption { display: grid; gap: 8px; padding-top: 14px; }
.look-card figcaption span { color: #aebbd0; font: 600 .82rem/1.4 Inter, Arial, sans-serif; letter-spacing: .025em; text-transform: none; }
.look-card figcaption strong { font: 400 1.65rem/1.05 "Instrument Serif", Georgia, serif; }

.manner-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(36px, 7vw, 100px); }
.manner-lead { color: white; font-size: clamp(1.55rem, 2.75vw, 2.55rem); line-height: 1.38; letter-spacing: -.025em; }
.manner-body { color: var(--muted); font-size: 1.05rem; }
.never-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.never-grid li { position: relative; padding: 17px 0 17px 26px; border-top: 1px solid var(--line); color: #c3ccdd; }
.never-grid li::before { content: "×"; position: absolute; left: 0; color: #79aaff; font-weight: 800; }

.who-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: clamp(38px, 7vw, 96px); align-items: start; }
.who-sheet { margin: 0; }
.who-sheet img { width: 100%; border: 1px solid var(--line); background: #969ba5; box-shadow: 0 34px 100px rgba(0,0,0,.32); }
.who-sheet figcaption, .constant-main figcaption, .distance-grid figcaption { padding-top: 12px; color: var(--muted); font-size: .82rem; letter-spacing: .035em; }
.who-lead, .constant-intro { margin: 0 0 24px; color: white; font: 400 clamp(1.7rem, 3vw, 2.9rem)/1.15 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; }
.who-copy > p:not(.who-lead) { color: var(--muted); font-size: 1.05rem; }
.who-copy .button { margin-top: 24px; }
.who-facts { margin: 30px 0 0; }
.who-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.who-facts dt { color: white; font-weight: 700; }
.who-facts dd { margin: 0; color: var(--muted); }

.wiki-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wiki-card { display: flex; min-height: 240px; flex-direction: column; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7,11,20,.35); transition: background .25s ease, transform .25s ease; }
.wiki-card:hover { background: rgba(94,139,255,.09); transform: translateY(-3px); }
.wiki-card h3 { margin: 0 0 14px; font: 400 2rem/1.05 "Instrument Serif", Georgia, serif; }
.wiki-card p { margin: 0; color: var(--muted); }
.wiki-card span { margin-top: auto; padding-top: 28px; color: var(--blue); font-weight: 700; }

.character-hero .lede { margin-bottom: 28px; }
.character-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.character-jump a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: #c7d4e9; }
.character-jump a:hover { border-color: var(--blue); color: white; background: rgba(101,167,255,.08); }
.constants-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); gap: clamp(38px, 6vw, 82px); align-items: start; }
.constant-main { margin: 0; position: sticky; top: 110px; }
.constant-main img { width: 100%; border: 1px solid var(--line); background: #9ba0aa; }
.constant-list { margin: 28px 0 0; }
.constant-list div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.constant-list dt { color: var(--ice); font-weight: 700; }
.constant-list dd { margin: 0; color: #c2cbdc; }
.distance-block { padding-top: 112px; }
.distance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.distance-grid figure { margin: 0; }
.distance-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: #9ba0aa; }
.canon-copy-block > p:not(.canon-lead) + p { margin-top: 18px; }
.wardrobe-section { padding-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018)); overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06); }
.card::after, .contract-box::after, .social-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(145, 181, 255, .23), transparent 62%);
  transition: opacity .25s ease;
}
.card:hover::after, .contract-box:hover::after, .social-card:hover::after { opacity: 1; }
.card-body { padding: 25px; }
.card p { color: var(--muted); margin-bottom: 0; }
.stat { display: block; font-size: 2.4rem; line-height: 1; letter-spacing: -.05em; font-weight: 800; color: var(--ice); margin-bottom: 14px; }

.story-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.story-card { min-height: 520px; position: relative; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 32px 100px rgba(0,0,0,.3); }
.story-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.story-card:hover img { transform: scale(1.025); }
.story-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,13,.94), transparent 68%); }
.story-copy { position: absolute; z-index: 2; inset: auto 0 0; padding: 30px; }
.story-copy p { color: #c8d2e5; max-width: 500px; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row p { color: var(--muted); }

.page-hero { padding: 108px 0 62px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(3.8rem, 9vw, 7rem); }
.page-hero .lede { max-width: 760px; }
.contract-box { position: relative; overflow: hidden; padding: clamp(25px, 5vw, 52px); border: 1px solid rgba(120,165,255,.35); border-radius: 28px; background: linear-gradient(135deg, rgba(83,112,255,.2), rgba(162,121,255,.08)); box-shadow: 0 32px 90px rgba(21, 42, 102, .28), inset 0 1px 0 rgba(255,255,255,.12); }
.contract-value { display: block; overflow-wrap: anywhere; margin: 18px 0 24px; color: var(--ice); font: 700 clamp(1.1rem, 3vw, 2rem)/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ca-checkpoint {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 4.5vw, 52px);
  border: 1px solid rgba(157, 184, 255, .24);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(99, 155, 255, .11), transparent 48%),
    linear-gradient(145deg, rgba(12, 20, 38, .98), rgba(5, 9, 19, .98));
  box-shadow: 0 30px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.07);
}
.ca-checkpoint::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(128, 177, 255, .72), transparent);
  box-shadow: 0 0 28px rgba(93, 150, 255, .5);
  pointer-events: none;
}
.ca-title { margin: 18px 0 8px; font: 850 clamp(2.25rem, 5vw, 4.8rem)/.9 Arial Black, Inter, ui-sans-serif, sans-serif; letter-spacing: -.065em; }
.contract-terminal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label label" "value copy";
  align-items: center;
  gap: 10px 20px;
  width: 100%;
  margin-top: 26px;
  padding: 20px 20px 20px clamp(18px, 3vw, 28px);
  border: 1px solid rgba(156, 190, 255, .34);
  border-radius: 16px;
  background: rgba(3, 7, 16, .72);
  color: white;
  text-align: left;
  box-shadow: inset 0 0 40px rgba(83, 123, 255, .08), 0 18px 50px rgba(0,0,0,.25);
}
.contract-terminal:hover { border-color: rgba(187, 211, 255, .7); }
.contract-terminal-label { grid-area: label; color: var(--muted); font: 700 .8rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; }
.contract-terminal-value { grid-area: value; min-width: 0; overflow-wrap: anywhere; font: 700 clamp(1rem, 2.4vw, 1.55rem)/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }
.contract-terminal-copy { grid-area: copy; display: inline-grid; place-items: center; min-width: 82px; min-height: 42px; padding-inline: 16px; border: 1px solid rgba(112, 170, 255, .48); border-radius: 999px; background: rgba(76, 126, 255, .12); color: #9ec5ff; font: 800 .82rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.launch-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.launch-link {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(190, 216, 255, .2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.022));
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  box-shadow: 0 18px 50px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.launch-link:hover { transform: translateY(-4px); border-color: rgba(151, 190, 255, .62); background: linear-gradient(145deg, rgba(105,144,255,.16), rgba(156,111,255,.06)); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffb45e; box-shadow: 0 0 16px #ffb45e; }
.status-live::before { background: #70a9ff; box-shadow: 0 0 16px #70a9ff; }

.market-section { padding-top: 0; }
.market-terminal { overflow: hidden; border: 1px solid rgba(150, 183, 255, .25); border-radius: 24px; background: #0a0f1b; box-shadow: 0 36px 100px rgba(0,0,0,.42); }
.market-topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(69,101,182,.14), transparent); }
.market-pair { display: flex; align-items: center; gap: 12px; }
.market-pair img { width: 42px; height: 42px; object-fit: contain; }
.market-pair div { display: grid; }
.market-pair strong { font: 800 1rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.market-pair span { color: var(--muted); font: 700 .72rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.market-open { display: inline-flex; min-height: 40px; align-items: center; padding: 0 15px; border: 1px solid rgba(145,182,255,.35); border-radius: 999px; color: var(--ice); font-weight: 750; }
.market-open:hover { background: rgba(101,167,255,.12); border-color: var(--blue); }
.market-toolbar { display: flex; align-items: center; gap: 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0d1321; overflow-x: auto; }
.market-control-group { display: flex; align-items: center; gap: 3px; padding-right: 16px; border-right: 1px solid var(--line); }
.market-control-group:last-child { border-right: 0; }
.market-control-group button { min-width: 40px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 700; }
.market-control-group button:hover, .market-control-group button.is-active { background: rgba(91, 139, 255, .15); color: #a9c9ff; }
.dex-frame-wrap { height: clamp(500px, 56vw, 680px); background: #0b101b; }
.dex-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.market-address { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-top: 1px solid var(--line); background: #0d1321; }
.market-address code { min-width: 0; overflow-wrap: anywhere; color: #aebbd1; font-size: .84rem; }
.market-address button { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 1px solid rgba(138,177,255,.4); border-radius: 999px; background: rgba(91,139,255,.1); color: var(--ice); font-weight: 780; }

.gallery { columns: 2 380px; column-gap: 18px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #0b1020; }
.gallery img { width: 100%; }
.gallery figcaption { padding: 16px 18px; color: var(--muted); font-size: .9rem; }

.gallery-hero { padding-bottom: 46px; }
.gallery-hero .lede { max-width: 880px; }
.look-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 14px; align-items: stretch; }
.catalog-card { min-width: 0; display: flex; flex-direction: column; }
.catalog-card > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); background: #070b13; filter: saturate(.94) contrast(1.03); transition: filter .35s ease, transform .35s ease; }
.catalog-card:hover > img { filter: saturate(1.04) contrast(1.04); transform: translateY(-3px); }
.catalog-meta { min-height: 108px; padding: 13px 0 15px; }
.catalog-meta span { display: block; min-height: 2.7em; color: #aebbd0; font: 760 .76rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.catalog-meta h2 { margin: 8px 0 0; font: 400 clamp(1.55rem, 2.1vw, 2rem)/1 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; }
.wardrobe-box { margin-top: auto; border: 1px solid var(--line); background: rgba(255,255,255,.022); }
.wardrobe-box header { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); color: #8f9bad; font: 760 .74rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.wardrobe-box button { min-width: 62px; min-height: 30px; border: 1px solid rgba(178,197,227,.3); background: transparent; color: #c7d1e2; font: 800 .7rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.wardrobe-box button:hover { border-color: #78aaff; background: rgba(93,145,255,.12); color: #fff; }
.wardrobe-box p { min-height: 154px; max-height: 154px; overflow: auto; margin: 0; padding: 15px 14px; color: #d8dfea; font: 400 .82rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; scrollbar-width: thin; scrollbar-color: #506a99 #0a0e17; }

.social-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.social-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: white; color: #05070d; font-size: 2rem; font-weight: 900; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 34px; color: var(--muted); }
.footer-grid { display: flex; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal { max-width: 680px; font-size: .84rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

.tilt-surface {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s ease-out, border-color .25s ease, box-shadow .25s ease;
}
.tilt-surface:hover { border-color: rgba(142, 184, 255, .42); }
.tilt-surface > * { transform: translateZ(18px); }

.ambient-orb {
  position: fixed;
  z-index: -1;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
  pointer-events: none;
  animation: float-orb 14s ease-in-out infinite alternate;
}
.ambient-orb.one { left: -13vw; top: 12vh; background: #3e83ff; }
.ambient-orb.two { right: -15vw; top: 52vh; background: #9e72ff; animation-delay: -5s; }
.ambient-orb.three { left: 38vw; bottom: -24vw; background: #62d0ff; animation-delay: -9s; }
@keyframes float-orb { to { transform: translate3d(4vw, -5vh, 0) scale(1.12); } }

.codex-cursor {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 26px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 900 31px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-shadow: 0 0 8px #fff, 0 0 22px #78a6ff, 0 0 42px #8d6cff;
  pointer-events: none;
  opacity: 0;
  transform: translate(-18%, -50%);
  will-change: left, top;
  transition: opacity .12s ease, color .12s ease, text-shadow .12s ease;
}
.codex-cursor.visible { opacity: 1; }
.codex-cursor.active { color: #d9e7ff; text-shadow: 0 0 10px #fff, 0 0 28px #78a6ff, 0 0 48px #8d6cff; }
.page-enter-forward main { opacity: 0; transform: translate3d(36px, 0, 0); }
.page-enter-back main { opacity: 0; transform: translate3d(-36px, 0, 0); }
.page-leaving-forward main { opacity: 0; transform: translate3d(-36px, 0, 0); }
.page-leaving-back main { opacity: 0; transform: translate3d(36px, 0, 0); }

@media (pointer: fine) {
  html.has-custom-cursor body,
  html.has-custom-cursor body *:not(iframe) { cursor: none !important; }
}

@media (max-width: 880px) {
  .menu-button { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 16px 20px 24px; background: rgba(5,7,13,.97); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 4px; }
  .section-head, .story-grid, .feature-row, .face-feature, .canon-layout, .manner-grid, .who-grid, .constants-layout { grid-template-columns: 1fr; }
  .constant-main { position: static; }
  .wiki-grid { grid-template-columns: 1fr 1fr; }
  .face-copy { max-width: 680px; }
  .canon-copy-block { max-width: 720px; }
  .never-grid { grid-template-columns: 1fr; }
  .who-facts div, .constant-list div { grid-template-columns: 1fr; gap: 5px; }
  .grid-3 { grid-template-columns: 1fr; }
  .story-card { min-height: 440px; }
  .social-card { grid-template-columns: 72px 1fr; }
  .social-card .button { grid-column: 1 / -1; }
  .footer-grid { flex-direction: column; }
  .launch-links { grid-template-columns: 1fr; }
  .market-toolbar { align-items: flex-start; }
  .look-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 881px) and (max-width: 1180px) {
  .look-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .hero { min-height: 760px; }
  .hero-slide img { object-position: 66% center; }
  .hero-media::after { background: linear-gradient(0deg, #05070d 4%, rgba(5,7,13,.5) 76%, rgba(5,7,13,.08)), linear-gradient(90deg, rgba(5,7,13,.78), transparent 90%); }
  .hero-content { padding-block: 270px 96px; }
  .tile-word { width: 100%; font-size: clamp(2.05rem, 12vw, 3.65rem); }
  .tile-word span { border-right-width: 4px; }
  h1 { font-size: clamp(3.6rem, 22vw, 5.6rem); }
  .actions .button { width: 100%; }
  .wiki-grid, .distance-grid { grid-template-columns: 1fr; }
  .face-sheet { border-radius: 18px; }
  .editorial-head { display: block; margin-bottom: 30px; }
  .looks-section .editorial-head { width: min(calc(100% - 24px), var(--max)); }
  .looks-rail { padding-inline: 12px; }
  .look-card { flex-basis: 78vw; }
  .prompt-card p { padding: 16px; font-size: .86rem; }
  .prompt-card header { align-items: center; }
  .canon-copy { min-width: 66px; }
  .market-topbar { align-items: flex-start; flex-direction: column; }
  .market-open { width: 100%; justify-content: center; }
  .market-toolbar { gap: 10px; }
  .market-control-group { padding-right: 8px; }
  .dex-frame-wrap { height: 510px; }
  .market-address { align-items: stretch; flex-direction: column; }
  .market-address button { width: 100%; }
  .contract-terminal { grid-template-columns: 1fr; grid-template-areas: "label" "value" "copy"; }
  .contract-terminal-copy { width: 100%; }
  .look-catalog { grid-template-columns: 1fr; row-gap: 34px; }
  .catalog-meta { min-height: 0; }
  .wardrobe-box p { min-height: 0; max-height: none; }
}

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