:root {
  --bg: #eff2f6;
  --bg-soft: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-subtle: rgba(249, 250, 252, 0.8);
  --surface-dark: rgba(16, 18, 23, 0.84);
  --line: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.14);
  --text: #1d1d1f;
  --muted: rgba(29, 29, 31, 0.7);
  --muted-strong: rgba(29, 29, 31, 0.86);
  --accent: #0071e3;
  --accent-strong: #0066cc;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --shadow-soft: 0 18px 48px rgba(16, 24, 40, 0.08);
  --shadow-medium: 0 28px 72px rgba(16, 24, 40, 0.12);
  --shadow-dark: 0 30px 80px rgba(0, 0, 0, 0.32);
  --radius-xl: 40px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --content-width: min(1240px, calc(100vw - 40px));
  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-medium: 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 113, 227, 0.09), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(180deg, #fbfbfd 0%, #f3f5f8 40%, #edf1f5 100%);
  font-family:
    "SF Pro Text",
    "SF Pro Icons",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: -10% auto auto 8%;
  width: 44vw;
  height: 44vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), transparent 66%);
  filter: blur(20px);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

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

button,
input,
textarea {
  font: inherit;
}

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

code {
  font-family: "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
iframe:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.5);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
}

.topbar-inner {
  width: var(--content-width);
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: inherit;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

main {
  width: var(--content-width);
  margin: 0 auto;
  padding: 28px 0 112px;
}

.page {
  display: none;
  animation: page-enter 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page.active {
  display: block;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  --hero-shift: 0px;
  --hero-position: 78% center;
  position: relative;
  overflow: hidden;
  min-height: clamp(468px, 63svh, 568px);
  padding: clamp(24px, 3.6vw, 48px);
  border-radius: 42px;
  color: #ffffff;
  isolation: isolate;
  background: linear-gradient(180deg, #05070b, #0b1016);
  box-shadow: var(--shadow-dark);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.92) 0%, rgba(5, 7, 11, 0.72) 34%, rgba(5, 7, 11, 0.24) 60%, rgba(5, 7, 11, 0.72) 100%),
    url("images/bg_2.jpg") var(--hero-position) / cover no-repeat;
  transform: translate3d(0, var(--hero-shift), 0) scale(1.06);
  transform-origin: center;
  transition: transform 140ms linear;
  z-index: -2;
}

.hero::after {
  background:
    radial-gradient(circle at 18% 18%, rgba(161, 206, 234, 0.22), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(7, 10, 14, 0.06) 0%, rgba(7, 10, 14, 0.26) 100%);
  z-index: -1;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  width: 100%;
  margin: 0 auto;
  padding-left: 32px;
  grid-template-columns: minmax(0, 640px) minmax(230px, 360px);
  grid-template-rows: auto auto;
  column-gap: clamp(16px, 2.5vw, 28px);
  row-gap: 14px;
  align-content: center;
  align-items: start;
  justify-content: space-between;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.hero-brand-tile {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 16px 34px rgba(3, 8, 16, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.hero-brand-tile:hover,
.hero-brand-tile:focus-visible {
  transform: translateY(-1px);
}

.hero-brand-tile img {
  width: auto;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-brand-tile-seal {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  flex: 0 0 auto;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.hero-brand-tile-seal:hover,
.hero-brand-tile-seal:focus-visible {
  transform: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.hero-brand-tile-seal img {
  width: 84px;
  height: 84px;
  max-width: none;
  max-height: none;
  padding: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 18px 36px rgba(2, 8, 18, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.18);
  mix-blend-mode: normal;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.hero-brand-tile-seal:hover img,
.hero-brand-tile-seal:focus-visible img {
  transform: translateY(-1px);
  box-shadow:
    0 22px 42px rgba(2, 8, 18, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-brand-tile-dept {
  min-width: min(230px, 100%);
  padding: 14px 20px;
}

.hero-copy h1 {
  margin: 16px 0 12px;
  max-width: 11ch;
  font-size: clamp(2.85rem, 4.9vw, 4.9rem);
  line-height: 0.97;
  letter-spacing: -0.06em;
  font-weight: 600;
  text-wrap: balance;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p {
  max-width: 50ch;
  margin: 0;
  font-size: clamp(0.98rem, 1.44vw, 1.06rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
  cursor: pointer;
}

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

.button-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 16px 30px rgba(0, 113, 227, 0.22);
}

.button-primary:hover {
  box-shadow: 0 20px 36px rgba(0, 113, 227, 0.26);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.button-soft {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(29, 29, 31, 0.08);
}

.hero .button-secondary {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.hero-logo-showcase {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: min(225px, 100%);
  margin-top: 0;
  padding: 8px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 34px rgba(2, 8, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.hero-logo-showcase:hover,
.hero-logo-showcase:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(2, 8, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.hero-logo-showcase img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center;
}

.hero-spotlight {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  width: 100%;
  margin-top: 0;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-spotlight h2,
.section-title h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-spotlight h2 {
  font-size: 1.34rem;
  font-weight: 600;
}

.hero-spotlight p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.58;
}

.focus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.focus-pills .chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-brand-strip,
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy p,
.hero-actions,
.hero-logo-showcase,
.hero-spotlight {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-rise 920ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-brand-strip {
  animation-delay: 80ms;
}

.hero-copy .eyebrow {
  animation-delay: 150ms;
}

.hero-copy h1 {
  animation-delay: 220ms;
}

.hero-copy p {
  animation-delay: 300ms;
}

.hero-actions {
  animation-delay: 380ms;
}

.hero-logo-showcase {
  animation-delay: 180ms;
}

.hero-spotlight {
  animation-delay: 420ms;
}

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

.stack-section {
  margin-top: clamp(52px, 7vw, 88px);
  content-visibility: auto;
  contain-intrinsic-size: 1px 560px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 600;
  text-wrap: balance;
}

.section-title--compact h2 {
  font-size: clamp(1.72rem, 2.7vw, 2.26rem);
  line-height: 1.1;
}

.page:not([data-route="home"]) > .section-title {
  margin-bottom: 34px;
}

.page:not([data-route="home"]) > .section-title h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.panel,
.theme-card,
.member-card,
.publication-card,
.timeline-card,
.logo-tile,
.contact-card,
.contact-item,
.contact-map-frame,
.contact-photo-frame {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 250, 252, 0.86));
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: clamp(26px, 4vw, 40px);
}

.panel-immersive {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(74, 112, 150, 0.18), transparent 32%),
    linear-gradient(180deg, #0d1116 0%, #11151d 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-dark);
}

.panel-immersive .section-title h2,
.panel-immersive .gallery-progress {
  color: rgba(255, 255, 255, 0.92);
}

.panel-immersive .status,
.panel-immersive .empty-state,
.panel-immersive .error-state {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.theme-grid,
.member-grid,
.logo-grid {
  display: grid;
  gap: 18px;
}

.theme-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-card {
  min-height: 240px;
  position: relative;
  overflow: hidden;
  padding: 32px 28px 30px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-medium);
}

.theme-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -54px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12), transparent 68%);
  pointer-events: none;
}

.theme-card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(0, 113, 227, 0.08), transparent 72%);
}

.theme-card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 70%);
}

.theme-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-card h3 {
  max-width: 15ch;
  margin: 0;
  font-size: 1.54rem;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.theme-card p {
  max-width: 34ch;
  margin: 16px 0 0;
}

.theme-card-action {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-card-action-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.12);
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.theme-card:hover,
.member-card:hover,
.publication-card:hover,
.timeline-card:hover,
.logo-tile:hover,
.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.theme-card:hover,
.theme-card:focus-visible {
  transform: translateY(-5px) scale(1.008);
}

.theme-card:focus-visible {
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08), var(--shadow-medium);
}

.theme-card:hover .theme-card-action-mark,
.theme-card:focus-visible .theme-card-action-mark {
  transform: translateX(2px);
  background: rgba(0, 113, 227, 0.14);
}

.member-card h3,
.publication-card h3,
.timeline-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.theme-card p,
.member-card p,
.publication-card p,
.timeline-card p,
.timeline-card li,
.contact-card p,
.contact-item,
.member-section-note,
.gallery-progress {
  color: var(--muted);
  line-height: 1.72;
}

.gallery-shell {
  position: relative;
  overflow: hidden;
  padding: 24px 82px 12px;
}

.gallery-stage {
  position: relative;
  min-height: 440px;
}

.gallery-stage:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.34);
  outline-offset: 10px;
  border-radius: 36px;
}

.gallery-card {
  --offset: 0%;
  --scale: 1;
  --opacity: 1;
  --tone: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72%, 840px);
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.3);
  transform: translate3d(calc(-50% + var(--offset)), -50%, 0) scale(var(--scale));
  opacity: var(--opacity);
  filter: saturate(var(--tone)) brightness(var(--tone));
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 620ms ease,
    filter 620ms ease;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  contain: layout paint style;
}

.gallery-shell.is-resetting .gallery-card {
  transition: none;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 7, 10, 0.22), transparent 30%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 22%);
  pointer-events: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  aspect-ratio: 16 / 10;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.gallery-card[data-pos="-3"],
.gallery-card[data-pos="3"] {
  --scale: 0.72;
  --opacity: 0;
  --tone: 0.92;
  pointer-events: none;
}

.gallery-card[data-pos="-3"] {
  --offset: -216%;
  z-index: 0;
}

.gallery-card[data-pos="-2"] {
  --offset: -142%;
  --scale: 0.82;
  --opacity: 0;
  --tone: 0.95;
  z-index: 1;
  pointer-events: none;
}

.gallery-card[data-pos="-1"] {
  --offset: -74%;
  --scale: 0.86;
  --opacity: 0.62;
  --tone: 0.97;
  z-index: 2;
}

.gallery-card[data-pos="0"] {
  --offset: 0%;
  --scale: 1;
  --opacity: 1;
  --tone: 1;
  z-index: 3;
}

.gallery-card[data-pos="1"] {
  --offset: 74%;
  --scale: 0.86;
  --opacity: 0.62;
  --tone: 0.97;
  z-index: 2;
}

.gallery-card[data-pos="2"] {
  --offset: 142%;
  --scale: 0.82;
  --opacity: 0;
  --tone: 0.95;
  z-index: 1;
  pointer-events: none;
}

.gallery-card[data-pos="3"] {
  --offset: 216%;
  z-index: 0;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-size: 1.22rem;
  font-weight: 700;
  font-family: "SF Mono", "SFMono-Regular", Menlo, monospace;
  line-height: 1;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.gallery-arrow:hover {
  transform: translateY(calc(-50% - 1px));
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
}

.gallery-arrow:disabled {
  cursor: default;
  opacity: 0.48;
}

.gallery-arrow.prev {
  left: 10px;
}

.gallery-arrow.next {
  right: 10px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.gallery-progress {
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.gallery-dot {
  appearance: none;
  display: block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  flex: 0 0 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    opacity var(--transition-fast);
}

.gallery-dot.active {
  background: #ffffff;
  transform: scale(1.15);
}

.gallery-dot.is-edge {
  transform: scale(0.8);
  opacity: 0.58;
}

.section-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.publication-list {
  display: grid;
  gap: 18px;
}

.publication-section + .publication-section {
  margin-top: 56px;
}

.publication-card {
  padding: 24px;
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

.publication-meta,
.timeline-date {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.publication-meta > span:not(.chip),
.timeline-date span {
  color: var(--muted-strong);
}

.project-filter-bar {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(244, 248, 252, 0.24));
  backdrop-filter: blur(28px) saturate(165%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 20px 52px rgba(16, 24, 40, 0.1);
}

.project-filter-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 28px rgba(15, 23, 42, 0.12);
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    width 360ms cubic-bezier(0.22, 1, 0.36, 1),
    height 360ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width, height;
  pointer-events: none;
  z-index: 0;
}

.project-filter {
  appearance: none;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.project-filter:hover,
.project-filter.active {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  transform: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
  align-items: stretch;
  justify-content: start;
  gap: 22px;
}

.project-card[hidden] {
  display: none !important;
}

.project-card,
.project-people-panel,
.project-media-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 250, 252, 0.86));
  box-shadow: var(--shadow-soft);
}

.project-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.project-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(232, 237, 243, 0.96), rgba(220, 228, 237, 0.92));
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-card-body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 240px;
  height: 100%;
  align-content: stretch;
  padding: 24px;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.project-card-action {
  width: fit-content;
  margin-top: 0;
  justify-self: start;
  align-self: end;
}

.project-detail-shell {
  display: grid;
  gap: 20px;
}

.project-detail-intro {
  display: grid;
  gap: 10px;
}

.project-detail-intro h3 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.project-detail-body,
.project-detail-copy {
  display: grid;
  gap: 14px;
}

.project-detail-body {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 390px);
  gap: 22px;
  align-items: start;
}

.project-detail-copy {
  align-content: start;
  max-width: 58ch;
}

.project-detail-description {
  padding-top: 2px;
}

.project-detail-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
  max-width: 66ch;
}

.project-people-panel,
.project-media-panel {
  padding: 22px;
}

.project-people-panel {
  width: 100%;
  max-width: 390px;
  justify-self: stretch;
}

.project-media-panel {
  display: grid;
  gap: 12px;
}

.project-people-group + .project-people-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(29, 29, 31, 0.08);
}

