/* ============================================================
   Shipmunk — Public Website
   ============================================================ */

:root {
  /* Brand — coral from the logo, warmed and extended */
  --coral: #ef4444;
  --coral-dark: #c62f2f;
  --coral-light: #fef2f1;
  --coral-deep: #8f1d1d;

  /* Secondary — ember/gold. Sunrise over the harbour. */
  --ember: #f97316;
  --ember-dark: #c2540b;
  --ember-light: #fff4e8;

  /* Tertiary — sea teal. Depth without going cyan. */
  --sea: #0f766e;
  --sea-dark: #0b5b55;
  --sea-light: #e6f4f2;

  /* Neutrals — WARM. No cold slate. */
  --white: #ffffff;
  --gray-50: #fdfaf8;
  --gray-100: #f7f1ec;
  --gray-200: #ece2da;
  --gray-300: #d9cbc0;
  --gray-400: #a8998d;
  --gray-500: #7d6f64;
  --gray-600: #5c5148;
  --gray-700: #40382f;
  --gray-800: #2a241d;
  --gray-900: #1a1613;

  /* Accent — deep sea-ink, warm-biased. Replaces cold slate navy. */
  --navy: #10201f;
  --navy-light: #1c3230;

  /* Status */
  --success: #0f766e;
  --warning: #d97706;

  /* Gradients */
  --grad-sunrise: linear-gradient(135deg, #6d1616 0%, #a32424 34%, #d13a2a 62%, #e2620f 100%);
  --grad-warm: linear-gradient(135deg, var(--gray-50) 0%, #fff8f3 45%, var(--coral-light) 100%);
  --grad-ember: linear-gradient(120deg, #f97316 0%, #ef4444 55%, #c62f2f 100%);
  --grad-sea: linear-gradient(135deg, #10201f 0%, #1c3230 50%, #0f766e 100%);
  --grad-card: linear-gradient(160deg, #ffffff 0%, #fffaf7 100%);

  /* Typography — one grotesque does the whole page. Nunito's rounded
     terminals read as friendly-startup; the freight document look needs a
     neutral face that can carry both 5rem display and 0.9rem labels. */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1240px;
  --header-height: 68px;
  --topbar-height: 40px;

  /* Effects — near-square. A document has corners, not pills. */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --shadow-sm: 0 1px 1px rgba(26,22,19,0.05);
  --shadow-md: 0 2px 6px -1px rgba(26,22,19,0.10);
  --shadow-lg: 0 8px 20px -8px rgba(26,22,19,0.18);
  --shadow-xl: 0 18px 40px -18px rgba(26,22,19,0.28);
  --shadow-glow: none;

  /* Transitions — custom curves. The built-in easings are too weak to read
     as intentional; ease-out gives feedback on the first frame. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 220ms var(--ease-out);
  --transition-slow: 320ms var(--ease-in-out);

  /* Semantic tokens for the two public-site themes. */
  color-scheme: light;
  --page-background: #ffffff;
  --surface-background: #ffffff;
  --surface-raised: var(--grad-card);
  --surface-soft: var(--gray-50);
  --input-background: var(--gray-50);
  --header-background: rgba(255,255,255,0.95);
  --menu-background: #ffffff;
  --menu-hover-background: var(--gray-50);
  --section-background: linear-gradient(180deg, var(--gray-50) 0%, #fff6f1 100%);
  --border-color: var(--gray-200);
  --text-primary: var(--gray-900);
  --text-body: var(--gray-700);
  --text-secondary: var(--gray-500);
  --text-muted: var(--gray-400);
  --table-hover-background: var(--gray-50);
  --feature-preview-background: linear-gradient(135deg, #fdfaf8 0%, #fff6f1 100%);
  --topbar-text: #d9cbc0;
  --topbar-border: rgba(255,255,255,0.15);

  /* A genuinely dark field that stays dark in both themes. Never use a text
     token (--gray-900) as a band background: in dark mode that token is
     near-white and the band inverts. */
  --band-ink: #1a1613;
  --band-ink-text: #ffffff;
  --band-ink-muted: rgba(255,255,255,0.76);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --white: #f0f0f0;
  --page-background: #101010;
  --surface-background: #171717;
  --surface-raised: linear-gradient(160deg, #1e1e1e 0%, #181818 100%);
  --surface-soft: #141414;
  --input-background: #202020;
  --header-background: #171717;
  --menu-background: #1c1c1c;
  --menu-hover-background: #252525;
  --section-background: linear-gradient(180deg, #141414 0%, #191614 100%);
  --border-color: rgba(255,255,255,0.10);
  --text-primary: #f0f0f0;
  --text-body: #d4d4d4;
  --text-secondary: #a0a0a0;
  --text-muted: #858585;
  --table-hover-background: #222222;
  --feature-preview-background: linear-gradient(135deg, #1c1917 0%, #171717 100%);

  /* One step above the #101010 page canvas, so the band still reads as a band. */
  --band-ink: #1b1b1b;

  /* Map existing page tokens to the dark surface and text hierarchy. */
  --gray-50: #141414;
  --gray-100: #191919;
  --gray-200: #303030;
  --gray-300: #444444;
  --gray-400: #858585;
  --gray-500: #a0a0a0;
  --gray-600: #bdbdbd;
  --gray-700: #d4d4d4;
  --gray-800: #302b28;
  --gray-900: #f0f0f0;
  --coral-dark: #ff786e;
  --coral-light: rgba(239,68,68,0.14);
  --ember-light: rgba(249,115,22,0.13);
  --sea-light: rgba(15,118,110,0.18);
  --success: #34d399;
  --warning: #fbbf24;
  --grad-warm: linear-gradient(135deg, #141210 0%, #171311 48%, #201615 100%);
  --grad-card: linear-gradient(160deg, #1e1e1e 0%, #181818 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.22);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.24);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.30);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.34);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--page-background);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--page-background);
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--coral-dark);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p {
  margin-bottom: var(--space-md);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--gray {
  background: var(--section-background);
}

.section--dark {
  background: var(--grad-sea);
  color: rgba(255,255,255,0.78);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
}

/* ---------- Announcement / Utility Top Bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: linear-gradient(90deg, #1a1613 0%, #241d18 55%, #10201f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1001;
  font-size: 0.8125rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: 100%;
}

.topbar-news {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.topbar-news-tag {
  flex: none;
  background: var(--coral);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}

.topbar-news-text {
  color: var(--topbar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-news-text a {
  color: var(--topbar-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.topbar-news-text a:hover {
  color: var(--white);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex: none;
}

/* Tracking lookup. The top bar's one input, set like the rest of the bar:
   a flat field on the dark ground and a coral submit, near-square corners. */
.topbar-track {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  height: 26px;
}

/* No placeholder in this field (house rule), so the label carries the
   meaning for a screen reader while the button says it visually. */
.topbar-track__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar-track__input {
  width: 11.5rem;
  min-width: 0;
  padding: 0 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.topbar-track__input:hover {
  border-color: rgba(255, 255, 255, 0.34);
}

/* A warm light ring, not coral: coral on a field reads as a validation error,
   and this control has no error state — the tracking site answers "not found"
   on its own page. */
.topbar-track__input:focus-visible {
  outline: 2px solid var(--topbar-text);
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.topbar-track__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--coral);
  border: 1px solid var(--coral);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.topbar-track__submit:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.topbar-track__submit svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* Language switch */
.lang {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--topbar-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 3px 8px;
  border: 1px solid var(--topbar-border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.lang-toggle:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.lang-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.lang.open .lang-toggle svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  transform-origin: top right;
  min-width: 190px;
  background: var(--menu-background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs) 0;
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.96) translateY(-4px);
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out), visibility 0s 140ms;
  z-index: 1002;
}

.lang.open .lang-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out), visibility 0s;
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-sm) var(--space-lg);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-body);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lang-menu button:hover {
  background: var(--menu-hover-background);
}

.lang-menu button[aria-current="true"] {
  color: var(--coral);
  font-weight: 700;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--header-background);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.header-logo span em {
  color: var(--coral);
  font-style: normal;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav a {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav a:hover {
  color: var(--coral);
}

.nav a.nav-cta {
  background: var(--coral);
  color: #ffffff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.nav a.nav-cta:hover {
  background: var(--coral-dark);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.stat-card-warm {
  position: relative;
  background: var(--grad-sunrise);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.stat-card-warm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,10,10,0.34) 0%, rgba(26,10,10,0.16) 45%, rgba(26,10,10,0.40) 100%);
  pointer-events: none;
}

.stat-card-warm > * { position: relative; }

/* ---------- Hero ---------- */
/* Type block on the site's left margin, a quote request on the right.
   The card is the second thing a visitor needs: what it costs. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: stretch;
  background: var(--gray-50);
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--topbar-height) + var(--header-height) + clamp(2.5rem, 5vw, 4.5rem)) var(--space-lg) clamp(2.5rem, 5vw, 4.5rem);
  padding-left: max(var(--space-lg), calc((100vw - var(--max-width)) / 2 + var(--space-lg)));
}

.hero-content > * { max-width: 34rem; }

.hero-content h1 {
  font-size: clamp(2.4rem, 4.1vw, 3.6rem);
  line-height: 1.04;
  margin-bottom: var(--space-lg);
}

/* One gesture, not three: the word for transparency is set in a lighter ink.
   0.65 measures 5.4:1 on paper and 7.3:1 on the dark ground, so it reads as a
   tonal step in a document rather than as faded-out text. main.js gives this
   word the longest fade, so it is the one still resolving while the others
   have settled. Marked up from lang home.hero_title_soft. */
.hero-soft { opacity: 0.65; }

/* A two-character CJK block reads as a denser patch than a lowercase Latin
   word at the same alpha, so Chinese gets a lighter hand. Same reasoning as
   the zh measure override on .quote-card__note. */
html[lang^="zh"] .hero-soft { opacity: 0.72; }

.hero-content p {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* Right half: a warehouse photograph with the quote card sitting on it.
   The card is opaque and carries its own elevation, so the photo reads as a
   field behind it rather than as decoration competing with the form. */
.hero-quote {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--gray-200);
  padding: calc(var(--topbar-height) + var(--header-height) + clamp(2rem, 4vw, 3.5rem)) var(--space-lg) clamp(2rem, 4vw, 3.5rem);
  padding-right: max(var(--space-lg), calc((100vw - var(--max-width)) / 2 + var(--space-lg)));
}

.hero-quote__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.quote-card {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: var(--page-background);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.quote-card__title {
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

.quote-card__note {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: var(--space-lg);
  max-width: 34ch;
}

/* ch is an English measure; on CJK it leaves a stranded last line. */
html[lang^="zh"] .quote-card__note { max-width: none; }

.quote-field { margin-bottom: var(--space-lg); }

.quote-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 0.125rem;
}

.quote-field input {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--gray-400);
  background: none;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--gray-900);
  border-radius: 0;
}

.quote-field input:focus {
  outline: none;
  border-bottom-color: var(--gray-900);
  box-shadow: 0 2px 0 0 var(--coral);
}

/* Country pickers use the same underline field as the weight input. The chevron
   is a mask, not a baked image, so it follows the theme tokens in dark mode. */
.quote-field select {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--gray-400);
  background: none;
  padding: 0.5rem 1.5rem 0.5rem 0;
  font-size: 1rem;
  color: var(--gray-900);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.quote-field select:focus {
  outline: none;
  border-bottom-color: var(--gray-900);
  box-shadow: 0 2px 0 0 var(--coral);
}

.quote-field select:invalid {
  color: var(--gray-400);
}

.quote-select {
  position: relative;
}

.quote-select::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-color: var(--gray-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  transition: background-color var(--transition-fast);
}

.quote-select:focus-within::after {
  background-color: var(--gray-900);
}

.quote-weight {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.quote-weight span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex: none;
}

.quote-card__submit {
  width: 100%;
  margin-top: var(--space-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform 130ms var(--ease-out);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--coral);
  color: #ffffff;
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-500);
  color: var(--gray-900);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 90ms;
}

.btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: block;
  background: var(--grad-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  color: inherit;
}

a.card,
a.card:hover {
  color: inherit;
  text-decoration: none;
}

.card:hover {
  border-color: var(--gray-400);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--coral-light) 0%, var(--ember-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--coral);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Features ---------- */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.feature-list-content h2 {
  margin-bottom: var(--space-lg);
}

.feature-list-content > p {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.feature-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--coral-light) 0%, var(--ember-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--coral);
}

.feature-item h4 {
  margin-bottom: var(--space-xs);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.feature-list-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--coral);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto var(--space-lg);
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: var(--gray-200);
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
}

.cta h2 {
  margin-bottom: var(--space-md);
}

.cta p {
  font-size: 1.125rem;
  color: var(--gray-400);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--topbar-height) + var(--header-height) + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(2rem, 4vw, 3.5rem);
  background: var(--gray-50);
  position: relative;
}

.page-hero .container { position: relative; }

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--text-body);
  max-width: 40rem;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--surface-raised);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color var(--transition-base);
}

.service-card:hover {
  border-color: var(--gray-400);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--coral-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--coral);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
}

.service-card ul {
  margin-bottom: var(--space-lg);
}

.service-card ul li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

/* ---------- Tracking Form ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--input-background);
  transition: border-color var(--transition-fast);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select:invalid {
  color: var(--gray-400);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

/* ---------- Service Classes ---------- */
.service-classes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  align-items: stretch;
}

.service-class {
  flex: 0 1 calc(25% - var(--space-lg));
  min-width: 240px;
  display: flex;
  flex-direction: column;
  background: var(--grad-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition-base);
}

.service-class:hover {
  border-color: var(--gray-400);
}

.service-class-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--coral-light) 0%, var(--ember-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-class-icon svg {
  width: 22px;
  height: 22px;
  color: var(--coral);
}

.service-class h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.service-class-weight {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f87171;
  margin-bottom: var(--space-sm);
}

.service-class p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.service-class-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin: var(--space-xl) 0 0;
  padding: var(--space-lg);
  background: var(--surface-raised);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.service-class-note svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--coral);
  margin-top: 2px;
}

