/* Viscose-aligned editorial system — matches Ice-works timeline */
:root {
  --bg: #fafafa;
  --bg-soft: #f7f7f5;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #0d1b2a;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --line: rgba(10, 10, 10, .1);
  --line-soft: rgba(10, 10, 10, .06);
  --navy: #10233d;
  --steel: #1a4064;
  --r: 14px;
  --r-lg: 22px;
  --header: 52px;
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --max: 1180px;
  --hub-max: 1280px;
  --hub-gap: 16px;
  --hub-card-min: 520px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  --display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 10, 10, .28) transparent;
}
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: transparent;
}
body::-webkit-scrollbar-thumb {
  background: rgba(10, 10, 10, .22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 10, 10, .36);
  background-clip: padding-box;
  border: 2px solid transparent;
}
a { color: inherit; }
button, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid rgba(10, 10, 10, .22);
  outline-offset: 2px;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: #fff; padding: .75rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }
.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;
}

/* ——— Top bar (Apple glass) ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: rgba(250, 250, 250, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
  min-width: 0;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.brand-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar nav {
  display: flex;
  gap: 8px;
  justify-self: center;
}
.topbar nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -.01em;
  opacity: .72;
  padding: 6px 12px;
  border-radius: 980px;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.topbar nav a:hover { opacity: 1; background: rgba(10, 10, 10, .04); }
.topbar nav a.active {
  opacity: 1;
  background: rgba(10, 10, 10, .07);
  font-weight: 500;
}
.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.symbion-btn {
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  padding: 5px 12px 5px 5px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s ease;
}
.symbion-face {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  background: #2a2a2a;
  flex: none;
}
.symbion-btn:hover { background: #000; }
.menu-button {
  display: none;
  width: 36px; height: 36px;
  border: 0; background: transparent; cursor: pointer;
  padding: 0;
}
.menu-button span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink); margin: 5px auto; border-radius: 2px;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow i {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

/* Reveal */
[data-reveal] {
  transform: translateY(14px);
  transition: transform .7s var(--ease);
}
[data-reveal].is-in {
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }

