/* ============================================================
   AIKEMICS — homepage styles
   Palettes are driven by [data-palette] on <html>.
   Density is driven by [data-density] on <html>.
   ============================================================ */

:root {
  /* type */
  --serif: "Crimson Text", Helvetica, Arial, sans-serif;
  --sans: "Manrope", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "Menlo", monospace;

  /* defaults — Palette A "Aikemics" (blue + green, cool white) */
  --bg: #ffffff;
  --bg-2: #f1f4f8;
  --bg-3: #ffffff;
  --ink: #535353;
  --ink-2: #3a4456;
  --muted: #6b7388;
  --line: #e2e6ec;
  --line-strong: #c5cad4;
  --accent: #2a5fb0;
  --accent-2: #4ea64f;
  --accent-ink: #ffffff;
  --tag-bg: #f1f4f8;
  --invert-bg: #1c2230;
  --invert-ink: #ffffff;
  --invert-muted: #98a0b0;
  --invert-line: #2e3848;
}

/* Palette B — Editorial (slightly cool ivory, black + brand blue) */
html[data-palette="editorial"] {
  --bg: #f8f9fb;
  --bg-2: #ecedf0;
  --bg-3: #ffffff;
  --ink: #111418;
  --ink-2: #2a2e36;
  --muted: #5a5f6a;
  --line: #dde0e5;
  --line-strong: #bcc0c8;
  --accent: #2a5fb0;
  --accent-2: #4ea64f;
  --accent-ink: #ffffff;
  --tag-bg: #ecedf0;
  --invert-bg: #111418;
  --invert-ink: #f8f9fb;
  --invert-muted: #9a9ea6;
  --invert-line: #2a2e36;
}

/* Palette C — Deeptech (dark) */
html[data-palette="deeptech"] {
  --bg: #0b1218;
  --bg-2: #131c24;
  --bg-3: #0b1218;
  --ink: #eceff5;
  --ink-2: #c5cad4;
  --muted: #76808c;
  --line: #1f2a35;
  --line-strong: #2c3a48;
  --accent: #6fa6ff;
  --accent-2: #6cd66c;
  --accent-ink: #0b1218;
  --tag-bg: #131c24;
  --invert-bg: #eceff5;
  --invert-ink: #0b1218;
  --invert-muted: #5a5a5a;
  --invert-line: #d4d6dc;
}

/* Palette D — Cobalt deep (blue-forward, white surfaces) */
html[data-palette="cobalt"] {
  --bg: #ffffff;
  --bg-2: #eef2f8;
  --bg-3: #ffffff;
  --ink: #0d2a4f;
  --ink-2: #1c3a62;
  --muted: #5a6478;
  --line: #dde3ed;
  --line-strong: #b6c0d2;
  --accent: #0d4ea6;
  --accent-2: #4ea64f;
  --accent-ink: #ffffff;
  --tag-bg: #eef2f8;
  --invert-bg: #0d2a4f;
  --invert-ink: #ffffff;
  --invert-muted: #8ea2c0;
  --invert-line: #1c3a62;
}

/* Density */
:root {
  --pad-section: 3em;
  --gap: 28px;
}
html[data-density="compact"] {
  --pad-section: 72px;
  --gap: 20px;
}
html[data-density="spacious"] {
  --pad-section: 168px;
  --gap: 36px;
}

* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 6.5vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; }
h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; font-weight: 500; }

p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--bg-2); }
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Top banner
   ============================================================ */
