/* Falcon Group site styles. Tokens first; DESIGN.md explains each role. */

:root {
  /* Colour */
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --white: #FFFFFF;
  --navy-950: #010F2E;
  --navy-900: #011744;
  --navy-800: #0B2A63;
  --text: #26334D;
  --text-muted: #56627A;
  --line: rgb(1 23 68 / 14%);
  --field-line: rgb(1 23 68 / 28%);
  --placeholder: #6B7487;
  --on-navy: #FFFFFF;
  --on-navy-muted: #B9C4D8;
  --line-on-navy: rgb(255 255 255 / 14%);
  --orange: #FF712B;
  --orange-hover: #FF8A4D;
  --orange-ink: #B9440F;
  --whatsapp: #0F7A6E;
  --whatsapp-hover: #0B6A5F;
  --whatsapp-glyph: #25D366;
  --error: #B42318;
  --focus: var(--navy-900);

  /* Type */
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-hero: clamp(2.75rem, 1.4rem + 5.2vw, 5.75rem);
  --fs-display: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);
  --fs-h2: clamp(2.125rem, 1.3rem + 3vw, 3.75rem);
  --fs-stat: clamp(1.875rem, 1.1rem + 3.4vw, 3.5rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-pad: clamp(72px, 11vw, 144px);
  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 64px;

  /* Shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-full: 999px;
  --shadow: 0 1px 2px rgb(1 23 68 / 8%), 0 8px 24px rgb(1 23 68 / 8%);
  --shadow-photo: 0 30px 60px -20px rgb(0 0 0 / 55%);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) {
  body { font-size: var(--fs-body); }
}
body.menu-open, body.lightbox-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--navy-900);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
}

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

.site-header, .hero, .section--navy, .site-footer, .menu, .lightbox { --focus: var(--orange); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-2);
  z-index: 100;
  padding: 10px var(--s-4);
  background: var(--orange);
  color: var(--navy-900);
  font-weight: 700;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--orange); color: var(--navy-900); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--secondary { border-color: currentColor; color: var(--navy-900); background: transparent; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: var(--fs-small); }
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.icon-nudge { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--orange-hover); }
  .btn--whatsapp:hover { background: var(--whatsapp-hover); }
  .btn--secondary:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
  .btn:hover .icon-nudge { transform: translateX(3px); }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line-on-navy);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--on-navy);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.icon-btn:active { transform: scale(0.96); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn--wa .icon { color: var(--whatsapp-glyph); }
/* On phones the hero button and the floating button cover WhatsApp */
.icon-btn--wa { display: none; }
@media (min-width: 768px) {
  .icon-btn--wa { display: inline-grid; }
}
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: var(--navy-800); border-color: rgb(255 255 255 / 30%); }
}

/* Header: hides while scrolling down, comes back on the way up */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  color: var(--on-navy);
  border-bottom: 1px solid transparent;
  transition: transform 350ms var(--ease-out), border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-on-navy); }
.site-header.is-hidden { transform: translateY(-100%); }

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
}

.brand { display: block; flex: none; padding-block: 4px; border-radius: 2px; }
.brand img { width: 148px; }
@media (min-width: 768px) {
  .brand img { width: 172px; }
}

.nav { display: none; margin-inline-start: auto; }
.nav ul { display: flex; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative;
  display: block;
  padding-block: var(--s-3);
  color: var(--on-navy-muted);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 300ms var(--ease-out);
}
.nav a[aria-current="true"] { color: var(--on-navy); }
.nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left center; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--on-navy); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
}

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
.header-cta { display: none; }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav { display: block; }
  .header-actions { margin-inline-start: var(--s-6); gap: var(--s-3); }
  .menu-btn { display: none; }
}

.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* Phone and tablet menu */

.menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-6) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--navy-900);
  border-top: 1px solid var(--line-on-navy);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms var(--ease-out), transform 250ms var(--ease-drawer), visibility 0s linear 250ms;
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
@media (min-width: 1024px) {
  .menu { display: none; }
}

