/* ============================================================
   Surmountor — Architectural LED Lighting
   Global stylesheet. Dark industrial theme with warm amber accent.
   ============================================================ */

:root {
  /* Palette — Surmountor "green + black + slate depth" theme */
  --bg-0: #000000;         /* pure black page background */
  --bg-1: #0a0d0b;         /* section alt — near-black with green undertone */
  --bg-2: #10140f;         /* elevated card */
  --bg-3: #1b201a;         /* hover / border-heavy */
  --line: #22271f;         /* hairlines */
  --line-strong: #333a30;

  /* Slate depth layer — used for hero fills, mega-menu panels, product-showcase alt bg, sticky panel */
  --slate-0: #0d1319;      /* base slate — softer than pure black */
  --slate-1: #131a22;      /* elevated slate */
  --slate-2: #1a2330;      /* hover slate */
  --slate-3: #253040;      /* border slate */
  --slate-tint: rgba(23, 34, 48, 0.85);   /* semi-transparent slate for overlays */

  --ink-0: #f5f6f7;        /* primary text */
  --ink-1: #c9ced4;        /* secondary */
  --ink-2: #8a93a0;        /* tertiary / captions */
  --ink-3: #5b6470;

  /* Brand core */
  --brand-red: #E60000;
  --brand-green: #22C55E;      /* primary — from logo mountain */
  --brand-green-2: #5EE38F;    /* lighter tint for hover */
  --brand-green-3: #16A34A;    /* deeper green */

  --accent: var(--brand-green);         /* primary accent = brand green */
  --accent-2: var(--brand-green-2);
  --accent-glow: rgba(34, 197, 94, 0.42);
  --accent-warm: var(--brand-red);      /* red kept for occasional highlight */
  --accent-nature: var(--brand-green);

  --success: var(--brand-green);

  /* Type */
  --f-sans: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-display: "Space Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(18px, 2.5vw, 36px);
  --radius: 4px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 128px;   /* clear fixed header (96px) + topbar (32px) */
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-1); }

.eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
}

.h-display {
  font-size: clamp(18px, 2.7vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.h-section {
  font-size: clamp(14px, 1.7vw, 22px);
  line-height: 1.2;
  margin-bottom: 12px;
}
.lede { color: var(--ink-1); font-size: 16px; max-width: 640px; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  top: 32px; left: 0; right: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(0,0,0, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink-0);
  overflow: visible;
  flex-shrink: 0;
}
/* Image-based brand logo — transparent PNG, blends into any dark surface */
.logo-img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
}
.site-header .logo-img { height: 60px; }
.site-footer .logo-img { height: 68px; }
/* Legacy CSS-only mark (kept as fallback if img missing) */
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, var(--brand-red) 0%, var(--brand-blue) 55%, transparent 70%),
    conic-gradient(from 200deg at 50% 50%, var(--brand-red), var(--brand-green), var(--brand-blue), var(--brand-red));
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 8px rgba(255, 255, 255, 0.2);
}
.logo-word b { font-weight: 500; }
.logo-word .sur { color: var(--brand-red); }
.logo-word .mount { color: var(--brand-blue-2); }

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  color: var(--ink-1);
}
.nav-links a { position: relative; padding: 6px 0; font-weight: 400; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px; background: var(--accent);
  transition: right .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink-0); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-0);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { border-color: var(--accent); background: rgba(34,197,94,.08); color: var(--accent); }

.burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px;
  background: var(--ink-0); transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 96px; left: 0; right: 0;
    flex-direction: column;
    padding: 24px var(--gutter) 32px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    gap: 20px;
    font-size: 16px;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(34,197,94,.22), transparent 70%),
    radial-gradient(45% 45% at 15% 85%, rgba(94,227,143,.12), transparent 70%),
    linear-gradient(180deg, #000000 0%, #050705 100%);
  z-index: -2;
}
/* Optional real photo backdrop for hero — set via inline style on .hero */
.hero.has-photo::before {
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.75) 40%, rgba(0,0,0,.25) 100%),
    var(--hero-bg, none) center/cover no-repeat;
}

/* Real hero visual with image instead of CSS strips */
.hero-visual.hero-photo { padding: 0; }
.hero-visual.hero-photo::before { display: none; }
.hero-visual.hero-photo img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-visual.hero-photo .badge { z-index: 2; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 40%, transparent 80%);
  z-index: -1;
  opacity: .6;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent-line {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede { font-size: 14px; margin-bottom: 16px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .2s var(--ease), color .2s var(--ease);
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-green-2), var(--brand-green));
  color: #06110a;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -8px var(--accent-glow); color: #06110a; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink-0); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(34,197,94,.06); }
.btn svg { width: 14px; height: 14px; }

/* Hero visual — pure CSS "light strip" */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #14181d, #0c0e12);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: -10%; right: -20%;
  width: 140%; height: 130%;
  background:
    radial-gradient(55% 30% at 30% 30%, rgba(34,197,94,.4), transparent 65%),
    radial-gradient(40% 30% at 70% 70%, rgba(94,227,143,.3), transparent 70%);
  filter: blur(20px);
}
.hero-visual .strip {
  position: absolute;
  left: 8%;
  width: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--accent) 15%, var(--accent) 85%, transparent);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 60px var(--accent-glow);
  animation: pulse 4s var(--ease) infinite;
}
.hero-visual .strip.s1 { top: 8%; bottom: 8%; }
.hero-visual .strip.s2 { left: auto; right: 30%; top: 15%; bottom: 15%; width: 6px; animation-delay: 1s; opacity: .8; }
.hero-visual .strip.s3 {
  left: 40%; top: 60%;
  width: 45%; height: 6px;
  transform: rotate(-90deg); transform-origin: 0 50%;
  animation-delay: 2s;
}
.hero-visual .badge {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  padding: 14px 18px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-visual .badge strong { color: var(--ink-0); font-weight: 500; font-family: var(--f-display); }

@keyframes pulse {
  0%, 100% { opacity: .9; }
  50% { opacity: 1; filter: brightness(1.15); }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-block: 100px 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 1 / 1; max-width: 480px; margin: 0 auto; }
}

