/* ============================================================
   Shenzhen Globelink Trading — Design System
   Implements DESIGN.md tokens. Brand: Navy/Sky/White, Space Grotesk.
   Feel: Sequel cinematic gallery, recoloured navy + sky.
   ============================================================ */

/* Self-hosted fonts — no third-party CDN.
   Outfit (variable 500–800) for headlines; Poppins (300/400/500) for body. */
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family:'Poppins'; font-style:normal; font-weight:300; font-display:swap; src:url('../fonts/poppins-300.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/poppins-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/poppins-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/poppins-400-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand colours */
  --color-navy: #00132F;
  --color-sky: #58B6FF;
  --color-white: #FFFFFF;

  /* Surfaces */
  --surface-canvas: #00132F;
  --surface-elevated: #0A2547;
  --surface-raised: #10325C;
  --surface-inverted: #FFFFFF;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #9DB4D0;
  --text-muted: #6B83A0;
  --text-on-accent: #00132F;
  --text-on-inverted: #00132F;

  /* Accent */
  --accent: #58B6FF;
  --accent-hover: #7AC6FF;
  --accent-press: #3A9BEC;

  /* Borders */
  --border-hairline: rgba(88, 182, 255, 0.18);
  --border-ghost: rgba(255, 255, 255, 0.5);

  /* Typography */
  --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Poppins', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Type scale */
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 18px;
  --text-subheading: 22px;
  --text-heading: 32px;
  --text-heading-lg: 58px;
  --text-display: 128px;

  /* Spacing */
  --s-4: 4px;   --s-8: 8px;   --s-12: 12px; --s-16: 16px;
  --s-20: 20px; --s-24: 24px; --s-28: 28px; --s-32: 32px;
  --s-40: 40px; --s-64: 64px; --s-80: 80px; --s-96: 96px;

  /* Layout */
  --page-max-width: 1280px;
  --section-gap: 96px;
  --card-padding: 19px;
  --element-gap: 16px;
  --body-measure: 560px;

  /* Radius */
  --radius-lg: 10px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xl: rgba(0,0,0,0.45) 0 10px 30px 0, rgba(88,182,255,0.10) 0 1px 0 0 inset;
  --shadow-lg: rgba(0,0,0,0.25) 0 4px 20px 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  line-height: 1.4;
  letter-spacing: -0.36px;
  color: var(--text-primary);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--s-24);
}
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: var(--s-64); }
.measure { max-width: var(--body-measure); }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: var(--s-24); }