.menu-links { margin: 0; padding: 0; list-style: none; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line-on-navy);
  color: var(--on-navy);
  font-size: 1.75rem;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.2;
  text-decoration: none;
}
.menu-no { color: var(--orange); font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; }
.menu.is-open .menu-links li { animation: rise 450ms var(--ease-out) both; }
.menu.is-open .menu-links li:nth-child(2) { animation-delay: 40ms; }
.menu.is-open .menu-links li:nth-child(3) { animation-delay: 80ms; }
.menu.is-open .menu-links li:nth-child(4) { animation-delay: 120ms; }
.menu.is-open .menu-links li:nth-child(5) { animation-delay: 160ms; }
.menu-contact { display: grid; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.menu-contact a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  color: var(--on-navy-muted);
  text-decoration: none;
}
.menu-contact .icon { color: var(--orange); }
.menu-contact li:first-child .icon { color: var(--whatsapp-glyph); }

/* Eyebrows and section heads */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--orange-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow--on-navy { color: var(--orange); }
.hero .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}
.eyebrow-no {
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.section { position: relative; padding-block: var(--section-pad); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }
.section--navy { background: var(--navy-900); color: var(--on-navy-muted); }
.section--navy h2, .section--navy h3 { color: var(--on-navy); }

.section h2 { margin-top: var(--s-4); font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.015em; max-width: 16ch; }

.section-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
.section-intro { max-width: 52ch; font-size: 1.0625rem; }
@media (min-width: 768px) {
  .section-intro { font-size: 1.125rem; }
}
@media (min-width: 960px) {
  .section-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: var(--s-8); }
}

/* Words rise out of a mask (site.js splits [data-split] headings) */

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.w > span { display: inline-block; }
.reveal-ready [data-split]:not(.is-in) .w > span { transform: translateY(112%); }
.reveal-ready [data-split] .w > span {
  transition: transform 950ms var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 45ms + 40ms);
}
/* Until site.js has split the hero title, keep it hidden; show it anyway after 2.5 s if the script never runs */
.js [data-split="hero"]:not(.is-split) { opacity: 0; animation: show 0s linear 2.5s forwards; }

/* Hero */

.hero {
  position: relative;
  overflow: clip;
  background: var(--navy-900);
  color: var(--on-navy-muted);
  padding-top: clamp(40px, 6vw, 80px);
}

.hero-grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: var(--s-8); }
}

.hero-title {
  max-width: 11.5ch;
  margin-block: var(--s-5) var(--s-5);
  color: var(--on-navy);
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero .lead { max-width: 46ch; font-size: 1.125rem; line-height: 1.55; }
@media (min-width: 768px) {
  .hero .lead { font-size: var(--fs-lead); }
}

.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  font-size: var(--fs-small);
}
.hero-meta a { color: var(--on-navy); white-space: nowrap; }
.hero-clock {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-clock[hidden] { display: none; }
.hero-clock .icon { width: 18px; height: 18px; color: var(--orange); }
.hero-clock-time { color: var(--on-navy); font-variant-numeric: tabular-nums; }

figcaption {
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section--navy figcaption { color: var(--on-navy-muted); }

/* Hero photos: ship and plane, layered */

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.98;
}
.hv { position: absolute; margin: 0; }
.hv--main { top: 0; right: 0; z-index: 1; width: 74%; }
.hv--air { left: 0; bottom: 2%; z-index: 2; width: 55%; }
.hv-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--navy-800);
  box-shadow: var(--shadow-photo);
}
.hv--main .hv-frame { aspect-ratio: 4 / 5; }
.hv--air .hv-frame { aspect-ratio: 4 / 3; box-shadow: var(--shadow-photo), 0 0 0 1px rgb(255 255 255 / 10%); }
.hv-frame img { width: 100%; height: 100%; object-fit: cover; }
.hv--main img { object-position: 50% 40%; }

.hv-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: 6px 10px;
  background: var(--navy-950);
  color: var(--on-navy);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hv--main .hv-chip { top: 12px; right: 12px; }
.hv--air .hv-chip { left: 12px; bottom: 12px; }
.hv-key { color: var(--orange); }

