/* Sobiera Legal — Design System */

:root {
  /* Type */
  --display: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Palette: Sand & Navy (default) */
  --bg: #fbfaf5;
  --bg-soft: #f5f0e3;
  --bg-sand: #ece4cf;
  --fg: #15120c;
  --fg-muted: #6a6657;
  --fg-subtle: #9a9587;
  --accent: #163152;
  --accent-2: #294e7a;
  --accent-soft: #d6dde8;
  --line: #e3ddc9;
  --line-strong: #c9c1a8;

  /* Scale */
  --pad: 32px;
  --pad-tight: 20px;
  --gutter: 24px;
  --max: 1320px;
  --max-prose: 680px;

  --tr: 280ms cubic-bezier(.2,.7,.2,1);
}

/* Dark */
[data-theme="dark"] {
  --bg: #0f0e0b;
  --bg-soft: #181612;
  --bg-sand: #221e16;
  --fg: #f1ecde;
  --fg-muted: #8f8a7c;
  --fg-subtle: #5b574d;
  --accent: #c6b884;
  --accent-2: #d9cb96;
  --accent-soft: #2a2519;
  --line: #2a2620;
  --line-strong: #3a352b;
}

/* Palette variants */
[data-palette="anthracite"] {
  --bg: #fafaf9;
  --bg-soft: #f1f1ef;
  --bg-sand: #e6e6e2;
  --fg: #0e0f10;
  --fg-muted: #5a5c5f;
  --fg-subtle: #94969a;
  --accent: #1c1d20;
  --accent-2: #34363b;
  --accent-soft: #dadbde;
  --line: #dededa;
  --line-strong: #b5b5af;
}
[data-palette="bordeaux"] {
  --bg: #fbf8f5;
  --bg-soft: #f3ede4;
  --bg-sand: #ece1d1;
  --fg: #18110e;
  --fg-muted: #6b6256;
  --fg-subtle: #9a9180;
  --accent: #5a1a22;
  --accent-2: #7a2932;
  --accent-soft: #e6d3d4;
  --line: #e2dac8;
  --line-strong: #c5bca5;
}
[data-palette="forest"] {
  --bg: #fbfaf5;
  --bg-soft: #efeee0;
  --bg-sand: #e1e2cb;
  --fg: #11140d;
  --fg-muted: #5e6155;
  --fg-subtle: #8e9180;
  --accent: #1f3b2a;
  --accent-2: #2f5640;
  --accent-soft: #d3decb;
  --line: #ddddc4;
  --line-strong: #bcbb9c;
}

/* Type pairing variants */
[data-typepair="serif-modern"] {
  --display: "Source Serif 4", Georgia, serif;
  --body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
}
[data-typepair="grotesk"] {
  --display: "Fraunces", Georgia, serif;
  --body: "Inter Tight", "Helvetica Neue", sans-serif;
}
[data-typepair="classic"] {
  --display: "EB Garamond", Georgia, serif;
  --body: "Manrope", "Helvetica Neue", sans-serif;
}
[data-typepair="quiet"] {
  --display: "Spectral", Georgia, serif;
  --body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
}

/* Density */
[data-density="airy"] {
  --pad: 48px;
  --gutter: 32px;
}
[data-density="compact"] {
  --pad: 20px;
  --gutter: 16px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-feature-settings: "ss01", "cv01";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--tr), color var(--tr);
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* Container */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, var(--pad));
  padding-right: clamp(20px, 4vw, var(--pad));
}

/* Typography */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.18; }
h4 { font-size: 18px; line-height: 1.25; }
p { margin: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-muted);
}
.eyebrow .dash {
  display: inline-block; width: 28px; height: 1px;
  background: currentColor; vertical-align: middle;
  margin-right: 10px; opacity: .6;
}

.lead {
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--fg);
  font-style: italic;
}

.meta {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

.label {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-muted);
}

/* Header */
.sl-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background var(--tr), border-color var(--tr);
}
.sl-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.sl-nav { display: flex; gap: 28px; align-items: center; }
.sl-nav a {
  font-size: 14px; letter-spacing: 0.01em;
  color: var(--fg-muted); position: relative;
  padding: 6px 0; transition: color var(--tr);
}
.sl-nav a:hover, .sl-nav a.is-active { color: var(--fg); }
.sl-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--accent);
}

