/* ==========================================================================
   CT Systems — Site stylesheet
   Design concept: "Precision at Sea" — instrumentation aesthetic for a
   maritime positioning company, built around the CT Systems green.
   ========================================================================== */

:root {
  /* Brand palette (matched to the CT Systems logo green) */
  --green:      #107A3E;  /* Primary brand green */
  --green-dk:   #0B5E30;  /* Hover / pressed */
  --green-lt:   #E8F3EC;  /* Very pale tint for backgrounds */
  --green-200:  #C6E0CF;  /* Subtle surface tint */

  /* Neutrals — chart / bridge console inspired */
  --ink-900:    #061018;  /* Darkest — hero bg, text on light */
  --ink-800:    #0A1824;
  --ink-700:    #0F2236;  /* Footer, dark sections */
  --ink-500:    #1E3A52;
  --ink-400:    #3D5268;  /* Muted text on light */
  --sea-300:    #6FA0BE;  /* Secondary accent (chart lines) */
  --fog-100:    #F2F5F8;  /* Page background */
  --fog-050:    #FFFFFF;  /* Card surface */
  --line:       #D5DEE6;  /* Hairlines / grid */
  --line-dk:    rgba(255, 255, 255, 0.10);
  --amber:      #FFB020;
  --alert:      #E04F4F;

  /* Fonts */
  --font-ui:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --max:        1280px;
  --gutter:     1.5rem;
  --radius:     6px;
  --radius-lg:  10px;

  /* Shadows — deliberately restrained */
  --shadow-sm:  0 1px 2px rgba(6, 16, 24, 0.06);
  --shadow-md:  0 8px 24px rgba(6, 16, 24, 0.08);

  /* Backwards-compat aliases used by older inline styles */
  --color-primary:       var(--green);
  --color-primary-dark:  var(--green-dk);
  --color-ink:           var(--ink-900);
  --color-muted:         var(--ink-400);
  --color-line:          var(--line);
  --color-surface:       var(--fog-050);
  --color-white:         #ffffff;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--fog-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--green-dk); text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink-900);
}

h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  left: 1rem; top: 1rem;
  width: auto; height: auto;
  padding: 0.75rem 1rem;
  background: var(--ink-900);
  color: #fff;
  z-index: 10000;
  border-radius: var(--radius);
}

/* Page shell (keeps footer at the bottom) */
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#page > main { flex: 1; }

/* ---------- Layout primitives ---------- */

.wrap,
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--alt { background: var(--fog-050); }
.section--dark { background: var(--ink-900); color: #fff; }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark a { color: #fff; }
.section--dark .lead { color: #A8BAC9; }

.section h1,
.section h2 { letter-spacing: -0.02em; }

.section h2 { margin: 0 0 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dk);
  margin: 0 0 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section--dark .eyebrow { color: var(--sea-300); }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 48ch;
  margin: 0 0 1rem;
}

.section-lead,
.lead {
  font-size: 1.125rem;
  color: var(--ink-400);
  max-width: none;
  margin: 0 0 2rem;
}

.crumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 1rem;
}
.crumb a { color: var(--ink-700); }

/* Bathymetric contour background for selected light sections */
.bathy { position: relative; isolation: isolate; }
.bathy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'><g fill='none' stroke='%23107A3E' stroke-width='0.75' opacity='0.07'><path d='M-50 420 Q 150 360 300 410 T 650 400'/><path d='M-50 360 Q 150 300 300 350 T 650 340'/><path d='M-50 300 Q 150 240 300 290 T 650 280'/><path d='M-50 240 Q 150 180 300 230 T 650 220'/><path d='M-50 180 Q 150 120 300 170 T 650 160'/><path d='M-50 120 Q 150 60 300 110 T 650 100'/></g></svg>");
  background-size: 900px;
  background-repeat: repeat;
  pointer-events: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  color: var(--ink-700);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: -0.005em;
}

.nav a:hover {
  color: var(--green);
  background: var(--green-lt);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--green-dk);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 2px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover {
  background: var(--green-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(16, 122, 62, 0.22);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-900);
}
.btn--ghost:hover {
  background: rgba(6, 16, 24, 0.06);
  color: var(--ink-900);
}

