
   /* ---------- DESIGN TOKENS ---------- */
    :root {
      --forest: #064E3B;
      --forest-ink: #022C22;
      --forest-soft: #065F46;
      --forest-mid: #047857;
      --gold: #F59E0B;
      --gold-soft: #FCD34D;
      --gold-deep: #B45309;
      --cream: #FAF7F0;
      --cream-2: #F3EEDF;
      --bone: #EDE7D3;
      --ink: #0A0F0D;
    }

    * {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
      background: var(--cream);
      color: var(--forest-ink);
      overflow-x: hidden;
    }

    .font-serif-italic {
      font-family: 'Instrument Serif', Georgia, serif;
      font-style: italic;
      font-weight: 400;
    }

    .font-display {
      font-family: 'Inter', system-ui, sans-serif;
      font-weight: 800;
      letter-spacing: -0.045em;
      line-height: 0.92;
    }

    /* ---------- NAVBAR: Glass on scroll ---------- */
    #mainNav {
    transition:
        background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        backdrop-filter  0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color     0.4s cubic-bezier(0.22, 1, 0.36, 1),
        padding          0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow       0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-bottom: 1px solid transparent;
    }

    /* Scrolled state — premium glassmorphism in Villocart's forest-ink */
    #mainNav.nav-scrolled {
    /* background-color: rgba(2, 44, 34, 0.72);     */ /* forest-ink @ 72% */
    background-color: rgb(144 157 154 / 72%);   
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom-color: rgba(245, 158, 11, 0.14); /* subtle gold hairline */
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.28);
    }

    /* Flip child colors to cream for legibility on dark glass */
    #mainNav.nav-scrolled .nav-brand-text,
    #mainNav.nav-scrolled .nav-link {
    /* color: var(--cream) !important; */
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #mainNav.nav-scrolled .nav-link:hover {
    color: var(--gold) !important;
    opacity: 1;
    }

  .logo-img {
    max-width: 150px;   /* mobile default */
    height: auto;
    display: block;     /* removes baseline gap, helps vertical alignment */
  }
  @media (min-width: 768px) {
    .logo-img { max-width: 220px; }
  }

  /* Ensure nav row stays vertically centered with new sizes */
  #mainNav .max-w-7xl { min-height: 48px; }


  /* =============================================================
    HAMBURGER TOGGLE
    ============================================================= */
  .mobile-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: transparent;
    color: var(--forest-ink);
    border: 1px solid rgba(2, 44, 34, 0.12);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      color            0.4s cubic-bezier(0.22, 1, 0.36, 1),
      border-color     0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Stack the two icons; GSAP cross-fades */
  .mobile-toggle-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
  }
  .mobile-toggle-icon[data-icon="close"] {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
  }

  /* Scrolled-state styling (matches existing nav-scrolled flip) */
  #mainNav.nav-scrolled .mobile-toggle {
    color: var(--cream);
    border-color: rgba(245, 158, 11, 0.25);
  }

  /* When menu is OPEN, lock the toggle to a dark bg so X is always legible */
  #mainNav.menu-open .mobile-toggle {
    background: var(--gold);
    color: var(--forest-ink);
    border-color: var(--gold);
  }


  /* =============================================================
    MOBILE MENU OVERLAY
    ============================================================= */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;                    /* below nav (z-50), so toggle stays clickable */
    background: rgba(2, 44, 34, 0.85);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0.5s;
  }
  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0s;
  }

  .mobile-menu-inner {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7rem 1.75rem 2.5rem;   /* top padding clears the fixed nav */
    overflow-y: auto;
  }

  /* Decorative gold blob behind links */
  .mobile-menu-inner::before {
    content: '';
    position: absolute;
    top: 30%;
    right: -20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
  }


  /* ---------- Links ---------- */
  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
  }

  .mobile-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.12);
    color: var(--cream);
    text-decoration: none;
    opacity: 0;                     /* GSAP reveals these */
    transform: translateY(28px);
    transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                color   0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-link:hover,
  .mobile-link:focus-visible {
    padding-left: 0.75rem;
    color: var(--gold);
    outline: none;
  }
  .mobile-link-num {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(245, 158, 11, 0.55);
  }
  .mobile-link-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .mobile-link-arrow {
    color: rgba(245, 158, 11, 0.4);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-link:hover .mobile-link-arrow,
  .mobile-link:focus-visible .mobile-link-arrow {
    color: var(--gold);
    transform: rotate(45deg);
  }


  /* ---------- Footer block (CTA + social + tagline) ---------- */
  .mobile-menu-foot {
    position: relative;
    z-index: 1;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    opacity: 0;                     /* GSAP reveals */
    transform: translateY(28px);
  }

  .mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1.125rem 1.5rem;
    border-radius: 9999px;
    background: var(--gold);
    color: var(--forest-ink);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 18px 40px -12px rgba(245, 158, 11, 0.45);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-cta:active { transform: scale(0.97); }

  .mobile-menu-social {
    display: flex;
    gap: 0.625rem;
  }
  .mobile-menu-social a {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold);
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .mobile-menu-social a:hover {
    background: var(--gold);
    color: var(--forest-ink);
    transform: translateY(-2px);
  }

  .mobile-menu-tag {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(245, 158, 11, 0.7);
  }


  /* =============================================================
    BODY SCROLL LOCK
    ============================================================= */
  body.menu-locked {
    overflow: hidden;
    /* keep layout stable so the page doesn't shift when scrollbar disappears */
    padding-right: var(--scrollbar-width, 0px);
  }


  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .mobile-link, .mobile-menu-foot { opacity: 1; transform: none; }
  }

    /* CTA flips to gold-on-dark for stronger contrast when scrolled */
    #mainNav.nav-scrolled .nav-cta {
    background: var(--gold) !important;
    color: var(--forest-ink) !important;
    transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                color      0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* ---------- NOISE + TEXTURE ---------- */
    .noise-overlay {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 100;
      opacity: 0.035;
      mix-blend-mode: multiply;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    /* ---------- GRID BACKGROUNDS ---------- */
    .grid-bg-light {
      background-image:
        linear-gradient(to right, rgba(6, 78, 59, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 78, 59, 0.055) 1px, transparent 1px);
      background-size: 72px 72px;
    }

    .grid-bg-dark {
      background-image:
        linear-gradient(to right, rgba(245, 158, 11, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
      background-size: 72px 72px;
    }

    /* ---------- PHONE MOCKUP (3D) ---------- */
    .phone-stage {
      perspective: 1400px;
      transform-style: preserve-3d;
    }

    .phone-3d {
      transform-style: preserve-3d;
      will-change: transform;
      transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .phone-frame {
      background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
      border-radius: 44px;
      padding: 10px;
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 50px 80px -20px rgba(2, 44, 34, 0.45),
        0 30px 50px -15px rgba(0, 0, 0, 0.25),
        0 10px 20px -10px rgba(0, 0, 0, 0.15);
    }

    .phone-screen {
      background: var(--cream);
      border-radius: 34px;
      overflow: hidden;
      aspect-ratio: 9 / 19;
      position: relative;
    }

    .phone-notch {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      width: 100px;
      height: 26px;
      background: #000;
      border-radius: 20px;
      z-index: 10;
    }

    /* ---------- TEXT REVEAL ---------- */
    .reveal-mask {
      overflow: hidden;
      display: inline-block;
      vertical-align: top;
      line-height: 1.05;
      padding-bottom: 0.05em;
    }

    .reveal-mask > .reveal-inner {
      display: inline-block;
      transform: translateY(110%);
      will-change: transform;
    }

    .word-reveal > span {
      display: inline-block;
      overflow: hidden;
      vertical-align: top;
    }

    .word-reveal > span > span {
      display: inline-block;
      transform: translateY(110%);
      will-change: transform;
    }

    /* ---------- GLASSMORPHISM ---------- */
    .glass-card {
      background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.015)
      );
      backdrop-filter: blur(18px) saturate(140%);
      -webkit-backdrop-filter: blur(18px) saturate(140%);
      border: 1px solid rgba(255, 255, 255, 0.09);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 30px 60px -30px rgba(0, 0, 0, 0.5);
    }

    .glass-card-gold {
      background: linear-gradient(
        145deg,
        rgba(245, 158, 11, 0.14),
        rgba(245, 158, 11, 0.03)
      );
      backdrop-filter: blur(18px) saturate(140%);
      -webkit-backdrop-filter: blur(18px) saturate(140%);
      border: 1px solid rgba(245, 158, 11, 0.22);
    }

    /* ---------- GOLD UNDERLINE ---------- */
    .gold-mark {
      background: linear-gradient(180deg, transparent 62%, rgba(245, 158, 11, 0.42) 62%);
      padding: 0 0.05em;
    }

    /* ---------- MARQUEE ---------- */
    @keyframes marquee {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    .marquee-track {
      animation: marquee 40s linear infinite;
    }

    /* ---------- BUTTONS ---------- */
    .btn-primary {
      position: relative;
      overflow: hidden;
      transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .btn-primary::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
      transform: translateX(-100%);
      transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .btn-primary:hover::before {
      transform: translateX(100%);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
    }

    /* ---------- SCROLL CUE ---------- */
    @keyframes scrollBounce {
      0%, 100% { transform: translateY(0); opacity: 0.9; }
      50% { transform: translateY(6px); opacity: 0.4; }
    }

    .scroll-cue {
      animation: scrollBounce 2s ease-in-out infinite;
    }

    /* ---------- BLOB / AMBIENT ---------- */
    .blob {
      filter: blur(70px);
      opacity: 0.55;
      will-change: transform;
    }

    /* ---------- DIVIDER TICKS ---------- */
    .tick {
      width: 1px;
      background: currentColor;
      opacity: 0.15;
    }

    /* ---------- STICKY STEP CARD ---------- */
    .step-card {
      opacity: 0.35;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .step-card.is-active {
      opacity: 1;
      transform: translateY(0);
    }

    /* ---------- CUSTOM SCROLL ---------- */
    ::-webkit-scrollbar { width: 10px; }
    ::-webkit-scrollbar-track { background: var(--cream); }
    ::-webkit-scrollbar-thumb { background: var(--forest); border-radius: 10px; border: 2px solid var(--cream); }

    /* ---------- UTILITY ---------- */
    .clip-diag {
      clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    }

    .text-balance { text-wrap: balance; }

    /* Mobile optimizations */
    @media (max-width: 768px) {
      .phone-3d { transform: none !important; }
      body { overflow-x: hidden; }
    }

    /* =============================================================
   ABOUT PAGE – scoped styles (namespaced to avoid collisions)
   ============================================================= */

    /* --- Vision: aspect ratio fallback for older browsers --- */
    .vision-image-wrap { min-height: 520px; }

    /* --- Horizontal scroll track: no scrollbar, GPU-friendly --- */
    .hs-track {
    will-change: transform;
    padding-bottom: 4vh;
    }
    .hs-card {
    will-change: transform, opacity;
    flex-shrink: 0;
    }

    /* --- Pulse map: node pulse animation (CSS ambient + GSAP entrance) --- */
    @keyframes pulseRing {
    0%   { transform: scale(0.9); opacity: 0.9; }
    70%  { transform: scale(2.2); opacity: 0;   }
    100% { transform: scale(2.2); opacity: 0;   }
    }
    @keyframes pulseCore {
    0%, 100% { transform: scale(1);    opacity: 1;   }
    50%      { transform: scale(1.35); opacity: 0.7; }
    }
    .pulse-node .node-ring {
    transform-origin: center;
    transform-box: fill-box;
    animation: pulseRing 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    }
    .pulse-node .node-core {
    transform-origin: center;
    transform-box: fill-box;
    animation: pulseCore 2.8s ease-in-out infinite;
    }
    .pulse-node { opacity: 0; }  /* GSAP reveals on scroll */

    /* --- Team cards: 3D tilt setup + hover lift --- */
    .team-card {
    perspective: 1400px;
    transform-style: preserve-3d;
    transition:
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    }
    .team-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .team-card:hover {
    box-shadow: 0 40px 80px -30px rgba(2, 44, 34, 0.45);
    border-color: rgba(245, 158, 11, 0.35) !important;
    }
    .team-card:hover .team-card-inner > * {
    transform: translateZ(30px);
    }

    /* Reduced-motion + touch devices: disable tilt */
    @media (hover: none), (prefers-reduced-motion: reduce) {
    .team-card-inner { transform: none !important; }
    .team-card:hover .team-card-inner > * { transform: none; }
    }

    /* =============================================================
   CONTACT PAGE – scoped styles
   ============================================================= */

/* ---------- 01 · Mesh gradient (animated) ---------- */
.contact-mesh { z-index: 0; }
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.mesh-blob-1 { background: rgba(245, 158, 11, 0.45); width: 600px; height: 600px; top: -10%; left: -10%; }
.mesh-blob-2 { background: rgba(6, 78, 59, 0.40);    width: 700px; height: 700px; top:  10%; right: -15%; }
.mesh-blob-3 { background: rgba(245, 158, 11, 0.25); width: 650px; height: 650px; bottom: -10%; left: 30%; }
.mesh-blob-4 { background: rgba(6, 95, 70, 0.30);    width: 550px; height: 550px; bottom: 5%; right: 10%; }

/* ---------- 01 · Letter reveal ---------- */
[data-split-text] { perspective: 800px; }
.split-word { display: inline-block; white-space: nowrap; }
.split-char {
  display: inline-block;
  will-change: transform, opacity;
  transform: translateY(40px);
  opacity: 0;
}

/* ---------- 01 · Quick-action chips ---------- */
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(2, 44, 34, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--forest-ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-chip:hover {
  background: var(--forest-ink);
  border-color: var(--forest-ink);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ---------- 02 · Glass form card ---------- */
.contact-form-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(2, 44, 34, 0.08);
  box-shadow: 0 30px 60px -30px rgba(2, 44, 34, 0.18);
}

/* ---------- 02 · Glowing info icons ---------- */
.info-icon {
  position: relative;
  background: rgba(245, 158, 11, 0.08);
  color: var(--gold);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.info-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  filter: blur(10px);
}
.contact-info-item:hover .info-icon {
  background: rgba(245, 158, 11, 0.18);
  transform: scale(1.06);
}
.contact-info-item:hover .info-icon::before { opacity: 1; }

/* ---------- 02 · Social glow buttons ---------- */
.social-glow {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.social-glow:hover {
  background: var(--gold);
  color: var(--forest-ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(245, 158, 11, 0.55);
}

/* ---------- 02 · Reason chips ---------- */
.reason-chip {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(2, 44, 34, 0.15);
  color: rgba(2, 44, 34, 0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.reason-chip:hover {
  border-color: var(--forest);
  color: var(--forest-ink);
}
.reason-chip.is-active {
  background: var(--forest-ink);
  border-color: var(--forest-ink);
  color: var(--cream);
}

/* ---------- 02 · Floating-label fields (bottom border + gold glow on focus) ---------- */
.floating-field { position: relative; }
.floating-field input,
.floating-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(2, 44, 34, 0.18);
  padding: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--forest-ink);
  outline: none;
  resize: none;
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.floating-field label {
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-size: 1rem;
  color: rgba(2, 44, 34, 0.5);
  pointer-events: none;
  transform-origin: 0 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.floating-field input:focus,
.floating-field textarea:focus {
  border-bottom-color: var(--gold);
  box-shadow:
    0 1px 0 0 var(--gold),
    0 14px 28px -16px rgba(245, 158, 11, 0.5);
}
.floating-field input:focus + label,
.floating-field textarea:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}

/* ---------- 02 · Checkbox (custom) ---------- */
.contact-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(2, 44, 34, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  flex-shrink: 0;
}
.contact-checkbox:checked {
  background: var(--forest-ink);
  border-color: var(--forest-ink);
}
.contact-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- 02 · Magnetic button ---------- */
.magnetic-wrap {
  display: inline-block;
  padding: 0.75rem; /* expands hit-area for natural magnetic pull */
}
.magnetic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: 9999px;
  background: var(--forest-ink);
  color: var(--cream);
  cursor: pointer;
  overflow: hidden;
  will-change: transform;
  transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.magnetic-btn:hover { color: var(--forest-ink); }
.magnetic-btn:hover::before { transform: translateY(0); }
.magnetic-btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  will-change: transform;
}

/* ---------- 03 · Hubs list ---------- */
.hubs-list { border-top: 1px solid rgba(245, 158, 11, 0.15); }

.hub-item {
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  position: relative;
  cursor: pointer;
  transition: background 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hub-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.06), transparent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.hub-item:hover::before { width: 100%; }

.hub-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 44px;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .hub-row {
    grid-template-columns: 40px 1fr 36px;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  .hub-meta { display: none; }
}

.hub-num {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(245, 158, 11, 0.5);
  transition: color 0.4s;
}
.hub-item:hover .hub-num { color: var(--gold); }

.hub-city {
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}
@media (min-width: 768px) { .hub-city { font-size: 2.5rem; } }
.hub-region {
  font-size: 0.875rem;
  color: rgba(250, 247, 240, 0.55);
  margin-top: 0.25rem;
  transition: color 0.4s;
}
.hub-item:hover .hub-city {
  color: var(--gold);
  transform: translateX(10px);
}
.hub-item:hover .hub-region { color: rgba(250, 247, 240, 0.8); }

.hub-meta {
  font-size: 0.7rem;
  color: rgba(250, 247, 240, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.hub-arrow {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hub-item:hover .hub-arrow {
  background: var(--gold);
  color: var(--forest-ink);
  transform: rotate(45deg) scale(1.05);
}

/* Smooth height-expand using grid trick (no JS, no max-height hack) */
.hub-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
}
.hub-item:hover .hub-detail { grid-template-rows: 1fr; }
.hub-detail-inner { overflow: hidden; }

.hub-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr 1fr;
  gap: 2.5rem;
  padding: 0 0 2.5rem 76px;
}
@media (max-width: 900px) {
  .hub-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 56px;
    gap: 1.5rem;
  }
}
@media (max-width: 540px) {
  .hub-detail-grid {
    grid-template-columns: 1fr;
    padding-left: 56px;
  }
}

.hub-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.625rem;
}
.hub-detail-grid p {
  color: rgba(250, 247, 240, 0.7);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Mini map graphic with pulsing dot */
.hub-map {
  position: relative;
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(6, 78, 59, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hub-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 158, 11, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 158, 11, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.6;
}
.hub-map-dot {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
  z-index: 2;
}
.hub-map-pulse {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  animation: hubPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  z-index: 1;
}
@keyframes hubPulse {
  0%   { transform: scale(1);   opacity: 0.85; }
  100% { transform: scale(4.5); opacity: 0;   }
}
.hub-map-coords {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(245, 158, 11, 0.75);
  z-index: 3;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mesh-blob,
  .hub-map-pulse { animation: none !important; }
  .split-char { transform: none; opacity: 1; }
}


/* ---------- 01 · Hero ---------- */
.careers-hero-bg { z-index: 0; }
.careers-hero-image { will-change: transform, opacity; filter: brightness(0.7) saturate(0.9); }
.careers-hero-gradient { will-change: opacity; }

.ch-line {
  display: block;
  overflow: hidden;
  line-height: 0.92;
  padding-bottom: 0.04em;
}
.ch-line-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.sub-segment {
  display: inline;
  background-image: linear-gradient(
    to right,
    rgba(250, 247, 240, 0.95) 0%,
    rgba(250, 247, 240, 0.95) 50%,
    rgba(250, 247, 240, 0.18) 50%,
    rgba(250, 247, 240, 0.18) 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: background-position;
}
.sub-segment .font-serif-italic {
  /* The italic span keeps its gold via its inline color */
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--gold);
}

/* ---------- 02 · Two Worlds ---------- */
.worlds-split { perspective: 1400px; }

.world-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  min-height: 580px;
  transition: filter 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, filter;
}
.world-bg {
  position: absolute; inset: 0; z-index: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.world-card:hover .world-bg { transform: scale(1.04); }
.world-pattern { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.world-content {
  position: relative; z-index: 2;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--cream);
}
@media (min-width: 768px) { .world-content { padding: 3rem; } }

.world-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.world-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.world-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(250, 247, 240, 0.78);
  margin-bottom: 2.25rem;
  max-width: 480px;
}
@media (min-width: 768px) { .world-desc { font-size: 1.0625rem; } }

.world-roles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.world-roles li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(250, 247, 240, 0.85);
}
.world-roles li i { color: var(--gold); }

.world-meta {
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.world-meta-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  color: var(--gold);
  line-height: 1;
}
.world-meta-label {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(250, 247, 240, 0.55);
}

/* "Other side blurs" — controlled by JS toggling .is-dimmed */
.world-card.is-dimmed { filter: blur(4px) saturate(0.85); transform: scale(0.985); }
.world-card.is-active { transform: scale(1.015); }

@media (max-width: 767px) {
  .world-card.is-dimmed { filter: none; transform: none; }
  .world-card.is-active { transform: none; }
}

/* ---------- 03 · Perks Bento ---------- */
.perks-grid { perspective: 1400px; }

.perk-card {
  border-radius: 28px;
  padding: 0;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.perk-card:hover {
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}

.perk-inner {
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}
@media (min-width: 768px) { .perk-inner { padding: 2.5rem; } }

.perk-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  position: relative;
  transform: translateZ(20px);
}
.perk-icon-glow::after {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.6), transparent 65%);
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.5s ease;
  z-index: -1;
}
.perk-card:hover .perk-icon-glow::after { opacity: 1; }

.perk-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 158, 11, 0.7);
  margin-bottom: 0.875rem;
}
.perk-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.25rem;
  transform: translateZ(15px);
}
.perk-title-sm {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1rem;
  transform: translateZ(15px);
}
.perk-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(250, 247, 240, 0.7);
}

/* Equity bar (large card) */
.perk-equity-bar {
  margin-top: auto;
  padding-top: 2rem;
  transform: translateZ(10px);
}
.perk-equity-track {
  position: relative;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.perk-equity-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}
.perk-equity-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.875rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.55);
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .perk-card { transform: none !important; }
  .perk-icon, .perk-title, .perk-title-sm, .perk-equity-bar { transform: none !important; }
}

