/* ─────────────────────────────────────────────────────────────────────────
   Conference site styles. Colours come from conference.config.js (theme).
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --accent: #c4161c;
  --ink: #0d2531;
  --sky: #1f6f86;
  --glow: #f2b441;

  --paper: #f3f6f7;
  --surface: #ffffff;
  --wash: #e6eef1;
  --line: #d6e0e4;
  --muted: #52636d;
  --on-dark: rgba(255, 255, 255, 0.72);
  --line-dark: rgba(255, 255, 255, 0.16);

  --display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display-weight: 600;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.wrap {
  width: min(1300px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.icon {
  display: inline-flex;
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Plain static copy of the content: shown only when JavaScript is off. */
.js #static {
  display: none;
}

#static {
  width: min(760px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-block: 3rem;
}

#static h1,
#static h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--display);
  line-height: 1.2;
}

#static p,
#static ul,
#static table {
  margin-bottom: 0.9rem;
}

#static ul {
  padding-left: 1.2rem;
  list-style: disc;
}

#static th,
#static td {
  padding: 0.3rem 1rem 0.3rem 0;
  text-align: left;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ── buttons and links ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s,
    color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px var(--accent);
}

.btn--primary:hover {
  box-shadow: 0 16px 30px -12px var(--accent);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.text-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: text-underline-offset 0.25s var(--ease);
}

/* Standalone links get a taller tap area without shifting the layout. */
.venue__info .text-link,
.footer .text-link {
  display: inline-block;
  padding-block: 0.45rem;
  margin-block: -0.2rem;
}

.text-link:hover {
  text-underline-offset: 0.38em;
}

.text-link--light {
  color: #fff;
}

/* ── navigation ────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  transition: background-color 0.4s, box-shadow 0.4s, color 0.4s;
}

.nav.is-solid {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

/* Both logos share one height and sit straight on the header, no white tile.
   The conference logo has two versions: the original for the white header and a
   lighter one for the dark hero and the open phone menu. */
.nav__logo,
.nav__conf-logo {
  height: 2.75rem;
  width: auto;
}

/* The institute mark fills its whole box, while the conference lettering only
   fills the middle of its box (leaves above, tagline below). Equal boxes made
   the mark look far bigger, so it is scaled to sit level with the lettering. */
.nav__logo {
  height: 2.05rem;
}

.nav__conf-logo--light-bg:not(.is-tiled),
.nav.is-solid:not(.is-open) .nav__conf-logo--dark-bg {
  display: none;
}

.nav.is-solid:not(.is-open) .nav__conf-logo--light-bg {
  display: block;
}

/* No dark-background version supplied: fall back to a white tile. */
.nav__conf-logo.is-tiled {
  padding: 0.25rem 0.55rem;
  background: #fff;
  border-radius: 10px;
}

.nav__name {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__menu {
  --nav-gap: clamp(0.9rem, 1.8vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.nav__link {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-current::after {
  transform: scaleX(1);
}

.nav.is-solid .nav__link.is-current {
  color: var(--accent);
}

.nav__cta {
  min-height: 2.6rem;
  padding: 0.5rem 1.3rem;
  font-size: 0.95rem;
}

/* Wide layout only: the header Register button folds away while the hero's
   Register button is visible, then opens again once that one scrolls off. */
@media (min-width: 1100px) {
  .nav__cta {
    max-width: 9rem;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.5s var(--ease), padding 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.3s,
      visibility 0s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }

  .nav.is-cta-tucked .nav__cta {
    max-width: 0;
    padding-inline: 0;
    margin-left: calc(-1 * var(--nav-gap));
    border-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-width 0.5s var(--ease), padding 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.25s,
      visibility 0s 0.5s;
  }
}

.nav__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav__toggle .icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.6rem;
  height: 1.6rem;
  transition: opacity 0.25s, transform 0.4s var(--ease);
}

.nav__toggle .icon:last-child {
  opacity: 0;
  transform: rotate(-90deg);
}

.nav.is-open .nav__toggle .icon:first-child {
  opacity: 0;
  transform: rotate(90deg);
}

.nav.is-open .nav__toggle .icon:last-child {
  opacity: 1;
  transform: none;
}

@media (max-width: 1099px) {
  .nav__toggle {
    display: block;
  }

  .nav.is-open {
    color: #fff;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem;
    background: var(--ink);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity 0.35s, visibility 0s 0.35s;
  }

  .nav.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s;
  }

  .nav__menu > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s;
  }

  .nav.is-open .nav__menu > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    transition-delay: calc(var(--i, 0) * 45ms + 90ms);
  }

  .nav__link {
    font-family: var(--display);
    font-weight: var(--display-weight);
    font-size: clamp(1.7rem, 7vw, 2.3rem);
    line-height: 1.25;
  }

  .nav__link.is-current,
  .nav.is-solid .nav__link.is-current {
    color: var(--glow);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 1.25rem;
    min-height: 3rem;
    padding-inline: 1.8rem;
    font-size: 1rem;
  }
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  min-height: max(100svh, 40rem);
  color: #fff;
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.09);
  transition: transform 2.6s var(--ease);
}

