/* ==========================================================================
   Paramount Logistics — design system

   Taken from the emblem: navy, white, and an oxide red held back for signals.
   Light by default, because that is where the mark lives; the dark theme is a
   token swap rather than a second stylesheet.

   Order: tokens, reset, primitives, layout, components, pages, motion.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */

/*
 * The palette is taken from the emblem: deep navy line-work, an oxide-red
 * waterline, white. Navy is the primary and does the work buttons and headings
 * used to do with a gradient; the red is rationed to the things that genuinely
 * signal — a live position, an exception, an alert — so it keeps its meaning.
 */

:root {
  color-scheme: light;

  /* Ground */
  --bg: #f2f5fa;
  --bg-2: #e6ebf3;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --panel-2: rgba(255, 255, 255, 0.94);
  --line: rgba(12, 31, 61, 0.13);
  --line-strong: rgba(12, 31, 61, 0.26);

  /* Ink */
  --ink: #0c1f3d;
  --ink-2: #44566f;
  --ink-3: #6e8098;

  /* Brand */
  --navy: #0c1f3d;
  --accent: #0c1f3d;
  --accent-2: #1a6ea8;
  --accent-ink: #ffffff;
  --signal: #a33a22;

  /* The one gradient left, and it only fills progress. */
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2));
  --grad-soft: rgba(26, 110, 168, 0.1);

  /* Status */
  --go: #1d7f5c;
  --wait: #9a6b14;
  --warn: #a8551b;
  --bad: #a33a22;
  --done: #1a6ea8;

  /* Vessel classes, soft enough to sit under type on a map */
  --v-container: #2f6fa8;
  --v-bulk: #96702f;
  --v-tanker: #9c4b3a;
  --v-reefer: #2f7f6e;
  --v-roro: #5b58a0;
  --v-general: #5c6f89;

  /* Shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow: 0 18px 44px -26px rgba(12, 31, 61, 0.42);
  --shadow-lift: 0 30px 70px -38px rgba(12, 31, 61, 0.5);
  /* The soft outer glow the search field and the drawer use. Present enough to
     find at a glance, dim enough not to look like a toy. */
  --glow: 0 0 0 1px rgba(26, 110, 168, 0.22), 0 10px 30px -14px rgba(12, 31, 61, 0.35);
  --glow-strong: 0 0 0 1px rgba(26, 110, 168, 0.5), 0 0 0 5px rgba(26, 110, 168, 0.12),
    0 14px 34px -16px rgba(12, 31, 61, 0.45);

  /* Rhythm */
  --gut: clamp(20px, 4vw, 56px);
  --section: clamp(64px, 8vw, 116px);
  --maxw: 1320px;
  --nav-h: 68px;

  /* Type: a grotesque for headings, a neutral workhorse for text, and a mono
     that keeps coordinates and tracking numbers unambiguous. */
  --display: 'Archivo', 'Helvetica Neue', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, 'SF Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* The dark theme is the same design at night: navy deepens into the ground, so
   the harbour blue takes over as the primary and the red brightens a shade to
   stay readable against it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #061020;
    --bg-2: #0a1830;
    --panel: rgba(17, 32, 57, 0.72);
    --panel-solid: #0e1d35;
    --panel-2: rgba(10, 22, 42, 0.9);
    --line: rgba(150, 178, 215, 0.16);
    --line-strong: rgba(150, 178, 215, 0.32);
    --ink: #e9eff9;
    --ink-2: #a7b8d0;
    --ink-3: #74869f;
    --accent: #2f86c8;
    --accent-2: #63aee2;
    --accent-ink: #04101f;
    --signal: #d4593c;
    --grad-soft: rgba(47, 134, 200, 0.16);
    --go: #3fbf8e;
    --wait: #d6a63f;
    --warn: #d98442;
    --bad: #d4593c;
    --done: #63aee2;
    --v-container: #6fb0e0;
    --v-bulk: #d7ad63;
    --v-tanker: #d08069;
    --v-reefer: #6fc0ae;
    --v-roro: #9b98d8;
    --v-general: #93a5bd;
    --shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.8);
    --shadow-lift: 0 34px 76px -36px rgba(0, 0, 0, 0.9);
    --glow: 0 0 0 1px rgba(99, 174, 226, 0.22), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --glow-strong: 0 0 0 1px rgba(99, 174, 226, 0.5), 0 0 0 5px rgba(99, 174, 226, 0.14),
      0 14px 34px -16px rgba(0, 0, 0, 0.8);
  }
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #061020;
  --bg-2: #0a1830;
  --panel: rgba(17, 32, 57, 0.72);
  --panel-solid: #0e1d35;
  --panel-2: rgba(10, 22, 42, 0.9);
  --line: rgba(150, 178, 215, 0.16);
  --line-strong: rgba(150, 178, 215, 0.32);
  --ink: #e9eff9;
  --ink-2: #a7b8d0;
  --ink-3: #74869f;
  --accent: #2f86c8;
  --accent-2: #63aee2;
  --accent-ink: #04101f;
  --signal: #d4593c;
  --grad-soft: rgba(47, 134, 200, 0.16);
  --go: #3fbf8e;
  --wait: #d6a63f;
  --warn: #d98442;
  --bad: #d4593c;
  --done: #63aee2;
  --v-container: #6fb0e0;
  --v-bulk: #d7ad63;
  --v-tanker: #d08069;
  --v-reefer: #6fc0ae;
  --v-roro: #9b98d8;
  --v-general: #93a5bd;
  --shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.8);
  --shadow-lift: 0 34px 76px -36px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(99, 174, 226, 0.22), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  --glow-strong: 0 0 0 1px rgba(99, 174, 226, 0.5), 0 0 0 5px rgba(99, 174, 226, 0.14),
    0 14px 34px -16px rgba(0, 0, 0, 0.8);
}