/* ---------- stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--bg-0);
  padding: 22px 24px;
  text-align: left;
}
.stat b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- section header ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.section-head p { margin: 8px 0 0; color: var(--ink-1); max-width: 520px; }
.section-head .link {
  font-size: 13px; color: var(--ink-1);
  letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
}
.section-head .link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.product-card .thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.product-card .thumb img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .thumb::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4));
}
/* Pure-CSS visual for LED strip thumbnails, varied per class */
.thumb-led {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(140deg, #14181d, #000000);
}
.thumb-led::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(65% 45% at 50% 40%, rgba(34,197,94,.35), transparent 65%);
}
.thumb-led::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: 50%;
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-50%);
}
.thumb-led.v2::after { transform: translateY(-50%) rotate(-8deg); height: 6px; }
.thumb-led.v3::after {
  border-radius: 20px;
  height: 40px; top: 30%; left: 20%; right: 20%;
  background: linear-gradient(180deg, rgba(34,197,94,.55), rgba(94,227,143,.2));
  box-shadow: 0 0 48px var(--accent-glow);
}
.thumb-led.v4::after {
  height: 4px; top: 30%; box-shadow: 0 22px 0 var(--accent), 0 44px 0 var(--accent-2), 0 0 24px var(--accent-glow);
}
.thumb-led.v5::after {
  border-radius: 50%;
  height: 120px; width: 120px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent), transparent 65%);
}
.thumb-led.v6::after {
  height: 2px; top: 20%;
  box-shadow:
    0 20px 0 -1px var(--accent),
    0 40px 0 -1px var(--accent),
    0 60px 0 -1px var(--accent),
    0 80px 0 -1px var(--accent),
    0 0 20px var(--accent-glow);
  opacity: .8;
}

.product-card .body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card .cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-0);
}
.product-card .meta {
  color: var(--ink-2);
  font-size: 13px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.product-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.product-card .meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* ---------- capabilities strip ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
.cap {
  padding: 32px 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease);
}
.cap:hover { border-color: var(--accent); }
.cap-icon {
  width: 44px; height: 44px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: rgba(34,197,94,.08);
  color: var(--accent);
  display: grid; place-items: center;
  border: 1px solid rgba(34,197,94,.25);
}
.cap-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.cap h4 { font-size: 17px; color: var(--ink-0); margin-bottom: 8px; }
.cap p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ---------- application gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}
.gallery figure {
  margin: 0; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-2);
}
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  font-size: 13px;
  letter-spacing: .05em;
}
.gallery figure figcaption strong { display: block; font-weight: 500; font-size: 15px; margin-bottom: 2px; font-family: var(--f-display); }
.gallery figure:nth-child(1) { grid-row: 1 / span 2; }
@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 200px); }
  .gallery figure:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
}

/* ---------- events / timeline ---------- */
.events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .events { grid-template-columns: 1fr; } }
.event {
  padding: 28px 26px 26px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease);
  position: relative;
}
.event:hover { border-color: var(--accent); }
.event time {
  font-family: var(--f-display);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block; margin-bottom: 14px;
}
.event h4 { color: var(--ink-0); font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.event p { margin: 0; color: var(--ink-2); font-size: 14px; }
.event .arrow {
  position: absolute; right: 24px; bottom: 22px;
  color: var(--ink-2);
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.event:hover .arrow { color: var(--accent); transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: 28px;
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(94,227,143,.22), transparent 65%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-block: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { font-size: clamp(15px, 2.2vw, 28px); max-width: 780px; margin: 0 auto 20px; line-height: 1.15; }
.cta-band p { color: var(--ink-1); max-width: 560px; margin: 0 auto 32px; font-size: 14px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 40px 0 20px;
  color: var(--ink-2);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 14px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { margin: 16px 0 20px; max-width: 320px; color: var(--ink-2); line-height: 1.6; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink-1);
  transition: border-color .2s, color .2s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 15px; height: 15px; }

.footer-col h5 {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-0);
  margin-bottom: 18px;
  font-weight: 500;
  font-family: var(--f-sans);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- inner-page hero (Products / About / Contact) ----------
   Full-bleed banner: real factory / project photo behind a dark gradient
   that keeps left-aligned copy legible. Photo is picked per page via a
   .page-hero--<slug> modifier that sets --hero-bg. */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: 120px 0 60px;
  min-height: 340px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  color: var(--ink-0);
  --hero-bg: none;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    var(--hero-bg, none) center/cover no-repeat;
  /* Light photos need less darkening — dial back so the neon-white scene
     stays airy and photographic on the right side while still readable on
     the left. */
  filter: saturate(1.05);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Left-to-right dark scrim that keeps the copy legible without
       blackening the whole photo. Fades to fully transparent by ~55%. */
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.55) 30%,
      rgba(0, 0, 0, 0.15) 55%,
      rgba(0, 0, 0, 0.00) 75%
    ),
    /* Subtle top→bottom vignette so the banner edges blend into the page. */
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 25%,
      transparent 75%,
      rgba(0, 0, 0, 0.35) 100%
    ),
    /* Brand green accent glow, right-hand side. */
    radial-gradient(
      120% 90% at 100% 100%,
      rgba(34, 197, 94, 0.12),
      transparent 60%
    );
}
/* Per-page banner backgrounds. Currently all 6 inner pages share the
   architectural neon banner from surmountor.com (1920x450, ratio 4.27:1).
   To differentiate per page later, replace individual --hero-bg values. */
.page-hero--contact   { --hero-bg: url("../img/banners/hero-banner.jpg"); }
.page-hero--about     { --hero-bg: url("../img/banners/hero-banner.jpg"); }
.page-hero--news      { --hero-bg: url("../img/banners/hero-banner.jpg"); }
.page-hero--downloads { --hero-bg: url("../img/banners/hero-banner.jpg"); }
.page-hero--products  { --hero-bg: url("../img/banners/hero-banner.jpg"); }
.page-hero--project   { --hero-bg: url("../img/banners/hero-banner.jpg"); }

/* Restore old (background-less) fallback if only .page-hero is used */
.page-hero:not([class*="page-hero--"])::before {
  background: none;
  filter: none;
}
.page-hero:not([class*="page-hero--"])::after {
  background: radial-gradient(60% 100% at 100% 0%, rgba(34,197,94,.10), transparent 60%);
}


.page-hero .container { max-width: 1200px; position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--ink-0);
  max-width: 720px;
}
.page-hero p {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.65;
  max-width: 620px;
}
.page-hero .crumbs {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 22px;
}
.page-hero .crumbs a { color: var(--ink-2); }
.page-hero .crumbs a:hover { color: var(--accent); }

/* ---------- products page: filter chips ---------- */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-1);
  font-size: 13px;
  background: transparent;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #111; }

