/* =========================================================================
   DR. STAR KIM — personal brand site
   Brand: "A shooting star over a navy night sky."
   Deep navy, faint blue + gold glow, bright gold five-point stars.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- tokens ---------- */
:root {
  /* deep navy surfaces (kept under the --ink* names used across the sheet) */
  --ink:            #0A1526;
  --ink-2:          #101E33;
  --ink-3:          #17273F;
  --hairline:       #23344E;
  --hairline-lit:   #3A5175;

  --gold:           #E9B857;
  --gold-bright:    #F6E4B8;
  --bronze:         #BE8C3E;

  --starlight:      #EAF2FF;   /* the brightest stars / hero glints */
  --spark:          #8FB6E8;   /* cool blue star glint */
  --nebula:         #33507F;   /* blue glow */
  --nebula-warm:    #C98A4A;   /* warm glow */

  --text:           #EAF0FA;
  --text-2:         #AAB7CC;
  --text-3:         #7F8DA6;

  --focus:          var(--gold-bright);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* type scale — compact. --fs--1 (the eyebrow label size) is the reference;
     body and item text match it, headings step up only slightly. */
  --fs--1:  0.82rem;
  --fs-0:   0.9rem;
  --fs-1:   0.9rem;
  --fs-2:   0.95rem;
  --fs-3:   1.1rem;
  --fs-4:   1.3rem;
  --fs-hero: 1.5rem;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  --container: 1180px;
  --pad-x: clamp(20px, 5vw, 64px);
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 700px at 82% -8%, rgba(233, 184, 87, .13), transparent 60%),
    radial-gradient(1000px 800px at 6% 4%, rgba(60, 100, 165, .20), transparent 55%),
    radial-gradient(1200px 900px at 50% 118%, rgba(40, 70, 120, .18), transparent 60%),
    linear-gradient(180deg, #0D1B30 0%, #0A1526 45%, #081120 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a.link {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--bronze);
  transition: text-decoration-color .2s var(--ease);
}
a.link:hover { text-decoration-color: var(--gold-bright); }

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

::selection { background: rgba(233, 184, 87, .28); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--gold-bright);
}

/* ---------- layout primitives ---------- */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: clamp(44px, 6vw, 88px); }
.section--tight { padding-block: clamp(28px, 3.5vw, 44px); }
.section + .section,
.section--tight + .section--tight,
.section + .section--tight,
.section--tight + .section { border-top: 1px solid var(--hairline); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs--1);
  font-weight: 500;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bronze);
  flex: none;
}

.lead {
  font-size: var(--fs-0);
  color: var(--text-2);
  max-width: 68ch;
}

.measure { max-width: 66ch; }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: var(--sp-4); top: -60px;
  background: var(--gold-bright);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip:focus { top: var(--sp-4); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 21, 38, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--pad-x);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__mark { width: 24px; height: auto; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: var(--fs--1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); }
.nav a {
  font-size: 0.7rem;
  color: var(--text-2);
  padding: 6px 2px;
  position: relative;
  transition: color .18s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.nav-toggle { display: none; }

/* collapse to a Menu button before the links get tight */
@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--hairline-lit);
    color: var(--text);
    font: inherit;
    font-size: 0.74rem;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--hairline);
    padding: var(--sp-3) var(--pad-x) var(--sp-5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: var(--fs-0);
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 500;
  font-size: 0.74rem;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--gold);
  color: #1a1206;
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline-lit);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn:active { transform: translateY(1px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 12vw, 150px) clamp(56px, 9vw, 120px);
  overflow: hidden;
}
/* ---------- deep-sky starfield ---------- */
.hero__sky, .page-hero__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__sky {
  background-image:
    radial-gradient(760px 520px at 78% 22%, rgba(233, 184, 87, .17), transparent 62%),
    radial-gradient(640px 620px at 12% 82%, rgba(60, 100, 165, .22), transparent 60%),
    radial-gradient(900px 500px at 50% -20%, rgba(143, 182, 232, .12), transparent 60%);
}
.page-hero__sky {
  background-image:
    radial-gradient(620px 360px at 88% 0%, rgba(233, 184, 87, .14), transparent 65%),
    radial-gradient(520px 420px at 4% 100%, rgba(60, 100, 165, .16), transparent 60%);
}
.starfield { position: absolute; inset: 0; }
/* faint distant stars = round dots */
.star {
  position: absolute;
  border-radius: 50%;
  opacity: var(--o, .8);
  animation: twinkle var(--tw, 4s) var(--ease) var(--d, 0s) infinite;
}
/* bright stars = five-point SVG with a soft glow */
.star--bright {
  position: absolute;
  border-radius: 0;
  opacity: var(--o, .95);
  filter: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 9px currentColor);
  animation: twinkle var(--tw, 4s) var(--ease) var(--d, 0s) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: var(--o, .8); transform: scale(1); }
  50%      { opacity: calc(var(--o, .8) * .4); transform: scale(.82); }
}