.project-people-label {
  margin: 0 0 12px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-people-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 8px;
}

.project-people-group--members .project-people-list {
  max-width: 382px;
  margin: 0 auto;
}

.project-people-group--project-lead .project-people-list,
.project-people-group--pi .project-people-list {
  justify-content: center;
}

.project-person,
.project-person--static {
  width: 70px;
  flex: 0 0 70px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 2px;
  border-radius: 16px;
  min-width: 0;
}

.project-people-group--project-lead .project-person,
.project-people-group--project-lead .project-person--static,
.project-people-group--pi .project-person,
.project-people-group--pi .project-person--static {
  width: 84px;
  flex-basis: 84px;
}

.project-person {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
}

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

.project-person--static {
  border: 0;
  background: transparent;
}

.project-person-photo,
.project-person-fallback {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 999px;
  overflow: hidden;
}

.project-person-photo {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(0, 113, 227, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 22px rgba(15, 23, 42, 0.08);
}

.project-person-fallback {
  display: grid;
  place-items: center;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.project-person span {
  color: var(--text);
  max-width: 70px;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.22;
  text-wrap: balance;
}

.project-gallery {
  display: grid;
  gap: 12px;
}

.project-gallery-stage-shell {
  position: relative;
  overflow: hidden;
  padding: 0 70px;
}

.project-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(240, 245, 250, 0.94));
  cursor: zoom-in;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.project-gallery-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(237, 242, 247, 0.88), rgba(248, 250, 252, 0.96));
  transition: transform var(--transition-medium);
}

