/* ==========================================================================
   CELESTA | shared stylesheet (every page uses this file)

   1.  Fonts
   2.  Tokens (colours, sizes) .......... change the look of the whole site here
   3.  Base
   4.  Sky (background)
   5.  Layout helpers and type
   6.  Glass, buttons
   7.  Navigation
   8.  Home: hero
   9.  Home: statement, work index, CelestaGPT, community
   9b. Inner pages: shared by About, Events and Contact
   9c. Cards, pop-ups, blog, members and the 404 page
   10. Footer
   11. Cursor
   12. Responsive
   13. Reduced motion
   ========================================================================== */


/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* 2. Tokens --------------------------------------------------------------- */

:root {
  /* Colour. Cream and navy are sampled from the Celesta logo. */
  --zenith: #03060d;                    /* top of the sky */
  --horizon: #0e1726;                   /* bottom of the sky */
  --cream: #e6e0d1;                     /* text, primary button */
  --cream-dim: rgba(230, 224, 209, .68);
  --cream-faint: rgba(230, 224, 209, .44);
  --rule: rgba(230, 224, 209, .15);     /* hairlines */
  --star-cool: #b9cbef;

  /* Type */
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}


/* 3. Base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--zenith);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 224, 209, .28) transparent;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--cream);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--cream); color: var(--zenith); }

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--cream); color: var(--zenith);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }


/* 4. Sky ------------------------------------------------------------------ */
/* One continuous night sky sits behind every page. The stars are drawn on a
   canvas by site.js; this is the gradient they sit on. */

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 62% at 50% 112%, rgba(26, 44, 76, .85), transparent 64%),
    radial-gradient(90% 50% at 50% -12%, rgba(18, 30, 54, .8), transparent 72%),
    linear-gradient(180deg, var(--zenith) 0%, #060b16 52%, var(--horizon) 100%);
}

.sky {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}


/* 5. Layout helpers and type --------------------------------------------- */

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }

h2 {
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -.038em;
}

.lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--cream-dim);
  text-wrap: pretty;
}


/* 6. Glass and buttons ---------------------------------------------------- */
/* Liquid glass: a translucent fill, a blurred view of the sky behind it, a
   bright rim that fades around the edge, and a soft light that follows the
   pointer. Add class "glass" to anything; add "spot" to enable the pointer light. */

.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(150deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .035) 50%, rgba(255, 255, 255, .065));
  -webkit-backdrop-filter: blur(22px) saturate(165%);
          backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 0 0 26px rgba(255, 255, 255, .025),
    0 26px 50px -26px rgba(0, 0, 0, .7);
}

@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .glass::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .02) 58%, rgba(185, 203, 239, .34));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
  }
}

.glass.spot::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .11), transparent 62%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.glass.spot:hover::after { opacity: 1; }

.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h);
  padding: 0 28px;
  border: 0; border-radius: 999px;
  font: 500 16px/1 var(--font);
  letter-spacing: -.01em;
  color: var(--cream);
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), translate .5s var(--ease-out);
}
.btn-sm { --h: 40px; padding: 0 20px; font-size: 14.5px; }

.btn-primary {
  background: var(--cream);
  color: #0a111d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 34px -16px rgba(230, 224, 209, .5);
}
.btn-primary:hover { background: #f4efe1; }

.btn-glass:hover { background-color: rgba(255, 255, 255, .06); }


/* 7. Navigation ----------------------------------------------------------- */

.site-header {
  position: fixed; z-index: 60;
  top: max(14px, env(safe-area-inset-top));
  left: 0; right: 0;
  display: flex; justify-content: center;
  padding-inline: 14px;
  pointer-events: none;
  animation: nav-in 1s var(--ease-out) .1s backwards;
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-10px); } }

.nav {
  display: flex; align-items: center; gap: 10px;
  max-width: 100%;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  pointer-events: auto;
  transition: background-color .4s var(--ease);
}
.site-header.is-scrolled .nav { background-color: rgba(8, 14, 26, .62); }