/* ------------------------------------------------------------------- reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

/* The UA's [hidden] rule is a bare element selector, so any class that sets
   `display` beats it. Several here do (panels, gates, the chat window), and
   the result is markup that renders while the script believes it is hidden. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.018em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip:focus { left: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -------------------------------------------------------------- primitives */

.wrap {
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
}

.section { padding-block: var(--section); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent-2);
}

h1, .h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2, .h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3, .h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  color: var(--ink-2);
  max-width: 62ch;
  line-height: 1.7;
}

.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }

/* Was gradient text. A heading is the last place a gradient earns its keep, so
   the emphasised words are simply the accent colour now. The class name stays
   because it is what the pages say. */
.grad-text { color: var(--accent-2); }

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 780px;
}
.section-head.wide { max-width: none; }
.section-head.split {
  max-width: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: 28px;
}
@media (max-width: 860px) {
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  --btn-bg: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), filter 0.3s;
  box-shadow: 0 8px 20px -10px rgba(12, 31, 61, 0.42);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(12, 31, 61, 0.5); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn.ghost {
  --btn-bg: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn.ghost:hover { border-color: var(--accent); box-shadow: var(--glow); }

.btn.sm { padding: 10px 18px; font-size: 0.86rem; }
.btn.block { width: 100%; justify-content: center; }

.arw { transition: transform 0.35s var(--ease); display: inline-block; }
.btn svg, .link svg { transition: transform 0.35s var(--ease); }
.btn:hover svg, .link:hover svg { transform: translateX(3px); }
.nav-track-go:hover svg { transform: none; }
.btn:hover .arw, .link:hover .arw { transform: translateX(4px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  color: var(--accent-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.link:hover { border-color: currentColor; }

/* Chips, pills, tags ------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--go);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--go) 18%, transparent);
}

.tag {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-family: var(--mono);
  color: var(--ink-2);
}

/* Cards -------------------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* The lit edge: a gradient ring that only shows where the pointer is, drawn
   with a mask so it never repaints the card itself. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent-2) 55%, transparent),
    color-mix(in srgb, var(--accent-2) 18%, transparent) 45%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover::before, .card:focus-within::before { opacity: 1; }

/* 3D tilt. The script sets --rx/--ry from the pointer; the transform lives
   here so a browser without the script still gets a flat, correct card. */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.tilt:hover {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.012);
  box-shadow: var(--shadow-lift);
}
.tilt > * { transform: translateZ(22px); }

/* Fields ------------------------------------------------------------------- */

.field { display: grid; gap: 8px; }
.field.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) {
  .field.two, .field.three { grid-template-columns: 1fr; }
}

label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
label .opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }

input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  font-size: 0.96rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 20%, transparent);
}
textarea { min-height: 138px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 21px) 21px, calc(100% - 15px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
[data-theme='light'] select { background-color: var(--panel-2); }

.err { color: var(--bad); font-size: 0.82rem; min-height: 1.1em; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status {
  font-size: 0.9rem;
  color: var(--ink-2);
  min-height: 1.2em;
}
.form-status.ok { color: var(--go); }
.form-status.bad { color: var(--bad); }

form { display: grid; gap: 18px; }

/* --------------------------------------------------------------- chrome */

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 120;
  transition: width 0.12s linear;
}

/* The fixed plate behind everything, so the whole site reads as one surface
   rather than a stack of separate screens. */
.underlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.underlay-img {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(115%);
}
/* The artwork is drawn for a dark ground. On a light one it reads as a grey
   wash across the middle of the page, so it is dropped much further back. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .underlay-img { opacity: 0.05; }
}
[data-theme='light'] .underlay-img { opacity: 0.05; }
.underlay-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.underlay-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px circle at 12% -5%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 62%),
    linear-gradient(180deg, transparent, var(--bg) 78%);
}

/* Nav ---------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  min-height: var(--nav-h);
  padding: 8px var(--gut);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav.stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(12, 31, 61, 0.6);
}

/* The menu trigger. It reads as a button rather than three anonymous bars,
   because it is now the only way to the rest of the site. */
.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.86rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.nav-menu:hover { border-color: var(--line-strong); box-shadow: var(--glow); }
.nav-menu > span:not(.nav-menu-word) {
  display: block;
  width: 16px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-menu > span:nth-child(1) { margin-bottom: -4.4px; }
.nav-menu > span:nth-child(2) { margin-bottom: -4.4px; width: 11px; }
.nav-menu-word { letter-spacing: 0.01em; }
@media (max-width: 560px) {
  .nav-menu { padding: 9px 11px; }
  .nav-menu-word { display: none; }
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { display: block; }
.brand-logo img { height: 56px; width: auto; display: block; }
.footer-logo img { height: 74px; }
.drawer-logo img { height: 54px; }

/* The header takes the ship on its own with the name set beside it: the
   emblem's wordmark is stacked under the hull, and at header height it is a
   smudge. Everywhere with vertical room keeps the full lockup. */
.nav .brand-logo img { height: 34px; }
.brand-name { display: grid; line-height: 1; }
.brand-name b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.055em;
  color: var(--ink);
}
.brand-name span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--ink-3);
  margin-top: 3px;
}
@media (max-width: 720px) {
  .brand-name b { font-size: 0.86rem; letter-spacing: 0.04em; }
  .brand-name span { font-size: 0.5rem; letter-spacing: 0.26em; }
  .nav .brand-logo img { height: 28px; }
}
@media (max-width: 400px) { .brand-name span { display: none; } }

