/* ==========================================================================
   Qinico | International Trading
   Design notes: ink + amber drawn from the hero film. Fraunces display,
   Manrope body. Signature device: carved-seal section stamps.
   ========================================================================== */

:root {
  --ink: #0B0E13;
  --ink-2: #12161E;
  --ink-3: #1A2029;
  --paper: #FFFFFF;
  --cream: #F6F3EC;
  --amber: #E8A33D;
  --amber-deep: #C77E1F;
  --amber-soft: rgba(232, 163, 61, 0.12);
  --text: #1C1F26;
  --text-muted: #575D69;
  --text-light: rgba(255, 255, 255, 0.74);
  --line: rgba(20, 24, 32, 0.12);
  --line-light: rgba(255, 255, 255, 0.13);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-1: 0 1px 2px rgba(10, 14, 19, 0.05), 0 4px 12px rgba(10, 14, 19, 0.05);
  --shadow-2: 0 2px 4px rgba(10, 14, 19, 0.05), 0 12px 32px rgba(10, 14, 19, 0.10);
  --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.22), 0 32px 80px rgba(0, 0, 0, 0.38);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Safe-area background bars: extend the dark hero and footer colours
   into the Dynamic Island and home-indicator zones on iPhone. */
body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}
body::before {
  top: 0;
  height: env(safe-area-inset-top, 0px);
  background: var(--ink);
}
body::after {
  bottom: 0;
  height: env(safe-area-inset-bottom, 0px);
  background: #07090D;
}
/* Lift all page content above the safe-area bars */

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

p { text-wrap: pretty; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 20px;
}

.section-dark .kicker { color: var(--amber); }

/* Carved-seal stamp: the section signature */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--amber-deep);
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--amber-deep);
  flex: none;
}

.stamp-dark { border-color: var(--amber); color: var(--amber); }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 18px;
}

.section-dark .lead { color: var(--text-light); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition-property: transform, box-shadow, background-color, color, border-color;
  transition-duration: 0.25s;
  transition-timing-function: var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }

:is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible { border-radius: 999px; }

.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover {
  background: #F0B254;
  box-shadow: 0 4px 12px rgba(232, 163, 61, 0.25), 0 12px 32px rgba(232, 163, 61, 0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-ink { background: var(--ink); color: #fff; margin-top: 30px; }
.btn-ink:hover {
  background: var(--ink-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.btn-wa { background: #128C4B; color: #fff; }
.btn-wa:hover {
  background: #17A55A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 140, 75, 0.2), 0 12px 32px rgba(18, 140, 75, 0.22);
}

.btn-lg { min-height: 56px; padding: 15px 36px; font-size: 1.02rem; }
.btn-block { width: 100%; }

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  padding-top: max(18px, env(safe-area-inset-top));
  transition-property: background-color, box-shadow, padding, backdrop-filter;
  transition-duration: 0.4s;
  transition-timing-function: var(--ease);
}

.nav-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { display: inline-flex; padding: 6px 0; }
.nav-logo img { height: 30px; width: auto; }
.nav .logo-dark { display: none; }

.nav-links { display: flex; gap: 30px; }

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 2px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }

.nav-links-foot { display: none; }

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

.btn-nav {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  min-height: 44px;
  padding: 9px 22px;
  font-size: 0.88rem;
  backdrop-filter: blur(8px);
}
.btn-nav:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.nav.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(10, 14, 19, 0.06);
  padding: 10px 0;
}
.nav.is-solid .logo-light { display: none; }
.nav.is-solid .logo-dark { display: block; }
.nav.is-solid .nav-links a { color: var(--text); }
.nav.is-solid .nav-links a:hover { color: var(--amber-deep); }
.nav.is-solid .btn-nav { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav.is-solid .btn-nav:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.nav-burger {
  display: none;
  position: relative;
  z-index: 120;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition-property: transform, opacity, background-color;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease);
}
.nav.is-solid .nav-burger span { background: var(--ink); }
/* The open panel is dark, so the close icon is always white on top of it */
.nav-burger.is-open span,
.nav.is-solid .nav-burger.is-open span { background: #fff; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  height: 420vh;
  position: relative;
  background: var(--ink);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* Feather the film's bottom edge so it dissolves instead of cutting */
.hero-video,
.hero-shade {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0, 0, 0, 0.55) 92%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0, 0, 0, 0.55) 92%, transparent 100%);
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 14, 19, 0.55) 0%,
    rgba(11, 14, 19, 0.1) 35%,
    rgba(11, 14, 19, 0.18) 78%,
    rgba(11, 14, 19, 0.32) 100%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero-caption[data-phase="2"].is-active { pointer-events: auto; }

/* Localized scrim behind the words only, so the film stays visible */
.hero-caption::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 104vw);
  height: 70vh;
  background: radial-gradient(closest-side, rgba(7, 9, 13, 0.6), rgba(7, 9, 13, 0.34) 52%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(7, 9, 13, 0.9), 0 2px 18px rgba(7, 9, 13, 0.7);
}

