/* Spatial Study 01: isolated viewport, rigid content surfaces and soft depth layers. */
:root{color-scheme:dark;--paper:#e9e8e2;--muted:#959c9f;--mint:#b0ddd0;--line:#ffffff1e;--x-space:65vw;--y-space:64vh;--tile-width:clamp(410px,34vw,820px)}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:Arial,Helvetica,sans-serif;background:#101318;color:var(--paper)}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--mint);outline-offset:6px}button{background:none;border:0}button:hover,a:hover{color:var(--mint)}[hidden]{display:none!important}
.hud{position:fixed;z-index:20;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:28px 38px;pointer-events:none}.hud>*{pointer-events:auto}.hud p{margin:0;font-size:11px;letter-spacing:.17em}.hud p span{margin-left:18px;color:var(--muted)}.brand{font-weight:800;letter-spacing:.12em;font-size:20px}.brand span{color:var(--mint);font-size:22px;margin-left:8px}.hud button{font-size:12px;letter-spacing:.03em;border-bottom:1px solid #ffffff40;padding:6px 0}.footer{top:auto;bottom:0;padding:24px 38px;font-size:10px;color:var(--muted)}.footer p{font-size:11px;letter-spacing:.025em}.footer #mode{letter-spacing:.16em}.footer #home-camera{position:absolute;left:50%;transform:translateX(-50%)}
#viewport{position:fixed;inset:0;overflow:clip;isolation:isolate}#world{position:absolute;inset:0;will-change:transform}#backdrop{position:absolute;inset:-80%;background:radial-gradient(ellipse at 55% 44%,#24313a6b,transparent 38%),radial-gradient(ellipse at 30% 70%,#31423938,transparent 28%),#101318;will-change:transform}.field-lines{position:absolute;inset:0;background-image:linear-gradient(#e6e8e306 1px,transparent 1px),linear-gradient(90deg,#e6e8e306 1px,transparent 1px);background-size:120px 120px;mask-image:radial-gradient(ellipse,#000,transparent 70%)}.orbit{position:absolute;border:1px solid #cfdbd21b;border-radius:50%;left:50%;top:50%;width:1800px;height:780px;transform:translate(-50%,-50%) rotate(-26deg)}.orbit-b{width:2700px;height:1200px;transform:translate(-50%,-50%) rotate(24deg)}
.tile{position:absolute;left:calc(50% + var(--rx)*var(--x-space));top:calc(50% + var(--ry)*var(--y-space));width:var(--tile-width);transform:translate(-50%,-50%);perspective:1800px;perspective-origin:50% 50%;--rx:0;--ry:0}.surface{position:relative;padding:clamp(28px,2.6vw,54px);background:linear-gradient(135deg,#1b2127ef,#171c21ef);border:1px solid #d9e8dd27;box-shadow:0 22px 65px #00000040;will-change:transform;transform-style:preserve-3d}.surface:before{content:"";position:absolute;inset:-1px;border:1px solid #cbe5d9;opacity:var(--lift-light,0);pointer-events:none}.surface:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#dcffe50b,transparent 65%);opacity:var(--lift-light,0);pointer-events:none}.tile-center{width:clamp(620px,46vw,1120px)}.hero-surface{background:linear-gradient(128deg,#202a2af5,#192124f5);padding:clamp(38px,3.4vw,70px)}.kicker{font-size:11px!important;letter-spacing:.18em;font-weight:500;color:var(--mint);margin:0 0 27px!important}.surface h1{font-size:clamp(84px,7.5vw,190px);letter-spacing:-.07em;line-height:.95;font-weight:500;margin:0 0 24px;white-space:nowrap}.hero-star{font-size:.47em;display:inline-block;vertical-align:top;margin:5px 0 0 18px;color:var(--mint)}.hero-subtitle{font-size:clamp(27px,2.2vw,48px)!important;line-height:1.2!important;letter-spacing:-.035em;margin-bottom:22px!important}.surface em{font-family:Georgia,serif;font-weight:400;color:var(--mint)}.surface p{font-size:clamp(14px,1vw,19px);line-height:1.65;color:#b5bebc;margin:0 0 22px;max-width:49em}.description{max-width:40em!important}.surface h2{font-size:clamp(32px,2.35vw,57px);line-height:1.12;letter-spacing:-.045em;font-weight:500;margin:0 0 25px}.hero-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:24px;gap:20px}.tiny,.item-meta{font-size:9px!important;letter-spacing:.14em;line-height:1.5!important;color:var(--muted)!important;margin:0!important}.text-button{font-size:12px;white-space:nowrap;padding:4px 0}.line-list{padding:0;list-style:none;margin:22px 0 26px}.line-list li{border-top:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:15px 0;font-size:clamp(14px,1vw,20px)}.line-list span{font-size:10px;color:var(--muted)}.line-list b{margin-left:auto;font-weight:400;color:var(--mint)}.project-heading{display:flex;justify-content:space-between;gap:20px}.project-mark{font-size:74px;line-height:1;font-family:Georgia,serif;color:var(--mint);width:100px;position:relative;transform:rotate(-10deg)}.project-mark:before{content:"";position:absolute;left:-13px;top:5px;width:110px;height:60px;border:1px solid #b0ddd066;border-radius:50%;transform:rotate(-24deg)}.project-mark span{font-size:10px;margin-left:3px}.action{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:17px 0;border-top:1px solid #b0ddd060;border-bottom:1px solid #b0ddd060;font-size:clamp(13px,1vw,19px);color:var(--mint);width:100%;text-align:left}.item-meta{display:flex;justify-content:space-between;margin-top:20px!important}.domain-row{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}.domain-row span{font-size:clamp(13px,1.15vw,22px);padding:8px 12px;border:1px solid var(--line)}.note-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;border-top:1px solid var(--line);padding-top:20px}.note-grid b{font-size:10px;letter-spacing:.09em;color:var(--mint);display:block;margin-bottom:8px}.note-grid span{font-size:13px;color:var(--muted)}.corner .surface{background:linear-gradient(135deg,#192126ee,#151b20ee)}.material-art{display:flex;gap:18px;margin:28px 0 38px;height:72px;align-items:center;justify-content:center}.material-art i{width:115px;height:65px;border:1px solid #b0ddd078;background:#b0ddd00b;transform:skewY(-16deg)}.material-art i:nth-child(2){transform:skewY(-16deg) translateY(-10px)}.material-art i:nth-child(3){transform:skewY(-16deg) translateY(-20px)}.world-annotation{position:absolute;top:50%;font-size:10px;letter-spacing:.5em;color:#bdd3c25c;writing-mode:vertical-rl}.annotation-west{left:calc(50% - 37vw)}.annotation-east{left:calc(50% + 37vw)}
#attention{position:absolute;top:0;left:0;width:800px;height:800px;border-radius:50%;background:radial-gradient(ellipse,#ceeade08 0%,#d1fae503 40%,transparent 70%);pointer-events:none;will-change:transform,opacity;mix-blend-mode:screen}.edge{position:absolute;z-index:12;font-size:9px;letter-spacing:.16em;color:#b5c7bb;padding:13px;display:flex;gap:12px;align-items:center;background:#11171adb}.edge i{display:block;width:3px;height:32px;background:var(--mint);box-shadow:0 0 18px #b0ddd038}.edge-left{left:0;top:50%;transform:translateY(-50%);border-right:1px solid #b0ddd042;border-radius:0 6px 6px 0;writing-mode:vertical-rl}.edge-right{right:0;top:50%;transform:translateY(-50%);border-left:1px solid #b0ddd042;border-radius:6px 0 0 6px;writing-mode:vertical-rl}.edge-top{left:50%;top:0;transform:translateX(-50%);border-bottom:1px solid #b0ddd042;border-radius:0 0 6px 6px}.edge-bottom{left:50%;bottom:0;transform:translateX(-50%);border-top:1px solid #b0ddd042;border-radius:6px 6px 0 0}.edge-top i,.edge-bottom i{width:32px;height:3px}.edge:hover{background:#1d2b27}.edge-nav{position:absolute;inset:0;pointer-events:none}.edge-nav button{pointer-events:auto}.edge-top{top:84px}.edge-bottom{bottom:68px}
#controls{position:fixed;right:32px;top:83px;width:300px;max-height:calc(100vh - 115px);overflow:auto;z-index:30;background:#151d21f7;border:1px solid #aecfc74d;padding:24px;box-shadow:0 25px 100px #0007;backdrop-filter:blur(15px);font-size:12px}.control-title{display:flex;align-items:center;justify-content:space-between;color:var(--mint);font-size:10px;letter-spacing:.13em;margin-bottom:18px}.control-title button{font-size:24px;padding:0 5px}#controls label{display:block;border-top:1px solid var(--line);padding:15px 0}#controls .switch{display:flex;justify-content:space-between;align-items:center}#controls output{float:right;color:var(--mint)}#controls input[type=range]{width:100%;margin-top:14px;accent-color:var(--mint)}#controls input[type=checkbox]{accent-color:var(--mint)}#diagnostics{font:10px/1.6 monospace;color:var(--mint);white-space:pre-line}#controls .control-note{font-size:11px;line-height:1.6;color:var(--muted);margin-bottom:0}#sector-debug{position:absolute;inset:0;z-index:16;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);pointer-events:none}#sector-debug span{border:1px solid #b0ddd024;font:11px monospace;color:#b0ddd08a;padding:8px}#sector-debug span.active{background:#b0ddd015;border-color:#b0ddd090}.fallback{position:fixed;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(25px,8vw,130px);background:radial-gradient(ellipse at right,#22352c,#101318 70%);z-index:18}.fallback h1{font-size:clamp(32px,5vw,70px);line-height:1.05;font-weight:500;letter-spacing:-.04em;margin:0 0 30px}.fallback p{max-width:550px;line-height:1.65;color:var(--muted)}.fallback a{color:var(--mint);border-bottom:1px solid var(--mint);padding-bottom:10px}.no-script{position:fixed;inset:0;background:#101318;z-index:50;padding:25vh 10vw;font-size:24px}
@media(max-height:850px){.surface{padding:24px 32px}.surface h2{font-size:30px;margin-bottom:18px}.surface p{font-size:14px;margin-bottom:16px}.kicker{margin-bottom:19px!important}.hero-surface{padding:30px 42px}.surface h1{font-size:90px;margin-bottom:20px}.hero-subtitle{font-size:27px!important}.line-list li{padding:11px 0}.hero-bottom{padding-top:18px}.hud{padding:20px 28px}.footer{padding:20px 28px}.edge-top{top:66px}.edge-bottom{bottom:57px}.domain-row{margin:18px 0}.tile{width:clamp(410px,34vw,820px)}.tile-center{width:clamp(620px,46vw,1120px)}}
@media(max-width:1100px){.hud p span{display:none}.footer #mode{display:none}.footer #home-camera{position:static;transform:none}.footer p{max-width:60%;line-height:1.5}}
/* V2: actual 150% canvas, compact presentation and a shared signed curvature grid. */
#world{inset:auto;left:-25vw;top:-25vh;width:150vw;height:150vh}
:root{--tile-width:clamp(340px,23vw,480px)}
.tile{width:var(--tile-width);perspective:2400px}.tile-center{width:clamp(410px,25vw,520px)}
.surface,.hero-surface{padding:22px 25px;box-shadow:0 var(--depth-shadow,18px) 45px #0006}
.surface .kicker{font-size:9px!important;letter-spacing:.15em;margin-bottom:16px!important}
.surface h1{font-size:clamp(60px,4vw,72px);margin-bottom:16px;letter-spacing:-.06em}
.hero-star{margin-left:12px}.hero-subtitle{font-size:21px!important;line-height:1.2!important;margin-bottom:14px!important}
.surface h2{font-size:27px;margin-bottom:15px;line-height:1.1}.surface p{font-size:12px;line-height:1.55;margin-bottom:15px}
.hero-bottom{padding-top:14px;gap:12px}.tiny,.item-meta{font-size:7px!important;letter-spacing:.1em}
.text-button{font-size:10px}.line-list{margin:14px 0 16px}.line-list li{padding:10px 0;font-size:12px;gap:12px}
.action{font-size:12px;padding:12px 0}.item-meta{margin-top:14px!important}.project-mark{font-size:48px;width:66px}
.project-mark:before{left:-9px;width:73px;height:38px}.project-mark span{font-size:8px}
.domain-row{margin:16px 0;gap:7px}.domain-row span{font-size:12px;padding:6px 8px}
.note-grid{gap:14px;padding-top:14px}.note-grid b{font-size:8px}.note-grid span{font-size:11px}
.material-art{height:40px;margin:17px 0 25px;gap:12px}.material-art i{width:75px;height:37px}
.field-lines{display:none}#membrane{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke:#b0ddd06e;stroke-width:.8;will-change:opacity}
#membrane path{vector-effect:non-scaling-stroke}body[data-shape=concave] .surface{box-shadow:inset 0 8px 25px #0004,0 var(--depth-shadow,18px) 45px #0005}
#controls select{display:block;width:100%;background:#11191b;color:var(--mint);border:1px solid #b0ddd052;font:12px Arial;padding:10px;margin-top:12px}
header.hud{background:linear-gradient(#101318f2 50%,#10131800)}.footer.hud{background:linear-gradient(#10131800,#101318ef 65%)}
