:root {
  --bg: #050717;
  --bg-glow-core: rgba(255, 255, 255, 0.055);
  --bg-glow-mid: rgba(14, 24, 52, 0.42);
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --accent-surface: #d9d9d9;
  --accent-text: #05070a;
  --font-title: "Instrument Serif", Georgia, serif;
  --font-ui: "Source Serif 4", Georgia, serif;
  --header-block: 6.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg);
  /* Full-bleed gradient (not on .hero — that box is max-width centered and caused a hard edge). */
  background-image: radial-gradient(
    ellipse 140vw min(110vh, 900px) at clamp(8%, 18vw, 24%) clamp(26%, 34vh, 46%),
    var(--bg-glow-core) 0%,
    var(--bg-glow-mid) 38%,
    transparent 72%
  );
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Homepage: alma.jpg under a scroll-driven dark-blue veil (--home-veil → 1 hides image). */
body.page-home {
  --home-veil: 0.85    s;
  background-color: var(--bg);
  background-image: url("alma.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}

body.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Flat veil only — no radial rings over Alma */
  background: rgba(5, 7, 23, var(--home-veil));
}

body.page-home .site-header,
body.page-home main,
body.page-home .site-footer {
  position: relative;
  z-index: 1;
}

main {
  max-width: 100%;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: clamp(1.75rem, 4.5vw, 3.25rem);
  padding: 2.25rem clamp(1.5rem, 5vw, 4rem) 0;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.2vw, 1.95rem);
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.logo:hover {
  opacity: 0.9;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4.5vw, 3.1rem);
}

.nav a,
.nav__dropdown-trigger {
  font-size: clamp(1.08rem, 1.35vw, 1.2rem);
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav__dropdown-trigger:hover,
.nav__dropdown-trigger:focus-visible {
  color: var(--text);
}

.nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__dropdown::after {
  content: "";
  position: absolute;
  left: -0.75rem;
  right: -0.75rem;
  top: 100%;
  height: 0.85rem;
}

.nav__dropdown-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav__dropdown-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
  border-radius: 6px;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -0.75rem;
  min-width: 11.5rem;
  padding: 0.6rem 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  border-radius: 12px;
  background: rgba(8, 11, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(5, 7, 23, 0.6);
  z-index: 50;
}

.nav__dropdown-menu a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: rgba(235, 238, 252, 0.92);
}

.nav__dropdown-menu a:hover,
.nav__dropdown-menu a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  display: flex;
}

.hero {
  --hero-pad-y: clamp(0.75rem, 2.2vh, 1.75rem);
  display: grid;
  /* Single column while carousel is hidden; restore `1fr 1fr` when re-enabling .hero__visual */
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  min-height: calc(100svh - var(--header-block));
  padding: var(--hero-pad-y) clamp(1.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero__content {
  max-width: 36rem;
  /* Nudge title + Join Us slightly above vertical center */
  transform: translateY(clamp(-2.75rem, -5.5vh, -1.5rem));
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.9rem, 6.7vw, 4.95rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  animation: hero-enter 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.hero__title-line {
  display: block;
}

.hero__title-line--single {
  white-space: nowrap;
}

.hero__join {
  margin-top: clamp(1.5rem, 3vh, 2.35rem);
  animation: hero-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

.join-link {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline dotted;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.38em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.join-link:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.95);
}

.join-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
  border-radius: 2px;
}

.hero__visual {
  /* Temporarily hidden — keep markup/JS; set back to `display: flex` to restore carousel */
  display: none;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  position: relative;
  overflow: visible;
  height: min(
    38vh,
    calc(100svh - var(--header-block) - 2 * var(--hero-pad-y) - 13.5rem)
  );
  max-height: min(38vh, calc(100svh - var(--header-block) - 2 * var(--hero-pad-y) - 13.5rem));
}

.arc-carousel {
  width: 100%;
  max-width: min(100%, 580px);
  height: 100%;
  min-height: 180px;
  margin-left: auto;
  overflow: visible;
}

.arc-carousel__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Circle center sits just past the viewport’s right edge so the left arc stays visible. */
.arc-carousel__orbit {
  --orbit-size: min(100vw, 1080px);
  /* Vertical semi-axis as a fraction of horizontal ( < 1 = shorter ellipse, less height ). */
  --orbit-flatten: 0.42;
  --orbit-nudge: 0.15;
  --card-size: clamp(168px, 20vw, 248px);
  position: absolute;
  width: var(--orbit-size);
  height: var(--orbit-size);
  left: 100%;
  top: 50%;
  margin-left: calc(-0.5 * var(--orbit-size) + var(--orbit-nudge) * var(--orbit-size));
  margin-top: calc(-0.5 * var(--orbit-size));
  will-change: transform;
}

.arc-carousel__slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-size);
  height: var(--card-size);
  margin: calc(-0.5 * var(--card-size)) 0 0 calc(-0.5 * var(--card-size));
  transform-origin: center center;
  will-change: transform;
}

