/* ============================================================
   Aria Vega — astrophysicist / complex systems
   "Ion field" design system
   One warm star (amber) in a cool cosmos (violet).
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  /* palette */
  --void:        #0A0817;  /* indigo-black background        */
  --void-2:      #0F0C18;  /* canvas / deep panels           */
  --panel:       #15121F;  /* raised surfaces                */
  --panel-2:     #1B1726;  /* hover surfaces                 */
  --bone:        #ECE8DF;  /* primary text                   */
  --dust:        #8E8AA0;  /* muted text                     */
  --dust-2:      #6F6B82;  /* faint meta text                */
  --ion:         #8A7CF2;  /* the cosmos: links, data, accent*/
  --ion-soft:    #B6ACFF;  /* lighter violet                 */
  --ion-line:    rgba(138,124,242,0.18);  /* hairline borders */
  --ion-line-2:  rgba(138,124,242,0.30);
  --solar:       #F4A259;  /* THE HUMAN: name + CTAs only     */
  --solar-bright:#F8B06A;
  --solar-ink:   #2A1604;  /* text on amber                  */

  /* type */
  --display: 'Fraunces', Georgia, serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* rhythm */
  --nav-h: 70px;
  --shell: 1120px;
  --pad-x: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 20px;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;     /* gently settles on sections */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  background: var(--void);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
canvas { display: block; }

::selection { background: rgba(138,124,242,0.30); color: var(--bone); }

/* visually hidden, available to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* keyboard focus — visible, on-brand */
:focus-visible {
  outline: 2px solid var(--ion-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Layout shell ----------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* full-bleed container for the content sections */
.shell-wide {
  width: 100%;
  max-width: 2000px;          /* raise/remove for edge-to-edge on ultrawide */
  margin-inline: auto;
  padding-inline: clamp(24px, 4.5vw, 80px);
}

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10,8,23,0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 0.5px solid var(--ion-line);
}
.nav__inner {
  width: 100%;
  max-width: 2000px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4.5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* brand = the scientist's name → amber (the one warm star) */
.brand {
  font-family: var(--display);
  font-weight: 460;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--solar);
  white-space: nowrap;
  transition: opacity 0.25s;
}
.brand:hover { opacity: 0.82; }
.brand .brand__mark { font-style: italic; }

/* nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--dust);
  position: relative;
  padding-block: 6px;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--bone); }

/* divider before the page links */
.nav__sep {
  width: 1px;
  height: 16px;
  background: var(--ion-line-2);
}
.nav__link--page { color: var(--ion-soft); }
.nav__link--page:hover { color: var(--bone); }

/* hamburger (mobile) */
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  position: relative;
  width: 20px; height: 1.5px;
  background: var(--bone);
  transition: background 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 1.5px; background: var(--bone);
  transition: transform 0.28s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Section dot navigation (right edge) — position feedback
   ============================================================ */
.dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ion-line-2);
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.dot::after {                                  /* hover label */
  content: attr(data-label);
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--dust);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.dot:hover { border-color: var(--ion); }
.dot:hover::after { opacity: 1; }
.dot.is-active {
  border-color: var(--ion);
  background: var(--ion);
  box-shadow: 0 0 10px rgba(138,124,242,0.55);
}

/* ============================================================
   Stations (full-height scroll sections)
   ============================================================ */
.station {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  padding-block: calc(var(--nav-h) + 32px) 64px;
}

/* eyebrow / headline / lead — shared type scale */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ion);
  margin-bottom: 20px;
}
.headline {
  font-family: var(--display);
  font-weight: 420;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--bone);
  max-width: 16ch;
}
.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--dust);
  max-width: 54ch;
  margin-top: 22px;
}
.lead strong { color: var(--bone); font-weight: 500; }

/* ============================================================
   Buttons & links
   ============================================================ */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 11px;
  transition: transform 0.25s ease, background 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
}
/* primary CTA — amber (allowed: name + CTAs) */
.btn--solar { background: var(--solar); color: var(--solar-ink); }
.btn--solar:hover {
  background: var(--solar-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(244,162,89,0.28);
}
/* secondary — quiet ghost in violet/bone */
.btn--ghost {
  border: 1px solid var(--ion-line-2);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--ion); transform: translateY(-2px); }

