/* Coral Shipping Services LLP */

:root {
  --navy: #262877;
  --navy-deep: #17194d;
  --sea: #0a6fae;
  --sky: #0088cc;
  --cyan: #5ac8ee;
  --indigo: #2e3192;
  --sea-light: #8fd3f2;
  --coral: #0a7bc0;
  --coral-dark: #0866a3;
  --page: #eef5fb;
  --white: #ffffff;
  --ink: #1b1d4d;
  --muted: #555c7f;
  --line: #d5e2ef;

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 3vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --r-xl: clamp(20px, 2.4vw, 32px);
  --r-lg: 20px;
  --r-md: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Pills (buttons) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.pill.small { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.pill-white { background: var(--white); color: var(--navy); }
.pill-white:hover { background: #e4ecf6; }
.pill-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.pill-glass:hover { background: rgba(255,255,255,.22); }
.pill-coral { background: var(--coral); color: #fff; }
.pill-coral:hover { background: var(--coral-dark); }

/* ---------- Hero ---------- */
.hero { padding: 16px; }
.hero-card {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  min-height: min(860px, calc(100svh - 32px));
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  background: var(--navy);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,22,70,.55) 0%, rgba(20,22,70,.05) 35%, rgba(20,22,70,.1) 60%, rgba(20,22,70,.7) 100%),
    linear-gradient(90deg, rgba(20,22,70,.45) 0%, rgba(20,22,70,0) 55%);
}
.site-header, .hero-content { position: relative; z-index: 1; }
.site-header { z-index: 3; }

.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px clamp(20px, 3.5vw, 44px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.45rem; font-weight: 800; font-variation-settings: "wdth" 112; }
.brand-sub { font-size: .74rem; opacity: .85; }

.site-nav { display: flex; gap: 8px; }
.site-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background-color .15s;
}
.site-nav a:hover { background: rgba(255,255,255,.16); }
.header-cta { margin-left: 8px; min-height: 42px; padding: 0 20px; font-size: .92rem; }

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 3.5vw, 44px) clamp(24px, 3.5vw, 44px);
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.025em;
  max-width: 10ch;
}
.hero-sub { margin-top: 18px; max-width: 40ch; font-size: 1.05rem; color: rgba(255,255,255,.88); }
.hero-chip {
  flex: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: .92rem;
}
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-cta-block p { max-width: 46ch; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.scroll-down {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  transition: background-color .15s;
}
.scroll-down:hover { background: rgba(255,255,255,.16); }
.scroll-down svg { width: 24px; height: 24px; }

/* Single orchestrated moment: hero copy settles in on load */
.js .hero-top, .js .hero-bottom { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-bottom { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Section headings ---------- */
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--navy);
}
.section-title.center { text-align: center; }

/* ---------- About / feature ---------- */
.about { padding: var(--section) 0 0; }
.feature-card {
  position: relative;
  margin-top: clamp(32px, 4vw, 56px);
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: clamp(420px, 48vw, 600px);
  color: #fff;
  background: var(--navy);
}
.feature-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(20,22,70,.15) 30%, rgba(20,22,70,.75) 100%);
}
.feature-note {
  position: absolute;
  z-index: 1;
  top: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  width: min(380px, calc(100% - 40px));
  padding: 22px;
  border-radius: var(--r-lg);
  background: rgba(23,25,77,.45);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
}
.feature-note h3 { font-size: 1.25rem; font-weight: 600; }
.feature-note p { margin: 8px 0 16px; font-size: .95rem; color: rgba(255,255,255,.88); }
.feature-statement {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  max-width: 14ch;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
}

/* ---------- Services bento ---------- */
.services { padding: var(--section) 0 0; }
.bento {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  grid-column: span 2;
  min-height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.tile-wide { grid-column: span 3; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.03); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,70,0) 40%, rgba(20,22,70,.82) 100%);
}
.tile-text { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; }
.tile-text h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
.tile-text p { margin-top: 4px; font-size: .93rem; color: rgba(255,255,255,.86); max-width: 44ch; }

