/* Pmise — Clinical Precision design system. Tokens mirror DESIGN.md at repo root.
   Type: Space Grotesk (display) / Instrument Sans (body). One accent: clinical cyan. */
:root {
  --ink: #0c1522;
  --ink-2: #46566b;
  --accent: #0e7490;
  --accent-strong: #155e75;
  --accent-tint: #e7f5f9;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --border: #e3e9ef;
  --inverse-fg: #c7d2de;
  --destructive: #c2372f;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 21, 34, 0.05);
  --shadow-md: 0 2px 6px rgba(12, 21, 34, 0.05), 0 12px 32px rgba(12, 21, 34, 0.10);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --container: 1200px;
  --transition: 200ms ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 var(--space-4); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--accent);
  padding: var(--space-3) var(--space-4); border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-9) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 660px; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-3);
}
.lede { font-size: 1.125rem; color: var(--ink-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); min-height: 70px;
}
.logo { display: flex; align-items: baseline; gap: var(--space-2); font-family: var(--font-display); }
.logo .word { font-size: 1.55rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.logo .word::after { content: "."; color: var(--accent); }
.logo .tag { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav a:not(.btn) {
  color: var(--ink-2); font-weight: 500; font-size: 0.95rem;
  padding: var(--space-2) 0; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .btn { white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px; cursor: pointer; color: var(--ink);
}
.topline { background: var(--ink); color: var(--inverse-fg); font-size: 0.8rem; }
.topline .container { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: 6px; padding-bottom: 6px; }
.topline a { color: #e4ebf2; }
.topline a:hover { color: #ffffff; }
.topline .certs { color: #8ea2b8; letter-spacing: 0.04em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5); border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform 160ms var(--ease-out), box-shadow var(--transition);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #e4ebf2; border-color: #33455c; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-strong); color: #ffffff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-primary:hover:active { transform: scale(0.97); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn-light:hover { background: var(--accent-tint); color: var(--ink); }
  .btn-ghost-dark:hover { border-color: #e4ebf2; color: #ffffff; }
}

/* Spotlight hover: cursor-following radial highlight on interactive cards.
   site.js writes --mx / --my per card; overlay only exists for fine pointers. */
@media (hover: hover) and (pointer: fine) {
  .spot { position: relative; }
  .spot::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      rgba(14, 116, 144, 0.09), transparent 65%);
    opacity: 0; transition: opacity 260ms var(--ease-out);
    pointer-events: none;
  }
  .spot:hover::after { opacity: 1; }
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--accent-tint); color: var(--accent-strong);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(12, 21, 34, 0.05) 1px, transparent 1.6px),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  background-size: 24px 24px, 100% 100%;
  border-bottom: 1px solid var(--border);
}

/* Split-text word reveal on the hero headline (words are wrapped by site.js,
   so the plain headline renders untouched without JavaScript) */
html.js .hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  animation: word-in 620ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 65ms);
}
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; padding: var(--space-8) 0 var(--space-9); }
/* Grid blowout guard: images' intrinsic width must never widen an auto track
   (percentage max-width resolves to none inside auto-sized tracks) */
.hero .grid > *, .featured > *, .detail-grid > *, .cluster .row > * { min-width: 0; }
.hero-visual .plinth img, .detail-grid .photo img { width: 100%; }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero-visual { position: relative; }
.hero-visual .plinth {
  position: relative; overflow: hidden;
  background:
    radial-gradient(140% 100% at 50% 0%, var(--accent-tint) 0%, #ffffff 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-visual .plinth img { max-height: 440px; object-fit: contain; mix-blend-mode: multiply; }
/* Laser scan sweep: a thin beam crosses the machine every few seconds,
   echoing what the equipment itself does */
.hero-visual .plinth::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: -4px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 116, 144, 0.55) 20%, rgba(14, 116, 144, 0.85) 50%, rgba(14, 116, 144, 0.55) 80%, transparent);
  box-shadow: 0 0 12px rgba(14, 116, 144, 0.35);
  opacity: 0;
  animation: laser-scan 7s ease-in-out infinite 1.2s;
  pointer-events: none;
}
@keyframes laser-scan {
  0% { top: 6%; opacity: 0; }
  4% { opacity: 0.9; }
  30% { top: 92%; opacity: 0.9; }
  34% { top: 92%; opacity: 0; }
  100% { top: 92%; opacity: 0; }
}
.hero-visual figcaption {
  margin-top: var(--space-3); text-align: center;
  font-size: 0.85rem; color: var(--ink-2);
}

