:root {
  --blue: #1f4e9e;
  --blue-dark: #12356f;
  --green: #1e8e5a;
  --accent: #d9b85a;
  --white: #ffffff;
  --grey: #f4f6f8;
  --ink: #111827;
  --muted: #5e6978;
  --line: #dfe5ec;
  --shadow: 0 22px 60px rgba(18, 53, 111, 0.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 30px rgba(8, 20, 44, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

/* Navy-to-gold gradient hairline along the bottom edge — the signature accent. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--blue-dark) 0%,
    var(--blue) 42%,
    var(--accent) 100%
  );
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--blue-dark);
}

.brand img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

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

.brand strong,
.brand small {
  display: block;
  line-height: 1;
  text-transform: uppercase;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.09em;
}

.brand small {
  margin-top: 5px;
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 32px);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #243247;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue-dark);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-dark), var(--accent));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 40px;
  border-radius: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(18, 53, 111, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(18, 53, 111, 0.28),
    0 0 0 1px rgba(217, 184, 90, 0.6);
}

.nav-toggle {
  display: none;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(217, 184, 90, 0.14), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

.hero-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 720px);
}

.hero-map {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  /* Soften the top (and bottom) crop so the map doesn't end in a hard line. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 94%, transparent 100%);
}

.hero-globe {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}

.world-map {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}

/* No constant transform on the map so the SVG labels stay crisp when idle;
   the interactive mouse tilt (JS) is layered on only while the pointer moves. */

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Keep the headline readable on the left, but let the world map show through
     across most of the canvas. */
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.7) 24%,
    rgba(255, 255, 255, 0.28) 44%,
    rgba(255, 255, 255, 0) 60%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  /* Let pointer events fall through to the map; the copy re-enables them. */
  pointer-events: none;
}

.hero-stats {
  position: relative;
  z-index: 4;
  padding: 0 clamp(20px, 4vw, 64px) clamp(40px, 6vw, 72px);
}

/* --- Interactive world map ------------------------------------------------ */
.map-land {
  fill: url(#auraLand);
  stroke: var(--blue);
  stroke-opacity: 0.3;
  stroke-width: 0.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.map-arc {
  fill: none;
  stroke: #5d6c88;
  stroke-width: 0.5;
  opacity: 0.42;
  transition: opacity 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
}

.map-arc.is-active {
  stroke: var(--green);
  stroke-width: 0.9;
  opacity: 0.5;
  filter: none;
}

.map-arc.is-dim {
  opacity: 0.06;
}

/* A small pulse that drifts outward along each route. */
.map-pulse {
  fill: none;
  stroke: #46587e;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 0.012 0.988;
  opacity: 0.8;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
  animation: mapPulse 8s linear infinite;
  animation-delay: calc(var(--i) * -0.5s);
}

.map-pulse.is-active {
  stroke: var(--green);
  stroke-width: 1.8;
  opacity: 1;
}

.map-pulse.is-dim {
  opacity: 0.12;
}

@keyframes mapPulse {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -1;
  }
}

/* Faint background port network + moving cargo traffic over the map. */
.map-bg-net path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 0.5;
  opacity: 0.09;
}

.bg-node {
  fill: var(--blue);
  opacity: 0.3;
}

.sea-lane {
  fill: none;
  stroke: none;
}

.map-ship {
  fill: #8a92a0;
  opacity: 0.68;
}

.map-plane {
  fill: #8a92a0;
  opacity: 0.78;
}

.map-node {
  cursor: pointer;
}

.node-hit {
  fill: #ffffff;
  opacity: 0;
}

.map-node text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  fill: #4a5a72;
  opacity: 0.66;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
  text-rendering: geometricPrecision;
  transition: font-size 0.28s ease, fill 0.28s ease, opacity 0.28s ease;
}

.node-core {
  fill: var(--blue);
  opacity: 0.6;
  stroke: #ffffff;
  stroke-width: 0.8;
  stroke-opacity: 0.85;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease, fill 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.node-ring {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.is-hub .node-core {
  fill: var(--accent);
  opacity: 0.95;
  filter: drop-shadow(0 0 3px rgba(217, 184, 90, 0.55));
}

.map-node:hover .node-core,
.map-node.is-active .node-core {
  fill: var(--accent);
  opacity: 1;
  transform: scale(1.5);
  filter: drop-shadow(0 0 5px rgba(217, 184, 90, 0.85));
}

.map-node:hover .node-ring,
.map-node.is-active .node-ring {
  opacity: 0.9;
}

.map-node:hover text,
.map-node.is-active text {
  font-size: 15px;
  fill: var(--blue-dark);
  opacity: 1;
}

.map-node.is-dim text {
  opacity: 0.22;
}

.map-node.is-dim .node-core {
  opacity: 0.22;
}

@media (prefers-reduced-motion: no-preference) {
  .map-node:hover .node-ring,
  .map-node.is-active .node-ring {
    animation: nodePulse 1.8s ease-out infinite;
  }
}

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

@keyframes nodePulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* --- Commodities image; photo cards pop up in its place on hover --------- */
.commodity-web {
  position: absolute;
  right: clamp(10px, 2.5vw, 48px);
  bottom: clamp(10px, 2vw, 30px);
  width: 360px;
  height: 250px;
  z-index: 6;
  pointer-events: none;
}

/* The combined commodities image: hover target + link to Commodities. */
.web-hub {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 332px;
  transform: translateX(-50%);
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.web-hub img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(18, 53, 111, 0.2));
}

/* The image steps aside as the cards take its place. */
.commodity-web.is-open .web-hub {
  opacity: 0;
  transform: translateX(-50%) scale(0.94);
  pointer-events: none;
}

.card-stack {
  position: absolute;
  inset: 0;
  perspective: 1100px;
}

.stack-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130px;
  height: 182px;
  margin: -91px 0 0 -65px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(18, 53, 111, 0.24);
  background: var(--grey);
  opacity: 0;
  transform: scale(0.7);
  transform-origin: center;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease,
    box-shadow 0.3s ease, border-color 0.25s ease;
  pointer-events: none;
  will-change: transform;
}

