/* ==========================================================================
   AEGX TRADE — design system
   ========================================================================== */

:root {
  --ink: #12161f;
  --ink-soft: #4b5461;
  --ink-faint: #8b93a1;
  /* Primary. Back to the original near-black navy.
     --navy-rgb and --navy-deep-rgb exist so the twenty-odd translucent
     overlays derive from these two values rather than repeating them —
     the hero wash, the stats plinth, the mobile scrim, the card shadows.
     Changing the primary is changing these lines. */
  --navy: #0d1826;
  --navy-rgb: 13, 24, 38;
  --navy-soft: #16273d;
  --navy-deep-rgb: 8, 15, 25;
  --paper: #faf8f3;
  --surface: #ffffff;
  --border: #e6e1d4;
  --border-dark: #263650;
  --gold: #ac8144;
  --gold-soft: #e8d9bd;
  --gold-tint: #f5eee0;

  --serif: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 4.6vw, 4.8rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

@media (max-width: 480px) {
  body { font-size: 16px; }
}

/* On a dark surface the gold eyebrow drops to 2.25:1 against the lighter
   primary. Scoped rather than global: .eyebrow also sits on white cards, where
   gold-soft would be 1.39:1 — worse than what we are fixing. */
.hero .eyebrow,
.footer .eyebrow,
.band-dark .eyebrow { color: var(--gold-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.container {
  max-width: min(1640px, 94vw);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 64px 0;
}

.section--tight { padding: 44px 0; }

.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section--tight { padding: 36px 0; }
}

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

/* The HTML hidden attribute must beat any author display rule. .btn sets
   display:inline-flex, so `<a class="btn" hidden>` stayed visible — which is
   why the Compare button and Start over showed with nothing to act on. */
[hidden] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: #96703a; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(var(--navy-rgb), 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand small {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}

.brand-img {
  height: 34px;
  width: auto;
  display: block;
}

.footer-brand .brand-img { height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover { color: #fff; }

.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Custom language dropdown */
.lang-switch { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.88);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.lang-btn svg { width: 16px; height: 16px; color: var(--gold-soft); }
.lang-btn .chev { width: 10px; height: 6px; transition: transform 0.2s ease; }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-btn:hover { border-color: var(--gold); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 170px;
  background: var(--navy);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}

.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 2px;
  cursor: pointer;
}

.lang-menu li:hover { background: var(--navy-soft); color: #fff; }
.lang-menu li.active { color: var(--gold-soft); }

.lang-menu .code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-soft);
  flex-shrink: 0;
}

/* Chinese typography */
html[lang="zh-hans"] body,
html[lang="zh-hans"] input,
html[lang="zh-hans"] select,
html[lang="zh-hans"] textarea,
html[lang="zh-hans"] .btn {
  font-family: "Noto Sans SC", var(--sans);
}

html[lang="zh-hans"] h1,
html[lang="zh-hans"] h2,
html[lang="zh-hans"] h3,
html[lang="zh-hans"] h4 {
  font-family: "Noto Sans SC", "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-cta:hover { background: #96703a; transform: translateY(-1px); }

/* Animated hamburger — 3 bars that morph into an X */
.nav-toggle {
  display: none;
  position: relative;
  width: 26px;
  height: 18px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}
.nav-toggle .bar:nth-child(1) { top: 0; }
.nav-toggle .bar:nth-child(2) { top: 8px; }
.nav-toggle .bar:nth-child(3) { top: 16px; }

.nav-toggle.open .bar:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Full-screen mobile nav overlay */
.nav-mobile {
  display: none;
}

body.nav-open { overflow: hidden; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    z-index: 39;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-mobile.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-mobile a {
    font-family: var(--serif);
    font-size: 2.1rem;
    color: #fff;
    text-decoration: none;
  }

  .nav-mobile a.active { color: var(--gold-soft); }

  .nav-mobile a.nav-cta {
    font-family: var(--sans);
    font-size: 1rem;
    margin-top: 12px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(172,129,68,0.16), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(172,129,68,0.12), transparent 40%);
}

.hero-routes {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  padding: 120px 0 88px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner .eyebrow { justify-content: center; }

.hero h1 {
  color: #fff;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lede {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.2em;
}

.hero-inner .hero-actions { justify-content: center; }

@media (max-width: 640px) {
  .hero-inner { padding: 88px 0 64px; }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  border-top: 1px solid var(--border-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stat {
  padding: 32px;
  border-right: 1px solid var(--border-dark);
}
.hero-stat:last-child { border-right: none; }

.hero-stat .num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold-soft);
  display: block;
}

.hero-stat .label {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid var(--border-dark); padding: 24px 20px; }
}

/* ---------- Category grid ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.cat-card {
  background: var(--surface);
  padding: 32px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 180px;
}

.cat-card:hover { background: var(--gold-tint); }

.cat-card .icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.cat-card h3 { margin: 0; font-size: 1.12rem; }

.cat-card .count {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- Value props ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Cards with oversized watermark numerals */
.value-item {
  position: relative;
  background: var(--navy-soft);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.value-item:hover { border-color: var(--gold); transform: translateY(-3px); }

.value-item .step-num {
  position: absolute;
  top: -6px;
  inset-inline-end: 10px;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: none;
  font-size: 5rem;
  line-height: 1.1;
  color: rgba(172, 129, 68, 0.22);
  margin: 0;
  z-index: 0;
}

.value-item h3 { margin-bottom: 0.4em; font-size: 1.15rem; position: relative; }
.value-item p { margin: 0; font-size: 0.95rem; position: relative; }

@media (max-width: 860px) {
  .value-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Full-bleed category showcase (home) ---------- */

.showcase {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  background-image: var(--showcase-image);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--navy-rgb), 0.68);
}

.showcase-inner {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase .eyebrow { justify-content: center; }

.showcase h2 { color: #fff; max-width: 640px; margin-left: auto; margin-right: auto; }

.showcase .lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin: 0 auto 2em;
}

.showcase .hero-actions { justify-content: center; }

/* ---------- Category wheel infographic ---------- */

.cat-wheel {
  position: relative;
  width: 900px;
  height: 900px;
  margin: 0 auto;
}

.cat-wheel-ring {
  position: absolute;
  inset: 150px;
  border: 1.5px dashed rgba(172, 129, 68, 0.55);
  border-radius: 50%;
}

.cat-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.cat-wheel-center .num {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-soft);
}

.cat-wheel-center .label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  max-width: 160px;
}

.cat-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210px;
  margin-top: -70px;
  margin-left: -105px;
  transform: rotate(var(--a)) translateY(-310px) rotate(calc(-1 * var(--a)));
  text-align: center;
  text-decoration: none;
}

.cat-node-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cat-node-icon svg { width: 34px; height: 34px; }

.cat-node:hover .cat-node-icon {
  border-color: var(--gold);
  background: var(--gold-tint);
  transform: scale(1.08);
}

.cat-node-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.cat-node:hover .cat-node-label { color: var(--gold); }

/* Chips fallback for small screens */
.cat-chips { display: none; }

@media (max-width: 860px) {
  .cat-wheel { display: none; }

  .cat-chips {
    display: grid;
    /* minmax(0, 1fr), not 1fr — see .field-grid. A chip is a fixed 42px icon
       beside a label, and "Construction" does not break, so the auto floor came
       out at 190px a track on a screen with 312px to give. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .cat-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
  }

  .cat-chip .cat-node-icon {
    width: 42px;
    height: 42px;
    margin: 0;
    flex-shrink: 0;
  }

  .cat-chip .cat-node-icon svg { width: 22px; height: 22px; }

  .cat-chip .cat-node-label {
    text-align: start;
    font-size: 0.82rem;
    /* A flex item defaults to min-width: auto, which is min-content — the
       longest word. Category names are long compound words. */
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* ---------- Category index (home) ---------- */

.cat-index {
  border-top: 1px solid var(--border);
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s ease, padding 0.18s ease;
}

.cat-row:hover { background: var(--gold-tint); padding-inline-start: 20px; }

.cat-row-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  min-width: 28px;
}

.cat-row-icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
  display: inline-flex;
}
.cat-row-icon svg { width: 100%; height: 100%; }

.cat-row-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.cat-row-count {
  margin-inline-start: auto;
  font-size: 0.85rem;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.cat-row-arrow {
  font-size: 1.3rem;
  color: var(--border-dark);
  transition: transform 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.cat-row:hover .cat-row-arrow { color: var(--gold); transform: translateX(6px); }

[dir="rtl"] .cat-row-arrow { transform: scaleX(-1); }
[dir="rtl"] .cat-row:hover .cat-row-arrow { transform: scaleX(-1) translateX(6px); }

[dir="rtl"] .cat-row-name { font-family: "Cairo", sans-serif; }

@media (max-width: 640px) {
  .cat-row { gap: 14px; padding: 18px 4px; }
  .cat-row-count { display: none; }
}

/* ---------- How-it-works vertical journey ---------- */

/* Navy band — centered head + stat-bar steps */
.howworks-band { background: var(--navy); }

.howworks-band .eyebrow { color: var(--gold-soft); justify-content: center; }
.howworks-band .eyebrow::before { background: var(--gold-soft); }

.howworks-band h2 { color: #fff; }

.howworks-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.howworks-lede {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 24px;
}

.steps-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.sbar-item {
  padding: 36px 28px;
  border-inline-end: 1px solid var(--border-dark);
}

.sbar-item:last-child { border-inline-end: none; }

.sbar-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 16px;
}

.sbar-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.4em; }
.sbar-item p { margin: 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.68); }

@media (max-width: 960px) {
  .steps-bar { grid-template-columns: 1fr 1fr; }
  .sbar-item:nth-child(2n) { border-inline-end: none; }
  .sbar-item:nth-child(-n+2) { border-bottom: 1px solid var(--border-dark); }
}

@media (max-width: 560px) {
  .steps-bar { grid-template-columns: 1fr; }
  .sbar-item { border-inline-end: none; border-bottom: 1px solid var(--border-dark); }
  .sbar-item:last-child { border-bottom: none; }
}

.btn-sm { padding: 11px 22px; font-size: 0.88rem; }

.howworks-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.howworks-head h2 { margin-bottom: 0.8em; }

.steps-vertical {
  display: flex;
  flex-direction: column;
}

.vstep {
  position: relative;
  display: flex;
  gap: 26px;
  padding-bottom: 40px;
}

.vstep:last-child { padding-bottom: 0; }

.vstep:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  inset-inline-start: 22px;
  bottom: 4px;
  border-inline-start: 1px dashed rgba(172, 129, 68, 0.55);
}

