/* ============================================================
   Lakefront — working prototype
   Framework-free. One stylesheet. Design tokens up top.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Gambetta";
  src: url("../fonts/Gambetta-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gambetta";
  src: url("../fonts/Gambetta-LightItalic.woff2") format("woff2");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Gambetta";
  src: url("../fonts/Gambetta-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F5F1EA;
  --text: #000000;
  --burgundy: #15063A;
  --charcoal: #1E1E1E;
  --blue: #D3E9FC;
  --yellow: #FFFB4D;
  --pink: #FF67FF;
  --peach: #FFA068;

  --serif: "Gambetta", "Iowan Old Style", Georgia, serif;
  --sans:  "Satoshi", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Wordmark size targets. Set here so JS/CSS can interpolate. */
  --wm-hero-width: min(72vw, 960px);
  --wm-nav-width: 148px;

  /* Progress state, driven by JS. */
  --intro-progress: 0;
  --handoff: 0;

  /* Motion tokens */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Normalize (minimal) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Focus styles: always visible, never removed. */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.nav a:focus-visible { outline-color: currentColor; }

/* ---------- Wordmark (inline SVG, inherits colour via `color` on the element) ---------- */
.wordmark {
  display: block;
  aspect-ratio: 1810 / 239;
}
.wordmark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wordmark__asset { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 260ms var(--ease); }
.wordmark__asset--white { opacity: 1; }
.wordmark__asset--black { opacity: 0; }
html[data-nav-docked="1"] .wordmark__asset--white { opacity: 0; }
html[data-nav-docked="1"] .wordmark__asset--black { opacity: 1; }

/* ---------- Nav ----------
   Visible from frame 1. Transparent over the hero video (paper-coloured text),
   fades into a paper bar once the wordmark has docked.
   No desktop Menu button. On mobile, a generous dropdown panel. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 22px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--paper);
  background: transparent;
  transition: background-color 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
  border-bottom: 0;
  pointer-events: auto;
}
html[data-nav-docked="1"] .nav {
  color: var(--text);
  background: var(--paper);
}

.nav__links {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  justify-content: flex-end;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  /* Subtle text shadow for legibility over the moving video; removed on paper. */
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transition: text-shadow 260ms var(--ease);
}
html[data-nav-docked="1"] .nav__links { text-shadow: none; }

.nav__links a {
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible { border-color: currentColor; }
.nav__links .nav__engage {
  padding: 8px 17px;
  margin: -2px 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(245,241,234,.14);
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.nav__links .nav__engage:hover,
.nav__links .nav__engage:focus-visible { background: var(--paper); color: var(--text); border-color: var(--paper); }
html[data-nav-docked="1"] .nav__links .nav__engage { background: var(--text); color: var(--paper); border-color: var(--text); }
html[data-nav-docked="1"] .nav__links .nav__engage:hover,
html[data-nav-docked="1"] .nav__links .nav__engage:focus-visible {
  background: var(--yellow);
  color: var(--text);
  border-color: var(--text);
  transform: translateY(-2px);
}
.nav__links .nav__apply {
  padding: 7px 16px;
  margin: -1px 0;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.nav__links .nav__apply:hover,
.nav__links .nav__apply:focus-visible { background: var(--paper); color: var(--text); border-color: var(--paper); }
html[data-nav-docked="1"] .nav__links .nav__apply:hover,
html[data-nav-docked="1"] .nav__links .nav__apply:focus-visible { background: var(--text); color: var(--paper); border-color: var(--text); }

/* Toggle hidden on desktop. Shown on mobile only. */
.nav__toggle {
  display: none;
  min-width: 72px;
  min-height: 44px;
  background: rgba(0,0,0,.22);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: currentColor;
  cursor: pointer;
  text-shadow: inherit;
}
html[data-nav-docked="1"] .nav__toggle { background: transparent; }

/* Mobile navigation with editorial scale, anchored below the header. */
.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  width: min(430px, calc(100vw - 24px));
  background: var(--burgundy);
  color: var(--paper);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.nav-panel[hidden] { display: none; }
.nav-panel__links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 10vw, 3.35rem);
  line-height: .9;
  letter-spacing: -.035em;
}
.nav-panel__links a {
  text-decoration: none;
  padding: 8px 4px;
  color: var(--paper);
}
.nav-panel__links a:hover,
.nav-panel__links a:focus-visible {
  transform: translateX(6px);
}
.nav-panel__links .nav-panel__apply {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 14px 18px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}
.nav-panel__links .nav-panel__apply:hover,
.nav-panel__links .nav-panel__apply:focus-visible {
  transform: none;
}

@media (max-width: 720px) {
  :root { --wm-nav-width: 108px; }
  .nav { padding: 16px 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Intro section ---------- */
.intro {
  /* Height controls total scroll length of the intro. Tune here. */
  height: 620vh;
  position: relative;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Video fades slightly during handoff so paper takeover reads. */
  opacity: calc(1 - var(--handoff) * 0.15);
  transition: opacity 200ms var(--ease);
}
/* Local scrim behind the fragments only. Stronger than v1 in its lower band,
   still fully transparent above 55% so the video remains its own subject. */
.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.32) 22%,
      rgba(0,0,0,0.00) 55%
    );
  pointer-events: none;
  opacity: calc(1 - var(--handoff));
}

/* Paper rise — a full-viewport panel that slides up from below during handoff. */
.paper-rise {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(calc(100% - (var(--handoff) * 100%)));
  transition: transform 40ms linear;
  will-change: transform;
}

