/* The original creatures cross from photography into the pink route strip. */
body .menu-hero .menu-hero-decoration,body.logbook-page .menu-hero .logbook-header-whale{width:clamp(230px,25vw,350px);height:240px;max-height:none;right:4%;bottom:-68px;object-fit:contain;filter:brightness(0);z-index:4}
body.shore-page .menu-hero .menu-hero-decoration{height:260px}
body.about-page .about-routes>.about-bird{top:-95px;bottom:auto;right:5%;width:240px;height:205px;max-height:none;filter:brightness(0);transform:rotate(-7deg);z-index:4;pointer-events:none}
body.home-page .brand-hero .brand-fish{filter:brightness(0);width:clamp(210px,26vw,360px);height:250px;object-fit:contain;left:auto;right:4%;bottom:-65px;z-index:4;pointer-events:none}
/* Council and facilitators are peers in matching three-column groups. */
.about-page .crew-group[aria-labelledby="crew-council"] .crew-profiles,.about-page .crew-group[aria-labelledby="crew-facilitators"] .crew-profiles{grid-template-columns:repeat(3,minmax(0,1fr))}
.about-page .crew-group[aria-labelledby="crew-council"] .crew-portrait>img,.about-page .crew-group[aria-labelledby="crew-facilitators"] .crew-portrait>img{height:280px}
.about-page .crew-group .crew-placeholder>img{height:68px!important}
.about-page .crew-group .crew-identity h3{font-size:27px}
/* Buttons need a solid contrast when their section is already pink. */
body .shore-talks .text-link,body .shore-invitation .text-link,body .sea-invitation .text-link,body.home-page .home-invitation .hp-link,body.home-page .home-owner-feature .hp-link,body .code-belonging .text-link{background:#161616;color:#fff;border:0;padding:16px 22px}
body .shore-talks .text-link:hover,body .shore-invitation .text-link:hover,body .sea-invitation .text-link:hover,body.home-page .home-invitation .hp-link:hover,body.home-page .home-owner-feature .hp-link:hover{background:#333;color:#fff}
/* A double pulse for Love is the revolution, with a quiet expanding echo. */
.code-page .code-love-heart{position:relative;isolation:isolate;display:block;width:230px;height:235px;margin:35px 0 0;padding:24px;border:0;background:transparent;cursor:pointer;color:var(--ink)}
.code-page .code-love-heart>img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;filter:brightness(0);animation:code-double-beat 1.7s ease-in-out infinite;transform-origin:center}
.code-page .code-heart-rings{position:absolute;inset:15px;border:1px solid var(--pink);border-radius:50%;animation:code-heart-echo 1.7s ease-out infinite;z-index:0}
.code-page .code-heart-rings:after{content:'';position:absolute;inset:16px;border:1px solid var(--pink);border-radius:50%}
.code-page .code-love-heart:focus-visible{outline:2px solid var(--ink);outline-offset:7px;border-radius:50%}
.code-page .code-love-heart.is-paused>img,.code-page .code-love-heart.is-paused>.code-heart-rings{animation-play-state:paused}
@keyframes code-double-beat{0%,45%,100%{transform:scale(1)}10%{transform:scale(1.13)}19%{transform:scale(.98)}29%{transform:scale(1.08)}38%{transform:scale(1)}}
@keyframes code-heart-echo{0%{transform:scale(.78);opacity:.65}55%,100%{transform:scale(1.2);opacity:0}}
.sea-owners-teaser .vessel-intro{margin-top:22px}.sea-owners-teaser .owner-page-link{font-size:18px;margin-top:24px}
@media(max-width:1100px){.site-header nav{gap:19px;font-size:16px}}
@media(max-width:760px){body .menu-hero .menu-hero-decoration,body.logbook-page .menu-hero .logbook-header-whale{width:170px;height:145px;max-height:none;bottom:-48px;right:4%}body.shore-page .menu-hero .menu-hero-decoration{height:165px}body.about-page .about-routes>.about-bird{width:155px;height:140px;top:-60px;right:3%}body.home-page .brand-hero .brand-fish{width:160px;height:135px;bottom:-45px;right:4%}.about-page .crew-group[aria-labelledby="crew-council"] .crew-profiles,.about-page .crew-group[aria-labelledby="crew-facilitators"] .crew-profiles{grid-template-columns:1fr}.code-page .code-love-heart{width:185px;height:190px;margin-top:22px}.sea-owners-teaser .vessel-intro{display:block}.sea-owners-teaser h2{margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){.code-page .code-love-heart>img,.code-page .code-heart-rings{animation:none}}

/* Keep the route arrows inside their buttons, on the label baseline. */
body .ways-grid>a>.text-link{display:inline-flex;align-items:center;padding:16px 20px;min-height:54px;margin-top:auto;line-height:1.3}
body .ways-grid .text-link>.link-arrow{display:block;flex:0 0 21px;margin-left:12px}
body .sea-initiation .text-link{background:#161616;color:#fff;border:0}
body .sea-initiation .text-link:hover{background:#333;color:#fff}
/* Two complementary views fill the passage column from top to bottom. */
.sea-passages>.sea-passage-gallery{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));align-self:stretch;min-width:0}
.sea-passage-gallery>figure{position:relative;min-height:380px;margin:0;overflow:hidden}
.sea-passage-gallery>figure>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.sea-passage-gallery>figure>.photo-caption{position:absolute;inset:auto 0 0;padding:34px 24px 18px;margin:0;color:#fff;background:linear-gradient(transparent,#000b);font-size:10px;line-height:1.5}
@media(max-width:700px){
 .sea-passages>.sea-passage-gallery{grid-template-rows:none;grid-template-columns:1fr}
 .sea-passage-gallery>figure{min-height:0;aspect-ratio:3/2}
 body .ways-grid>a>.text-link{margin-top:18px;padding:14px 18px}
}

/* The owners invitation pairs a real vessel with a concise introduction. */
.sea-owners-teaser{display:grid;grid-template-columns:1.1fr 1fr;background:#f3f0e9;padding:0}
.sea-owners-teaser .sea-owner-image{position:relative;align-self:stretch;min-height:520px;margin:0}
.sea-owners-teaser .sea-owner-image>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:45% center}
.sea-owners-teaser .sea-owner-image>figcaption{position:absolute;bottom:0;left:0;right:0;padding:36px 24px 20px;color:white;background:linear-gradient(transparent,#0009);font:10px/1.5 'Space Mono',monospace}
.sea-owners-teaser .sea-owner-copy{padding:64px 11%;align-self:center}
.sea-owners-teaser .vessel-intro{display:block;margin-top:24px}
.sea-owners-teaser h2{margin:0 0 26px;font-size:clamp(38px,4vw,58px)}
.sea-owners-teaser .owner-page-link{margin-top:26px}
@media(max-width:700px){.sea-owners-teaser{grid-template-columns:1fr}.sea-owners-teaser .sea-owner-image{min-height:0;aspect-ratio:4/3}.sea-owners-teaser .sea-owner-copy{padding:42px 24px 48px}.sea-owners-teaser h2{font-size:42px}}

body .private-voyage .vessel-explore{font-size:17px;min-height:48px;padding:13px 18px;margin-top:22px;width:fit-content}
.sea-voyages>.sea-voices{background:#f0f0ed;padding:38px;margin-top:36px;border:0}
#sailing-voices{background:#f0f0ed}
@media(max-width:700px){.sea-voyages>.sea-voices{padding:28px 22px;margin-top:28px}}

/* The owners page shares the main-page photograph, pennant and pink route strip. */
body.owners-page .menu-hero h1{font-size:clamp(64px,6.8vw,96px);line-height:.98}
body.owners-page .menu-hero-copy{width:53%}
body.owners-page .menu-hero-photo img{object-position:66% center}
body.owners-page .menu-hero .menu-hero-lead{font-size:clamp(23px,2.15vw,30px)}
.owners-route-strip{display:flex;justify-content:space-between;gap:24px;padding:30px 32% 30px 6%;background:var(--pink);font:11px/1.6 'Space Mono',monospace}
.owners-route-strip a{border-bottom:1px solid transparent}.owners-route-strip a:hover{border-color:currentColor}
.owners-custom{position:relative;display:grid;grid-template-columns:1fr 1fr;column-gap:9%;row-gap:24px;background:#f3f0e9}
.owners-custom>.eyebrow{grid-column:1/-1}.owners-custom h2{margin:0}.owners-custom-copy{position:relative;z-index:1}.owners-custom-copy .custom-development{padding-left:20px;border-left:3px solid var(--pink)}

.owners-custom-copy{grid-column:2;grid-row:2}
.owners-voyage-photo{
  display:block;
  width:min(100%, 36rem);
  height:auto;
  margin:clamp(20px,2vw,30px) 0 0;
  transform:rotate(-1deg);
}
@media(max-width:760px){
  .owners-custom-heading{margin-bottom:24px}
}
.owners-page .owner-projects figure{width:100%;overflow:hidden;margin:0 0 25px}
.owners-page .owner-projects figure>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center;background:none}
.owners-page .owners-invitation .text-link{background:#161616;color:#fff;border:0}.owners-page .owners-invitation .text-link:hover{background:#333}
@media(max-width:760px){body.owners-page .menu-hero-copy{width:88%}body.owners-page .menu-hero h1{font-size:clamp(52px,11vw,78px);width:95%}.owners-route-strip{padding:26px 6%;padding-right:30%;flex-direction:column;gap:12px}.owners-custom{display:block}.owners-custom h2{margin:20px 0 28px}}
body.owners-page .menu-hero-photo>img{height:100%;width:100%;object-fit:cover}
body.owners-page main .menu-hero p.menu-hero-caption{font:11px/1.6 'Space Mono',monospace;margin:0;max-width:none}
body.owners-page main .menu-hero p.menu-hero-lead{font:400 clamp(23px,2.15vw,30px)/1.3 Jost,sans-serif;max-width:450px;margin:0}
@media(max-width:760px){body.owners-page main .menu-hero p.menu-hero-caption{font-size:10px;max-width:65%}body.owners-page main .menu-hero p.menu-hero-lead{font-size:22px}}

/* A welcome gives the owners introduction a human face, with less copy. */
.owners-page .owners-intro{grid-template-columns:1fr 1fr;gap:7%;align-items:center}
.owners-page .owners-intro>.owners-intro-copy{padding:0}
.owners-page .owners-intro h2{margin:20px 0 26px}
.owners-page .owners-intro .owners-welcome-photo{margin:0;min-width:0}
.owners-page .owners-intro .owners-welcome-photo>img{display:block;width:100%;height:auto;aspect-ratio:1800/886;object-fit:cover;object-position:center}
.owners-page .owners-welcome-photo .photo-caption{font:10px/1.6 'Space Mono',monospace;margin-top:14px}
@media(max-width:760px){.owners-page .owners-intro{grid-template-columns:1fr;gap:28px}.owners-page .owners-intro .owners-welcome-photo>img{aspect-ratio:16/9;object-position:center}}

/* Partner projects on the For Owners page */
.owners-page .owner-projects article {
  border-top: 2px solid var(--pink);
  padding-top: 18px;
}
.owners-page .owner-projects h3 { margin: 8px 0 12px; }
.owners-page .owner-projects .project-intro { margin: 0; }
.owners-page .owner-projects figure { margin: 20px 0; }
.owners-page .owner-projects .text-link { max-width: 100%; }
@media (min-width: 761px) {
  .owners-page .owner-projects { row-gap: 0; }
  .owners-page .owner-projects article {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
    justify-items: start;
    align-items: start;
  }
}
@media (max-width: 760px) {
  .owners-page .owner-projects { margin-top: 24px; }
  .owners-page .owner-projects .text-link { gap: 12px; padding-inline: 16px; }
}

.owners-page .owners-process { position: relative; }
.owners-page .owners-process::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  width: clamp(100px, 13vw, 180px);
  aspect-ratio: 240 / 72;
  background: url("assets/allies-reef-knot.svg") center / contain no-repeat;
  transform: translateY(-50%) rotate(-12deg);
  pointer-events: none;
}

.owners-team .partners-portrait {
  width: min(100%, 30rem);
  margin: 0;
  justify-self: center;
}
.partners-gallery {
  grid-column: 1 / -1;
  min-width: 0;
}

.owners-page main .partners-photo-note {
  width: fit-content;
  margin: 0 0 2px 1%;
  padding: 6px 10px;
  background: var(--pink);
  color: var(--ink);
  font: 600 14px / 1.35 Jost, sans-serif;
  rotate: -.8deg;
}

.partners-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  list-style: none;
  gap: 0;
  padding: 12px 1%;
  margin: 0;
}
.owners-team { row-gap: clamp(18px, 3vw, 42px); }
.partners-strip img {
  display: block;
  width: 100%;
  height: auto;
}
.partners-strip li { position: relative; transform: rotate(-1.5deg); }
.partners-strip li + li { margin-inline-start: calc(-1 * clamp(8px, 1.1vw, 16px)); }
.partners-strip li:nth-child(even) { transform: translateY(5%) rotate(1deg); }
@media (max-width: 760px) {
  .owners-team .partners-portrait { order: 1; }
  .owners-team .partners-gallery { order: 2; }
  .partners-strip {
    display: flex;
    min-width: 0;
    max-width: 100%;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .partners-strip li { flex: 0 0 78%; scroll-snap-align: start; }
}