.is-ready .hero__media img {
  transform: none;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--ink) 86%, transparent) 0%,
      color-mix(in srgb, var(--ink) 58%, transparent) 34%,
      color-mix(in srgb, var(--ink) 8%, transparent) 60%,
      color-mix(in srgb, var(--ink) 70%, transparent) 100%
    );
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 6vh, 4.5rem));
  padding-bottom: clamp(1.25rem, 3.5vh, 2.5rem);
}

.hero__text {
  max-width: 50rem;
}

.hero__kind {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 500;
  color: var(--glow);
  margin-bottom: 1rem;
}

.hero__title {
  /* The hero title keeps the original display face; everything else uses --display. */
  font-family: "Gloock", var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.word__in {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 90ms + 200ms);
}

.is-ready .word__in {
  transform: none;
}

.hero__tagline {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: balance;
  text-shadow: 0 1px 18px color-mix(in srgb, var(--ink) 75%, transparent);
}

.hero__kind,
.hero__tagline,
.hero__bar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.is-ready .hero__kind,
.is-ready .hero__tagline,
.is-ready .hero__bar {
  opacity: 1;
  transform: none;
}

.is-ready .hero__kind {
  transition-delay: 0.1s;
}

.is-ready .hero__tagline {
  transition-delay: 0.65s;
}

.is-ready .hero__bar {
  transition-delay: 0.9s;
}

.hero__bar {
  margin-top: auto;
  display: grid;
  gap: 1.25rem 2.5rem;
  align-items: center;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.1rem, 2.6vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ink) 62%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero__date,
.hero__place {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.hero__date {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.5rem;
  line-height: 1.2;
}

.hero__date .icon,
.hero__place .icon {
  color: var(--glow);
}

.hero__place {
  margin-top: 0.3rem;
}

.hero__note {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--on-dark);
}

.hero__next-label {
  font-size: 0.9rem;
  color: var(--on-dark);
  margin-bottom: 0.5rem;
}

.count {
  display: flex;
  gap: 0.5rem;
}