.nav-brand { display: flex; align-items: center; margin-right: 18px; border-radius: 8px; }
.nav-brand img { height: 30px; width: auto; }

.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block;
  padding: 10px 17px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color .3s var(--ease), background-color .3s var(--ease), translate .5s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); background: rgba(255, 255, 255, .08); }
.nav-links a[aria-current="page"] { color: var(--cream); background: rgba(255, 255, 255, .13); }

/* Dropdown: opens on hover or when a link inside it has keyboard focus. */
.nav-links > li { position: relative; display: flex; }
.nav-links .has-sub > a { display: inline-flex; align-items: center; gap: 8px; }
.nav-links .has-sub > a svg { width: 9px; height: 6px; opacity: .6; transition: transform .35s var(--ease-out); }
.nav-links .has-sub:hover > a svg, .nav-links .has-sub:focus-within > a svg { transform: rotate(180deg); }
.nav-links li.is-current > a { color: var(--cream); background: rgba(255, 255, 255, .13); }
.has-sub::after { content: ""; position: absolute; left: -8px; right: -8px; top: 100%; height: 18px; }

.subnav {
  position: absolute; top: calc(100% + 14px); left: 50%;
  min-width: 190px;
  margin: 0; padding: 8px; list-style: none;
  border-radius: 24px;
  background-color: rgba(9, 15, 28, .86);
  opacity: 0; visibility: hidden; pointer-events: none;
  translate: -50% 8px;
  transition: opacity .25s var(--ease), translate .4s var(--ease-out), visibility 0s linear .4s;
}
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav {
  opacity: 1; visibility: visible; pointer-events: auto;
  translate: -50% 0;
  transition-delay: 0s;
}
.subnav a {
  display: block;
  padding: 11px 16px;
  border-radius: 17px;
  font-size: 14.5px; font-weight: 500;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.subnav a:hover { color: var(--cream); background: rgba(255, 255, 255, .09); }
.subnav a[aria-current="page"] { color: var(--cream); background: rgba(255, 255, 255, .13); }

/* Small padlock after a members-only link. */
.lock-icon { display: inline-block; width: 11px; height: 13px; margin-left: 8px; vertical-align: -1px; opacity: .55; }
.nav-sheet .lock-icon { width: 14px; height: 16px; margin-left: 10px; vertical-align: -1px; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  cursor: pointer;
}
.nav-toggle i {
  position: absolute; left: 14px; right: 14px; height: 1.5px;
  border-radius: 2px; background: var(--cream);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-toggle i:nth-of-type(1) { top: 17px; }
.nav-toggle i:nth-of-type(2) { top: 24px; }
.site-header[data-open="true"] .nav-toggle i:nth-of-type(1) { top: 20.5px; transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle i:nth-of-type(2) { top: 20.5px; transform: rotate(-45deg); }

.nav-sheet {
  position: absolute;
  top: calc(100% + 10px); left: 14px; right: 14px;
  padding: 10px;
  border-radius: 30px;
  background-color: rgba(8, 14, 26, .6);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top center;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s linear .45s;
}
.site-header[data-open="true"] .nav-sheet {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}
.nav-sheet ul { margin: 0; padding: 0; list-style: none; }
.nav-sheet a {
  display: block;
  padding: 16px 18px;
  border-radius: 22px;
  font-size: 22px; font-weight: 600; letter-spacing: -.02em;
  text-decoration: none;
}
.nav-sheet a[aria-current="page"] { background: rgba(255, 255, 255, .1); }
.nav-sheet .btn { width: 100%; margin-top: 8px; }


/* 8. Home: hero ----------------------------------------------------------- */

.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(124px, 17vh, 176px) 0 clamp(84px, 13vh, 136px);
  text-align: center;
  overflow-x: clip;
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
}

/* The emblem is the centre of the orbits drawn behind the headline. */
.emblem {
  position: relative;
  width: 116px; aspect-ratio: 1;
  margin-bottom: clamp(30px, 5.5vh, 52px);
}
.emblem::before {
  content: "";
  position: absolute; inset: -80%;
  background: radial-gradient(closest-side, rgba(185, 203, 239, .15), rgba(185, 203, 239, 0));
  pointer-events: none;
}
.emblem-disc {
  position: absolute; inset: 3px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 28px rgba(255, 255, 255, .03);
}
.emblem img { position: relative; width: 100%; height: 100%; object-fit: contain; }

.orbits {
  position: absolute; left: 50%; top: 50%;
  width: 2200px; height: 1040px; max-width: none;
  translate: -50% -50%;
  pointer-events: none;
  overflow: visible;
}
.orbits ellipse {
  fill: none;
  stroke: url(#orbit-fade);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 2.8s var(--ease-out) forwards;
}
.orbits ellipse:nth-of-type(1) { animation-delay: .25s; }
.orbits ellipse:nth-of-type(2) { animation-delay: .5s; }
.orbits ellipse:nth-of-type(3) { animation-delay: .75s; }
.orbits ellipse:nth-of-type(4) { animation-delay: 1s; }
.orbits circle { opacity: 0; animation: appear 1.6s ease 2s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.hero h1 {
  max-width: 10.2em;
  font-size: clamp(52px, 8.2vw, 104px);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 .wide { display: inline; }
.hero .lead { margin-top: clamp(22px, 3.4vh, 32px); max-width: 31em; }
.hero .actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: clamp(28px, 4.4vh, 40px);
}

/* Page-load sequence: orbits trace themselves, then the words arrive. */
.hero .emblem, .hero h1, .hero .lead, .hero .actions { animation: arrive 1.3s var(--ease-out) backwards; }
.hero .emblem  { animation-delay: .1s; }
.hero h1       { animation-delay: .3s; }
.hero .lead    { animation-delay: .5s; }
.hero .actions { animation-delay: .68s; }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } }


/* 9. Home: statement, work index, CelestaGPT, community ------------------- */

.statement { padding: clamp(96px, 15vw, 200px) 0 clamp(56px, 8vw, 104px); }
.scrub {
  margin: 0;
  max-width: 19.5em;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.12;
  letter-spacing: -.032em;
  font-weight: 600;
  text-wrap: pretty;
}
.scrub .w { opacity: .2; }

.work { padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 10vw, 136px); }
.work-head { max-width: 40rem; margin-bottom: clamp(36px, 5.5vw, 68px); }
.work-head .lead { margin-top: 20px; }

.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.index li {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(10px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(22px, 3.2vw, 38px) 0;
  border-bottom: 1px solid var(--rule);
}
.index h3 {
  font-size: clamp(32px, 5.4vw, 68px);
  line-height: 1;
  letter-spacing: -.04em;
}
.index p { margin: 0; max-width: 33ch; color: var(--cream-dim); text-wrap: pretty; }

.gpt { padding: clamp(16px, 3vw, 40px) 0 clamp(72px, 10vw, 136px); }
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(28px, 5.4vw, 72px);
  border-radius: clamp(30px, 4.4vw, 48px);
}
.panel-copy { display: flex; flex-direction: column; align-items: flex-start; }
.panel-copy .lead { margin-top: 22px; }
.panel-copy .btn { margin-top: 32px; }
.constellation {
  width: min(100%, 440px); height: auto;
  margin-top: auto; padding-top: 48px;
  overflow: visible;
}
.constellation line { stroke: rgba(230, 224, 209, .26); stroke-width: 1; }
.constellation .halo { fill: rgba(185, 203, 239, .1); }
.constellation .dot { fill: var(--cream); }
.constellation .dust { fill: var(--cream-faint); }

.uses { margin: 0; padding: 0; list-style: none; align-self: center; }
.uses-title { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--cream-faint); }
.uses li {
  display: flex; align-items: center; gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--rule);
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; letter-spacing: -.012em;
}
.uses li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border: 1.5px solid var(--cream-faint);
  border-radius: 50%;
}
.uses-wrap { align-self: center; }
.uses-wrap .uses { border-bottom: 1px solid var(--rule); }

