/* =====================================================================
   PT. Marine Cruise Indonesia — redesign v2
   Tokens → base → layout → components → sections → pages → motion
   ===================================================================== */

:root {
  /* Colour */
  --abyss: #00142e;      /* deepest navy: hero shade, footer */
  --deep: #00224f;       /* MCI deep navy (top bar) */
  --navy: #003a8a;       /* MCI brand blue */
  --ink: #0a2348;        /* body text */
  --amber: #f2a541;      /* MCI accent: CTAs, flap board */
  --amber-text: #8a5a00; /* amber that passes contrast on white */
  --tide: #5cc8c2;       /* sea-glass teal: route line, "open" status */
  --foam: #eef3f8;       /* cool light section */
  --paper: #ffffff;
  --mist: #4f5f76;       /* secondary text */
  --line: #dce4ee;
  --navy-line: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Archivo", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & motion */
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 32px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px;
  background: var(--amber); color: var(--ink); font-weight: 700; border-radius: var(--r-s);
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.04;
}
.h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.h3 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--mist); max-width: 60ch; }
.on-dark .lead, .lead--light { color: #c9d4e3; }

.section-head { display: grid; gap: 16px; max-width: 720px; }
.section-head--split {
  max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px;
}
@media (max-width: 760px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--amber); --btn-fg: var(--ink); --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.25s;
}
.btn::after { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease-out);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0, 20, 46, 0.55); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { flex-shrink: 0; }
.btn--navy { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn--ghost:hover { --btn-bd: #fff; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .95rem; border-radius: 10px; }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  font-weight: 700; text-decoration: none; color: var(--navy);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px; transition: background-size .4s var(--ease-out);
}
.text-link:hover { background-size: 100% 2px; color: var(--navy); }
.on-dark .text-link { color: #fff; background-image: linear-gradient(var(--amber), var(--amber)); background-size: 100% 2px; }
.on-dark .text-link:hover { color: var(--amber); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--deep); color: #dce4ef; font-size: 0.82rem; position: relative; z-index: 31; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-block: 8px; }
.topbar a { color: #dce4ef; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__badge { display: inline-flex; align-items: center; gap: 8px; }
.topbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.lang { display: inline-flex; border: 1px solid #2d5390; border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: #dce4ef; padding: 3px 11px; font-weight: 600; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--ink); font-weight: 700; }
.lang a { color: #dce4ef; padding: 3px 11px; font-weight: 600; text-decoration: none; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: var(--amber); color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .topbar__contact { display: none; }
  .topbar__inner { flex-wrap: nowrap; }
  .topbar__badge { min-width: 0; }
  .topbar__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, transform .45s var(--ease-out);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header--overlay { position: fixed; left: 0; right: 0; top: var(--topbar-h, 37px); color: #fff; }
.site-header.is-solid {
  background: rgba(255,255,255,.88); color: var(--ink);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0,34,79,.35);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header--plain { background: #fff; box-shadow: 0 1px 0 var(--line); color: var(--ink); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand__logo { position: relative; width: 98px; height: 44px; flex-shrink: 0; }
.brand__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.brand__logo .logo-white { opacity: 0; }
.site-header--overlay:not(.is-solid) .brand__logo .logo-white { opacity: 1; }
.site-header--overlay:not(.is-solid) .brand__logo .logo-blue { opacity: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 800; font-size: 1rem; }
.brand__tag { font-size: .75rem; opacity: .75; }
@media (max-width: 420px) { .brand__text { display: none; } }

.nav { display: flex; align-items: center; gap: 2px; font-size: .95rem; font-weight: 600; }
.nav a {
  position: relative; color: inherit; text-decoration: none; padding: 10px 13px; border-radius: 8px; opacity: .88;
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav a:hover { opacity: 1; color: inherit; }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"], .nav a.is-current { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .partner-link { color: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; padding: 10px 6px; opacity: .9; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid currentColor;
  background: transparent; align-items: center; justify-content: center; cursor: pointer; color: inherit;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}
@media (max-width: 1020px) {
  .nav, .header-actions .partner-link { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) { .header-actions .btn { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--abyss); color: #fff;
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px;
  clip-path: circle(0% at calc(100% - 44px) 44px); visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path .7s var(--ease-in-out); }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__close { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--navy-line); background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 8vh; }
.mobile-menu nav a {
  font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: clamp(2rem, 9vw, 3rem);
  color: #fff; text-decoration: none; line-height: 1.25; padding: 4px 0;
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease-out), color .2s;
}
.mobile-menu nav a:hover { color: var(--amber); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .18s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .23s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .28s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .33s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .38s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: .43s; }
.mobile-menu.is-open nav a:nth-child(7) { transition-delay: .48s; }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 14px; color: #c9d4e3; }
.mobile-menu__foot .btn { justify-self: start; }

/* ---------- Scroll progress & floating buttons ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--tide), var(--amber)); transform-origin: left; transform: scaleX(0); }

.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 0;
  height: 56px; padding: 0 16px; border-radius: 999px; background: #1fae5b; color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(10, 80, 40, .6);
  transition: gap .4s var(--ease-out), transform .3s;
}
.fab-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1fae5b;
  animation: ripple 2.4s ease-out infinite;
}
.fab-wa span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease-out); }
.fab-wa:hover { color: #fff; gap: 10px; transform: translateY(-2px); }
.fab-wa:hover span { max-width: 180px; }
@keyframes ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

.to-top {
  position: fixed; right: 26px; bottom: 90px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 8px 24px -8px rgba(0,34,79,.4);
  display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 126; stroke-dashoffset: 126; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; max-width: min(92vw, 460px); visibility: hidden;
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; font-size: .95rem;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); transform: translate(-50%, calc(100% + 48px)); transition: transform .5s var(--ease-out), visibility 0s .5s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--abyss); display: grid; place-items: center;
  transition: clip-path .9s var(--ease-in-out), visibility 0s .9s; clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__logo { position: relative; width: 150px; }
.preloader__logo img { width: 100%; }
.preloader__logo .fill {
  position: absolute; inset: 0; background: url("../img/logo-mci-white.png") center / contain no-repeat;
  clip-path: inset(100% 0 0 0); animation: fillUp 1.1s var(--ease-in-out) forwards .1s;
}
.preloader__logo .base { opacity: .18; }
@keyframes fillUp { to { clip-path: inset(0 0 0 0); } }

/* =====================================================================
   HERO — video reel + flap board
   ===================================================================== */
.hero {
  position: relative; min-height: max(640px, 100svh); color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; background: var(--abyss);
}
.hero__media { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease-in-out);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide video, .hero__slide img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.12);
}
.hero__slide.is-active video, .hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,20,46,.86) 0%, rgba(0,20,46,.55) 45%, rgba(0,20,46,.15) 100%),
    linear-gradient(0deg, rgba(0,20,46,.9) 0%, rgba(0,20,46,0) 45%),
    linear-gradient(180deg, rgba(0,20,46,.55) 0%, rgba(0,20,46,0) 22%);
}
.hero__grain { /* faint scanline texture for a filmic feel */
  position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 72px); padding-bottom: 150px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .86rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__badge .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; }
