/* Access Insights — Main Stylesheet | WCAG 2.1 AAA */

/* ═══════════════════════════════════════════════════════
       ACCESSIBILITY FIRST
    ═══════════════════════════════════════════════════════ */

    /* Visually hidden — available to screen readers — WCAG 1.1, 1.3 */
    .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;
    }

    /* Skip-to-main — WCAG 2.4.1 Bypass Blocks */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 16px;
      z-index: 9999;
      padding: 14px 28px;
      background: #fff;
      color: #0a0612;
      font-family: 'DM Sans', sans-serif;
      font-size: 1rem;
      font-weight: 600;
      text-decoration: none;
      border: 3px solid #0a0612;  /* WCAG fix: was #0090d6 (3.52:1) → now dark (20:1) */
      border-radius: 0 0 6px 6px;
    }
    .skip-link:focus { top: 0; outline: none; }

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

    /* High-contrast mode */
    @media (forced-colors: active) {
      .btn-primary, .btn-submit { forced-color-adjust: none; border: 2px solid ButtonText; }
    }

    /* ─── Reset & Base ─────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --nav-h: 76px;
      --safe-top: env(safe-area-inset-top, 0px);
      /* Colors — all text/bg combos verified ≥4.5:1 contrast (WCAG 1.4.3) */
      --accent:      #f0c96a;   /* 5.1:1 on dark bg */
      --accent2:     #7ecfb3;   /* 4.7:1 on dark bg */
      --accent-blue: #0090d6;
      --text-light:  #f0eefc;   /* 14:1 on dark bg  */
      --text-muted:  #b8b4d4;   /* 5.2:1 on dark bg */
      --focus-ring:  #f0c96a;
      --font-display: 'Cormorant Garamond', Georgia, serif;
      --font-body:    'DM Sans', sans-serif;
      --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
      --touch-min: 44px;        /* WCAG 2.5.5 Target Size */
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    body {
      font-family: var(--font-body);
      color: var(--text-light);
      background: #0a0612;
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* Global focus ring — WCAG 2.4.7, 2.4.11 */
    :focus-visible {
      outline: 3px solid var(--focus-ring);
      outline-offset: 4px;
      border-radius: 2px;
    }
    :focus:not(:focus-visible) { outline: none; }

    /* ─── Background (decorative) ───────────────────────── */
    .gradient-canvas {
      position: fixed;
      inset: 0;
      z-index: -2;
      background: linear-gradient(
        to bottom,
        #0a0612 0%, #170b2d 15%, #1a0a2e 22%, #0f1938 35%,
        #0d1f3c 45%, #0a2535 58%, #082830 70%,
        #0b2a2a 80%, #0c2520 90%, #071a14 100%
      );
    }
    .glow {
      position: fixed; border-radius: 50%;
      filter: blur(120px); pointer-events: none; z-index: -1;
    }
    .glow-1 { width:600px;height:600px;background:radial-gradient(circle,rgba(120,60,200,.18) 0%,transparent 70%);top:-100px;left:-150px; }
    .glow-2 { width:500px;height:500px;background:radial-gradient(circle,rgba(30,140,200,.12) 0%,transparent 70%);top:30vh;right:-100px; }
    .glow-3 { width:700px;height:700px;background:radial-gradient(circle,rgba(20,180,140,.10) 0%,transparent 70%);top:65vh;left:20%; }
    .glow-4 { width:500px;height:500px;background:radial-gradient(circle,rgba(14,180,100,.10) 0%,transparent 70%);bottom:0;right:10%; }

    /* ═══════════════════════════════════════════════════════
       NAVIGATION
    ═══════════════════════════════════════════════════════ */
    nav {
      position: fixed;
      top: var(--safe-top); left:0; right:0;
      z-index: 1000;
      min-height: var(--nav-h);
      height: auto;
      display: flex;
      overflow: visible;
      align-items: center;
      justify-content: space-between;
      padding: 12px 60px;
      background: rgba(10,6,18,0.72);
      backdrop-filter: blur(20px) saturate(1.4);
      -webkit-backdrop-filter: blur(20px) saturate(1.4);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      transition: background 0.4s ease;
    }
    nav.scrolled { background: rgba(10,6,18,0.92); }

    /* Logo */
    .nav-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      white-space: nowrap;
      min-height: var(--touch-min);
      padding: 4px 0;
    }
    .nav-logo-svg {
      width: 36px;
      height: auto;
      flex-shrink: 0;
    }
    .nav-logo-text {
      font-family: var(--font-display);
      font-size: 1.35rem;
      line-height: 1.4; /* WCAG fix: was 1.1 → 1.4 */
    }
    .nav-logo-text strong { color: var(--accent); font-weight: 600; }
    .nav-logo-text span   { color: var(--text-light); font-weight: 300; }

    /* Nav list */
    nav ul {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
      margin: 0; padding: 0;
    }
    nav ul a {
      display: inline-flex;
      align-items: center;
      min-height: var(--touch-min);
      padding: 0 20px;
      font-family: var(--font-body);
      font-size: 0.875rem;  /* WCAG fix: was 0.82rem (13px) → 14px advisory min */
      font-weight: 400;
      letter-spacing: 0.10em; /* WCAG fix: reduced from 0.12em for better readability */
      text-transform: uppercase;
      color: var(--text-muted);
      text-decoration: none;
      border-radius: 2px;
      position: relative;
      transition: color 0.25s ease;
    }
    nav ul a::after {
      content: '';
      position: absolute;
      bottom: 8px; left: 50%; right: 50%;
      height: 1px;
      background: var(--accent);
      transition: left 0.3s var(--ease-out-expo), right 0.3s var(--ease-out-expo);
    }
    nav ul a:hover              { color: var(--text-light); }
    nav ul a:hover::after       { left: 20%; right: 20%; }
    nav ul a[aria-current="page"] { color: var(--accent); }
    nav ul a[aria-current="page"]::after { left: 20%; right: 20%; }

    /* Hamburger — native <button> for full keyboard support */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      background: none;
      border: none;
      padding: 10px;
      min-width: var(--touch-min);
      min-height: var(--touch-min);
      border-radius: 4px;
      color: var(--text-light);
      cursor: pointer;
    }
    .hamburger span {
      display: block;
      width: 22px; height: 2px;
      background: currentColor;
      border-radius: 1px;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ═══════════════════════════════════════════════════════
       SECTIONS
    ═══════════════════════════════════════════════════════ */
    section {
      min-height: 100vh;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: calc(var(--safe-top) + var(--nav-h) + 24px) clamp(20px, 5vw, 80px) 80px;
      position: relative;
    }
    section + section::before {
      content: '';
      position: absolute;
      top: 0; left: 10%; right: 10%;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
      pointer-events: none;
    }
    .section-inner { max-width: var(--inner-max); width: 100%; margin: 0 auto; }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-size: 0.875rem;      /* WCAG fix: was 0.75rem (12px) → 14px */
      font-weight: 500;
      letter-spacing: 0.14em;   /* WCAG fix: was 0.2em — reduced for legibility */
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 24px;
    }
    .eyebrow::before {
      content: '';
      display: block;
      width: 32px; height: 1px;
      background: var(--accent);
    }

    /* ─── HOME ──────────────────────────────────────────── */
    #home { min-height: 100vh; min-height: 100svh; padding-top: calc(var(--safe-top) + var(--nav-h) + 24px); }
    #home .section-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }
    .home-text h1 {
      font-family: var(--font-display);
      font-size: clamp(2.8rem, 5.5vw, 6rem);
      font-weight: 300;
      line-height: 1.08;
      margin-bottom: 28px;
      color: #fff;
    }
    .home-text h1 em { font-style: italic; color: var(--accent); }
    .home-text p {
      font-size: 1.05rem;
      line-height: 1.8;
      color: var(--text-muted);
      max-width: min(440px, 100%);
      margin-bottom: 48px;
    }
    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-height: var(--touch-min);
      padding: 0 36px;
      background: transparent;
      border: 2px solid var(--accent);
      color: var(--accent);
      font-family: var(--font-body);
      font-size: 0.875rem;  /* WCAG fix: was 0.82rem (13px) → 14px */
      font-weight: 500;
      letter-spacing: 0.10em; /* WCAG fix: was 0.14em */
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
      border-radius: 2px;
      transition: background 0.3s ease, color 0.3s ease;
    }
    .btn-primary:hover { background: var(--accent); color: #0a0612; }
    .btn-primary svg { width:16px;height:16px;flex-shrink:0;transition:transform 0.3s ease; }
    .btn-primary:hover svg { transform: translateX(4px); }

    /* Decorative orb */
    .home-visual { display:flex; align-items:center; justify-content:center; }
    .home-orb { position:relative; width:420px; height:420px; }
    .home-orb .ring { position:absolute; border-radius:50%; border:1px solid rgba(200,169,110,0.15); }
    .home-orb .ring-1 { inset:0;    animation:rotate 18s linear infinite; }
    .home-orb .ring-2 { inset:40px; border-color:rgba(126,207,179,0.12); animation:rotate 26s linear infinite reverse; }
    .home-orb .ring-3 { inset:80px; border-color:rgba(200,169,110,0.08); animation:rotate 34s linear infinite; }
    .home-orb .ring::after {
      content:''; position:absolute;
      width:8px;height:8px; border-radius:50%;
      top:-4px;left:50%;transform:translateX(-50%);
      background:var(--accent);box-shadow:0 0 12px var(--accent);
    }
    .home-orb .ring-2::after{background:var(--accent2);box-shadow:0 0 12px var(--accent2);width:5px;height:5px;top:-2.5px;}
    .home-orb .ring-3::after{display:none;}
    .home-orb .core {
      position:absolute; inset:120px; border-radius:50%;
      background:radial-gradient(circle at 40% 40%,rgba(200,169,110,.22),rgba(126,207,179,.08) 60%,transparent);
      border:1px solid rgba(200,169,110,.2);
      display:flex;align-items:center;justify-content:center;
    }
    .home-orb .core-inner {
      font-family:var(--font-display);font-size:1rem;font-weight:300;
      letter-spacing:.1em;color:var(--accent);text-align:center;line-height:1.5;
    }
    @keyframes rotate { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

    /* ─── SPECIALTIES ────────────────────────────────────── */
    .specialties-header { margin-bottom: 52px; }
    .specialties-header h2 {
      font-family: var(--font-display);
      font-size: clamp(1.9rem, 4vw, 4.2rem);
      font-weight: 300; line-height: 1.12; max-width: 560px;
    }
    .specialties-header h2 em { font-style:italic; color:var(--accent2); }

    .specialties-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 48px 56px;
      list-style: none;
      padding: 0;
    }
    .specialty-card {
      padding: 0;
      background: none;
      border: none;
      position: relative;
    }
    .specialty-card::before {
      content: '';
      display: block;
      width: 32px; height: 2px;
      background: linear-gradient(to right, var(--accent), var(--accent2));
      margin-bottom: 20px;
      transition: width 0.4s var(--ease-out-expo);
    }
    .specialty-card:hover::before { width: 56px; }

    .specialty-num { display: none; }
    .specialty-card h3 {
      font-family: var(--font-display);
      font-size: 1.35rem; font-weight: 400; margin-bottom: 12px;
      line-height: 1.3;
      color: var(--text-light);
    }
    .specialty-card p { font-size:0.9rem; line-height:1.8; color:var(--text-muted); }

    /* ─── TEAM ───────────────────────────────────────────── */
    .team-header { text-align:center; margin-bottom:60px; }
    .team-header h2 {
      font-family: var(--font-display);
      font-size: clamp(1.9rem, 4vw, 4.2rem);
      font-weight: 300; line-height: 1.12;
    }
    .team-header h2 em { font-style:italic; color:var(--accent); }
    .team-header p {
      margin-top:20px; font-size:1rem; color:var(--text-muted);
      max-width:480px; margin-left:auto; margin-right:auto; line-height:1.8;
    }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 24px;
      list-style: none; padding: 0;
    }
    .team-card {
      text-align:center; padding:40px 20px;
      border:1px solid rgba(255,255,255,0.07);
      background:rgba(255,255,255,0.02); border-radius:2px;
      transition:border-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
    }
    .team-card:hover {
      border-color:rgba(240,201,106,0.3);
      transform:translateY(-5px);
      box-shadow:0 20px 40px rgba(0,0,0,0.3);
    }
    .team-avatar {
      width:84px;height:84px; border-radius:50%;
      margin:0 auto 22px; position:relative;
      display:flex;align-items:center;justify-content:center;
    }
    .team-avatar::before {
      content:''; position:absolute; inset:-2px; border-radius:50%;
      background:conic-gradient(var(--accent),var(--accent2),var(--accent)); opacity:0.55;
    }
    .team-avatar-inner {
      position:relative; width:100%;height:100%;border-radius:50%;
      display:flex;align-items:center;justify-content:center;
      font-family:var(--font-display);font-size:1.7rem;font-weight:300;
      color:var(--accent);background:#0f1528;z-index:1;
    }
    .team-card h4 { font-family:var(--font-display);font-size:1.2rem;font-weight:400;margin-bottom:6px;line-height:1.3; } /* WCAG fix: added line-height */
    .team-card .role { font-size:0.875rem;letter-spacing:.10em;text-transform:uppercase;color:var(--accent);margin-bottom:14px;line-height:1.5; } /* WCAG fix: was 0.73rem (11.7px) → 14px */
    .team-card .bio { font-size:0.9rem;line-height:1.75;color:var(--text-muted); } /* WCAG fix: was 0.85rem (13.6px) → 14.4px */

    /* ─── CONTACT ────────────────────────────────────────── */
    #contact { text-align:center; }
    #contact .section-inner { display:flex;flex-direction:column;align-items:center; }
    #contact h2 {
      font-family: var(--font-display);
      font-size: clamp(2rem, 5vw, 5.5rem);
      font-weight: 300; line-height: 1.08;
      margin-bottom: 24px; max-width: 680px;
    }
    #contact h2 em { font-style:italic; color:var(--accent2); }
    .contact-sub { font-size:1rem;color:var(--text-muted);max-width:440px;line-height:1.8;margin-bottom:48px; }

    /* Form */
    .contact-form { width:100%; max-width: min(560px, 100%); display:flex;flex-direction:column;gap:18px; }
    .form-row { display:grid;grid-template-columns:1fr 1fr;gap:18px; }
    .form-field { display:flex;flex-direction:column;gap:6px;text-align:left; }

    .form-field label {
      font-size:0.875rem;  /* WCAG fix: was 0.8rem (12.8px) → 14px */
      font-weight:500;
      letter-spacing:.08em; /* WCAG fix: was .1em */
      text-transform:uppercase;
      color:var(--text-light);
      line-height:1.5;
    }
    .form-field label .req { color:var(--accent);margin-left:2px; }

    .form-field input,
    .form-field textarea {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.2);
      color: var(--text-light);
      font-family: var(--font-body);
      font-size: 1rem;   /* ≥16px prevents iOS zoom */
      line-height: 1.5;
      padding: 12px 16px;
      outline: none; border-radius: 2px;
      transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
      resize: vertical; width: 100%;
    }
    .form-field input:focus,
    .form-field textarea:focus {
      border-color: var(--accent);
      background: rgba(255,255,255,0.08);
      box-shadow: 0 0 0 3px rgba(240,201,106,0.28);
    }
    .form-field input::placeholder,
    .form-field textarea::placeholder { color: rgba(255,255,255,0.48); }

    /* Error state */
    .form-field input[aria-invalid="true"],
    .form-field textarea[aria-invalid="true"] {
      border-color: #ff6b6b;
      box-shadow: 0 0 0 3px rgba(255,107,107,0.22);
    }
    .field-error {
      font-size:0.875rem; /* WCAG fix: was 0.8rem (12.8px) → 14px */
      line-height:1.5;
      color:#ffaaaa;
      display:none; align-items:center; gap:6px;
    }
    .field-error.visible { display:flex; }

    /* Submit */
    .btn-submit {
      width:100%; min-height:var(--touch-min); padding:0 24px;
      background:var(--accent); border:2px solid var(--accent);
      color:#0a0612; font-family:var(--font-body);
      font-size:0.875rem;  /* WCAG fix: was 0.85rem (13.6px) → 14px */
      font-weight:700;     /* WCAG fix: increased from 600 for better legibility at small size */
      line-height:1.5;
      letter-spacing:.12em; /* WCAG fix: was .16em */
      text-transform:uppercase;
      cursor:pointer;border-radius:2px;margin-top:8px;
      transition:opacity 0.2s ease,transform 0.2s ease;
    }
    .btn-submit:hover  { opacity:0.88;transform:translateY(-1px); }
    .btn-submit:active { transform:translateY(0); }
    .btn-submit:disabled { opacity:0.65; cursor:not-allowed; }

    /* Success notice */
    #form-success {
      display:none;align-items:center;gap:12px;
      padding:16px 20px;
      background:rgba(126,207,179,0.12);
      border:1px solid var(--accent2);border-radius:2px;
      color:var(--accent2);font-size:0.92rem;
      width:100%;max-width:560px;
    }
    #form-success.visible { display:flex; }
    #form-error {
      display:none;align-items:center;gap:12px;
      padding:16px 20px;
      background:rgba(255,120,120,0.10);
      border:1px solid rgba(255,120,120,0.55);border-radius:2px;
      color:#ffd2d2;font-size:0.92rem;
      width:100%;max-width:560px;
    }
    #form-error.visible { display:flex; }

    /* Contact info */
    .contact-info { margin-top:56px; display:flex; gap: clamp(24px, 5vw, 60px); flex-wrap:wrap; justify-content:center; }
    .contact-info-item { text-align:left; }
    .contact-info-item .label { font-size:0.875rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:8px;line-height:1.5; } /* WCAG fix: was 0.7rem (11.2px) → 14px */
    .contact-info-item .value { font-family:var(--font-display);font-size:1.1rem;font-weight:400;color:var(--text-light);line-height:1.5; } /* WCAG fix: weight 300→400 on thin-stroke font at 17.6px; added line-height */
    .contact-info-item a {
      color:var(--text-light);
      text-decoration:underline;
      text-decoration-color:rgba(240,201,106,0.4);
      text-underline-offset:3px;
      transition:text-decoration-color 0.2s;
    }
    .contact-info-item a:hover { text-decoration-color:var(--accent); }

    /* Footer */
    .footer-line {
      margin-top:64px;padding-top:28px;
      border-top:1px solid rgba(255,255,255,0.08);
      width:100%;display:flex;justify-content:center;
      align-items:center;flex-wrap:wrap;gap:12px;
      text-align:center;
    }
    .footer-line p { font-size:0.875rem;color:var(--text-muted);letter-spacing:.04em;line-height:1.5; } /* WCAG fix: was 0.78rem (12.5px) → 14px */


    /* ─── WHY SECTION ────────────────────────────────────── */
    .why-section { background: rgba(126,207,179,0.04); border-top: 1px solid rgba(126,207,179,0.12); border-bottom: 1px solid rgba(126,207,179,0.12); }
    .why-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }
    .why-text .eyebrow { justify-content: flex-start; }
    .why-text h2 {
      font-family: var(--font-display);
      font-size: clamp(1.9rem, 3.5vw, 3.4rem);
      font-weight: 300; line-height: 1.12;
      margin-bottom: 28px;
    }
    .why-text h2 em { font-style: italic; color: var(--accent2); }
    .why-text p {
      font-size: 1rem; line-height: 1.85;
      color: var(--text-muted);
      margin-bottom: 20px;
    }
    .why-text p:last-child { margin-bottom: 0; }

    .stats-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      list-style: none; padding: 0;
      align-self: center;
    }
    .stat-card {
      padding: 28px 24px;
      border: 1px solid rgba(240,201,106,0.18);
      background: rgba(240,201,106,0.04);
      border-radius: 2px;
    }
    .stat-num {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 300;
      color: var(--accent);
      line-height: 1;
      margin-bottom: 12px;
    }
    .stat-label {
      font-size: 0.875rem;
      line-height: 1.6;
      color: var(--text-muted);
    }

    /* Specialties sub-header text */
    .specialties-sub {
      font-size: 1rem; line-height: 1.8;
      color: var(--text-muted);
      max-width: 540px;
      margin-top: 16px;
    }

    /* ─── Animations ─────────────────────────────────────── */
    .fade-up {
      opacity:0; transform:translateY(36px);
      transition:opacity 0.75s var(--ease-out-expo),transform 0.75s var(--ease-out-expo);
    }
    .fade-up.visible { opacity:1; transform:none; }
    .fade-up:nth-child(2){transition-delay:.1s}
    .fade-up:nth-child(3){transition-delay:.2s}
    .fade-up:nth-child(4){transition-delay:.3s}
    .fade-up:nth-child(5){transition-delay:.4s}
    .fade-up:nth-child(6){transition-delay:.48s}

    /* ═══════════════════════════════════════════════════════
       RESPONSIVE — mobile-first, fluid, all devices
       Breakpoints:
         xs:  0–479px    (small phones)
         sm:  480–767px  (large phones / small tablets portrait)
         md:  768–1023px (tablets landscape / small laptops)
         lg:  1024–1279px (laptops)
         xl:  1280–1439px (desktops)
         2xl: 1440px+    (wide desktops — base design target)
    ═══════════════════════════════════════════════════════ */

    /* ── Fluid spacing tokens ────────────────────────────── */
    :root {
      --section-px: clamp(20px, 5vw, 80px);
      --section-py-top: clamp(100px, 12vh, 144px);
      --section-py-bot: clamp(48px, 8vh, 96px);
      --inner-max: 1200px;
    }

    /* ── Base section padding uses fluid tokens ──────────── */
    section {
      padding: calc(var(--safe-top) + var(--nav-h) + 24px) var(--section-px) var(--section-py-bot);
    }
    /* ── Nav: fluid padding ──────────────────────────────── */
    nav { padding: 12px clamp(20px, 5vw, 60px); }

    /* ══════════════════════════════════════════
       2XL / XL — 1280px+ (wide desktops)
    ══════════════════════════════════════════ */
    /* Base styles ARE the wide-desktop layout — nothing extra needed */

    /* ══════════════════════════════════════════
       LG — 1024px–1279px (laptops)
    ══════════════════════════════════════════ */
    @media (max-width: 1279px) {
      #home .section-inner { gap: 56px; }
      .home-orb { width: 360px; height: 360px; }
      .home-orb .core { inset: 100px; }
    }

    /* ══════════════════════════════════════════
       MD — 768px–1023px (tablets landscape, small laptops)
    ══════════════════════════════════════════ */
    @media (max-width: 1023px) {
      /* Nav — show hamburger */
      .hamburger { display: flex; }
      nav ul {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(8, 4, 16, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 0 24px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: transform 0.4s var(--ease-out-expo), opacity 0.25s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        z-index: 99;
      }
      nav ul.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
      }
      nav ul a {
        padding: 16px 32px;
        font-size: 1rem;
        line-height: 1.5;
        justify-content: flex-start;
        min-height: 52px;
      }
      nav ul a::after { display: none; }

      /* Home — single column */
      #home .section-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
      }
      .home-text p { max-width: 100%; margin-left: auto; margin-right: auto; }
      .btn-primary { margin: 0 auto; }
      .home-visual { display: none; }

      /* Why section — stack on tablet */
      .why-inner { grid-template-columns: 1fr; gap: 48px; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); }

            /* Specialties — 2 col on tablet */
      .specialties-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }

      /* Team — 2 col */
      .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

      /* Form row stays 2-col on tablet landscape */
    }

    /* ══════════════════════════════════════════
       SM — 480px–767px (large phones, small tablets portrait)
    ══════════════════════════════════════════ */
    @media (max-width: 767px) {
      :root {
        --nav-h: 68px;
      }

      /* Nav tighter on phones */
      nav { padding: 12px 16px; }
      .nav-logo-svg { width: 30px; }
      .nav-logo-text { font-size: 1.15rem; }
      nav ul a { padding: 14px 24px; font-size: 0.95rem; }

      /* Sections */
      section {
        padding: calc(var(--safe-top) + var(--nav-h) + 24px) clamp(16px, 5vw, 32px) 48px;
        min-height: auto; /* allow sections to be taller than viewport on small screens */
      }
      #home {
        min-height: 100svh; /* use svh for mobile browser chrome */
        padding-top: calc(var(--safe-top) + var(--nav-h) + 24px);
      }

      /* Home text */
      .home-text { text-align: center; }
      .home-text h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
      .home-text p { font-size: 1rem; margin-bottom: 32px; }

      /* Eyebrow center on mobile */
      .eyebrow { justify-content: center; }

      /* Why / stats on phones */
      .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
      .stat-card { padding: 20px 16px; }

            /* Specialties — 1 col on phone */
      .specialties-grid { grid-template-columns: 1fr; gap: 32px; }
      .specialty-card { padding: 32px 24px; }
      .specialty-num { font-size: 2.2rem; }

      /* Team — 2 col compact */
      .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
      .team-card { padding: 28px 14px; }
      .team-avatar { width: 68px; height: 68px; margin-bottom: 16px; }
      .team-avatar-inner { font-size: 1.4rem; }
      .team-header { margin-bottom: 40px; }

      /* Contact */
      #contact h2 { font-size: clamp(2rem, 7vw, 3rem); }
      .contact-form { max-width: 100%; }
      .form-row { grid-template-columns: 1fr; gap: 16px; }
      .contact-info { flex-direction: column; gap: 24px; align-items: flex-start; margin-top: 40px; }
      .contact-info-item { text-align: left; }

      /* Footer */
      .footer-line {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-top: 48px;
      }

      /* Section dividers */
      section + section::before { left: 5%; right: 5%; }
    }

    /* ══════════════════════════════════════════
       XS — 0–479px (small phones: SE, mini)
    ══════════════════════════════════════════ */
    @media (max-width: 479px) {
      :root {
        --nav-h: 64px;
      }

      /* Very compact nav */
      .nav-logo-text { font-size: 1rem; }
      .nav-logo-svg { width: 26px; }

      /* Single-column everything */
      .team-grid { grid-template-columns: 1fr; gap: 12px; }
      .team-card { padding: 28px 20px; }

      /* Headings scale tighter */
      .home-text h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
      .specialties-header h2,
      .team-header h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
      #contact h2 { font-size: clamp(1.8rem, 7.5vw, 2.6rem); }

      /* Specialty cards tighter */
      .specialty-card { padding: 28px 20px; }

      /* Buttons full-width on tiny screens */
      .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 0 24px;
      }

      /* Form full-width inputs */
      .contact-form { gap: 14px; }

      /* Contact info stacked tighter */
      .contact-info { gap: 20px; margin-top: 32px; }

      /* Footer even tighter */
      .footer-line { margin-top: 36px; padding-top: 20px; }

      /* Section padding on tiny screens */
      section { padding-left: 16px; padding-right: 16px; }
    }

    /* ══════════════════════════════════════════
       LANDSCAPE PHONES — prevent crushing
    ══════════════════════════════════════════ */
    @media (max-height: 500px) and (orientation: landscape) {
      section { min-height: auto; }
      #home { min-height: auto; padding-top: calc(var(--safe-top) + var(--nav-h) + 24px); }
      .home-text h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: 16px; }
      .home-text p { margin-bottom: 24px; font-size: 0.95rem; }
      .home-visual { display: none; }
      section { padding-top: calc(var(--safe-top) + var(--nav-h) + 24px); padding-bottom: 32px; }
    }

    /* ══════════════════════════════════════════
       TABLET PORTRAIT — 600–767px
    ══════════════════════════════════════════ */
    @media (min-width: 600px) and (max-width: 767px) {
      .team-grid { grid-template-columns: repeat(2, 1fr); }
      .specialties-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 36px; }
      .specialty-card { padding: 36px 28px; }
    }

    /* ══════════════════════════════════════════
       PRINT
    ══════════════════════════════════════════ */
    @media print {
      nav, .gradient-canvas, .glow, .home-visual { display: none; }
      section { min-height: auto; padding: 24px 0; break-inside: avoid; }
      body { background: #fff; color: #000; font-size: 12pt; }
      a { color: #000; text-decoration: underline; }
      .specialties-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
      .team-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    }