.arc-carousel__card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff00;
  border-radius: 16px;
  /* Tinted to match body / radial glow — avoids a flat black halo on navy */
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 6px 20px rgba(5, 7, 23, 0.42),
    0 18px 46px rgba(14, 24, 52, 0.35);
  transform-origin: center center;
}

.arc-carousel__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#features,
#learn,
#support,
#this-week,
#interview-series,
#contact {
  scroll-margin-top: 5.5rem;
}

.this-week,
.interview-series {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 10vw, 6rem);
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.this-week--top {
  border-top: 0;
}


.this-week__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.interview-series__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.interview-series__intro {
  margin: 0.85rem 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2vw, 1.08rem);
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.0);
}

.interview-series__intro a {
  color: var(--text);
  text-decoration: underline dotted;
  text-decoration-color: rgba(0, 0, 0, 0.42);
  text-underline-offset: 0.28em;
}

.interview-series__intro a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.92);
}

.interview-series__feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  align-items: start;
}

.interview-series__item {
  min-width: 0;
}

.interview-series__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.15rem);
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.interview-series__link {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 11, 28, 0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 28px rgba(5, 7, 23, 0.45),
    0 18px 48px rgba(14, 24, 52, 0.22);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.interview-series__link:hover,
.interview-series__link:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 14px 40px rgba(5, 7, 23, 0.55),
    0 24px 56px rgba(14, 24, 52, 0.28);
}

.interview-series__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.interview-series__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background-color: rgba(0, 0, 0, 0.0);
}

/* Caption below the image */
.interview-series__caption {
  margin: 0;
  max-width: 540px;
  width: 100%;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.interview-series__error {
  margin: 1.5rem 0 0;
  font-family: var(--font-ui);
  color: var(--text-muted);
  line-height: 1.5;
}

.interview-series__error a {
  color: var(--text);
}

.this-week__title--dotted {
  text-decoration: underline dotted;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
  cursor: pointer;
  transition: text-decoration-color 0.2s ease;
}

.this-week__title--dotted:hover,
.this-week__title--dotted:focus-visible {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.this-week__title--dotted:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
  border-radius: 2px;
}

.this-week__speaker {
  margin: 0.5rem 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
}

.this-week__meta {
  margin: 1.1rem 0 0;
  max-width: 100%;
  font-family: var(--font-ui);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
}

.this-week__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: min(100%, 52rem);
  margin: 0 auto;
  column-gap: clamp(2.25rem, 8vw, 5rem);
}

.this-week__text {
  min-width: 0;
  max-width: min(24rem, 100%);
  justify-self: end;
  text-align: right;
}

.this-week__figure {
  margin: 0;
  justify-self: start;
}

.this-week--no-image .this-week__inner {
  grid-template-columns: 1fr;
  justify-items: center;
}

.this-week--no-image .this-week__text {
  justify-self: center;
  text-align: center;
  max-width: min(36rem, 100%);
}

.this-week--no-image .this-week__figure {
  display: none;
}

