/* A single viewport is the proscenium. All navigation stays outside its moving parts. */
:root {
  --stage-paper: #f8f5e9;
  --stage-ink: #202d3d;
  --bird-w: clamp(275px, 29vw, 460px);
  --sky: #ffc19c;
}
body {
  background: var(--stage-paper);
  color: var(--stage-ink);
}
body:before {
  display: none;
}
.theatre-shell {
  height: 100svh;
  min-height: 615px;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr) 85px;
  isolation: isolate;
}
.studio-head {
  z-index: 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 4.4vw;
  background: var(--stage-paper);
  box-shadow: 0 2px 3px #463f3a20;
}
.studio-head:after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--stage-paper);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 60%,
    98% 55%,
    97% 63%,
    91% 42%,
    87% 79%,
    84% 50%,
    79% 65%,
    76% 48%,
    71% 80%,
    68% 50%,
    61% 56%,
    57% 89%,
    53% 60%,
    47% 82%,
    40% 58%,
    37% 65%,
    31% 49%,
    28% 70%,
    24% 51%,
    17% 80%,
    9% 52%,
    5% 62%,
    0 40%
  );
}
.studio-brand,
.studio-head nav,
.visit-link {
  display: flex;
  align-items: center;
}
.studio-brand {
  gap: 21px;
}
.home-mark {
  padding: 0;
  display: flex;
  align-items: center;
}
.home-mark img {
  width: 148px;
  height: auto;
  display: block;
}
.studio-title {
  border-left: 1px solid #c6c7b9;
  padding-left: 20px;
  font: 19px/1.3 var(--hand);
  transform: rotate(-2deg);
  color: #35463e;
}
.studio-head nav {
  gap: 25px;
}
.visit-link {
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 4px;
}
.visit-link svg {
  width: 15px;
  height: 15px;
}
.top-book {
  position: relative;
  background: #263342;
  /* A warm edge stays visible between the occasional invitation to book. */
  box-shadow: 0 0 0 2px #e8815b;
}
.top-book:after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid #dc704c;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  animation: book-invitation 7s 1.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}
.top-book svg {
  animation: book-arrow 7s 1.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes book-invitation {
  0% { opacity: 0; transform: scale(1); }
  3% { opacity: 0.8; transform: scale(1); }
  17%, 100% { opacity: 0; transform: scale(1.1, 1.28); }
}
@keyframes book-arrow {
  0%, 3%, 17%, 100% { transform: translate(0, 0); }
  8% { transform: translate(3px, -3px); }
}
.top-book:hover,
.top-book:focus-visible {
  transform: none;
  background: #35475a;
  box-shadow: 0 0 0 3px #dc704c;
}
.top-book:focus-visible {
  outline: 2px solid var(--stage-ink);
  outline-offset: 6px;
}
/* Keep the tap target still and quiet while someone is using a control. */
.top-book:is(:hover, :focus-visible):after,
.top-book:is(:hover, :focus-visible) svg,
body:has(dialog[open]) .top-book:after,
body:has(dialog[open]) .top-book svg,
html.motion-off .top-book:after,
html.motion-off .top-book svg {
  animation: none;
}
html.tab-hidden .top-book:after,
html.tab-hidden .top-book svg {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .top-book:after,
  .top-book svg {
    animation: none;
  }
}
.world {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: var(--sky);
  touch-action: pan-y;
  user-select: none;
  container-type: size;
  /* Map the coast horizon through the same cover crop as the background.
     The desktop illustration is 1858 × 846, positioned 62% vertically. */
  --harbour-rim: calc(62cqh + max(100cqh, 45.53cqw) * 0.12232 + 8px);
  --harbour-x: 56%;
}
.sets,
.set,
.flight-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sets {
  z-index: -2;
  overflow: hidden;
}
.set {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: auto;
  transform: translateZ(0);
}
.set.current {
  z-index: 1;
}
.set.coast {
  background-image: url("/assets/coast-set.webp");
  background-color: #ffc19c;
}
.set.orchard {
  background-image: url("/assets/orchard-set.webp");
  background-color: #e9e88a;
}
.set.museum {
  background-image: url("/assets/museum-set.webp");
  background-color: #caacdb;
}
.world.in-flight .set {
  will-change: transform;
}
.world:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  box-shadow: inset 0 1px 5px #713e2719;
}
.scene-copy {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.scene-home {
  left: 5%;
  right: 5%;
  top: clamp(24px, 6.3vh, 72px);
  text-align: center;
}
.scene-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font:
    650 10px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #31362c;
  margin: 0 0 14px;
}
.scene-kicker > span:first-child {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #d23f2d;
}
.scene-home .scene-kicker {
  justify-content: center;
}
.world .scene-copy h1 {
  color: #222f42;
  position: relative;
  width: auto;
  line-height: 0.93;
  font-size: clamp(83px, 9vw, 154px);
  letter-spacing: -0.079em;
  transform: rotate(-2.5deg);
  margin: 0 0 17px;
}
.scene-home h1 span {
  color: #d94b33;
}
.opening-line {
  font: 400 clamp(20px, 1.8vw, 26px)/1.3 var(--hand);
  letter-spacing: 0;
  text-wrap: balance;
}
.opening-line span {
  display: inline-block;
  max-width: 100%;
}
.phone-break {
  display: none;
}
.scene-stop {
  left: 9%;
  top: 15%;
  width: 44%;
  max-width: 680px;
}
.world .scene-stop h1 {
  font-size: clamp(66px, 6.8vw, 116px);
  max-width: 9.8ch;
  line-height: 0.94;
  transform: rotate(-2deg);
  transform-origin: 0 65%;
  margin: 0 0 21px;
}
.scene-blurb {
  font: 400 clamp(20px, 1.6vw, 24px)/1.3 var(--hand);
  letter-spacing: normal;
  max-width: 35ch;
  text-wrap: pretty;
}
.scene-actions {
  display: flex;
  gap: 17px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
  pointer-events: auto;
}
.session-book {
  background: #263342;
  color: #fff;
  padding: 12px 17px 12px 20px;
  font-size: 15px;
  gap: 12px;
}
.session-book svg {
  width: 17px;
  height: 17px;
}
.read-note {
  font-size: 14px;
  font-weight: 600;
  padding: 3px 0;
  border-bottom: 1px solid #515749;
}
.read-note:hover {
  color: #162eaf;
}
.actor {
  position: absolute;
  left: 56%;
  top: calc(var(--harbour-rim) - var(--bird-w) * 0.206);
  width: var(--bird-w);
  aspect-ratio: 1.55;
  translate: -50% -50%;
  z-index: 4;
  pointer-events: none;
}
.pip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  background: none;
  border: 0;
  user-select: none;
  -webkit-touch-callout: none;
}
.pip:active {
  cursor: grabbing;
}
.pip:focus-visible {
  outline: 2px dashed #243859;
  outline-offset: 8px;
  border-radius: 44%;
}
.pip img {
  pointer-events: none;
  user-select: none;
}
.world[data-scene="1"] .actor,
.world[data-scene="2"] .actor {
  left: 67%;
  top: 58%;
}
.world.in-flight .actor {
  z-index: 5;
}
.world.page-jump {
  overflow: visible;
  z-index: 4;
}
.world.page-jump .fly-note .pencil-arrow { opacity: 0; }
.world.page-jump .actor { will-change: transform; }
.theatre-shell:has(.page-jump) .studio-head { z-index: auto; }
.theatre-shell:has(.page-jump) .studio-brand,
.theatre-shell:has(.page-jump) .studio-head nav {
  position: relative;
  z-index: 5;
}
.fly-note {
  position: absolute;
  left: calc(56% - var(--bird-w) * 0.82);
  top: 60%;
  z-index: 4;
  transform: rotate(-7deg);
  transform-origin: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 6px;
  color: #182c47;
  font: clamp(19px, 1.8vw, 29px)/1.2 var(--hand);
  transition: color 0.15s;
}
.fly-note:hover {
  color: #163fa8;
}
.fly-note .pencil-arrow {
  width: 66px;
  height: 37px;
  margin: -2px -15px 0 0;
  stroke-width: 2;
  transform: rotate(-7deg);
}
.world:not([data-scene="0"]) .fly-note {
  left: calc(67% + var(--bird-w) * 0.23);
  top: 33%;
  font-size: clamp(16px, 1.6vw, 24px);
  transform: rotate(6deg);
}
.world:not([data-scene="0"]) .pencil-arrow {
  transform: scaleX(-1) rotate(-25deg);
  align-self: flex-start;
  margin: 3px 0 0 -13px;
  width: 46px;
}
.paper-sign {
  position: absolute;
  left: 4.7%;
  bottom: 4.8%;
  font: clamp(15px, 1.3vw, 21px)/1.2 var(--hand);
  color: #182d3f;
  transform: rotate(-5deg);
  background: #faf2d8;
  padding: 6px 15px 4px;
  box-shadow: 1px 3px 4px #17221d45;
  clip-path: polygon(0 3%, 97% 0, 100% 89%, 1% 100%);
  pointer-events: none;
}
.flight-line {
  z-index: 3;
  opacity: 0;
}
.journey-dock {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4.4vw;
  background: var(--stage-paper);
  z-index: 3;
}
.journey-dock:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5px;
  height: 6px;
  background: var(--stage-paper);
  clip-path: polygon(
    0 50%,
    3% 40%,
    6% 66%,
    9% 43%,
    12% 70%,
    15% 35%,
    19% 50%,
    21% 70%,
    25% 40%,
    28% 53%,
    34% 20%,
    40% 65%,
    46% 41%,
    52% 61%,
    58% 33%,
    65% 53%,
    72% 30%,
    80% 60%,
    87% 40%,
    93% 66%,
    100% 30%,
    100% 100%,
    0 100%
  );
}
.route-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 20px var(--hand);
  transform: rotate(-3deg);
  white-space: nowrap;
}
.route-title svg {
  width: 42px;
  height: 18px;
  fill: none;
  stroke: var(--stage-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}
.route-stop {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  border: 0;
  color: #4a5047;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s;
}
.route-stop:hover {
  transform: translateY(-2px);
}
.route-stop.chosen {
  color: #203c91;
}
.stop-point {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #a3a798;
  border-radius: 47% 51% 48% 50%;
  background: #efeee4;
}
.stop-point svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}
.chosen .stop-point {
  background: #2f4a9b;
  color: white;
  border-color: #263c85;
  transform: rotate(-5deg);
}
.route-dash {
  width: clamp(14px, 3.1vw, 65px);
  border-top: 2px dotted #b1ada0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nojs {
  padding: 26px;
  max-width: 680px;
  margin: auto;
}
.nojs a {
  text-decoration: underline;
}
.world .scene-copy[hidden],
.set[hidden] {
  display: none;
}
@media (min-aspect-ratio: 23/10) {
  .theatre-shell {
    min-height: 590px;
  }
  .scene-home {
    top: 6%;
  }
  .world .scene-copy h1 {
    font-size: clamp(84px, 7vw, 116px);
  }
  :root {
    --bird-w: clamp(255px, 26vw, 355px);
  }
  .actor {
    top: calc(var(--harbour-rim) - var(--bird-w) * 0.206);
  }
}
@media (max-width: 1000px) {
  .journey-dock {
    gap: 12px;
  }
  .route-title {
    font-size: 16px;
    gap: 2px;
  }
  .route-title svg {
    width: 28px;
  }
  .route {
    gap: 8px;
  }
  .route-stop {
    font-size: 13px;
  }
  .route-dash {
    width: 16px;
  }
  .studio-head {
    padding-inline: 4%;
  }
  .world .scene-stop h1 {
    font-size: clamp(59px, 8.8vw, 81px);
  }
  .scene-stop {
    left: 6%;
  }
  .scene-home {
    top: 8%;
  }
}
@media (max-width: 740px), (max-aspect-ratio: 1/1) {
  :root {
    --bird-w: clamp(205px, 61vw, 345px);
  }
  .theatre-shell {
    height: 100svh;
    min-height: 615px;
    grid-template-rows: 60px minmax(0, 1fr) 84px;
  }
  .studio-head {
    padding: 0 5%;
    gap: 10px;
  }
  .home-mark img {
    width: 116px;
  }
  .studio-title {
    display: none;
  }
  .studio-head nav {
    gap: 13px;
  }
  .visit-link {
    font-size: 12px;
    gap: 3px;
  }
  .visit-link svg {
    width: 14px;
    height: 14px;
  }
  .studio-head .top-book {
    font-size: 12px;
    gap: 7px;
    padding: 9px 12px;
  }
  .scene-home {
    top: 8.5%;
    left: 4%;
    right: 4%;
  }
  .scene-kicker {
    font-size: 9px;
    letter-spacing: 0.09em;
    margin-bottom: 13px;
    gap: 6px;
  }
  .world .scene-home h1 {
    font-size: clamp(65px, 16vw, 100px);
    margin-bottom: 15px;
  }
  .opening-line {
    font-size: 20px;
  }
  .phone-break {
    display: block;
  }
  .set.coast {
    background-image: url("/assets/coast-phone.webp");
  }
  .set.orchard {
    background-image: url("/assets/orchard-phone.webp");
  }
  .set.museum {
    background-image: url("/assets/museum-phone.webp");
  }
  .actor {
    left: 52%;
    top: calc(var(--harbour-rim) - var(--bird-w) * 0.206);
  }
  .fly-note {
    left: 12%;
    top: 43%;
    font-size: 21px;
  }
  .fly-note .pencil-arrow {
    width: 45px;
    height: 31px;
    transform: rotate(20deg);
    margin: 0 -9px 0 0;
  }
  .paper-sign {
    bottom: 4%;
    left: 5%;
    font-size: 15px;
  }
  .scene-stop {
    left: 6%;
    right: 5%;
    top: 6%;
    width: auto;
  }
  .world .scene-stop h1 {
    font-size: clamp(47px, 11.5vw, 70px);
    max-width: 100%;
    margin-bottom: 12px;
  }
  .scene-stop .scene-kicker {
    margin-bottom: 12px;
  }
  .scene-blurb {
    font-size: clamp(17px, 4.8vw, 20px);
    max-width: 35ch;
  }
  .scene-actions {
    gap: 14px;
    margin-top: 14px;
  }
  .session-book {
    font-size: 13px;
    padding: 9px 13px;
  }
  .read-note {
    font-size: 12px;
  }
  .world:not([data-scene="0"]) .actor {
    left: 54%;
    top: 68%;
    width: calc(var(--bird-w) * 0.91);
  }
  .world:not([data-scene="0"]) .fly-note {
    left: auto;
    right: 8%;
    top: 49%;
    font-size: 17px;
  }
  .world:not([data-scene="0"]) .pencil-arrow {
    width: 32px;
    height: 24px;
  }
  .route-title {
    display: none;
  }
  .journey-dock {
    padding: 0 3%;
    gap: 6px;
  }
  .route {
    flex: 1;
    gap: 5px;
    min-width: 0;
    justify-content: space-evenly;
  }
  .route-stop {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    padding: 4px 1px;
  }
  .stop-point {
    width: 29px;
    height: 29px;
  }
  .stop-point svg {
    width: 16px;
    height: 16px;
  }
  .route-dash {
    width: clamp(9px, 4vw, 25px);
    transform: translateY(-9px);
  }
}
@media (max-width: 355px) {
  .visit-link span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .studio-head nav {
    gap: 8px;
  }
  .route-stop {
    font-size: 10px;
  }
  .route-dash {
    width: 7px;
  }
  .opening-line {
    font-size: 18px;
  }
  .fly-note {
    left: 8%;
  }
}
@media (max-height: 680px) and (min-width: 741px) {
  .scene-home {
    top: 6%;
  }
  .world .scene-home h1 {
    font-size: 80px;
    margin-bottom: 9px;
  }
  .scene-kicker {
    margin-bottom: 8px;
  }
  .scene-stop {
    top: 9%;
  }
  .actor {
    top: calc(var(--harbour-rim) - var(--bird-w) * 0.206);
  }
  :root {
    --bird-w: clamp(240px, 26vw, 345px);
  }
}
html.motion-off *,
html.motion-off *:before,
html.motion-off *:after {
  animation-play-state: paused !important;
  transition-duration: 0s !important;
}
html.motion-off {
  scroll-behavior: auto;
}
.set.arriving:after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  pointer-events: none;
  background: linear-gradient(90deg, #fff5ce8c, #fff3d52b 40%, transparent);
}
.world.fly-left .set.arriving:after {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}
.world.dragging .fly-note {
  opacity: 0.25;
}
.world.in-flight .pip {
  cursor: grabbing;
}
.world.in-flight .scene-actions {
  pointer-events: none;
}
/* Pre-composed portrait sets keep their landmarks in frame; paper suns stay round. */
.set {
  background-position: 69% 62%;
}
.set.orchard {
  background-position: 56% center;
}
.set.museum {
  background-position: 62% center;
}
.fly-note {
  left: auto;
  right: calc(44% + var(--bird-w) * 0.46);
  top: 57%;
}
.world:not([data-scene="0"]) .fly-note {
  right: auto;
}
@media (max-width: 740px), (max-aspect-ratio: 1/1) {
  .world {
    /* Portrait coast is 800 × 1067, positioned 67% vertically. */
    --harbour-rim: calc(67cqh + max(100cqh, 133.375cqw) * 0.11257 + 8px);
    --harbour-x: 52%;
  }
  .set {
    background-position: center 67%;
  }
  .fly-note {
    left: 12%;
    right: auto;
    top: 43%;
  }
  .world:not([data-scene="0"]) .fly-note {
    right: 8%;
  }
}
/* Landmarks travel with their own set so the puppet actually leaves the prop behind. */
.set:before {
  --pw: var(--bird-w);
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
  filter: drop-shadow(0 3px 2px #392d202b);
}
.set.coast:before {
  width: calc(var(--pw) * 1.1);
  height: calc(var(--pw) * 0.3);
  left: calc(var(--harbour-x) - var(--pw) * 0.62);
  top: var(--harbour-rim);
  background-image: url("/assets/perch-coast.webp");
  transform: rotate(-1.4deg);
  filter: none;
}
.boat-contact { display: none; }
.set.coast .boat-contact {
  display: block;
  position: absolute;
  z-index: 1;
  left: calc(var(--harbour-x) - var(--bird-w) * 0.66);
  top: calc(var(--harbour-rim) + var(--bird-w) * 0.235);
  width: calc(var(--bird-w) * 1.17);
  height: calc(var(--bird-w) * 0.09);
  background: url("/assets/boat-waterline.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.set.orchard:before {
  left: calc(67% - var(--pw) * 0.41);
  right: -2%;
  top: calc(58% + var(--pw) * 0.12);
  height: calc(var(--pw) * 0.38);
  background-image: url("/assets/perch-orchard.webp");
  background-size: 100% 100%;
  transform: rotate(2deg);
  transform-origin: left center;
}
.set.museum:before {
  width: calc(var(--pw) * 1.02);
  height: calc(var(--pw) * 0.32);
  left: calc(67% - var(--pw) * 0.56);
  top: calc(58% + var(--pw) * 0.23);
  background-image: url("/assets/perch-museum.webp");
}
@media (max-width: 740px), (max-aspect-ratio: 1/1) {
  .set.coast:before {
    left: calc(var(--harbour-x) - var(--pw) * 0.62);
  }
  .set.orchard:before,
  .set.museum:before {
    --pw: calc(var(--bird-w) * 0.91);
  }
  .set.orchard:before {
    left: calc(54% - var(--pw) * 0.41);
    top: calc(68% + var(--pw) * 0.12);
  }
  .set.museum:before {
    left: calc(54% - var(--pw) * 0.56);
    top: calc(68% + var(--pw) * 0.23);
  }
}
@media (max-height: 680px) and (min-width: 741px) and (min-aspect-ratio: 1/1) {
  .set.coast:before {
    top: var(--harbour-rim);
  }
}
@media (min-aspect-ratio: 23/10) {
  .set.coast:before {
    top: var(--harbour-rim);
  }
}
/* A paused entrance must still show the finished, readable dialog. */
html.motion-off dialog[open] {
  animation: none !important;
}

.sound-switch {
  position: absolute;
  right: max(4%, env(safe-area-inset-right));
  bottom: 4%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #71694d;
  border-radius: 24px;
  background: #faf2dd;
  color: #223144;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 1px 2px 2px #222a3540;
}
.sound-switch[hidden],
.sound-switch .sound-waves,
.sound-switch[data-state="playing"] .sound-muted {
  display: none;
}
.sound-switch[data-state="playing"] .sound-waves {
  display: inline;
}
.sound-switch svg {
  width: 18px;
  height: 18px;
}
.sound-switch:hover {
  background: #fffbed;
}

@media (max-width: 740px) and (max-height: 735px) {
  .world .scene-stop h1 {
    font-size: clamp(34px, 10.8vw, 54px);
  }
  .world:not([data-scene="0"]) .fly-note {
    display: none;
  }
  .world[data-scene="0"] .fly-note {
    left: 5%;
    top: 48%;
    font-size: 16px;
  }
}
@media (max-width: 355px) {
  .world .scene-home h1 {
    font-size: clamp(46px, 15vw, 53px);
  }
  .paper-sign {
    font-size: 13px;
    padding-inline: 8px;
  }
  .sound-switch {
    padding-inline: 10px;
  }
}

/* Keep the longer welcome copy above Pip's path on every screen. */
.world .scene-home h1 {
  font-size: clamp(64px, 7.2vw, 108px);
  margin-bottom: 8px;
}
.scene-home .opening-line {
  max-width: 52ch;
  margin-inline: auto;
}
.world[data-scene="0"] #fly-label {
  max-width: 19ch;
  text-align: left;
}
@media (max-width: 740px), (max-aspect-ratio: 1/1) {
  .world .scene-home h1 {
    font-size: clamp(38px, 11vw, 78px);
  }
  .scene-home .opening-line {
    max-width: 36ch;
  }
  .world[data-scene="0"] .fly-note {
    align-items: flex-start;
    font-size: 16px;
  }
  .world[data-scene="0"] .fly-note .pencil-arrow {
    height: 23px;
  }
}

@media (max-width: 355px) and (max-height: 735px) {
  .world[data-scene="0"] .fly-note {
    top: 42%;
    font-size: 15px;
  }
}
@media (min-width: 741px) and (min-aspect-ratio: 2/1) {
  .scene-home {
    top: 4%;
  }
  .world .scene-home h1 {
    font-size: clamp(50px, 13cqh, 76px);
  }
  .world {
    /* Reveal enough sea below the hull in wide, shallow windows. */
    --harbour-rim: calc(80cqh - max(100cqh, 45.53cqw) * 0.05768 + 8px);
  }
  .set.coast {
    background-position-y: 80%;
  }
}