/* ---------- Typography ---------- */
/* Headline family (Outfit) — body stays Poppins via body{} */
.display, .h-lg, .h, .subheading, .stat__num, .logo__word { font-family: var(--font-display); }
/* Sub-page hero headlines: lighter weight to match the homepage hero treatment */
.hero .h-lg, .page-intro .h-lg { font-weight: 600; letter-spacing: -0.03em; }
.display {
  font-weight: 600;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h-lg {
  font-weight: var(--fw-bold);
  font-size: clamp(34px, 5.2vw, var(--text-heading-lg));
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.h {
  font-weight: var(--fw-medium);
  font-size: clamp(26px, 3.4vw, var(--text-heading));
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.subheading {
  font-weight: var(--fw-medium);
  font-size: var(--text-subheading);
  line-height: 1.4;
  letter-spacing: -0.44px;
}
.body { font-size: var(--text-body); color: var(--text-secondary); line-height: 1.5; }
.body-sm { font-size: var(--text-body-sm); color: var(--text-secondary); line-height: 1.5; letter-spacing: -0.28px; }
.muted { color: var(--text-muted); }
.eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.accent-text { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  border-radius: var(--radius-full);
  padding: 16px 24px;
  font-weight: var(--fw-medium);
  font-size: 15px;
  letter-spacing: -0.30px;
  border: none;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; color: var(--color-white); border: 1px solid var(--border-ghost); }
.btn-ghost:hover { border-color: var(--color-white); background: rgba(255,255,255,0.04); }

.btn-inverted { background: var(--color-navy); color: var(--color-white); }
.btn-inverted:hover { background: var(--surface-raised); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-16); }
.btn-row.center { justify-content: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 19, 47, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}
.nav__inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
  height: 64px;
  padding-inline: var(--s-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__word { font-weight: var(--fw-medium); font-size: 20px; letter-spacing: -0.02em; }
.logo__bars { display: inline-flex; gap: 3px; align-items: flex-end; }
.logo__bars span { width: 2px; height: 14px; background: var(--accent); border-radius: 1px; }
.logo__bars span:nth-child(2) { height: 10px; }
.logo__bars span:nth-child(3) { height: 16px; }

.nav__links { display: flex; align-items: center; gap: var(--s-24); }
.nav__links a {
  font-size: 14px;
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  transition: color .15s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--color-white); }
.nav__right { display: flex; align-items: center; gap: var(--s-16); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  width: 42px; height: 42px;
  color: var(--color-white);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(72vh, 580px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--surface-canvas);
}
.hero--short { min-height: min(52vh, 440px); }
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Cinematic navy backdrop with sky glow + route lines (placeholder imagery) */
.cine {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(88,182,255,0.28), rgba(88,182,255,0) 55%),
    radial-gradient(90% 70% at 20% 90%, rgba(16,50,92,0.9), rgba(0,19,47,0) 60%),
    linear-gradient(180deg, #001026 0%, #00132F 60%, #001735 100%);
}
.cine::after {
  /* faint grain */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* Photographic hero layer — image with on-brand navy/sky tint for text legibility.
   Falls back to navy canvas if the image file is missing. */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--surface-canvas);
  background-size: cover;
  background-position: center;
}
/* Hero imagery — real CC photos downloaded locally (self-hosted, not hotlinked, so no
   third-party dependency). Swap to your own files by replacing these images/ files.
   On-brand SVG scenes (hero-port.svg / hero-routes.svg) remain as fallbacks. */
.hero-img--sunset   { background-image: url("../images/port-sunset.jpg"), url("../images/hero-port.svg"); background-position: center; }
.hero-img--terminal { background-image: url("../images/team-port.jpg"), url("../images/hero-port.svg"); background-position: center; }
.hero-img--aerial   { background-image: url("../images/global-network.jpg"), url("../images/hero-routes.svg"); background-position: center; }
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(88,182,255,0.16), transparent 55%),
    linear-gradient(180deg, rgba(0,19,47,0.30) 0%, rgba(0,19,47,0.50) 55%, rgba(0,19,47,0.88) 100%);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,19,47,0.10) 0%, rgba(0,19,47,0.55) 70%, rgba(0,19,47,0.92) 100%);
}

/* Photographic card media */
.card__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--surface-canvas);
  background-size: cover;
  background-position: center;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding: var(--s-40) var(--s-24) var(--s-64);
}
.hero__content .display, .hero__content .h-lg { max-width: 16ch; }
.hero p.lede { margin-top: var(--s-24); max-width: 52ch; color: var(--text-secondary); font-size: var(--text-body); line-height: 1.5; }
.hero .btn-row { margin-top: var(--s-32); }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--surface-elevated);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-24);
  padding-block: var(--s-40);
}
.stat { text-align: center; }
.stat__num { font-weight: var(--fw-bold); font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.stat__num .accent-text { color: var(--accent); }
.stat__label { margin-top: var(--s-8); color: var(--text-muted); font-size: var(--text-body-sm); }

/* ---------- Section header ---------- */
.section-head { margin-bottom: var(--s-40); }
.section-head .eyebrow { display: block; margin-bottom: var(--s-16); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--s-24); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Editorial image card */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-28);
  color: var(--color-white);
  box-shadow: var(--shadow-xl);
  isolation: isolate;
}
.card__media { position: absolute; inset: 0; z-index: -2; }
.card__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,19,47,0) 30%, rgba(0,19,47,0.85) 100%);
}
.card h3 { font-weight: var(--fw-medium); font-size: var(--text-subheading); letter-spacing: -0.44px; }
.card p { margin-top: var(--s-12); color: var(--text-secondary); font-size: var(--text-body-sm); line-height: 1.5; }
.card .badge { position: absolute; top: var(--s-16); left: var(--s-16); z-index: 1; }

