:root {
      --bg:          #ffffff;
      --bg-deep:     #f4f6fb;
      --surface:     #f8f9fd;
      --surface-hi:  #ffffff;
      --border:      #d0d8e8;
      --border-lt:   #e4eaf4;
      --text:        #0d0d0d;
      --text-muted:  #3a3f55;
      --text-faint:  #7a82a0;
      --navy:        #0a0f38;
      --navy-mid:    #131a52;
      --royal:       #4169e1;
      --royal-mid:   #2f56d6;
      --royal-lt:    #eef2ff;
      --royal-rule:  #b0c0f0;
      --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
      --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
      --t-xs:   0.6875rem;
      --t-sm:   0.8125rem;
      --t-base: 1rem;
      --t-md:   1.0625rem;
      --t-lg:   1.1875rem;
      --t-xl:   1.4375rem;
      --t-2xl:  1.875rem;
      --t-3xl:  2.5rem;
      --t-5xl:  4rem;
      --r:    2px;
      --r-md: 6px;
      --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
      --tr:   400ms var(--ease);
      --tr-slow: 450ms var(--ease);
      --sh-sm: 0 1px 4px rgba(10,15,56,0.06);
      --sh-md: 0 12px 32px rgba(10,15,56,0.12), 0 4px 8px rgba(10,15,56,0.04);
      --max-w: 1100px;
      --gutter: clamp(1.25rem, 5vw, 3rem);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-padding-top: 100px; }
    body { 
      font-family: var(--sans); 
      background: var(--bg); 
      color: var(--text); 
      line-height: 1.7; 
      -webkit-font-smoothing: antialiased; 
      /* PRIMARY GRID - SUBTLE DOTS ONLY */
      background-image: radial-gradient(rgba(208, 216, 232, 0.45) 1.5px, transparent 1.5px);
      background-size: 32px 32px;
      position: relative;
    }
    @keyframes drift {
      0% { transform: translate(0,0) scale(1); }
      100% { transform: translate(1%, 2%) scale(1.02); }
    }
    img { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    ul, ol { list-style: none; }
    button { font-family: inherit; }

    .skip-link { position: absolute; top: -100%; left: 1rem; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: var(--r); font-size: var(--t-sm); font-weight: 500; z-index: 9999; }
    .skip-link:focus { top: 1rem; }
    :focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: var(--r); }

    .wrap { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
    .section { padding-block: clamp(4rem, 9vw, 6.5rem); }
    .section-border { border-top: 1px solid var(--border); }
    .label { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--royal); margin-bottom: 1.5rem; }
    .label::before { content: ''; display: block; width: 16px; height: 1.5px; background: var(--royal); opacity: .7; }

    /* NAV */
    #nav { 
      position: sticky; 
      top: 0; 
      z-index: 200; 
      height: 100px; 
      background: var(--navy); 
      border-bottom: 1px solid rgba(255,255,255,0.08); 
      transition: box-shadow var(--tr);
    }
    #nav.scrolled { box-shadow: 0 2px 24px rgba(10,15,56,0.35); }
    .nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 100px; }

.nav-brand {
  display: flex;
  align-items: center;
  height: 100%;
  padding-block: 6px; /* Reduced vertical padding to allow logo to grow */
  transition: opacity var(--tr);
}