.service-class-note p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.service-class-note strong {
  color: var(--gray-900);
}

/* ---------- Rates Table ---------- */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.rates-table th,
.rates-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
}

.rates-table th {
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--gray-700);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rates-table td {
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.rates-table tr:hover td {
  background: var(--table-hover-background);
}

.rates-table .price {
  font-weight: 700;
  color: var(--gray-900);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info h2 {
  margin-bottom: var(--space-lg);
}

.contact-info > p {
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--coral-light) 0%, var(--ember-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--coral);
}

.contact-detail strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.contact-detail span {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--surface-raised);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  background: var(--input-background);
}

.contact-form .form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-content h2 {
  margin-bottom: var(--space-lg);
}

.about-content p {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.about-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-xl);
}

.value-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--coral-light) 0%, var(--ember-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.value-card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--coral);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Legal / Long-form Pages ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--gray-500);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: var(--space-2xl);
}

.legal h2 {
  font-size: 1.25rem;
  margin: var(--space-2xl) 0 var(--space-md);
  letter-spacing: -0.01em;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p {
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

.legal ul {
  margin: 0 0 var(--space-md) var(--space-lg);
  padding: 0;
  list-style: none;
}

.legal ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--gray-600);
}

.legal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

.legal strong {
  color: var(--gray-900);
}

