/* ============================================================
   DENVER NETHER COMMODITIES — CARTOGRAPH DESIGN SYSTEM
   Palette: parchment bg · ink text · rust accent · muted grey
   Fonts: Fraunces (headline) · Inter (body)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #f4f1ea; /* warm parchment */
  --surface: #ffffff; /* data card */
  --ink: #1b1b1a; /* near-black */
  --rust: #c2492d; /* terracotta accent */
  --rust-dk: #a83b22; /* darker rust for hover */
  --rust-text: #a63d24; /* AA-safe rust for small text — 5.61:1 on parchment */
  --muted: #8a857a; /* graticule grey — decorative/large only */
  --text-2: #5e5a50; /* body paragraph text — 6.09:1 on parchment, 6.87:1 on white */
  --hairline: #ded9ce; /* faint border */
  --max-w: 1280px;
  --nav-h: 72px;
  --nav-h-sm: 56px;
  --radius: 3px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.32s;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--rust);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Global focus indicator ---------- */
:focus-visible {
  outline: 2px solid var(--rust-text);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Suppress the old :focus outline only — :focus-visible handles visible state */
:focus:not(:focus-visible) {
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
}

h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

p {
  color: var(--text-2);
  line-height: 1.7;
}

/* Eyebrow / coordinate labels */
.eyebrow,
.coord-label {
  display: inline-block;
  font-family: "Inter", monospace, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 96px 0;
}

/* ---------- Accent rule ---------- */
.accent-rule {
  width: 40px;
  height: 2px;
  background: var(--rust);
  border-radius: 1px;
  margin: 1rem 0 1.5rem;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flow-arc,
  .port-node {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background var(--t) var(--ease),
    height var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

#nav.scrolled {
  height: var(--nav-h-sm);
  background: rgba(244, 241, 234, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Wordmark */
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.mark-main {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.mark-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity var(--t);
}

.nav-links a:hover {
  opacity: 1;
}

/* CTA button */
.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--rust);
  color: #fff !important;
  opacity: 1 !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  transition: background var(--t);
}

.btn-nav:hover {
  background: var(--rust-dk);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform var(--t) var(--ease),
    opacity var(--t);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h-sm);
  left: 0;
  right: 0;
  background: rgba(244, 241, 234, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem 2rem 2rem;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 999;
  border-top: 1px solid var(--hairline);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--hairline);
}

.nav-mobile .btn-nav {
  width: fit-content;
  margin-top: 0.5rem;
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: var(--bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* World map SVG fills the hero background */
.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#world-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Continents: muted, low-contrast fill on parchment */
.continent {
  fill: var(--hairline);
  stroke: none;
}

/* Flow arc lines */
.flow-arc {
  stroke: var(--rust);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  opacity: 0.75;
  /* stroke-dasharray set by JS per path length */
}

/* Port pulse nodes */
.port-node {
  fill: var(--rust);
  stroke: rgba(194, 73, 45, 0.25);
  stroke-width: 0;
  animation: port-pulse 2.8s ease-in-out infinite;
}

.port-node:nth-child(2) {
  animation-delay: 0.4s;
}
.port-node:nth-child(3) {
  animation-delay: 0.8s;
}
.port-node:nth-child(4) {
  animation-delay: 1.2s;
}
.port-node:nth-child(5) {
  animation-delay: 1.6s;
}
.port-node:nth-child(6) {
  animation-delay: 2s;
}
.port-node:nth-child(7) {
  animation-delay: 2.4s;
}

@keyframes port-pulse {
  0%,
  100% {
    r: 5;
    stroke-width: 0;
    opacity: 1;
  }
  50% {
    r: 8;
    stroke-width: 6;
    opacity: 0.7;
  }
}

/* Hero card — white paper card over the map */
.hero-card-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--nav-h);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 3rem 3rem 2.8rem;
  max-width: 520px;
  box-shadow:
    0 4px 32px rgba(27, 27, 26, 0.08),
    0 1px 4px rgba(27, 27, 26, 0.05);
}

.hero-card .eyebrow {
  color: var(--muted);
}

.hero-card h1 {
  margin-bottom: 1rem;
  margin-top: 0.3rem;
}

.hero-card h1 em {
  font-style: italic;
  color: var(--rust);
}

.hero-sub {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 400px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Primary CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--rust);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid var(--rust);
  transition:
    background var(--t),
    border-color var(--t),
    transform var(--t);
}

