:root {
  --page: #f2f5f2;
  --surface: #fbfcf9;
  --surface-deep: #e4ebe7;
  --ink: #4b5a5f;
  --ink-strong: #1f2d31;
  --muted: #66767b;
  --faint: #8b9998;
  --line: rgba(38, 65, 68, 0.16);
  --line-strong: rgba(38, 65, 68, 0.3);
  --blue: #3f7484;
  --cyan: #4f7d72;
  --red: #b65a4a;
  --gold: #c4933f;
  --gold-soft: #9b6f2d;
  --header-bg: rgba(251, 252, 249, 0.91);
  --shadow: 0 18px 44px -22px rgba(31, 55, 58, 0.3);
  --shadow-strong: 0 26px 60px -24px rgba(31, 55, 58, 0.44);
  --max-width: 1180px;
  --display: "Baloo 2", "Arial Rounded MT Bold", sans-serif;
  --sans: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --page: #0f1719;
  --surface: #172124;
  --surface-deep: #1d2b2e;
  --ink: #c2cdca;
  --ink-strong: #edf2ee;
  --muted: #9caaa7;
  --faint: #6d7f7d;
  --line: rgba(237, 242, 238, 0.14);
  --line-strong: rgba(237, 242, 238, 0.28);
  --blue: #79a9b8;
  --cyan: #7fb1a1;
  --red: #d98472;
  --gold: #dab060;
  --gold-soft: #e6c683;
  --header-bg: rgba(23, 33, 36, 0.91);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-strong: 0 28px 64px -20px rgba(0, 0, 0, 0.84);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: #fff;
  background: var(--red);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(16, 25, 27, 0.055) 0.65px, transparent 0.65px);
  background-size: 5px 5px;
  content: "";
  opacity: 0.28;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1;
  text-wrap: balance;
}

.site-header {
  position: fixed;
  top: 18px;
  right: 24px;
  left: 24px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--header-bg);
  color: var(--ink-strong);
  box-shadow: 0 12px 38px rgba(13, 21, 22, 0.1);
  backdrop-filter: blur(20px) saturate(125%);
  transition: top 240ms ease, color 240ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.scrolled,
[data-theme="dark"] .site-header.scrolled {
  top: 12px;
  color: var(--ink-strong);
  border-color: var(--line);
  background: var(--header-bg);
  box-shadow: 0 12px 38px rgba(13, 21, 22, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: 144px;
  height: 34px;
  object-fit: contain;
  filter: none;
}

[data-theme="dark"] .brand img,
[data-theme="dark"] .site-header.scrolled .brand img {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 9px 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.site-header.scrolled .site-nav a {
  color: var(--muted);
}

.site-nav a::after {
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav a.active,
.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a.active {
  color: inherit;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle,
.nav-toggle {
  border: 1px solid rgba(16, 25, 27, 0.15);
  color: inherit;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  border-radius: 999px;
  transition: border-color 220ms ease, background 220ms ease;
}

.site-header.scrolled .theme-toggle,
.site-header.scrolled .nav-toggle {
  border-color: var(--line);
  background: transparent;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 84px;
  height: 42px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.theme-icon {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 760px;
  height: 92vh;
  height: 92svh;
  max-height: 940px;
  padding: 164px max(32px, calc((100% - var(--max-width)) / 2)) 112px;
  overflow: hidden;
  color: #fff;
  background: #081113;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  transform: scale(1.025);
  animation: hero-image 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 12, 0.9) 0%, rgba(5, 13, 15, 0.72) 48%, rgba(5, 13, 15, 0.16) 100%),
    linear-gradient(180deg, rgba(4, 10, 12, 0.28) 0%, rgba(4, 10, 12, 0.12) 42%, rgba(4, 10, 12, 0.75) 100%);
}

.hero-shade::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.12) 50%, transparent calc(50% + 1px));
  content: "";
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  animation: hero-content 850ms 160ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 19px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d2ad8a;
}

h1 {
  max-width: 1180px;
  margin-bottom: 27px;
  font-size: clamp(3.7rem, 6.2vw, 6.6rem);
  line-height: 0.96;
}

h1 span {
  color: #e6c683;
}

