/* ==========================================================================
   414 SOLUTIONS — Design System
   Industrial trading / sourcing / warehousing / packaging
   ========================================================================== */

:root {
  /* ---- Color tokens (drawn from the mark: deep navy shell, steel blue,
     polished silver core) ---- */
  --navy-950: #040910;
  --navy-900: #081221;
  --navy-800: #0d1c30;
  --navy-700: #132840;
  --steel-600: #1c3a56;
  --steel-500: #2c5578;
  --blue-600: #1668b8;
  --blue-500: #2380d6;
  --blue-400: #4aa3ec;
  --blue-300: #8cc8f5;
  --silver-300: #c7d2dc;
  --silver-200: #e3e9ee;
  --white: #f7f9fb;
  --paper: #eef1f4;
  --ink-900: #0b1220;
  --ink-700: #2a3441;
  --ink-500: #5b6b7c;
  --line-soft: rgba(247, 249, 251, 0.10);
  --line-soft-dark: rgba(11, 18, 32, 0.10);
  --line-strong: rgba(247, 249, 251, 0.20);
  --amber-500: #d68c23;
  /* rare use — RFQ / alert accent only */

  --grad-steel: linear-gradient(135deg, var(--navy-900) 0%, var(--steel-600) 52%, var(--navy-800) 100%);
  --grad-blue: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-400) 100%);
  --grad-sheen: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%);

  /* ---- Type ---- */
  --font-display: 'Oswald', "Arial Narrow", sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* ---- Layout ---- */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 3px;
  --radius-md: 6px;
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
p,
figure {
  margin: 0;
}

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

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

svg {
  display: block;
}

::selection {
  background: var(--blue-500);
  color: #fff;
}

/* Small inline utility icons (arrows, carets) are reused across many
   unrelated components without a dedicated wrapper class, so their size is
   fixed here at the CSS level rather than relying solely on the inline
   width/height attributes the icon() helper sets — this guarantees
   consistent, correct sizing everywhere regardless of nesting context. */
svg.arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

svg.caret {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}

/* ------------------------------- Utilities ------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}

.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.on-dark {
  background: var(--navy-900);
  color: var(--white);
}

.on-steel {
  background: var(--grad-steel);
  color: var(--white);
}

.on-paper {
  background: var(--paper);
  color: var(--ink-900);
}

.on-white {
  background: var(--white);
  color: var(--ink-900);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-400);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 500;
}

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

.on-white .eyebrow,
.on-paper .eyebrow {
  color: var(--blue-600);
}

.on-white .eyebrow::before,
.on-paper .eyebrow::before {
  background: var(--blue-600);
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.04;
  font-size: clamp(38px, 5.6vw, 74px);
}

h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.08;
  font-size: clamp(28px, 3.6vw, 44px);
}

h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.16;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: .01em;
}

h4,
.h4 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .05em;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--ink-500);
  max-width: 56ch;
}

.on-dark .lede,
.on-steel .lede {
  color: var(--silver-300);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head .h2 {
  max-width: 640px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--silver-300);
}

.on-white .tag,
.on-paper .tag {
  border-color: rgba(11, 18, 32, .16);
  color: var(--ink-500);
}

/* ------------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--blue-500);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-400);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(247, 249, 251, .06);
  transform: translateY(-2px);
}

.on-white .btn-outline,
.on-paper .btn-outline {
  border-color: rgba(11, 18, 32, .22);
  color: var(--ink-900);
}

.on-white .btn-outline:hover,
.on-paper .btn-outline:hover {
  border-color: var(--ink-900);
  background: rgba(11, 18, 32, .04);
}

.btn-ghost {
  color: var(--blue-400);
  gap: 8px;
  padding: 8px 0;
}

.on-white .btn-ghost,
.on-paper .btn-ghost {
  color: var(--blue-600);
}

.btn-ghost .arrow {
  transition: transform .3s var(--ease);
}

.btn-ghost:hover .arrow {
  transform: translateX(5px);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

/* --------------------------------- Top bar -------------------------------- */
/* Sits in normal document flow (NOT fixed/sticky) so it scrolls away
   naturally. .site-header below is offset to sit under it initially,
   then slides up to top:0 once scrolled past it. */
