/* Scale of change is a non-interactive animation inside the independently usable hero. */
.scale-demo {
  position: relative;
  align-self: center;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 1.38;
  border-radius: 3px;
  color: #211f1e;
  --origin-x: 12%;
  --origin-y: 46%;
}
/* The fixed-size scene scales as one image. The cursor projects the same coordinates outside it. */
.scale-world { position: absolute; inset: 0; scale: var(--camera, 1); transform-origin: var(--origin-x) var(--origin-y); }
.scale-progress { position: absolute; inset: 3.5% 2% auto; display: grid; gap: 1.15cqw; justify-items: center; }
.scale-progress > div { display: flex; justify-content: center; gap: .8cqw; }
.scale-chip {
  display: block;
  padding: .42em .72em;
  border-radius: 1em;
  background: linear-gradient(90deg,#bedecb var(--fill, 0%),#efefed var(--fill, 0%));
  color: #233b30;
  font: 600 1.57cqw/1.1 Archivo, sans-serif;
  white-space: nowrap;
}
.scale-chip[data-state="done"] { background: #89cda6; }
.scale-screen {
  position: absolute;
  left: 2.75%;
  top: 17.5%;
  width: 94.5%;
  height: 75%;
  isolation: isolate;
  border-radius: .8cqw;
  outline:  .78cqw solid #050505;
  background: #f3eee3;
  --rect: inset(var(--top, 19.7%) var(--right, 2.5%) var(--bottom, 9.2%) var(--left, 57.5%));
  --title-font: Georgia, serif;
  --body-font: Arial, sans-serif;
  --title-size: 4.95cqw;
  --body-size: 1.55cqw;
}
.scale-screen[data-font="true"] { --title-font: Baskerville, 'Times New Roman', serif; --body-font: Archivo, sans-serif; }
.scale-screen[data-reveal="true"] { background: white; }
.scale-photo {
  position: absolute;
  inset: var(--top, 19.7%) var(--right, 2.5%) var(--bottom, 9.2%) var(--left, 57.5%);
  background: url("./assets/scale-coast.webp") 70% center / cover;
  opacity: var(--photo-ink, 1);
  border-radius: var(--round, .8cqw);
}
.scale-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg,#122c3edb,#1b304649 76%); opacity: var(--tint, 0); }
.scale-screen[data-reveal="true"] .scale-photo { inset: 0; clip-path: var(--rect); }
.scale-ink { position: absolute; inset: 0; font: var(--body-size)/1.27 var(--body-font); }
.scale-ink-dark {
  clip-path: polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,
    var(--left, 57.5%) var(--top, 19.7%),calc(100% - var(--right, 2.5%)) var(--top, 19.7%),
    calc(100% - var(--right, 2.5%)) calc(100% - var(--bottom, 9.2%)),var(--left, 57.5%) calc(100% - var(--bottom, 9.2%)),
    var(--left, 57.5%) var(--top, 19.7%));
  filter: blur(var(--font-blur, 0cqw));
}
.scale-ink-light { color: #fff; clip-path: var(--rect); visibility: hidden; }
.scale-screen[data-copy="true"] .scale-ink-light { visibility: visible; }
.scale-screen[data-reveal="true"] .scale-ink-dark { visibility: hidden; }
.scale-screen[data-reveal="true"] .scale-ink-light { clip-path: none; }
.scale-ink-dark .scale-new,.scale-ink-light .scale-old { display: none; }
.scale-ink-dark [data-swapped] { filter: blur(var(--copy-blur, 0cqw)); }
.scale-ink-dark [data-swapped="true"] .scale-new { display: revert; }
.scale-ink-dark [data-swapped="true"] .scale-new.scale-nav-links { display: flex; }
.scale-ink-dark [data-swapped="true"] .scale-old { display: none; }
.scale-mock-nav {
  position: absolute; inset: var(--nav-top,3.3%) 3% auto var(--gutter, 8%); height: 9%;
  display: flex; align-items: center; gap: 2cqw; border-bottom: 1px solid #86949338;
  font-size: 1.27cqw;
  white-space: nowrap;
  opacity: var(--reveal-copy, 1);
}
.scale-mock-nav strong { display: flex; align-items: center; gap: .55cqw; font: 700 1.95cqw/1 var(--title-font); }
.scale-mark { display: grid; width: 2.35cqw; height: 2.35cqw; place-items: center; color: white; background: #315d70; border-radius: .35cqw; }
.scale-mark svg { width: 76%; height: 76%; }
.scale-nav-links { display: flex; align-items: center; gap: 1.65cqw; margin-left: auto; }
.scale-nav-links.scale-old { margin-left: 1.5cqw; }
.scale-nav-links.scale-old > :nth-child(3) { margin-left: 4.5cqw; }
.scale-nav-links span { display: inline-flex; align-items: center; gap: .1em; }
.scale-nav-links svg { width: 1em; height: 1em; }
.scale-nav-actions { display: flex; align-items: center; gap: 1.2cqw; margin-left: auto; }
.scale-book,.scale-site-cta,.scale-extra { display: inline-flex; border-radius: 2em; padding: .48em .78em; white-space: nowrap; }
.scale-book,.scale-site-cta { color: #fff; background: #122733; }
.scale-ink-light :is(.scale-book,.scale-site-cta) { color: #182d37; background: #f4f2e9; }
.scale-signin { opacity: var(--clutter-one, 1); }
.scale-tag { position: absolute; left: var(--gutter, 8%); top: 16%; border-radius: 4em; background: #e5eceb; color: #315d70; padding: .35em .7em; font-size: 1.13cqw; letter-spacing: .09em; opacity: var(--clutter-two,1); }
.scale-ink-light .scale-tag { display: none; }
.scale-site-title { position: absolute; left: var(--gutter, 8%); top: var(--title-y,27%); width: 44%; font: 600 var(--title-size)/.93 var(--title-font); letter-spacing: -.058em; }
.scale-site-title i { color: #2e667f; }
.scale-screen[data-font="true"] .scale-site-title { font-weight: 400; }
.scale-line { display: block; overflow: hidden; padding-bottom: .055em; }
.scale-line > span { display: block; translate: 0 var(--line-one,0%); }
.scale-line:nth-child(2) > span { translate: 0 var(--line-two,0%); }
.scale-line:nth-child(3) > span { translate: 0 var(--line-three,0%); }
.scale-site-detail { position: absolute; left: var(--gutter,8%); top: var(--detail-y,62%); width: 43%; opacity: var(--detail-ink,1); }
.scale-site-summary { max-width: var(--summary-width, 32cqw); }
.scale-site-actions { display: flex; align-items: center; gap: .55cqw; margin-top: 1.25cqw; font-size: 1.43cqw; }
.scale-extra { border: 1px solid #81908f; opacity: var(--clutter-three,1); }
.scale-site-cta { position: relative; display: inline-grid; align-items: center; padding-right: 1.95em; }
.scale-site-cta > span:first-child { translate: calc(var(--button-shift,0) * 1.2em) 0; }
.scale-site-cta .scale-arrow { position: absolute; width: 1em; height: 1em; right: calc(.55em + var(--button-shift,0) * (100% - 2.1em)); opacity: var(--arrow-ink,1); }
.scale-arrow svg { width: 100%; height: 100%; }
.scale-screen[data-button="true"] .scale-ink-light .scale-site-cta { background: #162f42b3; color: #fff; }
.scale-scroll-cue { position: absolute; right: 4%; bottom: 7%; font-size: 1.12cqw; opacity: var(--detail-ink,1); }
.scale-screen[data-reveal="true"] .scale-ink-light .scale-site-title { opacity: var(--reveal-copy,0); }
.scale-screen[data-clutter="true"] .scale-clutter { outline: 1px dashed #d15150; background: #ffd4c970; }
.scale-measurements { position: absolute; inset: 13% 51% 7% 0; display: grid; align-content: space-between; gap: 1cqw; opacity: var(--spacing-band,0); }
.scale-measurements span { display: block; height: 3cqw; background: #f078783c; border-block: 1px solid #e05a6170; }
.scale-measurements span:first-child { height: 9cqw; }
.scale-measurements span:last-child { height: 5cqw; }
.scale-screen[data-corrected="true"] .scale-measurements span { background: #6d94d938; border-color: #3f74d07a; }
.scale-screen :is(.scale-measurements,.scale-guide,.scale-type-notes) b { display: inline-block; background: #b64452; border-radius: .4em; padding: .2em .5em; color: #fff; font: 600 1.25cqw Archivo,sans-serif; }
.scale-screen[data-corrected="true"] .scale-measurements b,.scale-screen[data-type-corrected="true"] .scale-type-notes b { background: #365eb8; }
.scale-guide { position: absolute; inset: 0 3% 7% var(--gutter,8%); display: flex; justify-content: space-between; align-items: flex-start; border-inline: 1px dashed #be555b; border-bottom: 1px solid #4e75d0; opacity: var(--alignment-guide,0); }
.scale-guide b { translate: 0 -110%; }
.scale-type-notes { position: absolute; inset: 19% 51% 29% var(--gutter,8%); display: grid; justify-items: start; align-content: space-between; opacity: var(--font-note,0); }
.scale-screen::after { content: ""; position: absolute; z-index: 4; inset: 0; background: white; opacity: var(--white,0); pointer-events: none; }
.scale-screen[data-reveal="true"]::after { display: none; }
.scale-menu {
  position: absolute; z-index: 3; padding: 1.25cqw; border-radius: .9cqw;
  font: 500 1.5cqw/1.26 Arial, sans-serif; letter-spacing: normal;
  color: #fff; background: #172630; opacity: 0; box-shadow: 0 1cqw 2cqw #10182236;
}
.scale-menu-intro {
  left: 36.5%; top: 17%; width: 19%; display: grid; gap: .28cqw; padding: .75cqw;
  border: 1px solid #dce6e8; border-radius: .6cqw;
  font-size: 1.015cqw; background: #fff; color: #193446;
}
.scale-menu-kicker { padding: .3em .3em .6em; font-size: .87em; font-weight: 700; color: #385766; }
.scale-menu-more { display: flex; justify-content: space-between; align-items: center; gap: .5em; padding: .65em .3em .1em; border-top: 1px solid #dbe6e8; color: #235e75; font-weight: 700; }
.scale-menu-more svg { width: 1em; height: 1em; }
.scale-menu-row { display: grid; align-items: center; padding: .53em .56em; border-radius: .4cqw; }
.scale-menu-row > span { display: grid; gap: .24em; }
.scale-menu-row strong { font-weight: 700; }
.scale-menu-row small { font-size: .85em; opacity: .88; }
.scale-menu-intro .scale-menu-row { grid-template-columns: 1.43cqw minmax(0, 1fr); gap: .43cqw; }
.scale-menu-intro .scale-menu-row svg { width: 100%; padding: .175cqw; border-radius: .2cqw; background: #e8f2f5; fill: none; stroke: #245e75; stroke-width: 1.5; }
.scale-menu-intro .scale-menu-row[data-pointer-hover] { background-color: #edf5f7; }
.scale-menu-intro .scale-menu-more[data-pointer-hover] { color: #123d50; }
.scale-nav-links [data-pointer-hover] { box-shadow: 0 1px currentColor; }
.scale-nav-links [data-pointer-press],.scale-site-cta[data-pointer-press] { filter: brightness(.86); }
.scale-menu-destinations { inset: 12% auto auto 53%; width: 44%; min-height: 49%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8cqw; }
.scale-menu-destinations > div:first-child { display: grid; align-content: stretch; }
.scale-menu-photos { position: relative; overflow: hidden; border-radius: .45cqw; }
.scale-tile { background: #314756 center / cover no-repeat; }
.scale-menu-photos .scale-tile { position: absolute; inset: 0; opacity: 0; transition: opacity .1s ease; }
.scale-menu-destinations [data-pointer-hover],.scale-journal-list [data-pointer-hover] { background: #405665; }
.scale-menu-vessels { left: 53%; top: 12%; width: 44%; height: 48%; display: grid; grid-template-columns: 1fr 1fr; gap: .65cqw; }
.scale-menu-vessels span { display: grid; align-content: end; padding: .5em; border-radius: .4cqw; text-shadow: 0 1px 4px #000; }
.scale-menu-vessels [data-pointer-hover] { box-shadow: inset 0 0 0 1px #d4e4ec; }
.scale-menu-journal { left: 53%; top: 12%; width: 44%; min-height: 42%; display: grid; grid-template-columns: 1.35fr 1fr; gap: 1cqw; padding: 1.3cqw; }
.scale-journal-list { display: grid; align-content: center; gap: .6em; }
.scale-journal-list > span { display: grid; gap: .14em; border-top: 1px solid #9ab5c73b; padding-top: .43em; }
.scale-journal-list small { color: #bed0d9; }
.scale-menu-journal > .scale-tile { border-radius: .5cqw; }
.scale-tile-0 { background-image: url("./assets/scale-menu-0.webp"); }
.scale-tile-1 { background-image: url("./assets/scale-menu-1.webp"); }
.scale-tile-2 { background-image: url("./assets/scale-menu-2.webp"); }
.scale-tile-3 { background-image: url("./assets/scale-menu-3.webp"); }
.scale-tile-4 { background-image: url("./assets/scale-menu-4.webp"); }
.scale-tile-5 { background-image: url("./assets/scale-menu-5.webp"); }
.scale-cursor {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  top: 0;
  left: 0;
  width: clamp(12px, 2.75cqw, 19px);
  opacity: 0;
  filter: drop-shadow(0 1px 1.5px #17212965);
}
/* The path's tip is (2, 1.8) in its 20 × 24 viewBox. Clicks scale around that same point. */
.scale-cursor svg {
  display: block;
  width: 100%;
  height: auto;
  translate: -10% -7.5%;
  transform-origin: 10% 7.5%;
  scale: calc(1 - .14 * var(--pointer-press, 0));
}
@media (prefers-reduced-motion: reduce) {
  .scale-world { scale: 1; }
  .scale-progress,.scale-menu,.scale-cursor,.scale-ink-dark,.scale-screen::after,.scale-measurements,.scale-guide,.scale-type-notes { display: none; }
  .scale-screen .scale-photo { inset: 0; clip-path: none; border-radius: 0; opacity: 1; }
  .scale-screen .scale-photo::after { opacity: 1; }
  .scale-screen .scale-ink-light {
    visibility: visible;
    clip-path: none;
    --gutter: 6.4%;
    --title-y: 22%;
    --detail-y: 71%;
    --title-size: 4.46cqw;
    --body-size: 1.73cqw;
    --title-font: Baskerville, 'Times New Roman', serif;
    --body-font: Archivo, sans-serif;
  }
  .scale-screen .scale-ink-light :is(.scale-mock-nav,.scale-site-title,.scale-site-detail) { opacity: 1; }
  .scale-screen .scale-line > span { translate: none; }
  .scale-screen .scale-nav-actions { opacity: 1; }
  .scale-screen .scale-ink-light { --button-shift: 0; --arrow-ink: 1; }
  .scale-screen { outline: .78cqw solid #050505; }
}