.hero__title { margin-top: 26px; font-size: clamp(2.3rem, 5.4vw, 4.9rem); max-width: 15ch; }
.hero__title .line { display: block; }
.hero__title .line--small { font-size: .5em; font-stretch: 112%; font-weight: 700; letter-spacing: 0; margin-bottom: .2em; color: #dce4ef; }
.hero__title .line--rest { margin-top: .22em; font-size: .62em; line-height: 1.1; max-width: 22ch; }

/* Flap board */
.flap {
  --tile-w: clamp(19px, min(calc((100vw - 48px) / 15), 6.2vh), 60px);
  display: flex; gap: calc(var(--tile-w) * .08); perspective: 600px;
}
.flap__tile {
  position: relative; width: var(--tile-w); height: calc(var(--tile-w) * 1.32);
  border-radius: calc(var(--tile-w) * .12);
  background: linear-gradient(180deg, #0b2a57 0 49.4%, #08224a 50.6% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 14px -6px rgba(0,0,0,.6);
  display: grid; place-items: center; overflow: hidden;
}
.flap__tile::after { /* the split line */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);
  background: rgba(0, 10, 25, .85);
}
.flap__char {
  font-family: var(--font-display); font-stretch: 100%; font-weight: 800; line-height: 1;
  font-size: calc(var(--tile-w) * .86); color: var(--amber); transform-origin: 50% 50%;
}
.flap__tile.is-blank { background: linear-gradient(180deg, rgba(11,42,87,.55) 0 49.4%, rgba(8,34,74,.55) 50.6% 100%); }
.flap__tile.tick .flap__char { animation: tick .09s linear; }
@keyframes tick { 0% { transform: rotateX(70deg); opacity: .4; } 100% { transform: rotateX(0); opacity: 1; } }

.hero__lead { margin-top: 26px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: #d4deeb; max-width: 54ch; }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: #dce4ef; padding: 0; list-style: none; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }

/* Scene rail */
.hero__rail {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 92px;
}
.rail { display: flex; align-items: flex-end; gap: 14px; }
.rail__list { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.rail__btn {
  width: 100%; text-align: left; border: 0; background: none; color: rgba(255,255,255,.62); cursor: pointer;
  padding: 10px 0 0; font-size: .8rem; font-weight: 600; display: grid; gap: 8px;
}
.rail__btn:hover, .rail__btn[aria-current="true"] { color: #fff; }
.rail__bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.rail__bar i { display: block; height: 100%; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.rail__btn.is-done .rail__bar i { transform: scaleX(1); }
.rail__ctrl {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,20,46,.35);
  color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.rail__ctrl:hover { border-color: #fff; }
@media (max-width: 760px) {
  .rail__btn span { display: none; }
  .hero__rail { position: relative; bottom: auto; margin-top: 32px; padding-bottom: 96px; }
  .hero__inner { padding-bottom: 0; padding-top: calc(var(--header-h) + 56px); }
  .hero__trust { display: grid; gap: 6px; }
}
.hero__scroll {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 150px; writing-mode: vertical-rl;
  font-size: .72rem; letter-spacing: .2em; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 12px;
}
.hero__scroll::after { content: ""; width: 1px; height: 54px; background: linear-gradient(rgba(255,255,255,.8), transparent); animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 1020px) { .hero__scroll { display: none; } }

/* Hero entrance (one orchestrated moment) */
.js .hero [data-enter] { opacity: 0; transform: translateY(26px); }
.js .hero.is-ready [data-enter] { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }

/* =====================================================================
   Boarding-pass search
   ===================================================================== */
.ticket-wrap { position: relative; z-index: 5; margin-top: -64px; }
.ticket {
  --notch: 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) 230px; background: #fff; border-radius: 22px;
  box-shadow: 0 24px 60px -24px rgba(0, 34, 79, .45), 0 0 0 1px var(--line);
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 230px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 230px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - 230px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 230px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket__main { padding: 22px 26px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: end; }
.ticket__stub {
  border-left: 2px dashed var(--line); padding: 22px; display: grid; align-content: center; gap: 8px;
}
.ticket__stub small { color: var(--mist); font-size: .78rem; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8rem; font-weight: 700; color: #3b4a5e; }
.field input, .field select {
  height: 50px; border: 1.5px solid #cbd4e1; border-radius: 12px; padding: 0 14px; font: inherit; font-size: .98rem;
  color: var(--ink); background: #fff; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0,58,138,.12); }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket__main { grid-template-columns: 1fr; }
  .ticket__stub { border-left: 0; border-top: 2px dashed var(--line); }
}

/* =====================================================================
   Sections
   ===================================================================== */
.section { padding-block: clamp(80px, 10vw, 128px); position: relative; }
.section--foam { background: var(--foam); }
.section--navy { background: var(--navy); color: #fff; }
.section--abyss { background: var(--abyss); color: #fff; }

/* ---------- Voyage (how it works) ---------- */
.voyage__track { position: relative; margin-top: 64px; }
.voyage__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.voyage__svg .path-bg { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.voyage__svg .path-fg { fill: none; stroke: var(--tide); stroke-width: 3; stroke-linecap: round; }
.voyage__ship {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; z-index: 2;
  border-radius: 50%; background: var(--navy); display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(0,58,138,.12), 0 10px 24px -8px rgba(0,58,138,.6); will-change: transform;
}
.voyage__ship img { width: 40px; }
.voyage__stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stops, 4), minmax(0, 1fr)); gap: 28px; position: relative; }
.stop { padding-top: 92px; display: grid; gap: 10px; align-content: start; }
.stop__dot {
  position: absolute; top: 40px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--line);
  transition: border-color .4s, background-color .4s, transform .4s var(--ease-out);
}
.stop { position: relative; }
.stop__dot { left: 0; }
.stop__num { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: .95rem; color: var(--amber-text); }
.stop p { color: var(--mist); font-size: .97rem; }
.stop.is-reached .stop__dot { border-color: var(--tide); background: var(--tide); transform: scale(1.25); }
.stop .stop__port { font-size: .8rem; font-weight: 700; color: var(--navy); background: #e8f0fa; border-radius: 999px; padding: 3px 10px; justify-self: start; }
@media (max-width: 860px) {
  .voyage__stops { grid-template-columns: 1fr; gap: 36px; padding-left: 64px; }
  .stop { padding-top: 0; }
  .stop__dot { top: 4px; left: -48px; }
}

/* ---------- Services: wipe list ---------- */
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.services-intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; }
.services-intro .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: minmax(0, 1fr); } .services-intro { position: static; } }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc {
  position: relative; border-bottom: 1px solid var(--line); isolation: isolate; overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.svc__btn {
  width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; gap: 20px; align-items: center;
  padding: 22px 18px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  transition: color .35s;
}
.svc__icon {
  width: 56px; height: 56px; border-radius: 14px; background: #fff3dc; display: grid; place-items: center;
  transition: background-color .35s, transform .5s var(--ease-out);
}
.svc__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.svc__plus { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: transform .5s var(--ease-out); opacity: .7; }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.svc__body > div { overflow: hidden; }
.svc__body p { padding: 0 18px 8px 94px; color: #c9d4e3; max-width: 62ch; }
.svc__body a { display: inline-flex; margin: 6px 0 22px 94px; color: var(--amber); font-weight: 700; text-decoration: none; gap: 8px; align-items: center; }
.svc:hover::before, .svc.is-open::before { transform: scaleX(1); }
.svc:hover .svc__btn, .svc.is-open .svc__btn { color: #fff; }
.svc:hover .svc__icon, .svc.is-open .svc__icon { background: var(--amber); transform: rotate(-6deg); }
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc.is-open .svc__plus { transform: rotate(45deg); }
@media (max-width: 520px) {
  .svc__btn { grid-template-columns: 44px minmax(0,1fr) 28px; gap: 14px; padding: 18px 10px; }
  .svc__icon { width: 44px; height: 44px; }
  .svc__body p { padding-left: 68px; }
  .svc__body a { margin-left: 68px; }
}

/* ---------- Departure board (vacancies) ---------- */
.board {
  margin-top: 48px; background: var(--abyss); color: #fff; border-radius: var(--r-l); overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 20, 46, .8);
}
.board__top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 28px;
  background: #021d40; border-bottom: 1px solid var(--navy-line); font-size: .85rem; color: #9fb3cf;
}
.board__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-stretch: 118%; font-weight: 800; color: #fff; font-size: 1rem; letter-spacing: .04em; }
.board__clock { font-variant-numeric: tabular-nums; color: var(--amber); font-weight: 700; }
.board__table { width: 100%; border-collapse: collapse; }
.board__table th {
  text-align: left; font-size: .76rem; font-weight: 600; color: #8ea3c2; padding: 14px 28px 10px; letter-spacing: .02em;
}
.board__table td { padding: 18px 28px; border-top: 1px solid var(--navy-line); vertical-align: middle; }
.board__row { transition: background-color .25s; cursor: pointer; }
.board__row:hover { background: rgba(255,255,255,.05); }
.board__pos {
  font-family: var(--font-display); font-stretch: 100%; font-weight: 800; font-size: 1.12rem; color: var(--amber);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.board__muted { color: #c9d4e3; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.tag--cruise { background: rgba(92, 200, 194, .16); color: #8fe0db; }
.tag--hotel { background: rgba(242, 165, 65, .16); color: #ffc77f; }
.tag--light.tag--cruise { background: #e8f0fa; color: var(--navy); }
.tag--light.tag--hotel { background: #fff3dc; color: var(--amber-text); }
.tag--dept { background: #f1f4f8; color: #3b4a5e; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: #8fe0db; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tide); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.board__go { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.board__go:hover { color: var(--amber); }
.board__foot { padding: 18px 28px; border-top: 1px solid var(--navy-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; color: #9fb3cf; font-size: .9rem; }
@media (max-width: 860px) {
  .board__table thead { display: none; }
  .board__table, .board__table tbody, .board__table tr, .board__table td { display: block; width: 100%; }
  .board__table tr { padding: 18px 22px; border-top: 1px solid var(--navy-line); display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .board__table td { padding: 0; border: 0; }
  .board__table td:nth-child(1) { grid-column: 1 / -1; }
  .board__table td:nth-child(5), .board__table td:nth-child(6) { justify-self: end; }
  .board__pos { white-space: normal; }
}

/* ---------- Why MCI ---------- */
.why { overflow: hidden; }
.why__contours { position: absolute; inset: 0; opacity: .22; pointer-events: none; }
.why__contours path { fill: none; stroke: #5b82c2; stroke-width: 1; }
.why__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .why__grid { grid-template-columns: minmax(0, 1fr); } }
.why__intro { display: grid; gap: 20px; }
.why__intro .text-link { justify-self: start; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }
.reason {
  position: relative; padding: 26px; border-radius: var(--r-m); background: rgba(255,255,255,.06);
  border: 1px solid var(--navy-line); display: grid; gap: 10px; overflow: hidden;
  transition: transform .5s var(--ease-out), background-color .3s;
}
.reason::before { /* pointer spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(242,165,65,.22), transparent 60%);
}
.reason:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.reason:hover::before { opacity: 1; }
.reason__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(242,165,65,.15); display: grid; place-items: center; }
.reason p { color: #c9d4e3; font-size: .97rem; }
.facts { position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy-line); }
.fact { padding: 26px 20px 0 0; display: grid; gap: 4px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--navy-line); }
.fact__num { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.fact__label { color: #c9d4e3; font-size: .92rem; max-width: 22ch; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(3) { padding-left: 0; border-left: 0; } }

/* ---------- Gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #cbd4e1; background: #fff; color: #3b4a5e;
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.masonry { margin-top: 40px; columns: 3 300px; column-gap: 18px; }
.shot {
  break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: var(--r-m); overflow: hidden; cursor: zoom-in;
  display: block; width: 100%; padding: 0; border: 0; background: var(--foam); text-align: left;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.shot img { width: 100%; height: auto; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.shot:hover img { transform: scale(1.07); }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(0deg, rgba(0,20,46,.85), transparent);
  transform: translateY(40%); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s;
  display: flex; justify-content: space-between; align-items: end; gap: 10px;
}
.shot__cap small { display: block; font-weight: 500; color: #c9d4e3; font-size: .8rem; }
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { transform: none; opacity: 1; }
.shot.is-hiding { opacity: 0; transform: scale(.94); }
.shot[hidden] { display: none; }
@media (max-width: 640px) { .masonry { columns: 2; column-gap: 10px; margin-top: 28px; } .shot { margin-bottom: 10px; border-radius: 12px; } .shot__cap { display: none; } }
.shot--broken { min-height: 220px; background: linear-gradient(135deg, var(--navy), var(--abyss)); }

.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(0, 12, 28, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .35s var(--ease-out); }
.lightbox::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: .9rem; color: #c9d4e3; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 72px; min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; animation: lbImg .5s var(--ease-out); }
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox__cap { padding: 14px 20px 24px; text-align: center; color: #dce4ef; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.15); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 14px; } .lightbox__next { right: 14px; }
@media (max-width: 640px) { .lightbox__stage { padding: 0 12px; } .lightbox__prev, .lightbox__next { top: auto; bottom: -60px; } }

/* ---------- Testimonials ---------- */
.stories__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .stories__grid { grid-template-columns: minmax(0, 1fr); } }
.stories__intro { display: grid; gap: 18px; }
.stories__nav { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background-color .25s, color .25s, transform .3s var(--ease-out);
}
.round-btn:hover { background: var(--ink); color: #fff; transform: scale(1.06); }
.stories__count { font-variant-numeric: tabular-nums; font-weight: 700; margin-left: 8px; }
.stories__viewport { overflow: hidden; border-radius: var(--r-l); cursor: grab; touch-action: pan-y; }
.stories__viewport:active { cursor: grabbing; }
.stories__track { display: flex; transition: transform .8s var(--ease-out); will-change: transform; }
.story {
  flex: 0 0 100%; padding: clamp(28px, 4vw, 52px); background: #fff; border-radius: var(--r-l);
  display: grid; gap: 26px; user-select: none; min-height: 360px; align-content: space-between;
  border: 1px solid var(--line);
}
.story__mark { width: 54px; height: 54px; color: var(--amber); }
.story blockquote { margin: 0; font-family: var(--font-display); font-stretch: 105%; font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; color: var(--ink); }
.story__who { display: flex; align-items: center; gap: 14px; }
.story__avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--amber); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.story__name { font-weight: 800; }
.story__role { color: var(--mist); font-size: .92rem; }
.story__progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 18px; }
.story__progress i { display: block; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; }

/* ---------- Partners marquee ---------- */
.partners { padding-block: 72px; overflow: hidden; }
.partners__head { text-align: center; display: grid; gap: 8px; justify-items: center; }
.marquee { margin-top: 36px; display: grid; gap: 14px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__row { display: flex; overflow: hidden; }
.marquee__track { display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; animation: marquee var(--dur, 38s) linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 14px; border: 1px solid var(--line);
  font-weight: 700; color: #3b4a5e; white-space: nowrap; background: #fff;
}
.pill small { font-weight: 600; color: var(--mist); font-size: .75rem; }
.pill .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.pill--group .pip { background: var(--amber); }

/* ---------- News ---------- */
.news__grid { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.news__side { display: grid; gap: 24px; }
@media (max-width: 900px) { .news__grid { grid-template-columns: minmax(0, 1fr); } }
.news-card {
  display: grid; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--r-m); overflow: hidden;
  border: 1px solid var(--line); transition: box-shadow .4s, transform .5s var(--ease-out);
}
.news-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,34,79,.45); }
.news-card--side { grid-template-columns: 180px minmax(0, 1fr); }
@media (max-width: 520px) { .news-card--side { grid-template-columns: 1fr; } }
.news-card__img { position: relative; overflow: hidden; min-height: 180px; }
.news-card--feature .news-card__img { aspect-ratio: 16 / 9; }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; font-size: .88rem; color: #3b4a5e;
  background:
    repeating-linear-gradient(135deg, rgba(0,58,138,.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #e3eaf3, #d3deeb);
  transition: transform 1s var(--ease-out);
}
.ph span { background: rgba(255,255,255,.8); padding: 6px 12px; border-radius: 8px; }
.news-card:hover .ph { transform: scale(1.06); }
.news-card__body { padding: 24px; display: grid; gap: 10px; align-content: start; }
.news-card__date { font-size: .85rem; color: var(--mist); }
.news-card__title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.news-card--feature .news-card__title { font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.2; }
.news-card__more { font-weight: 700; color: var(--navy); font-size: .92rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--navy); color: #fff;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px) clamp(96px, 10vw, 128px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
}
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }
.cta__text { display: grid; gap: 14px; max-width: 34em; position: relative; z-index: 2; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 2; }
.cta__waves { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; }
.cta__waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.cta__waves .w1 { fill: rgba(255,255,255,.08); animation: wave 14s linear infinite; }
.cta__waves .w2 { fill: rgba(92,200,194,.18); animation: wave 9s linear infinite reverse; bottom: -10px; }
.cta__waves .w3 { fill: rgba(0,20,46,.45); animation: wave 18s linear infinite; bottom: -24px; }
@keyframes wave { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--abyss); color: #c9d4e3; font-size: .95rem; margin-top: 64px; }
.site-footer__wave { position: absolute; left: 0; right: 0; top: -58px; height: 60px; width: 100%; }
.site-footer__wave path { fill: var(--abyss); }
.footer__grid { padding-block: 64px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h2 { font-size: 1rem; color: #fff; font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.footer__col a { color: #c9d4e3; text-decoration: none; justify-self: start; }
.footer__col a:hover { color: var(--amber); }
.footer__logo { width: 220px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--navy-line); display: grid; place-items: center; color: #fff;
  transition: background-color .25s, transform .3s var(--ease-out);
}
.socials a:hover { background: var(--amber); color: var(--ink); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid #12386e; }
.footer__bottom .container { padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.footer__bottom a { color: #c9d4e3; }

/* =====================================================================
   Jobs page
   ===================================================================== */
.page-hero { position: relative; background: var(--abyss); color: #fff; overflow: hidden; }
.page-hero__inner { position: relative; z-index: 2; padding-block: 56px 96px; display: grid; gap: 16px; }
.crumbs { font-size: .9rem; color: #9fb3cf; }
.crumbs a { color: #dce4ef; text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.page-hero__title { font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero__count { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #c9d4e3; }
.page-hero__count .flap { --tile-w: clamp(26px, 3.4vw, 40px); }
.page-hero .cta__waves { height: 80px; }

.jobs-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 48px 96px; }
@media (max-width: 960px) { .jobs-layout { grid-template-columns: minmax(0, 1fr); } }
.filters { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
.filters__group { display: grid; gap: 10px; }
.filters__label { font-size: .85rem; font-weight: 700; color: #3b4a5e; }
.seg { display: grid; gap: 8px; }
.seg button {
  min-height: 48px; text-align: left; padding: 0 16px; border-radius: 12px; border: 1.5px solid #cbd4e1; background: #fff; color: var(--ink);
  font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all .25s;
}
.seg button:hover { border-color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg button .n { font-size: .8rem; opacity: .75; font-variant-numeric: tabular-nums; }
.filters__help { background: var(--navy); color: #fff; border-radius: var(--r-m); padding: 24px; display: grid; gap: 10px; }
.filters__help p { color: #c9d4e3; font-size: .95rem; }
.filters__help .btn { justify-self: start; }
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .filters { position: fixed; inset: auto 0 0 0; z-index: 65; background: #fff; padding: 24px var(--gutter) 28px; border-radius: 24px 24px 0 0;
    max-height: 86vh; overflow: auto; box-shadow: 0 -20px 60px rgba(0,20,46,.35); transform: translateY(105%); transition: transform .5s var(--ease-out); }
  .filters.is-open { transform: none; }
  .filters__help { display: none; }
  .filters-toggle { display: inline-flex; }
}
.filters__close { justify-self: end; }
@media (min-width: 961px) { .filters__close { display: none !important; } }
.results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.results__bar strong { font-size: 1.05rem; }
.results__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.results__tools select { height: 44px; border: 1.5px solid #cbd4e1; border-radius: 10px; padding: 0 12px; font: inherit; color: var(--ink); background: #fff; }
.job-list { display: grid; gap: 14px; }
.job {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; background: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center;
  transition: box-shadow .35s, border-color .35s, transform .45s var(--ease-out), opacity .35s;
}
.job::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--amber); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.job:hover { border-color: #c4d2e4; box-shadow: 0 18px 40px -26px rgba(0,34,79,.45); }
.job:hover::before { transform: scaleY(1); }
.job.is-hiding { opacity: 0; transform: translateY(10px); }
.job__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job__title { margin-top: 10px; font-size: 1.25rem; font-weight: 800; }
.job__meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--mist); font-size: .92rem; }
.job__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; } }
.empty { border: 1.5px dashed #cbd4e1; border-radius: var(--r-m); padding: 48px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty p { color: var(--mist); }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,20,46,.5); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(560px, 100vw); background: #fff; overflow: auto;
  transform: translateX(104%); transition: transform .6s var(--ease-out), visibility 0s .6s; display: flex; flex-direction: column;
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease-out); box-shadow: -30px 0 60px -30px rgba(0,20,46,.5); }
.drawer__head { position: sticky; top: 0; background: var(--abyss); color: #fff; padding: 24px 28px; display: grid; gap: 10px; z-index: 1; }
.drawer__head .lb-btn { position: absolute; right: 18px; top: 18px; }
.drawer__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.6rem; padding-right: 56px; }
.drawer__body { padding: 28px; display: grid; gap: 26px; }
.drawer__body h3 { font-size: 1rem; margin-bottom: 8px; }
.drawer__body ul { margin: 0; padding-left: 20px; color: var(--mist); display: grid; gap: 6px; }
.drawer__foot { margin-top: auto; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 18px 28px; display: flex; gap: 10px; flex-wrap: wrap; }

/* =====================================================================
   Scroll-driven reveals (only when JS is on)
   ===================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-in-out); } /* clip the child: IO ignores fully clipped targets */
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }
/* split headings: each word rises from a mask */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi, 0) * 45ms); }
.split.is-in .w > span { transform: none; }

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="clip"] > *, .split .w > span, .js .hero [data-enter] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; }
  .marquee__row { flex-wrap: wrap; justify-content: center; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

/* Page hero waves end in white so the page flows into the content */
.page-hero .cta__waves .w3 { fill: #fff; }
.page-hero .cta__waves .w1 { fill: rgba(255,255,255,.06); }


/* =====================================================================
   Laravel pages (job detail, news, contact, pagination, errors)
   ===================================================================== */
.section-more { margin-top: 28px; text-align: center; }
.job__title a { color: inherit; text-decoration: none; }
.job__title a:hover { color: var(--navy); }
.page-hero .job__tags { margin-bottom: 4px; }
.board__empty { padding: 28px !important; color: #c9d4e3; }
.board__empty span { display: block; margin-bottom: 14px; max-width: 60ch; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.story__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pill img { height: 24px; width: auto; }
a.pill { text-decoration: none; }
a.pill:hover { border-color: var(--navy); color: var(--navy); }

.ph--brand {
  background:
    radial-gradient(circle at 20% 20%, rgba(92,200,194,.25), transparent 50%),
    linear-gradient(135deg, var(--navy), var(--abyss));
}
.ph--brand img { width: 120px; opacity: .55; }
.news-card__img > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1s var(--ease-out); }
.news-card:hover .news-card__img > img { transform: scale(1.06); }
.news-card--grid .news-card__img { aspect-ratio: 16 / 10; min-height: 0; }
.news-card__excerpt { color: var(--mist); font-size: .95rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }

.pager { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager__btn { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #cbd4e1; display: inline-grid; place-items: center; color: var(--ink); text-decoration: none; font-weight: 700; }
.pager__btn:hover { border-color: var(--ink); color: var(--ink); }
.pager__btn.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager__btn.is-disabled { opacity: .4; }
.pager__dots { align-self: center; padding: 0 4px; }

.prose { font-size: 1.05rem; line-height: 1.75; max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.45rem; line-height: 1.25; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.prose li::marker { color: var(--amber-text); }
.prose a { color: var(--navy); }

.job-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-block: 48px 88px; align-items: start; }
.job-detail__main { display: grid; gap: 40px; }
.apply-card { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; display: grid; gap: 12px; background: #fff; box-shadow: 0 24px 50px -36px rgba(0,34,79,.45); }
.facts-list { margin: 0 0 8px; display: grid; gap: 12px; }
.facts-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: .95rem; }
.facts-list dt { color: var(--mist); }
.facts-list dd { margin: 0; font-weight: 700; }
.notice { border-radius: 14px; padding: 16px 18px; background: #fff3dc; color: #5c3d00; }
.notice a { font-weight: 700; color: inherit; }
@media (max-width: 900px) { .job-detail { grid-template-columns: minmax(0, 1fr); } .apply-card { position: static; } }

.article { padding-block: 48px 88px; display: grid; gap: 28px; justify-items: start; }
.article__cover { margin: 0; width: 100%; border-radius: var(--r-l); overflow: hidden; }
.article__cover img { width: 100%; max-height: 560px; object-fit: cover; }
.article__cover figcaption { padding: 10px 4px; font-size: .88rem; color: var(--mist); }
.article__lead { font-size: 1.25rem; line-height: 1.6; max-width: 62ch; color: var(--ink); font-weight: 500; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; padding-block: 48px 88px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-info { display: grid; gap: 22px; }
.contact-info__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.contact-info__item > svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: #e8f0fa; color: var(--navy); }
.contact-info__item p { color: var(--mist); }
.contact-info__item a { color: var(--ink); }
.form-card { border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); background: #fff; box-shadow: 0 30px 60px -44px rgba(0,34,79,.5); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.form__label { font-size: .8rem; font-weight: 700; color: #3b4a5e; margin-bottom: 8px; }
.field textarea { border: 1.5px solid #cbd4e1; border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); resize: vertical; width: 100%; }
.field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0,58,138,.12); }
.field input[type="file"] { height: auto; padding: 12px; background: var(--foam); border-style: dashed; }
.field__error { color: #b42318; font-size: .85rem; font-weight: 600; }
.seg-radio { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg-radio legend { padding: 0; width: 100%; }
.seg-radio label { cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #cbd4e1; font-weight: 600; }
.seg-radio input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg-radio input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--mist); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; display: grid; gap: 4px; }
.alert--ok { background: #e7f6ee; color: #0f5132; }
.alert--error { background: #fdecea; color: #8a1c13; }
.form .btn { justify-self: start; }

.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--abyss); color: #fff; padding: 24px; }
.error-box { text-align: center; display: grid; gap: 14px; justify-items: center; max-width: 520px; }
.error-box__code { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--amber); }
.error-box h1 { font-size: 1.6rem; }
.error-box p { color: #c9d4e3; }