/* ---------- Footer ---------- */
.footer {
  background: #14100e;
  color: rgba(255,255,255,0.78);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.66);
  max-width: 300px;
}

.footer h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.footer ul li {
  margin-bottom: var(--space-sm);
}

.footer ul a {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.72);
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ---------- Motion ---------- */
/* Entrance motion is driven by GSAP in main.js; see the three hooks there:
     data-hero          one element of the above-the-fold first impression
     data-reveal        one element that rises in when it scrolls into view
     data-reveal-group  a container whose direct children rise in, staggered
   The hidden start state lives here, and only under `.js-motion`, which the
   inline head script adds when JavaScript is on and the visitor has not
   asked for reduced motion. Without that class every element above is
   simply visible, so a failed script cannot blank the page. */
.js-motion [data-hero],
.js-motion [data-hero-word],
.js-motion [data-reveal],
.js-motion [data-reveal-group] > * {
  opacity: 0;
}

/* Printing never runs requestAnimationFrame, so a section revealed on scroll
   would print blank. The end state wins on paper. */
@media print {
  .js-motion [data-hero],
  .js-motion [data-hero-word],
  .js-motion [data-reveal],
  .js-motion [data-reveal-group] > * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* ---------- Inside our operations ---------- */
.operations-page-hero {
  text-align: center;
  padding-bottom: var(--space-3xl);
}

.operations-page-hero .container {
  max-width: 1000px;
}

.operations-page-hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.operations-page-hero p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.operations-process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-4xl);
  align-items: center;
}