/* Card media variants (placeholder cinematic fills) */
.media-a { background: radial-gradient(120% 100% at 80% 10%, rgba(88,182,255,0.30), transparent 55%), linear-gradient(160deg, #08203f, #00132f); }
.media-b { background: radial-gradient(120% 100% at 15% 15%, rgba(88,182,255,0.24), transparent 55%), linear-gradient(160deg, #0b2748, #00132f); }
.media-c { background: radial-gradient(130% 100% at 60% 90%, rgba(88,182,255,0.22), transparent 55%), linear-gradient(200deg, #0a2547, #00132f); }
.media-d { background: radial-gradient(120% 100% at 50% 0%, rgba(88,182,255,0.20), transparent 60%), linear-gradient(180deg, #0c2a4e, #00132f); }

/* Icon tile */
.icon-tile {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(88,182,255,0.12);
  border: 1px solid var(--border-hairline);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-20);
}
.icon-tile svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.6; }

/* Feature block (non-image) */
.feature {
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--s-32);
  height: 100%;
}
.feature h3 { font-weight: var(--fw-medium); font-size: var(--text-subheading); letter-spacing: -0.44px; }
.feature p { margin-top: var(--s-12); color: var(--text-secondary); font-size: var(--text-body-sm); line-height: 1.5; }
.feature ul { margin-top: var(--s-20); }
.feature ul li {
  position: relative;
  padding-left: 26px;
  margin-top: var(--s-12);
  color: var(--text-secondary);
  font-size: var(--text-body-sm);
  line-height: 1.5;
}
.feature ul li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(88,182,255,0.12);
  box-shadow: rgba(255,255,255,0.10) 0 1px 0 inset;
  border-radius: var(--radius-full);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
}

/* ---------- Inverted (white) panel ---------- */
.panel-inverted {
  background: var(--surface-inverted);
  color: var(--text-on-inverted);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
}
.panel-inverted .eyebrow { color: var(--accent-press); }
.panel-inverted .body { color: #33506e; }
.panel-inverted .h-lg { color: var(--color-navy); }

/* ---------- Region columns ---------- */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.region {
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--s-28);
}
.region h3 { font-size: var(--text-subheading); font-weight: var(--fw-medium); letter-spacing: -0.44px; margin-bottom: var(--s-16); }
.region ul li { color: var(--text-secondary); font-size: var(--text-body-sm); padding-block: 6px; border-bottom: 1px solid var(--border-hairline); }
.region ul li:last-child { border-bottom: none; }

/* ---------- Forms ---------- */
.form-wrap {
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.field { margin-bottom: var(--s-24); }
.field label { display: block; font-size: var(--text-body-sm); color: var(--text-secondary); margin-bottom: var(--s-8); }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  background: var(--surface-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88,182,255,0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: var(--s-16); color: var(--text-muted); font-size: var(--text-body-sm); }
.form-success {
  display: none;
  background: rgba(88,182,255,0.10);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--s-24);
  color: var(--color-white);
}

/* ---------- Contact methods ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.contact-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--s-28);
}
.contact-card .icon-tile { margin-bottom: var(--s-16); }
.contact-card h3 { font-size: var(--text-subheading); font-weight: var(--fw-medium); letter-spacing: -0.44px; }
.contact-card a, .contact-card p { display: block; margin-top: var(--s-8); color: var(--text-secondary); font-size: var(--text-body-sm); }
.contact-card a:hover { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .h-lg { max-width: 18ch; margin-inline: auto; }
.cta-band .body { margin-top: var(--s-16); margin-inline: auto; }
.cta-band .btn-row { margin-top: var(--s-32); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--surface-elevated);
  padding-block: var(--s-64) var(--s-40);
  margin-top: var(--s-96);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-40);
}
.footer h4 { font-size: var(--text-body-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--s-16); }
.footer a, .footer p { color: var(--text-secondary); font-size: var(--text-body-sm); line-height: 1.7; display: block; }
.footer a:hover { color: var(--accent); }
.footer__brand .body-sm { margin-top: var(--s-16); max-width: 34ch; color: var(--text-muted); }
.footer__bottom {
  margin-top: var(--s-40);
  padding-top: var(--s-24);
  border-top: 1px solid var(--border-hairline);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-16);
  color: var(--text-muted); font-size: var(--text-body-sm);
}

/* ---------- Page intro (sub-pages) ---------- */
.page-intro { padding-block: var(--s-80) var(--s-40); }
.page-intro .display, .page-intro .h-lg { max-width: 18ch; }
.page-intro .body { margin-top: var(--s-24); max-width: 54ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --section-gap: 64px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border-hairline);
    padding: var(--s-12) var(--s-24) var(--s-24);
  }
  .nav.open .nav__links a { padding-block: var(--s-12); width: 100%; border-bottom: 1px solid var(--border-hairline); }
  .grid-2, .grid-3, .regions, .contact-grid, .trust__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .regions, .contact-grid, .trust__grid { grid-template-columns: 1fr; }
  .trust__grid { gap: var(--s-32); }
  .nav__right .btn { padding: 12px 18px; font-size: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ============================================================
   Motion layer — cinematic heroes, scroll reveals, hover life
   ============================================================ */

/* --- Hero: slow Ken Burns drift on the photo / gradient backdrop --- */
.hero__photo, .cine {
  animation: kenburns 30s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: 60% 40%;
}
@keyframes kenburns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.13); }
}

/* --- Hero: drifting shipping-lane lines --- */
.hero__media::after {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0 46px, rgba(88,182,255,0.06) 46px 47px);
  animation: lanes 22s linear infinite;
  pointer-events: none;
}
@keyframes lanes {
  from { transform: translateX(0); }
  to   { transform: translateX(64px); }
}