:root {
  --topbar-h: 38px;
}

.top-bar {
  position: relative;
  z-index: 1001;
  background: var(--navy-950);
  border-bottom: 1px solid var(--line-soft);
}

.top-bar-inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--silver-300);
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.top-bar-item:hover {
  color: var(--blue-300);
}

.top-bar-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--blue-400);
}

@media (max-width:767px) {
  .top-bar {
    display: none;
  }
}

/* --------------------------------- Header -------------------------------- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topbar-h);
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(4, 9, 16, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease), top .4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(4, 9, 16, .92);
  backdrop-filter: blur(10px);
  border-color: var(--line-soft);
  height: 68px;
  top: 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

@media (max-width:767px) {
  .site-header {
    top: 0;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
  transition: height .4s var(--ease);
}

.is-scrolled .brand img {
  height: 32px;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .03em;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-word span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--blue-300);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-item {
  position: relative;
}

.main-nav a.nav-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--silver-300);
  padding: 10px 12px;
  border-radius: 2px;
  position: relative;
  white-space: nowrap;
  transition: color .25s var(--ease);
}

.main-nav a.nav-top .caret {
  width: 10px;
  height: 10px;
  transition: transform .25s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--blue-400);
}

/* Products dropdown (desktop: hover / keyboard focus) */
.has-dropdown {
  display: flex;
}

.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  background: var(--navy-900);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 24px 48px -20px rgba(4, 9, 16, .6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--silver-300);
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.dropdown a:hover {
  background: rgba(74, 163, 236, .1);
  color: #fff;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-cta .btn {
  padding: 12px 18px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

@media (max-width:1160px) {
  .main-nav {
    display: none;
  }

  .header-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (min-width:1161px) and (max-width:1300px) {
  .main-nav a.nav-top {
    padding: 10px 9px;
    font-size: 11.5px;
  }

  .header-cta .btn {
    padding: 11px 15px;
    font-size: 12px;
  }
}

/* ===================== Mobile full-screen menu ===================== */
/* A self-contained overlay, independent of the scrolling header's state,
   so it always renders identically regardless of scroll position. */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1998;
  background: rgba(4, 9, 16, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}

.nav-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1999;
  width: min(420px, 100%);
  height: 100%;
  height: 100dvh;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .5);
}

.nav-open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
}

.mobile-menu-head .brand img {
  height: 34px;
}

.mobile-menu-head .brand-word {
  font-size: 16px;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
}

.x-mark {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

.x-mark::before,
.x-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #fff;
}

.x-mark::before {
  transform: translateY(-50%) rotate(45deg);
}

.x-mark::after {
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px var(--gutter) 16px;
}

.m-nav-item {
  border-bottom: 1px solid var(--line-soft);
}

.m-nav-row {
  display: flex;
  align-items: stretch;
  min-height: 60px;
}

.m-nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 20px 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--silver-300);
}

.m-nav-link.active {
  color: var(--blue-300);
}

.m-nav-expand {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver-300);
}

.m-nav-expand .caret {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease);
}

.m-nav-item.open .m-nav-expand .caret {
  transform: rotate(180deg);
}

.m-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}

.m-nav-item.open .m-submenu {
  padding-bottom: 14px;
}

.m-submenu a {
  display: block;
  padding: 13px 4px 13px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-500);
  border-left: 1px solid var(--line-soft);
  margin-left: 2px;
}

.m-submenu a:hover {
  color: #fff;
}

.mobile-menu-foot {
  flex-shrink: 0;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--line-soft);
}

.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.mobile-menu-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver-300);
}

.mobile-menu-contact svg {
  width: 14px;
  height: 14px;
  color: var(--blue-400);
  flex-shrink: 0;
}

