:root {
  color-scheme: dark;
  --bg: #10110f;
  --text: #f4f3ea;
  --muted: #bcbfb3;
  --lime: #dbff76;
  --line: #30332c;
  --ease: cubic-bezier(.2,.75,.25,1);
  --page: min(calc(100% - 88px), 1440px);
  --mono: ui-monospace, 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { scrollbar-width: none; scroll-behavior: smooth; scroll-padding-top: 94px; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 'Helvetica Neue', Arial, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
.skip { position: fixed; z-index: 20; top: 8px; left: 12px; padding: 10px 16px; background: var(--lime); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.progress { position: fixed; z-index: 12; inset: 0 0 auto; height: 2px; background: var(--lime); transform: scaleX(var(--progress, 0)); transform-origin: left; pointer-events: none; }
.topbar, main, footer { width: var(--page); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #10110fed; backdrop-filter: blur(18px); }
.logo { display: inline-flex; align-items: center; gap: .2em; font-size: 30px; font-weight: 900; letter-spacing: -.09em; }
.logo span { color: var(--lime); font-size: .65em; transition: transform .55s var(--ease); }
.logo:hover span { transform: rotate(75deg); }
nav { display: flex; align-items: center; gap: clamp(14px, 3.2vw, 48px); }
nav a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
nav a:hover, nav a[aria-current="location"] { color: var(--lime); }
.nav-contact { border: 1px solid var(--line); color: var(--text); border-radius: 100px; padding-inline: 15px; }
.hero { min-height: min(780px, calc(100svh - 76px)); display: grid; grid-template-columns: .82fr 1fr; align-items: center; gap: 2vw; padding: clamp(38px, 6vw, 84px) 0; }
.hero-copy { isolation: isolate; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 600 11px/1.45 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.signal { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 15px #dbff7680; flex: 0 0 auto; }
h1 { font-size: clamp(87px, 12.1vw, 193px); font-weight: 700; line-height: .78; letter-spacing: -.091em; margin: 34px 0; }
h1 span { display: block; }
h1 span + span { margin-top: .075em; }
h1 i { color: var(--lime); font-style: normal; }
.intro { max-width: 34ch; color: var(--muted); font-size: clamp(16px, 1.45vw, 21px); }
.pill { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; width: fit-content; min-height: 48px; padding: 9px 17px; border: 1px solid currentColor; border-radius: 80px; font-size: 14px; font-weight: 700; transition: color .24s, background .24s, transform .32s var(--ease); }
.pill span { transition: transform .35s var(--ease); }
.pill:hover span { transform: translate(3px,-2px); }
.pill:active { transform: scale(.96); }
.hero .pill, .contact .pill { margin-top: 27px; }
.primary { background: var(--lime); border-color: var(--lime); color: #181e0c; }
.primary:hover { background: #efffc5; }
.scene { isolation: isolate; position: relative; aspect-ratio: 1.13; min-width: 0; align-self: center; overflow: hidden; background: radial-gradient(ellipse at 46% 48%, #293317 0%, #161b12 41%, #10110f 77%); }
.scene-grid { position: absolute; inset: 0; background-image: linear-gradient(#aab88016 1px, transparent 1px), linear-gradient(90deg, #aab88016 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse, black, transparent 75%); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb-fallback { position: absolute; inset: 21% 23%; border-radius: 50%; background: repeating-radial-gradient(ellipse at 57% 40%, #dbff7633 0 1px, transparent 2px 8px), radial-gradient(ellipse, #97bd3444, #1b240a10 66%, transparent 72%); transform: rotate(-23deg); }
.scene.has-canvas .orb-fallback { display: none; }
.frame-mark, .coordinates { position: absolute; color: #bbc6a3; font: 11px var(--mono); pointer-events: none; }
.frame-mark { font-size: 17px; }
.tl,.tr { top: 5%; }.bl,.br { bottom: 5%; }.tl,.bl { left: 4%; }.tr,.br { right: 4%; }
.coordinates { bottom: 5%; left: 9%; }
.work, .bio, .contact { border-top: 1px solid var(--line); padding-block: clamp(48px, 8vw, 116px); }
.section-head { margin-bottom: clamp(24px, 4vw, 58px); }
h2 { font-size: clamp(54px, 8vw, 132px); letter-spacing: -.085em; line-height: .9; margin-top: 17px; }
h2 em { color: var(--lime); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.09em; }
.feature { display: grid; grid-template-columns: .9fr 1fr; min-height: 380px; margin-bottom: 18px; border-radius: 24px; overflow: hidden; color: #1b1720; }
.feature-copy { padding: clamp(26px, 4.6vw, 72px); align-self: center; }
.feature .eyebrow { color: #453c53; }
.feature h3 { margin: 12px 0 14px; font-size: clamp(49px, 7.1vw, 108px); letter-spacing: -.092em; line-height: .88; }
.feature h3 span { color: #6044a5; }
.feature-copy > p:not(.eyebrow) { max-width: 35ch; line-height: 1.48; }
.feature .pill { margin-top: 22px; }
.feature .pill:hover { background: #1b1720; color: #fff; }
.feature :focus-visible { outline-color: #1b1720; }
.stop { background: #dcd0fc; }
.ikari { background: #ffc972; }
.ikari h3 span { color: #7b3108; }
.ikari .eyebrow { color: #622b0f; }
.stop-art, .ikari-art { display: grid; place-items: center; position: relative; isolation: isolate; min-height: 310px; padding: 34px; overflow: hidden; }
.stop-art { background: radial-gradient(ellipse at 48% 68%, #b29af0, transparent 68%); }
.ikari-art { background: radial-gradient(ellipse at 46% 53%, #ee7824, transparent 74%); }
.stop-orbit, .ikari-ring { position: absolute; pointer-events: none; z-index: -1; width: 75%; aspect-ratio: 1; }
.stop-orbit { border: 2px solid #7654bf55; border-radius: 44% 56% 57% 43%; box-shadow: 0 0 0 22px #7654bf25, 0 0 0 46px #7654bf1b, 0 0 0 73px #7654bf16; transform: rotate(-25deg) scaleY(.73); }
.ikari-ring { border-radius: 50%; background: repeating-radial-gradient(circle, #65311630 0 1px, transparent 1px 14px); mask-image: radial-gradient(circle, black 37%, transparent 74%); }
.mini { width: min(100%, 420px); min-height: 230px; padding: clamp(17px, 3vw, 29px); border-radius: 18px; box-shadow: 0 24px 56px #281b4c35; transform: perspective(850px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease); }
.stop-mini { background: #f8f3ff; }
.ikari-mini { background: #281a16; color: #fff4df; box-shadow: 0 24px 56px #48210f56; }
.mini-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #83758c50; padding-bottom: 10px; margin-bottom: 14px; }
.mini-top strong { letter-spacing: -.045em; font-size: 19px; }
.mini-top span { font: 10px var(--mono); text-align: right; }
.stop-mini > p:first-of-type { font-weight: 700; line-height: 1.27; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-block: 13px 9px; }
.choices button, .steps button { border: 1px solid #45345f45; background: transparent; color: inherit; cursor: pointer; border-radius: 8px; min-height: 44px; padding: 6px 7px; font-size: 12px; font-weight: 650; transition: background .25s, color .25s; }
.choices button:hover, .choices button[aria-pressed="true"] { background: #e4d7ff; }
.choices button span { color: #65459c; }
.scenario-result, .step-result { font-size: 13px; line-height: 1.35; min-height: 2.7em; }
.scenario-result { color: #523973; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps button { border-color: #ffca7350; color: #fff4df; }
.steps button:hover, .steps button[aria-pressed="true"] { background: #ffc972; color: #281a16; }
.ikari-mini :focus-visible { outline-color: #ffc972; }
.step-progress { height: 3px; background: #ffca7340; margin: 16px 0 12px; border-radius: 5px; overflow: hidden; }
.step-progress span { display: block; height: 100%; background: #ffc972; transform: scaleX(var(--step, .3333)); transform-origin: left; transition: transform .38s var(--ease); }
.archive { margin-top: clamp(46px, 7vw, 100px); }
.archive-head { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; justify-content: space-between; margin-bottom: 20px; }
.archive-head h3 { font-size: clamp(30px, 4vw, 56px); letter-spacing: -.064em; line-height: .95; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 44px; border: 1px solid #535748; background: transparent; color: var(--text); border-radius: 30px; padding: 5px 13px; cursor: pointer; font-size: 13px; }
.filters button:hover { border-color: var(--lime); }
.filters [aria-pressed="true"] { background: var(--lime); color: var(--bg); }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.archive-grid article { display: flex; flex-direction: column; align-items: start; padding: clamp(18px, 2.4vw, 34px); border: 1px solid var(--line); border-radius: 15px; background: #191b16; transition: border-color .25s, transform .3s var(--ease); }
.archive-grid article:hover, .archive-grid article:focus-within { border-color: #a0ba61; transform: translateY(-3px); }
.archive-grid article[hidden] { display: none; }
.archive-grid small { color: var(--lime); font: 10px var(--mono); letter-spacing: .085em; }
.archive-grid h3 { font-size: clamp(22px, 2.35vw, 36px); letter-spacing: -.055em; line-height: 1.05; margin: 13px 0 10px; }
.archive-grid p { color: var(--muted); font-size: 15px; }
.archive-grid a { margin-top: auto; padding: 13px 0 3px; color: var(--lime); font-size: 14px; font-weight: 700; }
.bio { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 10%; align-items: start; }
.bio ol { list-style: none; padding: 0; margin: 0; }
.bio li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.bio li:first-child { padding-top: 0; }
.bio h3 { letter-spacing: -.04em; font-size: clamp(23px, 3vw, 36px); margin-bottom: 3px; }
.bio li p { color: var(--muted); max-width: 50ch; }
.contact { position: relative; background: radial-gradient(ellipse at 90% 75%, #9fcb2223, transparent 60%); }
footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 13px; }
footer a:hover { color: var(--lime); }
.motion-ok .reveal { opacity: 0; transform: translateY(26px); transition: transform .72s var(--ease), opacity .72s var(--ease); }
.motion-ok .reveal.visible, .motion-ok .reveal:focus-within { opacity: 1; transform: none; }
.motion-ok .hero-copy > * { animation: enter .85s var(--ease) both; }
.motion-ok .hero-copy h1 { animation-delay: .07s; }
.motion-ok .hero-copy .intro { animation-delay: .16s; }
.motion-ok .hero-copy .pill { animation-delay: .24s; }
.motion-ok .scene { animation: enter 1.05s .1s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  :root { --page: calc(100% - 48px); }
  .hero { min-height: 550px; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature { min-height: 310px; }
  .stop-art, .ikari-art { padding: 19px; }
}
@media (max-width: 640px) {
  :root { --page: calc(100% - 32px); }
  html { scroll-padding-top: 75px; }
  .topbar { min-height: 61px; }
  nav { gap: 11px; }
  nav a { font-size: 13px; }
  .nav-contact { padding-inline: 10px; }
  .hero { grid-template-columns: 1fr; gap: 14px; padding: 45px 0 20px; min-height: auto; }
  h1 { margin: 24px 0 19px; font-size: clamp(58px, 13.5vw, 87px); }
  h1 span { display: inline; }
  h1 span + span { margin-left: .12em; }
  .intro { max-width: 37ch; }
  .hero .pill { margin-top: 17px; }
  .scene { aspect-ratio: 1.54; }
  .feature, .bio, .archive-grid { grid-template-columns: 1fr; }
  .feature { border-radius: 17px; }
  .feature h3 { font-size: clamp(47px, 12vw, 70px); }
  .stop-art, .ikari-art { min-height: 240px; padding: 12px 18px 23px; }
  .mini { min-height: 192px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ok .reveal { opacity: 1; transform: none; }
}
.arrow-out { display: inline-block; position: relative; flex: 0 0 auto; width: .74em; height: .74em; vertical-align: .04em; }
.arrow-out::before { content: ''; position: absolute; top: 0; right: 0; width: .43em; height: .43em; border-top: 1.5px solid; border-right: 1.5px solid; }
.arrow-out::after { content: ''; position: absolute; top: 50%; left: -.08em; width: .89em; height: 1.5px; background: currentColor; transform: rotate(-45deg); }
.scene { touch-action: pan-y; }

/* The opening stays in view while native scrolling drives its composition. */
.opening { position: relative; }
.hero { isolation: isolate; }
.hero h1 b { display: inline-block; font: inherit; }
.story-light, .story-chapter, .story-timeline { display: none; }

.story-motion .opening {
  --p: 0;
  --exit: 0;
  --chapter: 0;
  --color: 0;
  --wash: 0;
  min-height: 177svh;
}
.story-motion .hero {
  position: sticky;
  top: 76px;
  height: calc(100svh - 76px);
  min-height: 0;
  padding-block: clamp(24px, 5vh, 68px);
}
.story-motion .hero-copy {
  z-index: 3;
  opacity: calc(1 - var(--exit));
  transform: translate3d(0, calc(-84px * var(--exit)), 0);
}
.story-motion .hero-copy:focus-within { opacity: 1; transform: none; }
.story-motion .hero h1 > span { overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.story-motion .hero h1 b { animation: title-rise 1.18s cubic-bezier(.16,1,.3,1) both; }
.story-motion .hero h1 span + span b { animation-delay: .12s; }
@keyframes title-rise { from { transform: translateY(112%); } to { transform: translateY(0); } }

.story-motion .scene { z-index: -1; animation: none; overflow: visible; background: none; }
.story-motion .scene::before {
  content: '';
  position: absolute;
  inset: -8%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #293317, #161b12 43%, transparent 71%);
  opacity: calc(1 - var(--color));
}
.story-motion .scene canvas { translate: calc(-13vw * var(--color)) calc(2vh * var(--color)); }
.story-motion .frame-mark, .story-motion .coordinates { opacity: calc(1 - var(--exit)); }
.story-motion .scene-grid {
  opacity: calc(1 - .75 * var(--color));
  transform: perspective(560px) rotateX(calc(31deg * var(--p))) scale(calc(1 + .18 * var(--p)));
}
.story-motion .story-light, .story-motion .story-chapter, .story-motion .story-timeline { display: block; position: absolute; pointer-events: none; }
.story-light {
  z-index: -2;
  inset: 0;
  background: radial-gradient(ellipse at 59% 57%, #613fa0 0%, #362056 27%, #1f1430 48%, transparent 73%);
  opacity: var(--wash);
  transform: scale(calc(.72 + .28 * var(--wash)));
}
.story-chapter {
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(100%, 790px);
  text-align: center;
  color: #f2e7ff;
  opacity: var(--chapter);
  transform: translate(-50%, calc(-50% + 62px * (1 - var(--chapter)))) scale(calc(.9 + .1 * var(--chapter)));
  text-shadow: 0 4px 26px #1a0c2b, 0 0 75px #160e23;
}
.story-chapter strong {
  display: block;
  font-size: clamp(91px, 17vw, 243px);
  line-height: .82;
  letter-spacing: -.09em;
  padding-right: .09em;
  margin: .12em 0 .16em;
}
.story-chapter strong span { color: #c29cff; }
.story-chapter p:first-child { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .15em; }
.story-chapter p:last-child { font-size: clamp(14px, 2vw, 21px); }
.story-timeline { bottom: 20px; left: 50%; translate: -50% 0; width: 66px; height: 2px; background: #c3baaa4a; }
.story-timeline span { display: block; height: 100%; background: #eacaff; transform: scaleX(var(--p)); transform-origin: left; }

.scenario-context { font-weight: 700; line-height: 1.27; }
.scenario-thread { display: grid; gap: 5px; margin-block: 12px; }
.message { width: fit-content; max-width: 92%; padding: 6px 9px; background: #ede4fc; border-radius: 8px 8px 8px 2px; font-size: 12px; line-height: 1.35; }
.message.own { justify-self: end; color: #fff; background: #64499e; border-radius: 8px 8px 2px 8px; }
.story-motion .message { opacity: var(--shown, 1); transform: translateY(calc(14px * (1 - var(--shown, 1)))); }
.story-motion .stop-mini:focus-within .message { opacity: 1; transform: none; }
.stop-art { min-height: 380px; }
.art-grid { position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(90deg, #32166830 0 1px, transparent 1px 29px), repeating-linear-gradient(#32166830 0 1px, transparent 1px 29px); mask-image: radial-gradient(ellipse, black, transparent 72%); pointer-events: none; }
.ikari .art-grid { background: repeating-linear-gradient(90deg, #55230b35 0 1px, transparent 1px 32px), repeating-linear-gradient(#55230b35 0 1px, transparent 1px 32px); }
.story-motion .feature { --arrival: 1; }
.story-motion .feature-copy h3 { translate: 0 calc(26px * (1 - var(--arrival))); }
.story-motion .stop-orbit { transform: rotate(calc(-68deg + 43deg * var(--arrival))) scale(calc(.75 + .25 * var(--arrival))) scaleY(.73); }
.story-motion .ikari-ring { transform: scale(calc(.65 + .35 * var(--arrival))); }
.story-motion .art-grid { transform: translate3d(0, calc(35px * (1 - var(--arrival))), 0); }
.step-visual { display: flex; gap: 11px; align-items: center; min-height: 46px; padding: 7px 10px; margin-bottom: 9px; border: 1px solid #ffca7350; border-radius: 9px; background: #36231a; color: #ffdb95; font-size: 13px; font-weight: 700; }
.step-glyph { width: 22px; height: 22px; flex: 0 0 22px; background: repeating-linear-gradient(90deg,#ffc972 0 3px, transparent 3px 7px); clip-path: polygon(0 69%,32% 57%,32% 33%,65% 26%,65% 4%,100% 4%,100% 100%,0 100%); }
.step-visual[data-phase="1"] .step-glyph { background: #ffc972; clip-path: polygon(50% 1%,95% 20%,86% 74%,50% 100%,13% 74%,5% 20%); }
.step-visual[data-phase="2"] .step-glyph { background: #ffc972; clip-path: polygon(0 51%,13% 36%,38% 60%,84% 11%,100% 25%,38% 89%); }

@media (max-width: 640px) {
  .story-motion .opening { min-height: 155svh; }
  .story-motion .hero { top: 61px; height: calc(100svh - 61px); align-content: center; padding-block: 15px 24px; gap: 6px; }
  .story-motion .hero h1 > span { display: inline-block; }
  .story-motion .hero h1 span + span { margin-left: .1em; }
  .story-motion .hero .scene { width: min(100%, 42svh); justify-self: center; }
  .story-motion .scene canvas { translate: 0 calc(-18svh * var(--color)); }
  .story-chapter strong { font-size: clamp(72px, 21vw, 128px); }
  .story-light { background: radial-gradient(ellipse at 50% 47%, #59378e, #2b183f 46%, transparent 73%); }
  .story-motion .hero-copy { transform: translate3d(0, calc(-51px * var(--exit)), 0); }
  .stop-art { min-height: 0; }
}
@media (max-height: 520px) {
  .story-motion .opening { min-height: 0; }
  .story-motion .hero { position: relative; top: auto; height: auto; }
}
.story-motion .scene canvas {
  mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
}
.story-motion .work {
  background: radial-gradient(ellipse 78% 420px at 55% 0, #6d419f1e, transparent 85%);
}
body { overflow-x: clip; }
@media (max-width: 640px) {
  .story-motion .scene-grid { transform: perspective(650px) rotateX(calc(20deg * var(--p))) scale(calc(1 - .12 * var(--p))); }
}