/* When open, JS lays the cards out as a coverflow wheel driven by the mouse. */
.commodity-web.is-open .stack-card {
  pointer-events: auto;
}

.stack-card.is-focused {
  border-color: rgba(217, 184, 90, 0.95);
  box-shadow: 0 26px 48px rgba(18, 53, 111, 0.34);
}

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

.stack-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 12px 11px;
  background: linear-gradient(rgba(8, 20, 44, 0), rgba(8, 20, 44, 0.82));
}

.stack-label .stack-type {
  display: block;
  color: var(--accent);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-label strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.05;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(20px, 4vw, 40px) 0;
  pointer-events: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue-dark);
  font-family: var(--serif);
  line-height: 1.06;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

h1 span,
h2 span,
.cta-band h2 span {
  color: var(--green);
}

h2 {
  font-size: clamp(2.05rem, 3.6vw, 3.6rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.split-section p,
.feature-panel p,
.cta-band p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-copy p {
  margin: 24px 0 0;
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Equal-width hero CTAs (sized to the longer "Become a Supplier"). */
.hero-actions .button {
  min-width: 222px;
}

.button {
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.93rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 32px rgba(31, 78, 158, 0.22);
}

.button-secondary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 16px 32px rgba(30, 142, 90, 0.18);
}

.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 22px 42px rgba(31, 78, 158, 0.34);
}

.button-secondary:hover {
  background: #17794b;
  box-shadow: 0 22px 42px rgba(30, 142, 90, 0.3);
}

/* Any button carrying a --btn-img reveals that image behind it on hover. */
.has-reveal {
  position: relative;
  overflow: hidden;
}

.has-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--btn-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;
}

.has-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 64, 0.55);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;
}

.has-reveal > span,
.has-reveal > svg {
  position: relative;
  z-index: 1;
}

.has-reveal:hover {
  color: #fff;
}

.has-reveal:hover::before,
.has-reveal:hover::after {
  opacity: 1;
}

/* Outline variant used on light sections (Explore buttons). */
.button-reveal {
  color: var(--blue);
  background: transparent;
  border: 1px solid rgba(31, 78, 158, 0.5);
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.button-reveal:hover {
  border-color: transparent;
  box-shadow: 0 18px 38px rgba(18, 53, 111, 0.3);
}

/* Minimal text link with a gradient underline that sweeps in on hover. */
.text-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.text-underline svg {
  width: 17px;
  height: 17px;
  transition: transform 0.35s ease;
}

.text-underline:hover svg {
  transform: translateX(5px);
}

.text-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue-dark), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.text-underline:hover::after {
  transform: scaleX(1);
}

/* Small navy button (e.g. the "About Us" link under the services intro). */
.button-navy-sm {
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 0.82rem;
  box-shadow: 0 10px 22px rgba(7, 22, 48, 0.2);
}

.button-navy-sm:hover {
  background: #0d2549;
  box-shadow: 0 14px 26px rgba(7, 22, 48, 0.3);
}

.section-heading .button {
  display: inline-flex;
  margin-top: 20px;
}

.button-light {
  color: var(--blue-dark);
  background: var(--white);
  box-shadow: 0 16px 32px rgba(2, 14, 36, 0.15);
}

/* Minimal frosted-glass CTA on the image band. */
.cta-band .button {
  padding: 0 26px;
  min-height: 54px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cta-band .button svg {
  transition: transform 0.25s ease;
}

.cta-band .button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  transform: none;
}

.cta-band .button:hover svg {
  transform: translateX(3px);
}

/* Hero visual replaced by the interactive world map (.hero-map / .world-map). */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1px;
  max-width: 1480px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -10px 35px rgba(18, 53, 111, 0.06);
}

.stats-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 22px clamp(18px, 2vw, 32px);
  background: rgba(255, 255, 255, 0.94);
}