.section--dark .btn--ghost,
.cta-band .btn--ghost,
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.section--dark .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn__arrow { transition: transform 0.15s ease; }
.btn:hover .btn__arrow { transform: translateX(2px); }

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

.hero {
  background: var(--ink-900);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-500);
}

.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  min-height: 620px;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; }
}

.hero__media {
  position: relative;
  background: #000;
  min-height: 380px;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,16,24,0) 55%, rgba(6,16,24,0.95) 100%),
    linear-gradient(180deg, rgba(6,16,24,0) 60%, rgba(6,16,24,0.5) 100%);
  pointer-events: none;
}

/* Radar pulse overlay */
.hero__ring {
  position: absolute;
  left: 12%;
  bottom: 14%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(16, 122, 62, 0.5);
  box-shadow: 0 0 0 1px rgba(16, 122, 62, 0.28) inset;
  pointer-events: none;
  animation: ring 6s ease-out infinite;
}
.hero__ring::before,
.hero__ring::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(16, 122, 62, 0.32);
}
.hero__ring::after {
  inset: 42%;
  border-color: rgba(16, 122, 62, 0.55);
}
.hero__pin {
  position: absolute;
  left: 24%;
  bottom: 30%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 122, 62, 0.3), 0 0 24px rgba(16, 122, 62, 0.9);
}
@keyframes ring {
  0%   { transform: scale(0.85); opacity: 0; }
  20%  { opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__ring { animation: none; opacity: 0.5; }
  .hero__video { display: none; }
}

.hero__panel {
  padding: 3.5rem var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  border-left: 1px solid var(--ink-500);
  position: relative;
  z-index: 1;
}

.hero__panel .eyebrow { color: var(--sea-300); }

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

.hero h1 em {
  font-style: normal;
  color: #4EC47A;
  font-weight: 500;
}

.hero__sub {
  color: #A8BAC9;
  font-size: 1.0625rem;
  max-width: 42ch;
  margin: 0;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero__strip {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-500);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8FA4B5;
  text-transform: uppercase;
}
.hero__strip span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__strip span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ---------- Page head (non-hero pages) ---------- */

.page-head {
  background: var(--ink-900);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-500);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'><g fill='none' stroke='%234EC47A' stroke-width='0.75' opacity='0.18'><path d='M0 300 Q 300 220 600 300 T 1200 300'/><path d='M0 250 Q 300 170 600 250 T 1200 250'/><path d='M0 200 Q 300 120 600 200 T 1200 200'/><path d='M0 350 Q 300 270 600 350 T 1200 350'/></g></svg>");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  pointer-events: none;
}

.page-head__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.page-head h1 {
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin: 0 0 0.75rem;
}

.page-head .lead {
  color: #A8BAC9;
  font-size: 1.125rem;
  max-width: 56ch;
  margin: 0;
}

.page-head .eyebrow { color: var(--sea-300); }

.page-head .crumb {
  color: #8FA4B5;
  margin-bottom: 0.5rem;
}
.page-head .crumb a { color: #C4D1DE; }

/* ---------- Page head with photo banner ---------- */

.page-head--banner {
  background-color: var(--ink-900);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Match .section__inner / .wrap horizontal inset; keep hero block flush-left in that column */
  padding: 6rem max(var(--gutter), calc((100% - min(100%, var(--max))) / 2 + var(--gutter))) 4.5rem;
  min-height: 340px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
}

.page-head--banner::before {
  opacity: 0.22;
  mix-blend-mode: screen;
}

.page-head--banner h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

.page-head--banner .lead {
  color: #D5DFE9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
  max-width: 68ch;
  margin-inline: 0;
}

.page-head--banner .page-head__inner {
  flex: 0 1 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--max) + 10rem);
  margin-left: 0;
  margin-right: auto;
  padding-inline: 0;
  text-align: left;
}

.page-head--geodredge {
  background-image: linear-gradient(180deg, rgba(6,16,24,0.55) 0%, rgba(6,16,24,0.80) 60%, rgba(6,16,24,0.92) 100%), url('assets/banners/IMG_5043.jpeg');
}

