/* =============================================================================
   SoloTech Ltd — Core stylesheet
   Palette: deep navy primary + teal accent, paper-white surfaces.
   Tokens flow through all component classes (.c-btn, .c-card, .c-section…).
   Theme layers (theme-solotech.css) override tokens only, never selectors.
   ============================================================================= */

:root {
  /* Brand palette */
  --navy-900: #0b1437;
  --navy-800: #121b5b;
  --navy-700: #1b2568;
  --navy-600: #273170;
  --navy-500: #374480;
  --navy-400: #49648e;
  --teal-600: #0ab0a0;
  --teal-500: #0dccba;
  --teal-400: #5fd2c8;
  --teal-300: #70e2d7;
  --teal-100: #d8f5f1;

  /* Warm accents (decorative only — never body text) */
  --coral-500: #ff7a6e;
  --coral-400: #ff9a90;
  --coral-100: #ffe4e0;
  --amber-400: #ffc766;
  --amber-100: #fff2d6;
  --lilac-400: #8f8bff;
  --lilac-100: #e6e5ff;

  /* Surfaces */
  --paper:       #ffffff;
  --paper-soft:  #f6f8fb;
  --paper-mute:  #eef2f8;
  --line:        #dbe1ec;
  --line-strong: #b6c0d4;

  /* Ink (text) */
  --ink-900: #0b1437;
  --ink-800: #1a2335;
  --ink-700: #374480;
  --ink-600: #5b6988;
  --ink-500: #7a8aa7;

  /* Semantic aliases (kept for backward compatibility with existing HTML) */
  --bg:            var(--paper);
  --bg-soft:       var(--paper-soft);
  --surface:       var(--paper);
  --text:          var(--ink-800);
  --muted:         var(--ink-600);
  --primary:       var(--navy-800);
  --primary-hover: var(--navy-700);
  --accent:        var(--teal-500);
  --accent-hover:  var(--teal-600);
  --white:         #ffffff;

  /* Scale */
  --space-section: 88px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 2px 8px rgba(11, 20, 55, 0.06), 0 8px 24px rgba(11, 20, 55, 0.05);
  --shadow-card: 0 1px 2px rgba(11, 20, 55, 0.04), 0 4px 12px rgba(11, 20, 55, 0.04);
  --shadow-lift: 0 8px 24px rgba(11, 20, 55, 0.10);
  --container-w: 1160px;
}

body.light { /* legacy hook — current palette already assumes light */ }

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink-800);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--navy-800); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--teal-600); }

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

::selection { background: var(--teal-300); color: var(--navy-900); }

.container,
.c-container {
  width: min(var(--container-w), 92%);
  margin: 0 auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.18;
}
h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-top: 0;
}
h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-700);
  font-weight: 600;
}
p { margin: 0 0 14px; color: var(--ink-700); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--teal-600);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-lead {
  color: var(--ink-600);
  max-width: 780px;
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ---------- Top navigation ---------- */

.site-header,
.c-navbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  transition: box-shadow 200ms ease, background 200ms ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 var(--line), 0 2px 10px rgba(11, 20, 55, 0.05);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
}
.logo:hover { color: var(--ink-900); }
.logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}
.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-900);
  white-space: nowrap;
}

.nav-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
}
.nav-primary a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-700);
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}
.nav-primary a:hover { color: var(--navy-800); background: var(--paper-soft); }
.nav-primary a.active { color: var(--navy-900); }
.nav-primary a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}
.nav-primary .about-link {
  margin-left: 8px;
  color: var(--navy-800);
}

/* Secondary menu left from legacy markup — suppressed on desktop.
   site.config.js can ship an empty secondary array to remove entirely. */
.nav-secondary {
  display: none !important;
}

.header-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-800);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
}

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