.hero-caption h1,
.hero-caption h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.08;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  text-shadow:
    0 1px 2px rgba(7, 9, 13, 0.55),
    0 3px 12px rgba(7, 9, 13, 0.6),
    0 10px 50px rgba(7, 9, 13, 0.55);
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  max-width: 580px;
  text-shadow: 0 1px 4px rgba(7, 9, 13, 0.7), 0 4px 24px rgba(7, 9, 13, 0.65);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1.5px;
  height: 46px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--amber);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* ---------- Sections base ---------- */

.section { padding: 120px 0; position: relative; background: var(--paper); }

/* Skip rendering work for off-screen sections for faster scrolling */
.products, .process, .why, .reach, .offices, .cta-band, .legal-body {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

[id] { scroll-margin-top: calc(84px + env(safe-area-inset-top)); }

.section-dark {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

/* Ambient drift: slow light moving across the dark, the way freight moves */
.section-dark::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(ellipse 34% 40% at 20% 30%, rgba(232, 163, 61, 0.10), transparent 62%),
    radial-gradient(ellipse 28% 34% at 78% 68%, rgba(232, 163, 61, 0.075), transparent 62%);
  pointer-events: none;
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.cta-band::before { animation-duration: 34s; }

@keyframes drift {
  0%   { transform: translate3d(-2%, 1%, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.02); }
}

.section-dark > .container,
.cta-band > .container { position: relative; z-index: 1; }

.section-cream {
  background:
    radial-gradient(ellipse 55% 60% at 92% 6%, rgba(232, 163, 61, 0.09), transparent 60%),
    var(--cream);
}

/* Oversized seal watermark: quiet echo of the section stamps */
.section-mark::after {
  content: attr(data-mark);
  position: absolute;
  top: 40px;
  right: 2vw;
  font-family: var(--font-display);
  font-size: clamp(160px, 24vw, 340px);
  line-height: 1;
  color: currentColor;
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition-property: opacity, transform;
  transition-duration: 0.85s;
  transition-timing-function: var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-scroll-line::after { animation: none; }
  .arc { animation: none !important; }
  .section-dark::before, .cta-band::before { animation: none; }
  .lane-dot { display: none; }
}

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

/* The film bleeds down into the counter band and dissolves into ink */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -26vh;
  padding-top: 26vh;
  color: #fff;
  background: linear-gradient(180deg,
    rgba(11, 14, 19, 0) 0%,
    rgba(11, 14, 19, 0.28) 10%,
    rgba(11, 14, 19, 0.68) 20%,
    rgba(11, 14, 19, 0.92) 28%,
    var(--ink) 36%);
}

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

.stat {
  padding: 64px 36px;
  border-left: 1px solid var(--line-light);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  font-weight: 500;
  color: var(--amber);
  display: block;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-light);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-copy p:not(.kicker):not(.lead) {
  margin-top: 20px;
  color: var(--text-muted);
}
.about-copy .lead { color: var(--text); font-weight: 500; max-width: none; }

.about-panel {
  background: var(--ink);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 110px;
}

.about-panel-item {
  padding: 28px;
  border-radius: 12px;
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
}

.about-panel-zh {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 0.82rem;
  color: var(--amber);
  opacity: 0.85;
  letter-spacing: 0.14em;
}

.about-panel-item h3 { color: #fff; margin-bottom: 8px; font-size: 1.15rem; }
.about-panel-item p { color: var(--text-light); font-size: 0.92rem; }

/* ---------- Products: trade manifest ---------- */

.products h2 { max-width: 620px; }

.manifest {
  margin-top: 64px;
  border-top: 1px solid var(--line-light);
}

.manifest-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 48px;
  padding: 18px 0 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.manifest-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 48px;
  padding: 44px 0 48px;
  border-top: 1px solid var(--line-light);
  position: relative;
  transition: background-color 0.3s var(--ease);
}

.manifest-row::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.6s var(--ease);
}
.manifest-row:hover::before { width: 100%; }