@media (min-width:1161px) {

  .mobile-menu,
  .mobile-menu-backdrop,
  .nav-toggle {
    display: none !important;
  }
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + var(--topbar-h));
  background:
    linear-gradient(180deg, rgba(4, 9, 16, .55) 0%, rgba(4, 9, 16, .55) 40%, rgba(4, 9, 16, .96) 100%),
    linear-gradient(115deg, rgba(8, 18, 33, .92), rgba(13, 28, 48, .65)),
    url("../img/hero-port.svg") center 78%/cover no-repeat, var(--navy-950);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 60%);
  opacity: .5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 56px clamp(56px, 9vw, 110px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(74, 163, 236, .25);
}

.hero h1 {
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-300);
}

.hero-sub {
  margin-top: 26px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-sub .lede {
  color: var(--silver-300);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--silver-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.hero-scroll .line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--line-strong), transparent);
}

@media (max-width:720px) {
  .hero-scroll {
    display: none;
  }
}

@media (max-width:767px) {
  .hero {
    padding-top: var(--header-h);
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 74px);
  }
}

/* Mobile hero: drop the full-viewport-height treatment (which left a big
   empty gap above the content on short mobile viewports) in favor of a
   compact, content-sized hero that flows straight into the marquee. */
@media (max-width:600px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 14px);
    padding-bottom: 0;
  }

  .hero-inner {
    padding-block: 80px 32px;
  }

  .hero-kicker {
    margin-bottom: 14px;
  }

  .hero-sub {
    margin-top: 18px;
    gap: 24px;
  }

  .hero-cta {
    margin-top: 4px;
  }
}

/* ------------------------------ Marquee strip ----------------------------- */
.marquee {
  background: var(--navy-950);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding-block: 16px;
}

.marquee-track {
  display: flex;
  gap: 52px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver-300);
  display: flex;
  align-items: center;
  gap: 52px;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "//";
  color: var(--blue-500);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* -------------------------------- Pillars -------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft-dark);
  border: 1px solid var(--line-soft-dark);
}

.pillar {
  background: var(--white);
  padding: 38px 30px;
  transition: background-color .3s var(--ease);
  position: relative;
}

.pillar:hover {
  background: var(--paper);
}

.pillar .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-600);
  letter-spacing: .1em;
}

.pillar .icon {
  width: 40px;
  height: 40px;
  margin: 20px 0 22px;
  color: var(--blue-600);
}

.pillar h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.pillar p {
  color: var(--ink-500);
  font-size: 14.5px;
  line-height: 1.55;
}

.pillar .go {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

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

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

/* --------------------------------- Cards ---------------------------------- */
.card-grid {
  display: grid;
  gap: 28px;
}

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

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

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

@media (max-width:980px) {

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

@media (max-width:640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid rgba(11, 18, 32, .09);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -24px rgba(8, 18, 33, .28);
  border-color: rgba(35, 128, 214, .35);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.card p {
  color: var(--ink-500);
  font-size: 14.5px;
}

.card .card-icon {
  width: 38px;
  height: 38px;
  color: var(--blue-600);
  margin-bottom: 20px;
}

.card-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-500);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.card-list li::before {
  content: "—";
  color: var(--blue-500);
  flex-shrink: 0;
}

.card-dark {
  background: var(--steel-600);
  border: 1px solid var(--line-soft);
  color: #fff;
}

.card-dark p {
  color: var(--silver-300);
}

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

/* Compact bordered feature item — used where an icon+heading+text needs a
   defined boundary regardless of what section/container it sits in
   (unlike .card-icon, which is intentionally scoped to .card). */
.mini-card {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid rgba(11, 18, 32, .08);
  border-radius: var(--radius-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(8, 18, 33, .22);
}

.mini-card .card-icon {
  width: 34px;
  height: 34px;
  color: var(--blue-600);
  margin-bottom: 16px;
}

.mini-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.mini-card p {
  color: var(--ink-500);
  font-size: 13.5px;
  line-height: 1.55;
}

/* Product / category card w/ image plate */
.plate {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--grad-steel);
  aspect-ratio: 4/3;
}

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

.plate .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 9, 16, 0) 30%, rgba(4, 9, 16, .88) 100%);
}