/* inline arrow link */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--bone);
  border-bottom: 1px solid var(--ion-line-2);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.arrow:hover { color: var(--solar); border-color: rgba(244,162,89,0.5); }
.btn .ar, .arrow .ar { transition: transform 0.25s ease; }
.btn:hover .ar, .arrow:hover .ar { transform: translateX(3px); }

/* ============================================================
   HERO (station 1)
   ============================================================ */
.hero { overflow: hidden; }
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  /* fade the field out toward the bottom so copy sits clean */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero .shell, .hero .shell-wide { position: relative; z-index: 1; }

.hero__name {
  font-family: var(--display);
  font-weight: 440;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--solar);                 /* the name → amber */
  margin: 16px 0 0;
}
.hero__tagline {
  font-family: var(--display);
  font-weight: 380;
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--bone);
  max-width: 30ch;
  margin-top: 26px;
}
.hero__tagline .cool { color: var(--ion-soft); font-style: normal; }

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: var(--dust-2);
}
.scroll-cue .line {
  width: 1px; height: 38px;
  background: linear-gradient(var(--ion), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1);   opacity: 1;   transform-origin: top; }
}

/* ============================================================
   Module placeholders (where the canvas pieces will mount)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: 100%;
}

/* side-by-side text + interactive stage */
.stage {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: 100%;
}
.stage > * { min-width: 0; }
.stage--text-left { grid-template-columns: 1fr 2fr; }  /* text 1/3 · interactive 2/3 */
.stage--viz-left  { grid-template-columns: 2fr 1fr; }  /* interactive 2/3 · text 1/3 */

.module {
  position: relative;
  border: 0.5px solid var(--ion-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(138,124,242,0.04), rgba(138,124,242,0.04));
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.module__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--dust-2);
  padding: 6px 12px;
  border: 0.5px solid var(--ion-line);
  border-radius: 999px;
}
.module__tag b { color: var(--ion); font-weight: 500; }
/* faint corner ticks so the empty frame reads as intentional */
.module::before, .module::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--ion-line-2);
}
.module::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.module::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* ============================================================
   How I can help — capability chips (the 6 problems)
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  max-width: 52ch;
}
.chip {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--dust);
  padding: 8px 14px;
  border: 0.5px solid var(--ion-line);
  border-radius: 999px;
  background: var(--panel);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.chip:hover { color: var(--bone); border-color: var(--ion-line-2); transform: translateY(-1px); }
.chip .num { color: var(--ion); margin-right: 8px; }

/* ============================================================
   What I do — capability constellation module
   ============================================================ */
.con-host {
  position: relative;
  width: 100%;
  height: clamp(420px, 72vh, 660px);
  overflow: hidden;
}
.con-host canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.con-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: opacity 0.35s;
}
.con-dot {
  border-radius: 50%;
  background: var(--ion);
  transition: transform 0.3s, background 0.3s;
}
.con-label {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dust);
  white-space: nowrap;
  text-shadow: 0 1px 5px var(--void);
  transition: color 0.3s;
}
.con-node.is-active .con-dot { background: var(--ion-soft); transform: scale(1.45); }
.con-node.is-active .con-label { color: var(--bone); }
.con-node.is-dim { opacity: 0.26; }
.con-panel {
  position: absolute;
  left: 18px; bottom: 18px;
  width: 262px;
  background: rgba(21,18,31,0.82);
  border: 0.5px solid rgba(138,124,242,0.22);
  border-radius: 12px;
  padding: 14px 16px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}
.con-ptag   { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ion); margin: 0 0 5px; min-height: 12px; }
.con-ptitle { font-family: var(--display); font-weight: 440; font-size: 17px; color: var(--bone); margin: 0 0 5px; }
.con-pdesc  { font-family: var(--body); font-size: 12.5px; line-height: 1.5; color: var(--dust); margin: 0; }

/* ============================================================
   How I can help — wormhole module
   ============================================================ */