.community { padding: clamp(16px, 3vw, 40px) 0 clamp(96px, 12vw, 168px); }
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
}
.community-grid .lead { margin-top: 22px; }
.community-grid .btn { margin-top: 32px; }

.rows { margin: 0; padding: 8px; list-style: none; border-radius: 34px; }
.rows li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--rule); }
.rows a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 21px 24px;
  border-radius: 26px;
  text-decoration: none;
}
.rows .r-name { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.rows .r-meta { margin-left: auto; font-size: 15px; color: var(--cream-dim); text-align: right; }
.rows svg { flex: none; width: 8px; height: 14px; color: var(--cream-faint); }


/* 9b. Inner pages (About, Events, Contact) -------------------------------- */

.page-head {
  position: relative;
  padding: clamp(148px, 22vh, 224px) 0 clamp(48px, 7vw, 96px);
  overflow-x: clip;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 {
  max-width: 11.5em;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 1;
  letter-spacing: -.043em;
}
.page-head .lead { margin-top: clamp(22px, 3vw, 32px); max-width: 30em; }
.page-head .orbits { left: 88%; top: 42%; }
.page-head h1, .page-head .lead { animation: arrive 1.2s var(--ease-out) backwards; }
.page-head .lead { animation-delay: .15s; }
.page-head + .statement { padding-top: clamp(24px, 5vw, 72px); }

/* Heading on the left, content on the right. Used for story rows and the team. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(20px, 5vw, 88px);
  padding: clamp(36px, 5vw, 68px) 0;
  border-top: 1px solid var(--rule);
}
.split h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.036em; }

.story { padding: clamp(16px, 3vw, 40px) 0 clamp(40px, 6vw, 88px); }
.story .split:last-child { border-bottom: 1px solid var(--rule); }

.prose p {
  margin: 0; max-width: 33em;
  font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.6;
  color: var(--cream-dim);
  text-wrap: pretty;
}
.prose p:first-child { color: var(--cream); }
.prose p + p { margin-top: 1.15em; }
.prose .btn { margin-top: 30px; }

/* People: grouped glass lists, like a settings screen. */
.team { padding: clamp(16px, 3vw, 40px) 0 clamp(88px, 11vw, 152px); }
.groups { display: grid; gap: 30px; align-content: start; }
.group-title { margin: 0 0 10px 8px; font-size: 15px; font-weight: 500; color: var(--cream-faint); }
.people { margin: 0; padding: 6px 8px; list-style: none; border-radius: 30px; }
.people li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 19px 20px;
}
.people li + li { border-top: 1px solid var(--rule); }
.people .name { font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.018em; }
.people .role { font-size: 16px; color: var(--cream-dim); text-align: right; }


/* 9c. Cards, pop-ups, blog, members and the 404 page ---------------------- */

/* A page section made of a heading and a grid of cards. */
.listing { padding: clamp(8px, 2vw, 24px) 0 clamp(48px, 7vw, 96px); }
.listing-head { margin-bottom: clamp(24px, 4vw, 44px); }
.listing-head h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.036em; }
.listing-head .lead { margin-top: 16px; }
.listing--last { padding-bottom: clamp(72px, 10vw, 136px); }