/* ---------- 04 · Openings ---------- */
.openings-filters { display: flex; }
.opening-filter {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(2, 44, 34, 0.18);
  color: rgba(2, 44, 34, 0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.opening-filter span {
  font-weight: 400;
  opacity: 0.6;
  margin-left: 0.25rem;
}
.opening-filter:hover { border-color: var(--forest); color: var(--forest-ink); }
.opening-filter.is-active {
  background: var(--forest-ink);
  border-color: var(--forest-ink);
  color: var(--cream);
}

.openings-list { border-top: 1px solid rgba(2, 44, 34, 0.12); }

/* Hide native marker */
.opening summary { list-style: none; }
.opening summary::-webkit-details-marker { display: none; }

.opening {
  border-bottom: 1px solid rgba(2, 44, 34, 0.12);
  position: relative;
  transition: opacity 0.4s ease, height 0.4s ease;
}
.opening[hidden] { display: none; }

.opening-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0.5rem 2rem 0;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.opening-summary::before {
  content: '';
  position: absolute;
  left: -100%; top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(245, 158, 11, 0.06));
  transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.opening:hover .opening-summary::before,
.opening[open] .opening-summary::before { left: 0; }

.opening-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(2, 44, 34, 0.55);
  font-weight: 600;
}
.opening-cat {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(6, 78, 59, 0.08);
  color: var(--forest);
  letter-spacing: 0.14em;
}
.opening-loc { display: inline-flex; align-items: center; gap: 0.35rem; }
.opening-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--forest-ink);
  transition: color 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.opening:hover .opening-title { color: var(--forest); transform: translateX(8px); }