.nav-logo {
  height: 100%; /* Scales naturally with parent height minus padding */
  max-height: 88px; /* Allow it to be significantly larger */
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-brand:hover {
  opacity: 0.8;
}

/* Removed hardcoded logo overrides in favour of container-based scaling */
    .nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
    .nav-menu a { font-size: var(--t-sm); color: rgba(255,255,255,0.65); padding-bottom: 2px; position: relative; transition: color var(--tr); }
    .nav-menu a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: var(--royal); transition: width var(--tr); }
    .nav-menu a:hover, .nav-menu a[aria-current="page"] { 
      color: #fff; 
      text-shadow: 0 0 12px rgba(65, 105, 225, 1), 0 0 24px rgba(255,255,255,0.6); 
      transform: translateY(-1px);
    }
    .nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { 
      width: 100%; 
      box-shadow: 0 0 20px var(--royal); 
      height: 2.5px;
      opacity: 1;
    }
    @keyframes navGlowPulse {
      0% { text-shadow: 0 0 8px rgba(65, 105, 225, 0.6); }
      100% { text-shadow: 0 0 20px rgba(65, 105, 225, 1), 0 0 10px #fff; }
    }
    .nav-menu a[aria-current="page"] { animation: navGlowPulse 1.5s infinite alternate; }
    .nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--r); cursor: pointer; padding: 0; width: 38px; height: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; }
    .nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--tr), opacity var(--tr); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
    @media (max-width: 780px) {
      .nav-toggle { display: flex; }
      .nav-menu { display: none; position: absolute; top: 100px; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.08); flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.5rem; gap: 0; }
      .nav-menu.open { display: flex; }
      .nav-menu a { display: block; font-size: var(--t-base); color: rgba(255,255,255,0.75); padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
      .nav-menu a:last-child { border-bottom: none; }
    }

    /* HERO */
    #hero { background: var(--bg); border-bottom: 1px solid var(--border); padding-block: clamp(4.5rem, 12vw, 8rem) clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; }
    #hero::after { 
      content: 'engram'; 
      position: absolute; 
      right: -2%; 
      bottom: -10%; 
      font-family: var(--serif); 
      font-size: clamp(8rem, 20vw, 15rem); 
      color: var(--border); 
      opacity: 0.35; 
      pointer-events: none; 
      line-height: 1; 
      user-select: none; 
      letter-spacing: -.03em; 
      text-align: right;
    }
    #hero::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 55%; background: linear-gradient(to bottom, var(--royal), transparent); opacity: .6; }
    .hero-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--royal); margin-bottom: 1.25rem; }
    .hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--royal); }
    .hero-h1 { font-family: var(--serif); font-size: clamp(var(--t-3xl), 5.5vw, var(--t-5xl)); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 1.5rem; color: var(--navy); }
    .hero-h1 em { font-style: italic; color: var(--royal); }
    .hero-desc { font-size: clamp(var(--t-base), 1.4vw, var(--t-md)); font-weight: 300; color: var(--text-muted); line-height: 1.85; max-width: 60ch; margin-bottom: 2rem; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

    /* BUTTONS */
    .btn { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--sans); font-size: var(--t-sm); font-weight: 500; letter-spacing: .02em; padding: .6rem 1.25rem; border-radius: var(--r); border: 1px solid; cursor: pointer; white-space: nowrap; transition: background var(--tr), color var(--tr), border-color var(--tr), box-shadow var(--tr), transform var(--tr); }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
    .btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
    .btn-royal { background: var(--royal); color: #fff; border-color: var(--royal); }
    .btn-royal:hover { background: var(--royal-mid); border-color: var(--royal-mid); }
    .btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
    .btn-ghost:hover { border-color: var(--royal); color: var(--royal); }
    .btn-sm { font-size: var(--t-xs); padding: .38rem 1rem; }

    /* RESEARCH */
    .research-lead { display: grid; grid-template-columns: 5fr 4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
    @media (max-width: 760px) { .research-lead { grid-template-columns: 1fr; } }
    .research-question { font-family: var(--serif); font-size: clamp(var(--t-xl), 2.8vw, var(--t-2xl)); line-height: 1.4; color: var(--navy); }
    .research-body { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.85; }
    .research-body p + p { margin-top: 1em; }

    /* PUBLICATIONS */
    #publications { background: var(--bg-deep); }
    .pubs-hdr { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
    .pubs-hdr-h2 { font-family: var(--serif); font-size: clamp(var(--t-2xl), 3.5vw, var(--t-3xl)); color: var(--navy); }
    .pubs-note { font-size: var(--t-sm); color: var(--text-muted); font-style: italic; max-width: 42ch; text-align: right; }
    @media (max-width: 600px) { .pubs-note { text-align: left; } }
    .pub-list { display: flex; flex-direction: column; }
    .pubs-hdr-h2 { font-family: var(--serif); font-size: clamp(var(--t-2xl), 3.5vw, var(--t-3xl)); color: var(--navy); margin-bottom: .25rem; }
    .pubs-note { color: var(--text-faint); font-size: var(--t-sm); }
    
    .pub-grid { 
      display: grid; 
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
      max-width: 1200px;
      margin-inline: auto;
      gap: 2rem; 
      margin-top: 3rem; 
    }
    .team-staff-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
      gap: 2.5rem;
      margin-top: 4rem;
      justify-content: center; /* Center the cards */
      margin-inline: auto;
    }
    .team-column {
      width: 100%;
    }
    @media (max-width: 768px) {
      .team-staff-row { grid-template-columns: 1fr; }
    }
    @media (min-width: 1000px) {
      .pub-grid { grid-template-columns: repeat(3, 1fr); }
    }
    .pub-card { 
      background: var(--surface); 
      border: 1px solid var(--border-lt); 
      border-radius: var(--r-md); 
      overflow: hidden; 
      transition: transform var(--tr), box-shadow var(--tr); 
      display: flex;
      flex-direction: column;
    }
    .pub-card:hover { 
      transform: translateY(-8px); 
      box-shadow: 0 20px 48px rgba(10,15,56,0.15); 
      border-color: var(--royal);
    }
    .pub-thumb { 
      width: 100%; 
      height: 180px; 
      background: var(--navy); 
      position: relative;
      overflow: hidden;
    }
    .pub-thumb img { 
      width: 100%; 
      height: 100%; 
      object-fit: cover; 
      opacity: 0.8;
      transition: opacity var(--tr);
    }
    .pub-card:hover .pub-thumb img { opacity: 1; }
    .pub-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
    .pub-card-yr { font-size: var(--t-xs); font-weight: 600; color: var(--royal); margin-bottom: 0.5rem; }
    .pub-card-title { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.3; color: var(--navy); margin-bottom: 0.75rem; }
    .pub-card-authors { font-size: var(--t-sm); color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.4; }
    .pub-card-journal { font-size: var(--t-xs); color: var(--text-faint); margin-bottom: 1rem; }
    .pub-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
    .pub-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; padding-top: .2rem; }
    .pub-link { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--royal); padding: .35rem .7rem; border: 1px solid var(--royal-rule); border-radius: var(--r); background: var(--royal-lt); white-space: nowrap; transition: background var(--tr), color var(--tr), border-color var(--tr); }
    .pub-link:hover { background: var(--royal); color: #fff; border-color: var(--royal); }
.pub-card-content { padding: 1.75rem; }
    .pubs-footer { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
    .pubs-footer-note { font-size: var(--t-sm); color: var(--text-muted); }

    /* TEAM */
    .pi-block { background: var(--navy); border-radius: var(--r-md); padding: 2.5rem; display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; margin-bottom: 3rem; box-shadow: var(--sh-md); }
    @media (max-width: 760px) { .pi-block { grid-template-columns: 1fr; } }
    .pi-portrait { aspect-ratio: 3/4; background: rgba(255,255,255,0.06); border-radius: var(--r-md); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .pi-portrait img { width: 100%; height: 100%; object-fit: cover; }
    .pi-portrait svg { width: 3rem; height: 3rem; color: rgba(255,255,255,0.2); }
    .pi-info { display: flex; flex-direction: column; gap: .75rem; }
    .pi-label { font-size: var(--t-xs); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--royal); }
    .pi-name { font-family: var(--serif); font-size: clamp(var(--t-2xl), 3vw, var(--t-3xl)); line-height: 1.15; color: #fff; }
    .pi-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
    .pi-email-icon { background: rgba(65,105,225,0.15); border: 1px solid rgba(65,105,225,0.3); margin-top: 0; }
    .pi-email-icon:hover { background: var(--royal); border-color: var(--royal); }
    .pi-title { font-size: var(--t-sm); color: rgba(255,255,255,0.5); font-weight: 500; }
    .pi-divider { width: 40px; height: 1.5px; background: var(--royal); opacity: .6; margin: .25rem 0; }
    .pi-bio { font-size: var(--t-sm); color: rgba(255,255,255,0.65); line-height: 1.85; }
    .pi-contact { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--royal); border: 1px solid rgba(65,105,225,0.4); border-radius: var(--r); padding: .4rem .9rem; background: rgba(65,105,225,0.08); transition: background var(--tr), border-color var(--tr); margin-top: .5rem; width: fit-content; }
    .pi-contact:hover { background: rgba(65,105,225,0.18); border-color: var(--royal); }

    .team-group { margin-bottom: 2.5rem; }
    .team-group-label { font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
    .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
    .team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr); }
    .team-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--royal-rule); }
    .team-portrait { aspect-ratio: 1/1; background: var(--royal-lt); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
    .team-portrait::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 24px 24px; opacity: .35; }
    .team-portrait svg { width: 2.25rem; height: 2.25rem; color: var(--royal); opacity: .3; position: relative; z-index: 1; }
    .team-portrait img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
    .team-info { padding: 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
    .team-name { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.25; color: var(--navy); }
    .team-card-header { display: flex; align-items: start; justify-content: space-between; gap: 0.5rem; margin-bottom: .2rem; }
    .team-role { font-size: var(--t-xs); font-weight: 600; letter-spacing: .07em; color: var(--royal); margin-bottom: .85rem; }
    .team-bio { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.6; text-align: justify; }
    .team-email { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--royal-lt); color: var(--royal); transition: background var(--tr), color var(--tr), transform var(--tr); flex-shrink: 0; }
    .team-email:hover { background: var(--royal); color: #fff; transform: scale(1.1); }
    .team-email span { display: none; }

    .past-members { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
    .past-members-label { font-size: var(--t-xs); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.25rem; }
    .past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
    .past-item { padding: .65rem .9rem; border: 1px solid var(--border-lt); border-radius: var(--r); background: var(--surface); transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); }
    .past-item:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--royal-rule); }
    .past-name { font-size: var(--t-sm); font-weight: 500; color: var(--text); }
    .past-role { font-size: var(--t-xs); color: var(--text-faint); margin-top: .1rem; }

    /* AFFILIATIONS */
    #affiliations { background: var(--navy); }
    #affiliations .label { color: var(--royal); }
    #affiliations .label::before { background: var(--royal); }
    .affils { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: .75rem; }
    .affil { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; transition: border-color var(--tr), background var(--tr); }
    .affil:hover { border-color: var(--royal); background: rgba(65,105,225,0.08); }
    .affil-type { font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); }
    .affil-name { font-family: var(--serif); font-size: var(--t-base); line-height: 1.35; color: #fff; }

    /* PHILOSOPHY */
    /* MISSION & STAFF LAYOUT */
    .phil-layout { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
    @media (max-width: 760px) { .phil-layout { grid-template-columns: 1fr; } }
    .phil-sticky { position: sticky; top: calc(86px + 2rem); }
    .phil-heading { font-family: var(--serif); font-size: clamp(var(--t-2xl), 3.5vw, var(--t-3xl)); line-height: 1.2; margin-bottom: 1.25rem; color: var(--navy); }
    .phil-intro { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.85; }
    .phil-intro p + p { margin-top: 1em; }

    .map-subtitle {
      font-weight: 500;
      letter-spacing: -0.01em;
      opacity: 0.8;
      display: block;
    }
    .values { 
      display: grid; 
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
      gap: 1.5rem; 
      margin-top: 3rem; 
    }
    .value { 
      background: var(--surface); 
      border: 1px solid var(--border-lt); 
      padding: 1.75rem; 
      border-radius: var(--r-md); 
      transition: border-color var(--tr), transform var(--tr);
    }
    /* Consistency handled by shared .value rules below */
    .value-num { font-family: var(--serif); font-size: var(--t-lg); color: var(--royal); margin-bottom: 0.75rem; border-bottom: 2px solid var(--royal-lt); display: inline-block; padding-bottom: 0.25rem; }
    .value-desc { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.6; text-align: justify; }

    /* MAP REVERSION */
    .leaflet-tile-container { filter: none !important; }
    .leaflet-container { background: #eef2ff !important; }

    /* FOOTER CLEANUP */
    .footer-links li:has(a[href^="#"]) { display: none; }
    #media { background: var(--bg-deep); }
    .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
    .media-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr); }
    .media-card:hover { border-color: var(--royal-rule); box-shadow: var(--sh-md); transform: translateY(-2px); }
    .media-outlet { font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); }
    .media-headline { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.35; color: var(--navy); }
    .media-desc { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.75; }
    .media-date { font-size: var(--t-xs); color: var(--text-faint); }
    .media-link { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--royal); margin-top: auto; padding-top: .5rem; transition: opacity var(--tr); }
    .media-link:hover { opacity: .7; }

    /* CONTACT */
    /* CONTACT */
    #contact { background: var(--bg); }
    .contact-center-layout { 
      max-width: 800px;
      margin-inline: auto;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 2rem;
    }
    .contact-h2 { font-family: var(--serif); font-size: clamp(var(--t-2xl), 3.5vw, var(--t-3xl)); line-height: 1.2; margin-bottom: 1rem; color: var(--navy); }
    .contact-intro { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
    .join-note { background: var(--royal-lt); border: 1px solid var(--royal-rule); border-radius: var(--r-md); padding: 1.25rem 1.5rem; margin-bottom: 1.75rem; text-align: left; width: 100%; }
    .join-note-head { font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); margin-bottom: .5rem; }
    .join-note p { font-size: var(--t-sm); color: var(--text-muted); line-height: 1.75; }
    .contact-details { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; text-align: left; }
    .contact-field { display: flex; flex-direction: column; gap: .2rem; }
    .contact-label { font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); }
    .contact-val { font-size: var(--t-sm); color: var(--text); line-height: 1.6; }
    .contact-val a { color: var(--royal); border-bottom: 1px solid var(--royal-rule); transition: border-color var(--tr); }
    .contact-val a:hover { border-color: var(--royal); }
    .form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; box-shadow: var(--sh-sm); }
    .form-h3 { font-family: var(--serif); font-size: var(--t-xl); margin-bottom: .1rem; color: var(--navy); }
    .form-sub { font-size: var(--t-sm); color: var(--text-muted); }
    .form-divider { height: 1px; background: var(--border); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    @media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
    .field { display: flex; flex-direction: column; gap: .4rem; }
    .field label { font-size: var(--t-xs); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
    .field input, .field textarea, .field select { font-family: var(--sans); font-size: var(--t-sm); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: .6rem 1rem; color: var(--text); outline: none; width: 100%; appearance: none; transition: border-color var(--tr), box-shadow var(--tr); }
    .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(65,105,225,.1); }
    .field textarea { resize: vertical; min-height: 108px; line-height: 1.65; }
    .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236A6558' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
    .form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-top: .25rem; }
    .form-note { font-size: var(--t-xs); color: var(--text-faint); }

    /* MAP */
    .map-wrap { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 3rem; }
    .map-label { font-size: var(--t-xs); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--royal); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
    .map-label::before { content: ''; display: block; width: 16px; height: 1.5px; background: var(--royal); opacity: .7; }
    .map-frame { width: 100%; height: 380px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
    .map-frame iframe { width: 100%; height: 100%; border: none; display: block; }

    /* FOOTER */
    #footer { background: var(--navy); color: rgba(255,255,255,.48); padding-block: 4rem 3rem; }
    .footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.07); }
    @media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 380px) { .footer-grid { grid-template-columns: 1fr; } }
    .footer-wordmark { display: block; font-family: var(--serif); font-size: var(--t-xl); color: #fff; margin-bottom: .75rem; }
    .footer-blurb { font-size: var(--t-sm); line-height: 1.7; max-width: 38ch; }
    .footer-col-head { font-size: var(--t-xs); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 1rem; }
    .footer-links { display: flex; flex-direction: column; gap: .7rem; }
    .footer-links a { font-size: var(--t-sm); color: rgba(255,255,255,.42); transition: color var(--tr); }
    .footer-links a:hover { color: rgba(255,255,255,.88); }
    .footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; }
    .footer-copy { font-size: var(--t-xs); }
    .footer-addr { font-size: var(--t-xs); color: rgba(255,255,255,.22); display: flex; align-items: center; gap: .5rem; }
    .footer-addr::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--royal); display: block; }

    /* LUXURIOUS HARDWARE-ACCELERATED REVEAL */
    .fade-up { 
      opacity: 0; 
      transform: translateY(30px) translate3d(0,0,0); 
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms), 
                  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms);
      will-change: transform, opacity;
      backface-visibility: hidden;
      perspective: 1000px;
    }
    .fade-up.visible { 
      opacity: 1; 
      transform: translateY(0) translate3d(0,0,0); 
    }

    /* MAGNETIC BUTTONS (Simplified) */
    .btn { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background var(--tr), box-shadow var(--tr); }
    .btn:active { transform: scale(0.95); }