.card-grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  padding: 14px 14px 28px;
  border-radius: 32px;
}
.card-text { padding: 0 14px; }
.card-title {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.15; letter-spacing: -.026em; font-weight: 600;
  text-wrap: balance;
}
.card-kind { margin: 8px 0 0; font-size: 14.5px; color: var(--cream-faint); }
.card-blurb { margin: 12px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--cream-dim); text-wrap: pretty; }

/* The button or link inside a card stretches over the whole card, so the whole card is clickable. */
.card-open, .card-link {
  margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; letter-spacing: inherit; text-align: left; text-decoration: none;
  cursor: pointer;
}
.card-open::after, .card-link::after { content: ""; position: absolute; inset: 0; border-radius: 32px; }
.card-open:focus-visible, .card-link:focus-visible { outline: none; }
.card-open:focus-visible::after, .card-link:focus-visible::after { outline: 2px solid var(--cream); outline-offset: 3px; }

/* Picture space. Put an <img> inside to fill it, or leave it empty. */
.media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media--graphic { display: grid; place-items: center; padding: clamp(18px, 3vw, 32px); }
.media--graphic > svg { display: block; width: 100%; height: auto; max-height: 100%; }
.media--graphic > .constellation { display: block; margin: 0; padding: 0; }

.card--compact { gap: 16px; padding: 10px 10px 22px; border-radius: 26px; }
.card--compact .media { aspect-ratio: 4 / 3; border-radius: 18px; }
.card--compact .card-text { padding: 0 10px; }
.card--compact .card-title { font-size: clamp(17px, 1.6vw, 20px); }
.card--compact .card-kind { margin-top: 6px; font-size: 13.5px; }

