@import "fonts.css";
/* ============================================================
   RAISE — homepage stylesheet
   Clean academic + research-lab technical. UW purple & gold.
   Self-hostable: swap the Google Fonts <link> for local @font-face
   in /assets/fonts and nothing else changes.
   ============================================================ */

:root {
  /* UW palette */
  --purple:    #4b2e83;
  --purple-d:  #34215c;
  --purple-dd: #211541;
  --gold:      #b7a57a;
  --gold-d:    #85754d;
  --spirit:    #e7e2d2;

  /* neutrals (warm) */
  --ink:    #1c1b19;
  --ink-2:  #57524a;
  --ink-3:  #6f6a61;
  --paper:  #ffffff;
  --sand:   #f7f5f0;
  --sand-2: #efece3;
  --line:   #e4dfd4;
  --line-2: #d3ccbd;

  /* aim accents */
  --aim-1: #4b2e83;
  --aim-2: #7a5fb0;
  --aim-3: #a98f55;

  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(28,27,25,.06), 0 2px 8px rgba(28,27,25,.05);
  --shadow-md: 0 6px 24px rgba(28,27,25,.10), 0 2px 6px rgba(28,27,25,.06);
  --ease: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 14px; border-radius: var(--radius);
  background: #fff; color: var(--purple); font-weight: 700;
  box-shadow: var(--shadow-md); transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid #6f4bb8;
  outline-offset: 3px;
}