/* Keep mobile story text above the cue and inside the visible browser area.
   Scope to the animated intro so the reduced-motion reading layout is intact. */
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .stage { height: 100svh; height: 100dvh; }
  .stage .fragments { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  html .scroll-cue { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Fragments ---------- */
.fragments {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(48px, 12vh, 140px);
  color: var(--paper);
  pointer-events: none;
}
.fragment {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: min(20ch, 92%);
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2rem, 1rem + 4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms var(--ease),
    transform 700ms var(--ease);
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 2px 12px rgba(0,0,0,0.25);
}

/* Fragment visibility, driven by [data-fragment] on <html>. */
html[data-fragment="0"] .fragment[data-i="0"],
html[data-fragment="1"] .fragment[data-i="1"],
html[data-fragment="2"] .fragment[data-i="2"],
html[data-fragment="3"] .fragment[data-i="3"],
html[data-fragment="4"] .fragment[data-i="4"] {
  opacity: 1;
  transform: translateY(0);
}
/* Once we're on the wordmark reveal, fragments are gone. */
html[data-fragment="5"] .fragment { opacity: 0; }

/* ---------- Hero wordmark (the migrating element) ---------- */
/* The wordmark performs both the "reveal" (fade in over video) and the migration
   (translate + scale from centre to nav position). CSS calc interpolates against
   --handoff for the migration; opacity ties to fragment state. */

.wordmark--hero {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--wm-hero-width);
  height: calc(var(--wm-hero-width) * 239 / 1810);

  /* Interpolate position and scale between hero (centred) and nav (top-left dock).
     At handoff=0: translate to viewport centre and rest.
     At handoff=1: translate to nav position (32px, 32px) and scale down to nav width. */
  --scale: calc(1 - var(--handoff) * (1 - (var(--wm-nav-width) / var(--wm-hero-width))));
  --hero-x: calc(50vw - (var(--wm-hero-width) / 2));
  --hero-y: calc(50vh - (var(--wm-hero-width) * 239 / 1810 / 2));
  /* Docked position: matches vertical centre of nav bar (nav padding-top 22px + a nudge
     so wordmark caps sit visually on the same baseline as nav link caps). */
  --nav-x: 32px;
  --nav-y: 26px;
  --x: calc(var(--hero-x) + (var(--nav-x) - var(--hero-x)) * var(--handoff));
  --y: calc(var(--hero-y) + (var(--nav-y) - var(--hero-y)) * var(--handoff));

  transform: translate(var(--x), var(--y)) scale(var(--scale));
  transform-origin: 0 0;
  text-decoration: none;

  /* Reveal: fully hidden until we hit the sixth beat. */
  opacity: 0;
  transition:
    opacity 700ms var(--ease),
    color 400ms var(--ease);

  /* Colour: paper on video, flips to black once the paper has actually risen
     to meet the docked wordmark (near end of handoff). */
  color: var(--paper);
  will-change: transform, opacity, color;
  z-index: 25;
  pointer-events: none;
}
html[data-fragment="5"] .wordmark--hero { opacity: 1; }
/* Colour flip triggered when the paper edge has reached the docked wordmark. */
html[data-paper-covers-wm="1"] .wordmark--hero { color: var(--text); }
/* Once docked, wordmark is interactive as the permanent home link. */
html[data-nav-docked="1"] .wordmark--hero { pointer-events: auto; }

/* ---------- Main content sections ---------- */
.section {
  padding: clamp(80px, 12vw, 180px) clamp(24px, 6vw, 96px);
}
.section--paper { background: var(--paper); color: var(--text); }
.section--burgundy { background: var(--burgundy); color: var(--paper); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 clamp(24px, 4vw, 40px);
  color: currentColor;
}
.eyebrow--light { color: var(--paper); opacity: 0.72; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(2.75rem, 1rem + 8vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(24px, 3vw, 48px);
  text-wrap: balance;
  max-width: 20ch;
}

.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  max-width: 52ch;
  margin: 0 0 1em;
}

.manifesto {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.25rem, 1rem + 5.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 64px);
}
@media (min-width: 800px) {
  .two-col {
    grid-template-columns: minmax(180px, 240px) minmax(0, 700px);
  }
}

.foot {
  padding: 40px clamp(24px, 6vw, 96px);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--charcoal);
  border-top: 1px solid rgba(0,0,0,0.12);
}
.foot p { margin: 0; letter-spacing: 0.02em; }

/* ---------- Section additions ---------- */
.display--md {
  font-size: clamp(2.25rem, 1rem + 5vw, 5.5rem);
  max-width: 22ch;
}
.lede--light { color: var(--paper); opacity: 0.9; }
.section--space { padding-top: clamp(60px, 8vw, 120px); }
#live, #events, #space, #people, #institute, #about, #visit, #apply { scroll-margin-top: 80px; }

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: clamp(20px, 3.5vh, 36px);
  transform: translateX(-50%);
  z-index: 26;
  background: none;
  border: 0;
  padding: 10px 14px;
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  opacity: 1;
  transition: opacity 300ms var(--ease);
  width: clamp(238px, 20vw, 276px);
  min-height: 68px;
  padding: 14px 32px 12px;
  gap: 10px;
}
.scroll-cue__label { white-space: nowrap; }
.scroll-cue[data-visible="0"] { opacity: 0; pointer-events: none; }
.scroll-cue__arrow {
  font-size: 16px;
  line-height: 1;
  animation: cueBob 1.8s var(--ease) infinite;
}
@keyframes cueBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ---------- Progress rail ---------- */
.progress {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 26;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  opacity: 1;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}
.progress[data-visible="0"] { opacity: 0; }
.progress__line {
  display: block;
  width: 1px;
  height: 56px;
  background: currentColor;
  opacity: 0.55;
}
.progress__num,
.progress__total { font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .progress { right: 12px; font-size: 11px; }
  .progress__line { height: 40px; }
  .scroll-cue {
    width: min(252px, calc(100vw - 48px));
    min-height: 68px;
    padding-inline: 26px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
}

/* ---------- Community section (editorial, horizontal, art-directed) ---------- */
.community {
  background: var(--paper);
  color: var(--text);
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
  position: relative;
}
.community__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 6vw, 96px);
  margin-bottom: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}