.hero-dek {
  max-width: 590px;
  margin-bottom: 0;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: inherit;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.button::after {
  margin-left: 14px;
  content: "\2197";
  font-size: 0.9rem;
  font-weight: 400;
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary:hover {
  background: #7e2f37;
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.12);
}

.hero-aside {
  position: absolute;
  right: max(32px, calc((100% - var(--max-width)) / 2));
  bottom: 120px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
  padding: 0 max(32px, calc((100% - var(--max-width)) / 2));
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue i {
  display: block;
  width: 40px;
  height: 1px;
  background: currentColor;
  transition: width 220ms ease;
}

.scroll-cue:hover i {
  width: 58px;
}

.summary-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max-width), calc(100% - 48px));
  margin: -38px auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.summary-item {
  display: flex;
  min-height: 122px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 30px;
}

.summary-item + .summary-item {
  border-left: 1px solid var(--line);
}

.summary-item strong {
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.summary-item span {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 128px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.tutorial-intro h2 {
  margin-bottom: 16px;
  color: var(--ink-strong);
  font-size: clamp(2.7rem, 4.7vw, 4.45rem);
}

.section-heading p,
.tutorial-intro p {
  color: var(--muted);
}

.program-section {
  position: relative;
  width: min(var(--max-width), calc(100% - 48px));
  margin-top: 112px;
  margin-bottom: 112px;
  padding: 60px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cyan) 6%, var(--surface)), var(--surface) 48%, color-mix(in srgb, var(--gold) 5%, var(--surface)));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.program-section::before {
  position: absolute;
  top: -210px;
  right: -170px;
  width: 460px;
  height: 460px;
  border: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 72px color-mix(in srgb, var(--gold) 3%, transparent);
  content: "";
  pointer-events: none;
}

.program-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
}

.program-copy .section-kicker {
  color: var(--gold);
}

.program-copy h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(3.1rem, 5vw, 4.9rem);
  white-space: nowrap;
}

.program-counts {
  display: flex;
  flex: 0 0 auto;
  gap: 34px;
  padding-bottom: 7px;
}

.program-counts span {
  display: flex;
  flex-direction: column;
  min-width: 86px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.program-counts strong {
  margin-bottom: 7px;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.program-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.program-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px 105px minmax(0, 1fr) 20px;
  gap: 18px;
  align-items: center;
  min-height: 154px;
  padding: 26px 28px;
  transition: background 240ms ease;
}

.program-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.program-row:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.program-row::after {
  justify-self: end;
  color: var(--faint);
  content: "\2198";
  font-family: var(--display);
  font-size: 1.05rem;
  transition: color 220ms ease, transform 220ms ease;
}

.program-row:hover {
  background: color-mix(in srgb, var(--cyan) 6%, transparent);
}

.program-row:hover::after {
  color: var(--gold);
  transform: translate(3px, 3px);
}

.program-marker {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 62%, var(--line));
  border-radius: 50%;
}

.program-marker::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.tutorial-entry .program-marker {
  border-color: color-mix(in srgb, var(--gold) 68%, var(--line));
}

.tutorial-entry .program-marker::after {
  background: var(--gold);
}

.program-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.program-meta span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.program-meta em {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-style: normal;
}

.tutorial-entry .program-meta em {
  color: var(--gold);
}

.program-main strong {
  display: block;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1.48rem;
  font-weight: 700;
}

.program-main p {
  max-width: 420px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.people-section {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100% - var(--max-width)) / 2));
  padding-left: max(24px, calc((100% - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 52%, transparent);
}

.people-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.person-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 6px 4px 18px;
  text-align: center;
  transition: transform 240ms ease;
}

.person-card:hover {
  transform: translateY(-7px);
}

.person-card img {
  display: block;
  width: min(176px, 82%);
  aspect-ratio: 1;
  margin-bottom: 22px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  background: var(--surface-deep);
  box-shadow:
    0 18px 44px rgba(16, 25, 27, 0.14),
    0 0 0 1px var(--line);
  filter: saturate(0.82) contrast(1.02);
  transition: filter 300ms ease;
}

.person-card:hover img {
  filter: saturate(1) contrast(1);
}

.person-card strong {
  display: block;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
}

.people-section .section-heading {
  max-width: 1100px;
}

.people-section .section-heading h2 {
  font-size: clamp(2.4rem, 3.4vw, 3.35rem);
  white-space: nowrap;
}

.people-intro > p:not(.section-kicker) {
  max-width: 680px;
  margin: 0 auto 8px;
  color: var(--muted);
}

