/* ============================================================
   BIRNE7 Design System — main.css
   Tokens sourced from DESIGN.md exactly — never alter colour values
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Open+Sans:wght@700;800&display=swap');

/* ── 1. CSS CUSTOM PROPERTIES ──────────────────────────────── */

/* Dark theme (default) */
:root,
[data-theme="dark"] {
  /* Brand primitives — sourced from BIRNE7 logo 2026 */
  --color-teal:     #00CC96;   /* logo gradient start — bright emerald */
  --color-ocean:    #009FD0;   /* logo gradient end — bright ocean blue */
  --color-seven:    #45C7E8;   /* the "7" accent cyan */
  --color-petrol:   #007A5E;   /* deep green for secondary actions */
  --color-sand:     #d8c7b1;
  --color-graphite: #101826;

  /* Brand gradient — matches logo ring */
  --brand-gradient: linear-gradient(135deg, #00CC96 0%, #009FD0 100%);

  --text-primary:     #f4f7fb;
  --text-secondary:   #a5b3c5;
  --surface-default:  #0D1520;
  --surface-elevated: #162030;
  --border-subtle:    rgba(255,255,255,0.10);
  --action-primary:   #00CC96;
  --action-secondary: #007A5E;
  --focus-ring:       #45C7E8;

  --nav-bg-scrolled:       rgba(13,21,32,0.95);
  --toggle-track-bg:       rgba(255,255,255,0.1);
  --toggle-track-hover:    rgba(255,255,255,0.17);
  --toggle-thumb-bg:       #162030;
  --toggle-thumb-border:   rgba(255,255,255,0.18);
  --shadow-card:           0 4px 24px rgba(0,0,0,0.35);
  --shadow-elevated:       0 12px 40px rgba(0,0,0,0.45);

  color-scheme: dark;
}

/* Light theme */
[data-theme="light"] {
  --text-primary:     #0D1520;
  --text-secondary:   #4b5a6e;
  --surface-default:  #f4f7fb;
  --surface-elevated: #ffffff;
  --border-subtle:    rgba(0,0,0,0.1);
  --action-primary:   #00A878;   /* button bg — dark text on top passes AA */
  --action-secondary: #006B52;
  --focus-ring:       #007A5E;

  /* Teal-family colours must be darkened for text on light surfaces.
     #00CC96 on #f4f7fb = ~2.0:1 (fails). Overrides below achieve ≥4.5:1. */
  --color-teal:   #007A5E;   /* 4.5:1 on --surface-default — vibrant emerald */
  --color-seven:  #005F86;   /* 6.2:1 on --surface-default */
  --color-ocean:  #005F86;

  --nav-bg-scrolled:       rgba(244,247,251,0.97);
  --toggle-track-bg:       rgba(0,0,0,0.09);
  --toggle-track-hover:    rgba(0,0,0,0.14);
  --toggle-thumb-bg:       #ffffff;
  --toggle-thumb-border:   rgba(0,0,0,0.12);
  --shadow-card:           0 4px 24px rgba(0,0,0,0.08);
  --shadow-elevated:       0 12px 40px rgba(0,0,0,0.14);

  color-scheme: light;
}

/* High contrast — dark base */
[data-contrast="high"]:not([data-theme="light"]),
[data-contrast="high"][data-theme="dark"] {
  --text-primary:     #ffffff;
  --text-secondary:   #e0e8f0;
  --surface-default:  #000000;
  --surface-elevated: #0d1117;
  --border-subtle:    rgba(255,255,255,0.45);
  --action-primary:   #00FFB2;
  --focus-ring:       #ffffff;
  --shadow-card:      none;
  --shadow-elevated:  none;
}

/* High contrast — light base */
[data-contrast="high"][data-theme="light"] {
  --text-primary:     #000000;
  --text-secondary:   #0d1117;
  --surface-default:  #ffffff;
  --surface-elevated: #f0f0f0;
  --border-subtle:    rgba(0,0,0,0.45);
  --action-primary:   #005A40;
  --focus-ring:       #000000;
  --shadow-card:      none;
  --shadow-elevated:  none;
}

/* Font scale */
html                   { font-size: 16px; }
html[data-fontsize="sm"] { font-size: 14px; }
html[data-fontsize="lg"] { font-size: 18px; }
html[data-fontsize="xl"] { font-size: 20px; }

/* Reduced motion override (user preference via panel) */
[data-motion="reduced"] *,
[data-motion="reduced"] *::before,
[data-motion="reduced"] *::after {
  animation-duration:        0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration:       0.01ms !important;
}

/* Link highlighting */
[data-links="underline"] a {
  text-decoration:       underline !important;
  text-underline-offset: 3px;
}

/* ── 2. RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

body {
  font-family:             'DM Sans', sans-serif;
  font-size:               1.0625rem;
  line-height:             1.65;
  color:                   var(--text-primary);
  background-color:        var(--surface-default);
  -webkit-font-smoothing:  antialiased;
  overflow-x:              hidden;
  transition:              background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

/* ── 3. FOCUS STATES ────────────────────────────────────────── */
:focus-visible {
  outline:        2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius:  2px;
}

/* ── 4. ACCESSIBILITY UTILITIES ─────────────────────────────── */
.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;
}

/* ── 5. SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position:        absolute;
  top:             -100%;
  left:            1rem;
  z-index:         9999;
  padding:         0.75rem 1.25rem;
  background:      var(--action-primary);
  color:           var(--color-graphite);
  font-weight:     600;
  font-size:       0.9375rem;
  text-decoration: none;
  border-radius:   0 0 4px 4px;
  transition:      top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ── 6. LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin:    0 auto;
  padding:   0 1.5rem;
}

/* ── 7. TYPOGRAPHY ──────────────────────────────────────────── */
.font-display { font-family: 'Plus Jakarta Sans', sans-serif; }

.section-label {
  display:        block;
  font-size:      0.75rem;
  font-weight:    600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-teal);
  margin-bottom:  1rem;
}

.section-title {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight:    800;
  letter-spacing: -0.025em;
  color:          var(--text-primary);
  margin-bottom:  0.75rem;
  line-height:    1.18;
}

.section-sub {
  font-size:   1.0625rem;
  color:       var(--text-secondary);
  max-width:   560px;
  line-height: 1.7;
}

.section-header { margin-bottom: 4rem; }

/* ── 8. BUTTONS ─────────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  font-family:     'DM Sans', sans-serif;
  font-size:       0.9375rem;
  font-weight:     600;
  line-height:     1;
  text-decoration: none;
  padding:         0.9375rem 1.875rem;
  border-radius:   3px;
  border:          none;
  cursor:          pointer;
  white-space:     nowrap;
  transition:      background 0.2s ease, color 0.2s ease,
                   border-color 0.2s ease, transform 0.1s ease,
                   box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-gradient);
  color:      #0D1520;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1AD9A3 0%, #10B4E3 100%);
  box-shadow: 0 4px 20px rgba(0,204,150,0.3);
}
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #00A878 0%, #008BB8 100%);
  color:      #ffffff;
}
[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #00CC96 0%, #009FD0 100%);
  color:      #0D1520;
}

.btn-secondary {
  background:    var(--action-secondary);
  color:         #f4f7fb;
}
.btn-secondary:hover { background: #0A9A72; }

.btn-ghost {
  background:  transparent;
  color:       var(--text-primary);
  border:      1px solid var(--border-subtle);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background:   rgba(255,255,255,0.04);
}
[data-theme="light"] .btn-ghost:hover {
  border-color: rgba(0,0,0,0.25);
  background:   rgba(0,0,0,0.04);
}

/* ── 9. NAVIGATION ──────────────────────────────────────────── */
.site-nav {
  position:   fixed;
  top:        0;
  left:       0;
  right:      0;
  z-index:    100;
  padding:    1.375rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, padding 0.35s ease,
              border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-nav.scrolled {
  background:              var(--nav-bg-scrolled);
  backdrop-filter:         blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color:     var(--border-subtle);
  padding:                 0.875rem 0;
}

.nav-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1.5rem;
}

