/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* ---- Brand line: one green, seven steps ----
     Everything on the site is drawn from this ladder so the colour
     reads as a single deliberate identity, not a mix. */
  --brand-900: #0B3226;  /* scrims, footer            */
  --brand-700: #14523E;  /* primary brand green       */
  --brand-500: #1E7A5A;  /* interactive / accent text */
  --brand-400: #35A87C;  /* highlight on light        */
  --brand-200: #A7DCC4;  /* accent on dark            */
  --brand-100: #DCEDE4;  /* tinted surface            */

  /* ---- Applied roles ---- */
  --bg: #FBFBF9;
  --bg-2: #F0F4F1;
  --paper: #ffffff;
  --ink: #0F1A15;
  --ink-soft: #3A4842;
  --ink-mute: #6E7B75;
  --accent: var(--brand-700);
  --accent-soft: var(--brand-500);
  --accent-2: var(--brand-200);
  --line: rgba(15, 26, 21, 0.10);
  --line-strong: rgba(15, 26, 21, 0.18);
  --cream: #F5F9F6;

  --serif: "Newsreader", "Iowan Old Style", "Georgia", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-alt { background: var(--bg-2); }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 1rem;
}
.kicker::before {
  content: ""; width: 18px; height: 1px; background: var(--accent);
}

.eyebrow-line { color: var(--ink-mute); font-size: 1.02rem; max-width: 58ch; }

[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* =============================================================
   4. Typography
   ============================================================= */
.h-xl {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.02;
}
.h-lg {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}
.h-md {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.7rem);
}
em, .em-serif { font-family: var(--serif); font-style: italic; color: var(--accent-soft); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  border-radius: 999px;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--cream);
  box-shadow: 0 4px 14px rgba(20, 82, 62, 0.22), 0 1px 3px rgba(20, 82, 62, 0.18);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(20, 82, 62, 0.28), 0 8px 18px rgba(20, 82, 62, 0.18);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--paper); border-color: var(--accent); }
.btn-ghost.on-dark { border-color: rgba(245, 249, 246, 0.4); color: var(--cream); }
.btn-ghost.on-dark:hover { background: rgba(245, 249, 246, 0.12); border-color: var(--cream); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.pillar-card, .product-card, .info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* Over the hero the bar is transparent, so nav content starts light and
   flips to dark once the cream background slides in on scroll. */
.nav-logo {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.16rem + 0.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(6, 9, 8, 0.55);
  white-space: nowrap;
  transition: color .4s var(--ease-out), text-shadow .4s var(--ease-out);
}
.nav-logo span {
  color: var(--accent-2); font-style: italic; font-weight: 500;
  transition: color .4s var(--ease-out);
}
.nav-links { display: none; align-items: center; gap: 2.2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; padding: .3rem 0; font-size: .92rem; font-weight: 600;
  color: rgba(245, 249, 246, 0.92);
  text-shadow: 0 1px 12px rgba(6, 9, 8, 0.6);
  transition: color .4s var(--ease-out), text-shadow .4s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent-2);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out), background-color .4s var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav.is-scrolled .nav-logo { color: var(--ink); text-shadow: none; }
.nav.is-scrolled .nav-logo span { color: var(--accent); }
.nav.is-scrolled .nav-link { color: var(--ink-soft); text-shadow: none; }
.nav.is-scrolled .nav-link:hover { color: var(--ink); }
.nav.is-scrolled .nav-link::after { background: var(--accent); }
.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--cream);
  box-shadow: 0 1px 6px rgba(6, 9, 8, 0.5);
  transition: transform .35s var(--ease-soft), opacity .35s var(--ease-soft), top .35s var(--ease-soft), background-color .4s var(--ease-out);
}
/* dark bars once the cream bar is in — but always light while the
   full-screen dark menu is open */
