/* ── Galeja — premium intervention site
   Section comments map to index.html structure ── */

:root {
  --bg: #0a0a08;
  --surface: #111110;
  --surface-2: #1a1a18;
  --border: #2a2a26;
  --border-light: #333330;
  --accent: #c8f060;
  --accent-dim: #a8c85a;
  --text: #e8e8e0;
  /* Readable on --bg for body + small type; tweak here for global contrast */
  --text-muted: #a3a398;
  --text-dim: #7d7d72;
  --danger: #ff4a30;
  --warn: #f0a020;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Always show vertical scrollbar track so clientWidth matches long pages (scrollbar-gutter alone did not apply here in practice). */
  overflow-y: scroll;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  /* hidden + default overflow-y made body a scroll container and clipped the last block
     on some pages (e.g. article CTA). clip avoids that side effect in supporting browsers. */
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  body {
    overflow-x: clip;
  }
}

.font-display { font-family: 'Cabinet Grotesk', sans-serif; }
.font-mono { font-family: 'DM Mono', monospace; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.container--wide { max-width: 1300px; margin: 0 auto; padding: 0 32px; }

/* Placeholder before shared nav/footer fetch (see /partials + galeja.js) */
.site-shell-mount--nav {
  min-height: 61px;
}

/* ── NAV (site header only — do not use bare `nav {}` or article pagination inherits fixed full-width rules) ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  /* Above article subtree (see .article-page z-index) so borders from scrolling content cannot composite above the bar */
  z-index: 1000;
  isolation: isolate;
  /* Extra bottom padding so the separator reads below the menu row, not through it */
  padding: 20px 0 24px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
/* Opaque when scrolled: semi-transparent rgba let page content (e.g. article .article-nav border-top)
   show through the fixed bar and read as a line through the menu when pagination scrolls under the nav */
#nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: clamp(16px, 2.5vw, 28px); list-style: none;
  flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 136px 0 104px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, black 25%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-tag::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--accent);
}

.hero-kicker {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 720px;
  line-height: 1.4;
}

.hero-headline {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 900px;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-proof-line {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 640px;
  line-height: 1.65;
}

.hero-domains {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.domain-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.domain-tag:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 48px;
}

.btn-primary {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 24px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ── SECTION BASE ── */
section { padding: 112px 0; }
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
/* Section intros: explicit typography — do not rely on blockquote or other element defaults */
.section-intro {
  max-width: 44rem;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 56px;
}

/* Consistent section header stack (label → headline → intro) */
.section-header .section-label {
  margin-bottom: 12px;
}
.section-header > .section-title {
  margin-bottom: 18px;
}
.section-header > .section-intro {
  max-width: 44rem;
  margin-bottom: 56px;
}

/* ── WHEN GALEJA IS A FIT ── */
#situation {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.situations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
}

.situation-card {
  background: var(--surface);
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
  cursor: default;
}
.situation-card:hover { background: var(--surface-2); }

/* One calm header row: index + signal — avoids floating badges and orphan icons */
.situation-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.situation-number {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.situation-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.28;
  color: var(--text);
}
.situation-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
  font-weight: 300;
}
.situation-card .marker {
  position: static;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  flex-shrink: 0;
}
.marker--red { background: rgba(255,74,48,0.1); color: var(--danger); border: 1px solid rgba(255,74,48,0.2); }
.marker--warn { background: rgba(240,160,32,0.1); color: var(--warn); border: 1px solid rgba(240,160,32,0.2); }
.marker--green { background: rgba(200,240,96,0.1); color: var(--accent); border: 1px solid rgba(200,240,96,0.2); }

.situations-grid--five {
  grid-template-columns: repeat(6, 1fr);
}
.situations-grid--five .situation-card:nth-child(1),
.situations-grid--five .situation-card:nth-child(2) {
  grid-column: span 3;
}
.situations-grid--five .situation-card:nth-child(3),
.situations-grid--five .situation-card:nth-child(4),
.situations-grid--five .situation-card:nth-child(5) {
  grid-column: span 2;
}

/* ── CASE STUDIES ── */
#case-studies { padding: 112px 0; }

.case-study {
  border: 1px solid var(--border);
  margin-bottom: 2px;
  overflow: hidden;
}

.case-study-header {
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  cursor: pointer;
  transition: background 0.25s ease;
  /* Gradient lives on the title row only; .case-study-body stays solid */
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 32%,
    rgba(200, 240, 96, 0.07) 55%,
    rgba(10, 10, 8, 0.35) 100%
  );
}
.case-study-header:hover {
  background: linear-gradient(
    165deg,
    rgba(200, 240, 96, 0.14) 0%,
    rgba(255, 255, 255, 0.1) 36%,
    rgba(200, 240, 96, 0.06) 58%,
    rgba(26, 26, 24, 0.72) 100%
  );
}
.case-study.open .case-study-header {
  background: linear-gradient(
    165deg,
    rgba(200, 240, 96, 0.12) 0%,
    rgba(255, 255, 255, 0.09) 36%,
    rgba(200, 240, 96, 0.055) 58%,
    rgba(26, 26, 24, 0.72) 100%
  );
}