.operations-section-heading {
  max-width: 42rem;
  margin-bottom: var(--space-2xl);
}

.operations-section-heading h2 {
  margin-bottom: var(--space-md);
}

.operations-section-heading p {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.operations-process-list {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.operations-process-step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.operations-process-number {
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding-top: 0.2rem;
}

.operations-process-step h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.operations-process-step p {
  color: var(--gray-500);
  max-width: 54ch;
  margin-bottom: 0;
}

.operations-photo {
  min-width: 0;
  margin: 0;
}

.operations-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  outline: 1px solid rgba(0,0,0,0.1);
  outline-offset: -1px;
  box-shadow: var(--shadow-lg);
}

.operations-photo figcaption {
  padding-top: var(--space-sm);
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.5;
}

.operations-photo--freight img {
  aspect-ratio: 16 / 10;
  max-height: 560px;
}

.operations-gallery-heading {
  margin-bottom: var(--space-2xl);
}

.operations-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-2xl) var(--space-3xl);
  align-items: start;
}

.operations-photo--parcels {
  grid-row: span 2;
}

.operations-photo--parcels img {
  aspect-ratio: 5 / 6;
}

.operations-photo--warehouse img,
.operations-photo--cartons img {
  aspect-ratio: 4 / 3;
}

.operations-video-section .operations-section-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-2xl);
}