.manifest-no {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}

.manifest-title h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.manifest-sub {
  margin-top: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

.manifest-body p { color: var(--text-light); font-size: 0.97rem; }

.manifest-meta dl { display: flex; flex-direction: column; gap: 16px; }

.manifest-meta dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}

.manifest-meta dd { font-size: 0.88rem; color: rgba(255, 255, 255, 0.68); }

/* Product photography strip */
.manifest-photos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.manifest-photos-5 { grid-template-columns: repeat(5, 1fr); }

.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(232, 163, 61, 0.07), rgba(255, 255, 255, 0.02)),
    var(--ink-3);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 14, 19, 0.18) 0%, transparent 42%);
  pointer-events: none;
}

.photo:hover img { transform: scale(1.05); }
.photo figcaption { z-index: 2; }

.photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, transparent, rgba(7, 9, 13, 0.82));
}

/* Graceful frame when a photo has not been added yet */
.photo.is-empty figcaption {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  background: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}
.photo.is-empty::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.manifest-note {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
}

/* ---------- Process: timeline ---------- */

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.process-intro { position: sticky; top: 120px; }
.process-intro .lead { margin-top: 20px; }

.timeline {
  list-style: none;
  position: relative;
  padding-left: 44px;
}

.timeline-rail {
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-fill {
  width: 100%;
  height: 0%;
  background: var(--amber);
  border-radius: 2px;
}

.timeline-step {
  position: relative;
  padding-bottom: 52px;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -41px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--amber);
  box-shadow: 0 0 0 4px var(--paper);
  transition-property: background-color, box-shadow;
  transition-duration: 0.4s;
  transition-timing-function: var(--ease);
}

.timeline-step.is-passed .timeline-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--paper), 0 0 14px rgba(232, 163, 61, 0.55);
}

.timeline-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--amber-deep);
  letter-spacing: 0.08em;
}

.timeline-step h3 { margin: 8px 0 10px; }
.timeline-step > p { color: var(--text-muted); font-size: 0.96rem; max-width: 520px; }

.timeline-artifact {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber-deep);
  background: var(--amber-soft);
  border-radius: 8px;
  padding: 7px 14px;
}

/* ---------- Why: claims with proof ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.why-intro { position: sticky; top: 120px; }

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

.why-row {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  position: relative;
}

.why-row::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber-deep);
  transition: width 0.5s var(--ease);
}
.why-row:hover::before { width: 64px; }

.why-row h3 { font-size: 1.25rem; }
.why-row p { color: var(--text-muted); font-size: 0.95rem; max-width: 520px; }

/* ---------- Trade lanes ---------- */

.reach-map {
  margin-top: 26px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(232, 163, 61, 0.07), transparent 60%),
    var(--ink-2);
  padding: 20px;
  overflow: hidden;
}

.reach-svg { width: 100%; height: auto; display: block; }

