.anomaly-chapter{height:200svh;position:relative;--surface-opacity:1;--identity-opacity:0;--identity-y:54px;--identity-scale:.94;--identity-turn:-5deg;--chapter-progress:0}
.anomaly-stage{position:sticky;top:0;height:100svh;overflow:hidden;isolation:isolate;background:var(--tone-061610);perspective:1200px}
.anomaly-stage>.anomaly-visual{z-index:0;opacity:.82;mask-image:none;background:radial-gradient(ellipse at 50% 50%,var(--anomaly-glow,#2489ef22),transparent 68%)}
.anomaly-stage::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at 50% 50%,transparent 24%,var(--deep) 110%);opacity:calc(.35 + var(--chapter-progress)*.4)}
.anomaly-stage>.center-hero{position:absolute;inset:0;z-index:2;height:100%;min-height:0;padding:clamp(80px,15svh,180px) 5% 95px;background-color:transparent;opacity:var(--surface-opacity);transform:translateY(calc(var(--chapter-progress)*-65px)) scale(calc(1 - var(--chapter-progress)*.07));will-change:opacity,transform}
.anomaly-stage .center-hero .world-controls{max-height:none;overflow:visible;bottom:var(--chapter-header-space,0px)}
.chapter-enter{position:absolute;z-index:4;bottom:calc(35px + var(--chapter-header-space,0px));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:16px;background:transparent;border:0;border-bottom:1px solid var(--line);padding:15px 2px;color:var(--text);font-size:11px;letter-spacing:.3px;white-space:nowrap}
.chapter-enter>span:last-child{font-size:19px;color:var(--mint)}
.chapter-enter-dot{height:5px;width:5px;border-radius:50%;background:var(--mint);box-shadow:0 0 14px var(--mint)}
.chapter-index{position:absolute;z-index:3;left:5%;bottom:calc(34px + var(--chapter-header-space,0px));display:flex;align-items:center;gap:12px;font-size:8px;letter-spacing:1.3px;color:var(--muted);pointer-events:none}
.chapter-index i{width:50px;height:1px;background:var(--line);position:relative}
.chapter-index i:after{content:'';position:absolute;inset:0;transform:scaleX(var(--chapter-progress));transform-origin:left;background:var(--mint)}
.chapter-index>span:last-child{opacity:calc(.35 + var(--chapter-progress)*.65)}
.anomaly-stage>.chapter-identity{position:absolute;z-index:2;top:50%;left:50%;width:min(1040px,88%);max-height:calc(100svh - 135px);height:auto;padding:34px 42px;display:grid;grid-template-columns:.85fr 1.15fr;column-gap:70px;row-gap:26px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--muted) transparent;opacity:var(--identity-opacity);transform:translate3d(-50%,calc(-50% + var(--identity-y)),0) rotateY(var(--identity-turn)) scale(var(--identity-scale));transform-origin:center;background:color-mix(in srgb,var(--deep) 88%,transparent);background-image:none;border:1px solid color-mix(in srgb,var(--mint) 25%,transparent);border-radius:3px;box-shadow:0 28px 100px #0005,0 0 60px var(--anomaly-glow,#2489ef12);backdrop-filter:blur(6px);will-change:opacity,transform}
.chapter-identity:before,.chapter-identity:after{content:'';position:absolute;width:20px;height:20px;border-color:var(--mint);pointer-events:none}
.chapter-identity:before{left:0;top:0;border-left:1px solid;border-top:1px solid}
.chapter-identity:after{right:0;bottom:0;border-right:1px solid;border-bottom:1px solid}
.identity-heading{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:23px;gap:20px}
.identity-code{display:block;font-family:Consolas,monospace;letter-spacing:2px;font-size:9px;color:var(--muted);margin-bottom:13px}
.identity-heading h2{font-size:clamp(30px,3.5vw,50px);font-weight:400;letter-spacing:-.055em}
.identity-heading h2 span{color:var(--mint)}
.identity-signature{font-size:8px;letter-spacing:1.8px;text-align:right;line-height:2.1;color:var(--muted)}
.chapter-identity .identity-statement{font-size:clamp(18px,1.7vw,25px);line-height:1.25;letter-spacing:-.7px;margin-bottom:18px;max-width:340px;color:var(--text)}
.chapter-identity .logo-showcase{height:140px;max-width:260px;min-height:0;margin:0 0 16px;border-radius:2px}
.chapter-identity .logo-showcase img{width:100%;height:100%;object-fit:contain}
.chapter-identity .logo-caption{font-size:6px}
.chapter-identity .about-person h3{font-size:27px;margin-top:0}
.chapter-identity .status{margin:8px 0 18px;font-size:10px}
.chapter-identity .about-person .button{min-height:40px;padding:10px 15px;font-size:10px}
.chapter-identity .about-principles{margin:0}
.chapter-identity .about-principles article{grid-template-columns:30px 1fr;gap:18px;padding:0 0 18px}
.chapter-identity .about-principles article:last-child{padding-bottom:0}
.chapter-identity .about-principles h3{font-size:16px;margin-bottom:5px}
.chapter-identity .about-principles p{font-size:12px;line-height:1.65;color:var(--muted)}
.chapter-identity .principle-icon{font-size:18px;opacity:.85}
.chapter-identity .principle-icon:after{display:none}
.identity-footer{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:16px;gap:15px}
.identity-footer>span{font-family:Consolas,monospace;font-size:8px;letter-spacing:1.5px;color:var(--muted)}
.identity-footer button{background:none;border:0;padding:6px 0;color:var(--text);font-size:10px}
.identity-footer button span{margin-left:20px;color:var(--mint)}
.chapter-static{height:auto}
.chapter-static .anomaly-stage{position:relative;height:auto;overflow:visible;perspective:none}
.chapter-static .anomaly-stage>.anomaly-visual{height:100svh}
.chapter-static .anomaly-stage>.center-hero{position:relative;height:auto;min-height:810px;opacity:1;transform:none}
.chapter-static .anomaly-stage>.chapter-identity{position:relative;left:auto;top:auto;margin:0 auto 70px;max-height:none;opacity:1;transform:none;will-change:auto}
.chapter-static .chapter-enter,.chapter-static .chapter-index,.chapter-static [data-chapter-back]{display:none}
@media(max-width:1000px){.anomaly-stage>.chapter-identity{width:90%;padding:28px;column-gap:35px}.chapter-identity .about-principles p{font-size:10px}.chapter-identity .logo-showcase{height:110px}.chapter-index{font-size:7px;gap:8px}.chapter-index i{width:28px}}
@media(max-width:650px){.anomaly-stage>.center-hero{padding:100px 6% 100px}.anomaly-stage .center-hero h1{font-size:clamp(36px,10.5vw,46px)}.chapter-enter{bottom:calc(26px + var(--chapter-header-space,0px));font-size:10px}.chapter-index{bottom:calc(10px + var(--chapter-header-space,0px));left:50%;transform:translateX(-50%);white-space:nowrap;font-size:6px}.anomaly-stage>.chapter-identity{width:90%;max-height:calc(100svh - 65px);padding:24px 22px;grid-template-columns:1fr;row-gap:22px;backdrop-filter:none;background:color-mix(in srgb,var(--deep) 94%,transparent)}.identity-heading{padding-bottom:18px}.identity-heading h2{font-size:32px}.identity-code{font-size:7px;letter-spacing:1.5px}.identity-signature{font-size:6px;letter-spacing:.8px}.chapter-identity .identity-statement{font-size:20px;max-width:none}.chapter-identity .identity-statement br{display:none}.chapter-identity .logo-showcase{display:none}.chapter-identity .about-person h3{font-size:25px}.chapter-identity .about-principles h3{font-size:15px}.chapter-identity .about-principles p{font-size:12px}.chapter-identity .about-principles article{gap:12px;padding-bottom:22px}.identity-footer>span{font-size:6px;letter-spacing:.6px}.chapter-static .anomaly-stage>.chapter-identity{max-height:none;margin-bottom:35px}.chapter-static .anomaly-stage>.center-hero{min-height:760px}}
@media(prefers-reduced-motion:reduce){.anomaly-stage>.center-hero,.anomaly-stage>.chapter-identity{will-change:auto}}
@media(max-width:650px){
  .anomaly-stage>.center-hero{padding:65px 6% 100px}
  .anomaly-stage .center-hero h1{font-size:clamp(33px,10vw,42px);margin:20px auto 16px}
  .anomaly-stage .center-hero>.pill{font-size:9px;padding:6px 12px}
  .anomaly-stage .center-hero>p{font-size:12px}
  .anomaly-stage .center-hero .button-pair{margin-top:22px;gap:8px}
  .anomaly-stage .center-hero .button{padding:12px 14px;gap:20px;min-height:44px;font-size:10px}
  .anomaly-stage .center-hero .hero-note{display:none}
  .anomaly-stage .center-hero .world-controls{position:relative;inset:auto;margin:26px auto 0;gap:20px 12px;max-height:none;overflow:visible;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .anomaly-stage .world-group legend,.anomaly-stage .cursor-group legend{font-size:6px;letter-spacing:1.4px;margin-bottom:8px}
  .anomaly-stage .world-caption{font-size:7px;min-height:9px;margin-top:8px}
  .anomaly-stage .world-choice,.anomaly-stage .cursor-panel .world-choice{width:36px;height:36px}
  .anomaly-stage .world-choices,.anomaly-stage .cursor-panel .world-choices{gap:0;justify-content:space-between}
  .anomaly-stage .pattern-controls{grid-column:1/-1;grid-row:2}
  .anomaly-stage .pattern-controls .world-choices{justify-content:center;gap:10px}
  .anomaly-stage .theme-controls:before,.anomaly-stage .energy-controls:before{inset:-10px -5px}
  .anomaly-stage .cursor-settings{grid-column:1/-1;grid-row:3;width:100%;margin:0;justify-self:stretch}
  .anomaly-stage .cursor-label{display:none}
  .anomaly-stage .cursor-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
  .anomaly-stage .world-footnote{grid-row:4;margin:0;font-size:6px}
  .anomaly-stage .world-reset{font-size:8px;padding:4px 0}
}
@media(min-width:651px) and (max-width:1100px){
  .anomaly-stage>.center-hero{padding-top:125px}
  .anomaly-stage .center-hero .hero-note{display:none}
  .anomaly-stage .theme-controls{left:calc(50% - 185px);top:auto;bottom:200px}
  .anomaly-stage .energy-controls{right:calc(50% - 185px);top:auto;bottom:200px}
  .anomaly-stage .cursor-settings{left:50%;right:auto;bottom:90px;width:380px;transform:translateX(-50%)}
  .anomaly-stage .cursor-label{display:none}
  .anomaly-stage .cursor-panel{grid-template-columns:1fr 1fr;gap:25px}
}
@media(max-width:650px){
  .anomaly-stage .theme-controls{grid-column:1;grid-row:1}
  .anomaly-stage .energy-controls{grid-column:2;grid-row:1}
  .anomaly-stage .world-footnote{grid-column:1/-1}
  .anomaly-stage .theme-controls .world-choice,.anomaly-stage .energy-controls .world-choice,.anomaly-stage .cursor-panel .world-choice{width:clamp(28px,9vw,40px);height:40px;flex-shrink:1}
}
.chapter-identity .about-principles article{--identity-row:0;opacity:clamp(0,calc((var(--identity-opacity) - var(--identity-row)*.075)*3),1);transform:translateY(calc((1 - var(--identity-opacity))*16px))}
.chapter-identity .about-principles article:nth-child(2){--identity-row:1}
.chapter-identity .about-principles article:nth-child(3){--identity-row:2}
.chapter-identity .about-principles article:nth-child(4){--identity-row:3}
.chapter-identity .about-principles article:nth-child(5){--identity-row:4}
.chapter-static .about-principles article{opacity:1;transform:none}
.chapter-index{opacity:var(--chapter-progress)}