.stat-icon {
  grid-row: span 2;
  width: 38px;
  color: var(--green);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

/* Keep the icon comfortably inside the circular badge (no edge clipping). */
.icon-badge svg {
  width: 26px;
  height: 26px;
}

.stats-strip strong {
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1;
}

.stats-strip small {
  color: var(--muted);
  font-size: 0.82rem;
}

/* --- Market ticker -------------------------------------------------------- */
.market-ticker {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: var(--blue-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 0 18px;
  background: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46c08a;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-dot {
    animation: tickerPulse 2s infinite;
  }
}

@keyframes tickerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(70, 192, 138, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(70, 192, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(70, 192, 138, 0);
  }
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: tickerScroll 52s linear infinite;
  }
}

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

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  line-height: 46px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.tick-name {
  font-weight: 800;
}

.tick-ex {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tick-price {
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.tick-price small {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.74em;
}

.tick-change {
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tick-change.up {
  color: #46c08a;
}

.tick-change.down {
  color: #f08a8a;
}

.ticker-note {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
}

@media (max-width: 760px) {
  .ticker-note {
    display: none;
  }

  .ticker-tag {
    padding: 0 12px;
    font-size: 0.64rem;
  }
}

.section,
.page-hero {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 64px);
}

.section > *,
.page-hero > *,
.site-footer,
.footer-bottom {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
}

.section-muted {
  background: var(--grey);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.card-grid,
.commodity-grid,
.principle-grid,
.compliance-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.commodity-card,
.principle-grid article,
.compliance-grid article,
.feature-panel,
.contact-card,
.enquiry-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 53, 111, 0.06);
}

.service-card {
  position: relative;
  min-height: 280px;
  padding: 30px;
  overflow: hidden;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

/* Accent line that sweeps the top border left-to-right on hover. */
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
  z-index: 3;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: 0 22px 44px rgba(18, 53, 111, 0.16);
}

/* Buyer / Seller representation cards reveal their image on hover. */
.service-card.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8, 20, 44, 0.5), rgba(8, 20, 44, 0.72)),
    var(--card-img) var(--card-pos, center) / cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.service-card.has-bg:hover::before {
  opacity: 1;
}

.service-card.has-bg:hover h3,
.service-card.has-bg:hover p {
  color: #fff;
}

.service-card.has-bg:hover .icon-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  color: var(--blue);
  background: linear-gradient(145deg, rgba(31, 78, 158, 0.08), rgba(30, 142, 90, 0.1));
  border: 1px solid rgba(31, 78, 158, 0.12);
  border-radius: 50%;
}

.icon-badge.compact {
  width: 42px;
  height: 42px;
  margin: 0;
}

.service-card h3,
.commodity-card h3,
.principle-grid h3,
.compliance-grid h3,
.feature-panel h3 {
  margin-bottom: 12px;
}

.service-card p,
.principle-grid p,
.compliance-grid p {
  color: var(--muted);
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 900;
  transition: color 0.3s ease;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

/* Gold underline that sweeps in left-to-right, echoing the card's top line. */
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover .text-link,
.text-link:hover {
  color: var(--accent);
}

.service-card:hover .text-link svg,
.text-link:hover svg {
  transform: translateX(4px);
}

.service-card:hover .text-link::after,
.text-link:hover::after {
  transform: scaleX(1);
}

/* Full-bleed image cards with a frosted glass content panel and a cursor-
   reactive 3D tilt + gold spotlight (tilt/spotlight driven from main.js). */
.commodity-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  perspective: 1200px;
}

.commodity-card {
  position: relative;
  display: block;
  aspect-ratio: 7 / 10;
  padding: 0;
  overflow: hidden;
  background: var(--blue-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--white);
  text-decoration: none;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.2s ease-out, box-shadow 0.5s ease;
  box-shadow: 0 14px 34px rgba(18, 53, 111, 0.12);
  will-change: transform;
}

.commodity-card:hover {
  box-shadow: 0 34px 66px rgba(8, 20, 44, 0.34);
}

.commodity-bg {
  position: absolute;
  inset: 0;
  background: var(--card-img) center / cover no-repeat;
  transform: scale(1.06);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.commodity-card:hover .commodity-bg {
  transform: scale(1.14);
}

.commodity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 16, 36, 0.1) 0%,
    rgba(6, 16, 36, 0.48) 50%,
    rgba(4, 12, 28, 0.92) 100%
  );
}

/* Gold spotlight that tracks the cursor (position set via --mx/--my). */
.commodity-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 0%),
    rgba(217, 184, 90, 0.26),
    rgba(217, 184, 90, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.commodity-card:hover .commodity-glow {
  opacity: 1;
}

/* Gold accent line sweeps across the top on hover. */
.commodity-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.commodity-card:hover::after {
  transform: scaleX(1);
}

.commodity-content {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  margin: 12px;
  padding: 16px 18px;
  background: linear-gradient(
    180deg,
    rgba(9, 20, 42, 0.58),
    rgba(7, 16, 34, 0.74)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  transition: background 0.45s ease, border-color 0.45s ease;
}

.commodity-card:hover .commodity-content {
  background: linear-gradient(
    180deg,
    rgba(9, 20, 42, 0.7),
    rgba(7, 16, 34, 0.84)
  );
  border-color: rgba(217, 184, 90, 0.4);
}

.commodity-type {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.commodity-card h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.08rem, 1.3vw, 1.3rem);
  line-height: 1.12;
}

.commodity-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
}

.commodity-card:hover .commodity-items {
  max-height: 130px;
  opacity: 1;
  margin: 12px 0 0;
}

.commodity-items li {
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}

.commodity-items li::before {
  content: none;
}

.commodity-items li + li {
  margin-top: 0;
}