/* ---------- about story blocks ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story--reverse { direction: rtl; }
.story--reverse > * { direction: ltr; }
.story .visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.story .visual img { width: 100%; height: 100%; object-fit: cover; }
.story h3 { font-size: clamp(12px, 1.5vw, 18px); margin-bottom: 16px; line-height: 1.25; }
.story p { color: var(--ink-1); margin: 0 0 14px; }
@media (max-width: 900px) { .story, .story--reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; } }

/* ---------- contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink-0); }
.contact-info p { color: var(--ink-1); margin: 0 0 32px; }
.contact-info ul li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-info ul li:last-child { border-bottom: 1px solid var(--line); }
.contact-info .ico {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 6px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  color: var(--accent);
  display: grid; place-items: center;
}
.contact-info .ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.contact-info .label { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.contact-info .value { color: var(--ink-0); font-family: var(--f-display); font-size: 15px; word-break: break-word; }

.form-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
@media (max-width: 500px) { .form-card { padding: 28px 22px; } }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--ink-0);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 130px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 24px; color: var(--ink-2); font-size: 13px; }
.checkbox-row input { margin-top: 3px; accent-color: var(--accent); }

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }


/* ============================================================
   NEW COMPONENTS — jrlite-style framework upgrade
   ============================================================ */

/* ---------- Top bar (language + unit switcher) ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 55;
  background: var(--slate-0);
  border-bottom: 1px solid var(--slate-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  gap: 20px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar .flag-btn {
  background: transparent; border: 0; padding: 4px 8px;
  color: var(--ink-1); font: inherit; cursor: pointer;
  border-radius: 3px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s, background .15s;
}
.topbar .flag-btn:hover { color: var(--accent); background: rgba(34,197,94,.06); }
.topbar .flag-btn .flag {
  display: inline-block; width: 14px; height: 10px;
  background: linear-gradient(90deg, currentColor 33%, transparent 33% 66%, currentColor 66%);
  opacity: 0.7; border-radius: 1px;
}
.topbar .lang-list, .topbar .unit-list {
  position: relative;
}
.topbar .lang-list details, .topbar .unit-list details {
  position: relative;
}
.topbar summary {
  list-style: none;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 3px;
  color: var(--ink-1);
  display: inline-flex; align-items: center; gap: 6px;
}
.topbar summary::-webkit-details-marker { display: none; }
.topbar summary::after {
  content: "▾"; font-size: 9px; opacity: 0.6;
}
.topbar summary:hover { background: rgba(255,255,255,.04); color: var(--accent); }
.topbar details[open] > .drop {
  position: absolute; top: 100%; right: 0;
  min-width: 180px;
  background: var(--slate-1);
  border: 1px solid var(--slate-3);
  border-radius: 6px;
  padding: 6px;
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,.6);
  z-index: 100;
}
.topbar .drop a {
  display: block;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 3px;
  color: var(--ink-1);
  text-transform: none;
  letter-spacing: 0;
}
.topbar .drop a:hover { background: rgba(34,197,94,.1); color: var(--accent); }
.topbar .contact-quick {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2);
}
.topbar .contact-quick a { color: var(--ink-1); }
.topbar .contact-quick a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .topbar-left .contact-quick { display: none; }
}

/* ============================================================
   Mega Menu v2 — large-card visual dropdown
   ============================================================ */
.nav-links.mega .has-mega { position: static; }
.nav-links.mega .has-mega > a {
  display: inline-flex; align-items: center;
  position: relative;
  padding-right: 16px;   /* room for chevron on the right */
}

/* Underline lives in ::before so it doesn't collide with the chevron in ::after.
   Width is constrained to the text — stops before the padding-right that holds the chevron. */
.nav-links.mega .has-mega > a::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(100% - 0px);           /* start collapsed on the left */
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.nav-links.mega .has-mega > a:hover::before,
.nav-links.mega .has-mega > a[aria-current="page"]::before,
.has-mega:hover > a::before,
.has-mega:focus-within > a::before {
  right: 22px;                       /* keep clear of the ">" chevron on the right */
}

/* Chevron on the right, in ::after */
.nav-links.mega .has-mega > a::after {
  content: ">";
  position: static;                 /* cancel absolute from generic .nav-links a::after */
  left: auto; right: auto; bottom: auto;
  width: auto; height: auto;
  background: transparent;          /* kill the inherited green bar */
  display: inline-block;
  margin-left: 6px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  opacity: 0.85;
  transform: scaleX(0.9);
  transition: opacity .2s, color .2s, transform .2s var(--ease);
}
.has-mega:hover > a::after,
.has-mega:focus-within > a::after,
.nav-links.mega .has-mega > a[aria-current="page"]::after {
  opacity: 1;
  color: #ffffff;                    /* chevron stays white */
  transform: scaleX(0.9) translateX(2px);
}
.has-mega:hover > a,
.has-mega:focus-within > a,
.nav-links.mega .has-mega > a[aria-current="page"] {
  color: #ffffff;                    /* text stays white; only underline is green */
}

/* Panel — full-bleed dark glass surface */
.mega-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: rgba(13, 19, 25, 0.94);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  padding: 28px 0 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.75);
  z-index: 40;
  border-bottom: 1px solid var(--slate-3);
}
/* Top hairline: brand-green gradient accent */
.mega-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--brand-green) 20%,
    var(--brand-green-2) 50%,
    var(--brand-green) 80%,
    transparent 100%);
  opacity: 0.9;
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel,
.mega-panel:hover {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Two-region grid: 4 cards (or 3) + 1 rail */
.mega-panel .container {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px 32px;
  align-items: stretch;
}
.mega-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mega-cards[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }

/* Large picture card */
.mega-card {
  position: relative;
  display: block;
  background: var(--slate-1);
  border: 1px solid var(--slate-3);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: inherit;
  transform: translateY(6px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease),
              border-color .2s, box-shadow .25s;
}
.has-mega:hover .mega-card,
.has-mega:focus-within .mega-card { opacity: 1; transform: translateY(0); }
.has-mega:hover .mega-card:nth-child(1) { transition-delay: .04s; }
.has-mega:hover .mega-card:nth-child(2) { transition-delay: .09s; }
.has-mega:hover .mega-card:nth-child(3) { transition-delay: .14s; }
.has-mega:hover .mega-card:nth-child(4) { transition-delay: .19s; }

.mega-card__media {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}
.mega-card__media img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .55s var(--ease), filter .3s;
  filter: brightness(0.72) saturate(1.05);
}
.mega-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;              /* below body, above media */
  background: linear-gradient(180deg,
    rgba(13,19,25,0) 30%,
    rgba(13,19,25,0.55) 65%,
    rgba(13,19,25,0.95) 100%);
  pointer-events: none;
}
.mega-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 16px;
  color: #fff;
  z-index: 2;              /* always on top of media + scrim */
}
.mega-card__title {
  display: block;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 3px;
}
.mega-card__sub {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-1);
  letter-spacing: 0.01em;
}
/* Corner arrow removed entirely — visual noise. Hover affordance now
   comes from the border-glow + title underline animation below. */
.mega-card__arrow { display: none; }