/* Wordmark — uses the real SL monogram + CSS-rendered spaced caps */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  line-height: 1;
}
.wordmark .sl-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-color: var(--accent);
  -webkit-mask-image: url("assets/logo-mark-alpha.png");
  mask-image: url("assets/logo-mark-alpha.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-color var(--tr);
}
.wordmark .sl-text {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.wordmark .sl-name {
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.wordmark .sl-sub {
  font-family: var(--body);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  line-height: 1;
}
.wordmark.lockup-large {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.wordmark.lockup-large .sl-mark { width: 80px; height: 80px; }
.wordmark.lockup-large .sl-text { align-items: center; }
.wordmark.lockup-large .sl-name { font-size: 22px; letter-spacing: 0.28em; }
.wordmark.lockup-large .sl-sub { font-size: 12px; letter-spacing: 0.32em; }

.wordmark.compact { gap: 10px; }
.wordmark.compact .sl-mark { width: 32px; height: 32px; }
.wordmark.compact .sl-name { font-size: 14px; }
.wordmark.compact .sl-sub { font-size: 8px; }

/* In dark contexts (footer), invert via accent var */
.footer .wordmark .sl-mark { background-color: var(--bg); }
.footer .wordmark .sl-name,
.footer .wordmark .sl-sub { color: var(--bg); }

/* Lang switcher */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
  background: var(--bg);
}
.lang-switch button,
.lang-switch a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--fg-muted);
  transition: all var(--tr);
  min-width: 32px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.lang-switch button[aria-current="true"],
.lang-switch a[aria-current="true"] {
  background: var(--fg);
  color: var(--bg);
}
.lang-switch button:hover:not([aria-current="true"]),
.lang-switch a:hover:not([aria-current="true"]) {
  color: var(--fg);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 0;
  font-family: var(--body);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--tr);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent); color: #fbfaf5;
}
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--fg); }
.btn--link {
  padding: 0; border: 0; gap: 8px;
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.btn--link:hover { color: var(--accent); }
.btn .arrow {
  display: inline-block;
  transition: transform var(--tr);
}
.btn:hover .arrow { transform: translateX(3px); }

/* Hero - editorial */
.hero {
  padding: clamp(56px, 8vw, 128px) 0 clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero .accent-rule {
  width: 64px; height: 1px;
  background: var(--accent);
  margin-bottom: 28px;
}
.hero .lede {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.hero h1 {
  max-width: 12ch;
}
.hero h1 .accent-word {
  font-style: italic;
  color: var(--accent);
}
.hero .right-col {
  padding-bottom: 8px;
}
.hero .pullquote {
  background: var(--bg-sand);
  padding: 28px 32px;
  margin-top: 28px;
  border-left: 2px solid var(--accent);
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg);
}
.hero .meta-row {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero .meta-row span { color: var(--fg-muted); font-size: 13px; letter-spacing: 0.04em; }
.hero .meta-row span::before {
  content: "·"; color: var(--accent); margin-right: 12px;
}

/* Hero variants */
.hero[data-variant="typographic"] .right-col { display: none; }
.hero[data-variant="typographic"] .lede { grid-template-columns: 1fr; max-width: 18ch; }

.hero[data-variant="split"] {
  padding-bottom: 0;
}
.hero[data-variant="split"] .lede {
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  gap: clamp(40px, 6vw, 80px);
}
.hero[data-variant="split"] .portrait-slot {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  min-height: 460px;
  position: relative;
  overflow: hidden;
}

/* Section base */
section.block { padding: clamp(64px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
section.block.tight { padding: clamp(48px, 5vw, 80px) 0; }
section.block.soft { background: var(--bg-soft); }
section.block.dark {
  background: var(--accent);
  color: var(--bg);
  border-bottom: 0;
}
section.block.dark .eyebrow,
section.block.dark .meta,
section.block.dark .label { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .left .eyebrow { margin-bottom: 16px; display: block; }
.section-head .right p { max-width: 56ch; color: var(--fg-muted); font-size: 17px; line-height: 1.6; }

/* Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background var(--tr);
}
.service:hover { background: var(--bg-soft); }
.service .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.service h3 {
  font-family: var(--display);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 18ch;
}
.service p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 38ch;
}
.service .arrow-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.service .arrow-link::after {
  content: "→"; transition: transform var(--tr);
}
.service:hover .arrow-link::after { transform: translateX(4px); }

/* Portrait section */
.portrait {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.portrait .slot {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.portrait .slot .stripe-bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,
    transparent 0,
    transparent 18px,
    color-mix(in srgb, var(--fg) 4%, transparent) 18px,
    color-mix(in srgb, var(--fg) 4%, transparent) 19px);
}
.portrait .slot .label {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--bg);
  padding: 6px 10px;
  font-family: var(--mono); font-size: 11px;
}
.portrait .text h2 {
  font-style: italic;
  max-width: 16ch;
  margin-bottom: 24px;
}
.portrait .text p {
  font-size: 17px; line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 16px;
  max-width: 52ch;
}
.portrait .text .signature {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--fg);
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.portrait .text .signature::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}

/* Credentials strip */
.creds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.creds .cell {
  background: var(--bg);
  padding: 28px 24px;
}
.creds .cell .k { font-family: var(--display); font-size: 28px; color: var(--accent); margin-bottom: 6px; }
.creds .cell .v { font-size: 13px; color: var(--fg-muted); letter-spacing: 0.02em; }

/* Insights list */
.insights-list { display: flex; flex-direction: column; }
.insight {
  display: grid;
  grid-template-columns: 100px 100px 1fr auto;
  gap: clamp(20px, 3vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding var(--tr);
}
.insight:first-child { border-top: 1px solid var(--line); }
.insight:hover { padding-left: 8px; }
.insight .date {
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.insight .topic {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}
.insight h3 {
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.2;
  font-weight: 400;
  max-width: 52ch;
}
.insight .read {
  font-size: 13px; color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* Footer */
.footer {
  background: var(--accent);
  color: color-mix(in srgb, var(--bg) 92%, transparent);
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: 32px;
}
[data-palette="anthracite"] .footer,
[data-theme="dark"] .footer {
  background: #0f0e0b;
}
.footer .columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 15%, transparent);
}
.footer .wordmark { color: var(--bg); }
.footer .wordmark .mark { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 60%, transparent); }
.footer .wordmark .sep, .footer .wordmark .lc-l { color: var(--bg); }
.footer .col h4 {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  margin-bottom: 20px;
}
.footer .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer .col a {
  font-size: 14px;
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  transition: color var(--tr);
}
.footer .col a:hover { color: var(--bg); }
.footer .col p {
  font-size: 14px; line-height: 1.6;
  color: color-mix(in srgb, var(--bg) 75%, transparent);
  max-width: 36ch;
}
.footer .col .tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--bg);
  margin-top: 20px;
  max-width: 18ch;
}
.footer .legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  letter-spacing: 0.02em;
  flex-wrap: wrap; gap: 12px;
}
.footer .legal .lang-mini { display: flex; gap: 18px; }
.footer .legal .lang-mini a { font-family: var(--mono); }

/* Page (Leistungen) */
.page-hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero .grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { max-width: 32ch; }

/* Service detail */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(56px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc-detail .left .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.svc-detail .left h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-style: italic;
  line-height: 1.05;
  max-width: 14ch;
}
.svc-detail .right p {
  font-size: 17px; line-height: 1.7;
  color: var(--fg);
  margin-bottom: 20px;
  max-width: 62ch;
}
.svc-detail .right ul {
  list-style: none; padding: 0; margin: 24px 0;
  display: grid; gap: 12px;
}
.svc-detail .right ul li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  font-size: 15px;
  color: var(--fg);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.svc-detail .right ul li::before {
  content: "→"; color: var(--accent); font-family: var(--mono);
}

/* Article */
.article-hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 64px);
}
.article-hero .topic-row {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 32px;
}
.article-hero .topic {
  background: var(--bg-sand);
  padding: 6px 12px;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}
