/* ===========================
   MUSIC STAFF
   =========================== */
.ms-section {
  padding: 72px 24px 56px;
}

.ms-container {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.ms-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ms-subtitle {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.ms-description {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 32px;
  text-align: left;
}

.section-body .ms-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* Horizontal scroll wrapper — scrolls on very narrow screens */
.ms-staff-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 12px;
  display: flex;
  justify-content: center;
}

/* ---- VexFlow staff rendering ---- */
#ms-staff-root {
  width: 100%;
  max-width: 800px;
  min-width: 340px;
}

#ms-staff-root svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* White theme — override VexFlow's default black strokes/fills */
#ms-staff-root svg path,
#ms-staff-root svg rect,
#ms-staff-root svg line,
#ms-staff-root svg circle,
#ms-staff-root svg ellipse {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

#ms-staff-root svg text {
  fill: rgba(255, 255, 255, 0.8) !important;
  stroke: none !important;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

/* Word labels below cipher letters */
.ms-word-svg {
  fill: rgba(255, 255, 255, 0.45) !important;
  stroke: none !important;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  user-select: none;
}

/* Cipher letter labels (uniform row) */
.ms-letter-svg {
  fill: rgba(255, 255, 255, 0.85) !important;
  stroke: none !important;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 700;
  user-select: none;
}

/* ---- Note interactivity ---- */
.ms-vf-note {
  cursor: pointer;
}

/* Hover */
#ms-staff-root .ms-vf-note:hover path,
#ms-staff-root .ms-vf-note:hover rect,
#ms-staff-root .ms-vf-note:hover line,
#ms-staff-root .ms-vf-note:hover circle,
#ms-staff-root .ms-vf-note:hover ellipse {
  fill: var(--accent-primary) !important;
  stroke: var(--accent-primary) !important;
}

#ms-staff-root .ms-vf-note:hover text {
  fill: var(--accent-primary) !important;
  stroke: none !important;
}

/* Active (currently playing) */
#ms-staff-root .ms-vf-note.ms-active path,
#ms-staff-root .ms-vf-note.ms-active rect,
#ms-staff-root .ms-vf-note.ms-active line,
#ms-staff-root .ms-vf-note.ms-active circle,
#ms-staff-root .ms-vf-note.ms-active ellipse {
  fill: var(--accent-primary) !important;
  stroke: var(--accent-primary) !important;
}

#ms-staff-root .ms-vf-note.ms-active text {
  fill: var(--accent-primary) !important;
  stroke: none !important;
}

#ms-staff-root .ms-vf-note.ms-active {
  filter: drop-shadow(0 0 8px rgba(218, 180, 82, 0.7));
}

/* Already played */
#ms-staff-root .ms-vf-note.ms-played path,
#ms-staff-root .ms-vf-note.ms-played rect,
#ms-staff-root .ms-vf-note.ms-played line,
#ms-staff-root .ms-vf-note.ms-played circle,
#ms-staff-root .ms-vf-note.ms-played ellipse {
  fill: rgba(255, 255, 255, 0.35) !important;
  stroke: rgba(255, 255, 255, 0.35) !important;
}

#ms-staff-root .ms-vf-note.ms-played text {
  fill: rgba(255, 255, 255, 0.35) !important;
  stroke: none !important;
}

/* Controls */
.ms-controls {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ms-btn {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ms-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.ms-btn-stop {
  border-color: #c0392b;
  color: #e74c3c;
}

.ms-btn-stop:hover {
  background: rgba(231, 76, 60, 0.12);
  border-color: #e74c3c;
}

.ms-hint {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 14px;
}

.section-body .ms-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #141414;
  padding: 60px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 4px 0;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-about p {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 20px 0;
}

.footer-bottom p {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===========================
   HERO — Scroll Indicator
   =========================== */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  /* bounce animation removed for performance */
}

.hero-scroll-indicator span {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
}

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* ===========================
   HERO — Caption
   =========================== */
.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;                        /* stretch full width */
  margin: 0;
  padding: 48px 24px 10px;         /* increase top padding to make gradient taller */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    transparent 100%
  );
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  z-index: 2;
}

/* ===========================
   BACKGROUND TEXT
   =========================== */
.background-text {
  padding: 20px 24px 60px;
  max-width: 720px;
  margin: 0 auto;
}

.background-text--byline {
  padding-bottom: 0;
}

.background-text--byline + .grid-section {
  padding-top: 16px;
}

.background-byline {
  margin-bottom: 18px;
}

.background-byline-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 4px;
}