.community__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1rem + 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.community__controls {
  display: flex;
  gap: 8px;
}
.ctrl {
  width: 74px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.ctrl span {
  display: block;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}
.ctrl:hover { background: var(--text); color: var(--paper); }
.ctrl:disabled { opacity: 0.35; cursor: default; }

/* Horizontal rail. Desktop: overlapping, broken-grid, subtle rotation.
   Mobile: horizontal scroll-snap with peek. */
.community__rail {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding: 40px clamp(24px, 6vw, 96px) 40px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.community__rail::-webkit-scrollbar { display: none; }

.member {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.member--sm { width: clamp(180px, 20vw, 260px); }
.member--md { width: clamp(220px, 26vw, 340px); }
.member--lg { width: clamp(280px, 34vw, 460px); }

/* Vertical offsets — broken grid on desktop. */
@media (min-width: 800px) {
  .member--drop  { transform: translateY(56px); }
  .member--raise { transform: translateY(-40px); }
  .member--tilt-l { transform: rotate(-1.2deg); }
  .member--tilt-r { transform: rotate(1.4deg); }
  .member--drop.member--tilt-r { transform: translateY(56px) rotate(1.4deg); }
  .member--raise.member--tilt-r { transform: translateY(-40px) rotate(1.4deg); }
  /* Deliberate overlap: pull adjacent items slightly under the anchor. */
  .member--anchor { margin: 0 -20px; z-index: 2; }
}

.member__portrait {
  aspect-ratio: 3 / 4;
  background: var(--burgundy);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.member__portrait span {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1;
  opacity: 0.5;
}
/* Anchor member — larger, burgundy stays but a different aspect + emphasis. */
.member--anchor .member__portrait--anchor {
  aspect-ratio: 4 / 5;
  background: var(--burgundy);
}
/* One accent portrait — yellow, used once (not stacked with pink/peach). */
.member__portrait--accent {
  background: var(--yellow);
  color: var(--text);
}

.member__meta { padding: 0 2px; }
.member__name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 2px;
  letter-spacing: 0.01em;
}
.member__role {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--charcoal);
  opacity: 0.72;
  margin: 0;
  letter-spacing: 0.02em;
}
.member--anchor .member__name { font-size: 17px; }
.member__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.35;
  color: var(--text);
  margin: 12px 0 0;
  max-width: 32ch;
}

@media (max-width: 800px) {
  .community__rail {
    padding: 24px 20px 24px;
    /* Show peek of next card via right-hand inset. */
    scroll-padding-inline: 20px;
  }
  .member--sm { width: 68vw; }
  .member--md { width: 72vw; }
  .member--lg { width: 78vw; }
  .community__controls { order: 3; width: 100%; justify-content: flex-start; }
}

/* ---------- Reduced motion: intro degrades to a static editorial spread ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { height: auto; }
  .stage {
    position: relative;
    height: auto;
    min-height: 100vh;
    background: var(--paper);
  }
  .hero-video { position: relative; height: 60vh; }
  .scrim, .paper-rise { display: none; }
  .fragments {
    position: relative;
    inset: auto;
    padding: 80px clamp(24px, 6vw, 96px);
    color: var(--text);
  }
  .fragment {
    position: relative;
    opacity: 1;
    transform: none;
    margin: 0 0 1em;
    max-width: none;
    font-size: clamp(1.75rem, 1rem + 3vw, 4rem);
    color: var(--text);
    text-shadow: none;
  }
  .wordmark--hero {
    position: relative;
    inset: auto;
    transform: none;
    width: min(60vw, 720px);
    height: calc(min(60vw, 720px) * 239 / 1810);
    color: var(--text);
    opacity: 1;
    margin: 40px clamp(24px, 6vw, 96px) 80px;
  }
  .nav {
    color: var(--text);
    background: var(--paper);
    border-bottom-color: rgba(0,0,0,0.08);
  }
  .nav__links { text-shadow: none; }
  .scroll-cue { display: none; }
  .progress { display: none; }
  .scroll-cue__arrow { animation: none; }
  .member--drop, .member--raise, .member--tilt-l, .member--tilt-r,
  .member--drop.member--tilt-r, .member--raise.member--tilt-r { transform: none; }
  .community__rail { scroll-behavior: auto; }
}

/* ---------- Meeting demo refinements ---------- */
.brand-cue {
  position: fixed;
  top: 22px;
  left: 32px;
  z-index: 34;
  color: var(--paper);
  width: 122px;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  transition: opacity 360ms var(--ease), color 260ms var(--ease);
}
.brand-cue img { display: block; width: 100%; height: auto; }
html[data-fragment="5"] .brand-cue { opacity: 0; pointer-events: none; }
html[data-nav-docked="1"] .brand-cue { opacity: 0; }

.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -32px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.48), rgba(0,0,0,0));
  transition: opacity 260ms var(--ease);
}
html[data-nav-docked="1"] .nav::before { opacity: 0; }

/* The content now follows the hero directly. There is no empty paper viewport. */
.paper-rise { display: none; }
.hero-video { opacity: 1; }
.wordmark--hero { z-index: 33; }
html[data-paper-covers-wm="1"] .wordmark--hero { color: var(--paper); }
html[data-nav-docked="1"] .wordmark--hero { color: var(--text); }