.this-week__photo {
  display: block;
  width: min(260px, 70vw);
  max-width: 260px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  body {
    background-image: radial-gradient(
      ellipse 165vw min(65vh, 520px) at 50% clamp(8%, 16vh, 22%),
      var(--bg-glow-core) 0%,
      var(--bg-glow-mid) 40%,
      transparent 74%
    );
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100svh - var(--header-block));
    max-height: none;
    padding-top: clamp(0.5rem, 1.5vh, 1rem);
  }

  .hero__visual {
    order: -1;
    justify-content: center;
    height: min(32vh, calc(100svh - var(--header-block) - 2 * var(--hero-pad-y) - 15rem));
    max-height: min(32vh, calc(100svh - var(--header-block) - 2 * var(--hero-pad-y) - 15rem));
  }

  .arc-carousel {
    max-width: 100%;
    min-height: 200px;
    margin-left: 0;
  }

  .arc-carousel__orbit {
    --orbit-size: min(100vw, 680px);
    --orbit-flatten: 0.48;
    --orbit-nudge: 0.13;
    --card-size: clamp(132px, 34vw, 168px);
  }

  .hero__title {
    font-size: clamp(2.1rem, 6.4vw, 3.25rem);
  }

  .hero__join {
    margin-top: 2.25rem;
  }

  .join-link {
    font-size: 1.22rem;
  }

  .hero__title-line--single {
    white-space: nowrap;
    letter-spacing: -0.03em;
  }

  .this-week__inner {
    grid-template-columns: 1fr;
    width: 100%;
    row-gap: clamp(1.75rem, 4vw, 2.5rem);
    column-gap: 0;
    justify-items: center;
  }

  .this-week__text {
    max-width: 100%;
    justify-self: center;
    text-align: center;
  }

  .this-week__figure {
    justify-self: center;
  }

  .this-week__photo {
    width: min(240px, 72vw);
    max-width: 240px;
  }
}

@media (max-width: 360px) {
  .hero__title-line--single {
    white-space: normal;
  }
}

.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-footer__text {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.site-footer__text a {
  color: var(--text);
  text-decoration: underline dotted;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 0.28em;
}

.site-footer__text a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.92);
}

.talks {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 10vw, 6rem);
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.talks--top {
  border-top: 0;
  padding-top: clamp(2.25rem, 6vw, 3.25rem);
}

.talks__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pw__lede {
  margin: 1.15rem 0 0;
  max-width: 70ch;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(210, 214, 232, 0.92);
}

.pw__controls {
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: clamp(1rem, 2.5vw, 1.25rem);
  align-items: end;
}

.pw__controls .talks__label,
.pw__controls .talks__select {
  font-size: 1.18rem;
  font-weight: 650;
  color: rgba(245, 246, 255, 0.95);
}

.pw__controls .talks__label {
  padding-left: 0.15rem;
}

.pw__weeks {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.6rem);
}

.pw-week__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pw-week__heading {
  min-width: 0;
  flex: 1 1 14rem;
}

.pw-week__title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: 1.18rem;
  line-height: 1.35;
  color: rgba(245, 246, 255, 0.95);
}

.pw-week__meta {
  margin: 0.4rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(165, 173, 200, 0.95);
}

.pw-week__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pw-week__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 246, 255, 0.95);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.pw-week__btn:hover,
.pw-week__btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.pw-week__btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.leader-feed {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.6rem);
}

.leader-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 1.6rem);
  align-items: stretch;
}

.leader-tile {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  align-items: start;
  border-radius: 16px;
  padding: 0;
  background: rgba(8, 11, 28, 0.5);
  border: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 14px 44px rgba(5, 7, 23, 0.35);
  overflow: hidden;
}

.leader-tile--image-right {
  grid-template-columns: 1fr 160px;
}

.leader-tile--image-right .leader-tile__media {
  order: 2;
}

.leader-tile--image-right .leader-tile__content {
  order: 1;
}

.leader-tile__media {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
}

.leader-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-tile__content {
  min-width: 0;
  padding: 1rem 1.05rem 1.05rem;
}

.leader-tile__role {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: rgba(165, 173, 200, 0.95);
}

.leader-tile__name {
  margin: 0.4rem 0 0;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: 1.35rem;
  line-height: 1.2;
  color: rgba(245, 246, 255, 0.95);
}

.leader-tile__bio {
  margin: 0.8rem 0 0;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(210, 214, 232, 0.9);
}

@media (max-width: 980px) {
  .leader-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .leader-tile,
  .leader-tile--image-right {
    grid-template-columns: 1fr;
  }
  .leader-tile--image-right .leader-tile__media,
  .leader-tile--image-right .leader-tile__content {
    order: initial;
  }
  .leader-tile__media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.leadership-history {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

.leadership-history__title {
  margin: 0;
  /* sizing comes from .talks__title (applied in markup) */
}

.leadership-history__lede {
  margin: 0.85rem 0 0;
  max-width: 70ch;
  font-family: var(--font-ui);
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(210, 214, 232, 0.9);
}

.leadership-history__timeline {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.05rem;
}

.leadership-history__item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1rem;
  align-items: start;
}

.leadership-history__year {
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 238, 252, 0.86);
  padding-top: 0.4rem;
}