.background-byline .background-byline-line {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(0.75rem, 0.95vw, 0.95rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.background-byline-line-authors {
  align-self: flex-start;
}

.background-byline .background-byline-line-webdev {
  margin: 0;
}

.background-byline-line a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.background-byline-headshots {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}

.background-byline-headshot {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 50%;
}

.background-byline-headshots img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 0;
}

.background-byline-headshot-img--siddharth {
  object-position: center top;
  transform: scale(1.72) translateY(-16px);
  transform-origin: center top;
}

.background-byline .background-byline-date {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(0.75rem, 0.95vw, 0.95rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.background-byline-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 2px 0 10px;
}

.background-text p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

.background-text p.background-byline-headline {
  font-family: Georgia, "Playfair Display", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 24px;
}

.background-text .bg-photo {
  width: 100%;
  margin: 0;
}

.background-text figure {
  position: relative;
  overflow: hidden;
  margin: 36px 0;
}

.background-text figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
}

/* ===========================
   INLINE IMAGE GRID (2×2)
   =========================== */
.section-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 24px 0 36px;
}

.section-image-grid--single {
  grid-template-columns: 1fr;
}

.section-image-grid-block {
  margin: 0 0 36px;
}

.section-image-grid-block .section-image-grid {
  margin: 0 0 8px;
}

.section-body .section-image-grid-block-caption {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  line-height: 1.5;
}

.section-image-grid__item {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #0a0a09;
}

.section-image-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.section-image-grid__item:hover img {
  transform: scale(1.04);
}

.section-image-grid__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 40px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Ensure the specificity beats .section-body figcaption */
.section-body .section-image-grid__item figcaption {
  position: absolute;
  bottom: 0;
  margin: 0;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .section-image-grid {
    grid-template-columns: 1fr;
  }

  .section-image-grid__item {
    aspect-ratio: 16 / 10;
  }
}

/* ===========================
   TIMELINE
   =========================== */
.timeline-section {
  padding: 60px 24px;
  overflow-x: auto;
}

.timeline-container {
  max-width: 960px;
  margin: 0 auto;
}

.timeline-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.timeline-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 700px;
  padding: 0 20px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid #000;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.timeline-year {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.timeline-label {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  max-width: 110px;
  line-height: 1.4;
}

/* ===========================
   CARILLONIST TIMELINE (NYT 1619-style horizontal scroll)
   =========================== */
.ct-section {
  position: relative;
  height: 460vh;
  background: #000;
  contain: style;
  contain-intrinsic-size: auto 460vh;
}

.ct-header {
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 20px 32px;
  margin-bottom: 8px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.35) 85%, transparent 100%);
}

.ct-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  color: #ffffff;
  margin: 0;                  /* remove any default margins */
}

.ct-track-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding-top: 148px;
  padding-bottom: 84px;
  box-sizing: border-box;
  z-index: 1;
  will-change: opacity;
}

.ct-track {
  display: flex;
  gap: 0;
  will-change: transform;
  padding-left: 8vw;
  padding-right: 30vw;
  align-items: stretch;
  height: 100%;
}

.ct-slide {
  flex-shrink: 0;
  width: 38vw;
  min-width: 320px;
  max-width: 520px;
  position: relative;
  opacity: 0.45;
  contain: layout style paint;
}

.ct-slide--active {
  opacity: 1;
}

.ct-slide-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 0 20px;
  min-height: 0;
}

.ct-slide-img-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: #111;
}

.ct-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.7;
}

.ct-slide--active .ct-slide-img {
  opacity: 1;
}

.ct-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
}

.ct-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 34px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
  z-index: 2;
}

/* Vacancy slides get a muted treatment */
.ct-slide--vacancy .ct-slide-img {
  opacity: 0.4;
}

.ct-slide--vacancy.ct-slide--active .ct-slide-img {
  opacity: 0.55;
}

.ct-slide-text {
  padding: 22px 0 10px;
}

.ct-slide-years {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.ct-slide--vacancy .ct-slide-years {
  color: rgba(255, 255, 255, 0.35);
}

.ct-slide-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
  line-height: 1.2;
}

.ct-slide--vacancy .ct-slide-name {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

.ct-slide-role {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 10px;
}

.ct-slide-desc {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  max-width: 320px;
}

/* ---- Bottom timeline line ---- */
.ct-line-wrapper {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 0 8vw;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.4s;
}

.ct-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.ct-line::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.ct-line-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.ct-line-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.ct-line-node--active .ct-line-dot {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.3);
}

.ct-line-node--vacancy .ct-line-dot {
  border-radius: 2px;
  width: 6px;
  height: 6px;
}

