:root{color-scheme:dark;--ink:#050e14;--panel:#101e25;--text:#efece4;--muted:#9daead;--mint:#a5dcd3;--edge:#2b4146;--toolbar-height:82px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--ink);color:var(--text);font-family:"Helvetica Neue",Arial,sans-serif}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select,input{font:inherit}button{color:inherit;cursor:pointer;border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--mint);outline-offset:5px}button:hover,a:hover{color:#c2eee6}a{color:inherit;text-decoration:none}.hero{position:relative;isolation:isolate;height:calc(100svh - var(--toolbar-height));min-height:500px;overflow:hidden}#scene,.mobile-shade{position:absolute;inset:0;width:100%;height:100%;z-index:-2}.mobile-shade{display:none;z-index:-1}.site-header{position:absolute;top:4.45%;left:4.9%;right:4.7%;display:flex;align-items:center;justify-content:space-between}.wordmark{font-size:clamp(11px,1.1vw,21px);font-weight:500;letter-spacing:.19em;white-space:nowrap}.site-header nav{display:flex;gap:clamp(20px,2.8vw,56px)}.site-header nav button{padding:6px 0;font-size:clamp(12px,1.05vw,21px);font-weight:400;letter-spacing:.01em}.introduction{position:absolute;top:29%;left:4.9%;}.introduction h1{margin:0;font-size:clamp(56px,5.52vw,138px);font-weight:300;letter-spacing:-.047em;line-height:.985;text-shadow:0 1px 8px #050e1440}.introduction h1 span{display:block}.introduction p{margin:clamp(18px,2vw,40px) 0 clamp(22px,2.25vw,45px);font-size:clamp(14px,1.46vw,29px);font-weight:300;letter-spacing:.012em;color:#c4c4bd}.cta{padding:.77em 1.9em;border:1px solid #b2d4ce;outline:1px solid #5b898380;outline-offset:-4px;min-height:42px;font-size:clamp(12px,1.07vw,22px);letter-spacing:.065em;background:#050e1430;transition:background .2s}.cta:hover{background:#183e4255}.scene-footer{position:absolute;bottom:5.1%;left:4.9%;right:4.7%;display:flex;justify-content:space-between;font-size:clamp(9px,.78vw,15px);font-weight:400;letter-spacing:.075em;color:#929e9e}.equation{position:absolute;left:30.5%;top:17%;font-family:Georgia,"Times New Roman",serif;font-size:clamp(23px,3.5vw,72px);color:#89c7c9;opacity:.19;pointer-events:none;white-space:nowrap}.equation sup{font-size:.58em}.equation small{display:block;text-align:right;font-size:.31em;letter-spacing:.04em;margin-top:.5em;margin-right:1em}/* v42: 32px square, with 5px dots blinking in reading order until the first frame. */
.load-status{position:absolute;left:61.1%;top:50.8%;bottom:auto;transform:translate(-50%,-50%);margin:0;width:max-content;max-width:46%;text-align:center;color:#a6dcd3;font-size:13px;line-height:1.6;z-index:2;pointer-events:none}
.loading-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.load-status.is-loading{perspective:96px;perspective-origin:50% 50%}
.loading-grid{display:grid;grid-template-columns:repeat(3,5px);grid-template-rows:repeat(3,5px);grid-auto-flow:row;gap:8.5px;direction:ltr;transform-style:preserve-3d;transform-origin:50% 50%}
.loading-point{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.24;backface-visibility:visible;transform-origin:50% 50%}
.load-status.is-loading .loading-grid{animation:loading-square-turn 2.4s linear infinite}
.load-status.is-loading .loading-point{animation:loading-point-face-camera 2.4s linear infinite,loading-point-blink 1.8s steps(1,end) infinite;animation-delay:0ms,var(--point-delay,0ms)}
.loading-point:nth-child(2){--point-delay:200ms}.loading-point:nth-child(3){--point-delay:400ms}.loading-point:nth-child(4){--point-delay:600ms}.loading-point:nth-child(5){--point-delay:800ms}.loading-point:nth-child(6){--point-delay:1000ms}.loading-point:nth-child(7){--point-delay:1200ms}.loading-point:nth-child(8){--point-delay:1400ms}.loading-point:nth-child(9){--point-delay:1600ms}
@keyframes loading-point-blink{0%{opacity:1}8.333333%,100%{opacity:.24}}
@keyframes loading-square-turn{0%{transform:rotateX(28deg) rotateY(0deg)}25%{transform:rotateX(-12deg) rotateY(90deg)}50%{transform:rotateX(-28deg) rotateY(180deg)}75%{transform:rotateX(12deg) rotateY(270deg)}100%{transform:rotateX(28deg) rotateY(360deg)}}
@keyframes loading-point-face-camera{0%{transform:rotateY(0deg) rotateX(-28deg)}25%{transform:rotateY(-90deg) rotateX(12deg)}50%{transform:rotateY(-180deg) rotateX(28deg)}75%{transform:rotateY(-270deg) rotateX(-12deg)}100%{transform:rotateY(-360deg) rotateX(-28deg)}}
.load-status:not(.is-loading){color:var(--muted);overflow-wrap:anywhere}
@media(max-aspect-ratio:21/20),(max-width:760px){.load-status{left:50%;top:68%;max-width:88%}}
@media(prefers-reduced-motion:reduce){.load-status.is-loading .loading-grid,.load-status.is-loading .loading-point{animation:none;transform:none}.load-status.is-loading .loading-point{opacity:.8}}
.load-status[hidden]{display:none}.eyebrow{font-size:9px;font-weight:500;letter-spacing:.16em;color:#91a5a5}.scene-tabs{display:flex;gap:4px}.scene-tabs button{width:35px;height:34px;color:#93a7a8;font-size:12px;border:1px solid transparent}.scene-tabs button[aria-pressed=true]{color:#d2f3eb;border-color:#59857e;background:#28413b30}.settings-panel{position:fixed;z-index:10;left:24px;right:auto;bottom:calc(var(--toolbar-height) + 16px);width:340px;max-height:calc(100svh - 116px);overflow:auto;padding:23px;background:#101e25f5;backdrop-filter:blur(20px);border:1px solid #3b5155;box-shadow:0 12px 50px #0008}.settings-panel[hidden]{display:none}.settings-panel header{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.settings-panel > header .eyebrow{margin:0;font-family:inherit}.settings-panel header button,.dialog-header>button{font-size:27px;font-weight:300;color:#9db3b3;padding:0 3px}.settings-panel label:not(.check){display:flex;justify-content:space-between;margin:17px 0 9px;font-size:12px;color:#c0cecb}.settings-panel output{color:#9cdcd0;font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:4px;margin:7px 0 10px;accent-color:var(--mint);cursor:pointer}.settings-panel select{width:100%;background:#081219;color:var(--text);border:1px solid var(--edge);padding:9px;font-size:12px;border-radius:0}.check{display:flex;align-items:center;gap:9px;font-size:12px;margin:15px 0}.check input{accent-color:#a5dcd3;width:14px;height:14px}.setting-note{font-size:11px;line-height:1.55;color:#91a6a7;margin:12px 0 0}.restore-interface{position:fixed;bottom:14px;right:18px;z-index:9;font-size:11px;color:#b9ceca;opacity:.38;padding:8px 12px;border:1px solid #335553;background:#08161baa}.restore-interface:hover,.restore-interface:focus-visible{opacity:1}body.immersive .hero{height:100svh}body.copy-hidden .portfolio-copy{visibility:hidden}[hidden]{display:none!important}dialog{background:#0b171e;color:var(--text);border:1px solid #33494d;padding:30px;max-width:calc(100vw - 36px);max-height:calc(100svh - 50px);box-shadow:0 24px 100px #0009}dialog::backdrop{background:#000a;backdrop-filter:blur(6px)}.dialog-header{display:flex;align-items:start;justify-content:space-between;gap:30px;margin-bottom:25px}.dialog-header h2{font-size:clamp(22px,2.2vw,32px);font-weight:300;letter-spacing:-.025em;margin:10px 0 0}.gallery-dialog{width:1220px}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:22px 16px}.gallery button{text-align:left;padding:0;color:#bfcac6;font-size:12px;line-height:1.45}.gallery img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;margin-bottom:10px;border:1px solid transparent}.gallery button[aria-current=true] img{border-color:var(--mint)}.text-dialog{width:570px}.text-dialog p{font-size:15px;line-height:1.65;color:#b6c7c6}.text-dialog a{text-decoration:underline;text-underline-offset:4px;color:#a5dcd3}.compare-dialog{width:1540px}.comparison-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}.comparison-pair figure{margin:0;min-width:0}.comparison-pair figcaption{font-size:12px;color:#aabdbb;margin-bottom:12px}.comparison-pair img,.comparison-pair canvas{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:var(--ink)}.comparison-note{font-size:12px;line-height:1.6;color:#9eb2b1;max-width:750px}.compare-actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px}.compare-actions button{font-size:12px;border:1px solid var(--edge);padding:10px 15px}
@media(min-aspect-ratio:2/1){.introduction{top:24%}.introduction h1{font-size:10.7vh}.introduction p{margin-top:22px;margin-bottom:26px;font-size:2.8vh}.cta{font-size:2vh}.scene-footer{bottom:4%}}
@media(max-width:1000px){:root{--toolbar-height:112px}.scene-tabs{margin-left:auto}.scene-tabs button{width:30px}.scene-footer span:last-child{display:none}.introduction p{max-width:46vw;line-height:1.5}.settings-panel{bottom:calc(var(--toolbar-height) + 12px)}}
@media(max-width:600px){:root{--toolbar-height:134px}.hero{min-height:590px}.site-header{top:5%;left:6%;right:6%}.wordmark{font-size:10px;letter-spacing:.14em}.site-header nav{gap:17px}.site-header nav button{font-size:11px}.introduction{top:20%;left:6%}.introduction h1{font-size:clamp(49px,11.7vw,70px);line-height:.99}.introduction p{font-size:13px;max-width:84vw;margin:21px 0 25px}.cta{font-size:11px;padding:12px 22px}.mobile-shade{display:block;background:linear-gradient(180deg,#050e1400 8%,#050e1470 26%,#050e1420 62%,transparent 85%)}.scene-footer{left:6%;bottom:4%;font-size:9px;max-width:87%}.scene-tabs{margin:0;width:100%;justify-content:space-between}.scene-tabs button{width:34px;height:34px}.settings-panel{right:12px;left:12px;width:auto;padding:20px}.equation{top:61%;left:10%;font-size:21px;opacity:.23}.gallery{grid-template-columns:1fr 1fr;gap:18px 12px}.gallery button{font-size:11px}.gallery-dialog,.text-dialog,.compare-dialog{padding:21px;max-width:calc(100vw - 24px)}.comparison-pair{grid-template-columns:1fr}.dialog-header{margin-bottom:20px}.compare-actions button{font-size:10px;padding:9px}.comparison-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* v05: left-side controls and longer portfolio heading. */
textarea{font:inherit}textarea:focus-visible,summary:focus-visible{outline:2px solid var(--mint);outline-offset:4px}
.introduction{top:25%;max-width:58vw}.introduction h1{font-size:clamp(44px,5vw,110px);line-height:1.02}.introduction p{font-size:clamp(14px,1.35vw,23px);line-height:1.55;margin:24px 0 27px}
.scene-tabs .variant-tab{width:51px;white-space:nowrap;font-size:11px}
.control-group{border-top:1px solid #30464b;margin-top:18px;padding-top:15px}.control-group>summary{font-size:12px;font-weight:500;letter-spacing:.025em;color:#d2e4de;cursor:pointer;padding:3px 0}.control-group[open]>summary{margin-bottom:12px}
.settings-panel .control-group[open]>summary {
  padding: 8px 12px;
  border-inline-start: 2px solid var(--mint);
  background: var(--mint);
  color: #20383b;
  line-height: 16px;
}
.settings-panel .preset-controls select {
  appearance: none;
  padding-right: 22px;
  background: #081219 url("assets/settings-dropdown.svg") right 5px center / 9px 6px no-repeat;
}
.control-group summary::marker{color:#85b3aa}
.settings-panel textarea,.settings-panel input[type=text],.settings-panel input[type=number]{width:100%;background:#081219;color:#cfdfd8;border:1px solid #354d51;padding:10px;line-height:1.55;font-size:12px;border-radius:0}.settings-panel textarea{font:11px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;min-height:66px}.settings-panel .control-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.control-actions button{flex:1;font-size:11px;padding:10px 7px;border:1px solid #415f60}.control-actions button:first-child{border-color:#739b90}.control-status{font-size:11px;line-height:1.6;color:#b6d9cd;margin:10px 0 0}.control-status[data-state=error]{color:#f0b6a5}.control-status:empty{display:none}.equation-help{margin-top:16px;font-size:11px;line-height:1.6;color:#99b3b1}.equation-help summary{cursor:pointer;color:#bdd6ce}.equation-help code{color:#c7e6dc}.settings-panel button:disabled{opacity:.4;cursor:default}
.live-equation{left:45%;top:20%;max-width:49%;font-size:clamp(15px,1.85vw,30px);line-height:1.6;white-space:normal;overflow-wrap:anywhere}.live-equation small{text-align:left;font:10px/1.6 Arial,sans-serif;letter-spacing:.04em;margin-top:8px}
body.living-scene{background:#080f18}body.living-scene .hero{background:transparent}
@media(min-aspect-ratio:2/1){.introduction{top:22%}.introduction h1{font-size:9.4vh}.introduction p{font-size:2.7vh;margin:18px 0}.live-equation{top:14%}}
@media(max-width:1100px) and (min-width:1001px){.scene-tabs{margin-right:auto}}
@media(max-width:1000px){.scene-tabs{gap:2px}.scene-tabs .variant-tab{width:47px}.introduction{max-width:65vw}.settings-panel{max-height:calc(100svh - var(--toolbar-height) - 30px)}}
@media(max-width:600px){.introduction{top:19%;max-width:89vw}.introduction h1{font-size:clamp(34px,8.55vw,50px);line-height:1.04}.introduction p{max-width:80vw;font-size:13px;margin:20px 0 23px}.scene-tabs{gap:1px}.scene-tabs button{width:28px;padding:0}.scene-tabs .variant-tab{width:44px;font-size:10px}.settings-panel{left:12px;right:12px;width:auto;padding:20px}.live-equation{left:24%;top:61%;max-width:69%;font-size:16px}.live-equation small{font-size:8px}.living-scene .mobile-shade{background:linear-gradient(180deg,transparent 8%,#080f1860 26%,#080f1820 62%,transparent 85%)}}

/* Only the body of the settings panel scrolls. */
.scene-tabs{margin:0}
.settings-panel{display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:calc(100svh - var(--toolbar-height) - 30px)}
.settings-panel>header{flex:0 0 auto;margin:0;padding:20px 23px 18px;border-bottom:1px solid #30464b;background:#101e25}
.settings-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 23px 20px;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-block:12px}
.settings-scroll:focus-visible{outline:1px solid var(--mint);outline-offset:-3px}
.settings-panel > header .reset-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--mint);
  font-size: 11px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.settings-scroll > .control-group:nth-child(1 of :not([hidden])){margin-top:0;border-top:0}


@media(max-width:1100px) and (min-width:1001px){.scene-tabs{margin:0}}
@media(max-width:1000px){.scene-tabs{justify-content:flex-end;margin:0}}
@media(max-width:700px){.scene-tabs{width:100%;justify-content:space-between}}
@media(max-width:600px){.settings-panel{padding:0}.settings-panel>header{padding:18px 20px 16px}.settings-scroll{padding:0 20px 18px}}

/* v07: manual topography build controller, inside the fixed-header review panel. */
.build-controls{border-block:1px solid #30464b;margin-top:18px;padding:15px 0 18px}
.build-controls>.eyebrow{margin:0;color:#b4cdc5}
.build-stages{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#8ca6a4;margin:3px 0 14px}
.build-controls .control-status{font-variant-numeric:tabular-nums}

/* v08: four independent topography layers inside the fixed-header panel. */
.topo-layer .setting-note{margin:0 0 12px}.layer-reset{margin-top:12px;padding:8px 0;color:#a9c9bf;text-decoration:underline;text-underline-offset:4px;font-size:11px}
.topo-layer .control-actions > .layer-reset { margin-top: 0; }

/* Keep retained canvas pixels out of view until the selected scene paints. */
#scene-transition{position:absolute;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none}
.hero.scene-pending :is(#scene,#scene3d,#water-canvas,#water-touch,#concept05-stage){visibility:hidden}

/* Extra document length; the viewport-sized artwork stage is unchanged. */
body{min-height:1400px}

/* v15: the WebGL stage shares the existing artwork dimensions. */
#scene3d{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.mobile-shade{pointer-events:none}
.camera-dock {
  position: fixed;
  top: var(--hero-controls-top, auto);
  bottom: var(--hero-controls-bottom);
  left: var(--hero-controls-inset);
  z-index: 2;
  display: flex;
  gap: var(--hero-controls-gap);
}
.camera-tools { display: flex; gap: inherit; }
.camera-dock button {
  min-height: var(--hero-control-height);
  padding: 0 var(--hero-control-padding);
  font: 10px/1.4 Arial, sans-serif;
  letter-spacing: .06em;
  white-space: nowrap;
  border-bottom: 1px solid #85b3aa55;
  background: #050e1477;
  color: #a5dcd3b3;
  backdrop-filter: blur(5px);
  transition: background-color .18s, border-color .18s, color .18s;
}
.camera-dock #settings-button { min-width: var(--hero-settings-width); }
.camera-dock button:hover, .camera-dock #camera-pan-button[aria-pressed=true],
.camera-dock #settings-button[aria-expanded=true] {
  background: #203d3ecc;
  border-color: #9ad5c8;
  color: #d2f3eb;
}
.camera-dock button:focus-visible { outline: 1px solid var(--mint); outline-offset: 2px; }
.hero.camera-exploring{touch-action:none;cursor:grab}.hero.camera-dragging{cursor:grabbing}
.camera-controls{padding-bottom:0;margin-bottom:0}
@media(prefers-reduced-motion:reduce){.camera-dock button{transition:none}}

/* Native disclosures keep every control group keyboard accessible. */
.control-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}
.control-group>summary::-webkit-details-marker{display:none}
.control-group>summary::after{content:"";width:11px;height:7px;background:url("assets/settings-disclosure.svg") center / 11px 7px no-repeat;transform:rotate(-90deg);flex:none}
.control-group[open]>summary::after{transform:none}




/* v30: camera pan mode uses the same camera and landscape. */
.hero.camera-panning{cursor:move}
body.portfolio-mode:not(.play-mode) .hero.camera-exploring.camera-panning{cursor:move}

/* v43: daylight changes only the landscape stage; the review UI keeps its palette. */
body.day-landscape .hero{background:#e7ece4;color:#233f39}
body.day-landscape .mobile-shade{display:none}
body.day-landscape .introduction h1{color:#233f39;text-shadow:0 1px 12px #e7ece440}
body.day-landscape .introduction h1 .hero-bracket{color:#4b796e}
body.day-landscape .introduction p,body.day-landscape .scene-footer{color:#3e5a50}
body.day-landscape .hero button:hover{color:#183d32}
body.day-landscape .introduction .cta{color:#233f39;background:#e7ece470;border-color:#4b796e;outline-color:#4b796e60}
body.day-landscape .introduction .cta:hover{background:#d1dfd5}
body.day-landscape .load-status{color:#3d6b5d}
body.day-landscape .camera-dock button,body.day-landscape.play-mode:not(.p2-travel)>.p2-sound{background:#e7ece4e8;color:#31564a;border-color:#7c9b8c}
body.day-landscape .camera-dock button:hover,body.day-landscape .camera-dock #camera-pan-button[aria-pressed=true],body.day-landscape .camera-dock #settings-button[aria-expanded=true],body.day-landscape.play-mode:not(.p2-travel)>.p2-sound:hover{background:#c0d3c4;border-color:#4e7863;color:#233f39}
body.day-landscape .hero :is(button,a):focus-visible{outline-color:#315e4e}

/* Option 04 uses the shared Settings panel and hero gestures. */
.orbital-plane-row{padding:12px 0;border-bottom:1px solid #30464b}
.orbital-plane-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.orbital-plane-heading .check{margin:0;min-width:0}
.orbital-plane-heading button{font-size:10px;padding:5px 7px;border:1px solid #415f60;flex:none}
.hero.orbital-exploring{cursor:grab;touch-action:pan-y}
body.play-mode .hero.orbital-exploring{touch-action:none}
.hero.orbital-exploring.camera-dragging{cursor:grabbing}

/* Concept 05 uses one CSS-pixel projection space at any device pixel ratio. */
#concept05-stage{position:absolute;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none;overflow:hidden;background:#0a1018}
#concept05-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.play-mode.concept05-scene #concept05-canvas{pointer-events:auto;touch-action:none}
body:not(.play-mode) #concept05-stage button{pointer-events:none!important;visibility:hidden}
.concept05-scene .hero{background:#0a1018}

#water-canvas, #water-touch { position: absolute; inset: 0; width: 100%; height: 100%; }
#water-canvas { z-index: -2; pointer-events: none; }
#water-touch { z-index: -1; clip-path: inset(100%); touch-action: none; }
body.work-open #water-touch, body.case-open #water-touch { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  #water-touch { touch-action: auto; }
}