.arc {
  fill: none;
  stroke: url(#arcGrad);
  stroke-width: 1.6;
  stroke-dasharray: 6 8;
  animation: arcFlow 2.6s linear infinite;
}
.arc-out { animation-duration: 3.2s; }

@keyframes arcFlow {
  to { stroke-dashoffset: -140; }
}

.node-dot { fill: var(--amber); }
.node-dot-hub { stroke: rgba(232, 163, 61, 0.4); stroke-width: 8; }
.node-dot-next { fill: rgba(255, 255, 255, 0.35); }

.node-label {
  fill: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-anchor: middle;
}
.node-label-hub { font-size: 17px; }
.node-label-dest { text-anchor: start; font-size: 14px; }
.node-label-next { fill: rgba(255, 255, 255, 0.45); }

.node-sub {
  fill: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-anchor: middle;
}

/* Cargo dots travelling the arcs */
.lane-dot {
  fill: var(--amber);
  filter: drop-shadow(0 0 6px rgba(232, 163, 61, 0.9));
  transition: opacity 0.5s var(--ease);
}

/* ---------- Lane console ---------- */

.lane-console { margin-top: 46px; }

.lane-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.lane-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 24px 26px 26px 0;
  background: none;
  border: 0;
  border-left: 1px solid var(--line-light);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.35s var(--ease);
}
.lane-tab:first-child { border-left: 0; }
.lane-tab:not(:first-child) { padding-left: 26px; }
.lane-tab:hover { background: rgba(255, 255, 255, 0.02); }

.lane-tab-label {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.35s var(--ease);
}
.lane-tab.is-active .lane-tab-label { color: #fff; }

.lane-tab-route {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.35s var(--ease);
}
.lane-tab.is-active .lane-tab-route { color: var(--amber); }

.lane-tab-bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.lane-tab:first-child .lane-tab-bar { left: 0; }

.lane-tab-bar i {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--amber);
}
.lane-tab.is-active .lane-tab-bar i {
  width: 100%;
  transition: width 7s linear;
}
.lane-tab.is-paused .lane-tab-bar i {
  width: 100%;
  transition: width 0.4s var(--ease);
}

/* Map dimming so the active lane reads instantly */
.reach-svg .arc,
.reach-svg .node { transition: opacity 0.5s var(--ease); }

.reach-svg.is-focused .arc,
.reach-svg.is-focused .node,
.reach-svg.is-focused .lane-dot { opacity: 0.12; }

.reach-svg.is-focused .arc.is-hot {
  opacity: 1;
  stroke-width: 2.8;
  animation-duration: 1.2s;
}
.reach-svg.is-focused .node.is-hot,
.reach-svg.is-focused .lane-dot.is-hot { opacity: 1; }

/* One quiet line of handling detail under the map */
.lane-caption {
  margin-top: 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 640px;
  transition: opacity 0.3s var(--ease);
}
.lane-console.is-swapping .lane-caption { opacity: 0; }

/* Compact route view (phones only) */
.lane-route { display: none; }

.lane-stop { display: flex; align-items: center; gap: 16px; }

.lane-stop-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(232, 163, 61, 0.16);
  flex: none;
  margin-left: 4px;
}
.lane-stop-hub .lane-stop-dot {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  box-shadow: 0 0 0 6px rgba(232, 163, 61, 0.22), 0 0 20px rgba(232, 163, 61, 0.5);
}
.lane-stop-dot-end { background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12); }

.lane-stop-kicker {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 3px;
}

.lane-stop-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: #fff;
  transition: opacity 0.3s var(--ease);
}
.lane-stop-name-dest { color: var(--amber); }

.lane-leg {
  height: 46px;
  margin-left: 9px;
  border-left: 2px dashed rgba(232, 163, 61, 0.35);
  position: relative;
}
.lane-leg i {
  position: absolute;
  left: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(232, 163, 61, 0.9);
  animation: legTravel 2.4s linear infinite;
}
.lane-leg:last-of-type i { animation-delay: 0.8s; }

@keyframes legTravel {
  0%   { top: -4px; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 42px; opacity: 0; }
}

.lane-console.is-swapping .lane-stop-name { opacity: 0; }

/* ---------- Offices ---------- */

.office-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.office-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 32px;
  background: var(--cream);
  transition-property: transform, box-shadow;
  transition-duration: 0.4s;
  transition-timing-function: var(--ease);
}

.office-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.office-card-hq {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.office-card-hq .office-role { color: var(--text-light); }

.office-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.office-flag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.office-card-hq .office-flag { color: var(--amber); }

.office-clock {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.office-card-hq .office-clock {
  color: rgba(255, 255, 255, 0.75);
  border-color: var(--line-light);
}

.office-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.office-role { color: var(--text-muted); font-size: 0.93rem; }

.office-card address {
  font-style: normal;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.office-card-hq address {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

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

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232, 163, 61, 0.18), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(232, 163, 61, 0.12), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 100px 0 110px;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 { max-width: 540px; }
.cta-band p { margin-top: 14px; color: var(--text-light); max-width: 480px; }

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

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

/* Footer continues the CTA band's lit ink so the two read as one surface */
.footer {
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(232, 163, 61, 0.08), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #07090D 45%);
  color: var(--text-light);
  padding: 80px 0 max(36px, env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-light);
}

.footer-logo { height: 28px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amber); }
.footer-col p { font-size: 0.9rem; padding: 6px 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 13, 0.7);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease);
}

