.album-switch{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 18px}
.album-switch a{color:var(--muted);font-size:.76rem;line-height:1.35;padding:8px 0;text-decoration:none}
.album-switch a[aria-current=page]{color:var(--amber);box-shadow:inset 0 -1px var(--amber)}
.album-switch a:hover{color:var(--ink)}
@media(max-width:620px){.masthead:has(.album-switch){height:auto;min-height:65px;flex-wrap:wrap;gap:0 16px;padding:12px 0}.album-switch{justify-content:flex-start}}
.between-album #scene{background:transparent;isolation:isolate}
.lighthouse-plate,.lighthouse-art,.lighthouse-light,.lighthouse-mist,.lighthouse-dawn-fog,.lighthouse-rain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.lighthouse-plate{display:block;object-fit:fill;transition:filter 1.2s}
.lighthouse-light{background:radial-gradient(ellipse 9% 8% at var(--light-x,22%) var(--light-y,69%),#efbd8050,transparent);mix-blend-mode:screen;opacity:0;transition:opacity .7s}
.lighthouse-art{mix-blend-mode:screen}
.lighthouse-mist{background:radial-gradient(ellipse 60% 14% at 24% 66%,#b5bec337,transparent),linear-gradient(180deg,#0a111b3d,transparent 35%,transparent 70%,#070e17a0);transition:opacity 1s}
.between-album [data-chapter="2"] .lighthouse-mist{opacity:.4}
[data-chapter="3"] .lighthouse-mist{opacity:.64}
.lighthouse-rain{opacity:0;background:url('/assets/between/rain.svg') repeat;transition:opacity .7s}
.between-album [data-chapter="3"] .lighthouse-rain{opacity:.58;animation:lighthouse-rain 1.1s linear infinite paused}
.between-album .is-sounding .lighthouse-rain{animation-play-state:running}
@keyframes lighthouse-rain{to{background-position:-200px 540px}}
.between-album #scene .room-button{left:var(--x);top:var(--y);width:44px;height:44px}
.between-album #scene .room-button[aria-current=true] .room-target{opacity:1;color:#151716;background:#e3bd88;box-shadow:0 0 0 5px #e3bd8842,0 0 25px #edb86c7a}
.between-album #scene .room-button[data-index="0"][aria-current=true] .room-target{box-shadow:0 0 0 3px #e3bd8833,0 0 9px #edb86c40}
.between-album .scene-navigation{margin:10px auto 0;width:100%;max-width:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.between-album .scene-choice{align-content:start;min-height:52px;padding-bottom:8px}
.between-album .scene-name{font-size:.8rem}
.between-album .lighthouse-location{margin:5px 0 8px;color:var(--muted);font-size:.84rem}
.between-album .sift-groups button{font-size:.71rem;padding:7px 8px;width:auto}
.lighthouse-beam{opacity:0;transform-origin:66.2% 20.5%;transition:opacity .55s,transform .35s linear}
[data-beam] .lighthouse-beam{opacity:var(--beam,.43);transform:rotate(var(--sweep,0deg))}
@media(max-width:620px){.between-album #scene .room-button .room-target{width:25px;height:25px;font-size:10px}.between-album .scene-navigation{gap:5px}.between-album .scene-name{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.lighthouse-rain{animation:none!important}.lighthouse-beam,.lighthouse-plate,.lighthouse-light,.lighthouse-mist{transition:none}}
.between-album .sift-return{position:static;margin:0 auto 4px;min-height:44px}
.lighthouse-visuals{
  position:absolute;inset:0;isolation:isolate;pointer-events:none;
  mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%20800%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22f%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2224%2020%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22white%22%20filter%3D%22url%28%23f%29%22%20d%3D%22M120%2052C286%2034%20632%2050%20807%2054Q920%2052%20940%20134C963%20255%20946%20477%20938%20609Q932%20720%20836%20746C650%20770%20317%20747%20145%20744Q54%20733%2047%20645C37%20518%2054%20345%2055%20210Q53%2081%20120%2052Z%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}
/* The supplied photographic fog plate is revealed away by a soft wind front. */
.lighthouse-dawn-fog{
  opacity:var(--dawn-fog,0);
  background:url('/assets/between/lighthouse-opening-fog.png') center / 100% 100% no-repeat;
  mask-image:linear-gradient(105deg,transparent calc(var(--fog-front,-35%) - 22%),#000 calc(var(--fog-front,-35%) + 22%));
  transition:opacity .18s linear;
}
[data-story="1"] .lighthouse-dawn-fog{
  mask-image:linear-gradient(105deg,transparent calc(var(--fog-front,-35%) - 22%),#000 calc(var(--fog-front,-35%) + 22%)),
    radial-gradient(ellipse 16% 20% at 21% 79%,#0003 0%,#0008 40%,#000 100%);
  mask-composite:intersect;
}
@media(prefers-reduced-motion:reduce){.lighthouse-dawn-fog{transition:none}}

/* One coast, with a different sky grade and swell in each chapter. */
.lighthouse-water,.lighthouse-sky,.lighthouse-grade,.coast-story,.coast-story>div{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.lighthouse-water{opacity:0;transition:opacity .45s}
.lighthouse-water.is-moving{opacity:1}
.lighthouse-sky{opacity:0;transition:opacity 1.15s}
.is-sounding .lighthouse-sky{opacity:1}
[data-chapter="2"].is-sounding .lighthouse-sky{opacity:.56}
[data-chapter="3"].is-sounding .lighthouse-sky{opacity:.83}
.coast-cloud{opacity:0}
.is-sounding .coast-cloud-near{animation:coast-sky-pass 131s linear -31s infinite}
.is-sounding .coast-cloud-far{animation:coast-sky-pass 113s linear 32s infinite;--cloud-peak:.77}
.is-sounding .coast-cloud-low{animation:coast-sky-pass 163s linear 66s infinite;--cloud-peak:.82}
[data-chapter="1"] .coast-cloud-near{animation-duration:106s}
[data-chapter="2"] .coast-cloud-near{animation-duration:152s}
[data-chapter="3"] .coast-cloud-near{animation-duration:49s;animation-delay:-12s}
[data-chapter="3"] .coast-cloud-far{animation-duration:67s;animation-delay:8s}
[data-chapter="3"] .coast-cloud-low{animation-duration:83s;animation-delay:24s}
@keyframes coast-sky-pass{
  0%{opacity:0;transform:translateX(-460px)}
  21%,43%{opacity:var(--cloud-peak,.9)}
  65%,100%{opacity:0;transform:translateX(830px)}
}
@media(prefers-reduced-motion:reduce){.is-sounding .lighthouse-sky{opacity:0;transition:none}}
.between-album #scene{--coast-grade:brightness(var(--dawn-light,1.14)) saturate(.83)}
.between-album #scene[data-chapter="1"]{--coast-grade:brightness(1.31) saturate(.69)}
.between-album #scene[data-chapter="2"]{--coast-grade:brightness(.57) saturate(.84) contrast(1.09)}
.between-album #scene[data-chapter="3"]{--coast-grade:brightness(.48) saturate(.63) contrast(1.13)}
.between-album #scene :is(.lighthouse-plate,.lighthouse-water){filter:var(--coast-grade);transition:filter 1.2s,opacity .45s}
.lighthouse-grade{background:linear-gradient(152deg,#bbcdeb38 1%,transparent 54%),radial-gradient(ellipse 53% 24% at 15% 56%,#f7bc7737,transparent);mix-blend-mode:screen}
[data-chapter="1"] .lighthouse-grade{background:linear-gradient(145deg,#f8d5a647,transparent 64%),linear-gradient(180deg,#adc5db23,transparent 70%)}
[data-chapter="2"] .lighthouse-grade{background:linear-gradient(180deg,#253d661e,transparent 67%)}
[data-chapter="3"] .lighthouse-grade{background:linear-gradient(180deg,#273f5925,transparent 65%)}
[data-chapter="0"]:not(.is-sounding) .lighthouse-light,[data-chapter="1"] .lighthouse-light{opacity:0}
[data-chapter="0"][data-stop="5"] .lighthouse-grade{background:linear-gradient(180deg,#b9c8d832,transparent 70%),radial-gradient(ellipse 60% 21% at 18% 66%,#adbabc66,transparent)}
.coast-story>*{opacity:0}
[data-story="1"] .lighthouse-light{
  opacity:.72;
  background:radial-gradient(ellipse 4% 4% at 21.1% 69.3%,#f4bd7a63,transparent),
             radial-gradient(ellipse 9% 2.4% at 23% 83.5%,#ecad685e,transparent);
  animation:dock-ignition .9s linear both,dock-lamp 9.6s .9s ease-in-out infinite;
}
@keyframes dock-ignition{0%{opacity:0}26%{opacity:.67}40%{opacity:.21}100%{opacity:.72}}
@keyframes dock-lamp{0%,100%{opacity:.72}23%{opacity:.92}46%{opacity:.40}62%{opacity:.68}76%{opacity:.53}90%{opacity:.82}}
.coast-morning-mist{background:radial-gradient(ellipse 46% 10% at 11% 77%,#c6d6df65,transparent 95%),radial-gradient(ellipse 33% 7% at 17% 69%,#a7bed140,transparent)}
/* The rising disc and its warm haze stay close to the sea horizon. */
[data-morning-blue] .coast-sunrise{
  opacity:var(--morning-rise,.5);
  mix-blend-mode:screen;
  background:
    radial-gradient(ellipse 29% 5% at 18% 52.5%,#ffb67ab0 0%,#f19a607d 44%,transparent 100%),
    radial-gradient(ellipse 49% 18% at 18% 52%,#e494647f 0%,#ce77584b 56%,transparent 100%),
    radial-gradient(ellipse 20% 7% at 19% 66%,#ffc49330 0%,transparent 100%),
    radial-gradient(ellipse 49% 43% at 35% 23%,#668bb36c 0%,#52759b32 57%,transparent 100%);
}
[data-morning-blue] .coast-sunrise::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(ellipse 2.25% 2.45% at 18% var(--sun-height,53%),#fff2cd 0%,#ffdea1 76%,#ffc68896 93%,transparent 100%),
    radial-gradient(ellipse 9% 6% at 18% var(--sun-height,53%),#ffb7687a 0%,#f4a36e37 50%,transparent 100%);
  mask-image:linear-gradient(#000 0 52.2%,#0008 53.4%,transparent 54.6%);
}
.between-album #scene[data-morning-blue]{--coast-grade:brightness(1.17) saturate(.78)}
.between-album #scene[data-morning-blue] .room-button:not([data-index="1"]),
.between-album #scene[data-one-more-corner] .room-button:not([data-index="2"]),
.between-album #scene[data-watch-your-six] .room-button:not([data-index="3"]){display:none}

[data-story="5"] .coast-morning-mist{background:radial-gradient(ellipse 70% 15% at 19% 67%,#b3c4cd9c,transparent 90%),radial-gradient(ellipse 41% 9% at 13% 79%,#b5c4d16e,transparent);animation:coast-mist-drift 14s ease-in-out infinite alternate}
@keyframes coast-mist-drift{from{opacity:.28;transform:translateX(-11%)}to{opacity:.83;transform:translateX(12%)}}
/* A cloud pulls back from the headland, uncovering light on the wet approach. */
.coast-cloud-shadow{
  background:radial-gradient(ellipse 42% 24% at 60% 72%,#1724339e,transparent 100%);
  mix-blend-mode:multiply;
}
[data-one-more-corner] .coast-cloud-shadow{
  opacity:var(--corner-shadow-opacity,.8);
  transform:translateX(var(--corner-shadow-x,-10%));
}
[data-one-more-corner] .coast-corner-light{
  opacity:var(--corner-light,.16);
  mix-blend-mode:screen;
  background:
    radial-gradient(ellipse 12% 4% at 63% 76%,#ffcb88d9 0%,#e6aa687a 55%,transparent 100%),
    radial-gradient(ellipse 8% 10% at 64% 70%,#f6bc7b9e 0%,#d4a06e4e 53%,transparent 100%),
    radial-gradient(ellipse 20% 8% at 56% 83%,#e9b37b60 0%,#d4a67a29 53%,transparent 100%),
    radial-gradient(ellipse 37% 6% at 20% 53%,#edaa7549,transparent 100%);
}
@media(prefers-reduced-motion:reduce){
  [data-one-more-corner] .coast-cloud-shadow{transform:none;opacity:.26}
}

[data-story="3"] .coast-corner-gulls{
  opacity:var(--corner-gulls,0);
  transform:translate(var(--corner-gull-x,0px),var(--corner-gull-y,0px));
}
[data-story="3"] .coast-gull{transform-box:fill-box;transform-origin:center;animation:coast-gull-wing .7s ease-in-out infinite alternate}
[data-story="3"] .coast-gull:nth-child(2){animation-delay:-.25s}
[data-story="3"] .coast-gull:nth-child(3){animation-delay:-.45s}
@keyframes coast-gull-wing{from{transform:scaleY(.35)}to{transform:scaleY(1.15)}}

/* The workshop light builds behind the glass and spills onto the threshold. */
[data-story="4"] .coast-workshop-spill{
  opacity:var(--workshop-lamp,0);mix-blend-mode:screen;
  background:
    radial-gradient(ellipse 8% 6% at 86.5% 65%,#ffd08cc4,transparent 100%),
    radial-gradient(ellipse 10% 3.6% at 84% 72%,#ffc27ab8,#d6a26b59 53%,transparent 100%),
    radial-gradient(ellipse 5% 2.5% at 77% 70.5%,#ffbc7656,transparent 100%);
}
[data-story="4"] .coast-workshop-shadow{
  opacity:var(--workshop-shadow,0);
  clip-path:polygon(81.7% 60.8%,91.9% 60.9%,92% 69.3%,81.8% 69.4%);
  background:radial-gradient(ellipse 2.8% 9% at var(--workshop-shadow-x,81%) 67.6%,#141920ee 0%,#191922ba 55%,transparent 100%);
}
@media(prefers-reduced-motion:reduce){
  .between-album #scene :is(.lighthouse-plate,.lighthouse-water){transition:none}
  .between-album #scene .lighthouse-light,.coast-story>*{animation:none!important}
  [data-story="4"] .coast-workshop-shadow,[data-story="3"] .coast-corner-gulls{opacity:0}
}

/* The scene starts unlit. Each mask restores only its original fixture. */
.lighthouse-fixtures,.coast-afternoon{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.lighthouse-fixtures{filter:var(--coast-grade);transition:filter 1.2s}
.lighthouse-fixtures use{opacity:1;transition:opacity .65s}
[data-lights~="dock"] .fixture-dock,[data-lights~="door"] .fixture-door,[data-lights~="lower"] .fixture-lower,[data-lights~="upper"] .fixture-upper,[data-lights~="workshop"] .fixture-workshop,[data-lights~="lantern"] .fixture-lantern{opacity:0}
[data-story="4"][data-lights~="workshop"] .fixture-workshop{opacity:var(--workshop-dim,1)}
@media(prefers-reduced-motion:no-preference){
  [data-lights~="dock"] .fixture-dock{animation:dock-fixture-ignition .9s linear both,dock-fixture-breathe 9.6s .9s ease-in-out infinite}
}
@keyframes dock-fixture-ignition{0%{opacity:1}26%{opacity:.12}40%{opacity:.73}100%{opacity:.14}}
@keyframes dock-fixture-breathe{0%,100%{opacity:.14}23%{opacity:0}46%{opacity:.38}62%{opacity:.17}76%{opacity:.28}90%{opacity:.07}}
.coast-afternoon{opacity:1}
.coast-afternoon>g{opacity:0}
.coast-door-daylight{background:linear-gradient(115deg,#d7dfd2c2,transparent 76%);clip-path:polygon(64.8% 65%,66% 64.7%,66% 73%,64.8% 73%,59% 77%,61.2% 77%);mix-blend-mode:screen}
[data-story="6"] .coast-door-daylight{animation:coast-door-close 14s ease-out both;transform-origin:65.6% 69%}
@keyframes coast-door-close{0%{opacity:.78;transform:scaleX(1.25)}65%,100%{opacity:.22;transform:scaleX(.28)}}
[data-story="7"] .coast-wind-gauge{opacity:1}
.coast-wind-cups{transform-origin:813px 388px}
[data-story="7"] .coast-wind-cups{animation:coast-gauge 1.9s linear infinite}
@keyframes coast-gauge{0%,100%{transform:scaleX(1)}25%,75%{transform:scaleX(.17)}50%{transform:scaleX(-1)}}
[data-story="8"] .coast-boat{animation:coast-boat-leaves 44s linear both}
@keyframes coast-boat-leaves{0%{opacity:0;transform:translateX(38px)}12%{opacity:.9}81%{opacity:.82}100%{opacity:0;transform:translateX(-275px)}}
.coast-window-glint{inset:47.5% auto auto 65%;width:2.55%;height:6%;overflow:hidden;transform:skewY(-2deg);mix-blend-mode:screen}
.coast-window-glint::before{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 20%,#f6e6c4b3 49%,transparent 74%);transform:translateX(-115%)}
[data-story="9"] .coast-window-glint{opacity:.7;background:#b0b6b11a}
[data-story="9"] .coast-window-glint::before{animation:coast-glint 7s ease-out both}
@keyframes coast-glint{25%{transform:translateX(-115%)}85%,100%{transform:translateX(115%)}}
.coast-clearing{background:radial-gradient(ellipse 53% 19% at 23% 63%,#d0d4cd52,transparent);mix-blend-mode:screen}
[data-story="10"] .coast-clearing{animation:coast-clears 22s ease-out both}
[data-story="10"] .coast-birds{animation:coast-birds-away 18s ease-in-out both}
@keyframes coast-clears{from{opacity:.92}to{opacity:.12}}
@keyframes coast-birds-away{0%{opacity:0;transform:translate(18px,13px)}12%{opacity:.88}87%{opacity:.63}100%{opacity:0;transform:translate(-440px,-92px)}}
@media(prefers-reduced-motion:reduce){.lighthouse-fixtures,.lighthouse-fixtures use{transition:none}.coast-story *{animation:none!important}}

/* Track points emerge with the clearing; only the lit dock is visible first. */
.between-album #scene[data-opening-fog] .room-button{opacity:var(--fog-points,0);transition:opacity .35s}
.between-album #scene[data-opening-fog][data-story="1"] .room-button[data-index="0"],
.between-album #scene[data-opening-fog] .room-button[data-index="0"]:hover,
.between-album #scene[data-opening-fog] .room-button[data-index="0"]:focus-visible{opacity:1}
@media(prefers-reduced-motion:reduce){.between-album #scene[data-opening-fog] .room-button{transition:none}}
