/* Homepage. Depends on site.css tokens. */
:root { --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }

/* Shared homepage type */
.hm-title { font-size: clamp(40px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
body.cc .hm-title a { color: inherit; }
body.cc .hm-title em, body.cc .hm-ship h3 em, body.cc .hm-why h3 em { font-style: italic; color: var(--teal-700); }
.hm-lede { font: 400 clamp(22px, 2.2vw, 30px)/1.35 var(--font-serif); color: var(--sea-900); max-width: 38ch; margin: 0 0 1.2em; }
body.cc.home main p { max-width: 62ch; }

/* Route rule: dashed brass line with an anchor node, under section titles */
.hm-rule, .hm-places__head::before { position: relative; display: block; height: 9px; }
.hm-rule { margin-top: 30px; }
.hm-rule::before, .hm-places__head::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1.5px dashed rgba(185, 138, 71, .6); transform-origin: left; }
.hm-rule::after, .hm-places__head::after { content: ""; position: absolute; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--sun-deep); }
.hm-rule::after { top: 0; }
.hm-places__head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: 0; }
.hm-places__head::after { bottom: -4px; }
.cc-js [data-reveal] .hm-rule::before, .cc-js .hm-places__head[data-reveal]::before { transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
.cc-js [data-reveal].is-in .hm-rule::before, .cc-js .hm-places__head[data-reveal].is-in::before { transform: none; }

/* Hero */
.hm-hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: max(640px, min(100vh, 1000px)); min-height: max(640px, min(100svh, 1000px)); color: var(--white); background: var(--sea-900); overflow: hidden; isolation: isolate; }
.hm-hero__pic, .hm-cta__pic { position: absolute; inset: 0; z-index: -2; display: block; }
.hm-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 26, 32, .62) 0%, rgba(6, 26, 32, .18) 38%, rgba(6, 26, 32, 0) 55%, rgba(6, 26, 32, .7) 100%), linear-gradient(90deg, rgba(6, 26, 32, .45) 0%, rgba(6, 26, 32, 0) 60%); }
.hm-hero__in { width: 100%; padding-top: 120px; padding-bottom: clamp(150px, 20vh, 220px); align-self: center; }
body.cc.home .hm-hero h1 { color: var(--white); margin: 0; }
.hm-hero__brand { display: block; font: 500 clamp(56px, 10.4vw, 96px)/.95 var(--font-serif); letter-spacing: -.02em; }
.hm-hero__sub { display: block; margin-top: 22px; font: 500 clamp(17px, 1.9vw, 24px)/1.3 var(--font-sans); letter-spacing: .01em; opacity: .94; }
body.cc.home .hm-hero__lede { max-width: 44ch; margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 19px); opacity: .88; }
.hm-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hm-hero__facts { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 auto; padding: 0 var(--gutter); list-style: none; background: rgba(6, 26, 32, .35); }
.hm-hero__facts li { padding: 18px 0 20px; border-top: 1px solid rgba(255, 255, 255, .22); }
.hm-hero__facts li:nth-child(n+3) { border-top-color: rgba(255, 255, 255, .12); }
.hm-hero__facts a { display: block; }
.hm-hero__facts a, body.cc .hm-hero__facts a { color: inherit; }
.hm-hero__facts b { display: block; margin-bottom: 4px; font: 600 12px/1.3 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.hm-hero__facts span { display: block; font: italic 500 clamp(19px, 1.8vw, 24px)/1.2 var(--font-serif); color: var(--sun); }
.hm-hero__facts a:hover b { color: var(--sun); }

/* Intro */
.hm-intro { padding: clamp(72px, 10vw, 150px) 0 clamp(56px, 8vw, 110px); }
.hm-intro__top { display: grid; gap: 36px; align-items: start; }
.hm-cols { display: grid; gap: 0 40px; }
.hm-cols p, body.cc .hm-note { font-size: 17px; color: #3d4f55; }
body.cc .hm-note { margin: 0; font-style: italic; font-family: var(--font-serif); font-size: 21px; color: var(--teal-700); }
.cc-video { position: relative; margin-top: clamp(48px, 7vw, 96px); aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--sea-900); cursor: pointer; }
.cc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cc-video.is-playing { cursor: default; }
.cc-video__play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 40px rgba(6, 26, 32, .35); transition: transform .35s var(--ease); }
.cc-video__play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -13px 0 0 -8px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--sea-900); }
.cc-video:hover .cc-video__play { transform: scale(1.08); }
.cc-video.is-playing .cc-video__play { display: none; }
.cc-video:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 4px; }
.cc-video__cap { position: absolute; left: 24px; bottom: 22px; padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--sea-900); font: 600 13px/1 var(--font-sans); letter-spacing: .04em; }
.cc-video.is-playing .cc-video__cap { display: none; }
.cc-video img { height: 100%; }