.project-gallery-stage:hover img {
  transform: scale(1.01);
}

.project-gallery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 17, 24, 0.76);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.project-gallery-arrow {
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(180deg, #2f84ff, #0c66e8);
  box-shadow:
    0 14px 28px rgba(12, 102, 232, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border-color: rgba(47, 132, 255, 0.2);
  backdrop-filter: none;
}

.project-gallery-arrow:hover {
  transform: translateY(calc(-50% - 1px));
  box-shadow:
    0 16px 30px rgba(12, 102, 232, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  filter: saturate(1.04);
}

.project-gallery-arrow:disabled {
  cursor: default;
  opacity: 0.46;
  box-shadow: none;
}

.project-gallery-dots {
  margin-top: 2px;
}

.project-gallery-dot {
  background: rgba(29, 29, 31, 0.14);
}

.project-gallery-dot.active {
  background: var(--accent);
}

.project-gallery-dot.is-edge {
  opacity: 0.34;
}

.project-gallery-meta {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.project-gallery-label,
.project-gallery-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.project-media-empty,
.project-media-viewer-frame {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(29, 29, 31, 0.06);
  background: rgba(248, 250, 253, 0.82);
}

.project-media-empty {
  color: var(--muted);
  line-height: 1.68;
}

.project-media-viewer {
  display: grid;
  gap: 18px;
}

.project-media-viewer-frame {
  padding: 0;
  overflow: hidden;
}

.project-media-viewer-frame img {
  width: 100%;
  max-height: min(72svh, 820px);
  object-fit: contain;
  background: #0d1016;
}

.theme-card-action--button {
  width: fit-content;
  margin-top: auto;
  margin-left: auto;
  align-self: flex-end;
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  text-transform: none;
  pointer-events: none;
}

.member-section {
  margin-top: 34px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 680px;
}

.member-section h2,
.publication-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.member-section-note {
  margin: -4px 0 18px;
  max-width: 72ch;
}

.member-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  cursor: zoom-in;
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

.member-photo {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  object-fit: cover;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(0, 113, 227, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.member-meta,
.link-cluster,
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-meta {
  margin: 12px 0 14px;
}

.member-now-at {
  margin: -2px 0 14px;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.member-now-at strong {
  color: var(--text);
}

.chip,
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.chip {
  color: var(--muted-strong);
  background: rgba(248, 249, 251, 0.86);
}

.chip.tag-chip {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(0, 113, 227, 0.14);
}

.link-chip {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.link-chip:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.18);
}

.member-action-link {
  min-height: 36px;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-color: rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.member-action-link .link-chip-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.06);
  color: var(--muted-strong);
  flex: 0 0 22px;
}

.member-action-link svg {
  width: 14px;
  height: 14px;
}

.member-action-link--website .link-chip-icon {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-strong);
}

.member-action-link--scholar .link-chip-icon {
  background: rgba(126, 97, 30, 0.1);
  color: #86661d;
}

.member-action-link--github .link-chip-icon {
  background: rgba(29, 29, 31, 0.08);
  color: #2b2b31;
}

.member-action-link--linkedin .link-chip-icon {
  background: rgba(16, 124, 194, 0.1);
  color: #0f77b7;
}

.member-action-link--cv .link-chip-icon {
  background: rgba(99, 109, 125, 0.1);
  color: #4f5c6c;
}

.member-action-link--email .link-chip-icon {
  background: rgba(0, 113, 227, 0.08);
  color: #0d63c9;
}

.citation-toggle {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font-weight: 600;
  cursor: pointer;
}

.citation {
  display: none;
  margin-top: 14px;
  padding: 18px;
  border-radius: 22px;
  background: #121418;
  color: rgba(255, 255, 255, 0.9);
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
}

.citation.visible {
  display: block;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 6px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(0, 113, 227, 0.16), rgba(0, 113, 227, 0.24), transparent);
}

.timeline-row {
  position: relative;
  padding-left: 54px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 260px;
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.1);
}

.timeline-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.56), rgba(255, 255, 255, 0.22));
}

