/* Thome & Partner — Editorial Minimal Tax Advisory */

:root {
  --bg: #f5f3ee;
  --bg-soft: #ebe7df;
  --bg-deep: #e3ddd1;
  --ink: #0e0e0c;
  --ink-2: #1f1d18;
  --muted: #6b665c;
  --muted-2: #9a9489;
  --line: rgba(14, 14, 12, 0.14);
  --line-soft: rgba(14, 14, 12, 0.08);
  --accent: oklch(0.55 0.08 60);
  --accent-soft: oklch(0.55 0.08 60 / 0.12);
  --error: #b04a3a;

  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", Times, serif;
  --sans: "Inter", "Inter Fallback", Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

* { 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;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11"; /* Inter single-story 'a'; ss01 dropped so it can't trigger Fraunces' wonky alternates globally */
  font-optical-sizing: auto;     /* drives Fraunces' opsz axis from font-size (display vs text cut) */
}

a { color: inherit; text-decoration: none; }

/* ─── Layout ─── */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.row { display: flex; }
.col { display: flex; flex-direction: column; }

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 0.5px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13.5px;
  letter-spacing: 0.005em;
}
.nav-links a {
  position: relative;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 0.5px;
  background: var(--ink);
  transition: right 0.35s cubic-bezier(.2,.7,.1,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 0.5px solid var(--ink);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 0.5px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
.theme-toggle svg { display: block; }
.theme-icon-sun { display: none; }
[data-theme="charcoal"] .theme-icon-moon { display: none; }
[data-theme="charcoal"] .theme-icon-sun { display: block; }

/* ─── Wordmark ─── */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.wordmark .glyph {
  width: 28px; height: 28px;
  position: relative;
}
.wordmark .glyph svg { display: block; }
.wordmark em {
  font-style: italic;
  font-weight: 300;
  font-feature-settings: "ss01" 1; /* Fraunces swash ampersand — scoped to the wordmark '&' only */
}
/* Animated draw-on-hover for the glyph (was React state in the prototype) */
.wordmark .glyph-draw {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.6s cubic-bezier(.2,.7,.1,1);
}
.wordmark:hover .glyph-draw { stroke-dashoffset: 0; }

/* ─── Type ─── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .num { color: var(--accent); }
.eyebrow::before {
  content: "";
  width: 24px;
  height: 0.5px;
  background: var(--muted-2);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8.5vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1.0; letter-spacing: -0.03em; }
.h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }

/* Accent italic emphasis inside headings */
.h1 em, .h2 em, .accent-em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
  font-weight: 300;
}

.body { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.muted { color: var(--muted); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── Buttons / Links ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  border: 0.5px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arrow { transition: transform 0.3s cubic-bezier(.2,.7,.1,1); }
.btn:hover .arrow { transform: translateX(4px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 0.5px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  border-bottom: 0.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.25s ease;
}
.link:hover { gap: 14px; }

/* ─── Hairlines ─── */
.hr { height: 0.5px; background: var(--line); border: 0; margin: 0; }
.hr-soft { background: var(--line-soft); }

/* ─── Sections ─── */
section { padding: clamp(80px, 10vw, 160px) 0; position: relative; }
section.tight { padding: clamp(48px, 6vw, 96px) 0; }

.section-header {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: var(--gutter);
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 0.5px solid var(--line);
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .section-header { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.1,1), transform 0.9s cubic-bezier(.2,.7,.1,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger by data-i */
.reveal[data-i="1"] { transition-delay: 0.06s; }
.reveal[data-i="2"] { transition-delay: 0.12s; }
.reveal[data-i="3"] { transition-delay: 0.18s; }
.reveal[data-i="4"] { transition-delay: 0.24s; }
.reveal[data-i="5"] { transition-delay: 0.30s; }
.reveal[data-i="6"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wordmark .glyph-draw { transition: none; }
  .hero-title .line-inner,
  .hero-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ─── Footer ─── */
.footer {
  border-top: 0.5px solid var(--line);
  padding: 80px var(--gutter) 40px;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 0.5px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ─── Density tweak ─── */
body[data-density="compact"] section { padding: clamp(48px, 6vw, 96px) 0; }
body[data-density="comfy"] section { padding: clamp(120px, 14vw, 200px) 0; }

/* ─── Theme variants ─── */
[data-theme="ivory"] {
  --bg: #faf8f3;
  --bg-soft: #f0ece2;
  --bg-deep: #e8e2d3;
}
[data-theme="charcoal"] {
  --bg: #14130f;
  --bg-soft: #1c1b16;
  --bg-deep: #25231d;
  --ink: #f0ece2;
  --ink-2: #d4cfc1;
  --muted: #8a8478;
  --muted-2: #5e594e;
  --line: rgba(240, 236, 226, 0.16);
  --line-soft: rgba(240, 236, 226, 0.08);
  /* Lift the accent + error on near-black so small text clears WCAG AA */
  --accent: oklch(0.72 0.09 65);
  --accent-soft: oklch(0.72 0.09 65 / 0.14);
  --error: #e08a78;
}
[data-theme="sage"] {
  --bg: #e8e9e0;
  --bg-soft: #dcdfd1;
  --bg-deep: #cdd2bf;
  --ink: #1a1f17;
  --ink-2: #2c3326;
}

/* ─── Form ─── */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid var(--line);
  padding: 10px 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  font-size: 16px;
  font-family: var(--serif);
  font-weight: 300;
  transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
}
.field.error input,
.field.error textarea { border-color: var(--error); }
.field .err {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--error);
  position: absolute;
  bottom: -18px;
  left: 0;
}

/* ─── Marginalia ─── */
.marg {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
}
.marg .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 6px;
}
@media (max-width: 760px) {
  .marg { grid-template-columns: 1fr; gap: 8px; }
}

/* ─── Image placeholder ─── */
.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-soft) 0 12px,
      var(--bg-deep) 12px 24px
    );
  border: 0.5px solid var(--line);
  position: relative;
  overflow: hidden;
}
.placeholder::after {
  content: attr(data-label);
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 8px;
  border: 0.5px solid var(--line-soft);
}

/* ─── Selection ─── */
::selection { background: var(--accent); color: var(--bg); }

/* ════════════════════════════════════════════════════════════
   Home page sections
   (extracted from the prototype's inline styles + <style> blocks)
   ════════════════════════════════════════════════════════════ */

/* ─── Hero ─── */
.hero {
  padding-top: clamp(60px, 9vw, 140px);
  padding-bottom: clamp(80px, 10vw, 160px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding-top: 48px;
  border-top: 0.5px solid var(--line);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.stats-wrap { margin-top: clamp(80px, 10vw, 140px); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}
.stats-grid > .stat {
  padding: 32px 24px;
  border-right: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats-grid > .stat:last-child { border-right: none; }
.stat-i { color: var(--muted); }
.stat-k {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.stat-l { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.stat-note { color: var(--muted); margin-top: 2px; }

/* ─── Manifest ─── */
.manifest { padding-bottom: clamp(40px, 5vw, 80px); }
.manifest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.manifest-item { padding: 0 24px 0 0; }
.manifest-grid > .manifest-item + .manifest-item {
  border-left: 0.5px solid var(--line);
  padding-left: 32px;
}
.manifest-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.manifest-item h3 { margin-bottom: 14px; }
.manifest-d { color: var(--ink-2); max-width: 32ch; }

/* ─── Leistungen ─── */
.leistungen { background: var(--bg-soft); }
.leistung-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 2fr 40px;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 0.5px solid var(--line);
  color: var(--ink);
  transition: padding 0.4s cubic-bezier(.2,.7,.1,1), color 0.3s ease;
  position: relative;
}
.leistung-row:last-child { border-bottom: 0.5px solid var(--line); }
.leistung-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}
.leistung-row > * { position: relative; z-index: 1; }
.leistung-row:hover { padding-left: 16px; padding-right: 16px; }
.leistung-row:hover::before { opacity: 0.5; }
.leistung-n { color: var(--muted); }
.leistung-t {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.leistung-d { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; max-width: 50ch; }
.leistung-arrow {
  font-family: var(--serif);
  color: var(--muted);
  font-size: 20px;
  transition: transform 0.3s, color 0.3s;
}
.leistung-row:hover .leistung-arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ─── Branchen ─── */
.branchen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.branchen-item {
  padding: 40px 28px 40px 0;
  border-top: 0.5px solid var(--line);
}
.branchen-grid > .branchen-item:nth-child(3n+2),
.branchen-grid > .branchen-item:nth-child(3n) {
  border-left: 0.5px solid var(--line);
  padding-left: 32px;
}
.branchen-grid > .branchen-item:nth-child(n+4) {
  border-bottom: 0.5px solid var(--line);
}
.branchen-n { color: var(--muted); display: block; margin-bottom: 18px; }
.branchen-item h3 { margin-bottom: 12px; }
.branchen-d { color: var(--ink-2); font-size: 14.5px; }

/* ─── Kontakt-Teaser ─── */
.kontakt-teaser-section {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.kontakt-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.kontakt-h { margin-top: 28px; margin-bottom: 32px; }
.kontakt-lede { margin-bottom: 40px; }
.kontakt-card {
  padding: 40px;
  background: var(--bg-soft);
  border: 0.5px solid var(--line);
}
.kontakt-card .marg + .marg { margin-top: 28px; }
.marg-label { color: var(--muted); display: block; margin-bottom: 6px; }
.marg-val { font-family: var(--serif); font-size: 18px; font-weight: 300; }

/* ─── Footer extras ─── */
.footer-tag { margin-top: 18px; max-width: 280px; color: var(--muted); font-size: 13px; }
.footer-legal { display: flex; gap: 24px; }

/* ════════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .leistung-row { grid-template-columns: 40px 1fr 24px; gap: 16px; }
  .leistung-d { display: none; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 32px; }

  .kontakt-teaser { grid-template-columns: 1fr; }

  .manifest-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > .stat { border-right: none; border-bottom: 0.5px solid var(--line); }
  .stats-grid > .stat:nth-child(odd) { border-right: 0.5px solid var(--line); }

  .manifest-grid > .manifest-item,
  .manifest-grid > .manifest-item + .manifest-item {
    border-left: none;
    padding-left: 0;
    padding-top: 32px;
    padding-bottom: 32px;
    border-top: 0.5px solid var(--line);
  }

  .branchen-grid { grid-template-columns: 1fr; }
  .branchen-grid > .branchen-item:nth-child(n) {
    border-left: none;
    padding-left: 0;
  }
}

/* Compact nav for narrower screens (the prototype had no mobile nav).
   The "Mandant werden" CTA duplicates the "Kontakt" link + hero CTAs,
   so it is the first thing to drop once space gets tight. */
@media (max-width: 960px) {
  .nav-links { gap: 24px; }
}
@media (max-width: 860px) {
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  .nav-links { gap: 18px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  .nav-links { gap: 12px; font-size: 11px; }
  .wordmark { font-size: 18px; }
}

/* ════════════════════════════════════════════════════════════
   Premium motion polish
   ════════════════════════════════════════════════════════════ */

/* Smooth same-origin page transitions (progressive enhancement;
   unsupported browsers just navigate normally). */
@view-transition { navigation: auto; }

/* Film grain — a barely-there analog texture over the flat bone */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.035;
  mix-blend-mode: multiply;
}
[data-theme="charcoal"] body::after { mix-blend-mode: screen; opacity: 0.05; }

/* Nav gains a faint lift once the page is scrolled */
.nav { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(14, 14, 12, 0.35);
}

/* ─── Hero entrance choreography ───
   Hidden initial states apply ONLY when JS confirms motion is allowed
   (html.anim-ready, set synchronously in <head>). Without JS or with
   reduced motion, the hero shows immediately. A <head> failsafe adds
   .is-loaded after 2.5s so the hero can never get stuck hidden. */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}
.hero-title .line-inner { display: block; }

html.anim-ready .hero-title .line-inner {
  transform: translateY(120%);
  transition: transform 0.95s cubic-bezier(.2,.7,.1,1);
}
html.anim-ready .hero-fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.1,1);
}

html.anim-ready.is-loaded .hero-title .line .line-inner { transform: translateY(0); }
html.anim-ready.is-loaded .hero-title .line:nth-child(1) .line-inner { transition-delay: 0.05s; }
html.anim-ready.is-loaded .hero-title .line:nth-child(2) .line-inner { transition-delay: 0.15s; }
html.anim-ready.is-loaded .hero-title .line:nth-child(3) .line-inner { transition-delay: 0.25s; }
html.anim-ready.is-loaded .hero-fade { opacity: 1; transform: none; }
html.anim-ready.is-loaded .hero-fade.d1 { transition-delay: 0s; }
html.anim-ready.is-loaded .hero-fade.d2 { transition-delay: 0.45s; }

/* ════════════════════════════════════════════════════════════
   Cover hero — full-bleed toned image with the headline overlaid.
   Light text over a darkened, bronze-duotone photo (both themes).
   ════════════════════════════════════════════════════════════ */
.hero-cover {
  position: relative;
  min-height: clamp(480px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-cover-media { position: absolute; inset: 0; z-index: 0; }
.hero-cover-media picture { display: block; width: 100%; height: 100%; }
.hero-cover-media img,
.hero-cover-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(0.72);
}
/* Bronze duotone */
.hero-cover-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--accent);
  mix-blend-mode: color;
  opacity: 0.3;
}
/* Dark scrim — strongest on the left where the headline sits */
.hero-cover-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,7,5,0.78) 0%, rgba(8,7,5,0.58) 42%, rgba(8,7,5,0.22) 72%, rgba(8,7,5,0) 100%),
    linear-gradient(to top, rgba(8,7,5,0.45), rgba(8,7,5,0) 46%);
}
.hero-cover-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: clamp(72px, 11vh, 132px);
  padding-bottom: clamp(56px, 9vh, 112px);
}
.hero-cover .display { font-size: clamp(42px, 7.4vw, 120px); color: #f6f3ec; }
.hero-cover .display em { color: oklch(0.82 0.1 72); }
.hero-cover .eyebrow { color: rgba(245, 243, 238, 0.82); }
.hero-cover .eyebrow::before { background: rgba(245, 243, 238, 0.5); }
.hero-cover .eyebrow .num { color: oklch(0.82 0.1 72); }
[data-theme="charcoal"] .hero-cover-media img,
[data-theme="charcoal"] .hero-cover-media video { filter: grayscale(1) contrast(1.05) brightness(0.64); }

/* Content that follows the cover hero (lede / cta / stats / lead grid) */
.hero-tail { padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 9vw, 140px); }

@media (max-width: 760px) {
  .hero-cover { min-height: clamp(440px, 82vh, 600px); }
  .hero-cover-media::before {
    background: linear-gradient(to top, rgba(8,7,5,0.74) 6%, rgba(8,7,5,0.4) 48%, rgba(8,7,5,0.2) 100%);
  }
}