.article-hero h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  max-width: 22ch;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.article-hero .lead {
  max-width: 36ch;
  margin-bottom: 40px;
}
.article-hero .byline {
  display: flex; gap: 24px; align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.article-hero .byline strong {
  color: var(--fg); font-weight: 500;
}

.article-body {
  max-width: var(--max-prose);
  margin: clamp(40px, 6vw, 80px) auto;
  padding: 0 clamp(20px, 4vw, var(--pad));
  font-size: 18px;
  line-height: 1.75;
}
.article-body p { margin-bottom: 1.5em; color: var(--fg); }
.article-body h2 {
  font-size: 30px;
  margin: 1.4em 0 0.6em;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.article-body h3 {
  font-size: 22px;
  margin: 1.2em 0 0.4em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
}
.article-body blockquote {
  border-left: 2px solid var(--accent);
  margin: 1.6em 0;
  padding: 4px 0 4px 28px;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--fg);
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 1.5em;
}
.article-body li { margin-bottom: 0.5em; }
.article-body a {
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}
.article-body hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 2em 0;
}

/* 404 */
.error-page {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.error-page .glyph {
  font-family: var(--display);
  font-size: clamp(140px, 22vw, 260px);
  line-height: 0.85;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: -0.04em;
}
.error-page .glyph .dot {
  display: inline-block;
  width: clamp(12px, 1.5vw, 18px);
  height: clamp(12px, 1.5vw, 18px);
  background: var(--accent);
  border-radius: 50%;
  vertical-align: super;
  margin: 0 4px;
}
.error-page h1 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.error-page p { color: var(--fg-muted); max-width: 40ch; margin: 0 auto 32px; font-size: 17px; line-height: 1.6; }
.error-page .links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Mobile */
.mobile-toggle { display: none; }

@media (max-width: 920px) {
  .sl-nav.desktop { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero .lede { grid-template-columns: 1fr; }
  .hero .right-col { padding-top: 16px; }
  .hero[data-variant="split"] .lede { grid-template-columns: 1fr; }
  .hero[data-variant="split"] .portrait-slot { min-height: 320px; }
  .section-head { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .portrait { grid-template-columns: 1fr; }
  .portrait .slot { aspect-ratio: 1; max-height: 400px; }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .insight {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .insight .date, .insight .topic, .insight .read { font-size: 11px; }
  .footer .columns { grid-template-columns: 1fr 1fr; }
  .page-hero .grid { grid-template-columns: 1fr; }
  .svc-detail { grid-template-columns: 1fr; gap: 24px; }
  .footer .legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .creds { grid-template-columns: 1fr 1fr; }
  .footer .columns { grid-template-columns: 1fr; }
  .article-body { font-size: 17px; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed; inset: 76px 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 40px clamp(20px, 4vw, 32px);
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: all var(--tr);
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.mobile-menu a.is-active { color: var(--accent); font-style: italic; }
.mobile-menu .lang-row { margin-top: 32px; }

/* Hamburger */
.hamburger {
  width: 28px; height: 18px;
  position: relative;
  display: inline-block;
}
.hamburger::before, .hamburger::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 1px; background: var(--fg);
  transition: transform var(--tr), top var(--tr);
}
.hamburger::before { top: 2px; }
.hamburger::after { bottom: 2px; }
.hamburger.open::before { top: 50%; transform: rotate(45deg); }
.hamburger.open::after { bottom: auto; top: 50%; transform: rotate(-45deg); }

/* small util */
.divider { width: 100%; height: 1px; background: var(--line); margin: 16px 0; }
.spacer-sm { height: 12px; }
.spacer { height: 24px; }
.spacer-lg { height: 48px; }

/* Insights cards (alt layout) */
.insights-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.insights-feature .card {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  min-height: 320px;
}
.insights-feature .card .topic-row {
  display: flex; gap: 12px;
  margin-bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.insights-feature .card .topic-row .t { color: var(--accent); }
.insights-feature .card h3 {
  font-family: var(--display);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 22ch;
}
.insights-feature .card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 40ch;
}
.insights-feature .card .read {
  margin-top: auto;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
@media (max-width: 920px) {
  .insights-feature { grid-template-columns: 1fr; }
}

/* CTA stripe */
.cta-stripe {
  background: var(--bg-sand);
  padding: clamp(56px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
.cta-stripe .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.cta-stripe h2 {
  font-style: italic;
  max-width: 14ch;
  font-size: clamp(32px, 4vw, 52px);
}
.cta-stripe .actions { display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 6px; }
@media (max-width: 920px) {
  .cta-stripe .inner { grid-template-columns: 1fr; gap: 24px; }
}

/* Cyrillic demo highlight */
.cyrillic-pulse {
  animation: cyr 2s ease;
}
@keyframes cyr {
  0% { background: var(--bg-sand); }
  100% { background: transparent; }
}

/* Focus state */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Lang-switch anchors: ensure they don't inherit display:block from elsewhere */
.lang-switch a { display: inline-block; text-decoration: none; }