.ct-line-year {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

.ct-line-node--active .ct-line-year {
  color: var(--accent-primary);
}

/* ---- Scroll hint ---- */
.ct-hint {
  position: fixed;
  bottom: 100px;
  right: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.6s;
  pointer-events: none;
}

.ct-hint-text {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ct-hint-arrow {
  color: rgba(255, 255, 255, 0.35);
  animation: ct-nudge 2s ease-in-out infinite;
}

@keyframes ct-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ct-section {
    height: 350vh;
  }

  .ct-track {
    padding-left: 5vw;
    padding-right: 20vw;
  }

  .ct-track-wrapper {
    padding-top: 124px;
    padding-bottom: 80px;
  }

  .ct-slide {
    width: 72vw;
    min-width: 260px;
    max-width: none;
  }

  .ct-slide-name {
    font-size: 1.25rem;
  }

  .ct-slide-desc {
    font-size: 0.8rem;
  }

  .ct-line-wrapper {
    padding: 0 7vw;
    bottom: 24px;
  }

  .ct-line {
    max-width: 100%;
  }

  .ct-line-year {
    font-size: 0.5rem;
  }

  .ct-line-dot {
    width: 6px;
    height: 6px;
  }

  .ct-line-node--vacancy .ct-line-dot {
    width: 5px;
    height: 5px;
  }

  .ct-hint {
    right: 20px;
    bottom: 70px;
  }

  .ct-header {
    top: 56px;               /* consistent positioning on mobile */
    padding: 16px 24px;
    margin-bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.45) 80%, transparent 100%);
  }

  .ct-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .ct-slide {
    width: 80vw;
  }

  .ct-slide-img-wrap {
    aspect-ratio: 4 / 5;
  }

  .ct-line-wrapper {
    padding: 0 6vw;
    bottom: 16px;
  }

  .ct-line-year {
    font-size: 0.45rem;
  }

  .ct-line-node {
    gap: 4px;
  }
}

/* ===========================
   SCROLL COLLAGE (photo grid that builds on scroll)
   =========================== */
.sc-section {
  padding: 60px 0 20px;
  margin-left: calc(-50vw + 360px);
  margin-right: calc(-50vw + 360px);
  max-width: 100vw;
}

@media (max-width: 768px) {
  .sc-section {
    margin-left: -24px;
    margin-right: -24px;
  }
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 100%;
}

/* Spanning variants */
.sc-item--tall {
  grid-row: span 2;
}

.sc-item--wide {
  grid-column: span 2;
}

.sc-item {
  position: relative;
  overflow: hidden;
  background: #0a0a09;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sc-item--visible {
  opacity: 1;
  transform: scale(1);
}

.sc-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.sc-item:hover .sc-item-img {
  transform: scale(1.04);
}

.sc-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

/* Stagger the reveal animation */
.sc-item:nth-child(2) { transition-delay: 0.08s; }
.sc-item:nth-child(3) { transition-delay: 0.16s; }
.sc-item:nth-child(4) { transition-delay: 0.06s; }
.sc-item:nth-child(5) { transition-delay: 0.14s; }
.sc-item:nth-child(6) { transition-delay: 0.1s; }
.sc-item:nth-child(7) { transition-delay: 0.04s; }
.sc-item:nth-child(8) { transition-delay: 0.12s; }
.sc-item:nth-child(9) { transition-delay: 0.08s; }
.sc-item:nth-child(10) { transition-delay: 0.16s; }
.sc-item:nth-child(11) { transition-delay: 0.06s; }
.sc-item:nth-child(12) { transition-delay: 0.12s; }

@media (max-width: 768px) {
  .sc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

  .sc-item-caption {
    font-size: 0.6rem;
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .sc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .sc-item--wide {
    grid-column: span 2;
  }

  .sc-item--tall {
    grid-row: span 2;
  }
}

/* ===========================
   ARTICLE GRID (12-card TOC)
   =========================== */
.grid-section {
  padding: 60px 24px 80px;
  background: #000;
  position: relative;
  z-index: 1;
}

.grid-container {
  max-width: 1200px;
  margin: 0 auto;
}

.grid-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.grid-subtitle {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: 40px;
}

.grid-cards {
  display: flex;
  flex-wrap: wrap;
}

.grid-card {
  width: 100%;
  padding: 36px 24px;
  min-height: 210px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.grid-card:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.grid-card.active {
  background: rgba(255, 255, 255, 0.04);
}

.grid-card-thumb {
  width: 120px;
  height: 180px;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.grid-card[data-section="fruhauf"] .grid-card-thumb {
  object-position: center 15%;
}

.grid-card[data-section="jefferson"] .grid-card-thumb {
  object-position: center 20%;
}

.grid-card-body {
  flex: 1;
  min-width: 0;
}

.grid-card-num {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.grid-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.grid-card-desc {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

/* ===========================
   STORKE SECTIONS (Article)
   =========================== */
.storke-section {
  padding: 16px 24px 80px;
  background-color: var(--color-black);
  position: relative;
  z-index: 2;
}
.storke-section:last-child {
  padding-bottom: 0;
}

.storke-section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section-num {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.storke-section .section-heading {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
  line-height: 1.5;
}

.section-body p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

.section-body .section-photo {
  width: 100%;
  margin: 32px 0;
}

.section-body figcaption {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: -24px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ---- Single-image overlay caption ---- */
.section-fig-overlay {
  position: relative;
  overflow: visible;
  margin-top: 32px;
  margin-bottom: 32px;
}

.section-fig-overlay .section-photo {
  margin: 0;
  display: block;
  width: 100%;
  height: auto;
}

.section-fig-overlay figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  margin: 0;
}

/* ---- Inline image collage grid ---- */
.section-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 32px 0;
}

.section-collage-item {
  position: relative;
  overflow: hidden;
  background: #0a0a09;
  aspect-ratio: 4 / 3;
}

.section-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.section-collage-item:hover img {
  transform: scale(1.04);
}

.section-collage-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

/* ===========================
   INLINE 3D SCAN VIEWER
   =========================== */
.scan-viewer {
  position: relative;
  margin: 36px 0;
  border-radius: 4px;
  overflow: visible;
  background: #111;
  content-visibility: auto;
  contain-intrinsic-size: auto 75vw;
}

.scan-viewer-iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  display: block;
}

.scan-viewer-caption {
  position: static;
  display: block;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 12px 0;
  background: transparent;
  line-height: 1.4;
  margin: 0;
  user-select: text;
  -webkit-user-select: text;
}

.scan-viewer-caption--small {
  font-size: 1rem !important;
}

/* ===========================
   SCROLLSTORY — NYT bus-lane style
   (sticky image + scrolling text cards)
   =========================== */
.storke-section--ss {
  position: relative;
  padding: 0;
}

/* ---- Split-screen layout ---- */
.ss-split {
  display: flex;
  min-height: 100vh;
}

/* Text half — solid black, scrolls naturally */
.ss-split-text {
  width: 50%;
  background: #000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 48px;
}

/* Image half — sticky so it stays visible while text scrolls */
.ss-split-image {
  width: 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.ss-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prevent Ann Jefferson's head from being cropped */
#jefferson .ss-split-image img {
  object-position: top center;
}

/* Prevent Fruhauf image from being cropped */
#fruhauf .ss-split-image img {
  object-position: 55% 35%; /* x y; was center 15% */
}

/* optional: tweak on mobile */
@media (max-width: 768px) {
  #fruhauf .ss-split-image img {
    object-position: 55% 10%;
  }
}

/* Prevent Anne Rothfarb's head from being cropped */
#halsted-rothfarb .ss-split-image img {
  object-position: center 30%;
}

/* (optional) if you want a different crop on small screens */
@media (max-width: 768px) {
  #fruhauf .ss-split-image img {
    object-position: center 10%;
  }
}