.banner {
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  border-bottom: 1px solid var(--invert-line);
  
  display: none;/*rlel*/
}
.banner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}
.banner__msg {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.banner__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 8px;
  border-radius: 3px;
}
.banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-size: 13px;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__item {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__link:hover { background: var(--bg-2); }
.nav__link[aria-expanded="true"] { background: var(--bg-2); }
.nav__caret {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}
.nav__cta { 
  margin-left: 12px; 
}

/* Mega menu */
.megamenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  min-width: 560px;
  box-shadow: 0 20px 60px -20px rgba(10, 24, 40, 0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.megamenu::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.megamenu--wide { min-width: 720px; grid-template-columns: 1fr 1fr; }
.megamenu--simple {
  display: block;
  min-width: 280px;
  grid-template-columns: none;
}
.mm-group__label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 12px 4px;
}
.mm-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mm-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  transition: background 0.12s ease;
}
.mm-item:hover { background: var(--bg-2); }
.mm-item__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
}
.mm-item__desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Mobile menu toggle + drawer (shared between homepage .header and secondary .snv-header) */
.nav-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 980px) {
  .nav, .snv-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line-strong);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
  }
  .nav-toggle:hover { background: var(--bg-2); }

  /* Drawer appears below the sticky header bar */
  .header.is-mobile-open .mobile-menu,
  .snv-header.is-mobile-open .mobile-menu {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -12px rgba(10, 24, 40, 0.12);
    padding: 8px 20px 24px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 99;
  }
  .mobile-menu__section {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu__section:last-of-type { border-bottom: 0; }
  .mobile-menu__heading {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin: 0 0 10px;
  }
  .mobile-menu__heading:hover { color: var(--ink); }
  .mobile-menu ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 2px;
  }
  .mobile-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--ink);
  }
  .mobile-menu li a:hover { background: var(--bg-2); }
  .mobile-menu__cta {
    display: inline-flex;
    margin-top: 18px;
  }
}

/* ============================================================
   Section base
   ============================================================ */
section {
  padding: var(--pad-section) 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head__lead { max-width: 520px; }
.section-head__desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 56px 0 var(--pad-section);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: top;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero__eyebrow { margin-bottom: 24px; }
.hero__title {
  margin: 0 0 24px;
}
.hero__sub {
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stat-num {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}
.hero__stat-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

/* Hero visual — image (when hero.image is set in content.yaml) */
.hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Hero visual — process diagram */
.process {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  overflow: hidden;
}
.process__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.process__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.process__svg {
  width: 100%;
  height: auto;
  display: block;
}
.process__readout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
}
.readout {
  background: var(--bg-2);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.readout__k { color: var(--muted); display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.readout__v { color: var(--ink); font-feature-settings: "tnum"; }

/* Hero variation: big editorial */
.hero--editorial .hero__grid {
  grid-template-columns: 1fr;
  text-align: left;
}
.hero--editorial .hero__title { font-size: clamp(56px, 9vw, 140px); }
.hero--editorial .process { margin-top: 48px; max-width: 720px; margin-left: auto; }

/* Hero variation: split with data dash */
.dashpanel {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}
.dashpanel__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.dashpanel__chart svg { display: block; width: 100%; height: auto; }
.dashpanel__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ============================================================
   Logo strip
   ============================================================ */
.logos {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.logos__lbl {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 28px;
}
.logos__row {
  display: grid;
  grid-template-columns: unset; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 0;
  align-items: stretch;
  border-left: 1px solid var(--line);
}
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  position: relative;
}
.logo-cell__placeholder {
  width: 75%;
  height: 28px;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-2) 0 6px,
    transparent 6px 12px
  );
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 820px) {
  .logos__row { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Problem
   ============================================================ */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) {
  .problem__grid { grid-template-columns: 1fr; gap: 32px; }
}
.problem__lead {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.problem__lead em { font-style: italic; color: var(--accent); }
.problem__points {
  display: grid;
  gap: 18px;
  -margin-top: 28px;
}
.problem__point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.problem__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.problem__txt {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}

/* ============================================================
   Keypoints
   ============================================================ */
.keypoints__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.kp {
  padding: 32px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
}
.kp__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 36px;
}
.kp__icon {
  width: 40px; height: 40px;
  margin-bottom: 18px;
  color: var(--accent);
}
.kp__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.kp__desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: auto;
}
@media (max-width: 1100px) {
  .keypoints__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .keypoints__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Use cases
   ============================================================ */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .cases__grid { grid-template-columns: 1fr; }
}
.case {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case__img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-img {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 49.5%, var(--line) 49.5% 50.5%, transparent 50.5%),
    repeating-linear-gradient(135deg, var(--bg-2) 0 14px, var(--bg-3) 14px 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 16px;
}
.placeholder-img__bracket {
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.placeholder-img__what {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: 0;
  max-width: 240px;
  line-height: 1.25;
}
.placeholder-img__dim {
  font-size: 9.5px;
  opacity: 0.65;
}
.case__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.case__title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.case__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.case__list li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.case__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.case__link {
  margin-top: auto;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  align-self: flex-start;
}
.case__link:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   Proof / Research
   ============================================================ */
.proof {
  background: var(--invert-bg);
  color: var(--invert-ink);
}
.proof__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) {
  .proof__grid { grid-template-columns: 1fr; }
}
.proof .eyebrow { color: var(--invert-muted); }
.proof__title {
  font-size: clamp(36px, 4.4vw, 56px);
  margin: 18px 0 24px;
}
.proof__title em { color: var(--accent); font-style: italic; }
.proof__body {
  color: var(--invert-muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 520px;
}
.proof__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--invert-line);
}
.proof__stat {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--invert-line);
  align-items: baseline;
}
.proof__stat-num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--invert-ink);
}
.proof__stat-lbl {
  font-size: 14px;
  color: var(--invert-muted);
  line-height: 1.4;
}
.proof__pubs {
  margin-top: 36px;
  display: grid;
  gap: 8px;
}
.pub {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--invert-line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--invert-muted);
  align-items: center;
}
.pub__title {
  color: var(--invert-ink);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.4;
}
.pub__year { font-family: var(--mono); font-size: 11px; }
.pub__venue { text-align: right; font-size: 11px; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}
.quote {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote__mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.5;
  color: var(--accent);
  height: 24px;
}
.quote__txt {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.quote__by {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.quote__avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
.quote__who {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1px;
}
.quote__where {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) {
  .faq__grid { grid-template-columns: 1fr; gap: 32px; }
}
.faq__list { border-top: 1px solid var(--line); }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
  cursor: pointer;
}
.faq__icon {
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.faq__icon::before {
  left: 8px; right: 8px; top: 50%; height: 1.5px; margin-top: -0.75px;
}
.faq__icon::after {
  top: 8px; bottom: 8px; left: 50%; width: 1.5px; margin-left: -0.75px;
}
.faq__item[data-open="true"] .faq__icon::after { transform: scaleY(0); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.faq__item[data-open="true"] .faq__a {
  max-height: 400px;
  padding: 0 0 24px;
}

/* Master switch (set in content-loader.js via .faq-open-all on <html>, or ?faqopen
   in the URL): force every FAQ item open regardless of click state — for screenshots.
   max-height: none avoids clipping long answers that exceed the normal 400px. */
html.faq-open-all .faq__a {
  max-height: none;
  padding: 0 0 24px;
}
html.faq-open-all .faq__icon::after { transform: scaleY(0); }

/* ============================================================
   Final CTA
   ============================================================ */
.finalcta {
  text-align: center;
  background: var(--bg-2);
  border-bottom: 0;
}
.finalcta__title {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  margin-bottom: 24px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.finalcta__sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
}
.finalcta__ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--invert-bg);
  color: var(--invert-ink);
  padding: 80px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
.footer__brand .logo img {
  filter: brightness(0) invert(1);
}
.footer__brand .logo { margin-bottom: 18px; }
.footer__motto {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 320px;
}
.footer__small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--invert-muted);
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--invert-muted);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer__col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.footer__col a {
  color: var(--invert-ink);
  font-size: 14px;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--invert-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--invert-muted);
}
.footer__bottom a:hover { color: var(--accent); }
.footer__disclaimer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--invert-line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--invert-muted);
  max-width: 760px;
}