.wh-host {
  position: relative;
  width: 100%;
  height: clamp(420px, 72vh, 660px);
  overflow: hidden;
}
.wh-host canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.wh-plab {
  position: absolute;
  transform: translateY(-50%);
  background: rgba(13,11,22,0.7);
  border: 0.5px solid rgba(138,124,242,0.25);
  border-radius: 7px;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--bone);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s;
}
.wh-ans {
  position: absolute;
  transform: translateY(-50%);
  background: rgba(13,11,22,0.82);
  border: 0.5px solid var(--ion-line-2);
  border-radius: 14px;
  padding: 18px 20px;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.4s;
}
.wh-cta {
  background: var(--solar);
  color: var(--solar-ink);
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  margin-top: 12px;
}

/* ============================================================
   Contact (station 4)
   ============================================================ */
.contact__note {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--dust);
  max-width: 46ch;
  margin-top: 22px;
}
.contact__sig {
  font-family: var(--display);
  font-style: italic;
  font-weight: 420;
  font-size: 1.25rem;
  color: var(--bone);
  margin-top: 18px;
}
.contact__email {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--dust);
  margin-top: 26px;
  transition: color 0.25s;
}
.contact__email:hover { color: var(--bone); }
.contact__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--dust-2);
  margin-top: 14px;
}
.contact__links { display: flex; gap: 18px; margin-top: 18px; }
.contact__links a {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--dust);
  transition: color 0.25s;
}
.contact__links a:hover { color: var(--bone); }

/* contact portrait — right column, above the note (swap SVG for an <img>) */
.contact__photo {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 2px solid var(--solar);
  box-shadow: 0 0 16px rgba(244,162,89,0.26);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 22px;
}
.contact__photo svg, .contact__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Voyager probe scene — left column */
.vg-scene {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 70vh, 620px);
  overflow: hidden;
}
.vg-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vg-stars { z-index: 0; }
.vg-probe {
  position: absolute; inset: 0; z-index: 1;
  background: var(--bone);                 /* ← recolor the probe here */
  -webkit-mask: url(images/Marinerspaceprobe.svg) center / contain no-repeat;
          mask: url(images/Marinerspaceprobe.svg) center / contain no-repeat;
  will-change: transform;
}
.vg-pulse { z-index: 2; pointer-events: none; }
.vg-cap {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dust-2);
  z-index: 3;
  pointer-events: none;
}

/* ============================================================
   Footer  (not a snap target)
   ============================================================ */
.foot {
  scroll-snap-align: none;
  border-top: 0.5px solid var(--ion-line);
  padding-block: 64px 40px;
}
.foot__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 44px;
  border-bottom: 0.5px solid var(--ion-line);
}
.foot__invite {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--bone);
  max-width: 18ch;
}
.foot__meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--dust-2);
}
.foot__meta a { color: var(--dust); transition: color 0.25s; }
.foot__meta a:hover { color: var(--bone); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

/* ============================================================
   About page — intro, cards, timeline
   ============================================================ */
.about-intro { padding-block: calc(var(--nav-h) + 56px) 8px; }
.about-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.about-portrait {
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 2px solid var(--solar);
  box-shadow: 0 0 20px rgba(244,162,89,0.24);
  background: var(--panel);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  flex-shrink: 0;
}
.about-portrait svg, .about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-bio {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--dust);
  max-width: 60ch;
  margin-top: 20px;
}
.about-bio strong { color: var(--bone); font-weight: 500; }

