/* =========================================================
   Quantum Longevity — Core Stylesheet
   Author: Quantum Design System
   Layers: reset / tokens / base / layout / components / utilities
   ========================================================= */

@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%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
  img, picture, svg, video { display: block; max-width: 100%; height: auto; }
  button, input, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: none; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }
  :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
}

/* ---------- TOKENS ---------- */
@layer tokens {
  :root {
    /* Surfaces */
    --bg-base: #FAFBFC;
    --bg-elevated: #FFFFFF;
    --bg-section: #F4F7FA;
    --bg-mist: #EEF4F9;
    --bg-dark: #0B1426;

    /* Brand */
    --primary: #0284C7;
    --primary-soft: #38BDF8;
    --secondary: #0D9488;
    --accent: #6366F1;
    --highlight: #10B981;

    /* Luxury */
    --gold: #C9A961;
    --gold-deep: #B8985A;
    --gold-soft: #E8D9B5;

    /* Text */
    --text-strong: #0B1426;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-faint: #94A3B8;
    --text-invert: #FAFBFC;

    /* Lines & Shadows */
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.14);
    --line-invert: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 40px rgba(2, 132, 199, 0.25);
    --shadow-gold: 0 4px 14px rgba(201, 169, 97, 0.35);

    /* Radii */
    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-pill: 999px;

    /* Easings */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Type */
    --font-display: 'Marcellus', 'Times New Roman', Georgia, serif;
    --font-body: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --h1: clamp(2.75rem, 5.5vw, 5rem);
    --h2: clamp(2rem, 4vw, 3.25rem);
    --h3: clamp(1.5rem, 2.5vw, 2rem);
    --h4: clamp(1.25rem, 1.8vw, 1.5rem);
    --body-lg: clamp(1.125rem, 1.4vw, 1.25rem);
    --body: 1rem;
    --caption: 0.8125rem;
    --micro: 0.75rem;

    /* Spacing */
    --space-section: clamp(80px, 10vw, 140px);
    --space-stack: clamp(48px, 6vw, 80px);
    --container-max: 1320px;
    --container-pad: clamp(20px, 4vw, 48px);

    /* Fixed nav height — anchor jumps and any nav-aware spacing reference this */
    --nav-h: 92px;
  }
}

/* ---------- BASE ---------- */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
  /* Any section that can be the target of an anchor jump offsets itself from the fixed nav */
  section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
  body {
    font-family: var(--font-body);
    font-size: var(--body);
    line-height: 1.65;
    color: var(--text-body);
    background: var(--bg-base);
    overflow-x: hidden;
    position: relative;
  }

  /* Subtle noise overlay — kills the flat AI feel */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-strong);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.005em;
  }
  h1 { font-size: var(--h1); }
  h2 { font-size: var(--h2); }
  h3 { font-size: var(--h3); }
  h4 { font-size: var(--h4); }

  p { color: var(--text-body); }
  em { font-style: italic; color: var(--text-strong); font-family: var(--font-display); }

  ::selection { background: var(--gold-soft); color: var(--text-strong); }

  /* Custom Scrollbar */
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-base); }
  ::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--primary) 50%, transparent); border-radius: 999px; border: 2px solid var(--bg-base); }
  ::-webkit-scrollbar-thumb:hover { background: var(--primary); }
}

/* ---------- LAYOUT ---------- */
@layer layout {
  .container-q {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
  }
  section { padding-block: var(--space-section); position: relative; }
  .section-alt { background: var(--bg-section); }
  .section-mist { background: var(--bg-mist); }
  .section-dark { background: var(--bg-dark); color: var(--text-invert); }
  .section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-invert); }
  /* Italic emphasis on dark sections: gold so the phrase stays readable and on-brand
     (the default em color is var(--text-strong), which equals the dark bg and disappears). */
  .section-dark em { color: var(--gold); }

  .section-head { max-width: 720px; margin-bottom: clamp(40px, 4.5vw, 64px); }
  .section-head.center { margin-inline: auto; text-align: center; }
}