.ss-bg-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  z-index: 2;
}

/* Right-aligned variant — image on left, text on right */
.storke-section--ss-right .ss-split {
  flex-direction: row-reverse;
}

.ss-card-body {
  margin-top: 20px;
}

.ss-card-body p {
  margin: 0 0 18px;
}

.ss-card-body p:last-of-type {
  margin-bottom: 0;
}

/* ---- Text cards on black ---- */
.ss-card {
  max-width: 480px;
  padding: 0;
}

.ss-card .section-num {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.ss-card .section-heading {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 8px;
}

.ss-card .section-subtitle {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
  line-height: 1.5;
}

.ss-card p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px;
}

/* Inline extra images inside a card (e.g. Welch newspaper clipping) */
.ss-inline-fig {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.ss-inline-fig img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.ss-inline-fig figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
  user-select: text;
  -webkit-user-select: text;
}

/* ---- Responsive: split-screen ---- */
@media (max-width: 768px) {
  .ss-split {
    flex-direction: column;
  }

  .ss-split-text {
    width: 100%;
    padding: 48px 24px;
    order: 2;
  }

  .ss-split-image {
    width: 100%;
    position: relative;
    height: 50vh;
    order: 1;
  }

  /* On mobile, always show image on top, text below */
  .storke-section--ss-right .ss-split {
    flex-direction: column;
  }

  .storke-section--ss-right .ss-split-image {
    order: 1;
  }

  .storke-section--ss-right .ss-split-text {
    order: 2;
  }

  .ss-card {
    max-width: none;
  }

  .ss-card .section-heading {
    font-size: 1.6rem;
  }

  .ss-card p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ss-split-text {
    padding: 36px 16px;
  }

  .ss-split-image {
    height: 40vh;
  }

  .ss-card .section-heading {
    font-size: 1.4rem;
  }

  .ss-card p {
    font-size: 0.95rem;
  }
}

/* Sidebar active link */
.sidebar-section a.active {
  color: var(--accent-primary);
  padding-left: 8px;
  border-bottom-color: var(--accent-primary);
  font-weight: 700;
}