.count__unit {
  min-width: 3.6rem;
  padding: 0.45rem 0.4rem 0.4rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.count__num {
  display: block;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.6rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.count__lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--on-dark);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .hero__bar {
    grid-template-columns: auto auto 1fr;
  }

  .hero__cta {
    justify-content: flex-end;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero__bar {
    grid-template-columns: 1fr 1fr;
  }

  .hero__cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  .count__unit {
    flex: 1;
    min-width: 0;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
  }
}

/* ── sections ──────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section__intro {
  margin-top: 0.9rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

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

/* about */

.about__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.about__copy {
  max-width: 100ch;
}

/* Calm reading text: one typeface, regular weight, generous line spacing and
   whole words only (no hyphen breaks). Justified where lines are long enough
   to stay even; left-aligned on phones, where justifying opens wide gaps. */
.about__copy p {
  line-height: 1.75;
}

.about__copy p + p {
  margin-top: 1.25rem;
}

.about__lead {
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
}

.about__copy p:not(.about__lead) {
  color: color-mix(in srgb, var(--ink) 82%, var(--paper));
}

@media (min-width: 700px) {
  .about__copy p {
    text-align: justify;
  }
}

.facts {
  align-self: start;
  padding: 0.5rem clamp(1.25rem, 2.5vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facts__row {
  padding-block: 1.05rem;
}

.facts__row + .facts__row {
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.875rem;
  color: var(--muted);
}

.facts dd {
  margin-top: 0.1rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
}

/* about: objectives, audience */

.about__blocks {
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.about__block-title,
.sub__must-title {
  margin-bottom: 0.8rem;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.2;
}

.about__block p {
  max-width: 62ch;
}

.ticks {
  display: grid;
  gap: 0.6rem;
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.45;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.42em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

@media (min-width: 900px) {
  .about__blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* dates */

.dates {
  background: var(--ink);
  color: #fff;
}

.dates .section__intro {
  color: var(--on-dark);
}

.timeline {
  display: grid;
}

.timeline__item {
  position: relative;
  padding: 0 0 2.25rem 2.25rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before,
.timeline__item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.6rem;
  bottom: -0.6rem;
  width: 2px;
  background: var(--line-dark);
}

.timeline__item:last-child::before,
.timeline__item:last-child::after {
  display: none;
}

.timeline__item::after {
  background: var(--glow);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1s var(--ease) 0.35s;
}

.timeline__item.is-past.is-in::after {
  transform: none;
}

.timeline__dot {
  position: absolute;
  left: 0;
  top: 0.55rem;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: var(--ink);
}

.is-past .timeline__dot {
  border-color: var(--glow);
  background: var(--glow);
}

.is-next .timeline__dot {
  border-color: var(--glow);
  background: var(--glow);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--glow) 60%, transparent);
  }
  100% {
    box-shadow: 0 0 0 14px transparent;
  }
}

.timeline__date {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.timeline__label {
  margin-top: 0.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.timeline__note {
  font-size: 0.9rem;
  color: var(--on-dark);
}

.timeline__status {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
}

.is-next .timeline__status {
  background: var(--glow);
  color: var(--ink);
}

.is-past .timeline__date,
.is-past .timeline__label {
  opacity: 0.6;
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    row-gap: 2.75rem;
  }

  .timeline__item {
    padding: 2.4rem 1.5rem 0 0;
  }

  .timeline__item::before,
  .timeline__item::after {
    left: 0;
    right: 0;
    top: 6px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .timeline__item:last-child::before {
    display: block;
    right: auto;
    width: 3rem;
    background: linear-gradient(90deg, var(--line-dark), transparent);
  }

  .timeline__item::after {
    transform: scaleX(0);
    transform-origin: 0 50%;
  }

  .timeline__dot {
    top: 0;
  }
}

/* tracks */

.tracks__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.track {
  min-width: 0;
}

.track__name,
.topic,
.section__title,
.hero__title {
  overflow-wrap: break-word;
}

.track__btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.35s, border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.track__btn:hover {
  border-color: var(--tc);
  transform: translateX(4px);
}

.track.is-active .track__btn {
  border-color: var(--tc);
  background: color-mix(in srgb, var(--tc) 9%, var(--surface));
  box-shadow: inset 4px 0 0 var(--tc);
  transform: none;
}

.track__num {
  flex: none;
  min-width: 2.4ch;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--tc);
}

.track__name {
  flex: 1;
  font-weight: 600;
  line-height: 1.3;
}

.track__count {
  flex: none;
  min-width: 2rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tc) 12%, transparent);
  color: var(--tc);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.track__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.track.is-active .track__panel {
  grid-template-rows: 1fr;
}

.track__inner {
  min-height: 0;
  overflow: hidden;
}

.track__card {
  padding: 1.1rem 0.4rem 1rem 1.15rem;
}

.track__eyebrow,
.track__title {
  display: none;
}

.topics {
  display: grid;
  gap: 0.6rem 2rem;
}

.topic {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.4;
}

.topic::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tc);
  transform: rotate(45deg);
}

.track.is-active .topic {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--k) * 28ms + 80ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (min-width: 900px) {
  .tracks__grid {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    grid-template-rows: repeat(var(--n), auto) 1fr;
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
  }

  .track {
    display: contents;
  }

  .track__btn {
    grid-column: 1;
    grid-row: var(--row);
  }

  /* Only the open panel takes up space, so the box is as tall as its own list. */
  .track__panel {
    display: none;
    grid-column: 2;
    grid-row: 1 / -1;
    grid-template-rows: 1fr;
    align-self: start;
  }

  .track.is-active .track__panel {
    display: grid;
    animation: panel-in 0.45s var(--ease) both;
  }

  @keyframes panel-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }

  .track__card {
    padding: clamp(1.6rem, 3vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--tc);
    border-radius: var(--radius);
  }

  .track__eyebrow {
    display: block;
    font-weight: 600;
    color: var(--tc);
  }

  .track__title {
    display: block;
    margin: 0.2rem 0 1.5rem;
    font-family: var(--display);
    font-weight: var(--display-weight);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.15;
    text-wrap: balance;
  }
}