.mega-card:hover {
  border-color: var(--brand-green);
  box-shadow: 0 12px 28px -8px rgba(34,197,94,0.35);
}
.mega-card:hover .mega-card__media img { transform: scale(1.08); filter: brightness(0.85) saturate(1.1); }
/* Subtle green underline under the title on hover — signals affordance
   without the heavy filled-circle button. Wrapped as inline-block so the
   line is exactly title-width, never the full card. */
.mega-card__title {
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  max-width: 100%;
}
.mega-card__title::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--brand-green);
  transition: right .3s var(--ease);
}
.mega-card:hover .mega-card__title::after { right: 0; }

/* Right rail — quick model chips */
.mega-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 4px 4px 24px;
  border-left: 1px solid var(--slate-3);
}
.mega-rail__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 4px;
}
.mega-rail__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-rail__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  color: var(--ink-1);
  font-size: 12.5px;
  font-family: var(--f-sans);
  transition: background .18s, border-color .18s, color .15s, transform .15s;
}
.mega-rail__list a strong {
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}
.mega-rail__list a span {
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.mega-rail__list a:hover {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.35);
  color: var(--accent);
  transform: translateX(2px);
}
.mega-rail__list a:hover strong { color: var(--accent); }
.mega-rail__cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--slate-3);
}
.mega-rail__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.mega-rail__cta a::after {
  content: "→";
  transition: transform .2s;
}
.mega-rail__cta a:hover::after { transform: translateX(4px); }

/* ============================================================
   Mega Menu v3 — 4-column cascading (cats > subs > models > preview)
   ============================================================ */
.mega-panel--l4 { padding: 0; }
.mega-panel--l4 .container {
  display: grid;
  grid-template-columns: 220px 240px 320px 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  min-height: 460px;
}

/* Common column shell */
.mcol {
  padding: 18px 14px;
  border-right: 1px solid var(--slate-3);
  overflow-y: auto;
  max-height: 68vh;
}
.mcol:last-child { border-right: 0; }

.mcol__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 8px 10px;
}

/* Level-1: categories */
.mcol--cats { background: rgba(10, 15, 20, 0.75); }
.mcol--subs { background: rgba(15, 22, 30, 0.75); }
.mcol--mods { background: rgba(20, 28, 38, 0.75); }
.mcol--prev {
  background: rgba(0, 0, 0, 0.45);
  padding: 0;
  overflow: hidden;
  border-right: 0;
  position: relative;
}

/* Row items — universal.
   Baseline reset: strip everything anchors/divs might inherit, then re-declare
   layout from scratch so <a class="mrow"> and <div class="mrow"> render
   pixel-identically. Reserve a 3-px transparent left border on EVERY row so
   the active row's green border does not shift text. */
.mrow,
a.mrow,
div.mrow {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-left: 3px solid transparent !important;
  border-radius: 8px !important;
  background: transparent;
  color: var(--ink-1);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  position: relative;
  text-decoration: none !important;
  outline: 0 !important;
  box-shadow: none !important;
  transition: background .15s, color .15s, border-color .15s;
}
/* Kill the ::after underline inherited from .nav-links a (that horizontal
   green line that used to cross the active card). */
.mrow::after,
.mrow:hover::after,
.mrow.is-active::after,
.mrow:focus::after,
.mrow[aria-current="page"]::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  height: 0 !important;
}
.mrow:hover,
.mrow.is-active {
  background: rgba(34,197,94,0.08);
  color: #fff;
}
/* Active state: turn the reserved left border green — geometry never shifts,
   so every column shows exactly the same gap between bar and text. */
.mrow.is-active {
  border-left-color: var(--brand-green) !important;
}
/* Legacy ::before rule fully disabled (kept for backwards compatibility) */
.mrow.is-active::before {
  content: none;
}
/* Belt-and-braces: no anchor state may draw a line across mrow */
a.mrow,
a.mrow:link,
a.mrow:visited,
a.mrow:hover,
a.mrow:focus,
a.mrow:focus-visible,
a.mrow:active {
  outline: 0 !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.mrow__name {
  font-family: var(--f-display);
  font-size: 13.5px;
  color: inherit;
  display: block;
  letter-spacing: 0.005em;
}
.mrow.is-active .mrow__name { color: var(--brand-green); }
.mrow__tag {
  font-size: 11px;
  color: var(--ink-2);
  display: block;
  margin-top: 2px;
  line-height: 1.35;
}
.mrow__chev {
  margin-left: auto;
  color: var(--ink-2);
  font-size: 11px;
  align-self: center;
  transition: transform .15s, color .15s;
}
.mrow:hover .mrow__chev,
.mrow.is-active .mrow__chev {
  color: var(--brand-green);
  transform: translateX(3px);
}

/* Preview pane */
.mprev {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}
.mprev.is-active { display: block; }
.mprev__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}
.mprev__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.7) 100%);
}
.mprev__body {
  position: absolute;
  left: 24px; right: 24px; bottom: 20px;
  color: #fff;
}
.mprev__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 6px;
  display: block;
}
.mprev__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.mprev__sub {
  font-size: 13px;
  color: var(--ink-1);
  margin: 0 0 14px;
  max-width: 90%;
}
.mprev__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s, color .2s;
}
.mprev__cta:hover {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #000;
}

/* Groups: only one active per level (data-driven via HTML classes) */
.mgroup { display: none; }
.mgroup.is-active { display: block; }

/* Scrollbar polish inside columns */
.mcol::-webkit-scrollbar { width: 6px; }
.mcol::-webkit-scrollbar-thumb { background: var(--slate-3); border-radius: 3px; }
.mcol::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1180px) {
  .mega-panel--l4 .container { grid-template-columns: 200px 220px 1fr; }
  .mcol--prev { display: none; }
}
@media (max-width: 900px) {
  .mega-panel--l4 { display: none; }
}

/* Legacy .mega-col fallback (kept for any page not yet migrated) */
.mega-col h6 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 500;
  font-family: var(--f-sans);
}
.mega-col ul { display: flex; flex-direction: column; gap: 6px; }
.mega-col a {
  color: var(--ink-1);
  font-size: 12.5px;
  padding: 3px 0;
  transition: color .15s, transform .15s;
}
.mega-col a:hover { color: var(--accent); transform: translateX(2px); }