/* black-hole backdrop behind intro + cards */
.about-top { position: relative; overflow: hidden; }
.about-top > .about-intro,
.about-top > .sect { position: relative; z-index: 1; }
.about-top::after {            /* fade the backdrop into the void at the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 160px; background: linear-gradient(transparent, var(--void));
  z-index: 0; pointer-events: none;
}
.bh {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background: url(images/stars.svg) center / cover no-repeat;
}
.bh__halo, .bh__hole, .bh__disk, .bh__hot, .bh__arch {
  position: absolute;
  top: -16%; right: -8%;
  width: min(760px, 64vw); aspect-ratio: 1;
  border-radius: 50%;
}
.bh__halo {
  background: radial-gradient(circle, rgba(138,124,242,0.16) 0%, rgba(138,124,242,0.05) 34%, transparent 60%);
  filter: blur(8px);
}
.bh__hole {                    /* solid void centre = the event horizon */
  background: radial-gradient(circle, var(--void) 0 30%, transparent 33%);
}
.bh__disk {                    /* glowing accretion ring */
  background: radial-gradient(circle,
    transparent 0 31%,
    rgba(138,124,242,0.50) 40%,
    rgba(138,124,242,0.13) 50%,
    transparent 64%);
  filter: blur(1.5px);
  opacity: 0.9;
}
.bh__hot {                     /* orbiting Doppler hotspot */
  background: conic-gradient(from 0deg,
    rgba(206,196,255,0) 0deg,
    rgba(206,196,255,0.55) 48deg,
    rgba(182,172,255,0.10) 128deg,
    rgba(206,196,255,0) 210deg,
    rgba(206,196,255,0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 31%, #000 40%, #000 50%, transparent 64%);
          mask: radial-gradient(circle, transparent 31%, #000 40%, #000 50%, transparent 64%);
  mix-blend-mode: screen;
  filter: blur(1px);
  animation: bh-spin 26s linear infinite;
}
.bh__arch {                    /* inspiral filaments in the disk */
  background: url(images/bh-arches.svg) center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0.65;
  animation: bh-spin 44s linear infinite;
}
@keyframes bh-spin { to { transform: rotate(360deg); } }

.sect { padding-block: clamp(40px, 6vh, 84px); }
.sect__head { margin-bottom: clamp(24px, 3vh, 40px); }
.sect__title {
  font-family: var(--display); font-weight: 420;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--bone); margin: 10px 0 0;
}

/* three cards */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 26px);
}
.card3 {
  background: var(--panel);
  border: 0.5px solid var(--ion-line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 1.8vw, 32px);
  transition: border-color 0.3s, transform 0.3s;
}
.card3:hover { border-color: var(--ion-line-2); transform: translateY(-2px); }
.card3__label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--ion); margin: 0 0 14px;
}
.card3__title {
  font-family: var(--display); font-weight: 440;
  font-size: 1.25rem; line-height: 1.2; color: var(--bone); margin: 0 0 12px;
}
.card3__text { font-size: 0.94rem; line-height: 1.6; color: var(--dust); margin: 0; }
.card3__list { list-style: none; margin: 0; padding: 0; }
.card3__list li {
  font-size: 0.94rem; line-height: 1.5; color: var(--dust);
  padding: 8px 0 8px 18px; position: relative;
  border-top: 0.5px solid var(--ion-line);
}
.card3__list li:first-child { border-top: 0; padding-top: 0; }
.card3__list li:first-child::before { top: 5px; }
.card3__list li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ion);
}

/* timeline — the one place glow is allowed */
.timeline { position: relative; --tl-gutter: 132px; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.timeline::before {
  content: ""; position: absolute;
  left: var(--tl-gutter); top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom,
    rgba(138,124,242,0) 0%, var(--ion) 7%, var(--ion) 93%, rgba(138,124,242,0) 100%);
  box-shadow: 0 0 16px 1px rgba(138,124,242,0.45);
  border-radius: 2px;
}
.tl-entry {
  position: relative;
  padding-left: calc(var(--tl-gutter) + 44px);
  padding-bottom: clamp(34px, 5vh, 56px);
}
.tl-entry:last-child { padding-bottom: 0; }
.tl-date {
  position: absolute; left: 0; top: 1px;
  width: calc(var(--tl-gutter) - 22px); text-align: right;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--dust);
}
.tl-marker {
  position: absolute; left: calc(var(--tl-gutter) - 5px); top: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ion-soft);
  box-shadow: 0 0 10px 2px rgba(138,124,242,0.7), 0 0 0 5px rgba(138,124,242,0.10);
}
.tl-entry:first-child .tl-marker { animation: tl-pulse 2.6s ease-in-out infinite; }
@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(138,124,242,0.5),  0 0 0 4px rgba(138,124,242,0.08); }
  50%      { box-shadow: 0 0 18px 3px rgba(138,124,242,0.92), 0 0 0 8px rgba(138,124,242,0.14); }
}
/* light that sweeps down the rail every 10s */
.tl-sweep {
  position: absolute;
  left: calc(var(--tl-gutter) - 2px);
  width: 6px; height: 120px;
  top: 0;
  border-radius: 6px;
  background: linear-gradient(to bottom, rgba(182,172,255,0) 0%, rgba(196,188,255,0.9) 50%, rgba(182,172,255,0) 100%);
  box-shadow: 0 0 16px 4px rgba(138,124,242,0.5);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: tl-sweep 10s ease-in-out infinite;
}
@keyframes tl-sweep {
  0%   { top: 0;                  opacity: 0; }
  8%   { top: 0;                  opacity: 1; }
  26%  { top: calc(100% - 120px); opacity: 1; }
  30%  { top: calc(100% - 120px); opacity: 0; }
  100% { top: calc(100% - 120px); opacity: 0; }
}
.tl-title {
  font-family: var(--display); font-weight: 440;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.18;
  color: var(--bone); margin: 0 0 8px;
}
.tl-text { font-size: 0.95rem; line-height: 1.62; color: var(--dust); margin: 0; max-width: 64ch; }
.tl-media {
  margin-top: 16px; max-width: 440px; width: 100%;
  border: 0.5px solid var(--ion-line); border-radius: 12px; overflow: hidden;
}
.tl-media img { display: block; width: 100%; height: auto; }
.tl-media--ph {
  aspect-ratio: 16 / 9;
  background: linear-gradient(rgba(138,124,242,0.07), rgba(138,124,242,0.07));
  display: flex; align-items: center; justify-content: center;
}
.tl-media--ph span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--dust-2); }

