/* ============================================================
   KenyaCares Web3 — Design System
   Mix aus web1 (warm, founder-driven) + web2 (Tab-Navigation)
   ============================================================ */

/* ---------- Self-hosted Google Fonts (DSGVO-konform) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: fallback;
  src: url('assets/fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: fallback;
  src: url('assets/fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: fallback;
  src: url('assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: fallback;
  src: url('assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@layer reset, tokens, base, layout, components, utilities;

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
  body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; text-wrap: balance; }
  p { text-wrap: pretty; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }
  button { border: none; background: none; cursor: pointer; }
  :focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: var(--ink); color: var(--cream); }
}

/* ---------- Design Tokens ---------- */
@layer tokens {
  :root {
    /* Farben — Kenya-inspiriert: warm, erdig, sonnenverbrannt */
    --cream:        #faf6ef;
    --cream-soft:   #f4ecdf;
    --paper:        #ffffff;
    --ink:          #1a120c;
    --ink-soft:     #3a2d22;
    --muted:        #7a6a58;
    --muted-light:  #a8998a;
    --line:         #e7dfd1;
    --line-soft:    #f0e9db;

    /* Welten */
    --health:        #0f5d66;   /* tiefes Teal, Kenya-Meer */
    --health-ink:    #0a3f46;
    --health-soft:   #dbeced;
    --health-tint:   #eef6f6;

    --hosp:          #c8501e;   /* Terracotta, Savannensonne */
    --hosp-ink:      #8d3914;
    --hosp-soft:     #f5dec8;
    --hosp-tint:     #faeee2;

    /* Status */
    --go:            #4a7c59;
    --go-soft:       #e0ece3;
    --stop:          #c84a2f;
    --stop-soft:     #f4dcd4;

    /* Sonnen-Akzent */
    --sun:           #e9a038;

    /* Theme-Defaults */
    --accent:        var(--ink);
    --accent-ink:    var(--ink);
    --accent-soft:   var(--cream-soft);
    --accent-tint:   var(--cream);

    /* Typografie */
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", "Times New Roman", Georgia, serif;

    --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.88rem);
    --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
    --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 1.95rem);
    --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 2.75rem);
    --step-4:  clamp(2.4rem, 1.9rem + 2.5vw, 3.9rem);
    --step-5:  clamp(3rem, 2.2rem + 4vw, 5.5rem);
    --step-6:  clamp(3.4rem, 2.5rem + 4.8vw, 6.4rem);

    --radius-sm: 6px;
    --radius:    14px;
    --radius-lg: 24px;
    --radius-xl: 36px;

    --container: 1280px;
    --container-wide: 1440px;
    --gutter: clamp(1rem, 0.7rem + 1.5vw, 2rem);

    --shadow-sm: 0 1px 2px rgba(26, 18, 12, 0.06), 0 2px 6px rgba(26, 18, 12, 0.04);
    --shadow:    0 6px 20px -8px rgba(26, 18, 12, 0.15), 0 2px 6px rgba(26, 18, 12, 0.06);
    --shadow-lg: 0 24px 60px -20px rgba(26, 18, 12, 0.25), 0 8px 20px -8px rgba(26, 18, 12, 0.1);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  }

  body[data-theme="health"] {
    --accent: var(--health);
    --accent-ink: var(--health-ink);
    --accent-soft: var(--health-soft);
    --accent-tint: var(--health-tint);

    /* Subtle cool-blue shift of the neutral palette */
    --cream:        #f3f7f8;
    --cream-soft:   #e6eef0;
    --line:         #d9e3e5;
    --line-soft:    #ecf1f2;
  }
  body[data-theme="hospitality"] {
    --accent: var(--hosp);
    --accent-ink: var(--hosp-ink);
    --accent-soft: var(--hosp-soft);
    --accent-tint: var(--hosp-tint);

    /* Subtle warmer terracotta shift of the neutral palette */
    --cream:        #fbf2e8;
    --cream-soft:   #f4e3cf;
    --line:         #ecdac3;
    --line-soft:    #f5e8d4;
  }
}

/* ---------- Base ---------- */
@layer base {
  body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 144, "SOFT" 50;
  }
  h1 { font-size: var(--step-6); font-weight: 300; }
  h2 { font-size: var(--step-4); font-weight: 400; }
  h3 { font-size: var(--step-2); font-weight: 500; }
  h4 { font-size: var(--step-1); font-weight: 600; }
  .display-serif { font-family: var(--font-display); font-style: italic; font-weight: 300; }
  p { color: var(--ink-soft); }
  strong { font-weight: 600; color: var(--ink); }
  main { display: block; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(32px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

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

/* ---------- Layout ---------- */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .container-wide { max-width: var(--container-wide); }
  .container-narrow { max-width: 820px; }

  section { padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); }

  .stack > * + * { margin-top: 1rem; }
  .stack-lg > * + * { margin-top: 2rem; }
}

/* ============================================================
   COMPONENTS
   ============================================================ */