@media (max-width: 1180px) {
  .mega-panel .container { grid-template-columns: 1fr; }
  .mega-rail { border-left: 0; border-top: 1px solid var(--slate-3); padding: 16px 0 0; margin-top: 8px; }
}
@media (max-width: 900px) {
  .mega-panel { display: none; }
  .mega-cards { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  margin-top: 0;   /* body padding-top already handles header offset */
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--slate-0);
}
.hero-slider .slides {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity .8s var(--ease);
  overflow: hidden;
}
.slide.is-active { opacity: 1; z-index: 2; }
.slide-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.slide::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.30) 50%, rgba(0,0,0,.10) 100%);
  pointer-events: none;
}
.slide-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}
.slide-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}
.slide-inner .container {
  max-width: 1360px;
}
.slide-eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(34,197,94,.06);
}
.slide-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 0 18px;
}
.slide-title .accent { color: var(--accent); }
.slide-lede {
  color: var(--ink-1);
  font-size: clamp(13px, 1.2vw, 16px);
  max-width: 540px;
  margin: 0 0 28px;
}
.slide-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* dots */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider-dots button {
  width: 34px; height: 3px;
  background: rgba(255,255,255,.25);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.slider-dots button.is-active { background: var(--accent); }
/* prev / next */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--slate-3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
  z-index: 5;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: #06110a; }
.slider-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
@media (max-width: 700px) {
  .hero-slider { height: 60vh; min-height: 420px; }
  .slider-arrow { display: none; }
}

/* ---------- Configurator Banner ---------- */
.configurator-band {
  background: linear-gradient(90deg, var(--slate-0), var(--slate-1) 50%, var(--slate-0));
  border-block: 1px solid var(--slate-3);
  padding: 22px 0;
  position: relative;
  overflow: hidden;
}
.configurator-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(50% 100% at 20% 50%, rgba(34,197,94,.08), transparent 70%),
    radial-gradient(50% 100% at 80% 50%, rgba(34,197,94,.08), transparent 70%);
  z-index: 0;
}
.configurator-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.configurator-band p {
  margin: 0;
  color: var(--ink-1);
  font-size: clamp(13px, 1.3vw, 15px);
  max-width: 780px;
  line-height: 1.5;
}
.configurator-band p strong { color: var(--accent); font-weight: 500; }


/* ---------- Product Showcase (large left-right split) ---------- */
.showcase { padding-block: clamp(28px, 4vw, 60px); background: var(--bg-0); }
.showcase-header {
  text-align: center;
  margin-bottom: 40px;
}
.showcase-header .eyebrow { margin-bottom: 12px; }
.showcase-header h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 34px);
  color: var(--ink-0);
  margin: 0 0 8px;
}
.showcase-item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--slate-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-0);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.showcase-item:hover { border-color: var(--accent); transform: translateY(-2px); }
/* Alternate image side — use grid order (not RTL, which breaks width math) */
.showcase-item:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.showcase-item:nth-child(even) .showcase-visual { order: 2; }
.showcase-item:nth-child(even) .showcase-body { order: 1; }
.showcase-visual {
  position: relative;
  overflow: hidden;
  background: var(--slate-1);
  min-width: 0;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-body { min-width: 0; }
.showcase-visual img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform .8s var(--ease);
  padding: 16px;
}
.showcase-item:hover .showcase-visual img { transform: scale(1.03); }
.showcase-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.showcase-body .cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.showcase-body h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink-0);
  line-height: 1.15;
  margin: 0;
}
.showcase-body p {
  color: var(--ink-1);
  font-size: 14px;
  margin: 0;
}
/* scrolling adjective tags */
.tag-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  border-block: 1px solid var(--slate-3);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.tag-marquee .track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
  padding-right: 32px;
}
.tag-marquee .track span {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--ink-1);
  letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 32px;
}
.tag-marquee .track span::after {
  content: "•";
  color: var(--accent);
  margin-left: 32px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.showcase-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .showcase-item, .showcase-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .showcase-body { padding: 24px 22px; }
}

/* ---------- Mosaic Wall (11-image irregular grid) ---------- */
.mosaic {
  padding-block: clamp(28px, 4vw, 60px);
  background: var(--slate-0);
}
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
}
.mosaic-cell {
  position: relative;
  overflow: hidden;
  background: var(--slate-1);
  border-radius: 6px;
  transition: transform .35s var(--ease);
}
.mosaic-cell img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .3s var(--ease);
  filter: brightness(0.85);
}
.mosaic-cell:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}
.mosaic-cell:hover { z-index: 2; }
.mosaic-cell figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  color: #fff;
  font-family: var(--f-display);
  font-size: 13px;
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.mosaic-cell:hover figcaption { transform: none; }
/* irregular layout — 11 tiles */
.mosaic-cell:nth-child(1)  { grid-column: span 3; grid-row: span 2; }
.mosaic-cell:nth-child(2)  { grid-column: span 2; }
.mosaic-cell:nth-child(3)  { grid-column: span 1; }
.mosaic-cell:nth-child(4)  { grid-column: span 1; }
.mosaic-cell:nth-child(5)  { grid-column: span 2; grid-row: span 2; }
.mosaic-cell:nth-child(6)  { grid-column: span 2; }
.mosaic-cell:nth-child(7)  { grid-column: span 2; }
.mosaic-cell:nth-child(8)  { grid-column: span 2; grid-row: span 2; }
.mosaic-cell:nth-child(9)  { grid-column: span 2; }
.mosaic-cell:nth-child(10) { grid-column: span 2; }
.mosaic-cell:nth-child(11) { grid-column: span 2; }
@media (max-width: 900px) {
  .mosaic-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
  .mosaic-cell:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .mosaic-cell:nth-child(n+2) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 500px) {
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic-cell:nth-child(n) { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Timeline Tabs (Events) ---------- */
.timeline {
  padding-block: clamp(28px, 4vw, 60px);
  background: var(--bg-0);
}
.timeline-header {
  text-align: center;
  margin-bottom: 24px;
}
.timeline-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--slate-3);
  padding-bottom: 0;
}
.timeline-tab {
  background: transparent;
  border: 0;
  padding: 14px 28px;
  color: var(--ink-2);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.timeline-tab:hover { color: var(--ink-0); }
.timeline-tab.is-active { color: var(--accent); }
.timeline-tab.is-active::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: -1px;
  height: 2px; background: var(--accent);
}
.timeline-panel {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.timeline-panel.is-active { display: grid; }
@media (max-width: 900px) { .timeline-panel { grid-template-columns: 1fr; } }
.timeline-event {
  padding: 22px 24px;
  background: var(--slate-1);
  border: 1px solid var(--slate-3);
  border-radius: var(--radius-lg);
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.timeline-event:hover { border-color: var(--accent); transform: translateY(-3px); }
.timeline-event .date {
  font-family: var(--f-display);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.timeline-event h4 {
  font-family: var(--f-display);
  color: var(--ink-0);
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  font-weight: 500;
}
.timeline-event .booth {
  padding-top: 8px;
  border-top: 1px dashed var(--slate-3);
  margin-top: auto;
  font-size: 12px;
  color: var(--ink-2);
}
.timeline-event .booth strong { color: var(--accent); }


/* ---------- Sticky Inquiry Panel ---------- */
.sticky-inquiry {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: linear-gradient(180deg, var(--slate-0), var(--slate-1));
  border-top: 1px solid var(--slate-3);
  box-shadow: 0 -12px 40px -8px rgba(0,0,0,.6);
  transform: translateY(calc(100% - 56px));
  transition: transform .4s var(--ease);
}
.sticky-inquiry.is-open { transform: none; }
.sticky-inquiry-tabs {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--slate-3);
  cursor: pointer;
}
.sticky-inquiry-title {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--ink-0);
  font-weight: 500;
  flex: 1;
}
.sticky-inquiry-tab {
  background: transparent; border: 0;
  padding: 8px 14px;
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.sticky-inquiry-tab.is-active { color: var(--accent); background: rgba(34,197,94,.08); }
.sticky-inquiry-tab:hover { color: var(--ink-0); }
.sticky-toggle {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--slate-3);
  border-radius: 4px;
  color: var(--ink-1);
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .3s var(--ease), border-color .2s;
}
.sticky-inquiry.is-open .sticky-toggle { transform: rotate(180deg); }
.sticky-toggle:hover { border-color: var(--accent); color: var(--accent); }
.sticky-inquiry-body {
  padding: 24px var(--gutter) 28px;
  max-height: 60vh;
  overflow-y: auto;
}
.sticky-form-panel { display: none; }
.sticky-form-panel.is-active { display: block; }
.sticky-form-panel .form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}
@media (max-width: 800px) { .sticky-form-panel .form-row { grid-template-columns: 1fr; } }
.sticky-form-panel .field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: 6px;
}
.sticky-form-panel input,
.sticky-form-panel select,
.sticky-form-panel textarea {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--slate-3);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--ink-0);
  font: inherit;
  font-size: 13px;
  transition: border-color .15s;
}
.sticky-form-panel input:focus,
.sticky-form-panel select:focus,
.sticky-form-panel textarea:focus { outline: none; border-color: var(--accent); }
.sticky-form-panel textarea { min-height: 90px; resize: vertical; }
.sticky-form-panel .form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.sticky-form-panel .consent {
  font-size: 12px;
  color: var(--ink-2);
  display: flex; gap: 8px; align-items: center;
}
.sticky-form-panel .consent input { width: auto; accent-color: var(--accent); }
/* push page content up when panel is at rest so nothing hides behind it */
body.has-sticky-inquiry { padding-bottom: 56px; }
@media (max-width: 600px) {
  .sticky-inquiry-tabs { gap: 8px; }
  .sticky-inquiry-title { font-size: 13px; }
  .sticky-inquiry-tab { font-size: 11px; padding: 6px 10px; }
}