.operations-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
  max-width: 34rem;
  margin: 0 auto;
}

.operations-video-item {
  min-width: 0;
}

.operations-video-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.operations-video-trigger {
  display: block;
  position: relative;
  width: min(100%, 13.5rem);
  list-style: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin: 0 auto;
  touch-action: manipulation;
  transition: transform var(--transition-fast);
}

.operations-video-trigger::-webkit-details-marker {
  display: none;
}

.operations-video-trigger::marker {
  content: '';
}

.operations-video-trigger:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.operations-video-trigger:active {
  transform: scale(0.99);
}

.operations-video-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-lg);
  outline: 1px solid rgba(255,255,255,0.14);
  outline-offset: -1px;
}

.operations-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  color: var(--white);
  background: rgba(16,32,31,0.84);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.operations-video-play-icon,
.operations-video-collapse-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.operations-video-play-icon {
  fill: currentColor;
  margin-left: 0.15rem;
}

.operations-video-collapse-icon {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .operations-video-trigger:hover .operations-video-play {
    background: var(--coral);
  }
}

.operations-video-trigger:active .operations-video-play {
  transform: translate(-50%, -50%) scale(0.94);
}

/* Open state: the player takes the poster's place in the grid cell instead of
   appearing under it. The summary stays as a close control pinned over the
   video, so there is still a way to collapse it. */
.operations-video-item {
  position: relative;
}

.operations-video-item[open] .operations-video-trigger {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  z-index: 2;
  background: rgba(16,32,31,0.84);
}

.operations-video-item[open] .operations-video-thumbnail {
  display: none;
}

.operations-video-item[open] .operations-video-play {
  position: static;
  width: 100%;
  height: 100%;
  transform: none;
  background: transparent;
  box-shadow: none;
}

@media (hover: hover) {
  .operations-video-item[open] .operations-video-trigger:hover {
    background: var(--coral);
  }

  .operations-video-item[open] .operations-video-trigger:hover .operations-video-play {
    background: transparent;
  }
}

.operations-video-item[open] .operations-video-play-icon {
  display: none;
}

.operations-video-item[open] .operations-video-collapse-icon {
  display: block;
}

.operations-video {
  display: block;
  width: min(100%, 13.5rem);
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  margin: 0 auto;
  background: #0b0b0b;
  border-radius: var(--radius-lg);
  outline: 1px solid rgba(255,255,255,0.12);
  outline-offset: -1px;
}

.operations-context-link {
  margin: var(--space-lg) 0 0;
  font-weight: 700;
}

html[lang^="zh"] .operations-page-hero,
html[lang^="zh"] .operations-process,
html[lang^="zh"] .operations-gallery,
html[lang^="zh"] .operations-video-section,
html[lang^="zh"] .operations-contact {
  line-height: 1.75;
}