/* Full-bleed photos — kept within text column for visual consistency */
.storke-section-inner figure.full-bleed {
  width: 100%;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (min-width: 765px) {
  .grid-cards {
    display: flex;
    flex-wrap: wrap;
  }

  .grid-card {
    width: 33.333%;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .grid-card:nth-child(3n+1) {
    border-left: none;
  }

  .grid-card-thumb {
    width: 100%;
    height: 280px;
  }
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .section-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 667px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-caption {
    font-size: 0.68rem;
    padding: 22px 10px 8px;
  }

  .sidebar {
    width: 100vw;
  }

  .article-body p {
    font-size: 1.05rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .pull-quote p {
    font-size: 1.15rem;
  }

  .figure-placeholder {
    height: 240px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ms-title {
    font-size: 1.3rem;
  }

  .ms-subtitle {
    font-size: 1rem;
  }

  .ms-description {
    font-size: 0.85rem;
  }

  .section-body .ms-description {
    font-size: 0.85rem;
  }

  .section-body .ms-hint {
    font-size: 0.8rem;
  }

  .storke-section .section-heading {
    font-size: 1.6rem;
  }

  .section-body p {
    font-size: 1.05rem;
  }

  .background-text p {
    font-size: 1.05rem;
  }

  .background-byline-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .background-byline-line-authors {
    white-space: normal;
  }

  .background-byline-headshots img {
    width: 52px;
    height: 52px;
  }

  .timeline-title,
  .grid-title {
    font-size: 1.3rem;
  }

  /* Collage: single column so images are larger and captions don't cover them */
  .section-collage {
    grid-template-columns: 1fr;
  }

  .section-collage-item {
    aspect-ratio: 16 / 10;
  }

  .section-collage-caption {
    padding: 24px 8px 6px;
    font-size: 0.6rem;
  }

  /* Scan viewer captions */
  .scan-viewer-caption {
    font-size: 0.7rem;
    padding: 8px 10px;
  }
}
/* ===========================
   FLOURISH EMBED
   =========================== */
.flourish-embed-wrapper {
  background: var(--color-black);
  padding: 56px 24px;
}

.flourish-embed-wrapper .flourish-embed {
  max-width: 960px;
  margin: 0 auto;
}

/* ===========================
   CARILLON INTERACTIVE
   =========================== */
.carillon-section {
  padding: 72px 24px 0;
  background: var(--color-black);
}

.carillon-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.carillon-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.carillon-subtitle {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.carillon-description {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: left;
}

.section-body .carillon-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.carillon-keyboards {
  margin: 40px 0;
}

.keyboard-wrapper {
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}

.keyboard-label {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.keyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
}

.hand-keyboard {
  flex-wrap: nowrap;
  justify-content: center;
}

.keyboard.keyboard-scrollable {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.12);
}

.keyboard.keyboard-scrollable::-webkit-scrollbar {
  height: 10px;
}

.keyboard.keyboard-scrollable::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.keyboard.keyboard-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.keyboard.keyboard-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.65);
}

.hand-keyboard.keyboard-scrollable {
  justify-content: flex-start;
}

.keyboard-scroll-indicator {
  display: none;
  width: min(560px, 100%);
  height: 8px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
}

.keyboard-wrapper-scrollable .keyboard-scroll-indicator {
  display: block;
}

.keyboard-scroll-indicator-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 0.06s linear;
}

.foot-keyboard {
  max-width: 100%;
  margin: 0 auto;
}

.octave-group {
  display: flex;
  align-items: flex-start;
  gap: 1.5px;
  position: relative;
  padding: 0;
}

/* Keys - Wooden peg style */
.key {
  position: relative;
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
  transition: transform 0.1s ease, filter 0.1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.key-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  user-select: none;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* White key labels - near bottom */
.white-key .key-label {
  bottom: 10px;
}

/* Black key labels - sharp at top */
.black-key .key-label {
  top: 5px;
}

/* Black key flat label - below sharp */
.black-key .key-label-flat {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  user-select: none;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.key {
  touch-action: manipulation; /* prevent double-tap zoom & scroll on keys */
  -webkit-tap-highlight-color: transparent;
}

.key:active {
  transform: scale(0.95);
}

.key.active {
  transform: scale(0.95);
}

.key.active .peg {
  filter: brightness(1.3);
  box-shadow: 0 0 16px rgba(139, 90, 43, 0.8), 0 0 8px rgba(255, 200, 100, 0.6);
}

/* White keys - wider wooden pegs */
.white-key {
  width: 26px;
  height: 90px;
}

.white-key .peg {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #c29663 0%, #997950 50%, #7d5c3a 100%);
  border: 2px solid #5d4428;
  border-radius: 6px;
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.4);
  position: relative;
}

.white-key .peg::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 60%;
  height: 30%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
  border-radius: 6px;
  pointer-events: none;
}

.white-key .peg::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 25%;
  width: 50%;
  height: 15%;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

/* Black keys - narrower, shorter pegs */
.black-key {
  width: 17px;
  height: 60px;
  margin: 0 -8.5px;
  z-index: 2;
}

.black-key .peg {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #4a3520 0%, #2d2015 50%, #1a1410 100%);
  border: 2px solid #0f0a08;
  border-radius: 5px;
  box-shadow: 
    inset 0 2px 3px rgba(255, 255, 255, 0.1),
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.6);
  position: relative;
}

.black-key .peg::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 25%;
  width: 50%;
  height: 25%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent);
  border-radius: 4px;
  pointer-events: none;
}

/* Hover effects */
.key:hover {
  transform: scale(1.05);
}

.key:hover .peg {
  filter: brightness(1.15);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 6px 12px rgba(139, 90, 43, 0.4);
}

.carillon-hint {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 16px;
  margin-bottom: 0;
}

.section-body .carillon-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Break the carillon interactive out of the narrow article column */
/* Break the flourish timeline, music staff, and carillon interactive out of the narrow article column */
#carillon-staff-slot,
#flourish-timeline-slot,
#carillon-interactive-slot {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1150px;
}

/* Keyboard shortcut instructions (hidden until toggle is on) */
.carillon-keys-hint {
  display: none;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  margin-bottom: 0;
}

