.work-reader {
  position: absolute;
  inset: var(--book-top-space) 0 calc(var(--book-control-bottom) + var(--book-control-size) + .5rem);
  height: auto;
  padding: 0;
  color: var(--folio-ink);
}
.work-reader .work-spread {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: calc(48.8cqw - var(--book-edge)) minmax(0,1fr);
  align-items: center;
  padding: 2.5cqh 0 0 var(--book-edge);
  overflow: clip;
}
.work-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: min(35cqw, 39rem);
  padding-block: calc(1rem + 1.45cqh) 1rem;
}
.work-client {
  display: inline-flex;
  align-items: center;
  gap: .36em;
  font: 750 clamp(.95rem,1.5cqw,1.2rem)/1 var(--sans);
  letter-spacing: -.035em;
}
.work-client svg { width: 1em; height: 1.15em; color: #5437a1; }
.work-client img { width: auto; height: 1.1em; }
.work-copy h2 {
  margin: clamp(1.1rem,3.1cqh,2.65rem) 0 clamp(1.15rem,3.4cqh,2.8rem);
  font: 750 clamp(3.7rem,8cqw,8.7rem)/.78 var(--display);
  letter-spacing: -.043em;
  overflow-wrap: normal;
}
.work-copy h2 span { display: block; font-size: .77em; line-height: 1.02; font-weight: 425; }
.work-description {
  max-width: 36ch;
  font: 400 clamp(1rem,1.46cqw,1.24rem)/1.53 Domine,Georgia,serif;
  text-wrap: pretty;
}
.work-details { display: grid; gap: .38rem; margin: clamp(1.1rem,3.5cqh,2.7rem) 0; }
.work-details div { display: grid; grid-template-columns: 5.5em auto; align-items: baseline; }
.work-details dt { font: 700 .75rem/1.4 Domine, Georgia, serif; color: var(--secondary); text-transform: uppercase; letter-spacing: .065em; }
.work-details dd { margin: 0; font: 400 clamp(.95rem, 1.18cqw, 1.06rem)/1.5 Domine, Georgia, serif; }
.work-film.case-phones { gap: 2.2cqw; }
.case-phones > img {
  display: block;
  flex: none;
  width: 19.3cqw;
  height: auto;
  border-radius: 9% / 4.5%;
  box-shadow: 2px 10px 22px -5px #21332b52;
}
.work-film {
  --screen-height: min(75.6cqh, 44.05cqw);
  display: flex;
  align-items: center;
  gap: 3.67cqw;
  margin: 0;
  min-width: 0;
}
.work-player {
  position: relative;
  flex: none;
  width: calc(var(--screen-height) * 390 / 844);
}
.work-device, .scout-desktop {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fcfaf7;
  box-shadow: 0 4px 12px #21332b0d, 2px 12px 28px -5px #21332b4a;
}
.work-device { aspect-ratio: 390 / 844; border-radius: 12.5% / 5.8%; }
.scout-desktop {
  display: block;
  flex: none;
  height: var(--screen-height);
  width: auto;
  max-width: none;
  border-radius: calc(var(--screen-height) * .062);
}
.work-device > :is(img, video, canvas) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.work-device video { opacity: 0; }
.work-device video.has-frame { opacity: 1; }
@container (min-width: 44.01rem) {
  .work-reader .work-spread-desktop { grid-template-columns: calc(42cqw - var(--book-edge)) minmax(0,1fr); }
}
.work-film.case-desktop { gap: 2.2cqw; }
.case-desktop .work-player, .case-desktop-still { width: 51.5cqw; }
.case-desktop-still {
  flex: none;
  height: auto;
  box-shadow: 2px 12px 28px -5px #21332b4a;
}
.case-desktop .work-device, .case-desktop-still {
  aspect-ratio: auto;
  border-radius: clamp(.65rem, 1.5cqw, 1.4rem);
}
.case-desktop .work-device > img { position: relative; display: block; height: auto; }
.case-desktop .work-playback { inset-inline: .65rem auto; }
.work-playback {
  position: absolute;
  inset: auto .2rem .4rem auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--folio-ink);
  border-radius: 50%;
}
.work-playback::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  background: var(--page-color);
}
.work-playback svg { position: relative; }
.work-playback .film-pause, .work-playback[data-playing] .film-play { display: none; }
.work-playback[data-playing] .film-pause { display: block; }
.work-reader:focus-visible { outline-offset: -4px; }
:root:is([data-theme="dusk"],[data-theme="night"]) .work-client svg { color: #cfc0f2; }
@media (hover: hover) {
  .work-playback { opacity: 0; transition: opacity .18s ease; }
  .work-player:is(:hover, :focus-within) .work-playback { opacity: 1; }
  .work-playback:hover::before { background: var(--page-color); border-color: currentColor; }
}
@container (max-width: 44rem) {
  .work-reader .work-spread {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
    padding: 1.1rem var(--book-edge) 1.8rem;
  }
  .work-copy { display: contents; }
  .work-client { grid-row: 1; }
  .work-copy h2 { grid-row: 2; font-size: clamp(3.2rem,11cqw,5.15rem); margin: .7rem 0 1.7rem; }
  .work-film { grid-row: 3; --screen-height: min(103cqw, 30rem); gap: 4.5cqw; }
  .work-film.case-phones { gap: 3.4cqw; }
  .case-phones > img { width: 38cqw; }
  .case-desktop .work-player, .case-desktop-still { width: 84cqw; }
  .work-description { grid-row: 4; margin-top: 2.4rem; }
  .work-details { grid-row: 5; margin: 1rem 0 0; gap: .2rem; }
}

/* The frontispiece sits on the same glass leaf as the case studies. */
.work-reader .voyage-intro {
  width: 100%;
  min-height: 100%;
  padding: clamp(1.2rem, 4cqh, 3rem) 0 1rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.2rem, 4cqh, 3rem);
  text-align: center;
  overflow-wrap: normal;
}
.voyage-intro h2 {
  margin: 0 2rem;
  font: 730 clamp(3.5rem, 8.8cqw, 8.2rem)/.96 var(--display);
  letter-spacing: -.045em;
}
.voyage-intro h2 em {
  display: inline-block;
  margin-inline-start: .06em;
  color: #95432c;
  font: italic 400 .95em/.96 Georgia, serif;
  letter-spacing: -.06em;
}
:root:is([data-theme="dusk"], [data-theme="night"]) .voyage-intro h2 em { color: #f3bc8c; }
.voyage-intro > p {
  width: min(calc(100% - 2 * var(--book-edge)), 61ch);
  margin: 0;
  font: 400 clamp(1.01rem, 1.55cqw, 1.27rem)/1.55 Domine, Georgia, serif;
  text-wrap: balance;
}
.voyage-table {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: 100%;
  padding: clamp(1.45rem, 3.8cqh, 2.7rem) 0;
}
.industry-tide {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: grid;
  align-content: center;
  gap: clamp(.7rem, 1.5cqh, 1.2rem);
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}
.industry-row, .industry-row ul { display: flex; width: max-content; }
.industry-row {
  --lap: 78s;
  animation: industry-drift var(--lap) linear infinite paused;
}
.industry-row:nth-child(2) { --lap: 91s; animation-direction: reverse; animation-delay: -32s; }
.industry-row ul, .voyage-cards { list-style: none; margin: 0; padding: 0; }
.industry-row ul { gap: .34rem; padding-right: .34rem; min-width: 34cqw; justify-content: space-around; }
.industry-row li {
  padding: .34em .94em .4em;
  border: 1px solid currentColor;
  border-radius: 100vw;
  font: 500 clamp(.65rem, 1.075cqw, .925rem)/1.15 Domine, Georgia, serif;
  white-space: nowrap;
  opacity: .38;
}
@keyframes industry-drift { to { transform: translateX(-25%); } }
#landmark-book[data-state="open"] [data-work-intro]:not([inert], [data-tide-paused]) .industry-row {
  animation-play-state: running;
}
.voyage-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.35rem, 1.3cqw, 1.2rem);
}
.voyage-cards li {
  --stock: #eac584;
  --stamp: #503827;
  --tilt: -6deg;
  --offset: .4rem;
  width: clamp(6rem, 14.4cqw, 12rem);
  aspect-ratio: 3 / 4;
  position: relative;
}
.voyage-card {
  position: absolute;
  inset: 0;
  pointer-events: none;
  isolation: isolate;
  display: grid;
  place-items: center;
  grid-template-rows: 1fr auto;
  padding: 1.2rem .3rem .8rem;
  border: 1px solid color-mix(in srgb, var(--stamp) 64%, var(--stock));
  border-radius: 9% / 7%;
  background: var(--grain), var(--stock);
  color: var(--stamp);
  transform: perspective(38rem) translateY(var(--offset)) rotate(var(--tilt));
  box-shadow: 0 2px 0 color-mix(in srgb, var(--stock) 54%, #34281a), 0 4px 0 #4d493657, 0 9px 14px -6px #19342c69;
}
.voyage-cards li:nth-child(2) { --stock: #426e69; --stamp: #fff0cc; --tilt: -2deg; --offset: -.45rem; }
.voyage-cards li:nth-child(3) { --stock: #ad5742; --stamp: #fff0ce; --tilt: 2deg; --offset: -.45rem; }
.voyage-cards li:nth-child(4) { --stock: #c1d2bd; --stamp: #244640; --tilt: 6deg; }
.voyage-card::before {
  content: "";
  position: absolute;
  inset: .33rem;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--stamp) 44%, transparent);
  border-radius: inherit;
  background:
    radial-gradient(circle at 8% 7%, currentColor 0 1.5px, transparent 2px),
    radial-gradient(circle at 92% 7%, currentColor 0 1.5px, transparent 2px);
}
.voyage-cards svg { width: 59%; height: auto; aspect-ratio: 1; fill: currentColor; }
.voyage-cards span { font: 650 clamp(1rem, 2.3cqw, 2rem)/1.15 var(--display); }
@media (any-hover: hover) and (any-pointer: fine) {
  :root:not([data-motion="reduced"]) .voyage-card {
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  }
  :root:not([data-motion="reduced"]) .voyage-cards li:hover { z-index: 1; }
  :root:not([data-motion="reduced"]) .voyage-cards li:hover .voyage-card {
    transform: perspective(38rem) translateY(calc(var(--offset) - .45rem))
      rotateX(var(--lean-x, 0deg)) rotateY(var(--lean-y, 0deg)) rotate(var(--tilt));
    box-shadow: 0 2px 0 color-mix(in srgb, var(--stock) 54%, #34281a), 0 5px 8px -5px #293b3466, 0 16px 22px -8px #19342c73;
  }
}
.industry-pause {
  position: absolute;
  right: max(.55rem, 2cqw);
  bottom: -.3rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: .55rem;
  background: transparent;
  color: var(--secondary);
  border-radius: 50%;
}
.industry-pause svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.industry-pause .tide-play, [data-tide-paused] .industry-pause .tide-pause { display: none; }
[data-tide-paused] .industry-pause .tide-play { display: block; }
.industry-pause:is(:hover,:focus-visible) { color: var(--folio-ink); background: color-mix(in srgb, currentColor 9%, transparent); }
@container (max-width: 40rem) {
  .voyage-intro h2 { font-size: clamp(2.8rem, 10.4cqw, 4.4rem); }
  .voyage-table { padding-block: 3.4rem; }
  .voyage-cards { width: 88%; gap: 0; }
  .voyage-cards li { width: 25%; }
  .voyage-card { padding: .8rem .12rem .65rem; }
  .voyage-cards svg { width: 66%; }
  .voyage-cards span { font-size: clamp(.81rem, 3.4cqw, 1.28rem); }
  .industry-tide { align-content: space-between; padding-block: .25rem; }
  .industry-pause { right: 0; bottom: -.15rem; }
  .industry-tide { right: 2.1rem; }
}
:root[data-motion="reduced"] .voyage-table { gap: 1.4rem; padding: 1rem 0 0; }
:root[data-motion="reduced"] .industry-tide {
  position: static;
  order: 1;
  z-index: auto;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .38rem;
  mask-image: none;
}
:root[data-motion="reduced"] .industry-row,
:root[data-motion="reduced"] .industry-row ul { display: contents; animation: none; }
:root[data-motion="reduced"] .industry-row [aria-hidden],
:root[data-motion="reduced"] .industry-pause { display: none; }
:root[data-motion="reduced"] .industry-row li { font-size: .93rem; opacity: .72; }
:root[data-high-contrast] .industry-row li { opacity: 1; }

.harbor-reader { display: grid; place-items: center; text-align: center; color: var(--folio-ink); }
.harbor-reader svg { width: 3.5rem; height: 3.5rem; fill: currentColor; }
.harbor-reader h2 { margin: .2em 0 .35em; font: 700 clamp(3.4rem, 9cqw, 8rem)/1 var(--display); }
.harbor-reader a { color: inherit; font: 400 clamp(1rem, 2cqw, 1.5rem)/1.5 Domine, Georgia, serif; text-underline-offset: .2em; }