/* The wordmark ships in two colourways, and exactly one must be visible.
   Stated the same way as the tokens — light by default, the media query for a
   system preference, the attribute so the toggle wins in both directions. */
.brand-logo.on-light { display: block; }
.brand-logo.on-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand-logo.on-light { display: none; }
  :root:not([data-theme='light']) .brand-logo.on-dark { display: block; }
}

[data-theme='dark'] .brand-logo.on-light { display: none; }
[data-theme='dark'] .brand-logo.on-dark { display: block; }
[data-theme='light'] .brand-logo.on-light { display: block; }
[data-theme='light'] .brand-logo.on-dark { display: none; }

/* The tracking field, in the header on every page.
   The glow is the point of it: a soft ring and a low, wide shadow so the eye
   lands here first, with none of the neon that would make it look like a toy.
   It brightens on focus rather than pulsing at you. */
.nav-track {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  width: 100%;
  justify-self: center;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-2);
  box-shadow: var(--glow);
  transition: box-shadow 0.35s var(--ease), border-color 0.25s, background 0.25s;
}
.nav-track:hover { box-shadow: var(--glow-strong); }
.nav-track:focus-within {
  border-color: var(--accent-2);
  box-shadow: var(--glow-strong);
}
.nav-track-icon { display: grid; place-items: center; color: var(--ink-3); }
.nav-track input {
  border: 0;
  background: transparent;
  padding: 7px 0;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  box-shadow: none;
}
.nav-track input:focus { outline: none; box-shadow: none; }
.nav-track input::placeholder {
  font-family: var(--body);
  letter-spacing: 0;
  color: var(--ink-3);
}
.nav-track-go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s;
}
.nav-track-go:hover { transform: translateX(1px); filter: brightness(1.08); }

@media (max-width: 1080px) {
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav-track { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: 4px; }
  .nav { padding-bottom: 10px; }
}

.nav-end { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  color: var(--ink-2);
  transition: color 0.25s, border-color 0.25s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .i-moon { display: none; }
}
[data-theme='dark'] .theme-toggle .i-sun { display: block; }
[data-theme='dark'] .theme-toggle .i-moon { display: none; }
[data-theme='light'] .theme-toggle .i-sun { display: none; }
[data-theme='light'] .theme-toggle .i-moon { display: block; }

.nav-portal {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.25s, background 0.25s;
}
.nav-portal:hover, .nav-portal.is-active { color: var(--ink); background: var(--panel); }

@media (max-width: 860px) { .nav-portal { display: none; } }
@media (max-width: 680px) { .nav-cta { display: none; } }