/* Facts */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
  margin: var(--s-8) 0 0;
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-on-navy);
}
@media (min-width: 1280px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-2); }
.facts dd {
  margin: 0;
  color: var(--on-navy);
  font-size: min(var(--fs-stat), 3.25rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.facts dt { max-width: 22ch; font-size: var(--fs-small); line-height: 1.4; }

/* Ticker: moves with the page scroll, never on its own */

.ticker {
  margin-top: var(--s-8);
  padding-block: clamp(16px, 2.4vw, 28px);
  overflow: hidden;
  border-top: 1px solid var(--line-on-navy);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  width: max-content;
  padding-left: var(--gutter);
}
.ticker span {
  color: var(--on-navy);
  font-size: clamp(1.75rem, 0.9rem + 3.4vw, 3.5rem);
  font-weight: 800;
  font-stretch: 122%;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ticker span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px rgb(255 255 255 / 55%); }
.ticker i { flex: none; width: 12px; height: 12px; background: var(--orange); border-radius: 1px; transform: rotate(45deg); }

/* What we ship: list with a photo that follows the active cargo */

.cargo-index { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) {
  .cargo-index { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: var(--s-8); align-items: start; }
}

.cargo-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.cargo-item {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  align-items: start;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.cargo-thumb {
  grid-row: span 2;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--paper-2);
}
.cargo-no {
  color: var(--orange-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}
.cargo-text { grid-column: 2; }
.cargo-title { font-size: 1.1875rem; font-stretch: 112%; line-height: 1.15; }
.cargo-title a { color: inherit; text-decoration: none; }
.cargo-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cargo-desc { margin-top: var(--s-1); color: var(--text-muted); font-size: var(--fs-small); line-height: 1.5; }
.cargo-go { display: none; }

@media (min-width: 1024px) {
  .cargo-item {
    grid-template-columns: 56px minmax(0, 1fr) 32px;
    align-items: center;
    gap: var(--s-5);
    padding: var(--s-5) var(--s-4) var(--s-5) var(--s-5);
    transition: background-color 300ms ease;
  }
  .cargo-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: var(--orange);
    border-radius: 2px;
    transform: scaleY(0);
    transition: transform 350ms var(--ease-out);
  }
  .cargo-thumb { display: none; }
  .cargo-no { color: var(--text-muted); transition: color 300ms ease; }
  .cargo-text { grid-column: auto; }
  .cargo-title { font-size: clamp(1.5rem, 0.9rem + 1.2vw, 2.125rem); transition: transform 400ms var(--ease-out); }
  .cargo-desc { max-width: 48ch; font-size: 1rem; }
  .cargo-go {
    display: block;
    width: 28px;
    height: 28px;
    color: var(--navy-900);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity 250ms ease, transform 350ms var(--ease-out);
  }
  .cargo-item.is-active { background: rgb(1 23 68 / 4%); }
  .cargo-item.is-active::before { transform: scaleY(1); }
  .cargo-item.is-active .cargo-no { color: var(--orange-ink); }
  .cargo-item.is-active .cargo-title { transform: translateX(6px); }
  .cargo-item.is-active .cargo-go { opacity: 1; transform: none; }
}

.cargo-panel { display: none; }
@media (min-width: 1024px) {
  .cargo-panel { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
}
.cargo-panel-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.6;
  background: var(--paper-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.cargo-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.08);
}
.cargo-panel-img.is-prev { z-index: 1; clip-path: inset(0 0 0 0); transform: none; }
.cargo-panel-img.is-active {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  transform: none;
  transition: clip-path 750ms var(--ease-out), transform 1100ms var(--ease-out);
}
.cargo-panel-caption {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cargo-panel-caption [data-panel-no] { color: var(--orange-ink); }
.cargo-panel-caption span:last-child { margin-inline-start: auto; }

.door-to-door {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: var(--s-7);
  color: var(--navy-900);
  font-weight: 600;
}
.door-to-door .icon { width: 24px; height: 24px; color: var(--orange-ink); }

/* Ships */

.ships-grid { display: grid; gap: var(--s-8); }
@media (min-width: 960px) {
  .ships-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-9); align-items: start; }
}
.ships-copy .section-intro { margin-top: var(--s-5); }
.ships-photo { margin-top: var(--s-6); }

.parallax { overflow: hidden; border-radius: var(--r-md); background: var(--navy-800); }
.parallax img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.12); will-change: transform; }
.section--sand .parallax { background: var(--paper); }