/* --- Hero: floating light orb --- */
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -15%;
  right: -8%;
  width: 48vmax;
  height: 48vmax;
  background: radial-gradient(circle, rgba(88,182,255,0.20), transparent 60%);
  filter: blur(24px);
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate;
}
@keyframes floatOrb {
  from { transform: translate(0, 0); }
  to   { transform: translate(-46px, 34px); }
}

/* --- Hero content: staggered entrance --- */
.hero__content > * {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: 0.10s; }
.hero__content > *:nth-child(2) { animation-delay: 0.22s; }
.hero__content > *:nth-child(3) { animation-delay: 0.34s; }
.hero__content > *:nth-child(4) { animation-delay: 0.46s; }
.hero__content > *:nth-child(5) { animation-delay: 0.58s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Hero primary CTA: gentle attention pulse --- */
.hero .btn-primary { animation: ctaPulse 3s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: var(--shadow-lg); }
  50%      { box-shadow: 0 6px 30px rgba(88,182,255,0.45); }
}

/* --- Scroll reveal (applied via JS) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Card & feature hover life --- */
.card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.card__media, .card__photo, .card__scrim { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-6px); }
.card:hover .card__media, .card:hover .card__photo { transform: scale(1.07); }

.feature {
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background .3s ease;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(88,182,255,0.42);
}
.feature:hover .icon-tile {
  transform: translateY(-2px) scale(1.06);
  background: rgba(88,182,255,0.2);
}
.icon-tile { transition: transform .3s ease, background .3s ease; }

.contact-card, .region {
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease;
}
.contact-card:hover, .region:hover {
  transform: translateY(-4px);
  border-color: rgba(88,182,255,0.42);
}

/* --- Stat numbers: tabular while counting --- */
.stat__num { font-variant-numeric: tabular-nums; }

/* ============================================================
   Donor-adapted block — from third-party "hero-with-video".
   Structural donor only (per CLAUDE.md): skeleton kept; skin =
   DESIGN.md tokens; words = COPY.md. Stock image, hosted video,
   newsletter email and theme toggle intentionally dropped.
   ============================================================ */
.media-hero { padding-block: var(--s-80) var(--s-40); }
.media-hero__head { max-width: 760px; margin-inline: auto; text-align: center; }
.media-hero__head .display { max-width: none; margin-inline: auto; }
.media-hero__head .lede { margin: var(--s-24) auto 0; max-width: 54ch; color: var(--text-secondary); font-size: var(--text-body); line-height: 1.5; }
.media-hero__head .btn-row { justify-content: center; margin-top: var(--s-32); }

.media-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--surface-elevated);
  margin-top: var(--s-40);
  isolation: isolate;
}
.media-showcase__scene {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../images/port-sunset.jpg'), url('../images/hero-port.svg');
  background-size: cover; background-position: center;
  animation: kenburns 30s ease-in-out infinite alternate;
  will-change: transform;
}
.media-showcase__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,19,47,0) 40%, rgba(0,19,47,0.85) 100%);
}
.media-showcase__caption {
  position: absolute; left: var(--s-28); right: var(--s-28); bottom: var(--s-28);
  color: var(--color-white);
}
.media-showcase__caption h2 {
  font-weight: var(--fw-medium); font-size: var(--text-subheading);
  letter-spacing: -0.44px; max-width: 28ch;
}
.media-showcase .badge { position: absolute; top: var(--s-16); left: var(--s-16); z-index: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__content > * { opacity: 1 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
