.surface-controls{position:absolute;right:clamp(18px,3vw,48px);bottom:calc(clamp(104px,14vh,140px) + 105px);z-index:6;display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:70%}
.surface-controls button,.surface-menu button,.surface-final-actions button,#surface-menu{font:10px/1.4 monospace;font-weight:700;letter-spacing:.08em;min-height:44px;border:1px solid #96e1dd75;background:linear-gradient(120deg,#1b3638c9,#101e23d6);backdrop-filter:blur(14px);color:#c9fffa;clip-path:polygon(0 9px,9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);transition:background .2s,box-shadow .2s}
.surface-controls button:hover,.surface-menu button:hover,.surface-final-actions button:hover{background:#28646de0;box-shadow:inset 0 0 20px #80fff729}
.surface-controls button:disabled{opacity:.55;cursor:help!important;box-shadow:none}
.surface-controls small{font:10px monospace;opacity:.8;max-width:240px}.surface-controls[hidden],[hidden]{display:none!important}
.surface-level{display:flex;align-items:center;gap:10px;margin-top:18px;font:10px monospace;opacity:.8}.surface-level input{width:110px}
.surface-active #drone-feed,.surface-active footer,.surface-active #radio,.surface-active .optical-cursor{visibility:hidden}.surface-active #drone-views{z-index:6;top:185px;bottom:auto;right:4%;min-width:220px;max-width:240px}
.surface-active:not(.surface-paused) .tools{opacity:.45}.surface-active .tools:hover{opacity:1}
.surface-hud{position:absolute;inset:90px 4% 105px;z-index:4;pointer-events:none;font:10px/1.7 monospace;letter-spacing:.11em;text-transform:uppercase;color:#c6f3ec;text-shadow:0 1px 5px #13191b}
.surface-hud::before,.surface-hud::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#bfe7df80,#bfe7df80) left top/28px 1px no-repeat,linear-gradient(#bfe7df80,#bfe7df80) left top/1px 28px no-repeat,linear-gradient(#bfe7df80,#bfe7df80) right bottom/28px 1px no-repeat,linear-gradient(#bfe7df80,#bfe7df80) right bottom/1px 28px no-repeat}
.surface-readout{position:absolute;left:16px;top:16px}.surface-readout b{display:block;font-size:15px;letter-spacing:.2em}.surface-readout span{font-size:9px;color:#a5d6d2}.surface-values{position:absolute;bottom:16px;right:16px;display:flex;gap:25px}.surface-values div{border-left:1px solid #bdf3ec50;padding-left:12px}.surface-values span{display:block;color:#8adbd8;font-size:13px;letter-spacing:.04em}
.surface-dot{position:absolute;left:50%;top:50%;width:5px;height:5px;border:1px solid #affff0;border-radius:50%;translate:-50% -50%;opacity:.6}
.surface-destination{position:fixed;translate:-50% 0;text-align:center;max-width:260px;transition:opacity .4s;white-space:nowrap}.surface-destination::before{content:'⌖';display:block;color:#a5fff2;font-size:23px;margin-bottom:5px}.surface-destination strong{font-size:11px}.surface-destination small{display:block;opacity:.65;letter-spacing:.17em;font-size:8px}.surface-destination.behind::before{content:'↶'}.surface-objective{position:absolute;left:16px;top:100px;border-left:2px solid #91e7dc;padding-left:12px;font-size:11px}.surface-objective small{display:block;opacity:.55;font-size:8px}
#surface-menu{position:absolute;right:16px;top:12px;pointer-events:auto;font-size:9px;padding:7px 10px;background:#15232ac2}
.surface-hint,.surface-subtitle{position:absolute;z-index:7;left:50%;bottom:95px;translate:-50% 0;text-align:center;max-width:min(90%,720px);font:11px/1.7 monospace;background:#101f25b5;backdrop-filter:blur(12px);padding:10px 20px;border:1px solid #84b6b34d;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);pointer-events:none}.surface-subtitle{bottom:150px;color:#cffaf3;letter-spacing:.025em}
.surface-hint{bottom:32px}
.surface-pause{position:absolute;inset:0;z-index:10;background:#0713198a;backdrop-filter:blur(8px);display:grid;place-items:center}.surface-menu{max-width:420px;width:90%;padding:30px;background:linear-gradient(130deg,#1a3238ed,#11191def);border:1px solid #95d9d94d;clip-path:polygon(0 20px,20px 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%)}.surface-menu small{font:9px monospace;letter-spacing:.2em;color:#8adddb}.surface-menu h2{font-size:24px;font-weight:500}.surface-menu p{opacity:.65;font-size:12px;line-height:1.6}.surface-menu button{margin:8px 8px 0 0}
#surface-noise{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;opacity:0;image-rendering:pixelated;mix-blend-mode:screen;transition:opacity .22s linear}
#surface-dust-veil{position:absolute;inset:0;pointer-events:none;z-index:3;opacity:0;background:radial-gradient(ellipse at 25% 60%,#aa7148,#c3966d 55%,#825b41);filter:contrast(1.05)}
.surface-finale{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(160deg,#8b5d3b15,#241a1850);color:#fff1dd;text-align:center}.surface-finale h1{font-size:clamp(55px,10vw,180px);font-weight:800;letter-spacing:.12em;font-style:italic;margin:0;opacity:var(--reveal,0);filter:blur(calc((1 - var(--reveal,0))*12px));transform:translateY(calc((1 - var(--reveal,0))*20px));text-shadow:0 0 50px #ffd3a026}.surface-finale p{font-size:clamp(11px,1.1vw,17px);line-height:1.8;letter-spacing:.1em}.surface-finale small{font:8px/1.8 monospace;letter-spacing:.14em;display:block;opacity:.55}.surface-final-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:35px}.surface-finale a{font:10px monospace;color:#baf5ed;margin-top:20px}
.surface-credits .tools,.surface-credits #drone-views{display:none!important}.scene.surface-active,.scene.surface-active *{cursor:auto!important}.scene.surface-active button,.scene.surface-active a{cursor:pointer!important}
@media(max-width:700px){.surface-values{gap:10px}.surface-values div{padding-left:6px}.surface-hud{inset:110px 16px 120px}.surface-controls{bottom:230px;left:16px;right:16px;max-width:none}.surface-controls button{font-size:9px}.surface-destination strong{font-size:9px}}
@media(prefers-reduced-motion:reduce){.surface-finale h1{filter:none;transform:none}.surface-controls button{transition:none}}
.scene.surface-manual-flight #optical-cursor,
.scene.surface-manual-flight .surface-dot,
.scene.surface-manual-flight #drone-views,
.scene.surface-manual-flight .tools{display:none!important}
.scene.surface-manual-flight:not(.surface-paused),
.scene.surface-manual-flight:not(.surface-paused) *{cursor:none!important}
#surface-credit-dust{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.surface-finale > :not(canvas){position:relative}
@media(prefers-reduced-motion:reduce){#surface-credit-dust{display:none}}
.surface-finale{padding:20px}
.surface-finale h1{font-size:clamp(38px,10vw,180px)}
.surface-finale .finale-byline{margin:clamp(8px,2vh,20px) 0 0;font:400 clamp(12px,.8vw,14px)/1.55 "Segoe UI",system-ui,sans-serif;letter-spacing:.035em}
.finale-faculty{display:block;width:clamp(142px,15vw,216px);height:auto;margin:clamp(12px,2.5vh,24px) auto 0;filter:brightness(0) invert(1) drop-shadow(0 1px 4px #23171040)}
.surface-final-actions{margin-top:clamp(16px,4vh,35px)}
.surface-final-actions #surface-project-open{background:linear-gradient(120deg,#2a4b4b,#14282b);border-color:#a3dfd8}
.surface-final-actions #surface-project-open:hover{background:#28646d}

.surface-project {
  --panel: #0e191c;
  --line: #344c50;
  --ink: #edf4ee;
  --muted: #bdccca;
  --signal: #a9e4db;
  --dust: #efb38a;
  --display: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  width: min(880px, calc(100% - 40px));
  max-height: min(88dvh, 940px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #64817f;
  border-radius: 2px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 90px #050b0dcc;
  text-align: left;
}
.surface-project[open] {display: grid; grid-template-rows: auto minmax(0, 1fr)}
.surface-project::backdrop {background: #101719c9; backdrop-filter: blur(5px)}
.surface-project-header, .project-signature, .project-tools {display: flex; align-items: center}
.surface-project-header {
  justify-content: space-between; gap: 8px;
  min-height: 52px; padding: 0 clamp(12px, 3vw, 28px);
  background: #142327; border-bottom: 1px solid var(--line);
}
.project-signature {gap: 13px; font: 11px var(--mono); letter-spacing: .1em; white-space: nowrap}
.project-signature b {color: var(--ink); font: italic 800 17px var(--display); letter-spacing: .03em}
.project-signature > span {border-left: 1px solid #52686a; padding-left: 13px; color: var(--signal)}
.project-tools {gap: 12px}
.project-tools button {
  color: var(--signal); background: transparent; border: 0; border-radius: 0;
  font: 12px var(--mono); padding: 0 6px; min-height: 44px;
}
.project-tools button:hover {background: #24393c; color: white}
.project-tools .project-close {font: 26px/1 sans-serif; width: 44px; border-left: 1px solid var(--line); color: var(--ink)}
.surface-project :focus-visible {outline: 2px solid var(--signal); outline-offset: -3px}
.surface-project-body {
  overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #648784 var(--panel);
  font: 400 16px/1.68 "Segoe UI", system-ui, sans-serif; color: var(--muted); overflow-wrap: anywhere;
}
.project-cover {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end;
  min-height: clamp(160px, 23vh, 214px);
  background: #162124; border-bottom: 1px solid var(--line);
}
.project-cover-copy {padding: 24px clamp(20px, 6vw, 62px)}
.project-cover-copy p, .surface-project-body h3 {
  margin: 0; font: 600 11px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.project-cover-copy p {color: var(--dust); margin-bottom: 9px}
.project-cover-copy h2 {
  font: 650 clamp(43px, 6vw, 76px)/.98 var(--display); letter-spacing: -.055em;
  margin: 0; color: #f6f4e9;
}
.surface-project-body section {margin: 0 auto; max-width: 78ch; padding: 30px clamp(20px, 5vw, 48px)}
.surface-project-body section + section {border-top: 1px solid var(--line); padding-bottom: 45px}
.surface-project-body h3 {display: flex; align-items: center; gap: 12px; color: var(--signal); margin-bottom: 18px}
.surface-project-body h3::before {content: ""; width: 22px; height: 2px; background: currentColor}
.surface-project-body section p {margin: 0 0 1em}
.surface-project-body section > :last-child {margin-bottom: 0}
.surface-project-body strong {color: var(--ink); font-weight: 600}
.surface-project-body #surface-project-annotation + p strong {
  display: block; font: 500 clamp(19px, 2.1vw, 24px)/1.42 var(--display);
  letter-spacing: -.015em; color: #f0e5d5;
}
.surface-project-body h4 {font: 600 21px/1.25 var(--display); color: var(--ink); margin: 1.5em 0 .7em}
.surface-project-body a {color: var(--signal); text-decoration-color: #69948c; text-underline-offset: 3px}
.surface-project-body a:hover {color: white; text-decoration-color: white}
.surface-project-body ul {margin: 0; padding-left: 19px}
.surface-project-body li + li {margin-top: 9px}
.surface-project-body li::marker {color: var(--dust)}
.surface-project-models {
  display: grid; grid-template-columns: minmax(8em, .65fr) 1.35fr; margin: 0;
  border-top: 1px solid var(--line);
}
.surface-project-models dt, .surface-project-models dd {margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line)}
.surface-project-models dt {padding-right: 12px; font: 600 14px/1.8 var(--mono)}
@media (max-width: 520px) {
  .surface-project {width: calc(100% - 16px); max-width: none; max-height: 94dvh}
  .project-tools {gap: 3px}
  .project-signature {gap: 8px; font-size: 9px}
  .project-signature > span {padding-left: 8px}
  .project-cover {min-height: 140px}
  .surface-project-body {font-size: 15px}
  .surface-project-body section {padding-top: 22px}
  .surface-project-models {grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr)}
}
@media (max-width: 360px) {.project-signature > span {display: none}}
@media (max-height: 480px) {.project-cover {min-height: 100px} .project-cover-copy {padding-block: 12px}}