.data-title {
  margin-bottom: var(--s-5);
  color: var(--on-navy-muted) !important;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.data-title--also { margin-top: var(--s-8); }

.scale { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.scale li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--s-2) var(--s-4); }
.scale-name { color: var(--on-navy); font-size: 1.125rem; font-weight: 700; font-stretch: 112%; }
.scale-range {
  color: var(--on-navy-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar {
  position: relative;
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  background: rgb(255 255 255 / 8%);
  border-radius: 2px;
}
.bar > span {
  position: absolute;
  inset-block: 0;
  left: calc(var(--from) / 180 * 100%);
  width: calc((var(--to) - var(--from)) / 180 * 100%);
  background: var(--orange);
  border-radius: 2px;
  transform-origin: left center;
  transition: transform 900ms var(--ease-out);
}
.reveal-ready .scale:not(.is-in) .bar > span { transform: scaleX(0.04); }
.scale li:nth-child(2) .bar > span { transition-delay: 90ms; }
.scale li:nth-child(3) .bar > span { transition-delay: 180ms; }
.scale li:nth-child(4) .bar > span { transition-delay: 270ms; }
.scale li:nth-child(5) .bar > span { transition-delay: 360ms; }
.scale li:nth-child(6) .bar > span { transition-delay: 450ms; }
.scale-range { transition: opacity 600ms ease 500ms; }
.reveal-ready .scale:not(.is-in) .scale-range { opacity: 0; }

.scale-axis {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line-on-navy);
  color: var(--on-navy-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-variant-numeric: tabular-nums;
}

.also-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-on-navy);
}
.also-list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line-on-navy);
  color: var(--on-navy);
}
.also-list .icon { width: 22px; height: 22px; color: var(--orange); }
@media (min-width: 640px) {
  .also-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
}

/* How it works: the line fills as the section scrolls past */

.steps {
  --p: 0;
  position: relative;
  display: grid;
  gap: var(--s-7);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.steps::after { background: var(--orange); transform-origin: top center; transform: scaleY(var(--p)); }
.step { position: relative; padding-left: 40px; }
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--navy-900);
  border-radius: 50%;
  transition: background-color 300ms ease, border-color 300ms ease, transform 400ms var(--ease-out);
}
.step.is-on::before { background: var(--orange); border-color: var(--orange); transform: scale(1.25); }
.step-no {
  color: var(--orange-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.step h3 { margin-block: var(--s-3) var(--s-2); font-size: clamp(1.375rem, 1rem + 1vw, 1.75rem); font-stretch: 110%; }
.step p { max-width: 36ch; color: var(--text-muted); }
.step h3, .step p, .step-no { transition: opacity 450ms ease; }
.reveal-ready .step:not(.is-on) h3,
.reveal-ready .step:not(.is-on) p,
.reveal-ready .step:not(.is-on) .step-no { opacity: 0.35; }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); padding-top: 40px; }
  .steps::before,
  .steps::after { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left center; transform: scaleX(var(--p)); }
  .step { padding-left: 0; }
  .step::before { left: 0; top: -40px; }
}

/* Track record: world map with the two lines */

.route-map {
  position: relative;
  aspect-ratio: 360 / 134;
  margin: 0 0 var(--s-7);
  color: var(--on-navy);
}
.route-map-base,
.route-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-map-svg { overflow: visible; }