/* ---- shared rhythm ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.sand { background: var(--sand); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }
.eyebrow--bare::before { display: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.12; margin: 0; }
.serif { font-family: var(--serif); font-weight: 400; }
.display { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.04; letter-spacing: -.02em; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); }
.h3 { font-size: clamp(21px, 2.4vw, 28px); }
.lead { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.34; }
.muted { color: var(--ink-2); }
.measure { max-width: 62ch; }

/* ---- tags / chips ---- */
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .03em;
  color: var(--ink-2); background: transparent; border: 1px solid var(--line-2);
  border-radius: 13px; white-space: nowrap; text-transform: lowercase;
}
.tag--accent { color: var(--purple); border-color: transparent; background: #efeaf6; }
.tag--solid { color: #fff; background: var(--ink); border-color: var(--ink); }

.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.dot--deployed { background: var(--purple); }
.dot--active   { background: var(--gold); }
.dot--paper    { background: var(--ink-3); }
.dot--archived { background: var(--line-2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 22px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .15s, color .15s, border-color .15s;
}
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-d); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--spirit); }
.btn--onpurple-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn--onpurple-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.link-arrow { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--purple); display: inline-flex; align-items: center; gap: 7px; }
.link-arrow .arr { transition: transform .2s var(--ease); }
.link-arrow:hover .arr { transform: translate(2px,-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  height: 74px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex-shrink: 0; }
.brand__logo { display: block; width: 306px; max-width: calc(100vw - 110px); height: auto; }
.site-header[data-mode="solid"] .brand__logo {
  filter: brightness(0) saturate(100%) invert(20%) sepia(28%) saturate(2771%) hue-rotate(234deg) brightness(88%) contrast(92%);
}
.brand__mark {
  width: 30px; height: 30px; border-radius: 5px; background: var(--purple);
  color: #fff; display: grid; place-items: center; font-family: var(--sans);
  font-weight: 800; font-size: 16px;
}
.brand__name { font-family: var(--sans); font-weight: 800; font-size: 19px; letter-spacing: .14em; }
.brand__sub { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-3); display: block; line-height: 1; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-size: 14.5px; font-weight: 500; position: relative; padding: 6px 0; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .ext::after { display: none; }
.nav .ext { color: var(--ink-3); }
.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-cta .btn { height: 40px; padding: 0 16px; font-size: 13.5px; flex-shrink: 0; }
.menu-btn { display: none; }

/* transparent-over-hero state */
.site-header[data-mode="over"] { background: transparent; }
.site-header[data-mode="over"] .brand__name,
.site-header[data-mode="over"] .nav a { color: #fff; }
.site-header[data-mode="over"] .brand__sub { color: rgba(255,255,255,.7); }
.site-header[data-mode="over"] .nav a:hover { color: #fff; }
.site-header[data-mode="over"] .nav a::after { background: var(--gold); }
.site-header[data-mode="over"] .header-cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.site-header[data-mode="solid"] { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(28,27,25,.02); }

/* ============================================================
   HERO — full-bleed feature
   ============================================================ */
.hero { position: relative; min-height: 760px; height: 90vh; max-height: 880px; background: var(--purple-dd); overflow: hidden; }
.hero image-slot, .hero .hero__img, .hero .hero-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(78deg, rgba(20,12,38,.86) 0%, rgba(20,12,38,.55) 42%, rgba(20,12,38,.12) 72%, rgba(20,12,38,.30) 100%),
  linear-gradient(0deg, rgba(20,12,38,.55) 0%, transparent 38%); }
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(48px, 8vh, 96px); }
.hero__kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero__kicker::before { content: ""; width: 30px; height: 1.5px; background: var(--gold); }
.hero h1 { color: #fff; max-width: min(21ch, 100%); margin-bottom: 24px; text-shadow: 0 2px 30px rgba(0,0,0,.25); font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; }
.hero__dek { color: rgba(255,255,255,.86); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__meta { position: absolute; right: var(--gutter); bottom: clamp(48px, 8vh, 96px); z-index: 2; text-align: right; color: rgba(255,255,255,.7); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.hero__meta .big { font-family: var(--serif); font-size: 30px; color: #fff; letter-spacing: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.6); font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1px; height: 28px; background: linear-gradient(rgba(255,255,255,.6), transparent); }

/* ---- hero carousel ---- */
.hero__slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.hero-slide.active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease); z-index: 1; }
.hero-slide image-slot { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
/* Ken Burns — slow drift on the active slide's background */
.hero-slide.active image-slot { animation: kenburns 8.5s var(--ease) forwards; }
.hero-slide:nth-child(even).active image-slot { animation-name: kenburnsAlt; }
@keyframes kenburns    { from { transform: scale(1.02); } to { transform: scale(1.10) translate(-1.2%, -0.8%); } }
@keyframes kenburnsAlt { from { transform: scale(1.02); } to { transform: scale(1.10) translate(1.2%, 0.8%); } }
.hero.paused .hero-slide.active image-slot { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero-slide.active image-slot { animation: none; } }
.hero-slide__content {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gutter); height: 100%; display: flex; flex-direction: column;
  /* Keep long carousel titles below the fixed 74px site header. */
  justify-content: safe flex-end;
  padding-top: calc(74px + clamp(28px, 5vh, 48px));
  padding-bottom: clamp(108px, 15vh, 165px);
}
.hero-slide.active .hero-slide__content > * { animation: heroRise .7s var(--ease) both; }
.hero-slide.active .hero-slide__content > *:nth-child(2) { animation-delay: .08s; }
.hero-slide.active .hero-slide__content > *:nth-child(3) { animation-delay: .16s; }
.hero-slide.active .hero-slide__content > *:nth-child(4) { animation-delay: .24s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slide.active .hero-slide__content > * { animation: none; } }

.hero__rail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; border-top: 1px solid rgba(255,255,255,.16); background: linear-gradient(0deg, rgba(20,12,38,.45), rgba(20,12,38,.18)); backdrop-filter: blur(6px); }
.hero__rail-inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: stretch; }
.hero__rail-track { display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hero__rail-track::-webkit-scrollbar { display: none; }
.carousel-toggle {
  flex: 0 0 auto; align-self: center; min-width: 84px; height: 38px; margin-left: 12px;
  border: 1px solid rgba(255,255,255,.42); border-radius: var(--radius);
  background: rgba(20,12,38,.45); color: #fff; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
}
.carousel-toggle:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.rail-item { flex: 1 0 200px; min-width: 200px; padding: 14px 18px 16px; text-align: left; background: none; border: none; border-left: 1px solid rgba(255,255,255,.16); cursor: pointer; color: rgba(255,255,255,.62); position: relative; transition: color .2s, background .2s; }
.rail-item:last-child { border-right: 1px solid rgba(255,255,255,.16); }
.rail-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.rail-item__num { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; display: block; margin-bottom: 5px; }
.rail-item__title { font-family: var(--serif); font-size: 15.5px; line-height: 1.25; display: block; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rail-item__bar { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--gold); }
.rail-item[aria-current="true"] { color: #fff; }
.rail-item[aria-current="true"] .rail-item__num { color: var(--gold); }
.rail-item[aria-current="true"] .rail-item__bar { animation: railFill var(--hero-dur, 6.5s) linear forwards; }
@keyframes railFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero.paused .rail-item[aria-current="true"] .rail-item__bar { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .rail-item[aria-current="true"] .rail-item__bar { animation: none; transform: scaleX(1); } }

@media (max-width: 940px) {
  .rail-item { flex-basis: 64%; min-width: 64%; }
  .hero-slide__content { padding-bottom: 130px; }
  .carousel-toggle { position: absolute; right: var(--gutter); bottom: 100%; margin: 0 0 12px; }
}

/* ============================================================
   MISSION STRIP
   ============================================================ */
.mission { display: grid; grid-template-columns: minmax(160px, .8fr) 2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.mission__label { padding-top: 10px; }
.mission p { font-family: var(--serif); font-size: clamp(22px, 2.7vw, 33px); line-height: 1.32; margin: 0 0 26px; }
.mission .aims-inline { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   RESEARCH AIMS
   ============================================================ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head__title { display: flex; flex-direction: column; gap: 14px; }
.aims-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aim-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--purple); border-radius: var(--radius); padding: 28px 26px 24px; }
.aim-card__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.aim-card__num { font-family: var(--serif); font-size: 38px; line-height: 1; }
.aim-card__count { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.aim-card h3 { font-size: 22px; line-height: 1.22; margin-bottom: 12px; min-height: 2.4em; }
.aim-card p { font-size: 15px; color: var(--ink-2); margin: 0 0 20px; flex: 1; }
.aim-1 { border-top-color: var(--aim-1); } .aim-1 .aim-card__num { color: var(--aim-1); }
.aim-2 { border-top-color: var(--aim-2); } .aim-2 .aim-card__num { color: var(--aim-2); }
.aim-3 { border-top-color: var(--aim-3); } .aim-3 .aim-card__num { color: var(--gold-d); }

/* ---- filter tabs ---- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: 13px; height: 30px; padding: 0 14px; cursor: pointer; transition: all .15s; text-transform: lowercase; }
.filter:hover { border-color: var(--ink-2); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   THE WORK — alternating editorial list
   ============================================================ */
.work-list { display: flex; flex-direction: column; }
.work-item { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; padding-block: clamp(34px, 4.5vw, 56px); border-top: 1px solid var(--line); }
.work-item:last-child { border-bottom: 1px solid var(--line); }
.work-item.reverse .work-item__media { order: 2; }
.work-item__media { position: relative; }
.work-item__media image-slot, .work-item__media .ph { aspect-ratio: 16 / 10; width: 100%; border-radius: var(--radius); }
.work-item__idx { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--mono); font-size: 12px; color: #fff; background: rgba(28,27,25,.55); backdrop-filter: blur(4px); padding: 4px 9px; border-radius: 4px; letter-spacing: .05em; }
.work-item__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.work-item h3 { font-size: clamp(23px, 2.6vw, 31px); line-height: 1.16; margin-bottom: 14px; }
.work-item__dek { color: var(--ink-2); max-width: 52ch; margin: 0 0 20px; }
.work-item__foot { display: flex; align-items: center; gap: 20px; }
.work-item.hidden { display: none; }

/* ============================================================
   PUBLICATION LIST (selected work)
   ============================================================ */
.pub-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 4vw, 64px); }
.pub-item { padding: 26px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.pub-item.hidden { display: none; }
.pub-item__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.pub-item__title { font-size: clamp(20px, 2vw, 24px); line-height: 1.22; margin-bottom: 12px; transition: color .15s; }
.pub-item:hover .pub-item__title { color: var(--purple); }
.pub-item__authors { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0 0 18px; flex: 1; }
.pub-item__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 2px; }
.pub-item__venue { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .03em; }
.pub-item__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 18px; min-width: 0; }
.pub-more { margin-top: 36px; display: flex; justify-content: center; }
@media (max-width: 760px) {
  .pub-list { grid-template-columns: 1fr; }
  .pub-item__foot { align-items: flex-start; flex-direction: column; }
  .pub-item__actions { justify-content: flex-start; }
}

/* ============================================================
   LATEST — news & talks
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 38px); }
.news-card { border-top: 2px solid var(--ink); padding-top: 18px; }
.news-card__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--gold-d); text-transform: uppercase; }
.news-card h3 { font-size: 20px; line-height: 1.3; margin: 12px 0 14px; transition: color .15s; }
.news-card:hover h3 { color: var(--purple); }
.news-card__meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* ============================================================
   LEADERSHIP
   ============================================================ */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.person:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.person__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: var(--sand-2); display: block; }