/* Drawer -------------------------------------------------------------------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(6, 16, 32, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.drawer-scrim.open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 140;
  width: min(92vw, 344px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px 22px;
  background: var(--panel-solid);
  border-right: 1px solid var(--line);
  box-shadow: 30px 0 70px -40px rgba(12, 31, 61, 0.6);
  transform: translateX(-102%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.drawer-close:hover { color: var(--ink); border-color: var(--line-strong); }

.drawer-links { display: grid; gap: 2px; }
.drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--r);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.drawer-links a:hover { color: var(--ink); background: var(--grad-soft); transform: translateX(3px); }
.drawer-links a.is-active { color: var(--accent-2); background: var(--grad-soft); }
.drawer-links.secondary a { font-size: 0.92rem; font-weight: 500; }
.drawer-icon { display: grid; place-items: center; color: var(--ink-3); }
.drawer-links a:hover .drawer-icon,
.drawer-links a.is-active .drawer-icon { color: var(--accent-2); }

.drawer-split { height: 1px; background: var(--line); margin: 12px 0; }

.drawer-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 4px; }
.drawer-call {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.drawer-call:hover { color: var(--accent-2); }
.drawer-foot p { font-size: 0.84rem; }

/* Footer ------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 80%, transparent));
  padding-top: clamp(48px, 6vw, 84px);
  margin-top: var(--section);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand p { color: var(--ink-2); margin-top: 16px; max-width: 38ch; font-size: 0.94rem; }
.footer .col { display: grid; gap: 10px; align-content: start; }
.footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.footer .col a, .footer .col span {
  color: var(--ink-2);
  font-size: 0.93rem;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.footer .col a:hover { color: var(--accent-2); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.84rem;
}

/* =========================================================================
   Hero + tracking
   ========================================================================= */

.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 6vw, 90px);
  overflow: hidden;
}

/* Copy on the left, the calls to action and the headline figures on the right,
   and the chart full width beneath: the tracker is the argument, so it gets the
   whole measure rather than half of it. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
}
.hero-copy h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero-aside { display: grid; gap: 26px; }
.hero-aside .hero-actions { margin-top: 0; }
.hero-aside .hero-proof { margin-top: 0; padding-top: 22px; }

.hero h1 { margin-block: 20px 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 0.95s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes rise { to { transform: none; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-proof div { display: grid; gap: 2px; }
.hero-proof strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-proof span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Hero media: the slide stack behind the tracking card. */
.hero-side { display: grid; }

.hero-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

/* The console overlaps the artwork it sits on, so the two read as one object
   rather than two stacked panels. */
.hero-side .tracker {
  position: relative;
  z-index: 2;
  margin: -58px 14px 0;
}
@media (max-width: 560px) {
  .hero-side .tracker { margin-inline: 0; margin-top: -34px; }
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 8s linear;
}
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.1), rgba(4, 7, 15, 0.72));
}
.hero-media-tag {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}

/* The tracking console — the single most important object on the site. */
.tracker {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-lift);
  padding: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
}
.tracker::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent-2) 70%, transparent), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
.tracker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.tracker-head h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.tracker-form { display: grid; gap: 14px; }
.tracker-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}
@media (max-width: 560px) {
  .tracker-input { grid-template-columns: 1fr; }
}
.tracker-input input {
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 18px;
}
.tracker-input input::placeholder { letter-spacing: 0.06em; text-transform: none; }
.tracker-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.83rem;
  color: var(--ink-3);
}
.tracker-hint code {
  font-family: var(--mono);
  color: var(--accent-2);
  background: var(--grad-soft);
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.tracker-recent { display: flex; flex-wrap: wrap; gap: 8px; }
.tracker-recent button {
  font-family: var(--mono);
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.tracker-recent button:hover { border-color: var(--accent); color: var(--ink); }

/* =========================================================================
   Tracking result
   ========================================================================= */

.result { display: grid; gap: 20px; }
.result[hidden] { display: none; }

.result-note {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
}
.result-note.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.result-note strong { font-family: var(--display); }

.result-head {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
}
.result-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.result-number {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.1em;
}
.result-copy {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-family: var(--mono);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.result-copy:hover { color: var(--ink); border-color: var(--accent); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
}
.tone-go { color: var(--go); }
.tone-wait { color: var(--wait); }
.tone-warn { color: var(--warn); }
.tone-bad { color: var(--bad); }
.tone-done { color: var(--done); }

.status-badge.live .dot { animation: pulse 1.8s var(--ease-in-out) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 0%, transparent); }
}

/* Route rail: origin -> now -> destination */
.route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
@media (max-width: 680px) {
  .route { grid-template-columns: 1fr; text-align: left; }
  .route-arrow { display: none; }
}
.route-point .place {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 600;
}
.route-point .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.route-point.to { text-align: right; }
@media (max-width: 680px) { .route-point.to { text-align: left; } }
.route-arrow { color: var(--accent-2); }

.progress-rail {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-3) 22%, transparent);
  overflow: hidden;
}
.progress-rail span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
  transition: width 1.2s var(--ease);
}
.progress-rail.moving span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shimmer 1.8s linear infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.milestones {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}
@media (max-width: 820px) {
  .milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
.milestone {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.milestone i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg-2);
  transition: all 0.5s var(--ease);
}
.milestone.done i { border-color: var(--accent-2); background: var(--accent-2); }
.milestone.done { color: var(--ink-2); }
.milestone.current i {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 22%, transparent);
  transform: scale(1.25);
}
.milestone.current { color: var(--ink); }

