/* ============================================================
   SITE STYLES — layout, sections, components.
   Design tokens (colors, fonts, spacing) live in colors_and_type.css.
   You don't normally need to edit this to add members or news.
   ============================================================ */
html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--space-900); color: #F4F3EF; font-family: var(--font-body);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
    /* slate emphasis (replaces cyan secondary) + logo wordmark face */
    --em: #C7CEDA; --em-dim: #98A1B3; --font-wordmark: 'Sora', system-ui, sans-serif; }
  * { box-sizing: border-box; }
  img { max-width: 100%; display: block; }
  ::selection { background: var(--dust-400); color: #0B0E18; }

  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
  .eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em;
    text-transform: uppercase; color: var(--dust-400); }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
  .lead { font-size: 19px; line-height: var(--body-leading, 1.55); color: #A9AEBE; max-width: 60ch; }
  em { font-style: normal; font-weight: inherit; color: inherit; font-family: inherit; transition: color var(--dur) var(--ease); }
  html[data-em-style="italic"] em { font-style: italic; font-weight: 600; color: var(--em-color, #F4F3EF); font-family: var(--em-font, inherit); }
  html[data-em-style="bold"] em { font-weight: 700; color: var(--em-color, #F4F3EF); font-family: var(--em-font, inherit); }
  html[data-em-style="underline"] em { font-weight: 600; color: var(--em-color, #F4F3EF); font-family: var(--em-font, inherit);
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
    text-decoration-color: color-mix(in srgb, var(--em-color, #F4F3EF) 55%, transparent); }
  html[data-em-style="smallcaps"] em { font-weight: 600; color: var(--em-color, #F4F3EF); font-family: var(--em-font, inherit);
    font-variant: small-caps; letter-spacing: .03em; }
  html[data-em-style="highlight"] em { font-weight: 600; font-family: var(--em-font, inherit);
    background: color-mix(in srgb, var(--em-color, #F4F3EF) 16%, transparent);
    padding: .04em .3em; margin: 0 .02em; border-radius: 5px;
    color: color-mix(in srgb, var(--em-color, #F4F3EF) 86%, #ffffff); }

  /* ---------- BUTTONS ---------- */
  .btn { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 16px;
    border-radius: var(--r-md); padding: 13px 22px; border: 1px solid transparent; cursor: pointer;
    text-decoration: none; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); white-space: nowrap; }
  .btn:active { transform: scale(.98); }
  .btn-primary { background: var(--dust-400); color: #1A1916; }
  .btn-primary:hover { background: var(--dust-200); }
  .btn-ghost { background: transparent; color: #A9AEBE; border-color: rgba(255,255,255,.28); }
  .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
  .link { color: var(--em); text-decoration: none; font-weight: 500;
    border-bottom: 1px solid color-mix(in srgb, var(--em) 35%, transparent); transition: border-color var(--dur) var(--ease); }
  .link:hover { border-color: var(--em); }

  /* ---------- NAV ---------- */
  .nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center;
    justify-content: space-between; padding: 18px 40px; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease); }
  .nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .nav__word { font-family: var(--font-wordmark); font-weight: var(--wordmark-weight, 600); font-size: 18px; letter-spacing: var(--wordmark-spacing, -.02em); text-transform: var(--wordmark-transform, none); color: var(--wordmark-color, #fff); white-space: nowrap; }
  .nav__links { display: flex; align-items: center; gap: 28px; }
  .nav__links a { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: rgba(255,255,255,.78);
    text-decoration: none; transition: color var(--dur) var(--ease); }
  .nav__links a:hover { color: #fff; }
  .nav__cta { padding: 9px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-pill); }
  .nav__cta:hover { border-color: var(--dust-400); color: var(--dust-200) !important; }
  .nav.is-scrolled { background: color-mix(in srgb, var(--space-900) 80%, transparent);
    backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 rgba(255,255,255,.08); padding: 12px 40px; }

  /* ---------- HERO ---------- */
  .hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
  .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, rgba(0,0,0,.35) 78%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 40%, rgba(0,0,0,.35) 78%, transparent 100%); }
  /* Lift the image's near-black background up to the starfield black (--space-900)
     so the hero's blacks match the field below. Lighten leaves the disk + highlights. */
  .hero__floor { position: absolute; inset: 0; background: var(--space-900); mix-blend-mode: lighten; pointer-events: none; }
  .hero__scrim { position: absolute; inset: 0; background:
      linear-gradient(90deg, rgba(6,8,15,.96) 0%, rgba(6,8,15,.78) 38%, rgba(6,8,15,.12) 100%),
      linear-gradient(0deg, var(--space-900) 0%, var(--space-900) 10%, rgba(6,8,15,0) 62%); }
  .hero__grain { position: absolute; inset: 0; opacity: .5; pointer-events: none; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
  .hero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }
  /* Dim stars over the hero, fading in toward the bottom so the PDS 70 image
     blends into the field below instead of ending on a hard edge. */
  .hero__sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
    opacity: calc(var(--star-bright, .9) * .6); transition: opacity var(--dur) var(--ease);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.16) 32%, rgba(0,0,0,.5) 66%, #000 100%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.16) 32%, rgba(0,0,0,.5) 66%, #000 100%); }
  .hero__sky canvas { display: block; width: 100%; height: 100%; }
  .hero__inner .eyebrow { margin-bottom: 22px; display: block; }
  .hero__title { font-size: clamp(46px, 8vw, 104px); line-height: .94; margin: 0 0 26px; }
  .hero__lead { font-size: clamp(17px, 1.6vw, 21px); line-height: var(--body-leading, 1.55); color: #C9CDDA; max-width: 50ch; margin: 0 0 32px; }
  .hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero__cap { position: absolute; right: 28px; bottom: 22px; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .08em; color: rgba(255,255,255,.5); text-transform: uppercase; }

  /* ---------- SECTION SHELL ---------- */
  section { padding: 120px 40px; }
  section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
  h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; }

  /* ---------- PAGE STARFIELD ----------
     One continuous field behind every dark section (research → footer).
     Brightness is tunable from Tweaks; content panels sit above it and
     darken to dim the stars they cover. */
  .space-field { position: relative; background: var(--space-900); }
  .space-field > section, .space-field > .foot { position: relative; z-index: 1; }
  /* Star field: 3 JS-generated depth layers (random positions) that drift
     at different rates on scroll for parallax. Sky clips to the dark region. */
  .space-field__sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    opacity: var(--star-bright, .9); transition: opacity var(--dur) var(--ease); }
  .star-layer { position: absolute; top: -1200px; bottom: -1200px; left: 0; right: 0; will-change: transform; }
  .star-layer canvas { display: block; width: 100%; height: 100%; }
  @media (prefers-reduced-motion: reduce) { .star-layer { transform: none !important; } }

  /* ---------- RESEARCH & PEOPLE ---------- */
  .research { position: relative; background:
      radial-gradient(1200px 600px at 80% -10%, rgba(232,151,58,.07), transparent 60%); }
  .research__head { margin-bottom: 52px; }
  .research__head h2 { margin: 16px 0 20px; }

  /* member grid */
  .roster { margin-bottom: 0; }
  .roster__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding-top: 4px; }
  .member { appearance: none; font: inherit; color: inherit; flex: 1 1 240px; max-width: 320px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r-lg); padding: 26px 20px; background: rgba(255,255,255,.02);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 13px;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .member:hover { border-color: rgba(232,151,58,.4); transform: translateY(-3px); box-shadow: var(--glow-dust); }
  .member:focus-visible { outline: 2px solid var(--dust-400); outline-offset: 2px; }
  .member__avatar { width: 74px; height: 74px; border-radius: 999px; overflow: hidden; flex: none;
    background: var(--space-700); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; }
  .member__avatar img { width: 100%; height: 100%; object-fit: cover; }
  /* disk-mark placeholder (members with no photo / photo not found) — scales to any avatar size */
  .member__avatar .member__disk { width: 64%; height: 64%; display: block; }
  .member__initials { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--em-dim); }
  .member__name { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: #F4F3EF; line-height: 1.2; }
  .member__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #8A8F9F; margin-top: 5px; }

  /* research-area rows */
  .area-row { display: grid; grid-template-columns: 360px 1fr; gap: 44px; align-items: center;
    padding: 38px 0; border-top: 1px solid rgba(255,255,255,.10); }
  .area-row:last-child { border-bottom: 1px solid rgba(255,255,255,.10); }
  .area-row__media { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/11; }
  .area-row__media img { width: 100%; height: 100%; object-fit: cover; background: var(--space-700);
    transition: transform 700ms var(--ease); }
  .area-row:hover .area-row__media img { transform: scale(1.04); }
  .area-row__media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 16px 11px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    color: rgba(255,255,255,.72); background: linear-gradient(0deg, rgba(6,8,15,.85), transparent); }
  .area-row__n { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 9px;
    color: #98A1B3; transition: color .55s var(--ease); }
  .area-row:hover .area-row__n { color: var(--dust-400); }
  .area-row__dot { width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: #98A1B3; transition: background .55s var(--ease); }
  .area-row:hover .area-row__dot { background: var(--dust-400); }
  .area-row__title { font-size: 26px; line-height: 1.12; margin: 13px 0 12px; }
  .area-row__desc { font-size: 16px; line-height: var(--body-leading, 1.6); color: #A9AEBE; margin: 0 0 22px; max-width: 56ch; }
  .area-row__people { display: flex; align-items: center; gap: 15px; }
  .avatar-stack { display: flex; }
  .avatar-stack .member__avatar { width: 40px; height: 40px; margin-left: -12px; border: 2px solid var(--space-900); }
  .avatar-stack .member__avatar:first-child { margin-left: 0; }
  .avatar-stack .member__initials { font-size: 13px; }
  .area-row__count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #A9AEBE; }

  /* ---------- MEMBER POP-UP ---------- */
  .mdl { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
    background: rgba(4,6,12,.72); backdrop-filter: blur(8px) saturate(1.1);
    animation: mdl-fade .2s var(--ease); }
  @keyframes mdl-fade { from { opacity: 0; } to { opacity: 1; } }
  .mdl__card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), rgba(11,14,24,.96);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl); padding: 38px 40px 34px;
    box-shadow: var(--glow-dust), 0 30px 80px rgba(0,0,0,.5); animation: mdl-rise .26s var(--ease); }
  @keyframes mdl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .mdl__x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14); background: transparent; color: #C7CEDA; font-size: 15px;
    cursor: pointer; display: grid; place-items: center; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .mdl__x:hover { border-color: var(--dust-400); color: var(--dust-400); }
  .mdl__head { display: flex; align-items: center; gap: 20px; }
  .mdl__head .member__avatar { width: 92px; height: 92px; }
  .mdl__head .member__initials { font-size: 30px; }
  .mdl__name { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: #F4F3EF; line-height: 1.1; }
  .mdl__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dust-400); margin-top: 7px; }
  .mdl__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .mdl__tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .05em; text-transform: uppercase; color: #C7CEDA; padding: 5px 11px 5px 9px;
    border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
  .mdl__tagdot { width: 7px; height: 7px; border-radius: 50%; background: var(--area-color, #98A1B3); flex: none; }
  .mdl__bio { font-size: 16px; font-weight: 500; line-height: var(--body-leading, 1.6); color: #C2C7D4; margin: 24px 0 0; }
  .mdl__bio strong, .mdl__bio b { font-weight: 700; color: #E9ECF3; }
  .mdl__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
  .mdl__link { display: inline-flex; align-items: center; font-family: var(--font-body); font-weight: 500; font-size: 14px;
    color: #F4F3EF; text-decoration: none; padding: 10px 16px; border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--r-pill); transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease); }
  .mdl__link:hover { border-color: var(--dust-400); color: var(--dust-200); background: rgba(232,151,58,.08); }
  .mdl__linkarrow { margin-left: .45em; opacity: .7; }

  /* ---------- NEWS ---------- */
  .news { background: transparent; }
  .news__head { margin-bottom: 44px; }
  .news__head h2 { margin-top: 14px; }
  .news__stage { display: flex; align-items: stretch; gap: 18px; }
  .news__arrow { flex: none; width: 60px; border: 1px solid rgba(255,255,255,.16); background: transparent;
    color: #F4F3EF; font-size: 30px; border-radius: var(--r-md); cursor: pointer; font-family: var(--font-display);
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .news__arrow:hover { border-color: var(--dust-400); color: var(--dust-400); }
  .news__card { flex: 1; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), rgba(9,12,21,.92);
    border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-lg); padding: 44px 48px; box-shadow: var(--glow-dust); }
  .news__date { font-family: var(--font-mono); font-size: 13px; color: var(--dust-400); letter-spacing: .06em; }
  .news__card h3 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; margin: 12px 0 16px; max-width: 26ch; }
  .news__card p { font-size: 16px; line-height: var(--body-leading, 1.6); color: #A9AEBE; max-width: 72ch; margin: 0 0 18px; }
  .news__dots { display: flex; gap: 9px; justify-content: center; margin-top: 28px; }
  .news__dot { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.22);
    cursor: pointer; padding: 0; transition: background var(--dur) var(--ease), width var(--dur) var(--ease); }
  .news__dot.is-on { background: var(--dust-400); width: 28px; }

  /* ---------- JOIN ---------- */
  .join__head { margin-bottom: 48px; }
  .join__head h2 { margin-top: 14px; }
  .join__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .join__card { background: linear-gradient(0deg, rgba(255,255,255,.03), rgba(255,255,255,.03)), rgba(9,12,21,.85); border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px;
    transition: border-color var(--dur) var(--ease); }
  .join__card:hover { border-color: rgba(255,255,255,.22); }
  .join__card .eyebrow { color: var(--dust-400); }
  .join__card .join__arrow { color: var(--dust-400); font-weight: 600; transition: transform var(--dur) var(--ease); display: inline-block; }
  .join__card .link:hover .join__arrow { transform: translateX(3px); }
  .join__card p { flex: 1; color: #A9AEBE; font-size: 15px; line-height: var(--body-leading, 1.6); margin: 0; }
  .join__note { margin: 30px auto 0; font-size: 13px; color: #6E7488; font-style: italic; }

  /* ---------- FOOTER ---------- */
  .foot { background: transparent; border-top: 1px solid rgba(255,255,255,.08);
    padding: 60px 40px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
  .foot__eaps { height: 42px; width: auto; opacity: .82; filter: brightness(0) invert(1); }
  .foot__meta { display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: 13px; color: #6E7488; }
  .foot__brand { display: flex; align-items: center; gap: 13px; }
  .foot__word { font-family: var(--font-wordmark); font-weight: var(--wordmark-weight, 600); font-size: 20px; letter-spacing: var(--wordmark-spacing, -.02em); text-transform: var(--wordmark-transform, none); color: var(--wordmark-color, #F4F3EF); }
  .foot__div { width: 64px; height: 1px; background: rgba(255,255,255,.12); }

  /* ---------- REVEALS ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
    .js .reveal.is-in { opacity: 1; transform: none; }
    .js .area-row { transition-delay: var(--d, 0ms); }
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 980px) {
    .join__grid { grid-template-columns: 1fr; }
    .area-row { grid-template-columns: 1fr; gap: 24px; }
    .area-row__media { max-width: 520px; }
  }
  @media (max-width: 640px) {
    .nav__links a:not(.nav__cta) { display: none; }
    section { padding: 80px 24px; }
    .nav, .nav.is-scrolled { padding-left: 24px; padding-right: 24px; }
    .hero__inner, .wrap { padding: 0 24px; }
  }
