:root {
  --ink: #000;
  --paper: #fff;
  --muted: #6b6b6b;
  --hairline: #d8d8d8;
  --soft: #f4f4f4;
  --blue: #00a9e8;
  --green: #90ca16;
  --red: #d71920;
  --page-pad: clamp(24px, 3.4vw, 48px);
  --max: 1280px;
  --anchor-offset: clamp(150px, 10vw, 178px);
  --display-weight: 800;
  --nav-weight: 800;
  --label-weight: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.12;
  overflow-x: hidden;
}

body.search-is-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

.jam-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 0;
}

.jam-header-top {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  align-items: start;
  gap: clamp(18px, 3vw, 44px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--page-pad) 10px;
}

.jam-logo {
  display: inline-flex;
  align-items: center;
  width: min(312px, 42vw);
  height: clamp(56px, 5vw, 80px);
  text-decoration: none;
}

.jam-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.jam-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  padding-top: 0;
  font-size: clamp(0.94rem, 1.06vw, 1.12rem);
  font-weight: var(--nav-weight);
}

.jam-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
}

.jam-actions .action-muted {
  background: var(--soft);
}

.jam-actions .action-blue {
  background: var(--blue);
}

.jam-actions .language-switch {
  min-height: 44px;
  padding: 0 0 0 2px;
  background: transparent;
  font-size: 0.92em;
  letter-spacing: 0;
}

.jam-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.9vw, 46px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad) 20px;
  font-size: clamp(1rem, 1.35vw, 1.32rem);
  font-weight: var(--nav-weight);
}

.jam-nav a,
.jam-nav button {
  text-decoration: none;
  white-space: nowrap;
}

.jam-nav a:hover,
.jam-nav button:hover {
  color: var(--red);
}

.nav-search {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 1.32em;
  font-weight: var(--nav-weight);
  line-height: 1;
  padding: 0;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 18px var(--page-pad);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.wordmark-jam {
  display: inline-flex;
  align-items: center;
  font-size: 3rem;
  font-weight: var(--display-weight);
  line-height: 0.9;
}

.wordmark-name {
  max-width: 220px;
  font-weight: var(--display-weight);
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  font-weight: var(--nav-weight);
}

.site-nav a {
  text-decoration: none;
}

.jam-hero {
  position: relative;
  height: clamp(320px, calc(100vh - 350px), 700px);
  height: clamp(320px, calc(100svh - 350px), 700px);
  overflow: hidden;
  background: var(--soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.jam-hero img,
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-slide-wave img {
  object-position: center 50%;
}

.hero-slide-basketball img {
  object-position: center 50%;
}

.hero-slide-hanami-young-visitor img {
  object-position: center 62%;
}

.hero-slide-hanami-calligraphy img {
  object-position: center 65%;
}

.hero-slide-hanami-jam img {
  object-position: center 60%;
}

.welcome-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: clamp(28px, 7vw, 108px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 3.8vw, 48px) var(--page-pad) clamp(34px, 3.8vw, 48px);
  border-bottom: 3px solid var(--ink);
}

.welcome-panel > *,
.welcome-side,
.collection-section > *,
.events-for-everyone > *,
.newsletter-strip > * {
  min-width: 0;
}

.welcome-panel h1 {
  margin: 0;
  font-size: clamp(3.5rem, 4.95vw, 5rem);
  font-weight: var(--display-weight);
  line-height: 0.94;
  letter-spacing: 0;
}

.welcome-lead {
  margin: 18px 0 0;
  font-size: clamp(1.14rem, 1.78vw, 1.82rem);
  font-weight: var(--display-weight);
  line-height: 1.08;
}

.welcome-side {
  align-self: center;
  width: 100%;
}

.welcome-side p {
  width: 100%;
  max-width: min(620px, 100%);
  margin: 0 0 20px;
  font-size: clamp(1.03rem, 1.22vw, 1.18rem);
  line-height: 1.3;
}

.black-button,
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  background: var(--ink);
  color: #fff;
  font-size: 0.98rem;
  font-weight: var(--nav-weight);
  text-decoration: none;
}

.black-button:hover {
  background: var(--red);
}

.text-button {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

html[lang="ja"] .jam-actions {
  font-size: clamp(0.88rem, 0.98vw, 1.02rem);
}

html[lang="ja"] .jam-nav {
  gap: clamp(16px, 2.35vw, 36px);
  font-size: clamp(0.94rem, 1.18vw, 1.16rem);
}

html[lang="ja"] .welcome-panel h1 {
  font-size: clamp(3rem, 4.35vw, 4.45rem);
  line-height: 1.02;
}

html[lang="ja"] .welcome-lead {
  font-size: clamp(1.08rem, 1.54vw, 1.58rem);
  line-height: 1.18;
}

html[lang="ja"] .section-title-row h2,
html[lang="ja"] .collection-intro h2,
html[lang="ja"] .green-band h2,
html[lang="ja"] .newsletter-strip h2,
html[lang="ja"] .support-strip h2 {
  font-size: clamp(1.8rem, 3.05vw, 3.25rem);
  line-height: 1.08;
}

.jam-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px var(--page-pad);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-title-row h2,
.collection-intro h2,
.green-band h2,
.newsletter-strip h2,
.support-strip h2 {
  margin: 0;
  font-size: clamp(2rem, 3.55vw, 3.7rem);
  font-weight: var(--display-weight);
  line-height: 0.94;
  letter-spacing: 0;
}

.section-arrows {
  display: flex;
  gap: 22px;
}

.section-arrows button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 2rem;
  font-weight: var(--display-weight);
  line-height: 1;
  cursor: pointer;
}

.section-arrows button:hover,
.section-arrows button:focus-visible {
  color: var(--red);
}

.exhibition-rail {
  display: grid;
  grid-auto-columns: clamp(260px, 25.5vw, 380px);
  grid-auto-flow: column;
  gap: clamp(22px, 3vw, 44px);
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.exhibition-rail::-webkit-scrollbar {
  display: none;
}

.exhibition-card {
  min-width: 0;
  scroll-snap-align: start;
}

.exhibition-card a {
  display: block;
  text-decoration: none;
}

.exhibition-card img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  background: var(--soft);
}

.exhibition-card.is-poster img {
  object-fit: contain;
  background: #ecebe7;
}

.exhibition-card h3 {
  margin: 14px 0 6px;
  font-size: clamp(1.18rem, 1.48vw, 1.52rem);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: 0;
}

.exhibition-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: var(--label-weight);
}