@media (min-width: 1100px) {
  .topics {
    grid-template-columns: 1fr 1fr;
  }
}

/* submission */

.submission {
  background: var(--surface);
}

.sub__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.sub__rule {
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.sub__rule:first-child {
  border-top: 1px solid var(--line);
}

.sub__rule dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.sub__rule dd {
  margin-top: 0.15rem;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.25;
}

.sub__send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.25rem;
  margin-top: 2rem;
}

.sub__email {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sub__must {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--wash);
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .sub__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

/* speakers */

.speakers {
  background: var(--wash);
}

.pending {
  max-width: 40rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1.5px dashed color-mix(in srgb, var(--sky) 55%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.pending__dots {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.pending__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  animation: bob 1.4s ease-in-out infinite;
}

.pending__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.pending__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bob {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.45;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.pending__title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

.pending__note {
  margin-top: 0.5rem;
  color: var(--muted);
}

.speakers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 2rem 1.5rem;
}

.speaker__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  transition: transform 0.6s var(--ease);
}

.speaker:hover .speaker__photo {
  transform: translateY(-4px);
}

.speaker__photo--blank {
  display: grid;
  place-items: center;
  background: var(--sky);
  color: #fff;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 2.6rem;
}

.speaker__name {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.3rem;
  line-height: 1.2;
}

.speaker__aff {
  color: var(--muted);
  font-size: 0.95rem;
}

.speaker__topic {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* committee */

.group + .group {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.group__title {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

.group__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0 2rem;
}

.member {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.member__name {
  font-weight: 600;
}

.member__note,
.member__role {
  font-size: 0.9rem;
  color: var(--muted);
}

.member--photo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member__photo {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--wash);
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.member__text {
  min-width: 0;
}

.group--featured .group__list {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.group--featured .member--photo {
  gap: 1.15rem;
}

.group--featured .member__photo {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 14px;
}

.group--featured .member--photo:hover .member__photo img {
  transform: scale(1.06);
}

@media (min-width: 640px) {
  .group--featured .group__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* People with a portrait get a wider plate than those without. */
@media (min-width: 1000px) {
  .group--featured .group__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .group--featured .member {
    grid-column: span 3;
  }

  .group--featured .member--photo {
    grid-column: span 2;
  }
}

.group--featured .member {
  padding: 1.25rem 1.3rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 4px 4px 16px 16px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), opacity 0.8s var(--ease);
}

.group--featured .member.is-in:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -22px color-mix(in srgb, var(--ink) 70%, transparent);
  transition-delay: 0s;
}

.group--featured .member__role {
  font-weight: 600;
  color: var(--accent);
}

.group--featured .member__name {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.35rem;
  line-height: 1.2;
}

/* registration */

.registration {
  background: var(--surface);
}

.reg__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.fee {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.fee:first-child {
  border-top: 1px solid var(--line);
}

.fee__cat {
  font-size: 1.1rem;
  font-weight: 500;
}

.fee__cat small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

.fee__amt {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
  white-space: nowrap;
}

.feetable {
  width: 100%;
  border-collapse: collapse;
}

.feetable th,
.feetable td {
  padding: 1rem 0 1rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: baseline;
}

.feetable th:first-child {
  padding-left: 0;
  text-align: left;
}

.feetable thead th {
  padding-block: 0 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: bottom;
}

.feetable thead small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
}

.feetable tbody th {
  font-size: 1.05rem;
  font-weight: 500;
}

.feetable .fee__amt {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
}

.fee__cur {
  margin-right: 0.12em;
  font-family: var(--body);
  font-size: 0.72em;
  font-weight: 500;
}

.reg__note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
  margin-block: 2rem;
}

.step {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.step::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.pay {
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--ink);
  color: #fff;
}

.pay__title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 1.4rem;
}

.pay__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.pay__qr {
  flex: none;
  width: 11rem;
  height: 11rem;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  padding: 0.25rem;
}

.pay__qr--blank {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  text-align: center;
  font-weight: 600;
  line-height: 1.25;
}

.pay__qr--blank small {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--on-dark);
}

.pay__upi {
  flex: 1 1 12rem;
  min-width: 0;
}

.pay__k {
  font-size: 0.85rem;
  color: var(--on-dark);
}

.pay__v {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pay__v--big {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.bank__row {
  padding-block: 0.8rem;
}

.bank__row + .bank__row {
  border-top: 1px solid var(--line-dark);
}

.bank__row:last-child {
  padding-bottom: 0;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.12);
}

.copy.is-done {
  background: var(--glow);
  border-color: var(--glow);
  color: var(--ink);
}

.copy__icons {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.copy__icons .icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s, transform 0.35s var(--ease);
}

.copy__icons .icon:last-child,
.copy.is-done .copy__icons .icon:first-child {
  opacity: 0;
  transform: scale(0.4);
}

.copy.is-done .copy__icons .icon:last-child {
  opacity: 1;
  transform: none;
}

@media (min-width: 900px) {
  .reg__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* venue */

.venue__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.venue__name {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

.venue__addr {
  margin: 0.5rem 0 0.8rem;
  color: var(--muted);
  max-width: 36ch;
}

.reach {
  display: grid;
  gap: 1.3rem;
  margin-top: 2.25rem;
}

.reach__item {
  display: flex;
  gap: 1rem;
}

.reach__item .icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: var(--wash);
  color: var(--sky);
}

.reach__title {
  font-weight: 600;
}

.reach__text {
  color: var(--muted);
  font-size: 0.975rem;
}

.venue__map {
  min-height: 20rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--wash);
}

.venue__map {
  position: relative;
}

.venue__map-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  animation: breathe 1.6s ease-in-out infinite;
}

.venue__map.is-loaded .venue__map-wait {
  display: none;
}

@keyframes breathe {
  50% {
    opacity: 0.45;
  }
}

.venue__map iframe {
  position: relative;
  opacity: 0;
  transition: opacity 0.6s;
}

.venue__map.is-loaded iframe {
  opacity: 1;
}

.venue__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  border: 0;
}

@media (min-width: 900px) {
  .venue__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .venue__map,
  .venue__map iframe {
    min-height: 28rem;
  }
}

/* contact */

.contact {
  background: var(--ink);
  color: #fff;
}

.contact .section__intro {
  color: var(--on-dark);
}

.contact__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact__item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.35s var(--ease);
}