/* Facts grid */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.fact {
  padding: 18px 20px;
  background: var(--panel-solid);
  display: grid;
  gap: 5px;
}
.fact dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fact dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Timeline */
.timeline { display: grid; gap: 0; position: relative; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 26px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 22px;
  bottom: -4px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .bead {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  margin-top: 2px;
}
.timeline .bead b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
}
.timeline li:first-child .bead {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 16%, transparent);
}
.timeline li:first-child .bead b { background: var(--accent); }
.timeline .when {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.timeline .what { font-family: var(--display); font-weight: 600; margin-top: 2px; }
.timeline .where { color: var(--ink-2); font-size: 0.92rem; }
.timeline .note { color: var(--ink-3); font-size: 0.88rem; margin-top: 4px; }

/* Route map (SVG, drawn from coordinates) */
.map-card { position: relative; padding: 0; overflow: hidden; }
.map-card svg { width: 100%; height: auto; display: block; }
.map-legend {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-legend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dash { stroke-dasharray: 7 9; animation: crawl 2.4s linear infinite; }
@keyframes crawl { to { stroke-dashoffset: -32; } }

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 980px) {
  .result-grid { grid-template-columns: 1fr; }
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-title h3 { font-size: 1.1rem; }

/* =========================================================================
   Content blocks
   ========================================================================= */

.grid {
  display: grid;
  gap: clamp(16px, 1.8vw, 24px);
}
/* Fixed column counts rather than auto-fit: with six cards, auto-fit lands on
   four across and leaves a ragged pair underneath. */
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
}

/* Service cards ------------------------------------------------------------ */

.svc-card { display: grid; gap: 16px; align-content: start; min-height: 100%; }
.svc-card .svc-media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.svc-card .svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-card .code {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
}
.svc-card .tagline {
  color: var(--ink-3);
  font-size: 0.86rem;
  margin-top: -8px;
}
.svc-card h3 { font-size: 1.3rem; }
.svc-card p { color: var(--ink-2); font-size: 0.94rem; }
.svc-card ul { display: grid; gap: 7px; margin-top: 2px; }
.svc-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.svc-card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-2);
}
.svc-card .link { margin-top: auto; padding-top: 8px; }

/* Numbered step cards ------------------------------------------------------ */

.step { display: grid; gap: 12px; align-content: start; }
.step .n {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-2); font-size: 0.93rem; }

/* Stats -------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  padding: clamp(22px, 2.4vw, 34px);
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
  display: grid;
  gap: 6px;
}
.stat b {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* Marquee ------------------------------------------------------------------ */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee span::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* Split feature ------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 12px 18px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  display: grid;
  gap: 2px;
}
.split-media .badge b { font-family: var(--display); font-size: 1.2rem; }
.split-media .badge span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.checks svg { color: var(--accent-2); margin-top: 3px; }

/* Network map -------------------------------------------------------------- */

.network-map {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  padding: clamp(14px, 2vw, 26px);
}
.network-map svg { width: 100%; height: auto; }
.hub-dot { cursor: pointer; transition: r 0.3s var(--ease); }
.hub-dot:hover { r: 9; }
.hub-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.hub {
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 6px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.hub:hover { border-color: var(--accent); transform: translateY(-3px); }
.hub .code {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}
.hub h4 { font-family: var(--display); font-size: 1.08rem; font-weight: 600; margin: 0; }
.hub p { font-size: 0.87rem; color: var(--ink-3); }

/* Industries / icon cards -------------------------------------------------- */

.ind-card { display: grid; gap: 12px; align-content: start; }
.ind-card .glyph {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--accent-2);
}
.ind-card h3 { font-size: 1.08rem; }
.ind-card p { color: var(--ink-2); font-size: 0.92rem; }

/* Accordion (FAQ) ---------------------------------------------------------- */

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--accent-2);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--ink-2); font-size: 0.95rem; max-width: 76ch; }

/* CTA band ----------------------------------------------------------------- */

.cta {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(760px circle at 12% 0%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 62%),
    var(--panel-2);
  padding: clamp(32px, 5vw, 68px);
  overflow: hidden;
  display: grid;
  gap: 22px;
  justify-items: start;
}
.cta h2 { max-width: 18ch; }
.cta p { max-width: 56ch; color: var(--ink-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page hero (inner pages) -------------------------------------------------- */

.page-hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(26px, 4vw, 48px);
}
.page-hero .inner { display: grid; gap: 18px; max-width: 900px; }
.crumbs {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.crumbs a:hover { color: var(--accent-2); }

/* Careers ------------------------------------------------------------------ */

.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.role:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 700px) {
  .role { grid-template-columns: 1fr; }
}
.role .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.role h3 { font-size: 1.2rem; }
.role p { color: var(--ink-2); font-size: 0.92rem; margin-top: 6px; max-width: 62ch; }

/* Contact ------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 940px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-lines { display: grid; gap: 18px; margin-top: 26px; }
.contact-line { display: grid; gap: 3px; }
.contact-line dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-line dd { margin: 0; font-size: 1rem; }
.contact-line a:hover { color: var(--accent-2); }

/* =========================================================================
   Live chat widget
   ========================================================================= */

.chat { position: fixed; right: 20px; bottom: 20px; z-index: 120; }
.chat-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 22%, transparent);
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(12, 31, 61, 0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.3s;
}
.chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(12, 31, 61, 0.65); }
.chat-toggle .i-open { display: grid; place-items: center; }

