/* =============================================================
   Heron Freight Solutions Inc.
   Palette: forest #18291E / muted green #2E4A40 / olive gold #BFA06A / cream #F7F5F0
   Type:    Playfair Display (professional business serif display) + Archivo (humanist grotesk)
   ============================================================= */

:root {
  --forest: #18291E;
  --green: #2E4A40;
  --gold: #BFA06A;
  --cream: #F7F5F0;

  /* Derived tones */
  --forest-900: #101c14;
  --green-700: #24382f;
  --gold-deep: #8a6c38;         /* darker gold — passes AA for text on cream */
  --gold-warm: #b08f5c;         /* slightly deeper gold for solid tiles/CTAs */
  --ink: #17211b;               /* body text on light */
  --ink-soft: #4a564e;          /* secondary text on light */
  --cream-soft: #ded9cc;        /* secondary text on dark */
  --line-dark: rgba(191, 160, 106, .22);
  --line-light: rgba(24, 41, 30, .1);

  --shadow-sm: 0 1px 2px rgba(24, 41, 30, .04), 0 6px 20px rgba(24, 41, 30, .05);
  --shadow-md: 0 2px 6px rgba(24, 41, 30, .06), 0 18px 44px rgba(24, 41, 30, .1);
  --shadow-lg: 0 30px 70px rgba(24, 41, 30, .18);

  --container: 1560px;          /* wide, full-bleed feel — content is not a narrow centred column */
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  /* Lenis (js/main.js) drives smooth scrolling via JS — leaving the CSS scroll-behavior
     on here would layer the browser's own smoothing on top of Lenis's and cause stutter. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--gold); color: var(--forest); }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.section--dark :focus-visible,
.hero :focus-visible,
.overview :focus-visible,
.footer :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 200;
  background: var(--forest);
  color: var(--cream);
  padding: .75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
}

/* ------------------------- Type scale ------------------------- */

.h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: .6rem 0 0;
  color: var(--forest);
  max-width: 20ch;
}
.h2 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.h2--light { color: var(--cream); }
.h2--light em { color: var(--gold); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold); }

.lead {
  font-size: clamp(1.02rem, .98rem + .25vw, 1.12rem);
  color: var(--ink);
  margin: 1.5rem 0 0;
}
.body { color: var(--ink-soft); margin: 1rem 0 0; }