.news-body h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  line-height: 1.34;
}

.news-body p + p,
.news-body ul + p,
.news-body p + ul {
  margin-top: 14px;
}

.news-body ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.news-body li + li {
  margin-top: 10px;
}

.news-body a,
.publication-card a,
.contact-card a,
.prospective-card a {
  color: var(--accent-strong);
}

.news-body strong {
  font-weight: 600;
  color: inherit;
}

.news-signoff {
  margin-top: 14px;
}

.news-signoff strong {
  font-weight: 600;
  color: var(--text);
}

.timeline-date span,
.money-value {
  font-weight: 600;
  color: var(--text);
}

.logo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-tile {
  min-height: 138px;
  display: grid;
  place-items: center;
  padding: 24px;
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-fast);
}

.logo-tile img {
  width: auto;
  max-height: 52px;
  object-fit: contain;
  filter: none;
  opacity: 0.96;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.logo-tile:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.sponsors-section .logo-tile {
  min-height: 126px;
}

.status,
.empty-state,
.error-state {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
}

.contact-card {
  padding: 28px;
}

.contact-card h3 {
  margin-bottom: 12px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-item {
  padding: 18px 18px 17px;
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium);
}

.contact-item strong,
.contact-note-box strong,
.field-label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-note-box {
  margin-top: 24px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 247, 250, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.contact-visual-stack {
  display: grid;
  gap: 18px;
}

.contact-map-frame,
.contact-photo-frame {
  padding: 18px;
}

.contact-map-frame strong,
.contact-photo-frame strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.contact-embed {
  width: 100%;
  border: 0;
  border-radius: 20px;
  background: #e8edf3;
}

.contact-map-frame .contact-embed {
  height: 300px;
}

.contact-photo-frame .contact-embed {
  height: 230px;
}

.prospective-card {
  margin-top: 24px;
}

.prospective-card p + p,
.prospective-card ul + p,
.prospective-card p + ul {
  margin-top: 14px;
}

.prospective-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.prospective-card li + li {
  margin-top: 10px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.field-label {
  display: grid;
  gap: 8px;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.field-input:focus {
  outline: none;
  border-color: rgba(0, 113, 227, 0.36);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
  background: #ffffff;
}

.field-textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-map {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 252, 0.86));
}

.contact-map-panel {
  min-height: 240px;
  padding: 24px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.contact-map-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
}

body.modal-open {
  overflow: hidden;
}

.detail-modal[hidden] {
  display: none;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.detail-modal.is-open {
  pointer-events: auto;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 16, 0.44);
  backdrop-filter: blur(26px) saturate(145%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.detail-modal-dialog {
  position: relative;
  width: min(880px, calc(100vw - 32px));
  max-height: min(86svh, 920px);
  overflow: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(141, 154, 179, 0.72) transparent;
  padding: 34px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.92));
  box-shadow: 0 36px 96px rgba(16, 24, 40, 0.2);
  opacity: 0;
  transform: translateY(24px) scale(0.965);
  transition:
    opacity var(--transition-medium),
    transform var(--transition-medium);
}

.detail-modal-dialog::-webkit-scrollbar {
  width: 12px;
}

.detail-modal-dialog::-webkit-scrollbar-track {
  background: transparent;
}

.detail-modal-dialog::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(163, 173, 190, 0.88), rgba(128, 142, 165, 0.84));
  background-clip: padding-box;
}