/* Wide card (spans all columns, e.g. Outreach) */
.card--wide { grid-column: 1 / -1; }
@media (min-width: 641px) {
  .card--wide .media { height: 210px; aspect-ratio: unset; }
}

/* Social link cards (Contact) */
.card--social {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 26px;
  text-decoration: none;
  min-height: 120px;
}
.card--social .card-title {
  margin: 0;
  font-size: clamp(19px, 2vw, 22px);
  color: var(--cream);
}
.card--social .card-kind {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--cream-dim);
}
.card--social .card-cta {
  margin: 0;
  padding: 0;
}

/* AI Badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(185, 203, 239, .08);
  border: 1px solid rgba(185, 203, 239, .24);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
}
.ai-sparkle-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Blog */
.card-cta {
  display: inline-flex; align-items: center; gap: 9px;
  margin: auto 14px 0; padding-top: 2px;
  font-size: 15px; font-weight: 500; color: var(--cream-dim);
}
.card-cta svg { width: 7px; height: 12px; }
.blog-more { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 56px); }

/* Pop-up. Built by assets/js/site.js from any element marked data-modal. */
html.modal-open { overflow: hidden; }

.modal {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: clamp(14px, 3vw, 40px);
  border: 0; background: transparent; color: var(--cream);
  overflow: hidden;
}
.modal[open] { display: grid; place-items: center; }
.modal::backdrop {
  background: rgba(2, 4, 10, .62);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.modal[open]::backdrop { animation: modal-fade .35s ease; }
.modal.is-closing::backdrop { animation: modal-fade-out .23s ease forwards; }

.modal-panel {
  width: min(680px, 100%);
  overflow: hidden;
  border-radius: 38px;
  background-color: rgba(9, 15, 28, .82);
}
.modal[data-variant="member"] .modal-panel { width: min(440px, 100%); }
.modal[open] .modal-panel { animation: modal-in .5s var(--ease-out); }
.modal.is-closing .modal-panel { animation: modal-out .23s ease forwards; }
@keyframes modal-in { from { opacity: 0; transform: scale(.82); } }
@keyframes modal-out { to { opacity: 0; transform: scale(.94); } }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-fade-out { to { opacity: 0; } }

.modal-scroll {
  max-height: calc(100vh - 2 * clamp(14px, 3vw, 40px));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 14px 34px;
}
.modal-close {
  position: absolute; top: 24px; right: 24px; z-index: 3;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  color: var(--cream);
  background: rgba(8, 12, 22, .58);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.modal-close:hover { background: rgba(8, 12, 22, .8); }
.modal-close svg { width: 14px; height: 14px; }

.modal-media { margin-bottom: 24px; }
.modal-media .media { aspect-ratio: 2.3 / 1; }
.modal-text { padding: 0 14px; }
.modal-kind { margin: 0 0 8px; font-size: 14.5px; color: var(--cream-faint); }
.modal-title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.034em; }
.modal-body { margin-top: 18px; }
.modal-body p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--cream-dim); text-wrap: pretty; }
.modal-body p:first-child { color: var(--cream); }
.modal-body p + p { margin-top: 1em; }
.modal-body .facts { margin-top: 22px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.modal[data-variant="member"] .modal-media .avatar { width: 100%; border-radius: 28px; }
.modal[data-variant="member"] .modal-text { display: flex; flex-direction: column; }
.modal[data-variant="member"] .modal-title { order: 1; }
.modal[data-variant="member"] .modal-kind { order: 2; margin: 8px 0 0; font-size: 16px; color: var(--cream-dim); }
.modal[data-variant="member"] .modal-body { order: 3; margin-top: 16px; }
.modal[data-variant="member"] .modal-title { font-size: clamp(26px, 3vw, 34px); }

/* Members */
.tier-block + .tier-block { margin-top: clamp(40px, 6vw, 72px); }
.tier {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em;
}
.tier .medal { width: 18px; height: 18px; }

.member {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  min-height: 120px;
  padding: 14px 18px 14px 14px;
  border-radius: 28px;
  color: inherit; text-decoration: none;
}
.member .card-open::after { border-radius: 28px; }
.avatar {
  position: relative; flex: none; overflow: hidden;
  width: 92px; aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.avatar > img { width: 100%; height: 100%; object-fit: cover; }
.avatar > svg { display: block; width: 100%; height: 100%; }
.m-text { min-width: 0; }
.m-name { margin: 0; font-size: 19px; line-height: 1.2; letter-spacing: -.018em; font-weight: 600; text-wrap: balance; }
.m-title { margin: 4px 0 0; font-size: 15px; color: var(--cream-dim); }
.member .badge { margin-top: 10px; }
.member--wide { grid-column: 1 / -1; }
.member--wide .chev { flex: none; width: 8px; height: 14px; margin: 0 8px 0 auto; color: var(--cream-faint); }

.badge {
  display: inline-flex; align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
  color: var(--badge-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, var(--b1), var(--b2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -1px 0 rgba(0, 0, 0, .16),
    0 2px 6px rgba(0, 0, 0, .25);
}
.medal {
  flex: none; display: inline-block;
  width: 13px; height: 13px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 44%),
    linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 2px 6px rgba(0, 0, 0, .25);
}
.badge--gold, .tier--gold { --c1: #f2d98f; --c2: #b8892b; }
.badge--silver, .tier--silver { --c1: #f0f3f8; --c2: #8d97a7; }
.badge--bronze, .tier--bronze { --c1: #e6aa7e; --c2: #8a5127; }
.badge--gold   { --b1: #f6e4a4; --b2: #c99a38; --badge-ink: #2a1c03; }
.badge--silver { --b1: #f4f6fa; --b2: #a9b2c1; --badge-ink: #1a212e; }
.badge--bronze { --b1: #f0c29d; --b2: #b87846; --badge-ink: #2a1406; }

/* Full-width panels: leaderboard and the call to apply */
.soon {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: clamp(28px, 4vw, 40px);
}
.soon h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.04; letter-spacing: -.036em; }
.soon p { margin: 10px 0 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--cream-dim); }
.soon svg { flex: none; width: clamp(72px, 9vw, 112px); height: auto; color: var(--cream-faint); }

/* Contributor & TESS Leaderboard */
.leaderboard-panel {
  padding: clamp(24px, 4vw, 44px);
  border-radius: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.leaderboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.leaderboard-head h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0;
}
.leaderboard-tiers-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tier-legend-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--cream-dim);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.leaderboard-list {
  display: grid;
  gap: 10px;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: all .2s ease;
}
.lb-row:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}
.lb-rank {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--cream-dim);
  background: rgba(255, 255, 255, .06);
}
.lb-rank--1 {
  background: linear-gradient(135deg, #f6e4a4, #c99a38);
  color: #2a1c03;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.lb-rank--2 {
  background: linear-gradient(135deg, #f4f6fa, #a9b2c1);
  color: #1a212e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.lb-rank--3 {
  background: linear-gradient(135deg, #f0c29d, #b87846);
  color: #2a1406;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.lb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  background: rgba(0, 0, 0, .2);
}
.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lb-info {
  flex: 1;
  min-width: 0;
}
.lb-name {
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-sub {
  font-size: 13px;
  color: var(--cream-dim);
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lb-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: right;
  flex: none;
}
.lb-stat-box {
  display: flex;
  flex-direction: column;
}
.lb-stat-val {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.lb-stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--cream-faint);
}
/* Sky Tonight Section */
.sky-tonight {
  padding: clamp(48px, 6vw, 84px) 0;
  border-top: 1px solid var(--rule);
}
.sky-tonight-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.sky-tonight-head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 0;
  letter-spacing: -.03em;
}
.sky-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--cream-dim);
}
.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  opacity: .95;
}
.sky-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sky-card {
  padding: 26px 24px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
}
.sky-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.sky-card-head h3 {
  font-size: 19px;
  margin: 0;
  letter-spacing: -.02em;
}
.sky-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--cream-faint);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Moon Display */
.moon-display {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.moon-svg-wrap {
  flex: none;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
}
.moon-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.moon-phase-title {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #fff;
  letter-spacing: -.02em;
}
.sky-stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
}
.sky-stat-label {
  color: var(--cream-faint);
}
.sky-stat-value {
  color: #00d2ff;
  font-size: 15px;
}
.sky-stat-sub {
  color: var(--cream-dim);
}

/* Planets List */
.planets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.planet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .05);
}
.planet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, .2);
}
.planet-info {
  flex: 1;
  min-width: 0;
}
.planet-info strong {
  font-size: 14.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.planet-mag {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--cream-faint);
}
.planet-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--cream-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.planet-time {
  font-size: 11.5px;
  color: #00d2ff;
  flex: none;
  font-weight: 500;
}

