/* ============================================================================
   hochzwei.tech 2026 Rebrand: Home page sections
   Depends on core.css for tokens, primitives and shared components.
   No em-dashes or en-dashes anywhere (brand rule), comments included.
   ========================================================================== */

/* HERO ===================================================================== */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--space-section); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.30fr 0.70fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}
.hero__kicker { margin-bottom: var(--space-5); max-width: 100ch; color: var(--c-text); }
/* Eyebrows above headings: drop the bracket glyphs (per screenshot). */
.hero__kicker.mono-label::before, .hero__kicker.mono-label::after,
.sec-head__kicker.mono-label::before, .sec-head__kicker.mono-label::after { content: ""; }
/* Same size everywhere a .hero__title appears (home, modern-workplace,
   security, power-platform, ai-copilot, erstgespraech): matches the
   uu.css .hero__title used by ueber-uns/karriere (their own bundle, no
   index.css), so every page's hero headline reads at the same weight. */
.hero__title {
  font-size: calc(var(--fs-display) * 1.3);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  margin-bottom: var(--space-5);
  text-wrap: pretty;
}
.hero__lead { font-size: var(--fs-lead); color: var(--c-text); max-width: 46ch; margin-bottom: var(--space-6); }
/* Two-CTA hero row (modern-workplace, ai-copilot, security): a touch smaller
   than the global .btn so the pair stays as light as the single Home CTA. */
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero__cta .btn { min-height: 46px; padding: 0.55em 1.2em; font-size: 1rem; }
.hero__media { position: relative; border-radius: var(--radius-lg); aspect-ratio: 1 / 1; background: var(--c-surface-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); filter: grayscale(1); }

/* Home light: Logo dauerhaft schwarz. Die gescrollte [2]-Marke bleibt auf jedem
   Band schwarz, statt ueber blauen Baendern auf weiss zu springen. Nur Home
   (data-page="home"); die anderen Seiten laden index.css mit, sind aber nicht betroffen. */
html[data-theme="light"][data-page="home"] .site-header.is-scrolled[data-nav-bg="blue"] .logo__mark--white { display: none; }
html[data-theme="light"][data-page="home"] .site-header.is-scrolled[data-nav-bg="blue"] .logo__mark--black { display: block; }

/* Interactive squared mark in the headline: hover shows the dialect hint,
   click reveals the explanation panel. */
.hero__sup {
  position: relative;
  display: inline-block;
  color: inherit; /* lives inside the blue marker now */
  font-size: 0.46em;
  vertical-align: super;
  line-height: 1;
  font-weight: 700;
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0 0.06em;
  cursor: pointer;
  transition: color var(--transition);
}
/* The "2" turns lime on hover / focus (the dialect hint still appears). */
.hero__sup:hover,
.hero__sup:focus-visible { color: var(--c-accent); }
/* Hover hint: same visual language as the lime CTA button (.btn--lime). */
.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -6px) scale(0.92);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-family: var(--font-display);
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 0.5em 1em;
  border: 1px solid var(--c-accent-ink);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.hero__sup:hover .hero__hint,
.hero__sup:focus-visible .hero__hint { opacity: 1; transform: translate(-50%, -6px) scale(1); }
.hero__sup[aria-expanded="true"] .hero__hint { opacity: 0; }

/* ² explanation: a centred popup overlay (does not affect page flow).
   Dark card styled to match the Figma "Was ist hochzwei?" panel. */
.hero__explain {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(12, 14, 21, 0.55);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.hero__explain.is-open { display: flex; animation: hz-fade-in 200ms ease; }
.hero__explain__card {
  position: relative;
  width: min(100%, 40rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--off);
  border: 1px solid rgba(247, 248, 250, 0.14);
  box-shadow: var(--shadow-pop);
  text-align: left;
}
.hero__explain__close {
  position: absolute;
  top: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
  right: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none;
  border: 0;
  color: var(--off);
  font-size: 1.9rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.hero__explain__close:hover { color: var(--c-accent); }
.hero__explain__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off);
  margin-bottom: var(--space-5);
  max-width: 28ch;
}
.hero__explain__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--off);
  margin-bottom: var(--space-5);
}
.hero__explain__sq {
  font-size: 0.3em;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0.05em;
}
.hero__explain__text {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--off);
  margin-bottom: var(--space-7);
  max-width: 46ch;
}
.hero__explain__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  align-items: flex-start;
}
/* Mono bracket tags per the type spec ([ TAG ], uppercase, blue).
   Lightened blue (#6E84FF) so it stays legible on the dark popup card. */
.hz-tag {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6E84FF;
}
.hz-tag__t { display: inline-block; }
.hz-tag__t::before { content: "["; margin-right: 0.2em; }
.hz-tag__t::after  { content: "]"; margin-left: 0.2em; }
.hz-tag sup { font-size: 0.7em; vertical-align: super; margin-left: 0.05em; }
@keyframes hz-fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__explain.is-open { animation: none; } }