.plate .plate-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 26px;
  color: #fff;
}

.plate .plate-body .eyebrow {
  color: var(--blue-300);
  margin-bottom: 8px;
}

.plate .plate-body .eyebrow::before {
  background: var(--blue-300);
}

.plate .plate-body h3 {
  color: #fff;
}

/* --------------------------------- Diagram (signature) -------------------- */
.flow {
  position: relative;
  padding: 56px 0 24px;
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.flow-node {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  background: rgba(247, 249, 251, .03);
  text-align: center;
}

.flow-node.center {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-color: transparent;
  padding: 30px 24px;
}

.flow-node .cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 8px;
}

.flow-node.center .cap {
  color: rgba(255, 255, 255, .75);
}

.flow-node h4 {
  font-size: 15px;
  letter-spacing: .03em;
  color: #fff;
}

.flow-node .steps {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.flow-node .steps span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, .82);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-node .steps span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.flow-arrow {
  width: 34px;
  height: 14px;
  color: var(--blue-400);
}

.flow-arrow svg {
  width: 100%;
  height: 100%;
}

@media (max-width:860px) {
  .flow-row {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    width: 14px;
    height: 34px;
    margin: 0 auto;
  }
}

/* ------------------------------- Process steps ---------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line-soft);
}

.process-step {
  padding: 0 18px;
  position: relative;
}

.process-step .idx {
  font-family: var(--font-display);
  font-size: 40px;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--blue-400);
  display: block;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  background: var(--navy-900);
}

.on-white .process-step .idx,
.on-paper .process-step .idx {
  background: var(--paper);
  -webkit-text-stroke: 1.4px var(--blue-500);
}

.process-step h4 {
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: .04em;
}

.on-white .process-step h4,
.on-paper .process-step h4 {
  color: var(--ink-900);
}

.process-step p {
  font-size: 13.5px;
  color: var(--silver-300);
  line-height: 1.55;
}

.on-white .process-step p,
.on-paper .process-step p {
  color: var(--ink-500);
}

@media (max-width:980px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 18px;
  }

  .process::before {
    display: none;
  }
}

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

/* 3-step variant (used for "How Ordering Works") — a modifier class instead
   of an inline style override, so it still collapses responsively. */
.process-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width:980px) {
  .process-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 18px;
  }
}

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

/* --------------------------------- Stats ---------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stat {
  padding: 34px 26px;
  border-left: 1px solid var(--line-soft);
}

.stat:first-child {
  border-left: none;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  color: #fff;
  line-height: 1;
}

.stat .num span {
  color: var(--blue-300);
}

.stat .label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--silver-300);
}

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

  .stat:nth-child(3) {
    border-left: none;
  }
}

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

  .stat {
    border-left: none !important;
    border-top: 1px solid var(--line-soft);
  }

  .stat:first-child {
    border-top: none;
  }
}

/* -------------------------------- Industries ------------------------------ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(11, 18, 32, .09);
  border: 1px solid rgba(11, 18, 32, .09);
}

.industry {
  background: var(--white);
  padding: 30px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background .3s var(--ease);
}

.industry:hover {
  background: var(--paper);
}

.industry .icon {
  width: 30px;
  height: 30px;
  color: var(--blue-600);
  flex-shrink: 0;
}

.industry span {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-900);
}

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

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

/* Dark-section variant — used when the grid sits on a navy/steel background
   (e.g. Warehousing on sourcing-trading.html, Application Industries on the
   chemicals hub) so icon + label stay legible instead of white-on-white. */
.industry-grid.dark {
  background: rgba(247, 249, 251, .09);
  border-color: var(--line-soft);
}

.industry-grid.dark .industry {
  background: transparent;
}

.industry-grid.dark .industry:hover {
  background: rgba(247, 249, 251, .06);
}

.industry-grid.dark .industry .icon {
  color: var(--blue-300);
}

.industry-grid.dark .industry span {
  color: var(--silver-300);
}

