/* ==========================================================================
   AIBridge — shared stylesheet
   ========================================================================== */

:root {
  --bg:            #080b11;
  --bg-2:          #0c1119;
  --surface:       rgba(255, 255, 255, 0.045);
  --surface-2:     rgba(255, 255, 255, 0.075);
  --line:          rgba(255, 255, 255, 0.10);
  --line-strong:   rgba(255, 255, 255, 0.20);

  --text:          #e9edf2;
  --text-soft:     #d2d4d6;
  --muted:         #93a0ae;

  --accent:        #4fc3f7;
  --accent-2:      #7d8cff;
  --accent-glow:   rgba(79, 195, 247, 0.35);

  --radius:        14px;
  --radius-lg:     22px;
  --maxw:          1240px;
  --nav-h:         84px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, "Apple Color Emoji", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- reset --- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent-glow); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------- layout --- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(52px, 7vw, 90px) 0; }

/* The section right below a page title shouldn't repeat the header's gap. */
.pagehead + main > .section:first-child { padding-top: clamp(18px, 2.4vw, 28px); }
.hero + main > .section:first-child { padding-top: clamp(40px, 5vw, 64px); }
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 20ch;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 62ch;
  margin-top: 20px;
}

/* ----------------------------------------------------------------- nav --- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
              border-color 0.35s var(--ease), height 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  height: 68px;
  background: rgba(8, 11, 17, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img, .brand svg { width: 46px; height: 46px; transition: width 0.35s var(--ease), height 0.35s var(--ease); }
.nav.is-stuck .brand img, .nav.is-stuck .brand svg { width: 38px; height: 38px; }
.brand__word {
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand__word span { color: var(--accent); }

.nav__links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav__links a {
  color: var(--text-soft);
  font-size: 1.02rem;
  font-weight: 300;
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: #fff; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.6px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4.4px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: rotate(-45deg); }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(79, 195, 247, 0.20), transparent 62%),
    radial-gradient(900px 560px at 82% 108%, rgba(125, 140, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #070a10 0%, #0a1018 46%, #080b11 100%);
  background-size: cover;
  background-position: center;
}
/* Drop a photo at assets/img/background.jpg and site.js will layer it in. */
.hero__bg.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.72), rgba(6, 9, 14, 0.88));
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 42%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 12%, transparent 72%);
}

.hero__inner { padding: calc(var(--nav-h) + 24px) 0 120px; }

.hero__mark { width: clamp(84px, 12vw, 118px); margin: 0 auto 26px; }

.hero__title {
  font-size: clamp(3.2rem, 12vw, 8.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 28%, #9fb6cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  margin-top: 22px;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.hero__tagline b { font-weight: 600; color: var(--accent); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: dropline 2.1s var(--ease) infinite;
}
@keyframes dropline {
  0%   { transform: scaleY(0.2); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1);   transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1);   transform-origin: bottom; opacity: 0; }
}

/* page header used on interior pages */
.pagehead {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 108px)) 0 clamp(12px, 1.6vw, 20px);
  overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 420px at 18% -30%, rgba(79, 195, 247, 0.20), transparent 65%),
    radial-gradient(680px 380px at 92% 0%, rgba(125, 140, 255, 0.16), transparent 62%);
}
.pagehead h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  letter-spacing: -0.035em;
}
.pagehead p {
  color: var(--muted);
  max-width: 60ch;
  margin-top: 18px;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

/* --------------------------------------------------------------- cards --- */

.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
/* People sit on a single row at desktop widths — small portraits, tight gaps. */
.grid--people {
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

/* ------------------------------------------------------- camp details --- */

.details {
  margin: clamp(26px, 3.4vw, 38px) 0 0;
  border-top: 1px solid var(--line);
}
.details__row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 6px clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.2vw, 24px) 0;
  border-bottom: 1px solid var(--line);
}
.details dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 5px;
}
.details dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}
.details a {
  color: var(--accent);
  border-bottom: 1px solid rgba(79, 195, 247, 0.35);
  transition: border-color 0.2s var(--ease);
}
.details a:hover { border-bottom-color: var(--accent); }

.details__note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.details__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.details__list li { position: relative; padding-left: 20px; }
.details__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.details__contact { margin: 0 0 12px; }
.details__contact:last-child { margin-bottom: 0; }
.details__contact span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

@media (max-width: 640px) {
  .details__row { grid-template-columns: 1fr; gap: 8px; }
  .details dt { padding-top: 0; }
}

/* -------------------------------------------------------------- people --- */

.person { text-align: center; }
.person__photo {
  position: relative;
  width: 100%;
  max-width: clamp(74px, 9vw, 104px);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(79, 195, 247, 0.20), rgba(125, 140, 255, 0.14));
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.person:hover .person__photo {
  transform: translateY(-5px);
  border-color: rgba(79, 195, 247, 0.5);
  box-shadow: 0 18px 42px -22px var(--accent-glow);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__monogram {
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}
.person--tba .person__photo { border-style: dashed; opacity: 0.7; }
.person--tba .person__monogram { opacity: 0.6; }

.person__name { font-size: 0.93rem; font-weight: 600; line-height: 1.35; }
.person__role { color: var(--muted); font-size: 0.79rem; margin-top: 3px; line-height: 1.4; }

/* -------------------------------------------------------------- events --- */

.event {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.event:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9); }
.event__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(79, 195, 247, 0.20), rgba(125, 140, 255, 0.12));
}
.event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.event:hover .event__media img { transform: scale(1.05); }
.event__media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.event__initials {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}
.event__body { padding: 20px 22px 24px; }
.event__place { font-size: 1.06rem; font-weight: 600; }
.event__meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.event__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* ------------------------------------------------------ photo carousel --- */
/* Built by site.js over data-gallery; the monogram shows until it takes over. */