.nav-logo {
  display:         flex;
  align-items:     center;
  text-decoration: none;
  flex-shrink:     0;
}

/* Dark/light logo switching */
.nav-logo-img.nav-logo-dark,
.footer-logo-img.footer-logo-dark   { display: none;  }
.nav-logo-img.nav-logo-light,
.footer-logo-img.footer-logo-light  { display: block; }
[data-theme="dark"] .nav-logo-img.nav-logo-light,
[data-theme="dark"] .footer-logo-img.footer-logo-light { display: none;  }
[data-theme="dark"] .nav-logo-img.nav-logo-dark,
[data-theme="dark"] .footer-logo-img.footer-logo-dark  { display: block; }

/* Logo image in nav */
.nav-logo-img {
  height:     2.25rem;
  width:      auto;
  display:    block;
  transition: transform 0.2s ease;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.06); }

/* Logo in footer */
.footer-logo-img {
  height:        3rem;
  width:         auto;
  display:       block;
  margin-bottom: 1rem;
}

.nav-links {
  display:     flex;
  align-items: center;
  gap:         0.125rem;
  list-style:  none;
}

.nav-links a {
  font-size:       0.875rem;
  font-weight:     500;
  color:           var(--text-secondary);
  text-decoration: none;
  padding:         0.5rem 0.75rem;
  border-radius:   3px;
  transition:      color 0.2s ease;
}
.nav-links a:hover          { color: var(--text-primary); }
.nav-links a[aria-current]  { color: var(--color-teal); }

.nav-actions {
  display:     flex;
  align-items: center;
  gap:         0.625rem;
  flex-shrink: 0;
}

.nav-lang {
  font-size:       0.8125rem;
  font-weight:     600;
  letter-spacing:  0.06em;
  color:           var(--text-secondary);
  text-decoration: none;
  padding:         0.375rem 0.625rem;
  border:          1px solid var(--border-subtle);
  border-radius:   3px;
  transition:      color 0.2s ease, border-color 0.2s ease;
}
.nav-lang:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.3); }
[data-theme="light"] .nav-lang:hover { border-color: rgba(0,0,0,0.3); }

