/* About. Same design language as the homepage (assets/css/home.css):
   shared patterns are copied here per page (no shared token file). */

/* ============ Design tokens ============ */
:root {
  --bg: #030608;
  --cyan: #0ff;
  --cyan-soft: #7df9ff;
  --magenta: #f0f;
  --ink: #eaffff;
  --muted: #9fb8c2;
  --body-font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --display-font: 'Orbitron', sans-serif;
  --mono-font: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ Reset & base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: #fff;
  font-family: var(--body-font);
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(0, 255, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan-soft); outline-offset: 3px; }

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

/* ============ Space backdrop + WebGL world + vignette ============ */
/* CSS nebula + starfield: shows before the WebGL world is ready and is the no-WebGL fallback. */
.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 10% 6%, rgba(0, 255, 255, 0.14), transparent 60%),
    radial-gradient(55vmax 45vmax at 94% 96%, rgba(255, 0, 255, 0.11), transparent 60%),
    radial-gradient(40vmax 30vmax at 62% 38%, rgba(125, 249, 255, 0.05), transparent 70%),
    var(--bg);
}
.space-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 23% 37%, rgba(200, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 71% 12%, rgba(200, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 48% 81%, rgba(125, 249, 255, 0.85), transparent),
    radial-gradient(1px 1px at 88% 64%, rgba(255, 140, 255, 0.7), transparent);
  background-size: 180px 180px, 260px 260px, 330px 330px, 410px 410px;
  opacity: 0.6;
  transition: opacity 1.2s ease;
}
.world-ready .space-backdrop::after { opacity: 0; }

#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease, filter 1.2s ease;
}
#world.is-ready { opacity: 1; }
.is-desk-hover body { cursor: pointer; }

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 20%, transparent 0%, rgba(0, 0, 0, 0.35) 65%, rgba(0, 0, 0, 0.65) 100%);
}

/* ============ Station (hero) ============ */
/* Fills the viewport: big two-line title on the left, the WebGL workstation (about/desk.js)
   glued to .station__stage on the right, both centred between the navbar and the HUD row. */
.station {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6.5rem clamp(1.25rem, 4vw, 3rem) 5.5rem;
}
.station__inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}
.station__copy > * { animation: stationIn 0.9s var(--ease) both; }
.station__copy > :nth-child(2) { animation-delay: 0.08s; }
.station__copy > :nth-child(3) { animation-delay: 0.16s; }
.station__copy > :nth-child(4) { animation-delay: 0.22s; }
.station__copy > :nth-child(5) { animation-delay: 0.3s; }
@keyframes stationIn { from { opacity: 0; transform: translateY(24px); } }

.station__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 249, 255, 0.35);
  background: rgba(7, 16, 26, 0.55);
  backdrop-filter: blur(6px);
  color: #9fe8ee;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.station__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #39ffb0;
  box-shadow: 0 0 8px #39ffb0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.75); } }