/* Event Countdown */
.event-cd-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.event-cd-title {
  font-size: 17.5px;
  margin: 0;
  color: #fff;
  letter-spacing: -.02em;
}
.event-cd-sub {
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.4;
  margin: 0;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.cd-box {
  padding: 10px 4px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cd-val {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.cd-lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--cream-faint);
  letter-spacing: .06em;
}
.stargaze-tip {
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: var(--cream-dim);
  line-height: 1.35;
}

@media (max-width: 980px) {
  .sky-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .lb-stats {
    gap: 12px;
  }
  .lb-stat-lbl {
    font-size: 9.5px;
  }
}

/* ==========================================================================
   CONSTELLATION MODE & FLOATING SITE ASSISTANT (Phase 5)
   ========================================================================== */

/* Constellation Starfield Toggle Button (Top Right Corner, Icon-only with hover tooltip) */
.constellation-toggle {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  z-index: 995;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(14, 23, 38, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--cream-dim);
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
}
.constellation-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(22, 34, 56, .9);
  transform: translateY(-1px);
}
.constellation-toggle.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}
.constellation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.constellation-label {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  white-space: nowrap;
  font: 500 12px var(--font);
  color: var(--cream);
  background: rgba(10, 16, 28, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 5px 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.constellation-toggle:hover .constellation-label,
.constellation-toggle:focus-visible .constellation-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

@media (max-width: 880px) {
  .constellation-toggle {
    top: max(16px, env(safe-area-inset-top));
    right: 70px;
    width: 38px;
    height: 38px;
  }
}

/* Floating Site Assistant (Bottom Right Corner) */
.site-assistant-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
}

.assistant-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(14, 23, 38, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--cream);
  font: 500 13px var(--font);
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.assistant-trigger:hover {
  background: rgba(22, 34, 56, .92);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  transform: translateY(-1px);
}
.assistant-sparkle {
  color: #00d2ff;
  flex: none;
}
.assistant-trigger-label {
  font-weight: 500;
  letter-spacing: -.01em;
}

/* Assistant Interactive Options Panel */
.assistant-panel {
  position: fixed;
  bottom: 76px;
  right: 24px;
  width: min(390px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 100px));
  border-radius: 24px;
  padding: 20px 22px;
  background: rgba(10, 16, 28, .92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 991;
  animation: assistantPop .2s var(--ease-out);
  overflow-y: auto;
}
.assistant-panel[hidden] {
  display: none !important;
}

@keyframes assistantPop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.assistant-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.assistant-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
}
.assistant-close-btn {
  background: transparent;
  border: none;
  color: var(--cream-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .15s ease;
}
.assistant-close-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.assistant-prompt {
  font-size: 12.5px;
  color: var(--cream-faint);
  margin: 0;
}
.assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.assistant-chip {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--cream-dim);
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 12px var(--font);
  cursor: pointer;
  transition: all .15s ease;
}
.assistant-chip:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.assistant-chip.is-active {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.assistant-answer {
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.assistant-answer h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.assistant-answer p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--cream-dim);
}
.assistant-answer .btn {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 12px;
  padding: 6px 14px;
}