.vstep .step-num { flex-shrink: 0; margin-bottom: 0; }

.vstep-body { padding-top: 8px; }
.vstep-body h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
.vstep-body p { margin: 0; font-size: 0.95rem; }

@media (max-width: 900px) {
  .howworks-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- How-it-works steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.step-item {
  position: relative;
  padding-top: 4px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 18px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

/* Timeline connector between step circles */
.step-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 26px;
  inset-inline-start: 56px;
  width: calc(100% - 44px);
  border-top: 1px dashed rgba(172, 129, 68, 0.55);
}

.step-item h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.step-item p { margin: 0; font-size: 0.95rem; }

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-item::before { display: none; }
}

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

/* ---------- Trade routes map ---------- */

.routes-map {
  width: 100%;
  height: auto;
  display: block;
  margin: 8px 0 40px;
}

.map-dots circle {
  fill: rgba(255,255,255,0.13);
}

.map-dots.egypt circle {
  fill: rgba(172,129,68,0.55);
}

.route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
  opacity: 0.75;
  animation: route-drift 26s linear infinite;
}

.route.r2 { animation-duration: 32s; opacity: 0.6; }
.route.r3 { animation-duration: 38s; opacity: 0.5; }
.route.r4 { animation-duration: 22s; opacity: 0.7; }
.route.r5 { animation-duration: 24s; opacity: 0.6; }