/* ---------- COMPONENTS ---------- */
@layer components {

  /* ===== Eyebrow / Mono Label ===== */
  .eyebrow {
    font-family: var(--font-mono);
    font-size: var(--caption);
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
  }
  .eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--gold);
  }
  .eyebrow.invert { color: var(--text-faint); }

  /* ===== Buttons ===== */
  .btn-q {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--r-pill);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: transform 0.35s var(--ease-back), box-shadow 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    will-change: transform;
  }
  .btn-q .arrow { transition: transform 0.4s var(--ease-out); }
  .btn-q:hover .arrow { transform: translateX(4px); }

  .btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--text-strong);
    box-shadow: var(--shadow-gold);
  }
  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.48), 0 0 0 1px rgba(201, 169, 97, 0.3);
  }

  .btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text-strong);
  }
  .btn-ghost:hover {
    background: var(--text-strong);
    color: var(--text-invert);
    border-color: var(--text-strong);
    transform: translateY(-2px);
  }
  .btn-ghost.invert { color: var(--text-invert); border-color: var(--line-invert); }
  .btn-ghost.invert:hover { background: var(--text-invert); color: var(--text-strong); border-color: var(--text-invert); }

  .btn-primary-q {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
  }
  .btn-primary-q:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
  }
  .link-arrow::after {
    content: "";
    position: absolute;
    left: 0; right: 30px; bottom: 0;
    height: 1px;
    background: var(--text-strong);
    transform-origin: right;
    transform: scaleX(1);
    transition: transform 0.5s var(--ease-out);
  }
  .link-arrow:hover::after { transform-origin: left; transform: scaleX(0.6); }
  .link-arrow svg { transition: transform 0.4s var(--ease-out); }
  .link-arrow:hover svg { transform: translateX(6px); }

  /* ===== Cards ===== */
  .card-q {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 32px;
    transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
  }
  .card-q:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklab, var(--primary) 35%, var(--line));
    box-shadow: var(--shadow-md);
  }

  /* ===== Navbar ===== */
  .nav-wrap {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding-block: 20px;
    transition: padding 0.4s var(--ease-out), background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
  }
  .nav-wrap.scrolled {
    padding-block: 12px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--line);
  }
  /* Over dark sections (CTA, footer hero, etc.): swap to inverted glass */
  .nav-wrap.on-dark { color: var(--text-invert); }
  .nav-wrap.on-dark .brand { color: var(--text-invert); }
  .nav-wrap.on-dark .brand svg { color: var(--primary-soft); }
  .nav-wrap.on-dark .nav-links a { color: rgba(250, 251, 252, 0.78); }
  .nav-wrap.on-dark .nav-links a:hover,
  .nav-wrap.on-dark .nav-links a.active { color: var(--text-invert); }
  .nav-wrap.on-dark .nav-toggle { border-color: var(--line-invert); }
  .nav-wrap.on-dark .nav-toggle span { background: var(--text-invert); }
  .nav-wrap.on-dark.scrolled {
    background: rgba(11, 20, 38, 0.55);
    border-bottom-color: var(--line-invert);
  }
  .nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-strong);
    letter-spacing: -0.01em;
  }
  .brand svg { color: var(--primary); }
  .nav-links {
    display: flex;
    justify-content: center;
    gap: 36px;
  }
  .nav-links a {
    color: var(--text-body);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 20px; height: 2px;
    border-radius: 999px;
    background: var(--gold);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s var(--ease-back);
  }
  .nav-links a:hover, .nav-links a.active { color: var(--text-strong); }
  .nav-links a:hover::after, .nav-links a.active::after { transform: translateX(-50%) scaleX(1); }

  .nav-cta { display: inline-flex; align-items: center; gap: 16px; }
  .nav-cta .btn-q { padding: 12px 22px; font-size: 0.875rem; }

  .nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-strong);
    transition: transform 0.4s var(--ease-back), opacity 0.3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Mobile overlay menu */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 99;
    padding: 100px var(--container-pad) 40px;
    transform: translateY(-100%);
    transition: transform 0.7s var(--ease-out);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .nav-overlay.open { transform: translateY(0); }
  .nav-overlay .nav-links-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav-overlay .nav-links-mobile a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--text-strong);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
  }
  .nav-overlay.open .nav-links-mobile a { animation: navItemIn 0.7s var(--ease-out) forwards; }
  .nav-overlay.open .nav-links-mobile a:nth-child(1) { animation-delay: 0.15s; }
  .nav-overlay.open .nav-links-mobile a:nth-child(2) { animation-delay: 0.25s; }
  .nav-overlay.open .nav-links-mobile a:nth-child(3) { animation-delay: 0.35s; }
  .nav-overlay.open .nav-links-mobile a:nth-child(4) { animation-delay: 0.45s; }
  .nav-overlay.open .nav-links-mobile a:nth-child(5) { animation-delay: 0.55s; }
  @keyframes navItemIn { to { opacity: 1; transform: translateY(0); } }

  /* ===== HERO ===== */
  .hero {
    position: relative;
    padding-top: clamp(124px, 12vw, 168px);
    padding-bottom: clamp(72px, 9vw, 124px);
    overflow: clip;
    isolation: isolate;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #EEF4F9 0%, #FAFBFC 40%, #F0FDFA 100%);
    z-index: -2;
  }
  .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    z-index: -1;
    will-change: transform;
  }
  .blob-1 { width: 520px; height: 520px; top: -180px; left: -120px; background: radial-gradient(circle, #38BDF8 0%, transparent 70%); animation: drift1 26s ease-in-out infinite; }
  .blob-2 { width: 460px; height: 460px; top: 30%; right: -180px; background: radial-gradient(circle, #6366F1 0%, transparent 70%); animation: drift2 32s ease-in-out infinite; opacity: 0.4; }
  .blob-3 { width: 400px; height: 400px; bottom: -120px; left: 30%; background: radial-gradient(circle, #10B981 0%, transparent 70%); animation: drift3 28s ease-in-out infinite; opacity: 0.35; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
  }
  .hero-content h1 { margin-bottom: 28px; }
  .hero-content h1 .word, .hero-content h1 .char { display: inline-block; }
  .hero-subhead {
    font-size: var(--body-lg);
    color: var(--text-body);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.6;
  }
  .hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
  .hero-trust {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .hero-trust-avatars { display: flex; }
  .hero-trust-avatars span {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 2px solid var(--bg-base);
    margin-left: -10px;
    box-shadow: var(--shadow-sm);
  }
  .hero-trust-avatars span:first-child { margin-left: 0; background: linear-gradient(135deg, #F4D2B6, #C49A7A); }
  .hero-trust-avatars span:nth-child(2) { background: linear-gradient(135deg, #B9D9E8, #6A8FA8); }
  .hero-trust-avatars span:nth-child(3) { background: linear-gradient(135deg, #D8C3E0, #8E6FA0); }
  .hero-trust-avatars span:nth-child(4) { background: linear-gradient(135deg, #C9A961, #B8985A); }
  .hero-trust-text {
    font-size: var(--caption);
    color: var(--text-muted);
    line-height: 1.5;
  }
  .hero-trust-text strong { color: var(--text-strong); font-weight: 600; }

  /* Hero visual */
  .hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 540px; margin-inline: auto; width: 100%; }
  .orb {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background:
      radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), transparent 40%),
      conic-gradient(from 220deg at 60% 40%, #0284C7, #6366F1, #0D9488, #38BDF8, #0284C7);
    filter: blur(0.5px);
    box-shadow:
      inset 0 0 80px rgba(255,255,255,0.4),
      0 30px 80px rgba(2, 132, 199, 0.35),
      0 0 0 1px rgba(255,255,255,0.5);
    animation: orbSpin 30s linear infinite;
  }
  .orb::after {
    content: "";
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    border: 1px dashed rgba(2, 132, 199, 0.25);
    animation: orbSpin 60s linear infinite reverse;
  }

  .stat-chip {
    position: absolute;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--r-md);
    padding: 14px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    min-width: 180px;
  }
  .stat-chip .chip-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .stat-chip .chip-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-strong);
    line-height: 1.1;
  }
  .stat-chip.chip-1 { top: 8%; left: -8%; transform: rotate(-4deg); }
  .stat-chip.chip-2 { top: 40%; right: -10%; transform: rotate(3deg); }
  .stat-chip.chip-3 { bottom: 6%; left: 4%; transform: rotate(-2deg); }
  .stat-chip .delta { color: var(--highlight); font-family: var(--font-mono); font-size: 0.8125rem; }

  /* ===== Trust Strip ===== */
  .trust-strip { padding-top: 64px; padding-bottom: 48px; border-block: 1px solid var(--line); background: var(--bg-elevated); }
  /* About preview tightens up to trust strip — they read as a paired unit */
  #about-preview { padding-top: clamp(64px, 7vw, 100px); }
  .trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .trust-stat { padding: 12px 32px; border-left: 1px solid var(--line); }
  .trust-stat:first-child { border-left: none; padding-left: 0; }
  .trust-stat .num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--text-strong);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  .trust-stat .label {
    font-size: var(--caption);
    color: var(--text-muted);
  }

  /* Marquee */
  .marquee {
    padding-block: 28px;
    overflow: hidden;
    border-top: 1px solid var(--line);
    margin-top: 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .marquee-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: marquee 40s linear infinite;
  }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-item {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-faint);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.3s;
  }
  .marquee-item:hover { color: var(--text-strong); }

  /* ===== About Preview ===== */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 8vw, 96px);
    align-items: center;
  }
  .about-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #E5EFF7 0%, #D7E6F0 50%, #C9DBE8 100%);
    border: 1px solid var(--gold-soft);
    padding: 12px;
  }
  .about-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: var(--r-lg);
    margin: 12px;
    pointer-events: none;
  }
  .about-frame-inner {
    width: 100%; height: 100%;
    border-radius: 20px;
    background:
      radial-gradient(circle at 50% 40%, rgba(255,255,255,0.7), transparent 50%),
      linear-gradient(135deg, #B9CFE2, #7FA2BD 70%, #5C7E99);
    position: relative;
    overflow: hidden;
  }
  .about-frame-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.45), transparent 40%),
      radial-gradient(ellipse at 70% 70%, rgba(2,132,199,0.15), transparent 50%);
  }
  .about-frame-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(transparent 95%, rgba(255,255,255,0.15) 95%),
      linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.15) 95%);
    background-size: 24px 24px;
  }
  .about-badge {
    position: absolute;
    bottom: 24px; right: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--gold-soft);
    border-radius: 50%;
    width: 110px; height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    color: var(--text-strong);
    text-align: center;
    line-height: 1.1;
    box-shadow: var(--shadow-md);
  }
  .about-badge .year { font-size: 1.5rem; }
  .about-badge .label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }

  .about-copy h2 { margin-bottom: 28px; }
  .about-copy p { margin-bottom: 20px; max-width: 56ch; }

  /* ===== Bento Grid (Services) ===== */
  .bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(240px, auto);
    gap: 20px;
  }
  .bento-tile {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    min-width: 0;
  }
  .bento-tile:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklab, var(--primary) 35%, var(--line));
    box-shadow: var(--shadow-md);
  }
  .bento-tile:hover .tile-icon { transform: rotate(8deg) scale(1.08); color: var(--primary); }
  .bento-tile .tile-num {
    position: absolute;
    top: 24px; right: 28px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-faint);
    letter-spacing: 0.08em;
  }
  .tile-icon {
    width: 56px; height: 56px;
    color: var(--text-strong);
    transition: transform 0.6s var(--ease-back), color 0.4s;
    margin-bottom: 32px;
  }
  .tile-icon svg { width: 100%; height: 100%; }
  .bento-tile h3 { margin-bottom: 12px; font-size: 1.5rem; }
  .bento-tile p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }
  .bento-tile .tile-link {
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-strong);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
  }
  .bento-tile:hover .tile-link { gap: 14px; }

  /* Bento spans (desktop) */
  .b-feature {
    grid-column: span 7;
    grid-row: span 2;
    padding: 48px;
    /* Cluster icon + content at top so the bottom-right feature-visual reads
       as intentional negative space, not an empty middle */
    justify-content: flex-start;
    gap: 28px;
  }
  .b-feature .tile-icon { margin-bottom: 0; width: 64px; height: 64px; }
  .b-feature h3 { font-size: 1.625rem; margin-bottom: 16px; max-width: 18ch; }
  .b-feature p { max-width: 48ch; }
  .b-feature .tile-link { margin-top: 28px; }
  .b-half { grid-column: span 5; }
  .b-third { grid-column: span 4; }
  .bento-tile h3 { font-size: 1.5rem; line-height: 1.15; }

  /* Feature tile visual */
  .b-feature .feature-visual {
    position: absolute;
    right: -40px; bottom: -40px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 35% 35%, rgba(255,255,255,0.7), transparent 50%),
      conic-gradient(from 180deg, #0284C7, #38BDF8, #6366F1, #0D9488, #0284C7);
    filter: blur(2px);
    opacity: 0.5;
    pointer-events: none;
  }
  .b-feature .feature-visual::after {
    content: "";
    position: absolute; inset: 8%;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.4);
  }

  /* ===== Why Choose Us ===== */
  .why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .why-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  @media (max-width: 991.98px) {
    .why-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 575.98px) {
    .why-grid.cols-3 { grid-template-columns: 1fr; }
  }
  .why-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 32px;
    min-height: 280px;
    position: relative;
    transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.6s;
    transform-style: preserve-3d;
    will-change: transform;
  }
  .why-card:hover { border-color: color-mix(in oklab, var(--primary) 30%, var(--line)); box-shadow: var(--shadow-md); }
  .why-card .w-icon { width: 40px; height: 40px; color: var(--text-strong); margin-bottom: auto; }
  .why-card.gold-stroke .w-icon { color: var(--gold-deep); }
  .why-card h4 {
    font-size: 1.125rem;
    margin-top: 80px;
    margin-bottom: 8px;
    font-family: var(--font-display);
  }
  .why-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
  .why-card .w-num {
    position: absolute;
    bottom: 28px; right: 28px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--bg-section);
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s;
  }
  .why-card:hover .w-num { color: color-mix(in oklab, var(--primary) 12%, var(--bg-section)); }

  /* ===== Process Timeline ===== */
  .process-wrap {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    margin-inline: calc(var(--container-pad) * -1);
    padding-inline: var(--container-pad);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .process-wrap::-webkit-scrollbar { display: none; }
  .process-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
    min-width: max-content;
  }
  .process-step { scroll-snap-align: start; }
  .process-track::before {
    content: "";
    position: absolute;
    top: 32px; left: 32px; right: 32px;
    height: 1px;
    background: var(--line);
    z-index: 0;
  }
  .process-track::after {
    content: "";
    position: absolute;
    top: 32px; left: 32px;
    height: 1px;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1;
    transition: width 0.6s var(--ease-out);
  }
  .process-step {
    position: relative;
    z-index: 2;
  }
  .process-num {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-strong);
    margin-bottom: 28px;
    transition: background 0.4s, border-color 0.4s, color 0.4s;
  }
  .process-step.active .process-num,
  .process-step:hover .process-num {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
  }
  .process-step h4 { font-size: 1.25rem; margin-bottom: 10px; }
  .process-step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; max-width: 240px; }

  /* ===== Testimonials ===== */
  .testimonial-wrap {
    position: relative;
    margin-inline: calc(var(--container-pad) * -1);
    padding-inline: var(--container-pad);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .testimonial-swiper { padding-block: 40px; }
  .testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(32px, 5vw, 64px);
    transition: opacity 0.5s, transform 0.5s;
    height: auto;
    box-shadow: var(--shadow-sm);
  }
  .swiper-slide:not(.swiper-slide-active) .testimonial-card {
    opacity: 0.55;
    transform: scale(0.96);
  }

  /* Swiper pagination dots */
  .swiper-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
  }
  .swiper-dots button {
    width: 28px; height: 4px;
    border-radius: 999px;
    background: var(--line-strong);
    transition: background 0.3s, width 0.4s var(--ease-out);
  }
  .swiper-dots button.is-active {
    background: var(--gold);
    width: 44px;
  }
  .testimonial-card .quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold);
    line-height: 0.6;
    margin-bottom: 24px;
    display: block;
  }
  .testimonial-card .quote {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    color: var(--text-strong);
    line-height: 1.4;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
  }
  .testimonial-meta { display: flex; align-items: center; gap: 16px; }
  .testimonial-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
  }
  .testimonial-meta .name { font-weight: 600; color: var(--text-strong); }
  .testimonial-meta .meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

  .swiper-nav {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    justify-content: center;
  }
  .swiper-nav button {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text-strong);
    transition: all 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .swiper-nav button:hover { background: var(--gold); border-color: var(--gold); color: var(--text-strong); transform: translateY(-2px); }

  /* ===== FAQ ===== */
  .faq-list { max-width: 800px; margin-inline: auto; }
  .faq-item {
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }
  .faq-item:first-child { border-top: 1px solid var(--line); }
  .faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    color: var(--text-strong);
    letter-spacing: -0.01em;
    transition: color 0.3s;
  }
  .faq-q:hover { color: var(--primary); }
  .faq-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.5s var(--ease-out), border-color 0.3s, background 0.3s;
  }
  .faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
  }
  .faq-icon::before { width: 12px; height: 1.5px; }
  .faq-icon::after { width: 1.5px; height: 12px; transition: transform 0.4s var(--ease-back); }
  .faq-item.open .faq-icon { transform: rotate(135deg); border-color: var(--primary); color: var(--primary); }
  .faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s var(--ease-out), padding 0.4s, opacity 0.4s;
    opacity: 0;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    padding-right: 60px;
  }
  .faq-item.open .faq-a { max-height: 400px; padding-top: 18px; opacity: 1; }

  /* ===== CTA Banner ===== */
  .cta-banner {
    background: var(--bg-dark);
    color: var(--text-invert);
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding-block: clamp(96px, 12vw, 160px);
  }
  .cta-banner h2 { color: var(--text-invert); max-width: 18ch; margin-inline: auto; }
  .cta-banner p { color: rgba(250,251,252,0.7); max-width: 56ch; margin-inline: auto; margin-top: 24px; }
  .cta-banner .cta-actions { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
  .cta-particles {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0.5;
  }
  .cta-particles::before,
  .cta-particles::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
  }
  .cta-particles::before { width: 400px; height: 400px; top: -100px; left: -100px; background: radial-gradient(circle, rgba(2,132,199,0.4), transparent 70%); animation: drift1 28s ease-in-out infinite; }
  .cta-particles::after { width: 320px; height: 320px; bottom: -80px; right: -80px; background: radial-gradient(circle, rgba(201,169,97,0.25), transparent 70%); animation: drift2 36s ease-in-out infinite; }

  /* ===== Footer ===== */
  .footer { background: var(--bg-base); padding-top: 120px; padding-bottom: 32px; border-top: 1px solid var(--line); }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(4, 1fr);
    gap: 40px 48px;
    padding-bottom: 64px;
  }
  .footer-brand .btn-q { margin-top: 28px; }
  .footer-col h5 {
    font-family: var(--font-mono);
    font-size: var(--micro);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    font-weight: 500;
  }
  .footer-col ul { display: flex; flex-direction: column; gap: 12px; }
  .footer-col a { font-size: 0.9375rem; color: var(--text-body); transition: color 0.3s; }
  .footer-col a:hover { color: var(--text-strong); }
  .footer-brand p { font-size: 0.9375rem; color: var(--text-muted); margin: 20px 0 28px; max-width: 36ch; }
  .footer-socials { display: flex; gap: 12px; }
  .footer-socials a {
    width: 40px; height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
  }
  .footer-socials a:hover { background: var(--text-strong); color: var(--bg-base); transform: translateY(-2px); }
  .newsletter {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    padding: 6px 6px 6px 20px;
    transition: border-color 0.3s;
  }
  .newsletter:focus-within { border-color: var(--text-strong); }
  .newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    color: var(--text-strong);
    padding: 10px 0;
  }
  .newsletter input::placeholder { color: var(--text-faint); }
  .newsletter button {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--text-strong);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
  }
  .newsletter button:hover { background: var(--primary); transform: rotate(-45deg); }
  .footer-bottom {
    border-top: 1px solid transparent;
    background:
      linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
      linear-gradient(90deg, transparent, var(--gold), transparent) border-box;
    border-top: 1px solid transparent;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: var(--caption);
    color: var(--text-muted);
  }
  .footer-bottom .legal { display: flex; gap: 24px; }

  /* ===== Page Hero (about, etc.) ===== */
  .page-hero {
    padding-top: clamp(120px, 11vw, 160px);
    padding-bottom: clamp(56px, 7vw, 88px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #EEF4F9 0%, #FAFBFC 60%);
  }
  .page-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
  }
  .page-hero h1 { margin-bottom: 24px; }
  .page-hero p { font-size: var(--body-lg); color: var(--text-body); max-width: 56ch; }
  .page-hero-visual {
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    background:
      radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 50%),
      linear-gradient(135deg, #C9DBE8 0%, #8FAEC2 60%, #5C7E99 100%);
    position: relative;
    overflow: hidden;
  }
  .page-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(transparent 95%, rgba(255,255,255,0.18) 95%),
      linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.18) 95%);
    background-size: 32px 32px;
  }

  /* ===== About: mission / vision ===== */
  .mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .mv-card {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 48px;
    background: var(--bg-elevated);
    position: relative;
  }
  .mv-card .mv-icon { color: var(--gold-deep); width: 36px; height: 36px; margin-bottom: 24px; }
  .mv-card h3 { font-size: 1.75rem; margin-bottom: 16px; }
  .mv-card .pullquote {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-strong);
    line-height: 1.4;
    padding-left: 20px;
    border-left: 1px solid var(--gold);
    margin: 24px 0;
  }
  .mv-card p { color: var(--text-body); }

  /* ===== Founder Story ===== */
  .founder-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
  }
  .founder-portrait {
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    background:
      radial-gradient(circle at 50% 35%, rgba(255,255,255,0.4), transparent 50%),
      linear-gradient(135deg, #E8DDC8, #C9A961 50%, #8E7340);
    position: sticky;
    top: 100px;
    overflow: hidden;
  }
  .founder-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 50% 75%, rgba(11, 20, 38, 0.3), transparent 60%);
  }
  .founder-story p { margin-bottom: 20px; max-width: 60ch; }
  .founder-story p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 4.5rem;
    float: left;
    line-height: 0.85;
    margin: 8px 12px 0 0;
    color: var(--gold-deep);
  }
  .founder-sig { margin-top: 32px; }
  .founder-sig .sig-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-strong); }
  .founder-sig .sig-role { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

  /* ===== Advisory Board ===== */
  .advisor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .advisor {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-elevated);
    transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
  }
  .advisor:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
  .advisor-photo {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #D7E6F0, #8FAEC2);
    position: relative;
    overflow: hidden;
  }
  .advisor-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.4), transparent 50%);
  }
  .advisor-photo .li {
    position: absolute;
    bottom: 14px; right: 14px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-strong);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s var(--ease-back);
  }
  .advisor:hover .li { opacity: 1; transform: translateY(0); }
  .advisor-body { padding: 24px; }
  .advisor-body .name { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-strong); }
  .advisor-body .creds { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; margin-bottom: 12px; }
  .advisor-body .bio { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

  /* ===== Values ===== */
  .values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 80px; }
  .value-block { display: grid; grid-template-columns: auto 1fr; gap: 28px; }
  .value-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .value-block h3 { font-size: 1.5rem; margin-bottom: 12px; }
  .value-block p { color: var(--text-body); max-width: 42ch; }

  /* ===== Achievements timeline (vertical) ===== */
  .timeline-v { position: relative; max-width: 760px; margin-inline: auto; padding-left: 32px; border-left: 1px solid var(--line); }
  .timeline-row { position: relative; padding: 0 0 56px 32px; }
  .timeline-row:last-child { padding-bottom: 0; }
  .timeline-row::before {
    content: "";
    position: absolute;
    left: -38px; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--primary);
  }
  .timeline-row .year { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--gold-deep); letter-spacing: 0.08em; margin-bottom: 8px; }
  .timeline-row h4 { font-size: 1.375rem; margin-bottom: 10px; }
  .timeline-row p { color: var(--text-muted); max-width: 56ch; }

  /* ===== 404 page ===== */
  .err {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px var(--container-pad);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #EEF4F9 0%, #FAFBFC 50%, #F0FDFA 100%);
  }
  .err::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 20%, rgba(56,189,248,0.18), transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(99,102,241,0.15), transparent 40%);
    pointer-events: none;
  }
  .err-orbit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    opacity: 0.6;
  }
  .err-orbit svg { width: clamp(400px, 60vw, 700px); height: auto; animation: orbSpin 60s linear infinite; }
  .err-stack { position: relative; z-index: 1; max-width: 720px; }
  .err-num {
    font-family: var(--font-display);
    font-size: clamp(8rem, 22vw, 16rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(2,132,199,0.4);
    margin-bottom: 24px;
  }
  .err h1 {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    margin-bottom: 16px;
  }
  .err p { font-size: var(--body-lg); color: var(--text-body); margin-bottom: 36px; max-width: 48ch; margin-inline: auto; }
  .err-particles {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
  }
  .err-particles span {
    position: absolute;
    bottom: -20px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    animation: floatUp linear infinite;
  }

  /* ===== Utility ===== */
  .gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border: none;
    margin: 0;
  }

  /* Reveal classes (used by IntersectionObserver) */
  .reveal { opacity: 0; transform: translateY(24px) scale(0.99); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
  .reveal.in { opacity: 1; transform: translateY(0) scale(1); }
  .reveal.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .reveal.stagger.in > * { opacity: 1; transform: translateY(0); }
  .reveal.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
  .reveal.stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
  .reveal.stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
  .reveal.stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
  .reveal.stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
  .reveal.stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.stagger > * { opacity: 1; transform: none; transition: none; }
    .blob, .marquee-track, .orb, .orb::after, .cta-particles::before, .cta-particles::after { animation: none; }
  }
}