/* One slow ring on the launcher. It says "someone is there" without the
   permanent bouncing a support widget usually does. */
.chat-ping {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: ping 4.5s var(--ease-in-out) infinite;
  pointer-events: none;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.55; }
  35%, 100% { transform: scale(1.5); opacity: 0; }
}
.chat.open .chat-ping { display: none; }

/* The label sits beside the button until the panel opens. */
.chat-label {
  position: absolute;
  right: 70px;
  bottom: 18px;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.chat:hover .chat-label { opacity: 1; transform: none; }
.chat.open .chat-label { opacity: 0; }
@media (max-width: 560px) { .chat-label { display: none; } }

.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--accent-2);
}
.chat-head small { display: flex; align-items: center; gap: 6px; }
.chat-toggle .i-close { display: none; }
.chat.open .chat-toggle .i-open { display: none; }
.chat.open .chat-toggle .i-close { display: block; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(92vw, 372px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-2) 96%, transparent);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: min(72vh, 560px);
  animation: pop 0.35s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.chat-head-id { display: flex; align-items: center; gap: 11px; }
.chat-head-id .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--go);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--go) 20%, transparent);
}
.chat-head strong { font-family: var(--display); font-size: 0.98rem; display: block; }
.chat-head small { color: var(--ink-3); font-size: 0.76rem; }
.chat-min {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.chat-min:hover { color: var(--ink); }

.chat-log {
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow-y: auto;
  scrollbar-width: thin;
}
.chat-msg {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  animation: pop 0.28s var(--ease);
  overflow-wrap: anywhere;
}
.chat-msg.agent {
  justify-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.chat-msg.user {
  justify-self: end;
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-right-radius: 5px;
}
.chat-msg.typing { color: var(--ink-3); font-style: italic; }
.chat-msg.typing::after {
  content: '...';
  animation: dots 1.2s steps(4) infinite;
}
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.chat-form input { padding: 11px 14px; font-size: 0.9rem; }
.chat-form button {
  width: 42px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.chat-form button:hover { transform: translateX(2px); }

/* =========================================================================
   404
   ========================================================================= */

.oops {
  min-height: 68vh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 20px;
  text-align: left;
}
.oops .code {
  font-family: var(--mono);
  font-size: clamp(4rem, 16vw, 10rem);
  line-height: 0.9;
  color: var(--accent-2);
  opacity: 0.85;
}

/* =========================================================================
   Motion
   ========================================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tilt:hover { transform: translateY(-3px); }
  .hero h1 .line > span { transform: none; animation: none; }
}


/* =========================================================================
   Customer portal
   ========================================================================= */

/* The portal leads with a job to do — sign in, or read your consignments — so
   its header is deliberately smaller than a marketing page's. Without this the
   sign-in card starts below the fold on a laptop. */
.page-portal .page-hero { padding-bottom: clamp(18px, 2.5vw, 30px); }
.page-portal .page-hero h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.page-portal .page-hero .lede { font-size: 1rem; max-width: 58ch; }

.pm-gate { display: grid; place-items: center; padding-block: 0 clamp(20px, 5vw, 60px); }
.pm-gate .card { width: min(100%, 460px); display: grid; gap: 14px; }
.pm-gate .card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.pm-auth .btn { margin-top: 4px; }
.pm-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.pm-auth-links .link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
}

#portal-shell { display: grid; gap: 20px; }

/* Three small numbers, not three full-width panels: on a phone they are a
   summary, and stacking them pushes the consignments themselves off screen. */
#portal-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#portal-counts .stat { padding: clamp(14px, 2.4vw, 28px); }
#portal-counts .stat b { font-size: clamp(1.5rem, 4vw, 2.6rem); }
#portal-counts .stat span { font-size: 0.78rem; }

.pm-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
}
.pm-who { display: block; font-family: var(--display); font-size: 1.05rem; margin-top: 4px; }

.pm-claim { padding: clamp(18px, 2.2vw, 26px); }
.pm-claim .tracker-head h2 { font-size: 1.1rem; }
.pm-claim input {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pm-claim input::placeholder { text-transform: none; letter-spacing: 0.04em; }

.pm-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.pm-tab:hover { color: var(--ink); }
.pm-tab.is-active {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--grad-soft);
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.pm-card { display: grid; gap: 14px; align-content: start; cursor: pointer; }
.pm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pm-number { font-size: 0.92rem; letter-spacing: 0.08em; }
.pm-route {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}
.pm-route svg { color: var(--accent-2); flex-shrink: 0; }
.pm-route span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pm-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.pm-meta dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pm-meta dd {
  margin: 2px 0 0;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pm-card-foot .link { font-size: 0.88rem; }

/* With a consignment open, the list and its controls step aside rather than
   sitting above it: the page is showing one thing, so it should look like it. */
#portal.is-detail #portal-counts,
#portal.is-detail #portal-claim-form,
#portal.is-detail #portal-tabs,
#portal.is-detail #portal-list { display: none; }

.pm-detail { display: grid; gap: 18px; }
.pm-detail-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.admin-danger {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 40%, transparent);
}
.admin-danger:hover { border-color: var(--bad); }

/* =========================================================================
   Fleet tracker
   ========================================================================= */

.fleet {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--panel-solid);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.fleet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line);
}
.fleet-head h2 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); margin-top: 8px; }
.fleet-head-end { display: flex; align-items: center; gap: 14px; }
.fleet-count { font-size: 0.82rem; white-space: nowrap; }