.detail-modal[data-kind="project"] .detail-modal-dialog,
.detail-modal[data-kind="project-media"] .detail-modal-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(90svh, 980px);
}

.detail-modal.is-open .detail-modal-backdrop {
  opacity: 1;
}

.detail-modal.is-open .detail-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.detail-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.detail-sheet {
  display: grid;
  gap: 24px;
}

.detail-sheet-header h3,
.detail-member-content h3 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.detail-sheet-eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-sheet-summary {
  margin: 12px 0 0;
  max-width: 52ch;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.68;
}

.detail-sheet-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.72fr);
  gap: 22px;
}

.detail-sheet-copy {
  display: grid;
  gap: 14px;
}

.detail-sheet-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
}

.detail-sheet-aside {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(248, 250, 253, 0.88);
}

.detail-sheet-aside strong {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-sheet-aside ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.detail-sheet-aside li + li {
  margin-top: 10px;
}

.detail-member-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-member-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(0, 113, 227, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.detail-member-meta,
.detail-member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-member-meta {
  margin-top: 16px;
}

.detail-member-now-at {
  margin: 14px 0 0;
  color: var(--muted-strong);
}

.detail-member-now-at strong {
  color: var(--text);
}

.detail-member-links {
  padding-top: 4px;
}

footer {
  width: var(--content-width);
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

body.js-motion [data-reveal="section"] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.js-motion [data-reveal="section"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.js-motion [data-reveal="section"].has-revealed {
  transition-duration: 420ms, 420ms;
}

body.js-motion [data-reveal="section"].has-revealed:not(.is-visible) {
  opacity: 0;
  transform: translateY(8px);
}

body.js-motion .theme-card[data-reveal="theme"] {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(36px) scale(0.96);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

body.js-motion .theme-card[data-reveal="theme"].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@media (max-width: 1040px) {
  :root {
    --content-width: min(1240px, calc(100vw - 28px));
  }

  .hero {
    --hero-position: 72% center;
    min-height: 520px;
  }

  .hero-grid,
  .member-grid,
  .project-grid,
  .logo-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-left: 0;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
  }

  .hero-logo-showcase {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: min(288px, 100%);
    margin-top: 0;
  }

  .hero-spotlight {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    justify-self: start;
    max-width: 560px;
    margin-top: 0;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .detail-sheet-columns,
  .detail-member-layout {
    grid-template-columns: 1fr;
  }

  .project-detail-body {
    grid-template-columns: 1fr;
  }

  .project-people-panel {
    max-width: none;
    justify-self: stretch;
  }

  .detail-member-photo {
    width: min(220px, 100%);
  }

  .gallery-card img {
    min-height: 340px;
  }

  .gallery-shell {
    padding-inline: 56px;
  }

  .gallery-stage {
    min-height: 360px;
  }

  .gallery-card {
    width: min(82%, 720px);
  }

  .gallery-card[data-pos="-1"] {
    --offset: -62%;
  }

  .gallery-card[data-pos="1"] {
    --offset: 62%;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-row {
    padding-left: 44px;
  }

  .timeline-row::before {
    left: 12px;
  }
}

@media (max-width: 760px) {
  body::before {
    inset: -8% auto auto -12%;
    width: 72vw;
    height: 72vw;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main {
    padding-top: 18px;
  }

  .hero {
    --hero-position: 68% center;
    min-height: auto;
    border-radius: 34px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.55rem, 12vw, 3.9rem);
  }

  .hero-copy h1 span {
    display: inline;
  }

  .hero-copy h1 span + span::before {
    content: " ";
  }

  .hero-copy p {
    max-width: 100%;
  }

  .hero-brand-strip {
    margin-bottom: 14px;
  }

  .hero-brand-tile {
    min-height: 66px;
  }

  .hero-brand-tile img {
    height: 40px;
  }

  .hero-brand-tile-seal {
    width: auto;
    min-width: 0;
    min-height: 0;
  }

  .hero-brand-tile-seal img {
    width: 78px;
    height: 78px;
  }

  .hero-brand-tile-dept {
    min-width: 0;
    width: 100%;
  }

  .hero-logo-showcase {
    width: min(216px, 100%);
    padding: 14px;
    border-radius: 24px;
  }

  .hero-spotlight {
    padding: 22px;
  }

  .detail-modal {
    padding: 14px;
  }

  .detail-modal-dialog {
    width: min(100vw - 20px, 880px);
    padding: 24px 22px;
    border-radius: 28px;
  }

  .detail-modal[data-kind="project"] .detail-modal-dialog,
  .detail-modal[data-kind="project-media"] .detail-modal-dialog {
    width: min(100vw - 20px, 1120px);
  }

  .panel,
  .contact-card,
  .member-card,
  .project-card,
  .publication-card,
  .timeline-card {
    border-radius: 28px;
  }

  .project-filter-bar {
    padding: 8px;
    border-radius: 28px;
    gap: 8px;
  }

  .project-filter {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 0.8rem;
  }

  .project-card-body,
  .project-people-panel,
  .project-media-panel {
    padding: 20px;
  }

  .project-person-photo,
  .project-person-fallback {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .project-gallery-stage-shell {
    padding-inline: 54px;
  }

  .project-gallery-stage,
  .project-gallery-stage img {
    min-height: 220px;
  }

  .project-gallery .gallery-arrow {
    width: 44px;
    height: 44px;
  }

  .member-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .member-photo {
    width: 88px;
    height: 88px;
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
  }

  .gallery-shell {
    padding-inline: 14px;
  }

  .gallery-stage {
    min-height: 300px;
  }

  .gallery-card {
    width: 100%;
  }

  .gallery-card[data-pos="-1"],
  .gallery-card[data-pos="1"] {
    --offset: 0%;
    --scale: 0.92;
    --opacity: 0.16;
  }

  .gallery-card[data-pos="-2"],
  .gallery-card[data-pos="2"],
  .gallery-card[data-pos="-3"],
  .gallery-card[data-pos="3"] {
    --opacity: 0;
  }

  .section-title {
    margin-bottom: 22px;
  }
}

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

  .hero::before,
  .page,
  .hero-brand-strip,
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy p,
  .hero-actions,
  .hero-logo-showcase,
  .hero-spotlight,
  [data-reveal],
  .gallery-card,
  .button,
  .nav-link,
  .theme-card,
  .member-card,
  .project-card,
  .project-filter,
  .project-person,
  .publication-card,
  .timeline-card,
  .logo-tile,
  .contact-item,
  .link-chip,
  .detail-modal-backdrop,
  .detail-modal-dialog {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