/* Why */
.hm-why { padding: clamp(32px, 5vw, 64px) 0 clamp(72px, 10vw, 150px); background: var(--sand-50); }
.hm-why .cc-container { border-top: 0; }
.hm-why article { display: grid; gap: 14px; padding: clamp(28px, 4vw, 52px) 0; border-top: 1px solid var(--sand-200); }
.hm-why article:last-child { border-bottom: 1px solid var(--sand-200); }
body.cc .hm-why h3 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.01em; }
.hm-why p { margin: 0; font-size: 17px; color: #3d4f55; max-width: 52ch; }

/* Fleet */
.hm-fleet { padding: clamp(72px, 10vw, 150px) 0; overflow: hidden; }
.hm-fleet__head { margin-bottom: clamp(48px, 7vw, 96px); }
.hm-fleet__text { display: grid; gap: 8px 64px; margin-top: 36px; }
.hm-fleet__text .hm-lede { max-width: none; margin-bottom: .4em; }
.hm-fleet__text p:last-child { margin: 0; color: #3d4f55; }
.hm-ship { position: relative; display: grid; margin-top: clamp(40px, 6vw, 88px); }
.hm-ship:first-of-type { margin-top: 0; }
.hm-ship__img { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sea-900); border-radius: 0 var(--radius) var(--radius) 0; }
.hm-ship--flip .hm-ship__img { border-radius: var(--radius) 0 0 var(--radius); }
.hm-ship__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hm-ship:hover .hm-ship__img img { transform: scale(1.04); }
.hm-ship__card { position: relative; z-index: 1; margin: -48px var(--gutter) 0; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: var(--white); box-shadow: 0 40px 70px -36px rgba(6, 26, 32, .45), 0 2px 0 var(--sand-200); }
body.cc .hm-ship h3 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1; margin-bottom: 18px; }
body.cc.home .hm-ship__card p { color: #3d4f55; margin-bottom: 22px; }
.hm-ship__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 30px; border-top: 1px solid var(--sand-200); border-bottom: 1px solid var(--sand-200); }
.hm-ship__facts > div { padding: 16px 0 16px 18px; border-left: 1px solid var(--sand-200); }
.hm-ship__facts > div:first-child { padding-left: 0; border-left: 0; }
.hm-ship__facts dt { font: 600 11px/1.3 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hm-ship__facts dd { margin: 4px 0 0; font: 500 26px/1.1 var(--font-serif); color: var(--sea-900); }

/* Steps */
.hm-steps { position: relative; padding: clamp(72px, 10vw, 150px) 0; background: var(--sea-900); color: rgba(255, 255, 255, .78); overflow: hidden; }
.hm-steps .cc-container { position: relative; }
.hm-steps__head { max-width: 900px; margin-bottom: clamp(48px, 7vw, 96px); }
body.cc .hm-steps h2, body.cc .hm-steps h3 { color: var(--white); }
body.cc .hm-steps .hm-title em { color: var(--sun); }
.hm-steps .hm-lede { margin-top: 28px; color: rgba(255, 255, 255, .78); max-width: 46ch; }
.hm-steps__list { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.hm-steps__list li { position: relative; padding: 0 0 44px 76px; counter-increment: step; }
.hm-steps__list li::before { content: counter(step); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--sun); border-radius: 50%; background: var(--sea-900); font: 600 16px/1 var(--font-sans); font-variant-numeric: lining-nums tabular-nums; color: var(--sun); }
.hm-steps__list li::after { content: ""; position: absolute; left: 22px; top: 58px; bottom: 12px; width: 2px; background: repeating-linear-gradient(180deg, rgba(220, 174, 107, .8) 0 6px, transparent 6px 13px); }
.hm-steps__list li:last-child::after { display: none; }
body.cc .hm-steps h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; margin: 0 0 14px; padding-top: max(0px, calc((46px - 1.15em) / 2)); }
.hm-steps__list p { margin: 0; font-size: 16px; }