.carillon-keys-hint.visible {
  display: block;
}

/* ---- Toggle switch ---- */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 32px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.toggle-switch input { display: none; }

.toggle-track {
  position: relative;
  width: 38px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.toggle-switch.active .toggle-track {
  background: #4db6ac;
}

.toggle-switch.active .toggle-thumb {
  transform: translateX(18px);
  background: #ffffff;
}

.toggle-text {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s ease;
}

.toggle-switch.active .toggle-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Hidden input to raise mobile keyboard */
.carillon-mobile-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ---- Key mapping labels — mirrors .key-label-flat style, always below note text ---- */
.key-mapping {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  user-select: none;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  line-height: 1;
}

/* White keys: mapping below the note label at the bottom */
.white-key .key-mapping {
  bottom: 2px;
  font-size: 0.5rem;
}

/* Black keys: mapping below the flat label */
.black-key .key-mapping {
  top: 34px;
  font-size: 0.45rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carillon-title {
    font-size: 1.3rem;
  }

  .foot-keyboard {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .carillon-subtitle {
    font-size: 1rem;
  }

  .carillon-description {
    font-size: 0.85rem;
  }

  .white-key {
    width: 24px;
    height: 90px;
  }

  .white-key .key-label {
    bottom: 10px;
  }

  .black-key {
    width: 16px;
    height: 60px;
    margin: 0 -8px;
  }

  .black-key .key-label {
    top: 4px;
  }

  .black-key .key-label-flat {
    top: 17px;
    font-size: 0.48rem;
  }

  .keyboard {
    padding: 15px;
    gap: 1px;
  }

  .octave-group {
    gap: 1px;
    padding: 0;
  }

  .key-label {
    font-size: 0.55rem;
  }

  .white-key .key-mapping {
    bottom: 2px;
    font-size: 0.45rem;
  }

  .black-key .key-mapping {
    top: 30px;
    font-size: 0.4rem;
  }
}

@media (max-width: 480px) {
  .white-key {
    width: 20px;
    height: 80px;
  }

  .white-key .key-label {
    bottom: 8px;
  }

  .black-key {
    width: 14px;
    height: 54px;
    margin: 0 -7px;
  }

  .black-key .key-label {
    top: 3px;
  }

  .black-key .key-label-flat {
    top: 15px;
    font-size: 0.42rem;
  }

  .keyboard {
    padding: 10px;
    gap: 1px;
  }

  .octave-group {
    gap: 1px;
  }

  .key-label {
    font-size: 0.5rem;
  }

  .white-key .key-mapping {
    bottom: 1px;
    font-size: 0.4rem;
  }

  .black-key .key-mapping {
    top: 27px;
    font-size: 0.35rem;
  }
}

/* ===========================
   CARD CAROUSEL
   =========================== */
.card-carousel {
  margin: 40px 0;
}

.card-carousel-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgb(255, 255, 255);;
  margin-bottom: 24px;
  text-align: center;
}

.card-carousel-track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.card-carousel-viewport {
  flex: 1;
  overflow: visible;
  padding: 20px 0;
}

/* Use a responsive grid so we can do 2×2 cards on larger screens */
.card-carousel-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  transition: none;
}

/* Each card grows vertically within a fixed 3D box;
   long text scrolls inside */
.card-flip-container {
  width: 100%;
  height: auto;
  perspective: 1000px;
  cursor: pointer;
}

/* FIX: use a stable, fixed height for the 3D inner box */
.card-flip-inner {
  position: relative;
  width: 100%;
  height: 500px;          /* taller so student carillonist content fits */
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* Flip state */
.card-flip-container.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

/* Faces fill the 3D box */
.card-flip-front,
.card-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 24px 24px 40px;
}

/* Front: center name vertically & horizontally */
.card-flip-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* vertical center */
  padding: 24px 24px 40px;
}

/* Typography stays article-like */
.card-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  text-align: left;
  margin-bottom: 8px;
}

/* Front face: bigger, centered name */
.card-flip-front .card-name {
  font-size: 2.7rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0;
}

/* Flip icon pinned to bottom-right */
.card-flip-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

/* ...rest of existing styles... */

/* Restore original front/back colors */
.card-flip-front {
  background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-taupe) 100%);
  color: var(--color-cream);
}

.card-flip-back {
  background: linear-gradient(135deg, var(--color-taupe) 0%, var(--color-grey-brown) 100%);
  color: var(--color-cream);
  transform: rotateY(180deg);
}

/* Subtitle no longer used, can be visually hidden if still present somewhere */
.card-subtitle {
  display: none;
}

.card-info-label {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
}

/* Allow info content to scroll inside the fixed-height face */
.card-info {
  position: relative;
  font-family: "Playfair Display", Georgia, serif; /* was "Source Sans 3", ... */
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  white-space: pre-line;
  overflow-y: auto;
  padding-right: 8px; /* room for scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 227, 175, 0.7) rgba(0, 0, 0, 0.25);
}

/* Make the scrollbar clearly visible (WebKit/Blink) */
.card-info::-webkit-scrollbar {
  width: 6px;
}

.card-info::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}