@media (max-width: 720px) {
  .page-head--banner {
    padding: 4.5rem max(var(--gutter), calc((100% - min(100%, var(--max))) / 2 + var(--gutter))) 3rem;
    min-height: 260px;
  }
}

/* Legacy page-banner fallback (used by old markup) */
.page-banner { display: none; }

/* ---------- Stats strip ---------- */

.stats {
  background: var(--fog-050);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stats__grid > div + div {
    border-left: 1px solid var(--line);
    padding-left: 2rem;
  }
}
.stats__num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats__num sup {
  color: var(--green);
  font-size: 0.5em;
  margin-left: 0.1em;
  top: -0.75em;
}
.stats__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--fog-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(16, 122, 62, 0.10);
}

.card--schematic {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.card h2,
.card h3 { color: var(--ink-900); }

.card h3 { margin: 0.5rem 0; font-size: 1.25rem; }

.card p { color: var(--ink-400); margin: 0 0 1rem; }

.card__series {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--green-dk);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-lt);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-400);
  text-transform: uppercase;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green-dk);
  font-weight: 600;
  font-size: 0.9375rem;
}
.card__link:hover { color: var(--green); text-decoration: none; }

/* Product grid */
.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card { display: flex; flex-direction: column; }
.product-card h3 { margin-top: 0; }
.product-card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--ink-400);
  font-size: 0.9375rem;
}

/* Media header on a product card — pulls to card edges, respects the
   schematic clip-path's top-right notch. */
.product-card__media {
  margin: -1.5rem -1.5rem 1.25rem;
  height: 12.5rem;
  background:
    linear-gradient(180deg, #F7FAFC 0%, var(--fog-100) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.035); }

/* "contain" variant — for product hero shots on plain backgrounds
   (GeoDredge, CT-Tide, GeoGNSS) where we don't want to crop hardware. */
.product-card__media--contain {
  background:
    radial-gradient(ellipse at center, #FFFFFF 0%, #EEF3F7 100%);
}
.product-card__media--contain img {
  object-fit: contain;
  padding: 0.5rem;
}
.product-card:hover .product-card__media--contain img { transform: scale(1.02); }

/* Gallery showcase — reusable across product families */
.product-showcase {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-showcase { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .product-showcase { grid-template-columns: repeat(4, 1fr); } }

.product-showcase__item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fog-050);
  cursor: zoom-in;
  transition: border-color 0.15s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}
.product-showcase__item:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 122, 62, 0.10);
}
.product-showcase__item img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  display: block;
  background: var(--fog-100);
}
.product-showcase__item--contain img {
  object-fit: contain;
  padding: 0.5rem;
}
.product-showcase__item--wide { grid-column: 1 / -1; }
.product-showcase__item--wide img { height: auto; max-height: 22rem; }

.product-showcase__item figcaption {
  padding: 0.6rem 0.85rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-900);
}

/* Two-column grid */
.grid-2 {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.support-panels { align-items: stretch; }
.support-panels .card { height: 100%; }
.support-panels .card h2 { margin: 0 0 0.75rem; font-size: 1.25rem; }

/* ---------- Feature block (two-up with media) ---------- */

.feature {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.1fr; }
  .feature--reverse > :first-child { order: 2; }
}

.feature__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-800);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media .tag {
  position: absolute;
  top: 1rem; left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6,16,24,0.75);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.feature__media .tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4EC47A;
  box-shadow: 0 0 8px #4EC47A;
}

/* ---------- Installations / dark band ---------- */

.installations {
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(16, 122, 62, 0.14), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(111, 160, 190, 0.12), transparent 60%),
    var(--ink-900);
  color: #fff;
  border-top: 1px solid var(--ink-500);
  border-bottom: 1px solid var(--ink-500);
}
.installations__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .installations__grid { grid-template-columns: 1fr 1.2fr; }
}