/* Bottom padding runs slightly larger than top — equal values read as top-heavy
   once a heading sits right under the top edge. */
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 8rem) clamp(5rem, 3.3rem + 7.6vw, 8.75rem); }
.section--dark {
  background:
    radial-gradient(120% 80% at 50% 0%, #1e3325 0%, var(--forest) 55%, var(--forest-900) 100%);
  color: var(--cream-soft);
  position: relative;
  overflow: hidden;
}

/* Section heads are left-aligned across the whole page — the layout reads as a
   full-width editorial spread, not a narrow centred column. */
.section__head {
  margin-bottom: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem clamp(2rem, 4vw, 5rem);
}
.section__head .eyebrow { grid-column: 1; }
.section__head .h2 { grid-column: 1; grid-row: 2; max-width: 22ch; }
.section__sub {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: 46ch;
  color: var(--cream-soft);
}
.section__sub--dark { color: var(--ink-soft); }

/* Centred head variant — used on Services, Vision & Mission and Team */
.section__head--center {
  display: block;
  text-align: center;
}
.section__head--center .h2 {
  max-width: 24ch;
  margin: 1.1rem auto 0;   /* breathing room under the eyebrow */
}
.section__head--center .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.section__head--center .section__sub { margin: 1.25rem auto 0; max-width: 56ch; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--gold {
  background: var(--gold-warm);
  color: var(--forest);
}
.btn--gold:hover { background: var(--gold); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(247, 245, 240, .5); color: var(--cream); }
.btn--ghost:hover { background: rgba(247, 245, 240, .12); border-color: var(--cream); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--block { width: 100%; }

/* ------------------------- Brand mark ------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--cream);
}
.brand__logo { display: block; width: auto; max-height: 72px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-stuck {
  background: rgba(16, 28, 20, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.15rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  position: relative;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--cream);
  text-decoration: none;
  padding: .25rem 0;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--gold); }
.nav__cta { margin-left: .5rem; padding: .7rem 1.4rem; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--cream);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

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

.hero {
  position: relative;
  /* Height tracks the photo's own 2.28:1 ratio (1440×631) so `cover` barely has to
     upscale it — a taller hero would blow the image up and soften it. */
  min-height: min(44vw, 720px);
  margin-top: -109px;
  padding-top: 109px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--forest-900);
  color: var(--cream);
}
/* PLACEHOLDER PHOTOGRAPHY — replace with the client's own vessel/port photography */
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark scrim — a left-to-right ramp: near-solid forest behind the copy on the
   left, fading to almost clear on the right so the photo reads there. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(11, 20, 14, .95) 0%,
      rgba(11, 20, 14, .88) 22%,
      rgba(11, 20, 14, .62) 45%,
      rgba(11, 20, 14, .3) 70%,
      rgba(11, 20, 14, .08) 100%),
    linear-gradient(to bottom, rgba(11, 20, 14, .45) 0%, rgba(11, 20, 14, 0) 35%, rgba(11, 20, 14, .35) 100%);
}
.hero__hexes {
  position: absolute;
  top: 14%; right: 4%;
  width: min(320px, 24vw);
  color: rgba(247, 245, 240, .12);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 7rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.7rem, .85rem + 3.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(11, 20, 14, .6);
}
.hero__title em {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: var(--gold-warm);
}
.hero__sub {
  margin: 1.75rem 0 0;
  max-width: 44ch;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: var(--cream-soft);
  text-shadow: 0 1px 16px rgba(11, 20, 14, .7);
}
.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__cta .btn--ghost {
  background: rgba(16, 28, 20, .45);
  backdrop-filter: blur(6px);
  border-color: rgba(247, 245, 240, .28);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  margin: 0;
  width: 100%;
}
.hero__stats div { margin: 0; }
.hero__stats dt {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1;
  color: var(--cream);
}
.hero__stats dt span { color: var(--gold); }
.stat-num { display: inline-block; color: inherit; font-variant-numeric: tabular-nums; }
.hero__stats dd {
  margin: .6rem 0 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------- Stats band (bridges hero into About) ------------------------- */

.stats-band {
  background: var(--forest);
  padding: clamp(2.25rem, 1.75rem + 2vw, 3.25rem) 0;
}

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

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}

