.boat-hero {
  --hero-inset: max(6vw, calc((100vw - 105rem) / 2));
  --hero-cream: #fbf8f0;
  --hero-blue: #cbe3ed;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(3rem, 1fr) auto auto minmax(3rem, 1.08fr);
  min-block-size: clamp(32rem, min(57vw, 78vh), 53rem);
  min-block-size: clamp(32rem, min(57vw, 78svh), 53rem);
  color: var(--hero-cream);
  background: #163c46;
}
.boat-scene {
  position: relative;
  grid-area: 1 / 1 / -1 / 2;
  min-block-size: 0;
  overflow: hidden;
  pointer-events: none;
}
.boat-scene picture,
.boat-scene img,
.boat-scene video,
.boat-scene::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.boat-scene img,
.boat-scene video {
  display: block;
  object-fit: cover;
  object-position: 10% 49%;
}
.boat-scene video { opacity: 0 }
.boat-scene video.has-frame { opacity: 1 }
.boat-scene::after {
  content: "";
  background: linear-gradient(90deg, transparent 26%, rgba(12, 35, 52, .07) 42%, rgba(11, 34, 52, .50) 66%, rgba(10, 31, 48, .75));
}
.boat-hero h1,
.boat-intro {
  z-index: 1;
  justify-self: start;
  margin-inline-start: var(--hero-inset);
  inline-size: min(43vw, 40rem);
}
.boat-hero h1 {
  grid-area: 2 / 1;
  align-self: end;
  margin-block: 0;
  font: 300 min(clamp(3.8rem, 7.35vw, 7.1rem), 9.6vw)/1.06 var(--display);
  letter-spacing: -.045em;
}
.boat-hero h1 em {
  font-style: normal;
  color: var(--hero-blue);
}
.boat-intro {
  grid-area: 3 / 1;
  align-self: start;
  margin-block-start: clamp(1.2rem, 2.15vw, 2.1rem);
}
.boat-intro p {
  max-inline-size: 49ch;
  font-size: clamp(1.0625rem, 1.38vw, 1.35rem);
  line-height: 1.65;
  text-wrap: balance;
}
.boat-intro .boat-quote {
  margin-block-end: .25em;
  color: inherit;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
}
.boat-control {
  z-index: 2;
  grid-area: 1 / 1 / -1 / 2;
  align-self: start;
  justify-self: end;
  margin: clamp(.9rem, 2vw, 1.75rem);
  padding: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 39, 51, .50);
  transition: background .2s ease;
}
.boat-control[hidden] { display: none }
.boat-control:hover { background: rgba(14, 39, 51, .84) }
.boat-control svg { width: 1.18rem; height: 1.18rem }
.boat-play { fill: currentColor }
.boat-pause { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round }
.boat-control[data-playing="true"] .boat-play,
.boat-control:not([data-playing="true"]) .boat-pause { display: none }
.boat-hero :is(a, button):focus-visible { outline: 2px solid white; outline-offset: 4px }

.boat-hero .hero-project {
  inset: auto auto 1.8rem var(--hero-inset);
  width: max-content;
  max-width: 17.5rem;
  grid-template-columns: 5.6rem 1fr;
  align-items: center;
  gap: .75rem;
  padding: .4rem .4rem .4rem .9rem;
  color: var(--ink);
  border: 1px solid #e4ded4;
  transform: rotate(-2deg);
}
.boat-hero .hero-project:not([hidden]) { display: grid }
.boat-hero .hero-project:hover { transform: rotate(0deg) }
.boat-hero .hero-project > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain }
.boat-hero .hero-project-caption { padding: 0 }
.boat-hero .hero-project-caption small.featured-caption { margin: 0; white-space: normal; line-height: 1.4 }
.boat-hero .hero-project .circle-arrow { display: none }
.boat-hero .hero-project-caption b { margin: 0; font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere }

@media (max-width: 760px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .boat-hero {
    --hero-inset: clamp(18px, 5.8vw, 44px);
    --scene-height: min(125vw, var(--portrait-view-height, 68vh), 38rem);
    grid-template-rows: minmax(var(--scene-height), auto) auto auto;
    min-block-size: 0;
    background: var(--paper);
  }
  .boat-scene {
    grid-area: 1 / 1;
    background: #163c46;
  }
  .boat-scene img, .boat-scene video { object-position: 50% 48% }
  .boat-scene::after {
    background: linear-gradient(0deg, rgba(9, 29, 44, .82), rgba(10, 31, 46, .50) 24%, rgba(10, 32, 46, .08) 43%, transparent 57%);
  }
  .boat-hero h1 {
    grid-area: 1 / 1;
    inline-size: auto;
    max-inline-size: calc(100% - 2 * var(--hero-inset));
    margin-block: 1.5rem clamp(1.4rem, 5.8vw, 2.35rem);
    font-size: min(clamp(2.85rem, 12.3vw, 4.25rem), 20vw);
    line-height: 1.055;
  }
  .boat-intro {
    grid-area: 3 / 1;
    margin: 0;
    padding: 1.35rem var(--hero-inset) 2rem;
    inline-size: 100%;
    color: var(--ink);
  }
  .boat-intro p {
    max-inline-size: 45ch;
    color: #40566d;
    font-size: clamp(1.0625rem, 4.3vw, 1.1875rem);
    line-height: 1.7;
  }
  .boat-hero .hero-project:focus-visible { outline-color: var(--ink) }
  .boat-control { grid-area: 1 / 1 }
  .boat-hero .hero-project {
    position: relative;
    inset: auto;
    grid-area: 2 / 1;
    justify-self: end;
    margin: -1rem var(--hero-inset) .25rem;
    max-width: calc(100% - 2 * var(--hero-inset));
    grid-template-columns: 4.5rem 1fr;
  }
}
@media (max-width: 480px) and (orientation: portrait) {
  .boat-hero { --scene-height: min(110vw, var(--portrait-view-height, 68vh)) }
}
@media (max-width: 760px) and (orientation: landscape),
       (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .boat-hero { --scene-height: clamp(13rem, var(--landscape-view-height, 66vh), 24rem) }
  .boat-scene::after { background: linear-gradient(90deg, transparent 28%, rgba(10, 31, 48, .72)) }
  .boat-hero h1 { align-self: center; margin-block: 1rem; font-size: clamp(2.6rem, 7vw, 4rem) }
  .boat-scene img, .boat-scene video { object-position: 8% 48% }
}
@supports (height: 1svh) {
  .boat-hero { --portrait-view-height: 68svh; --landscape-view-height: 66svh }
}
@media (prefers-reduced-motion: reduce) {
  .boat-hero a, .boat-hero button { transition: none }
  .boat-hero .hero-project:hover { transform: none }
}