/* CLIENTS BAND ============================================================= */
/* Title left (2 lines), sub beside it bottom-aligned, button top-right. */
.clients__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4) var(--space-7);
  align-items: center;
  margin-bottom: var(--space-7);
}
/* Title on one line, sub directly below it (left); button two-line on the right. */
.clients__title { grid-column: 1; grid-row: 1; font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; white-space: nowrap; }
.clients__sub { grid-column: 1; grid-row: 2; font-size: var(--fs-lead); max-width: 48ch; opacity: 0.92; }
/* inline-block so the text + arrow wrap together and stay inside the button bg */
.clients__head .btn { display: inline-block; grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; width: min-content; text-align: left; line-height: 1.2; }
.clients__head .btn .arrow { display: inline-block; }
/* Logo carousel: bordered cards, arrows, lime fill on hover. */
.clients__carousel { display: flex; align-items: stretch; gap: var(--space-4); }
.clients__nav {
  flex: none;
  align-self: center;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--c-brand-ink);
  font-size: 1.3rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.clients__nav:hover { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.clients__rail {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.clients__rail::-webkit-scrollbar { display: none; }
.clients__card {
  flex: none;
  width: clamp(190px, 22vw, 280px);
  height: 150px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
  transition: background var(--transition), border-color var(--transition);
}
.clients__card:hover { background: var(--c-accent); border-color: var(--c-accent); }
/* Real logo images, made monochrome via filter: white on the blue card, dark on lime hover. */
.clients__logo {
  width: 64%;
  max-width: 180px;
  height: 54px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
.clients__card:hover .clients__logo { filter: brightness(0); }
/* Ornate crest emblems (Schlenkerhof, Baldauf) need more height than the wordmarks. */
.clients__logo--crest { width: auto; height: 84px; max-width: 120px; }
/* Logo links to the customers' websites: fill the card and centre the logo. */
.clients__link { display: grid; place-items: center; width: 100%; height: 100%; }
/* Vetter must never be black (brand rule): white by default like the others, but
   on the lime hover it shows its approved dark-blue (#001450) instead of black. */
.clients__card:hover .clients__logo[src*="vetter"] { filter: none; }

/* REIFEGRADCHECK CARDS (white by default, blue on hover) =================== */
.check-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-7);
  background: var(--c-surface);
  border: 1.5px solid var(--c-brand);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.check-card__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.check-card__body { font-size: var(--fs-body); color: var(--c-text); flex: 1; }
.check-card .btn { align-self: flex-start; margin-top: var(--space-2); }
.check-card:hover {
  background: var(--c-brand);
  color: var(--c-brand-ink);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}
.check-card:hover .check-card__body { color: var(--c-brand-ink); opacity: 0.92; }
.check-card:hover .mono-label { color: var(--c-brand-ink); opacity: 0.9; }
.check-card:hover .check-card__title .marker { background: var(--c-accent); color: var(--blue); }
.check-card:hover .btn { --btn-bg: var(--white); --btn-fg: var(--blue); }

/* MODUL-TILES (check-card with mono index + status dot). Shared by
   modern-workplace (Fünf Bausteine) and security (Vier Säulen). ========== */
.modul-tile { position: relative; }
.modul-tile__status {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 3;
}
.modul-tile__tags { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: auto; }
/* The status dot needs a white ring once the card surface goes blue (hover or
   resting on the featured card) so the green stays legible. */
.modul-tile:hover .modul-tile__status,
.modul-tile.is-featured .modul-tile__status { box-shadow: 0 0 0 2px var(--white); }
/* Featured card: resting blue fill (the one filled card per group, if used). */
.modul-tile.is-featured {
  background: var(--c-brand);
  color: var(--c-brand-ink);
  border-color: transparent;
}
.modul-tile.is-featured .check-card__body,
.modul-tile.is-featured .mono-label { color: var(--c-brand-ink); opacity: 0.92; }
.modul-tile.is-featured .tag { color: var(--c-accent); }
.modul-tile.is-featured .tag::before,
.modul-tile.is-featured .tag::after { color: var(--white); }
.modul-tile.is-featured::before,
.modul-tile.is-featured::after { border-color: var(--c-brand-ink); }
/* Hover-only inversions (the check-card hover already flips bg to blue). */
.modul-tile:hover .tag { color: var(--c-accent); }
.modul-tile:hover .tag::before,
.modul-tile:hover .tag::after { color: var(--white); }

/* APPROACH COLUMNS ========================================================= */
.approach { display: flex; flex-direction: column; gap: var(--space-4); }
.approach__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--c-surface-2); }
.approach__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); filter: grayscale(1); }
.approach__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; margin-top: var(--space-2); }
.approach__body { font-size: var(--fs-body); color: var(--c-text); }
.approach__foot { margin-top: var(--space-1); color: var(--c-brand); }
/* vibrant blue divider line between the columns */
.grid-3 .approach { position: relative; }
.grid-3 .approach + .approach::before {
  content: "";
  position: absolute;
  left: calc(var(--space-6) / -2);
  top: 0;
  bottom: 0;
  width: 0.5px;
  background: var(--c-brand);
}