.nav.is-scrolled .nav-toggle-bars span { background: var(--ink); box-shadow: none; }
.nav.is-open .nav-toggle-bars span,
.nav.is-scrolled.is-open .nav-toggle-bars span { background: var(--cream); box-shadow: none; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav.is-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.1rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.7rem; }
.nav-mobile .btn-primary { margin-top: .5rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  color: var(--cream);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 50, 38, 0.74) 0%, rgba(11, 50, 38, 0.66) 45%, rgba(7, 34, 26, 0.92) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  padding-block: calc(var(--nav-h) + 3rem) 4.5rem;
}
.hero-meta {
  display: flex; align-items: center; gap: .55rem;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: rgba(245, 249, 246, 0.85);
  text-shadow: 0 1px 8px rgba(6, 9, 8, 0.6);
  margin-bottom: 1.4rem;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  max-width: 21ch;
  margin-bottom: 1.5rem;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(6, 9, 8, 0.75), 0 1px 4px rgba(0, 0, 0, 0.65);
}
.hero-title em { color: var(--accent-2); font-style: italic; }
.hero-sub {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: rgba(245, 249, 246, 0.86);
  margin-bottom: 2.2rem;
}
.hero-questions {
  max-width: 48ch;
  margin-bottom: 1.2rem;
}
.hero-questions p {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: rgba(245, 249, 246, 0.92);
  text-shadow: 0 1px 8px rgba(8, 12, 10, 0.55);
  line-height: 1.5;
}
.hero-questions p + p { margin-top: .3rem; }
.hero-highlight {
  max-width: 46ch;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.7vw, 1.36rem);
  line-height: 1.4;
  color: var(--cream);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(14, 19, 17, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 4px;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 8px rgba(8, 12, 10, 0.6);
}
.hero-highlight em { color: var(--accent-2); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =============================================================
   8. About / network section
   ============================================================= */
.about-text p { margin-top: 1.1rem; max-width: 62ch; }
.about-text p + p { color: var(--ink-mute); }

.network-wrap {
  position: relative;
  aspect-ratio: 784 / 459;
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto 0;
}
.network-svg { width: 100%; height: 100%; overflow: visible; }
/* Countries with islands/territories are <g> wrappers, not bare <path>,
   so highlight rules must match the group and its children. */
.map-countries path {
  fill: #DFE5E0;
  transition: fill .6s var(--ease-soft);
}
.map-countries .map-country-origin,
.map-countries .map-country-origin path { fill: var(--accent); }
.map-countries .map-country-hub,
.map-countries .map-country-hub path { fill: var(--brand-400); }
.network-line {
  fill: none; stroke: var(--accent-soft); stroke-width: 1;
  stroke-dasharray: 0.02 0.028;
  stroke-dashoffset: 1;
  opacity: .75;
  transition: stroke-dashoffset 1.8s var(--ease-soft);
}
.network-wrap.is-drawn .network-line { stroke-dashoffset: 0; }
.network-node {
  fill: var(--paper); stroke: var(--accent); stroke-width: 1.6;
}
.network-hub { fill: var(--brand-400); stroke: var(--paper); stroke-width: 1.8; }
.network-hub-ping {
  fill: none; stroke: var(--brand-400); stroke-width: 1.4; opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.network-wrap.is-drawn .network-hub-ping {
  animation: hubPing 2.6s var(--ease-out) .4s infinite;
}
@keyframes hubPing {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(2.6); opacity: 0; }
}
.network-label {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  fill: var(--ink); text-anchor: middle;
  paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; stroke-linejoin: round;
}
.network-hub-label {
  font-family: var(--serif); font-style: italic; font-size: 14px; font-weight: 600;
  fill: var(--brand-500); text-anchor: middle;
  paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; stroke-linejoin: round;
}

.pillars {
  display: grid; gap: 1.1rem;
  margin-top: 3.5rem;
}
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar-card { padding: 1.8rem 1.6rem; }
.pillar-num {
  font-family: var(--serif); font-style: italic; color: var(--accent-soft);
  font-size: 1.1rem; margin-bottom: .8rem; display: block;
}
.pillar-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.pillar-card p { color: var(--ink-mute); font-size: .94rem; }

/* =============================================================
   9. Products
   ============================================================= */
/* Oversized display word — the section's anchor */
.cat-display {
  font-family: var(--serif);
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: .92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

/* First filter: parent categories */
.cat-filters {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin: 2.2rem 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.cat-filter {
  padding: .55rem 1.15rem;
  font-size: .9rem; font-weight: 600;
  color: var(--ink-mute);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  transition: color .3s, border-color .3s, background-color .3s;
}
.cat-filter:hover { color: var(--ink); border-color: var(--accent); }
.cat-filter.is-active {
  background: var(--accent); border-color: var(--accent); color: var(--cream);
}

/* Second filter: subcategory cards */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.cat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(15, 26, 21, 0.10);
}
.cat-card[hidden] { display: none; }
.cat-card.is-filtering { animation: catIn .45s var(--ease-soft) both; }
@keyframes catIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cat-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.cat-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-soft), filter .55s;
}
.cat-card:hover .cat-media img {
  transform: scale(1.06);
  filter: saturate(1.1);
}
.cat-body { padding: .9rem 1.05rem 1.1rem; }
.cat-tag {
  display: block;
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-soft);
  margin-bottom: .35rem;
}
.cat-body h3 { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.25; }

.cat-foot {
  margin-top: 2.2rem;
  font-size: .95rem;
  color: var(--ink-mute);
}
.cat-foot a { color: var(--accent); font-weight: 600; }
.cat-foot a:hover { text-decoration: underline; }

/* =============================================================
   9.5 Banner strip
   ============================================================= */