@media (max-width: 600px) {
  .site-assistant-root {
    bottom: 16px;
    right: 16px;
  }
  .assistant-panel {
    bottom: 68px;
    right: 16px;
    width: calc(100vw - 32px);
  }
}

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: clamp(30px, 4.4vw, 48px);
}
.cta h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.04; letter-spacing: -.036em; }
.cta .lead { margin-top: 14px; }

/* 404 */
.notfound {
  display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: 120px 0 80px;
}
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }


/* 10. Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(48px, 7vw, 88px) 0 36px;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 13, .5));
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr .6fr; gap: 40px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin: 20px 0 0; max-width: 30ch; color: var(--cream-dim); text-wrap: balance; }
.site-footer h2 { margin: 0 0 16px; font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--cream-faint); }
.site-footer ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-pages ul { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.site-footer nav a { text-decoration: none; color: var(--cream-dim); transition: color .25s var(--ease); }
.site-footer nav a:hover { color: var(--cream); }
.footer-base {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--cream-faint);
}
.footer-base p { margin: 0; }


/* 11. Cursor -------------------------------------------------------------- */
/* An iPad-style pointer: a small dot that wraps itself around buttons and links.
   Only active with a mouse or trackpad. Turn off in site.js: effects.cursor */

html.cursor-on, html.cursor-on * { cursor: none !important; }
html.cursor-on input, html.cursor-on textarea, html.cursor-on select { cursor: text !important; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 100000;
  width: 10px; height: 10px; border-radius: 5px;
  background: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  will-change: transform, width, height;
  transition: opacity .25s ease, background-color .3s ease, box-shadow .3s ease;
}
.cursor.on { opacity: 1; }
.cursor.hide { opacity: 0; }
.cursor.morph {
  mix-blend-mode: normal;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 10px 26px -10px rgba(0, 0, 0, .55);
}
.cursor.ring { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }
.cursor.down { opacity: .8; }


/* 12. Responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
  .hero h1 .wide { display: none; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .panel, .community-grid { grid-template-columns: 1fr; }
  .constellation { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .nav { width: 100%; padding-left: 20px; justify-content: space-between; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-brand { margin-right: 0; }
}

@media (max-width: 760px) {
  .card-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .emblem { width: 96px; }
  .page-head .orbits { left: 104%; top: 20%; }
  .people li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 17px 16px; }
  .people .role { text-align: left; }
  .index li { grid-template-columns: 1fr; gap: 12px; }
  .rows a { padding: 19px 18px; }
  .rows .r-meta { display: none; }
}

@media (max-width: 640px) {
  .card-grid--3 { grid-template-columns: 1fr; }
  .soon svg { display: none; }
}

@media (max-width: 440px) {
  .card-grid--4 { grid-template-columns: 1fr; }
}

@media (min-width: 881px) {
  .nav-sheet { display: none; }
}


/* 13. Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Smooth cross-fade between pages in browsers that support it. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