.event__media--gallery { display: block; touch-action: pan-y; cursor: grab; }
.event__media--gallery.is-swiping { cursor: grabbing; }
.event__media--gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* The blueprint grid is for empty cards — photos supply their own texture. */
.event__media--gallery::before { display: none; }

.carousel__track { position: absolute; inset: 0; }
.carousel__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}
.carousel__slide.is-active { opacity: 1; }
/* Override the card-wide hover zoom: it fights the swipe. */
.event:hover .event__media--gallery .carousel__slide { transform: none; }

.carousel__arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(6, 9, 14, 0.42);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease);
  z-index: 2;
}
.carousel__arrow svg { width: 18px; height: 18px; }
.carousel__arrow--prev { left: 8px; }
.carousel__arrow--next { right: 8px; }
.carousel__arrow:hover { background: rgba(6, 9, 14, 0.72); }
.event:hover .carousel__arrow,
.event__media--gallery:focus-within .carousel__arrow { opacity: 1; }
.carousel__arrow:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }

.carousel__dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px;
  max-width: calc(100% - 88px);
  z-index: 2;
}
.carousel__dot {
  width: 7px; height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel__dot:hover { background: rgba(255, 255, 255, 0.75); }
.carousel__dot.is-active { background: #fff; transform: scale(1.25); }
.carousel__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Stands in for the dot row on long photo sets. */
.carousel__counter {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(6, 9, 14, 0.52);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  z-index: 2;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Touch devices have no hover, so the controls stay visible. */
@media (hover: none) {
  .carousel__arrow { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition: none; }
}

/* ---------------------------------------------------------- curriculum --- */

.banner {
  margin: 0 0 clamp(16px, 2vw, 22px);
  padding: 15px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 195, 247, 0.32);
  background: rgba(79, 195, 247, 0.08);
  color: var(--text-soft);
  font-size: 0.95rem;
}
.banner b { color: var(--text); font-weight: 600; }
.banner code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.88em;
}

.table-scroll {
  margin-top: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.syllabus {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.syllabus thead th {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px clamp(14px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.syllabus thead th:first-child { width: 132px; }
.syllabus thead th:not(:first-child) { width: 42%; }

.syllabus td {
  padding: clamp(16px, 2vw, 24px) clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  vertical-align: top;
}
.syllabus td:first-child { border-left: 0; }
.syllabus tbody tr:last-child td { border-bottom: 0; }
.syllabus tbody tr:hover td { background: rgba(255, 255, 255, 0.018); }

.syllabus__day {
  background: rgba(79, 195, 247, 0.045);
  text-align: center;
  vertical-align: middle !important;
}
.syllabus tbody tr:hover .syllabus__day { background: rgba(79, 195, 247, 0.045); }

.day-pill {
  display: inline-grid;
  place-items: center;
  gap: 2px;
  padding: 14px 6px;
  min-width: 84px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(79, 195, 247, 0.20), rgba(125, 140, 255, 0.12));
}
.day-pill small {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.day-pill b {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.day-when {
  display: block;
  margin-top: 8px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}

/* A day that hasn't been released yet: visible in the schedule, not downloadable. */
.is-locked td { opacity: 0.62; }
.is-locked .day-pill {
  background: rgba(255, 255, 255, 0.04);
  border-style: dashed;
}
.is-locked .day-pill b {
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  color: var(--muted);
}

/* Notebook links that jump out to Google Colab. */
.res__link--colab {
  border-color: rgba(246, 173, 60, 0.34);
  background: rgba(246, 173, 60, 0.08);
  color: #f3d5a6;
}
.res__link--colab:hover {
  color: #fff;
  border-color: rgba(246, 173, 60, 0.66);
  background: rgba(246, 173, 60, 0.16);
}
.res__link--colab small { color: rgba(243, 213, 166, 0.7); }
.res__ext { width: 11px !important; height: 11px !important; opacity: 0.75; margin-left: -1px; }

.res__link--locked {
  cursor: default;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}
.res__link--locked:hover {
  transform: none;
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.cell__kind {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.cell__kind--lecture { color: var(--accent);   background: rgba(79, 195, 247, 0.12); border: 1px solid rgba(79, 195, 247, 0.3); }
.cell__kind--lab     { color: var(--accent-2); background: rgba(125, 140, 255, 0.12); border: 1px solid rgba(125, 140, 255, 0.32); }

.cell__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.cell__none { color: var(--muted); font-size: 0.92rem; font-style: italic; }

.res { display: flex; flex-wrap: wrap; gap: 8px; }
.res__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.22s var(--ease);
}
.res__link:hover {
  color: #fff;
  border-color: rgba(79, 195, 247, 0.5);
  background: rgba(79, 195, 247, 0.10);
  transform: translateY(-2px);
}
.res__link svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.res__link small { color: var(--muted); font-weight: 400; }

/* -------------------------------------------------------------- footer --- */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}

/* AIFS credit — white-on-transparent lockup, sits straight on the footer. */
.aifs {
  display: block;
  flex: none;
  opacity: 0.85;
  transition: opacity 0.22s var(--ease);
}
.aifs:hover { opacity: 1; }
.aifs img {
  width: clamp(132px, 17vw, 168px);
  height: auto;
}

@media (max-width: 560px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
/* ------------------------------------------------------------- reveals --- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ----------------------------------------------------------- responsive --- */

@media (max-width: 860px) {
  .nav__toggle { display: grid; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 11, 17, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 15px clamp(20px, 5vw, 48px); font-size: 1.1rem; }
  .nav__links a::after { display: none; }

  .syllabus { min-width: 680px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid--people { grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); }
}