@keyframes route-drift {
  to { stroke-dashoffset: -600; }
}

@media (prefers-reduced-motion: reduce) {
  .route { animation: none; }
}

.port { fill: var(--gold-soft); }

.ship-dot {
  fill: var(--gold-soft);
  filter: drop-shadow(0 0 4px rgba(232, 217, 189, 0.8));
}

@media (prefers-reduced-motion: reduce) {
  .ship-dots { display: none; }
}

.hub { fill: var(--gold); }

.hub-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0.5;
  transform-origin: 760px 235px;
  animation: hub-pulse 3s ease-out infinite;
}

@keyframes hub-pulse {
  0% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.port-label {
  fill: rgba(255,255,255,0.75);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.hub-label {
  fill: var(--gold-soft);
  font-weight: 600;
  font-size: 16px;
}

[dir="rtl"] .port-label { font-family: "Cairo", var(--sans); }

.transit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-dark);
}

.transit-item {
  padding: 22px 24px;
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.transit-item:last-child { border-right: none; }
[dir="rtl"] .transit-item { border-right: none; border-left: 1px solid var(--border-dark); }
[dir="rtl"] .transit-item:last-child { border-left: none; }

.transit-item .k {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.transit-item .v {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold-soft);
}

[dir="rtl"] .transit-item .v { font-family: "Cairo", sans-serif; }

.transit-note {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
}

/* Light variant — routes section on white with navy/gold illustration */
.routes-band { background: var(--surface); border-bottom: 1px solid var(--border); }

.routes-band .map-dots circle { fill: rgba(32, 71, 133, 0.55); }
.routes-band .map-dots.egypt circle { fill: rgba(172, 129, 68, 0.85); }

.routes-band .route { opacity: 0.85; }

.routes-band .port { fill: var(--navy); }
.routes-band .hub { fill: var(--gold); }

.routes-band .port-label { fill: var(--ink-soft); }
.routes-band .hub-label { fill: var(--gold); }

.routes-band .ship-dot {
  fill: var(--gold);
  filter: drop-shadow(0 0 3px rgba(172, 129, 68, 0.6));
}

.routes-band .transit-grid { border-top: 1px solid var(--border); }
.routes-band .transit-item { border-color: var(--border); }
.routes-band .transit-item .k { color: var(--ink-faint); }
.routes-band .transit-item .v { color: var(--navy); }
.routes-band .transit-note { color: var(--ink-faint); }

@media (max-width: 760px) {
  .routes-band .transit-item { border-bottom: 1px solid var(--border); }
}

@media (max-width: 760px) {
  .transit-grid { grid-template-columns: 1fr 1fr; }
  .transit-item { border-bottom: 1px solid var(--border-dark); }
  .routes-map { margin-bottom: 24px; }
  .port-label { font-size: 19px; }
}

/* ---------- Bands ---------- */

.band-dark {
  background: var(--navy);
  color: #fff;
}
.band-dark h2 { color: #fff; }
.band-dark p { color: rgba(255,255,255,0.7); }

.band-cta {
  text-align: center;
  padding: 72px 0;
}

@media (max-width: 640px) {
  .band-cta { padding: 56px 0; }
}

.band-cta h2 { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.product-card .tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.product-card h3 { margin-bottom: 6px; }

.product-card .supplier {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.product-card .price {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 16px;
}

.price .unit { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-faint); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- About hero (text over photo) ---------- */

.about-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background-image: var(--about-image);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--navy-rgb), 0.72);
}

.about-hero-inner {
  position: relative;
  padding: 80px 32px;
  max-width: 900px;
}

.about-hero h1 { color: #fff; font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.about-hero p { color: rgba(255, 255, 255, 0.8); font-size: 1.08rem; margin: 0; }

@media (max-width: 640px) {
  .about-hero { min-height: 0; }
  .about-hero-inner { padding: 56px 20px; }
}

/* ---------- Why rows (about) ---------- */

.why-rows { border-top: 1px solid var(--border); }

.why-row {
  display: grid;
  grid-template-columns: 90px 0.9fr 1.4fr;
  gap: 32px;
  align-items: start;
  padding: 34px 8px;
  border-bottom: 1px solid var(--border);
}

.why-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.why-title h3 { margin: 0; font-size: 1.3rem; }

.why-row p { margin: 0; font-size: 0.98rem; }

@media (max-width: 760px) {
  .why-row { grid-template-columns: 60px 1fr; }
  .why-row p { grid-column: 2; }
}

/* ---------- Team / leadership ---------- */

.team-grid {
  display: grid;
  /* auto-FILL, not auto-fit. Splitting the team into two groups left Egypt
     with two cards, and auto-fit collapses the empty tracks so those two
     stretched to half the page each — with a 3/4 photo frame that is an
     enormous portrait. auto-fill keeps the empty tracks, so a card is the
     same size whether its group holds two people or six. */
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.team-card:hover { transform: translateY(-3px); border-color: var(--gold); }

.team-card .photo-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
}

.team-card .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .photo-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card .initial {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232,217,189,0.35);
  color: var(--gold-soft);
  font-family: var(--serif);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.team-card .caption { padding: 22px 24px 26px; }
.team-card h3 { margin-bottom: 4px; font-size: 1.2rem; }
.team-card p { margin: 0; font-size: 0.88rem; color: var(--ink-faint); }

@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-card .caption { padding: 16px; }
}

/* ---------- Forms ---------- */

.form-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.form-side {
  background: var(--navy);
  color: #fff;
  padding: 48px;
  /* A grid item defaults to min-width:auto, so the track grows to the item's
     min-content instead of the container. Here that made the panel 461px wide
     inside a 375px phone and the whole page scrolled sideways — which is what
     "the form moves the screen" was. min-width:0 lets it shrink. */
  min-width: 0;
}

.form-side h2 { color: #fff; }
.form-side p { color: rgba(255,255,255,0.7); }

.form-side .contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
}
.form-side .contact-line .k {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.form-side .contact-line .v { font-size: 0.95rem; }

/* Nothing in the panel may set the min-content floor back up: an address or a
   long word would otherwise widen the track again the moment it cannot break. */
.form-side h2,
.form-side p,
.form-side .contact-line .k,
.form-side .contact-line .v { overflow-wrap: anywhere; }

.form-main { padding: 44px 48px; }

.form-note {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 24px;
  margin-bottom: 8px;
}

.field-full { grid-column: 1 / -1; }

.field { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  /* An input carries an intrinsic width of its `size` attribute — 20 characters
     by default — and width:100% does not lower it. Any auto-sized track holding
     one is floored at that, which is how a 365px field ended up in a 215px
     column. */
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  border-radius: var(--radius);
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

/* Custom file uploader — native input invisibly stretched over the styled row */
.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 10px 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.file-drop:hover { border-color: var(--gold); }
.file-drop.has-file { border-style: solid; border-color: var(--gold); background: var(--gold-tint); }

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-btn {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 9px 18px;
  pointer-events: none;
}

.file-drop-name {
  font-size: 0.85rem;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.file-drop.has-file .file-drop-name { color: var(--ink); font-weight: 500; }

.field .errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: #b3413a;
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  /* minmax(0, 1fr), not 1fr. A bare 1fr means minmax(auto, 1fr), and that auto
     floors the track at the item's min-content — which here was 461px inside a
     375px phone, so the page scrolled sideways. min-width:0 on the item cannot
     fix it because the floor is on the track, not on the item. */
  .form-panel { grid-template-columns: minmax(0, 1fr); }
  /* 48px each side is 96px of a 375px screen — a quarter of the width spent on
     air before a word is read. */
  .form-side { padding: 32px 20px; }
  .form-main { padding: 32px 20px; }
}

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

/* The global `p` rule sets color: var(--ink-soft) — a dark grey — and that beat
   the colour inherited from any dark surface. The footer brand line was 1.03:1
   against the blue: not faint, invisible. Raising the footer's own alpha did
   nothing because the paragraph was never inheriting it. Anything textual on a
   dark band takes the band's colour now. */
.footer p,
.footer li,
.band-dark p,
.band-dark li { color: inherit; }

.footer {
  background: var(--navy);
  /* 60% white scored 7.0:1 on the old near-black navy and only 3.96:1 on the
     lighter primary — under the 4.5 minimum, which is why the footer blurb
     stopped being readable. 78% brings it back to 5.5:1. */
  color: rgba(255,255,255,0.78);
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 0.8fr;
  gap: 56px;
  padding: 56px 0 36px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 0.9rem; }

.footer-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}
.footer-fact .k {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer-fact .v { font-size: 0.88rem; color: rgba(255,255,255,0.75); }

.footer-cats ul.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 22px 0;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cats ul.two-col { grid-template-columns: 1fr; }
}

/* ---------- Pagination ---------- */

.pagination-simple {
  display: flex;
  gap: 12px;
  margin-top: 48px;
}
.pagination-simple a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--border-dark);
  padding: 10px 18px;
}
.pagination-simple a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- RTL (Arabic) ---------- */