.case-study-index {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.case-study-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}
.case-study-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.case-study-toggle {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.3s, color 0.2s;
  margin-top: 4px;
  user-select: none;
}
.case-study.open .case-study-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

.case-study-body {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.case-study.open .case-study-body { display: block; }

.case-study-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.case-block {
  background: var(--bg);
  padding: 28px 32px;
}
.case-block.full-width {
  grid-column: 1 / -1;
  background: var(--surface);
}

.case-block-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.case-block-label.label--red { color: var(--danger); }
.case-block-label.label--accent { color: var(--accent); }
.case-block-label.label--warn { color: var(--warn); }

.case-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.case-block p:last-child { margin-bottom: 0; }
.case-block strong { color: var(--text); font-weight: 400; }

.case-outcome-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  grid-column: 1 / -1;
}
.case-outcome-item {
  background: var(--surface);
  padding: 22px 26px;
}
.case-outcome-number {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}
.case-outcome-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── LESSONS ── */
#failures {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.failures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.failure-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}
.failure-card:hover { background: var(--surface-2); }

.failure-card-header {
  display: flex; align-items: start; gap: 16px;
  margin-bottom: 18px;
}
.failure-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  background: rgba(255,74,48,0.1);
  border: 1px solid rgba(255,74,48,0.2);
  color: var(--danger);
  flex-shrink: 0;
  margin-top: 3px;
}
.failure-badge--warn {
  background: rgba(240,160,32,0.1);
  border: 1px solid rgba(240,160,32,0.2);
  color: var(--warn);
}
.failure-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.failure-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}
.failure-lesson {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  line-height: 1.6;
  font-style: italic;
}

/* ── ENGAGEMENT + ENTRY OFFERS ── */
#how-i-work { padding: 112px 0; }