.commodity-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-height: 0;
  margin-top: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 0.45s ease, margin 0.45s ease,
    opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}

.commodity-card:hover .commodity-more {
  max-height: 28px;
  margin-top: 12px;
  opacity: 1;
  transform: none;
}

.commodity-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s ease;
}

.commodity-card:hover .commodity-more svg {
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .commodity-card {
    aspect-ratio: 16 / 11;
    transform: none;
  }

  /* Touch devices have no hover — reveal the details by default. */
  .commodity-items {
    max-height: 130px;
    opacity: 1;
    margin: 12px 0 0;
  }

  .commodity-more {
    opacity: 1;
    transform: none;
  }
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.check-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 18px;
}

.check-list li + li {
  margin-top: 8px;
}

.check-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}

/* Faint luxury globe motif behind the "Built for international trade" panel. */
.about-intro {
  position: relative;
  overflow: hidden;
}

.about-intro > *:not(.about-intro-graphic) {
  position: relative;
  z-index: 1;
}

.about-intro-graphic {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  background: url("/assets/about-graphic.webp") right center / cover no-repeat;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

/* Keep the white panel opaque so the motif reads as a backdrop around it. */
.about-intro .feature-panel {
  position: relative;
  z-index: 1;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 132px;
  padding: 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

/* The step image, revealed when the auto-cycle lands on this step. */
.process-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--step-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 1.2s ease;
  z-index: 0;
}

.process-list li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 20, 44, 0.35), rgba(8, 20, 44, 0.82));
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 0;
}

.process-list li.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.process-list li.is-active::after {
  opacity: 1;
}

.process-list li.is-active {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(18, 53, 111, 0.28);
}

.process-list span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 16px;
  color: var(--green);
  font-weight: 900;
  transition: color 0.5s ease;
}

.process-list strong {
  position: relative;
  z-index: 1;
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.2;
  transition: color 0.5s ease;
}

.process-list li.is-active span {
  color: var(--accent);
}

.process-list li.is-active strong {
  color: #fff;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--white);
  background:
    linear-gradient(
      90deg,
      rgba(7, 22, 48, 0.92) 0%,
      rgba(10, 30, 64, 0.72) 48%,
      rgba(10, 30, 64, 0.38) 100%
    ),
    url("/assets/global-trade.webp") center 80% / cover;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(18, 53, 111, 0.94), rgba(31, 78, 158, 0.86)),
    url("/assets/hero-commodities.webp") center / cover;
  color: var(--white);
}

.page-hero > div {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow,
.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.feature-panel {
  padding: clamp(28px, 4vw, 42px);
}

.feature-panel.wide {
  max-width: 920px;
}

.prominent li {
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.prominent li + li {
  margin-top: 14px;
}

.prominent li::before {
  top: 0.62em;
}

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

.principle-grid article {
  position: relative;
  padding: 26px;
  overflow: hidden;
  transition: box-shadow 0.45s ease;
}

/* Accent line that sweeps the top border left-to-right on hover. */
.principle-grid article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
  z-index: 3;
}

.principle-grid article:hover::after {
  transform: scaleX(1);
}

.principle-grid article:hover {
  box-shadow: 0 22px 44px rgba(18, 53, 111, 0.16);
}

/* Operating-principles section: image backdrop with frosted-glass cards. */
.principle-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(9, 22, 48, 0.82), rgba(9, 22, 48, 0.9)),
    url("/assets/global-trade.webp") center / cover no-repeat;
}

.principle-section .eyebrow {
  color: var(--accent);
}

.principle-section .section-heading h2 {
  color: var(--white);
}

.principle-section .section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

.principle-section .principle-grid article {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 26px 26px 28px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 40px rgba(8, 20, 44, 0.28);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.45s ease, background 0.45s ease,
    border-color 0.45s ease, box-shadow 0.45s ease;
}

/* Minimalist symbol at the top of each principle tab. */
.principle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--accent);
  background: rgba(217, 184, 90, 0.1);
  border: 1px solid rgba(217, 184, 90, 0.34);
  border-radius: 14px;
  transition: background 0.45s ease, border-color 0.45s ease,
    transform 0.45s ease;
}

.principle-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.principle-section .principle-grid article:hover .principle-icon {
  background: rgba(217, 184, 90, 0.18);
  border-color: rgba(217, 184, 90, 0.65);
  transform: translateY(-2px);
}

.principle-section .principle-grid h3 {
  color: var(--white);
}

.principle-section .principle-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.principle-section .principle-grid article:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(217, 184, 90, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 28px 56px rgba(8, 20, 44, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .principle-section .principle-grid article:hover {
    transform: none;
  }
}

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

.compliance-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 248px;
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Gold accent line that sweeps the top edge on hover. */
.compliance-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-dark), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.compliance-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 184, 90, 0.45);
  box-shadow: 0 28px 54px rgba(18, 53, 111, 0.16);
}

.compliance-card:hover::after {
  transform: scaleX(1);
}

/* Large faint section number, top-right — brightens to gold on hover. */
.comp-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(18, 53, 111, 0.08);
  transition: color 0.4s ease, transform 0.4s ease;
}

.compliance-card:hover .comp-num {
  color: rgba(217, 184, 90, 0.45);
  transform: translateY(-2px);
}