.checks { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.check { display: flex; gap: 1rem; align-items: flex-start; }
.check__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--gold-warm);
  color: #fff;
}
.check__icon svg { width: 18px; height: 18px; }
.check h3 { margin: .2rem 0 .25rem; font-size: 1rem; font-weight: 600; color: var(--forest); }
.check p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.about__figure { position: relative; margin: 0; }
.about__figure img {
  width: 100%;
  height: clamp(380px, 46vw, 620px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about__badge {
  position: absolute;
  right: -1.25rem;
  bottom: -1.5rem;
  background: var(--gold-warm);
  color: var(--forest);
  padding: 1.15rem 1.9rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  display: grid;
  gap: .1rem;
}
.about__badge strong {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.1;
}
.about__badge span {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ------------------------- Services ------------------------- */

.services__hexes {
  position: absolute;
  left: -60px; bottom: -40px;
  width: 260px;
  color: rgba(191, 160, 106, .1);
  pointer-events: none;
}
.services .container { position: relative; z-index: 1; }

/* Services grid — all four cards shown at once */
/* ---- Services marquee: an infinite right→left conveyor of image cards ----
   The track holds two identical sets of cards. Each card owns its trailing gap
   via margin-right, so the two sets together are exactly twice one set's width —
   which means animating the track to translateX(-50%) lands the duplicate exactly
   where the original started, and the loop is seamless (no visible jump). */
.svc-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  /* Soft fade at both edges so cards ease in/out instead of hard-clipping. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.svc-track {
  display: flex;
  width: max-content;
  animation: svc-scroll 45s linear infinite;
}
/* Pause when a card specifically is hovered — not the gaps between them. */
.svc-track:has(.svc-card:hover) { animation-play-state: paused; }

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

/* Tall, full-bleed image cards. The photo fills the whole card; the title sits
   over it, and the description is hidden until hover, when a dark forest scrim
   rises from the bottom to carry it. */
.svc-card {
  position: relative;
  flex: 0 0 auto;
  width: 340px;
  height: 470px;
  margin-right: 1.75rem;   /* the per-card gap the seamless loop depends on */
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  /* Dark-background cards need a black-based shadow, not the site's usual forest-tinted
     one — a forest shadow just disappears into the section's own forest bg. */
  box-shadow:
    0 10px 20px rgba(0, 0, 0, .28),
    0 30px 60px rgba(0, 0, 0, .3);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.svc-card:hover,
.svc-card:focus-within {
  transform: translateY(-4px);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, .32),
    0 46px 90px rgba(0, 0, 0, .42);
}

.svc-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.svc-card:hover .svc-card__img,
.svc-card:focus-within .svc-card__img { transform: scale(1.06); }

/* Permanent top wash keeps the white title legible over bright photos. */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 55%;
  background: linear-gradient(to bottom, rgba(16, 28, 20, .68), rgba(16, 28, 20, 0));
  pointer-events: none;
}
/* Bottom dark scrim — fades in on hover to seat the revealed description. */
.svc-card__scrim {
  position: absolute;
  inset: 35% 0 0 0;
  z-index: 1;
  background: linear-gradient(to top,
    var(--forest-900) 6%,
    rgba(16, 28, 20, .82) 42%,
    rgba(16, 28, 20, 0) 100%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.svc-card:hover .svc-card__scrim,
.svc-card:focus-within .svc-card__scrim { opacity: 1; }

.svc-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.5rem;
}
.svc-card__title {
  margin: 0;
  max-width: 12ch;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

/* Hidden until hover/focus, then slides up into view. */
.svc-card__panel {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.svc-card:hover .svc-card__panel,
.svc-card:focus-within .svc-card__panel {
  opacity: 1;
  transform: translateY(0);
}
.svc-card__desc {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .9rem;
  line-height: 1.6;
}

/* Touch devices have no hover — reveal the panel so the CTA is always reachable. */
@media (hover: none) {
  .svc-card__scrim { opacity: 1; }
  .svc-card__panel { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Freeze the conveyor and lay the real cards out as a static, centred row.
     The duplicate set is only there to feed the loop, so hide it here. */
  .svc-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .svc-card[aria-hidden="true"] { display: none; }
  .svc-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .svc-card:hover,
  .svc-card:focus-within { transform: none; }
  .svc-card:hover .svc-card__img,
  .svc-card:focus-within .svc-card__img { transform: none; }
  .svc-card__panel { transition: opacity .2s linear; transform: none; }
}

.why {
  margin-top: clamp(3.5rem, 2rem + 4vw, 5.5rem);
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
}
.why__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--cream);
  margin: 0 0 2.25rem;
}
.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
}
.why__item { position: relative; padding-left: 1.35rem; }
.why__item::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: 9px; height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.why__item h4 { margin: 0 0 .35rem; font-size: .95rem; font-weight: 600; color: var(--cream); }
.why__item p { margin: 0; font-size: .88rem; color: var(--cream-soft); }

/* ------------------------- Vision & Mission ------------------------- */

.vm { background: var(--cream); }

/* Full-bleed split screen. The two panels meet edge to edge — no gap, no card chrome —
   split by a single hairline (the 1px grid gap showing the gold-tinted track behind).
   Stacking within each panel: img (0) < gradient overlay (1) < hover darken (2) < content (3),
   so the hover darkening deepens the photo without ever dimming the white type. */
.vm__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(191, 160, 106, .35);
}
.vm__panel {
  position: relative;
  min-height: clamp(520px, 62vh, 680px);
  overflow: hidden;
  isolation: isolate;
}
/* Hover darken layer — sits below the text (z-index 2 vs content's 3). No lift/transform:
   the panels share edges, so moving one would open a seam against its neighbour. */
.vm__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--forest-900);
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.vm__panel:hover::after { opacity: .18; }

.vm__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.vm__panel:hover .vm__img { transform: scale(1.05); }

/* Forest→black gradient: light at the top, darkest around the description. */
.vm__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    var(--forest-900) 0%,
    rgba(16, 28, 20, .82) 30%,
    rgba(16, 28, 20, .45) 62%,
    rgba(16, 28, 20, .28) 100%);
  pointer-events: none;
}