.shooting-star {
  position: absolute;
  top: var(--top, 18%);
  left: var(--left, -6%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--starlight);
  box-shadow: 0 0 8px 2px var(--starlight), 0 0 20px 5px rgba(233, 184, 87, .5);
  opacity: 0;
  animation: shoot 11s var(--delay, 3s) ease-in infinite;
}
.shooting-star::after {
  content: "";
  position: absolute;
  right: 3px; top: 50%;
  width: 190px; height: 1.5px;
  transform: translateY(-50%);
  background: linear-gradient(270deg, var(--starlight), rgba(233, 184, 87, .6) 30%, transparent);
}
@keyframes shoot {
  0%      { opacity: 0; transform: translate3d(0, 0, 0) rotate(18deg); }
  4%      { opacity: 1; }
  16%     { opacity: 1; }
  22%     { opacity: 0; transform: translate3d(62vw, 30vh, 0) rotate(18deg); }
  100%    { opacity: 0; transform: translate3d(62vw, 30vh, 0) rotate(18deg); }
}

/* big decorative shooting star, replaces old reticle */
.hero__streak {
  position: absolute;
  right: clamp(-30px, 2vw, 60px);
  top: 46%;
  transform: translateY(-50%);
  width: clamp(260px, 40vw, 520px);
  color: var(--gold);
  opacity: .9;
  pointer-events: none;
}
@media (max-width: 900px) { .hero__streak { width: 240px; right: 4px; top: 5%; opacity: .5; } }
@media (max-width: 560px) { .hero__streak { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; }
  .shooting-star { display: none; }
}

.hero__inner { position: relative; }
.hero__kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.hero__kicker span { color: var(--text-2); font-weight: 400; }
@media (max-width: 560px) { .hero__kicker span { display: none; } }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: var(--sp-6);
}
.hero__sub {
  font-size: var(--fs-1);
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: var(--sp-7);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.hero__meta {
  margin-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6) var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--hairline);
}
.hero__meta div { max-width: 24ch; }
.hero__meta dt { font-size: var(--fs--1); color: var(--gold); margin-bottom: 4px; }
.hero__meta dd { font-size: 0.76rem; color: var(--text-2); }

/* ---------- home hero: name + portrait ---------- */
.hero--home {
  padding-block: clamp(28px, 4vw, 56px);
}
.hero--home .hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero--home .hero__inner.has-portrait {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 40vw, 540px);
}
@media (max-width: 860px) {
  .hero--home .hero__inner.has-portrait { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero__portrait { order: -1; }
}
.hero__name {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: var(--sp-3);
}
.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.85rem + 1.2vw, 1.5rem);
  line-height: 1.28;
  color: var(--text);
  max-width: 35ch;
}
.hero__soc { display: flex; gap: 10px; margin-top: var(--sp-6); }
.hero__soc a {
  width: 38px; height: 38px;
  border: 1px solid var(--hairline-lit);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.hero__soc a:hover { color: var(--gold-bright); border-color: var(--gold); }
.hero__soc svg { width: 16px; height: 16px; }

.hero__portrait { position: relative; justify-self: center; }
.hero__portrait img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, .5));
}
@media (max-width: 860px) {
  .hero__portrait { justify-self: center; }
  .hero__portrait img { max-height: 440px; }
}

/* ---------- home: about blurb + focus list ---------- */
.home-about__text { max-width: 62ch; margin-top: var(--sp-3); }
.home-about__text a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--bronze); }
.home-about__text a:hover { text-decoration-color: var(--gold-bright); }
.home-about a.link, .focus-list + .link, .feat + .link { display: inline-block; margin-top: var(--sp-4); font-size: 0.76rem; }