/* ============================================================
   Process SVG node animation
   ============================================================ */
.proc-line { stroke: var(--line-strong); stroke-width: 1.2; fill: none; }
.proc-flow {
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-dasharray: 4 6;
  animation: dash 1.6s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -20; }
}
.proc-node {
  fill: var(--bg-2);
  stroke: var(--ink);
  stroke-width: 1.2;
}
.proc-node--active {
  fill: var(--accent);
  stroke: var(--accent);
}
.proc-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink);
}
.proc-sub {
  font-family: var(--mono);
  font-size: 7.5px;
  fill: var(--muted);
  letter-spacing: 0.04em;
}
.proc-particle {
  fill: var(--accent);
}

/* ============================================================
   Utility
   ============================================================ */
.divider-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-3);
}

/* Section densities adjust internal pad too */
html[data-density="compact"] .hero { padding-top: 32px; }
html[data-density="spacious"] .hero { padding-top: 88px; }

/* ============================================================
   Brand motifs — blue→green gradient underline (echoes the logo)
   ============================================================ */
.brand-rule {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  margin: 0;
}
.brand-rule--thin { height: 1.5px; }
.brand-rule--thick { height: 3px; }

.brand-underline {
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.08em;
  background-position: 0 90%;
  padding-bottom: 0.04em;
}
.brand-underline-1 {
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.06em;
  background-position: 0 85%;
  padding-bottom: 0.04em;
}
.brand-underline-2 {
  background-image: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-2) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.06em;
  background-position: 0 85%;
  padding-bottom: 0.04em;
}