.btn-primary:hover {
  background: var(--rust-dk);
  border-color: var(--rust-dk);
  transform: translateY(-1px);
}

/* Ghost CTA */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid var(--hairline);
  transition:
    border-color var(--t),
    color var(--t),
    transform var(--t);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
#stats {
  padding: 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stats-eyebrow {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-bottom: 2.5rem;
}

.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--hairline);
}

.stat-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-suffix {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: 0.04em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   WHAT WE TRADE
   ============================================================ */
#markets {
  background: var(--bg);
}

.section-header {
  max-width: 580px;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header p {
  font-size: 0.95rem;
  margin-top: 0;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Card: white surface, hairline border */
.market-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.market-card:hover {
  box-shadow: 0 8px 32px rgba(27, 27, 26, 0.1);
  transform: translateY(-3px);
}

.market-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.market-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Rust duotone filter: desaturate then tint */
  filter: grayscale(60%) sepia(30%) hue-rotate(330deg) saturate(0.8)
    brightness(0.92);
  transition:
    transform 0.6s var(--ease),
    filter 0.4s;
}

.market-card:hover .market-card-img img {
  transform: scale(1.04);
  filter: grayscale(30%) sepia(20%) hue-rotate(330deg) saturate(1)
    brightness(0.95);
}

.market-card-body {
  padding: 1.8rem 1.8rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.market-index {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--hairline);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}

.market-card-body h3 {
  color: var(--ink);
  margin-top: -0.4rem;
}

.market-card-body p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-2);
}

.market-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.market-items li {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  transition:
    color var(--t),
    border-color var(--t);
}

.market-card:hover .market-items li {
  color: var(--rust);
  border-color: rgba(194, 73, 45, 0.3);
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
#capabilities {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 3rem;
}

.cap-item {
  background: var(--surface);
  padding: 2.8rem 2.5rem;
  position: relative;
  transition: background var(--t);
}

.cap-item:hover {
  background: var(--bg);
}

.cap-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--hairline);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  transition: color var(--t);
}

.cap-item:hover .cap-number {
  color: rgba(194, 73, 45, 0.2);
}

.cap-item h3 {
  color: var(--ink);
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.cap-item p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* Bottom-border reveal on hover */
.cap-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.36s var(--ease);
}

.cap-item:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   GLOBAL REACH
   ============================================================ */
#global {
  background: var(--bg);
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 3rem;
}

.region-card {
  background: var(--surface);
  padding: 2.2rem 1.8rem 2.5rem;
  position: relative;
  transition: background var(--t);
}

.region-card:hover {
  background: var(--bg);
}

.region-coord {
  font-family: "Inter", monospace, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.region-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rust);
  margin-bottom: 1rem;
  box-shadow: 0 0 0 3px rgba(194, 73, 45, 0.18);
  animation: port-pulse 3s ease-in-out infinite;
}

.region-card:nth-child(2) .region-dot {
  animation-delay: 0.75s;
}
.region-card:nth-child(3) .region-dot {
  animation-delay: 1.5s;
}
.region-card:nth-child(4) .region-dot {
  animation-delay: 2.25s;
}

.region-card h3 {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.region-hq-label {
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-text) !important;
  margin-bottom: 0.4rem !important;
  line-height: 1 !important;
}

.region-card p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 0.1rem;
}

/* ============================================================
   SUSTAINABILITY
   ============================================================ */
#sustainability {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.sustain-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.sustain-content h2 {
  margin-bottom: 0;
}