.btn,
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}
.btn.primary,
.c-btn.c-btn--primary {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.btn.primary:hover,
.c-btn.c-btn--primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(11, 20, 55, 0.18);
}
.btn.ghost,
.c-btn.c-btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line-strong);
}
.btn.is-disabled,
.c-btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.ghost:hover,
.c-btn.c-btn--ghost:hover {
  border-color: var(--navy-800);
  color: var(--navy-900);
  background: var(--paper-soft);
}
.btn.accent {
  background: var(--teal-500);
  color: var(--navy-900);
  border-color: var(--teal-500);
}
.btn.accent:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: #fff;
}

/* ---------- Sections & grids ---------- */

.section,
.c-section { padding: var(--space-section) 0; }
.section.alt,
.c-section.c-section--alt {
  background: var(--paper-soft);
  border-block: 1px solid var(--line);
}
.section-header,
.c-section-header { margin-bottom: 22px; }

.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--ink-600); max-width: 760px; font-size: 1.08rem; }
.page-hero .hero-media { margin-top: 28px; }

.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 300px at 85% -10%, var(--teal-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 60%);
  border-bottom: 1px solid var(--line);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 420px; height: 420px;
  left: -140px; top: -120px;
  background: radial-gradient(circle, var(--lilac-400) 0%, transparent 70%);
}
.hero::after {
  width: 360px; height: 360px;
  right: -80px; bottom: -120px;
  background: radial-gradient(circle, var(--coral-400) 0%, transparent 70%);
}
.hero > .container { position: relative; z-index: 1; }

.page-hero,
.c-section-header.page-hero {
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 90% 10%, var(--teal-100) 0%, transparent 60%),
    radial-gradient(500px 240px at 5% 90%, var(--coral-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-400) 0%, transparent 70%);
  filter: blur(50px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-actions, .cta-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.brand-tagline {
  margin-top: 18px;
  color: var(--ink-600);
  font-size: 1rem;
}
.brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-700);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
}
.badge:nth-child(3n+2)::before { background: var(--coral-500); }
.badge:nth-child(3n+3)::before { background: var(--amber-400); }

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal-500);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.hero-card h3 { color: var(--navy-800); margin-bottom: 14px; }
.hero-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-700);
}
.hero-card ul li { margin-bottom: 6px; }

.hero-media {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-soft);
}
.hero-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.hero-media.product-hero img {
  object-fit: contain;
  background: linear-gradient(140deg, var(--paper) 0%, var(--teal-100) 100%);
  padding: 32px;
}
.hero-media.hero-illustration {
  margin-top: 0;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--paper) 0%, var(--teal-100) 55%, var(--lilac-100) 100%);
}
.hero-media.hero-illustration img {
  height: auto;
  max-height: 420px;
  object-fit: contain;
  padding: 24px;
  background: transparent;
}

.kpi-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 14px 16px;
}
.kpi-item strong {
  display: block;
  font-size: 0.96rem;
  color: var(--navy-800);
  margin-bottom: 2px;
}
.kpi-item span {
  color: var(--ink-600);
  font-size: 0.85rem;
}

.image-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.image-strip img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

/* ---------- Video embed (YouTube placeholder + iframe) ---------- */