.statement {
  min-height: 100svh;
  padding: clamp(110px, 14vw, 210px) clamp(24px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.statement__copy {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.1vw, 9.4rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.statement__copy span { display: block; }
.statement__indent { padding-left: clamp(0px, 9vw, 150px); }

.invitation {
  min-height: 100svh;
  padding: clamp(90px, 10vw, 150px) clamp(24px, 6vw, 96px);
  background: var(--burgundy);
  color: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr;
}
.invitation__setup {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 2.5vw, 2.8rem);
  line-height: 1.02;
}
.invitation__payoff {
  align-self: end;
  margin: 80px 0 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 11rem);
  line-height: .82;
  letter-spacing: -.05em;
}
.invitation__payoff span { margin-left: clamp(0px, 8vw, 130px); }

.program-grid {
  margin-top: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}
.program-card {
  min-height: clamp(410px, 37vw, 560px);
  padding: clamp(24px, 3vw, 42px);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: attr(data-day);
  position: absolute;
  top: -0.16em;
  right: -0.04em;
  font-family: var(--serif);
  font-size: clamp(7rem, 13vw, 13rem);
  line-height: 1;
  letter-spacing: -.08em;
  opacity: .09;
  pointer-events: none;
}
.program-card:nth-child(1) { grid-column: 1 / 5; grid-row: 1; --card-rotation: -1.1deg; --entry-rotation: -3deg; transform: rotate(var(--card-rotation)); }
.program-card:nth-child(2) { grid-column: 5 / 9; grid-row: 1; margin-top: 44px; --card-rotation: .9deg; --entry-rotation: 2.6deg; transform: rotate(var(--card-rotation)); }
.program-card:nth-child(3) { grid-column: 9 / 13; grid-row: 1; margin-top: -8px; --card-rotation: -.5deg; --entry-rotation: -2deg; transform: rotate(var(--card-rotation)); }
.program-card--yellow { background: var(--yellow); }
.program-card--blue { background: var(--blue); }
.program-card--burgundy { background: var(--burgundy); color: var(--paper); }
.program-card time { position: relative; z-index: 1; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.program-card h3 { position: relative; z-index: 1; margin: auto 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(3.5rem, 5.2vw, 6.5rem); line-height: .78; letter-spacing: -.045em; }
.program-card p { position: relative; z-index: 1; margin: 0; max-width: 25ch; font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.3; }

.display--sm { font-size: clamp(2.75rem, 1rem + 8vw, 8rem); max-width: 12ch; }
.text-link { display: inline-block; margin-top: 28px; color: inherit; font-weight: 500; }

.member__portrait { border-radius: clamp(24px, 3vw, 40px); transition: transform 340ms var(--ease), box-shadow 340ms var(--ease); }
.member__portrait img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .member:hover .member__portrait { transform: translateY(-10px) rotate(-1.4deg); box-shadow: 0 22px 40px rgba(0,0,0,.16); }
  .member:nth-child(even):hover .member__portrait { transform: translateY(-10px) rotate(1.4deg); }
  .program-card:hover { box-shadow: 0 24px 50px rgba(0,0,0,.14); }
  .program-card:nth-child(1):hover { transform: translateY(-9px) rotate(-2deg); }
  .program-card:nth-child(2):hover { transform: translateY(-9px) rotate(2deg); }
  .program-card:nth-child(3):hover { transform: translateY(-9px) rotate(-1.5deg); }
  .story:hover { transform: translateY(-10px) rotate(-.8deg); box-shadow: 0 24px 50px rgba(0,0,0,.14); }
  .story:nth-child(even):hover { transform: translateY(-10px) rotate(.8deg); }
}

.stories { padding-top: clamp(100px, 12vw, 180px); }
.stories__head { max-width: 1050px; margin: 0 auto clamp(60px, 8vw, 120px); }
.stories__head .eyebrow { margin-bottom: clamp(20px, 3vw, 34px); }
.stories__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: start; }
.story { border-radius: 32px; padding: 32px; min-height: 320px; display: flex; flex-direction: column; background: var(--blue); transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.story--wide { grid-column: 1 / 8; min-height: 460px; }
.story--tall { grid-column: 8 / 13; min-height: 600px; margin-top: 90px; background: var(--charcoal); color: white; }
.story--small { grid-column: 3 / 8; margin-top: -110px; background: var(--yellow); transform: rotate(-1.2deg); }
.story__type { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.story h3 { margin: auto 0 12px; max-width: 12ch; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 5rem); line-height: .92; }
.story p:last-child { margin-bottom: 0; max-width: 34ch; }

.section--space { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(50px, 8vw, 120px); align-items: center; }
.space__mosaic { min-height: 650px; display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr .75fr; gap: 16px; }
.space-tile { position: relative; margin: 0; border-radius: 32px; padding: 24px; display: flex; align-items: flex-end; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: var(--blue); overflow: hidden; transition: transform 300ms var(--ease); }
.space-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.space-tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.55)); }
.space-tile figcaption { position: relative; z-index: 1; color: white; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
.space-tile--wide { grid-row: 1 / 3; background: linear-gradient(155deg, var(--burgundy), #7b285d); color: var(--paper); }
.space-tile--small { background: var(--yellow); transform: rotate(1.2deg); }
.space-tile--tall { background: var(--charcoal); color: var(--paper); transform: rotate(-1deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .space-tile:hover { transform: translateY(-8px) rotate(0); }
}

.day { background: var(--blue); color: var(--text); padding: clamp(100px, 12vw, 180px) clamp(24px, 6vw, 96px); overflow: hidden; }
.day__head { display: grid; grid-template-columns: minmax(190px, .4fr) 1fr; gap: 40px; align-items: start; margin-bottom: clamp(80px, 10vw, 150px); }
.day__head h2 { max-width: 15ch; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7.5vw, 8.5rem); line-height: .9; letter-spacing: -.04em; }
.day__moments { min-height: 1450px; position: relative; }
.day-moment { position: absolute; margin: 0; }
.day-moment img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; display: block; }
.day-moment figcaption { margin-top: 14px; max-width: 25ch; font-size: clamp(1rem, 1.4vw, 1.3rem); }
.day-moment figcaption span { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .12em; }
.day-moment--morning { top: 0; left: 0; width: min(38vw, 500px); transform: rotate(-1.5deg); }
.day-moment--morning img { aspect-ratio: 4 / 5; }
.day-moment--work { top: 250px; right: -2vw; width: min(47vw, 650px); transform: rotate(1.2deg); }
.day-moment--work img { aspect-ratio: 4 / 5; }
.day-moment--work figcaption { margin-left: auto; text-align: right; }
.day-moment--dinner { top: 840px; left: 15%; width: min(48vw, 680px); transform: rotate(-.8deg); }
.day-moment--dinner img { aspect-ratio: 4 / 3; }
.day__closing { max-width: 15ch; margin: clamp(70px, 9vw, 140px) 0 0 auto; font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 8rem); line-height: .9; letter-spacing: -.04em; }
.day__closing span { display: block; margin-left: clamp(0px, 7vw, 120px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .day-moment { transition: transform 320ms var(--ease), z-index 0ms; }
  .day-moment:hover { transform: translateY(-12px) rotate(0); z-index: 2; }
}

.institute { min-height: 88svh; padding: clamp(100px, 12vw, 180px) clamp(24px, 6vw, 96px); background: var(--charcoal); color: var(--paper); display: grid; grid-template-columns: minmax(180px, .35fr) 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.institute__body h2 { margin: 0 0 50px; max-width: 15ch; font-family: var(--serif); font-weight: 400; font-size: clamp(3.1rem, 7.2vw, 8.2rem); line-height: .9; letter-spacing: -.04em; }
.institute__body p { max-width: 53ch; font-size: clamp(1.1rem, 1.5vw, 1.45rem); }
.institute__body a { display: inline-block; margin-top: 26px; color: inherit; }

.about { padding: clamp(100px, 12vw, 180px) clamp(24px, 6vw, 96px); background: var(--yellow); color: var(--text); }
.about__head { display: grid; grid-template-columns: minmax(180px, .35fr) 1fr; gap: 40px; margin-bottom: clamp(70px, 9vw, 130px); }
.about__head h2 { margin: 0; max-width: 12ch; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 8rem); line-height: .9; letter-spacing: -.04em; }
.about__pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid currentColor; }
.about__pillars article { min-height: 360px; padding: 22px 24px 30px 0; border-right: 1px solid currentColor; display: flex; flex-direction: column; transition: transform 280ms var(--ease); transform-origin: center bottom; }
.about__pillars article + article { padding-left: 24px; }
.about__pillars article:last-child { border-right: 0; }
.about__pillars .about__number { font-size: 12px; letter-spacing: .12em; }
.about__pillars h3 { margin: auto 0 18px; font-family: var(--serif); font-weight: 400; line-height: .8; letter-spacing: -.055em; }
.about__pillars h3 small { display: block; margin: 0 0 14px 3px; font-family: var(--sans); font-size: clamp(.78rem, .9vw, .95rem); font-weight: 500; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.about__pillars h3 strong { display: block; font-family: inherit; font-size: clamp(4rem, 5.7vw, 7rem); font-weight: 400; }
.about__pillars p { margin: 0; max-width: 21ch; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.35; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about__pillars article:nth-child(odd):hover { transform: translateY(-10px) rotate(-.7deg); }
  .about__pillars article:nth-child(even):hover { transform: translateY(-10px) rotate(.7deg); }
}

.foot { padding: 0; border: 0; background: var(--burgundy); color: var(--paper); }
.foot__newsletter { padding: clamp(90px, 10vw, 150px) clamp(24px, 6vw, 96px); display: grid; grid-template-columns: minmax(180px, .35fr) 1fr; column-gap: 40px; row-gap: 34px; align-items: start; }
.foot__newsletter > p:nth-child(2) { margin: 0; max-width: 11ch; font-family: var(--serif); font-size: clamp(3rem, 6vw, 7rem); line-height: .9; letter-spacing: -.04em; }
.foot__newsletter > a { grid-column: 2; justify-self: start; color: var(--burgundy); background: var(--paper); padding: 14px 24px; border-radius: 999px; text-decoration: none; font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 500; }
.foot__brand { padding: clamp(70px, 8vw, 120px) clamp(24px, 6vw, 96px) clamp(50px, 6vw, 90px); }
.foot__brand img { display: block; width: min(100%, 1500px); height: auto; }
.foot__grid { padding: 0 clamp(24px, 6vw, 96px) clamp(70px, 8vw, 120px); display: grid; grid-template-columns: 1fr 1.4fr 1.25fr .8fr; gap: clamp(34px, 5vw, 80px); }
.foot__grid nav, .foot__grid > div { display: flex; flex-direction: column; align-items: flex-start; }
.foot__grid a { color: inherit; text-decoration: none; margin-bottom: 7px; }
.foot__grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__label { margin: 0 0 20px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .62; }
.foot address { font-style: normal; line-height: 1.6; }
.foot__social { display: flex; flex-direction: column; margin-top: 22px; }
.foot__apply .foot__label { margin-bottom: 34px; }
.foot__apply > a { padding: 14px 22px; border-radius: 999px; background: var(--paper); color: var(--burgundy); font-weight: 500; }
.foot__bottom { padding: 24px clamp(24px, 6vw, 96px); display: flex; justify-content: space-between; gap: 30px; font-size: 12px; opacity: .7; }
.foot__bottom p { margin: 0; }

@media (max-width: 720px) {
  .brand-cue { top: 19px; left: 16px; width: 104px; }
  .statement { min-height: 82svh; }
  .statement__copy { font-size: clamp(2.75rem, 13vw, 5rem); line-height: .92; }
  .statement__indent { padding-left: 0; }
  .invitation__payoff { font-size: clamp(3.7rem, 17vw, 6.5rem); }
  .invitation__payoff span { margin-left: 0; }
  .program-grid { display: flex; overflow-x: auto; gap: 24px; padding: 8px 2px 32px; scroll-snap-type: x mandatory; }
  .program-card, .program-card:nth-child(n) { flex: 0 0 82vw; min-height: 380px; margin-top: 0; padding: 30px 28px; grid-row: auto; transform: none; scroll-snap-align: start; }
  .program-card h3 { font-size: clamp(2.65rem, 13vw, 3.4rem); line-height: .82; }
  .section--space { display: block; }
  .space__mosaic { min-height: 520px; margin-top: 56px; }
  .day__head { grid-template-columns: 1fr; }
  .day__moments { min-height: auto; display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; padding: 8px 2px 30px; scroll-snap-type: x mandatory; }
  .day-moment, .day-moment--morning, .day-moment--work, .day-moment--dinner { position: relative; inset: auto; flex: 0 0 82vw; width: auto; transform: none; scroll-snap-align: start; }
  .day-moment img, .day-moment--morning img, .day-moment--work img, .day-moment--dinner img { height: auto; aspect-ratio: 4 / 5; }
  .day__closing { margin-top: 70px; }
  .day__closing span { margin-left: 0; }
  .institute, .about__head { grid-template-columns: 1fr; }
  .about__pillars { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .about__pillars article { flex: 0 0 76vw; min-height: 350px; scroll-snap-align: start; }
  .about__pillars h3 strong { font-size: clamp(4.8rem, 21vw, 7rem); }
  .foot__newsletter { grid-template-columns: 1fr; align-items: start; }
  .foot__newsletter > a { grid-column: 1; }
  .foot__brand img { width: 100%; }
  .foot__grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .foot__grid nav,
  .foot__grid > div { width: 100%; }
  .foot address {
    line-height: 1.85;
    letter-spacing: .01em;
  }
  .foot__apply .foot__label { margin-bottom: 20px; }
  .foot__apply > a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    padding: 15px 22px;
    text-align: center;
    white-space: nowrap;
  }
  .stories__head { padding-inline: clamp(24px, 6vw, 96px); }
  .stories__grid { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 24px; scroll-snap-type: x mandatory; }
  .story, .story--wide, .story--tall, .story--small { flex: 0 0 82vw; min-height: 430px; margin-top: 0; transform: none; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .member__portrait, .program-card, .story, .space-tile, .about__pillars article { transition: none; }
}

/* ---------- Post-workshop direction, September 2026 ---------- */
/* A shorter three-beat hero. The logo no longer migrates across the viewport. */
.intro { height: 360vh; }
.wordmark--hero { display: none; }
html[data-nav-docked="1"] .brand-cue {
  opacity: 1;
  pointer-events: auto;
  filter: invert(1);
  text-shadow: none;
}
.fragments {
  inset-inline: clamp(24px, 9vw, 150px);
  bottom: clamp(130px, 18vh, 210px);
  display: flex;
  justify-content: center;
  text-align: center;
}
.fragment {
  left: 50%;
  width: min(100%, 22ch);
  max-width: 22ch;
  transform: translate(-50%, 18px);
  font-size: clamp(3rem, 7.2vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.035em;
}
html[data-fragment="0"] .fragment[data-i="0"],
html[data-fragment="1"] .fragment[data-i="1"],
html[data-fragment="2"] .fragment[data-i="2"] {
  transform: translate(-50%, 0);
}
html[data-fragment="3"] .fragment { opacity: 0; }

.progress {
  right: clamp(18px, 3vw, 42px);
  padding: 12px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 5px rgba(0,0,0,.8);
}
.scroll-cue {
  padding: 14px 32px 12px;
  border: 1px solid rgba(245,241,234,.7);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.scroll-cue__arrow { margin-top: 3px; }
html[data-fragment="3"] .scroll-cue,
html[data-fragment="2"] .scroll-cue {
  background: var(--paper);
  color: var(--text);
  border-color: var(--paper);
  text-shadow: none;
}
.stage::after {
  content: "";
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: var(--paper);
  transform: translateY(100%);
  transition: transform 420ms var(--ease);
}
html[data-fragment="3"] .stage::after { transform: translateY(0); }

.statement {
  min-height: auto;
  padding-top: clamp(100px, 11vw, 160px);
  padding-bottom: clamp(100px, 11vw, 160px);
}

/* Events are now a primary homepage destination. */
.events-head {
  display: block;
  margin-bottom: clamp(60px, 8vw, 110px);
}
.events-head .display { margin-bottom: 0; }
.events-head .lede {
  max-width: 52ch;
  margin: clamp(28px, 4vw, 48px) 0 0;
}
.event-kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12px !important;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.event-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.events-actions {
  margin-top: clamp(50px, 7vw, 90px);
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 14px 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.pill-link--dark:hover { background: var(--text); color: var(--paper); }
.pill-link--filled { background: var(--text); color: var(--paper); border-color: var(--text); }
.pill-link--filled:hover,
.pill-link--filled:focus-visible {
  background: var(--yellow);
  color: var(--text);
  border-color: var(--text);
  transform: translateY(-2px);
}
.pill-link--outline { background: transparent; color: var(--text); }
.pill-link--outline:hover { background: var(--text); color: var(--paper); }
.text-link--dark { color: var(--text); }

/* A single destination module keeps Visit from becoming a loose text/image sequence. */
.visit > .eyebrow { margin-bottom: clamp(30px, 4vw, 54px); }
.visit__card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  overflow: hidden;
  background: var(--blue);
  border-radius: clamp(28px, 4vw, 54px);
}
.visit__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(42px, 6vw, 88px);
}
.visit__content .display { margin-bottom: 28px; }
.visit__content .lede { margin: 0; }
.visit__content address {
  margin: 34px 0 0;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.75;
}
.visit__directions { margin-top: 30px; }
.visit__image {
  position: relative;
  min-height: 580px;
  margin: 0;
}
.visit__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visit__image figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245,241,234,.88);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Consistent text-link affordance. Colour adds energy without obscuring copy. */
.text-link,
.institute__body a {
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  text-decoration-color: rgba(30,30,30,.48);
  transition: color 180ms var(--ease), text-decoration-color 180ms var(--ease), text-underline-offset 180ms var(--ease);
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
  text-decoration-color: currentColor;
  text-underline-offset: 10px;
}
.institute__body a { text-decoration-color: rgba(245,241,234,.48); }
.institute__body a:hover,
.institute__body a:focus-visible {
  color: var(--paper);
  text-decoration-color: currentColor;
  text-underline-offset: 10px;
}
.section--burgundy .text-link {
  color: var(--paper);
  text-decoration-color: rgba(245,241,234,.48);
}
.section--burgundy .text-link:hover,
.section--burgundy .text-link:focus-visible {
  color: var(--paper);
  text-decoration-color: currentColor;
}

/* Newsletter is a CTA button, never an underlined text link. */
.foot__newsletter > a,
.foot__newsletter > a:hover,
.foot__newsletter > a:focus-visible {
  font-weight: 700;
  text-decoration: none;
}

/* Residency closes one chapter; newsletter starts another. */
.foot__newsletter {
  background: var(--blue);
  color: var(--text);
}
.foot__newsletter .eyebrow--light { color: var(--text); }
.foot__newsletter > a {
  background: var(--burgundy);
  color: var(--paper);
}
.foot__newsletter > a:hover,
.foot__newsletter > a:focus-visible {
  background: var(--yellow);
  color: var(--text);
}

/* Footer navigation stays quiet. No repeated underline treatment. */
.foot__grid a,
.foot__grid a:hover,
.foot__grid a:focus-visible {
  font-weight: 500;
  text-decoration: none;
}
.foot__grid a:hover,
.foot__grid a:focus-visible { color: var(--yellow); }
.foot__apply > a:hover,
.foot__apply > a:focus-visible {
  background: var(--yellow);
  color: var(--text);
}

/* Scroll entrance for the large event cards. */
@media (prefers-reduced-motion: no-preference) {
  .program-card[data-reveal] {
    opacity: 0;
    transform: translateY(88px) rotate(var(--entry-rotation, 0deg)) scale(.965);
    transition: opacity 760ms var(--ease), transform 1050ms cubic-bezier(.16,1,.3,1), box-shadow 280ms var(--ease);
    will-change: transform, opacity;
  }
  .program-card[data-reveal]:nth-child(2) { transition-delay: 150ms; }
  .program-card[data-reveal]:nth-child(3) { transition-delay: 300ms; }
  .program-card[data-reveal].is-inview {
    opacity: 1;
    transform: translateY(0) rotate(var(--card-rotation, 0deg));
  }

  .event-life__images figure[data-reveal] {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 650ms var(--ease), transform 800ms var(--ease);
  }
  .event-life__images figure[data-reveal]:nth-child(2) { transition-delay: 110ms; }
  .event-life__images figure[data-reveal]:nth-child(3) { transition-delay: 220ms; }
  .event-life__images figure[data-reveal].is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .program-card[data-reveal].is-inview:hover {
    transform: translateY(-10px) rotate(var(--card-rotation, 0deg)) scale(1.01);
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
  }
  .event-life__images figure.is-inview:hover img { transform: scale(1.025); }
}
.event-life {
  margin-top: clamp(100px, 13vw, 190px);
  padding-top: clamp(55px, 7vw, 90px);
  border-top: 1px solid rgba(0,0,0,.22);
}
.event-life__copy {
  display: grid;
  grid-template-columns: minmax(180px,.35fr) 1fr;
  gap: clamp(32px, 6vw, 90px);
  margin-bottom: clamp(55px, 7vw, 90px);
}
.event-life__copy .eyebrow { margin: 8px 0 0; }
.event-life__copy h3 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.04em;
}
.event-life__copy > p:last-child {
  grid-column: 2;
  max-width: 50ch;
  margin: -38px 0 0;
}
.event-life__images {
  display: grid;
  grid-template-columns: 1.15fr .85fr .75fr;
  gap: 18px;
  align-items: end;
}
.event-life__images figure { margin: 0; }
.event-life__images figure:nth-child(2) { margin-bottom: 70px; }
.event-life__images img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: clamp(22px, 3vw, 38px);
  transition: filter 420ms var(--ease), transform 420ms var(--ease);
}
.event-life__images figure:first-child img { aspect-ratio: 5 / 4; }
.event-life__images figure:last-child img { filter: grayscale(1); }
.event-life__images figcaption {
  margin-top: 11px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Straight community portrait system, with selective B&W only. */
.member,
.member--drop,
.member--raise,
.member--tilt-l,
.member--tilt-r,
.member--drop.member--tilt-r,
.member--raise.member--tilt-r { transform: none; }
.member--bw .member__portrait img { filter: grayscale(1); }
.member--bw .member__portrait img,
.tone-shift,
.event-life__images figure:last-child img {
  transition: filter 420ms var(--ease), transform 420ms var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .member--bw:hover .member__portrait img,
  .institute-people article:hover .tone-shift,
  .event-life__images figure:last-child:hover img {
    filter: grayscale(0);
  }
}

/* A clear participation ladder before the secondary residency CTA. */
.get-involved {
  padding: clamp(100px, 12vw, 180px) clamp(24px, 6vw, 96px);
  background: var(--blue);
  color: var(--text);
}
.get-involved__head {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) 1fr;
  gap: clamp(36px, 6vw, 90px);
  margin-bottom: clamp(70px, 9vw, 130px);
}
.get-involved__head h2 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 8rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
}
.get-involved__grid { border-top: 1px solid currentColor; }
.get-involved__grid a {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
  transition: padding 220ms var(--ease), background 220ms var(--ease);
}
.get-involved__grid a:hover { padding-inline: 18px; background: rgba(245,241,234,.45); }
.get-involved__grid span { font-size: 12px; letter-spacing: .12em; }
.get-involved__grid strong { font-family: var(--serif); font-size: clamp(2rem, 4vw, 4.8rem); font-weight: 400; line-height: 1; }
.get-involved__grid em { max-width: 26ch; font-style: normal; text-align: right; }