/* ——— Hero ——— */
.hero {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(ellipse 42% 40% at 18% 42%, rgba(26, 64, 100, .045), transparent 62%),
    radial-gradient(ellipse 38% 36% at 88% 48%, rgba(16, 35, 61, .05), transparent 58%),
    var(--bg);
  min-height: calc(100dvh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(20px, 3vh, 36px) clamp(1rem, 3vw, 2.5rem) 0;
  overflow: hidden;
}
.page-home .hero {
  /* Timeline rises under the hero so the paper seam dissolves */
  margin-bottom: calc(-1 * clamp(72px, 12vh, 140px));
  padding-top: clamp(12px, 2vh, 28px);
  padding-bottom: clamp(56px, 9vh, 112px);
  justify-content: center;
}
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.hero-globe {
  position: absolute;
  z-index: 1;
  right: clamp(-60px, -3vw, -8px);
  top: 50%;
  transform: translateY(-46%);
  width: min(52vw, 640px);
  height: min(64vh, 680px);
  pointer-events: auto;
}
.hero-globe canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-grid {
  position: relative;
  z-index: 2;
  width: min(100%, 1240px);
  margin: 0 auto 0 clamp(24px, 6vw, 96px);
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(280px, 1fr);
  column-gap: clamp(40px, 4.5vw, 64px);
  row-gap: 36px;
  align-items: center;
  align-content: center;
}
.page-home .hero-grid {
  margin-top: auto;
  margin-bottom: auto;
}
.page-home .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(180px, 22vh);
  background: linear-gradient(
    180deg,
    rgba(250, 250, 250, 0) 0%,
    rgba(250, 250, 250, .22) 42%,
    rgba(250, 250, 250, .55) 78%,
    rgba(250, 250, 250, .78) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.hero-copy {
  max-width: 32rem;
  justify-self: start;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 2;
}
.hero-greet {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--faint);
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 84px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.06;
  color: var(--ink);
  text-transform: uppercase;
}
.hero h1 .line { display: block; }
.hero-role {
  margin: 24px 0 0;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.45;
  color: var(--muted);
  max-width: 24em;
}
.hero-actions {
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 980px;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.015em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: none;
  transition: background .2s ease, color .2s ease, box-shadow .25s var(--ease), border-color .2s ease;
}
.btn span { position: relative; z-index: 1; }
.btn.primary {
  background: var(--ink);
  color: #fff;
  border: 0;
  box-shadow: none;
}
.btn.primary:hover {
  background: #000;
  box-shadow: 0 12px 28px rgba(10, 10, 10, .16);
}
.btn.primary:focus-visible {
  outline: 2px solid rgba(10, 10, 10, .28);
  outline-offset: 3px;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0 20px;
}
.btn.ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn.ghost::after { content: none; }

.hero-stage {
  position: relative;
  justify-self: start;
  width: min(100%, 400px);
}
.hero-figure {
  margin: 0;
  position: relative;
  z-index: 1;
  border-radius: calc(var(--r-lg) + 4px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #f4f3ef 0%, #e8e7e2 72%, #deddd8 100%);
  aspect-ratio: 3 / 4;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .45) inset,
    0 28px 56px rgba(10, 10, 10, .12);
  touch-action: none;
}
.hero-figure.is-ready:not(.is-photo) {
  cursor: crosshair;
}
.hero-figure.is-photo {
  /* Keep paper tone — never flash dark behind the portrait. */
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #f4f3ef 0%, #e8e7e2 72%, #deddd8 100%);
}
.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 16%;
  opacity: 0;
  position: relative;
  z-index: 1;
  transition: none;
  background: transparent;
}
.hero-halftone {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  image-rendering: auto;
  opacity: 1;
  transition: opacity .45s cubic-bezier(.2, .8, .2, 1);
}

/* Scroll cue into the research timeline */
.hero-scroll {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: max-content;
  margin: 20px auto 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  opacity: .55;
  transition: opacity .2s ease, color .2s ease, gap .2s var(--ease);
}
.page-home .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3.5vh, 40px);
  margin: 0;
  transform: translateX(-50%);
}
.hero-scroll svg {
  display: block;
  flex: none;
  transition: transform .25s var(--ease);
}
.hero-scroll:hover {
  opacity: 1;
  gap: 8px;
}
.hero-scroll:hover svg {
  transform: translateY(2px);
}

/* ——— Class studio ——— */
.studio {
  width: min(100%, var(--hub-max));
  margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) var(--pad) 80px;
  min-height: calc(100dvh - var(--header));
}
.studio-head {
  max-width: 18em;
  margin-bottom: clamp(28px, 5vh, 48px);
}
.studio-head h1,
.lab-head h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.14;
  color: var(--ink);
}
.studio-head .lede,
.lab-head .lede {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 28em;
}
.studio-split,
.research-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hub-gap);
  align-items: stretch;
}
.research-split {
  margin: 0 0 42px;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
}
.studio-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: var(--hub-card-min);
  height: 100%;
  padding: 28px 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease;
}
.studio-panel::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 88px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0), rgba(16, 35, 61, .05));
}
.studio-panel.onsite::after {
  background: linear-gradient(180deg, rgba(250, 250, 250, 0), rgba(26, 64, 100, .08));
}
.studio-panel:hover {
  border-color: rgba(10, 10, 10, .18);
  box-shadow: 0 24px 50px rgba(10, 10, 10, .08);
  transform: translateY(-4px);
}
.studio-panel header { position: relative; z-index: 1; margin-bottom: 18px; }
.panel-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.studio-panel h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -.03em;
}
.studio-panel header p:last-child {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 28em;
}
.studio-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
  align-content: end;
}
.studio-list li { margin: 0; padding: 0; }
.studio-list a,
.studio-list .course-entry {
  display: grid;
  grid-template-columns: 1fr auto 40px;
  gap: 14px;
  align-items: center;
  padding: 16px 14px 16px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease, border-color .2s ease, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.studio-list li:first-child a { border-top: 1px solid var(--line-soft); }
.studio-list a:hover,
.studio-list .course-entry:hover {
  background: #fff;
  border-color: rgba(10, 10, 10, .16);
  box-shadow: 0 10px 24px rgba(10, 10, 10, .06);
  transform: translateY(-1px);
}
.studio-list a:hover .entry-go,
.studio-list .course-entry:hover .entry-go {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  transform: none;
}
.studio-list a:hover .entry-go svg,
.studio-list .course-entry:hover .entry-go svg {
  transform: translate(1px, -1px);
}
.studio-list em {
  display: block;
  margin: 0 0 5px;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.2;
}
.studio-list b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.28;
  color: var(--ink);
}
.studio-list span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.studio-list time {
  font-size: 12px;
  font-weight: 400;
  color: var(--faint);
  white-space: nowrap;
  text-align: right;
  align-self: start;
  padding-top: 2px;
}
.studio-list .entry-go {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  flex: none;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .25s var(--ease);
}
.studio-list .entry-go svg {
  display: block;
  width: 18px;
  height: 18px;
  transition: transform .25s var(--ease);
}