.sustain-content > p {
  font-size: 0.92rem;
  line-height: 1.75;
  margin-top: 0.25rem;
}

.sustain-content > p + p {
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.esg-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.esg-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hairline);
}

.esg-item:first-child {
  border-top: 1px solid var(--hairline);
}

.esg-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.esg-item h4 {
  color: var(--ink);
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.esg-item p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Sustain image */
.sustain-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline);
}

.sustain-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Rust duotone */
  filter: grayscale(55%) sepia(25%) hue-rotate(330deg) saturate(0.85)
    brightness(0.9);
  transition: transform 0.65s var(--ease);
}

.sustain-image:hover img {
  transform: scale(1.03);
}

.sustain-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(244, 241, 234, 0.95);
  border: 1px solid var(--hairline);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.sustain-badge span {
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-text);
}

/* ============================================================
   ABOUT / VALUES
   ============================================================ */
#about {
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-narrative h2 {
  margin-bottom: 0;
}

.about-narrative p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-top: 0.5rem;
}

.about-narrative p + p {
  margin-top: 0.85rem;
}

.values-heading {
  color: var(--muted) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.2em !important;
  margin-bottom: 1.5rem;
  display: block;
}

.values-list {
  display: flex;
  flex-direction: column;
}

.value-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: flex-start;
}

.value-item:first-child {
  border-top: 1px solid var(--hairline);
}

.value-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rust);
  flex-shrink: 0;
  width: 1.5rem;
  padding-top: 0.1rem;
}

.value-item h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.value-item p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 0;
}

.contact-info > p {
  font-size: 0.9rem;
  line-height: 1.72;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  color: var(--rust);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-text);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.86rem;
  color: var(--ink);
  display: block;
}

.contact-demo-note {
  font-size: 0.72rem;
  color: var(--text-2);
  margin-top: 1rem;
  line-height: 1.5;
}

/* Form wrapper */
.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 2.5rem;
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(194, 73, 45, 0.06);
  border: 1px solid rgba(194, 73, 45, 0.2);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  margin-bottom: 1.75rem;
  font-size: 0.7rem;
  color: var(--rust);
  letter-spacing: 0.03em;
}

.demo-notice svg {
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  /* outline: none removed — let :focus-visible handle focus ring */
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color var(--t),
    box-shadow var(--t);
}

/* Form fields get a custom focus ring that complements the border highlight */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--rust-text);
  outline-offset: 2px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6e6a60;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(194, 73, 45, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--rust);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  transition:
    background var(--t),
    transform var(--t),
    box-shadow var(--t);
}

.btn-submit:hover {
  background: var(--rust-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(194, 73, 45, 0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  padding: 3.5rem 0 1.5rem;
}

footer .mark-main {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
}

footer .mark-sub {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  font-family: "Inter", sans-serif;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.8rem;
  max-width: 220px;
  line-height: 1.65;
}

.footer-col h5 {
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul li a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--t);
}

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

.footer-bottom {
  border-top: 1px solid rgba(138, 133, 122, 0.2);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-legal {
  font-size: 0.7rem;
  color: #b8b2a6; /* 8.17:1 on --ink — PASS AA */
  letter-spacing: 0.02em;
}

.footer-disclaimer {
  font-size: 0.65rem;
  color: #b8b2a6; /* 8.17:1 on --ink — PASS AA */
  text-align: right;
  max-width: 420px;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .regions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .sustain-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

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

  .stat-item:nth-child(3)::before,
  .stat-item:nth-child(4)::before {
    display: none;
  }

  .stat-item:nth-child(2n + 1)::before {
    display: none;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-disclaimer {
    text-align: left;
  }

  /* Hero map: reduce arc count on mobile via smaller viewport SVG */
  #arc2,
  #arc4 {
    display: none;
  }

  .hero-card {
    padding: 2rem 1.75rem 2rem;
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 1.25rem;
  }

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

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
    width: 100%;
  }

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

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