.fleet-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--signal) 40%, transparent);
  background: color-mix(in srgb, var(--signal) 10%, transparent);
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fleet-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s var(--ease-in-out) infinite;
}

.fleet-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 27%, 380px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .fleet-body { grid-template-columns: 1fr; }
}

/* The chart --------------------------------------------------------------- */

.fleet-chart {
  position: relative;
  min-height: clamp(320px, 34vw, 470px);
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) {
  .fleet-chart { border-right: 0; border-bottom: 1px solid var(--line); min-height: 300px; }
}
.fleet-chart svg { display: block; width: 100%; height: 100%; }

/* Sea and land are set here rather than in the markup so the theme swap
   reaches inside the generated chart. */
.sea-lit { stop-color: #dfe8f3; }
.sea-deep { stop-color: #cdd9e9; }
.fleet-land { fill: #eef2f7; stroke: #b9c7da; stroke-width: 0.5; }
.fleet-graticule { stroke: rgba(12, 31, 61, 0.09); stroke-width: 0.6; fill: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sea-lit { stop-color: #0d2138; }
  :root:not([data-theme='light']) .sea-deep { stop-color: #071526; }
  :root:not([data-theme='light']) .fleet-land { fill: #16283f; stroke: #2a415c; }
  :root:not([data-theme='light']) .fleet-graticule { stroke: rgba(150, 178, 215, 0.11); }
}
[data-theme='dark'] .sea-lit { stop-color: #0d2138; }
[data-theme='dark'] .sea-deep { stop-color: #071526; }
[data-theme='dark'] .fleet-land { fill: #16283f; stroke: #2a415c; }
[data-theme='dark'] .fleet-graticule { stroke: rgba(150, 178, 215, 0.11); }

.fleet-lane {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 0.7;
  stroke-opacity: 0.3;
  stroke-dasharray: 3 5;
}
.fleet-track {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.6;
  stroke-opacity: 0.9;
  stroke-linecap: round;
}
.fleet-port { fill: var(--ink-3); opacity: 0.55; }
.fleet-track-port { fill: var(--accent-2); }
.fleet-track-label {
  font-family: var(--mono);
  font-size: 8.5px;
  fill: var(--ink-2);
  paint-order: stroke;
  stroke: var(--bg-2);
  stroke-width: 2.4px;
  stroke-linejoin: round;
}

/* Vessel markers: a hull turned to the course, filled by class. Soft colours —
   six saturated ones on a chart is a video game, not an operations picture. */
.fleet-vessel { cursor: pointer; }
.fleet-hit { fill: transparent; }
.fleet-hull {
  fill: var(--v-general);
  stroke: var(--panel-solid);
  stroke-width: 0.8;
  transition: transform 0.9s linear;
}
.fleet-vessel.tone-container .fleet-hull { fill: var(--v-container); }
.fleet-vessel.tone-bulk .fleet-hull { fill: var(--v-bulk); }
.fleet-vessel.tone-tanker .fleet-hull { fill: var(--v-tanker); }
.fleet-vessel.tone-reefer .fleet-hull { fill: var(--v-reefer); }
.fleet-vessel.tone-roro .fleet-hull { fill: var(--v-roro); }
.fleet-vessel.is-berthed .fleet-hull { opacity: 0.6; }
.fleet-vessel:hover .fleet-hull { stroke-width: 1.4; }
.fleet-vessel:focus-visible { outline: none; }
.fleet-vessel:focus-visible .fleet-halo,
.fleet-vessel:focus-visible .fleet-hit {
  fill: color-mix(in srgb, var(--accent-2) 22%, transparent);
}
.fleet-halo {
  fill: color-mix(in srgb, var(--accent-2) 16%, transparent);
  stroke: var(--accent-2);
  stroke-width: 0.9;
}
.fleet-vessel.is-on .fleet-hull { stroke: var(--accent-2); stroke-width: 1.2; }

/* The panel ---------------------------------------------------------------- */

.fleet-panel {
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  gap: 14px;
  align-content: start;
  background: var(--panel-solid);
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.fleet-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.fleet-panel-head h3 { font-size: 1.25rem; margin-top: 6px; }
.fleet-voyage { font-size: 0.76rem; color: var(--ink-3); margin-top: 4px; }

.fleet-class {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v-general);
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.fleet-class.tone-container { color: var(--v-container); }
.fleet-class.tone-bulk { color: var(--v-bulk); }
.fleet-class.tone-tanker { color: var(--v-tanker); }
.fleet-class.tone-reefer { color: var(--v-reefer); }
.fleet-class.tone-roro { color: var(--v-roro); }

.fleet-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
}
.fleet-state .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fleet-state.is-underway { color: var(--go); }
.fleet-state.is-berthed { color: var(--ink-3); }

.fleet-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.fleet-facts > div { background: var(--panel-solid); padding: 9px 12px; }
.fleet-facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fleet-facts dd { margin: 3px 0 0; font-size: 0.86rem; font-weight: 500; }
.fleet-position > div { background: var(--grad-soft); }
.fleet-position dd { font-size: 0.92rem; }

.fleet-leg { display: grid; gap: 7px; }
.fleet-leg-ends,
.fleet-leg-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-2);
}
.fleet-leg-ends { font-weight: 600; color: var(--ink); }
.fleet-leg-meta { color: var(--ink-3); }

.fleet-cargo { font-size: 0.86rem; color: var(--ink-2); }
.fleet-cargo strong { color: var(--ink); display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--mono); margin-bottom: 3px; }

/* Legend and the vessel strip ---------------------------------------------- */

.fleet-foot {
  display: grid;
  gap: 12px;
  padding: 14px clamp(18px, 2.2vw, 26px) 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.fleet-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fleet-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: var(--ink-2);
}
.fleet-key i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--v-general);
}
.fleet-key.tone-container i { background: var(--v-container); }
.fleet-key.tone-bulk i { background: var(--v-bulk); }
.fleet-key.tone-tanker i { background: var(--v-tanker); }
.fleet-key.tone-reefer i { background: var(--v-reefer); }
.fleet-key.tone-roro i { background: var(--v-roro); }

.fleet-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.fleet-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-solid);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.fleet-chip:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.fleet-chip.is-on { border-color: var(--accent-2); box-shadow: var(--glow); }
.fleet-chip-mark {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--v-general);
  flex-shrink: 0;
}
.fleet-chip.tone-container .fleet-chip-mark { background: var(--v-container); }
.fleet-chip.tone-bulk .fleet-chip-mark { background: var(--v-bulk); }
.fleet-chip.tone-tanker .fleet-chip-mark { background: var(--v-tanker); }
.fleet-chip.tone-reefer .fleet-chip-mark { background: var(--v-reefer); }
.fleet-chip.tone-roro .fleet-chip-mark { background: var(--v-roro); }
.fleet-chip-body { display: grid; }
.fleet-chip-body strong { font-family: var(--display); font-size: 0.82rem; white-space: nowrap; }
.fleet-chip-body span { font-size: 0.7rem; color: var(--ink-3); white-space: nowrap; }

/* The page keeps its scrollbar while the drawer is open — hiding it shifts
   every fixed element sideways, which is worse than a scrollbar. */
body.drawer-open { overflow: hidden; }
@media (min-width: 900px) { body.drawer-open { overflow: auto; } }

/* The network chart: the same coastlines the tracker uses, without the ships. */
.net-lane {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.3;
  stroke-opacity: 0.55;
  stroke-dasharray: 5 6;
}
.net-hub circle { fill: var(--accent-2); }
.net-hub-ring { fill: none; stroke: var(--accent-2); stroke-width: 1.1; }
.net-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  fill: var(--ink-2);
  paint-order: stroke;
  stroke: var(--bg-2);
  stroke-width: 2.6px;
  stroke-linejoin: round;
}

/* The time-lapse switch. It says which mode it is in rather than what it will
   do, because the chart behind it changes and the label has to match. */
.fleet-lapse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.76rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.fleet-lapse:hover { color: var(--ink); border-color: var(--accent-2); }
.fleet-lapse.is-on {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: var(--grad-soft);
  box-shadow: var(--glow);
}
.fleet-lapse.is-on svg { animation: sweep 2.6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* Markers ease between ticks in real time; under a time-lapse they are redrawn
   often enough that a transition would smear them. */
.fleet-vessel { transition: transform 1s linear; }
.fleet.is-lapsing .fleet-vessel { transition: transform 0.12s linear; }