/* Gold icon badge. */
.comp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  color: var(--accent);
  background: rgba(217, 184, 90, 0.1);
  border: 1px solid rgba(217, 184, 90, 0.32);
  border-radius: 13px;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.comp-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.compliance-card:hover .comp-icon {
  background: rgba(217, 184, 90, 0.18);
  border-color: rgba(217, 184, 90, 0.6);
  transform: translateY(-2px);
}

.disclaimer-band {
  color: var(--white);
  background: var(--blue-dark);
}

.disclaimer-band h2 {
  color: var(--white);
}

.disclaimer-band p {
  max-width: 920px;
  color: rgba(255, 255, 255, 0.82);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

details:hover {
  border-color: rgba(217, 184, 90, 0.45);
  box-shadow: 0 14px 30px rgba(18, 53, 111, 0.08);
}

details[open] {
  border-color: rgba(217, 184, 90, 0.5);
  box-shadow: 0 16px 34px rgba(18, 53, 111, 0.1);
}

summary {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding: 20px 24px;
  color: var(--blue-dark);
  font-weight: 800;
  list-style: none;
  transition: color 0.3s ease;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: var(--blue);
}

/* Animated +/− indicator. */
summary::after {
  content: "";
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  transition: transform 0.35s ease;
}

details[open] summary::after {
  transform: rotate(135deg);
}

details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1.45fr);
  gap: 28px;
  align-items: start;
}

/* Override the global `.section > *` max-width/auto-margins so the grid items
   fill their columns instead of collapsing to content width. */
.contact-layout > * {
  max-width: none;
  margin: 0;
}

.contact-card,
.enquiry-form {
  padding: clamp(26px, 4vw, 40px);
}

/* Compact, formal office address. */
.contact-card h2 {
  font-size: 1.22rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--grey);
  border-radius: 8px;
}

.contact-methods small,
.contact-methods strong {
  display: block;
}

.contact-methods small {
  color: var(--muted);
}

.contact-map {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(18, 53, 111, 0.08);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  filter: saturate(0.92);
}

.enquiry-form {
  display: grid;
  gap: 18px;
}

.enquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 900;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}

.enquiry-form textarea {
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 40px;
  padding: 58px clamp(20px, 4vw, 64px);
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-family: var(--sans);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span,
.site-footer p {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-brand p {
  max-width: 360px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 4vw, 64px) 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About scrollytelling scene ------------------------------------------ */
.about-scene {
  position: relative;
  height: 440vh;
  background: #07162f;
}

.about-scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 64% 36%, rgba(31, 78, 158, 0.35), rgba(7, 22, 47, 0) 55%),
    #07162f;
}

.scene-map {
  position: absolute;
  inset: 0;
  will-change: opacity;
}

.about-map {
  display: block;
  width: 100%;
  height: 100%;
}

.about-land {
  fill: rgba(255, 255, 255, 0.045);
  stroke: rgba(130, 165, 225, 0.16);
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}

.about-dot {
  fill: rgba(180, 205, 240, 0.5);
  transition: fill 0.6s ease, r 0.6s ease;
}

/* During the stats phase, the network nodes light up gold. */
.about-map.is-lit .about-dot {
  fill: var(--accent);
  r: 2.8;
}

.about-arc {
  fill: none;
  stroke: rgba(217, 184, 90, 0.2);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

/* A faint pulse that travels outward from Dubai along each connection. */
.about-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 0.012 0.988;
  opacity: 0.7;
  vector-effect: non-scaling-stroke;
  animation: aboutPulse 7s linear infinite;
  animation-delay: calc(var(--i) * -0.33s);
}

@keyframes aboutPulse {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -1;
  }
}

.about-hub-core {
  fill: var(--accent);
}

.about-hub-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: aboutHubPulse 2.4s ease-out infinite;
}

@keyframes aboutHubPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.about-hub-label {
  fill: #fff;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  paint-order: stroke;
  stroke: rgba(7, 22, 47, 0.65);
  stroke-width: 2.4px;
}

.scene-city {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.scene-city img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 22, 47, 0.55) 0%,
    rgba(7, 22, 47, 0.12) 32%,
    rgba(7, 22, 47, 0.3) 60%,
    rgba(7, 22, 47, 0.9) 100%
  );
}

.scene-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.scene-step {
  position: absolute;
  top: 50%;
  left: clamp(20px, 7vw, 110px);
  max-width: min(760px, 82vw);
  color: #fff;
  opacity: 0;
  transform: translateY(calc(-50% + 26px));
  will-change: opacity;
}

.scene-step[data-step="0"] {
  opacity: 1;
  transform: translateY(-50%);
}

.scene-step .eyebrow {
  color: var(--accent);
}

.scene-step h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.02;
}

.scene-step h1 span {
  color: rgba(255, 255, 255, 0.58);
}

.scene-step h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.scene-step p {
  max-width: 560px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

/* Network stats overlay (revealed during the first scroll phase). */
.scene-stats {
  position: absolute;
  top: 62%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 4vw, 64px);
  width: min(1080px, 88vw);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.scene-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
}

.scene-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: var(--accent);
  background: rgba(217, 184, 90, 0.12);
  border: 1px solid rgba(217, 184, 90, 0.4);
  border-radius: 16px;
}