.vm__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 1.25rem + 1.4vw, 2.75rem);
}
.vm__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}
.vm__text {
  margin: 0;
  max-width: 44ch;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

@media (prefers-reduced-motion: reduce) {
  .vm__panel:hover .vm__img { transform: none; }
}

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

.team { background: #fff; padding-bottom: 0; }
/* Decorative full-width graphic flush with the section's bottom edge. The wrapper clips
   the image so it can slide up into its slot from below as the section scrolls into view. */
.team__bg {
  overflow: hidden;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
/* The wrapper itself must not run the default .reveal fade — only the image inside moves. */
.team__bg.reveal { opacity: 1; transform: none; transition: none; }
.team__bg-img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(100%);
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.team__bg.is-visible .team__bg-img { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .team__bg-img { transform: none; transition: none; }
}

/* Organizational chart — the supplied SVG, shown flat and full-width for legibility. */
.orgchart {
  margin: 0 auto;
  max-width: 100%;
  padding: 0;
}
.orgchart img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------- Business Overview (quieter, not in nav) ------------------------- */

.overview {
  /* Business-overview photo as the backdrop, held back by a forest overlay so the
     dotted map and white copy stay legible. */
  background:
    linear-gradient(180deg, rgba(24, 41, 30, .90) 0%, rgba(20, 34, 25, .88) 48%, rgba(16, 28, 20, .93) 100%),
    url('../img/business-overview.avif') center / cover no-repeat;
  color: var(--cream-soft);
  padding: clamp(4rem, 3rem + 3vw, 6rem) 0;
  overflow: hidden;
}
/* Two-column top row (copy+stats / photo), map spans full width beneath. */
.overview__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: end;
  gap: clamp(2rem, 1.2rem + 3vw, 4rem);
}
.overview__intro { grid-column: 1; }
.overview__head { max-width: 640px; }
.overview__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  color: var(--cream);
  margin: .6rem 0 0;
}
.overview__title em { font-style: italic; font-weight: 400; color: var(--gold); }
.overview__lead { margin: 1rem 0 0; max-width: 52ch; font-size: .98rem; }

/* Real, derived counts (see markup comment) presented in the same counter style as the hero. */
.overview__stats {
  display: flex;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(247, 245, 240, .18);
}
.overview__stats dt {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem);
  line-height: 1;
  color: var(--gold);
}
.overview__stats dd {
  margin: .5rem 0 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

/* Spotlight photo card — real freight photography, asymmetric against the map below it. */
.overview__photo {
  grid-column: 2;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.overview__photo img {
  width: 100%;
  height: clamp(200px, 20vw, 260px);
  object-fit: cover;
  display: block;
}
.overview__photo figcaption {
  padding: .85rem 1.1rem;
  background: rgba(16, 28, 20, .65);
  font-size: .78rem;
  color: var(--cream-soft);
  border-top: 1px solid rgba(191, 160, 106, .2);
}

/* ---- Interactive partner map ----
   The container is locked to the SVG's 2:1 ratio so the dotted map (viewBox 1000x500,
   preserveAspectRatio meet) fills it with no letterboxing — which means each hub's
   percentage position maps exactly onto the arc endpoints drawn in SVG space. */
.worldmap {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  margin-top: clamp(1rem, .5rem + 2vw, 2rem);
}
.worldmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.worldmap__dots circle { fill: rgba(247, 245, 240, .45); transition: fill .3s var(--ease); }
/* Hovering (or focusing) a hub lights its whole region up in gold for contrast. */
.worldmap:has(.mapnode--na:hover) circle[data-region="na"],
.worldmap:has(.mapnode--na:focus-within) circle[data-region="na"],
.worldmap:has(.mapnode--sa:hover) circle[data-region="sa"],
.worldmap:has(.mapnode--sa:focus-within) circle[data-region="sa"],
.worldmap:has(.mapnode--eu:hover) circle[data-region="eu"],
.worldmap:has(.mapnode--eu:focus-within) circle[data-region="eu"],
.worldmap:has(.mapnode--asia:hover) circle[data-region="asia"],
.worldmap:has(.mapnode--asia:focus-within) circle[data-region="asia"],
.worldmap:has(.mapnode--oc:hover) circle[data-region="oc"],
.worldmap:has(.mapnode--oc:focus-within) circle[data-region="oc"] {
  fill: rgba(191, 160, 106, .95);
}
.worldmap__arcs path {
  stroke: rgba(191, 160, 106, .55);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 5 8;
  animation: arcFlow 3.2s linear infinite;
}
@keyframes arcFlow { to { stroke-dashoffset: -26; } }

/* Region hubs — accessible buttons positioned over the map */
.mapnode {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: .45rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  z-index: 2;
}
.mapnode:hover, .mapnode:focus-visible { z-index: 6; }
/* Flat pins — solid gold disc with a thin cream ring, no glossy 3D bead or layered shadow. */
.mapnode__pin {
  position: relative;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cream);
  transition: transform .3s var(--ease);
}
.mapnode__pin--home { width: 20px; height: 20px; border-width: 2px; background: var(--gold-warm); }
/* sonar pulse ring */
.mapnode__pin::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(191, 160, 106, .5);
  animation: pinPulse 2.4s var(--ease) infinite;
}
.mapnode:hover .mapnode__pin,
.mapnode:focus-visible .mapnode__pin { transform: scale(1.15); }
.mapnode:active .mapnode__pin { transform: scale(.88); }
@keyframes pinPulse {
  0%   { transform: scale(.6); opacity: .8; }
  100% { transform: scale(2.3); opacity: 0; }
}
.mapnode__name {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  transition: color .3s var(--ease);
}
.mapnode:hover .mapnode__name,
.mapnode:focus-visible .mapnode__name { color: #e4d2a6; }

.mapnode__tip {
  position: absolute;
  width: 212px;
  left: calc(50% - 106px);
  bottom: calc(100% + 16px);
  padding: .85rem 1rem;
  background: rgba(16, 28, 20, .96);
  border: 1px solid rgba(191, 160, 106, .4);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  color: var(--cream-soft);
  font-size: .8rem;
  line-height: 1.55;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  pointer-events: none;
}
.mapnode:hover .mapnode__tip,
.mapnode:focus-visible .mapnode__tip,
.mapnode:focus-within .mapnode__tip { opacity: 1; visibility: visible; transform: translateY(0); }
.mapnode__region {
  display: block;
  margin-bottom: .35rem;
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gold);
}
/* Top-row hubs drop their tip below the pin; right-side hubs open leftward — so tips
   never run off the top or right edge of the section. */