.green-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(24px, 5vw, 82px);
  max-width: calc(var(--max) - var(--page-pad) * 2);
  margin: 18px auto 0;
  padding: clamp(28px, 3.8vw, 50px);
  background: var(--green);
}

.ecosystem-band {
  margin-top: 0;
  margin-bottom: 24px;
  background: var(--blue);
}

.green-band p {
  margin: 0 0 22px;
  font-size: clamp(1rem, 1.22vw, 1.2rem);
  line-height: 1.28;
}

.green-band a,
.collection-intro a {
  font-weight: var(--nav-weight);
  text-decoration: none;
}

.green-band p a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.meal-band {
  align-items: center;
  margin-top: 12px;
}

.meal-band-copy {
  min-width: 0;
}

.meal-band-copy .kicker {
  color: var(--ink);
}

.meal-band-image {
  margin: 0;
  overflow: hidden;
  /* background: rgba(255, 255, 255, 0.28); */
}

.meal-band-image img {
  width: 40%;
  /* margin-left: 40%; */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 74% 57%;
}

.collection-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: start;
}

.collection-intro {
  position: sticky;
  top: 170px;
}

.collection-intro p {
  max-width: 360px;
  margin: 14px 0;
  font-size: 1rem;
  line-height: 1.28;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}

.member-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--soft);
}

.member-card h3 {
  margin: 10px 0 3px;
  font-size: clamp(0.98rem, 1.12vw, 1.16rem);
  font-weight: var(--display-weight);
  line-height: 1;
}

.member-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: var(--label-weight);
}

.events-for-everyone {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 92px);
}

.activity-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.activity-feature-grid article {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.activity-feature-grid img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  background: var(--soft);
}

.activity-feature-grid h3 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 1.85vw, 2rem);
  font-weight: var(--display-weight);
  line-height: 1;
}

.activity-feature-grid p {
  margin: 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.3;
}

.newsletter-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px var(--page-pad);
  border-top: 3px solid var(--ink);
}

.newsletter-strip div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.newsletter-strip .newsletter-copy {
  display: block;
}

.newsletter-copy p {
  max-width: 540px;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.3;
}

.support-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 92px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px var(--page-pad);
  border-top: 3px solid var(--ink);
}

.support-strip p {
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.32;
}

.support-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 10px 0 24px;
  margin: 0;
  list-style: none;
}

.support-list li {
  padding-top: 12px;
  border-top: 3px solid var(--ink);
  font-size: 0.95rem;
  font-weight: var(--label-weight);
  line-height: 1.12;
}

.jam-footer,
.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(170px, 1fr) minmax(300px, 380px);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--page-pad) 32px;
  border-top: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.footer-brand img {
  display: block;
  width: min(260px, 48vw);
}

.mit-affiliation {
  justify-self: end;
  max-width: 370px;
}

.mit-lockup {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.mit-lockup img {
  flex: 0 0 auto;
  width: 78px;
  margin-top: 2px;
}

.mit-lockup span {
  display: block;
  max-width: 190px;
  font-size: 0.98rem;
  font-weight: var(--display-weight);
  line-height: 0.98;
}

.mit-affiliation p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: var(--label-weight);
  line-height: 1.24;
}