/* ============================================================
   Products page — full-catalogue sidebar (always expanded)
   Mirrors surmountor.com's own left menu layout; dark-green theme.
   ============================================================ */
.pcat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}
.pcat-sidebar {
  position: sticky;
  top: 148px;               /* clears fixed header 128px + section pad */
  align-self: start;
  max-height: calc(100vh - 168px);
  overflow-y: auto;
  padding: 22px 18px 26px;
  background: linear-gradient(180deg, rgba(19, 26, 34, 0.7), rgba(10, 13, 11, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.pcat-sidebar::-webkit-scrollbar { width: 6px; }
.pcat-sidebar::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.pcat-head {
  padding: 0 4px 16px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 14px;
}
.pcat-head__eyebrow {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); display: block; margin-bottom: 6px;
}
.pcat-head__title {
  font-family: var(--f-display);
  font-size: 18px; color: var(--ink-0); font-weight: 500;
  margin: 0; letter-spacing: 0.14em;
}

/* Top "All Products" entry */
.pcat-all {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-1);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.pcat-all:hover { background: rgba(34,197,94,.06); color: var(--ink-0); border-color: var(--line-strong); }
.pcat-all.is-active {
  background: rgba(34,197,94,.12);
  color: var(--ink-0);
  border-color: var(--accent);
}

/* First-level category block — no border, generous vertical rhythm */
.pcat-cat-block { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pcat-cat-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* Category header link — bold, uppercase, prominent */
.pcat-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 4px 8px;
  color: var(--ink-0);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .18s var(--ease);
}
.pcat-cat:hover { color: var(--accent); }
.pcat-cat.is-active { color: var(--accent); }
.pcat-cat__name { display: inline-flex; align-items: center; gap: 8px; }
/* Chevron: rotates to indicate open/closed state */
.pcat-cat__name::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.55;
  transition: transform .2s var(--ease), opacity .18s var(--ease);
  display: inline-block;
  margin-left: 2px;
  /* only show for categories that actually have subseries */
}
.pcat-cat-block:not(.has-subs) .pcat-cat__name::after { display: none; }
.pcat-cat-block.is-open > .pcat-cat .pcat-cat__name::after {
  transform: rotate(45deg);
  opacity: 1;
}
.pcat-cat:hover .pcat-cat__name::after { opacity: 1; }
.pcat-cat__count {
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 500;
  min-width: 22px;
  text-align: center;
  letter-spacing: 0;
}
.pcat-cat.is-active .pcat-cat__count {
  color: var(--accent);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

/* Subseries list — hidden by default; expands only for the active category */
.pcat-subs {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .28s var(--ease), opacity .18s var(--ease), padding .2s var(--ease);
}
.pcat-cat-block.is-open > .pcat-subs {
  max-height: 900px;   /* generous cap so the 14-item Strip list fits */
  opacity: 1;
  padding: 6px 0 4px 4px;
}
.pcat-subs li { margin: 0; }
.pcat-sub {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 5px 8px 5px 14px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.35;
  border-radius: 4px;
  position: relative;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.pcat-sub::before {
  content: "";
  position: absolute;
  left: 3px; top: 50%;
  width: 4px; height: 4px;
  background: var(--line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background .18s var(--ease), box-shadow .18s var(--ease);
}
.pcat-sub:hover { color: var(--ink-0); background: rgba(34,197,94,.05); }
.pcat-sub:hover::before { background: var(--accent); }
.pcat-sub.is-active {
  color: var(--accent);
  background: rgba(34, 197, 94, 0.10);
  font-weight: 500;
}
.pcat-sub.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.pcat-sub__count {
  font-size: 10.5px;
  color: var(--ink-3);
  font-family: var(--f-display);
  font-weight: 500;
  min-width: 20px;
  text-align: right;
}
.pcat-sub.is-active .pcat-sub__count { color: var(--accent); }
/* Subseries with 0 products — dimmed but still clickable */
.pcat-sub.is-zero { opacity: 0.55; }
.pcat-sub.is-zero:hover { opacity: 1; }

/* Right-side main column */
.pcat-main { min-width: 0; }
.pcat-crumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 4px 0 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.pcat-crumb__label { color: var(--ink-3); }
.pcat-crumb__value { color: var(--ink-0); letter-spacing: 0.06em; text-transform: none; font-size: 14px; }
.pcat-crumb__value .sep { color: var(--ink-3); margin: 0 8px; }
.pcat-crumb__value .cur { color: var(--accent); }
.pcat-crumb__count { color: var(--ink-3); margin-left: 6px; font-size: 12px; }

/* Empty state message */
.pcat-empty {
  padding: 60px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-2);
  text-align: center;
  font-size: 14px;
  display: none;
}
.pcat-main.is-empty .product-grid { display: none; }
.pcat-main.is-empty .pcat-empty { display: block; }

/* Responsive: sidebar becomes a scrollable list at the top on tablets & phones */
@media (max-width: 900px) {
  .pcat-layout { grid-template-columns: 1fr; gap: 20px; }
  .pcat-sidebar {
    position: static;
    max-height: 320px;
    padding: 14px;
  }
}



/* ============================================================
   Product Detail Page (PDP)  —  layout & components
   Structure mirrors jrlite.com, colour stays Surmountor dark-green.
   ============================================================ */

/* ---- Sticky top-bar with breadcrumb + section tabs ---- */
.pdp-topbar {
  position: sticky;
  top: 128px;                /* under fixed header (32 topbar + 96 nav) */
  z-index: 20;
  background: rgba(0,0,0, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.pdp-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 0;
  flex-wrap: wrap;
}
.pdp-crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2);
  letter-spacing: 0.02em;
  min-width: 0;
  flex-wrap: wrap;
}
.pdp-crumb a { color: var(--ink-2); transition: color .18s var(--ease); }
.pdp-crumb a:hover { color: var(--accent); }
.pdp-crumb .sep { color: var(--ink-3); }
.pdp-crumb .cur { color: var(--ink-0); font-weight: 500; }

.pdp-tabs {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px;
}
.pdp-tabs a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-1);
  border: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.pdp-tabs a:hover { color: var(--ink-0); border-color: var(--line-strong); }
.pdp-tabs a.is-active {
  color: var(--accent);
  border-color: rgba(34,197,94, 0.35);
  background: rgba(34,197,94, 0.08);
}

/* ---- Main grid: gallery (7) + info (5) ---- */
.pdp-main { padding: 40px 0 24px; }
.pdp-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .pdp-main__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Gallery ---- */
.pdp-gallery { min-width: 0; }
.pdp-gallery__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(65% 55% at 50% 40%, rgba(34,197,94,.08), transparent 70%),
    linear-gradient(160deg, #14181d, #0a0d0b);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pdp-gallery__slides { position: absolute; inset: 0; }
.pdp-gallery__slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 24px;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.pdp-gallery__slides img.is-active { opacity: 1; }

.pdp-gallery__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  color: var(--ink-0);
  font-size: 24px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.pdp-gallery__arrow:hover { background: rgba(34,197,94, 0.15); border-color: var(--accent); color: var(--accent); }
.pdp-gallery__arrow--prev { left: 14px; }
.pdp-gallery__arrow--next { right: 14px; }

.pdp-gallery__badge {
  position: absolute;
  right: 14px; bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0, 0.6);
  border: 1px solid var(--line);
  color: var(--ink-1);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-family: var(--f-display);
  z-index: 2;
}

.pdp-gallery__thumbs {
  display: flex; gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding-bottom: 6px;
}
.pdp-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.pdp-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.pdp-gallery__thumbs button {
  flex: 0 0 82px;
  width: 82px; height: 82px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.pdp-gallery__thumbs button img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity .18s var(--ease);
}
.pdp-gallery__thumbs button:hover img { opacity: 1; }
.pdp-gallery__thumbs button.is-active {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pdp-gallery__thumbs button.is-active img { opacity: 1; }

/* ---- Info column (sticky on desktop) ---- */
.pdp-info {
  position: sticky;
  top: 200px;                /* below header (128) + pdp-topbar (~48) + gap */
  align-self: start;
  min-width: 0;
}
@media (max-width: 960px) { .pdp-info { position: static; top: auto; } }

.pdp-info__eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.pdp-info__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--ink-0);
  word-break: break-word;
}
.pdp-info__blurb {
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.pdp-info__keyspecs {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pdp-info__keyspecs li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pdp-info__keyspecs span { color: var(--ink-2); }
.pdp-info__keyspecs b { color: var(--ink-0); font-weight: 500; text-align: right; }

.pdp-info__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.pdp-info__actions .btn { padding: 12px 20px; font-size: 13px; }

/* ---- Accordion (Downloads sub-panels in info) ---- */
.pdp-acc {
  border-top: 1px solid var(--line);
}
.pdp-acc:last-of-type { border-bottom: 1px solid var(--line); }
.pdp-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--ink-0);
  font-weight: 500;
  transition: color .18s var(--ease);
}
.pdp-acc > summary::-webkit-details-marker { display: none; }
.pdp-acc > summary i {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s var(--ease);
  opacity: 0.55;
}
.pdp-acc[open] > summary i { transform: rotate(-135deg); opacity: 1; }
.pdp-acc:hover > summary { color: var(--accent); }
.pdp-acc__body {
  padding: 4px 4px 18px;
  color: var(--ink-1);
  font-size: 13px;
  line-height: 1.6;
}
.pdp-doc-list { list-style: none; margin: 0; padding: 0; }
.pdp-doc-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.pdp-doc-list li:last-child { border-bottom: 0; }
.pdp-doc-list .doc-name { color: var(--ink-1); font-size: 12.5px; word-break: break-word; }
.pdp-doc-list .doc-dl {
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(34,197,94, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}
.pdp-doc-list .doc-dl:hover { background: rgba(34,197,94, 0.12); color: var(--ink-0); }

/* ---- Story blocks ---- */
.pdp-story { padding: 60px 0 20px; }
.pdp-story > .container { margin-bottom: 34px; }
.pdp-story__row {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.pdp-story__row:nth-child(even) { background: var(--bg-1); }
.pdp-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pdp-story__row--imgRight .pdp-story__grid { direction: rtl; }
.pdp-story__row--imgRight .pdp-story__grid > * { direction: ltr; }
.pdp-story__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.pdp-story__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.pdp-story__row:hover .pdp-story__media img { transform: scale(1.04); }
.pdp-story__tag {
  display: inline-block;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  padding: 3px 10px;
  border: 1px solid rgba(34,197,94, 0.35);
  border-radius: 999px;
  margin-bottom: 14px;
}
.pdp-story__copy h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--ink-0);
}
.pdp-story__copy p { color: var(--ink-1); font-size: 14.5px; line-height: 1.7; max-width: 44ch; }
@media (max-width: 800px) {
  .pdp-story__grid { grid-template-columns: 1fr; gap: 24px; }
  .pdp-story__row--imgRight .pdp-story__grid { direction: ltr; }
}