.installations__map {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-500);
  position: relative;
  background:
    radial-gradient(3px 3px at 20% 40%, var(--green) 50%, transparent 55%),
    radial-gradient(3px 3px at 38% 55%, var(--green) 50%, transparent 55%),
    radial-gradient(3px 3px at 30% 30%, var(--sea-300) 50%, transparent 55%),
    radial-gradient(3px 3px at 62% 48%, var(--green) 50%, transparent 55%),
    radial-gradient(3px 3px at 70% 35%, var(--sea-300) 50%, transparent 55%),
    radial-gradient(3px 3px at 80% 60%, var(--green) 50%, transparent 55%),
    radial-gradient(3px 3px at 18% 65%, var(--sea-300) 50%, transparent 55%),
    radial-gradient(3px 3px at 50% 70%, var(--green) 50%, transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000'><g fill='none' stroke='%236FA0BE' stroke-width='0.75' opacity='0.22'><path d='M0 500 Q 400 420 800 500 T 1600 500'/><path d='M0 450 Q 400 370 800 450 T 1600 450'/><path d='M0 400 Q 400 320 800 400 T 1600 400'/><path d='M0 550 Q 400 470 800 550 T 1600 550'/><path d='M0 600 Q 400 520 800 600 T 1600 600'/><path d='M0 650 Q 400 570 800 650 T 1600 650'/></g><g fill='%23142738' opacity='0.92'><path d='M150 420 L 210 380 L 270 410 L 290 470 L 230 500 L 170 480 Z'/><path d='M380 310 L 470 290 L 530 330 L 560 400 L 500 440 L 430 420 L 390 370 Z'/><path d='M720 260 L 820 240 L 900 290 L 950 360 L 900 420 L 820 430 L 760 400 L 720 340 Z'/><path d='M1080 330 L 1180 310 L 1260 350 L 1300 420 L 1270 490 L 1190 500 L 1110 470 L 1070 400 Z'/><path d='M1340 540 L 1420 520 L 1480 560 L 1500 620 L 1460 680 L 1390 670 L 1350 620 Z'/></g></svg>")
    center/cover no-repeat,
    var(--ink-800);
}
.installations__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

/* ---------- News (JS-rendered) ---------- */

.news-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.news-list--detail { display: block; }
@media (min-width: 720px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .news-list { grid-template-columns: repeat(3, 1fr); } }

.news-list .news-item,
.news-item {
  display: flex;
  flex-direction: column;
  background: var(--fog-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}
.news-list .news-item:hover,
.news-item:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 122, 62, 0.10);
}

.news-media {
  /* Slightly wider ratio makes thumbnails less visually tall */
  aspect-ratio: 16 / 9;
  background: var(--fog-100);
  overflow: hidden;
  border: 0;
  border-radius: 0;
}
.news-media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.news-content,
.news-item > *:not(.news-media) {
  padding: 1rem 1.25rem 1.25rem;
}

.news-list .news-item time,
.news-item time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.35rem;
}

.news-list .news-item h3,
.news-item h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink-900);
}

.news-list .news-item a,
.news-item a {
  color: var(--green-dk);
  font-weight: 600;
}

.news-empty {
  margin: 0;
  color: var(--ink-400);
  grid-column: 1 / -1;
}

/* Article / entry view (single news or project page) */
.entry-view {
  width: 100%;
  max-width: none;
  padding: 4rem 6rem 5rem;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}
@media (max-width: 640px) {
  .entry-view { padding: 2.5rem 2rem 3rem; }
}

/* Top navigation bar */
.entry-view__topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.entry-view__back { 
  font-weight: 600; 
  color: var(--green-dk); 
  text-decoration: none;
}
.entry-view__back:hover { color: var(--green); }
.entry-view__pager {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  color: var(--green-dk);
}

/* Date */
.entry-view > time {
  display: block;
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Title */
.entry-view > h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
}

/* Body text */
.entry-view > p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 78ch;
  color: var(--ink-800);
}