.graticule line { stroke: rgb(255 255 255 / 7%); stroke-width: 0.3; }
.graticule .equator { stroke: rgb(255 255 255 / 16%); stroke-dasharray: 1.5 1.5; }
.graticule text {
  fill: rgb(255 255 255 / 40%);
  font-family: var(--font-mono);
  font-size: 3.2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.route { transition: opacity 300ms ease; }
.route--pacific, .port--pacific { color: var(--orange); }
.route--europe, .port--europe { color: var(--white); }
.route-track { fill: none; stroke: currentColor; stroke-opacity: 0.25; stroke-width: 0.45; stroke-dasharray: 1.2 1.6; }
.route-draw {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--dur, 2600ms) linear var(--delay, 0ms);
}
.reveal-ready .route-map:not(.is-in) .route-draw { stroke-dashoffset: 1; }
.seas text {
  fill: rgb(185 196 216 / 45%);
  font-family: var(--font-mono);
  font-size: 3.4px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.route-edge {
  fill: currentColor;
  font-family: var(--font-mono);
  font-size: 3px;
  font-weight: 500;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  transition: opacity 500ms ease 1300ms;
}
.reveal-ready .route-map:not(.is-in) .route-edge { opacity: 0; }
.route-ship { fill: currentColor; stroke: var(--navy-900); stroke-width: 0.5; opacity: 0; transition: opacity 300ms ease; }
.route-ship.is-sailing { opacity: 1; }

.port { transition: opacity 500ms ease var(--pd, 0ms); }
.reveal-ready .route-map:not(.is-in) .port { opacity: 0; }
.port circle { fill: var(--navy-900); stroke: currentColor; stroke-width: 0.6; }
.port text, .hq text {
  fill: var(--on-navy);
  font-family: var(--font-mono);
  font-size: 3.6px;
  font-weight: 500;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: var(--navy-900);
  stroke-width: 1.1px;
  stroke-linejoin: round;
}
.hq-dot { fill: var(--orange); }
.hq-ring { fill: none; stroke: var(--orange); stroke-width: 0.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.route-map.is-in .hq-ring { animation: ping 1800ms var(--ease-out) 900ms 3; }

.route-map[data-focus="pacific"] .route--europe,
.route-map[data-focus="pacific"] .port--europe,
.route-map[data-focus="europe"] .route--pacific,
.route-map[data-focus="europe"] .port--pacific { opacity: 0.2; }

@media (max-width: 639px) {
  .port text, .hq text, .graticule text, .seas, .route-edge { display: none; }
  .route-draw { stroke-width: 1.4; }
  .route-track { stroke-width: 0.8; }
  .port circle, .hq-dot, .route-ship { transform-box: fill-box; transform-origin: center; transform: scale(1.7); }
}

.stories { display: grid; gap: var(--s-5); }
@media (min-width: 960px) {
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.story {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--navy-800);
  border: 1px solid var(--line-on-navy);
  border-radius: var(--r-md);
  transition: border-color 250ms ease;
}
@media (min-width: 640px) {
  .story { padding: var(--s-6); }
}
@media (hover: hover) and (pointer: fine) {
  .story:hover { border-color: rgb(255 255 255 / 32%); }
}
.legend { display: block; width: 40px; height: 3px; border-radius: 2px; }
.legend--pacific { background: var(--orange); }
.legend--europe { background: var(--white); }
.story h3 { font-size: var(--fs-h3); font-stretch: 108%; line-height: 1.2; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: auto 0 0; padding-top: var(--s-2); }
.chips div {
  display: flex;
  flex-direction: column-reverse;
  padding: var(--s-2) var(--s-4);
  background: var(--navy-950);
  border: 1px solid var(--line-on-navy);
  border-radius: var(--r-sm);
}
.chips dt { color: var(--on-navy-muted); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.04em; }
.chips dd {
  margin: 0;
  color: var(--on-navy);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* On the job: photo grid that opens the viewer */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.job:nth-child(8n+1), .job:nth-child(8n+6) { grid-column: span 2; }
.job-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 0;
  border-radius: var(--r-md);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.job-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.job-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 12px 10px;
  background: linear-gradient(to top, rgb(1 15 46 / 82%), rgb(1 15 46 / 0%));
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}
.job-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: var(--navy-900);
  background: var(--white);
  border-radius: var(--r-full);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 200ms ease, transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .job-btn:hover img { transform: scale(1.05); }
  .job-btn:hover .job-zoom { opacity: 1; transform: none; }
}
.job-btn:focus-visible .job-zoom { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .jobs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 15vw, 214px);
    gap: var(--s-4);
  }
  .job-btn { aspect-ratio: auto; height: 100%; }
  .job:nth-child(8n+1) { grid-column: span 2; grid-row: span 2; }
  .job:nth-child(8n+6) { grid-column: span 2; }
}

/* Phones show 8 photos first; the rest open with a button (only when the script runs) */
.jobs-more { display: none; width: 100%; margin-top: var(--s-5); }
@media (max-width: 899px) {
  .js .jobs-more:not([hidden]) { display: flex; }
  .js .jobs-grid:not(.is-open) .job--more { display: none; }
}

/* About */

.about-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-9); }
}
.about-copy h2 { margin-bottom: var(--s-5); }
.about-copy p + p { margin-top: var(--s-4); }
.about-copy > p:not(.eyebrow) { max-width: 60ch; }
.principle {
  margin-block: var(--s-7) var(--s-6) !important;
  color: var(--navy-900);
  font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.pw { transition: color 350ms ease; }
.reveal-ready .pw:not(.is-lit) { color: rgb(1 23 68 / 22%); }

/* Contact */

.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-9); align-items: start; }
}
.contact-intro .section-intro { margin-top: var(--s-5); }