[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea,
[dir="rtl"] .btn,
[dir="rtl"] .nav-links a,
[dir="rtl"] .eyebrow {
  font-family: "Cairo", var(--sans);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .price-tile .v, [dir="rtl"] .hero-stat .num, [dir="rtl"] .price {
  font-family: "Cairo", sans-serif;
  letter-spacing: 0;
}

[dir="rtl"] .eyebrow { letter-spacing: 0.04em; }

[dir="rtl"] .hero-stat { border-right: none; border-left: 1px solid var(--border-dark); }
[dir="rtl"] .hero-stat:last-child { border-left: none; }

[dir="rtl"] .spec-row .v { text-align: left; }
[dir="rtl"] .example-list li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .example-list li::before { left: auto; right: 0; }

[dir="rtl"] .price-tile { border-right: none; border-left: 1px solid var(--border); }
[dir="rtl"] .price-tile:last-child { border-left: none; }

/* ---------- Example product list ---------- */

.example-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}

.example-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.example-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 700px) {
  .example-list { grid-template-columns: 1fr; }
}

/* ---------- Empty state ---------- */

.empty-state {
  border: 1px dashed var(--border-dark);
  padding: 48px;
  text-align: center;
  color: var(--ink-faint);
}

/* ---------- Photo category/product cards ---------- */