/* Shared 4-column tracks: intro 2+2 aligns with four phase columns */
.engagement-model {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.engagement-model__head {
  grid-column: 1 / -1;
  padding: 0;
  background: var(--bg);
}

.engagement-model__head.section-header .section-label {
  margin-bottom: 12px;
}
.engagement-model__head.section-header > .section-title {
  margin-bottom: 18px;
}
.engagement-model__head.section-header > .section-intro {
  margin-bottom: 56px;
}

.process-statement {
  grid-column: 1 / 3;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding: 32px clamp(20px, 3vw, 40px) 40px 0;
  background: var(--bg);
}
.process-statement em {
  font-style: normal;
  color: var(--accent);
}

.process-note {
  grid-column: 3 / 5;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  padding: 32px 0 40px clamp(20px, 3vw, 40px);
  background: var(--bg);
}

.phases {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  margin: 0;
  padding: 0;
  border: none;
}

/* Lock phase columns to parent tracks on wide layouts; stack breakpoints override below */
@supports (grid-template-columns: subgrid) {
  @media (min-width: 901px) {
    .phases {
      grid-template-columns: subgrid;
    }
  }
}

.phase {
  background: var(--bg);
  padding: 36px 28px;
  position: relative;
  min-width: 0;
}

.phase-num {
  font-family: 'DM Mono', monospace;
  font-size: 44px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 20px;
}

.phase-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.phase-duration {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.phase-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.phase::after {
  content: '';
  position: absolute;
  top: 36px; right: -1px;
  width: 1px; height: calc(100% - 72px);
  background: linear-gradient(to bottom, transparent, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.phase:hover::after { opacity: 1; }
.phase:hover { background: var(--surface); }

.entry-offers {
  margin-top: 72px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.entry-offers-header {
  padding: 32px 36px;
  border-bottom: 1px solid var(--border);
}
.entry-offers-header .section-label { margin-bottom: 8px; }
.entry-offers-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.entry-offers-lede {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
  font-weight: 300;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.offer-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s;
}
.offer-card:hover { background: var(--surface-2); }

.offer-name {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.offer-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 16px;
}
.offer-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.not-for-you {
  margin-top: 64px;
  padding: 40px 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
}

.nfy-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--danger);
  white-space: nowrap;
  padding-top: 4px;
}

.nfy-content {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}
.nfy-content strong { color: var(--text); font-weight: 400; }

/* ── FIT & FILTERING ── */
#fit {
  border-top: 1px solid var(--border);
  padding: 112px 0;
  background: var(--bg);
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.fit-panel {
  background: var(--surface);
  padding: 36px 32px;
}
.fit-panel h3 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.fit-list {
  list-style: none;
}
.fit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.fit-list li:last-child { border-bottom: none; }
/* Short rule optically centred on the first text line (not the whole block when text wraps) */
.fit-list li::before {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 2px;
  margin-top: 0.58em;
  background: var(--accent);
}
.fit-panel--warn .fit-list li::before { background: var(--warn); }
@supports (width: 1lh) {
  .fit-list li::before {
    margin-top: calc(0.5lh - 1px);
  }
}

.fit-footnote {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
}
.fit-footnote strong { color: var(--text); font-weight: 400; }

/* ── AI EVALUATOR PLACEHOLDER ── */
#evaluator {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 112px 0;
}

.evaluator-shell {
  margin-top: 48px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.evaluator-panel {
  background: var(--bg);
  padding: 36px 32px;
}
.evaluator-panel--dark {
  background: var(--surface);
}

.evaluator-io-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.sample-block {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.75;
  color: var(--text-muted);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  padding: 20px 22px;
  white-space: pre-wrap;
  max-height: 280px;
  overflow-y: auto;
}
.sample-block .k { color: var(--text-dim); }
.sample-block .v { color: var(--text); }

.evaluator-cta-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pill {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
}

/* ── CONTACT ── */
#contact {
  border-top: 1px solid var(--border);
  padding: 112px 0 96px;
  background: var(--bg);
}

.contact-bridge {
  border-top: 1px solid var(--border);
  padding: 112px 0 96px;
  background: var(--bg);
  min-height: 42vh;
}
.contact-bridge__copy {
  max-width: 38em;
  margin-bottom: 28px;
}
.contact-bridge__email {
  margin-top: 32px;
  font-size: 12px;
}

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

.contact-grid--teaser .contact-teaser-aside {
  border-left: 1px solid var(--border);
  padding-left: 28px;
  align-self: stretch;
}
.contact-teaser-aside__text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}
@media (max-width: 900px) {
  .contact-grid--teaser .contact-teaser-aside {
    border-left: none;
    padding-left: 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
}

.contact-headline {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 28px;
}

.contact-paths {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}
.contact-path {
  border-left: 2px solid var(--border-light);
  padding-left: 18px;
}
.contact-path h4 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-path p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-direct {
  display: flex; flex-direction: column; gap: 10px;
}

.contact-link {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex; align-items: center; gap: 12px;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--accent); }
.contact-link::before {
  content: '→';
  color: var(--accent);
  font-size: 13px;
}

.form-field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form__status {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  min-height: 1.25em;
}
.contact-form__status:empty {
  display: none;
}
.contact-form--success .contact-form__status {
  color: var(--accent);
}
.contact-form--error .contact-form__status {
  color: var(--danger);
}
.contact-form--submitting .form-submit {
  opacity: 0.65;
  pointer-events: none;
  cursor: wait;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px 30px;
  position: relative;
  /* Between the very subtle and very bright passes: still lifted vs --bg, not washed out */
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface-2) 80%, #ffffff 20%) 0%,
    color-mix(in srgb, var(--surface) 84%, #ffffff 16%) 100%
  );
  border: 1px solid var(--border-light);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 52px rgba(0, 0, 0, 0.4);
}

.form-field {
  display: flex; flex-direction: column; gap: 8px;
}
.form-field label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  appearance: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
}
.form-field input:hover,
.form-field textarea:hover {
  border-color: #3d3d38;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(200, 240, 96, 0.25);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input[type="date"] {
  appearance: auto;
  color-scheme: dark;
  min-height: 48px;
}

.form-field select {
  color-scheme: dark;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a3a398' d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 14px 40px 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
}
.form-field select:hover {
  border-color: #3d3d38;
}
.form-field select:focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(200, 240, 96, 0.25);
}

.form-field-group {
  display: grid;
  gap: 18px;
}
.form-field-group--timeline {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .form-field-group--timeline {
    grid-template-columns: 1fr;
  }
}

/* Custom select — native OS menu cannot be themed; mirror text inputs (sharp, dark, accent) */
.custom-select {
  position: relative;
}
.custom-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
}
.custom-select__trigger:hover {
  border-color: #3d3d38;
}
.custom-select__trigger:focus-visible {
  border-color: var(--accent);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(200, 240, 96, 0.25);
}
.custom-select__trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(200, 240, 96, 0.2);
}
.custom-select__value {
  flex: 1;
  min-width: 0;
}
.custom-select__value.is-placeholder {
  color: var(--text-muted);
}
.custom-select__caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  transition: transform 0.2s;
}
.custom-select__trigger[aria-expanded="true"] .custom-select__caret {
  transform: rotate(180deg);
}
.custom-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 1px);
  z-index: 50;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.custom-select__option {
  margin: 0;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
}
.custom-select__option:hover,
.custom-select__option:focus {
  outline: none;
  background: var(--surface-2);
  color: var(--text);
}
.custom-select__option[aria-selected="true"] {
  background: rgba(200, 240, 96, 0.08);
  color: var(--text);
  border-left-color: var(--accent);
}
.custom-select__option.is-placeholder[aria-selected="true"] {
  color: var(--text-muted);
}