.nav-cta { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* ── 10. THEME TOGGLE ───────────────────────────────────────── */
.theme-toggle {
  position:       relative;
  width:          5rem;        /* 80px */
  height:         2.125rem;    /* 34px */
  border-radius:  999px;
  overflow:       hidden;      /* clip thumb within the pill */
  background:     var(--toggle-track-bg);
  border:         1px solid var(--border-subtle);
  cursor:         pointer;
  padding:        0;
  flex-shrink:    0;
  transition:     background 0.25s ease, border-color 0.25s ease;
}
.theme-toggle:hover {
  background: var(--toggle-track-hover);
}

.theme-toggle-track {
  display:  block;
  position: relative;
  width:    100%;
  height:   100%;
}

/* Sun icon (left side) */
.theme-toggle-sun,
.theme-toggle-moon {
  position:        absolute;
  top:             50%;
  transform:       translateY(-50%);
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           1.125rem;
  height:          1.125rem;
  transition:      opacity 0.25s ease, transform 0.25s ease;
  pointer-events:  none;
  z-index:         1;
}
.theme-toggle-sun  { left: 0.625rem; }
.theme-toggle-moon { right: 0.5625rem; }

.theme-toggle-sun svg,
.theme-toggle-moon svg {
  width:        1.0625rem;
  height:       1.0625rem;
  stroke:       var(--text-primary);
  stroke-width: 2;
  fill:         none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dark (default): moon active, sun dimmed */
.theme-toggle-sun  { opacity: 0.35; transform: translateY(-50%) scale(0.85); }
.theme-toggle-moon { opacity: 1;    transform: translateY(-50%) scale(1);    }

/* Light: sun active, moon dimmed */
[data-theme="light"] .theme-toggle-sun  { opacity: 1;    transform: translateY(-50%) scale(1);    }
[data-theme="light"] .theme-toggle-moon { opacity: 0.35; transform: translateY(-50%) scale(0.85); }

/* Sliding thumb */
.theme-toggle-thumb {
  position:      absolute;
  top:           0.25rem;    /* (34px - 26px) / 2 = 4px each side */
  left:          0.25rem;
  width:         1.625rem;   /* 26px */
  height:        1.625rem;
  border-radius: 50%;
  background:    var(--toggle-thumb-bg);
  border:        1px solid var(--toggle-thumb-border);
  box-shadow:    0 1px 4px rgba(0,0,0,0.2);
  z-index:       2;
  /* Dark default: thumb right — 80 - 26 - 4 - 4 = 46px */
  transform:     translateX(calc(5rem - 1.625rem - 0.5rem));
  transition:    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                 background 0.25s ease;
}
/* Light: thumb left */
[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(0);
}

/* ── 11. MOBILE NAV ─────────────────────────────────────────── */
.nav-menu-btn {
  display:    none;
  background: none;
  border:     none;
  color:      var(--text-primary);
  cursor:     pointer;
  padding:    0.5rem;
  border-radius: 3px;
}

.nav-drawer {
  display:        none;
  position:       fixed;
  inset:          0;
  z-index:        101; /* above nav bar (z-index:100) so close button is always clickable */
  background:     var(--surface-default);
  padding:        5.5rem 1.5rem 2.5rem;
  flex-direction: column;
  overflow-y:     auto;
}
.nav-drawer.open { display: flex; }

.nav-drawer nav {
  display:        flex;
  flex-direction: column;
}

.nav-drawer a {
  font-family:     'Plus Jakarta Sans', sans-serif;
  font-size:       1.375rem;
  font-weight:     700;
  color:           var(--text-primary);
  text-decoration: none;
  padding:         1rem 0;
  border-bottom:   1px solid var(--border-subtle);
  transition:      color 0.2s ease;
}
.nav-drawer a:hover { color: var(--color-teal); }

.nav-drawer-footer {
  margin-top:  auto;
  padding-top: 2rem;
  display:     flex;
  flex-direction: column;
  gap:         0.75rem;
}

/* ── 11b. LOADING SCREEN ─────────────────────────────────────── */
.b7-loader {
  position:        fixed;
  inset:           0;
  z-index:         9999;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             2.5rem;
  background:      #0a0a0a;
  opacity:         1;
  transition:      opacity 0.6s ease;
}
/* dismissed via inline JS */

/* Ring + text centred together */
.b7-loader-ring-wrap {
  position:        relative;
  width:           200px;
  height:          200px;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

/* Spinning conic ring */
.b7-loader-ring {
  position:      absolute;
  inset:         0;
  border-radius: 50%;
  animation:     b7Spin 2s linear infinite;
  background: conic-gradient(
    from 0deg,
    #00CC96   0%,
    #009FD0  40%,
    #3EC6E0  60%,
    transparent 68%,
    transparent 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
  filter: drop-shadow(0 0 6px rgba(0,204,150,0.55))
          drop-shadow(0 0 16px rgba(0,159,208,0.3));
}
@keyframes b7Spin { to { transform: rotate(360deg); } }

/* "BIRNE7" wordmark inside the ring */
.b7-loader-wordmark {
  position:    relative;
  z-index:     2;
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  font-size:   1.75rem;
  letter-spacing: 0.18em;
  color:       #ffffff;
  text-transform: uppercase;
  animation:   b7WordPulse 2s ease-in-out infinite alternate;
}
@keyframes b7WordPulse {
  from { opacity: 0.7; }
  to   { opacity: 1;   }
}

.b7-loader-accent {
  background:              linear-gradient(135deg, #00CC96 0%, #009FD0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}

/* Progress bar */
.b7-loader-bar {
  width:         200px;
  height:        2px;
  background:    rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow:      hidden;
}
.b7-loader-bar-fill {
  height:     100%;
  width:      0%;
  background: linear-gradient(90deg, #00CC96, #009FD0);
  box-shadow: 0 0 8px rgba(0,204,150,0.5);
  animation:  b7BarFill 3s linear forwards;
}
@keyframes b7BarFill {
  from { width: 0%;   }
  to   { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .b7-loader-ring { animation: none; }
  .b7-loader-wordmark { animation: none; }
}

/* ── 12. READING PROGRESS BAR ───────────────────────────────── */
.reading-progress {
  position:   fixed;
  top:        0;
  left:       0;
  height:     3px;
  background: var(--brand-gradient);
  z-index:    200;
  width:      0%;
  transition: width 0.1s linear;
}

/* ── 13. BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position:        fixed;
  bottom:          6.5rem;    /* above a11y trigger */
  right:           1.5rem;
  z-index:         90;
  width:           2.75rem;
  height:          2.75rem;
  border-radius:   50%;
  background:      var(--surface-elevated);
  border:          1px solid var(--border-subtle);
  color:           var(--text-secondary);
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  opacity:         0;
  pointer-events:  none;
  transform:       translateY(10px);
  transition:      opacity 0.3s ease, transform 0.3s ease,
                   background 0.2s ease, color 0.2s ease;
  box-shadow:      var(--shadow-card);
}
.back-to-top:hover {
  background: var(--action-primary);
  color:      var(--color-graphite);
  border-color: var(--action-primary);
}
.back-to-top.visible {
  opacity:        1;
  pointer-events: auto;
  transform:      translateY(0);
}
.back-to-top svg {
  width:        1rem;
  height:       1rem;
  stroke:       currentColor;
  stroke-width: 2;
  fill:         none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── 14. ACCESSIBILITY PANEL ────────────────────────────────── */
.a11y-trigger {
  position:        fixed;
  bottom:          1.75rem;
  right:           1.5rem;
  z-index:         96;
  width:           3.25rem;
  height:          3.25rem;
  border-radius:   50%;
  background:      #0D1520;
  border:          2px solid var(--color-teal);
  color:           var(--color-teal);
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  transition:      background 0.2s ease, color 0.2s ease,
                   border-color 0.2s ease, box-shadow 0.2s ease,
                   transform 0.2s ease;
  box-shadow:      0 0 0 4px color-mix(in srgb, var(--color-teal) 18%, transparent),
                   0 4px 16px rgba(0,0,0,0.55);
}
.a11y-trigger:hover,
.a11y-trigger[aria-expanded="true"] {
  background:   var(--color-teal);
  color:        #0D1520;
  border-color: var(--color-teal);
  box-shadow:   0 0 0 6px color-mix(in srgb, var(--color-teal) 25%, transparent),
                0 4px 20px rgba(0,0,0,0.55);
  transform:    scale(1.08);
}

/* Light mode: white button with teal icon — clear contrast on light surfaces */
[data-theme="light"] .a11y-trigger {
  background:   #ffffff;
  border-color: var(--color-teal);
  color:        var(--color-teal);
  box-shadow:   0 0 0 4px color-mix(in srgb, var(--color-teal) 12%, transparent),
                0 4px 16px rgba(0,0,0,0.12);
}
[data-theme="light"] .a11y-trigger:hover,
[data-theme="light"] .a11y-trigger[aria-expanded="true"] {
  background:   var(--color-teal);
  color:        #ffffff;
  border-color: var(--color-teal);
  box-shadow:   0 0 0 6px color-mix(in srgb, var(--color-teal) 20%, transparent),
                0 4px 20px rgba(0,0,0,0.15);
}
.a11y-trigger svg {
  width:          1.4rem;
  height:         1.4rem;
  stroke:         currentColor;
  stroke-width:   1.75;
  fill:           none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.a11y-panel {
  position:       fixed;
  bottom:         0;
  right:          0;
  z-index:        95;
  width:          320px;
  max-width:      100vw;
  max-height:     90vh;
  overflow-y:     auto;
  background:     var(--surface-elevated);
  border:         1px solid var(--border-subtle);
  border-bottom:  none;
  border-right:   none;
  border-radius:  8px 0 0 0;
  box-shadow:     var(--shadow-elevated);
  transform:      translateY(100%);
  opacity:        0;
  pointer-events: none;
  transition:     transform 0.35s cubic-bezier(0.22,1,0.36,1),
                  opacity 0.25s ease;
}
.a11y-panel.open {
  transform:      translateY(0);
  opacity:        1;
  pointer-events: auto;
}
/* Ensure no panel child intercepts clicks when panel is closed */
.a11y-panel:not(.open) * {
  pointer-events: none;
}

.a11y-panel-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         1.25rem 1.5rem 1rem;
  border-bottom:   1px solid var(--border-subtle);
  position:        sticky;
  top:             0;
  background:      var(--surface-elevated);
  z-index:         1;
}

.a11y-panel-title {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      1rem;
  font-weight:    700;
  color:          var(--text-primary);
  letter-spacing: -0.01em;
}

.a11y-panel-close {
  background:    none;
  border:        none;
  color:         var(--text-secondary);
  cursor:        pointer;
  padding:       0.375rem;
  border-radius: 3px;
  display:       flex;
  align-items:   center;
  transition:    color 0.2s ease;
}
.a11y-panel-close:hover { color: var(--text-primary); }
.a11y-panel-close svg {
  width:        1rem;
  height:       1rem;
  stroke:       currentColor;
  stroke-width: 2;
  fill:         none;
  stroke-linecap: round;
}

.a11y-panel-body {
  padding: 1.25rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap:     1.5rem;
}

.a11y-group-label {
  font-size:      0.7rem;
  font-weight:    600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-teal);
  margin-bottom:  0.75rem;
  display:        block;
}

/* Segment control (Theme / Motion / Contrast) */
.a11y-segment {
  display:       flex;
  border:        1px solid var(--border-subtle);
  border-radius: 4px;
  overflow:      hidden;
}

.a11y-seg-btn {
  flex:            1;
  background:      none;
  border:          none;
  padding:         0.625rem 0.5rem;
  font-family:     'DM Sans', sans-serif;
  font-size:       0.8125rem;
  font-weight:     600;
  color:           var(--text-secondary);
  cursor:          pointer;
  transition:      background 0.2s ease, color 0.2s ease;
  border-right:    1px solid var(--border-subtle);
}
.a11y-seg-btn:last-child { border-right: none; }
.a11y-seg-btn.active {
  background: var(--action-primary);
  color:      var(--color-graphite);
}
.a11y-seg-btn:hover:not(.active) {
  background: rgba(0,204,150,0.1);
  color:      var(--text-primary);
}

/* Font size control */
.a11y-fontsize {
  display:   flex;
  gap:       0.5rem;
  align-items: center;
}

.a11y-fs-btn {
  background:    var(--surface-default);
  border:        1px solid var(--border-subtle);
  border-radius: 3px;
  color:         var(--text-secondary);
  cursor:        pointer;
  padding:       0.5rem 0.75rem;
  font-family:   'DM Sans', sans-serif;
  font-weight:   600;
  transition:    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.a11y-fs-btn:hover { background: rgba(0,204,150,0.1); color: var(--text-primary); }
.a11y-fs-btn.active {
  background:   var(--action-primary);
  color:        var(--color-graphite);
  border-color: var(--action-primary);
}

/* Toggle rows */
.a11y-toggle-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;
}

.a11y-toggle-label {
  font-size:   0.9rem;
  color:       var(--text-secondary);
  line-height: 1.4;
}

.a11y-switch {
  position:      relative;
  width:          2.75rem;
  height:         1.5rem;
  border-radius:  999px;
  background:     var(--border-subtle);
  border:         none;
  cursor:         pointer;
  flex-shrink:    0;
  transition:     background 0.25s ease;
}
.a11y-switch[aria-checked="true"] {
  background: var(--action-primary);
}
.a11y-switch::after {
  content:       '';
  position:      absolute;
  top:           2px;
  left:          2px;
  width:         1.25rem;
  height:        1.25rem;
  border-radius: 50%;
  background:    var(--toggle-thumb-bg);
  box-shadow:    0 1px 3px rgba(0,0,0,0.2);
  transition:    transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.a11y-switch[aria-checked="true"]::after {
  transform: translateX(1.25rem);
}

.a11y-reset {
  width:         100%;
  text-align:    center;
  background:    transparent;
  border:        1px solid var(--border-subtle);
  border-radius: 3px;
  padding:       0.625rem;
  font-family:   'DM Sans', sans-serif;
  font-size:     0.8125rem;
  font-weight:   600;
  color:         var(--text-secondary);
  cursor:        pointer;
  transition:    border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.a11y-reset:hover { border-color: rgba(0,204,150,0.5); color: var(--text-primary); }

/* ── 15. BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  padding:       5.5rem 0 0;
  margin-bottom: 0;
}

.breadcrumb-inner {
  display:     flex;
  align-items: center;
  gap:         0.375rem;
  flex-wrap:   wrap;
}

.breadcrumb-item {
  font-size:       0.8125rem;
  color:           var(--text-secondary);
  text-decoration: none;
  transition:      color 0.2s ease;
}
.breadcrumb-item:hover { color: var(--text-primary); }

.breadcrumb-sep {
  font-size: 0.75rem;
  color:     var(--text-secondary);
  opacity:   0.5;
  user-select: none;
}

.breadcrumb-current {
  font-size:   0.8125rem;
  font-weight: 600;
  color:       var(--color-teal);
}

/* ── 16. HERO ────────────────────────────────────────────────── */
.hero {
  min-height:  100svh;
  display:     flex;
  align-items: center;
  position:    relative;
  overflow:    hidden;
  padding:     calc(8rem + 3rem) 0 8rem;
}

.hero::before {
  content:          '';
  position:         absolute;
  inset:            0;
  background-image: radial-gradient(circle, rgba(0,204,150,0.09) 1px, transparent 1px);
  background-size:  38px 38px;
  pointer-events:   none;
}
[data-theme="light"] .hero::before {
  background-image: radial-gradient(circle, rgba(0,122,94,0.06) 1px, transparent 1px);
}

.hero-accent-line {
  position:   absolute;
  top:        -5%;
  right:      9%;
  width:      1px;
  height:     110%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,204,150,0.15) 25%,
    rgba(0,159,208,0.45) 55%,
    rgba(0,204,150,0.08) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-inner    { position: relative; z-index: 1; max-width: 840px; }

.hero-eyebrow  {
  display:       flex;
  align-items:   center;
  gap:           1rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-bar  {
  display:    inline-block;
  width:      2.5rem;
  height:     2px;
  background: var(--color-teal);
  flex-shrink: 0;
}
.hero-eyebrow-text {
  font-size:      0.8rem;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--color-teal);
}

.hero-headline {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      clamp(2.75rem, 5.5vw, 5.25rem);
  font-weight:    800;
  line-height:    1.08;
  letter-spacing: -0.03em;
  color:          var(--text-primary);
  margin-bottom:  1.5rem;
}
/* Italic in Plus Jakarta Sans feels genuinely warm, not robotic */
.hero-headline em {
  font-style:  italic;
  color:       var(--color-teal);
  font-weight: 700;
}

.hero-sub {
  font-size:     clamp(1rem, 1.5vw, 1.1875rem);
  line-height:   1.75;
  color:         var(--text-secondary);
  max-width:     640px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display:     flex;
  flex-wrap:   wrap;
  gap:         1rem;
  align-items: center;
}

.hero-scroll {
  position:       absolute;
  bottom:         2.5rem;
  left:           50%;
  transform:      translateX(-50%);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            0.5rem;
  color:          var(--text-secondary);
  font-size:      0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content:    '';
  display:    block;
  width:      1px;
  height:     2.75rem;
  background: linear-gradient(to bottom, rgba(165,179,197,0.5), transparent);
  animation:  scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* Compact hero (sub-pages) */
.hero-compact {
  min-height:  0;
  padding:     8.5rem 0 4rem;
}
.hero-compact .hero-headline {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

/* ── 17. TRUST STRIP ────────────────────────────────────────── */
.trust-strip {
  background:    var(--surface-elevated);
  border-top:    1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding:       1.75rem 0;
}

.trust-inner {
  display:         flex;
  align-items:     center;
  gap:             2rem;
  flex-wrap:       wrap;
  justify-content: space-between;
}

.trust-item   {
  display:     flex;
  align-items: baseline;
  gap:         0.5rem;
}
.trust-num    {
  font-family:  'Plus Jakarta Sans', sans-serif;
  font-size:    1.875rem;
  font-weight:  700;
  color:        var(--color-teal);
  line-height:  1;
}
.trust-lbl    { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.trust-divider {
  width:      1px;
  height:     2.25rem;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* ── 18. CARDS ──────────────────────────────────────────────── */
.solution-card {
  background:     var(--surface-elevated);
  border:         1px solid var(--border-subtle);
  border-radius:  4px;
  padding:        1.75rem;
  display:        flex;
  flex-direction: column;
  gap:            0.875rem;
  text-decoration: none;
  color:          inherit;
  transition:     border-color 0.22s ease, transform 0.22s ease,
                  box-shadow 0.22s ease;
}
.solution-card:hover {
  border-color: rgba(0,204,150,0.4);
  transform:    translateY(-3px);
  box-shadow:   var(--shadow-elevated);
}

.solution-card-tag {
  font-size:      0.7rem;
  font-weight:    600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-teal);
}

.solution-card-title {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      1.1875rem;
  font-weight:    700;
  color:          var(--text-primary);
  line-height:    1.3;
  letter-spacing: -0.01em;
}

.solution-card-desc {
  font-size:  0.9rem;
  color:      var(--text-secondary);
  line-height: 1.65;
  flex-grow:   1;
}

.solution-card-footer {
  margin-top:      auto;
  padding-top:     0.875rem;
  border-top:      1px solid var(--border-subtle);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             0.75rem;
}

.solution-card-partner { font-size: 0.8125rem; color: var(--text-secondary); }

.solution-card-arrow {
  display:     inline-flex;
  align-items: center;
  gap:         0.375rem;
  font-size:   0.8125rem;
  font-weight: 600;
  color:       var(--color-teal);
  white-space: nowrap;
}
.solution-card-arrow svg {
  width:          0.9375rem;
  height:         0.9375rem;
  stroke:         currentColor;
  stroke-width:   2;
  fill:           none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:     transform 0.2s ease;
}
.solution-card:hover .solution-card-arrow svg { transform: translateX(4px); }

/* Generic info card */
.info-card {
  background:    var(--surface-elevated);
  border:        1px solid var(--border-subtle);
  border-radius: 4px;
  padding:       1.75rem;
}

.info-card-icon {
  width:           2.75rem;
  height:          2.75rem;
  border:          1px solid var(--border-subtle);
  border-radius:   8px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   1.25rem;
}
.info-card-icon svg {
  width:          1.25rem;
  height:         1.25rem;
  stroke:         var(--color-teal);
  stroke-width:   1.75;
  fill:           none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card-title {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      1.125rem;
  font-weight:    700;
  color:          var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom:  0.625rem;
}

.info-card-desc {
  font-size:   0.9rem;
  color:       var(--text-secondary);
  line-height: 1.65;
}

/* ── 19. FACT BLOCK ─────────────────────────────────────────── */
.fact-block {
  background:    var(--surface-elevated);
  border:        1px solid var(--border-subtle);
  border-left:   3px solid var(--color-teal);
  padding:       1.25rem 1.5rem;
  border-radius: 0 3px 3px 0;
}
.fact-block p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }

/* ── 20. PROCESS STEPS ──────────────────────────────────────── */
.steps-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1.5rem;
  position:              relative;
}
.steps-grid::before {
  content:    '';
  position:   absolute;
  top:        calc(3.5rem / 2);
  left:       calc(12.5% + 1.875rem);
  right:      calc(12.5% + 1.875rem);
  height:     1px;
  background: linear-gradient(
    to right,
    var(--color-teal) 0%,
    rgba(0,159,208,0.35) 60%,
    rgba(0,159,208,0.06) 100%
  );
  z-index: 0;
}

.step-card { position: relative; z-index: 1; }

.step-number {
  font-size:      0.75rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  color:          var(--color-teal);
  margin-bottom:  1rem;
  opacity:        0.7;
}

.step-icon {
  width:           3.5rem;
  height:          3.5rem;
  border:          1px solid var(--border-subtle);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   1rem;
  background:      var(--surface-default);
}
.step-icon svg {
  width:          1.375rem;
  height:         1.375rem;
  stroke:         var(--color-teal);
  stroke-width:   1.5;
  fill:           none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-title {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      1.125rem;
  font-weight:    700;
  color:          var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom:  0.375rem;
}
.step-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ── 21. PARTNER STRIP ──────────────────────────────────────── */
.partners {
  padding:       3.5rem 0;
  background:    var(--surface-elevated);
  border-top:    1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.partners-row {
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-wrap:       wrap;
  gap:             2.5rem;
  margin-top:      1.5rem;
}
.partner-name {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      0.9375rem;
  font-weight:    700;
  letter-spacing: 0.04em;
  color:          var(--text-secondary);
  transition:     color 0.2s ease;
  padding:        0.375rem 0;
}
.partner-name:hover { color: var(--text-primary); }

/* ── 22. TEAM CARDS ─────────────────────────────────────────── */
.team-cards {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap:                   1.25rem;
  margin-top:            2rem;
}

.team-card {
  background:    var(--surface-elevated);
  border:        1px solid var(--border-subtle);
  border-radius: 4px;
  overflow:      hidden;
}
.team-card-img {
  width:         100%;
  aspect-ratio:  3/4;
  object-fit:    cover;
  object-position: center top;
}
.team-card-info { padding: 1rem 1.25rem 1.25rem; }
.team-card-name {
  font-family:  'Plus Jakarta Sans', sans-serif;
  font-size:    1rem;
  font-weight:  700;
  color:        var(--text-primary);
  margin-bottom: 0.25rem;
}
.team-card-role { font-size: 0.8125rem; color: var(--text-secondary); }

/* ── 23. FORMS ──────────────────────────────────────────────── */
.form-field {
  display:        flex;
  flex-direction: column;
  gap:            0.5rem;
}

.form-label {
  font-size:   0.875rem;
  font-weight: 600;
  color:       var(--text-primary);
}
.form-label .required {
  color:        var(--color-teal);
  margin-left:  0.25rem;
  aria-hidden:  true;
}

.form-input,
.form-select,
.form-textarea {
  width:         100%;
  background:    var(--surface-default);
  border:        1px solid var(--border-subtle);
  border-radius: 3px;
  padding:       0.8125rem 1rem;
  font-family:   'DM Sans', sans-serif;
  font-size:     0.9375rem;
  color:         var(--text-primary);
  transition:    border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-secondary); opacity: 0.7; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline:      none;
  border-color: var(--action-primary);
  box-shadow:   0 0 0 3px rgba(0,204,150,0.15);
}

.form-textarea {
  resize:     vertical;
  min-height: 8rem;
  line-height: 1.65;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a5b3c5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right 1rem center;
  padding-right:       2.75rem;
}

.form-hint {
  font-size:   0.8125rem;
  color:       var(--text-secondary);
  line-height: 1.5;
}

.form-error {
  font-size:   0.8125rem;
  color:       #f87171;
  line-height: 1.5;
  display:     none;
}
.form-field.has-error .form-error        { display: block; }
.form-field.has-error .form-input,
.form-field.has-error .form-textarea,
.form-field.has-error .form-select {
  border-color: #f87171;
}

.form-checkbox-row {
  display:     flex;
  align-items: flex-start;
  gap:         0.75rem;
}

.form-checkbox {
  width:         1.125rem;
  height:        1.125rem;
  accent-color:  var(--action-primary);
  flex-shrink:   0;
  margin-top:    0.125rem;
  cursor:        pointer;
}

.form-checkbox-label {
  font-size:   0.9rem;
  color:       var(--text-secondary);
  line-height: 1.55;
}

/* ── 24. VALUES LIST ────────────────────────────────────────── */
.values-list {
  list-style: none;
  display:    grid;
  gap:        0.75rem;
}
.values-list li {
  display:     flex;
  align-items: flex-start;
  gap:         0.75rem;
  font-size:   0.9375rem;
  color:       var(--text-secondary);
  line-height: 1.55;
}
.values-list li::before {
  content:       '';
  display:       inline-block;
  width:         6px;
  height:        6px;
  background:    var(--color-teal);
  border-radius: 50%;
  flex-shrink:   0;
  margin-top:    0.45rem;
}

/* ── 25. PAGE SECTIONS ──────────────────────────────────────── */
.section-pad      { padding: 6rem 0; }
.section-pad-sm   { padding: 4rem 0; }
.section-alt {
  background:    var(--surface-elevated);
  border-top:    1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Two-column layout */
.two-col {
  display:              grid;
  grid-template-columns: 1fr 1fr;
  gap:                  4rem;
  align-items:          start;
}
.two-col-wide {
  grid-template-columns: 1.4fr 1fr;
}

/* Three-column grid */
.grid-3 {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.5rem;
}

/* Two-column grid */
.grid-2 {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   1.5rem;
}

/* ── 26. CTA SECTION ────────────────────────────────────────── */
.cta-section {
  padding:       6rem 0;
  background:    var(--surface-elevated);
  border-top:    1px solid var(--border-subtle);
  text-align:    center;
}
.cta-section-inner { max-width: 680px; margin: 0 auto; }
.cta-headline {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight:    800;
  line-height:    1.12;
  letter-spacing: -0.025em;
  color:          var(--text-primary);
  margin-bottom:  1rem;
}
.cta-sub {
  font-size:     1.0625rem;
  color:         var(--text-secondary);
  line-height:   1.7;
  margin-bottom: 2.5rem;
}
.cta-actions {
  display:         flex;
  gap:             1rem;
  justify-content: center;
  flex-wrap:       wrap;
}

/* ── 27. FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--color-graphite);
  border-top: 1px solid var(--border-subtle);
  padding:    5rem 0 2.5rem;
}
[data-theme="light"] footer {
  background: #1a2230;
}

/* Footer always uses a dark background — force light text in light mode */
[data-theme="light"] .footer-brand-name  { color: #f4f7fb; }
[data-theme="light"] .footer-brand-desc  { color: rgba(244,247,251,0.65); }
[data-theme="light"] .footer-col-heading { color: rgba(244,247,251,0.5); }
[data-theme="light"] .footer-col a       { color: rgba(244,247,251,0.65); }
[data-theme="light"] .footer-col a:hover { color: #f4f7fb; }
[data-theme="light"] .footer-copy        { color: rgba(244,247,251,0.5); }
[data-theme="light"] .footer-legal a     { color: rgba(244,247,251,0.65); }
[data-theme="light"] .footer-legal a:hover { color: #f4f7fb; }
[data-theme="light"] .footer-social-btn  {
  color:        rgba(244,247,251,0.65);
  border-color: rgba(255,255,255,0.15);
}
[data-theme="light"] .footer-top {
  border-bottom-color: rgba(255,255,255,0.1);
}
[data-contrast="high"][data-theme="light"] footer {
  background:    var(--surface-elevated);
  border-top-color: var(--border-subtle);
}
[data-contrast="high"][data-theme="light"] .footer-brand-name,
[data-contrast="high"][data-theme="light"] .footer-copy,
[data-contrast="high"][data-theme="light"] .footer-col a,
[data-contrast="high"][data-theme="light"] .footer-col a:hover,
[data-contrast="high"][data-theme="light"] .footer-legal a,
[data-contrast="high"][data-theme="light"] .footer-legal a:hover {
  color: var(--text-primary);
}
[data-contrast="high"][data-theme="light"] .footer-col-heading {
  color: var(--text-secondary);
}
[data-contrast="high"][data-theme="light"] .footer-brand-desc {
  color: var(--text-secondary);
}
[data-contrast="high"][data-theme="light"] .footer-top {
  border-bottom-color: var(--border-subtle);
}

.footer-top {
  display:               grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap:                   4rem;
  margin-bottom:         4rem;
  padding-bottom:        4rem;
  border-bottom:         1px solid var(--border-subtle);
}

.footer-brand-name {
  font-family:  'Plus Jakarta Sans', sans-serif;
  font-size:    1.375rem;
  font-weight:  800;
  color:        #f4f7fb;
  margin-bottom: 1rem;
}
.footer-brand-name span { color: var(--color-teal); }

.footer-brand-desc {
  font-size:   0.9rem;
  color:       var(--text-secondary);
  line-height: 1.65;
  max-width:   280px;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap:     0.625rem;
  margin-top: 0.25rem;
}
.footer-social-btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           2.25rem;
  height:          2.25rem;
  border-radius:   50%;
  border:          1px solid var(--border-subtle);
  background:      transparent;
  color:           var(--text-secondary);
  text-decoration: none;
  transition:      background 0.2s ease, color 0.2s ease,
                   border-color 0.2s ease, transform 0.2s ease;
}
.footer-social-btn:hover {
  background:   var(--color-teal);
  color:        var(--color-graphite);
  border-color: var(--color-teal);
  transform:    translateY(-2px);
}
.footer-social-btn svg {
  width:           1rem;
  height:          1rem;
  fill:            none;
  stroke:          currentColor;
  stroke-width:    1.75;
  stroke-linecap:  round;
  stroke-linejoin: round;
  pointer-events:  none;
}

.footer-col-heading {
  font-size:      0.75rem;
  font-weight:    600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--text-secondary);
  margin-bottom:  1.25rem;
}

.footer-col ul {
  list-style: none;
  display:    grid;
  gap:        0.625rem;
}
.footer-col a {
  font-size:       0.9rem;
  color:           var(--text-secondary);
  text-decoration: none;
  transition:      color 0.2s ease;
}
.footer-col a:hover { color: #f4f7fb; }

.footer-bottom {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1.5rem;
  flex-wrap:       wrap;
}
.footer-copy  { font-size: 0.8125rem; color: var(--text-secondary); }
.footer-legal { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-legal a {
  font-size:       0.8125rem;
  color:           var(--text-secondary);
  text-decoration: none;
  transition:      color 0.2s ease;
}
.footer-legal a:hover { color: #f4f7fb; }

/* ── 28. SCROLL ANIMATIONS ──────────────────────────────────── */
.fade-up {
  opacity:    0;
  transform:  translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.visible          { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(1)     { transition-delay: 0s;    }
.fade-up:nth-child(2)     { transition-delay: 0.08s; }
.fade-up:nth-child(3)     { transition-delay: 0.16s; }
.fade-up:nth-child(4)     { transition-delay: 0.24s; }
.fade-up:nth-child(5)     { transition-delay: 0.32s; }
.fade-up:nth-child(6)     { transition-delay: 0.40s; }

/* ── 29. ACCESSIBILITY STATEMENT SPECIFICS ───────────────────── */
.standard-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            0.625rem;
  background:     var(--surface-elevated);
  border:         1px solid var(--border-subtle);
  border-left:    3px solid var(--color-teal);
  border-radius:  0 3px 3px 0;
  padding:        0.875rem 1.25rem;
  font-size:      0.9rem;
  font-weight:    600;
  color:          var(--text-primary);
}

/* ── 29b. THEME TOGGLE — transparent nav visibility fix ─────── */
/* When nav hasn't been scrolled yet (transparent background),
   give the toggle a slightly stronger border so it's easy to spot */
.site-nav:not(.scrolled) .theme-toggle {
  border-color: rgba(255,255,255,0.28);
}
[data-theme="light"] .site-nav:not(.scrolled) .theme-toggle {
  border-color: rgba(0,0,0,0.2);
}

/* ── 29c. TEAM MARQUEE ───────────────────────────────────────── */
/*
 * Adapted from TEAM_SLIDER.md reference (React/Tailwind Marquee).
 * Translated to pure CSS animation with JS duplication for loop.
 * Grayscale → color on hover, frosted name overlay, fade edges.
 */

@keyframes teamMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.team-marquee-section {
  overflow: hidden;
  position: relative;
}

/* Left + right fade edges */
.team-marquee-section::before,
.team-marquee-section::after {
  content:    '';
  position:   absolute;
  top:        0;
  bottom:     0;
  width:      8rem;
  z-index:    2;
  pointer-events: none;
}
.team-marquee-section::before {
  left:       0;
  background: linear-gradient(to right, var(--surface-default), transparent);
}
.team-marquee-section::after {
  right:      0;
  background: linear-gradient(to left, var(--surface-default), transparent);
}

.team-marquee-track {
  display:    flex;
  gap:        1.25rem;
  width:      max-content;
  animation:  teamMarquee 40s linear infinite;
  will-change: transform;
}

/* Pause on hover */
.team-marquee-track:hover,
[data-motion="reduced"] .team-marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .team-marquee-track { animation-play-state: paused; }
}

/* Each set of cards (original + duplicate for seamless loop) */
.team-marquee-set {
  display:    flex;
  gap:        1.25rem;
  flex-shrink: 0;
}

/* Individual card */
.team-marquee-card {
  position:      relative;
  width:         15rem;
  flex-shrink:   0;
  border-radius: 12px;
  overflow:      hidden;
  background:    var(--surface-elevated);
  border:        1px solid var(--border-subtle);
}

.team-marquee-card img {
  width:        100%;
  aspect-ratio: 3/4;
  object-fit:   cover;
  object-position: center top;
  display:      block;
  filter:       grayscale(1);
  transition:   filter 0.4s ease, transform 0.4s ease;
}

.team-marquee-card:hover img {
  filter:    grayscale(0);
  transform: scale(1.04);
}

/* Frosted name overlay — slides up on hover */
.team-marquee-info {
  position:   absolute;
  bottom:     0;
  left:       0;
  right:      0;
  padding:    0.875rem 1rem;
  background: rgba(13,21,32,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform:  translateY(4px);
  opacity:    0.92;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display:    flex;
  align-items: center;
  justify-content: space-between;
  gap:        0.75rem;
}
[data-theme="light"] .team-marquee-info {
  background: rgba(244,247,251,0.88);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.team-marquee-card:hover .team-marquee-info {
  transform: translateY(0);
  opacity:   1;
}

.team-marquee-info-text { min-width: 0; flex: 1; }

.team-marquee-name {
  font-family:   'Plus Jakarta Sans', sans-serif;
  font-size:     0.9375rem;
  font-weight:   700;
  color:         var(--text-primary);
  margin-bottom: 0.125rem;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}
.team-marquee-role {
  font-size:  0.8125rem;
  color:      var(--text-secondary);
  white-space: nowrap;
}

/* Contact icons — email + LinkedIn — appear alongside name on hover */
.team-marquee-contacts {
  display:     flex;
  align-items: center;
  gap:         0.375rem;
  flex-shrink: 0;
}

.team-marquee-email,
.team-marquee-linkedin {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           2rem;
  height:          2rem;
  border-radius:   50%;
  text-decoration: none;
  flex-shrink:     0;
  transition:      transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  opacity:         0;
  transform:       scale(0.7);
}

.team-marquee-email {
  background: var(--brand-gradient);
}
.team-marquee-linkedin {
  background: #0A66C2;
  /* slight delay so LinkedIn pops in just after email */
  transition-delay: 0s;
}

.team-marquee-card:hover .team-marquee-email,
.team-marquee-card:hover .team-marquee-linkedin {
  opacity:   1;
  transform: scale(1);
}
.team-marquee-card:hover .team-marquee-email    { transition-delay: 0.08s; }
.team-marquee-card:hover .team-marquee-linkedin { transition-delay: 0.13s; }

.team-marquee-email:hover {
  transform:  scale(1.12) !important;
  box-shadow: 0 4px 14px rgba(0,204,150,0.4);
}
.team-marquee-linkedin:hover {
  transform:  scale(1.12) !important;
  box-shadow: 0 4px 14px rgba(10,102,194,0.45);
}

.team-marquee-email:focus-visible,
.team-marquee-linkedin:focus-visible {
  outline:        2px solid var(--focus-ring);
  outline-offset: 2px;
}

.team-marquee-email svg,
.team-marquee-linkedin svg {
  width:          1rem;
  height:         1rem;
  display:        block;
  pointer-events: none;
}
.team-marquee-email svg {
  stroke:         #0D1520;
  fill:           none;
  stroke-width:   2;
  stroke-linecap:  round;
  stroke-linejoin: round;
}
.team-marquee-linkedin svg {
  fill:   #ffffff;
  stroke: none;
}

/* ── 30. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 3rem; }
  .steps-grid             { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before     { display: none; }
  .grid-3                 { grid-template-columns: repeat(2, 1fr); }
  .footer-top             { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --container-pad: 1.25rem; }
  .container { padding: 0 1.25rem; }
  .nav-links    { display: none; }
  .nav-lang     { display: none; }
  .nav-menu-btn { display: flex; }
  .nav-cta      { display: none; }
  .trust-divider { display: none; }
  .trust-inner  {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   1.25rem;
  }
  .a11y-panel   { width: 100%; border-radius: 8px 8px 0 0; }
}

@media (max-width: 560px) {
  .grid-3         { grid-template-columns: 1fr; }
  .grid-2         { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions    { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; max-width: 400px; }
  .footer-top     { grid-template-columns: 1fr; gap: 2rem; }
  .trust-inner    { grid-template-columns: 1fr; }
}

/* ── 31. PRINT ──────────────────────────────────────────────── */
@media print {
  .site-nav,
  .a11y-trigger,
  .a11y-panel,
  .back-to-top,
  .reading-progress,
  .nav-drawer,
  .hero-scroll,
  .cta-section,
  footer { display: none !important; }

  body {
    font-size:   12pt;
    color:       #000;
    background:  #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #666;
  }

  .hero { min-height: 0; padding: 2rem 0 1rem; }
  .hero::before { display: none; }
  .hero-accent-line { display: none; }
}

/* ── BLOG HIGHLIGHT ─────────────────────────────────────────── */
.blog-highlight {
  padding:    7rem 0;
  background: var(--surface-default);
}

.blog-highlight-inner {
  max-width: 1200px;
  margin:    0 auto;
  padding:   0 1.5rem;
}

.blog-highlight-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             2rem;
  margin-bottom:   3rem;
  flex-wrap:       wrap;
}

.blog-highlight-title {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      clamp(1.875rem, 3vw, 2.625rem);
  font-weight:    800;
  letter-spacing: -0.03em;
  color:          var(--text-primary);
}

/* Grid: 1 large left + stack of 3 right */
.blog-grid {
  display:               grid;
  grid-template-columns: 1fr 0.72fr;
  gap:                   1.25rem;
  align-items:           start;
}

/* ── Featured (large) card ──────────────────────────────────── */
.blog-card {
  display:         block;
  text-decoration: none;
  color:           inherit;
  border-radius:   8px;
  overflow:        hidden;
  background:      var(--surface-elevated);
  border:          1px solid var(--border-subtle);
  transition:      transform 0.3s cubic-bezier(0.22,1,0.36,1),
                   box-shadow 0.3s cubic-bezier(0.22,1,0.36,1),
                   border-color 0.25s ease;
  will-change:     transform;
}

/* Scroll-triggered lift — JS adds .is-visible */
.blog-card.scroll-lift {
  opacity:   0;
  transform: translateY(22px);
  transition: opacity   0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.3s ease,
              border-color 0.25s ease;
}
.blog-card.scroll-lift.is-visible {
  opacity:   1;
  transform: translateY(0);
}
.blog-card.scroll-lift:nth-child(2) { transition-delay: 0.06s; }
.blog-card.scroll-lift:nth-child(3) { transition-delay: 0.12s; }
.blog-card.scroll-lift:nth-child(4) { transition-delay: 0.18s; }

.blog-card:hover {
  transform:    translateY(-5px) !important;
  box-shadow:   var(--shadow-elevated);
  border-color: rgba(0,204,150,0.35);
}

/* Preview-only cards — visual only, not yet linked */
.blog-card--preview { cursor: default; }

/* Image wrapper */
.blog-card-img {
  width:    100%;
  overflow: hidden;
  position: relative;
}
.blog-card-img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card--featured .blog-card-img { height: 320px; }

/* Body */
.blog-card-body { padding: 1.5rem; }

.blog-card-tag {
  display:        inline-block;
  font-size:      0.6875rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-teal);
  margin-bottom:  0.75rem;
}

.blog-card-title {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-weight:    700;
  letter-spacing: -0.02em;
  color:          var(--text-primary);
  line-height:    1.25;
  margin-bottom:  0.625rem;
}

.blog-card--featured .blog-card-title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

.blog-card--small .blog-card-title { font-size: 0.9375rem; }

.blog-card-excerpt {
  font-size:   0.9rem;
  color:       var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display:     -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}

.blog-card-meta {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  font-size:   0.8rem;
  color:       var(--text-secondary);
}
.blog-card-meta-dot { color: var(--border-subtle); }

/* ── Small cards (right column stack) ──────────────────────── */
.blog-stack {
  display:        flex;
  flex-direction: column;
  gap:            1.25rem;
}

.blog-card--small {
  display:     grid;
  grid-template-columns: 1fr 140px;
  gap:         0;
  align-items: stretch;
}

.blog-card--small .blog-card-body {
  padding:        1rem 1rem 1rem 1.125rem;
  display:        flex;
  flex-direction: column;
  justify-content: center;
  order:          1;
}

.blog-card--small .blog-card-img {
  width:    140px;
  height:   140px;
  order:    2;
  flex-shrink: 0;
}

.blog-card--small .blog-card-img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  object-position: center;
}

.blog-card--small .blog-card-excerpt { display: none; }

.blog-card--small .blog-card-meta { margin-top: auto; padding-top: 0.5rem; }

@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card--featured .blog-card-img { height: 220px; }
}
@media (max-width: 560px) {
  .blog-highlight { padding: 5rem 0; }
  .blog-card--small { grid-template-columns: 1fr 100px; }
  .blog-card--small .blog-card-img { width: 100px; height: 100px; }
}

/* ── CONSENT BANNER ─────────────────────────────────────────── */
body.consent-active { overflow: hidden; }

.b7-consent-overlay {
  position:         fixed;
  inset:            0;
  z-index:          9500;
  display:          flex;
  align-items:      flex-end;
  background:       rgba(7, 13, 24, 0.72);
  backdrop-filter:  blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.b7-consent-banner {
  width:        100%;
  max-height:   90vh;
  overflow-y:   auto;
  background:   var(--surface-elevated);
  border-top:   1px solid var(--border-subtle);
  box-shadow:   0 -12px 48px rgba(0,0,0,0.4);
  padding:      2rem 0 2.25rem;
}

.b7-consent-inner {
  max-width: 860px;
  margin:    0 auto;
  padding:   0 2rem;
}

.b7-consent-top {
  display:       flex;
  align-items:   flex-start;
  gap:           1rem;
  margin-bottom: 1.5rem;
}

.b7-consent-icon {
  flex-shrink: 0;
  margin-top:  0.15rem;
}
.b7-consent-icon svg {
  width:           1.75rem;
  height:          1.75rem;
  stroke:          var(--color-teal);
  fill:            none;
  stroke-width:    1.75;
  stroke-linecap:  round;
  stroke-linejoin: round;
}

.b7-consent-title {
  font-family:    'Plus Jakarta Sans', sans-serif;
  font-size:      1.0625rem;
  font-weight:    700;
  color:          var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom:  0.4rem;
}

.b7-consent-desc {
  font-size:   0.875rem;
  color:       var(--text-secondary);
  line-height: 1.65;
  max-width:   640px;
}

.b7-consent-actions {
  display:     flex;
  flex-wrap:   wrap;
  align-items: center;
  gap:         0.625rem;
  margin:      1.25rem 0 1rem;
}

.b7-consent-btn {
  font-family:   'Plus Jakarta Sans', sans-serif;
  font-size:     0.875rem;
  font-weight:   700;
  border-radius: 999px;
  cursor:        pointer;
  padding:       0.625rem 1.375rem;
  border:        2px solid transparent;
  line-height:   1;
  transition:    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space:   nowrap;
}
.b7-consent-btn--primary {
  background:   var(--color-teal);
  color:        #fff;
  border-color: var(--color-teal);
}
.b7-consent-btn--primary:hover {
  filter: brightness(1.1);
}
.b7-consent-btn--ghost {
  background:   transparent;
  color:        var(--text-primary);
  border-color: var(--border-subtle);
}
.b7-consent-btn--ghost:hover {
  border-color: var(--color-teal);
  color:        var(--color-teal);
}
.b7-consent-btn--text {
  background:   transparent;
  color:        var(--text-secondary);
  border-color: transparent;
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.b7-consent-btn--text:hover { color: var(--text-primary); }

.b7-consent-legal {
  font-size: 0.8rem;
  color:     var(--text-secondary);
}
.b7-consent-legal a {
  color:           var(--color-teal);
  text-decoration: none;
}
.b7-consent-legal a:hover { text-decoration: underline; }

/* Preferences panel */
.b7-consent-prefs[hidden] { display: none; }

.b7-consent-back {
  display:     inline-flex;
  align-items: center;
  gap:         0.375rem;
  font-size:   0.875rem;
  font-weight: 600;
  color:       var(--text-secondary);
  background:  none;
  border:      none;
  cursor:      pointer;
  padding:     0 0 1.25rem;
  transition:  color 0.2s ease;
}
.b7-consent-back svg {
  width:           1rem;
  height:          1rem;
  stroke:          currentColor;
  fill:            none;
  stroke-width:    2;
  stroke-linecap:  round;
  stroke-linejoin: round;
}
.b7-consent-back:hover { color: var(--text-primary); }

.b7-consent-categories {
  margin:        1.25rem 0 1.5rem;
  border:        1px solid var(--border-subtle);
  border-radius: 8px;
  overflow:      hidden;
}

.b7-consent-cat {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1.5rem;
  padding:         1rem 1.25rem;
  border-bottom:   1px solid var(--border-subtle);
  background:      var(--surface-default);
}
.b7-consent-cat:last-child { border-bottom: none; }

.b7-consent-cat-info { flex: 1; min-width: 0; }
.b7-consent-cat-name {
  display:       block;
  font-size:     0.9375rem;
  font-weight:   600;
  color:         var(--text-primary);
  margin-bottom: 0.175rem;
}
.b7-consent-cat-desc {
  display:     block;
  font-size:   0.8125rem;
  color:       var(--text-secondary);
  line-height: 1.5;
}

.b7-consent-always-on {
  font-size:   0.75rem;
  font-weight: 700;
  color:       var(--color-teal);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Toggle switch */
.b7-consent-switch {
  position:      relative;
  width:         2.75rem;
  height:        1.5rem;
  border-radius: 999px;
  background:    var(--border-subtle);
  border:        2px solid transparent;
  cursor:        pointer;
  flex-shrink:   0;
  padding:       0;
  transition:    background 0.2s ease;
  outline-offset: 3px;
}
.b7-consent-switch::after {
  content:       '';
  position:      absolute;
  top:           2px;
  left:          2px;
  width:         1.125rem;
  height:        1.125rem;
  border-radius: 50%;
  background:    #fff;
  box-shadow:    0 1px 3px rgba(0,0,0,0.3);
  transition:    transform 0.2s ease;
}
.b7-consent-switch[aria-checked="true"] {
  background: var(--color-teal);
}
.b7-consent-switch[aria-checked="true"]::after {
  transform: translateX(1.25rem);
}
.b7-consent-switch:focus-visible {
  outline: 2px solid var(--focus-ring);
}

@media (max-width: 600px) {
  .b7-consent-top     { flex-direction: column; gap: 0.5rem; }
  .b7-consent-actions { flex-direction: column; align-items: stretch; }
  .b7-consent-btn     { text-align: center; }
  .b7-consent-inner   { padding: 0 1.25rem; }
}
