.dives-page{height:100dvh;overflow:hidden;display:flex;flex-direction:column}.dives-header{height:88px;flex-shrink:0;padding:20px 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #668f973d;background:#061d29dd;gap:24px}.dives-header .wordmark{font-size:35px}.dives-header .wordmark span{font-size:9px;margin-top:12px;letter-spacing:2px}.dives-header nav{display:flex;align-items:center;gap:28px;font-size:14px}.language-switch{display:flex;border:1px solid #698e94;border-radius:25px;padding:3px;gap:2px}.language-switch button{font:inherit;border:0;border-radius:20px;padding:6px 9px;color:#b4d1d1;background:none;cursor:pointer;font-size:12px}.language-switch button[aria-pressed=true]{background:#bde9c7;color:#082e38}.dive-workspace{display:grid;grid-template-columns:310px minmax(0,1fr);flex:1;min-height:0}.dive-sidebar{overflow-y:auto;overscroll-behavior:contain;padding:30px 24px;background:#071d28ed;border-right:1px solid #668f973d}.sidebar-heading .kicker{font-size:10px;letter-spacing:2px;margin-bottom:18px}.sidebar-heading h1{font-size:40px;line-height:1.1;letter-spacing:-2px}.sidebar-heading>p:last-child{font-size:14px;color:#a4bdc5;line-height:1.6}.day-list{display:flex;flex-direction:column;gap:8px;margin:25px 0}.day-button{display:flex;flex-direction:column;align-items:start;gap:9px;padding:16px;border:1px solid #33525d;border-radius:6px;background:#102d39;color:#c4dbdb;cursor:pointer;font:inherit;width:100%;text-align:left}.day-button strong{font-size:15px;font-weight:500}.day-button small{font-size:12px;color:#a5c6c9}.day-button[aria-pressed=true]{border-color:#a1d8c1;background:#18414a;color:#e7f4ed}.day-dive-heading{font-size:12px;color:#9dbcbf;line-height:1.5;margin:24px 0 14px}.day-dive-list{display:flex;flex-direction:column;gap:9px}.dive-choice{border:1px solid #284653;background:#0a2530;color:#dfede8;padding:15px;border-radius:6px;text-align:left;font:inherit;cursor:pointer;width:100%}.dive-choice[aria-current=true]{border-color:#bde9c7;background:#194047}.dive-choice-title{display:block;font-size:16px;margin:8px 0;overflow-wrap:anywhere;font-weight:500}.dive-choice-meta{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#a4c5c8}.dive-choice svg{width:100%;height:30px;margin-top:12px;opacity:.7}.dive-viewer{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.viewer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-shrink:0;min-height:80px;padding:15px 30px;border-bottom:1px solid #668f973d;background:#07232cdd}.viewer-toolbar p{font-size:12px;margin:0 0 7px;color:#b0ceca}.viewer-toolbar h2{font:400 23px Georgia,serif;letter-spacing:0;line-height:1.15;margin:0;overflow-wrap:anywhere}.viewer-toolbar button{border:1px solid #5e8d8d;border-radius:25px;background:#10323d;color:#bde9c7;padding:9px 15px;font:inherit;font-size:12px;cursor:pointer;flex-shrink:0}.dive-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth;position:relative;scrollbar-color:#628c8d #092331;outline-offset:-4px;--viewer-height:700px}.dives-page .journey{height:calc(var(--viewer-height)*5);margin:0}.dives-page .dive-stage{height:var(--viewer-height);min-height:0;top:0}.scroll-hint{position:absolute;top:18px;left:30px;z-index:1;font-size:12px;letter-spacing:.5px;color:#c5ded4;pointer-events:none}.dives-page .journey-top{top:60px;left:35px;right:35px;padding:0 0 18px}.dives-page .journey-top .kicker{font-size:10px;letter-spacing:1.5px}.dives-page .journey-top .change-dive{display:none}.dives-page .narrative{left:5%;top:28%;width:43%;max-width:550px}.dives-page .custom-milestone h2{font-size:clamp(30px,3.4vw,54px);max-height:calc(var(--viewer-height)*.27)}.dives-page .custom-milestone #phase-copy{font-size:15px;max-height:calc(var(--viewer-height)*.22);line-height:1.65;margin:20px 0}.dives-page .phase-dots{margin-top:22px;gap:12px}.dives-page .depth-meter{top:20%;right:8%}.dives-page .depth-meter strong{font-size:70px}.dives-page .depth-meter .instrument-label{font-size:9px}.dives-page .depth-rail{right:5%;top:46%;height:27%}.dives-page .journey-diver{left:58%;top:32%;width:26%;max-width:300px}.dives-page .journey-bottom{left:5%;right:7%;bottom:35px;gap:20px;grid-template-columns:100px minmax(0,1fr) 80px}.dives-page .profile-mini{max-width:360px}.dives-page .profile-caption{font-size:7px}.dives-page .profile-caption span:nth-child(2){display:none}.dives-page .progress-display{display:grid}.dives-page .time-display strong{font-size:23px}.dive-finish{padding:45px 8%;background:#08232c;border-top:1px solid #33525d;color:#bcd5d4;font-size:16px;line-height:1.7}.dive-finish .kicker{margin-bottom:15px}.dive-sidebar #story-status{font-size:14px}.dives-page .narrative[hidden],.dives-page [hidden]{display:none}.dive-scroll:focus-visible{outline:2px solid #bde9c7}.dive-choice:focus-visible,.day-button:focus-visible{outline:2px solid #e1f3ce;outline-offset:3px}@media(max-width:1000px){.dive-workspace{grid-template-columns:250px minmax(0,1fr)}.dive-sidebar{padding:25px 18px}.dives-page .depth-meter strong{font-size:58px}.dives-page .journey-bottom{grid-template-columns:70px minmax(0,1fr);gap:20px}.dives-page .progress-display{display:none}.dives-page .depth-meter .instrument-label{font-size:8px}.viewer-toolbar{padding:14px 22px}.dives-page .narrative h2{font-size:34px}}@media(max-width:700px){.dives-header{height:70px;padding:15px 18px;gap:15px}.dives-header .wordmark{font-size:30px}.dives-header .wordmark span{font-size:7px;letter-spacing:1.5px;margin-top:10px}.dives-header nav{gap:15px;font-size:12px}.dives-header nav a:first-child{display:none}.dive-workspace{display:flex;flex-direction:column}.dive-sidebar{padding:12px 16px;border-right:0;border-bottom:1px solid #668f973d;flex-shrink:0;overflow:visible}.sidebar-heading{display:none}.day-list{flex-direction:row;overflow-x:auto;margin:0 0 10px;gap:8px;padding-bottom:4px;scrollbar-width:thin}.day-button{width:auto;min-width:150px;padding:9px 12px;gap:5px;flex-shrink:0}.day-button strong{font-size:13px}.day-button small{font-size:11px}.day-dive-heading{display:none}.day-dive-list{flex-direction:row;overflow-x:auto;gap:8px;padding-bottom:4px;scrollbar-width:thin}.dive-choice{min-width:150px;width:150px;padding:10px 12px;flex-shrink:0}.dive-choice-meta{font-size:10px}.dive-choice-title{font-size:13px;margin:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dive-choice svg{display:none}.dive-sidebar #story-status{margin:0}.dive-viewer{flex:1}.viewer-toolbar{min-height:66px;padding:10px 16px;gap:12px}.viewer-toolbar h2{font-size:18px}.viewer-toolbar p{font-size:10px;margin-bottom:5px}.viewer-toolbar button{font-size:11px;padding:7px 10px}.scroll-hint{top:13px;left:18px;font-size:10px}.dives-page .journey-top{top:42px;left:18px;right:18px;padding-bottom:12px}.dives-page .journey-top .kicker{font-size:8px;letter-spacing:1px}.dives-page .depth-meter{top:19%;right:8%}.dives-page .depth-meter strong{font-size:48px}.dives-page .narrative{left:5%;top:29%;width:55%}.dives-page .custom-milestone h2{font-size:27px;line-height:1.06}.dives-page .custom-milestone #phase-copy{font-size:12px;line-height:1.6;margin:15px 0}.dives-page .phase-dots{font-size:9px;margin-top:15px}.dives-page .journey-diver{left:58%;width:33%;top:39%}.dives-page .depth-rail{top:48%;height:25%;right:5%}.dives-page .journey-bottom{bottom:25px;grid-template-columns:60px minmax(0,1fr);left:5%;right:8%;gap:20px}.dives-page .time-display strong{font-size:18px}.dives-page .instrument-label{font-size:8px}.dives-page .profile-mini svg{height:35px}.dive-finish{padding:30px 6%;font-size:14px}}@media(prefers-reduced-motion:reduce){.dive-scroll{scroll-behavior:auto}}

.dives-page .custom-milestone h2{line-height:1.15;padding-bottom:3px}
.dives-page .narrative{max-height:57%;overflow-y:auto;overscroll-behavior:auto;padding-right:8px;scrollbar-width:thin}.dives-page .custom-milestone h2,.dives-page .custom-milestone #phase-copy{max-height:none}#moment-gallery{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.moment-thumbnail{position:relative;padding:0;border:1px solid #9ac7bd77;border-radius:6px;overflow:hidden;background:#082a35;color:#e7f4ed;cursor:pointer;width:96px;height:76px;flex-shrink:0}.moment-thumbnail img,.moment-thumbnail video{width:100%;height:100%;object-fit:cover;pointer-events:none}.moment-thumbnail span{position:absolute;bottom:0;left:0;right:0;padding:5px 3px;background:#031622c9;font-size:10px}.moment-lightbox{background:#061d29;color:#e7f4ed;border:1px solid #638d91;border-radius:10px;padding:16px;max-width:94vw;max-height:94dvh}.moment-lightbox::backdrop{background:#010d18e8}.moment-lightbox>button{display:block;margin:0 0 12px auto;border:1px solid #638d91;border-radius:20px;padding:8px 18px;background:#123641;color:#e7f4ed;cursor:pointer}.moment-lightbox-content img,.moment-lightbox-content video{display:block;max-width:85vw;max-height:76dvh;object-fit:contain}@media(max-width:700px){.moment-thumbnail{width:75px;height:60px}.moment-lightbox{padding:10px}}
.dives-page .dive-stage:has(.moment-thought:not([hidden])) .narrative{left:5%;top:48%;width:31%;max-height:48%;transform:translateY(-50%)}
.dives-page .dive-stage:has(.moment-thought:not([hidden])) .journey-diver{left:73%;top:48%;width:18%;max-width:240px}
.moment-thought{position:absolute;left:41%;top:48%;width:27%;z-index:3;padding:0;background:none;border:0;border-radius:0;box-shadow:none;transform:translateY(-50%);isolation:isolate}
.moment-thought #moment-gallery{display:flex;flex-wrap:nowrap;gap:8px;margin:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#77aaaa transparent;border-radius:0;align-items:center}
.moment-thought{--media-height:calc(var(--viewer-height)*.36)}
.moment-thought #moment-gallery:has(> :only-child){justify-content:center}
.moment-thought .moment-thumbnail{width:min(100%,calc(var(--media-height)*var(--media-ratio,1.333333)));height:auto;aspect-ratio:var(--media-ratio,1.333333);max-height:none;flex:0 0 auto;border:0;border-radius:8px;scroll-snap-align:center;background:none}
.moment-thought .moment-thumbnail img,.moment-thought .moment-thumbnail video{position:absolute;inset:0;display:block;object-fit:contain}
.moment-thought .moment-thumbnail span{padding:10px 6px;font-size:11px;background:linear-gradient(transparent,#031622df)}
.moment-thought .moment-thumbnail:focus-visible{outline:3px solid #f3cf7c;outline-offset:-4px}
@media(min-width:701px) and (max-width:1000px){.dives-page .dive-stage:has(.moment-thought:not([hidden])) .narrative{top:53%;width:32%}.dives-page .dive-stage:has(.moment-thought:not([hidden])) .narrative h2{font-size:29px}.moment-thought{left:41%;width:28%;top:53%}.dives-page .dive-stage:has(.moment-thought:not([hidden])) .journey-diver{top:53%;left:76%;width:17%}}
@media(max-width:700px){
  .dives-page .journey-top{left:6%;right:6%}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .depth-meter{top:16%;right:7%}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .depth-meter strong{font-size:39px}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .depth-meter .instrument-label{font-size:7px;letter-spacing:1px}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) #live-temperature{font-size:8px;letter-spacing:.5px}
  .moment-thought{left:6%;top:33%;width:56%;padding:0;border-radius:0}
  .moment-thought #moment-gallery{border-radius:0}
  .moment-thought{--media-height:calc(var(--viewer-height)*.29)}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .journey-diver{left:72%;top:39%;width:22%}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .narrative{left:6%;top:55%;width:81%;max-height:27%;padding-right:8px;transform:none}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .narrative h2{font-size:26px;line-height:1.15}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .phase-label{font-size:9px;letter-spacing:2px;margin-bottom:12px}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .narrative #phase-copy{margin:12px 0;font-size:12px;line-height:1.65;max-width:none}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .phase-dots{margin-top:12px;gap:12px}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .depth-rail{right:5%;top:56%;height:20%}
  .dives-page .journey-bottom{left:6%;right:6%;bottom:20px;gap:16px}
}

/* Keep the desktop story and its media in one row, sized to the actual media. */
.moment-content{display:contents}
@media(min-width:701px){
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .moment-content{position:absolute;left:6%;top:29%;width:61%;max-height:48%;display:flex;align-items:flex-start;gap:clamp(24px,3vw,48px)}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .narrative{position:static;transform:none;width:auto;max-width:400px;max-height:calc(var(--viewer-height)*.48);flex:1 1 0;min-width:0;padding-right:0}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .moment-thought{position:static;transform:none;width:min(47%,calc(var(--media-height)*var(--first-media-ratio,1.333333)));flex:0 0 auto}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .journey-diver{left:70%;top:48%;width:20%;max-width:250px}
  .dives-page .dive-stage:has(.moment-thought:not([hidden])) .narrative h2{font-size:clamp(30px,3.3vw,50px)}
  .moment-thought #moment-gallery:has(> :only-child){justify-content:flex-start}
}

/* Selecting a dive opens the scrolling scene across the available viewport. */
.immersive-back{display:none}
.finish-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.finish-actions button,.immersive-back{font:inherit;font-size:13px;color:#d5f0df;background:#0a2b38e8;border:1px solid #86b6b180;border-radius:24px;padding:11px 18px;cursor:pointer}
.finish-actions button:hover,.immersive-back:hover{background:#19434d}
.finish-actions button:focus-visible,.immersive-back:focus-visible{outline:2px solid #d5f0df;outline-offset:3px}
.dives-page.is-immersive .dives-header,.dives-page.is-immersive .dive-sidebar,.dives-page.is-immersive .viewer-toolbar{display:none}
.dives-page.is-immersive .dive-workspace{display:flex;flex:1;min-height:0}
.dives-page.is-immersive .dive-viewer{width:100%;height:100%;flex:1}
.dives-page.is-immersive .immersive-back{position:fixed;display:inline-flex;align-items:center;min-height:44px;left:max(16px,env(safe-area-inset-left));top:calc(14px + env(safe-area-inset-top));z-index:8;backdrop-filter:blur(10px)}
.dives-page.is-immersive .scroll-hint{top:calc(70px + env(safe-area-inset-top));left:6%;font-size:11px}
.dives-page.is-immersive .journey-top{top:calc(104px + env(safe-area-inset-top));left:6%;right:6%}
.dives-page.is-immersive .journey-bottom{bottom:calc(26px + env(safe-area-inset-bottom))}
.dives-page.is-immersive .dive-scroll:focus:not(:focus-visible){outline:none}
@media(max-width:700px){.dives-page.is-immersive .journey-top{top:calc(98px + env(safe-area-inset-top))}.dives-page.is-immersive .scroll-hint{top:calc(72px + env(safe-area-inset-top));font-size:10px}.dives-page.is-immersive .journey-bottom{bottom:calc(22px + env(safe-area-inset-bottom))}}

@media(max-width:700px){.dives-page.is-immersive .moment-thought{top:36%;--media-height:calc(var(--viewer-height)*.25)}}

/* A moment is a nested scroller only when its text actually overflows.
   Let wheel/touch gestures continue into the dive, and keep changing moments
   from becoming scroll anchors that move the outer timeline unexpectedly. */
.dive-scroll{overflow-anchor:none}