.cat-grid.photo {
  border: none;
  background: none;
  gap: 24px;
}

.cat-card.photo {
  padding: 0;
  min-height: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.cat-card.photo .photo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
}

.cat-card.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card.photo:hover img { transform: scale(1.05); }

.cat-card.photo .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--navy-rgb), 0) 40%, rgba(var(--navy-rgb), 0.88) 100%);
}

.cat-card.photo .photo-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.cat-card.photo .icon {
  width: 26px;
  height: 26px;
  color: var(--gold-soft);
  flex-shrink: 0;
}

.cat-card.photo h3 { margin: 0; font-size: 1.15rem; color: #fff; }
.cat-card.photo .count { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-top: 2px; }

.product-card {
  padding: 0;
  overflow: hidden;
}

.product-card .photo-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gold-tint);
}

.product-card .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .photo-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .photo-frame.placeholder .icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  opacity: 0.5;
}

.product-card .card-body { padding: 24px; }

.product-card a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ---------- Hero with photo ---------- */

.hero.photo .hero-grid {
  background-image:
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.55) 0%, rgba(var(--navy-rgb), 0.75) 55%, var(--navy) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

/* ---------- Breadcrumb + product detail ---------- */

.pdp-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
}

@media (max-width: 900px) {
  .pdp-layout { grid-template-columns: 1fr; }
}