.focus-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-4); max-width: 820px; }
@media (max-width: 640px) { .focus-list { grid-template-columns: 1fr; } }
.focus-list li { border-top: 1px solid var(--hairline); padding-top: var(--sp-3); }
.focus-list strong { display: block; font-weight: 600; font-family: var(--font-display); font-size: var(--fs-2); margin-bottom: 3px; }
.focus-list span { color: var(--text-2); font-size: 0.76rem; }

/* ---------- home: one stacked panel per section ---------- */
.home-panel > * { max-width: 680px; }
.home-panel .eyebrow { margin-bottom: var(--sp-4); }
.home-panel > .btn { margin-top: var(--sp-4); }
.home-panel__note { color: var(--text-2); margin-bottom: var(--sp-4); }

.mini { list-style: none; }
.mini li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--hairline);
}
.mini li:first-child { border-top: 0; padding-top: 0; }
.mini__t { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-0); line-height: 1.3; }
.mini__m { color: var(--text-3); font-size: 0.72rem; }

.mini-albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-3); }
@media (max-width: 560px) { .mini-albums { grid-template-columns: repeat(2, 1fr); } }
.mini-albums a { display: block; }
.mini-albums__cover { display: block; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--hairline); background: var(--ink-3); }
.mini-albums__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.mini-albums a:hover .mini-albums__cover img { transform: scale(1.04); }
.mini-albums__t { display: block; margin-top: 6px; font-size: 0.72rem; color: var(--text-2); }

/* ---------- selected-work list ---------- */
.feat { list-style: none; border-top: 1px solid var(--hairline); max-width: 760px; margin-top: var(--sp-4); }
.feat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .2s var(--ease);
}
.feat__row:hover { padding-left: 8px; }
.feat__text { display: flex; flex-direction: column; gap: 3px; }
.feat__t { font-family: var(--font-display); font-size: var(--fs-2); font-weight: 600; }
.feat__d { color: var(--text-2); font-size: 0.76rem; }
.feat__row svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- section heading block ---------- */
.head-block { margin-bottom: clamp(24px, 4vw, 44px); max-width: 60ch; }
.head-block h2 { font-size: var(--fs-3); margin-bottom: var(--sp-3); }
.count { color: var(--text-3); font-family: var(--font-body); font-size: .5em; vertical-align: super; margin-left: .4em; }

/* ---------- expertise / tick cards ---------- */
.grid {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.cell {
  background: rgba(16, 30, 51, .72);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background .25s var(--ease);
}
.cell:hover { background: rgba(23, 39, 63, .85); }
.cell__no { font-size: var(--fs--1); color: var(--gold); }
.cell h3 { font-size: var(--fs-1); }
.cell p { color: var(--text-2); font-size: 0.76rem; }
.cell ul { list-style: none; margin-top: auto; padding-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: 6px; }
.cell li {
  font-size: 0.78rem;
  color: var(--text-2);
  border: 1px solid var(--hairline-lit);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ---------- project list ---------- */
.projects { display: flex; flex-direction: column; }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.project:last-child { border-bottom: 1px solid var(--hairline); }
@media (max-width: 820px) { .project { grid-template-columns: 1fr; } }

.project__index {
  font-family: var(--font-display);
  font-size: var(--fs-2);
  color: var(--text-3);
}
.project__flag {
  display: inline-block;
  font-size: var(--fs--1);
  color: var(--gold);
  border: 1px solid var(--bronze);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: var(--sp-4);
}
.project h3 { font-size: var(--fs-2); margin-bottom: var(--sp-4); }
.project__body p { color: var(--text-2); margin-bottom: var(--sp-4); }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
.project__tags span {
  font-size: 0.78rem;
  color: var(--text-2);
  border: 1px solid var(--hairline-lit);
  border-radius: 4px;
  padding: 4px 9px;
}
.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; }

/* corner ticks */
.ticked { position: relative; }
.ticked::before, .ticked::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
  opacity: .6;
}
.ticked::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.ticked::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- timeline (about) ---------- */
.timeline { border-left: 1px solid var(--hairline); margin-left: 6px; }
.tl-item {
  position: relative;
  padding: 0 0 var(--sp-7) var(--sp-6);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -5px; top: 6px;
  width: 9px; height: 9px;
  background: var(--ink);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.tl-item .yr { font-size: var(--fs--1); color: var(--gold); }
.tl-item h3 { font-size: var(--fs-1); margin: 4px 0 2px; }
.tl-item .org { color: var(--text-2); font-size: 0.76rem; }
.tl-item p { color: var(--text-2); font-size: 0.75rem; margin-top: var(--sp-3); max-width: 60ch; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- publications ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-6); }
.filters button {
  font: inherit;
  font-size: 0.72rem;
  color: var(--text-2);
  background: none;
  border: 1px solid var(--hairline-lit);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] {
  color: #1a1206;
  background: var(--gold);
  border-color: var(--gold);
}