.modal-card {
  position: relative;
  background: var(--paper);
  border-radius: 24px;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  box-shadow: var(--shadow-3);
  animation: modalIn 0.4s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition-property: background-color, color, transform;
  transition-duration: 0.25s;
  transition-timing-function: var(--ease);
  z-index: 2;
}
.modal-close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }

.modal-body { padding: 44px 44px 36px; }

.modal-body .kicker { margin-bottom: 10px; }
.modal-body h3 { font-size: 1.7rem; }
.modal-sub { color: var(--text-muted); margin: 8px 0 26px; font-size: 0.95rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #FBFAF7;
  transition-property: border-color, box-shadow, background-color;
  transition-duration: 0.2s;
  outline: none;
  resize: vertical;
}
.form-field textarea { min-height: 110px; }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23575D69' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.modal-sub a { color: var(--amber-deep); font-weight: 700; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
  background: #fff;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.form-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
.form-note a { color: var(--amber-deep); }

.form-error {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #B4432F;
  background: rgba(180, 67, 47, 0.08);
  border: 1px solid rgba(180, 67, 47, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}

.modal-success { text-align: center; padding: 64px 44px; }

.success-mark svg {
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  display: block;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-mark circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 0.8s var(--ease) forwards;
}
.success-mark path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw 0.5s var(--ease) 0.55s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.modal-success h3 { margin-bottom: 10px; }
.modal-success p { color: var(--text-muted); margin-bottom: 28px; }

body.modal-open { overflow: hidden; }

/* ---------- Legal pages ---------- */

.legal-page { background: var(--paper); }

.legal-hero {
  background: var(--ink);
  color: #fff;
  padding: 170px 0 80px;
}
.legal-hero .kicker { color: var(--amber); }

.legal-body { padding: 70px 0 110px; max-width: 760px; }
.legal-body h2 { font-size: 1.35rem; margin: 42px 0 14px; }
.legal-body p, .legal-body li {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 12px;
}
.legal-body ul { padding-left: 22px; margin-bottom: 16px; }
.legal-body .legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--amber);
  padding-left: 14px;
  margin-bottom: 8px;
}

/* ---------- Responsive: tablet ---------- */