.opening[open] .opening-title { color: var(--forest); }

.opening-toggle {
  width: 48px; height: 48px;
  border-radius: 9999px;
  border: 1px solid rgba(2, 44, 34, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-ink);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.opening-toggle i { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.opening:hover .opening-toggle {
  background: var(--forest-ink); color: var(--gold); border-color: var(--forest-ink);
}
.opening[open] .opening-toggle {
  background: var(--gold); color: var(--forest-ink); border-color: var(--gold);
}
.opening[open] .opening-toggle i { transform: rotate(45deg); }

/* Body — JS animates max-height, but provide CSS fallback */
.opening-body {
  overflow: hidden;
  height: 0;
}
.opening-body-inner { padding: 0.5rem 0 2.5rem; }

.opening-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .opening-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.opening-h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.875rem;
}
.opening-grid p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(2, 44, 34, 0.78);
}
.opening-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.opening-grid ul li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(2, 44, 34, 0.78);
  padding-left: 1.25rem;
  position: relative;
}
.opening-grid ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.opening-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(2, 44, 34, 0.1);
}
.opening-comp { display: flex; flex-direction: column; gap: 0.25rem; }
.opening-comp-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(2, 44, 34, 0.5);
  font-weight: 600;
}
.opening-comp-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest-ink);
}

/* Empty state */
.openings-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1rem;
  text-align: center;
  color: rgba(2, 44, 34, 0.7);
}