html[lang^="zh"] .operations-page-hero h1,
html[lang^="zh"] .operations-section-heading h2,
html[lang^="zh"] .operations-process-step h3 {
  letter-spacing: normal;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .topbar-news-text {
    font-size: 0.75rem;
  }

  .card-grid,
  .card-grid--2,
  .card-grid--4,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-class {
    flex-basis: calc(50% - var(--space-lg));
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .feature-list,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-list-visual {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .operations-process-layout {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .operations-photo--freight {
    order: -1;
  }

  .operations-gallery-grid {
    gap: var(--space-xl);
  }

  .operations-photo--parcels img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 768px) {
  /* The topbar shrinks on mobile; moving the custom property (not just the
     height) keeps .header's top offset and every calc() that stacks on
     --topbar-height in sync, instead of leaving a gap band between the bars. */
  :root {
    --topbar-height: 40px;
  }

  .topbar-news {
    display: none;
  }

  .topbar .container {
    justify-content: flex-end;
  }

  .topbar-actions {
    gap: var(--space-md);
  }

  .nav {
    position: fixed;
    top: calc(var(--topbar-height) + var(--header-height));
    left: 0;
    right: 0;
    background: var(--header-background);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .card-grid,
  .values-grid,
  .steps,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-class {
    flex-basis: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .operations-page-hero h1 {
    font-size: 2rem;
  }

  .operations-page-hero p {
    font-size: 1.125rem;
  }

  .operations-section-heading {
    text-align: left;
  }

  .operations-gallery-grid {
    grid-template-columns: 1fr;
  }

  .operations-photo--parcels {
    grid-row: auto;
  }

  .operations-photo--parcels img,
  .operations-photo--warehouse img,
  .operations-photo--cartons img {
    aspect-ratio: 4 / 3;
  }

  .operations-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    max-width: 36rem;
  }

  .operations-video-play {
    width: 2.75rem;
    height: 2.75rem;
  }
}


/* ----------------------------------------------------------
 * Chinese brand wordmark
 * Subsetted to the 5 glyphs in 松速快递 / 松速快遞 (2.7KB woff2),
 * so we get a real Chinese face without shipping a 12MB CJK font.
 * ---------------------------------------------------------- */
@font-face {
  font-family: 'SongsuWordmark';
  src: url('/assets/fonts/songsu-wordmark.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.header-logo-cn {
  font-family: 'SongsuWordmark', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--gray-900);
  letter-spacing: 0.08em;
  margin-left: 0.125rem;
  padding-left: 0.625rem;
  border-left: 1px solid var(--gray-200);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-logo-cn {
    font-size: 1.125rem;
    padding-left: 0.5rem;
  }
}

:root[data-theme="dark"] .header {
  backdrop-filter: none;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  width: auto;
  min-width: 40px;
  height: 26px;
  padding: 3px 8px;
  line-height: 18px;
  border: 1px solid var(--topbar-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--topbar-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition-property: color, background-color, border-color, transform;
  transition-duration: 150ms;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 40px;
  transform: translateY(-50%);
}

@media (hover: hover) {
  .theme-toggle:hover {
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
  }
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.theme-toggle-icon--sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-icon--moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-icon--sun {
  display: block;
}

@media (max-width: 768px) {
  .topbar-actions {
    gap: 0.55rem;
  }

  .theme-toggle {
    width: 40px;
    padding: 3px 0;
  }

  .theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 480px) {
  .topbar-actions {
    gap: 0.4rem;
  }

  .theme-toggle {
    height: 24px;
    line-height: 16px;
  }

  .topbar-track {
    height: 24px;
  }

  .topbar-track__input {
    width: 7.5rem;
    font-size: 0.72rem;
  }

  .topbar-track__submit {
    gap: 0.25rem;
    padding: 0 0.4rem;
    font-size: 0.72rem;
  }

  .topbar-track__submit svg {
    width: 12px;
    height: 12px;
  }

  .lang-toggle {
    gap: 0.25rem;
    padding: 3px 5px;
    font-size: 0.72rem;
  }

  .lang-toggle svg {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 360px) {
  /* The submit keeps its words at every width: the field carries no
     placeholder, so "Track shipment" is the only visible cue for what the
     input is for. Shrink the field instead of hiding the label. */
  .topbar-actions {
    gap: 0.3rem;
  }

  .topbar-track__input {
    width: 4.25rem;
    padding: 0 0.35rem;
  }

  .topbar-track__submit {
    gap: 0.2rem;
    padding: 0 0.3rem;
    font-size: 0.66rem;
  }

  .topbar-track__submit svg {
    width: 11px;
    height: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .theme-toggle {
    transition-duration: 0ms;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Shared market-summary panel used by the homepage and fulfilment page. */
.feature-preview {
  padding: var(--space-2xl);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--feature-preview-background);
  text-align: center;
}

.feature-preview-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--coral-light);
}

.feature-preview-mark svg {
  width: 40px;
  height: 40px;
  color: var(--coral);
}

.feature-preview-title {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-preview-subtitle {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.feature-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

.feature-preview-item {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-background);
}

.feature-preview-item strong,
.feature-preview-item span {
  display: block;
}

.feature-preview-item strong {
  color: var(--text-primary);
  font-weight: 700;
}

.feature-preview-item span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  .feature-preview {
    padding: var(--space-xl);
  }

  .feature-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile: stop iOS focus zoom. Mobile Safari zooms when a focused text
   control computes under 16px and leaves the page zoomed. The viewport
   meta's maximum-scale is ignored by iOS 10+, so the floor is the fix.
   Class selectors included: .form-input and friends out-specify a
   bare element list. pointer: coarse catches tablets over 768px. */
@media (pointer: coarse), screen and (max-width: 768px) {
    input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']):not([type='reset']):not([type='range']):not([type='file']):not([type='color']),
    select,
    textarea,
    .input,
    .textarea,
    .select select,
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px !important;
    }
}

/* ============================================================
   Home — editorial layout
   ------------------------------------------------------------
   The right-hand half of the page, the tariff table and the
   dark step band do the work. Nothing here is a rounded card.
   ============================================================ */

/* Left-aligned section head: heading on the left edge, the supporting
   sentence closing the far side of the same grid. */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--space-xl) clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.sec-head h2 { max-width: 20ch; }

/* When the section carries a fixed-width aside (the weight finder), the
   supporting sentence takes that same column, so its left edge lines up
   with the aside below it instead of stepping inwards. */
.sec-head--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); }

.sec-head p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 42ch;
  margin: 0;
  justify-self: start;
}

/* ---------- Tariff: the table, plus the weight finder ---------- */
.tariff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.tariff-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tariff-table th {
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0 var(--space-md) 0.625rem 0;
  border-bottom: 2px solid var(--gray-900);
}

.tariff-table td {
  padding: 1.125rem var(--space-md) 1.125rem 0;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.tariff-table th:last-child,
.tariff-table td:last-child {
  text-align: right;
  padding-right: 0;
}

.tariff-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--gray-900);
  white-space: nowrap;
}

.tariff-band { white-space: nowrap; }

.tariff-price {
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
}

.tariff-note {
  margin: var(--space-lg) 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 52ch;
}

/* Weight finder. Runs on the same four classes the table lists, so the
   answer can never disagree with the published tariff. */
.rate-finder {
  background: var(--gray-50);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}

.rate-finder h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-md);
}