/* Brand masthead — large logo as hero opener */
.masthead {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
  align-items: flex-start;
}
.masthead__mark {
  display: block;
  width: min(520px, 56%);
  height: auto;
  opacity: 0;
  transform: translateY(8px);
  animation: mh-in 0.7s cubic-bezier(.2,.7,.2,1) 0.1s forwards;
}
.masthead__rule {
  height: 2px;
  width: min(560px, 60%);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border: 0;
  margin: 0;
  transform-origin: left;
  transform: scaleX(0);
  animation: mh-rule 0.9s cubic-bezier(.2,.7,.2,1) 0.4s forwards;
}
.masthead__tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  opacity: 0;
  animation: mh-in 0.5s ease 0.9s forwards;
}
@keyframes mh-in {
  to { opacity: 1; transform: none; }
}
@keyframes mh-rule {
  to { transform: scaleX(1); }
}
@media (max-width: 720px) {
  .masthead__mark, .masthead__rule { width: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .masthead__mark, .masthead__rule, .masthead__tag {
    animation: none; opacity: 1; transform: none;
  }
}

/* Hero stat-num gets a small brand-gradient underline */
.hero__stat-num {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.hero__stat-num::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.section--branded {
  border-bottom: 0;
  position: relative;
}
.section--branded::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 30%,
    var(--accent-2) 70%,
    transparent 100%);
  opacity: 0.5;
}

.problem__lead em, .proof__title em { font-style: italic; }

/* ============================================================
   Secondary pages — shared nav rendered by pages/nav.js
   ============================================================ */

/* Banner */
.snv-banner {
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  border-bottom: 1px solid var(--invert-line);
  display: none;
}
.snv-banner-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 10px 0;
}
.snv-banner-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 3px 8px; border-radius: 3px; margin-right: 14px;
}
.snv-banner-link {
  display: inline-flex; gap: 6px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px; font-size: 13px;
}

/* Header */
.snv-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.snv-header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.snv-logo img { height: 32px; width: auto; display: block; }
.snv-nav { display: flex; align-items: center; gap: 4px; }
@media (max-width: 980px) { .snv-nav { display: none; } }
.snv-nav-item { position: relative; }
.snv-nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 14px; color: var(--ink);
  border-radius: 8px; background: transparent; border: 0; cursor: pointer;
  font-family: inherit;
}
.snv-nav-btn:hover { background: var(--bg-2); }
.snv-nav-item.is-open .snv-nav-btn,
.snv-nav-item.is-active .snv-nav-btn { background: var(--bg-2); }
.snv-nav-item.is-active .snv-nav-btn { position: relative; }
.snv-nav-item.is-active .snv-nav-btn::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-2) 100%);
  border-radius: 1px;
}
.snv-caret {
  display: inline-block; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: 0.55;
}
.snv-cta {
  margin-left: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transition: background 0.15s ease;
}
.snv-cta:hover { background: var(--accent); }

/* Mega menu */
.snv-mega {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 20px 60px -20px rgba(10, 24, 40, 0.18);
  min-width: 280px;
}
/* Bridge the 8px gap so mouseleave doesn't fire while moving from button to menu */
.snv-mega::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.snv-nav-item.is-open .snv-mega { display: block; }
.snv-mega--wide {
  min-width: 640px;
  display: none;
  grid-template-columns: 1fr 1fr; gap: 24px;
}
.snv-nav-item.is-open .snv-mega--wide { display: grid; }
.snv-mega ul { list-style: none; margin: 0; padding: 0; }
.snv-mega-group {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin: 0 0 12px 4px;
}
.snv-mega-item {
  display: block; padding: 10px 12px; border-radius: 8px;
  transition: background 0.12s ease;
}
.snv-mega-item:hover { background: var(--bg-2); }
.snv-mega-title {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500; font-size: 14px; margin-bottom: 2px;
}
.snv-mega-title span { opacity: 0.4; }
.snv-mega-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Breadcrumb strip */
.snv-crumb {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.snv-crumb::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; height: 1px;
  width: 240px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}