.mapnode--na .mapnode__tip,
.mapnode--eu .mapnode__tip,
.mapnode--asia .mapnode__tip { bottom: auto; top: calc(100% + 16px); }
.mapnode--asia .mapnode__tip,
.mapnode--oc .mapnode__tip { left: auto; right: calc(50% - 20px); }

.worldmap__legend {
  position: absolute;
  left: 4px; bottom: 4px;
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream-soft);
}
.worldmap__legend-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(191, 160, 106, .85);
}

/* ------------------------- Contact ------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: start;
}
.contact__info { display: grid; gap: 1rem; }
.info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.info__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--gold);
}
.info__icon svg { width: 20px; height: 20px; }
.info h3 { margin: 0 0 .2rem; font-size: .98rem; font-weight: 600; color: var(--forest); }
.info p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.info a { color: var(--ink-soft); text-decoration: none; }
.info a:hover { color: var(--gold-deep); text-decoration: underline; }

.map {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map iframe { width: 100%; height: 280px; border: 0; }

.form {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.75rem, 1rem + 2vw, 2.5rem);
}
.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--forest);
}
.field input,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #a9b1a9; }
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--gold-warm);
  box-shadow: 0 0 0 3px rgba(176, 154, 95, .15);
  outline: none;
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #a4472f; }
.form__status { margin: 1rem 0 0; min-height: 1.4rem; font-size: .9rem; color: var(--green); }
.form__status.is-error { color: #a4472f; }

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

.footer {
  background: var(--forest);
  color: var(--cream-soft);
  padding: clamp(3.5rem, 3rem + 2vw, 5rem) 0 1.75rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line-dark);
}
/* Brand column holds only the logo — left-aligned, vertically centred against the columns. */
.footer__brand { display: flex; align-items: center; justify-content: flex-start; }
.footer__blurb { margin: 1.5rem 0 1.75rem; font-size: .9rem; max-width: 34ch; }
.footer__col h3 {
  margin: 0 0 1.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; font-size: .9rem; }