.rate-finder label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.rate-finder__field {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  border-bottom: 2px solid var(--gray-900);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.rate-finder__field input {
  border: 0;
  background: none;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.rate-finder__field input:focus { outline: none; }

.rate-finder__field:focus-within {
  border-color: var(--gray-900);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35);
}

.rate-finder__field span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  /* CJK unit labels are two characters wide; splitting "公斤" across lines
     leaves a stranded glyph beside the input. */
  white-space: nowrap;
  flex: none;
}

.rate-finder__out {
  min-height: 5.5rem;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.rate-finder__out .hit {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border-color);
  font-variant-numeric: tabular-nums;
}

.rate-finder__out .hit:last-child { border-bottom: 0; }

.rate-finder__out .hit strong { color: var(--gray-900); }

.rate-finder__out .empty { color: var(--text-secondary); }

/* ---------- What we do: photograph beside a linked list ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
}

.split__media {
  position: relative;
  min-height: clamp(320px, 34vw, 520px);
  background: var(--gray-200);
}

.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.do-list { display: block; }

.do-item {
  padding: clamp(1.25rem, 2vw, 1.75rem) 0;
  border-top: 1px solid var(--border-color);
}

.do-item:first-child { border-top: 0; padding-top: 0; }

.do-item h3 { margin-bottom: var(--space-sm); }
.do-item h3 a { color: var(--gray-900); }
.do-item h3 a:hover { color: var(--coral); }

.do-item p {
  color: var(--text-body);
  margin-bottom: 0;
  max-width: 52ch;
}

/* ---------- How it works: dark ink band ---------- */
.steps-band {
  background: var(--band-ink);
  color: var(--band-ink-muted);
}

.steps-band .sec-head h2 { color: #ffffff; }
.steps-band .sec-head p { color: rgba(255,255,255,0.66); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: formula-step;
}

.step-item {
  border-top: 2px solid rgba(255,255,255,0.3);
  padding-top: var(--space-md);
}

.step-item::before {
  counter-increment: formula-step;
  content: counter(formula-step);
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: var(--space-sm);
}

.step-item h3 {
  color: #ffffff;
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}

.step-item p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.76);
  margin: 0;
}