.banner-strip {
  position: relative;
  height: clamp(220px, 34vw, 380px);
  overflow: clip;
  display: flex; align-items: flex-end;
}
.banner-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-tint {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 50, 38, 0.86) 0%, rgba(11, 50, 38, 0.28) 55%, rgba(11, 50, 38, 0.55) 100%);
}
.banner-line {
  position: relative; z-index: 1;
  color: var(--cream);
  font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  padding: 1.8rem clamp(1.25rem, 5vw, 2.5rem);
}
.banner-line strong { color: var(--accent-2); font-weight: 600; }

/* =============================================================
   10. Process strip
   ============================================================= */
.process-strip {
  display: grid; gap: 1.6rem;
  margin-top: 2.8rem;
}
@media (min-width: 720px) { .process-strip { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; padding-top: 1.2rem; border-top: 1px solid var(--line-strong); }
.process-step-num {
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--accent);
  display: block; margin-bottom: .6rem;
}
.process-step h4 { font-size: 1rem; margin-bottom: .35rem; }
.process-step p { font-size: .88rem; color: var(--ink-mute); }

/* =============================================================
   11. Contact
   ============================================================= */
.contact-grid {
  display: grid; gap: 2.5rem;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }

.info-card { padding: 2rem; }
.info-card + .info-card { margin-top: 1.1rem; }
.info-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .5rem; }
.info-value { font-family: var(--serif); font-size: 1.25rem; }
.info-value a:hover { color: var(--accent); }

.cta-form { position: relative; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.field { position: relative; margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .45rem; font-weight: 700;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: .96rem;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 82, 62, 0.14);
}
.field textarea { resize: vertical; min-height: 110px; }

.cta-form-submit-row { display: flex; align-items: center; gap: 1rem; margin-top: .4rem; }
.cta-submit { position: relative; }
.cta-form-label, .cta-form-spinner, .cta-form-check { display: inline-flex; align-items: center; justify-content: center; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 16px; height: 16px;
  border: 2px solid rgba(245,249,246,.35); border-top-color: var(--cream);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form.is-sent .cta-submit { pointer-events: none; }
.cta-form.is-sent .cta-form-label { opacity: 0; }
.cta-form.is-sent .cta-form-check { opacity: 1; }
.cta-form-check svg { width: 18px; height: 18px; }
.cta-form-check path {
  stroke: currentColor; stroke-width: 2.4; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1; pathLength: 1;
  transition: stroke-dashoffset .5s var(--ease-out);
}
.cta-form.is-sent .cta-form-check path { stroke-dashoffset: 0; }

.form-note { font-size: .84rem; color: var(--ink-mute); margin-top: .9rem; }
.form-success-msg {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px;
  background: rgba(20, 82, 62, 0.09); color: var(--accent);
  font-size: .92rem; font-weight: 600;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .5s var(--ease-out), max-height .5s var(--ease-out), margin .5s;
}
.form-success-msg.is-visible { opacity: 1; max-height: 120px; margin-top: 1rem; }

/* =============================================================
   12. Footer
   ============================================================= */
/* Deep-green footer: closes the page on the brand colour and balances
   the dark hero at the top. */
.footer {
  padding-block: 3.4rem 2rem;
  background: var(--brand-900);
  color: rgba(245, 249, 246, 0.72);
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.4rem;
  padding-bottom: 2.4rem; border-bottom: 1px solid rgba(245, 249, 246, 0.16);
}
.footer-brand .nav-logo {
  display: inline-block; margin-bottom: .8rem;
  color: var(--cream); text-shadow: none;
}
.footer-brand .nav-logo span { color: var(--accent-2); }
.footer-brand p { color: rgba(245, 249, 246, 0.66); max-width: 34ch; font-size: .92rem; }
.footer-links { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col h5 {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .9rem; font-weight: 700;
}
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a, .footer-col li { color: rgba(245, 249, 246, 0.82); }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .82rem; color: rgba(245, 249, 246, 0.55);
}
.footer-bottom a { color: var(--accent-2); }
.footer-bottom a:hover { color: var(--cream); }

/* =============================================================
   13. Credits page
   ============================================================= */
.page-credits main { padding-block: calc(var(--nav-h) + 3rem) 5rem; }
.credits-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 700; margin-bottom: 2rem; }
.credits-list { display: grid; gap: .9rem; margin-top: 2rem; }
.credits-list li { padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; }
.credits-list a { color: var(--accent); }
.credits-list a:hover { text-decoration: underline; }

/* =============================================================
   14. Responsive tweaks
   ============================================================= */
@media (max-width: 539px) {
  .hero-actions .btn { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   15. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .network-line { transition-duration: .3s; }
  .network-hub-ping { animation: none; }
}