@media (max-width: 1024px) {
  .about-grid, .process-grid, .why-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-panel, .process-intro, .why-intro { position: static; }

  .manifest-head { display: none; }
  .manifest-row {
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
  }
  .manifest-title { grid-column: 1 / -1; }
  .manifest-photos-5 { grid-template-columns: repeat(3, 1fr); }
  .manifest-photos-5 .photo:nth-child(4) { grid-column: 1 / 2; }

  .office-cards { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 44px 32px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }

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

/* ---------- Responsive: mobile ---------- */

@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  .section { padding: 64px 0; }

  /* Tighter type scale for phones */
  h2 { font-size: 1.72rem; line-height: 1.14; }
  h3 { font-size: 1.12rem; }
  .lead { font-size: 0.98rem; margin-top: 14px; }
  .kicker { font-size: 0.7rem; letter-spacing: 0.18em; margin-bottom: 16px; gap: 10px; }
  .stamp { width: 30px; height: 30px; font-size: 0.95rem; }
  .about-copy p:not(.kicker):not(.lead) { font-size: 0.94rem; margin-top: 16px; }
  .about-panel-item { padding: 22px; }
  .about-panel-item p { font-size: 0.88rem; }
  .manifest-title h3 { font-size: 1.5rem; }
  .manifest-body p { font-size: 0.94rem; }
  .manifest-meta dd, .manifest-note { font-size: 0.86rem; }
  .manifest-meta dl { gap: 13px; }
  .timeline-step > p, .why-row p, .office-role { font-size: 0.92rem; }
  .why-row h3 { font-size: 1.14rem; }
  .office-card h3 { font-size: 1.42rem; }
  .cta-band p { font-size: 0.95rem; }

  /* Mobile nav: full-height panel with contact footer */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    width: min(340px, 88vw);
    background: var(--ink);
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: calc(104px + env(safe-area-inset-top)) 34px max(40px, env(safe-area-inset-bottom));
    transform: translateX(105%);
    transition: transform 0.45s var(--ease);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.4);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a {
    color: #fff !important;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a:hover { color: var(--amber) !important; }

  .nav-links-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 24px;
  }
  .nav-links-foot a {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 700;
    color: var(--amber) !important;
    border-bottom: 0 !important;
  }
  .nav-links-foot span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.06em;
  }

  .nav-burger { display: flex; }
  .nav .btn-nav { display: none; }

  /* Hero: shorter scroll on mobile */
  .hero { height: 340vh; }
  .hero-sub { font-size: 1.02rem; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { width: 100%; max-width: 320px; }

  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 18px 30px 0; }
  .stat-num { font-size: 2.1rem; }
  .stat-label { font-size: 0.78rem; margin-top: 10px; }

  .manifest { margin-top: 40px; }
  .manifest-row { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 36px; }
  .manifest-photos,
  .manifest-photos-5 { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
  /* clear the tablet rule so the five foods flow 2 + 2 + 1 */
  .manifest-photos-5 .photo:nth-child(4) { grid-column: auto; }
  .manifest-photos-5 .photo:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .photo figcaption { font-size: 0.7rem; padding: 22px 11px 10px; }
  .manifest-note { margin-top: 30px; padding-top: 24px; }

  .timeline { padding-left: 36px; }
  .timeline-dot { left: -33px; }
  .timeline-step { padding-bottom: 44px; }

  .why-row { padding: 28px 0; }

  .office-cards { grid-template-columns: 1fr; }
  .section-mark::after { font-size: 150px; top: 24px; opacity: 0.045; }

  .lane-console { margin-top: 40px; }
  .lane-tabs { grid-template-columns: 1fr; }
  .lane-tab {
    border-left: 0;
    border-top: 1px solid var(--line-light);
    padding: 18px 0 20px !important;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }
  .lane-tabs { border-top: 0; }
  .lane-tab-label { font-size: 1.05rem; }
  .lane-tab-route { font-size: 0.78rem; }

  /* The wide map is unreadable on a phone: show the route strip instead */
  .reach-map { display: none; }
  .lane-route { display: block; margin-top: 30px; }
  .lane-caption { margin-top: 26px; }

  .form-row, .form-actions { grid-template-columns: 1fr; }

  /* Full screen sheet on mobile, close button always reachable */
  .modal { padding: 0; align-items: stretch; }
  .modal-card {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    animation: sheetIn 0.4s var(--ease);
  }
  .modal-close {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
    background: var(--paper);
    box-shadow: 0 2px 10px rgba(10, 14, 19, 0.16);
  }
  .modal-body { padding: calc(68px + env(safe-area-inset-top)) 20px max(40px, env(safe-area-inset-bottom)); }
  .modal-body h3 { font-size: 1.44rem; }
  .modal-sub { font-size: 0.88rem; margin: 6px 0 20px; }
  .modal-body .kicker { font-size: 0.68rem; }
  .form-field { margin-bottom: 13px; }
  .form-field label { font-size: 0.76rem; margin-bottom: 5px; }
  .form-field input,
  .form-field select,
  .form-field textarea { min-height: 46px; padding: 11px 14px; font-size: 0.92rem; }
  .form-field textarea { min-height: 88px; }
  .modal-success { padding: 84px 24px 40px; }

  @keyframes sheetIn {
    from { opacity: 0; transform: translateY(18px); }
  }

  .cta-band { padding: 80px 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band-actions { width: 100%; flex-direction: column; }
  .cta-band-actions .btn { width: 100%; }

  .reach-map { padding: 8px; border-radius: 14px; }
  .node-label { font-size: 19px; }
  .node-sub { font-size: 14px; }
  .node-label-dest { font-size: 17px; }

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