/* Ship abroad. Loaded after site.css and page.css. */

/* ---------- 1. the routes ---------- */
.voyage { position: relative; background: var(--navy); color: var(--white); }
.live .voyage { height: 470vh; }
.voyage__pin { position: relative; min-height: 36rem; overflow: clip; }
.live .voyage__pin { position: sticky; top: 0; height: 100vh; }
.voyage .routes { position: absolute; right: 0; top: 0; width: 192svh; height: auto; -webkit-mask: linear-gradient(90deg, transparent, #000 14%); mask: linear-gradient(90deg, transparent, #000 14%); }
.voyage__pin::after { content: ""; position: absolute; inset: 40% 36% 0 0; background: radial-gradient(100% 100% at 0 100%, rgb(18 35 61 / .97) 52%, rgb(18 35 61 / 0)); }
.voyage__say { position: absolute; z-index: 1; left: var(--gut); bottom: calc(3rem + var(--bar)); max-width: min(46rem, 100% - 2 * var(--gut)); }
.voyage__say .page-h { font-size: min(7.1vw, 14.8svh); letter-spacing: -.016em; }      /* looser than elsewhere: the two Ts of MATTERS would touch */
.voyage__say h2 { font-size: clamp(2.4rem, min(6vw, 12svh), 7.4rem); font-weight: 600; line-height: .96; letter-spacing: -.045em; white-space: nowrap; }
.voyage__say p { max-width: 25em; margin: 1.2rem 0 1.7rem; font-size: clamp(1.0625rem, 1.5vw, 1.8rem); font-weight: 500; line-height: 1.34; letter-spacing: -.012em; text-wrap: balance; }
.voyage__say .btn + .link { margin-left: 1.4rem; }
.live .voyage__say:not(.voyage__say--open) { opacity: 0; visibility: hidden; }
.live .voyage__say--open > * { animation: ship-rise 1s var(--out) backwards; }
.live .voyage__say--open > p { animation-delay: .12s; } .live .voyage__say--open > a { animation-delay: .2s; }
@keyframes ship-rise { from { opacity: 0; translate: 0 1.4rem; } }
html:not(.live) .voyage__pin { padding: 52svh var(--gut) 4rem; display: grid; gap: 3.4rem; }
html:not(.live) .voyage__say { position: relative; inset: auto; }
@media (min-width: 801px) and (min-aspect-ratio: 1/1) { html:not(.live) .voyage__pin::after { inset: 34svh 42% 0 0; } }

/* ---------- 2. air or sea: the one that is pointed at takes more of the window ---------- */
.two { display: flex; height: 100vh; height: 100svh; min-height: 34rem; overflow: clip; background: var(--ink); color: var(--white); }
.two__half { position: relative; flex: 1 1 0; min-width: 0; overflow: clip; transition: flex-grow .9s var(--out); }
.two__half + .two__half { margin-left: clamp(.4rem, .8vw, 1rem); }
.two img { position: absolute; left: 50%; top: 50%; width: 108vw; height: 108vh; height: 108svh; max-width: none; object-fit: cover; translate: -50% -56%; }
.two__half:first-child img { scale: 1.75; object-position: 50% 48%; }
.two__half--sea img { scale: 1.1; }
.two__half::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgb(4 14 22 / .94) 12%, rgb(4 14 22 / .62) 46%, rgb(4 14 22 / 0)); }
.two__half div { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: 3rem; }
.two h2 { font-size: clamp(4rem, min(12.5vw, 26svh), 16rem); font-weight: 600; line-height: .82; letter-spacing: -.06em; margin-left: -.04em; }
.two p { max-width: 21em; min-height: 2.7em; margin: 1.9rem 0 1.3rem; font-size: clamp(1.0625rem, 1.5vw, 1.8rem); font-weight: 500; line-height: 1.34; letter-spacing: -.012em; }
@media (hover: hover) and (min-width: 801px) { .two__half:is(:hover, :focus-within) { flex-grow: 1.5; } }