/* Media / Image container - always show full image */
.entry-view__media {
  margin: 0 0 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f8f9fb;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.entry-view__media img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ---------- Projects (JS-rendered) ---------- */

.projects-grid {
  display: grid;
  gap: 1.25rem;
}
.projects-grid--detail { display: block; }
@media (min-width: 640px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.projects-empty {
  margin: 0;
  color: var(--ink-400);
  grid-column: 1 / -1;
}

.project-tile {
  display: flex;
  flex-direction: column;
  background: var(--fog-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}
.project-tile:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 122, 62, 0.10);
}

.project-tile time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-tile__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.project-tile__summary::-webkit-details-marker,
.project-tile__summary::marker { display: none; content: ""; }

.project-tile__cover {
  margin: 0;
  line-height: 0;
  border-bottom: 1px solid var(--line);
}
.project-tile__cover img {
  width: 100%;
  height: auto;
  max-height: 14rem;
  object-fit: cover;
  display: block;
}

.project-tile__body { padding: 1rem 1.25rem 1.25rem; }
.project-tile__title {
  margin: 0.35rem 0 0 !important;
  font-weight: 600 !important;
  font-size: 1.05rem;
  color: var(--ink-900);
}
.project-tile__title a { color: var(--ink-900); }
.project-tile__title a:hover { color: var(--green-dk); text-decoration: none; }

.project-tile__excerpt {
  margin: 0.5rem 0 0 !important;
  font-weight: 400 !important;
  font-size: 0.9375rem;
  color: var(--ink-400);
  line-height: 1.5;
}

.project-tile__more {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-dk);
}
.project-tile--expandable[open] .project-tile__more { display: none; }

.project-gallery {
  display: grid;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
}
.project-gallery--detail {
  padding: 1rem 0 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}
.project-gallery__thumb {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--fog-050);
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: border-color 0.15s ease;
}
.project-gallery__thumb:hover { border-color: var(--green); }
.project-gallery__thumb img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  display: block;
}
.project-gallery__fig {
  margin: 0;
  line-height: 0;
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
  border: 1px solid var(--line);
}
.project-gallery__fig img {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  display: block;
}
@media (min-width: 640px) {
  .project-gallery { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
}

/* Lightbox */
.project-lightbox[hidden],
.project-lightbox__counter[hidden] { display: none; }
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
}
.project-lightbox__figure {
  margin: 0;
  width: min(92vw, 1400px);
  height: min(86vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-lightbox__figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.project-lightbox__close,
.project-lightbox__nav {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(17, 24, 39, 0.65);
  color: #fff;
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.project-lightbox__close:hover,
.project-lightbox__nav:hover { background: var(--green); border-color: var(--green); }
.project-lightbox__close { top: 1rem; right: 1rem; }
.project-lightbox__nav--prev { left: 1rem;  top: 50%; transform: translateY(-50%); }
.project-lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.project-lightbox__counter {
  position: fixed;
  z-index: 1201;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}
body.lightbox-open { overflow: hidden; }

/* ---------- Partners (map + cards) ---------- */

.partners-map-wrap { margin-bottom: 3rem; }
.partners-map-wrap h2 { margin: 0 0 0.75rem; font-size: 1.35rem; }

.partners-map {
  height: min(460px, 60vh);
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--fog-050);
}
.partners-map .leaflet-container {
  font-family: var(--font-ui);
  font-size: 0.875rem;
}
.partners-map-popup a { font-weight: 600; color: var(--green-dk); }

.partners-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }

.partner-card {
  background: var(--fog-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.partner-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(16, 122, 62, 0.10);
}
.partner-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--ink-900);
}
.partner-card .region {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--green-dk);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: var(--green-lt);
  border-radius: 4px;
}

/* ---------- Videos (JS-rendered) ---------- */