/* Experience */
.hm-exp { padding: clamp(72px, 10vw, 150px) 0; }
.hm-exp__grid { display: grid; gap: 56px; align-items: center; }
.hm-exp__grid > img { width: 100%; max-width: 520px; margin: 0 auto; }
.hm-exp .hm-title { margin-bottom: 40px; }
.hm-exp__list { margin: 0; }
.hm-exp__list > div { padding: 22px 0; border-top: 1px solid var(--sand-200); }
.hm-exp__list dt { margin-bottom: 6px; font: 500 clamp(26px, 2.4vw, 32px)/1.15 var(--font-serif); color: var(--sea-900); }
.hm-exp__list dd { margin: 0; font-size: 16px; color: #3d4f55; max-width: 52ch; }

/* Trust */
.hm-trust { padding: 40px 0 clamp(56px, 7vw, 88px); border-top: 1px solid var(--sand-200); }
.hm-trust .cc-container > * + * { margin-top: 16px; }

/* Places */
.hm-places { padding: clamp(72px, 10vw, 150px) 0; background: var(--sand-50); }
.hm-places__head { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; padding-bottom: 36px; margin-bottom: clamp(32px, 5vw, 64px); }
.hm-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
body.cc .hm-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); color: var(--white); background: var(--sea-900); }
.hm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hm-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 32, 0) 40%, rgba(6, 26, 32, .78) 100%); transition: opacity .4s; }
body.cc .hm-tile h3 { position: absolute; z-index: 1; left: clamp(22px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); color: var(--white); font: italic 500 clamp(40px, 4.6vw, 68px)/1 var(--font-serif); }
.hm-tile::before { content: ""; position: absolute; z-index: 1; right: clamp(22px, 3vw, 36px); bottom: clamp(28px, 3.4vw, 42px); width: 44px; height: 44px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%230b2a33' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h10M10 5l4 4-4 4'/%3E%3C/svg%3E") center / 18px no-repeat; transform: translateX(-10px); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.hm-tile:hover img { transform: scale(1.06); }
.hm-tile:hover::before { transform: none; opacity: 1; }

.hm-more { margin: clamp(36px, 5vw, 64px) 0 0; text-align: center; }
body.cc.home main .hm-more { max-width: none; }

/* Excursions */
.hm-excursions { padding: clamp(72px, 10vw, 150px) 0 clamp(96px, 12vw, 190px); }
.hm-ex { display: grid; gap: 40px 24px; grid-template-columns: 1fr; }
body.cc .hm-ex__item { display: block; color: var(--sea-900); }
.hm-ex__img { display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.hm-ex__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hm-ex__item:hover img { transform: scale(1.05); }
body.cc .hm-ex__item h3 { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--sand-200); font-size: clamp(30px, 2.8vw, 40px); }
.hm-ex__item h3::after { content: ""; width: 9px; height: 9px; border: solid var(--teal-700); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transition: transform .4s var(--ease); }
.hm-ex__item:hover h3::after { transform: translateX(6px) rotate(45deg); }

/* Blog */
.hm-blog { padding: clamp(72px, 10vw, 150px) 0; background: var(--sand-50); }
.hm-posts { display: grid; gap: 48px 40px; grid-template-columns: 1fr; }
.hm-post__img { display: block; overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 22px; border-radius: var(--radius); }
.hm-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hm-post:hover .hm-post__img img { transform: scale(1.04); }
body.cc .hm-post h3 { margin-bottom: 14px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; }
body.cc .hm-post--lead h3 { font-size: clamp(34px, 3.8vw, 56px); }
body.cc .hm-post h3 a { color: var(--sea-900); }
body.cc .hm-post h3 a:hover { color: var(--teal-700); }
body.cc.home .hm-post p { font-size: 16px; color: #3d4f55; }

/* Closing call to action */
.hm-cta { position: relative; display: grid; align-items: center; min-height: min(80vh, 760px); color: var(--white); background: var(--sea-900); overflow: hidden; isolation: isolate; }
.hm-cta__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hm-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 26, 32, .82) 0%, rgba(6, 26, 32, .45) 55%, rgba(6, 26, 32, .1) 100%); }
.hm-cta__in { padding-top: 96px; padding-bottom: 96px; }
body.cc .hm-cta .hm-title { max-width: 14ch; color: var(--white); }
body.cc .hm-cta .hm-title em { color: var(--sun); }
.hm-cta .hm-lede { margin-top: 24px; color: rgba(255, 255, 255, .88); }