.card-info::-webkit-scrollbar-thumb {
  background: rgba(248, 227, 175, 0.7); /* cream */
  border-radius: 3px;
}

/* SINGLE ::after — minimal hint, no gradient */
.card-info::after {
  content: none;
}

/* Make the scrollbar clearly visible (WebKit/Blink) */
.card-info::-webkit-scrollbar {
  width: 6px;
}

.card-info::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}

.card-info::-webkit-scrollbar-thumb {
  background: rgba(248, 227, 175, 0.7); /* cream */
  border-radius: 3px;
}

/* Flip icon pinned to bottom-right */
.card-flip-icon {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%); /* Horizontally center the content */
  display: flex;
  align-items: center;
  justify-content: center; /* Ensure both text and icon are centered */
  gap: 6px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.card-flip-front .card-flip-icon {
  bottom: 16px;  /* Position 'flip' icon near the bottom */
}

.card-flip-back .card-flip-icon {
  bottom: 16px;  /* Position 'scroll for more' icon near the bottom */
}

/* When the card is flipped, change the back-side icon to a simple down arrow */
.card-flip-container.flipped .card-flip-back .card-flip-icon svg {
  display: none; /* hide original double-arrow */
}

.card-flip-container.flipped .card-flip-back .card-flip-icon::after {
  content: "↓";
  font-size: 1rem;
  line-height: 1;
}

.card-nav {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-carousel-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Slightly shorter cards on mobile but still fixed height */
  .card-flip-inner {
    height: 430px;
  }

  .card-name {
    font-size: 1.4rem;
  }

  .card-subtitle {
    font-size: 0.9rem;
  }
}

/* Remove the old mobile override that forced a conflicting card height */
@media (max-width: 768px) {
  /* ...keep existing collage styles... */
  /* delete or comment out the earlier:
     .card-flip-container {
       flex: 0 0 240px;
       height: 280px;
     }
  */
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .card-carousel-container {
    grid-template-columns: 1fr;
  }
}

.card-carousel__subtitle{
  text-align: center;
  margin: -12px auto 24px; /* pulls it a bit closer to the title; adjust as needed */
  max-width: 720px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  color: rgb(255, 255, 255);;
}

/* ===========================
   COLLAGE CAROUSEL
   =========================== */
.collage-carousel {
  margin: 40px auto;
  position: relative;
  max-width: 1400px;
  overflow: clip;
  user-select: none;
}

.collage-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 600px;
}

.collage-viewport {
  flex: 1;
  height: 550px;
  overflow: visible;
  position: relative;
  contain: layout;
}

.collage-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.collage-slide {
  position: absolute;
  width: 600px;
  height: 450px;
  left: 50%;
  top: 50%;
  margin-left: -300px;
  margin-top: -225px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
}

.collage-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-slide.active {
  cursor: zoom-in;
}

.collage-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--color-cream);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  padding: 32px 16px 12px;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.collage-slide.active .collage-caption {
  opacity: 1;
}

.collage-nav {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  color: var(--accent-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 200;
}

.collage-nav:hover:not(:disabled) {
  background: rgba(218, 180, 82, 0.3);
  transform: scale(1.1);
}

.collage-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.collage-hint {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 16px;
}

/* Collage Modal */
.collage-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.collage-modal.active {
  display: flex;
}

.collage-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.collage-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.collage-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0;
}

.collage-modal-caption {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 16px;
  padding: 0 20px;
}

.collage-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--accent-primary);
  transition: background 0.2s ease, transform 0.2s ease;
}