/* -------------------------------- CTA banner ------------------------------ */
.cta-banner {
  background: var(--grad-blue);
  border-radius: var(--radius-md);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 85% 20%, black, transparent 70%);
}

.cta-banner h2 {
  position: relative;
  max-width: 20ch;
  font-size: clamp(24px, 3vw, 34px);
}

.cta-banner p {
  position: relative;
  margin-top: 10px;
  color: rgba(255, 255, 255, .88);
  max-width: 48ch;
}

.cta-banner .btn {
  position: relative;
  background: #fff;
  color: var(--blue-600);
}

.cta-banner .btn:hover {
  background: var(--navy-950);
  color: #fff;
}

/* -------------------------------- Accordion / Quality ---------------------- */
.acc {
  border-top: 1px solid rgba(11, 18, 32, .12);
}

.acc-item {
  border-bottom: 1px solid rgba(11, 18, 32, .12);
}

.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  width: 100%;
  text-align: left;
}

.acc-head .n {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--blue-600);
  margin-right: 18px;
}

.acc-head h3 {
  font-size: 17px;
  flex: 1;
}

.acc-head .plus {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.acc-head .plus::before,
.acc-head .plus::after {
  content: "";
  position: absolute;
  background: var(--ink-900);
  transition: transform .3s var(--ease);
}

.acc-head .plus::before {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.acc-head .plus::after {
  top: 0;
  left: 50%;
  height: 100%;
  width: 1.5px;
  transform: translateX(-50%);
}

.acc-item.open .plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.acc-panel-inner {
  padding: 0 4px 28px 42px;
  color: var(--ink-500);
  font-size: 14.5px;
  max-width: 66ch;
}

.acc-panel-inner ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.acc-panel-inner li {
  display: flex;
  gap: 10px;
}

.acc-panel-inner li::before {
  content: "—";
  color: var(--blue-600);
}

/* --------------------------------- Forms ----------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  min-width: 0;
}

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

.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.on-dark .field label,
.on-steel .field label {
  color: var(--silver-300);
}

.field .req {
  color: var(--blue-500);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid rgba(11, 18, 32, .18);
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.on-dark .field input,
.on-dark .field select,
.on-dark .field textarea,
.on-steel .field input,
.on-steel .field select,
.on-steel .field textarea {
  background: rgba(247, 249, 251, .05);
  border-color: var(--line-soft);
  color: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-500);
  opacity: .7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(35, 128, 214, .18);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  font-size: 12px;
  color: #e0674f;
  min-height: 14px;
  font-family: var(--font-mono);
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width:640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-note {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 6px;
}

.on-dark .form-note,
.on-steel .form-note {
  color: var(--silver-300);
}

.form-status {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 3px;
  font-size: 14px;
  display: none;
  font-family: var(--font-mono);
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background: rgba(35, 128, 214, .12);
  border: 1px solid rgba(35, 128, 214, .35);
  color: var(--blue-600);
}

.on-dark .form-status.ok,
.on-steel .form-status.ok {
  color: var(--blue-300);
}

.form-status.err {
  background: rgba(224, 103, 79, .1);
  border: 1px solid rgba(224, 103, 79, .35);
  color: #c14f36;
}

/* --------------------------------- Footer ----------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--silver-300);
  padding-top: 72px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand-mark img {
  height: 40px;
  display: block;
}

.footer-brand-mark .brand-word {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .03em;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.footer-brand-mark .brand-word span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--blue-300);
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 500;
}

.footer-brand p {
  font-size: 14px;
  color: var(--ink-500);
  max-width: 34ch;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s, background .25s;
}

.footer-social a:hover {
  border-color: var(--blue-400);
  background: rgba(74, 163, 236, .1);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-col h4 {
  color: var(--silver-300);
  font-size: 12.5px;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-500);
  transition: color .25s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .contact-line {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-500);
  align-items: flex-start;
}

.footer-col .contact-line svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 26px;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-500);
  font-family: var(--font-mono);
}

.footer-bottom a {
  color: var(--ink-500);
}

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

.footer-legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

@media (max-width:980px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ------------------------------- Page hero (inner) --------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--topbar-h) + 74px);
  padding-bottom: 64px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(4, 9, 16, .94), rgba(13, 28, 48, .86)), var(--img, none) center/cover no-repeat, var(--navy-950);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 65%);
  opacity: .5;
  pointer-events: none;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--silver-300);
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  opacity: .4;
}

.page-hero h1 {
  max-width: 22ch;
}

.page-hero .lede {
  margin-top: 20px;
}

/* --------------------------------- Misc -------------------------------------- */
.divider {
  height: 1px;
  background: var(--line-soft);
  width: 100%;
}

.on-white .divider,
.on-paper .divider {
  background: rgba(11, 18, 32, .1);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.split-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.split-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(11, 18, 32, .1);
}

.split-item:last-child {
  border-bottom: 1px solid rgba(11, 18, 32, .1);
}

.split-item .k {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-600);
  width: 64px;
  flex-shrink: 0;
  padding-top: 3px;
}

.split-item h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.split-item p {
  font-size: 14px;
  color: var(--ink-500);
}

.on-dark .split-item,
.on-steel .split-item {
  border-color: var(--line-soft);
}

.on-dark .split-item h4,
.on-steel .split-item h4 {
  color: #fff;
}

.on-dark .split-item p,
.on-steel .split-item p {
  color: var(--silver-300);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid rgba(11, 18, 32, .15);
  border-radius: 99px;
  color: var(--ink-500);
}

.on-dark .chip,
.on-steel .chip {
  border-color: var(--line-soft);
  color: var(--silver-300);
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  background: var(--blue-500);
  color: #fff;
  padding: 12px 18px;
  z-index: 2000;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: top .3s;
}

.skip-link:focus {
  top: 12px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver-300);
}