@media (max-width: 860px) {
  .cards3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about-head { grid-template-columns: 1fr; }
  .timeline { --tl-gutter: 16px; }
  .tl-entry { padding-left: 34px; }
  .tl-date { position: static; width: auto; text-align: left; display: block; margin-bottom: 6px; }
  .tl-marker { left: 11px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .dots { display: none; }
  .split, .stage { grid-template-columns: 1fr; }
  .module { min-height: 240px; order: 2; }
  .stage__viz, .vg-scene { order: 2; }
}

@media (max-width: 720px) {
  :root { --nav-h: 62px; }

  /* collapse nav into a panel */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px var(--pad-x) 26px;
    background: rgba(13,11,22,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 0.5px solid var(--ion-line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { font-size: 0.9rem; padding-block: 10px; letter-spacing: 0.06em; }
  .nav__sep { display: none; }

  /* let tall sections breathe instead of trapping content */
  html { scroll-snap-type: none; }
  .station { min-height: auto; padding-block: calc(var(--nav-h) + 56px) 72px; }
  .hero { min-height: 100vh; }
  .headline { max-width: 100%; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue .line { animation: none; }
  .tl-marker, .bh__hot, .bh__arch, .tl-sweep { animation: none !important; }
  * { transition-duration: 0.001ms !important; }
}

/* =========================================================
   MY WORK PAGE
   ========================================================= */
.wk-hero    { padding: calc(var(--nav-h) + clamp(28px, 6vh, 64px)) 0 clamp(8px, 2vh, 22px); }
.wk-section { padding: clamp(24px, 4vh, 50px) 0 clamp(56px, 10vh, 120px); }
.wk-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.wk-hero__title { max-width: 16ch; }

/* ---- oscilloscope hero ---- */
.scope { margin: 0; min-width: 0; }
.scope__frame {
  position: relative;
  height: clamp(210px, 30vh, 330px);
  border: 1px solid var(--ion-line);
  border-radius: var(--radius);
  background: var(--void-2);
  overflow: hidden;
}
.scope__grid {                       /* graticule */
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right,  var(--ion-line) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, var(--ion-line) 0 1px, transparent 1px 48px);
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.scope__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scope__hud {
  position: absolute; inset: 14px 16px auto; display: flex; justify-content: space-between;
  gap: 16px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dust); pointer-events: none;
}
/* coefficient column (right side of the plot) */
.reg__coef {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 28%; min-width: 118px;
  display: flex; flex-direction: column; justify-content: center; gap: 9px;
  padding: 0 clamp(14px, 1.6vw, 22px);
  border-left: 1px solid var(--ion-line);
  font: 400 12px/1.1 var(--mono); pointer-events: none;
}
.reg__coef-eq { color: var(--dust); font-size: 11px; letter-spacing: 0.03em; margin-bottom: 5px; white-space: nowrap; }
.reg__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.reg__row i { font-style: normal; color: var(--dust); }
.reg__row b { font-weight: 500; color: var(--ion-soft); opacity: 0.2; transition: opacity 0.5s ease; }
.reg__coef.is-on .reg__row b { opacity: 1; }
.reg__row--r b { color: var(--bone); }

/* ---- project cards (full-width, stacked) ---- */
.wk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vh, 32px); }
.wk-card {
  border: 1px solid var(--ion-line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.wk-card:hover { border-color: var(--ion-line-2); transform: translateY(-2px); }

.wk-card__fn {                       /* function band at the card top */
  display: flex; align-items: center; gap: clamp(18px, 4vw, 48px);
  padding: clamp(18px, 2.6vw, 28px) clamp(20px, 3.4vw, 38px);
  border-bottom: 1px solid var(--ion-line);
  background: var(--void-2);
}
.wk-wave {
  flex: 1 1 auto; min-width: 0; width: 100%; height: clamp(80px, 9vw, 112px); display: block;
  -webkit-mask-image: linear-gradient(to right, #000 66%, transparent 100%);
          mask-image: linear-gradient(to right, #000 66%, transparent 100%);
}

.wk-card__body { padding: clamp(22px, 3vw, 34px) clamp(20px, 3.4vw, 38px) clamp(24px, 3vw, 34px); }
.wk-card__head { display: flex; align-items: baseline; gap: 14px; }
.wk-card__idx { font: 500 13px/1 var(--mono); color: var(--ion); letter-spacing: 0.1em; }
.wk-card__title { margin: 0; font: 400 clamp(21px, 2.7vw, 29px)/1.12 var(--display); color: var(--bone); }
.wk-card__desc { margin: 12px 0 0; max-width: 66ch; color: var(--dust); line-height: 1.6; }
.wk-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 22px; flex-wrap: wrap;
}
.tagset { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust);
  padding: 6px 10px; border: 1px solid var(--ion-line); border-radius: 999px;
}
.wk-card__link {
  font: 500 13px/1 var(--mono); letter-spacing: 0.06em; color: var(--ion-soft);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.wk-card__link:hover { color: var(--bone); }
.wk-card__link .ar { transition: transform 0.25s ease; }
.wk-card__link:hover .ar { transform: translateX(4px); }

/* solution/effect table + image placeholder + citation */
.wk-card__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px); align-items: start;
  margin-top: clamp(18px, 2.6vw, 26px);
}
.wk-table { width: 100%; border-collapse: collapse; }
.wk-table th {
  text-align: left; padding: 0 0 10px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dust);
  border-bottom: 1px solid var(--ion-line-2);
}
.wk-table td {
  padding: 12px 0; vertical-align: top; line-height: 1.5; font-size: 0.94rem; color: var(--bone);
  border-bottom: 1px solid var(--ion-line);
}
.wk-table th:first-child, .wk-table td:first-child { padding-right: 28px; }
.wk-table td + td { color: var(--dust); }
.wk-table tr:last-child td { border-bottom: none; }

.wk-figure {
  aspect-ratio: 16 / 10; border-radius: var(--radius);
  border: 1px dashed var(--ion-line-2); background: var(--void-2);
  display: grid; place-items: center;
}
.wk-figure__ph { font: 500 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dust-2); }

.wk-quote { margin: clamp(20px, 3vw, 28px) 0 0; padding-left: 18px; border-left: 2px solid var(--ion-line-2); }
.wk-quote blockquote { margin: 0; font: italic 400 clamp(1rem, 1.3vw, 1.1rem)/1.55 var(--display); color: var(--bone); }
.wk-quote figcaption { margin-top: 8px; font: 400 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--dust); }

@media (max-width: 860px) {
  .wk-hero__grid { grid-template-columns: 1fr; gap: clamp(24px, 5vw, 40px); }
  .scope__frame { height: clamp(200px, 42vw, 300px); }
}
@media (max-width: 720px) {
  .wk-wave { height: 84px; }
  .wk-card__grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .scope__tag { display: none; }
}