.footer__col a { text-decoration: none; color: var(--cream-soft); transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--gold); }

.social { list-style: none; display: flex; gap: .75rem; margin: 0; padding: 0; }
.social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  color: var(--cream);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.social a:hover { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.social svg { width: 17px; height: 17px; }

.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.75rem;
  font-size: .78rem;
  color: rgba(222, 217, 204, .6);
}
.footer__legal p { margin: 0; }

/* ------------------------- Back to top ------------------------- */

.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--gold-warm);
  color: var(--forest);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .25s var(--ease);
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--gold); }
.to-top:active { transform: scale(.92); }
.to-top svg { width: 20px; height: 20px; }

/* ------------------------- Scroll reveal ------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mapnode__pin::after { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------- Responsive ------------------------- */

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
}

@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav { background: rgba(16, 28, 20, .95); backdrop-filter: blur(10px); }
  .nav__links {
    position: fixed;
    inset: 109px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
    background: var(--forest-900);
    border-top: 1px solid var(--line-dark);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
    max-height: calc(100vh - 109px);
    max-height: calc(100dvh - 109px);
    overflow-y: auto;
  }
  .nav.is-open .nav__links {
    transform: translateY(0);
    visibility: visible;
    transition: transform .4s var(--ease);
  }
  .nav__link { padding: 1rem 0; font-size: 1rem; border-bottom: 1px solid rgba(247, 245, 240, .08); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1.5rem 0 0; }

  .hero { margin-top: -109px; padding-top: 109px; min-height: auto; }
  /* Copy spans the full width on small screens, so the ramp runs top-to-bottom instead */
  .hero__scrim {
    background:
      linear-gradient(to bottom, rgba(11, 20, 14, .9) 0%, rgba(11, 20, 14, .72) 55%, rgba(11, 20, 14, .5) 100%);
  }
  .hero__inner { padding-block: 5rem 4.5rem; }
  .hero__hexes { top: auto; bottom: 6%; right: -8%; width: 180px; }
  .hero__stats { gap: 2rem; }

  .about__grid,
  .vm__split,
  .contact__grid,
  .overview__grid { grid-template-columns: 1fr; }
  .overview__intro,
  .overview__photo,
  .worldmap { grid-column: 1; }
  .overview__photo img { height: clamp(220px, 56vw, 320px); }
  .about__figure { order: -1; margin-bottom: 1.5rem; }
  .about__figure img { height: clamp(300px, 55vw, 420px); }
  .about__badge { right: 1rem; bottom: -1rem; }

  .svc-card { width: 300px; height: 420px; margin-right: 1.5rem; }

  .section__head { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
  .section__head .h2 { grid-row: auto; max-width: 24ch; }
  .section__sub { grid-column: 1; grid-row: auto; }

  /* The org chart is dense, small-print artwork — shrinking it to the viewport width
     would make names/titles illegible. Hold it at a readable height and let it scroll
     horizontally instead; the edge fade hints that there's more to swipe to. */
  .orgchart {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 92%, transparent 100%);
  }
  .orgchart img {
    width: auto;
    max-width: none;
    height: clamp(340px, 78vw, 460px);
  }
}

@media (max-width: 640px) {
  .svc-card { width: 260px; height: 380px; margin-right: 1.1rem; }
  /* Tighten the map hubs so labels and tips stay manageable on small screens */
  .mapnode__pin { width: 14px; height: 14px; }
  .mapnode__pin--home { width: 17px; height: 17px; }
  .mapnode__name { font-size: .5rem; letter-spacing: .1em; }
  .mapnode__tip { width: 168px; left: calc(50% - 84px); font-size: .72rem; padding: .65rem .8rem; }
  .mapnode--asia .mapnode__tip,
  .mapnode--oc .mapnode__tip { right: calc(50% - 16px); }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { gap: 1.5rem 1.75rem; }
  .hero__stats div { flex: 1 1 40%; }
  .hero__stats dd { font-size: .62rem; letter-spacing: .14em; }
  .footer__legal { flex-direction: column; }
  .to-top { right: 1rem; bottom: 1rem; }
}