/* Wordmark: decrypt reveal (home/decrypt.js, replays on hover) + the homepage's shimmering gradient */
.station__title {
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(3rem, 6.6vw, 6.4rem); /* "HI, I'M" fits the copy column at every width */
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* inline-block: the box (and so the clipped gradient) always spans the full line */
.station__title-line {
  display: inline-block;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(90deg, var(--ink) 0%, var(--cyan-soft) 30%, var(--magenta) 60%, var(--cyan-soft) 85%, var(--ink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(0, 255, 255, 0.22));
  animation: titleShine 8s linear infinite;
}
/* The name: signature magenta → cyan, a touch larger */
.station__title-line--name {
  font-size: 1.18em;
  background: linear-gradient(90deg, var(--magenta), var(--cyan-soft) 55%, var(--ink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 26px rgba(255, 0, 255, 0.3));
  animation: none;
}
@keyframes titleShine { to { background-position: -200% center; } }
.station__title .char { display: inline-block; white-space: pre; text-align: center; opacity: 0.55; transition: opacity 0.15s ease; }
.station__title .char.is-locked { opacity: 1; }
.station__subtitle {
  max-width: 34ch;
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  line-height: 1.6;
  color: var(--muted);
}
.station__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1.1rem 0 1.6rem;
  font: 0.72rem var(--mono-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.station__facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.station__facts li:first-child::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #39ffb0;
  box-shadow: 0 0 8px #39ffb0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
.station__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The stage reserves the desk's box (no layout shift when WebGL arrives). */
.station__stage { position: relative; align-self: stretch; min-height: clamp(360px, 68vh, 780px); }

/* Scroll cue → #signal */
.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan-soft);
  text-decoration: none;
  font: 0.68rem var(--mono-font);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue__line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--cyan-soft), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  animation: scrollCueTravel 1.8s ease-in-out infinite;
}
@keyframes scrollCueTravel { to { top: 100%; } }

.station__hud { position: absolute; inset: 0; pointer-events: none; }

/* ---- Tablet / phone: desk above the copy ---- */
@media (max-width: 900px) {
  .station { align-items: flex-start; padding-top: 5.5rem; padding-bottom: 3rem; }
  .station__title { font-size: clamp(2.8rem, 13vw, 5rem); }
  .station__inner { grid-template-columns: 1fr; gap: 0.5rem; }
  .station__stage { order: -1; min-height: 0; height: clamp(220px, 38vh, 360px); }
  .scroll-cue { display: none; }
}
@media (max-width: 760px) {
  .station__hud { display: none; }
  .station__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============ Signal: who's at the controls ============ */
/* Words light up as the paragraph scrolls through (about/sections.js); the desk drifts along on the right. */
.signal {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 90vh;
}
.signal__text {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.1vw, 2.55rem);
  line-height: 1.28;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: pretty;
}
.signal__word { transition: opacity 0.25s ease, color 0.25s ease, text-shadow 0.25s ease; }
/* Unlit words stay at 0.4: a clear lighting effect, but still readable. */
.signal__text.is-split .signal__word { opacity: 0.4; }
.signal__text.is-split .signal__word.is-lit { opacity: 1; }
.signal__word--accent.is-lit {
  color: var(--cyan-soft);
  text-shadow: 0 0 22px rgba(0, 255, 255, 0.45);
}
.signal__sign {
  margin-top: 1.6rem;
  font: 0.75rem var(--mono-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.signal__stage { position: relative; height: min(70vh, 560px); }

@media (max-width: 900px) {
  .signal { grid-template-columns: 1fr; min-height: 0; }
  .signal__stage { display: none; }
}

/* ============ Loadout: interests, each one focuses the desk ============ */
.loadout__head { max-width: 640px; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.loadout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
/* Sticky desk: stays in view while the list scrolls past it */
.loadout__stage {
  position: sticky;
  top: 6.5rem;
  height: min(72vh, 600px);
  background: radial-gradient(60% 50% at 50% 55%, rgba(0, 255, 255, 0.08), transparent 70%);
}
.loadout__tag {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 0.7rem var(--mono-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.loadout__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); animation: pulseDot 1.8s ease-in-out infinite; }

.kit { list-style: none; border-bottom: 1px solid rgba(125, 249, 255, 0.14); }
.kit__item { border-top: 1px solid rgba(125, 249, 255, 0.14); }
/* Each row is tall enough that scrolling walks the desk through all four */
.kit__row {
  position: relative;
  width: 100%;
  min-height: clamp(9rem, 30vh, 15rem);
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 5.5rem;
  grid-template-areas: "num title thumb" "num blurb thumb";
  align-content: center;
  align-items: center;
  gap: 0.35rem 1.25rem;
  padding: 1.5rem 0.5rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  opacity: 0.45;
  transition: opacity 0.4s var(--ease);
}
.kit__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.06) 60%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.kit__row:focus-visible { outline: 2px solid var(--cyan-soft); outline-offset: -2px; }
.kit__row.is-active, .kit__row:hover, .kit__row:focus-visible { opacity: 1; }
.kit__row.is-active::before { transform: scaleX(1); }
.kit__num { grid-area: num; align-self: start; padding-top: 0.6rem; font: 0.85rem var(--mono-font); letter-spacing: 0.12em; color: var(--cyan-soft); }
.kit__title {
  grid-area: title;
  align-self: end;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  transition: transform 0.55s var(--ease), color 0.3s ease, text-shadow 0.3s ease;
}
.kit__row.is-active .kit__title, .kit__row:focus-visible .kit__title {
  transform: translateX(18px);
  color: var(--cyan-soft);
  text-shadow: 0 0 24px rgba(0, 255, 255, 0.35);
}
.kit__blurb { grid-area: blurb; align-self: start; max-width: 36ch; color: var(--muted); line-height: 1.55; transition: transform 0.55s var(--ease); }
.kit__row.is-active .kit__blurb { transform: translateX(18px); }
.kit__thumb {
  grid-area: thumb;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(125, 249, 255, 0.25);
  filter: grayscale(0.85) brightness(0.7);
  transform: scale(0.92);
  transition: filter 0.4s ease, transform 0.55s var(--ease), box-shadow 0.4s ease;
}
.kit__row.is-active .kit__thumb { filter: none; transform: none; box-shadow: 0 0 26px rgba(0, 255, 255, 0.25); }

/* No sticky desk on small screens or touch: rows stack with their artwork */
@media (max-width: 900px) {
  .loadout__grid { grid-template-columns: 1fr; }
  .loadout__stage, .loadout__hint { display: none; }
  .kit__row {
    min-height: 0;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-areas: "thumb title" "thumb blurb";
    gap: 0.25rem 1rem;
    padding: 1rem 0.25rem;
    opacity: 1;
    cursor: default;
  }
  .kit__num { display: none; }
  .kit__thumb { filter: none; transform: none; }
  .kit__title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .kit__row.is-active .kit__title, .kit__row.is-active .kit__blurb { transform: none; }
  .kit__row::before { display: none; }
}

/* ============ Flight log (home/data.js updates) ============ */
.log__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.log__stats { display: flex; flex-wrap: wrap; gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem); }
.log__stat { display: flex; flex-direction: column-reverse; gap: 0.2rem; }
.log__stat dd {
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}
.log__stat dt {
  font-family: var(--mono-font);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

/* Timeline: a glowing rail with one node per drop */
.log__list { position: relative; list-style: none; display: grid; gap: 0.4rem; padding-left: 2.2rem; }
.log__list::before {
  content: "";
  position: absolute;
  left: calc(0.6rem - 1px);
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta) 60%, rgba(125, 249, 255, 0.12));
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}
.log__entry {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.3s ease, border-color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s;
}
.log__entry.is-in { opacity: 1; transform: none; }
.log__entry:hover { background: rgba(0, 255, 255, 0.04); border-color: rgba(0, 255, 255, 0.14); }
.log__entry::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: 1.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--cyan-soft);
  background: var(--bg);
}
.log__entry:first-child::before { background: #39ffb0; border-color: #39ffb0; box-shadow: 0 0 12px #39ffb0; animation: pulseDot 1.8s ease-in-out infinite; }
.log__date { font: 0.78rem var(--mono-font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-soft); font-variant-numeric: tabular-nums; }
.log__date b { display: block; margin-top: 0.2rem; font-weight: 400; color: rgba(159, 184, 194, 0.7); letter-spacing: 0.08em; }
.log__text { font-size: 1.05rem; line-height: 1.55; color: var(--ink); }

@media (max-width: 640px) {
  .log__list { padding-left: 1.8rem; }
  .log__entry { grid-template-columns: 1fr; padding: 0.9rem 0.6rem; }
  .log__entry::before { left: -1.55rem; top: 1.1rem; }
}

/* ============ House rules + next stop ============ */
.rules { text-align: center; padding-bottom: clamp(4rem, 9vw, 7rem); }
.rules__list {
  list-style: none;
  display: grid;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  margin: 0.5rem auto clamp(3rem, 7vw, 5rem);
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}
.rules__list span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--magenta), var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(255, 0, 255, 0.3));
}
.rules__next { display: grid; justify-items: center; gap: 1.1rem; }
.rules__next p { font: 0.75rem var(--mono-font); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan-soft); }