.video-embed {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--paper-soft);
}
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 28%, rgba(13, 204, 186, 0.38) 0%, transparent 55%),
    radial-gradient(circle at 82% 75%, rgba(255, 122, 110, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 55% 50%, rgba(143, 139, 255, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.video-placeholder-inner { max-width: 520px; color: #fff; }
.video-placeholder-inner .eyebrow { color: var(--teal-300); }
.video-placeholder-inner h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 10px;
}
.video-placeholder-inner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}
.video-placeholder-inner a {
  color: var(--teal-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.video-placeholder-inner a:hover { color: var(--teal-100); }

/* ---------- Cards & grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }

.card,
.c-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card:hover,
.c-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--teal-400);
}
.card h3,
.c-card h3 { color: var(--navy-800); }
.card p,
.c-card p { color: var(--ink-600); margin-bottom: 0; }

.legal-card { background: var(--paper-soft); }
.legal-card p { margin: 6px 0; color: var(--ink-800); }
.legal-card strong { color: var(--navy-800); }

/* Rotating coloured top border on cards inside grids — keeps things lively
   without naming colour classes per page. */
.grid-3 > .card:nth-child(3n+1),
.grid-3 > .c-card:nth-child(3n+1),
.grid-2 > .card:nth-child(2n+1),
.grid-2 > .c-card:nth-child(2n+1) { border-top: 3px solid var(--teal-500); }

.grid-3 > .card:nth-child(3n+2),
.grid-3 > .c-card:nth-child(3n+2),
.grid-2 > .card:nth-child(2n+2),
.grid-2 > .c-card:nth-child(2n+2) { border-top: 3px solid var(--coral-500); }

.grid-3 > .card:nth-child(3n+3),
.grid-3 > .c-card:nth-child(3n+3) { border-top: 3px solid var(--amber-400); }

.grid-3 > .legal-card,
.grid-2 > .legal-card,
.stack > .legal-card { border-top: 3px solid var(--navy-800); }

/* Section warm variants — optional hooks for a second accent surface. */
.c-section--warm {
  background: linear-gradient(180deg, var(--coral-100) 0%, var(--paper) 100%);
  border-block: 1px solid var(--line);
}
.c-section--mist {
  background: linear-gradient(180deg, var(--lilac-100) 0%, var(--paper) 100%);
  border-block: 1px solid var(--line);
}

.stack { display: grid; gap: 16px; }

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

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.contact-form textarea,
.contact-form .form-footer,
.contact-form .form-status,
.contact-form .form-recaptcha { grid-column: 1 / -1; }
.contact-form .form-recaptcha:not(:empty) { min-height: 78px; }
.contact-form button { grid-column: 1 / -1; justify-self: start; }

input, textarea, select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-900);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(13, 204, 186, 0.18);
}
textarea { resize: vertical; min-height: 120px; }

.form-status {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  display: none;
}
.form-status.success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--teal-100);
  color: var(--navy-900);
  border: 1px solid var(--teal-400);
  box-shadow: 0 6px 18px -10px rgba(13, 204, 186, 0.45);
  animation: formStatusIn 260ms ease-out;
}
.form-status.success::before {
  content: "✓";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-500);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.form-status.error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff2f0;
  color: #8a1f10;
  border: 1px solid #f0b8af;
  box-shadow: 0 6px 18px -10px rgba(138, 31, 16, 0.35);
  animation: formStatusIn 260ms ease-out;
}
.form-status.error::before {
  content: "!";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #c74434;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
@keyframes formStatusIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .form-status.success, .form-status.error { animation: none; }
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

.map-wrap {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

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

.site-footer,
.c-footer {
  margin-top: 40px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 56px;
  border-top: 1px solid var(--navy-700);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer .logo,
.site-footer .logo-text { color: #fff; }
.logo-footer {
  display: block;
  margin-bottom: 16px;
}
.logo-footer img {
  height: auto;
  width: 200px;
  max-width: 100%;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  object-fit: contain;
}
.footer-brand p { max-width: 260px; }
.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.94rem;
}
.site-footer a:hover { color: var(--teal-400); }
.site-footer p { color: rgba(255, 255, 255, 0.65); font-size: 0.94rem; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 22px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal .entity-line { color: rgba(255, 255, 255, 0.72); }
.footer-legal .copyright-line { color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.footer-legal strong { color: #fff; font-weight: 600; }

/* ---------- Trust / entity callouts ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.trust-strip .trust-item {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.trust-strip .trust-item:last-child { border-right: 0; }
.trust-strip .trust-label {
  display: block;
  color: var(--ink-600);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}
.trust-strip .trust-value {
  display: block;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 1rem;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 960px) {
  :root { --space-section: 64px; }
  h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .kpi-strip,
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust-strip .trust-item:last-child { border-bottom: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-media img { height: 240px; }
  .image-strip img { height: 150px; }
  .hero-actions .btn,
  .cta-row .btn { width: 100%; }
  .menu-btn { display: inline-flex; }

  .nav-stack {
    display: none;
    position: absolute;
    top: 72px; right: 4%;
    width: min(300px, 92%);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-stack.open { display: flex; }
  .nav-primary {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .nav-primary a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
  }
  .nav-primary a.active::after { display: none; }
  .nav-primary .about-link { margin-left: 0; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .page-hero { padding: 56px 0 32px; }
  .hero { padding: 56px 0 48px; }
}

.card-icon {
  width: 56px;
  height: 56px;
  display: block;
  margin-bottom: 14px;
}
.card-icon img { width: 100%; height: 100%; display: block; }

.scene-illustration {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.scene-illustration img { width: 100%; height: 100%; object-fit: cover; display: block; }

.inline-illustration {
  margin: 0 auto 12px;
  display: block;
  max-width: 220px;
}
.inline-illustration img { width: 100%; height: auto; display: block; }

.band-illustration {
  margin: 32px auto 0;
  max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.band-illustration img { width: 100%; height: auto; display: block; }

.card-icon img {
  transition: transform 280ms ease;
}
.c-card:hover .card-icon img {
  transform: translateY(-2px) scale(1.04);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.trust-icon {
  width: 40px;
  height: 40px;
  display: block;
  margin-bottom: 10px;
}
.trust-icon img { width: 100%; height: 100%; display: block; }

.insight-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.insight-cover {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 7;
  overflow: hidden;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}
.insight-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.insight-card:hover .insight-cover img {
  transform: scale(1.03);
}
.insight-card > *:not(.insight-cover) {
  padding-left: 20px;
  padding-right: 20px;
}
.insight-card > h4:first-of-type { margin-top: 18px; }
.insight-card > p:last-of-type { padding-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  .card-icon img,
  .insight-cover img {
    transition: none;
  }
  .c-card:hover .card-icon img,
  .insight-card:hover .insight-cover img {
    transform: none;
  }
}

.founder-subhead {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink-600);
}
.founder-list {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--ink-900);
}
.founder-list li { margin-bottom: 6px; line-height: 1.55; }

.founder-portrait {
  margin: 0 0 20px;
  width: 220px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(11, 20, 55, 0.05), 0 12px 34px rgba(11, 20, 55, 0.14);
  background: var(--paper-soft);
}
.founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Long-form article (Insights post) ---------- */

.article-narrow { max-width: 720px; }

.article-hero {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}
.article-meta {
  font-size: 0.86rem;
  color: var(--ink-600);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.article-meta a { color: var(--ink-600); text-decoration: none; border-bottom: 1px dashed var(--ink-600); }
.article-meta a:hover { color: var(--navy-800); border-bottom-color: var(--navy-800); }
.article-hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--navy-900);
}
.article-lede {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-600);
  margin: 0 0 28px;
}
.article-cover {
  margin: 24px 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  aspect-ratio: 12 / 7;
}
.article-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }

.article-body {
  padding: 44px 20px 32px;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink-900);
}
.article-body h2 {
  margin: 38px 0 14px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 22px; padding-left: 22px; }
.article-body ul li { margin-bottom: 8px; }
.article-body strong { color: var(--navy-900); font-weight: 700; }
.article-body em { color: var(--ink-600); }
.article-signature {
  margin-top: 32px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-style: italic;
  color: var(--ink-600);
}

.article-related {
  margin: 8px auto 64px;
  padding: 24px 22px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.article-related h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-600);
  margin: 0 0 12px;
}
.article-related ul { list-style: none; margin: 0; padding: 0; }
.article-related li { margin: 6px 0; }
.article-related a { color: var(--navy-800); text-decoration: none; border-bottom: 1px solid transparent; }
.article-related a:hover { border-bottom-color: var(--teal-500); color: var(--teal-500); }

/* Make the "live" insight card (the one linked to an actual article) obviously clickable. */
.insight-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease;
}
.insight-card-link:hover { transform: translateY(-2px); color: inherit; }
.insight-card-link .card { border-color: var(--teal-300); box-shadow: 0 12px 32px -18px rgba(13, 204, 186, 0.35); }
.insight-card-link .read-more {
  color: var(--teal-500);
  font-weight: 600;
  margin-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
  .insight-card-link { transition: none; }
  .insight-card-link:hover { transform: none; }
}