.pub { padding-block: var(--sp-6); border-top: 1px solid var(--hairline); }
.pub:last-child { border-bottom: 1px solid var(--hairline); }
.pub__top { display: flex; gap: var(--sp-4); align-items: baseline; flex-wrap: wrap; }
.pub__yr { font-family: var(--font-display); font-size: var(--fs-1); color: var(--gold); flex: none; }
.pub__kind {
  font-size: 0.74rem;
  color: var(--text-2);
  border: 1px solid var(--hairline-lit);
  border-radius: 4px;
  padding: 2px 8px;
}
.pub h3 { font-size: var(--fs-1); margin: var(--sp-3) 0 var(--sp-2); font-weight: 500; }
.pub__authors { color: var(--text-2); font-size: 0.74rem; }
.pub__venue { color: var(--text-3); font-size: 0.74rem; font-style: italic; }
.pub__links { display: flex; gap: var(--sp-4); margin-top: var(--sp-3); }
.pub__links a { font-size: 0.72rem; color: var(--gold-bright); }
.pub__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- media / videos ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-6); }
.video-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-3);
  border: 1px solid var(--hairline);
  overflow: hidden;
  cursor: pointer;
}
.video-card__frame img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .25s var(--ease), transform .4s var(--ease); }
.video-card__frame:hover img { opacity: 1; transform: scale(1.03); }
.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video-card__play span {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(12,14,18,.6);
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.video-card__play svg { width: 20px; height: 20px; color: var(--gold-bright); margin-left: 3px; }
.video-card h3 { font-size: var(--fs-1); font-weight: 500; }
.video-card p { color: var(--text-2); font-size: 0.74rem; }
.video-card .src { color: var(--text-3); font-size: 0.72rem; }

.embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- galleries ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.album-card {
  position: relative;
  display: block;
  background: var(--ink);
  overflow: hidden;
  transition: background .25s var(--ease);
}
.album-card:hover { background: var(--ink-2); }
.album-card__cover { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.album-card:hover .album-card__cover img { transform: scale(1.04); }
.album-card__body { padding: var(--sp-5); }
.album-card__body h3 { font-size: var(--fs-1); font-weight: 500; margin-bottom: 4px; }
.album-card__body .meta { color: var(--text-3); font-size: 0.72rem; }
.album-card__count {
  position: absolute; top: 10px; right: 10px;
  background: rgba(10, 21, 38, .8);
  border: 1px solid var(--hairline-lit);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.68rem;
  color: var(--text-2);
}

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.photo-grid button {
  padding: 0; border: 1px solid var(--hairline); background: var(--ink-3);
  aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), opacity .2s var(--ease); }
.photo-grid button:hover img { transform: scale(1.05); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 7, 10, .95);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }
.lightbox__stage { display: grid; place-items: center; overflow: hidden; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--hairline); }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  color: var(--text-2);
  font-size: 0.74rem;
}
.lightbox__btn {
  background: none; border: 1px solid var(--hairline-lit); color: var(--text);
  width: 44px; height: 44px; border-radius: 6px; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__close { position: absolute; top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }

/* ---------- talks list ---------- */
.trip { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: var(--sp-6); padding-block: var(--sp-6); border-top: 1px solid var(--hairline); }
.trip:last-child { border-bottom: 1px solid var(--hairline); }
@media (max-width: 640px) { .trip { grid-template-columns: 1fr; gap: var(--sp-3); } }
.trip__when { font-family: var(--font-display); color: var(--gold); font-size: var(--fs-1); }
.trip__status {
  display: inline-block; font-size: 0.74rem; padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--hairline-lit); color: var(--text-2); margin-top: 6px;
}
.trip__status[data-s="upcoming"] { color: var(--gold); border-color: var(--bronze); }
.trip h3 { font-size: var(--fs-1); font-weight: 700; margin-bottom: 6px; }
.trip__place { display: block; color: var(--text-2); font-size: 0.72rem; margin-top: 4px; }
.trip p { color: var(--text-2); font-size: 0.75rem; max-width: 58ch; }
.trip__titles { margin: 4px 0 6px; padding-left: 1.1em; list-style: disc; }
.trip__titles li { color: var(--text-2); font-size: 0.78rem; max-width: 58ch; margin-top: 3px; }
.trip__note { color: var(--text-3); }.trip__tags { margin-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: 6px; }
.trip__tags span { font-size: 0.76rem; color: var(--text-2); border: 1px solid var(--hairline-lit); border-radius: 4px; padding: 3px 8px; }