.jam-footer a,
.site-footer a {
  text-decoration: none;
}

.jam-footer a:hover,
.site-footer a:hover {
  color: var(--red);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 10px 24px;
  font-size: 0.92rem;
  font-weight: var(--label-weight);
  line-height: 1;
}

/* Event detail pages */
.page-hero,
.event-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  height: clamp(420px, 56svh, 560px);
  border-bottom: 3px solid var(--ink);
}

.page-hero-copy,
.event-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px var(--page-pad);
}

.page-hero-copy h1,
.event-hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 5.3vw, 5.8rem);
  font-weight: var(--display-weight);
  line-height: 0.9;
}

.kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: var(--label-weight);
  text-transform: uppercase;
}

.hero-deck {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: clamp(1.12rem, 1.62vw, 1.55rem);
  font-weight: var(--display-weight);
  line-height: 1.22;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin: 26px 0 0;
}

.inline-actions {
  margin: 0;
}

.page-hero-media,
.event-hero-media {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--soft);
}

.event-hero-media-expandable {
  position: relative;
  cursor: pointer;
}

.event-hero-media-expandable,
.flyer-preview,
.flyer-preview * {
  cursor: pointer;
}

.flyer-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.flyer-preview img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.flyer-expand-indicator {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: var(--ink);
  opacity: 0.58;
  transform: translate(0, 0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.flyer-expand-indicator::before,
.flyer-expand-indicator::after,
.flyer-expand-indicator span::before,
.flyer-expand-indicator span::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: currentColor;
  border-style: solid;
}

.flyer-expand-indicator::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.flyer-expand-indicator::after {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.flyer-expand-indicator span::before {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.flyer-expand-indicator span::after {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}

.flyer-preview:hover .flyer-expand-indicator,
.flyer-preview:focus-visible .flyer-expand-indicator {
  opacity: 1;
  transform: translate(-2px, -2px);
}

.flyer-preview:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.page-hero-media img,
.event-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wave-hero .event-hero-media img,
.poster-hero .event-hero-media img {
  object-fit: contain;
}

.poster-hero .event-hero-media {
  background: #eeeeec;
}

.poster-hero .event-hero-media img {
  padding: 28px;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-bottom: 1px solid var(--hairline);
}

.event-facts div {
  min-height: 110px;
  padding: 20px var(--page-pad);
  border-right: 1px solid var(--hairline);
}

.event-facts div:last-child {
  border-right: 0;
}

.event-facts span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--label-weight);
  text-transform: uppercase;
}

.event-facts strong {
  display: block;
  font-size: clamp(1.1rem, 1.45vw, 1.48rem);
  font-weight: var(--display-weight);
  line-height: 1.05;
}

.section,
.archive-section,
.speakers-section,
.event-story {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px var(--page-pad);
}

.section-header,
.section-header-split {
  display: grid;
  gap: 22px;
  margin-bottom: 42px;
}

.section-header-split {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.5fr);
}

.section-header h2,
.section-header-split h2 {
  margin: 0;
  font-size: clamp(2rem, 3.45vw, 3.65rem);
  font-weight: var(--display-weight);
  line-height: 0.96;
}

.section-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.event-board {
  border-top: 3px solid var(--ink);
}

.event-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr) minmax(220px, 0.38fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.event-date span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--label-weight);
  text-transform: uppercase;
}

.event-date strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: var(--display-weight);
}

.event-copy h3 {
  margin: 0;
  font-size: clamp(1.34rem, 1.92vw, 2.08rem);
  font-weight: var(--display-weight);
  line-height: 1;
}

.event-copy p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.3;
}

.event-media {
  margin: 0;
}

.event-media img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.tags,
.program-grid,
.speaker-grid,
.archive-grid,
.constitution-grid {
  display: grid;
  gap: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tags li {
  font-size: 0.82rem;
  font-weight: var(--label-weight);
}

.program-grid,
.speaker-grid,
.archive-grid,
.constitution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.program-grid article,
.speaker-grid article,
.archive-grid a,
.constitution-grid article {
  min-height: 220px;
  padding-top: 18px;
  border-top: 3px solid var(--ink);
  text-decoration: none;
}

.program-grid h3,
.speaker-grid h3 {
  margin: 0 0 12px;
  font-size: clamp(1.22rem, 1.7vw, 1.82rem);
  font-weight: var(--display-weight);
  line-height: 1;
}

.speaker-portrait {
  display: block;
  width: 92px;
  height: 112px;
  margin: 0 0 16px;
  object-fit: cover;
  object-position: center 32%;
  background: var(--soft);
}

.speaker-grid .speaker-name-jp {
  margin-top: -4px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: var(--label-weight);
  line-height: 1.1;
}

.program-grid p,
.speaker-grid p,
.constitution-grid p,
.archive-grid em {
  margin: 0;
  color: #333;
  font-size: 1.02rem;
  line-height: 1.25;
}

.speaker-grid .speaker-bio {
  margin-top: 14px;
  font-size: 0.86rem;
  line-height: 1.28;
}

.speaker-grid span,
.archive-grid span,
.constitution-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: var(--label-weight);
  text-transform: uppercase;
}