.direct { display: grid; gap: var(--s-3); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.direct-link, .direct-place {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 68px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line-on-navy);
  border-radius: var(--r-md);
  color: var(--on-navy);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.direct-place { border-style: dashed; }
.direct-link:active { transform: scale(0.98); }
.direct .icon { width: 28px; height: 28px; color: var(--orange); }
.direct-link--wa .icon:first-child { color: var(--whatsapp-glyph); }
.direct .icon-go { width: 20px; height: 20px; margin-inline-start: auto; color: var(--on-navy-muted); transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .direct-link:hover { background: var(--navy-800); border-color: rgb(255 255 255 / 30%); }
  .direct-link:hover .icon-go { transform: translate(3px, -3px); }
}
.direct strong { display: block; font-weight: 700; line-height: 1.3; }
.direct strong + span { display: block; color: var(--on-navy-muted); font-size: var(--fs-small); overflow-wrap: anywhere; }

.quote-form {
  --focus: var(--navy-900);
  padding: var(--s-6) var(--s-5);
  background: var(--white);
  color: var(--text);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-photo);
}
@media (min-width: 640px) {
  .quote-form { padding: var(--s-7); }
}
.form-title { margin-bottom: var(--s-5); color: var(--navy-900) !important; font-size: var(--fs-h3); font-stretch: 108%; }

.field-row { display: grid; column-gap: var(--s-5); }
@media (min-width: 640px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); align-content: start; }

.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  color: var(--navy-900);
  font-size: var(--fs-small);
  font-weight: 600;
}
.req {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--text);
  background-color: var(--white);
  border: 1.5px solid var(--field-line);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 136px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23011744' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field ::placeholder { color: var(--placeholder); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(1 23 68 / 45%); }
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgb(1 23 68 / 22%);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgb(180 35 24 / 22%); }

.field-help { color: var(--text-muted); font-size: var(--fs-small); }
.field-error { color: var(--error); font-size: var(--fs-small); font-weight: 600; }
.field-error[hidden] { display: none; }
.field-error:not([hidden]) { animation: rise 300ms var(--ease-out) both; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */

.site-footer {
  overflow: hidden;
  padding-block: var(--s-8) var(--s-5);
  background: var(--navy-950);
  color: var(--on-navy-muted);
  font-size: var(--fs-small);
}
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.footer-brand img { width: 168px; margin-bottom: var(--s-4); }
.footer-brand p + p { margin-top: var(--s-3); }
.footer-title {
  margin-bottom: var(--s-2);
  color: var(--on-navy);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-navy-muted);
  text-decoration: none;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer li a:hover { color: var(--on-navy); text-decoration: underline; }
}
.footer-legal { margin-top: var(--s-7); }
.footer-legal p { padding-top: var(--s-5); border-top: 1px solid var(--line-on-navy); }
.footer-mark {
  margin-top: var(--s-6);
  overflow: hidden;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 14%);
  font-size: calc((min(100vw, 1296px) - 2 * var(--gutter)) / 10.6);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

/* Floating WhatsApp button, phones only */

.wa-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: var(--r-full);
  box-shadow: 0 6px 20px rgb(1 15 46 / 35%);
  -webkit-tap-highlight-color: transparent;
  transition: transform 250ms var(--ease-out), opacity 200ms ease, visibility 0s linear 0s;
}
.wa-fab .icon { width: 30px; height: 30px; }
.wa-fab:active { transform: scale(0.95); }
.wa-fab.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: transform 200ms var(--ease-out), opacity 150ms ease, visibility 0s linear 200ms;
}
@media (min-width: 768px) {
  .wa-fab { display: none; }
}

/* Photo viewer */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--s-8) var(--s-4);
  overflow: hidden;
  background: transparent;
  border: 0;
  color: var(--on-navy);
}
.lightbox[open] { display: grid; place-items: center; animation: show 220ms var(--ease-out); }
.lightbox::backdrop { background: rgb(1 10 32 / 92%); }
.lightbox-figure { max-width: min(760px, 100%); }
.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 200px);
  margin-inline: auto;
  border-radius: var(--r-md);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 250ms ease, transform 350ms var(--ease-out);
}
.lightbox-figure img.is-shown { opacity: 1; transform: none; }
.lightbox-figure figcaption { margin-top: var(--s-3); color: var(--on-navy-muted); text-align: center; }
.lightbox-count {
  position: fixed;
  top: 26px;
  left: 20px;
  color: var(--on-navy-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
}
.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--on-navy);
  background: rgb(255 255 255 / 8%);
  border: 1.5px solid rgb(255 255 255 / 22%);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.lightbox-btn:active { transform: scale(0.95); }