@media (prefers-reduced-motion: no-preference) {
  .hm-hero__img { animation: hm-zoom 2.8s var(--ease) both; }
  .hm-hero__brand, .hm-hero__sub, .hm-hero__lede, .hm-hero__cta, .hm-hero__facts { animation: hm-rise 1s var(--ease) both; }
  .hm-hero__sub { animation-delay: .12s; } .hm-hero__lede { animation-delay: .24s; } .hm-hero__cta { animation-delay: .36s; } .hm-hero__facts { animation-delay: .6s; }
}
@keyframes hm-zoom { from { transform: scale(1.1); } to { transform: none; } }
@keyframes hm-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (max-width: 639.98px) {
  .hm-hero { justify-content: flex-start; }
  .hm-hero__in { padding-top: 104px; padding-bottom: 0; align-self: stretch; }
  body.cc.home .hm-hero__lede { display: none; }
  .hm-hero__cta { margin-top: 28px; }
  body.cc .hm-hero__cta .cc-btn { flex: 1 1 auto; justify-content: center; padding: 15px 18px; font-size: 14.5px; }
  .hm-cta { align-items: start; min-height: 0; }
  .hm-cta__in { padding-top: 84px; padding-bottom: 360px; }
  .hm-cta::before { background: linear-gradient(180deg, rgba(6, 26, 32, .86) 0%, rgba(6, 26, 32, .55) 50%, rgba(6, 26, 32, 0) 78%); }
  .hm-steps__list h3 { padding-top: max(0px, calc((46px - 1.15em) / 2)); margin-top: 0; }
}
@media (min-width: 640px) {
  .hm-cols { grid-template-columns: 1fr 1fr; }
  .hm-ex { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .hm-hero__facts { grid-template-columns: repeat(4, 1fr); background: none; }
  .hm-hero__facts li { padding: 22px 24px 28px 0; }
  .hm-hero__facts li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .2); }
  .hm-hero__facts li:nth-child(n+3) { border-top-color: rgba(255, 255, 255, .22); }
  .hm-ex__item:nth-child(2) { margin-top: 56px; }
  .hm-bento { grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; }
  body.cc .hm-tile--tall { grid-row: 1 / 3; aspect-ratio: auto; min-height: 620px; }
  body.cc .hm-bento .hm-tile:not(.hm-tile--tall) { aspect-ratio: auto; min-height: 300px; }
}
@media (min-width: 960px) {
  .hm-intro__top { grid-template-columns: 5fr 7fr; gap: 80px; }
  .cc-video { aspect-ratio: 16 / 9; }
  .hm-why article { grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
  .hm-fleet__text { grid-template-columns: 1fr 1fr; gap: 0 80px; align-items: start; }
  .hm-ship { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; }
  .hm-ship__card { margin: 0 var(--edge) 0 -14%; }
  .hm-ship--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
  .hm-ship--flip .hm-ship__img { grid-column: 2; grid-row: 1; }
  .hm-ship--flip .hm-ship__card { grid-column: 1; grid-row: 1; margin: 0 -14% 0 var(--edge); }
  .hm-ship__img { aspect-ratio: 16 / 11; }
  .hm-steps__list { grid-template-columns: repeat(3, 1fr); column-gap: 56px; }
  .hm-steps__list li { padding: 76px 0 0 0; }
  .hm-steps__list li::after { left: 58px; right: auto; top: 22px; bottom: auto; width: calc(100% - 12px); height: 2px; background: repeating-linear-gradient(90deg, rgba(220, 174, 107, .8) 0 6px, transparent 6px 13px); }
  .hm-exp__grid { grid-template-columns: .85fr 1.15fr; gap: 104px; }
  .hm-posts { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .hm-post--lead { grid-row: 1 / 3; }
  .hm-post:not(.hm-post--lead) { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
  .hm-post:not(.hm-post--lead) .hm-post__img { margin: 0; aspect-ratio: 1; }
}

/* Melody photo is a wide side profile: keep the full ship in frame */
.hm-ship--flip .hm-ship__img { aspect-ratio: 16 / 9; }
@media (min-width: 960px) { .hm-ship--flip .hm-ship__img { aspect-ratio: 16 / 9; } }

/* Timeline sequence: step 1, line, step 2, line, step 3. No line after the last step. */
.cc-js .hm-steps__list[data-reveal] { opacity: 1; transform: none; }
.cc-js .hm-steps__list[data-reveal] li { opacity: 0; transform: translateY(16px); }
.cc-js .hm-steps__list[data-reveal] li::after { clip-path: inset(0 0 100% 0); }
.cc-js .hm-steps__list.is-in li { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.cc-js .hm-steps__list.is-in li:nth-child(2) { transition-delay: .6s; }
.cc-js .hm-steps__list.is-in li:nth-child(3) { transition-delay: 1.2s; }
.cc-js .hm-steps__list.is-in li::after { clip-path: inset(0 0 0 0); transition: clip-path .4s linear; }
.cc-js .hm-steps__list.is-in li:nth-child(1)::after { transition-delay: .2s; }
.cc-js .hm-steps__list.is-in li:nth-child(2)::after { transition-delay: .8s; }
@media (min-width: 960px) {
  .cc-js .hm-steps__list[data-reveal] li::after { clip-path: inset(0 100% 0 0); }
  .cc-js .hm-steps__list.is-in li::after { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-js .hm-steps__list[data-reveal] li { opacity: 1; transform: none; }
  .cc-js .hm-steps__list[data-reveal] li::after { clip-path: none; }
}