.snv-crumb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.snv-crumb-row a { color: var(--muted); }
.snv-crumb-row a:hover { color: var(--ink); }
.snv-crumb-sep { opacity: 0.45; }
.snv-crumb-section { color: var(--ink); font-weight: 500; }
.snv-crumb-page {
  color: var(--muted); letter-spacing: 0.06em;
  text-transform: none; font-family: var(--sans); font-size: 12px;
}

/* .snv-nav hidden on mobile is handled in the shared .nav-toggle block above */

/* ============================================================
   Secondary page body
   ============================================================ */
.stub-main {
  min-height: 70vh;
  padding: 80px 0 120px;
}
.stub-banner {
  display: inline-block;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  background: var(--accent); color: white;
  padding: 4px 10px; border-radius: 3px;
  margin-bottom: 28px;
}
.stub-eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 14px;
}
.stub-h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 6vw, 88px); line-height: 0.98;
  letter-spacing: -0.035em; margin: 0 0 24px;
  text-wrap: balance; max-width: 14ch;
}
.stub-h1 .accent {
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 100%;
  padding-bottom: 4px;
}
.stub-lead {
  font-size: 20px; color: var(--muted); line-height: 1.5;
  max-width: 640px; margin: 0 0 48px;
}
.stub-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1080px;
}
@media (max-width: 720px) { .stub-grid { grid-template-columns: 1fr; } }
.stub-card {
  background: white; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px;
}
.stub-card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em; margin: 0 0 8px;
}
.stub-card p {
  margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5;
}
a.stub-card {
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}
a.stub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  border-color: var(--accent);
}
.stub-placeholder {
  margin: 56px 0;
  padding: 64px 32px;
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, transparent 14px 28px);
  border-radius: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.stub-placeholder strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 22px; color: var(--ink); letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.doc-login {
  display: flex; justify-content: center;
  padding: 32px 0 0;
}
.doc-login__box {
  width: 100%; max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 24px 50px rgba(0,0,0,0.05);
}
.doc-login__header {
  margin-bottom: 28px;
}
.doc-login__title {
  font-family: var(--serif); font-size: 32px; line-height: 1.05;
  margin-bottom: 10px; color: var(--ink);
}
.doc-login__subtitle {
  font-size: 15px; color: var(--muted); line-height: 1.6;
}
.doc-login__row {
  display: grid; gap: 10px; margin-bottom: 18px;
}
.doc-login__row label {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.doc-login__row input {
  width: 100%; min-height: 48px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.doc-login__button {
  width: 100%; min-height: 48px;
  margin-top: 8px;
  border: none; border-radius: 12px;
  background: var(--accent); color: white;
  font-weight: 600; letter-spacing: 0.02em;
  opacity: 0.65;
}
.doc-login__note {
  margin-top: 22px;
  font-size: 14px; line-height: 1.7; color: var(--muted);
}
.doc-login__links {
  margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap;
}
.stub-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stub-footer .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.stub-footer a:hover { color: var(--ink); }
.stub-footer__links {
  display: inline-flex; align-items: center; gap: 10px;
}
.stub-footer__sep { opacity: 0.45; }
.stub-footer__disclaimer {
  flex-basis: 100%;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  max-width: 760px;
}

/* ============================================================
   Page module system — secondary pages built from content.js
   stacked modules (page-render.js)
   ============================================================ */
.page-content { min-height: 70vh; }

/* Base module wrapper */
.mod {
  padding: var(--pad-section) 0;
  border-bottom: 1px solid var(--line);
}
.mod:last-child { border-bottom: 0; }

/* Hero module */
.mod--hero { padding: 80px 0 72px; }
.pg-h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 6vw, 88px); line-height: 0.98;
  letter-spacing: -0.035em; margin: 14px 0 24px;
  text-wrap: balance; max-width: 14ch;
}
.pg-lead {
  font-size: 20px; color: var(--muted); line-height: 1.5;
  max-width: 640px; margin: 0 0 32px;
}
.pg-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Editorial module ──────────────────────────────────────── */
.ed__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .ed__grid { grid-template-columns: 1fr; gap: 40px; }
}
/* No image → text spans the full width */
.ed__grid.ed--full { grid-template-columns: 1fr; }
/* layout="right" → text left, image right */
.ed--right .ed__body { order: 1; }
.ed--right .ed__img  { order: 2; }
@media (max-width: 900px) {
  .ed--right .ed__body, .ed--right .ed__img { order: unset; }
}
.ed__h2 { margin: 14px 0 20px; }
.ed__text { color: var(--muted); font-size: 16px; line-height: 1.6; }
.ed__text + .ed__text { margin-top: 14px; }
.ed__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 28px; font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px; color: var(--ink);
}
.ed__cta:hover { color: var(--accent); border-color: var(--accent); }
.ed__img img { width: 100%; border-radius: 16px; display: block; }
.ed__placeholder {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, transparent 49.5%, var(--line) 49.5% 50.5%, transparent 50.5%),
    repeating-linear-gradient(135deg, var(--bg-2) 0 14px, var(--bg-3) 14px 28px);
  border: 1px dashed var(--line-strong); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; text-align: center; padding: 24px;
}
.ed__placeholder strong {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--ink-2);
}
.ed__caption {
  margin-top: 10px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.06em;
}
.ed__accent {
  margin-top: 20px; padding: 18px 22px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; display: flex; align-items: baseline; gap: 14px;
}
.ed__accent-n {
  font-family: var(--serif); font-size: 52px;
  color: var(--accent); line-height: 1;
}
.ed__accent-lbl { font-size: 14px; color: var(--muted); line-height: 1.4; max-width: 220px; }