.lightbox-btn .icon { width: 22px; height: 22px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 14px; top: 50%; margin-top: -24px; }
@media (max-width: 639px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); margin-top: 0; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}
@media (hover: hover) and (pointer: fine) {
  .lightbox-btn:hover { background: rgb(255 255 255 / 16%); }
}

/* Small pages: thanks and 404 */

.simple-page { min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; }
.simple-page h1 { margin-block: var(--s-4) var(--s-5); font-size: var(--fs-h2); max-width: 18ch; }
.simple-page p { max-width: 52ch; }
.simple-page .actions { margin-top: var(--s-6); }
.back-link { margin-top: var(--s-6); }
.back-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy-900); font-weight: 600; }

/* Scroll reveals (site.js adds .reveal-ready, so nothing hides without it) */

.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.reveal-ready [data-reveal] {
  transition: opacity 650ms var(--ease-out), transform 850ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal-ready [data-reveal-img]:not(.is-in) { clip-path: inset(100% 0 0 0 round var(--r-md)); }
.reveal-ready [data-reveal-img] {
  clip-path: inset(0 0 0 0 round var(--r-md));
  transition: clip-path 1100ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* Hero entrance: plain CSS, so it plays even before site.js loads */

.js .hero-in { animation: rise 900ms var(--ease-out) both; animation-delay: calc(80ms + var(--d, 0) * 80ms); }
.js .hv--main .hv-frame { animation: clip-up 1200ms var(--ease-out) 150ms both; }
.js .hv--main .hv-frame img { animation: settle 1900ms var(--ease-out) 150ms both; }
.js .hv--air .hv-frame { animation: clip-up 1000ms var(--ease-out) 650ms both; }
.js .hv--air .hv-frame img { animation: settle 1600ms var(--ease-out) 650ms both; }
.js .hv--main .hv-chip { animation: rise 700ms var(--ease-out) 1100ms both; }
.js .hv--air .hv-chip { animation: rise 700ms var(--ease-out) 1350ms both; }
.js .ticker { animation: show 1200ms ease 900ms both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes show {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes clip-up {
  from { clip-path: inset(100% 0 0 0 round var(--r-md)); }
  to { clip-path: inset(0 0 0 0 round var(--r-md)); }
}
@keyframes settle {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}
@keyframes ping {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(3.4); }
}

/* Screenshot mode (?still): everything in its final state */

.still *, .still *::before, .still *::after {
  transition: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
}

/* Reduced motion: keep fades, drop movement */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-in, .js .hv-chip, .menu.is-open .menu-links li, .field-error:not([hidden]) { animation-name: show; }
  .js .hv-frame, .js .hv-frame img { animation: none; }
  .reveal-ready [data-split]:not(.is-in) .w > span { transform: none; }
  .reveal-ready [data-reveal]:not(.is-in) { transform: none; }
  .reveal-ready [data-reveal] { transition: opacity 400ms ease; transition-delay: 0ms; }
  .reveal-ready [data-reveal-img]:not(.is-in) { clip-path: inset(0 0 0 0 round var(--r-md)); opacity: 0; }
  .reveal-ready [data-reveal-img] { transition: opacity 400ms ease; }
  .reveal-ready .scale:not(.is-in) .bar > span { transform: none; }
  .bar > span, .route-draw { transition: none; }
  .reveal-ready .route-map:not(.is-in) .route-draw { stroke-dashoffset: 0; }
  .route-map.is-in .hq-ring { animation: none; }
  .parallax img { transform: none; }
  .menu, .menu.is-open, .site-header.is-hidden { transform: none; }
  .wa-fab.is-hidden, .lightbox-figure img { transform: none; }
  .cargo-panel-img, .cargo-panel-img.is-active { transform: none; transition: opacity 300ms ease; }
  .cargo-panel-img { clip-path: inset(0 0 0 0); opacity: 0; }
  .cargo-panel-img.is-prev, .cargo-panel-img.is-active { opacity: 1; }
  .cargo-item.is-active .cargo-title, .cargo-go { transform: none; }
  .btn:active, .icon-btn:active, .direct-link:active, .wa-fab:active, .lightbox-btn:active { transform: none; }
  .job-btn img, .icon-nudge, .direct .icon-go { transition: none; }
}