/* ---------- ADDITIONAL COMPONENTS (Programs / Process / Contact pages) ---------- */
@layer components {

  /* ===== Program detail (alternating long-form) ===== */
  .prog-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
    padding-block: clamp(64px, 8vw, 112px);
    border-top: 1px solid var(--line);
  }
  .prog-detail:first-of-type { border-top: none; padding-top: 0; }
  .prog-detail.reverse .prog-visual { order: 2; }
  .prog-visual {
    aspect-ratio: 5 / 6;
    border-radius: var(--r-lg);
    background:
      radial-gradient(circle at 32% 30%, rgba(255,255,255,0.6), transparent 50%),
      linear-gradient(135deg, #D7E6F0 0%, #8FAEC2 60%, #5C7E99 100%);
    position: relative;
    overflow: hidden;
  }
  .prog-visual::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(transparent 95%, rgba(255,255,255,0.14) 95%),
      linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.14) 95%);
    background-size: 28px 28px;
  }
  .prog-visual.gold {
    background:
      radial-gradient(circle at 32% 30%, rgba(255,255,255,0.5), transparent 50%),
      linear-gradient(135deg, #E8DDC8, #C9A961 50%, #8E7340);
  }
  .prog-visual.teal {
    background:
      radial-gradient(circle at 32% 30%, rgba(255,255,255,0.5), transparent 50%),
      linear-gradient(135deg, #BDE3DC, #0D9488 60%, #064E48);
  }
  .prog-visual.indigo {
    background:
      radial-gradient(circle at 32% 30%, rgba(255,255,255,0.5), transparent 50%),
      linear-gradient(135deg, #D8D5F5, #6366F1 60%, #3B348C);
  }
  .prog-visual.mist {
    background:
      radial-gradient(circle at 32% 30%, rgba(255,255,255,0.5), transparent 50%),
      linear-gradient(135deg, #DCEEFD, #38BDF8 60%, #0F6791);
  }
  .prog-visual .visual-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.85);
    width: 40%;
    height: 40%;
    margin: auto;
    z-index: 1;
  }
  .prog-content h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 20px; max-width: 18ch; }
  .prog-content > p.lead { font-size: var(--body-lg); color: var(--text-body); margin-bottom: 28px; }
  .prog-content p { margin-bottom: 20px; max-width: 56ch; }
  .prog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
  }
  .prog-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }
  .prog-chip strong { color: var(--text-strong); font-weight: 600; letter-spacing: 0.06em; }
  .prog-includes {
    list-style: none;
    margin: 24px 0 28px;
    display: grid;
    gap: 12px;
  }
  .prog-includes li {
    padding-left: 28px;
    position: relative;
    color: var(--text-body);
  }
  .prog-includes li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.6em;
    width: 14px; height: 1px;
    background: var(--gold);
  }

  /* ===== Process detail (per-step deep dive) ===== */
  .step-detail {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: clamp(24px, 4vw, 64px);
    padding-block: clamp(56px, 7vw, 88px);
    border-top: 1px solid var(--line);
    align-items: start;
  }
  .step-detail:first-of-type { border-top: none; padding-top: 0; }
  .step-marker {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--text-faint);
    line-height: 0.9;
    letter-spacing: -0.02em;
    position: sticky;
    top: calc(var(--nav-h) + 32px);
  }
  .step-body h2 { font-size: clamp(1.625rem, 2.6vw, 2rem); margin-bottom: 16px; max-width: 22ch; }
  .step-body p { max-width: 60ch; margin-bottom: 16px; color: var(--text-body); }
  .step-body .step-lead { font-size: var(--body-lg); color: var(--text-strong); font-family: var(--font-display); line-height: 1.4; margin-bottom: 24px; max-width: 28ch; }
  .step-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 56px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
  .step-stats .stat .v {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-strong);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
  }
  .step-stats .stat .l { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

  /* ===== Contact ===== */
  .contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
  }
  .contact-form {
    display: grid;
    gap: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(32px, 4vw, 48px);
  }
  .form-row { display: grid; gap: 8px; }
  .form-row.row-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-row.row-2 > .form-field { display: grid; gap: 8px; }
  .form-field label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    background: var(--bg-base);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-strong);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    width: 100%;
  }
  .form-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus {
    outline: none;
    border-color: var(--text-strong);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.08);
  }
  .form-field input::placeholder,
  .form-field textarea::placeholder { color: var(--text-faint); }
  .form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    max-width: 36ch;
  }

  /* Clinic cards */
  .clinic-list { display: grid; gap: 16px; }
  .clinic-card {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 28px;
    background: var(--bg-elevated);
    display: grid;
    gap: 12px;
    transition: border-color 0.4s, box-shadow 0.4s;
  }
  .clinic-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
  .clinic-card .city {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-strong);
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .clinic-card .city::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
  }
  .clinic-card address {
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-body);
  }
  .clinic-card .row {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
  }
  .clinic-card .row a { color: var(--text-body); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color 0.3s, color 0.3s; }
  .clinic-card .row a:hover { color: var(--text-strong); border-color: var(--text-strong); }
  .clinic-card .hours {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

/* ---------- RESPONSIVE FOR NEW COMPONENTS ---------- */
@media (max-width: 991.98px) {
  .prog-detail { grid-template-columns: 1fr; gap: 32px; }
  .prog-detail.reverse .prog-visual { order: -1; }
  .prog-visual { max-width: 520px; }

  .step-detail { grid-template-columns: 1fr; gap: 8px; }
  .step-marker { position: static; top: auto; font-size: 2.5rem; margin-bottom: 8px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 575.98px) {
  .form-row.row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ---------- WELLNESS-CHAIN COMPONENTS (Therapies / Categories / Locations / Blog / Social) ---------- */
@layer components {

  /* ===== Hero pillar row (Oxygenation · Hydration · Circulation) ===== */
  .pillar-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .pillar-row span { color: var(--text-strong); }
  .pillar-row .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

  /* ===== Therapy showcase grid (homepage S3) ===== */
  .therapy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .therapy-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
  }
  .therapy-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklab, var(--primary) 35%, var(--line));
    box-shadow: var(--shadow-md);
  }
  .therapy-card:hover .t-icon { transform: rotate(8deg) scale(1.08); color: var(--primary); }
  .t-icon {
    width: 48px; height: 48px;
    color: var(--text-strong);
    margin-bottom: 24px;
    transition: transform 0.6s var(--ease-back), color 0.4s;
  }
  .t-icon svg { width: 100%; height: 100%; }
  .therapy-card h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 10px; }
  .therapy-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
  .therapy-card .tile-link { margin-top: auto; }

  /* ===== Therapy Category Tabs (homepage S4 / therapies page) ===== */
  .cat-tabs {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }
  .cat-tablist {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .cat-tab {
    text-align: left;
    padding: 20px 24px;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-muted);
    letter-spacing: -0.005em;
    transition: background 0.4s var(--ease-out), color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
  }
  .cat-tab .cat-tab-num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-faint);
    letter-spacing: 0.08em;
  }
  .cat-tab:hover { color: var(--text-strong); }
  .cat-tab[aria-selected="true"] {
    background: var(--bg-elevated);
    border-color: var(--line);
    color: var(--text-strong);
    box-shadow: var(--shadow-sm);
  }
  .cat-tab[aria-selected="true"] .cat-tab-num { color: var(--gold-deep); }

  .cat-panel { display: none; }
  .cat-panel.is-active { display: grid; gap: 28px; animation: catFade 0.6s var(--ease-out); }
  .cat-panel-visual {
    aspect-ratio: 16 / 10;
    border-radius: var(--r-lg);
    background:
      radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 50%),
      linear-gradient(135deg, #C9DBE8 0%, #8FAEC2 60%, #5C7E99 100%);
    position: relative;
    overflow: hidden;
  }
  .cat-panel-visual.teal { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 50%), linear-gradient(135deg, #BDE3DC, #0D9488 60%, #064E48); }
  .cat-panel-visual.indigo { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 50%), linear-gradient(135deg, #D8D5F5, #6366F1 60%, #3B348C); }
  .cat-panel-visual.gold { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 50%), linear-gradient(135deg, #E8DDC8, #C9A961 50%, #8E7340); }
  .cat-panel-visual.mist { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 50%), linear-gradient(135deg, #DCEEFD, #38BDF8 60%, #0F6791); }
  .cat-panel-visual::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(transparent 95%, rgba(255,255,255,0.14) 95%),
      linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.14) 95%);
    background-size: 28px 28px;
  }
  .cat-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
  .cat-panel p { color: var(--text-body); max-width: 54ch; margin-bottom: 24px; }

  /* ===== Free Consultation band (homepage S8) ===== */
  .consult-band { background: var(--bg-section); }
  .consult-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
  }
  .consult-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }
  .consult-bullet {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    color: var(--text-strong);
    font-weight: 500;
  }
  .consult-bullet .check {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gold-soft);
    color: var(--gold-deep);
    display: grid;
    place-items: center;
  }

  /* ===== Blog (homepage S9 / blog page) ===== */
  .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
  }
  .chip {
    padding: 9px 18px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-strong);
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-body);
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-back);
  }
  .chip:hover { border-color: var(--text-strong); color: var(--text-strong); transform: translateY(-1px); }
  .chip.is-active { background: var(--text-strong); color: var(--bg-base); border-color: var(--text-strong); }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .blog-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
  }
  .blog-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
  .blog-card.is-hidden { display: none; }
  .blog-thumb {
    aspect-ratio: 16 / 10;
    background:
      radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45), transparent 50%),
      linear-gradient(135deg, #D7E6F0, #8FAEC2);
    position: relative;
  }
  .blog-thumb.teal { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45), transparent 50%), linear-gradient(135deg, #BDE3DC, #0D9488); }
  .blog-thumb.indigo { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45), transparent 50%), linear-gradient(135deg, #D8D5F5, #6366F1); }
  .blog-thumb.gold { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45), transparent 50%), linear-gradient(135deg, #E8DDC8, #C9A961); }
  .blog-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
  .blog-tag {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 12px;
  }
  .blog-card h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 12px; }
  .blog-card .blog-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
  .blog-card .tile-link { margin-top: auto; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
  .blog-card:hover .tile-link { gap: 14px; }

  /* ===== Instagram / social strip (homepage S10) ===== */
  .insta-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
  }
  .insta-head .handle { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-muted); letter-spacing: 0.04em; }
  .insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
  .insta-cell {
    aspect-ratio: 1 / 1;
    border-radius: var(--r-sm);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #D7E6F0, #8FAEC2);
    transition: transform 0.5s var(--ease-out);
  }
  .insta-cell:nth-child(2) { background: linear-gradient(135deg, #BDE3DC, #0D9488); }
  .insta-cell:nth-child(3) { background: linear-gradient(135deg, #D8D5F5, #6366F1); }
  .insta-cell:nth-child(4) { background: linear-gradient(135deg, #E8DDC8, #C9A961); }
  .insta-cell:nth-child(5) { background: linear-gradient(135deg, #DCEEFD, #38BDF8); }
  .insta-cell:nth-child(6) { background: linear-gradient(135deg, #C9DBE8, #5C7E99); }
  .insta-cell::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(11, 20, 38, 0);
    transition: background 0.4s;
  }
  .insta-cell .ig-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s, transform 0.4s var(--ease-back);
    z-index: 1;
  }
  .insta-cell:hover { transform: scale(1.03); }
  .insta-cell:hover::after { background: rgba(11, 20, 38, 0.35); }
  .insta-cell:hover .ig-mark { opacity: 1; transform: scale(1); }

  /* ===== Therapies page — therapy detail block ===== */
  .therapy-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    padding-block: clamp(56px, 7vw, 96px);
    border-top: 1px solid var(--line);
  }
  .therapy-detail:first-of-type { border-top: none; padding-top: 0; }
  .therapy-detail.reverse .prog-visual { order: 2; }
  .therapy-detail .t-icon { width: 56px; height: 56px; color: var(--gold-deep); margin-bottom: 20px; }

  /* ===== Locations page extras ===== */
  .location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .clinic-card .clinic-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
  }
  .clinic-card .clinic-actions a {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-strong);
    border-bottom: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 0;
  }
  .clinic-card .clinic-actions a:hover { color: var(--primary); }

  .city-group + .city-group { margin-top: 56px; }
  .city-group > h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
}

  /* ===== Hero "watch walkthrough" play button + lightbox ===== */
  .play-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-strong);
    font-size: 0.9375rem;
    font-weight: 500;
  }
  .play-btn .play-ring {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    color: var(--primary);
    transition: background 0.4s var(--ease-out), color 0.3s, transform 0.4s var(--ease-back), border-color 0.3s;
  }
  .play-btn:hover .play-ring { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.06); }

  .video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: var(--container-pad);
    background: rgba(11, 20, 38, 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
  }
  .video-lightbox.open { opacity: 1; visibility: visible; }
  .video-frame {
    width: min(960px, 100%);
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    background:
      radial-gradient(circle at 35% 35%, rgba(255,255,255,0.18), transparent 50%),
      linear-gradient(135deg, #0F2A45, #0B1426 70%);
    border: 1px solid var(--line-invert);
    display: grid;
    place-items: center;
    transform: scale(0.96);
    transition: transform 0.5s var(--ease-out);
  }
  .video-lightbox.open .video-frame { transform: scale(1); }
  .video-frame .vf-note {
    text-align: center;
    color: rgba(250,251,252,0.8);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .video-frame .vf-note .vf-icon { display: block; margin: 0 auto 16px; color: var(--gold); }
  .video-close {
    position: absolute;
    top: -52px; right: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-invert);
    color: var(--text-invert);
    display: grid;
    place-items: center;
    transition: background 0.3s, transform 0.3s;
  }
  .video-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }

@keyframes catFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-panel.is-active { animation: none; }
}