.video-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.video-card {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fog-050);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.video-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(16, 122, 62, 0.10);
}
.video-card__preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--fog-100);
}
.video-card__preview img,
.video-card__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.video-card__play:hover { background: var(--green-dk); transform: translate(-50%, -50%) scale(1.05); }
.video-card--playing .video-card__play { display: none; }
.video-card__body { padding: 0.75rem 1rem 0.9rem; }
.video-card__body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.video-card__body p {
  margin: 0;
  color: var(--ink-400);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.video-empty { margin: 0; color: var(--ink-400); }

/* ---------- Lists (list-check) ---------- */

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-check li {
  padding: 0.45rem 0 0.45rem 1.75rem;
  position: relative;
  color: var(--ink-400);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Product detail page components ---------- */

.product-detail-hero {
  margin: 0 0 2rem;
  padding: 1rem;
  background: var(--fog-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.product-detail-hero img {
  max-width: 100%;
  height: auto;
  max-height: min(32rem, 85vh);
  width: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.product-pdf-frame {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fog-050);
  min-height: 36rem;
}
.product-pdf-frame iframe {
  display: block;
  width: 100%;
  height: min(80vh, 960px);
  border: 0;
}

.geodredge-duo {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
}
@media (min-width: 768px) {
  .geodredge-duo { grid-template-columns: 1fr 1.4fr; align-items: start; }
}
.geodredge-duo__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.geodredge-duo__fig {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fog-050);
  min-width: 0;
}
.geodredge-duo__fig img {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.geodredge-duo__fig figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-400);
  line-height: 1.45;
}

@media (min-width: 768px) {
  .geodredge-duo--equal {
    align-items: stretch;
  }
  .geodredge-duo--equal > .geodredge-duo__fig {
    display: flex;
    flex-direction: column;
  }
  .geodredge-duo--equal > .geodredge-duo__fig img {
    flex: 0 0 auto;
    height: 24rem;
    object-fit: cover;
  }
}

.geodredge-gallery {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  align-items: start;
}
@media (min-width: 640px) { .geodredge-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .geodredge-gallery { grid-template-columns: repeat(3, 1fr); } }

.geodredge-gallery__item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fog-050);
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: fit-content;
}
.geodredge-gallery__item:hover { border-color: var(--green); }
.geodredge-gallery__item img {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  flex: 0 0 auto;
}
.geodredge-gallery__item figcaption {
  padding: 0.6rem 0.85rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-900);
}

.geodredge-gallery--equal {
  align-items: stretch;
}
.geodredge-gallery--equal .geodredge-gallery__item {
  height: 100%;
}
.geodredge-gallery--equal .geodredge-gallery__item img {
  height: 14rem;
  object-fit: cover;
}

.geodredge-pdf-all {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
@media (min-width: 640px) { .geodredge-pdf-all { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .geodredge-pdf-all { grid-template-columns: repeat(3, 1fr); } }

.geodredge-pdf-all__item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fog-050);
  display: flex;
  flex-direction: column;
}
.geodredge-pdf-all__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: min(28rem, 85vh);
  background: var(--fog-100);
  flex: 1 1 auto;
}
.geodredge-pdf-all__item figcaption {
  padding: 0.5rem 0.75rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-400);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.geodredge-block-gap {
  margin-bottom: 2rem;
}
.geodredge-card-title {
  margin: 0.5rem 0 1rem;
  font-size: 1.375rem;
}
.geodredge-heading {
  margin: 2rem 0 1rem;
}
.geodredge-heading--lg-gap {
  margin-top: 2.5rem;
}
.geodredge-copy {
  max-width: 64ch;
  color: var(--ink-400);
}
.geodredge-copy--wide {
  max-width: 72ch;
}
.geodredge-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}
.geodredge-link-row {
  margin-top: 1rem;
}

/* ---------- Carousel (home page) ---------- */