.lab-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  color: var(--ink-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lab-link::after {
  content: "\2197";
  color: var(--gold);
  font-family: var(--display);
}

.person-card span,
.person-card small {
  display: block;
}

.person-card span {
  margin-top: 7px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.person-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.papers-section {
  padding-bottom: 144px;
}

.papers-section .section-heading {
  max-width: 1100px;
}

.papers-section .section-heading h2 {
  font-size: clamp(2.4rem, 3.4vw, 3.35rem);
  white-space: nowrap;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.paper-card {
  --accent: var(--blue);
  position: relative;
  display: flex;
  grid-column: span 6;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.paper-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  content: "";
}

.paper-card:hover {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.accent-cyan { --accent: var(--cyan); }
.accent-gold { --accent: var(--gold); }
.accent-red { --accent: var(--red); }

.paper-card.featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  grid-template-rows: auto auto auto 1fr auto;
  grid-template-areas:
    "visual topline"
    "visual title"
    "visual topic"
    "visual authors"
    "visual links";
  column-gap: 36px;
}

.paper-visual {
  position: relative;
  height: auto;
  aspect-ratio: 1.67;
  margin-bottom: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-deep);
  overflow: hidden;
}

.paper-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  content: "";
  pointer-events: none;
}

.paper-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.paper-card:hover .paper-visual img {
  transform: none;
}

.paper-teaser {
  padding: 16px;
}

.paper-teaser img {
  object-fit: contain;
}

.featured .paper-visual {
  grid-area: visual;
  height: 100%;
  min-height: 300px;
  margin: 0;
}

.featured .paper-teaser {
  padding: 12px;
}

.featured .paper-topline {
  grid-area: topline;
  margin-bottom: 12px;
}

.featured h3 {
  grid-area: title;
  margin-bottom: 9px;
  font-size: 1.7rem;
}

.featured .paper-topic {
  grid-area: topic;
  margin-bottom: 12px;
}

.featured .authors {
  grid-area: authors;
  padding-top: 14px;
  line-height: 1.5;
}

.featured .link-row {
  grid-area: links;
  margin-top: 14px;
}

.paper-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}