/* Proof strip (certs + guarantees) */
.proof { background: var(--surface); border-bottom: 1px solid var(--border); }
.proof .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-4); flex-wrap: wrap;
}
.proof .chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.proof .terms { display: flex; gap: var(--space-5); flex-wrap: wrap; color: var(--ink-2); font-size: 0.9rem; }
.proof .terms span { display: inline-flex; align-items: center; gap: var(--space-2); }
.proof .terms svg { color: var(--accent); }

/* Featured product split card */
.featured {
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow 220ms var(--ease-out), border-color var(--transition);
}
.featured .photo { padding: var(--space-6); display: flex; align-items: center; justify-content: center; background: #ffffff; }
.featured .photo img { max-height: 360px; object-fit: contain; mix-blend-mode: multiply; }
.featured .body { padding: var(--space-7); border-left: 1px solid var(--border); }
.featured .cat { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.featured h3 { font-size: 1.6rem; margin: var(--space-2) 0 var(--space-3); }
.featured .desc { color: var(--ink-2); max-width: 46ch; }
.featured .tags { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-4) 0 var(--space-5); }
a.featured { color: inherit; display: grid; }
@media (hover: hover) and (pointer: fine) {
  a.featured:hover { box-shadow: var(--shadow-md); border-color: #c9d4de; }
  a.featured:hover .more svg { transform: translateX(3px); }
}

/* Category clusters of compact product cards */
.cluster { margin-top: var(--space-7); }
.cluster > h3 {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: var(--space-4);
  display: flex; align-items: center; gap: var(--space-4);
}
.cluster > h3::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.cluster .row { display: grid; gap: var(--space-4); }
.cluster .row.c5 { grid-template-columns: repeat(5, 1fr); }
.cluster .row.c3 { grid-template-columns: repeat(3, 1fr); }
.mini-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4); color: inherit; display: flex; flex-direction: column; gap: var(--space-1);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color var(--transition);
}
.mini-card .thumb { background: #ffffff; border-radius: calc(var(--radius-lg) - 6px); height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); }
.mini-card .thumb img { max-height: 140px; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 400ms var(--ease-out); }
.mini-card .name { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.mini-card .sub { font-size: 0.82rem; color: var(--ink-2); line-height: 1.4; }
.cluster .row.c3 .mini-card { flex-direction: row; align-items: center; gap: var(--space-4); }
.cluster .row.c3 .mini-card .thumb { height: 96px; width: 96px; flex: none; margin: 0; }
.cluster .row.c3 .mini-card .thumb img { max-height: 88px; }
@media (hover: hover) and (pointer: fine) {
  .mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9d4de; }
  .mini-card:hover .thumb img { transform: scale(1.05); }
}

/* Solution clusters (link lists) */
.sol-clusters { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.sol-cluster {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-3);
}
.sol-cluster > h3 {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: var(--space-2);
}
.sol-link {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3) 0; border-top: 1px solid var(--border); color: inherit;
}
.sol-link:first-of-type { border-top: 0; }
.sol-link .ic { color: var(--accent); flex: none; margin-top: 2px; }
.sol-link .t { font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: color var(--transition); }
.sol-link .d { font-size: 0.85rem; color: var(--ink-2); line-height: 1.45; }
.sol-link:hover .t { color: var(--accent); }

/* Stats band + pillars */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-7);
}
.stat { padding: var(--space-5) var(--space-4); text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.stat .lbl { color: var(--ink-2); font-size: 0.88rem; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-8); }
.pillar { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.pillar .icon-tile { flex: none; margin: 0; }
.pillar h3 { margin-bottom: var(--space-1); }
.pillar p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* Cards (listing pages, related sections) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color var(--transition);
  display: flex; flex-direction: column;
}
a.card { color: inherit; }
a.card:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9d4de; }
  a.card:hover .thumb img { transform: scale(1.05); }
  a.card:hover .more svg { transform: translateX(3px); }
}
.product-card .thumb {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-5); display: flex; align-items: center; justify-content: center; height: 230px;
  overflow: hidden;
}
.product-card .thumb img { max-height: 190px; object-fit: contain; mix-blend-mode: multiply; transition: transform 400ms var(--ease-out); }
.card .body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card .cat { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 0; }
.card .desc { color: var(--ink-2); font-size: 0.92rem; margin: 0; flex: 1; }
.card .more { color: var(--accent); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-2); }
.card .more svg { transition: transform 200ms var(--ease-out); }