.leadership-history__card {
  border-radius: 16px;
  padding: 0.95rem 1.05rem;
  background: rgba(8, 11, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 44px rgba(5, 7, 23, 0.35);
}

.leadership-history__roles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.leadership-history__role {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.leadership-history__role-title {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: rgba(165, 173, 200, 0.95);
}

.leadership-history__role-name {
  font-family: var(--font-ui);
  font-size: 1.08rem;
  color: rgba(235, 238, 252, 0.92);
}

@media (max-width: 640px) {
  .leadership-history__item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .leadership-history__year {
    padding-top: 0;
  }
  .leadership-history__role {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Avoid print-style page-break rules from affecting on-screen layout. */
.page-break,
.pagebreak,
.break-after-page,
.break-before-page {
  break-before: auto;
  break-after: auto;
  page-break-before: auto;
  page-break-after: auto;
}

.talks__controls {
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: clamp(1rem, 2.5vw, 1.25rem);
  align-items: end;
}

.talks__control {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.talks__label {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: rgba(225, 230, 250, 0.78);
  /* Align label text with input text padding */
  padding-left: 0.5rem;
}

.talks__select,
.talks__input,
.talks__tagbtn {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text);
  background: rgba(8, 11, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 10px 26px rgba(5, 7, 23, 0.35);
}

.talks__tagbtn {
  cursor: pointer;
  text-align: left;
}

.talks__select:focus,
.talks__input:focus,
.talks__tagbtn:focus,
.talks__select:focus-visible,
.talks__input:focus-visible,
.talks__tagbtn:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 26px rgba(5, 7, 23, 0.35);
}

.talks__active-tags {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.talk-card__readmore {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(235, 238, 252, 0.9);
  text-decoration: underline dotted;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 0.25em;
}

.talk-card__readmore:hover,
.talk-card__readmore:focus-visible {
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.talk-dialog {
  width: min(760px, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0;
  background: rgba(7, 9, 22, 0.97);
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 70px rgba(0, 0, 0, 0.6);
}

.talk-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.talk-dialog__inner {
  padding: 1.1rem 1.1rem 1.2rem;
}

.talk-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.talk-dialog__title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.35;
  color: rgba(245, 246, 255, 0.95);
}

.talk-dialog__close {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 238, 252, 0.92);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: var(--font-ui);
}

.talk-dialog__meta {
  margin: 0.75rem 0 0;
  font-family: var(--font-ui);
  color: rgba(165, 173, 200, 0.95);
}

.talk-dialog__tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.talk-dialog__abstract {
  margin: 1rem 0 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(210, 214, 232, 0.92);
  white-space: pre-wrap;
}

.talks__tagpill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 238, 252, 0.92);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.talks__feed {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: clamp(1.25rem, 3vw, 1.6rem);
}

.talks__more {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  justify-content: center;
}

.talks__morebtn {
  font-family: var(--font-ui);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 238, 252, 0.92);
}

.talks__morebtn:hover,
.talks__morebtn:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.talks__morebtn:disabled {
  opacity: 0.5;
  cursor: default;
}

.talks__empty {
  margin: 1.2rem 0 0;
  font-family: var(--font-ui);
  color: var(--text-muted);
}

.talk-card {
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  background: rgba(8, 11, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 44px rgba(5, 7, 23, 0.45);
}

.talk-card__title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.35;
  color: rgba(245, 246, 255, 0.95);
}

.talk-card__meta {
  margin: 0.45rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(165, 173, 200, 0.95);
}

.talk-card__abstract {
  margin: 0.85rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(210, 214, 232, 0.9);
}

.talk-card__tags {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.talk-card__tag {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(235, 238, 252, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.tag-dialog {
  width: min(720px, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0;
  background: rgba(7, 9, 22, 0.97);
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 70px rgba(0, 0, 0, 0.6);
}

.tag-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.tag-dialog__inner {
  padding: 1.1rem 1.1rem 1.2rem;
}

.tag-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tag-dialog__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.tag-dialog__close {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 238, 252, 0.92);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: var(--font-ui);
}

.tag-dialog__list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-height: min(50vh, 420px);
  overflow: auto;
  padding: 0.3rem 0.1rem;
}

.tag-dialog__tag {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 238, 252, 0.92);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.tag-dialog__tag[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.tag-dialog__actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.tag-dialog__secondary,
.tag-dialog__primary {
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 1rem;
}

.tag-dialog__secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 238, 252, 0.92);
}

.tag-dialog__primary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(235, 238, 252, 0.9);
  color: rgba(5, 7, 23, 0.95);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__join {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