/* ---------- 3. how it works ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper) var(--sheet) -1px 0 / 25% 22rem; padding: clamp(5rem, 9vw, 9.5rem) var(--gut); }
.steps .title { position: sticky; top: 17svh; align-self: start; max-width: 6em; font-size: clamp(2.4rem, 6vw, 7.4rem); letter-spacing: -.045em; line-height: .96; }
.steps__list { --line: 3px; position: relative; margin: 0 0 0 calc(var(--gut) / -2); padding: 0 0 0 clamp(2rem, 4vw, 4.4rem); list-style: none; }
.steps__list::before, .steps__list::after { content: ""; position: absolute; left: calc(var(--line) / -2); top: .6rem; bottom: 3.6rem; width: var(--line); background: #d2d2cb; }
.steps__list::after { background: var(--yellow); transform: scaleY(var(--p, 1)); transform-origin: 0 0; }
.steps__box { position: absolute; z-index: 1; left: 0; top: .6rem; width: clamp(2rem, 3.2vw, 4rem); aspect-ratio: 1; margin: calc(clamp(2rem, 3.2vw, 4rem) / -2); background: url("../assets/services/box.webp") 0 0 / 100%; filter: drop-shadow(0 .35rem .5rem rgb(13 13 13 / .35)); }
html:not(.live) .steps__box { display: none; }
.steps li { min-height: 25svh; padding-bottom: 3rem; }
.steps li:last-child { min-height: 0; padding-bottom: 0; }
.steps b { display: block; font-size: clamp(1.9rem, 3.5vw, 4.3rem); font-weight: 600; line-height: 1; letter-spacing: -.042em; transition: color .4s; }
.steps span { display: block; max-width: 23em; margin-top: .9rem; font-size: clamp(1.0625rem, 1.35vw, 1.6rem); font-weight: 500; line-height: 1.36; letter-spacing: -.012em; text-wrap: pretty; transition: color .4s; }
.live .steps li:not(.is-on) :is(b, span) { color: #a3a199; }

/* ---------- 4. what can go ---------- */
.cango { padding: clamp(5rem, 9vw, 9.5rem) var(--gut); background: var(--ink); color: var(--white); }
.cango__h { font-size: clamp(1.0625rem, 1.5vw, 1.8rem); font-weight: 600; letter-spacing: -.015em; }
.cango__say { margin: clamp(1.4rem, 2.6vw, 2.8rem) 0 clamp(2.4rem, 4vw, 4.4rem); font-size: clamp(2.2rem, 5.4vw, 7rem); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; text-wrap: pretty; }
/* each thing has its picture after it, as tall as a capital letter, with the corner of the buttons */
.cango__say span { white-space: nowrap; }
.cango__say b { font-weight: inherit; }
@media (min-width: 801px) { .cango__say b { white-space: nowrap; } }
.cango__say img { display: inline-block; width: auto; height: .8em; margin: 0 .12em 0 .2em; vertical-align: -.05em; clip-path: polygon(0 0, calc(100% - .17em) 0, 100% .17em, 100% 100%, 0 100%); }
.cango__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 1.6rem; }
.cango__foot p { max-width: 31em; margin-right: auto; font-size: clamp(1.0625rem, 1.35vw, 1.6rem); line-height: 1.38; color: #c9c9c4; text-wrap: pretty; }

@media (max-width: 800px), (max-aspect-ratio: 1/1) {
  .voyage .routes { width: 142vw; right: -6vw; top: 10svh; -webkit-mask: none; mask: none; }
  .voyage__pin::after { inset: 56% 0 0; background: linear-gradient(0deg, var(--navy) 72%, rgb(18 35 61 / 0)); }
  .voyage__say .page-h { font-size: min(13.6vw, 10svh); }
  .voyage__say h2 { font-size: min(10vw, 7svh); }
  .two { flex-direction: column; height: auto; min-height: 0; }
  .two__half { flex: none; height: 78vh; height: 78svh; }
  .two__half + .two__half { margin: .4rem 0 0; }
  .two img { width: 100%; height: 100%; translate: -50% -50%; }
  .two__half:first-child img { scale: 1.5; translate: -50% -62%; object-position: 49% 50%; }
  .two__half--sea img { scale: 1; translate: -50% -50%; }
  .two p { min-height: 0; }
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; background-size: 50% 20rem; }
  .steps .title { position: static; margin-bottom: 3rem; }
  .steps__list { margin-left: 1rem; }
  .steps li { min-height: 0; padding-bottom: 2.8rem; }
}
