@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0c1515;
  --paper: #eeeee2;
  --muted: #a2b2ab;
  --gold: #e8c86d;
  --mint: #80d4c2;
  --line: #30403a;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Manrope, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --content-width: 1440px;
}

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

html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
button, input, summary { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { cursor: default; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 600; }
button, fieldset { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 6px; }
input:focus-visible { outline-offset: 4px; }
section[id] { scroll-margin-top: 2rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 100; left: var(--gutter); top: -6rem; padding: 0.8rem 1.2rem; background: var(--gold); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 0.6rem; }
.section-shell { width: min(100%, var(--content-width)); margin-inline: auto; padding-inline: var(--gutter); }
.micro { font-family: var(--mono); font-size: 0.65rem; font-weight: 400; letter-spacing: 0.075em; line-height: 1.6; }
.eyebrow { display: flex; align-items: center; gap: 0.7rem; font-family: var(--mono); font-size: 0.69rem; line-height: 1.6; letter-spacing: 0.04em; text-transform: uppercase; }
.section-number { color: var(--gold); margin-right: 0.5rem; }
.gold-text { color: var(--gold); }
.muted-text { color: var(--muted); }
.type-outline { color: var(--paper); -webkit-text-stroke: 1px var(--paper); }
@supports (-webkit-text-stroke: 1px white) { .type-outline { color: transparent; } }

/* The navigation stays native and visible at every width. */
.site-header { width: min(100%, var(--content-width)); margin-inline: auto; padding: 1.3rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { flex: 0 0 auto; display: inline-block; padding: 0.15rem 0; }
.brand img { width: 112px; }
.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3rem); margin-left: auto; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.76rem; text-decoration: none; }
.main-nav a:hover { color: var(--gold); }
.nav-index { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; flex-shrink: 0; padding: 0.55rem 0.65rem; min-height: 44px; min-width: 112px; border: 1px solid var(--line); border-radius: 3rem; background: transparent; font-family: var(--mono); font-size: 0.61rem; }
.motion-toggle svg { stroke: var(--gold); stroke-width: 1.3; }
.motion-toggle:hover:not(:disabled) { border-color: var(--gold); }
.motion-toggle:disabled { color: var(--muted); }
.motion-play { display: none; }
.motion-toggle[aria-pressed="true"] .motion-play { display: block; }
.motion-toggle[aria-pressed="true"] .motion-pause { display: none; }