.scene-stat-icon svg {
  width: 28px;
  height: 28px;
}

.scene-stat strong {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.scene-stat small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scene-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
}

.scene-cue span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
  animation: cueDrop 1.8s ease-in-out infinite;
}

@keyframes cueDrop {
  0%,
  100% {
    transform: scaleY(0.5);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-scene {
    height: auto;
  }

  .about-scene-sticky {
    position: static;
    height: clamp(560px, 82vh, 760px);
  }

  .scene-map,
  .scene-cue {
    display: none;
  }

  .scene-city {
    opacity: 1;
  }

  .scene-step {
    transform: translateY(-50%);
  }

  .about-pulse {
    display: none;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    justify-self: end;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .nav-toggle span:not(.sr-only) {
    height: 2px;
    background: var(--blue-dark);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .split-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  /* Avoid overlapping the stacked copy on narrow screens. */
  .about-intro-graphic {
    display: none;
  }

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

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

@media (max-width: 900px) {
  /* Stack the hero: copy on top, full-width map below. */
  .hero-band {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .hero-content {
    order: 1;
    pointer-events: auto;
    padding: clamp(30px, 7vw, 56px) clamp(20px, 5vw, 28px) clamp(6px, 2vw, 12px);
  }

  .hero-copy {
    max-width: none;
    padding: 0;
  }

  .hero-map {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .hero-scrim {
    display: none;
  }

  .map-node text {
    font-size: 19px;
  }

  .map-node:hover text,
  .map-node.is-active text {
    font-size: 27px;
  }

  /* Show the commodities image on phones, but hide the hover-only card deck
     (the full Commodities section sits just below the hero). */
  .commodity-web {
    width: 240px;
    height: 150px;
    right: 8px;
    bottom: 8px;
  }

  .web-hub {
    width: 210px;
  }

  .card-stack {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand img {
    height: 36px;
  }

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

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .stats-strip,
  .services-grid,
  .commodity-grid,
  .principle-grid,
  .compliance-grid,
  .process-list,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .cta-band,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-card,
  .commodity-card,
  .compliance-grid article {
    min-height: unset;
  }
}

/* ===== Services: interactive scroll-driven process timeline ===== */
.process-scene {
  position: relative;
}

/* Pin wrapper: gives extra scroll room for the "glow" phase while the hero
   stays sticky (so the page reads as static). Height is set by JS; defaults to
   a single screen for no-JS / reduced-motion. */
.process-hero-pin {
  height: 100vh;
}

/* Full-screen banner: sticks while the marker glows, then fades as it leaves. */
.process-hero {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  padding: clamp(90px, 14vh, 160px) clamp(20px, 4vw, 64px);
  overflow: hidden;
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .process-hero {
    position: relative;
  }
}

.process-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 16, 36, 0.94) 0%,
      rgba(7, 20, 44, 0.74) 42%,
      rgba(7, 20, 44, 0.4) 100%
    ),
    url("/assets/services-hero.webp") center / cover no-repeat;
}

.process-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.process-hero .eyebrow {
  color: var(--accent);
}

.process-hero h1 {
  margin: 16px 0 20px;
  max-width: 15ch;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.process-hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

/* Reusable image page banner — same treatment as the services hero. */
.media-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 78vh, 820px);
  padding: clamp(90px, 13vh, 150px) clamp(20px, 4vw, 64px);
  overflow: hidden;
  color: var(--white);
}

.media-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 16, 36, 0.92) 0%,
      rgba(7, 20, 44, 0.72) 40%,
      rgba(7, 20, 44, 0.32) 100%
    ),
    var(--hero-img) center / cover no-repeat;
}

.media-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.media-hero .eyebrow {
  color: var(--accent);
}

.media-hero h1 {
  margin: 16px 0 20px;
  max-width: 18ch;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.media-hero p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

/* Dotless "i" — its dot is the travel orb, but the glyph keeps the text colour.
   Override the global `h1 span { color: green }` accent rule. */
.process-hero .title-i,
.process-hero .title-i-glyph {
  position: relative;
  color: var(--white);
  font-style: normal;
}

.hero-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
}

.hero-cue span {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
  animation: cueDrop 1.8s ease-in-out infinite;
}

.timeline-section {
  padding-top: clamp(54px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 110px);
}

.timeline {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}

/* The marker: starts as a plain text-coloured dot on the "i"; JS lerps its
   colour/size/glow to gold as it pops out and travels the pipeline. */
.travel-orb {
  position: fixed;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.travel-orb::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(217, 184, 90, 0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.travel-orb.is-gold::after {
  opacity: 1;
  animation: orbPulse 2.2s ease-out infinite;
}

/* Minimalist symbol on each step card. */
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--accent);
  background: rgba(217, 184, 90, 0.1);
  border: 1px solid rgba(217, 184, 90, 0.34);
  border-radius: 12px;
}

.step-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}

.timeline-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The rail spans the whole timeline; node markers sit on its centre line.
   It extends a little above the first node so the line leads into step 1. */
.timeline-rail {
  position: absolute;
  top: -48px;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}

.timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(217, 184, 90, 0.45), var(--accent));
  border-radius: 2px;
}