.person__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.person__name { font-family: var(--serif); font-size: 23px; line-height: 1.1; }
.person__role { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin-top: 7px; }
.person__bio { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 14px 0 16px; flex: 1; }
.person__links { display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.person__email { font-family: var(--mono); font-size: 12px; color: var(--purple); overflow-wrap: anywhere; word-break: normal; min-width: 0; }
.person__social { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; }
.person__social a { width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; color: var(--ink-2); transition: all .15s; }
.person__social a:hover { border-color: var(--purple); color: var(--purple); }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.partner {
  min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink-2);
  transition: border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.partner:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.partner__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); border-bottom: 1px solid var(--line); }
.partner__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.partner:hover .partner__media img { transform: scale(1.025); }
.partner--logo .partner__media img { object-fit: contain; padding: clamp(24px, 4vw, 48px); background: #fff; }
.partner__name { display: block; padding: 15px 17px 17px; font-size: 15px; font-weight: 600; line-height: 1.3; }
@media (max-width: 900px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .partners { grid-template-columns: 1fr; } }

/* ============================================================
   GET INVOLVED CTA
   ============================================================ */
.cta { background: var(--purple); color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(183,165,122,.22), transparent 70%); }
.cta__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); margin: 16px 0 0; max-width: 46ch; }
.cta .eyebrow { color: rgba(255,255,255,.75); }
.cta .eyebrow::before { background: var(--gold); }
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (min-width: 760px) { .cta__actions { align-items: flex-end; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--purple-dd); color: rgba(255,255,255,.7); padding-block: clamp(48px, 7vw, 80px) 36px; }
.site-footer .brand__logo { width: min(420px, 100%); max-width: 100%; filter: none; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(32px, 5vw, 72px); }
.site-footer .brand__mark { background: #fff; color: var(--purple); }
.site-footer .brand__name { color: #fff; }
.footer-blurb { margin: 18px 0 0; max-width: 34ch; font-size: 14.5px; line-height: 1.6; }
.footer-aff { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.5); margin-top: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   image-slot empty-state styling (works without an image)
   ============================================================ */
image-slot { background: var(--sand-2); --is-placeholder-color: var(--ink-3); display: block; }
.hero image-slot { background: linear-gradient(135deg, var(--purple-d), var(--purple-dd)); }

/* ---- publication-specific hero artwork, with gradients as resilient fallbacks ---- */
.hero-slide__bg { will-change: transform; background-color: var(--purple-dd); background-repeat: no-repeat; background-position: 68% center; background-size: cover; }
.hero-slide.active .hero-slide__bg { animation: kenburns 9s var(--ease) forwards; }
.hero-slide:nth-child(even).active .hero-slide__bg { animation-name: kenburnsAlt; }
.hero.paused .hero-slide.active .hero-slide__bg { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero-slide.active .hero-slide__bg { animation: none; } }
.hero-slide__bg--1 { background-image:
  radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px),
  radial-gradient(115% 90% at 80% 16%, rgba(123,95,176,.60), transparent 62%),
  linear-gradient(118deg, #2b1b4f 0%, #180f31 58%, #120a24 100%); }
.hero-slide__bg--2 { background-image:
  radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px),
  radial-gradient(110% 100% at 18% 88%, rgba(183,165,122,.30), transparent 60%),
  linear-gradient(122deg, #24173f 0%, #191031 55%, #120b24 100%); }
.hero-slide__bg--3 { background-image:
  radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px),
  radial-gradient(120% 95% at 30% 24%, rgba(90,74,150,.55), transparent 64%),
  linear-gradient(120deg, #201641 0%, #150d2b 60%, #100920 100%); }
.hero-slide__bg--4 { background-image:
  radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px),
  radial-gradient(100% 80% at 88% 78%, rgba(123,95,176,.48), transparent 60%),
  radial-gradient(90% 70% at 10% 12%, rgba(183,165,122,.20), transparent 58%),
  linear-gradient(125deg, #281a48 0%, #170e30 60%, #110a23 100%);
  background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, center, center, center;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat; }
.hero-slide__bg--5 { background-image:
  radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px),
  radial-gradient(120% 90% at 72% 30%, rgba(140,110,185,.50), transparent 60%),
  linear-gradient(118deg, #2a1c4c 0%, #180f31 56%, #120a24 100%); }
.hero-slide__bg[style] { background-repeat: no-repeat; background-position: 68% center; background-size: cover; }
@media (max-width: 760px) { .hero-slide__bg, .hero-slide__bg[style] { background-position: 72% center; } }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 150px 0 52px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 14px; }
.page-hero .dek { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 62ch; margin: 18px 0 0; }

/* publications page */
.pub-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 8px; }
.pub-search { flex: 0 1 320px; }
.pub-search input { width: 100%; box-sizing: border-box; font-family: var(--sans); font-size: 14.5px; color: var(--ink); border: 1px solid var(--line-2); border-radius: 5px; padding: 10px 14px; background: var(--paper); }
.pub-search input:focus { outline: 2px solid var(--purple); outline-offset: -1px; }
.year-group { display: grid; grid-template-columns: 96px 1fr; gap: clamp(20px, 3vw, 40px); padding: 34px 0; border-top: 1px solid var(--line); }
.year-group__year { font-family: var(--serif); font-size: 34px; color: var(--gold-d); line-height: 1; position: sticky; top: 96px; align-self: start; }
.year-group .pub-item:first-child { border-top: none; padding-top: 0; }
.pub-result-count { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.pub-empty { padding: 32px 0; }
@media (max-width: 760px) { .year-group { grid-template-columns: 1fr; } .year-group__year { position: static; } }

/* people page */
.people-section { margin-bottom: clamp(40px, 6vw, 64px); }
.people-section__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.people-section__head .h3 { font-size: 24px; }
.people-section__count { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.people-grid--4 { grid-template-columns: repeat(4, 1fr); }
.people-grid--4 .person__photo { aspect-ratio: 4 / 3; }
.people-grid--4 .person__name { font-size: 19px; }
.people-grid--4 .person__body { padding: 18px 18px 20px; }
.people-grid--4 .person__bio { font-size: 13px; }
@media (max-width: 1100px) { .people-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .people-grid--4 { grid-template-columns: 1fr; } }

/* talks page */
.talk-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px clamp(20px, 3vw, 40px); align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.talk-item:last-child { border-bottom: 1px solid var(--line); }
.talk-item__date { font-family: var(--mono); font-size: 12.5px; color: var(--gold-d); letter-spacing: .04em; white-space: nowrap; }
.talk-item__title { font-family: var(--serif); font-size: clamp(18px, 1.9vw, 22px); line-height: 1.25; }
.talk-item__speaker { grid-column: 2; font-size: 14px; color: var(--ink-2); }
.talk-item__link { grid-row: 1 / 3; align-self: center; }
.talk-banner { background: var(--purple); color: #fff; border-radius: 6px; padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 44px); }
.talk-banner__text { font-size: 15.5px; max-width: 56ch; }
.talk-banner__text strong { font-family: var(--serif); font-weight: 500; font-size: 20px; display: block; margin-bottom: 6px; }
@media (max-width: 760px) { .talk-item { grid-template-columns: 1fr; } .talk-item__speaker { grid-column: 1; } .talk-item__link { grid-row: auto; } }

/* event / ai-for-all page */
.event-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: clamp(28px, 4vw, 40px) 0; }
.event-meta__cell { background: var(--paper); padding: 20px 22px; }
.event-meta__label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.event-meta__value { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.project-card { border: 1px solid var(--line); border-left: 3px solid var(--purple); border-radius: 4px; padding: 24px 26px; background: var(--paper); }
.project-card h3 { font-size: 21px; margin-bottom: 10px; }
.project-card p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; }
.project-card .num { font-family: var(--mono); font-size: 12px; color: var(--gold-d); display: block; margin-bottom: 10px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.prose { max-width: 70ch; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose strong { color: var(--ink); }
@media (max-width: 860px) { .project-grid { grid-template-columns: 1fr; } .event-meta { grid-template-columns: 1fr; } }

/* Google Calendar appointment scheduling */
.booking-layout { min-width: 0; }
.booking-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.booking-intro h2 { margin-top: 10px; }
.booking-intro p { max-width: 66ch; margin: 14px 0 0; color: var(--ink-2); }
.booking-frame { overflow: hidden; min-width: 0; height: clamp(820px, 90vh, 980px); border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.booking-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
@media (min-width: 761px) {
  /* Google controls the iframe UI. Scale its larger virtual viewport so more
     dates and time slots fit without shrinking mobile tap targets. */
  .booking-frame iframe { width: 113.64%; height: 113.64%; transform: scale(.88); transform-origin: top left; }
}
.booking-fallback { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.booking-fallback a, .booking-aside__note a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact-aside { background: var(--sand); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.contact-aside h3 { font-size: 21px; margin-bottom: 14px; }
.contact-aside p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 18px; }
.contact-aside .btn { width: 100%; justify-content: center; margin-bottom: 10px; box-sizing: border-box; }
.booking-aside { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 20px clamp(24px, 4vw, 52px); align-items: center; margin-top: clamp(28px, 4vw, 44px); }
.booking-aside__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.booking-aside .booking-aside__actions .btn { width: auto; min-width: 0; margin: 0; padding-inline: 14px; }
.booking-aside .booking-aside__note { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .booking-intro { align-items: flex-start; flex-direction: column; }
  .booking-frame { height: 1000px; }
  .booking-aside { grid-template-columns: 1fr; }
  .booking-aside__actions { grid-template-columns: 1fr; }
  .booking-aside .booking-aside__note { grid-column: 1; }
}

/* ============================================================
   reveal on scroll
   ============================================================ */
.reveal { opacity: 1; transform: translateY(18px); transition: transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.mobile-nav { display: none; }
@media (max-width: 1120px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .mobile-nav { display: block; }
}
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .mobile-nav { display: block; }
  .mission { grid-template-columns: 1fr; }
  .aims-grid { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; gap: 20px; }
  .work-item.reverse .work-item__media { order: 0; }
  .news-grid { grid-template-columns: 1fr; }
  .cta__inner, .footer-top { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 760px; height: auto; padding-top: 120px; }
  .hero__meta { display: none; }
}

@media (max-width: 480px) {
  .hero { min-height: 820px; }
  .hero-slide__content { padding-top: 104px; padding-bottom: 120px; }
}

/* menu button + drawer */
.menu-btn { background: transparent; border: 1px solid var(--line-2); border-radius: 6px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.site-header[data-mode="over"] .menu-btn { color: #fff; border-color: rgba(255,255,255,.4); }
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--purple-dd); color: #fff; padding: 80px var(--gutter) 40px; overflow-y: auto; transform: translateY(-100%); visibility: hidden; pointer-events: none; transition: transform .35s var(--ease), visibility 0s .35s; }
.mobile-nav.open { transform: none; visibility: visible; pointer-events: auto; transition: transform .35s var(--ease); }
.mobile-nav a { display: block; font-family: var(--serif); font-size: 30px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-nav a[aria-current="page"] { color: var(--gold); }
.mobile-nav .close { position: absolute; top: 22px; right: var(--gutter); background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mobile-nav { transition: none; } }