/* ---------- people (lab members) ---------- */
.people-group { padding-top: var(--sp-7); }
.people-group + .people-group { margin-top: var(--sp-6); }
.people-group__title {
  font-size: var(--fs-2);
  font-weight: 500;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--hairline);
}
.people-group__title a { color: inherit; }
.people-group__title a:hover { color: var(--gold-bright); }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.member {
  background: rgba(16, 30, 51, .72);
  padding: clamp(20px, 2.4vw, 28px);
}
.member__photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--hairline-lit);
  margin-bottom: var(--sp-4);
  background: var(--ink-3);
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: filter .3s var(--ease);
}
.member:hover .member__photo img { filter: grayscale(0); }
.member__name { font-size: var(--fs-0); font-weight: 600; margin-bottom: 2px; }
.member__role { color: var(--text-2); font-size: 0.74rem; }
.member__role span { color: var(--text-3); }
.member__links { display: flex; gap: 10px; margin-top: var(--sp-3); }
.member__links a { color: var(--text-3); display: inline-flex; }
.member__links a:hover { color: var(--gold-bright); }
.member__links svg { width: 16px; height: 16px; }

.member__hl { list-style: none; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--hairline); }
.mh { padding: var(--sp-2) 0; font-size: 0.72rem; }
.mh + .mh { border-top: 1px solid var(--hairline); }
.mh__date { color: var(--gold); font-size: 0.78rem; }
.mh__type {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.68rem;
  color: var(--text-2);
  border: 1px solid var(--hairline-lit);
  border-radius: 3px;
  padding: 0 5px;
  vertical-align: 1px;
}
.mh__text { display: block; color: var(--text-2); margin-top: 3px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-single { max-width: 34rem; }

.field { margin-bottom: var(--sp-5); }
.field label { display: block; font-size: 0.74rem; margin-bottom: 6px; color: var(--text); }
.field .hint { font-size: 0.72rem; color: var(--text-3); margin-top: 5px; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 0.76rem;
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid var(--hairline-lit);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  background: var(--ink-3);
  outline: none;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #E5847A; }
.field .err { font-size: 0.72rem; color: #E5847A; margin-top: 5px; }

.form-status[role="alert"] {
  border: 1px solid var(--hairline-lit);
  border-left: 2px solid var(--gold);
  background: var(--ink-2);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  font-size: 0.75rem;
}
.form-status a { color: var(--gold-bright); text-decoration: underline; }
.form-status--ok { border-left-color: #6FBF8F; }

/* ---------- footer (compact — text sized to the icons) ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--sp-6);
  color: var(--text-3);
  font-size: 0.72rem;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer__soc { display: flex; gap: 14px; }
.site-footer__soc a { color: var(--text-3); display: inline-flex; }
.site-footer__soc svg { width: 16px; height: 16px; }
.site-footer small { font-size: 1em; color: var(--text-3); margin-left: auto; }
.site-footer small a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .site-footer small { margin-left: 0; flex-basis: 100%; } }

/* ---------- reveal animation ----------
   Progressive enhancement: hidden state only applies once JS adds
   .reveal-ready to <html>. No JS / JS error => content is fully visible. */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- page hero (interior) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 110px) clamp(32px, 5vw, 56px); }
.page-hero > .wrap { position: relative; }
.page-hero h1 { font-size: var(--fs-4); font-weight: 500; margin-bottom: var(--sp-5); max-width: 22ch; }
.page-hero p { color: var(--text-2); font-size: var(--fs-0); max-width: 62ch; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.74rem; margin-bottom: var(--sp-5); }
.back-link:hover { color: var(--gold-bright); }
.back-link svg { width: 14px; height: 14px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band h2 { font-size: var(--fs-3); margin-bottom: var(--sp-4); max-width: 20ch; }
.cta-band p { color: var(--text-2); max-width: 52ch; margin-bottom: var(--sp-6); }
