@import './island-selector.css';
@import './passage-portal.css';
@font-face{
  font-family:'Advent Pro';
  src:url('/assets/fonts/AdventPro-Variable.woff2') format('woff2');
  font-weight:100 900;font-style:normal;font-display:swap;
}
:root {
  color-scheme: dark;
  --passage-font:'Advent Pro', Arial, sans-serif;
  font-family: var(--passage-font);
  background: #080a11;
  color: #f1ede4;
  accent-color: #e6c3a1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body.passage-journey main.scene-only { position:sticky; top:0; height:100svh; overflow:hidden; }
.passage-scroll-space { height:1680svh; pointer-events:none; }
body.passage-journey .scene canvas { touch-action:pan-y; }
main { min-height: 100svh; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; }
main.scene-only :is(.flight, .head-arrangement, .head-markers, .water-tuning, .cursor-probe,
  .project-shortcuts, .wave-colour-controls, .atmosphere-tuning) { display: none !important; }
.scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.scene img, .scene canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.scene canvas { touch-action: none; }
.journey-quote {
  position: absolute;
  width: max-content;
  margin: 0;
  color: #ffe7c9;
  font: 600 clamp(1.55rem, 2.6vw, 3.25rem)/1.04 var(--passage-font);
  letter-spacing: .012em;
  pointer-events: none;
}
.opening-quote { right: 8%; top: 10.5%; }
.treasure-quote { left: 14%; top: 10%; line-height: 1.12; }
.arena-quote { left: 15%; top: 31%; line-height: 1.12; }
.closing-quote { right: 10%; top: 22%; line-height: 1.12; }
.journey-quote p { padding: .1em .16em; text-shadow: 0 1px .45em #0d0301; }
.journey-quote p span:not([data-revealed]), .journey-quote[data-projected] p { opacity: 0; }
@media (max-width: 600px) {
  .journey-quote {
    inset-inline: 0;
    top: max(12%, 4.75rem + env(safe-area-inset-top));
    margin-inline: auto;
    text-align: center;
    font-size: clamp(1.35rem, 6.4vw, 1.8rem);
  }
  :is(.treasure-quote, .arena-quote, .closing-quote) { font-size: clamp(1.1rem, 5.1vw, 1.55rem); }
  .closing-quote { top: 19%; }
  .arena-quote { top: 15%; }
}
.cursor-probe { position:absolute; width:24px; height:24px; transform:translate(-50%,-50%); border:1px solid #ffffffb0; border-radius:50%; pointer-events:none; }
.cursor-probe::after { content:''; position:absolute; left:10px; top:10px; width:3px; height:3px; border-radius:50%; background:#fff; }
.cursor-comparisons { display:flex; flex-wrap:wrap; gap:.5rem; padding-top:.3rem; }
.cursor-comparisons button { font-size:.75rem; }
main::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(#080a11a8, transparent 28%, transparent 68%, #080a11ed); }
main.light-study::before { background: linear-gradient(#080a1140, transparent 28%, transparent 68%, #080a1160); }
header, .flight { margin-inline: clamp(1rem, 4.6vw, 5rem); }
header { padding-top: clamp(1.15rem, 5vh, 3.7rem); pointer-events: none; }
h1 { font: 400 clamp(2.5rem, 5.5vw, 6.8rem)/.95 var(--passage-font); margin: .19em 0; letter-spacing: -.052em; }
p { margin: 0; }
.eyebrow { font: .72rem var(--passage-font); text-transform: uppercase; letter-spacing: .19em; color: #ead0b9; }
.eyebrow span { color: #97a8c6; }
.subtitle { max-width: 32ch; color: #d2d9e5; font-size: clamp(.84rem, 1.4vw, 1rem); }
.flight { padding: 1rem 0 1.25rem; }
#flight-status { width: fit-content; padding: .55rem .7rem; background: #0b101bef; border: 1px solid #556075; }
fieldset { border: 0; border-top: 1px solid #8b99b65e; padding: .5rem 0 0; margin: 0; min-width: 0; }
.track { display: grid; grid-template-columns: auto minmax(2rem, 1fr) auto; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); }
.shot-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .55rem; font-size: .85rem; }
.shot-controls select { min-height: 44px; padding: .2rem .35rem; border: 1px solid #74819a; background: #101625; color: inherit; font: inherit; }
.shot-controls label[for="focus-target"] { margin-left: .5rem; }
button { border: 1px solid #909cb7; color: inherit; background: #101625; font: inherit; padding: .45em .9em; min-height: 44px; cursor: pointer; min-width: 7em; }
input { margin: 0; }
input[type="range"] { width: 100%; min-height: 44px; }
output { font: .78rem var(--passage-font); min-width: 15ch; text-align: end; color: #f1dcc7; }
.options { display: flex; flex-wrap: wrap; column-gap: clamp(.7rem, 3vw, 2rem); font-size: .86rem; }
.options label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; cursor: pointer; }
:focus-visible { outline: 2px solid #f8d5af; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scene-monitor{
  position:relative;isolation:isolate;pointer-events:none;transform-origin:0 0;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(4.5rem,30%);align-items:center;
  gap:clamp(.75rem,2vw,1.5rem);
  padding:clamp(1.35rem,2.2vw,1.95rem) clamp(1.05rem,2vw,1.8rem);
}
.passage-intro.has-monitor-text .passage-card-copy > :is(h1,h2,p):not(.passage-card-contact),
.passage-intro.has-monitor-text :is(.passage-card-contact span,.passage-card-scan span),
.passage-intro.has-monitor-qr .passage-card-scan img{opacity:0}
.passage-intro:not(.has-monitor-mesh) .scene-monitor::before,
.passage-intro:not(.has-monitor-mesh) .scene-monitor::after{
  content:'';position:absolute;inset:0;z-index:-1;
  clip-path:var(--monitor-outline,polygon(1.8% 0,98% 0,100% 3.5%,100% 97%,98% 100%,2% 100%,0 96.5%,0 3.4%));
  background:#275dd0;
}
.passage-intro:not(.has-monitor-mesh) .scene-monitor::after{
  inset:5px 0 0;background:#f5efdf;
}
.passage-intro{
  position:absolute;z-index:2;
  inset:auto clamp(1.3rem,4.5vw,6rem) clamp(2.5rem,8.4svh,6rem) auto;
  width:min(33rem,49vw);opacity:var(--intro-opacity,1);
  font-family:var(--passage-font);
  color:#111827;
}
.passage-intro.has-monitor-mesh::before{content:'';position:absolute;inset:-4% -7%}
.passage-intro:focus-visible{outline-offset:5px;outline-color:#f9dfcc}
.passage-card-brand{display:flex;align-items:center;gap:.55rem;font-size:clamp(.78rem,1.2vw,1.03rem);text-transform:uppercase;letter-spacing:.14em}
.passage-card-brand strong{font-family:var(--passage-font);font-weight:850}
.passage-card-symbol{display:inline-block;position:relative;color:inherit;width:1.38rem;height:1.38rem;flex:none}
.passage-card-symbol::before,.passage-card-symbol::after{content:'';position:absolute;bottom:0;background:currentColor}
.passage-card-symbol::before{inset:0 auto 0 0;width:42%}
.passage-card-symbol::after{right:0;width:47%;height:46%;border-radius:0 100% 0 0}
.passage-intro-role{
  font-size:clamp(.72rem,1vw,.84rem);font-weight:700;line-height:1.3;letter-spacing:.10em;
  text-transform:uppercase;color:#162e63;
}
.passage-intro :is(h1,h2){
  font-family:inherit;font-weight:700;font-size:clamp(1.48rem,2.8vw,2.55rem);
  letter-spacing:-.023em;margin:.27em 0 .09em;
}
.passage-intro-copy{max-width:22ch;margin-top:.58em;font-size:clamp(.98rem,1.5vw,1.25rem);font-weight:700;line-height:1.22;text-wrap:pretty}
.passage-card-contact{display:flex;align-items:baseline;flex-wrap:wrap;gap:.1em .9em;margin-top:.48rem;padding-top:.35rem;font-size:clamp(.78rem,1.1vw,.96rem);font-weight:700}
.passage-intro:not(.has-monitor-text) .passage-card-contact{box-shadow:inset 0 1px #51689655}
.passage-card-contact a,.passage-card-scan{pointer-events:auto;color:inherit}
.passage-card-contact a{text-decoration:none}
.passage-card-contact a:focus-visible,.passage-card-scan:focus-visible{outline-color:#254cc7;outline-offset:2px}
.passage-card-scan{display:grid;gap:.38em;text-align:center;text-decoration:none;font-size:clamp(.72rem,1.03vw,.88rem);font-weight:700;line-height:1.2}
.passage-card-scan img{display:block;width:100%;height:auto;image-rendering:pixelated}
@media(max-width:600px){
  .passage-intro{inset:auto 1.05rem 2.45rem;width:auto}
  .scene-monitor{grid-template-columns:minmax(0,1fr) minmax(4.45rem,31%);padding:1.15rem 1rem .95rem}
  .passage-intro :is(h1,h2){font-size:clamp(1.48rem,6.45vw,2.55rem)}
  .passage-card-contact{line-height:1.5}
}
@media(max-height:540px){
  .passage-intro{bottom:1.6rem}
  .scene-monitor{padding-block:1rem}
}
.passage-projects {
  position: absolute;
  z-index: 2;
  top: calc(29.5% - 1.65rem);
  right: clamp(1.4rem, 8vw, 9rem);
  width: clamp(10rem, 16vw, 13rem);
  opacity: var(--intro-opacity, 1);
  pointer-events: none;
}
.passage-projects-link {
  display: grid;
  place-items: center;
  min-height: 3.3rem;
  padding: .5rem;
  border: 1px solid #e48b66;
  border-radius: 2px;
  background: linear-gradient(146deg, #663121, #230e0bf5 54%);
  box-shadow: inset 0 0 0 3px #e6864636, 0 0 14px #fb441755;
  color: #fff0dd;
  font: 700 clamp(1rem, 1.35vw, 1.2rem)/1.2 var(--passage-font);
  letter-spacing: .025em;
  text-decoration: none;
  white-space: nowrap;
  transform-origin: 0 0;
  pointer-events: auto;
  touch-action: manipulation;
}
.passage-projects-link > span > span { margin-inline-start: .35em; }
.passage-projects-link:focus-visible { outline-color: #ffdbb8; }
.passage-projects.is-projected .passage-projects-link {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.passage-projects.is-projected .passage-projects-link > span { opacity: 0; }
@media(max-width:600px) {
  .passage-projects { top: calc(27.8% - 1.5rem); width: 9.5rem; right: max(8vw, env(safe-area-inset-right)); }
  .passage-projects-link { min-height: 3rem; }
}
.career-panel,.green-info{--info-panel-accent:#ff9188}
.career-panel{
  position:absolute;z-index:1;top:24%;right:5vw;width:min(29rem,39vw);
  pointer-events:none;opacity:var(--career-opacity,1);
  font-family:var(--passage-font);
}
.career-panel[data-side="left"]{left:5vw;right:auto}
.career-panel[data-career="goldsmiths"]{top:18%}
.career-monitor{
  padding:clamp(1rem,2vw,1.75rem);
  border:1px solid var(--info-panel-accent);background:#2c0c10e8;
  box-shadow:0 0 18px color-mix(in srgb,var(--info-panel-accent) 27%,transparent);
  color:#f8f6f2;transform-origin:0 0;
}
.career-panel.is-projected .career-monitor{opacity:0}
.career-monitor header{margin:0;padding:0}
.career-role{font-size:clamp(.76rem,1.13vw,.95rem);font-weight:700;letter-spacing:.04em;color:var(--info-panel-accent)}
.career-monitor h2{font-size:clamp(1.15rem,2.1vw,1.85rem);line-height:1.15;margin:.25em 0 0}
.career-result{display:flex;align-items:center;gap:.8rem;margin:.68rem 0 .38rem;font-weight:700}
.career-result strong{font-size:clamp(2.5rem,5.2vw,4.25rem);line-height:.94;font-variant-numeric:lining-nums tabular-nums}
.career-result span{max-width:19ch;color:var(--info-panel-accent);font-size:clamp(.86rem,1.45vw,1.17rem);line-height:1.16}
.career-detail{font-size:clamp(.88rem,1.45vw,1.09rem);line-height:1.3;text-wrap:pretty}
@media(max-width:680px){
  .career-panel,.career-panel[data-side="left"]{
    top:19%;inset-inline:1.6rem;margin-inline:auto;width:auto;max-width:28rem;
  }
  .career-panel[data-career="goldsmiths"]{top:14%}
}
@media(max-height:480px){.career-panel,.career-panel[data-career="goldsmiths"]{top:15%}}
.green-info { white-space: normal; }
.green-info-grid { margin: 0; padding: 0; list-style: none; }
.green-info-panel {
  width: 360px;
  height: 164px;
  padding: 23px 22px 18px;
  color: #f8f6f2;
  font-family: var(--passage-font);
}
.green-info-panel h2 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 7px;
  color: var(--info-panel-accent);
  font-size: 23px;
  line-height: 1.04;
}
.green-info-panel strong {
  flex: none;
  font-size: 53px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.green-info-panel p { font-size: 19px; line-height: 1.11; }
.juicebuilder-info { white-space: normal; }
.juicebuilder-info .green-info-panel { width: 285px; height: 112px; padding: 14px 16px; }
.juicebuilder-info .green-info-panel h2 { font-size: calc(29px * var(--project-panel-font-scale, 1)); }
.juicebuilder-info .green-info-panel p { margin: 0; font-size: calc(21px * var(--project-panel-font-scale, 1)); }
.juicebuilder-info .green-info-panel:has(.juicebuilder-link-copy) { height: 137px; }
.juicebuilder-info .green-info-panel .juicebuilder-link-copy { margin-top: 6px; color: #ffdbb8; font-weight: 700; }
.juicebuilder-info .green-info-panel.has-adjusted-height {
  --project-panel-default-height: 112px;
  height: calc(var(--project-panel-default-height) * var(--project-panel-height-scale));
  min-height: min-content;
  padding-block: calc(14px * min(1, var(--project-panel-height-scale)));
}
.juicebuilder-info .green-info-panel.has-adjusted-height:has(.juicebuilder-link-copy) { --project-panel-default-height: 137px; }
.juicebuilder-info :is(.project-details-panel,.project-hero-panel) { min-height: min-content; }
.project-details-panel h3 {
  margin: 9px 0 4px;
  color: #ffb389;
  font-size: calc(19px * var(--project-panel-font-scale, 1));
  font-weight: 700;
  line-height: 1.05;
}
.project-details-panel dl { margin: 0; font-size: calc(20px * var(--project-panel-font-scale, 1)); line-height: 1.15; }
.project-details-panel dl div { display: grid; grid-template-columns: 5.1em minmax(0, 1fr); gap: .35em; }
.project-details-panel dt { color: #ffb389; }
.project-details-panel dd { margin: 0; }
.project-hero-panel { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 13px; align-items: center; }
.project-hero-panel img { display: block; width: 94px; height: auto; }
.head-arrangement { position: absolute; top: 1.25rem; right: clamp(1rem, 3vw, 3rem); width: min(20rem, calc(100% - 2rem)); z-index: 2; border: 1px solid #74819a; background: #0b101bf5; border-radius: .5rem; font-size: .83rem; }
.head-arrangement summary { padding: .8rem 1rem; cursor: pointer; min-height: 44px; }
.scene-control-tabs { display: flex; gap: .5rem; padding: .5rem 1rem; border-top: 1px solid #74819a60; }
.scene-control-tabs button { flex: 1; min-width: 0; font-size: .8rem; }
.scene-control-tabs button[aria-pressed="true"] { background: #2c3548; border-color: #d2d9e5; }
.head-arrangement .arrangement-body { max-height: min(70svh, 39rem); overflow-y: auto; overscroll-behavior: contain; }
.head-arrangement fieldset { padding: .75rem 1rem; }
.head-arrangement #light-controls { padding-top: .3rem; border-top: 1px solid #ff665b70; accent-color: #ff796e; }
#light-controls legend { padding: 0 .35rem; color: #ffb0a7; }
#camera-controls { border-top:1px solid #91c5e870; accent-color:#91c5e8; }
#camera-controls legend { padding:0 .35rem; color:#b4ddf7; }
#camera-controls .arrangement-actions { flex-wrap:wrap; }
#light-controls button { font-size: .75rem; }
.light-selector { position: sticky; top: 0; z-index: 1; background: #0b101b; padding-top: .3rem; }
#light-controls .arrangement-actions { position: sticky; bottom: -.75rem; background: #0b101b; padding-block: .6rem; margin-bottom: 0; }
.light-control-section { border-top: 1px solid #74819a60; margin-top: .5rem; }
.head-arrangement .light-control-section > summary { padding: .6rem 0; color: #ffd2c9; }
#head-controls { accent-color: var(--head-colour, #ffc36b); }
#head-selection { border-color: var(--head-colour, #ffc36b); }
.head-colour-key { color: var(--head-colour, #ffc36b); margin: .25rem 0 .5rem; font-size: .78rem; }
.head-colour-key::before { content: ''; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; margin-right: .5rem; }
.head-markers { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.head-marker { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; min-width: 32px; min-height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--head-colour); color: var(--head-colour); background: #080a11dc; font: 700 .75rem var(--passage-font); }
.head-marker[aria-pressed="true"] { box-shadow: 0 0 0 3px #080a11, 0 0 0 4px var(--head-colour); }
.head-arrangement select { width: 100%; min-height: 44px; margin: .35rem 0; background: #101625; color: inherit; font: inherit; border: 1px solid #74819a; padding: .4rem; }
.arrangement-help { color: #bbc7d9; font-size: .73rem; line-height: 1.5; margin: .3rem 0 .7rem; }
.head-control { margin-bottom: .25rem; }
.head-control label { display: block; }
.head-control .head-control-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: .65rem; align-items: center; }
.head-control input[type="number"] { min-height: 36px; width: 100%; min-width: 0; padding: .35rem; background: #101625; border: 1px solid #74819a; color: inherit; font: .8rem var(--passage-font); }
.head-orbit { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.arrangement-actions { display: flex; gap: .5rem; margin: .4rem 0 .7rem; }
.arrangement-actions button { min-width: 0; font-size: .75rem; }
@media (max-width: 700px) {
  .head-arrangement { top: 10.5rem; right: 1rem; width: min(20rem, calc(100% - 2rem)); }
  .head-arrangement .arrangement-body { max-height: 53svh; }
}
@media (max-width: 480px) {
  .track { gap: .45rem; }
  button { min-width: 0; font-size: .83rem; }
  output { font-size: .68rem; }
  .flight { padding-bottom: .6rem; }
}

.water-tuning { position:fixed; z-index:5; right:1rem; bottom:1rem; width:min(21rem,calc(100% - 2rem)); color:#e4edf3; background:#0a1019ed; border:1px solid #8196a650; border-radius:10px; font-size:.8rem; backdrop-filter:blur(12px); }
.water-tuning summary { padding:.8rem 1rem; cursor:pointer; font-weight:600; }
.water-tuning fieldset { margin:0; padding:0 1rem 1rem; border:0; }
.water-strength-inputs { display:grid; grid-template-columns:minmax(0,1fr) 5.5rem; gap:.8rem; align-items:center; }
.water-strength-inputs input[type=range] { width:100%; min-width:0; min-height:44px; accent-color:#add8e8; }
.water-strength-exact { display:flex; gap:.3rem; align-items:center; }
.water-strength-exact input { width:4rem; min-width:0; min-height:44px; padding:.3rem; background:#18232e; color:inherit; border:1px solid #8196a6; border-radius:4px; font:inherit; }
.water-presets { display:flex; flex-wrap:wrap; gap:.4rem; margin:.35rem 0 .65rem; }
.water-presets button { font:inherit; padding:.35rem .5rem; min-height:44px; }
.water-tuning output { display:block; color:#b9d7e4; font-size:.75rem; }
.water-tuning p { color:#a9b5c3; font-size:.7rem; line-height:1.45; margin:.5rem 0 0; }
.water-tuning :focus-visible { outline:2px solid #d4efff; outline-offset:3px; }
@media(max-width:480px){.water-tuning { right:.65rem; bottom:.65rem; width:calc(100% - 1.3rem); }.water-tuning summary{padding:.65rem .8rem;}.water-tuning fieldset{padding:0 .8rem .8rem;}}


.scene-loading {
  --load-progress: 0%;
  --load-angle: 0deg;
  --load-ring-size: clamp(13rem, 42vmin, 21rem);
  position: fixed; inset: 0; z-index: 8; display: grid;
  isolation: isolate; place-items: center; align-content: safe center;
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); border: 0;
  text-align: center;
  color: #ffe6d5;
  background:
    radial-gradient(ellipse at 53% 112%, #3d1314 0%, #190c0e 40%, transparent 68%),
    radial-gradient(ellipse at 73% 15%, #1a0c11 0%, transparent 52%),
    #080607;
  font: 600 1rem/1.25 var(--passage-font);
  font-variant-numeric: tabular-nums;
}
.scene-loading:not([open]) { display: none; }
body:has(.scene-loading:modal) { overflow: hidden; }
.scene-loading-embers {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; pointer-events: none;
}
.scene-loading-sequence {
  display: grid; justify-items: center; width: 100%;
}
.scene-loading-count {
  position: relative; isolation: isolate;
  display: grid; align-content: center; justify-items: center; gap: .42rem;
  width: var(--load-ring-size); aspect-ratio: 1;
  background: radial-gradient(circle, #48141147, #14090a33 60%, transparent 71%);
}
.scene-loading-ring,
.scene-loading-ring::before {
  position: absolute; inset: 0; border-radius: 50%;
}
.scene-loading-ring {
  pointer-events: none;
  background: radial-gradient(circle, transparent calc(70.71% - 3px), #613125 calc(70.71% - 2px), #613125 calc(70.71% - 1px), transparent 70.71%);
}
.scene-loading-ring::before {
  content: '';
  background: conic-gradient(#ff925b, #ffe5c3 var(--load-progress), transparent var(--load-progress));
  mask: radial-gradient(circle, transparent calc(70.71% - 4px), #000 calc(70.71% - 3px), #000 calc(70.71% - 1px), transparent 70.71%);
}
.scene-loading[data-progress-active] .scene-loading-ring {
  filter: drop-shadow(0 0 4px #ff5836bf) drop-shadow(0 0 11px #ed41268c);
}
.scene-loading-ring > span {
  position: absolute; left: calc(50% - 2px); top: calc(50% - 2px);
  width: 4px; height: 4px; border-radius: 50%; opacity: 0;
  background: #fff0d6;
  box-shadow: 0 0 9px 2px #ff975c, 0 0 20px 3px #ff351e;
  transform: rotate(var(--load-angle)) translateY(calc(var(--load-ring-size) / -2 + 2px));
}
.scene-loading[data-progress-active] .scene-loading-ring > span { opacity: 1; }
.scene-loading:not([data-failed]) #scene-loading-message {
  color: #ffe2bc;
  font: 700 clamp(3.3rem, 14vmin, 6.3rem)/.92 var(--passage-font);
  letter-spacing: -.04em;
  text-shadow: 0 0 22px #fa591e80;
}
#scene-loading-assets {
  color: #d9a99b;
  font-size: clamp(.95rem, 2.4vmin, 1.2rem);
  font-weight: 500;
}
.scene-loading-connector {
  width: 1px; height: clamp(1rem, 3.2vmin, 1.6rem);
  margin-top: -1px;
  background: linear-gradient(#ff9e67, #ff9e670a);
  box-shadow: 0 0 9px #ff60345c;
}
.scene-loading-choice {
  min-width: 0; max-width: 100%; margin: .43rem 0 0; padding: 0;
  border: 0;
}
.scene-loading-choice legend { margin: 0 auto .6rem; padding: 0; font-size: clamp(1.08rem, 3vmin, 1.24rem); }
.scene-loading-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .62rem; }
.scene-loading-actions button {
  margin: 0; min-height: 44px; padding-inline: .88rem; border-radius: 4px;
  background: linear-gradient(#302022, #150f12); border-color: #bd8a7990;
}
.scene-loading-actions:not(:has([aria-pressed="true"])) [data-enter-music="off"],
.scene-loading-actions [aria-pressed="true"] {
  background: linear-gradient(#4a2520, #211316); border-color: #df916c;
  box-shadow: inset 0 0 9px #d05e3c44, 0 0 16px #fc4a2547;
}
.scene-loading-actions button:hover { border-color: #ffb47d; }
@media (max-width: 375px) {
  .scene-loading-actions { display: grid; min-width: min(14rem, calc(100vw - 2rem)); }
}
@media (max-height: 425px) {
  .scene-loading { --load-ring-size: clamp(9rem, 44vmin, 13rem); }
}
.scene-loading[data-failed] {
  width: auto; height: auto; gap: .5rem;
  inset: 1rem 1rem auto auto; max-width: min(24rem, calc(100% - 2rem)); padding: .75rem 1rem;
  background: #100f17ef; color: #fff4eb; font-size: 1rem; line-height: 1.45;
}
.scene-loading[data-failed] .scene-loading-count { display: block; width: auto; aspect-ratio: auto; background: none; }
.scene-loading[data-failed] :is(.scene-loading-embers, .scene-loading-ring, .scene-loading-connector, #scene-loading-assets) { display: none; }
@media (forced-colors: active) {
  .scene-loading :is(.scene-loading-embers, .scene-loading-connector) { display: none; }
  .scene-loading-ring { border: 1px solid CanvasText; }
}
.portfolio-music {
  --music-model-scale: .7;
  position: fixed; z-index: 10001;
  top: calc(max(.8rem, env(safe-area-inset-top)) + 20px);
  right: calc(max(1.05rem, env(safe-area-inset-right)) + 50px);
  width: clamp(54px, 9vmin, 76px); aspect-ratio: 1;
  min-width: 44px; min-height: 44px; padding: 0;
  border: 1px solid transparent; background: transparent;
  border-radius: 50%; touch-action: manipulation;
  color: #ffe4cc;
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .portfolio-music {
    --music-model-scale: .5;
    --music-fallback-size: 1.15rem;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    right: calc(env(safe-area-inset-right, 0px) + 4px);
  }
}
.music-fallback-symbol { position: relative; font: 400 var(--music-fallback-size, 2.3rem)/1 sans-serif; }
.music-fallback-symbol::after {
  content: '×'; position: absolute; top: 50%; right: -.6em;
  color: #ff7952; font-size: .6em; text-shadow: 0 0 .5em #ff401f;
}
.portfolio-music[aria-pressed="true"] .music-fallback-symbol::after { content: '✓'; }
@media (forced-colors: none) {
  .portfolio-music[data-projected] .music-fallback-symbol { visibility: hidden; }
  .portfolio-music:is(:focus-visible, [data-pointer-hover]) { color: #fff; }
}
@media (forced-colors: active) {
  .portfolio-music { forced-color-adjust: none; background: Canvas; color: CanvasText; border-color: ButtonText; }
  .music-fallback-symbol::after { color: CanvasText; }
}
.energy-tuning { top:1rem; bottom:auto; max-height:calc(100svh - 18rem); overflow-y:auto; overscroll-behavior:contain; }
.energy-tuning select { width:100%; min-height:44px; margin:.35rem 0 .6rem; padding:.4rem; border:1px solid #8196a6; border-radius:4px; background:#18232e; color:inherit; font:inherit; }
.energy-colour-inputs { display:grid; grid-template-columns:3.5rem minmax(0,1fr); gap:.7rem; margin:.35rem 0 .7rem; }
.energy-colour-inputs input { width:100%; min-width:0; min-height:44px; padding:.3rem; border:1px solid #8196a6; border-radius:4px; background:#18232e; color:inherit; font:inherit; }
.energy-colour-inputs input[aria-invalid=true] { border-color:#ff9d94; }
.wave-colour-controls { top:calc(1rem + 54px); z-index:5; }
.wave-colour-controls summary { justify-content:space-between; }
.wave-colour-controls[open] { width:14rem; }
.wave-colour-swatch { width:.8rem; height:.8rem; border:1px solid #e0d1c69c; border-radius:50%; background:var(--wave-colour,#ff1e00); }
.wave-colour-fields { padding:.15rem .85rem .85rem; border-top:1px solid #d4d1c83d; }
.wave-colour-fields button { width:100%; border-radius:4px; }
.wave-colour-fields button + button { margin-top:.35rem; }
.wave-colour-fields button:disabled { opacity:.65; cursor:default; }
@media(max-width:700px){.wave-colour-controls{top:calc(.7rem + 54px);right:.7rem}.wave-colour-controls summary{font-size:.68rem;gap:.7rem;padding:.65rem .75rem}}
.colour-control-tabs { display:flex; gap:.5rem; padding:0 1rem .75rem; }
.colour-control-tabs button { min-width:0; flex:1; font:inherit; border-radius:4px; }
.colour-control-tabs button[aria-pressed=true] { color:#101823; background:#c0d6e5; border-color:#d6e7f2; }
@media(max-width:480px){.energy-tuning { top:.65rem; bottom:auto; max-height:48svh; }}
.bay-project-info { position:absolute; left:clamp(1.2rem,4vw,4rem); bottom:clamp(1.2rem,4vh,3rem); z-index:3; max-width:min(28rem,calc(100% - 2.4rem)); color:#ecf5f3; text-shadow:0 2px 18px #001019; }
.bay-project-kicker { font:.65rem var(--passage-font); letter-spacing:.18em; text-transform:uppercase; color:#92c9cc; }
.bay-project-info h2 { margin:.4rem 0 .3rem; font:400 clamp(2rem,4vw,3.5rem)/1.05 var(--passage-font); letter-spacing:-.04em; }
.bay-project-intro { color:#b1ced0; font-size:.9rem; }
.bay-project-actions { display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }
.bay-project-actions button { font-size:.75rem; border-radius:2px; background:#08202bc9; border-color:#94c9ce66; color:#dceded; min-height:44px; }
.bay-project-actions button:first-child { background:#c2dedb; color:#0b2630; border-color:#d8e9e3; }
.bay-project-info :focus-visible,.bay-project-dialog :focus-visible { outline:2px solid #e5ffff; outline-offset:4px; }
.bay-project-dialog { position:fixed; width:min(64rem,calc(100% - 2rem)); max-height:90svh; border:1px solid #689ca366; border-radius:4px; padding:clamp(1.1rem,4vw,3rem); color:#dfeae7; background:#081c25; overflow:auto; }
.bay-project-dialog::backdrop { background:#020d14d9; backdrop-filter:blur(12px); }
.bay-case-close { float:right; min-width:0; background:transparent; border-color:#8ebcb45c; }
.bay-project-dialog h2 { margin:1rem 0 .6rem; font:400 clamp(2.5rem,5vw,4rem)/1 var(--passage-font); }
.bay-case-lead { color:#a9cacb; font-size:1.1rem; margin:0 0 1.5rem; }
.bay-project-dialog img { width:100%; height:auto; display:block; margin:1.2rem 0; }
.bay-project-dialog > p:not(.bay-project-kicker) { line-height:1.6; max-width:70ch; }
.bay-project-dialog dl { display:grid; gap:1rem; margin:1.5rem 0 0; }
.bay-project-dialog dl>div { display:grid; grid-template-columns:8rem 1fr; gap:1.5rem; border-top:1px solid #8ab0b130; padding-top:1rem; }
.bay-project-dialog dt { color:#88bcc1; font-size:.8rem; }
.bay-project-dialog dd { margin:0; font-size:.9rem; line-height:1.6; }
@media(max-width:600px){.bay-project-info { bottom:5rem; }main:has(.water-tuning:not(.energy-tuning)[open]) .bay-project-info{bottom:16rem;}.bay-project-dialog dl>div{grid-template-columns:1fr;gap:.5rem;}.bay-project-actions{margin-top:.7rem;gap:.4rem;}}

.atmosphere-tuning{position:fixed;right:1rem;bottom:1rem;z-index:6;width:min(20rem,calc(100vw - 2rem));border:1px solid #aabdac66;border-radius:8px;background:#090e18ed;color:#e0e7dd;backdrop-filter:blur(12px);font-size:.8rem;max-height:70svh;overflow:auto;overscroll-behavior:contain}
.atmosphere-tuning summary{cursor:pointer;padding:.8rem 1rem;min-height:44px;font-weight:600}
.atmosphere-tuning fieldset{border:0;margin:0;padding:0 1rem 1rem;}
.atmosphere-control label{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.atmosphere-control output{font:.72rem var(--passage-font);color:#b4e5bd}
.atmosphere-inputs{display:grid;grid-template-columns:minmax(0,1fr) 4.5rem;gap:.7rem;align-items:center;margin:.2rem 0 .65rem}
.atmosphere-inputs input{width:100%;min-width:0;min-height:44px;accent-color:#82ce94}
.atmosphere-inputs input[type=number]{border:1px solid #8a9caa;background:#18202a;color:inherit;border-radius:4px;padding:.3rem;font:inherit}
.atmosphere-tuning button{font:inherit;min-height:44px;border-radius:4px;min-width:0}
.atmosphere-tuning p{font-size:.7rem;color:#a9b9bf;line-height:1.5;margin:.7rem 0 0}
.atmosphere-tuning :focus-visible{outline:2px solid #b9f3c6;outline-offset:3px}
@media(max-width:600px){.atmosphere-tuning{right:.65rem;bottom:.65rem;max-height:52svh;width:min(20rem,calc(100vw - 1.3rem))}}

.selected-work-scene{position:fixed;inset:0;z-index:10000;width:100%;height:100svh;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .24s ease,visibility 0s .24s}
.selected-work-scene.is-open{visibility:visible;opacity:1;pointer-events:auto;transition:opacity .24s ease}
.grenada-project-scene{transition:opacity .8s ease,visibility 0s .8s}
.grenada-project-scene.is-open{transition:opacity .8s ease}
.tobago-project-scene,.tobago-project-scene.is-open{transition:none}
body.project-scene-open{overflow:hidden}
body.project-scene-open :is(.island-selector,.project-shortcuts,.wave-colour-controls){visibility:hidden}
@media(prefers-reduced-motion:reduce){.selected-work-scene,.selected-work-scene.is-open{transition:none}}

.scene .fallback { position: absolute; inset: 0; display: grid; place-items: center; background: #060304; }
.scene .fallback img {
  width: min(89vmin, 38rem); height: auto; aspect-ratio: 1; object-fit: cover;
  mask-image: radial-gradient(circle closest-side, #000 92%, transparent);
}
body:has(.portfolio-fallback) .scene-loading { display: none; }
.portfolio-fallback { padding: 2rem; max-width: 36rem; }
.portfolio-fallback a { color: #ffbaaa; margin-right: 1.3rem; }

.portfolio-cursor {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 12;
  pointer-events: none;
}
.portfolio-cursor::before,
.portfolio-cursor::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  border-radius: 50%;
  translate: -50% -50%;
}
.portfolio-cursor::before {
  width: 5px;
  height: 5px;
  background: #ffb18a;
  box-shadow: 0 0 0 1px #471410, 0 0 7px 2px #ff4c2b;
}
.portfolio-cursor::after {
  width: 21px;
  height: 21px;
  border: 1px solid #ff693e;
  box-shadow: 0 0 0 1px #56150f, 0 0 6px #ff371daa, inset 0 0 4px #ff53236b;
  opacity: 0;
}
.portfolio-cursor[data-actionable]::after { opacity: 1; }
@media (forced-colors: none) {
  html.has-portfolio-cursor,
  html.has-portfolio-cursor * {
    cursor: none !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .portfolio-cursor::after { transition: opacity .12s ease-out; }
}