/* Reduced motion: everything readable at once */
@media (prefers-reduced-motion: reduce) {
  .station__title-line { animation: none; }
  [data-reveal], .log__entry { opacity: 1; transform: none; }
  .signal__text.is-split .signal__word { opacity: 1; }
}

/* ---- HUD corners (decorative) ---- */
.hud {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono-font);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(159, 232, 238, 0.7);
}
.hud b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hud i { font-style: normal; color: var(--magenta); }
.hud--tr { top: 6.5rem; }
.hud--bl, .hud--br { bottom: 2rem; }
.hud--bl { left: clamp(1.25rem, 4vw, 3rem); }
.hud--tr, .hud--br { right: clamp(1.25rem, 4vw, 3rem); }
.hud__bar {
  width: 70px; height: 4px;
  border-radius: 2px;
  background: rgba(125, 249, 255, 0.15);
  overflow: hidden;
}
.hud__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform-origin: left;
  transform: scaleX(0.97);
  transition: transform 0.5s var(--ease);
}

/* ============ Buttons + kbd ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan));
  color: #04141a;
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.35);
}
.btn--primary:hover, .btn--primary:focus-visible { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0, 255, 255, 0.6); }
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span, .btn:focus-visible span { transform: translateX(4px); }
.btn--ghost {
  border-color: rgba(0, 255, 255, 0.5);
  color: var(--cyan);
  background: rgba(3, 6, 8, 0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(0, 255, 255, 0.12); border-color: var(--cyan); }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(125, 249, 255, 0.35);
  background: rgba(125, 249, 255, 0.08);
  font: 600 0.72rem var(--mono-font);
  color: var(--cyan-soft);
}

/* ============ Shared section rhythm + reveal ============ */
.section { width: min(1180px, 92vw); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 249, 255, 0.35);
  background: rgba(7, 16, 26, 0.55);
  color: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 0 24px rgba(0, 255, 255, 0.25);
  margin-bottom: 0.75rem;
}
.section-subtitle { max-width: 48ch; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============ Smooth scroll (Lenis, shared assets/js/contact/scroll.js) ============ */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ============ Footer (assets/js/home/footer.js) ============ */
.site-foot {
  position: relative;
  border-top: 1px solid rgba(0, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(3, 6, 8, 0.2), rgba(3, 6, 8, 0.85) 40%);
  overflow: hidden;
}
.site-foot__inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.5rem 4rem;
}
.site-foot__logo {
  font-family: var(--display-font);
  font-weight: 900;
  font-size: 1.5rem;
  text-decoration: none;
  color: transparent;
  background: linear-gradient(90deg, var(--magenta), var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
}
.site-foot__brand p { margin: 0.75rem 0 1.25rem; max-width: 34ch; color: var(--muted); line-height: 1.6; }
.site-foot__warp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 255, 255, 0.5);
  background: rgba(0, 255, 255, 0.06);
  color: var(--cyan);
  font: 700 0.8rem var(--display-font);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.site-foot__warp:hover { background: rgba(0, 255, 255, 0.14); box-shadow: 0 0 24px rgba(0, 255, 255, 0.35); transform: translateY(-2px); }