/* ── Stats module ──────────────────────────────────────────── */
.mod-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.mod-stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mod-stat__n {
  font-family: var(--serif); font-size: 64px;
  line-height: 1; color: var(--ink);
  margin-bottom: 10px; position: relative;
  display: inline-block; padding-bottom: 6px;
}
.mod-stat__n::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}
.mod-stat__lbl {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); line-height: 1.4;
}

/* ── Keypoints module (auto-fit, not fixed 5-col) ─────────── */
.mod-kp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

/* ── Rich-text module (limited inline HTML) ───────────────── */
.mod-richtext {
  -max-width: 760px;
  color: var(--ink);
  font-size: 17px; line-height: 1.65;
}
.mod-richtext h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 4.4vw, 56px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 12px 0 0;
}
.mod-richtext h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(20px, 2.6vw, 34px); line-height: 1.15;
  letter-spacing: -0.015em; margin: 40px 0 16px;
}
.mod-richtext h3 {
  font-weight: 600;
  font-size: 18px; line-height: 1.3;
  margin: 28px 0 10px; color: var(--ink);
}
.mod-richtext > :first-child { margin-top: 0; }
.mod-richtext a {
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
}
.mod-richtext a:hover { border-color: var(--accent); }
.mod-richtext b { font-weight: 600; color: var(--ink); }
.mod-richtext i { font-style: italic; }

/* ── Gradient divider ──────────────────────────────────────── */
.mod-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--accent) 30%, var(--accent-2) 70%, transparent 100%);
  opacity: 0.4;
  border: 0;
}

/* ── Team module ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
}
.team-card {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
}
.team-photo {
  width: 110px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}
.team-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.team-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.team-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.team-bio {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .team-card { flex-direction: column; }
  .team-photo { width: 100%; aspect-ratio: 3 / 2; }
}

/* ============================================================
   Contact form (pages/contact-form.jsx)
   ============================================================ */
.cf-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  padding: 64px 0 80px;
}
@media (max-width: 900px) {
  .cf-layout { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 64px; }
}

/* Info sidebar */
.cf-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 120px;
}
.cf-info-block { display: flex; flex-direction: column; gap: 5px; }
.cf-info-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.cf-info-link {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.cf-info-link:hover { color: var(--accent); }
.cf-info-addr {
  font-style: normal;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.cf-info-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 4px;
}

/* Form card */
.cf-form-wrap {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px;
}
@media (max-width: 600px) { .cf-form-wrap { padding: 28px 20px; } }

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .cf-row { grid-template-columns: 1fr; } }

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.cf-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.cf-req { color: var(--accent); }

.cf-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.cf-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.cf-input--error { border-color: #d94f4f; }
.cf-input--error:focus { box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.15); }
textarea.cf-input { resize: vertical; min-height: 120px; line-height: 1.55; }
select.cf-input { cursor: pointer; }

.cf-error {
  font-size: 12px;
  color: #d94f4f;
  margin: 0;
}
.cf-submit-error {
  font-size: 13px;
  color: #d94f4f;
  margin-bottom: 16px;
}
.cf-submit-error a { color: inherit; text-decoration: underline; }

.cf-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
}
.cf-submit:disabled { opacity: 0.6; cursor: not-allowed; }