@keyframes orbPulse {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(48px, 7vw, 94px);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.timeline-step.is-in {
  opacity: 1;
  transform: none;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-node {
  position: relative;
  z-index: 2;
  align-self: start;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: color 0.5s ease, border-color 0.5s ease, background 0.5s ease,
    box-shadow 0.5s ease, transform 0.5s ease;
}

.timeline-node svg {
  width: 22px;
  height: 22px;
}

.timeline-step.is-reached .timeline-node {
  color: var(--blue-dark);
  border-color: var(--accent);
  background: linear-gradient(145deg, #fff, rgba(217, 184, 90, 0.18));
  box-shadow:
    0 0 0 6px rgba(217, 184, 90, 0.12),
    0 12px 26px rgba(18, 53, 111, 0.12);
  transform: scale(1.05);
}

.timeline-card {
  position: relative;
  padding-top: 6px;
}

.ghost-num {
  position: absolute;
  top: -36px;
  right: 0;
  font-family: var(--serif);
  font-size: clamp(78px, 12vw, 140px);
  line-height: 1;
  color: rgba(18, 53, 111, 0.05);
  pointer-events: none;
  z-index: -1;
}

.step-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
}

.timeline-card p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Final "Submit an Enquiry" destination. */
.timeline-step.timeline-end .timeline-node {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px rgba(217, 184, 90, 0.16),
    0 14px 30px rgba(18, 53, 111, 0.16);
}

.timeline-end .timeline-card {
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.timeline-end .button {
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .timeline-step {
    opacity: 1;
    transform: none;
  }

  .travel-orb::after {
    animation: none;
  }
}

@media (max-width: 600px) {
  .timeline-step {
    grid-template-columns: 44px 1fr;
    gap: 18px;
  }

  .timeline-node {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  .timeline-rail {
    left: 21px;
  }

  .ghost-num {
    display: none;
  }
}

/* ===== Commodities: interactive cinematic showcase ===== */
.commodity-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(264px, 0.72fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: stretch;
}

.showcase-stage {
  position: relative;
  min-height: clamp(420px, 54vh, 560px);
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(31, 78, 158, 0.28), rgba(0, 0, 0, 0) 60%),
    var(--blue-dark);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Split layout: content on a dark panel, photo in a crisp portrait column. */
.feature-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s linear 0.8s;
}

.feature-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* The photo fills the whole tab as a full-bleed background. */
.feature-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--slide-img) center / cover no-repeat;
}

.feature-slide.is-active .feature-media {
  animation: kenBurns 16s ease-out forwards;
}

@keyframes kenBurns {
  from {
    background-size: 106% auto;
  }
  to {
    background-size: 116% auto;
  }
}

/* Darken the bottom-left so the overlaid text stays legible. */
.feature-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      0deg,
      rgba(4, 12, 28, 0.92) 0%,
      rgba(4, 12, 28, 0.55) 38%,
      rgba(4, 12, 28, 0.12) 72%
    ),
    linear-gradient(
      90deg,
      rgba(4, 12, 28, 0.66) 0%,
      rgba(4, 12, 28, 0) 55%
    );
}

.feature-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  min-width: 0;
  padding: clamp(26px, 4vw, 52px);
  color: var(--white);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease 0.18s, transform 0.7s ease 0.18s;
}

.feature-slide.is-active .feature-content {
  opacity: 1;
  transform: none;
}

.feature-type {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature-content h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.feature-items {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
}

.feature-items li {
  padding: 7px 15px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-slide.is-active .feature-items li {
  opacity: 1;
  transform: none;
}

.feature-slide.is-active .feature-items li:nth-child(1) {
  transition-delay: 0.3s;
}
.feature-slide.is-active .feature-items li:nth-child(2) {
  transition-delay: 0.37s;
}
.feature-slide.is-active .feature-items li:nth-child(3) {
  transition-delay: 0.44s;
}
.feature-slide.is-active .feature-items li:nth-child(4) {
  transition-delay: 0.51s;
}
.feature-slide.is-active .feature-items li:nth-child(5) {
  transition-delay: 0.58s;
}

/* Glass "Learn more" button (placeholder for future commodity detail pages). */
.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 13px 24px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.62s, transform 0.6s ease 0.62s,
    background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.glass-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s ease;
}

.glass-btn:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 26px rgba(5, 14, 32, 0.34);
}

.glass-btn:hover svg {
  transform: translateX(3px);
}

.feature-slide.is-active .feature-content .glass-btn {
  opacity: 1;
  transform: none;
}

/* Selectable rail */
.showcase-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  width: 100%;
  padding: 15px 18px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease,
    transform 0.4s ease, background 0.4s ease;
}

.showcase-tab::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s ease;
}

.showcase-tab:hover {
  transform: translateX(3px);
}

.showcase-tab:hover::before,
.showcase-tab.is-active::before {
  transform: scaleY(1);
}

.showcase-tab.is-active {
  border-color: rgba(217, 184, 90, 0.45);
  box-shadow: 0 16px 32px rgba(18, 53, 111, 0.1);
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: var(--muted);
  background: var(--grey);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.tab-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}

.showcase-tab.is-active .tab-icon {
  color: var(--accent);
  background: rgba(217, 184, 90, 0.1);
  border-color: rgba(217, 184, 90, 0.4);
}

.tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tab-text strong {
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.15;
}

.tab-text small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Auto-advance progress bar — restarts whenever a tab becomes active. */
.tab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.showcase-tab.is-active .tab-progress {
  animation: tabFill var(--auto-dur, 4800ms) linear forwards;
}

.showcase-rail.is-paused .showcase-tab.is-active .tab-progress {
  animation-play-state: paused;
}

@keyframes tabFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-slide.is-active .feature-media {
    animation: none;
  }

  .showcase-tab.is-active .tab-progress {
    animation: none;
  }
}

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

  .showcase-rail {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .showcase-tab {
    flex: 0 0 auto;
    min-width: 190px;
  }

  .showcase-tab:hover {
    transform: none;
  }
}

/* ===== Buyer registration questionnaire ===== */
.reg-section .section-heading {
  max-width: 940px;
  margin-bottom: 28px;
}

.reg-form {
  display: grid;
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}

.reg-hp {
  display: none;
}

.reg-block {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(18, 53, 111, 0.05);
}

/* Float the legend so it flows inside the card padding instead of being
   anchored over the top border (the default fieldset-legend behaviour). */
.reg-block > legend {
  display: flex;
  align-items: center;
  gap: 11px;
  float: left;
  width: 100%;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 1.32rem;
}

.reg-block > legend ~ * {
  clear: both;
}

.reg-block legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(217, 184, 90, 0.12);
  border: 1px solid rgba(217, 184, 90, 0.4);
  border-radius: 8px;
}

.reg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reg-form .reg-full {
  grid-column: 1 / -1;
}

.reg-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.reg-form input,
.reg-form select,
.reg-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 78, 158, 0.12);
}

.reg-form textarea {
  resize: vertical;
}

.req {
  color: var(--accent);
}

.choice-group {
  min-width: 0;
  padding: 0;
  margin: 6px 0 2px;
  border: 0;
}

.choice-group legend {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* Higher specificity than `.reg-form label` so pills stay inline, not stacked. */
.reg-form .choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--grey);
  border: 1px solid var(--line);
  border-radius: 24px;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.reg-form .choice:hover {
  border-color: rgba(31, 78, 158, 0.45);
  background: #eef2f8;
}

.choice input {
  width: auto;
  margin: 0;
  accent-color: var(--blue);
}

.reg-other {
  margin-top: 12px;
}

.reg-decl {
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.reg-decl .choice {
  align-items: flex-start;
  width: 100%;
  border-radius: 8px;
  font-weight: 500;
}

.reg-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reg-submit {
  justify-self: start;
  margin-top: 2px;
}

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

/* ===== Scroll-down cue (minimalist animated arrow) ===== */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  color: var(--blue);
  text-decoration: none;
}

.scroll-cue-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(18, 53, 111, 0.1);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.scroll-cue-ring svg {
  width: 24px;
  height: 24px;
  animation: cueBob 1.9s ease-in-out infinite;
}

.scroll-cue-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: cuePulse 2.4s ease-out infinite;
}

.scroll-cue-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.scroll-cue:hover {
  color: var(--accent);
}

.scroll-cue:hover .scroll-cue-ring {
  transform: translateY(4px);
  border-color: var(--accent);
  box-shadow: 0 18px 34px rgba(217, 184, 90, 0.24);
}

.scroll-cue:hover .scroll-cue-label {
  color: var(--blue-dark);
}

@keyframes cueBob {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(4px); }
}

@keyframes cuePulse {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-ring svg,
  .scroll-cue-ring::after {
    animation: none;
  }
}

/* ===== Buyer / Seller services: compact interactive tabs ===== */
.svc-tabs {
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(0, 1.18fr);
  align-self: start;
  width: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(18, 53, 111, 0.07);
}

.svc-tablist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--grey);
  border-right: 1px solid var(--line);
}

.svc-tab {
  position: relative;
  padding: 11px 14px 11px 16px;
  text-align: left;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.svc-tab::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 3px;
  transform: translateY(-50%);
  transition: height 0.3s ease;
}

.svc-tab:hover {
  color: var(--blue-dark);
}

.svc-tab.is-active {
  color: var(--blue-dark);
  background: var(--white);
  box-shadow: 0 6px 16px rgba(18, 53, 111, 0.08);
}

.svc-tab.is-active::before {
  height: 18px;
}

.svc-panel {
  position: relative;
  display: flex;
  min-height: 172px;
  padding: clamp(22px, 2.6vw, 32px);
}

.svc-panel-item {
  display: none;
  align-self: center;
}

.svc-panel-item.is-active {
  display: block;
  animation: svcFade 0.4s ease;
}

.svc-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--accent);
  background: rgba(217, 184, 90, 0.1);
  border: 1px solid rgba(217, 184, 90, 0.32);
  border-radius: 12px;
}

.svc-panel-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}

.svc-panel-item h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 1.3rem;
}

.svc-panel-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

@keyframes svcFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-panel-item.is-active {
    animation: none;
  }
}

@media (max-width: 620px) {
  .svc-tabs {
    grid-template-columns: 1fr;
  }

  .svc-tablist {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .svc-tab {
    flex: 0 0 auto;
  }

  .svc-tab.is-active::before {
    display: none;
  }
}