/* ---------- Process ---------- */
.process { padding: var(--section) 0 0; }
.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 18px 22px;
}
.step:nth-child(even) { margin-top: 96px; }
/* dashed connector to the next card */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 18px;
  height: 96px;
  border-top: 2px dashed #a9bbd1;
  border-right: 2px dashed #a9bbd1;
}
.step:nth-child(even):not(:last-child)::after {
  top: auto;
  bottom: 50%;
  border-top: 0;
  border-bottom: 2px dashed #a9bbd1;
  height: 96px;
}
.step-no { font-size: .85rem; font-weight: 700; color: var(--coral); }
.step h3 { margin-top: 6px; font-size: 1.12rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.step p { margin-top: 6px; font-size: .93rem; color: var(--muted); }
.step-feature { background: var(--navy); border-color: var(--navy); }
.step-feature h3 { color: #fff; }
.step-feature p { color: rgba(255,255,255,.8); }
.step-feature .step-no { color: #5ac8ee; }

/* ---------- Why Coral ---------- */
.why { padding: var(--section) 0 0; }
.why-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 56px);
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4.5vw, 56px);
}
.why-intro h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.checks { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.why-cell { padding: 24px 0 24px 28px; border-left: 1px solid rgba(255,255,255,.16); }
.why-cell:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
.why-cell dt { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.why-cell dd { margin-top: 10px; font-size: .93rem; color: rgba(255,255,255,.75); max-width: 34ch; }
.why-cell dd strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* ---------- Enquiry ---------- */
.enquire { padding: var(--section) 0; }
.enquire-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4.5vw, 56px);
}
.contact-side > p { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.person { margin-top: 32px; padding: 22px; border-radius: var(--r-md); background: var(--page); }
.person-name { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
.person-role { color: var(--muted); font-size: .95rem; }
.contact-lines { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 6px; }
.contact-lines a { color: var(--sea); font-weight: 600; text-underline-offset: 4px; }

.enquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--page);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 11px 14px;
  min-height: 48px;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(31,95,168,.2);
}
.field [aria-invalid="true"] { border-color: var(--coral); background: #fff; }
.form-error { grid-column: 1 / -1; color: var(--coral-dark); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { color: var(--muted); font-size: .9rem; }
.form-success {
  grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: 14px;
  background: #e8f6ee; color: #14532d; font-weight: 600; outline: none;
}
.form-error a, .form-success a { color: inherit; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form { position: relative; }
.enquiry-form button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 16px; }
.footer-card {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-name { color: #fff; font-weight: 700; font-size: 1.15rem; }
.footer-tag { color: #5ac8ee; font-style: italic; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav a { padding: 8px 12px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(even) { margin-top: 0; }
  .step::after { display: none; }
  .step:last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: var(--r-lg);
    background: rgba(23,25,77,.92);
    backdrop-filter: blur(10px);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-color: transparent; padding: 12px 14px; font-size: 1rem; }
  .why-panel, .enquire-card { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile-wide { grid-column: span 1; }
  .tile:nth-child(1), .tile:nth-child(4) { grid-column: 1 / -1; }
  .tile:nth-child(5), .tile:nth-child(6) { grid-column: span 1; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero { padding: 8px; }
  .hero-card { min-height: calc(100svh - 16px); }
  .hero-card::after { background: linear-gradient(180deg, rgba(20,22,70,.72) 0%, rgba(20,22,70,.45) 45%, rgba(20,22,70,.8) 100%); }
  .site-nav { top: 72px; background: rgba(23,25,77,.97); }
  .hero-top { flex-direction: column; }
  .hero-chip { order: -1; }
  .scroll-down { display: none; }
  .hero-actions .pill { flex: 1 1 100%; }
  .feature-card { min-height: 0; display: flex; flex-direction: column; }
  .feature-card > img { position: relative; height: 260px; }
  .feature-card::after { display: none; }
  .feature-note, .feature-statement { position: static; width: auto; max-width: none; }
  .feature-statement { order: -1; padding: 24px 20px 0; font-size: 1.7rem; }
  .feature-note { margin: 0; border: 0; border-radius: 0; background: var(--navy); backdrop-filter: none; padding: 16px 20px 24px; }
  .feature-card > img { order: 1; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-wide, .tile:nth-child(n) { grid-column: 1 / -1; min-height: 240px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-cell { padding: 20px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .why-cell:last-child { border-bottom: 0; }
  .enquiry-form { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-top, .js .hero-bottom { animation: none; }
  .tile img { transition: none; }
}

/* =========================================================
   Live effects
   ========================================================= */

/* ---------- Voyage progress (top of screen) ---------- */
.voyage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.voyage.is-visible { opacity: 1; }
.voyage-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 4px;
  background: rgba(38,40,119,.15);
}
.voyage-fill {
  height: 100%;
  width: 100%;
  background: var(--coral);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}
.voyage-ship {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 36px;
  height: 18px;
  transform: translateX(calc(var(--p, 0) * (100vw - 40px)));
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}

/* ---------- Hero video ---------- */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.is-playing { opacity: 1; }
.hero-controls { display: flex; align-items: center; gap: 12px; }
.video-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { background: rgba(255,255,255,.2); }
.video-toggle svg { width: 20px; height: 20px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Port scene ---------- */
.port-scene {
  margin: clamp(32px, 4vw, 48px) 0 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #f3f7fb;
  border: 1px solid var(--line);
  position: relative;
}
.scene-svg { width: 100%; height: auto; }
.scene-caption {
  position: absolute;
  left: 16px;
  top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 1px 0 rgba(38,40,119,.08);
}
.waves { animation: waves 6s linear infinite; }
@keyframes waves { to { transform: translateX(-100px); } }
.ship-bob { animation: bob 3.2s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 50% { transform: translateY(2px); } }

/* ---------- Lite mode: slow connections, data saver, low-memory devices ---------- */
html.lite .pill-glass,
html.lite .hero-chip,
html.lite .feature-note,
html.lite .site-nav { backdrop-filter: none; }
html.lite .waves,
html.lite .ship-bob { animation: none; }
html.lite .tile img { transition: none; }
html.lite .tile:hover img { transform: none; }

@media (max-width: 640px) {
  .scene-caption { position: static; display: block; border-radius: 0; box-shadow: none; padding: 10px 14px; font-size: .88rem; background: var(--white); border-top: 1px solid var(--line); }
  .hero-controls .video-toggle { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .waves, .ship-bob { animation: none; }
  .voyage-ship { transition: none; }
  .hero-video { transition: none; }
}

/* ---------- Port scene player: controls, restore, floating window ---------- */
.scene-slot { margin-top: clamp(32px, 4vw, 48px); }
.scene-slot .port-scene { margin-top: 0; }
.port-scene[hidden] { display: none; }
.scene-controls {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}
.scene-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(38,40,119,.12);
}
.scene-btn:hover { background: #fff; border-color: #b9c8d8; }
.scene-btn svg { width: 18px; height: 18px; }
.scene-pause .i-play { display: none; }
.scene-pause[aria-pressed="true"] .i-play { display: block; }
.scene-pause[aria-pressed="true"] .i-pause { display: none; }
.scene-restore { border: 1px solid var(--line); }
.scene-restore[hidden] { display: none; }
.scene-svg { transition: opacity .2s linear; }

.port-scene.is-docked {
  position: fixed;
  z-index: 55;
  right: 20px;
  bottom: 20px;
  width: 380px;
  margin: 0;
  box-shadow: 0 12px 32px rgba(23,25,77,.28);
  animation: dock-in .35s cubic-bezier(.2,.7,.2,1);
}
.port-scene.is-docked .scene-caption {
  position: static;
  display: block;
  border-radius: 0;
  box-shadow: none;
  padding: 8px 12px;
  font-size: .82rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.port-scene.is-docked .scene-controls { top: 6px; right: 6px; gap: 6px; }
.port-scene.is-docked .scene-btn { width: 32px; height: 32px; }
.port-scene.is-docked .scene-btn svg { width: 15px; height: 15px; }
@keyframes dock-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  .port-scene.is-docked { animation: none; }
  .scene-svg { transition: none; }
}

/* =========================================================
   Redesign: interaction layer
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.2,.75,.25,1);
  --ease-spring: cubic-bezier(.34,1.4,.64,1);
  --dur-1: .18s;
  --dur-2: .32s;
  --dur-3: .45s;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
a, button, .chip { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Press feedback on all pills */
.pill { transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform var(--dur-1) var(--ease-out); }
.pill:active { transform: scale(.97); }

/* ---------- Sticky bar ---------- */
.sticky-bar {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 58;
  width: min(1100px, calc(100% - 20px));
  transform: translate(-50%, -140%);
  transition: transform var(--dur-3) var(--ease-out);
}
.sticky-bar.is-shown { transform: translate(-50%, 0); }
.sticky-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(38,40,119,.08);
  box-shadow: 0 8px 28px rgba(23,25,77,.14);
  backdrop-filter: saturate(1.4) blur(12px);
}
.sticky-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; font-variation-settings: "wdth" 112; margin-right: auto; }
.sticky-brand svg { width: 32px; height: 32px; }
.sticky-nav { display: flex; gap: 2px; }
.sticky-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: .92rem;
  transition: color var(--dur-1), background-color var(--dur-1);
}
.sticky-nav a:hover { color: var(--navy); background: var(--page); }
.sticky-nav a.is-active { color: var(--navy); background: #e3ebf5; font-weight: 600; }
.sticky-cta { min-height: 42px; padding: 0 20px; font-size: .92rem; }
html.lite .sticky-inner { backdrop-filter: none; background: #fff; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  z-index: 57;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #1a8f4c;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(16,94,49,.35);
  transform: translateY(140%);
  transition: transform var(--dur-3) var(--ease-spring), background-color var(--dur-1);
}
.wa-float.is-shown { transform: none; }
.wa-float:hover { background: #157a40; }
.wa-float svg { width: 28px; height: 28px; flex: none; }

/* ---------- Hero: cycling cargo word + parallax ---------- */
.rotator { display: inline-block; position: relative; vertical-align: bottom; }
.rotator-word {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid var(--coral);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.rotator-word.is-out { opacity: 0; transform: translateY(-40%); }
.rotator-word.is-in { opacity: 0; transform: translateY(40%); transition: none; }
.hero-img, .hero-video { will-change: transform; }

/* ---------- Port ticker ---------- */
.ticker {
  position: relative;
  margin-top: var(--section);
  padding: 22px 0;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.ticker-row { overflow: hidden; white-space: nowrap; }
.ticker-row + .ticker-row { margin-top: 10px; }
.ticker-track { display: inline-flex; will-change: transform; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.01em;
  font-variation-settings: "wdth" 80;
  padding: 0 .55em;
}
.ticker-track span::after {
  content: "";
  width: .32em;
  height: .32em;
  margin-left: 1.1em;
  border-radius: 50%;
  background: var(--coral);
}
.ticker-row-alt .ticker-track span { color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.75); }
.ticker-row-alt .ticker-track span::after { background: var(--sea-light); }
.ticker-pause {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(23,25,77,.85);
  color: #fff;
  cursor: pointer;
}
.ticker-pause svg { width: 16px; height: 16px; }
.ticker-pause .i-play { display: none; }
.ticker-pause[aria-pressed="true"] .i-play { display: block; }
.ticker-pause[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Scroll reveals ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
html.lite .reveal { transform: none !important; transition-duration: .3s !important; }

/* Service tiles: image drifts inside the card while scrolling */
.tile img { inset: -8% 0 auto 0; height: 116%; transform: translateY(var(--shift, 0px)); transition: transform .1s linear; }
.tile:hover img { transform: translateY(var(--shift, 0px)) scale(1.04); transition: transform .5s ease; }
.tile-text h3 { transition: transform var(--dur-2) var(--ease-out); }
.tile:hover .tile-text h3 { transform: translateY(-3px); }

/* ---------- Process steps light up ---------- */
.step { transition: border-color var(--dur-3), box-shadow var(--dur-3), background-color var(--dur-3); }
.step:not(.step-feature).is-lit { border-color: var(--coral); box-shadow: 0 10px 24px rgba(0,136,204,.12); }
.step.is-lit .step-no { color: var(--coral); }
.step-feature.is-lit .step-no { color: #5ac8ee; }
.step:not(.is-lit) .step-no { color: #8795aa; }
.step-feature:not(.is-lit) { background: var(--white); border-color: var(--line); }
.step-feature:not(.is-lit) h3 { color: var(--navy); }
.step-feature:not(.is-lit) p { color: var(--muted); }
.step:not(:last-child)::after { transition: border-color var(--dur-3); }
.step.is-lit:not(:last-child)::after { border-color: var(--coral); }

/* ---------- Why Coral ticks fill in ---------- */
.js .checks li::before { transform: scale(0); transition: transform .4s var(--ease-spring); transition-delay: var(--d, 0s); }
.js .checks.is-in li::before { transform: scale(1); }

/* ---------- Quote builder ---------- */
.chips-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips-field legend { font-weight: 600; font-size: .9rem; color: var(--navy); padding: 0; margin-bottom: 8px; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 78px;
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--page);
  border: 1.5px solid transparent;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.chip-face svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover .chip-face { border-color: #b9c8d8; }
.chip input:checked + .chip-face { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:active + .chip-face { transform: scale(.96); }
.chip input:focus-visible + .chip-face { outline: 3px solid var(--coral); outline-offset: 2px; }

/* Live shipping label */
.ship-label {
  margin-top: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px dashed #b9c8d8;
  padding: 18px 18px 14px;
  color: var(--ink);
  transition: border-color var(--dur-3), box-shadow var(--dur-3);
}
.ship-label.is-ready { border-style: solid; border-color: var(--coral); box-shadow: 0 12px 30px rgba(0,136,204,.14); }
.label-top { display: flex; justify-content: space-between; align-items: center; }
.label-brand { font-weight: 800; font-size: .78rem; letter-spacing: .08em; color: var(--navy); }
.label-status {
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--page);
  color: var(--muted);
  transition: background-color var(--dur-2), color var(--dur-2);
}
.ship-label.is-ready .label-status { background: var(--coral); color: #fff; }
.label-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; margin-top: 14px; }
.label-route .to { text-align: right; }
.label-ship { width: 44px; height: 22px; color: var(--navy); margin-bottom: 4px; }
.ship-label.has-route .label-ship { animation: sail-bob 2.4s ease-in-out infinite; }
@keyframes sail-bob { 50% { transform: translateX(4px) translateY(-1px); } }
.label-k { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.label-v { display: block; font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.label-v.is-empty { color: #8f9db0; font-weight: 600; }
.label-route .label-v { font-size: 1.3rem; }
.label-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.label-cargo { margin-top: 12px; }
.label-cargo .label-v { font-size: .95rem; font-weight: 600; }
.label-barcode {
  margin-top: 14px;
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px, var(--navy) 8px 11px, transparent 11px 12px);
  opacity: .8;
  border-radius: 2px;
}
.label-v.flash { animation: flash .5s var(--ease-out); }
@keyframes flash { from { color: var(--coral); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sticky-nav { display: none; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
}
@media (max-width: 640px) {
  .sticky-bar { top: 8px; }
  .sticky-inner { padding: 6px 6px 6px 12px; }
  .wa-float { left: auto; right: 16px; bottom: 16px; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticker { padding: 16px 0 60px; }
  .ticker-pause { top: auto; bottom: 10px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .checks li::before { transform: none; transition: none; }
  .ship-label.has-route .label-ship { animation: none; }
  .sticky-bar, .wa-float { transition: none; }
  .tile img { transform: none !important; }
}

/* Leave room for the sticky bar when jumping to a section */
section[id] { scroll-margin-top: 84px; }

/* Phones and tablets: show the live label right after the form so it is visible while typing */
@media (max-width: 960px) {
  .contact-side { display: contents; }
  .contact-side > h2 { order: 1; }
  .contact-side > p { order: 2; margin-top: -12px; }
  .enquiry-form { order: 3; }
  .ship-label { order: 4; margin-top: 0; }
  .person { order: 5; margin-top: 0; }
}

/* Tagline beside the company name */
.brand-tag { font-size: .82rem; font-style: italic; font-weight: 600; color: #8fd3f2; margin-top: 2px; }
.person-tag { margin-top: 4px; font-style: italic; font-weight: 600; color: var(--coral-dark); font-size: 1rem; }
@media (max-width: 640px) { .brand-tag { font-size: .72rem; } }

/* ---------- Tagline: "Moving Possibilities, Delivering Trust" ---------- */
.tagline { font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: .01em; line-height: 1.15; }
.tagline .tg-a, .tagline .tg-b { white-space: nowrap; }
.brand-tag.tagline { font-size: 1.02rem; margin-top: 3px; }
.brand-tag .tg-a { color: rgba(255,255,255,.92); }
.brand-tag .tg-b { color: #8fd3f2; }
.tagline-ruled { display: flex; align-items: center; flex-wrap: wrap; column-gap: .3em; }
.tagline-ruled::before, .tagline-ruled::after { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .7; border-radius: 2px; }
.tagline-ruled::before { margin-right: .45em; }
.tagline-ruled::after { margin-left: .45em; }
.person-tag.tagline { font-size: 1.45rem; margin-top: 6px; color: var(--coral); }
.person-tag .tg-a { color: var(--navy); }
.person-tag .tg-b { color: var(--coral-dark); }
.footer-tag.tagline { font-size: 1.45rem; margin-top: 6px; color: #5ac8ee; font-style: italic; }
.footer-tag .tg-a { color: #fff; }
.footer-tag .tg-b { color: #5ac8ee; }
@media (max-width: 640px) {
  .brand-tag.tagline { font-size: .9rem; }
  .person-tag.tagline, .footer-tag.tagline { font-size: 1.3rem; }
}
@media (max-width: 400px) { .tagline-ruled::before, .tagline-ruled::after { display: none; } }
.person-tag.tagline { font-size: clamp(1.15rem, 1.7vw, 1.35rem); margin-top: 8px; padding-left: 12px; border-left: 2.5px solid var(--coral); }
.person-tag .tg-a, .person-tag .tg-b { white-space: normal; }
.footer-tag.tagline { padding-left: 12px; border-left: 2.5px solid var(--coral); margin-top: 8px; }

/* =========================================================
   Logo theme: indigo + sky blue from the Coral logo
   ========================================================= */
:root { --display: "Outfit", "Archivo", "Segoe UI", system-ui, sans-serif; }

/* Headings take the geometric, round-lettered feel of the "Coral" wordmark */
h1, h2, h3, .section-title, .promise-title, .why-cell dt, .why-intro h2,
.tile-text h3, .step h3, .feature-statement, .feature-note h3 {
  font-family: var(--display);
  letter-spacing: -.02em;
}
.hero h1 { font-weight: 700; letter-spacing: -.035em; }
.section-title { font-weight: 700; }

/* Real logo on a white plate (keeps the official colours on dark backgrounds) */
.brand { gap: 0; }
.logo-plate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px 9px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(20,22,70,.18);
}
.logo-plate img { display: block; height: 66px; width: auto; }
.brand-tag.tagline { font-size: 1.05rem; margin-top: 0; line-height: 1; }
.brand-tag .tg-a { color: var(--navy); }
.brand-tag .tg-b { color: var(--sky); }

/* Sticky bar mark */
.sticky-brand img { display: block; height: 30px; width: auto; }

/* Contact card logo */
.person-name img { display: block; width: min(280px, 100%); height: auto; }
.person-tag .tg-a { color: var(--navy); }
.person-tag .tg-b { color: var(--sky); }
.person-tag.tagline { border-left-color: var(--sky); }

/* Footer logo plate */
.logo-plate-footer { padding: 12px 16px; }
.logo-plate-footer img { height: 54px; }
.footer-tag .tg-a { color: #fff; }
.footer-tag .tg-b { color: var(--cyan); }
.footer-tag.tagline { border-left-color: var(--cyan); margin-top: 14px; }

/* Accents that sit on dark backgrounds use the logo's light cyan */
.ticker-track span::after { background: var(--cyan); }
.ticker-row-alt .ticker-track span::after { background: var(--sky); }
.step-feature .step-no, .step-feature.is-lit .step-no { color: var(--cyan); }
.rotator-word { border-bottom-color: var(--cyan); }
.voyage-fill { background: linear-gradient(90deg, var(--sky), var(--cyan)); }

/* Page background: the palest wave blue from the logo */
body { background: var(--page); }

@media (max-width: 960px) {
  .logo-plate img { height: 52px; }
}
@media (max-width: 640px) {
  .logo-plate { padding: 8px 12px 7px; border-radius: 14px; }
  .logo-plate img { height: 40px; }
  .brand-tag.tagline { font-size: .8rem; }
  .sticky-brand img { height: 26px; }
  .logo-plate-footer img { height: 44px; }
}
@media (max-width: 960px) { .site-nav, .site-nav.is-open { top: calc(100% - 6px); } }

/* ---------- Hero: logo sits directly on the video ---------- */
.hero-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero-logo img {
  display: block;
  height: 78px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(10,12,40,.55));
}
.hero-logo .brand-tag.tagline { font-size: 1.1rem; padding-left: 4px; text-shadow: 0 1px 4px rgba(10,12,40,.6); }
.hero-logo .brand-tag .tg-a { color: #fff; }
.hero-logo .brand-tag .tg-b { color: var(--cyan); }

/* Lighter overlay: darker only at the top (behind logo and menu), left (behind text) and bottom */
.hero-card::after {
  background:
    linear-gradient(180deg, rgba(14,16,58,.62) 0%, rgba(14,16,58,.12) 26%, rgba(14,16,58,0) 50%, rgba(14,16,58,.55) 100%),
    linear-gradient(90deg, rgba(14,16,58,.5) 0%, rgba(14,16,58,.12) 45%, rgba(14,16,58,0) 70%);
}

@media (max-width: 960px) { .hero-logo img { height: 62px; } }
@media (max-width: 640px) {
  .hero-logo img { height: 48px; }
  .hero-logo .brand-tag.tagline { font-size: .86rem; }
  .hero-card::after {
    background: linear-gradient(180deg, rgba(14,16,58,.7) 0%, rgba(14,16,58,.3) 30%, rgba(14,16,58,.35) 55%, rgba(14,16,58,.78) 100%);
  }
}

/* =========================================================
   Coral cursor (mouse) and floating coral (long press on touch)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("logo/coral-cursor-sm.png") 9 2, auto; }
  a, button, .pill, .chip, .chip input, label, select,
  .scene-btn, .ticker-pause, .video-toggle, .nav-toggle, .scroll-down, .wa-float {
    cursor: url("logo/coral-cursor-pointer-sm.png") 9 2, pointer !important;
  }
  input:not([type="radio"]), textarea { cursor: text !important; }
}

.coral-float {
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  pointer-events: none;
  will-change: transform, opacity;
  animation: coral-rise 2.4s cubic-bezier(.25,.7,.3,1) forwards;
  filter: drop-shadow(0 6px 10px rgba(20,22,70,.25));
}
.coral-float img { width: 100%; height: 100%; display: block; animation: coral-sway 1.2s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes coral-rise {
  0%   { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; }
  12%  { transform: translate(var(--x), var(--y)) scale(1.08); opacity: 1; }
  22%  { transform: translate(var(--x), var(--y)) scale(1); }
  100% { transform: translate(var(--x), calc(var(--y) - 170px)) scale(.9); opacity: 0; }
}
@keyframes coral-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

.coral-bubble {
  position: fixed;
  z-index: 199;
  left: 0;
  top: 0;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  border: 1.5px solid rgba(0,136,204,.75);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(90,200,238,.25) 60%, transparent 70%);
  pointer-events: none;
  animation: bubble-rise var(--d) ease-out forwards;
  animation-delay: var(--delay);
  opacity: 0;
}
@keyframes bubble-rise {
  0%   { transform: translate(var(--x), var(--y)) scale(.4); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) - var(--rise))) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .coral-float { animation: coral-still 1.4s ease forwards; }
  .coral-float img { animation: none; }
  @keyframes coral-still {
    0% { transform: translate(var(--x), var(--y)); opacity: 0; }
    20%, 70% { transform: translate(var(--x), var(--y)); opacity: 1; }
    100% { transform: translate(var(--x), var(--y)); opacity: 0; }
  }
  .coral-bubble { display: none; }
}

/* ---------- Live coral cursor (mouse only, added by main.js) ---------- */
html.coral-live, html.coral-live * { cursor: none !important; }
html.coral-live input:not([type="radio"]):not([type="checkbox"]),
html.coral-live textarea { cursor: text !important; }

.coral-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 22px;
  height: 22px;
  pointer-events: none;
  /* --x/--y: pointer position, --r: sway angle, --s: scale */
  transform: translate(calc(var(--x, -100px) - 10px), calc(var(--y, -100px) - 2px)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transform-origin: 10px 2px;          /* the tip of the top branch = the click point */
  will-change: transform;
  transition: opacity .2s ease, filter .25s ease;
  filter: drop-shadow(0 2px 3px rgba(20,22,70,.35));
}
.coral-cursor img { width: 100%; height: 100%; display: block; }
.coral-cursor .cc-hot { opacity: 0; position: absolute; inset: 0; transition: opacity .2s ease; }
.coral-cursor.is-hot .cc-hot { opacity: 1; }
.coral-cursor.is-hot { filter: drop-shadow(0 0 6px rgba(90,200,238,.9)) drop-shadow(0 2px 3px rgba(20,22,70,.35)); }
.coral-cursor.is-hidden { opacity: 0; }

/* Small bubbles left behind while the mouse moves */
.cursor-bubble {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9998;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  border: 1.2px solid rgba(0,136,204,.7);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(90,200,238,.3) 60%, transparent 72%);
  pointer-events: none;
  animation: cursor-bubble var(--d) ease-out forwards;
}
@keyframes cursor-bubble {
  0%   { transform: translate(var(--x), var(--y)) scale(.3); opacity: .9; }
  100% { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) - var(--rise))) scale(1); opacity: 0; }
}

/* ---------- Port ticker: cleaner type for both rows ---------- */
.ticker-track span {
  font-family: var(--display);
  font-variation-settings: normal;
  font-weight: 700;
  letter-spacing: -.01em;
}
/* Second row: solid light-cyan text instead of the thin outline */
.ticker-row-alt .ticker-track span {
  color: var(--sea-light);
  -webkit-text-stroke: 0;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
}
.ticker-row-alt .ticker-track span::after { background: rgba(255,255,255,.45); }

/* Port ticker: soft fade at both edges so names drift in and out (no visible start or end) */
.ticker-row {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.ticker-track span { white-space: nowrap; }

/* NVOCC: full-width lead card in the services grid */
.tile.tile-full { grid-column: 1 / -1; min-height: 320px; }
.tile-full .tile-text p { max-width: 62ch; }
@media (max-width: 960px) { .tile.tile-full { grid-column: 1 / -1; } }
@media (max-width: 960px) and (min-width: 641px) {
  .bento .tile { grid-column: span 1; }
  .bento .tile:nth-child(1), .bento .tile:nth-child(2), .bento .tile:nth-child(5) { grid-column: 1 / -1; }
}

/* Liner / NVOCC lead card: longer copy */
.tile-full .tile-text .tile-lead { margin-top: 2px; font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: #fff; }
.tile-full .tile-text p + p { margin-top: 6px; }
.bento .tile.tile-full:first-child { min-height: 380px; }
@media (max-width: 640px) {
  .bento .tile.tile-full:first-child { min-height: 470px; }
}

/* WhatsApp button: logo only, on every screen size */
.wa-float { width: 56px; padding: 0; justify-content: center; gap: 0; }
.wa-float .wa-label { display: none; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Port of loading picker ---------- */
.port-picker { position: relative; }
.port-picker input {
  padding-left: 42px;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555c7f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 18px;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.port-picker input[aria-expanded="true"] { background-color: #fff; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(0,136,204,.14); }
.port-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(38,40,119,.08);
  color: var(--navy);
  cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.port-clear:hover { background: rgba(38,40,119,.16); }
.port-clear:active { transform: translateY(-50%) scale(.9); }
.port-clear svg { width: 14px; height: 14px; }
.port-clear[hidden] { display: none; }

/* Dropdown panel */
.port-pop {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(20,22,70,.2), 0 2px 6px rgba(20,22,70,.06);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: 50% 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s;
}
.port-pop.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity .2s ease, transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s;
}

/* Category tabs */
.port-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 10px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f6f9fd, #fff);
}
.port-tabs::-webkit-scrollbar { display: none; }
.port-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .15s;
}
.port-tab b {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--page);
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
  transition: background-color .18s, color .18s;
}
.port-tab:hover { border-color: var(--sky); }
.port-tab:active { transform: scale(.95); }
.port-tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.port-tab[aria-pressed="true"] b { background: var(--cyan); color: var(--navy-deep); }
.port-tab:disabled { opacity: .45; cursor: default; }

/* Results */
.port-list {
  position: static;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c4d3e4 transparent;
}
.port-list::-webkit-scrollbar { width: 8px; }
.port-list::-webkit-scrollbar-thumb { background: #c4d3e4; border-radius: 8px; border: 2px solid #fff; }
.port-group { padding: 8px 10px 4px; font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.port-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .16s, transform .2s cubic-bezier(.2,.8,.2,1);
}
/* Results cascade in when the list opens or changes */
.port-pop.is-open .port-list:not(.is-settled) .port-opt {
  animation: port-in .32s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes port-in { from { opacity: 0; transform: translateY(6px); } }
.port-opt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--sky);
  transform: scaleY(0);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.port-opt[aria-selected="true"] { background: #eef6fd; transform: translateX(3px); }
.port-opt[aria-selected="true"]::before { transform: scaleY(1); }
.port-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.port-name { font-weight: 600; color: var(--navy); line-height: 1.2; }
.port-name mark { background: rgba(90,200,238,.38); color: inherit; border-radius: 4px; padding: 0 2px; }
.port-meta { font-size: .8rem; color: var(--muted); }
.port-type {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--page);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  transition: background-color .2s, filter .2s, transform .2s;
}
.port-opt[aria-selected="true"] .port-type { background-color: var(--navy); filter: none; transform: scale(1.05); }
.port-opt[aria-selected="true"] .port-type { background-blend-mode: normal; }
.port-type-S { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262877' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17h18l-2 4H5z'/%3E%3Cpath d='M6 17V9h12v8M10 9V5h4v4'/%3E%3C/svg%3E"); }
.port-type-I { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262877' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='11' rx='1'/%3E%3Cpath d='M7 7v11M11 7v11M15 7v11M19 7v11'/%3E%3C/svg%3E"); }
.port-type-A { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262877' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/%3E%3C/svg%3E"); }
.port-type-L { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262877' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17h4l2-3h6l2 3h4'/%3E%3Ccircle cx='7' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3Cpath d='M12 3v8M9 6h6'/%3E%3C/svg%3E"); }
/* White icons on the indigo tile when highlighted */
.port-opt[aria-selected="true"] .port-type-S { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17h18l-2 4H5z'/%3E%3Cpath d='M6 17V9h12v8M10 9V5h4v4'/%3E%3C/svg%3E"); }
.port-opt[aria-selected="true"] .port-type-I { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='11' rx='1'/%3E%3Cpath d='M7 7v11M11 7v11M15 7v11M19 7v11'/%3E%3C/svg%3E"); }
.port-opt[aria-selected="true"] .port-type-A { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/%3E%3C/svg%3E"); }
.port-opt[aria-selected="true"] .port-type-L { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17h4l2-3h6l2 3h4'/%3E%3Ccircle cx='7' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3Cpath d='M12 3v8M9 6h6'/%3E%3C/svg%3E"); }

/* Check mark on the port already chosen */
.port-check { flex: none; width: 22px; height: 22px; border-radius: 50%; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s cubic-bezier(.34,1.4,.64,1); }
.port-opt.is-chosen .port-check {
  opacity: 1;
  transform: none;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Empty state */
.port-empty { display: flex; align-items: center; gap: 12px; padding: 14px 12px; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.port-empty strong { color: var(--navy); }
.port-empty-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555c7f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Footer */
.port-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: #f8fafd;
  font-size: .74rem;
  color: var(--muted);
}
.port-foot kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 5px;
  margin-right: 2px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font: inherit;
  font-size: .7rem;
  text-align: center;
  color: var(--navy);
}
.port-count { font-weight: 600; color: var(--navy); }
.port-hint { margin-top: 4px; font-size: .8rem; color: var(--muted); }

@media (max-width: 640px) {
  .port-pop { min-width: 0; }
  .port-list { max-height: 50vh; }
  .port-opt { min-height: 58px; }
  .port-foot > span:first-child { display: none; }
}
@media (hover: none) { .port-foot > span:first-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .port-pop, .port-pop.is-open { transition: none; transform: none; }
  .port-pop.is-open .port-list:not(.is-settled) .port-opt { animation: none; }
  .port-opt, .port-opt[aria-selected="true"] { transition: none; transform: none; }
}
@media (min-width: 641px) { .port-pop { right: auto; width: max(100%, 420px); } }
.port-foot > span { white-space: nowrap; }

/* WhatsApp button in the usual bottom-right corner on every screen */
.wa-float { left: auto; right: 20px; }
@media (max-width: 640px) { .wa-float { right: 16px; } }

/* Our Objective: on its own line, set apart from the ticked points */
.why-objective { margin-top: 40px; position: relative; }
.why-objective::before {
  content: "";
  position: absolute;
  left: -3px;
  right: 0;
  top: -22px;
  height: 1px;
  background: rgba(255,255,255,.18);
}
.why-objective-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

/* Upright photos: keep the action in frame inside wide cards */
.tile img.img-customs { object-position: 50% 58%; }
.tile img.img-odc { object-position: 40% 60%; }

/* Keep the coral cursor visible above the loader */
.coral-cursor { z-index: 10002; }
.cursor-bubble { z-index: 10001; }

/* Why Coral: trade regions shown as tags */
.why-cell dt.why-regions { display: flex; flex-wrap: wrap; gap: 8px; font-size: 1rem; letter-spacing: 0; line-height: 1; }
.why-regions span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(143,211,242,.45);
  background: rgba(90,200,238,.12);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  white-space: nowrap;
}
.why-regions .why-regions-etc { background: transparent; border-style: dashed; color: var(--cyan); }