.form-submit {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
  align-self: start;
}
.form-submit:hover { filter: brightness(1.06); }
.form-submit:active { transform: translateY(1px); }

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.contact-form--attempted .form-field input:invalid,
.contact-form--attempted .form-field select:invalid,
.contact-form--attempted .form-field textarea:invalid {
  border-color: var(--danger);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
.contact-form--attempted .form-field input:invalid:focus,
.contact-form--attempted .form-field select:invalid:focus,
.contact-form--attempted .form-field textarea:invalid:focus {
  border-color: var(--danger);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 74, 48, 0.35);
}

.form-field--invalid .custom-select__trigger {
  border-color: var(--danger);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
.form-field--invalid .custom-select__trigger:focus-visible {
  border-color: var(--danger);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 74, 48, 0.35);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  padding-bottom: max(36px, env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-logo span { color: var(--accent); }
.footer-meta {
  text-align: right;
}
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 420px;
}
.footer-discipline {
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.footer-impressum-link {
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}
.footer-impressum-link:hover {
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag { animation: fadeSlideIn 0.7s ease 0.1s both; }
.hero-kicker { animation: fadeSlideIn 0.7s ease 0.15s both; }
.hero-headline { animation: fadeSlideIn 0.7s ease 0.22s both; }
.hero-sub { animation: fadeSlideIn 0.7s ease 0.32s both; }
.hero-proof-line { animation: fadeSlideIn 0.7s ease 0.38s both; }
.hero-domains { animation: fadeSlideIn 0.7s ease 0.42s both; }
.hero-actions { animation: fadeSlideIn 0.7s ease 0.48s both; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .situations-grid--five .situation-card { grid-column: span 6 !important; }
  .offers-grid { grid-template-columns: 1fr; }
  .evaluator-shell { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  #hero { padding: 120px 0 88px; }
  .hero-actions { margin-bottom: 40px; }
  .situations-grid { grid-template-columns: 1fr; }
  .case-study-content { grid-template-columns: 1fr; }
  .case-study-content .full-width { grid-column: 1; }
  .case-outcome-strip { grid-template-columns: 1fr; }
  .failures-grid { grid-template-columns: 1fr; }
  .engagement-model {
    grid-template-columns: 1fr;
  }
  .process-statement,
  .process-note {
    grid-column: 1 / -1;
    padding: 28px 0;
  }
  .process-statement {
    padding-bottom: 8px;
  }
  .process-note {
    padding-top: 8px;
    padding-bottom: 36px;
  }
  .phases {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .container--wide { padding: 0 20px; }
  .phases { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .not-for-you { grid-template-columns: 1fr; gap: 14px; }
  #hero {
    min-height: auto;
    padding: 100px 0 64px;
  }
  .hero-actions { margin-bottom: 28px; }
  .contact-form { padding: 22px 20px 24px; }
  section { padding: 88px 0; }
}

/* ── LEGAL / IMPRESSUM (impressum.html) — ruhig, funktional, ohne Marketing ── */
body.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.legal-page > footer {
  margin-top: auto;
}

.legal-main {
  flex: 1;
  max-width: 42rem;
  padding-top: 104px;
  padding-bottom: 48px;
}

.legal-main__header {
  margin-bottom: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-main__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-main__intro {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 36em;
}

.legal-section {
  margin-top: 22px;
}

.legal-main > .legal-section:first-of-type {
  margin-top: 20px;
}

.legal-section__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-subtitle {
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.legal-section__note {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  line-height: 1.55;
}

.legal-dl {
  margin: 0;
}

.legal-dl dt {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 10px;
  margin-bottom: 4px;
}

.legal-dl dt:first-child {
  margin-top: 0;
}

.legal-dl dd {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

.legal-placeholder {
  color: var(--text-muted);
  font-style: italic;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 1px;
}

.legal-placeholder--block {
  display: block;
  margin-top: 4px;
}

.legal-back {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.legal-back__link {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-back__link:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .legal-main {
    padding-top: 88px;
    padding-bottom: 40px;
  }
  .legal-section {
    margin-top: 18px;
  }
  .legal-main > .legal-section:first-of-type {
    margin-top: 16px;
  }
}