/* ——— Research lab ——— */
.lab {
  width: min(100%, var(--hub-max));
  margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) var(--pad) 88px;
  min-height: calc(100dvh - var(--header));
}
.page-research .lab {
  width: min(100%, var(--hub-max));
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.page-research {
  background:
    radial-gradient(ellipse 55% 40% at 85% 0%, rgba(16, 35, 61, .06), transparent 55%),
    var(--bg);
}
.page-class {
  background:
    radial-gradient(ellipse 50% 35% at 10% 0%, rgba(26, 64, 100, .05), transparent 50%),
    var(--bg);
}
.lab-head {
  margin-bottom: clamp(28px, 5vh, 48px);
  max-width: 34rem;
}
.focus-panel,
.join-panel {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: var(--hub-card-min);
  height: 100%;
  min-width: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.focus-panel {
  padding: 28px 26px 0;
  background:
    linear-gradient(180deg, #fff 0%, #fbfbfa 42%),
    var(--surface);
}
.focus-head,
.join-head {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 0;
  margin: 0 0 16px;
  background: none;
}
.focus-panel .panel-kicker,
.join-panel .panel-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.focus-panel h2,
.join-panel h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.nebula-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 360px;
  height: auto;
  margin: 0 -26px 0;
  cursor: crosshair;
  touch-action: none;
  background: #fbfbfa;
  overflow: hidden;
}
.nebula-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.nebula-words {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.nebula-word {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
  color: var(--ink);
  pointer-events: auto;
  cursor: default;
  will-change: transform;
  opacity: 0;
  transition:
    background .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    backdrop-filter .18s ease;
}
.nebula-word:hover,
.nebula-word:focus-visible {
  z-index: 3;
  color: var(--ink);
  background: rgba(251, 251, 250, .94);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .85) inset,
    0 6px 18px rgba(16, 35, 61, .08),
    0 0 0 1px rgba(10, 10, 10, .06);
  outline: none;
}
.nebula-word.s5 {
  font-size: clamp(17px, 1.9vw, 24px);
  font-weight: 600;
  color: var(--ink);
}
.nebula-word.s4 {
  font-size: clamp(14px, 1.55vw, 18px);
  color: var(--ink-2);
}
.nebula-word.s3 {
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--muted);
}
.nebula-word.s2 {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
}
.nebula-word.s2:hover,
.nebula-word.s2:focus-visible,
.nebula-word.s3:hover,
.nebula-word.s3:focus-visible {
  color: var(--ink);
}

.join-panel {
  padding: 28px 26px 22px;
  background:
    linear-gradient(180deg, rgba(16, 35, 61, .035), transparent 40%),
    var(--surface);
}
.join-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.join-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.join-points li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.join-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .35;
}
.join-action {
  margin-top: auto;
  padding-top: 24px;
}
.join-panel .join-cis {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
  box-sizing: border-box;
}
.join-cis.applied {
  background: #10233d;
  pointer-events: none;
}
.pub-block { margin-bottom: 36px; }
.pub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
}
.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pub-table th,
.pub-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line-soft);
}
.pub-table thead th {
  border-top: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(10, 10, 10, .02);
}
.pub-table tbody tr:first-child td { border-top: 1px solid var(--line-soft); }
.pub-table tbody tr:hover td { background: rgba(10, 10, 10, .02); }
.pub-table em {
  font-style: normal;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 4px 8px;
  border-radius: 980px;
  background: rgba(16, 35, 61, .07);
  white-space: nowrap;
}
.pub-table td:nth-child(2) {
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 28em;
}
.pub-table td:nth-child(3) {
  color: var(--muted);
  font-size: 13px;
}
.pub-table td:nth-child(4) {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.lab-head .lede {
  max-width: 36em;
  line-height: 1.55;
}
.lede-plus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  margin: 0 .2em;
  vertical-align: -0.12em;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.lede-plus i,
.lede-plus i::before {
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.lede-plus i {
  width: .48em;
  height: 1.5px;
}
.lede-plus i::before {
  content: "";
  width: 1.5px;
  height: .48em;
}
.lab-block { margin-bottom: 42px; }
.lab-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding: 0 4px;
}
.lab-label span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.lab-label i {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}
.lab-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lab-list li {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 14px;
  margin: 0 -14px;
  border-top: 1px solid var(--line-soft);
  border-radius: 16px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lab-list li:first-child { border-top: 0; }
.lab-list li:hover {
  background: rgba(10, 10, 10, .035);
  transform: translateX(4px);
}
.lab-year {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lab-block.done .lab-year { color: var(--faint); }
.lab-body b {
  display: block;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.lab-body span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.join-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
  line-height: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s var(--ease);
}
.join-btn span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  transition: transform .25s var(--ease);
}
.join-btn span::before,
.join-btn span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.join-btn span::before {
  width: 14px;
  height: 2px;
}
.join-btn span::after {
  width: 2px;
  height: 14px;
}
.join-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(10, 10, 10, .16);
}
.join-btn:hover span {
  transform: rotate(90deg);
  transform-origin: 50% 50%;
}
.join-btn.applied {
  background: #10233d;
  color: #fff;
  border-color: #10233d;
  pointer-events: none;
}
.join-btn.applied span {
  transform: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  width: auto;
  height: auto;
  line-height: 1;
}
.join-btn.applied span::before,
.join-btn.applied span::after {
  display: none;
}

.lab-note {
  margin: 48px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
  max-width: 52em;
}

.archive {
  margin-top: 8px;
}
.work {
  position: relative;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header) + 24px);
  transition: background .25s var(--ease);
}
.work:target {
  background: linear-gradient(90deg, rgba(16, 35, 61, .06), transparent 70%);
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 16px;
}
.work-meta {
  margin: 0 0 10px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 12px;
  color: var(--faint);
}
.work-meta em {
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.work h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -.03em;
}
.work > p:not(.work-meta):not(.work-cite) {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42em;
}
.work-cite {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--faint);
  max-width: 48em;
}
.work-link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.work-link:hover { border-color: var(--ink); }
.work-link::after { content: " ›"; }
.join-btn.inline {
  display: inline-grid;
  margin-left: 12px;
  vertical-align: middle;
  position: relative;
  top: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 60;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ——— Ice-works research timeline ——— */
.timeline {
  position: relative;
  z-index: 1;
  height: calc(100dvh - var(--header));
  min-height: 560px;
  margin-top: 0;
  padding-top: 0;
  background: var(--bg);
  color: #0d1b2a;
  overflow: hidden;
  touch-action: none;
  border-top: 0;
}
/* Soft lift into the ring — never a hard paper cut */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(140px, 18vh);
  background: linear-gradient(
    180deg,
    rgba(250, 250, 250, .55) 0%,
    rgba(250, 250, 250, .22) 48%,
    rgba(250, 250, 250, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
}
.timeline-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.timeline-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.timeline-index {
  position: absolute;
  right: 8vw;
  top: 3.8vh;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.5;
  color: #0a0a0a;
  opacity: 0;
  pointer-events: none;
}
.timeline.is-live .timeline-index { opacity: 1; }
.timeline-index li { opacity: .2; white-space: nowrap; }
.timeline-meta {
  position: absolute;
  top: 52%;
  left: 6vw;
  z-index: 3;
  transform: translateY(-50%);
  pointer-events: none;
  letter-spacing: -.01em;
  color: #0a0a0a;
  font-weight: 500;
}
.timeline-meta.right {
  left: auto;
  right: 6vw;
}
.timeline-meta [data-ice-goo],
.timeline-meta [data-ice-plain] {
  position: absolute;
  inset: 0;
}
.timeline-meta [data-ice-goo] { will-change: filter; }
.timeline-meta [data-ice-layer] {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.timeline-meta[data-ice-meta="left"] [data-ice-layer],
.timeline-meta[data-ice-meta="left"] [data-ice-plain] {
  justify-content: flex-start;
}
.timeline-meta[data-ice-meta="right"] [data-ice-layer],
.timeline-meta[data-ice-meta="right"] [data-ice-plain] {
  justify-content: flex-end;
}
.timeline-meta [data-ice-plain] > span,
.timeline-meta [data-ice-layer] > span {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}
.timeline-loader {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  z-index: 3;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -.02em;
  color: #0a0a0a;
  pointer-events: none;
}
.timeline-hint {
  position: absolute;
  left: 50%;
  bottom: 3.4vh;
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 980px;
  border: 1px solid rgba(10, 10, 10, .08);
  background: rgba(250, 250, 250, .82);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: rgba(13, 27, 42, .55);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .35s ease;
}
.timeline.is-used .timeline-hint,
.timeline.is-live .timeline-hint { opacity: 0; }
.timeline-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.timeline-fallback {
  display: none;
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 64px var(--pad);
}
.timeline.is-fallback .timeline-stage,
.timeline.is-fallback .timeline-index,
.timeline.is-fallback .timeline-meta,
.timeline.is-fallback .timeline-loader,
.timeline.is-fallback .timeline-hint { display: none; }
.timeline.is-fallback {
  height: auto;
  min-height: 0;
  overflow: visible;
  touch-action: auto;
}
.timeline.is-fallback .timeline-fallback { display: block; }
.timeline-fallback h2 {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.timeline-fallback ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline-fallback li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--muted);
}
.timeline-fallback b { color: var(--ink); font-weight: 600; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--pad) 36px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--faint);
  font-size: 12px;
}
.site-footer p { margin: 0; }
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ——— Twin drawer (Symbion Cosmo) ——— */
.backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 12, 16, .34);
}
.drawer,
.twin-drawer {
  position: fixed; z-index: 55; top: 0; right: 0;
  width: min(420px, 100%);
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px rgba(10, 10, 10, .12);
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: none; }

