:root {
  color-scheme: dark;
  --paper: #18191b;
  --panel: #202123;
  --light: #f0ece3;
  --ink: #ece8df;
  --muted: #b4b1aa;
  --accent: #c9b78d;
  --frame-depth: clamp(5px,.55vw,9px);
  --frame-extent: calc(2 * var(--frame-depth) + 4px);
  --oxide: var(--accent);
  --line: #52514d;
  --display: "Bodoni Moda","Bodoni MT",Didot,Georgia,serif;
}
body {background:var(--paper);color:var(--ink)}
html {scrollbar-color:#625e54 var(--paper);scrollbar-width:thin}
::selection {background:var(--accent);color:var(--paper)}
:focus-visible {outline-color:var(--accent)}
.skip {background:var(--accent);color:var(--paper)}
.shell {width:min(90%,1680px);margin-inline:auto}
.topbar {border-color:var(--line);padding-block:1.05rem;gap:1.4rem}
.brand {align-items:center;gap:1rem}
.brand-name {font:400 clamp(22px,1.9vw,32px)/1 var(--display);letter-spacing:-.052em;gap:.26em}
.brand-lab {letter-spacing:.005em}
.brand .kanji,.footer-brand .kanji {color:var(--accent);font-size:18px;font-weight:700}
.brand .kanji {border-left:1px solid var(--line);padding-left:.85rem}
.topnav {gap:clamp(1.3rem,3vw,3.5rem)}
.topnav a {gap:.55rem;font-size:14px}
.topnav a span,.section-no,.stratum-label span {color:var(--accent)}
.topbar .language-switch {font:12px var(--mono);gap:.45rem}
.language-switch a {color:var(--muted)}
.language-switch a[aria-current] {color:var(--accent);text-decoration-color:var(--accent)}
.topnav a:hover,.scroll-link:hover,footer a:hover {color:var(--accent)}
.hero {min-height:calc(100svh - 80px);padding:0 0 1rem}
.hero-stage {
  position:relative;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;
  flex:1 0 auto;min-height:clamp(515px,67vh,840px);padding-block:5.5rem 5rem;
}
.hero[data-composition="central"] .hero-stage {align-items:center;text-align:center}
.hero-register {position:absolute;top:1.7rem;left:0;gap:.7rem}
.hero-register .eyebrow,.hero-signature,.hero-footer .micro,
.hero-note .micro,.toolbar button,.expose-button {font:400 11px/1.55 var(--mono);letter-spacing:.065em}
.hero-register .eyebrow,.section-no,.hero-note .micro {color:var(--accent)}
.tiny-rule {width:28px;border-color:var(--accent)}
.hero-signature {display:flex;align-items:center;gap:.7rem;position:absolute;right:0;top:1.7rem;text-transform:uppercase;color:var(--accent)}
.field-plate {position:absolute;pointer-events:none;left:-2%;right:-2%;top:12%;bottom:4%}
.hero[data-composition="lateral"] .field-plate {left:44%;right:-1%;top:12%;bottom:4%}
.hero-copy {width:100%;margin:0;position:relative;pointer-events:none}
.hero #question,html[lang="en"] .hero #question {
  margin:0;max-width:none;font:400 clamp(66px,min(7.45vw,11.65vh),148px)/.99 var(--display);
  letter-spacing:-.064em;color:var(--ink);font-optical-sizing:auto;
}
html[lang="en"] .hero #question {font-size:clamp(48px,min(5.2vw,9.35vh),105px)}
.hero #question .phrase {margin:0;color:var(--ink);white-space:nowrap}
.hero #question .keyword {color:var(--accent);font-style:italic}
.hero-actions {display:block;margin:1.45rem 0 0;z-index:1}
.hero-actions .expose-button {
  display:inline-flex;width:auto;min-height:44px;align-items:center;justify-content:center;gap:1rem;
  margin:0;padding:.5rem 0;background:transparent;color:var(--light);border:0;border-bottom:1px solid var(--accent);
}
.hero-actions .expose-button span:first-child {max-width:none}
.arrow-ne {
  display:inline-block;width:.86em;height:.86em;vertical-align:-.06em;
  background:var(--accent);-webkit-mask:url("./arrow-ne.svg") center/contain no-repeat;
  mask:url("./arrow-ne.svg") center/contain no-repeat;
}
.expose-button .arrow-ne {height:1.55em;width:.77em;mask-size:.86em .86em;-webkit-mask-size:.86em .86em}
#kore-open::after,#khora-open::after {
  content:"";background-image:url("./arrow-ne.svg");background-repeat:no-repeat;
  background-position:center;background-size:1em 1em;
}
.expose-button span:last-child {color:var(--accent);font-size:18px}
.hero-bottom .hero-note {
  position:static;align-self:center;width:auto;max-width:30ch;margin:0;padding:0;
  border:0;text-align:right;
}
.hero-note p {font:italic 17px/1.35 var(--display);color:var(--ink);margin:.35rem 0 0}
.hero-note {background:var(--paper)}
.hero-bottom {
  display:flex;align-items:end;justify-content:space-between;gap:1.5rem;margin:0;
  padding:1.15rem 0 1.25rem;border-top:1px solid var(--line);position:relative;
}
.hero-bottom::before,.hero-bottom::after {
  content:"";pointer-events:none;position:absolute;top:-4px;width:1px;height:7px;background:var(--accent)
}
.hero-bottom::before {left:0}.hero-bottom::after {right:0}
.hero-bottom .sub {font:400 clamp(17px,1.4vw,23px)/1.3 var(--display);max-width:none}
.hero-bottom .by {color:var(--accent);margin:.32rem 0 0;font:italic 16px/1.3 var(--display)}
.scroll-link {max-width:none;gap:1rem;min-height:44px;color:var(--ink)}
.scroll-link span {color:var(--accent)}
.hero-footer {display:flex;justify-content:flex-start;gap:.6rem 1.5rem;border-color:var(--line);margin:0;padding:.8rem 250px 0 0}
.hero-footer .micro,.side-index {color:var(--muted)}
.hero-footer .micro {font-size:10px}
.hero-footer .micro:first-child {color:var(--accent)}
.side-index {left:1%;font-size:9px}
.toolbar,.hero .toolbar {background:#222325;border:1px solid #646057;box-shadow:none}
.toolbar button,.hero .toolbar button {color:var(--ink);min-height:44px}
.toolbar button+button {border-color:var(--line)}
.toolbar button:hover,.run:hover {background:#353431;color:var(--light)}
.toolbar .sound-mark {background:var(--muted)}
.toolbar button[aria-pressed="true"] .sound-mark {background:var(--accent);box-shadow:0 0 0 3px #c9b78d22}
.eyebrow,.micro,.body,.memory-hint,.section-intro p,.stratum-label,
.entity-caption,.system-dl dt,.process-note p,.footer-bottom .micro,.archive-entry p {color:var(--muted)}
.section-head::after {background:var(--line)}
.section-head h2,.lead,.mp,.mp.is-current,.mp.last,.closing-end,.field-whisper,
.system-details .close,.process-note b,.khora-footer p {color:var(--ink)}
.code-frame,.observation-head,dialog,.archive-dialog {background:var(--panel);color:var(--ink);border-color:var(--line)}
.code-frame {border-top:1px solid var(--accent)}
.code-cap,#field-stage,.process-step,.entity-meta,.entity-meta>div,.khora-footer,.artifact figcaption,
.memory-register,.code-bottom,.unavailable-operation,.section-head,.archive-entry {border-color:var(--line)}
.code a,.run,.dream-word,.code .k {color:var(--accent)}
.code .s,.code .n,.code .f {color:var(--ink)}
.code .code-gold,.system-details .system-accent {color:var(--accent)}
.manifesto .mp.last {font-size:calc(var(--narrative-size) * 1.16);color:var(--accent)}
.code .p,.code .c,.code .ln::before,.code-cap,.code-bottom {color:var(--muted)}
.entities {background:#191a1ceb;color:var(--ink)}
.entities .micro,.entities .eyebrow,.entities .body,.entities .entity-caption,.entities .entity-meta dt,
.observation-trace p {color:var(--muted)}
.entities .section-no {color:var(--accent)}
.entities .keyword,.entity-thought em,.archive-entry a {color:var(--accent)}
.entities .entity-khora .entity-thought,#khora-dialog-title,
#kore-dialog .observation-prose p:first-child {color:var(--accent)}
.archive-entry a {
  font-size:clamp(1.125rem,1.25vw,2rem);
  line-height:1.35;text-decoration:underline;text-decoration-thickness:1px;
  text-underline-offset:.25em;
}
.archive-entry a:hover,.archive-entry a:focus-visible {color:var(--light)}
.entities .entity-series-link {
  display:inline-flex;align-items:center;min-height:44px;margin-top:.75rem;
  color:var(--accent);font:400 clamp(1rem,1.35vw,1.25rem)/1.45 var(--mono);text-underline-offset:.35em;
}
.entities .entity-series-link:hover,.entities .entity-series-link:focus-visible {color:var(--light)}
.artwork-frame {
  display:block;
  --frame-diagonal:color-mix(in srgb,var(--accent) 53%,transparent);
  /* The two diagonal directions join the outer border to the picture border. */
  --frame-backslash:linear-gradient(45deg,transparent calc(50% - .5px),var(--frame-diagonal) 0 calc(50% + .5px),transparent 0);
  --frame-slash:linear-gradient(135deg,transparent calc(50% - .5px),var(--frame-diagonal) 0 calc(50% + .5px),transparent 0);
  padding:var(--frame-depth);
  border:1px solid var(--line);
  border-color:color-mix(in srgb,var(--accent) 29%, transparent);
  background:
    var(--frame-backslash) left top,
    var(--frame-slash) right top,
    var(--frame-slash) left bottom,
    var(--frame-backslash) right bottom;
  background-size:var(--frame-depth) var(--frame-depth);
  background-origin:padding-box;
  background-repeat:no-repeat;
}
.artwork-frame picture {
  display:block;
  border:1px solid var(--line);
  border-color:color-mix(in srgb,var(--accent) 45%,transparent);
}
.artwork-frame img {display:block;width:100%;height:auto}
.artifact:has(.artwork-frame)::before,.artifact:has(.artwork-frame)::after {content:none}
.entities #kore > .artifact {
  --kore-artwork-height:1000px;
  --kore-frame-width:calc(var(--kore-artwork-height) * var(--kore-artwork-ratio) + var(--frame-extent));
}
.entities #kore > .artifact > :is(.artifact-button,figcaption) {max-width:var(--kore-frame-width);margin-inline:auto}
.entities #kore-open img {max-height:none}
@media(min-width:2100px) {
  .entities #kore > .artifact {--kore-artwork-height:1200px}
}
.entities .entity-khora:has(> .artifact) {
  display:flex;width:100%;align-items:center;
  gap:clamp(2rem,3.2vw,4rem);padding-top:clamp(2rem,5vw,5rem);
}
.entities .entity-khora > .artifact {
  width:min(100%,calc(.9 * var(--khora-artwork-width) + var(--frame-extent)));max-width:none;min-width:0;
}
.entities .entity-khora > .entity-info {flex:1 0 clamp(21rem,27%,29rem);min-width:0;max-width:39rem}
@media(max-width:1199px) {
  .entities .entity-khora:has(> .artifact) {flex-direction:column;align-items:stretch}
  .entities .entity-khora > .entity-info {flex-basis:auto;padding-top:0}
}
@media(min-width:1000px) {
  #khora-dialog.home-observation {width:min(1900px,94vw)}
  #khora-dialog[open] {grid-template-columns:minmax(0,1.85fr) minmax(0,1fr)}
}
.trace-outline {border-color:var(--accent);box-shadow:6px -5px 0 -1px var(--paper),6px -5px 0 0 var(--line)}
.absence {background:#212224;outline-color:#665e4d66}
.system {background:#252628e8}
.process-step[aria-pressed="true"],.process-step[aria-pressed="true"] span {color:var(--accent);border-color:var(--accent)}
.newsletter-fields button {color:var(--paper);background:var(--accent)}
.newsletter-fields button:hover {background:#dfd2b2}
.archive-frame,.archive-dialog button,.observation-close {border-color:var(--line);color:var(--ink)}
.archive-frame:hover,.archive-dialog button:hover,.observation-close:hover {border-color:var(--accent)}
@media(min-width:701px) and (max-width:1050px) {
  .topbar {padding-block:.6rem;row-gap:.15rem}
  .hero-stage {min-height:540px}
}
@media(max-width:700px) {
  .shell {width:auto;margin-inline:clamp(18px,5.4vw,32px)}
  .topbar {display:grid;grid-template-columns:minmax(0,1fr) auto;padding:.8rem 0 .25rem;gap:.25rem .8rem}
  .topbar .brand {align-self:center}
  .topbar .language-switch {position:static;grid-column:2;grid-row:1}
  .topnav {grid-row:2;grid-column:1/-1;display:flex;justify-content:space-between;gap:.8rem}
  .topnav a {min-height:44px;font-size:13px}.topnav a span {font-size:10px}
  .hero {min-height:calc(100svh - 110px);padding-bottom:1rem}
  .hero-stage {min-height:clamp(398px,56svh,580px);padding:4.8rem 0 5.8rem}
  .hero-register {top:1.2rem}
  .hero-register .eyebrow {font-size:10px;letter-spacing:.04em;max-width:none}
  .hero-signature {top:auto;bottom:1.1rem;left:0;right:auto;font-size:10px;letter-spacing:.04em}
  .hero[data-composition="lateral"] .hero-stage {min-height:clamp(440px,58svh,610px);justify-content:flex-start;padding-block:4.2rem 3.4rem}
  .field-plate {left:-4%;right:-4%;top:9%;bottom:10%}
  .hero[data-composition="lateral"] .field-plate {
    position:relative;inset:auto;order:1;align-self:flex-end;flex:none;
    width:87%;height:clamp(160px,25svh,255px);margin:.2rem 0 0;
  }
  .hero[data-composition="lateral"] .hero-actions {width:100%}
  .hero #question {display:flex;flex-direction:column;font-size:clamp(40px,11.7vw,78px)}
  /* Give each animated layer room for ink and blur without moving its baseline. */
  .hero #question .phrase {padding-block:.4em;margin-block:-.4em;overflow:visible}
  .field-plate canvas {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
  html[lang="en"] .hero #question {font-size:clamp(26px,7.65vw,51px)}
  .hero-actions {margin:.85rem 0 0}
  .hero-actions .expose-button {font-size:11px;min-height:44px}
  .hero-note .micro,.hero-footer .micro {font-size:10px}
  .hero-note p {font-size:15px}.hero-note br {display:none}
  .hero-bottom {flex-direction:row;align-items:center;padding:.85rem 0;gap:1.2rem}
  .hero-bottom>div {flex:1.2;min-width:0}
  .hero-bottom .hero-note {flex:1;min-width:0;max-width:none}
  .hero-bottom .sub {font-size:17px;max-width:24ch}
  .scroll-link {flex-shrink:0;max-width:15ch;font-size:10px;gap:.55rem}
  .hero-footer {justify-content:space-between;align-items:start;gap:1rem;padding:.65rem 0 0}
  .hero-footer .micro {max-width:46%;line-height:1.5}.hero-footer .micro:last-child {display:block;text-align:right}
  .hero .toolbar {position:static;display:grid;grid-template-columns:1fr 1.4fr;width:100%;margin:.9rem 0 0}
}
@media print {
  :root {color-scheme:light;--paper:white;--ink:#222;--light:#222;--muted:#444;--accent:#574b34;--panel:white}
  .system,.entities {background:white}
}
/* Matter selector beneath the lateral sphere. */
.hero-stage:has(.matter-mode) .field-plate {bottom:12%}
.matter-mode {
  position:absolute;left:44%;right:-1%;bottom:.75rem;text-align:center;
  color:var(--muted);line-height:1.2;
}
.matter-mode [role="group"] {display:flex;align-items:center;justify-content:center;gap:.28rem}
.matter-mode [role="group"] span {color:var(--muted);font:11px var(--mono)}
.matter-mode button {
  background:none;color:var(--muted);border:0;padding:0 .5rem;min-height:44px;min-width:48px;
  font:400 11px/1 var(--mono);letter-spacing:.11em;cursor:pointer;
}
.matter-mode button[aria-pressed="true"] {
  color:var(--accent);text-decoration:underline;text-underline-offset:.45em;
}
.matter-mode button:focus-visible {outline:1px solid var(--accent);outline-offset:-3px}
.matter-mode p {margin:0;font:italic 15px/1.3 var(--display);color:var(--muted)}
@media(max-width:700px) {
  .hero-stage:has(.matter-mode) .field-plate {inset:auto}
  .matter-mode {position:static;order:2;width:87%;align-self:flex-end;margin:0 0 .5rem}
}

/* Above the approved desktop range, let the shared margins open gradually. */
@media screen and (min-width:1921px) {
  .shell {width:clamp(1680px,calc(68% + 374.4px),2960px)}
  .hero {
    --growth:clamp(0px,calc(1vw - 19.2px),19.2px);
    --field-axis:min(78%,calc(72.5% + min(105px,64 * var(--growth))));
    --field-max-height:1180px;
    --field-width:min(57%,calc(958px + 14 * var(--growth)));
  }
  .hero #question {
    font-size:clamp(66px,min(7.45vw,11.65vh,calc(148px + 3.4 * var(--growth))),212px);
  }
  html[lang="en"] .hero #question {
    font-size:clamp(48px,min(5.2vw,9.35vh,calc(100px + 2.1 * var(--growth))),140px);
  }
  .hero[data-composition="lateral"] .field-plate {
    left:var(--field-axis);right:auto;top:50%;bottom:auto;
    width:var(--field-width);height:min(76%,var(--field-max-height));transform:translate(-50%,-50%);
  }
  .field-plate canvas {position:absolute;left:50%;top:50%;width:var(--field-side);height:var(--field-side);transform:translate(-50%,-50%);pointer-events:none}
  .matter-mode {
    left:var(--field-axis);right:auto;width:var(--field-width);transform:translateX(-50%);
    bottom:max(calc(.75rem + .8 * var(--growth)),calc(50% - var(--field-max-height) / 2 - 4rem));
  }
  .hero-actions {margin-top:calc(1.45rem + var(--growth))}
  .hero-register,.hero-signature {top:calc(1.7rem + .7 * var(--growth))}
  .hero-bottom {padding-block:calc(1.15rem + .65 * var(--growth)) calc(1.25rem + .65 * var(--growth))}
  .hero-register .eyebrow,.hero-signature,.hero-actions .expose-button,.matter-mode button {
    font-size:calc(11px + .12 * var(--growth));
  }
  .entity-caption {max-width:62ch}
  .newsletter-form {max-width:50rem}
}