.site-foot__warp span { transition: transform 0.3s ease; }
.site-foot__warp:hover span { transform: translateY(-3px); }

.site-foot__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-foot__title {
  margin-bottom: 0.9rem;
  font: 600 0.7rem var(--mono-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.site-foot__nav ul { list-style: none; display: grid; gap: 0.55rem; }
.site-foot__nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.site-foot__nav a:hover { opacity: 1; color: var(--cyan-soft); }
.site-foot__nav .site-foot__social { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.site-foot__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(125, 249, 255, 0.25);
  opacity: 1;
}
.site-foot__social a:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(0, 255, 255, 0.3); }
.site-foot__icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* Giant outlined wordmark across the bottom */
.site-foot__mark {
  margin-top: 0.5rem;
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(2rem, 10.2vw, 13rem); /* ~9.15em wide: always fits the viewport */
  line-height: 0.82;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(125, 249, 255, 0.28);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.1), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

.site-foot__bar {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 1.1rem 0 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.88rem;
}
.site-foot__bar a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.site-foot__bar a:hover { text-decoration: underline; }
.site-foot__heart { color: var(--cyan); }
.site-foot__kbd {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.site-foot__kbd:hover { color: var(--ink); }

@media (max-width: 860px) {
  .site-foot__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__bar { justify-content: center; text-align: center; }
  .site-foot__kbd { display: none; }
}

/* ============ Command palette + hyperdrive (assets/js/home/palette.js) ============ */
/* Sits above the navbar (1000). */
.palette {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: min(16vh, 140px) 16px 16px;
  visibility: hidden;
  pointer-events: none;
}
.palette.is-open { visibility: visible; pointer-events: auto; }
.palette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 10, 0.66);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.palette.is-open .palette__backdrop { opacity: 1; }
.palette__box {
  position: relative;
  width: min(620px, 100%);
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  background: linear-gradient(170deg, rgba(6, 16, 24, 0.97), rgba(4, 8, 14, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 255, 255, 0.16);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.3s var(--ease);
}
.palette.is-open .palette__box { opacity: 1; transform: none; }
.palette__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.16);
  color: var(--cyan-soft);
}
.palette__search svg { width: 20px; height: 20px; flex: none; }
.palette__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1.05rem var(--body-font);
}
.palette__search input::placeholder { color: rgba(159, 184, 194, 0.6); }
.palette__list {
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem;
}
.palette__group {
  padding: 0.75rem 0.75rem 0.35rem;
  font: 600 0.66rem var(--mono-font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(159, 184, 194, 0.7);
}
.palette__item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.palette__item[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.16), rgba(255, 0, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.35);
}
.palette__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(125, 249, 255, 0.08);
  color: var(--cyan);
  font-size: 0.9rem;
}
.palette__title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__hint { font: 0.75rem var(--mono-font); color: var(--muted); white-space: nowrap; }
.palette__empty { padding: 1.5rem; text-align: center; color: var(--muted); font-family: var(--mono-font); font-size: 0.85rem; }
.palette__foot {
  display: flex;
  gap: 1.25rem;
  padding: 0.65rem 1.1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.12);
  font: 0.72rem var(--mono-font);
  color: var(--muted);
}
.palette__foot span { display: inline-flex; align-items: center; gap: 0.3rem; }
.palette-open body { overflow: hidden; }

/* Hyperdrive: the world shifts hue, a status toast confirms it */
.is-hyperdrive #world { filter: hue-rotate(70deg) saturate(1.6) brightness(1.15); }
.jwh-toast {
  position: fixed;
  left: 50%;
  top: 5.75rem;
  z-index: 1500;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 255, 0.55);
  background: rgba(10, 4, 16, 0.85);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.35);
  font: 700 0.78rem var(--display-font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb3ff;
  opacity: 0;
  transform: translate(-50%, -16px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
  pointer-events: none;
}
.jwh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .palette { padding-top: 12vh; }
  .palette__hint { display: none; }
  .palette__foot { display: none; }
}