.twin-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border-bottom: 0;
  flex: none;
}
.twin-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.twin-back:hover { color: var(--ink); background: rgba(10, 10, 10, .04); }

.twin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  flex: none;
}
.twin-avatar-wrap {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
}
.twin-avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
  background: #f0f1f3;
  border: 1px solid var(--line-soft);
}
.twin-status-dot {
  display: none;
}
.twin-avatar-wrap[data-twin-status="loading"] .twin-status-dot {
  background: var(--faint);
  box-shadow: none;
  animation: twin-pulse 1s ease-in-out infinite;
}
@keyframes twin-pulse {
  0%, 100% { opacity: .45; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1); }
}
.twin-head-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.twin-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.twin-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -.01em;
}
.twin-status-text {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.twin-head:has([data-twin-status="loading"]) .twin-status-text {
  color: var(--faint);
}

.twin-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.twin-chat {
  position: relative;
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 14px 16px 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 92%;
}
.msg.ai { align-self: flex-start; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg-who {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--faint);
  padding: 0 4px;
}
.msg .bubble {
  max-width: 100%;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.msg .bubble p { margin: 0; }
.msg.ai .bubble {
  background: #fff;
  border-color: var(--line-soft);
  color: var(--ink);
  border-radius: 4px 14px 14px 14px;
}
.msg.user .bubble {
  background: var(--ink);
  border-color: transparent;
  color: #fff;
  border-radius: 14px 4px 14px 14px;
}

.twin-compose {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  flex: none;
  padding: 36px 14px 14px;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 250, 0) 0%,
    rgba(250, 250, 250, .12) 45%,
    rgba(250, 250, 250, .22) 100%
  );
  border-top: 0;
  pointer-events: none;
}
.twin-compose .suggest-chips,
.twin-compose .composer,
.twin-compose .twin-powered {
  pointer-events: auto;
}
.suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.suggest-chip {
  border: 1px solid rgba(10, 10, 10, .12);
  background: rgba(255, 255, 255, .22);
  color: var(--muted);
  border-radius: 980px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.suggest-chip:hover {
  color: var(--ink);
  border-color: rgba(10, 10, 10, .2);
  background: rgba(255, 255, 255, .4);
}
.drawer form,
.composer {
  display: grid;
  gap: 8px;
  padding: 0;
}
.composer-box {
  border: 1px solid rgba(10, 10, 10, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  padding: 10px 10px 8px;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .4) inset,
    0 10px 28px rgba(16, 35, 61, .05);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.composer-box:focus-within {
  border-color: rgba(10, 10, 10, .22);
  background: rgba(255, 255, 255, .4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .5) inset,
    0 0 0 3px rgba(10, 10, 10, .05),
    0 10px 28px rgba(16, 35, 61, .06);
}
.drawer textarea,
.composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  border-radius: 8px;
  padding: 4px 6px 8px;
  background: transparent;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  font-family: inherit;
}
.drawer textarea:focus,
.drawer textarea:focus-visible,
.composer textarea:focus,
.composer textarea:focus-visible {
  outline: none;
  box-shadow: none;
}
.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
}
.composer-tools,
.composer-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  flex: none;
}
.composer-actions {
  margin-left: auto;
  gap: 6px;
}
.attach-btn,
.mic-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
  box-sizing: border-box;
  line-height: 0;
  font-size: 0;
  vertical-align: middle;
}
.attach-btn:hover,
.mic-btn:hover:not(:disabled) {
  background: rgba(10, 10, 10, .05);
  color: var(--ink);
}
.mic-btn:disabled {
  opacity: .38;
  cursor: default;
}
.attach-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.attach-btn svg,
.mic-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
  flex: none;
}
.attach-btn .attach-ring {
  opacity: .55;
  transition: opacity .2s ease;
}
.attach-btn:hover .attach-ring {
  opacity: .85;
}
.composer .send-btn,
.drawer form > button.send-btn {
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  border-radius: 980px;
  height: 34px;
  min-height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  margin: 0;
}
.twin-powered {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--faint);
}
.attach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.attach-chips[hidden] { display: none; }
.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 8px 6px 10px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  color: var(--ink-2);
}
.attach-chip b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.attach-chip button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, .08);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  font-size: 12px;
  padding: 0;
}
.msg .bubble .attach-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: .72;
}
.msg .bubble .attach-preview {
  display: block;
  margin-top: 8px;
  max-width: 160px;
  border-radius: 10px;
  overflow: hidden;
}
.msg .bubble .attach-preview img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .twin-drawer { width: 100%; }
  .twin-head {
    margin: 0 12px;
    padding: 14px 14px;
    gap: 12px;
  }
  .twin-avatar-wrap,
  .twin-avatar { width: 48px; height: 48px; }
  .twin-head h2 { font-size: 16px; }
  .msg { max-width: 94%; }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 36px;
  }
  .hero-copy {
    max-width: none;
    justify-self: stretch;
    padding-right: 0;
  }
  .hero-stage { max-width: 360px; margin: 0 auto; order: 0; }
  .hero-grid { margin-left: 0; margin-right: 0; }
  .hero-globe {
    width: min(70vw, 420px);
    height: min(42vh, 380px);
    right: 50%;
    transform: translate(50%, -8%);
    top: auto;
    bottom: 8%;
    opacity: 0.85;
    pointer-events: none;
  }
  .studio-split { grid-template-columns: 1fr; }
  .studio-panel { min-height: 0; }
  .research-split { grid-template-columns: 1fr; }
  .focus-panel,
  .join-panel,
  .studio-panel { min-height: 0; height: auto; }
  .nebula-stage {
    min-height: 320px;
    height: 360px;
    margin: 0 -26px 0;
  }
  .join-action { padding-top: 20px; }
  .join-panel .join-cis {
    white-space: normal;
    font-size: 13px;
    line-height: 1.25;
    padding: 10px 14px;
    min-height: 44px;
  }
  .lab-list li {
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
  }
  .pub-table th:nth-child(3),
  .pub-table td:nth-child(3) {
    display: none;
  }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .menu-button { display: block; }
  .topbar.menu-open nav {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: var(--header);
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px 16px;
    background: rgba(250, 250, 250, .97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }
  .topbar.menu-open nav a { padding: 12px 14px; }
  .hero { padding-bottom: 0; }
  .hero-scroll {
    margin: 28px auto 28px;
  }
  .studio-list a,
  .studio-list .course-entry {
    grid-template-columns: 1fr 18px;
    gap: 8px 10px;
  }
  .studio-list .course-entry > div {
    grid-column: 1;
    grid-row: 1;
  }
  .studio-list time {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    white-space: normal;
    padding-top: 0;
  }
  .studio-list .entry-go {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .lab-list li {
    grid-template-columns: 1fr auto;
  }
  .lab-year {
    grid-column: 1 / -1;
    font-size: 18px;
  }
  .timeline-index { display: none; }
  .timeline-meta { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer { transition: none; }
  .btn, .join-btn, .studio-panel, .lab-list li, [data-reveal] { transition: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .orbit-dot { animation: none; }
  .orbit-ring.r2 { animation: none; }
  .twin-avatar-wrap[data-twin-status="loading"] .twin-status-dot { animation: none; }
}

/* ——— Course rooms (recorded / onsite) ——— */
.course {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) var(--pad) 88px;
}
.course-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
}
.course-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease, gap .25s var(--ease);
}
.course-back-arrow {
  flex: none;
  display: block;
  transition: transform .25s var(--ease);
}
.course-back:hover {
  color: var(--ink);
  gap: 11px;
}
.course-back:hover .course-back-arrow {
  transform: translateX(-3px);
}
.course-back span {
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.course-back:hover span {
  border-bottom-color: rgba(10, 10, 10, .28);
}
.course-mode {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 980px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .7);
}
.course-mode.is-recorded {
  color: var(--steel);
}
.course-mode.is-live {
  color: var(--ink);
  background: rgba(10, 10, 10, .06);
  border-color: rgba(10, 10, 10, .14);
}
.course-mode.is-research {
  color: #1a4064;
  background: rgba(26, 64, 100, .08);
  border-color: rgba(26, 64, 100, .18);
}
.course-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.course-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.14;
}
.course-meta {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  gap: 18px;
  align-items: start;
}
.course-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 55% 40%, rgba(26, 64, 100, .28), transparent 60%),
    linear-gradient(160deg, #101820, #1a4064 55%, #0a0a0a);
  color: #fff;
  display: grid;
  place-items: center;
}
.course-stage.onsite-stage {
  background:
    radial-gradient(ellipse 55% 45% at 40% 35%, rgba(47, 158, 107, .2), transparent 58%),
    linear-gradient(160deg, #0e1620, #16324a 50%, #0a0a0a);
}
.course-play {
  width: 64px; height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease);
}
.course-play:hover { transform: scale(1.05); }
.course-play::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 3px;
}
.course-stage-caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
}
.course-side {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 18px 16px;
  min-height: 100%;
}
.course-side h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.lecture-list,
.session-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.lecture-list a,
.session-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.lecture-list a:hover,
.session-list li.is-next {
  background: rgba(10, 10, 10, .04);
}
.lecture-list a.is-active {
  background: rgba(16, 35, 61, .07);
}
.lecture-list em,
.session-list em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.lecture-list b,
.session-list b {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.015em;
}
.lecture-list span,
.session-list span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.lecture-list time,
.session-list time {
  font-size: 12px;
  color: var(--faint);
}
.course-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.course-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
}
.room-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(26, 64, 100, .05), transparent 70%),
    var(--bg-soft);
}
.room-card strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.room-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.course-layout.onsite-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .7fr);
  gap: 20px;
}
.venue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}
.venue-strip span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.venue-strip b {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.venue-strip em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
.session-board {
  display: grid;
  gap: 14px;
}
.session-now {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(26, 64, 100, .06), transparent 55%),
    var(--surface);
}
.session-now.is-live {
  box-shadow: inset 0 0 0 1px rgba(47, 158, 107, .28);
}
.session-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.session-now h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.22;
}
.session-now > p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 42em;
}
.task-block {
  padding: 18px 18px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
}
.task-block h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.task-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(10, 10, 10, .02);
}
.task-list li.is-done {
  opacity: .62;
}
.task-list em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.task-list span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
.task-check {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 980px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
}
.task-check[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.material-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.material-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-top: 1px solid var(--line-soft);
}
.material-list li:first-child { border-top: 0; }
.material-list em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.text-link {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(10, 10, 10, .2);
  text-underline-offset: 3px;
}
.text-link:hover { text-decoration-color: var(--ink); }
.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.submit-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 980px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
}
.submit-chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.onsite-side .side-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 10, .02);
}
.onsite-side .side-card.soft {
  background: linear-gradient(180deg, rgba(26, 64, 100, .05), transparent 70%);
}
.onsite-side .side-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.onsite-side .side-card p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 900px) {
  .course-layout.onsite-layout { grid-template-columns: 1fr; }
  .task-list li {
    grid-template-columns: 32px 1fr;
  }
  .task-check {
    grid-column: 2;
    justify-self: start;
  }
}

.studio-list .onsite-empty {
  padding: 8px 4px 4px;
  color: var(--muted, #5c5c5c);
  font-size: 15px;
  line-height: 1.5;
}

.roster-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px clamp(1.25rem, 5vw, 5.5rem) 80px;
}
.roster-main h1 {
  margin: 0 0 8px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.roster-lead {
  margin: 0 0 28px;
  max-width: 640px;
  color: #5c5c5c;
  font-size: 16px;
  line-height: 1.5;
}
.roster-list {
  display: grid;
  gap: 10px;
}
.roster-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
}
.roster-row:hover {
  box-shadow: 0 24px 50px rgba(10, 10, 10, 0.08);
}
.roster-row em {
  font-style: normal;
  color: #8a8a8a;
  font-size: 13px;
}
.roster-row b { display: block; font-weight: 600; }
.roster-row span, .roster-row small { color: #5c5c5c; font-size: 14px; }
.roster-row small { display: block; margin-top: 2px; }
@media (max-width: 800px) {
  .roster-row { grid-template-columns: 28px 1fr; }
  .roster-row time { grid-column: 2; }
}