/* A typographic poster with a live, bounded mathematical stage. */
.hero { padding-top: 1.65rem; }
.hero-topline { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.hero-topline > :first-child { color: var(--paper); }
.hero-layout { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; min-height: 706px; padding-top: 2.5rem; padding-bottom: 2rem; }
.hero-copy { z-index: 1; position: relative; }
.hero-copy .eyebrow { margin-bottom: 1.65rem; color: var(--mint); }
.small-cross { font-size: 1rem; line-height: 1; }
h1 { font-family: var(--display); font-size: clamp(6.5rem, 11.5vw, 10.8rem); line-height: 0.83; letter-spacing: -0.018em; }
.hero-intro { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.55rem; }
.hero-intro p { color: #bec9c2; font-size: 0.87rem; line-height: 1.85; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 0.9rem 1.15rem; font-size: 0.78rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.button > span { font-size: 1.5rem; line-height: 1; }
.button-gold { color: var(--ink); background: var(--gold); }
.button-gold:hover { background: var(--paper); }
.playground { min-width: 0; position: relative; align-self: center; margin-left: -5.5rem; margin-right: -2rem; }
.geometry-stage { position: relative; isolation: isolate; height: clamp(400px, 40vw, 560px); background: radial-gradient(ellipse at 50% 51%, #80d4c20c, transparent 60%); }
.geometry-stage > canvas, .geometry-poster { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain; }
.geometry-stage.is-scene-ready .geometry-poster { visibility: hidden; }
.stage-corner { position: absolute; width: 13px; height: 13px; border-color: #4b6a5f; border-style: solid; pointer-events: none; }
.corner-tl { left: 10%; top: 11%; border-width: 1px 0 0 1px; }
.corner-br { right: 10%; bottom: 11%; border-width: 0 1px 1px 0; }
.stage-axis { position: absolute; top: 47%; right: 1%; writing-mode: vertical-rl; color: var(--muted); font-size: 0.55rem; }
.stage-mark { position: absolute; top: 12%; right: 17%; color: var(--gold); font-family: var(--mono); font-size: 1.4rem; }
.playground-caption { position: relative; padding: 0 3.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; }
.playground-caption .micro { color: var(--mint); font-size: 0.58rem; }
.caption-dash { display: inline-block; width: 18px; height: 1px; background: var(--mint); vertical-align: middle; margin-right: 0.5rem; }
.playground-hint { color: var(--muted); font-size: 0.67rem; }
.geometry-controls { position: relative; z-index: 2; max-width: 390px; margin: 1rem auto 0; border: 1px solid var(--line); border-radius: 2px; background: var(--ink); }
.geometry-controls summary { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0.9rem; font-family: var(--mono); font-size: 0.65rem; list-style: none; }
.geometry-controls summary::-webkit-details-marker { display: none; }
.geometry-controls summary:hover { color: var(--gold); }
.disclosure-sign { color: var(--gold); font-size: 1.25rem; line-height: 1; }
.geometry-controls[open] .disclosure-sign { transform: rotate(45deg); }
.geometry-controls[open] summary { border-bottom: 1px solid var(--line); }
.geometry-controls-inner { padding: 1rem; }
.form-picker { display: flex; gap: 0.4rem; padding: 0; border: 0; }
.form-picker legend { margin-bottom: 0.6rem; color: var(--muted); }
.form-picker label { position: relative; flex: 1; min-width: 0; }
.form-picker input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.form-picker span { display: flex; align-items: center; justify-content: center; min-height: 44px; font-family: var(--mono); font-size: 0.6rem; border: 1px solid var(--line); }
.form-picker input:checked + span { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.form-picker input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.range-control { margin-top: 1rem; }
.range-control label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.64rem; }
.range-control output { color: var(--gold); }
.range-control input { display: block; accent-color: var(--gold); width: 100%; height: 44px; cursor: pointer; }
.geometry-explanation { margin-top: 0.5rem; font-size: 0.68rem; color: var(--muted); }
.hero-baseline { min-height: 87px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-top: 1px solid var(--line); }
.scroll-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; text-decoration: none; }
.scroll-link:hover { color: var(--gold); }
.scroll-arrow { font-family: var(--body); font-size: 1.75rem; }
.hero-baseline p { color: var(--muted); font-size: 0.59rem; }
.hero-baseline p span { color: var(--paper); }
.baseline-symbol { color: var(--gold); font-size: 2rem; }
.word-ribbon { overflow: hidden; border-block: 1px solid var(--gold); background: var(--gold); color: var(--ink); }
.word-ribbon-inner { display: flex; align-items: center; justify-content: center; gap: 3rem; padding: 0.8rem 0 1rem; width: max-content; min-width: 100%; font-family: var(--display); font-size: clamp(2.2rem, 4.5vw, 4.3rem); line-height: 1; letter-spacing: -0.01em; }
.ribbon-star { font-family: var(--body); font-size: 0.7em; }

/* One studio foundation; each HTML-authored world supplies its own visual tokens. */
.worlds-section { padding-top: 7rem; }
.section-heading { position: relative; padding-bottom: 2.75rem; }
.section-heading .eyebrow { margin-bottom: 1.5rem; }
.section-heading h2 { font-family: var(--display); font-size: clamp(3rem, 5.9vw, 5.7rem); line-height: 0.98; letter-spacing: -0.008em; }
.section-heading h2 .muted-text { color: #93a49b; }
.section-asterisk { position: absolute; right: var(--gutter); bottom: 3.75rem; color: var(--gold); font-size: 4rem; line-height: 1; }
.showcase[data-theme="outbreak"], .world[data-theme="outbreak"] {
  --world-base: #0a1616; --world-panel: #102421; --world-text: #eef1e6; --world-muted: #b1c6ba;
  --world-line: #35584b; --world-accent: #ffad96; --world-wire: #80d4c2; --world-hot: #e8c86d;
}
.showcase[data-theme="emberforge"], .world[data-theme="emberforge"] {
  --world-base: #0e0c0b; --world-panel: #171412; --world-text: #f6ede4; --world-muted: #cdb8a5;
  --world-line: #47372d; --world-accent: #ff5a1f; --world-wire: #ffc443; --world-hot: #fff3c4;
  --world-iron: #221d1a; --world-ember: #ff8a2a;
}
.showcase { --world-hero-height: clamp(500px, 45vw, 620px); position: relative; background: var(--world-base); color: var(--world-text); border-block: 1px solid var(--world-line); padding-top: 1.75rem; padding-bottom: 2.5rem; }
.showcase :focus-visible { outline-color: var(--world-hot); }
.world-navigation-label { display: flex; justify-content: space-between; color: var(--world-muted); margin-bottom: 1rem; }
.world-navigation-label > span { color: var(--world-accent); font-size: 1.1rem; }
.world-selectors { display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.75rem; }
.world-selector { flex: 1 1 17rem; min-width: 0; min-height: 88px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 0.35rem 0.75rem; padding: 0.85rem 1rem; border: 1px solid var(--world-line); text-decoration: none; }
.world-selector > .micro { grid-column: 1; color: var(--world-muted); font-size: 0.59rem; }
.world-selector > span:nth-child(2) { grid-column: 1; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.world-selector small { font-family: var(--mono); font-size: 0.45em; }
.world-selector .selector-mark { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.4rem; color: var(--world-muted); }
.world-selector:hover, .world-selector[aria-current="true"] { border-color: var(--world-accent); background: var(--world-panel); }
.world-selector[aria-current="true"] { box-shadow: inset 3px 0 var(--world-accent); }
.world-selector[aria-current="true"] .selector-mark { color: var(--world-accent); }
.world-stage { position: relative; isolation: isolate; max-width: var(--content-width); margin-inline: auto; }
.world-canvas { position: absolute; z-index: 2; pointer-events: none; right: var(--gutter); top: 0; width: 58%; height: var(--world-hero-height); }
.has-player .world-canvas { visibility: hidden; }
.world-rail { position: relative; }
.world { position: relative; min-width: 0; width: 100%; padding-inline: var(--gutter); color: var(--world-text); scroll-margin-top: 1rem; }
.world + .world { margin-top: 4rem; }
.showcase:not(.is-enhanced) .world { background: var(--world-base); padding-bottom: 2rem; }
.showcase.is-enhanced .world-rail { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--world-line) var(--world-base); }
.showcase.is-enhanced .world-rail:focus-visible { outline-offset: -3px; }
.showcase.is-enhanced .world { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; margin-top: 0; }
.showcase.is-enhanced .world:not(.is-active) { block-size: var(--world-hero-height); overflow: hidden; }
.showcase.is-enhanced .world:not(.is-nearby) { visibility: hidden; content-visibility: hidden; }
.world-hero { position: relative; height: var(--world-hero-height); overflow: hidden; background: var(--world-panel); border: 1px solid var(--world-line); }
.world-art { position: absolute; inset: 0; overflow: hidden; }
.world-art-image { position: absolute; inset: -36px 0; width: 100%; height: calc(100% + 72px); object-fit: cover; object-position: 58% 50%; }
.world-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #051311e6, #05131130 70%), linear-gradient(0deg, #051311e6, transparent 65%); pointer-events: none; }
.world-field-poster { position: absolute; z-index: 2; width: 62%; height: 100%; object-fit: contain; right: -2%; top: 0; pointer-events: none; }
.is-scene-ready .world.is-active .world-field-poster { visibility: hidden; }
.world-title-block { position: absolute; z-index: 3; left: 1.8rem; right: 1.8rem; bottom: 8.25rem; pointer-events: none; }
.world-kind { margin-bottom: 1.3rem; color: var(--world-text); }
.world-kind::before { content: "+"; color: var(--world-accent); margin-right: 0.7rem; }
.world-title { font-family: var(--display); font-size: clamp(4.8rem, 8vw, 8rem); font-weight: 600; line-height: 0.88; letter-spacing: -0.01em; }
.world-title-suffix { display: block; margin-top: 0.7rem; font-family: var(--mono); font-size: 0.22em; letter-spacing: 0.15em; color: var(--world-accent); }
.world-tagline { margin-top: 1.45rem; color: var(--world-text); font-size: 0.65rem; }
.world-hero-bottom { position: absolute; z-index: 3; left: 1.8rem; right: 1.8rem; bottom: 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.world-coordinate, .illustration-note { font-size: 0.56rem; color: var(--world-text); }
.illustration-note { text-align: right; color: var(--world-muted); }
.world-hero-illustrated { background: radial-gradient(ellipse at 70% 45%, #65321b, var(--world-iron) 50%, var(--world-base) 85%); }
.forge-art { position: absolute; width: 80%; height: 120%; right: -6%; top: -10%; object-fit: contain; }
.world-hero-illustrated .world-shade { background: linear-gradient(90deg, #0e0c0bf5, #0e0c0b66 46%, transparent 75%), linear-gradient(0deg, #0e0c0be6, transparent 35%); }
.arcade-wordmark { font-size: clamp(5.4rem, 9vw, 8.5rem); letter-spacing: -0.025em; }
.forge-word { color: var(--world-accent); }
.arcade-subline { display: block; margin-top: 1rem; font-family: var(--mono); font-size: 0.17em; line-height: 1.4; letter-spacing: 0.4em; text-transform: uppercase; color: var(--world-hot); }
.development-status { color: var(--world-ember); }
.trailer-button { display: inline-flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0.9rem; min-height: 52px; border: 1px solid var(--world-text); background: var(--world-text); color: var(--world-base); font-size: 0.78rem; font-weight: 700; }
.trailer-button:hover { background: var(--world-hot); border-color: var(--world-hot); }
.play-symbol { width: 36px; height: 36px; display: grid; place-content: center; border: 1px solid #89908a; border-radius: 50%; font-size: 0.7rem; padding-left: 2px; }
.play-note { display: block; font-size: 0.57rem; font-weight: 400; margin-top: 0.1rem; }
.world-player { position: absolute; inset: 0; z-index: 5; background: black; }
.world-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.world-media-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-block: 0.8rem; border-bottom: 1px solid var(--world-line); }
.media-privacy { flex: 1 1 22rem; max-width: 620px; color: var(--world-muted); font-size: 0.64rem; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; font-size: 0.76rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid #718374; }
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.text-link > span[aria-hidden] { font-size: 1.2rem; }
.world .text-link { border-bottom-color: var(--world-line); }
.world .text-link:hover { color: var(--world-hot); border-bottom-color: var(--world-hot); }
.close-player { border: 0; border-bottom: 1px solid var(--world-line); background: transparent; padding: 0; }
.world-summary { display: grid; grid-template-columns: 0.95fr 1fr; gap: 4rem; padding-block: 2.25rem; }
.world-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; letter-spacing: -0.02em; }
.world-description { min-width: 0; }
.world-description > p { max-width: 520px; color: var(--world-muted); font-size: 0.87rem; line-height: 1.85; }
.world-description > p + p { margin-top: 1rem; }
.world-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 1.2rem; }
.button-world { background: var(--world-accent); color: var(--world-base); }
.button-world:hover { background: var(--world-hot); }
.world-details { border-block: 1px solid var(--world-line); }
.world-details summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding-block: 0.75rem; list-style: none; font-size: 0.83rem; }
.world-details summary::-webkit-details-marker { display: none; }
.world-details summary:hover { color: var(--world-hot); }
.detail-summary-note { color: var(--world-muted); font-size: 0.7rem; margin-left: 0.35rem; }
.world-details .disclosure-sign { color: var(--world-accent); }
.world-details[open] .disclosure-sign { transform: rotate(45deg); }
.world-detail-layout { display: grid; grid-template-columns: 0.95fr 1fr; align-items: center; gap: 8%; padding-block: 2.5rem 3rem; }
.world-detail-copy > .eyebrow { margin-bottom: 1.3rem; color: var(--world-muted); }
.world-detail-copy h4 { font-family: var(--display); font-size: clamp(3.4rem, 6vw, 5.5rem); font-weight: 600; line-height: 0.94; margin: 0; }
.world-detail-copy h4 span { color: var(--world-wire); }
.world-detail-copy > p:not(.eyebrow) { font-size: 0.85rem; color: var(--world-muted); max-width: 350px; margin-top: 1.6rem; margin-bottom: 1rem; }
.world-detail-text { align-items: start; }
.world-detail-text .text-link { margin-top: 1rem; }
.gameplay-figure { position: relative; }
.gameplay-figure::before { content: ""; position: absolute; top: -12px; right: -12px; width: 80%; height: 70%; border-top: 1px solid var(--world-line); border-right: 1px solid var(--world-line); pointer-events: none; }
.gameplay-image-wrap { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--world-panel); }
.gameplay-image-wrap img { position: absolute; inset: -26px 0; width: 100%; height: calc(100% + 52px); object-fit: cover; }
.gameplay-figure figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; color: var(--world-muted); font-size: 0.56rem; }
.world-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; }
.world-input-hint { color: var(--world-muted); font-size: 0.59rem; }
.world-input-hint > span { display: block; font-family: var(--body); font-size: 0.64rem; margin-top: 0.35rem; letter-spacing: 0; }
.world-step-controls { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.world-step { display: grid; place-content: center; min-width: 48px; min-height: 48px; border: 1px solid var(--world-line); background: transparent; font-size: 1.5rem; line-height: 1; }
.world-step:hover:not([aria-disabled="true"]) { color: var(--world-hot); border-color: var(--world-hot); }
.world-step[aria-disabled="true"] { color: var(--world-muted); opacity: 0.5; cursor: default; }
.world-count { min-width: 4.2rem; text-align: center; color: var(--world-text); }

/* A warm-paper interruption: the studio is human, not a dashboard. */
.studio-section { color-scheme: light; background: var(--paper); color: var(--ink); padding-block: 6.5rem; }
.studio-section ::selection { background: var(--ink); color: var(--paper); }
.studio-section :focus-visible { outline-color: #1f6960; }
.studio-intro { display: grid; grid-template-columns: 0.48fr 1fr; gap: 3.5rem; }
.studio-label .eyebrow { color: #4e6258; align-items: flex-start; font-size: 0.64rem; }
.studio-label .section-number { color: #47695e; }
.studio-orbit { display: block; margin-top: 1rem; font-size: 9rem; font-family: var(--body); font-weight: 400; line-height: 1.5; color: #406b5b; }
.studio-intro h2 { font-family: var(--display); font-size: clamp(3.4rem, 6.7vw, 6.2rem); line-height: 0.95; letter-spacing: -0.015em; }
.studio-intro h2 > span { color: #566e61; }
.studio-lead { margin-top: 2.3rem; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.5; font-weight: 600; letter-spacing: -0.03em; }
.studio-body { max-width: 590px; margin-top: 1.4rem; color: #46564c; font-size: 0.92rem; line-height: 1.9; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 4rem; border-top: 1px solid #bbc1b3; }
.principle { position: relative; padding: 2.3rem 2.25rem 0; }
.principle:first-child { padding-left: 0; }
.principle:last-child { padding-right: 0; }
.principle + .principle { border-left: 1px solid #bbc1b3; }
.principle-icon { stroke: #3c695c; stroke-width: 1.1; width: 74px; height: 74px; margin-bottom: 1.8rem; }
.principle .micro { color: #5c6d60; font-size: 0.6rem; }
.principle h3 { margin-top: 0.6rem; font-size: 1.35rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.04em; }
.principle p { margin-top: 0.8rem; color: #4c5c50; font-size: 0.8rem; line-height: 1.9; max-width: 295px; }

/* Contact is an invitation, not a pretend form. */
.contact-section { padding-block: 6rem 5.5rem; }
.contact-topline { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.contact-topline > .micro { color: var(--muted); font-size: 0.56rem; }
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; padding-top: 3.5rem; }
.contact-copy h2 { font-family: var(--display); font-size: clamp(5.5rem, 12vw, 11rem); line-height: 0.85; letter-spacing: -0.01em; }
.contact-copy > p { color: #afbeb5; font-size: 0.86rem; margin-top: 1.8rem; }
.contact-link { width: min(100%, 460px); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding-block: 0.4rem 0.85rem; font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.04em; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact-link:hover { color: var(--paper); border-color: var(--paper); }
.contact-arrow { font-family: var(--body); font-size: 2.8rem; line-height: 1.3; }
.email-link { min-height: 44px; display: inline-flex; align-items: center; padding-top: 0.5rem; color: var(--muted); font-size: 0.73rem; text-decoration: none; overflow-wrap: anywhere; }
.email-link:hover { color: var(--paper); text-decoration: underline; }
.contact-emblem { align-self: center; padding: 1rem 0 1rem 1rem; }
.contact-emblem img { width: 100%; }
.contact-emblem .micro { display: block; margin-top: 0.6rem; text-align: center; color: var(--mint); font-size: 0.55rem; letter-spacing: 0.15em; }
.site-footer { padding-bottom: 1.7rem; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding-block: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-wordmark { display: inline-flex; align-items: center; gap: 0.9rem; font-family: var(--display); font-size: clamp(2rem, 5.2vw, 4.8rem); line-height: 1; text-decoration: none; }
.footer-wordmark > span { align-self: flex-start; font-family: var(--body); font-size: 0.3em; margin-top: 0.1em; color: var(--gold); }
.footer-wordmark:hover { color: var(--gold); }
.back-top { min-height: 44px; display: inline-flex; align-items: center; gap: 1rem; flex-shrink: 0; text-decoration: none; font-size: 0.58rem; }
.back-top > span { font-size: 1.4rem; }
.back-top:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 1.25rem; color: var(--muted); font-size: 0.63rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-bottom nav a:hover { color: var(--paper); text-decoration: underline; }
.footer-signoff { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.02em; }

/* Legal documents retain their original wording, with a quiet reading layout. */
.document-header .brand img { width: 100px; }
.document-header .main-nav a { font-size: 0.7rem; }
.legal-header { padding-top: 5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.legal-header > .eyebrow { color: var(--mint); margin-bottom: 1.5rem; }
.legal-header h1 { max-width: 18ch; font-size: clamp(3rem, 7vw, 6.7rem); line-height: 0.98; overflow-wrap: anywhere; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 1.5rem; color: var(--gold); font-size: 0.8rem; }
.legal-layout { width: min(100%, 880px); margin-inline: auto; padding: 3.5rem var(--gutter) 5rem; }
.legal-content { color: #c3cdc5; font-size: 0.95rem; line-height: 1.95; }
.legal-content > :first-child { margin-top: 0; }
.legal-content h2 { color: var(--paper); margin-top: 2.5rem; margin-bottom: 0.85rem; font-size: 1.25rem; line-height: 1.5; letter-spacing: -0.02em; }
.legal-content p { margin-block: 1rem; }
.legal-content ul { padding-left: 1.4rem; margin-block: 1rem 1.5rem; }
.legal-content li { margin-top: 0.5rem; padding-left: 0.3rem; }
.legal-content li::marker { color: var(--gold); }
.legal-content strong { font-weight: 600; color: var(--paper); }
.legal-content a { color: var(--gold); overflow-wrap: anywhere; }
.legal-content a:hover { color: var(--paper); }
.legal-footer { border-top: 1px solid var(--line); padding-top: 1rem; }
.legal-footer .footer-bottom { padding-top: 0; }
.legal-footer [aria-current="page"] { color: var(--gold); text-decoration: underline; }

.error-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-block: 4rem; min-height: 72vh; }
.error-copy .eyebrow { color: var(--mint); margin-bottom: 1.5rem; }
.error-copy h1 { font-size: clamp(4rem, 7vw, 7rem); line-height: 0.95; }
.error-copy > p:not(.eyebrow) { color: var(--muted); margin-block: 1.5rem; font-size: 0.9rem; max-width: 390px; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.error-actions .button { gap: 2rem; }
.error-art { position: relative; display: grid; place-items: center; }
.error-art img { opacity: 0.55; width: 100%; }
.error-code { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--display); font-size: clamp(8rem, 21vw, 21rem); color: var(--gold); line-height: 1; text-shadow: 0 6px 30px var(--ink); }

@media (min-width: 1440px) {
  .playground { margin-right: -2.5rem; }
}

@media (max-width: 1100px) {
  .site-header { gap: 1.25rem; }
  .brand img { width: 100px; }
  .main-nav { gap: 1.3rem; }
  .nav-index { display: none; }
  .hero-layout { padding-top: 3rem; min-height: 645px; }
  h1 { font-size: 11.8vw; }
  .playground { margin-left: -4rem; margin-right: -1rem; }
  .stage-axis { right: 0; font-size: 0.5rem; }
  .playground-caption { padding-inline: 1.75rem; }
  .playground-caption .micro { font-size: 0.51rem; }
  .geometry-controls { max-width: 310px; }
  .worlds-section { padding-top: 5.5rem; }
  .section-asterisk { font-size: 3rem; }
  .world-summary { gap: 2rem; }
  .world-detail-layout { gap: 7%; }
  .studio-intro { grid-template-columns: 0.4fr 1fr; gap: 2.5rem; }
  .principle { padding-inline: 1.5rem; }
  .contact-topline > .micro, .footer-signoff { display: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 1.5rem; }
  .site-header { flex-wrap: wrap; gap: 0.5rem 1.2rem; padding-block: 0.85rem 0.6rem; }
  .brand img { width: 92px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
  .main-nav a { min-height: 44px; font-size: 0.72rem; }
  .nav-index { display: inline; font-size: 0.55rem; }
  .motion-toggle { margin-left: auto; font-size: 0.58rem; }
  .hero { padding-top: 1.25rem; }
  .hero-coordinate { display: none; }
  .hero-layout { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; padding-bottom: 1.5rem; }
  .hero-copy .eyebrow { font-size: 0.62rem; margin-bottom: 1.35rem; }
  h1 { font-size: clamp(5.4rem, 20vw, 9rem); }
  .hero-intro { flex-direction: row; align-items: flex-end; gap: 1.5rem; margin-top: 1.6rem; }
  .hero-intro p { flex: 1; font-size: 0.76rem; }
  .hero-intro .button { font-size: 0.72rem; gap: 1.5rem; padding-inline: 0.9rem; }
  .desktop-break { display: none; }
  .playground { width: min(100%, 520px); justify-self: center; margin: 1.75rem 0 0; }
  .geometry-stage { height: auto; aspect-ratio: 1.2; }
  .stage-axis { right: 0; font-size: 0.48rem; }
  .playground-caption { padding-inline: 0.25rem; }
  .playground-caption .micro { font-size: 0.54rem; }
  .geometry-controls { max-width: 360px; margin-top: 0.85rem; }
  .hero-baseline { min-height: 74px; }
  .hero-baseline p { display: none; }
  .word-ribbon-inner { gap: 1.5rem; padding-block: 0.9rem; }
  .worlds-section { padding-top: 4rem; }
  .section-heading { padding-bottom: 2rem; }
  .section-heading h2 { font-size: clamp(2.8rem, 7.7vw, 4.5rem); }
  .section-heading .eyebrow { font-size: 0.63rem; margin-bottom: 1.2rem; }
  .section-asterisk { display: none; }
  .showcase { --world-hero-height: 520px; padding-top: 1.25rem; padding-bottom: 1.75rem; }
  .world-navigation-label { font-size: 0.57rem; }
  .world-selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; padding-bottom: 1.25rem; }
  .world-selector { padding: 0.75rem; min-height: 100px; gap: 0.5rem; }
  .world-selector > .micro { font-size: 0.48rem; }
  .world-selector > span:nth-child(2) { font-size: 1.45rem; }
  .world-selector .selector-mark { font-size: 1rem; }
  .world-canvas { width: 85%; right: 0; }
  .world-art-image { object-position: 60% 50%; }
  .world-shade { background: linear-gradient(0deg, #051311f5, #05131155 75%); }
  .world-field-poster { width: 100%; right: -20%; }
  .world-title-block { left: 1.2rem; right: 1.2rem; bottom: 11.5rem; }
  .world-title { font-size: clamp(3.5rem, 12vw, 6.3rem); }
  .world-kind { font-size: 0.58rem; margin-bottom: 1rem; }
  .world-tagline { font-size: 0.56rem; margin-top: 1.2rem; }
  .world-hero-bottom { left: 1.2rem; right: 1.2rem; bottom: 1.25rem; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .world-coordinate, .illustration-note { font-size: 0.5rem; }
  .illustration-note { text-align: left; }
  .arcade-wordmark { font-size: clamp(3.7rem, 14vw, 6.5rem); }
  .forge-art { width: 120%; height: 100%; right: -28%; top: -7%; }
  .world-hero-illustrated .world-shade { background: linear-gradient(0deg, #0e0c0bf5 20%, #0e0c0b55 80%); }
  .trailer-button { font-size: 0.73rem; }
  .world-summary { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.6rem; }
  .world-lead { font-size: 1.05rem; }
  .world-description > p { font-size: 0.83rem; max-width: 100%; }
  .world-actions { gap: 0.7rem 1.4rem; margin-top: 1rem; }
  .world-actions .text-link { font-size: 0.7rem; gap: 0.7rem; }
  .world-media-bar { gap: 0.25rem 1rem; }
  .media-privacy { font-size: 0.61rem; }
  .world-media-bar .text-link { font-size: 0.7rem; }
  .world-details summary { font-size: 0.77rem; }
  .detail-summary-note { display: block; margin: 0.25rem 0 0; font-size: 0.64rem; }
  .world-detail-layout { gap: 1.75rem; padding-block: 1.75rem 2.25rem; }
  .world-detail-copy h4 { font-size: clamp(2.6rem, 6.5vw, 3.5rem); }
  .world-detail-copy > .eyebrow { font-size: 0.58rem; margin-bottom: 1rem; }
  .world-detail-copy > p:not(.eyebrow) { font-size: 0.74rem; margin-top: 1.1rem; }
  .world-detail-copy .text-link { font-size: 0.67rem; gap: 0.4rem; }
  .gameplay-figure::before { right: -8px; top: -8px; }
  .gameplay-figure figcaption { flex-direction: column; gap: 0.2rem; font-size: 0.48rem; }
  .world-footer { gap: 1.25rem; align-items: flex-start; }
  .world-input-hint { font-size: 0.51rem; }
  .world-input-hint > span { font-size: 0.59rem; }
  .world-step-controls { gap: 0.5rem; }
  .world-count { min-width: 3.25rem; font-size: 0.59rem; }
  .studio-section { padding-block: 4rem; }
  .studio-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .studio-label .eyebrow { font-size: 0.6rem; }
  .studio-orbit { display: none; }
  .studio-intro h2 { font-size: clamp(3.4rem, 9vw, 5.5rem); }
  .studio-lead { margin-top: 1.8rem; font-size: 1.5rem; }
  .studio-body { font-size: 0.85rem; }
  .principles { margin-top: 2.5rem; }
  .principle { padding: 1.5rem 1rem 0; }
  .principle-icon { width: 60px; height: 60px; margin-bottom: 1.3rem; }
  .principle .micro { font-size: 0.5rem; }
  .principle h3 { font-size: 1.12rem; }
  .principle p { font-size: 0.72rem; line-height: 1.85; }
  .contact-section { padding-block: 4rem; }
  .contact-topline .eyebrow { font-size: 0.58rem; }
  .contact-layout { grid-template-columns: 1.2fr 0.8fr; gap: 0; padding-top: 2.5rem; }
  .contact-copy h2 { font-size: clamp(4.6rem, 12vw, 7rem); }
  .contact-copy > p { font-size: 0.77rem; margin-top: 1.5rem; }
  .contact-link { font-size: 1.15rem; margin-top: 1.4rem; }
  .contact-arrow { font-size: 2.2rem; }
  .email-link { font-size: 0.63rem; }
  .contact-emblem { padding-left: 0.25rem; }
  .contact-emblem .micro { font-size: 0.42rem; letter-spacing: 0.05em; }
  .footer-top { padding-block: 1.5rem; gap: 1rem; }
  .footer-wordmark { font-size: clamp(1.8rem, 5vw, 3rem); gap: 0.5rem; }
  .back-top { font-size: 0.5rem; gap: 0.5rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 0.4rem; font-size: 0.6rem; }
  .footer-bottom nav { gap: 1.3rem; }
  .document-header { flex-wrap: nowrap; padding-block: 1rem; }
  .document-header .main-nav { order: initial; width: auto; margin-left: auto; padding-top: 0; border: 0; }
  .document-header .main-nav a { font-size: 0.65rem; }
  .legal-header { padding-top: 3rem; padding-bottom: 2rem; }
  .legal-header h1 { font-size: clamp(2.9rem, 9vw, 5rem); }
  .legal-layout { padding-block: 2rem 3rem; }
  .legal-content { font-size: 0.87rem; line-height: 1.9; }
  .legal-content h2 { font-size: 1.15rem; }
  .error-layout { grid-template-columns: 1fr; padding-block: 3rem; gap: 1.5rem; }
  .error-copy h1 { font-size: clamp(3.6rem, 11vw, 6rem); }
  .error-art { max-width: 350px; width: 100%; margin-inline: auto; }
  .error-code { font-size: 12rem; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.25rem; }
  .nav-index { display: none; }
  .main-nav a { font-size: 0.69rem; }
  .hero-intro { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-intro p { font-size: 0.8rem; max-width: 300px; }
  .hero-intro .button { gap: 3rem; }
  .playground { margin-top: 0.6rem; }
  .geometry-stage { aspect-ratio: 1.08; }
  .geometry-controls { margin-inline: 0; }
  .hero-topline { font-size: 0.6rem; }
  .world-selector { padding: 0.7rem; gap: 0.5rem 0.35rem; }
  .world-selector > span:nth-child(2) { font-size: 1.25rem; }
  .world-selector .selector-mark { display: none; }
  .world-hero-bottom, .world-title-block { left: 1rem; right: 1rem; }
  .world-detail-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .world-detail-copy h4 { font-size: 3.4rem; }
  .world-detail-copy > p:not(.eyebrow) { max-width: 100%; font-size: 0.82rem; }
  .world-detail-copy .text-link { font-size: 0.73rem; }
  .gameplay-figure figcaption { flex-direction: row; font-size: 0.48rem; }
  .world-footer { flex-direction: column; gap: 1rem; }
  .world-step-controls { order: -1; width: 100%; justify-content: space-between; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:first-child, .principle:last-child { min-height: 178px; padding: 1.75rem 0 1.75rem 6.2rem; }
  .principle + .principle { border-left: 0; border-top: 1px solid #bbc1b3; }
  .principle-icon { position: absolute; left: 0; top: 1.9rem; width: 66px; height: 66px; }
  .principle .micro { font-size: 0.56rem; }
  .principle h3 { font-size: 1.25rem; margin-top: 0.4rem; }
  .principle p { max-width: 100%; font-size: 0.78rem; margin-top: 0.65rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-copy h2 { font-size: 21vw; }
  .contact-copy > p { font-size: 0.81rem; }
  .contact-link { max-width: 100%; font-size: 1.35rem; }
  .email-link { font-size: 0.7rem; }
  .contact-emblem { display: none; }
  .footer-top { flex-wrap: wrap; gap: 1rem; }
  .footer-wordmark { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .back-top { margin-left: auto; }
}

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

@media (forced-colors: active) {
  .type-outline { color: CanvasText; -webkit-text-stroke: 0; }
  .button-gold, .button-world, .trailer-button, .world-selector, .world-step { border: 1px solid ButtonText; }
  .form-picker input:checked + span { outline: 2px solid Highlight; }
  .world-selector[aria-current="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  .world-title, .world-title span, .world-kind, .world-tagline { color: CanvasText; }
  .world-art, .world-shade, .world-canvas, .world-field-poster { display: none; }
  .motion-toggle svg { stroke: ButtonText; }
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: black; }
  .site-header, .skip-link, .motion-toggle, .playground, .word-ribbon, .world-navigation, .world-footer, .world-art, .world-shade, .world-field-poster, .world-canvas, .world-player, .trailer-button, .close-player, .world-hero-bottom, .contact-emblem, .error-art, .back-top { display: none !important; }
  .hero-layout, .world-summary, .world-detail-layout, .studio-intro, .principles, .contact-layout, .error-layout { display: block; min-height: 0; }
  .showcase, .world, .world-hero { background: white !important; color: black; border: 0; }
  .showcase.is-enhanced .world-rail { display: block; overflow: visible; }
  .showcase.is-enhanced .world { block-size: auto !important; overflow: visible !important; visibility: visible !important; content-visibility: visible !important; margin-block: 2rem; }
  .world-hero { height: auto; overflow: visible; }
  .world-title-block { position: static; }
  .world-title, .world-title span { font-size: 2.5rem; color: black; }
  .world-title-suffix, .arcade-subline { display: inline; font-size: 1rem !important; }
  .world-summary { padding-block: 1rem; }
  .world p, .world p span, .world a, .world h4, .world h4 span { color: black; }
  .hero, .worlds-section, .studio-section, .contact-section, .legal-header, .legal-layout { padding: 1rem 0; }
  h1, .contact-copy h2 { font-size: 4rem; }
  h2, .studio-intro h2, .section-heading h2 { font-size: 2.5rem; }
  .type-outline { color: black; -webkit-text-stroke: 0; }
  p, a, .legal-content, .legal-content h2, .legal-content strong { color: black; }
  .legal-content a { overflow-wrap: anywhere; }
  .principle, .principle:first-child, .principle:last-child { padding: 1rem 0; border: 0; min-height: 0; }
  .principle-icon { display: none; }
  .legal-content h2 { break-after: avoid; }
}