/* ---------- RESPONSIVE: WELLNESS-CHAIN COMPONENTS ---------- */
@media (max-width: 1199.98px) {
  .therapy-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
  .cat-tabs { grid-template-columns: 1fr; gap: 28px; }
  .cat-tablist {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }
  .cat-tablist::-webkit-scrollbar { display: none; }
  .cat-tab { white-space: nowrap; font-size: 1.0625rem; padding: 14px 18px; }
  .consult-grid { grid-template-columns: 1fr; gap: 36px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .therapy-detail { grid-template-columns: 1fr; gap: 28px; }
  .therapy-detail.reverse .prog-visual { order: -1; }
}
@media (max-width: 767.98px) {
  .therapy-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .consult-bullets { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- UTILITIES ---------- */
@layer utilities {
  .u-center { text-align: center; }
  .u-relative { position: relative; }
  .u-z-1 { z-index: 1; }
  .u-pad-y-64 { padding-block: 64px; }
  .u-mt-auto { margin-top: auto; }
  .u-eyebrow-center { justify-content: center; }
  .u-newsletter-lede { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 20px; }
  .u-overlay-foot {
    margin-top: auto;
    padding-top: 32px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .u-helix {
    position: absolute;
    inset: 18%;
    opacity: 0.18;
    mix-blend-mode: overlay;
  }

  /* Image fills for visual containers — image takes over from the decorative gradient/grid.
     No z-index on imgs: DOM order keeps overlays (badges, hover marks) above the photo.
     Marketing-creative containers (cat panels, therapy details, hero) use `contain`
     so the text/badges baked into the source aren't cropped.
     Photo containers (advisors, blog, instagram, founder, clinic, photo heroes) use `cover`. */
  .cat-panel-visual img,
  .prog-visual img,
  .about-frame-inner img,
  .page-hero-visual img,
  .blog-thumb img,
  .insta-cell img,
  .advisor-photo img,
  .founder-portrait img,
  .clinic-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }
  /* Photos → cover */
  .blog-thumb img,
  .insta-cell img,
  .advisor-photo img,
  .founder-portrait img,
  .clinic-thumb img,
  .page-hero-visual.has-photo img {
    object-fit: cover;
  }
  /* Creatives → contain (preserve baked-in headings, badges, bullets) */
  .cat-panel-visual.has-img img,
  .prog-visual.has-img img,
  .about-frame-inner.has-img img,
  .page-hero-visual.has-img img {
    object-fit: contain;
    object-position: center;
    background: var(--bg-base);
  }
  /* Hide decorative gradients/grids in containers that now hold a real image */
  .cat-panel-visual.has-img::after,
  .prog-visual.has-img::after,
  .about-frame-inner.has-img::before,
  .about-frame-inner.has-img::after,
  .page-hero-visual.has-img::after,
  .page-hero-visual.has-photo::after,
  .founder-portrait.has-photo::after { display: none; }
  /* Keep overlay elements above images regardless of stacking context */
  .advisor-photo .li,
  .insta-cell .ig-mark,
  .about-badge { z-index: 2; }

  /* Brand logo (uses Logo.png instead of inline SVG) */
  .brand .brand-logo {
    height: 64px;
    width: auto;
    display: block;
    border-radius: 10px;
    transition: height 0.4s var(--ease-out);
  }
  .nav-wrap.scrolled .brand .brand-logo { height: 52px; }
  @media (max-width: 575.98px) {
    .brand .brand-logo { height: 44px; }
    .nav-wrap.scrolled .brand .brand-logo { height: 40px; }
  }
  /* Footer keeps the logo smaller so the brand column doesn't dominate */
  .footer-brand .brand .brand-logo { height: 52px; }
  /* Soft scrim over busy marketing images so any overlaid text remains readable if needed */
  .has-img-scrim::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,20,38,0.05), rgba(11,20,38,0));
    z-index: 2;
    pointer-events: none;
  }
  /* Lightbox: brand emblem fill */
  .video-frame .vf-logo {
    max-width: 280px;
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
  }
  .u-mt-16 { margin-top: 16px; }
  .u-mt-24 { margin-top: 24px; }
  .u-mt-32 { margin-top: 32px; }
  .u-mt-40 { margin-top: 40px; }
  .u-section-lede { margin-top: 16px; color: var(--text-muted); max-width: 56ch; }
  .u-lede { margin-top: 20px; color: var(--text-body); max-width: 48ch; }
}