.archive-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  font-weight: var(--display-weight);
  line-height: 0.94;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.7fr;
  grid-auto-rows: 300px;
}

.photo-cell {
  margin: 0;
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-wide {
  grid-row: span 2;
}

.hanami-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  grid-auto-rows: clamp(180px, 22vw, 320px);
  gap: 10px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad) 14px;
}

.gallery-cell {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--soft);
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-large {
  grid-row: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-wide img {
  height: auto;
  min-height: 100%;
  object-fit: unset;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-credit {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad) clamp(44px, 6vw, 84px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}

.event-report {
  padding-bottom: 0;
}

.flyer-lightbox[hidden] {
  display: none;
}

.flyer-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  background: rgba(0, 0, 0, 0.9);
  box-sizing: border-box;
}

.flyer-lightbox-dialog {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.flyer-lightbox img {
  width: auto;
  height: auto;
  max-width: calc(100vw - clamp(36px, 6vw, 84px));
  max-height: calc(100dvh - clamp(36px, 6vw, 84px));
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.flyer-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.flyer-is-open {
  overflow: hidden;
}

.search-panel[hidden] {
  display: none;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(18px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.92);
}

.search-dialog {
  width: min(980px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.search-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: clamp(20px, 3.4vw, 38px);
  border-bottom: 3px solid var(--ink);
}

.search-title {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: var(--display-weight);
  line-height: 0.9;
}

.search-input {
  width: 100%;
  border: 0;
  border-bottom: 3px solid var(--ink);
  border-radius: 0;
  padding: 0 0 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: clamp(1.18rem, 2.4vw, 2.2rem);
  font-weight: var(--display-weight);
  outline: none;
}

.search-close {
  appearance: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 2rem;
  font-weight: var(--display-weight);
  line-height: 1;
}

.search-results {
  padding: 0 clamp(20px, 3.4vw, 38px) clamp(18px, 3vw, 32px);
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}

.search-result strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.16rem, 1.7vw, 1.52rem);
  font-weight: var(--display-weight);
  line-height: 1.03;
}

.search-result span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
}

.search-result em {
  align-self: center;
  color: var(--red);
  font-style: normal;
  font-weight: var(--label-weight);
}

.search-empty {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .jam-header-top,
  .welcome-panel,
  .green-band,
  .collection-section,
  .events-for-everyone,
  .newsletter-strip,
  .support-strip,
  .page-hero,
  .event-hero {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .event-hero {
    height: auto;
  }

  .jam-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .jam-nav {
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .collection-intro {
    position: static;
  }

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

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

  .event-row,
  .activity-feature-grid article {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero-media img,
  .event-hero-media img {
    min-height: 380px;
  }
}

@media (max-width: 680px) {
  :root {
    --anchor-offset: 18px;
  }

  .jam-header {
    position: static;
  }

  .jam-header-top {
    padding-top: 18px;
  }

  .jam-logo {
    width: min(100%, 310px);
    height: auto;
    min-height: 0;
  }

  .jam-logo img {
    width: 100%;
    height: auto;
    max-height: 76px;
  }

  .jam-actions {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.98rem;
  }

  .jam-actions a {
    min-height: 42px;
    padding: 0 12px;
  }

  .jam-nav {
    gap: 18px;
    font-size: 1rem;
  }

  .jam-hero {
    height: 310px;
  }

  .welcome-panel,
  .jam-section,
  .section,
  .archive-section,
  .speakers-section,
  .event-story,
  .support-strip {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .section-header-split {
    grid-template-columns: 1fr;
  }

  .welcome-panel {
    width: 100%;
    max-width: 100%;
  }

  .welcome-side p {
    width: min(100%, 320px);
    max-width: 320px;
    font-size: 0.98rem;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .exhibition-rail {
    grid-auto-columns: minmax(240px, 82vw);
  }

  .event-facts,
  .support-list,
  .speaker-grid,
  .program-grid,
  .archive-grid,
  .constitution-grid,
  .site-header,
  .jam-footer,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .photo-wide {
    grid-row: auto;
  }

  .hanami-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-large,
  .gallery-tall,
  .gallery-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-links {
    grid-template-columns: 1fr;
    justify-content: flex-start;
  }

  .mit-affiliation {
    justify-self: start;
    max-width: 100%;
  }

  .search-result {
    grid-template-columns: 1fr;
  }
}