/* ---------- Why: statement left, points right ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.why-grid h2 { max-width: 16ch; margin-bottom: var(--space-md); }
.why-grid > div > p {
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text-body);
  max-width: 32ch;
}
.why-grid .link-arrow { margin-top: var(--space-md); }

.point-list { margin: 0; }

.point-list > div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
}

.point-list > div:first-child { border-top: 0; padding-top: 0; }

.point-list dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 0.375rem;
}

.point-list dd { color: var(--text-body); margin: 0; }

/* ---------- Coverage: a type-only band ---------- */
/* No photograph here. The honest pictures of scale we have are courier work,
   not a world map, and an invented map would be worse than none. The figure
   and the regions carry it. */
.coverage-section { background: var(--gray-50); }

.coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.coverage-grid h2 { margin-bottom: var(--space-md); }

.coverage-claim {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  max-width: 16ch;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-2xl);
}

.region-list > div {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
}

.region-list strong {
  display: block;
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.region-list span {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ---------- Closing band ---------- */
.cta-band {
  background: var(--coral-dark);
  color: #ffffff;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-xl);
  align-items: center;
}

.cta-band h2 {
  color: #ffffff;
  max-width: 22ch;
  margin-bottom: var(--space-sm);
}

.cta-band p {
  color: rgba(255,255,255,0.86);
  margin: 0;
  max-width: 42ch;
}

.cta-band .btn {
  background: #ffffff;
  color: var(--coral-dark);
  border-color: #ffffff;
}

.cta-band .btn:hover {
  background: var(--band-ink);
  border-color: var(--band-ink);
  color: #ffffff;
}

/* Arrow text link, used where a second button would add nothing. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--gray-900);
  border-bottom: 2px solid var(--gray-300);
  padding-bottom: 2px;
}

.link-arrow:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.link-arrow svg { transition: transform var(--transition-fast); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Home responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  .hero-quote {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .quote-card { margin: 0 auto; max-width: 32rem; }

  .tariff-layout,
  .split,
  .why-grid,
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .split__media { aspect-ratio: 16 / 9; min-height: 0; }

  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sec-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sec-head p { justify-self: start; }

  .cta-band__inner { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero-content h1 { font-size: 2.25rem; }
  .page-hero h1 { font-size: 2rem; }

  .tariff-table th:nth-child(3),
  .tariff-table td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }

  .region-list { grid-template-columns: 1fr; }

  .tariff-table td { padding-top: var(--space-md); padding-bottom: var(--space-md); }
}

/* Stacked variant used inside a column that already has its own grid. */
.sec-head--stack {
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.sec-head--stack p { justify-self: start; }

/* ---------- Full-bleed photograph with a note panel on the left margin ---------- */
.photo-band {
  position: relative;
  background: var(--gray-200);
}

.photo-band__media img {
  width: 100%;
  height: clamp(300px, 42vh, 460px);
  object-fit: cover;
  display: block;
}

.photo-band__panel {
  position: absolute;
  left: max(var(--space-lg), calc((100vw - var(--max-width)) / 2 + var(--space-lg)));
  bottom: clamp(1.5rem, 4vw, 3rem);
  width: min(30rem, calc(100% - 2 * var(--space-lg)));
  background: var(--page-background);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.photo-band__panel p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-body);
}

.photo-band__panel strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .photo-band__panel {
    position: static;
    width: auto;
  }
}

/* ---------- Quote card result ---------- */
.quote-result {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.quote-result__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  margin: 0 0 0.375rem;
}

.quote-result__price {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
  font-variant-numeric: tabular-nums;
}

.quote-result__meta {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin: 0 0 var(--space-sm);
}

.quote-result__note {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0 0 var(--space-md);
}

.quote-result__plain {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0 0 var(--space-md);
}

.quote-result__book {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--coral-dark);
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
}

.quote-result__book:hover { color: var(--coral-dark); }

/* Lane guidance beside the form: which origin to pick, an origin we cannot
   quote online yet, or a weight above the public ceiling. */
.quote-notice {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-body);
  margin: var(--space-sm) 0 0;
}

.quote-notice[hidden] { display: none; }

/* Keep the button's own busy state legible. */
.quote-card__submit[disabled] { opacity: 0.72; cursor: progress; }