.paper-index {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.paper-tag,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.paper-card h3 {
  margin-bottom: 13px;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.paper-topic {
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.authors {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.authors a {
  color: var(--ink-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 9px;
  color: var(--ink-strong);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.figure-source {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 35, 39, 0.76);
  box-shadow: 0 6px 18px rgba(14, 30, 33, 0.18);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.link-row a:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.tutorial-section {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 132px max(24px, calc((100% - var(--max-width)) / 2));
  color: #fff;
  background: #0f191c;
  overflow: hidden;
}

.tutorial-section::before {
  position: absolute;
  top: -240px;
  right: -160px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(199, 155, 118, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(199, 155, 118, 0.025), 0 0 0 180px rgba(199, 155, 118, 0.018);
  content: "";
}

.tutorial-section .section-kicker {
  color: #cda37f;
}

.tutorial-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 80px;
  align-items: start;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.tutorial-intro h2 {
  max-width: 720px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(2.7rem, 4.4vw, 4.5rem);
}

.tutorial-lede {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.96rem;
  line-height: 1.75;
}

.tutorial-facts {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.3fr;
  margin: 36px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tutorial-facts div {
  min-width: 0;
  padding: 19px 18px 19px 0;
}

.tutorial-facts div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.tutorial-facts dt,
.tutorial-facts dd {
  margin: 0;
}

.tutorial-facts dt,
.tutorial-label {
  color: #cda37f;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tutorial-facts dd {
  margin-top: 6px;
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.tutorial-label {
  margin-bottom: 18px;
}

.tutorial-topics {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tutorial-topics > .tutorial-label {
  padding-top: 20px;
}

.tutorial-topics article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tutorial-topics article:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tutorial-topics article > span {
  color: #cda37f;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.1;
}

.tutorial-topics h3,
.schedule-heading h3 {
  margin: 0 0 7px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.25;
}

.tutorial-topics p,
.schedule-heading > p:not(.tutorial-label) {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.65;
}

.tutorial-schedule {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: 72px;
  width: min(var(--max-width), 100%);
  margin: 84px auto 0;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.schedule-heading h3 {
  max-width: 300px;
  margin-bottom: 14px;
  font-size: 2rem;
}

.tutorial-schedule ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tutorial-schedule li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.tutorial-schedule time {
  color: #cda37f;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.tutorial-schedule li > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.tutorial-schedule strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.35;
}

.tutorial-schedule li span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  text-align: right;
}

.tutorial-schedule .schedule-break strong,
.tutorial-schedule .schedule-break time {
  color: rgba(255, 255, 255, 0.56);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 52px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  font-weight: 700;
}

.site-footer img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-footer p {
  max-width: 580px;
  margin: 0;
  text-align: right;
}

.site-footer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-image {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.025); }
}

@keyframes hero-content {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .program-section {
    padding: 52px;
  }

  .program-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .people-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 18px;
  }

  .tutorial-header {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .tutorial-topics {
    max-width: 760px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .people-section .section-heading h2 {
    white-space: normal;
  }

  .papers-section .section-heading h2 {
    white-space: normal;
  }

  .program-board {
    grid-template-columns: 1fr;
  }

  .program-row:nth-child(odd) {
    border-right: 0;
  }

  .program-row:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .program-row:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    color: var(--ink-strong);
    background: var(--header-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .site-header.open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-header.scrolled .site-nav a {
    padding: 12px 14px;
    color: var(--ink);
  }

  .site-nav a::after {
    display: none;
  }

  .hero-content {
    width: 90%;
  }

  .hero-aside {
    display: none;
  }

  .paper-card,
  .paper-card.featured {
    display: flex;
    grid-column: 1 / -1;
  }

  .featured .paper-visual {
    height: 280px;
    min-height: 0;
    margin-bottom: 25px;
  }

  .featured h3 {
    font-size: 1.48rem;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-header {
    top: 12px;
    right: 12px;
    left: 12px;
    width: calc(100% - 24px);
    min-height: 62px;
    padding: 8px 9px 8px 14px;
  }

  .brand img {
    width: 116px;
    height: 30px;
  }

  .theme-toggle {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero {
    align-items: flex-start;
    min-height: 670px;
    height: 88svh;
    max-height: 760px;
    padding: 128px 20px 70px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(4, 10, 12, 0.88), rgba(4, 10, 12, 0.5)), linear-gradient(180deg, rgba(4, 10, 12, 0.2), rgba(4, 10, 12, 0.82));
  }

  .hero-shade::after,
  .scroll-cue {
    display: none;
  }

  .hero-content {
    width: 100%;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.4rem, 10.5vw, 3rem);
    line-height: 1.04;
  }

  .hero-dek {
    max-width: 90%;
    font-size: 0.9rem;
  }

  .hero-actions,
  .link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .link-row a,
  .status-chip {
    width: 100%;
    justify-content: center;
  }

  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
    width: calc(100% - 24px);
    margin-top: -26px;
  }

  .summary-item {
    min-height: 104px;
    padding: 18px;
  }

  .summary-item:nth-child(3) {
    border-left: 0;
  }

  .summary-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .summary-item strong {
    font-size: 1.8rem;
  }

  .section {
    width: calc(100% - 32px);
    padding: 88px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .tutorial-intro h2 {
    font-size: 2.55rem;
  }

  .program-section {
    width: calc(100% - 24px);
    margin-top: 72px;
    margin-bottom: 72px;
    padding: 36px 22px;
  }

  .program-copy {
    padding-bottom: 34px;
  }

  .program-copy h2 {
    font-size: 2.45rem;
    white-space: normal;
  }

  .program-counts {
    gap: 24px;
  }

  .program-row {
    grid-template-columns: 28px 1fr 20px;
    gap: 12px;
    min-height: 0;
    padding: 24px 16px;
  }

  .program-row:hover {
    padding: 24px 16px;
  }

  .program-marker {
    align-self: start;
    width: 22px;
    height: 22px;
    margin-top: 2px;
  }

  .program-meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }

  .program-main {
    grid-column: 2;
  }

  .program-row::after {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .people-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .people-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 12px;
  }

  .person-card img {
    margin-bottom: 14px;
  }

  .person-card strong {
    font-size: 1.05rem;
  }

  .paper-grid {
    gap: 16px;
  }

  .paper-card {
    padding: 20px;
  }

  .paper-visual,
  .featured .paper-visual {
    height: 190px;
  }

  .tutorial-section {
    padding: 88px 16px;
  }

  .tutorial-header {
    gap: 40px;
  }

  .tutorial-facts {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .tutorial-facts div {
    padding: 16px 0;
  }

  .tutorial-facts div + div {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .tutorial-topics article {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .tutorial-schedule {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 62px;
    padding-top: 38px;
  }

  .tutorial-schedule li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .tutorial-schedule li > div {
    flex-direction: column;
    gap: 3px;
  }

  .tutorial-schedule li span {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 32px);
  }

  .site-footer p {
    text-align: left;
  }
}

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