.collage-modal-close:hover {
  background: rgba(218, 180, 82, 0.3);
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-flip-inner {
    /* let content decide height on mobile too */
    min-height: 0;
  }

  .collage-slide {
    width: 300px;
    height: 240px;
    margin-left: -150px;
    margin-top: -120px;
  }

  .collage-viewport {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .card-carousel-container {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   BELL 3D VIEWER — IMMERSIVE
   =========================== */

/* Full-bleed immersive — overlaps the section above so the bell
   is hidden behind it and revealed as the section scrolls away */
.bell-immersive {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 350vh;
  margin-top: -100vh;
  margin-bottom: 0;
}

/* Sticky 3D backdrop — pins while user scrolls */
.bell-immersive-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  will-change: opacity;
}

.bell-immersive-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
}

/* Scroll layer overlapping the sticky area */
.bell-immersive-scroll {
  position: relative;
  margin-top: -100vh;
  z-index: 2;
  pointer-events: none;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

/* Annotation cards — semi-transparent dark glass */
.bell-annotation {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.85);
  max-width: 260px;
  padding: 24px 28px;
  align-self: flex-start;
  margin-left: 5vw;
}

.bell-annotation:first-child {
  margin-top: 30vh;
}

.bell-annotation p {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
}

/* Spacer between annotation cards */
.bell-annotation-spacer {
  height: 60vh;
  flex-shrink: 0;
}

/* ---- Responsive: mobile ---- */
@media (max-width: 768px) {
  .bell-immersive {
    width: 100vw;
    height: 360vh;
    margin-top: -100vh;
  }

  .bell-immersive-scroll {
    z-index: 5;
    padding: 0 14px;
  }

  .bell-annotation {
    width: calc(100vw - 28px);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    text-align: left;
    background: rgba(0, 0, 0, 0.84);
    border: 1px solid rgba(218, 180, 82, 0.34);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  }

  .bell-annotation:first-child {
    margin-top: 14vh;
  }

  .bell-annotation p {
    font-size: 16px;
    line-height: 1.55;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }

  .bell-annotation-spacer {
    height: 85vh;
  }
}

@media (max-width: 480px) {
  .bell-annotation {
    width: calc(100vw - 20px);
    padding: 18px 18px;
  }

  .bell-annotation:first-child {
    margin-top: 12vh;
  }

  .bell-annotation-spacer {
    height: 78vh;
  }
}

/* ===========================
   QUOTE SPLASH — 1619-style
   =========================== */
.quote-splash {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
}

.qs-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.qs-slide--storke {
  background-position: 0% 15%;
  background-size: 140%;
  height: calc(100vh - 3.5rem);
}

.qs-slide--storke .qs-quote {
  font-size: clamp(1.25rem, 3vw, 2.9rem);
  line-height: 1.25;
  margin-bottom: 1.8rem;
}

.qs-slide--storke .qs-attribution {
  max-width: 52ch;
}

/* Gradient overlay — dark left edge fades to semi-transparent */
.qs-slide--storke .qs-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.72) 40%,
    rgba(0, 0, 0, 0.35) 75%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* Heavier uniform overlay for the historical bell photo — dark on the right */
.qs-slide--james .qs-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.72) 40%,
    rgba(0, 0, 0, 0.35) 75%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* Push James content to the right side */
.qs-slide--james {
  justify-content: flex-end;
}

.qs-slide--james .qs-content {
  text-align: right;
}

.qs-slide--james .qs-divider {
  margin-left: auto;
}

/* Content wrapper */
.qs-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 8vw;
  /* Start hidden; JS adds .qs-visible on scroll */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.qs-content.qs-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Large italic serif quote */
.qs-quote {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 3.4rem);
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 2.4rem;
  quotes: none;
}

/* Thin horizontal rule — mirrors the NYT dash */
.qs-divider {
  width: 44px;
  height: 2px;
  background: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.6rem;
}

/* Attribution line */
.qs-attribution {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(0.68rem, 0.86vw, 0.88rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.35;
  margin: 0;
}

.qs-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 30px 14px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52) 0%, transparent 100%);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  user-select: text;
  -webkit-user-select: text;
}

.qs-caption--right {
  left: auto;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52) 0%, transparent 100%);
  text-align: right;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .qs-slide {
    align-items: flex-end;
    padding-bottom: 12vh;
    min-height: 100svh;
  }

  .qs-slide--storke {
    height: calc(100svh - 3.5rem);
    min-height: calc(100svh - 3.5rem);
    padding-bottom: 8vh;
  }

  .qs-slide--storke .qs-overlay,
  .qs-slide--james .qs-overlay {
    background: rgba(0, 0, 0, 0.70);
  }

  .qs-slide--james {
    justify-content: flex-start;
  }

  .qs-slide--james .qs-content {
    text-align: left;
  }

  .qs-slide--james .qs-divider {
    margin-left: 0;
  }

  .qs-content {
    padding: 0 6vw;
    max-width: 100%;
  }

  .qs-quote {
    font-size: clamp(1.25rem, 5.2vw, 2rem);
  }

  .qs-attribution {
    white-space: normal;
  }

  .qs-caption {
    font-size: 0.68rem;
    padding: 22px 10px 8px;
  }
}

/* ===========================
   YOUTUBE EMBED
   =========================== */
.youtube-embed {
  margin: 36px 0;
  width: 100%;
}

.youtube-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

.youtube-embed-caption {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.5 !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

/* ===========================
   INTERSTITIAL SECTION
   =========================== */
.storke-section--interstitial {
  padding-top: 24px;
}

.section-body a,
.ss-card-body a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* ===========================
   SECTION FOOTNOTES
   =========================== */
.section-footnotes {
  margin-top: 2.5rem;
}

.section-footnotes-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.section-footnotes-list {
  padding-left: 1.25rem;
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.section-footnotes-item {
  margin-bottom: 0.5rem;
}

.section-footnotes-backref {
  margin-left: 0.35rem;
  text-decoration: none;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.45);
}

.section-body sup a {
  text-decoration: none;
  color: inherit;
  font-size: 0.75em;
  vertical-align: super;
  margin-left: 1px;
}
.polycam-embed {
  margin: 48px auto;
  max-width: 1000px;
}

.polycam-embed iframe {
  width: 100%;
  height: 600px;
  border: 0;
}

.polycam-embed figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

.section-fig-overlay.rotate-left {
  transform: rotate(-90deg);
  transform-origin: center;
}