.badge svg {
  width: 20px;
  height: 20px;
  color: var(--blue-400);
}

.table-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-spec th,
.table-spec td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(11, 18, 32, .1);
  white-space: nowrap;
}

.table-spec th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

@media (max-width:640px) {
  .table-spec {
    font-size: 13px;
  }

  .table-spec th,
  .table-spec td {
    padding: 12px 14px;
  }
}

/* Map card — deliberately pure CSS (no SVG viewBox/preserveAspectRatio),
   so nothing here can ever zoom-crop or mis-scale on odd container ratios.
   The "pin" is a fixed-pixel-size element centered in the box; it does not
   scale with the box, so it always renders at the same visual size. */
.map-shell {
  position: relative;
  background: linear-gradient(135deg, #0d1c30, #132840);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  min-height: 260px;
  border: 1px solid var(--line-soft);
}

.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 249, 251, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 249, 251, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 75%);
}

.map-pin {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(74, 163, 236, .35);
  animation: map-ping 2.6s ease-out infinite;
}

.map-pin-dot {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(35, 128, 214, .6);
}

.map-pin-dot svg {
  width: 20px;
  height: 20px;
}

@keyframes map-ping {
  0% {
    transform: scale(.7);
    opacity: .7;
  }

  75% {
    transform: scale(1.8);
    opacity: 0;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.map-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #fff;
}

.map-overlay-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.map-overlay-address {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

@media (max-width:640px) {
  .map-shell {
    aspect-ratio: 4/3;
    min-height: 260px;
  }

  .map-overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .map-overlay-label {
    font-size: 10px;
  }

  .map-overlay-address {
    font-size: 13px;
    margin-top: 4px;
  }

  .map-pin {
    width: 38px;
    height: 38px;
  }

  .map-pin-dot {
    width: 30px;
    height: 30px;
  }

  .map-pin-dot svg {
    width: 17px;
    height: 17px;
  }
}

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

.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--header-h) + var(--topbar-h));
}

@media (max-width:767px) {
  .not-found {
    padding-top: var(--header-h);
  }
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 180px);
  color: var(--blue-500);
  line-height: 1;
}