.icon-tile {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--accent-tint); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2);
}
.sol-card .body { gap: var(--space-2); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-2); padding: var(--space-4) 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--border); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* Detail pages */
.page-hero { background: linear-gradient(180deg, #ffffff, var(--bg)); border-bottom: 1px solid var(--border); padding: var(--space-7) 0; }
.detail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); align-items: start; }
.detail-grid .photo {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: var(--space-6); display: flex; align-items: center; justify-content: center;
  position: sticky; top: 96px;
}
.detail-grid .photo img { max-height: 420px; object-fit: contain; mix-blend-mode: multiply; }
.prose { max-width: 720px; }
.prose ul { padding-left: 1.2rem; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose h3 { margin-top: var(--space-5); }
article.section-block { padding: var(--space-7) 0 0; }
article.section-block h2 { display: flex; align-items: center; gap: var(--space-3); }
article.section-block h2::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: var(--accent);
}

/* Spec table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
table.spec th, table.spec td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec th { width: 34%; color: var(--ink-2); font-weight: 600; background: var(--bg); font-family: var(--font-display); font-size: 0.85rem; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: var(--space-3); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); padding: var(--space-4) var(--space-5);
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--space-5) var(--space-4); color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 120%, rgba(14, 116, 144, 0.35), transparent 60%),
    var(--ink);
  color: var(--inverse-fg); border-radius: var(--radius-lg); padding: var(--space-8); text-align: center;
}
.cta-band h2 { color: #ffffff; }
.cta-band p { color: var(--inverse-fg); max-width: 560px; margin: 0 auto var(--space-5); }
.cta-band .actions { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: var(--space-1); color: var(--ink-2); }
label .req { color: var(--destructive); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15); }
.hint { font-size: 0.85rem; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: #8ea2b8; margin-top: var(--space-9); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); padding: var(--space-8) 0; }
.site-footer h4 { color: #ffffff; font-size: 0.95rem; margin-bottom: var(--space-4); font-family: var(--font-display); }
.site-footer a { color: var(--inverse-fg); display: inline-block; padding: 3px 0; font-size: 0.9rem; }
.site-footer a:hover { color: #ffffff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .brand-blurb { font-size: 0.9rem; max-width: 300px; }
.site-footer .legal { border-top: 1px solid #1d2b3d; padding: var(--space-4) 0; font-size: 0.82rem; display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* Reveal on scroll. Content is visible by default; the js class on <html> opts in,
   so pages stay fully readable without JavaScript. */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .hero h1 .w { opacity: 1; transform: none; }
  .hero-visual .plinth::after { display: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .hero .grid { grid-template-columns: 1fr; padding-top: var(--space-7); }
  .hero-visual { max-width: 560px; }
  .hero-visual .plinth img { max-height: 320px; }
  .featured { grid-template-columns: 1fr; }
  .featured .body { border-left: 0; border-top: 1px solid var(--border); }
  .cluster .row.c5 { grid-template-columns: repeat(3, 1fr); }
  .sol-clusters { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .photo { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--space-3) var(--space-5) var(--space-5); box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; animation: nav-in 200ms var(--ease-out); }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
  .nav a:not(.btn) { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: var(--space-4); }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .section { padding: var(--space-8) 0; }
  .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .cluster .row.c5, .cluster .row.c3 { grid-template-columns: repeat(2, 1fr); }
  .cluster .row.c3 .mini-card { flex-direction: column; align-items: stretch; }
  .cluster .row.c3 .mini-card .thumb { width: auto; height: 120px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .proof .container { justify-content: center; }
  .topline .container { justify-content: center; }
  .topline .certs { display: none; }
  .cta-band { padding: var(--space-6) var(--space-5); }
}