.team-map {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.world-map {
  width: 100%;
  max-width: 900px;
}
.map-dot {
  fill: var(--royal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-dot:hover {
  transform: scale(1.6);
  fill: var(--navy);
}
.map-tooltip {
  position: absolute;
  background: var(--navy);
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* CURSOR GLOW - HIGH CONTRAST */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: rgba(65, 105, 225, 0.28);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  filter: blur(4px);
  transition: background 0.3s ease, width 0.3s ease, height 0.3s ease, filter 0.3s ease;
  will-change: transform;
  transform: translate3d(-50%,-50%,0);
  border: 1px solid rgba(65, 105, 225, 0.1);
}
#cursor-glow.active {
  background: rgba(0, 150, 255, 0.4);
  width: 64px;
  height: 64px;
  filter: blur(8px);
}
@media (max-width: 768px) { #cursor-glow { display: none; } }

/* CURSOR GLOW - INSTANT & DYNAMIC */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background: rgba(65, 105, 225, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  filter: blur(2px);
  opacity: 0; /* Only visible when moving */
  transition: opacity 0.4s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  will-change: transform, opacity;
  transform: translate3d(-50%,-50%,0);
  border: 1px solid rgba(65, 105, 225, 0.1);
}
#cursor-glow.moving {
  opacity: 1;
}
#cursor-glow.active {
  background: rgba(65, 105, 225, 0.4);
  width: 48px;
  height: 48px;
  filter: blur(4px);
}
@media (max-width: 768px) { #cursor-glow { display: none; } }

/* SUBTLE MAP TOOLTIP */
.map-tooltip-subtle {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.1);
}
.map-tooltip-subtle b { color: var(--royal); }

/* SUBTLE CARD HOVER (LIFT + COLOUR) */
.pub-card, .team-card, .media-card, .pi-block, .value { 
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  backface-visibility: hidden;
}
.pub-card:hover, .team-card:hover, .media-card:hover, .pi-block:hover, .past-item:hover, .value:hover { 
  transform: translateY(-4px) !important;
  border-color: var(--royal) !important;
  box-shadow: 0 15px 35px rgba(10,15,56,0.12);
}

.map-tooltip-lab {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--royal);
  border-radius: var(--r);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.map-tooltip-lab b { color: var(--royal); font-size: 0.95rem; }

@keyframes labPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.4); opacity: 0; }
}
.lab-pulse {
  animation: labPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