/* PILLARS (Vier Bereiche, on blue; white by default, filled on hover) ====== */
.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  color: var(--c-brand-ink);
  min-height: 280px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.pillar:hover { background: var(--c-surface); color: var(--c-text); border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.pillar__media {
  display: block;                 /* darf ein <a> sein (Bild verlinkt auf die Bereichsseite) */
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: var(--space-2);
  --bk: var(--c-accent); --bk-size: 26px; --bk-w: 5px; --bk-r: 10px;
}
a.pillar__media:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.pillar:hover .pillar__media { background: var(--c-surface-2); --bk: var(--c-brand); }
.pillar__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
/* on hover the card turns white, so the title must turn dark (overrides .band--blue h3) */
.pillar:hover .pillar__title { color: var(--c-text); }
.pillar__body { font-size: var(--fs-body); flex: 1; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.pillar__tag { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 3px; text-transform: uppercase; color: inherit; }
.pillar__tag::before { content: "["; margin-right: 0.2em; }
.pillar__tag::after  { content: "]"; margin-left: 0.2em; }

/* STATS (Aus der Praxis) =================================================== */
.praxis-title { text-align: center; margin: var(--space-9) 0 var(--space-7); font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); text-align: center; }
.stats__num { font-size: clamp(2.5rem, 1.76rem + 3.05vw, 5rem); font-weight: 600; line-height: 1; color: var(--c-brand-ink); }
.stats__label { font-size: var(--fs-lead); opacity: 0.92; margin-top: var(--space-3); }
.stats__src { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 3px; opacity: 0.85; margin-top: var(--space-2); }

/* TESTIMONIALS / CASES (carousel) ========================================= */
.cases-wrap { position: relative; }
.cases {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(300px, 40%); /* ~2 full cards + a split */
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-3);
  scrollbar-width: none;
}
.cases::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  --bk: var(--c-brand);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.quote:hover, .quote.is-active { background: var(--c-brand); color: var(--c-brand-ink); border-color: transparent; --bk: var(--c-accent); box-shadow: var(--shadow-pop); }
.quote:hover { transform: translateY(-4px); }
.quote__media { position: relative; height: clamp(120px, 15vh, 180px); border-radius: var(--radius-lg); background: var(--c-surface-2); }
.quote__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); filter: grayscale(1); }
.quote:hover .quote__media, .quote.is-active .quote__media { background: rgba(255, 255, 255, 0.16); --bk: var(--c-accent); }
.quote__company { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.quote__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
/* grid w/ a max-content column: every line is the width of the longest tag, uniform */
.quote__tags { display: grid; grid-template-columns: max-content; }
/* tags divided by thin lines instead of brackets, in natural case */
/* All meta lines equal length: the longest tag text + 28px, uniform across the card. */
.quote__tags .tag { text-transform: none; color: var(--c-text); padding: var(--space-1) 28px var(--space-1) 0; border-bottom: 1px solid var(--c-border); }
/* Testimonial tags stay line-divided, not bracketed (overrides the global tag brackets). */
.quote__tags .tag::before, .quote__tags .tag::after { content: ""; }
.quote:hover .quote__tags .tag, .quote.is-active .quote__tags .tag { color: var(--c-brand-ink); opacity: 0.92; border-bottom-color: rgba(255, 255, 255, 0.3); }
.quote__link { display: inline-flex; align-items: center; }
.quote__logo { flex: none; height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.quote__logo--lg { height: 60px; max-width: 192px; }   /* Vetter reads small at 40px */
.quote:hover .quote__logo, .quote.is-active .quote__logo { filter: brightness(0) invert(1); }
/* References: logos are natural on the light card, but go white on the dark card
   (and on the blue hover) so they stay legible. For Vetter this means white in
   dark / on hover and its approved dark-blue on the light card; never black. */
[data-theme="dark"] .quote__logo { filter: brightness(0) invert(1); }
/* no clamp: if the quote runs long, the card grows taller instead of cutting off */
.quote__text { font-size: var(--fs-body); line-height: 1.4; flex: 1; }
.quote__foot { border-top: 1px solid var(--c-border); padding-top: var(--space-4); }
.quote:hover .quote__foot, .quote.is-active .quote__foot { border-top-color: rgba(255, 255, 255, 0.3); }
.quote__author { font-weight: 700; font-size: var(--fs-body); }
.quote__role { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 3px; color: var(--c-text-muted); }
.quote:hover .quote__role, .quote.is-active .quote__role { color: var(--c-brand-ink); opacity: 0.85; }
.cases-nav { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.cases-nav__btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 1.3rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cases-nav__btn:hover { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
/* Compact the section so eyebrow -> nav fits in roughly one screen (same compaction
   token as #reifegradcheck / #recruiting). */
#testimonials.section { padding-block: var(--space-7); }
#testimonials .sec-head { margin-bottom: var(--space-6); }
.cases-nav { margin-top: var(--space-4); }

/* MANAGED SERVICES (white by default, blue on hover) ======================= */
.ms-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
/* tall FAQ-style brackets on the left + right edges (white on hover).
   Shared with the Reifegradcheck cards (.check-card) so both look identical. */
.ms-card::before,
.ms-card::after,
.check-card::before,
.check-card::after {
  content: "";
  position: absolute;
  top: var(--space-5);
  bottom: var(--space-5);
  width: 16px;
  border: 4.2px solid transparent;
  pointer-events: none;
  transition: border-color var(--transition);
}
.ms-card::before, .check-card::before { left: 14px; border-right: 0; border-radius: 8px 0 0 8px; }
.ms-card::after,  .check-card::after  { right: 14px; border-left: 0; border-radius: 0 8px 8px 0; }
.ms-card:hover { background: var(--c-brand); color: var(--c-brand-ink); border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.ms-card:hover::before,
.ms-card:hover::after,
.check-card:hover::before,
.check-card:hover::after { border-color: var(--c-brand-ink); }
.ms-card__title { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.ms-card__body { font-size: var(--fs-body); color: var(--c-text); flex: 1; }
.ms-card .mono-label { color: var(--c-brand); }
.ms-card:hover .mono-label { color: var(--c-brand-ink); opacity: 0.9; }
.ms-card:hover .ms-card__body { color: var(--c-brand-ink); opacity: 0.9; }
.ms-card .btn { align-self: flex-start; }
.ms-card:hover .btn { --btn-bg: var(--c-accent); --btn-fg: var(--c-accent-ink); border-color: transparent; }

/* Offering price line. All four cards are identical outlined cards that fill
   blue only on hover (no pre-selected "feature" card, per request). */
.ms-card__price { font-size: var(--fs-body); color: var(--c-text-muted); }
.ms-card__price span { display: inline-block; font-size: var(--fs-lead); font-weight: 700; color: var(--c-text); }
.ms-card:hover .ms-card__price, .ms-card:hover .ms-card__price span { color: var(--c-brand-ink); opacity: 0.95; }
/* Dark mode: home "Wir suchen Dich" highlight is black type on the blue box. */
[data-theme="dark"] #recruiting .marker { color: var(--ink); }

/* Baseline strip: what every managed service includes (ported from sub-pages) */
.ms-baseline__caption { display: block; color: var(--c-text-muted); margin: var(--space-7) 0 var(--space-4); }
.ms-baseline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin: 0 0 var(--space-7);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.ms-baseline li { font-size: var(--fs-body); color: var(--c-text-muted); line-height: 1.35; }
.ms-baseline__key {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: var(--space-2);
}

/* Build -> Run handover: a horizontal, pinned mini-timeline. Same mechanic and
   marker style as the ueber-uns page (JS adds .is-pinned on wide + motion-ok;
   scroll then advances the active step). Static / mobile = all steps readable. */
.handover { position: relative; margin: 0 0 calc(var(--space-3) + 20px); --ho-top: 96px; }
.handover__sticky { position: static; }
/* The section heading rides inside the sticky so headline + text stay pinned
   with the steps; this is its gap to the station row. */
.handover .sec-head--beside { margin-bottom: var(--space-6); }
.handover__row {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* exactly equal columns (minmax(0,...) stops a long title widening col 1) and
     no gap, so each marker sits at the column centre = the line's end points */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}
/* connecting line behind the markers, at their vertical centre (col 1 to col 3) */
.handover__row::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 16.66%; right: 16.66%;
  height: 2px;
  background: var(--c-text);
  z-index: 0;
}
.handover__station {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 42px var(--space-5) 0;
  transition: opacity var(--transition);
}
/* Same style as the ueber-uns timeline: dim every step, light only the active one
   (scroll-driven, JS-guaranteed). Static / no-JS keeps every step readable. */
.handover.is-pinned .handover__station { opacity: 0.42; }
.handover.is-pinned .handover__station.is-active { opacity: 1; }
.handover__index { color: var(--c-brand); margin-bottom: var(--space-2); }
.handover__title { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; color: var(--c-text); }
.handover__body { font-size: var(--fs-body); color: var(--c-text-muted); margin-top: var(--space-3); max-width: 34ch; }
/* Marker = a blue block on the line with white 2-sided brackets ([ ]); the active
   step grows and shows the "2" (the ueber-uns timeline marker, in blue not lime). */
.handover__marker {
  position: absolute;
  top: 13px; left: 50%;                  /* centred on the horizontal connecting line */
  transform: translate(-50%, -50%);
  width: 22px; height: 26px;
  background: var(--c-brand);            /* blue box (lime on ueber-uns) */
  z-index: 2;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; line-height: 1;
  color: var(--c-brand-ink);            /* white "2" on the blue box */
  font-size: 0;                          /* no "2" unless this step is active */
  transition: width var(--transition), height var(--transition), font-size var(--transition);
}
.handover__marker::before,
.handover__marker::after {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px;
  width: 6px;
  border: 3px solid var(--c-brand-ink);   /* white brackets sit inside the blue box */
}
.handover__marker::before { left: 3px; border-right: 0; }   /* [ */
.handover__marker::after  { right: 3px; border-left: 0; }   /* ] */
.handover__station.is-active .handover__marker { width: 32px; height: 34px; font-size: 16px; }
/* Active step text is full ink / white (black in light, white in dark). */
.handover__station.is-active .handover__title,
.handover__station.is-active .handover__body { color: var(--c-text); }

/* 4-column variant (shared: modern-workplace Vorgehen + ai-copilot Wert-Programm).
   Re-grids the row and re-anchors the connecting line. */
.handover__row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.handover__row--4::before { left: 12.5%; right: 12.5%; }

@media (min-width: 1025px) {
  /* The heading now sits inside the sticky, so the pin is a touch longer and the
     offset smaller, keeping headline + text + steps within one viewport. */
  .handover.is-pinned { height: 165vh; }
  .handover.is-pinned .handover__sticky {
    position: sticky;
    top: clamp(96px, 13vh, 150px);
  }
}

/* TEAM (cards filled on hover; der Kopf ist jetzt der geteilte Typ N
   .sec-head--beside.sec-head--action in core.css) ========================= */
.person {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.person__photo { position: relative; background: var(--c-surface-2); --bk: var(--c-brand); --bk-off: 10px; --bk-size: 36px; }
.person__photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: 50% 25%; filter: grayscale(1); }
.person__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.person__name { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; }
.person__bio { font-size: var(--fs-body); color: var(--c-text); }
.person__tags { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.person__tags .tag { color: var(--c-brand); }
.person__foot { margin-top: auto; padding-top: var(--space-2); }

/* Featured card (Alexander): filled blue, lime brackets, lime tags + button */
.person--feature { background: var(--c-brand); color: var(--c-brand-ink); border-color: transparent; }
.person--feature .person__photo { --bk: var(--c-accent); }
.person--feature .mono-label { color: var(--c-brand-ink); opacity: 0.9; }
.person--feature .person__bio { color: var(--c-brand-ink); opacity: 0.9; }
.person--feature .person__tags .tag { color: var(--c-accent); }
.person--feature .btn { --btn-bg: var(--c-accent); --btn-fg: var(--c-accent-ink); border-color: transparent; }

/* Non-featured card (Manuel): white, fills blue on hover with lime brackets */
.person:not(.person--feature):hover { background: var(--c-brand); color: var(--c-brand-ink); border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.person:not(.person--feature):hover .person__photo { --bk: var(--c-accent); }
.person:not(.person--feature):hover .mono-label,
.person:not(.person--feature):hover .person__bio { color: var(--c-brand-ink); opacity: 0.9; }
.person:not(.person--feature):hover .person__tags .tag { color: var(--c-accent); }
.person:not(.person--feature):hover .person__tags .tag::before,
.person:not(.person--feature):hover .person__tags .tag::after { color: var(--c-brand-ink); }
.person:not(.person--feature):hover .btn { --btn-bg: var(--white); --btn-fg: var(--blue); border-color: transparent; }

/* WORD MARQUEE (skaliert / waechst / sicher bleibt) ======================= */
/* --fs-marquee: einmal definiert statt dreimal literal (word/sep/reveal-q teilen
   sich dieselbe Display-Groesse). */
/* Positioned so the opaque band paints ABOVE the global .hz-grid--page layer
   (same rule as .footer: non-positioned block backgrounds would sit below it). */
.word-marquee { position: relative; padding-block: var(--space-5); border-block: 1px solid var(--c-border); background: var(--c-bg); --fs-marquee: clamp(2.25rem, 4.4vw, 4rem); }
.word-marquee__word { font-size: var(--fs-marquee); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; color: var(--c-text); }
.word-marquee__word--blue { color: var(--c-brand); }
/* Separators match their row's text colour: ink on the black rows, blue on the blue row. */
.word-marquee__sep { font-size: var(--fs-marquee); color: var(--c-text); }
.word-marquee .marquee--reverse .word-marquee__sep { color: var(--c-brand); }

/* Hover a row: the scrolling words give way to a single word and a lime bracket
   that drives out, listing the related Microsoft topics. Decorative + hover-only,
   so touch devices just keep the marquee. */
.word-marquee .marquee { position: relative; }
.word-marquee .marquee__track { transition: opacity 200ms ease; }
.word-marquee .marquee:hover .marquee__track { opacity: 0; }
.wm-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.85em;
  padding-inline: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.word-marquee .marquee:hover .wm-reveal { opacity: 1; }
/* #2: the question ("Was skaliert?") drives the reveal; the keyword answer runs
   through an opening bracket. Colour follows the row: lime by default, blue on
   the waechst row (jeweilige Farbe). */
.wm-reveal__q {
  flex: none;
  font-size: var(--fs-marquee);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--c-text);
}
.word-marquee .marquee--reverse .wm-reveal__q { color: var(--c-brand); }
/* The bracket box clips the running keyword band; on hover it opens (max-width 0 -> open). */
.wm-reveal__br {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  padding: 0;
  position: relative;
  transition: max-width 520ms cubic-bezier(0.22, 1, 0.36, 1) 80ms, padding 520ms ease 80ms;
}
/* Two brackets flank the keyword band ([ ... ]) instead of a full rounded border;
   they ride the box edges as it opens on hover. Blue by default; on the blue
   "waechst" row it switches to the theme's ink colour (--c-text: black on light,
   white on dark) so it never blends into a same-tone background. */
.wm-reveal__br::before, .wm-reveal__br::after {
  content: "";
  position: absolute;
  top: 0.12em; bottom: 0.12em;
  width: 0.4em;
  border: 3px solid var(--c-brand);
}
.wm-reveal__br::before { left: 0.1em; border-right: 0; }   /* [ */
.wm-reveal__br::after  { right: 0.1em; border-left: 0; }   /* ] */
.word-marquee .marquee--reverse .wm-reveal__br::before,
.word-marquee .marquee--reverse .wm-reveal__br::after { border-color: var(--c-text); }
.word-marquee .marquee:hover .wm-reveal__br { max-width: min(58vw, 620px); padding: 0.45em 1.7em; }
/* Inner viewport: clips and soft-fades the running band inside the bracket box's
   content area (inset by its padding), so the scrolling text never reaches the
   flanking brackets. The brackets live on .wm-reveal__br's edges and stay crisp;
   only this wrapper is masked. */
.wm-reveal__mask {
  display: block;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.4rem, #000 calc(100% - 1.4rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 1.4rem, #000 calc(100% - 1.4rem), transparent 100%);
}
/* Two identical keyword lists side by side; translateX(-50%) loops seamlessly. */
.wm-reveal__run { display: inline-flex; width: max-content; }
.word-marquee .marquee:hover .wm-reveal__run { animation: wm-run 16s linear infinite; }
.wm-reveal__list {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.4vw, 1.15rem);
  letter-spacing: 0.03em;
  color: var(--c-text);
}
.word-marquee .marquee--reverse .wm-reveal__list { color: var(--c-brand); }
.wm-reveal__dot { font-style: normal; color: var(--c-accent); margin: 0 0.55em; }
.word-marquee .marquee--reverse .wm-reveal__dot { color: var(--c-brand); }
@keyframes wm-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .wm-reveal__br { transition: none; }
  .word-marquee .marquee:hover .wm-reveal__run { animation: none; }
}

/* FAQ (blue band; bracket on the right, spans the open item) =============== */
.faq { position: relative; display: flex; gap: var(--space-7); }
.faq__list { flex: 1; min-width: 0; }
.faq__rail { position: relative; flex: none; width: 44px; }
.faq__bracket {
  position: absolute;
  right: 0; top: 0;
  width: 30px;
  height: 64px;
  border: 5.25px solid var(--c-accent);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1), height 360ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, height;
}
.faq__item { border-top: 1px solid rgba(255, 255, 255, 0.25); }
.faq__item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-head);
  color: var(--c-brand-ink);
}
.faq__icon { flex: none; font-size: 1.6em; line-height: 1; color: var(--c-accent); transition: transform var(--transition); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 0 var(--space-6); font-size: var(--fs-body); color: var(--c-brand-ink); opacity: 0.9; max-width: 80ch; }
.faq__item summary { list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
/* Highlighted words in the questions: closed = lime type only (no box); when the
   item is open the lime box returns and the type goes blue (normal marker--lime). */
.faq__q .marker--lime { background: transparent; color: var(--c-accent); padding: 0; transition: background var(--transition), color var(--transition); }
.faq__item[open] .faq__q .marker--lime { background: var(--c-accent); color: var(--blue); padding: 0 0.12em; }

/* RECRUITING: title, button, then a two-line text to the RIGHT of the button = */
#recruiting.section { padding-block: var(--space-7); }
.recruit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  padding-block: var(--space-4);
}
.recruit__title { flex: none; max-width: 100%; font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; margin: 0; }
/* Button label centred, never wraps. */
.recruit__cta { flex: none; white-space: nowrap; text-align: center; justify-content: center; }
/* Two-line text sits directly right of the button. */
.recruit__text { flex: 1 1 320px; min-width: 0; max-width: 46ch; font-size: var(--fs-lead); color: var(--c-text); margin: 0; }
/* Pull the team section up under managed services: same ~109px team seam as ueber-uns
   (managed keeps its default bottom; only the team section's top is compacted). */
#menschen { padding-top: var(--space-5); }
/* H6: keep the Reifegradcheck section within roughly one screen */
#reifegradcheck.section { padding-block: var(--space-7); }
#reifegradcheck .sec-head { margin-bottom: var(--space-6); }

/* RESPONSIVE ============================================================== */
@media (min-width: 1024px) {
  /* These two sections just get a wider head; the title uses the shared --fs-h1
     and wraps naturally (no bespoke smaller size anymore). */
  #reifegradcheck .sec-head { max-width: none; }
  #testimonials .sec-head { max-width: none; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
  .ms-baseline { grid-template-columns: repeat(2, 1fr); }
  .faq { gap: var(--space-5); }
  .faq__rail { width: 30px; }
  /* clients: title left + button right, sub on its own row below */
  .clients__head { grid-template-columns: 1fr auto; }
  .clients__title { grid-column: 1; grid-row: 1; white-space: normal; }
  .clients__head .btn { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .clients__sub { grid-column: 1; grid-row: 2; align-self: start; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person__photo img { min-height: 220px; aspect-ratio: 4 / 3; }
  .ms-baseline { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .handover__row { grid-template-columns: 1fr; gap: var(--space-5); }
  .handover__row::before { display: none; }
  .handover__station { flex-direction: row; align-items: flex-start; gap: var(--space-5); text-align: left; padding-top: 0; }
  .handover__marker { position: relative; top: 0.15em; left: auto; transform: none; flex: 0 0 26px; }
  .faq__rail { display: none; }
  .clients__head { grid-template-columns: 1fr; }
  .clients__title { grid-column: 1; grid-row: 1; white-space: normal; }
  .clients__sub { grid-column: 1; grid-row: 2; }
  .clients__head .btn { grid-column: 1; grid-row: 3; justify-self: start; }
}

/* Photography: grayscale by default, colour on hover */
.hero__media img, .approach__media img, .quote__media img, .person__photo img { transition: filter 450ms ease; }
.hero__media:hover img, .approach:hover img, .quote:hover img, .person:hover img, .quote.is-active img { filter: grayscale(0); }

/* Cards: quiet scale added to the existing lift */
.quote:hover, .check-card:hover, .pillar:hover, .ms-card:hover,
.person:not(.person--feature):hover { transform: translateY(-4px) scale(1.01); }

/* Reifegradcheck meta line (once, under the section intro) */
.sec-head__meta { margin-top: var(--space-3); color: var(--c-text-muted); }

/* ============================================================================
   2026-06 Web + Mobile refinements (Home)
   ========================================================================== */
/* Dark: "In jedem Managed Service enthalten" + the four lines go white, not grey. */
[data-theme="dark"] .ms-baseline__caption,
[data-theme="dark"] .ms-baseline li { color: var(--c-text); }
/* Dark: --c-brand als Textfarbe (statt als Flaechenfarbe) faellt unter 4.5:1
   auf dunklem Grund. Fuer diese vier kleinen Labels/Tags deshalb weiss statt
   blau; betrifft nur Dark Mode, Light Mode (Blau auf Weiss) bleibt unveraendert. */
[data-theme="dark"] .approach__foot,
[data-theme="dark"] .ms-card .mono-label,
[data-theme="dark"] .ms-baseline__key,
[data-theme="dark"] .person__tags .tag { color: var(--c-text); }
/* Hero headline line breaks: hb-d desktop-only, hb-m mobile-only. */
.hb-m { display: none; }
@media (max-width: 640px) {
  .hb-d { display: none; }
  .hb-m { display: inline; }
}

@media (max-width: 640px) {
  /* ---- HERO: kicker, smaller image, 2-line headline, body, button; one view ---- */
  .hero { padding-block: var(--space-5) var(--space-6); }
  .hero__inner { display: flex; flex-direction: column; gap: var(--space-4); align-items: stretch; }
  /* This reorder/flex-gap pattern only applies where .hero__copy actually
     wraps the kicker/title/lead/cta (the 2-col image hero: home, mw, pp,
     ai-copilot). Pages without .hero__copy (security's plain-stacked hero)
     keep their normal margin-based spacing. */
  .hero__copy { display: contents; }
  .hero__copy .hero__kicker { order: 1; margin-bottom: 0; }
  /* Horizontal hero image (was square) frees vertical room for a bigger headline. */
  .hero__media  { order: 2; aspect-ratio: 16 / 9; width: 82%; align-self: flex-start; }
  /* absolute so the figure's aspect-ratio sets the height, not the image's intrinsic size */
  .hero__media img { position: absolute; inset: 0; }
  .hero__copy .hero__title { order: 3; margin-bottom: 0; }
  .hero__copy .hero__lead  { order: 4; margin-bottom: 0; }
  .hero__copy .btn { order: 5; align-self: flex-start; }
  /* Dialekt-Hint am "2"-Sup: rechtsbuendig statt zentriert, sonst ragt die
     (unsichtbare, aber layoutende) Blase rechts aus dem Viewport. */
  .hero__hint { left: auto; right: 0; transform: translate(0, -6px) scale(0.92); }
  .hero__sup:hover .hero__hint,
  .hero__sup:focus-visible .hero__hint { transform: translate(0, -6px) scale(1); }

  /* ---- Four-area tiles stay two-up; the managed-service cards do NOT: their
     German copy ("Schutzmassnahmen") breaks ugly in ~175px columns on phones,
     so they fall back to the core.css single column. ---- */
  #bereiche .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  #managed-services .grid-4 { gap: var(--space-4); }
  .pillar { min-height: 0; padding: var(--space-4); gap: var(--space-3); }
  .ms-card { padding: var(--space-5); gap: var(--space-3); }
  .pillar__tags { gap: var(--space-2) var(--space-3); }

  /* ---- Reifegrad cards: compact so all three land in roughly one view ---- */
  #reifegradcheck .grid-3 { gap: var(--space-4); }
  .check-card { padding: var(--space-5); gap: var(--space-3); }

  /* ---- Seiten-Klammer laenger auf Mobil: die kompakten Karten sind kuerzer,
     der feste 24px-Einzug (Desktop-Wert) liess davon zu wenig sichtbare Hoehe
     uebrig, wirkte wie ein kurzer Eck-Strich statt einer durchgehenden Klammer. ---- */
  .check-card::before, .check-card::after,
  .ms-card::before, .ms-card::after { top: var(--space-3); bottom: var(--space-3); }

  /* ---- Logo rail: swipe only (hide the arrows) ---- */
  .clients__nav { display: none; }

  /* ---- Word marquee: tighter dots/words, a touch smaller ---- */
  .word-marquee__word, .word-marquee__sep { font-size: clamp(2rem, 9vw, 3rem); }
  .word-marquee .marquee__track { gap: var(--space-4); }

  /* ---- Approach: divider lines go horizontal between the stacked cards ---- */
  .grid-3 .approach + .approach::before {
    left: 0; right: 0; top: calc(var(--space-6) / -2); bottom: auto;
    width: auto; height: 1px;
  }

  /* ---- References: logo above the author name, compact, one card per swipe ---- */
  .cases { grid-auto-columns: 86%; }
  .quote { padding: var(--space-4); gap: var(--space-2); }
  .quote__head { display: contents; }
  .quote__media { order: 1; height: clamp(104px, 24vw, 140px); }
  .quote__company { order: 2; }
  .quote__tags { order: 3; }
  .quote__tags .tag { padding-top: 2px; padding-bottom: 2px; }
  .quote__text { order: 4; line-height: 1.4; }
  .quote__link { order: 5; align-self: flex-start; margin-top: var(--space-1); }
  .quote__logo--lg { height: 46px; }
  .quote__foot { order: 6; padding-top: var(--space-3); }

  /* ---- FAQ: #9 die animierte lime-Klammer sitzt mobil RECHTS vom Antworttext
     (] statt [), beginnend unter der Frage-Zeile. ---- */
  .faq__q { padding: var(--space-4) 0; }
  .faq__a { position: relative; padding-bottom: var(--space-5); }
  .faq__item[open] .faq__a { padding-right: 18px; }
  .faq__item[open] .faq__a::before {
    content: ""; position: absolute; right: 0; top: 0; bottom: var(--space-3);
    width: 11px; border: 4px solid var(--c-accent); border-left: 0; border-radius: 0 9px 9px 0;
    transform-origin: top; animation: faqBracketDraw 320ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* ---- Handover: vertical timeline rail + the "2" jumps between steps (home.js) ---- */
  .handover__row { grid-template-columns: 1fr; gap: var(--space-6); position: relative; }
  .handover__row::before {
    display: block;
    top: 14px; bottom: 30px; left: 12px; right: auto;
    width: 2px; height: auto;
  }
  .handover__station { flex-direction: row; align-items: flex-start; gap: var(--space-5); text-align: left; padding: 0; }
  .handover__marker { position: relative; top: 0.1em; left: auto; transform: none; flex: 0 0 26px; }
  .handover.is-mobile .handover__station { opacity: 0.5; transition: opacity var(--transition); }
  .handover.is-mobile .handover__station.is-active { opacity: 1; }
}

/* Mobile FAQ answer bracket: draw it in from the top when the item opens. */
@keyframes faqBracketDraw { from { transform: scaleY(0); opacity: 0.3; } to { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .faq__item[open] .faq__a::before { animation: none; } }

/* ============================================================================
   Two-image swap wiring (Home): graded B/W default, colour on hover.
   The photo files are already graded, so the single-image grayscale filter set
   further up is switched off for these slots and the reveal is done by fading in
   the colour layer on the same hover trigger.
   ========================================================================== */
.hero__media img, .approach__media img, .person__photo img { filter: none; }
/* Service tiles: the base fills the bracket box like the photos do. */
.pillar__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
/* The colour/hover layer matches each frame's corner radius (person is clipped
   by the card's own overflow, so it needs none). */
.hero__media .swap__over { border-radius: var(--radius-lg); }
.approach__media .swap__over { border-radius: var(--radius-lg); }
.pillar__media .swap__over { border-radius: var(--radius-sm); }

@media (hover: hover) {
  .hero__media:hover .swap__over,
  .approach:hover .swap__over,
  .person:hover .swap__over,
  .pillar:hover .swap__over { opacity: 1; }
}
/* Touch: no colour fallback. Photos stay graded B/W while scrolling; the colour
   view is reached by tapping the image open in the lightbox (scripts/lightbox.js).
   Tiles are excluded anyway (the pillar card stays blue on touch). */

/* Service tiles: the pillar card hovers to a WHITE surface in light mode and a
   DARK surface in dark mode, so dark mode swaps in the black-bg tile (Frame
   100-103) instead of the white one (Frame 95/97/98/99). */
.pillar__media .tile-dark {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--radius-sm);
  opacity: 0; transition: opacity 450ms ease; z-index: 1;
}
@media (hover: hover) {
  [data-theme="dark"] .pillar:hover .swap__over { opacity: 0; }
  [data-theme="dark"] .pillar:hover .tile-dark  { opacity: 1; }
}