/* ---- Parameter table (4 grouped dl blocks) ---- */
.pdp-params { padding-top: 50px; }
.pdp-params .h-display { margin-bottom: 30px; }
.pdp-params__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .pdp-params__grid { grid-template-columns: 1fr; } }

.pdp-params__group {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.pdp-params__group h4 {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}
.pdp-params__group dl {
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 8px 12px;
}
.pdp-params__group dt {
  color: var(--ink-2);
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.pdp-params__group dd {
  color: var(--ink-0);
  font-size: 12.5px;
  padding: 6px 0;
  margin: 0;
  border-bottom: 1px dashed var(--line);
  word-break: break-word;
}
.pdp-params__group dl > *:nth-last-child(-n+2) { border-bottom: 0; }

/* ---- Downloads section (card grid) ---- */
.pdp-downloads { padding-top: 40px; }
.pdp-downloads .h-display { margin-bottom: 26px; }
.pdp-downloads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.pdp-dl-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-1);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.pdp-dl-card:hover {
  border-color: var(--accent);
  background: rgba(34,197,94, 0.05);
  transform: translateY(-2px);
  color: var(--ink-0);
}
.pdp-dl-card__kind {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.pdp-dl-card__title { color: var(--ink-0); font-family: var(--f-display); font-size: 15px; margin: 4px 0 2px; }
.pdp-dl-card__meta  { color: var(--ink-2); font-size: 12px; }
.pdp-dl-card__cta   { margin-top: auto; padding-top: 12px; color: var(--accent); font-size: 12.5px; letter-spacing: 0.06em; }

/* ---- CTA strip ---- */
.pdp-cta {
  padding: 56px 0;
  background:
    radial-gradient(60% 100% at 100% 50%, rgba(34,197,94,.12), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pdp-cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.pdp-cta__inner p { color: var(--ink-1); margin: 10px 0 0; max-width: 52ch; }
.pdp-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Related products ---- */
.pdp-related { padding-top: 50px; }
.pdp-related .h-display { margin-bottom: 26px; }
.pdp-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .pdp-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pdp-related__grid { grid-template-columns: 1fr; } }

.pdp-rel-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.pdp-rel-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.pdp-rel-card__thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}
.pdp-rel-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.pdp-rel-card:hover .pdp-rel-card__thumb img { transform: scale(1.06); }
.pdp-rel-card__body { padding: 16px 18px 20px; }
.pdp-rel-card__eyebrow {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.pdp-rel-card__body h3 {
  font-family: var(--f-display); font-size: 15px;
  margin: 8px 0 6px; color: var(--ink-0);
}
.pdp-rel-card__body p { color: var(--ink-2); font-size: 12.5px; margin: 0; }



/* ============================================================
   Projects page  —  gallery + filter + lightbox
   ============================================================ */
.pj-hero { padding-top: 24px; }
.pj-hero .lede { font-size: 14.5px; margin-top: 12px; max-width: 720px; }

.pj-filter { margin-bottom: 26px; flex-wrap: wrap; }
.pj-filter .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-1);
  font-size: 12.5px;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.pj-filter .chip:hover {
  border-color: var(--accent);
  color: var(--ink-0);
}
.pj-filter .chip.is-active {
  background: var(--brand-green);
  color: #06110a;
  border-color: var(--brand-green);
}
.pj-filter .chip__n {
  display: inline-block;
  font-size: 10.5px;
  color: var(--ink-3);
  min-width: 16px;
  text-align: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-family: var(--f-display);
  font-weight: 500;
}
.pj-filter .chip.is-active .pj-filter-chip__n,
.pj-filter .chip.is-active .chip__n {
  color: #06110a;
  background: rgba(0,0,0,.14);
}

/* Masonry-ish grid using CSS columns — natural photo aspect ratios */
.pj-grid {
  column-count: 3;
  column-gap: 16px;
}
@media (max-width: 1000px) { .pj-grid { column-count: 2; } }
@media (max-width: 600px)  { .pj-grid { column-count: 1; } }

.pj-card {
  display: block;
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
  transition: border-color .18s var(--ease), transform .25s var(--ease);
  color: inherit;
}
.pj-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.pj-card__thumb {
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.pj-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .8s var(--ease);
}
.pj-card:hover .pj-card__thumb img { transform: scale(1.05); }
.pj-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55));
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.pj-card:hover .pj-card__thumb::after { opacity: 1; }
.pj-card__body {
  padding: 12px 16px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.pj-card__scene {
  font-family: var(--f-display);
  font-size: 13.5px;
  color: var(--ink-0);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.pj-card__country {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Lightbox */
.pj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(6px);
  padding: 24px;
}
.pj-lightbox.is-open { display: flex; }
.pj-lightbox__fig {
  margin: 0;
  max-width: min(1400px, 92vw);
  max-height: 88vh;
  display: flex; flex-direction: column;
  align-items: center;
}
.pj-lightbox__fig img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(0,0,0,.6);
}
.pj-lightbox__fig figcaption {
  margin-top: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink-1);
  font-size: 13px;
}
.pj-lightbox__fig figcaption span[data-pj-country] {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}
.pj-lightbox__fig figcaption span[data-pj-scene] {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--ink-0);
}
.pj-lightbox__close,
.pj-lightbox__arrow {
  position: fixed;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line);
  color: var(--ink-0);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.pj-lightbox__close { top: 24px; right: 24px; }
.pj-lightbox__arrow--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.pj-lightbox__arrow--next { right: 24px; top: 50%; transform: translateY(-50%); }
.pj-lightbox__close:hover,
.pj-lightbox__arrow:hover {
  background: rgba(34,197,94,.18);
  border-color: var(--accent);
  color: var(--accent);
}



/* ============================================================
   Contact form — status messages + spam honeypot
   ============================================================ */

/* Honeypot: hide from users AND from screen readers via aria-hidden */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Status message below the submit button — coloured by outcome */
.form-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.form-msg.is-success {
  color: var(--brand-green-2, #5EE38F);
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
}
.form-msg.is-error {
  color: #ffb4b4;
  background: rgba(220, 60, 60, 0.10);
  border-color: rgba(220, 60, 60, 0.35);
}
.form-msg.is-info {
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}
.form-msg a {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}