.pdp-gallery-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--gold-tint);
  margin-bottom: 12px;
}

.pdp-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.pdp-gallery-main.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-gallery-main.placeholder .icon { width: 72px; height: 72px; color: var(--gold); opacity: 0.4; }

.pdp-thumbs {
  display: flex;
  gap: 10px;
}
.pdp-thumbs img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.pdp-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.pdp-supplier {
  font-size: 0.95rem;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.pdp-supplier a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--border-dark); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin: 24px 0;
}

.price-tile {
  padding: 18px 16px;
  border-right: 1px solid var(--border);
}
.price-tile:last-child { border-right: none; }

.price-tile .k {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 6px;
}
.price-tile .v {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
}
.price-tile .v .cur { font-family: var(--sans); font-size: 0.75rem; color: var(--ink-faint); }

@media (max-width: 560px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-tile { border-right: none; border-bottom: 1px solid var(--border); }
}

.fact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fact-list .fact .k {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 4px;
}
.fact-list .fact .v { font-size: 0.95rem; color: var(--ink); }

.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  padding: 16px 20px;
}
.spec-row .k { color: var(--ink-faint); font-size: 0.88rem; }
.spec-row .v { color: var(--ink); font-weight: 600; font-size: 0.9rem; text-align: right; }

@media (max-width: 700px) {
  .spec-table { grid-template-columns: 1fr; }
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  padding: 14px 18px;
  background: var(--surface);
}
.doc-list .doc-title { font-weight: 600; font-size: 0.92rem; }
.doc-list .doc-type { font-size: 0.76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-left: 8px; }
.doc-list a.doc-link { font-size: 0.82rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.doc-list a.doc-link:hover { text-decoration: underline; }

.supplier-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px;
}
.supplier-card h3 { margin-bottom: 4px; }
.supplier-card .loc { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 16px; }
.supplier-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}
.supplier-card dt { font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.supplier-card dd { margin: 0; font-size: 0.9rem; }

/* ---------- About band photo ---------- */

.band-photo {
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.band-photo img { width: 100%; height: 100%; object-fit: cover; }

.routes-map .legend-label { font-size: 11px; fill: var(--ink-faint); font-weight: 600; letter-spacing: 0.04em; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.nectar { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hero video ----------
   Sits behind the existing gradient wash, so the headline keeps the same
   contrast it had over the still. Decorative only: aria-hidden, untabbable,
   silent, and never the thing that carries meaning. */

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* The still is already painted underneath by .hero.photo, so the gradient here
   is only the darkening wash — otherwise the poster would sit over the video. */
.hero.has-video .hero-grid {
  background-image:
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.55) 0%, rgba(var(--navy-rgb), 0.72) 55%, rgba(var(--navy-rgb), 0.92) 100%);
  z-index: 1;
}

.hero.has-video .hero-routes { z-index: 2; }
.hero.has-video .hero-inner { z-index: 3; }

/* Motion is decorative here, so honour the request without losing the image. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ---------- Hero stats over video ----------
   Two problems with the first pass. The numerals washed out over the wake —
   pale gold on 60%-white is fine on flat navy, hopeless on moving texture,
   and a translucent panel could not rescue it. And sitting inside the 1640px
   container left the row stranded mid-screen on a wide monitor with video
   either side. So it is now a full-bleed, near-solid plinth the hero rests
   on: readable because it is a real surface, and edge-to-edge at any width. */

.hero.has-video .hero-stats {
  position: relative;
  z-index: 3;
  margin-top: 56px;
  padding-inline: clamp(20px, 4vw, 72px);
  background: rgba(var(--navy-deep-rgb), 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
}

.hero.has-video .hero-stat { border-right-color: rgba(255, 255, 255, 0.14); }

.hero.has-video .hero-stat .num { color: #f2e7d2; }
.hero.has-video .hero-stat .label { color: rgba(255, 255, 255, 0.88); }

/* The wash can be lighter now that the plinth carries the text itself. */
.hero.has-video .hero-grid {
  background-image:
    linear-gradient(180deg,
      rgba(var(--navy-rgb), 0.50) 0%,
      rgba(var(--navy-rgb), 0.58) 55%,
      rgba(var(--navy-rgb), 0.70) 100%);
}

/* Mobile keeps the video too — 2 MB is a fair trade for the first thing a
   visitor sees, and it is the same file, cached once. */
@media (max-width: 760px) {
  .hero.has-video .hero-stats { margin-top: 32px; padding-inline: 0; }
  .hero.has-video .hero-stat { border-bottom-color: rgba(255, 255, 255, 0.14); }
}

/* ---------- Market ticker ----------
   A quiet light strip between the navy hero plinth and the white section that
   follows, rather than a second blue slab competing with the hero. The track
   holds every row twice and translates exactly -50%, so the loop is seamless
   with no gap and no jump back. */

.ticker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  /* Fade both ends so rows arrive and leave instead of being cut off. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px,
                        #000 calc(100% - 60px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 60px,
                        #000 calc(100% - 60px), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-run 52s linear infinite;
}

@keyframes ticker-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  /* No divider rules — whitespace separates the entries now. */
  padding: 0 30px;
  height: 52px;
  line-height: 52px;
  white-space: nowrap;
  position: relative;
}

.tick-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.tick-term {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 5px;
}

.tick-price {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tick-price i {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-inline-start: 3px;
}

.tick-move {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tick-up   { color: #12855a; }
.tick-down { color: #c0392b; }
.tick-flat { color: var(--ink-faint); }

/* A permanent horizontal crawl is a common migraine and vestibular trigger. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 760px) {
  .tick { padding: 0 18px; height: 46px; line-height: 46px; }
}

/* Sourcing mode: what we ship and where, rather than numbers nobody quoted. */
.tick-arrow { color: var(--gold); font-size: 0.9rem; }

.tick-days {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.ticker-sourcing .tick-name { font-weight: 600; letter-spacing: 0.01em; }
.ticker-sourcing .tick-lane .tick-name { font-weight: 500; }

/* Market mode: how many end buyers we hold per commodity, and how recent the
   newest customs filing among them is. Straight from the lead database. */

.ticker-market .tick { gap: 8px; }

.ticker-market .tick-name {
  font-weight: 600;
  color: var(--ink);
}

.tick-count {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.tick-unit {
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-inline-start: -4px;
}

.ticker-market .tick-days {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
}

/* iOS zooms the whole page in when a form field is focused and its font-size
   is under 16px, and it does not zoom back out — so tapping the contact form
   on a phone visibly shifted the screen and left it shifted. The design size
   is kept on pointer devices; touch devices get exactly 16px, which is the
   threshold and not a round-up.

   Targeted by pointer rather than by width: an iPad in landscape is 1024px
   wide and zooms just the same. */
@media (hover: none) and (pointer: coarse) {
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}

/* The team reads as two offices, not one undifferentiated grid: a buyer wants
   to know who to ask about a price and who to ask about a factory. */
.team-intro {
  max-width: 62ch;
  margin: 0 0 36px;
  color: var(--muted);
}

.team-office + .team-office { margin-top: 48px; }

.team-office-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.team-office-head h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-office-head span {
  color: var(--muted);
  font-size: 0.9rem;
}