.institute-people {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 3.25vw, 52px);
  margin-top: clamp(70px, 9vw, 130px);
}
.institute-people article { min-width: 0; margin: 0; }
.institute-people img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: clamp(20px, 2.5vw, 34px);
  filter: grayscale(1);
}
.institute-people p {
  max-width: 28ch;
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.55;
}
.institute-people p span {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .66;
}

@media (max-width: 900px) {
  .nav__links { gap: 12px; font-size: 13px; }
  .nav__links .nav__engage { display: none; }
  .events-head { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .intro { height: 300vh; }
  .stage .fragments {
    inset-inline: 24px;
    bottom: calc(142px + env(safe-area-inset-bottom, 0px));
  }
  .fragment { font-size: clamp(3rem, 15vw, 5.6rem); line-height: .9; }
  .progress { right: 10px; }
  html .scroll-cue { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .statement { min-height: auto; padding-top: 100px; padding-bottom: 100px; }
  .events-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .events-actions .pill-link,
  .visit__directions,
  .foot__newsletter > a {
    width: 100%;
    min-height: 54px;
    padding: 15px 22px;
    justify-content: center;
    text-align: center;
  }
  .visit__card { grid-template-columns: 1fr; }
  .visit__image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .visit__content { padding: 34px 24px 38px; }
  .visit__content .display { margin-bottom: 20px; }
  .visit__content address { margin-top: 26px; }
  .event-life__copy { grid-template-columns: 1fr; }
  .event-life__copy > p:last-child { grid-column: 1; margin: 0; }
  .event-life__images {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 22px;
    scroll-snap-type: x mandatory;
  }
  .event-life__images figure,
  .event-life__images figure:nth-child(2) { flex: 0 0 78vw; margin-bottom: 0; scroll-snap-align: start; }
  .event-life__images img,
  .event-life__images figure:first-child img { aspect-ratio: 4 / 5; }
  .get-involved__head { grid-template-columns: 1fr; }
  .get-involved__grid a { grid-template-columns: 42px 1fr; }
  .get-involved__grid em { grid-column: 2; text-align: left; }
  .institute-people { grid-column: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .institute-people article { flex: 0 0 76vw; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { height: 100svh; }
  .fragments { display: none; }
  .brand-cue { filter: none !important; }
}

/* ============================================================
   WordPress adapter
   The demo stylesheet above is kept intact. Rules below map it onto
   the core block markup the editor produces. Keep changes here.
   ============================================================ */

/* Base */
img { height: auto; }
.wp-block-image, .wp-block-group figure { margin: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--paper); text-decoration: none; }
.skip-link:focus { top: 12px; }
body.admin-bar .nav, body.admin-bar .brand-cue { margin-top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav, body.admin-bar .brand-cue { margin-top: 46px; } }

/* Statement: the italic line is the indented line */
.statement__copy em { font-style: normal; display: inline-block; padding-left: clamp(0px, 9vw, 150px); }
@media (max-width: 720px) { .statement__copy em { padding-left: 0; } }

/* Event cards */
.program-card .event-meta p { margin: 0; max-width: none; font-size: 12px; line-height: 1.55; }

/* Pill buttons: style the link, not the wrapper */
.wp-block-button.pill-link,
.wp-block-button.pill-link:hover,
.wp-block-button.pill-link:focus-within { display: inline-flex; padding: 0; border: 0; background: none; transform: none; }
.pill-link > a {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  padding: 14px 24px; border: 1px solid currentColor; border-radius: 999px;
  text-decoration: none; font-weight: 500; color: inherit;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.pill-link--filled > a { background: var(--text); color: var(--paper); border-color: var(--text); }
.pill-link--filled > a:hover,
.pill-link--filled > a:focus-visible { background: var(--yellow); color: var(--text); border-color: var(--text); transform: translateY(-2px); }
.pill-link--outline > a { background: transparent; color: var(--text); }
.pill-link--outline > a:hover { background: var(--text); color: var(--paper); }
.visit__directions { margin-top: 30px; }

/* Text links: the paragraph carries the class, the link carries the look */
/* Padding, not margin: the demo link is inline-block, so its 28px adds to the lede margin instead of collapsing. */
p.text-link { display: block; margin: 0; padding-top: 28px; font-weight: 400; text-decoration: none; }
.text-link a {
  color: inherit; font-weight: 700;
  text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  text-decoration-color: rgba(30,30,30,.48);
  transition: color 180ms var(--ease), text-decoration-color 180ms var(--ease), text-underline-offset 180ms var(--ease);
}
.text-link a:hover, .text-link a:focus-visible { color: var(--text); text-decoration-color: currentColor; text-underline-offset: 10px; }
.section--burgundy .text-link a { color: var(--paper); text-decoration-color: rgba(245,241,234,.48); }
.section--burgundy .text-link a:hover, .section--burgundy .text-link a:focus-visible { color: var(--paper); text-decoration-color: currentColor; }

/* Community */
.member__portrait { margin: 0; }

/* Institute */
.institute__body p.institute__link { margin: 0; font-size: inherit; }
.institute-people figure { margin: 0; }
.institute-people p strong { display: block; margin-bottom: 9px; font-size: 11px; font-weight: inherit; letter-spacing: .12em; text-transform: uppercase; opacity: .66; }

/* Get involved: each row is a group, the link stretches over the whole row */
.gi-item {
  position: relative; display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid currentColor;
  transition: padding 220ms var(--ease), background 220ms var(--ease);
}
.gi-item:hover { padding-inline: 18px; background: rgba(245,241,234,.45); }
.gi-item:focus-within { outline: 2px solid var(--text); outline-offset: 3px; }
.gi-item p { margin: 0; }
.gi-num { font-size: 12px; letter-spacing: .12em; }
.gi-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 4.8rem); font-weight: 400; line-height: 1; }
.gi-link { max-width: 26ch; text-align: right; }
.get-involved__grid .gi-item a { display: inline; padding: 0; border: 0; background: none; color: inherit; text-decoration: none; }
.get-involved__grid .gi-item a:hover { padding: 0; background: none; }
.get-involved__grid .gi-item a:focus-visible { outline: none; }
.get-involved__grid .gi-item a::after { content: ""; position: absolute; inset: 0; }

/* About: "The" small, the word large */
.about__pillars .about__number { margin: 0; }
.about__pillars h3 { font-family: var(--sans); font-size: clamp(.78rem, .9vw, .95rem); font-weight: 500; line-height: 1; letter-spacing: .12em; text-transform: uppercase; padding-left: 3px; }
.about__pillars h3 strong { display: block; margin: 14px 0 0 -3px; font-family: var(--serif); font-weight: 400; line-height: .8; text-transform: none;
  /* The demo inherits -.055em computed at the h3 size, not the word size. */
  letter-spacing: calc(-.055 * 1.17 * clamp(1rem, 0.94rem + 0.3vw, 1.125rem)); }

/* Visit */
.visit__address { margin: 34px 0 0; font-size: 1rem; line-height: 1.75; }

/* Footer */
.foot__newsletter > .foot__cta { grid-column: 2; justify-self: start; margin: 0; }
.foot__cta a {
  display: inline-block; padding: 14px 24px; border-radius: 999px; background: var(--burgundy); color: var(--paper);
  text-decoration: none; font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 700;
}
.foot__cta a:hover, .foot__cta a:focus-visible { background: var(--yellow); color: var(--text); }
.foot__brand figure { margin: 0; }
.foot__grid p:not(.foot__label) { margin: 0; }
/* Demo: block links, line-height 1.55 plus 7px margin each. */
.foot__links { line-height: calc(1.55em + 7px); }
.foot__grid .foot__links a { margin: 0; }
.foot__social { display: block; margin-top: 22px !important; }
.foot__cta, .foot__apply-cta { display: flex; }
.foot__address { font-style: normal; line-height: 1.6; }
.foot__apply-cta a {
  display: inline-block; padding: 14px 22px; border-radius: 999px; background: var(--paper); color: var(--burgundy);
  font-weight: 500; text-decoration: none;
}
.foot__apply-cta a:hover, .foot__apply-cta a:focus-visible { background: var(--yellow); color: var(--text); }

@media (max-width: 720px) {
  .events-actions .pill-link, .events-actions .pill-link > a,
  .visit__directions, .visit__directions .pill-link, .visit__directions .pill-link > a { width: 100%; }
  .events-actions .pill-link > a, .visit__directions .pill-link > a { min-height: 54px; padding: 15px 22px; }
  .visit__address { margin-top: 26px; }
  .wp-block-buttons.visit__directions { min-height: 0; padding: 0; }
  .gi-item { grid-template-columns: 42px 1fr; }
  .gi-link { grid-column: 2; text-align: left; }
  .foot__newsletter > .foot__cta { grid-column: 1; width: 100%; }
  .foot__cta a, .foot__apply-cta a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 15px 22px; box-sizing: border-box; }
  .foot__apply-cta { width: 100%; }
  .foot__address { line-height: 1.85; letter-spacing: .01em; }
}