@layer components {

  /* ---------- Header (logo · glass-nav · right cluster) ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, color-mix(in srgb, var(--cream) 95%, transparent), color-mix(in srgb, var(--cream) 78%, transparent));
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  }
  .site-header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding-block: 0.9rem;
    position: relative;
  }

  /* Logo (left) */
  .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .logo img {
    height: 38px;
    display: block;
    transition: transform 0.4s var(--ease);
  }
  .logo:hover img { transform: scale(1.04) rotate(-2deg); }

  /* ---------- Glass Navigation Bar with sliding pill ---------- */
  .glass-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    justify-self: center;
    padding: 0.32rem;
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.42) 100%);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.9),
      inset 0 -1px 1px rgba(26,18,12,0.04),
      0 1px 2px rgba(26,18,12,0.05),
      0 12px 28px -16px rgba(26,18,12,0.18);
    isolation: isolate;
  }

  /* The animated pill (sits behind items)
     Base is whitish glass. Two tint layers (::before = health, ::after = hospitality)
     crossfade in/out via opacity for fluid color transitions while the pill slides. */
  .glass-pill {
    position: absolute;
    top: 0.32rem;
    bottom: 0.32rem;
    left: 0;
    width: 0;
    transform: translateX(0);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.65));
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,1),
      0 4px 14px -4px rgba(26,18,12,0.12),
      0 2px 6px -2px rgba(26,18,12,0.06);
    transition:
      transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
      width 0.55s cubic-bezier(0.4, 0, 0.2, 1),
      border-color 0.55s var(--ease),
      box-shadow 0.55s var(--ease);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .glass-pill.is-ready { opacity: 1; }

  /* Suppress transitions when JS sets the initial position on page load /
     resize / font reflow — so the pill doesn't fly in from the left. */
  .glass-pill.no-transition,
  .glass-pill.no-transition::before,
  .glass-pill.no-transition::after { transition: none !important; }

  /* Tint overlays — crossfade via opacity for fluid color blends */
  .glass-pill::before,
  .glass-pill::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .glass-pill::before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--health) 92%, white), var(--health));
  }
  .glass-pill::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--hosp) 92%, white), var(--hosp));
  }

  /* When tinted, fade the appropriate overlay in and shift border / shadow */
  .glass-pill.tint-health::before      { opacity: 1; }
  .glass-pill.tint-hospitality::after  { opacity: 1; }

  .glass-pill.tint-health {
    border-color: color-mix(in srgb, var(--health) 55%, white);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.35),
      0 8px 20px -6px color-mix(in srgb, var(--health) 55%, transparent),
      0 2px 6px -2px rgba(26,18,12,0.1);
  }
  .glass-pill.tint-hospitality {
    border-color: color-mix(in srgb, var(--hosp) 55%, white);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.35),
      0 8px 20px -6px color-mix(in srgb, var(--hosp) 55%, transparent),
      0 2px 6px -2px rgba(26,18,12,0.1);
  }

  /* Items inside the glass nav */
  .glass-item {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
    transition: color 0.35s var(--ease);
  }
  .glass-item:hover { color: var(--ink); }
  .glass-item.is-active { color: var(--ink); font-weight: 600; }

  /* When the glass-pill is tinted, the *hovered/active* world item flips text to cream */
  .glass-nav[data-pill-state="hover-health"] .glass-item[data-tint="health"],
  .glass-nav[data-pill-state="active-health"] .glass-item.is-active[data-tint="health"] {
    color: var(--cream);
  }
  .glass-nav[data-pill-state="hover-hospitality"] .glass-item[data-tint="hospitality"],
  .glass-nav[data-pill-state="active-hospitality"] .glass-item.is-active[data-tint="hospitality"] {
    color: var(--cream);
  }

  .glass-item .glass-ico {
    width: 15px; height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .glass-item .glass-ico svg { width: 100%; height: 100%; }

  /* "Apply now" CTA accent in nav — subtle outline, English only */
  .glass-item.glass-cta {
    color: var(--hosp);
    font-weight: 600;
  }
  .glass-item.glass-cta::after {
    content: "→";
    margin-left: 0.15rem;
    transition: transform 0.3s var(--ease);
  }
  .glass-item.glass-cta:hover::after { transform: translateX(2px); }

  .glass-divider {
    width: 1px;
    height: 18px;
    background: linear-gradient(180deg, transparent, rgba(26,18,12,0.16), transparent);
    margin-inline: 0.3rem;
  }

  /* Right cluster (lang + burger) */
  .header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-self: end;
  }

  /* Language switcher — small glass pill */
  .lang-switch {
    display: inline-flex;
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 999px;
    padding: 0.22rem;
    gap: 0.1rem;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.9),
      0 6px 16px -10px rgba(26,18,12,0.18);
  }
  .lang-switch a {
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.25s var(--ease);
    line-height: 1;
  }
  .lang-switch a:hover { color: var(--ink); }
  .lang-switch a.is-active {
    background: var(--ink);
    color: var(--cream);
    box-shadow: 0 2px 6px -2px rgba(26,18,12,0.25);
  }

  /* Mobile burger toggle */
  .nav-toggle { display: none; }
  .nav-burger {
    display: none;
    width: 2.5rem; height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
    box-shadow: 0 6px 16px -10px rgba(26,18,12,0.18);
  }
  .nav-burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ink);
    position: relative;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-burger span::before,
  .nav-burger span::after {
    content: ""; position: absolute; left: 0;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: top 0.3s, transform 0.3s;
  }
  .nav-burger span::before { top: -6px; }
  .nav-burger span::after  { top: 6px; }
  .nav-toggle:checked ~ .container .nav-burger span,
  .nav-toggle:checked + .container .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .container .nav-burger span::before,
  .nav-toggle:checked + .container .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .container .nav-burger span::after,
  .nav-toggle:checked + .container .nav-burger span::after { top: 0; transform: rotate(-45deg); }

  /* Mobile drawer */
  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    flex-direction: column;
    gap: 0.1rem;
    box-shadow: 0 20px 40px -20px rgba(26,18,12,0.2);
  }
  .mobile-nav a {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    color: var(--ink-soft);
  }
  .mobile-nav a:hover { background: var(--cream-soft); color: var(--ink); }
  .mobile-nav a.is-active { background: var(--ink); color: var(--cream); }
  .mobile-nav a.mob-health.is-active { background: var(--health); color: var(--cream); }
  .mobile-nav a.mob-hosp.is-active { background: var(--hosp); color: var(--cream); }
  .mobile-nav hr { border: 0; height: 1px; background: var(--line); margin: 0.4rem 0; }
  .mobile-lang {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.3rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    align-self: flex-start;
    margin-top: 0.4rem;
  }
  .mobile-lang a { padding: 0.35rem 0.65rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
  .mobile-lang a.is-active { background: var(--ink); color: var(--cream); }

  @media (max-width: 1100px) {
    .glass-nav { display: none; }
    .nav-burger { display: inline-flex; }
    .lang-switch { display: none; }
    .site-header .container { grid-template-columns: auto 1fr auto; }
    .nav-toggle:checked ~ .container .mobile-nav,
    .nav-toggle:checked + .container .mobile-nav { display: flex; }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    padding-block: clamp(4.5rem, 2.5rem + 7vw, 8rem) clamp(3.5rem, 2rem + 5vw, 6rem);
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 80% -10%, var(--accent-tint) 0%, transparent 60%),
      radial-gradient(ellipse 80% 50% at 10% 100%, var(--cream-soft) 0%, transparent 55%);
    z-index: 0;
    pointer-events: none;
  }
  .hero > .container { position: relative; z-index: 1; }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-ink);
    margin-bottom: 1.75rem;
  }
  .hero-eyebrow::before {
    content: ""; width: 2.5rem; height: 1px; background: currentColor;
  }
  .hero-title {
    font-size: var(--step-6);
    font-weight: 300;
    max-width: 16ch;
  }
  .hero-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
  }
  .hero-lead {
    font-size: var(--step-1);
    max-width: 55ch;
    margin-top: 1.4rem;
    color: var(--ink-soft);
    line-height: 1.45;
  }
  .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.92rem 1.55rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.97rem;
    transition: transform 0.2s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
    cursor: pointer;
  }
  .btn-primary {
    background: var(--ink);
    color: var(--cream);
    box-shadow: var(--shadow);
  }
  .btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  .btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .btn-ghost:hover { background: var(--paper); border-color: var(--ink); }
  .btn-accent {
    background: var(--accent);
    color: var(--cream);
    box-shadow: var(--shadow);
  }
  .btn-accent:hover { background: var(--accent-ink); transform: translateY(-2px); }
  .btn svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
  .btn:hover svg { transform: translateX(3px); }

  /* ---------- Section Heading ---------- */
  .section-head {
    display: grid;
    gap: 1rem;
    margin-bottom: clamp(2.5rem, 1.5rem + 2vw, 4rem);
  }
  .section-eyebrow {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-ink);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }
  .section-eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  }
  .section-head h2 { max-width: 22ch; }
  .section-head p { max-width: 60ch; font-size: var(--step-1); color: var(--muted); }

  /* ---------- Stats ---------- */
  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: clamp(2rem, 1rem + 3vw, 3.5rem);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
  }
  .stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 1.8rem + 3vw, 4.2rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
  }
  .stat-number em { color: var(--accent); font-style: normal; }
  .stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    margin-top: 0.4rem;
  }

  /* ---------- Worlds Gateway (two-world card on homepage) ---------- */
  .worlds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  @media (max-width: 780px) {
    .worlds-grid { grid-template-columns: 1fr; }
  }
  .world-card {
    position: relative;
    padding: clamp(2rem, 1.2rem + 3vw, 3.5rem);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  }
  .world-card::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 90% 70% at 100% 100%, var(--w-accent-ink) 0%, var(--w-accent) 50%, transparent 100%),
      linear-gradient(140deg, var(--w-accent) 0%, var(--w-accent-ink) 100%);
    z-index: -2;
  }
  .world-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .world-card.health { --w-accent: var(--health); --w-accent-ink: var(--health-ink); }
  .world-card.hospitality { --w-accent: var(--hosp); --w-accent-ink: var(--hosp-ink); }
  .world-card h3 {
    font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.6rem);
    color: var(--cream);
    font-weight: 300;
    letter-spacing: -0.03em;
  }
  .world-card h3 em { color: var(--sun); font-weight: 400; }
  .world-card p {
    color: rgba(255,255,255,0.85);
    font-size: var(--step-1);
    max-width: 38ch;
    margin-top: 1rem;
  }
  .world-card .world-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2.5rem;
    color: var(--cream);
  }
  .world-count {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.03em;
  }
  .world-count small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.78;
    margin-top: 0.3rem;
  }
  .world-arrow {
    width: 3.4rem; height: 3.4rem;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease), background 0.3s;
  }
  .world-card:hover .world-arrow { transform: translate(6px, -6px) rotate(-12deg); background: var(--sun); }
  .world-arrow svg { width: 1.4rem; height: 1.4rem; }

  /* ---------- Filter Bar (above grid) ---------- */
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
  .filter-info strong { font-size: 1.1rem; color: var(--ink); font-family: var(--font-display); font-weight: 500; }
  .filter-info span { color: var(--muted); font-size: 0.92rem; margin-left: 0.5rem; }
  .filter-legend { display: inline-flex; gap: 1.5rem; }
  .legend-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: var(--ink-soft);
    font-weight: 500;
  }
  .legend-dot::before {
    content: "";
    width: 10px; height: 10px;
    border-radius: 50%;
  }
  .legend-dot.go::before { background: var(--go); box-shadow: 0 0 0 3px rgba(74,124,89,0.22); }
  .legend-dot.stop::before { background: var(--stop); box-shadow: 0 0 0 3px rgba(200,74,47,0.22); }

  /* ---------- Quartett-Karten Grid ---------- */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
  }
  @media (min-width: 1100px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
  }

  .flip-card {
    position: relative;
    aspect-ratio: 3 / 4.3;
    perspective: 1400px;
  }
  .flip-inner {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.85s var(--ease);
  }
  .flip-card:hover .flip-inner,
  .flip-card:focus-within .flip-inner {
    transform: rotateY(180deg);
  }
  .flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
  .card-front { display: flex; flex-direction: column; }
  .card-photo {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    background: var(--accent-soft);
  }
  .card-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
  }
  .flip-card:hover .card-photo img { transform: scale(1.04); }
  .card-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 33%;
    background: linear-gradient(to top,
      rgba(26,18,12,0.85) 0%,
      rgba(26,18,12,0.70) 20%,
      rgba(26,18,12,0.40) 45%,
      rgba(26,18,12,0.12) 70%,
      transparent 100%);
  }
  /* Placeholder when no portrait is available yet */
  .card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent-tint) 100%);
  }
  .card-photo-placeholder .ph-initial {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(5rem, 4rem + 2vw, 7rem);
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
    opacity: 0.65;
  }
  .card-corner-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    padding: 0.35rem 0.7rem 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(8px);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    z-index: 2;
  }
  .card-corner-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
  .card-corner-badge.go .dot { background: var(--go); box-shadow: 0 0 0 4px rgba(74,124,89,0.22); }
  .card-corner-badge.stop .dot { background: var(--stop); box-shadow: 0 0 0 4px rgba(200,74,47,0.22); }

  .card-name-block {
    position: absolute;
    left: 1.25rem; right: 1.25rem; bottom: 1rem;
    color: var(--cream);
    z-index: 2;
  }
  .card-name {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .card-name em { color: var(--sun); font-style: italic; }
  .card-location {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-top: 0.4rem;
  }

  .card-meta {
    padding: 1.1rem 1.25rem 1.25rem;
    background: var(--paper);
  }
  .card-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.85rem;
  }
  .card-fact { display: flex; flex-direction: column; gap: 0.1rem; }
  .fact-label {
    font-size: 0.64rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .fact-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.15;
  }
  .card-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 500;
  }
  .card-status.go { background: var(--go-soft); color: var(--go); }
  .card-status.stop { background: var(--stop-soft); color: var(--stop); }
  .card-status .status-icon {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
  }

  /* Rückseite */
  .card-back {
    transform: rotateY(180deg);
    padding: 0;
    background: var(--accent-tint);
    overflow: hidden;
  }
  .card-back h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    font-family: var(--font-display);
  }
  .card-back h3 em { color: var(--accent); }
  .card-back-profile {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-soft);
    flex-grow: 1;
    overflow-y: auto;
    max-height: 11rem;
  }
  .card-skills {
    display: none;
  }
  .skill-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--cream-soft);
    color: var(--muted);
  }
  .card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--cream);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
    width: 100%;
    margin-top: auto;
  }
  .card-cta:hover { background: var(--accent); }
  .card-cta:disabled, .card-cta.is-disabled {
    background: var(--line);
    color: var(--muted);
    cursor: not-allowed;
  }
  .card-back-note {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    padding-top: 0.4rem;
    border-top: 1px dashed var(--line);
  }

  /* Card back background (first real photo at 10% opacity) */
  .card-back-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0.08;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
  }
  .card-back-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
  }

  /* ---------- Card-back horizontal panel track ---------- */
  .card-back-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
  }

  .card-back-panel {
    flex: 0 0 100%;
    position: relative;
    min-height: 100%;
  }
  .card-panel-text {
    padding: var(--card-pad, 1.4rem);
    display: flex;
    flex-direction: column;
  }
  .card-panel-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
  }
  .card-panel-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
  }

  /* Back / Forward buttons on photo panels */
  .card-panel-nav {
    position: absolute;
    top: 0.75rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    pointer-events: auto;
  }
  .card-panel-nav:hover { background: rgba(0,0,0,0.8); }
  .card-panel-nav svg { width: 14px; height: 14px; }
  .card-panel-back { left: 0.75rem; }
  .card-panel-fwd  { right: 0.75rem; }

  /* "Fotos →" button — identical to .card-cta */
  .card-photos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--cream);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
    width: 100%;
    margin-top: auto;
  }
  .card-photos-btn:hover { background: var(--accent); }

  /* Nav dots overlay */
  .card-panel-dots {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
    z-index: 4;
    pointer-events: none;
  }
  .panel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.6);
    pointer-events: auto;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
  }
  .panel-dot.is-active {
    background: var(--cream);
    transform: scale(1.35);
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
  }

  /* ---------- Mission / Quote Block ---------- */
  .mission {
    position: relative;
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.2rem + 3vw, 4.5rem);
    overflow: hidden;
    isolation: isolate;
  }
  .mission::before {
    content: "";
    position: absolute;
    inset: -50% -10% auto auto;
    width: 55%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sun) 0%, transparent 60%);
    opacity: 0.25;
    z-index: -1;
  }
  .mission-quote {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem);
    line-height: 1.25;
    font-weight: 300;
    letter-spacing: -0.02em;
    max-width: 30ch;
    color: var(--cream);
  }
  .mission-quote em { color: var(--sun); font-weight: 400; font-style: italic; }
  .mission-cite {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--cream-soft);
  }
  .mission-cite .avatar {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sun), var(--hosp));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 400;
  }
  .mission-cite .avatar img { width: 100%; height: 100%; object-fit: cover; }

  /* ---------- Founder Block (Andrew + Ivy) ---------- */
  .founder-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
    align-items: center;
  }
  @media (max-width: 880px) {
    .founder-duo { grid-template-columns: 1fr; }
    .founder-duo > * { order: 0 !important; }
    .founder-duo > .founder-photo-pair { order: -1 !important; width: 60%; margin-inline: auto; }
  }
  /* On desktop: text first (left), photo second (right) */
  .founder-duo-reverse > .founder-text { order: 1; }
  .founder-duo-reverse > .founder-photo-pair { order: 2; }
  .founder-photo-pair {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .founder-photo-pair .fp {
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream-soft);
    box-shadow: var(--shadow);
  }
  .founder-photo-pair .fp.is-shifted { margin-top: 2rem; }
  .founder-photo-pair img {
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .founder-photo-pair .fp-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-soft), var(--cream-soft));
    color: var(--accent);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 3rem;
    font-weight: 300;
  }
  .founder-text .eyebrow {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-ink);
    margin-bottom: 1.2rem;
    display: block;
  }
  .founder-text h2 { margin-bottom: 1.25rem; }
  .founder-text p {
    font-size: var(--step-0);
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 1rem;
  }
  .founder-sign {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--accent);
    margin-top: 0.5rem;
    display: inline-block;
  }

  /* ---------- Feature Cards ---------- */
  .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }
  .feature {
    padding: 1.7rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .feature-icon {
    width: 2.6rem; height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    margin-bottom: 1rem;
  }
  .feature-icon svg { width: 1.4rem; height: 1.4rem; }
  .feature h4 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  .feature p { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

  /* ---------- Process Steps ---------- */
  .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
  }
  .process-step {
    position: relative;
    padding: 1.8rem 1.6rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    counter-increment: step;
  }
  .process-step::before {
    content: "0" counter(step);
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
    opacity: 0.3;
    display: block;
    margin-bottom: 0.8rem;
  }
  .process-step h4 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  .process-step p { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

  /* ---------- Timeline (2-col Grid on desktop) ---------- */
  .timeline {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .timeline::before { display: none; }
  @media (max-width: 640px) {
    .timeline { grid-template-columns: 1fr; }
  }
  .tl-step {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.5rem;
    align-items: flex-start;
  }
  @media (max-width: 640px) { .tl-step { grid-template-columns: 3rem 1fr; gap: 1rem; } }
  .tl-num {
    width: 4.5rem; height: 4.5rem;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--accent);
    position: relative;
    z-index: 1;
  }
  @media (max-width: 640px) { .tl-num { width: 3rem; height: 3rem; font-size: 1.1rem; } }
  .tl-body {
    padding: 1.6rem 1.8rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }
  .tl-body h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  .tl-body p { color: var(--ink-soft); margin-bottom: 0.75rem; }
  .tl-body ul { margin-top: 0.75rem; padding-left: 0; }
  .tl-body ul li {
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    color: var(--ink-soft);
    font-size: 0.92rem;
  }
  .tl-body ul li::before {
    content: "✓";
    position: absolute; left: 0;
    color: var(--accent);
    font-weight: 600;
  }

  /* Timeline CTA card (sits beside step 7) */
  .tl-cta {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tl-cta-inner {
    padding: 2rem 2.2rem;
    background: linear-gradient(145deg, var(--accent), var(--accent-ink));
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 100%;
    justify-content: center;
  }
  .tl-cta-inner h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0;
  }
  .tl-cta-inner p {
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
    max-width: 32ch;
    line-height: 1.5;
  }
  .tl-cta-inner .btn-primary {
    background: var(--cream);
    color: var(--accent-ink);
    margin-top: 0.5rem;
  }
  .tl-cta-inner .btn-primary:hover {
    background: var(--paper);
    box-shadow: var(--shadow-lg);
  }

  /* ---------- Legal 2-Column Grid ---------- */
  .legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  @media (max-width: 768px) {
    .legal-grid { grid-template-columns: 1fr; }
  }
  .legal-card {
    padding: 1.8rem 2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }
  .legal-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.75rem;
  }
  .legal-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 1rem;
    margin-bottom: 0.25rem;
  }
  .legal-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* ---------- Privacy Policy Full Text ---------- */
  .privacy-full h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
  }
  .privacy-full h3:first-child { margin-top: 0; }
  .privacy-full p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.6rem;
    color: var(--ink-soft);
  }
  .privacy-full p strong {
    color: var(--ink);
  }
  .privacy-full ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
  }
  .privacy-full ul li {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
    color: var(--ink-soft);
  }
  .privacy-full ul li strong {
    color: var(--ink);
  }
  .privacy-full a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .privacy-full a:hover {
    color: var(--accent-ink);
  }

  /* ---------- Team Grid ---------- */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }
  /* 2-column row (Ivy + Andrew lead row) */
  .team-grid-2 {
    grid-template-columns: 1fr 1fr;
    max-width: 760px;
    margin-inline: auto;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  }
  /* Lead row gets larger portraits and slightly larger headings */
  .team-grid-lead .team-photo { max-width: 220px; }
  .team-grid-lead .team-member h4 { font-size: 1.4rem; }
  /* 3-column row (Nina + Maja + Nancy) */
  .team-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 980px;
    margin-inline: auto;
    gap: clamp(1.25rem, 1rem + 1vw, 2.25rem);
  }
  @media (max-width: 780px) {
    .team-grid-2 { grid-template-columns: 1fr; max-width: 360px; }
    .team-grid-3 { grid-template-columns: 1fr; max-width: 360px; }
  }
  @media (min-width: 781px) and (max-width: 980px) {
    .team-grid-3 { grid-template-columns: 1fr 1fr; }
  }
  .team-member { text-align: center; }
  .team-photo {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    max-width: 180px;
    background: var(--cream-soft);
    box-shadow: 0 8px 24px rgba(15, 93, 102, 0.08);
  }
  .team-photo img { width: 100%; height: 100%; object-fit: cover; }
  .team-photo .placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--accent);
    background: var(--accent-soft);
  }
  .team-member h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
  }
  .team-role {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
  }
  .team-bio { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

  /* ---------- CTA Block ---------- */
  .cta-block {
    text-align: center;
    padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    background: var(--accent);
    color: var(--cream);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
  }
  .cta-block::before {
    content: "";
    position: absolute;
    inset: auto -10% -50% auto;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sun) 0%, transparent 60%);
    opacity: 0.3;
  }
  .cta-block h2 {
    color: var(--cream);
    margin-bottom: 1rem;
    max-width: 24ch;
    margin-inline: auto;
  }
  .cta-block h2 em { color: var(--sun); font-style: italic; }
  .cta-block p {
    color: rgba(255,255,255,0.85);
    max-width: 50ch;
    margin: 0 auto 1.75rem;
    font-size: var(--step-1);
  }
  .cta-block .btn-primary {
    background: var(--cream);
    color: var(--ink);
  }
  .cta-block .btn-primary:hover {
    background: var(--sun);
    color: var(--ink);
  }

  /* ---------- Forms ---------- */
  .form { display: grid; gap: 1rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  @media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
  .form-field { display: flex; flex-direction: column; gap: 0.4rem; }
  .form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.25s, box-shadow 0.25s;
  }
  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  }
  .form-field textarea { min-height: 120px; resize: vertical; }
  .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.5;
  }
  .form-check input[type="checkbox"] { margin-top: 0.25rem; }

  /* Radio pill group */
  .radio-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .radio-pills label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
  }
  .radio-pills label:hover { border-color: var(--accent); }
  .radio-pills input[type="radio"] { display: none; }
  .radio-pills input[type="radio"]:checked + span { color: var(--cream); }
  .radio-pills label:has(input[type="radio"]:checked) {
    background: var(--accent);
    color: var(--cream);
    border-color: var(--accent);
  }

  /* ---------- Apply Form (structured card layout) ---------- */
  .apply-form {
    display: grid;
    gap: 1.5rem;
  }
  .apply-grid {
    display: grid;
    gap: 1.5rem;
  }
  .apply-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  @media (max-width: 900px) {
    .apply-grid-2 { grid-template-columns: 1fr; }
  }

  .apply-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .apply-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.2rem 1.6rem;
    background: var(--ink);
    color: var(--cream);
  }
  .apply-card-head h3 {
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    line-height: 1.3;
    color: var(--cream);
  }
  .apply-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--sun);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    flex-shrink: 0;
    line-height: 1;
  }
  .apply-card-body {
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  }

  .apply-subsection {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
  .apply-subsection-title {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  /* Inner grids for the Documents card */
  .apply-grid-3-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
  .apply-grid-2-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
  @media (max-width: 780px) {
    .apply-grid-3-inner { grid-template-columns: 1fr; }
    .apply-grid-2-inner { grid-template-columns: 1fr; }
  }

  /* ---------- Modal Overlay (Kennenlernen form) ---------- */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 12, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .modal-box {
    background: var(--cream);
    border-radius: var(--radius-xl);
    max-width: 620px;
    width: 100%;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: clamp(1.75rem, 1.5rem + 2vw, 3rem);
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .modal-overlay.is-open .modal-box {
    transform: translateY(0) scale(1);
  }
  .modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s;
  }
  .modal-close:hover { background: var(--cream-soft); }
  .modal-header { margin-bottom: 1.5rem; padding-right: 3rem; }
  .modal-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.6rem;
    display: block;
  }
  .modal-header h2 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
    margin-bottom: 0.5rem;
  }
  .modal-header h2 em { color: var(--accent); font-style: italic; }
  .modal-header p { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

  .modal-info {
    background: var(--accent-tint);
    border-left: 3px solid var(--accent);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.86rem;
    color: var(--ink-soft);
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  /* ---------- Footer ---------- */
  .site-footer {
    background: var(--ink);
    color: var(--cream-soft);
    padding-block: 4rem 2rem;
    margin-top: 4rem;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  @media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
  }
  .footer-brand .logo img {
    height: 38px; filter: brightness(0) invert(1); opacity: 0.92;
  }
  .footer-brand p {
    color: rgba(255,255,255,0.65);
    margin-top: 1rem;
    font-size: 0.94rem;
    line-height: 1.6;
    max-width: 38ch;
  }
  .footer-heading {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
  }
  .footer-col ul li { margin-bottom: 0.55rem; }
  .footer-col ul a {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    transition: color 0.2s;
  }
  .footer-col ul a:hover { color: var(--sun); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
  }
  .footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
  .footer-bottom-links a {
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
  }
  .footer-bottom-links a:hover { color: var(--sun); }
  .flag-ke {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.86rem;
  }
  .flag-ke svg { width: 22px; height: auto; border-radius: 2px; }

  /* ---------- Academy Section ---------- */
  .academy-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  @media (max-width: 780px) { .academy-locations { grid-template-columns: 1fr; } }
  .location-card {
    padding: 2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .location-card .city-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--accent-soft);
    color: var(--accent-ink);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: flex-start;
  }
  .location-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
  }
  .location-card .features-mini {
    list-style: none;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
  .location-card .features-mini li {
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative;
    color: var(--ink-soft);
    font-size: 0.92rem;
  }
  .location-card .features-mini li::before {
    content: "→";
    position: absolute; left: 0;
    color: var(--accent);
  }

  /* ---------- Two-column Story Block (Andrew + Ivy intersect) ---------- */
  .story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 1rem + 4vw, 4rem);
    align-items: center;
  }
  @media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; } }

  /* ---------- Reason Cards (Why Kenya — editorial layout) ---------- */
  .reason-stack {
    display: grid;
    gap: 0;
  }
  .reason-card {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) 2fr;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
    border-bottom: 1px solid var(--line);
    align-items: start;
  }
  .reason-card:first-child {
    border-top: 1px solid var(--line);
  }
  .reason-left {
    position: sticky;
    top: 6rem;
  }
  .reason-num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem);
    font-weight: 300;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.75rem;
  }
  .reason-icon {
    width: 3.2rem;
    height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    margin-bottom: 1rem;
  }
  .reason-icon svg {
    width: 1.6rem;
    height: 1.6rem;
  }
  .reason-left h3 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.3rem + 1vw, 2.1rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
  }
  .reason-right {
    padding-top: 0.5rem;
  }
  .reason-right p {
    font-size: var(--step-0);
    color: var(--ink-soft);
    line-height: 1.7;
  }
  @media (max-width: 700px) {
    .reason-card {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    .reason-left {
      position: static;
    }
  }

  /* ---------- Navigation Hub (Homepage cards linking to sub-pages) ---------- */
  .nav-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }
  .hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  }
  .hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
  }
  .hub-icon {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-ink);
  }
  .hub-icon svg {
    width: 1.4rem;
    height: 1.4rem;
  }
  .hub-card h3 {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 500;
    margin: 0;
    color: var(--ink);
  }
  .hub-card p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.55;
    flex-grow: 1;
  }
  .hub-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cream-soft);
    color: var(--muted);
    transition: background 0.3s var(--ease), color 0.3s, transform 0.3s var(--ease);
  }
  .hub-arrow svg {
    width: 1rem;
    height: 1rem;
  }
  .hub-card:hover .hub-arrow {
    background: var(--accent);
    color: var(--cream);
    transform: translate(2px, -2px);
  }

  /* ---------- Utility: hide on print, etc ---------- */
  [hidden] { display: none !important; }

  /* ---------- Consolidated utility classes (inline-style replacements) ---------- */

  /* Layout utilities */
  .pt-0 { padding-top: 0; }
  .pb-0 { padding-block: 0; }
  .mt-sm { margin-top: 0.5rem; }
  .mt-md { margin-top: 1.25rem; }
  .mt-1h { margin-top: 1.5rem; }
  .mt-lg { margin-top: 2.5rem; }
  .mb-sm { margin-bottom: 0.75rem; }
  .mb-md { margin-bottom: 1rem; }
  .mb-1h { margin-bottom: 1.5rem; }
  .mb-lg { margin-bottom: 2rem; }
  .flex-center-wrap { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .flex-wrap-sm { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .flex-end-wrap { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 0.5rem; }
  .text-center { text-align: center; }

  /* Background modifiers */
  .bg-cream-soft { background: var(--cream-soft); }

  /* Legal page styles */
  .legal-toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 3rem; }
  .legal-toc h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin-bottom: 0.75rem; color: var(--ink); }
  .legal-toc ul { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
  .legal-toc a { font-weight: 500; color: var(--accent); }
  .legal-article { margin-bottom: 4rem; scroll-margin-top: 6rem; }
  .legal-article h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 300; color: var(--ink); margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
  .legal-article h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-top: 1.5rem; margin-bottom: 0.5rem; }
  .legal-section { line-height: 1.65; color: var(--ink-soft); }
  .legal-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
  .legal-table tr { border-bottom: 1px solid var(--line); }
  .legal-table tr:last-child { border-bottom: none; }
  .legal-table td { padding: 0.8rem 1.2rem; }
  .legal-table td:first-child { font-weight: 600; color: var(--ink); }
  .legal-table td.legal-label { width: 35%; }
  .legal-supplementary h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--ink); margin-bottom: 1.5rem; }
  .legal-divider { margin: 3rem 0; border: none; border-top: 1px solid var(--line); }

  /* About page */
  .bio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 2.5rem; }
  .bio-name { font-family: var(--font-display); font-size: 1.95rem; font-weight: 500; color: var(--ink); margin-bottom: 0.75rem; }
  .bio-text { color: var(--ink-soft); line-height: 1.7; }
  .bio-photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-xl); }

  /* Press page */
  .press-article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.75rem, 1.5rem + 2vw, 3rem); margin-bottom: 2rem; }
  .press-date { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.75rem; }
  .press-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 300; color: var(--ink); margin-bottom: 0.5rem; }
  .press-subtitle { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; margin-bottom: 1.25rem; font-style: italic; }
  .press-image { width: 100%; height: auto; border-radius: var(--radius-lg, 12px); margin-bottom: 1.5rem; border: 1px solid var(--line); }
  .press-text { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.5rem; }
  .press-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

  /* Apply page */
  .thanks-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; }
  .thanks-box h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
  .thanks-box p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto; }

  /* Ansatz page — feature stat override */
  .stat-number-sm { font-size: 1.5rem; margin-top: 0.75rem; }

  /* Health page — card detail box */
  .card-detail-box { margin: 0.65rem 0 0.8rem; padding: 0.55rem 0.7rem; background: var(--paper); border: 1px solid var(--accent-soft); border-radius: 8px; font-size: 0.78rem; line-height: 1.45; }

  /* Avatar image in mission cite */
  .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

  /* Mission cite name */
  .mission-cite strong { color: var(--cream); }

  /* CTA ghost on dark background */
  .btn-ghost-light { background: rgba(255,255,255,0.1); color: var(--cream); border-color: rgba(255,255,255,0.3); }
}