.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 0 -0.25rem;
}
.carousel__item {
  flex: 0 0 85%;
  max-width: 440px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--fog-100);
}
.carousel__item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
@media (min-width: 640px) {
  .carousel__item { flex-basis: 48%; }
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--ink-900);
}
.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--fog-050);
  color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 122, 62, 0.18);
}
.form textarea { min-height: 160px; resize: vertical; }
.form small { color: var(--ink-400); font-size: 0.8125rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'><g fill='none' stroke='%234EC47A' stroke-width='0.75' opacity='0.22'><circle cx='700' cy='200' r='60'/><circle cx='700' cy='200' r='120'/><circle cx='700' cy='200' r='180'/><circle cx='700' cy='200' r='240'/></g></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  pointer-events: none;
}
.cta-band__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
}
@media (min-width: 760px) {
  .cta-band__inner { grid-template-columns: 1.4fr auto; }
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  max-width: 32ch;
}
.cta-band p { color: #A8BAC9; margin: 0.75rem 0 0; max-width: 48ch; }

/* ---------- Certifications strip ---------- */

.certs {
  background: var(--fog-050);
  border-top: 1px solid var(--line);
}
.certs__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.certs__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.certs__logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}
.certs__logos img {
  height: 46px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(1) contrast(1.05);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.certs__logos a:hover img,
.certs__logos img:hover {
  opacity: 1;
  filter: none;
}

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

.site-footer {
  background: var(--ink-900);
  color: #9FB1C2;
  border-top: 3px solid var(--green);
  margin-top: auto;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--gutter) 2rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__inner > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

.site-footer a { color: #C4D1DE; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #fff;
  font-weight: 600;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer li a { font-size: 0.9375rem; }

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.site-footer__brand img {
  height: 40px;
  width: auto;
}
.site-footer__brand-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer__contact {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #C4D1DE;
  margin: 0;
}
.site-footer__coord {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #4EC47A;
  letter-spacing: 0.08em;
  margin-top: 0.75rem;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}
.newsletter .form-status { flex: 1 0 100%; margin: 0.25rem 0 0; }
.newsletter input[type="email"] {
  flex: 1 1 160px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
}
.newsletter input::placeholder {
  color: #6B8094;
  font-family: var(--font-mono);
}
.newsletter input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 122, 62, 0.22);
}
.newsletter button {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: none;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.newsletter button:hover { background: var(--green-dk); }

.site-footer__social {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.site-footer__social li { margin: 0; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-500);
  background: rgba(255, 255, 255, 0.03);
  color: #C4D1DE;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.site-footer__social a:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
  text-decoration: none;
}
.site-footer__social svg { display: block; }

/* Social icon row for light surfaces (e.g. cards) */
.social-icons {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social-icons li { margin: 0; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-900);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-icons a:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
  text-decoration: none;
}
.social-icons svg { display: block; }

/* Honeypot: visually and AT-hidden but still in the DOM so bots find it */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Inline form feedback (newsletter + contact) */
.form-status {
  margin: 0.6rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: #6B8094;
  min-height: 1.2em;
}
.form-status.is-pending { color: var(--sea-300); }
.form-status.is-ok      { color: var(--green); font-family: var(--font-ui); letter-spacing: 0; }
.form-status.is-err     { color: var(--alert); font-family: var(--font-ui); letter-spacing: 0; }

/* On dark surfaces (footer) keep a bit more contrast */
.site-footer .form-status.is-ok  { color: #7BD39A; }
.site-footer .form-status.is-err { color: #FF8A8A; }

.site-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 1.75rem;
  border-top: 1px solid var(--ink-500);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B8094;
}
.site-footer__bottom a { color: #9FB1C2; }

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

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    display: none;
    box-shadow: var(--shadow-md);
    gap: 0.15rem;
  }
  .nav a {
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius);
  }
  .nav.is-open { display: flex; }
  .site-header { position: relative; }
}
@media (min-width: 961px) {
  .nav { display: flex !important; }
}

/* ---------- Viking changelog (viking-changelog.html) ---------- */

.section__inner--changelog {
  max-width: 1100px;
}

.changelog {
  display: grid;
  grid-template-columns: min(240px, 32vw) 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.changelog__toc {
  position: sticky;
  top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--fog-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.changelog__toc-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

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

.changelog__toc li {
  margin: 0 0 0.35rem;
}

.changelog__toc a {
  display: block;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.changelog__toc a:hover {
  color: var(--green);
  border-bottom-color: var(--green-200);
}

.changelog__toc-date {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-400);
  margin-top: 0.1rem;
}

.changelog__main {
  min-width: 0;
}

.changelog__release {
  margin: 0 0 2.5rem;
  padding: 0 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.changelog__release:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.changelog__feature {
  margin: 0 0 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
}

.changelog__feature img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 520px);
  object-fit: cover;
  vertical-align: middle;
}

.changelog__release-head {
  margin-bottom: 1rem;
}

.changelog__version {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.changelog__date {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-400);
}

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

.changelog__items > li {
  margin: 0 0 1.1rem;
  padding: 0 0 0 0.85rem;
  border-left: 3px solid var(--green-200);
}

.changelog__item-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.changelog__item-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-400);
  max-width: 72ch;
}

.changelog__missing {
  color: var(--alert);
}

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

  .changelog__toc {
    position: static;
  }
}

@media print {
  .changelog-print-hide,
  .site-header,
  .page-head,
  .skip,
  .certs,
  .site-footer {
    display: none !important;
  }

  #page,
  body {
    background: #fff;
  }

  .section {
    padding-top: 0.5rem;
  }

  .changelog__release {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