.contact__item .icon {
  color: var(--glow);
  transition: color 0.3s;
}

.contact__item:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

.contact__item:hover .icon {
  color: var(--accent);
}

/* footer */

.footer {
  background: color-mix(in srgb, var(--ink) 88%, #000);
  color: var(--on-dark);
  font-size: 0.95rem;
}

.footer__row {
  display: grid;
  gap: 1.75rem;
  padding-block: 2.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__logo {
  height: 3rem;
  width: auto;
}

.footer__brand > .footer__logo:first-child {
  height: 2.25rem;
}

.footer__logo--tiled {
  padding: 0.35rem 0.65rem;
  background: #fff;
  border-radius: 12px;
}

.footer__name {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fff;
}

.footer__meta {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  max-width: 44ch;
}

.footer__copy {
  font-size: 0.85rem;
}

@media (min-width: 800px) {
  .footer__row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ── very narrow screens (folded phones, about 280px wide) ─────────────── */

.track__name,
.member__text {
  min-width: 0;
}

@media (max-width: 359px) {
  :root {
    --gutter: 1rem;
  }

  .nav__brand {
    gap: 0.45rem;
  }

  .nav__conf-logo {
    height: 2.1rem;
  }

  .nav__logo {
    height: 1.6rem;
  }

  .track__btn {
    gap: 0.6rem;
    padding: 0.85rem 0.8rem;
  }

  .track__count {
    display: none;
  }

  .group--featured .member--photo {
    flex-direction: column;
    align-items: flex-start;
  }

  .count {
    gap: 0.3rem;
  }

  .feetable th,
  .feetable td {
    padding-left: 0.5rem;
  }

  .feetable tbody th {
    font-size: 0.95rem;
  }
}

/* ── reduced motion ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .word__in,
  .hero__media img,
  .hero__kind,
  .hero__tagline,
  .hero__bar,
  .nav__menu > * {
    opacity: 1;
    transform: none;
  }

  .timeline__item.is-past::after {
    transform: none;
  }
}
