:root {
  --hero-bg: #f8f5f1;
  --entry-bg: #cdb8a6;
  --surface: #ffffff;

  --text: #202428;
  --text-soft: #3f474f;
  --muted: #6d7378;

  --line: rgba(32, 36, 40, 0.12);
  --line-soft: rgba(32, 36, 40, 0.075);

  --accent: #8b5a57;
  --accent-soft: rgba(139, 90, 87, 0.22);
  --hover: #6f4643;
  --hover-text: #2d2825;

  --entry-text: #2d2825;
  --entry-muted: rgba(45, 40, 37, 0.58);
  --entry-line: rgba(96, 70, 52, 0.18);
  --entry-card: #fbf5ea;
  --entry-card-strong: #fff9f1;

  --header-height: 77px;
  --side-space: 72px;
  --content-width: 1320px;
  --content-inner-padding: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hero-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button {
  font-family: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  padding: 20px var(--side-space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 90, 87, 0.12);
}

.site-title {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  cursor: pointer;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  border: none;
  background: transparent;
  padding: 7px 0;
  color: #4b4542;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Single-page section system */

.page-section {
  display: none;
  min-height: calc(100vh - var(--header-height));
}

.page-section.active-section {
  display: block;
}

.home-page {
  scroll-snap-type: y proximity;
}

.snap-screen {
  scroll-snap-align: start;
}

/* Screen 1 */

.home-cover {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: 90px var(--side-space) 150px;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
}

.home-cover-content {
  width: min(1320px, calc(100% - 2 * var(--side-space)));
  margin-left: calc((100vw - min(1320px, calc(100% - 2 * var(--side-space)))) / 2 - 65px);
  margin-right: auto;
  padding: 0;
  text-align: left;
  transform: translateY(-50px);
}

.home-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.home-title span {
  display: block;
  white-space: nowrap;
}

.title-line-one {
  color: var(--text);
  font-size: clamp(2.44rem, 3.24vw, 4rem);
}

.title-line-two {
  margin-top: 12px;
  color: var(--accent);
  font-size: clamp(3.12rem, 4.22vw, 5.24rem);
}

.home-intro {
  max-width: 1100px;
  margin: 46px 0 0;
  color: var(--text-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.06vw, 1.18rem);
  line-height: 1.44;
  letter-spacing: -0.022em;
}

/* Scroll cue */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(139, 90, 87, 0.78);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: color 0.24s ease, transform 0.24s ease;
}

.scroll-cue:hover {
  color: var(--hover);
  transform: translateX(-50%) translateY(-4px);
}

.scroll-cue-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 1.76vw, 1.96rem);
  letter-spacing: -0.04em;
}

.scroll-cue-line {
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, transparent, rgba(139, 90, 87, 0.42));
}

.scroll-cue-arrow {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.96rem;
  line-height: 1;
  animation: scrollArrow 1.35s ease-in-out infinite;
}

@keyframes scrollArrow {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(9px);
  }
}

/* Screen 2: overhead ring wall */

.entry-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: 0 var(--side-space);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(70, 52, 38, 0.018) 0px,
      rgba(70, 52, 38, 0.018) 1px,
      transparent 1px,
      transparent 6px
    ),
    var(--entry-bg);
  overflow: hidden;
}

.entry-content {
  width: min(1500px, calc(100% - 2 * var(--side-space)));
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ring space */

.path-wall {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 760px;
  perspective: 2100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-stage {
  position: relative;
  width: 100%;
  height: 800px;
  transform-style: preserve-3d;
  transform: translateY(18px) rotateX(34deg);
  transform-origin: center center;
}

/* Card base */

.path-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(416px, 25.6vw);
  min-width: 312px;
  height: 400px;
  border: 1px solid var(--entry-line);
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.54),
    rgba(255, 255, 255, 0.16) 42%,
    rgba(239, 226, 211, 0.12)
    ),
    var(--entry-card);
  color: var(--entry-text);
  padding: 45px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: none;
  box-shadow:
    0 18px 38px rgba(65, 47, 35, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
  transform-style: preserve-3d;
  transition:
    transform 0.78s cubic-bezier(.2,.75,.2,1),
    opacity 0.78s cubic-bezier(.2,.75,.2,1),
    filter 0.78s cubic-bezier(.2,.75,.2,1),
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease;
}

.path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(65, 47, 35, 0.018) 0px,
      rgba(65, 47, 35, 0.018) 1px,
      transparent 1px,
      transparent 5px
    ),
    radial-gradient(
      circle at 22% 18%,
      rgba(96, 70, 52, 0.045),
      transparent 28%
    ),
    radial-gradient(
      circle at 78% 76%,
      rgba(96, 70, 52, 0.035),
      transparent 32%
    );
  opacity: 0.68;
  z-index: 0;
}

.path-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(96, 70, 52, 0.075);
  border-radius: 7px;
  z-index: 0;
}

.path-card > * {
  position: relative;
  z-index: 1;
}

.path-number {
  display: block;
  margin-top: 27px;
  color: rgba(139, 90, 87, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.84rem;
  line-height: 1;
  letter-spacing: -0.08em;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.path-card h3 {
  margin: 27px 0 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 2.16rem;
  line-height: 1.08;
  letter-spacing: -0.052em;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.path-detail {
  position: absolute;
  left: 45px;
  right: 45px;
  top: 50%;
  transform: translateY(-38%);
  margin: 0;
  color: var(--entry-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.34;
  letter-spacing: -0.03em;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.path-open {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(8px);
  color: rgba(45, 40, 37, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

/* Elliptical overhead ring positions */

.path-card.is-front {
  z-index: 6;
  opacity: 1;
  filter: blur(0);
  transform:
    translate(-50%, -50%)
    translateX(0)
    translateY(240px)
    translateZ(340px)
    rotateX(-30deg)
    rotateY(0deg)
    scale(1.1);
}

.path-card.is-left-front {
  z-index: 5;
  opacity: 0.58;
  filter: blur(0.7px);
  transform:
    translate(-50%, -50%)
    translateX(-600px)
    translateY(38px)
    translateZ(80px)
    rotateX(-22deg)
    rotateY(-52deg)
    scale(0.66);
 background:
  linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.44),
    rgba(255, 255, 255, 0.08)
  ),
  #f4eadc;
border-color: rgba(96, 70, 52, 0.15);
}

.path-card.is-right-front {
  z-index: 5;
  opacity: 0.58;
  filter: blur(0.7px);
  transform:
    translate(-50%, -50%)
    translateX(600px)
    translateY(38px)
    translateZ(80px)
    rotateX(-22deg)
    rotateY(52deg)
    scale(0.66);
 background:
  linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.44),
    rgba(255, 255, 255, 0.08)
  ),
  #f4eadc;
border-color: rgba(96, 70, 52, 0.15);
}

.path-card.is-left-back {
  z-index: 2;
  opacity: 0.2;
  filter: blur(2.2px);
  transform:
    translate(-50%, -50%)
    translateX(-360px)
    translateY(-320px)
    translateZ(-520px)
    rotateX(0deg)
    rotateY(0deg)
    scale(0.4);
 background:
  linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.06)
  ),
  #efe1d2;
 border-color: rgba(96, 70, 52, 0.1);
}

.path-card.is-right-back {
  z-index: 2;
  opacity: 0.2;
  filter: blur(2.2px);
  transform:
    translate(-50%, -50%)
    translateX(360px)
    translateY(-320px)
    translateZ(-520px)
    rotateX(0deg)
    rotateY(0deg)
    scale(0.4);
 background:
  linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.06)
  ),
  #efe1d2;
 border-color: rgba(96, 70, 52, 0.1);
}

/* Only the front card reveals detail */

.path-card.is-front:hover,
.path-card.is-front:focus-visible {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.22) 42%,
      rgba(239, 226, 211, 0.1)
    ),
    var(--entry-card-strong);
  border-color: rgba(139, 90, 87, 0.28);
  color: var(--entry-text);
  box-shadow:
    0 28px 58px rgba(65, 47, 35, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.path-card.is-front:hover .path-number,
.path-card.is-front:hover h3,
.path-card.is-front:focus-visible .path-number,
.path-card.is-front:focus-visible h3 {
  opacity: 0;
  transform: translateY(10px);
}

.path-card.is-front:hover .path-detail,
.path-card.is-front:focus-visible .path-detail {
  opacity: 1;
  transform: translateY(-50%);
}

.path-card.is-front:hover .path-open,
.path-card.is-front:focus-visible .path-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.path-card:not(.is-front):hover {
  opacity: 0.84;
  filter: blur(0.2px);
}

/* Controls */

.ring-control {
  position: absolute;
  top: 54%;
  z-index: 9;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(90, 70, 55, 0.16);
  background: rgba(248, 243, 236, 0.58);
  color: var(--entry-text);
  font-size: 1.26rem;
  cursor: pointer;
  backdrop-filter: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.ring-control:hover {
  background: rgba(252, 248, 243, 0.86);
  color: var(--hover);
}

.ring-control-left {
  left: 0;
  transform: translateY(-50%);
}

.ring-control-left:hover {
  transform: translateY(-50%) translateX(-4px);
}

.ring-control-right {
  right: 0;
  transform: translateY(-50%);
}

.ring-control-right:hover {
  transform: translateY(-50%) translateX(4px);
}

.ring-hint {
  display: none;
}

/* Footer */

.site-footer {
  padding: 32px var(--side-space);
  background: var(--entry-bg);
  border-top: 1px solid rgba(90, 70, 55, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  color: rgba(45, 40, 37, 0.6);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links button {
  border: none;
  background: transparent;
  padding: 0;
  color: #5e433e;
  font-size: 0.86rem;
  cursor: pointer;
}

.footer-links button:hover {
  color: var(--accent);
}

/* Placeholder */

.placeholder-page {
  min-height: calc(100vh - var(--header-height));
  padding: 110px var(--side-space);
  background: var(--hero-bg);
}

.placeholder-page h1 {
  max-width: 1100px;
  margin: 0 auto;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.placeholder-page p {
  max-width: 820px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Responsive */

@media (max-width: 1480px) {
  :root {
    --side-space: 44px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .home-cover-content {
    width: min(1180px, calc(100% - 2 * var(--side-space)));
    margin-left: auto;
    margin-right: auto;
  }

  .home-title span {
    white-space: normal;
  }

  .path-card {
    width: min(336px, 27.2vw);
    min-width: 248px;
    height: 336px;
  }

  .path-card.is-front {
    transform:
      translate(-50%, -50%)
      translateX(0)
      translateY(210px)
      translateZ(280px)
      rotateX(-26deg)
      scale(1.02);
  }

  .path-card.is-left-front {
    transform:
      translate(-50%, -50%)
      translateX(-470px)
      translateY(20px)
      translateZ(70px)
      rotateX(-18deg)
      rotateY(-48deg)
      scale(0.62);
  }

  .path-card.is-right-front {
    transform:
      translate(-50%, -50%)
      translateX(470px)
      translateY(20px)
      translateZ(70px)
      rotateX(-18deg)
      rotateY(48deg)
      scale(0.62);
  }

  .path-card.is-left-back {
    transform:
      translate(-50%, -50%)
      translateX(-300px)
      translateY(-230px)
      translateZ(-350px)
      rotateX(-14deg)
      rotateY(-64deg)
      scale(0.4);
  }

  .path-card.is-right-back {
    transform:
      translate(-50%, -50%)
      translateX(300px)
      translateY(-230px)
      translateZ(-350px)
      rotateX(-14deg)
      rotateY(64deg)
      scale(0.4);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 133px;
    --side-space: 24px;
  }

  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-title {
    font-size: 0.94rem;
  }

  .main-nav {
    gap: 11px;
  }

  .nav-link {
    font-size: 0.81rem;
  }

  .home-cover {
    padding-top: 64px;
    padding-bottom: 132px;
  }

  .home-cover-content {
    width: calc(100% - 2 * var(--side-space));
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-30px);
  }

  .title-line-one {
    font-size: 2.4rem;
  }

  .title-line-two {
    font-size: 2.68rem;
  }

  .home-intro {
    font-size: 0.94rem;
    margin-top: 30px;
  }

  .path-wall {
    min-height: 620px;
  }

  .ring-stage {
    height: 560px;
    transform: translateY(20px) rotateX(18deg);
  }

  .path-card {
    width: 232px;
    height: 280px;
    min-width: 0;
    padding: 27px;
  }

  .path-number {
    font-size: 3.44rem;
  }

  .path-card h3 {
    font-size: 1.48rem;
  }

  .path-detail {
    font-size: 0.96rem;
    left: 24px;
    right: 24px;
  }

  .path-card.is-front {
    transform:
      translate(-50%, -50%)
      translateX(0)
      translateY(150px)
      scale(0.86);
  }

  .path-card.is-left-front {
    transform:
      translate(-50%, -50%)
      translateX(-160px)
      translateY(0)
      rotateY(-26deg)
      scale(0.5);
  }

  .path-card.is-right-front {
    transform:
      translate(-50%, -50%)
      translateX(160px)
      translateY(0)
      rotateY(26deg)
      scale(0.5);
  }

  .path-card.is-left-back {
    transform:
      translate(-50%, -50%)
      translateX(-100px)
      translateY(-170px)
      scale(0.35);
  }

  .path-card.is-right-back {
    transform:
      translate(-50%, -50%)
      translateX(100px)
      translateY(-170px)
      scale(0.35);
  }

  .ring-control {
    width: 40px;
    height: 40px;
  }

  .site-footer {
    font-size: 0.8rem;
  }

  .footer-links button {
    font-size: 0.8rem;
  }
}

/* =========================================================
   Build the School
   Old archive / newspaper guided route
   ========================================================= */

.build-page {
  background: #f4eadc;
  color: #2d2825;
}

.build-hero {
  min-height: calc(100vh - var(--header-height));
  padding: 120px var(--side-space) 110px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #f4eadc;
  border-bottom: 1px solid rgba(90, 70, 55, 0.18);
}

.build-hero-inner {
  width: min(1180px, calc(100% - 2 * var(--side-space)));
  margin: 0 auto;
}

.build-hero h1 {
  margin: 0;
  color: #2d2825;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(4rem, 7vw, 8.2rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.build-intro {
  max-width: 880px;
  margin: 46px 0 0;
  color: rgba(45, 40, 37, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.5vw, 1.8rem);
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.build-start {
  margin-top: 52px;
  border: 1px solid rgba(139, 90, 87, 0.32);
  background: rgba(251, 245, 234, 0.72);
  color: #6f4643;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 0.96rem;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.build-start span {
  margin-left: 10px;
}

.build-start:hover {
  background: rgba(251, 245, 234, 0.96);
  transform: translateY(-3px);
}

/* Route layout */

.build-route {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
  padding: 120px var(--side-space) 150px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(80, 60, 45, 0.018) 0px,
      rgba(80, 60, 45, 0.018) 1px,
      transparent 1px,
      transparent 6px
    ),
    #f4eadc;
}

/* Sticky archive index */

.build-index {
  position: sticky;
  top: calc(var(--header-height) + 48px);
  align-self: start;
  padding: 24px 0;
  border-top: 1px solid rgba(90, 70, 55, 0.22);
  border-bottom: 1px solid rgba(90, 70, 55, 0.22);
}

.build-index-title {
  margin: 0 0 22px;
  color: rgba(45, 40, 37, 0.54);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.build-index-link {
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 0 18px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 14px;
  color: rgba(45, 40, 37, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(90, 70, 55, 0.1);
  transition: color 0.2s ease, transform 0.2s ease;
}

.build-index-link span {
  color: rgba(139, 90, 87, 0.56);
  font-size: 0.86rem;
  line-height: 1.35;
}

.build-index-link:hover,
.build-index-link.active {
  color: #6f4643;
  transform: translateX(4px);
}

.build-index-link-muted {
  opacity: 0.68;
}

/* Timeline */

.build-timeline {
  position: relative;
  max-width: 1050px;
  padding-left: 72px;
}

.build-timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(90, 70, 55, 0.28);
}

.build-chapter {
  position: relative;
  padding-bottom: 124px;
}

.chapter-heading {
  position: relative;
  margin-bottom: 44px;
  padding: 34px 0 24px;
  border-top: 2px solid rgba(45, 40, 37, 0.82);
  border-bottom: 1px solid rgba(90, 70, 55, 0.18);
}

.chapter-heading::before {
  content: "";
  position: absolute;
  left: -60px;
  top: 44px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #8b5a57;
  box-shadow: 0 0 0 7px rgba(139, 90, 87, 0.12);
}

.chapter-number {
  display: block;
  margin-bottom: 16px;
  color: #8b5a57;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chapter-heading h2 {
  margin: 0;
  max-width: 820px;
  color: #2d2825;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.chapter-heading p {
  margin: 18px 0 0;
  color: rgba(45, 40, 37, 0.58);
  font-size: 1rem;
}

/* Archive event cards */

.archive-event-card {
  position: relative;
  max-width: 760px;
  margin: 0 0 34px;
  padding: 30px 34px 28px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0)
    ),
    #fbf5ea;
  border: 1px solid rgba(90, 70, 55, 0.18);
  border-radius: 5px;
  box-shadow: 0 14px 38px rgba(80, 58, 42, 0.08);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.22s ease;
}

.archive-event-card::before {
  content: "";
  position: absolute;
  left: -56px;
  top: 34px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4eadc;
  border: 2px solid #8b5a57;
}

.archive-event-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.archive-event-card:hover,
.archive-event-card.is-emphasised {
  box-shadow: 0 20px 48px rgba(80, 58, 42, 0.14);
}

.archive-date {
  margin-bottom: 14px;
  color: #8b5a57;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-event-card h3 {
  margin: 0;
  color: #2d2825;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.65rem, 2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.archive-event-card p {
  margin: 18px 0 0;
  color: rgba(45, 40, 37, 0.72);
  font-size: 1rem;
  line-height: 1.62;
}

.archive-actions {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.archive-actions button {
  border: none;
  background: transparent;
  padding: 0;
  color: #6f4643;
  font-size: 0.92rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(111, 70, 67, 0.34);
}

.archive-actions button:hover {
  color: #2d2825;
  border-bottom-color: #2d2825;
}

/* Mini timeline */

.chapter-mini-timeline {
  position: relative;
  max-width: 760px;
  margin: 48px 0 0;
  padding: 22px 0 48px;
  border-top: 1px solid rgba(90, 70, 55, 0.2);
  border-bottom: 1px solid rgba(90, 70, 55, 0.14);
}

.mini-timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.mini-timeline-top span {
  color: rgba(45, 40, 37, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-timeline-top button {
  border: none;
  background: transparent;
  padding: 0;
  color: #6f4643;
  font-size: 0.86rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(111, 70, 67, 0.32);
}

.mini-timeline-top button:hover {
  color: #2d2825;
  border-bottom-color: #2d2825;
}

.mini-timeline-track {
  position: relative;
  height: 72px;
}

.mini-timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  display: block;
  width: 100%;
  height: 18px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mini-timeline-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 1px;
  background: rgba(90, 70, 55, 0.26);
}

.mini-tick {
  position: absolute;
  top: 48px;
  transform: translateX(-50%);
  color: rgba(45, 40, 37, 0.5);
  font-size: 0.72rem;
  pointer-events: none;
  white-space: nowrap;
}

.mini-tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 1px;
  height: 7px;
  background: rgba(90, 70, 55, 0.22);
  transform: translateX(-50%);
}

.mini-tick-muted {
  color: rgba(45, 40, 37, 0.32);
}

.mini-tick.has-event {
  color: #8b5a57;
}

.mini-tick.has-event::before {
  display: none;
}

/* More delicate event points */

.mini-point {
  position: absolute;
  top: 36px;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border: 1.4px solid #9a6662;
  border-radius: 999px;
  background: #f8f1e7;
  cursor: pointer;
  z-index: 4;
  padding: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.mini-point::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
}

.mini-point:hover {
  background: #9a6662;
  border-color: #9a6662;
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow: 0 0 0 4px rgba(154, 102, 98, 0.1);
}

/* Chapter 5 continuation */

.archive-continuation-card {
  max-width: 760px;
  padding: 34px 38px;
  background: rgba(251, 245, 234, 0.72);
  border: 1px dashed rgba(139, 90, 87, 0.34);
  border-radius: 5px;
  color: rgba(45, 40, 37, 0.76);
  box-shadow: 0 14px 38px rgba(80, 58, 42, 0.06);
}

.archive-continuation-card p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.archive-continuation-card button {
  margin-top: 28px;
  border: none;
  background: transparent;
  padding: 0;
  color: #6f4643;
  font-size: 0.96rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(111, 70, 67, 0.34);
}

.archive-continuation-card button:hover {
  color: #2d2825;
  border-bottom-color: #2d2825;
}

/* Drawer */

.build-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: rgba(32, 28, 25, 0);
  transition: background 0.25s ease;
}

.build-drawer.is-open {
  pointer-events: auto;
  background: rgba(32, 28, 25, 0.28);
}

.build-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 92vw);
  height: 100%;
  padding: 42px;
  background: #fbf5ea;
  border-left: 1px solid rgba(90, 70, 55, 0.18);
  box-shadow: -18px 0 48px rgba(32, 28, 25, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

.build-drawer.is-open .build-drawer-panel {
  transform: translateX(0);
}

.build-drawer-close {
  border: none;
  background: transparent;
  color: #6f4643;
  padding: 0;
  margin-bottom: 46px;
  cursor: pointer;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(111, 70, 67, 0.34);
}

.drawer-kicker {
  margin: 0 0 18px;
  color: #8b5a57;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.build-drawer-panel h2 {
  margin: 0;
  color: #2d2825;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 3vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.drawer-date {
  margin: 20px 0 38px;
  color: rgba(45, 40, 37, 0.58);
}

.drawer-date-note {
  display: block;
  margin-top: 8px;
  color: rgba(45, 40, 37, 0.48);
  font-size: 0.88rem;
  line-height: 1.45;
  font-style: italic;
}

.drawer-section {
  border-top: 1px solid rgba(90, 70, 55, 0.16);
  padding-top: 24px;
  margin-top: 28px;
}

.drawer-section h3 {
  margin: 0 0 12px;
  color: #6f4643;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer-section p {
  margin: 0;
  color: rgba(45, 40, 37, 0.74);
  line-height: 1.65;
}

/* Drawer dynamic content */

.drawer-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(45, 40, 37, 0.74);
  line-height: 1.65;
}

.drawer-list li + li {
  margin-top: 6px;
}

.drawer-section-muted p {
  color: rgba(45, 40, 37, 0.48);
}

.drawer-source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer-source-list li {
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(90, 70, 55, 0.1);
}

.drawer-source-list li + li {
  margin-top: 14px;
}

.drawer-source-list a,
.drawer-source-list span:first-child {
  display: block;
  color: #6f4643;
  text-decoration: none;
  line-height: 1.45;
}

.drawer-source-list a:hover {
  color: #2d2825;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drawer-source-list li span:last-child {
  display: block;
  margin-top: 4px;
  color: rgba(45, 40, 37, 0.46);
  font-size: 0.82rem;
}

/* Drawer media */

.drawer-media-grid {
  display: grid;
  gap: 18px;
}

.drawer-media-item {
  margin: 0;
  padding: 0;
}

.drawer-media-item img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid rgba(90, 70, 55, 0.16);
  border-radius: 4px;
  background: #f4eadc;
}

.drawer-media-item figcaption {
  margin-top: 10px;
  color: rgba(45, 40, 37, 0.68);
  font-size: 0.9rem;
  line-height: 1.45;
}

.drawer-media-item figcaption span {
  display: block;
}

.drawer-media-item figcaption a,
.drawer-media-link a {
  display: inline-block;
  margin-top: 6px;
  color: #6f4643;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 70, 67, 0.34);
}

.drawer-media-item figcaption a:hover,
.drawer-media-link a:hover {
  color: #2d2825;
  border-bottom-color: #2d2825;
}

.drawer-media-link {
  padding: 14px 0;
  border-bottom: 1px solid rgba(90, 70, 55, 0.12);
}

.drawer-media-link span {
  display: block;
  color: rgba(45, 40, 37, 0.74);
  line-height: 1.45;
}

/* Floating tooltip for mini timeline */

.build-tooltip {
  position: fixed;
  z-index: 120;
  left: 0;
  top: 0;
  padding: 8px 11px;
  background: rgba(45, 40, 37, 0.92);
  color: #fbf5ea;
  border-radius: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transform: translate(12px, 12px);
  transition: opacity 0.12s ease;
}

.build-tooltip.is-visible {
  opacity: 1;
}

/* Responsive */

@media (max-width: 980px) {
  .build-route {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 80px;
  }

  .build-index {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 22px;
  }

  .build-index-title {
    grid-column: 1 / -1;
  }

  .build-timeline {
    padding-left: 42px;
  }

  .build-timeline::before {
    left: 12px;
  }

  .chapter-heading::before {
    left: -36px;
  }

  .archive-event-card::before {
    left: -36px;
  }

  .chapter-mini-timeline,
  .archive-event-card,
  .archive-continuation-card {
    max-width: 100%;
  }

  .mini-timeline-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   Explore Timeline
   archive catalogue + historical map style
   ========================================================= */

.timeline-section {
  min-height: 100vh;
  background:
    linear-gradient(
      180deg,
      rgba(248, 243, 235, 0.98) 0%,
      rgba(241, 233, 220, 0.98) 100%
    );
  color: #332a25;
}

/* First screen: match Build the School hero */

.timeline-hero {
  min-height: calc(100vh - var(--header-height));
  padding: 120px var(--side-space) 110px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #f4eadc;
  border-bottom: 1px solid rgba(90, 70, 55, 0.18);
}

.timeline-hero-inner {
  width: min(1180px, calc(100% - 2 * var(--side-space)));
  margin: 0 auto;
  padding: 0;
}

.timeline-hero h1 {
  margin: 0;
  color: #2d2825;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(4rem, 7vw, 8.2rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.timeline-hero p {
  max-width: 880px;
  margin: 46px 0 0;
  color: rgba(45, 40, 37, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.5vw, 1.8rem);
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.timeline-start {
  margin-top: 52px;
  border: 1px solid rgba(139, 90, 87, 0.32);
  background: rgba(251, 245, 234, 0.72);
  color: #6f4643;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 0.96rem;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.timeline-start span {
  margin-left: 10px;
}

.timeline-start:hover {
  background: rgba(251, 245, 234, 0.96);
  transform: translateY(-3px);
}

/* Main shell */

.timeline-shell {
  width: min(1500px, calc(100% - 2 * var(--side-space)));
  margin: 0 auto;
  padding: 48px 0 140px;
}

.timeline-view {
  position: relative;
}

.timeline-visual-mode {
  position: relative;
}

/* Compact controls: two-row layout */

.timeline-controls {
  position: sticky;
  top: calc(var(--header-height) + 10px);
  z-index: 15;
  display: grid;
  grid-template-columns: auto minmax(320px, 520px);
  grid-template-areas:
    "modes search"
    "filters filters";
  align-items: center;
  column-gap: 24px;
  row-gap: 8px;
  margin: 0 0 12px;
  padding: 8px 10px 10px;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background:
    linear-gradient(
      180deg,
      rgba(252, 247, 238, 0.94),
      rgba(245, 237, 224, 0.9)
    );
  box-shadow:
    0 8px 18px rgba(68, 47, 35, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
}

/* Curated / Detailed / Archive as small circles */

.timeline-mode-group {
  grid-area: modes;
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
}

.timeline-mode-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  padding: 0;
  color: rgba(45, 40, 37, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.18s ease;
}

.timeline-mode-button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(139, 90, 87, 0.42);
  background: rgba(251, 245, 234, 0.72);
  box-shadow: 0 0 0 3px rgba(139, 90, 87, 0.04);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.timeline-mode-button span {
  display: inline;
  font-size: 0.76rem;
  line-height: 1;
}

.timeline-mode-button small {
  display: none;
}

.timeline-mode-button:hover {
  color: #6f4643;
}

.timeline-mode-button:hover::before {
  transform: scale(1.18);
  border-color: rgba(139, 90, 87, 0.72);
}

.timeline-mode-button.active {
  color: #6f4643;
}

.timeline-mode-button.active::before {
  background: #8b5a57;
  border-color: #8b5a57;
  box-shadow: 0 0 0 4px rgba(139, 90, 87, 0.12);
}

/* Search row kept compact */

.timeline-search-row {
  grid-area: search;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 96px auto;
  gap: 6px;
  margin: 0;
}

.timeline-search-row input {
  min-width: 0;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(255, 252, 246, 0.62);
  padding: 6px 8px;
  color: #332a25;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  outline: none;
}

.timeline-search-row input::placeholder {
  color: rgba(55, 45, 38, 0.36);
}

.timeline-search-row input:focus {
  border-color: rgba(111, 70, 67, 0.36);
  background: rgba(255, 254, 250, 0.88);
}

.timeline-search-row button {
  border: 1px solid rgba(111, 70, 67, 0.16);
  background: rgba(255, 252, 246, 0.54);
  color: rgba(55, 45, 38, 0.62);
  padding: 0 9px;
  min-height: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  cursor: pointer;
}

.timeline-search-row button:hover {
  border-color: rgba(111, 70, 67, 0.34);
  color: #6f4643;
}

/* Filters */

.timeline-filter-group {
  grid-area: filters;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.timeline-filter-button {
  padding: 4px 8px 5px;
  border-radius: 999px;
  border: 1px solid rgba(111, 70, 67, 0.14);
  background: rgba(255, 252, 246, 0.46);
  color: rgba(45, 40, 37, 0.54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  cursor: pointer;
}

.timeline-filter-button:hover {
  border-color: rgba(111, 70, 67, 0.28);
  color: #6f4643;
}

.timeline-filter-button.active {
  border-color: rgba(111, 70, 67, 0.38);
  background: rgba(111, 70, 67, 0.1);
  color: #6f4643;
}

/* Sticky mini timeline */

.timeline-sticky-mini {
  position: sticky;
  top: calc(var(--header-height) + 112px);
  z-index: 10;
  margin-bottom: 14px;
}

.timeline-mini-overview {
  padding: 9px 12px 10px;
  border: 1px solid rgba(107, 73, 56, 0.1);
  background: rgba(255, 252, 246, 0.76);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(68, 47, 35, 0.04);
}

.timeline-mini-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: rgba(55, 45, 38, 0.46);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.66rem;
}

.timeline-mini-track {
  position: relative;
  height: 16px;
}

.timeline-mini-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(107, 73, 56, 0.2);
  transform: translateY(-50%);
}

.timeline-mini-dot {
  position: absolute;
  top: 50%;
  width: 3.5px;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(111, 70, 67, 0.34);
  transform: translate(-50%, -50%);
}

.timeline-mini-viewport {
  position: absolute;
  top: 50%;
  height: 11px;
  border: 1px solid rgba(111, 70, 67, 0.42);
  background: rgba(111, 70, 67, 0.08);
  transform: translateY(-50%);
}

/* Main horizontal timeline */

.timeline-main-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  padding: 74px 0 150px;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 70, 67, 0.34) rgba(107, 73, 56, 0.08);
  cursor: grab;
}

.timeline-main-scroll:active {
  cursor: grabbing;
}

.timeline-main-scroll::-webkit-scrollbar {
  height: 10px;
}

.timeline-main-scroll::-webkit-scrollbar-track {
  background: rgba(107, 73, 56, 0.08);
}

.timeline-main-scroll::-webkit-scrollbar-thumb {
  background: rgba(111, 70, 67, 0.34);
  border-radius: 999px;
}

.timeline-main-track {
  position: relative;
  width: 4600px;
  height: 500px;
  margin-left: 36px;
  margin-right: 150px;
}

.timeline-visual-mode-detailed .timeline-main-track {
  height: 320px;
}

.timeline-year-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(107, 73, 56, 0.12),
      rgba(107, 73, 56, 0.44),
      rgba(107, 73, 56, 0.12)
    );
}

.timeline-year-label {
  position: absolute;
  top: calc(50% + 24px);
  color: rgba(55, 45, 38, 0.46);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Curated nodes */

.timeline-node {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: none;
  background: transparent;
  padding: 0;
  color: #332a25;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.timeline-node-dot {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.timeline-node-curated .timeline-node-dot {
  width: 8px;
  height: 8px;
  background: rgba(125, 75, 67, 0.58);
  box-shadow:
    0 0 0 4px rgba(125, 75, 67, 0.06),
    0 6px 12px rgba(68, 47, 35, 0.08);
}

.timeline-node:hover .timeline-node-dot,
.timeline-node.is-selected .timeline-node-dot {
  transform: translate(-50%, -50%) scale(1.55);
  background: #6f4643;
  box-shadow:
    0 0 0 8px rgba(125, 75, 67, 0.14),
    0 10px 20px rgba(68, 47, 35, 0.2);
}

.timeline-node.is-dimmed {
  opacity: 0.12;
}

.timeline-node-label {
  position: absolute;
  left: 0;
  width: 142px;
  padding: 7px 8px 8px;
  border: 1px solid rgba(107, 73, 56, 0.09);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 245, 0.42),
      rgba(246, 238, 224, 0.32)
    );
  box-shadow:
    0 5px 12px rgba(68, 47, 35, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  text-align: left;
  transform: translateX(-50%) scale(0.78);
  opacity: 0.22;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease,
    width 0.18s ease;
}

.timeline-node[data-lane="0"] .timeline-node-label {
  top: 24px;
}

.timeline-node[data-lane="1"] .timeline-node-label {
  bottom: 24px;
}

.timeline-node[data-lane="2"] .timeline-node-label {
  top: 94px;
}

.timeline-node[data-lane="3"] .timeline-node-label {
  bottom: 94px;
}

.timeline-node-label strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(111, 70, 67, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  font-weight: 400;
}

.timeline-node-label em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(47, 38, 33, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.12;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.timeline-node-label small {
  display: block;
  margin-top: 6px;
  color: rgba(111, 70, 67, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.timeline-node:hover .timeline-node-label {
  opacity: 0.82;
  border-color: rgba(111, 70, 67, 0.24);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 245, 0.84),
      rgba(246, 238, 224, 0.72)
    );
  transform: translateX(-50%) scale(0.98);
  z-index: 18;
}

.timeline-node.is-selected .timeline-node-label {
  width: 190px;
  opacity: 1;
  border-color: rgba(111, 70, 67, 0.36);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 245, 0.98),
      rgba(246, 238, 224, 0.94)
    );
  box-shadow:
    0 20px 38px rgba(68, 47, 35, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  transform: translateX(-50%) scale(1.16);
  z-index: 25;
}

.timeline-node.is-selected .timeline-node-label em {
  font-size: 0.86rem;
  line-height: 1.16;
}

.timeline-node:hover .timeline-node-label small,
.timeline-node.is-selected .timeline-node-label small {
  opacity: 1;
}

.timeline-node.is-edge-start .timeline-node-label {
  transform-origin: left center;
  transform: translateX(0) scale(0.78);
}

.timeline-node.is-edge-start:hover .timeline-node-label {
  transform: translateX(0) scale(0.98);
}

.timeline-node.is-edge-start.is-selected .timeline-node-label {
  transform: translateX(0) scale(1.16);
}

.timeline-node.is-edge-end .timeline-node-label {
  transform-origin: right center;
  transform: translateX(-100%) scale(0.78);
}

.timeline-node.is-edge-end:hover .timeline-node-label {
  transform: translateX(-100%) scale(0.98);
}

.timeline-node.is-edge-end.is-selected .timeline-node-label {
  transform: translateX(-100%) scale(1.16);
}

/* Detailed year clusters */

.timeline-cluster {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.timeline-cluster.is-open {
  z-index: 40;
}

.timeline-cluster-dot {
  width: var(--cluster-size);
  height: var(--cluster-size);
  min-width: 30px;
  min-height: 30px;
  border: 1px solid rgba(111, 70, 67, 0.28);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.88);
  color: #6f4643;
  font-family: Georgia, "Times New Roman", serif;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(68, 47, 35, 0.1);
  position: relative;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.timeline-cluster-dot:hover,
.timeline-cluster.is-open .timeline-cluster-dot {
  transform: scale(1.08);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 16px 28px rgba(68, 47, 35, 0.16);
}

.timeline-cluster-dot span {
  display: block;
  font-size: 0.64rem;
  line-height: 1;
}

.timeline-cluster-dot strong {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.timeline-cluster-dot em {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  width: 140px;
  color: rgba(111, 70, 67, 0.45);
  font-size: 0.68rem;
  font-style: normal;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-cluster-dot:hover em {
  opacity: 1;
}

.timeline-cluster-popover {
  position: absolute;
  left: calc(100% + 18px);
  top: 50%;
  width: 330px;
  max-height: 330px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(107, 73, 56, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 245, 0.98),
      rgba(246, 238, 224, 0.96)
    );
  box-shadow: 0 18px 36px rgba(51, 37, 28, 0.16);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.timeline-cluster.is-open .timeline-cluster-popover {
  opacity: 1;
  pointer-events: auto;
}

.timeline-cluster-popover h3 {
  margin: 0;
  color: #6f4643;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 400;
}

.timeline-cluster-popover p {
  margin: 4px 0 12px;
  color: rgba(55, 45, 38, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
}

.timeline-cluster-list {
  display: grid;
  gap: 8px;
}

.timeline-cluster-item {
  border: 1px solid rgba(107, 73, 56, 0.14);
  background: rgba(255, 252, 246, 0.68);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.timeline-cluster-item:hover,
.timeline-cluster-item.is-selected {
  border-color: rgba(111, 70, 67, 0.34);
  background: rgba(255, 252, 246, 0.94);
}

.timeline-cluster-item.is-dimmed {
  opacity: 1;
}

.timeline-cluster-item span {
  display: block;
  margin-bottom: 4px;
  color: rgba(111, 70, 67, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.74rem;
}

.timeline-cluster-item strong {
  color: rgba(47, 38, 33, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Archive density */

.archive-density-sticky {
  position: sticky;
  top: calc(var(--header-height) + 112px);
  z-index: 10;
}

.archive-density {
  margin-bottom: 38px;
  padding: 12px 14px 18px;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(255, 252, 246, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(68, 47, 35, 0.04);
}

.archive-density-label {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  color: rgba(55, 45, 38, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.74rem;
}

.archive-density-year-bars {
  height: 66px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding-bottom: 18px;
  position: relative;
}

.archive-year-density {
  flex: 1;
  min-width: 5px;
  border: none;
  border-radius: 2px 2px 0 0;
  background: rgba(111, 70, 67, 0.1);
  cursor: default;
  position: relative;
}

.archive-year-density.has-records {
  background: rgba(111, 70, 67, 0.56);
  cursor: pointer;
}

.archive-year-density.has-records:hover,
.archive-year-density.is-selected {
  background: #6f4643;
}

.archive-year-density span {
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  color: rgba(55, 45, 38, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  transform: translateX(-50%) rotate(-35deg);
  transform-origin: top center;
  white-space: nowrap;
}

/* Archive list */

.timeline-archive-mode {
  padding-bottom: 60px;
}

.archive-list-section {
  margin-top: 44px;
}

.archive-list-section h2 {
  margin: 0 0 24px;
  color: #6f4643;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.archive-year-group {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  padding: 28px 0;
  border-top: 1px solid rgba(107, 73, 56, 0.14);
  scroll-margin-top: 260px;
}

.archive-year-group h3 {
  position: sticky;
  top: 260px;
  align-self: start;
  margin: 0;
  color: rgba(111, 70, 67, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 400;
}

.archive-record-list {
  display: grid;
  gap: 10px;
}

.archive-record-item {
  width: 100%;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 245, 0.72),
      rgba(246, 238, 224, 0.56)
    );
  padding: 14px 16px;
  color: rgba(47, 38, 33, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.archive-record-item:hover,
.archive-record-item.is-selected {
  transform: translateX(5px);
  border-color: rgba(111, 70, 67, 0.3);
  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 248, 0.88),
      rgba(248, 240, 227, 0.72)
    );
  box-shadow:
    0 10px 22px rgba(68, 47, 35, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.archive-record-item span {
  color: rgba(111, 70, 67, 0.64);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.archive-record-item strong {
  color: rgba(47, 38, 33, 0.82);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
}

.archive-list-undated {
  margin-top: 70px;
  padding-top: 28px;
  border-top: 2px solid rgba(107, 73, 56, 0.12);
}

.archive-record-item-undated {
  grid-template-columns: 1fr;
}

.timeline-empty {
  margin: 0;
  color: rgba(55, 45, 38, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

/* Responsive */

@media (max-width: 1100px) {
  .timeline-shell {
    width: min(100% - 40px, 980px);
    padding-top: 70px;
  }

  .timeline-controls {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "modes"
      "search"
      "filters";
  }

  .timeline-sticky-mini,
  .archive-density-sticky {
    position: relative;
    top: auto;
  }

  .timeline-mode-group {
    gap: 12px;
  }

  .timeline-search-row {
    grid-template-columns: 1fr;
  }

  .timeline-search-row button {
    min-height: 34px;
  }

  .timeline-main-track {
    width: 3600px;
    margin-left: 60px;
    margin-right: 80px;
  }

  .archive-year-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .archive-year-group h3 {
    position: static;
  }

  .archive-record-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 700px) {
  .timeline-hero {
    padding: 80px var(--side-space) 96px;
  }

  .timeline-shell {
    width: min(100% - 28px, 620px);
    padding: 58px 0 100px;
  }

  .timeline-main-scroll {
    padding-top: 70px;
    padding-bottom: 98px;
  }

  .timeline-main-track {
    width: 2800px;
    height: 360px;
    margin-left: 44px;
    margin-right: 60px;
  }

  .timeline-visual-mode-detailed .timeline-main-track {
    height: 260px;
  }

  .timeline-node-label {
    width: 130px;
  }

  .timeline-node.is-selected .timeline-node-label {
    width: 170px;
  }

  .archive-density-year-bars {
    height: 58px;
  }

  .archive-year-density span {
    font-size: 0.54rem;
  }

  .archive-density-label {
    flex-direction: column;
    gap: 6px;
  }
}

.drawer-related-link {
  border: none;
  background: transparent;
  padding: 0;
  color: #6f4643;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.drawer-related-link:hover {
  color: #332a25;
}

.drawer-related-link:focus-visible {
  outline: 1px solid rgba(111, 70, 67, 0.45);
  outline-offset: 3px;
}

/* =========================================================
   People page
   ========================================================= */

.people-section {
  min-height: 100vh;
  background:
    linear-gradient(
      180deg,
      rgba(248, 243, 235, 0.98) 0%,
      rgba(241, 233, 220, 0.98) 100%
    );
  color: #332a25;
}

.people-hero {
  min-height: calc(100vh - var(--header-height));
  padding: 120px var(--side-space) 110px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #f4eadc;
  border-bottom: 1px solid rgba(90, 70, 55, 0.18);
}

.people-hero-inner {
  width: min(1180px, calc(100% - 2 * var(--side-space)));
  margin: 0 auto;
  padding: 0;
}

.people-hero h1 {
  margin: 0;
  color: #2d2825;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(4rem, 7vw, 8.2rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.people-hero p {
  max-width: 920px;
  margin: 46px 0 0;
  color: rgba(45, 40, 37, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.5vw, 1.8rem);
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.people-start {
  margin-top: 52px;
  border: 1px solid rgba(139, 90, 87, 0.32);
  background: rgba(251, 245, 234, 0.72);
  color: #6f4643;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.people-start span {
  margin-left: 10px;
}

.people-start:hover {
  background: rgba(251, 245, 234, 0.96);
  transform: translateY(-3px);
}

.people-dashboard-main {
  width: min(1520px, calc(100% - 2 * var(--side-space)));
  margin: 0 auto;
  padding: 84px 0 150px;
}

.people-dashboard-nav {
  position: sticky;
  top: calc(var(--header-height) + 10px);
  z-index: 18;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 58px;
  padding: 10px 12px;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(252, 247, 238, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(68, 47, 35, 0.04);
}

.people-dashboard-nav a {
  border: 1px solid rgba(111, 70, 67, 0.14);
  border-radius: 999px;
  padding: 6px 12px 7px;
  color: rgba(45, 40, 37, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  text-decoration: none;
}

.people-dashboard-nav a:hover {
  border-color: rgba(111, 70, 67, 0.34);
  color: #6f4643;
}

.people-module {
  margin-top: 98px;
  scroll-margin-top: 132px;
}

.people-module:first-of-type {
  margin-top: 0;
}

.people-module-heading {
  margin-bottom: 22px;
}

.people-module-heading h3 {
  margin: 0;
  color: #6f4643;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 2.8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.people-module-heading p {
  max-width: 980px;
  margin: 12px 0 0;
  color: rgba(55, 45, 38, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.35;
}

.people-card {
  border: 1px solid rgba(107, 73, 56, 0.14);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 245, 0.74),
      rgba(246, 238, 224, 0.58)
    );
  box-shadow:
    0 16px 34px rgba(68, 47, 35, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  padding: 20px;
}

.people-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.people-card-header h4 {
  margin: 0;
  color: #6f4643;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.people-card-header p {
  margin: 7px 0 0;
  max-width: 820px;
  color: rgba(55, 45, 38, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem;
  line-height: 1.38;
}

.people-card-line-note {
  max-width: 1000px !important;
  white-space: nowrap;
}

.people-card-header p.people-card-line-note {
  font-size: 0.82rem;
}

.people-control-group {
  display: inline-flex;
  gap: 5px;
  padding: 3px;
  border: 1px solid rgba(111, 70, 67, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.56);
  white-space: nowrap;
}

.people-toggle,
.people-reset,
.people-control-row select {
  border: 1px solid rgba(111, 70, 67, 0.16);
  background: rgba(255, 252, 246, 0.62);
  color: rgba(45, 40, 37, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
}

.people-toggle {
  border-radius: 999px;
  padding: 5px 10px 6px;
  cursor: pointer;
}

.people-toggle.is-active {
  border-color: rgba(111, 70, 67, 0.38);
  background: rgba(111, 70, 67, 0.12);
  color: #6f4643;
}

.people-reset {
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.people-sticky-controls {
  position: sticky;
  top: calc(var(--header-height) + 62px);
  z-index: 14;
  margin-bottom: 18px;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(252, 247, 238, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(68, 47, 35, 0.04);
  padding: 10px 12px;
}

.people-control-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.people-control-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(55, 45, 38, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
}

.people-control-row select {
  padding: 7px 9px;
}

.people-chart-wrap {
  position: relative;
  min-height: 330px;
}

.people-chart-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.people-chart-subtitle {
  margin-bottom: 8px;
  color: rgba(128, 73, 66, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.people-chart-note {
  margin: 12px 0 0;
  color: rgba(55, 45, 38, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  line-height: 1.38;
}

.people-chart-note strong {
  color: rgba(111, 70, 67, 0.78);
  font-weight: 400;
}

.people-tooltip {
  position: fixed;
  z-index: 80;
  width: max-content;
  max-width: 290px;
  pointer-events: none;
  padding: 10px 12px;
  border: 1px solid rgba(107, 73, 56, 0.18);
  background: rgba(255, 252, 245, 0.96);
  color: rgba(45, 40, 37, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 14px 32px rgba(51, 37, 28, 0.14);
}

.people-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: #6f4643;
  font-weight: 400;
}

.people-growth-module {
  min-height: calc(100vh - var(--header-height) - 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.people-growth-card {
  width: 100%;
  max-width: 1280px;
}

.people-growth-chart-wrap {
  min-height: 250px;
}

.people-growth-chart-wrap svg {
  max-height: 280px;
}

.people-growth-card .people-chart-note {
  white-space: nowrap;
  overflow: visible;
}

.student-dashboard-grid,
.staff-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.people-dual-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 18px;
}

.people-chart-panel,
.programme-chart-card,
.map-main-panel,
.map-side-panel,
.early-programmes-card,
.uk-breakdown-card {
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(255, 252, 246, 0.46);
  padding: 14px;
  min-width: 0;
}

.student-programmes-card,
.student-domicile-card,
.staff-nationality-card {
  grid-column: 1 / -1;
}

.programme-dashboard-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.mini-card-kicker {
  margin: 0 0 8px;
  color: rgba(128, 73, 66, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.early-programmes-card h5,
.standard-programmes-heading h5 {
  margin: 0;
  color: #6f4643;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.15;
}

.early-programmes-card p {
  margin: 10px 0 14px;
  color: rgba(55, 45, 38, 0.54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  line-height: 1.36;
}

.early-programmes-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.early-programme-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(107, 73, 56, 0.1);
  color: rgba(45, 40, 37, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  line-height: 1.25;
}

.early-programme-row strong {
  color: #6f4643;
  font-weight: 400;
}

.standard-programmes-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 14px;
}

.standard-programmes-heading .people-chart-note {
  max-width: 560px;
  margin: 0;
  text-align: right;
}

.programme-two-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.programme-chart-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 10px;
  color: rgba(55, 45, 38, 0.52);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.programme-chart-title span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.programme-chart-title strong {
  color: #6f4643;
  font-weight: 400;
  text-align: right;
}

.programme-chart-wrap {
  min-height: 360px;
}

.map-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
}

.people-map-wrap {
  position: relative;
  min-height: 460px;
}

.map-side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.people-world-map,
.people-small-trend,
.people-uk-bars {
  width: 100%;
  height: auto;
  display: block;
}

.people-small-trend {
  min-height: 230px;
}

.uk-breakdown-card {
  min-height: 285px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.56),
      rgba(246, 238, 224, 0.34)
    );
}

.people-map-summary {
  color: rgba(55, 45, 38, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  line-height: 1.45;
}

.people-axis,
.people-grid-line {
  stroke: rgba(107, 73, 56, 0.16);
  stroke-width: 1;
}

.people-axis-text {
  fill: rgba(55, 45, 38, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.people-axis-title {
  fill: rgba(55, 45, 38, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.people-series-student {
  fill: none;
  stroke: #8b2f3c;
  stroke-width: 2.6;
}

.people-series-staff {
  fill: none;
  stroke: #245d7a;
  stroke-width: 2.6;
}

.people-series-early {
  stroke-dasharray: 6 6;
  opacity: 0.7;
}

.people-line-standard {
  fill: none;
  stroke-width: 2.6;
}

.people-dot,
.people-bar,
.people-ranked-bar,
.people-pie-slice,
.people-map-region {
  cursor: pointer;
  transition: opacity 0.12s ease, stroke 0.12s ease, fill 0.12s ease;
}

.people-map-region {
  stroke: rgba(255, 252, 246, 0.76);
  stroke-width: 0.5;
}

.people-map-region.is-selected {
  stroke: #251d19;
  stroke-width: 1.8;
}

.people-ranked-label,
.people-bar-label {
  fill: rgba(45, 40, 37, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11.5px;
}

.people-selected-year-line {
  stroke: rgba(111, 70, 67, 0.38);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.people-no-data {
  fill: rgba(55, 45, 38, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.people-pie-legend {
  fill: rgba(45, 40, 37, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13.5px;
}

.people-legend-hit {
  cursor: help;
}

/* UK breakdown / nationality comparison */

.uk-breakdown-label {
  fill: rgba(45, 40, 37, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.uk-breakdown-value {
  fill: rgba(45, 40, 37, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.uk-breakdown-bar-bg {
  fill: rgba(107, 73, 56, 0.08);
}

.uk-breakdown-bar {
  fill: #6f4643;
  opacity: 0.86;
  cursor: pointer;
  transition: opacity 0.12s ease, fill 0.12s ease;
}

.uk-breakdown-bar:hover {
  opacity: 1;
}

.uk-breakdown-row-hit {
  cursor: pointer;
}

.uk-breakdown-muted {
  opacity: 0.28;
}

.uk-breakdown-empty {
  fill: rgba(55, 45, 38, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

/* People Growth data note card */

.people-growth-content-grid {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.people-growth-note-card {
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(255, 252, 246, 0.46);
  padding: 14px;
  min-width: 0;
}

.people-growth-note-card h5 {
  margin: 14px 0 6px;
  color: #6f4643;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.15;
}

.people-growth-note-card h5:first-of-type {
  margin-top: 0;
}

.people-growth-note-card p {
  margin: 0 0 10px;
  color: rgba(55, 45, 38, 0.54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  line-height: 1.38;
}

.people-growth-chart-panel {
  min-width: 0;
}

.people-pie-label {
  fill: rgba(45, 40, 37, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  pointer-events: none;
}

.people-pie-label tspan:last-child {
  fill: rgba(45, 40, 37, 0.58);
  font-size: 11px;
}

.people-pie-leader {
  fill: none;
  stroke: rgba(107, 73, 56, 0.35);
  stroke-width: 1;
}

.nationality-comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.nationality-comparison-header .people-chart-subtitle {
  margin-bottom: 0;
}

.people-small-select-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(55, 45, 38, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
}

.people-small-select {
  border: 1px solid rgba(111, 70, 67, 0.16);
  background: rgba(255, 252, 246, 0.68);
  color: rgba(45, 40, 37, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  padding: 5px 7px;
}

.people-missing-value {
  fill: rgba(55, 45, 38, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11.5px;
  font-style: italic;
}

@media (max-width: 1200px) {
  .people-growth-card .people-chart-note,
  .people-card-line-note {
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .people-dashboard-main {
    width: min(100% - 40px, 980px);
  }

  .people-dual-chart-grid,
  .programme-dashboard-layout,
  .programme-two-chart-grid,
  .map-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .people-dashboard-nav,
  .people-sticky-controls {
    position: relative;
    top: auto;
  }

  .standard-programmes-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .standard-programmes-heading .people-chart-note {
    text-align: left;
  }

  .people-growth-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .people-hero {
    padding: 80px var(--side-space) 96px;
  }

  .people-dashboard-main {
    width: min(100% - 28px, 620px);
    padding: 70px 0 100px;
  }

  .people-card-header,
  .people-control-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .people-card {
    padding: 16px;
  }

  .people-chart-wrap {
    min-height: 280px;
  }
}

/* =========================================================
   People wall transition + archival name wall
   ========================================================= */

.people-wall-transition {
  min-height: calc(100vh - var(--header-height) + 96px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 76px 0 120px;
  border-top: 1px solid rgba(107, 73, 56, 0.12);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

.people-wall-transition-inner {
  width: min(1120px, 100%);
  max-width: 1120px;
}

.people-wall-transition h3 {
  margin: 0;
  color: #6f4643;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 3.8vw, 4.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.people-wall-transition p {
  max-width: 980px;
  margin: 24px 0 0;
  color: rgba(45, 40, 37, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 1.08vw, 1.18rem);
  line-height: 1.46;
  letter-spacing: -0.018em;
}

.people-wall-start {
  margin-top: 38px;
}

.people-wall-module {
  padding: 80px 0 130px;
  scroll-margin-top: 118px;
}

.people-wall-controls {
  position: sticky;
  top: calc(var(--header-height) + 62px);
  z-index: 14;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(252, 247, 238, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(68, 47, 35, 0.04);
}

.people-wall-search-label {
  display: grid;
  gap: 7px;
  width: min(420px, 100%);
  color: rgba(55, 45, 38, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
}

.people-wall-search {
  width: 100%;
  border: 1px solid rgba(111, 70, 67, 0.16);
  background: rgba(255, 252, 246, 0.72);
  color: rgba(45, 40, 37, 0.78);
  padding: 10px 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  outline: none;
}

.people-wall-search:focus {
  border-color: rgba(111, 70, 67, 0.38);
  box-shadow: 0 0 0 3px rgba(111, 70, 67, 0.08);
}

.people-wall-count {
  margin: 0;
  color: rgba(55, 45, 38, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.people-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.people-wall-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(107, 73, 56, 0.13);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.7),
      rgba(246, 238, 224, 0.44)
    );
  padding: 10px;
  cursor: pointer;
  min-height: 240px;
  text-align: left;
  box-shadow: 0 12px 26px rgba(68, 47, 35, 0.045);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.people-wall-card:hover,
.people-wall-card:focus-visible {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(111, 70, 67, 0.28);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.88),
      rgba(246, 238, 224, 0.6)
    );
  box-shadow: 0 18px 36px rgba(68, 47, 35, 0.09);
}

.people-wall-card:focus-visible {
  outline: 2px solid rgba(111, 70, 67, 0.38);
  outline-offset: 3px;
}

.people-wall-portrait {
  flex: 0 0 auto;
  width: 100%;
  height: 170px;
  overflow: hidden;
  border: 1px solid rgba(107, 73, 56, 0.1);
  background: rgba(234, 222, 205, 0.54);
}

.people-wall-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(111, 70, 67, 0.08), rgba(255, 252, 246, 0.38)),
    repeating-linear-gradient(
      -45deg,
      rgba(107, 73, 56, 0.04) 0,
      rgba(107, 73, 56, 0.04) 1px,
      transparent 1px,
      transparent 8px
    );
  color: rgba(111, 70, 67, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  letter-spacing: -0.06em;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.people-wall-card:hover .people-wall-placeholder,
.people-wall-card:focus-visible .people-wall-placeholder {
  background:
    linear-gradient(135deg, rgba(111, 70, 67, 0.14), rgba(255, 252, 246, 0.58)),
    repeating-linear-gradient(
      -45deg,
      rgba(107, 73, 56, 0.058) 0,
      rgba(107, 73, 56, 0.058) 1px,
      transparent 1px,
      transparent 8px
    );
  color: rgba(111, 70, 67, 0.84);
  transform: scale(1.018);
}

.people-wall-card-name {
  margin: 11px 0 0;
  color: #332a25;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.people-wall-card-role {
  margin: 5px 0 0;
  color: rgba(55, 45, 38, 0.52);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  line-height: 1.28;
}

.people-wall-empty {
  grid-column: 1 / -1;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(255, 252, 246, 0.48);
  padding: 30px;
  color: rgba(55, 45, 38, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .people-wall-transition h3 {
    white-space: normal;
  }

  .people-wall-controls {
    position: relative;
    top: auto;
  }
}

@media (max-width: 700px) {
  .people-wall-transition {
    min-height: calc(100vh - var(--header-height));
    padding: 78px 0 92px;
  }

  .people-wall-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .people-wall-card {
    min-height: 218px;
  }

  .people-wall-portrait {
    height: 145px;
  }
}

/* =========================================================
   Key Equipment page
   ========================================================= */

.equipment-section {
  min-height: 100vh;
  background:
    linear-gradient(
      180deg,
      rgba(248, 243, 235, 0.98) 0%,
      rgba(241, 233, 220, 0.98) 100%
    );
  color: #332a25;
}

.equipment-hero {
  min-height: calc(100vh - var(--header-height));
  padding: 120px var(--side-space) 110px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #f4eadc;
  border-bottom: 1px solid rgba(90, 70, 55, 0.18);
}

.equipment-hero-inner {
  width: min(1180px, calc(100% - 2 * var(--side-space)));
  margin: 0 auto;
}

.equipment-hero h1 {
  margin: 0;
  color: #2d2825;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(4rem, 7vw, 8.2rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.equipment-hero p {
  max-width: 900px;
  margin: 46px 0 0;
  color: rgba(45, 40, 37, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.5vw, 1.8rem);
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.equipment-start {
  margin-top: 52px;
  border: 1px solid rgba(139, 90, 87, 0.32);
  background: rgba(251, 245, 234, 0.72);
  color: #6f4643;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.equipment-start span {
  margin-left: 10px;
}

.equipment-start:hover {
  background: rgba(251, 245, 234, 0.96);
  transform: translateY(-3px);
}

.equipment-gallery-section {
  width: min(1520px, calc(100% - 2 * var(--side-space)));
  margin: 0 auto;
  padding: 86px 0 150px;
  scroll-margin-top: 110px;
}

.equipment-gallery-heading {
  margin-bottom: 22px;
}

.equipment-gallery-heading h2 {
  margin: 0;
  color: #6f4643;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.2vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.06em;
}

.equipment-gallery-heading p {
  max-width: 900px;
  margin: 14px 0 0;
  color: rgba(55, 45, 38, 0.64);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.42;
}

.equipment-controls {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  z-index: 14;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(252, 247, 238, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(68, 47, 35, 0.04);
}

.equipment-search-label {
  display: grid;
  gap: 7px;
  color: rgba(55, 45, 38, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
}

.equipment-search {
  width: 100%;
  border: 1px solid rgba(111, 70, 67, 0.16);
  background: rgba(255, 252, 246, 0.72);
  color: rgba(45, 40, 37, 0.78);
  padding: 10px 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  outline: none;
}

.equipment-search:focus {
  border-color: rgba(111, 70, 67, 0.38);
  box-shadow: 0 0 0 3px rgba(111, 70, 67, 0.08);
}

.equipment-filter-group {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.equipment-filter {
  border: 1px solid rgba(111, 70, 67, 0.14);
  background: rgba(255, 252, 246, 0.58);
  color: rgba(45, 40, 37, 0.62);
  border-radius: 999px;
  padding: 7px 11px 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.74rem;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.equipment-filter:hover {
  border-color: rgba(111, 70, 67, 0.32);
  color: #6f4643;
}

.equipment-filter.is-active {
  border-color: rgba(111, 70, 67, 0.38);
  background: rgba(111, 70, 67, 0.12);
  color: #6f4643;
}

.equipment-count {
  margin: 0;
  color: rgba(55, 45, 38, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  white-space: nowrap;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.equipment-card {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(107, 73, 56, 0.13);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.72),
      rgba(246, 238, 224, 0.44)
    );
  padding: 10px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(68, 47, 35, 0.045);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.equipment-card:hover,
.equipment-card:focus-visible {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(111, 70, 67, 0.28);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.88),
      rgba(246, 238, 224, 0.6)
    );
  box-shadow: 0 18px 36px rgba(68, 47, 35, 0.09);
}

.equipment-card:focus-visible {
  outline: 2px solid rgba(111, 70, 67, 0.38);
  outline-offset: 3px;
}

.equipment-card-visual {
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 1px solid rgba(107, 73, 56, 0.1);
  background:
    linear-gradient(135deg, rgba(111, 70, 67, 0.08), rgba(255, 252, 246, 0.4)),
    repeating-linear-gradient(
      -45deg,
      rgba(107, 73, 56, 0.04) 0,
      rgba(107, 73, 56, 0.04) 1px,
      transparent 1px,
      transparent 8px
    );
}

.equipment-card-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.95) brightness(0.94);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.equipment-card:hover .equipment-card-visual img,
.equipment-card:focus-visible .equipment-card-visual img {
  filter: saturate(0.96) contrast(1) brightness(1.05);
  transform: scale(1.035);
}

.equipment-card-title-overlay {
  position: absolute;
  inset: auto 10px 10px 10px;
  padding: 10px;
  background: rgba(45, 40, 37, 0.72);
  color: rgba(255, 252, 246, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.equipment-card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(111, 70, 67, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.025em;
  transition: color 0.18s ease, transform 0.18s ease;
}

.equipment-card:hover .equipment-card-placeholder,
.equipment-card:focus-visible .equipment-card-placeholder {
  color: rgba(111, 70, 67, 0.95);
  transform: scale(1.018);
}

.equipment-empty {
  grid-column: 1 / -1;
  border: 1px solid rgba(107, 73, 56, 0.12);
  background: rgba(255, 252, 246, 0.48);
  padding: 30px;
  color: rgba(55, 45, 38, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .equipment-controls {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .equipment-hero {
    padding: 80px var(--side-space) 96px;
  }

  .equipment-gallery-section {
    width: min(100% - 28px, 620px);
    padding: 70px 0 100px;
  }

  .equipment-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  }

  .equipment-card {
    min-height: 190px;
  }

  .equipment-card-visual {
    height: 160px;
  }
}

/* =========================================================
   HUMANITIES STORY
   Part 1: shared layout + Scene 01
========================================================= */

.humanities-page {
  background: #f4eadc;
  color: #2d2825;
}

.humanities-hero .timeline-hero-inner {
  width: min(1180px, calc(100% - 2 * var(--side-space)));
}


/* =========================================================
   Cinematic story area
========================================================= */

.humanities-cinema {
  --humanities-bg: #302e2c;
  --humanities-bg-deep: #272523;
  --humanities-panel: #373431;
  --humanities-panel-light: #403c39;

  --humanities-text: #f5efe7;
  --humanities-muted: rgba(245, 239, 231, 0.7);
  --humanities-faint: rgba(245, 239, 231, 0.38);

  --humanities-line: rgba(245, 239, 231, 0.18);
  --humanities-line-soft: rgba(245, 239, 231, 0.09);

  --humanities-accent: #e9b999;
  --humanities-accent-soft: rgba(233, 185, 153, 0.13);

  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;

  color: var(--humanities-text);

  background:
    radial-gradient(
      circle at 68% 5%,
      rgba(233, 185, 153, 0.065),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      #35322f 0%,
      var(--humanities-bg) 26%,
      var(--humanities-bg-deep) 100%
    );
}

.humanities-cinema::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;

  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.024) 4px
    ),
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1.5px
    );

  background-size: auto, 8px 8px;
}

.humanities-cinema > * {
  position: relative;
  z-index: 1;
}


/* =========================================================
   Sticky scene navigation
========================================================= */

.humanities-scene-index {
  position: sticky;
  z-index: 30;
  top: calc(var(--header-height) + 26px);
  align-self: start;

  max-height: calc(100vh - var(--header-height) - 52px);
  margin: 28px 0 0 26px;
  padding: 22px 20px 24px 0;
  overflow-y: auto;

  border-top: 1px solid var(--humanities-line);
  border-bottom: 1px solid var(--humanities-line);
}

.humanities-index-question {
  margin: 0 0 23px;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.48;
}

.humanities-index-list {
  display: flex;
  flex-direction: column;
}

.humanities-index-item {
  width: 100%;
  padding: 14px 0;

  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 9px;

  border: 0;
  border-top: 1px solid var(--humanities-line-soft);
  background: transparent;

  color: var(--humanities-faint);
  text-align: left;
  cursor: pointer;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.humanities-index-item:hover {
  color: var(--humanities-muted);
  transform: translateX(3px);
}

.humanities-index-item.is-active {
  color: var(--humanities-text);
  transform: translateX(5px);
}

.humanities-index-number {
  font-family: "Courier New", monospace;
  font-size: 0.63rem;
  line-height: 1.5;
}

.humanities-index-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.humanities-index-copy strong {
  color: currentColor;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  font-weight: 400;
}

.humanities-index-copy small {
  color: currentColor;
  font-size: 0.63rem;
  line-height: 1.4;
}

.humanities-index-item.is-active .humanities-index-number,
.humanities-index-item.is-active strong {
  color: var(--humanities-accent);
}


/* =========================================================
   Scene containers
========================================================= */

.humanities-scenes,
.humanities-scene {
  min-width: 0;
}


/* =========================================================
   Scene opening
========================================================= */

.humanities-scene-opening {
  min-height: calc(100vh - var(--header-height));

  padding:
    clamp(72px, 9vh, 100px)
    clamp(50px, 7vw, 116px)
    90px;

  display: flex;
  align-items: flex-start;

  border-left: 1px solid var(--humanities-line-soft);
  border-bottom: 1px solid var(--humanities-line);
}

.humanities-scene-opening-inner {
  width: min(1180px, 100%);
  padding-top: 120px;
}

.humanities-scene-number {
  margin: 0 0 22px;

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/*
  Applies to:
  A service must exist
  Records must be stored and searched
  and later Scene opening headings.
*/

#humanities .humanities-scene-opening h2 {
  margin: 0;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4.1vw, 4.65rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.humanities-scene-opening h2 > span {
  display: block;
  margin-bottom: 15px;

  color: var(--humanities-accent);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.2em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.humanities-scene-intro {
  width: max-content;
  max-width: 100%;
  margin: 36px 0 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.22vw, 1.25rem);
  line-height: 1.6;

  white-space: nowrap;
}


/* =========================================================
   Beats
========================================================= */

.humanities-beat {
  position: relative;

  padding:
    112px
    clamp(38px, 5.2vw, 82px)
    150px;

  border-left: 1px solid var(--humanities-line-soft);
}

.humanities-beat + .humanities-beat {
  border-top: 1px solid var(--humanities-line);
}

.humanities-beat-heading {
  width: 100%;
  margin-bottom: 66px;
}

.humanities-beat-heading h3 {
  margin: 0;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 3.75vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;

  white-space: nowrap;
}


/* =========================================================
   Scrollytelling layout
========================================================= */

.humanities-beat-grid {
  display: grid;

  grid-template-columns:
    minmax(390px, 0.98fr)
    minmax(500px, 1.1fr);

  gap: clamp(48px, 5vw, 80px);
  align-items: start;
}

.humanities-state-list {
  min-width: 0;
}

.humanities-state {
  min-height: 92vh;
  padding: 17vh 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  opacity: 0.23;
  transform: translateY(15px);

  transition:
    opacity 0.42s ease,
    transform 0.42s ease;
}

.humanities-state.is-active {
  opacity: 1;
  transform: translateY(0);
}

.humanities-state-date {
  margin: 0 0 17px;

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.humanities-state h4 {
  width: min(590px, 100%);
  margin: 0 0 26px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 2.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -0.035em;
}

.humanities-state > p:not(.humanities-state-date) {
  width: min(680px, 100%);
  margin: 0 0 18px;

  color: var(--humanities-muted);

  font-size: clamp(0.88rem, 0.92vw, 0.98rem);
  line-height: 1.65;
}


/* Scene 01 controlled two-line heading */

#humanities
.humanities-state
h4.humanities-applications-heading {
  width: 760px;
  max-width: 100%;

  font-size: clamp(1.75rem, 2.15vw, 2.45rem);

  white-space: nowrap;
}


/* Two-line explanatory copy */

.humanities-two-line-copy {
  max-width: 680px;
}


/* =========================================================
   Quotes
========================================================= */

.humanities-quote {
  width: min(650px, 100%);
  margin: 27px 0 0;
  padding: 3px 0 3px 20px;

  border-left: 1px solid var(--humanities-accent);
}

.humanities-quote p {
  margin: 0;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.58;
}

.humanities-quote cite {
  display: block;
  margin-top: 11px;

  color: var(--humanities-faint);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.67rem;
  font-style: normal;
  line-height: 1.45;
}

.humanities-quote a {
  color: rgba(233, 185, 153, 0.94);
  text-decoration: none;

  border-bottom: 1px solid rgba(233, 185, 153, 0.42);
}

.humanities-quote a:hover {
  color: var(--humanities-text);
  border-bottom-color: var(--humanities-text);
}

.humanities-unlinked-source > span {
  display: block;
  margin-top: 4px;

  color: rgba(245, 239, 231, 0.28);
}


/* =========================================================
   Sticky visual stage
========================================================= */

.humanities-visual-column {
  min-width: 0;
  align-self: stretch;
}

.humanities-visual-stage {
  position: sticky;
  top: calc(var(--header-height) + 30px);

  width: 100%;
  height: min(72vh, 675px);
  min-height: 520px;
  overflow: hidden;

  border: 1px solid var(--humanities-line);

  background:
    radial-gradient(
      circle at 52% 28%,
      rgba(233, 185, 153, 0.045),
      transparent 35%
    ),
    var(--humanities-panel);

  box-shadow:
    0 24px 62px rgba(8, 7, 6, 0.25),
    inset 0 0 90px rgba(0, 0, 0, 0.14);
}

.humanities-visual-stage::after {
  content: "";
  position: absolute;
  z-index: 10;
  inset: 0;

  pointer-events: none;
  opacity: 0.12;

  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.025) 4px
    );
}

.humanities-visual {
  position: absolute;
  z-index: 1;
  inset: 0;

  padding: clamp(21px, 2.35vw, 33px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(10px);

  transition:
    opacity 0.55s ease,
    visibility 0.55s ease,
    transform 0.68s ease;
}

.humanities-visual.is-active {
  z-index: 3;

  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}


/* =========================================================
   Machine → service transition
========================================================= */

.humanities-transition-map {
  margin-bottom: 20px;

  display: grid;

  grid-template-columns:
    minmax(145px, 1fr)
    minmax(68px, 0.55fr)
    minmax(160px, 1fr);

  gap: 12px;
  align-items: center;
}

.humanities-transition-node {
  min-height: 86px;
  padding: 14px 16px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border: 1px solid var(--humanities-line);

  background: rgba(255, 255, 255, 0.022);

  transition:
    border-color 0.4s ease,
    background 0.4s ease,
    opacity 0.4s ease;
}

.humanities-transition-node span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.humanities-transition-node strong {
  margin-top: 7px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.96rem, 1.15vw, 1.22rem);
  font-weight: 400;
  line-height: 1.18;
}

.humanities-transition-node.is-muted {
  opacity: 0.31;
}

.humanities-transition-node.is-complete {
  opacity: 0.62;
}

.humanities-transition-node.is-highlighted {
  opacity: 1;

  border-color: rgba(233, 185, 153, 0.82);

  background: var(--humanities-accent-soft);
}

.humanities-transition-arrow {
  position: relative;
  height: 3px;

  background:
    linear-gradient(
      to right,
      var(--humanities-accent) 0 36%,
      var(--humanities-line) 36% 100%
    );
}

.humanities-transition-arrow::after {
  content: "";

  position: absolute;
  right: -1px;
  top: 50%;

  width: 10px;
  height: 10px;

  border-top: 2px solid var(--humanities-accent);
  border-right: 2px solid var(--humanities-accent);

  transform:
    translateY(-50%)
    rotate(45deg);
}

.humanities-transition-arrow.is-complete {
  background: var(--humanities-accent);
}


/* =========================================================
   IBM gallery
========================================================= */

.humanities-gallery {
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 12px;
  align-items: start;
}

.humanities-gallery-main {
  min-width: 0;
  margin: 0;
}

.humanities-gallery-main-image {
  height: clamp(238px, 36vh, 350px);
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e9e6e0;
}

.humanities-gallery-main-image img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: contain;

  transition:
    opacity 0.2s ease,
    transform 0.32s ease;
}

.humanities-gallery-main-image img.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.humanities-gallery-main figcaption,
.humanities-service-image figcaption,
.humanities-sps-figure figcaption {
  margin-top: 10px;

  display: flex;
  flex-direction: column;
  gap: 3px;

  color: rgba(245, 239, 231, 0.5);

  font-family: "Courier New", monospace;
  font-size: 0.56rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.humanities-gallery-main figcaption strong,
.humanities-service-image figcaption strong,
.humanities-sps-figure figcaption strong {
  color: rgba(245, 239, 231, 0.84);
  font-weight: 400;
}

.humanities-gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.humanities-gallery-thumbnail {
  width: 84px;
  height: 62px;
  padding: 4px;

  border: 1px solid rgba(245, 239, 231, 0.17);

  background: #e7e4de;

  cursor: pointer;
  opacity: 0.5;

  transition:
    opacity 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.humanities-gallery-thumbnail:hover {
  opacity: 0.82;
  transform: translateX(-2px);
}

.humanities-gallery-thumbnail.is-active {
  opacity: 1;

  border-color: var(--humanities-accent);

  box-shadow:
    0 0 0 2px
    rgba(233, 185, 153, 0.1);
}

.humanities-gallery-thumbnail img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: contain;
}


/* =========================================================
   Service image
========================================================= */

.humanities-service-image {
  width: min(620px, 92%);
  margin: 0 auto;
}

.humanities-service-image-frame {
  height: clamp(270px, 40vh, 395px);

  display: flex;
  align-items: center;
  justify-content: center;

  background: #dcd9d3;
}

.humanities-service-image-frame img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: contain;
}


/* =========================================================
   SPS visual
========================================================= */

.humanities-programming-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.humanities-programming-statement {
  width: 100%;
  margin: 0 0 20px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.78rem, 0.92vw, 0.98rem);
  line-height: 1.35;
  text-align: center;

  white-space: nowrap;
}

.humanities-sps-figure {
  width: min(710px, 96%);
  margin: 0 auto;
}

.humanities-sps-image-frame {
  height: clamp(225px, 33vh, 320px);
  padding: 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #efeeea;
}

.humanities-sps-image-frame img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: contain;
}

.humanities-sps-figure figcaption strong {
  white-space: nowrap;
  text-transform: none;
}


/* =========================================================
   Programming → humanities applications
========================================================= */

.humanities-applications-visual {
  padding:
    clamp(28px, 4vh, 48px)
    clamp(18px, 2vw, 28px);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.humanities-applications-title {
  margin: 0 0 34px;

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: clamp(0.58rem, 0.7vw, 0.68rem);
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.humanities-applications-flow {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 4px;

  display: grid;

  grid-template-columns:
    minmax(94px, 0.72fr)
    26px
    minmax(150px, 1.12fr)
    26px
    minmax(105px, 0.7fr);

  gap: 7px;
  align-items: center;
}

.humanities-applications-source,
.humanities-applications-middle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.humanities-applications-source span,
.humanities-applications-middle span {
  min-height: 42px;
  padding: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--humanities-line);

  color: var(--humanities-muted);

  font-family: "Courier New", monospace;
  font-size: clamp(0.53rem, 0.62vw, 0.63rem);
  line-height: 1.35;
  text-align: center;
}

.humanities-flow-arrow {
  position: relative;

  width: 100%;
  height: 2px;

  background: var(--humanities-accent);
}

.humanities-flow-arrow::after {
  content: "";

  position: absolute;
  right: 0;
  top: 50%;

  width: 8px;
  height: 8px;

  border-top: 2px solid var(--humanities-accent);
  border-right: 2px solid var(--humanities-accent);

  transform:
    translateY(-50%)
    rotate(45deg);
}

.humanities-applications-end {
  width: 100%;
  max-width: 138px;
  min-height: 106px;
  padding: 14px 10px;

  justify-self: center;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(233, 185, 153, 0.75);

  background: rgba(233, 185, 153, 0.09);
  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 1.25vw, 1.3rem);
  line-height: 1.2;
  text-align: center;
}

.humanities-applications-summary {
  width: 100%;
  margin: 38px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.72rem, 0.8vw, 0.86rem);
  line-height: 1.45;
  text-align: center;

  white-space: nowrap;
}


/* =========================================================
   Evidence page
========================================================= */

.humanities-evidence {
  min-height: calc(100vh - var(--header-height));

  padding:
    92px
    clamp(38px, 5.2vw, 82px);

  display: flex;
  align-items: center;

  border-top: 1px solid var(--humanities-line);
  border-left: 1px solid var(--humanities-line-soft);
}

.humanities-evidence-inner {
  width: 100%;
}

.humanities-evidence-heading > p {
  margin: 0 0 12px;

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.humanities-evidence-heading h3 {
  width: max-content;
  max-width: 100%;
  margin: 0;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 3.4vw, 3.75rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.045em;

  white-space: nowrap;
}

.humanities-evidence-grid {
  margin-top: 52px;

  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  border-top: 1px solid var(--humanities-line);
  border-left: 1px solid var(--humanities-line);
}

.humanities-evidence-grid button {
  min-height: 205px;
  padding: 22px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  border: 0;
  border-right: 1px solid var(--humanities-line);
  border-bottom: 1px solid var(--humanities-line);

  background: transparent;
  color: var(--humanities-text);

  text-align: left;
  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.humanities-evidence-grid button:hover {
  background: var(--humanities-accent-soft);
  transform: translateY(-4px);
}

.humanities-evidence-grid button > span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.64rem;
}

.humanities-evidence-grid strong {
  margin-top: 28px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.3;
}

.humanities-evidence-grid small {
  margin-top: auto;
  color: var(--humanities-faint);
}


/* =========================================================
   Image fallback
========================================================= */

.humanities-image-fallback {
  width: 100%;
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #625e5b;

  background:
    repeating-linear-gradient(
      -45deg,
      #ebe7e0,
      #ebe7e0 10px,
      #dfdad2 10px,
      #dfdad2 20px
    );

  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   Scene 03–05 placeholders
========================================================= */

.humanities-placeholder-scene {
  min-height: calc(100vh - var(--header-height));

  padding:
    90px
    clamp(50px, 7vw, 116px);

  display: flex;
  align-items: flex-start;

  border-top: 1px solid var(--humanities-line);
  border-left: 1px solid var(--humanities-line-soft);

  background:
    radial-gradient(
      circle at 54% 36%,
      rgba(233, 185, 153, 0.04),
      transparent 33%
    ),
    var(--humanities-bg-deep);
}

.humanities-placeholder-inner {
  padding-top: 4px;
}

.humanities-placeholder-inner p {
  margin: 0 0 18px;

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#humanities .humanities-placeholder-inner h2 {
  margin: 0;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4.1vw, 4.65rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.humanities-placeholder-inner h3 {
  margin: 21px 0 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
}

.humanities-placeholder-inner > span {
  display: block;
  margin-top: 40px;

  color: var(--humanities-faint);
  font-size: 0.8rem;
}

/* =========================================================
   HUMANITIES STORY
   Part 2: Scene 02 + responsive
========================================================= */


/* =========================================================
   Scene 02 — Text
========================================================= */

.humanities-text-scene {
  position: relative;
  min-width: 0;
}

.humanities-text-opening {
  background:
    radial-gradient(
      circle at 62% 30%,
      rgba(233, 185, 153, 0.05),
      transparent 35%
    ),
    rgba(21, 20, 19, 0.12);
}

/*
  Keep:
  Records must be stored and searched
  on one line on desktop.
*/

#humanities .humanities-text-opening h2 {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.humanities-text-intro {
  max-width: 980px;
  white-space: normal;
}


/* =========================================================
   Scene 02 visual stage

   Only the external frame is shorter.
   Internal components keep their own dimensions.
========================================================= */

#humanities .humanities-text-stage {
  height: min(47vh, 445px);
  min-height: 385px;

  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(233, 185, 153, 0.04),
      transparent 38%
    ),
    #312f2d;
}


/* =========================================================
   Source fragments
========================================================= */

.humanities-source-fragment {
  width: min(650px, 100%);
  margin-top: 29px;
  padding: 18px 19px;

  border-top: 1px solid var(--humanities-line);
  border-bottom: 1px solid var(--humanities-line);

  background: rgba(255, 255, 255, 0.02);
}

.humanities-source-fragment > span {
  display: block;
  margin-bottom: 10px;

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.humanities-source-fragment p {
  margin: 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  line-height: 1.55;
}

.humanities-source-fragment a {
  display: inline-block;
  margin-top: 13px;

  color: rgba(233, 185, 153, 0.94);

  font-size: 0.76rem;
  line-height: 1.4;
  text-decoration: none;

  border-bottom:
    1px solid
    rgba(233, 185, 153, 0.4);
}

.humanities-source-fragment a:hover {
  color: var(--humanities-text);
  border-bottom-color: var(--humanities-text);
}


/* =========================================================
   Scene 02 function labels

   Text editing environment
   Information storage
   Online retrieval
   Keyword in context
   Text becomes a workflow
========================================================= */

.humanities-visual-function-label {
  margin: 0 0 18px;
  padding-bottom: 13px;

  border-bottom: 1px solid var(--humanities-line);

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: none;
}

.humanities-concordance
.humanities-visual-function-label {
  margin-bottom: 20px;
  font-size: clamp(0.88rem, 1vw, 1rem);
}

.humanities-method-panel
.humanities-visual-function-label {
  margin-bottom: 24px;
  font-size: clamp(0.88rem, 1vw, 1rem);
}


/* =========================================================
   Sample old book page
========================================================= */

.humanities-reading-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-sample-book-page {
  position: relative;

  width: min(650px, 92%);
  min-height: 345px;
  overflow: hidden;

  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);

  border:
    1px solid
    rgba(76, 58, 45, 0.34);

  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(124, 84, 52, 0.1),
      transparent 32%
    ),
    radial-gradient(
      circle at 84% 72%,
      rgba(103, 69, 43, 0.08),
      transparent 28%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(86, 60, 42, 0.012) 0,
      rgba(86, 60, 42, 0.012) 1px,
      transparent 1px,
      transparent 5px
    ),
    #d9c8aa;

  box-shadow:
    0 24px 60px rgba(6, 5, 4, 0.3),
    inset 0 0 70px rgba(80, 52, 34, 0.12);

  color: #31271f;
}

.humanities-sample-book-page::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(70, 44, 27, 0.14),
      transparent 9%,
      transparent 91%,
      rgba(70, 44, 27, 0.08)
    );
}

.humanities-book-page-edge {
  position: relative;
  z-index: 1;

  border-right:
    1px solid
    rgba(76, 53, 36, 0.16);

  background:
    linear-gradient(
      90deg,
      rgba(55, 38, 27, 0.25),
      rgba(255, 255, 255, 0.04)
    );
}

.humanities-book-page-content {
  position: relative;
  z-index: 1;

  padding:
    clamp(27px, 4vh, 38px)
    clamp(40px, 5vw, 66px)
    clamp(30px, 4vh, 42px);
}

.humanities-sample-label {
  margin: 0 0 23px;

  color: rgba(85, 54, 43, 0.7);

  font-family: "Courier New", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.humanities-sample-passage {
  margin: 0;

  color: #32271f;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.94rem, 1.15vw, 1.12rem);
  line-height: 1.72;
  letter-spacing: 0.005em;

  text-align: left;
  text-indent: 1.6em;
}

.humanities-book-page-number {
  position: absolute;
  right: 50%;
  bottom: 13px;

  color: rgba(70, 49, 36, 0.5);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.7rem;

  transform: translateX(50%);
}


/* =========================================================
   Text editing environment
========================================================= */

.humanities-editor-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-terminal {
  width: min(700px, 96%);
  padding: 19px 20px 0;

  border:
    1px solid
    rgba(197, 210, 188, 0.2);

  background:
    radial-gradient(
      circle at 42% 25%,
      rgba(120, 150, 115, 0.07),
      transparent 43%
    ),
    #151917;

  box-shadow:
    0 24px 58px rgba(3, 3, 3, 0.34),
    inset 0 0 70px rgba(16, 43, 27, 0.13);

  color: #cad9c1;
}

.humanities-terminal
.humanities-visual-function-label {
  border-bottom-color:
    rgba(197, 210, 188, 0.13);

  color: #b4cba9;
}

.humanities-terminal-meta,
.humanities-terminal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  color: rgba(202, 217, 193, 0.4);

  font-family: "Courier New", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.humanities-terminal-meta {
  padding: 2px 0 7px;
}

.humanities-terminal-footer {
  margin-top: 12px;
  padding: 10px 0 13px;

  border-top:
    1px solid
    rgba(197, 210, 188, 0.11);
}

.humanities-terminal-body {
  min-height: 235px;
  padding: 17px 4px;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.humanities-editor-line {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.humanities-editor-line > span {
  color: rgba(202, 217, 193, 0.29);

  font-family: "Courier New", monospace;
  font-size: 0.6rem;
  line-height: 1.58;
}

.humanities-editor-line p {
  margin: 0;

  color: rgba(205, 222, 196, 0.87);

  font-family: "Courier New", monospace;
  font-size: clamp(0.62rem, 0.73vw, 0.73rem);
  line-height: 1.58;
  letter-spacing: 0.018em;
}

.humanities-editor-cursor {
  width: 7px;
  height: 1.05em;
  margin-left: 4px;

  display: inline-block;
  vertical-align: -0.15em;

  background: #d8e7cf;

  animation:
    humanitiesEditorCursor
    0.9s
    steps(1)
    infinite;
}

@keyframes humanitiesEditorCursor {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}


/* =========================================================
   Information storage
========================================================= */

.humanities-records-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-record-system {
  width: min(710px, 96%);
}

.humanities-record-list {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  border-left:
    1px solid
    var(--humanities-line);
}

.humanities-record-list article {
  min-height: 225px;
  padding: 18px;

  border-right:
    1px solid
    var(--humanities-line);

  border-bottom:
    1px solid
    var(--humanities-line);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.038),
      rgba(255, 255, 255, 0.01)
    );
}

.humanities-record-list article > span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.humanities-record-list dl {
  margin: 26px 0 0;
}

.humanities-record-list dl > div + div {
  margin-top: 23px;
}

.humanities-record-list dt {
  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
}

.humanities-record-list dd {
  margin: 6px 0 0;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  line-height: 1.4;
}

.humanities-record-note {
  margin: 22px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}


/* =========================================================
   Online retrieval
========================================================= */

.humanities-search-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-search-interface {
  width: min(690px, 96%);
  padding: 19px 20px 21px;

  border:
    1px solid
    var(--humanities-line);

  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.009)
    ),
    #292826;
}

.humanities-search-query {
  padding: 2px 0 15px;
}

.humanities-search-query label {
  display: block;
  margin-bottom: 8px;

  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.09em;
}

.humanities-search-input {
  min-height: 43px;
  padding: 11px 13px;

  display: flex;
  align-items: center;

  border:
    1px solid
    rgba(233, 185, 153, 0.42);

  color: var(--humanities-text);

  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.humanities-search-input i {
  width: 6px;
  height: 1em;
  margin-left: 4px;

  display: inline-block;

  background:
    var(--humanities-accent);

  animation:
    humanitiesEditorCursor
    0.9s
    steps(1)
    infinite;
}

.humanities-exact-result {
  padding: 14px 0;

  border-top:
    1px solid
    var(--humanities-line);

  border-bottom:
    1px solid
    var(--humanities-line);
}

.humanities-exact-result > span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.humanities-exact-result p {
  margin: 9px 0 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.humanities-exact-result strong {
  color: var(--humanities-accent);
  font-weight: 400;
}

.humanities-related-fields {
  padding-top: 15px;
}

.humanities-related-fields > p {
  margin: 0 0 9px;

  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.humanities-related-fields ul {
  margin: 0;
  padding: 0;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 8px;

  list-style: none;
}

.humanities-related-fields li {
  padding: 10px;

  border:
    1px solid
    var(--humanities-line-soft);

  color: var(--humanities-muted);

  font-size: 0.71rem;
  line-height: 1.35;
}

.humanities-related-fields li span {
  display: block;
  margin-bottom: 5px;

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.49rem;
  letter-spacing: 0.07em;
}


/* =========================================================
   Keyword in context
========================================================= */

.humanities-concordance-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-concordance {
  width: min(780px, 98%);
}

.humanities-concordance-term {
  margin: 20px 0 16px;

  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: clamp(0.7rem, 0.82vw, 0.82rem);
  letter-spacing: 0.08em;
}

.humanities-concordance-term strong {
  color: var(--humanities-accent);
}

.humanities-concordance-lines {
  border-top:
    1px solid
    var(--humanities-line);

  border-bottom:
    1px solid
    var(--humanities-line);
}

.humanities-concordance-lines > div {
  min-height: 68px;
  padding: 16px 14px;

  display: grid;

  grid-template-columns:
    minmax(85px, 0.72fr)
    60px
    minmax(285px, 1.75fr);

  gap: 15px;
  align-items: center;

  border-bottom:
    1px solid
    var(--humanities-line-soft);

  font-family: "Courier New", monospace;
  font-size: clamp(0.67rem, 0.79vw, 0.8rem);
}

.humanities-concordance-lines > div:last-child {
  border-bottom: 0;
}

.humanities-concordance-lines span:first-child {
  color: var(--humanities-muted);
  text-align: right;
  white-space: nowrap;
}

.humanities-concordance-lines strong {
  color: var(--humanities-accent);
  text-align: center;
}

.humanities-concordance-lines span:last-child {
  color: var(--humanities-muted);
  white-space: nowrap;
}

.humanities-concordance-note {
  margin: 28px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.45;
  text-align: center;
}


/* =========================================================
   Text becomes a workflow
========================================================= */

.humanities-method-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-method-panel {
  width: min(700px, 90%);
}

.humanities-method-flow {
  width: 100%;
  margin-top: 32px;

  display: grid;

  grid-template-columns:
    minmax(64px, 1fr)
    20px
    minmax(64px, 1fr)
    20px
    minmax(64px, 1fr)
    20px
    minmax(64px, 1fr)
    20px
    minmax(64px, 1fr);

  gap: 5px;
  align-items: center;
}

.humanities-method-flow span {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 8px 5px;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--humanities-line);

  color: var(--humanities-text);

  font-family: "Courier New", monospace;
  font-size: clamp(0.58rem, 0.68vw, 0.72rem);
}

.humanities-method-flow i {
  width: 20px;

  color: var(--humanities-accent);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: normal;
  text-align: center;
}

.humanities-method-summary {
  width: 100%;
  max-width: 620px;

  margin: 32px auto 0;
  padding: 0 6px;

  box-sizing: border-box;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.68rem, 0.76vw, 0.8rem);
  line-height: 1.4;
  text-align: center;

  white-space: nowrap;
}


/* =========================================================
   Requested one-line text
========================================================= */

.humanities-one-line-copy {
  width: max-content !important;
  max-width: 100% !important;

  font-size:
    clamp(
      0.8rem,
      0.87vw,
      0.92rem
    ) !important;

  white-space: nowrap;
}


/* =========================================================
   Scene 02 evidence
========================================================= */

.humanities-text-evidence {
  min-height:
    calc(
      100vh -
      var(--header-height)
    );
}

.humanities-text-evidence-grid {
  grid-template-columns:
    repeat(
      5,
      minmax(0, 1fr)
    );
}

.humanities-text-evidence-grid button {
  min-height: 205px;
  padding: 20px;
}

.humanities-text-evidence-grid strong {
  font-size: 0.98rem;
}


/* =========================================================
   Humanity responsive — 1300px
========================================================= */

@media (max-width: 1300px) {
  .humanities-cinema {
    grid-template-columns:
      195px
      minmax(0, 1fr);
  }

  .humanities-scene-index {
    margin-left: 21px;
    padding-right: 16px;
  }

  .humanities-beat-grid {
    grid-template-columns:
      minmax(320px, 0.92fr)
      minmax(420px, 1.08fr);

    gap: 40px;
  }

  .humanities-applications-flow {
    grid-template-columns:
      minmax(85px, 0.68fr)
      22px
      minmax(135px, 1fr)
      22px
      minmax(94px, 0.66fr);

    gap: 6px;
  }

  .humanities-text-evidence-grid {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );
  }

  .humanities-related-fields ul {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Humanity responsive — 1000px
========================================================= */

@media (max-width: 1000px) {
  .humanities-cinema {
    display: block;
  }

  .humanities-scene-index {
    position: sticky;
    top: var(--header-height);
    z-index: 40;

    max-height: none;
    margin: 0;
    padding: 11px 24px;

    overflow-x: auto;
    overflow-y: hidden;

    border-bottom:
      1px solid
      var(--humanities-line);

    background:
      rgba(39, 37, 35, 0.96);

    backdrop-filter: blur(14px);
  }

  .humanities-index-question {
    display: none;
  }

  .humanities-index-list {
    min-width: 780px;

    display: grid;

    grid-template-columns:
      repeat(
        5,
        minmax(140px, 1fr)
      );

    gap: 18px;
  }

  .humanities-index-item {
    border-top: 0;
  }

  .humanities-scene-intro,
  .humanities-beat-heading h3,
  .humanities-evidence-heading h3 {
    white-space: normal;
  }

  .humanities-text-opening h2 {
    width: auto;
    white-space: normal;
  }

  .humanities-beat-grid {
    display: block;
  }

  .humanities-state {
    min-height: auto;
    padding: 86px 0 42px;

    opacity: 1;
    transform: none;
  }

  .humanities-visual-column {
    margin-top: 30px;
  }

  .humanities-visual-stage {
    position: relative;
    top: auto;

    height: 630px;
  }

  #humanities .humanities-text-stage {
    height: 445px;
    min-height: 385px;
  }

  .humanities-evidence-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .humanities-text-evidence-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .humanities-one-line-copy,
  .humanities-method-summary {
    width: auto !important;
    white-space: normal;
  }
}


/* =========================================================
   Humanity responsive — 720px
========================================================= */

@media (max-width: 720px) {
  .humanities-scene-opening,
  .humanities-beat,
  .humanities-evidence,
  .humanities-placeholder-scene {
    padding-left: 24px;
    padding-right: 24px;
  }

  .humanities-scene-opening-inner {
    padding-top: 70px;
  }

  #humanities .humanities-scene-opening h2,
  #humanities .humanities-placeholder-inner h2 {
    font-size: 3rem;
  }

  .humanities-beat-heading h3 {
    font-size: 2.5rem;
  }

  #humanities
  .humanities-state
  h4.humanities-applications-heading {
    width: 100%;
    white-space: normal;
  }

  .humanities-visual-stage {
    height: 640px;
  }

  #humanities .humanities-text-stage {
    height: 445px;
    min-height: 385px;
  }


  /* Machine transition */

  .humanities-transition-map {
    grid-template-columns: 1fr;
  }

  .humanities-transition-arrow {
    width: 3px;
    height: 32px;
    margin: 0 auto;

    background:
      linear-gradient(
        to bottom,
        var(--humanities-accent) 0 36%,
        var(--humanities-line) 36% 100%
      );
  }

  .humanities-transition-arrow.is-complete {
    background: var(--humanities-accent);
  }

  .humanities-transition-arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0;

    transform:
      translateX(-50%)
      rotate(135deg);
  }


  /* IBM gallery */

  .humanities-gallery {
    display: block;
  }

  .humanities-gallery-thumbnails {
    margin-top: 11px;

    flex-direction: row;

    overflow-x: auto;
  }

  .humanities-gallery-thumbnail {
    flex: 0 0 82px;
  }


  /* Scene 01 visual text */

  .humanities-programming-statement,
  .humanities-sps-figure figcaption strong,
  .humanities-applications-summary {
    white-space: normal;
  }


  /* Applications flow */

  .humanities-applications-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .humanities-flow-arrow {
    width: 2px;
    height: 30px;
    margin: 0 auto;
  }

  .humanities-flow-arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0;

    transform:
      translateX(-50%)
      rotate(135deg);
  }

  .humanities-applications-end {
    max-width: 200px;
    min-height: 90px;
  }


  /* Scene 02 book */

  .humanities-sample-book-page {
    width: 96%;
    min-height: 360px;

    grid-template-columns:
      14px
      minmax(0, 1fr);
  }

  .humanities-book-page-content {
    padding:
      27px
      25px
      35px;
  }

  .humanities-sample-passage {
    font-size: 0.9rem;
  }


  /* Scene 02 editor */

  .humanities-terminal-body {
    min-height: 285px;
  }


  /* Scene 02 records */

  .humanities-record-list {
    grid-template-columns: 1fr;

    max-height: 370px;
    overflow-y: auto;
  }


  /* Scene 02 search */

  .humanities-related-fields ul {
    grid-template-columns: 1fr;
  }


  /* Scene 02 concordance */

  .humanities-concordance-lines > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .humanities-concordance-lines span:first-child,
  .humanities-concordance-lines strong,
  .humanities-concordance-lines span:last-child {
    text-align: left;
    white-space: normal;
  }


  /* Scene 02 workflow */

  .humanities-method-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .humanities-method-flow i {
    text-align: center;
    transform: rotate(90deg);
  }

  .humanities-method-summary {
    white-space: normal;
  }


  /* Evidence */

  .humanities-evidence-grid,
  .humanities-text-evidence-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Reduced motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .humanities-state,
  .humanities-visual,
  .humanities-gallery-main-image img,
  .humanities-gallery-thumbnail,
  .humanities-index-item,
  .humanities-evidence-grid button {
    transition: none;
  }

  .humanities-editor-cursor,
  .humanities-search-input i {
    animation: none;
  }
}

/* =========================================================
   HUMANITIES STORY — SCENE 03: LANGUAGE
========================================================= */

.humanities-language-scene {
  position: relative;
  min-width: 0;
}

.humanities-language-opening {
  background:
    radial-gradient(
      circle at 68% 27%,
      rgba(233, 185, 153, 0.058),
      transparent 35%
    ),
    rgba(20, 19, 18, 0.11);
}

.humanities-language-opening h2 {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.humanities-language-intro {
  max-width: 1050px;
  white-space: normal;
}


/* =========================================================
   Scene 03 visual stage
========================================================= */

.humanities-language-stage {
  height: min(56vh, 520px);
  min-height: 430px;

  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(233, 185, 153, 0.05),
      transparent 39%
    ),
    #312f2d;
}

.humanities-language-function-label {
  margin: 0 0 20px;
  padding-bottom: 13px;

  border-bottom: 1px solid var(--humanities-line);

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  line-height: 1.3;
  letter-spacing: 0.07em;
}

.humanities-greek-heading {
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap;
}


/* =========================================================
   Restricted character set
========================================================= */

.humanities-character-limit-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-character-screen {
  width: min(720px, 96%);
  padding: 22px 24px 25px;

  border: 1px solid rgba(205, 219, 196, 0.18);

  background:
    radial-gradient(
      circle at 45% 30%,
      rgba(118, 150, 112, 0.07),
      transparent 42%
    ),
    #151917;

  box-shadow:
    0 24px 58px rgba(3, 3, 3, 0.34),
    inset 0 0 72px rgba(16, 43, 27, 0.13);
}

.humanities-character-screen
.humanities-language-function-label {
  color: #b4cba9;
  border-bottom-color: rgba(197, 210, 188, 0.13);
}

.humanities-character-status {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  color: rgba(202, 217, 193, 0.44);

  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.humanities-character-basic {
  margin-top: 32px;

  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.humanities-character-basic span {
  min-height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(197, 210, 188, 0.11);

  color: rgba(211, 224, 204, 0.82);

  font-family: "Courier New", monospace;
  font-size: 0.8rem;
}

.humanities-missing-glyphs {
  margin-top: 24px;

  display: flex;
  justify-content: center;
  gap: 24px;
}

.humanities-missing-glyphs span {
  color: rgba(233, 185, 153, 0.75);

  font-family: "Courier New", monospace;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);

  animation:
    humanitiesMissingGlyph
    1.8s
    ease-in-out
    infinite;
}

.humanities-missing-glyphs span:nth-child(2) {
  animation-delay: 0.12s;
}

.humanities-missing-glyphs span:nth-child(3) {
  animation-delay: 0.24s;
}

.humanities-missing-glyphs span:nth-child(4) {
  animation-delay: 0.36s;
}

.humanities-missing-glyphs span:nth-child(5) {
  animation-delay: 0.48s;
}

.humanities-missing-glyphs span:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes humanitiesMissingGlyph {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

.humanities-character-error {
  margin: 28px 0 0;

  color: rgba(233, 185, 153, 0.76);

  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  text-align: center;
}


/* =========================================================
   Shared Greek and Chinese test pages
========================================================= */

.humanities-script-test-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-script-test-panel {
  width: min(720px, 96%);
}

.humanities-script-test-page {
  position: relative;

  min-height: 330px;
  padding: 34px 48px 29px;

  display: flex;
  flex-direction: column;
  align-items: center;

  border: 1px solid rgba(84, 66, 50, 0.28);

  background:
    radial-gradient(
      circle at 26% 18%,
      rgba(126, 88, 55, 0.055),
      transparent 30%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(93, 72, 52, 0.018) 0,
      rgba(93, 72, 52, 0.018) 1px,
      transparent 1px,
      transparent 5px
    ),
    #e8ddc8;

  box-shadow:
    0 22px 50px rgba(5, 4, 3, 0.25),
    inset 0 0 50px rgba(91, 61, 40, 0.07);

  color: #342a23;
}

.humanities-script-test-label {
  align-self: flex-start;
  margin: 0;

  color: rgba(77, 52, 42, 0.62);

  font-family: "Courier New", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.humanities-script-test-glyphs {
  margin: 54px 0 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 5vw, 5.1rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
}

.humanities-script-test-sample {
  margin: 31px 0 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.38vw, 1.35rem);
  text-align: center;
}

.humanities-script-test-success {
  width: 100%;
  margin-top: auto;
  padding-top: 26px;

  border-top: 1px solid rgba(72, 52, 39, 0.15);

  color: rgba(73, 52, 40, 0.56);

  font-family: "Courier New", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
}


/* Greek test */

.humanities-greek-test-glyphs {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
}


/* Simplified Chinese test */

.humanities-chinese-test-page {
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    "Source Han Sans SC",
    Arial,
    sans-serif;
}

.humanities-chinese-test-page
.humanities-script-test-label {
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    sans-serif;

  letter-spacing: 0.08em;
  text-transform: none;
}

.humanities-chinese-test-glyphs {
  font-family:
    "SimSun",
    "Songti SC",
    "STSong",
    "Noto Serif CJK SC",
    "Source Han Serif SC",
    serif;

  font-size: clamp(3.6rem, 5.6vw, 5.8rem);
  letter-spacing: 0.12em;
}

.humanities-chinese-test-sample {
  font-family:
    "SimSun",
    "Songti SC",
    "STSong",
    "Noto Serif CJK SC",
    serif;

  letter-spacing: 0.18em;
}

.humanities-chinese-test-page
.humanities-script-test-success {
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    sans-serif;

  text-transform: none;
}


/* =========================================================
   Language quote
========================================================= */

.humanities-language-quote {
  width: min(690px, 100%);
  margin-top: 30px;
}

.humanities-language-quote p {
  font-size: clamp(0.98rem, 1.08vw, 1.12rem);
}


/* =========================================================
   Multilingual demonstration contexts
========================================================= */

.humanities-multilingual-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-multilingual-panel {
  width: min(740px, 97%);
}

.humanities-demonstration-label {
  margin: 0 0 17px;

  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.humanities-multilingual-heading {
  padding: 0 16px 11px;

  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 24px;

  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.humanities-multilingual-lines {
  border-top: 1px solid var(--humanities-line);
  border-bottom: 1px solid var(--humanities-line);
}

.humanities-multilingual-lines > div {
  min-height: 66px;
  padding: 15px 16px;

  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 24px;
  align-items: center;

  border-bottom: 1px solid var(--humanities-line-soft);
}

.humanities-multilingual-lines > div:last-child {
  border-bottom: 0;
}

.humanities-multilingual-lines span {
  color: var(--humanities-muted);

  font-family: "Courier New", monospace;
  font-size: 0.67rem;
}

.humanities-multilingual-lines strong {
  color: var(--humanities-text);

  font-family:
    Georgia,
    "Times New Roman",
    "Songti SC",
    "SimSun",
    serif;

  font-size: clamp(1rem, 1.25vw, 1.22rem);
  font-weight: 400;
}

.humanities-language-research-flow {
  margin-top: 31px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.humanities-language-research-flow span {
  min-width: 110px;
  min-height: 48px;
  padding: 9px 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--humanities-line);

  color: var(--humanities-text);

  font-family: "Courier New", monospace;
  font-size: 0.65rem;
}

.humanities-language-research-flow i {
  color: var(--humanities-accent);
  font-style: normal;
}


/* =========================================================
   GOALS process
========================================================= */

.humanities-goals-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-goals-panel {
  width: min(740px, 97%);
}

.humanities-goals-heading {
  padding-bottom: 15px;

  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;

  border-bottom: 1px solid var(--humanities-line);
}

.humanities-goals-heading strong {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.91rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.humanities-goals-heading span {
  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.humanities-goals-process {
  margin-top: 36px;

  display: grid;
  grid-template-columns:
    minmax(90px, 1fr)
    18px
    minmax(90px, 1fr)
    18px
    minmax(90px, 1fr)
    18px
    minmax(90px, 1fr);

  gap: 7px;
  align-items: center;
}

.humanities-goals-process > div {
  min-height: 142px;
  padding: 14px 11px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  border: 1px solid var(--humanities-line);

  background: rgba(255, 255, 255, 0.016);
}

.humanities-goals-process > div > span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.55rem;
}

.humanities-goals-process strong {
  margin-top: 21px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
}

.humanities-goals-process small {
  margin-top: auto;

  color: var(--humanities-faint);

  font-size: 0.58rem;
  line-height: 1.42;
}

.humanities-goals-process > i {
  color: var(--humanities-accent);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: normal;
  text-align: center;
}

.humanities-goals-summary {
  max-width: 660px;
  margin: 34px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}


/* =========================================================
   Scene 03 evidence
========================================================= */

.humanities-language-evidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.humanities-language-evidence-grid button {
  min-height: 185px;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1300px) {
  .humanities-language-opening h2 {
    width: auto;
    white-space: normal;
  }

  .humanities-language-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .humanities-character-basic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .humanities-greek-heading {
    width: auto !important;
    white-space: normal;
  }

  .humanities-goals-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .humanities-goals-process > i {
    display: none;
  }
}


@media (max-width: 1000px) {
  .humanities-language-stage {
    height: 520px;
    min-height: 450px;
  }
}


@media (max-width: 720px) {
  .humanities-character-basic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .humanities-missing-glyphs {
    gap: 13px;
  }

  .humanities-script-test-page {
    min-height: 350px;
    padding:
      30px
      24px
      26px;
  }

  .humanities-script-test-glyphs {
    margin-top: 48px;
  }

  .humanities-chinese-test-glyphs {
    letter-spacing: 0.06em;
  }

  .humanities-multilingual-heading,
  .humanities-multilingual-lines > div {
    grid-template-columns: 0.6fr 1.4fr;
    gap: 12px;
  }

  .humanities-language-research-flow {
    flex-direction: column;
  }

  .humanities-language-research-flow i {
    transform: rotate(90deg);
  }

  .humanities-goals-heading {
    display: block;
  }

  .humanities-goals-heading span {
    display: block;
    margin-top: 8px;
  }

  .humanities-goals-process {
    grid-template-columns: 1fr;
  }

  .humanities-language-evidence-grid {
    grid-template-columns: 1fr;
  }
}


@media (prefers-reduced-motion: reduce) {
  .humanities-missing-glyphs span {
    animation: none;
  }
}

/* =========================================================
   HUMANITIES STORY — SCENE 04: ARCHIVE
========================================================= */

.humanities-archive-scene {
  position: relative;
  min-width: 0;
}

.humanities-archive-opening {
  background:
    radial-gradient(
      circle at 66% 29%,
      rgba(233, 185, 153, 0.052),
      transparent 36%
    ),
    rgba(18, 17, 16, 0.13);
}

.humanities-archive-opening h2 {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.humanities-archive-intro {
  max-width: 1080px;
  white-space: normal;
}


/* =========================================================
   Shared stage and heading
========================================================= */

.humanities-archive-stage {
  height: min(57vh, 535px);
  min-height: 445px;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(233, 185, 153, 0.045),
      transparent 39%
    ),
    #302e2c;
}

.humanities-archive-function-label {
  margin: 0 0 20px;
  padding-bottom: 13px;

  border-bottom:
    1px solid
    var(--humanities-line);

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  line-height: 1.3;
  letter-spacing: 0.07em;
}


/* =========================================================
   SAULCAT
========================================================= */

.humanities-saulcat-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-catalogue-terminal {
  width: min(720px, 96%);
  padding: 22px 24px 25px;

  border:
    1px solid
    rgba(197, 210, 188, 0.2);

  background:
    radial-gradient(
      circle at 43% 26%,
      rgba(120, 150, 115, 0.075),
      transparent 43%
    ),
    #151917;

  box-shadow:
    0 24px 58px rgba(3, 3, 3, 0.34),
    inset 0 0 72px rgba(16, 43, 27, 0.13);

  color: #cad9c1;
}

.humanities-catalogue-terminal
.humanities-archive-function-label {
  color: #b4cba9;

  border-bottom-color:
    rgba(197, 210, 188, 0.13);
}

.humanities-catalogue-query {
  margin-top: 23px;
}

.humanities-catalogue-query > span {
  color: rgba(202, 217, 193, 0.42);

  font-family: "Courier New", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

.humanities-catalogue-query p {
  min-height: 43px;
  margin: 8px 0 0;
  padding: 11px 13px;

  border:
    1px solid
    rgba(197, 210, 188, 0.2);

  color: rgba(211, 224, 204, 0.86);

  font-family: "Courier New", monospace;
  font-size: 0.75rem;
}

.humanities-catalogue-query i {
  width: 6px;
  height: 1em;
  margin-left: 4px;

  display: inline-block;
  vertical-align: -0.12em;

  background: #cad9c1;

  animation:
    humanitiesEditorCursor
    0.9s
    steps(1)
    infinite;
}

.humanities-catalogue-results {
  margin-top: 28px;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  border-top:
    1px solid
    rgba(197, 210, 188, 0.14);

  border-left:
    1px solid
    rgba(197, 210, 188, 0.14);
}

.humanities-catalogue-results article {
  min-height: 150px;
  padding: 17px;

  display: flex;
  flex-direction: column;

  border-right:
    1px solid
    rgba(197, 210, 188, 0.14);

  border-bottom:
    1px solid
    rgba(197, 210, 188, 0.14);
}

.humanities-catalogue-results article > span {
  color: rgba(202, 217, 193, 0.37);

  font-family: "Courier New", monospace;
  font-size: 0.52rem;
}

.humanities-catalogue-results strong {
  margin-top: 22px;

  color: rgba(211, 224, 204, 0.84);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.3;
}

.humanities-catalogue-results small {
  margin-top: auto;

  color: rgba(202, 217, 193, 0.4);

  font-family: "Courier New", monospace;
  font-size: 0.52rem;
}


/* =========================================================
   NISS and Oxford Text Archive
========================================================= */

.humanities-networked-resources-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-networked-resources-panel {
  width: min(710px, 96%);
}

.humanities-network-resource-source {
  width: min(310px, 68%);
  min-height: 78px;
  margin: 0 auto;
  padding: 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--humanities-line);

  background:
    rgba(255, 255, 255, 0.02);
}

.humanities-network-resource-source span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

.humanities-network-resource-source strong {
  margin-top: 9px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.humanities-network-resource-branches {
  position: relative;
  width: 50%;
  height: 64px;
  margin: 0 auto;
}

.humanities-network-resource-branches::before {
  content: "";

  position: absolute;
  left: 50%;
  top: 0;

  width: 1px;
  height: 28px;

  background:
    var(--humanities-accent);
}

.humanities-network-resource-branches::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  top: 28px;

  height: 1px;

  background:
    var(--humanities-accent);
}

.humanities-network-resource-branches span {
  position: absolute;
  top: 28px;

  width: 1px;
  height: 30px;

  background:
    var(--humanities-accent);
}

.humanities-network-resource-branches span:first-child {
  left: 0;
}

.humanities-network-resource-branches span:last-child {
  right: 0;
}

.humanities-network-resource-branches span::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 0;

  width: 7px;
  height: 7px;

  border-right:
    2px solid
    var(--humanities-accent);

  border-bottom:
    2px solid
    var(--humanities-accent);

  transform:
    translateX(-50%)
    rotate(45deg);
}

.humanities-network-resource-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 17px;
}

.humanities-network-resource-grid article {
  min-height: 160px;
  padding: 21px;

  display: flex;
  flex-direction: column;

  border:
    1px solid
    var(--humanities-line);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.01)
    );
}

.humanities-network-resource-grid strong {
  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
}

.humanities-network-resource-grid small {
  margin-top: auto;

  color: var(--humanities-muted);

  font-size: 0.7rem;
  line-height: 1.5;
}

.humanities-network-resource-summary {
  margin: 27px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  text-align: center;
}


/* =========================================================
   COPAC
========================================================= */

.humanities-copac-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-copac-panel {
  width: min(740px, 97%);
}

.humanities-copac-query {
  padding: 15px 17px;

  display: flex;
  justify-content: space-between;
  gap: 24px;

  border:
    1px solid
    rgba(233, 185, 153, 0.38);

  background:
    rgba(233, 185, 153, 0.05);
}

.humanities-copac-query span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.humanities-copac-query strong {
  color: var(--humanities-text);

  font-family: "Courier New", monospace;
  font-size: 0.73rem;
  font-weight: 400;
}

.humanities-copac-connections {
  margin-top: 25px;

  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 9px;
}

.humanities-copac-connections article {
  min-height: 88px;
  padding: 13px;

  display: flex;
  flex-direction: column;

  border:
    1px solid
    var(--humanities-line);
}

.humanities-copac-connections span {
  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.49rem;
}

.humanities-copac-connections strong {
  margin-top: auto;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 400;
}

.humanities-copac-merge {
  position: relative;
  height: 67px;
}

.humanities-copac-merge::before {
  content: "";

  position: absolute;
  left: 16.666%;
  right: 16.666%;
  top: 31px;

  height: 1px;

  background:
    var(--humanities-accent);
}

.humanities-copac-merge i {
  position: absolute;
  top: 0;

  width: 1px;
  height: 32px;

  background:
    var(--humanities-accent);
}

.humanities-copac-merge i:nth-child(1) {
  left: 16.666%;
}

.humanities-copac-merge i:nth-child(2) {
  left: 50%;
}

.humanities-copac-merge i:nth-child(3) {
  right: 16.666%;
}

.humanities-copac-merge::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 31px;

  width: 1px;
  height: 36px;

  background:
    var(--humanities-accent);

  transform:
    translateX(-50%);
}

.humanities-copac-result {
  min-height: 83px;
  padding: 15px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(233, 185, 153, 0.62);

  background:
    rgba(233, 185, 153, 0.08);
}

.humanities-copac-result span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.09em;
}

.humanities-copac-result strong {
  margin-top: 9px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}


/* =========================================================
   ePrints
========================================================= */

.humanities-eprints-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-repository-panel {
  width: min(740px, 97%);
}

.humanities-repository-creation-line {
  margin-bottom: 18px;

  display: grid;
  grid-template-columns:
    minmax(100px, 1fr)
    22px
    minmax(100px, 1fr)
    22px
    minmax(140px, 1.25fr);

  gap: 7px;
  align-items: center;
}

.humanities-repository-creation-line span {
  color: var(--humanities-muted);

  font-family: "Courier New", monospace;
  font-size: 0.59rem;
  line-height: 1.35;
  text-align: center;
}

.humanities-repository-creation-line i {
  color: var(--humanities-accent);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: normal;
  text-align: center;
}

.humanities-repository-record {
  padding: 18px;

  border:
    1px solid
    var(--humanities-line);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.034),
      rgba(255, 255, 255, 0.009)
    );
}

.humanities-repository-record > span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.humanities-repository-record dl {
  margin: 22px 0 0;

  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 12px;
}

.humanities-repository-record dl > div {
  min-height: 92px;
  padding: 12px;

  border:
    1px solid
    var(--humanities-line-soft);
}

.humanities-repository-record dt {
  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.51rem;
  letter-spacing: 0.08em;
}

.humanities-repository-record dd {
  margin: 15px 0 0;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  line-height: 1.35;
}

.humanities-repository-flow {
  margin-top: 25px;

  display: grid;
  grid-template-columns:
    minmax(95px, 1.3fr)
    20px
    minmax(72px, 1fr)
    20px
    minmax(72px, 1fr)
    20px
    minmax(72px, 1fr);

  gap: 7px;
  align-items: center;
}

.humanities-repository-flow span {
  min-height: 48px;
  padding: 9px 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--humanities-line);

  color: var(--humanities-text);

  font-family: "Courier New", monospace;
  font-size: 0.61rem;
  text-align: center;
}

.humanities-repository-flow i {
  color: var(--humanities-accent);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  font-style: normal;
  text-align: center;
}

.humanities-repository-summary {
  margin: 24px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.77rem;
  line-height: 1.45;
  text-align: center;
}

.humanities-archive-quote {
  width: min(690px, 100%);
}


/* =========================================================
   ARTS Server
========================================================= */

.humanities-arts-server-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-resource-hub {
  width: min(740px, 97%);
}

.humanities-resource-hub-centre {
  min-height: 88px;
  padding: 15px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(233, 185, 153, 0.55);

  background:
    rgba(233, 185, 153, 0.065);
}

.humanities-resource-hub-centre span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.09em;
}

.humanities-resource-hub-centre strong {
  margin-top: 10px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  font-weight: 400;
}

.humanities-resource-hub-grid {
  margin-top: 21px;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
}

.humanities-resource-hub-grid article {
  min-height: 116px;
  padding: 14px;

  display: flex;
  flex-direction: column;

  border:
    1px solid
    var(--humanities-line);

  background:
    rgba(255, 255, 255, 0.014);
}

.humanities-resource-hub-grid article > span {
  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.humanities-resource-hub-grid strong {
  margin-top: 17px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.91rem;
  font-weight: 400;
  line-height: 1.3;
}

.humanities-resource-hub-grid small {
  margin-top: auto;

  color: var(--humanities-muted);

  font-size: 0.59rem;
  line-height: 1.4;
}

.humanities-resource-hub-summary {
  margin: 23px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  text-align: center;
}


/* =========================================================
   Searchable historical edition
========================================================= */

.humanities-rps-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-digital-edition {
  width: min(740px, 97%);
}

.humanities-digital-edition-header {
  min-height: 76px;
  padding: 14px 17px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border:
    1px solid
    rgba(233, 185, 153, 0.42);

  background:
    rgba(233, 185, 153, 0.045);
}

.humanities-digital-edition-header span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.humanities-digital-edition-header small {
  margin-top: 8px;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.humanities-digital-edition-languages {
  margin-top: 18px;

  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 8px;
}

.humanities-digital-edition-languages span {
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--humanities-line);

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.humanities-digital-edition-arrow {
  margin: 11px 0;

  color: var(--humanities-accent);

  font-size: 1.2rem;
  text-align: center;
}

.humanities-digital-edition-structure {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 9px;
}

.humanities-digital-edition-structure article {
  min-height: 98px;
  padding: 13px;

  display: flex;
  flex-direction: column;

  border:
    1px solid
    var(--humanities-line);
}

.humanities-digital-edition-structure span {
  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.49rem;
  letter-spacing: 0.08em;
}

.humanities-digital-edition-structure strong {
  margin-top: auto;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.91rem;
  font-weight: 400;
  line-height: 1.3;
}

.humanities-digital-edition-summary {
  margin: 24px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}


/* =========================================================
   Evidence
========================================================= */

.humanities-archive-evidence-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}

.humanities-archive-evidence-grid button {
  min-height: 190px;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1300px) {
  .humanities-archive-opening h2 {
    width: auto;
    white-space: normal;
  }

  .humanities-archive-evidence-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


@media (max-width: 1000px) {
  .humanities-archive-stage {
    height: 545px;
    min-height: 470px;
  }

  .humanities-archive-evidence-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 720px) {
  .humanities-archive-stage {
    height: 610px;
    min-height: 540px;
  }

  .humanities-catalogue-results,
  .humanities-network-resource-grid,
  .humanities-copac-connections,
  .humanities-repository-record dl,
  .humanities-resource-hub-grid,
  .humanities-digital-edition-languages,
  .humanities-digital-edition-structure {
    grid-template-columns: 1fr;
  }

  .humanities-network-resource-source {
    width: 90%;
  }

  .humanities-network-resource-branches {
    width: 70%;
  }

  .humanities-copac-merge {
    display: none;
  }

  .humanities-copac-result {
    margin-top: 16px;
  }

  .humanities-repository-creation-line,
  .humanities-repository-flow {
    grid-template-columns: 1fr;
  }

  .humanities-repository-creation-line i,
  .humanities-repository-flow i {
    transform: rotate(90deg);
  }

  .humanities-archive-evidence-grid {
    grid-template-columns: 1fr;
  }
}


@media (prefers-reduced-motion: reduce) {
  .humanities-catalogue-query i {
    animation: none;
  }
}

/* =========================================================
   HUMANITIES STORY — SCENE 05: HERITAGE
========================================================= */


/* =========================================================
   Scene 05 opening
========================================================= */

.humanities-heritage-scene {
  position: relative;
  min-width: 0;
}

.humanities-heritage-opening {
  background:
    radial-gradient(
      circle at 67% 28%,
      rgba(233, 185, 153, 0.055),
      transparent 36%
    ),
    rgba(18, 17, 16, 0.12);
}

.humanities-heritage-opening h2 {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.humanities-heritage-intro {
  max-width: 1080px;
  white-space: normal;
}


/* =========================================================
   Shared Scene 05 visual stage
========================================================= */

.humanities-heritage-stage {
  height: min(58vh, 550px);
  min-height: 455px;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(233, 185, 153, 0.05),
      transparent 39%
    ),
    #302e2c;
}

.humanities-heritage-function-label {
  margin: 0 0 20px;
  padding-bottom: 13px;

  border-bottom: 1px solid var(--humanities-line);

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  line-height: 1.3;
  letter-spacing: 0.07em;
}


/* =========================================================
   Topic visualisation
========================================================= */

.humanities-topic-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-topic-panel {
  width: min(690px, 94%);
}

.humanities-topic-clusters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.humanities-topic-cluster {
  min-width: 0;
  min-height: 205px;
  padding: 16px 14px;

  border: 1px solid var(--humanities-line);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.007)
    );
}

.humanities-topic-cluster-number {
  display: block;

  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.09em;
}

.humanities-topic-network {
  width: 100%;
  height: 130px;
  margin-top: 19px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.humanities-topic-network-row {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  white-space: nowrap;
}

.humanities-topic-network-row strong,
.humanities-topic-network-lower {
  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.69rem, 0.78vw, 0.82rem);
  font-weight: 400;
  line-height: 1.2;
}

.humanities-topic-network-row i {
  flex: 1 1 14px;

  min-width: 10px;
  max-width: 23px;
  height: 1px;

  display: block;

  background: rgba(233, 185, 153, 0.52);
}

.humanities-topic-network-branch {
  width: 1px;
  height: 35px;
  margin-top: 13px;

  display: block;

  background: rgba(233, 185, 153, 0.52);
}

.humanities-topic-network-lower {
  margin-top: 11px;
}

.humanities-topic-summary {
  margin: 22px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.81rem;
  line-height: 1.45;
  text-align: center;
}


/* =========================================================
   LitLong Edinburgh map
========================================================= */

.humanities-litlong-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-litlong-panel {
  width: min(760px, 98%);
}

.humanities-litlong-map {
  position: relative;

  width: 100%;
  min-height: 390px;
  overflow: hidden;

  border: 1px solid var(--humanities-line);

  background:
    radial-gradient(
      circle at 52% 48%,
      rgba(233, 185, 153, 0.045),
      transparent 44%
    ),
    rgba(255, 255, 255, 0.012);
}

.humanities-litlong-streets {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
}

.humanities-litlong-street {
  fill: none;

  stroke: rgba(245, 239, 231, 0.15);
  stroke-width: 1.3;
}

.humanities-litlong-street--primary {
  stroke: rgba(233, 185, 153, 0.46);
  stroke-width: 2;
}

.humanities-litlong-street--minor {
  stroke: rgba(245, 239, 231, 0.09);
  stroke-width: 1;
}

.humanities-litlong-place {
  position: absolute;

  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.06em;
}

.humanities-litlong-place--castle {
  left: 18%;
  top: 18%;
}

.humanities-litlong-place--new-town {
  right: 20%;
  top: 18%;
}

.humanities-litlong-place--holyrood {
  right: 9%;
  bottom: 20%;
}

.humanities-litlong-marker {
  position: absolute;

  display: block;

  border-radius: 50%;
}

.humanities-litlong-marker--secondary {
  width: 8px;
  height: 8px;

  border: 1px solid rgba(245, 239, 231, 0.3);

  background: rgba(245, 239, 231, 0.08);
}

.humanities-litlong-marker--leith {
  right: 19%;
  top: 31%;
}

.humanities-litlong-marker--princes {
  left: 35%;
  top: 26%;
}

.humanities-litlong-highlight {
  position: absolute;
  left: 39%;
  top: 47%;

  max-width: 190px;
  padding: 10px 12px;

  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid rgba(233, 185, 153, 0.58);

  background: rgba(42, 39, 36, 0.93);

  box-shadow:
    0 10px 25px
    rgba(5, 5, 5, 0.2);
}

.humanities-litlong-highlight-dot {
  flex: 0 0 auto;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--humanities-accent);

  box-shadow:
    0 0 0 5px
    rgba(233, 185, 153, 0.1);
}

.humanities-litlong-highlight-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.humanities-litlong-highlight-copy strong {
  color: var(--humanities-text);

  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.humanities-litlong-highlight-copy small {
  margin-top: 4px;

  color: var(--humanities-accent);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
}

.humanities-litlong-summary {
  margin: 24px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}


/* =========================================================
   OCR and historical print
========================================================= */

.humanities-ocr-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-ocr-panel {
  width: min(790px, 97%);
}

.humanities-ocr-layout {
  display: grid;
  grid-template-columns:
    250px
    34px
    minmax(0, 1fr);

  gap: 16px;
  align-items: center;
}


/* OCR demonstration page */

.humanities-ocr-page-wrap {
  position: relative;

  width: 250px;
  min-width: 0;
  padding: 0;
}

.humanities-ocr-page {
  position: relative;

  width: 250px;
  height: 290px;
  min-height: 290px;
  padding: 20px 22px;
  overflow: visible;

  border: 1px solid rgba(84, 66, 50, 0.3);

  background:
    radial-gradient(
      circle at 30% 17%,
      rgba(118, 80, 48, 0.07),
      transparent 35%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(90, 67, 47, 0.018) 0,
      rgba(90, 67, 47, 0.018) 1px,
      transparent 1px,
      transparent 5px
    ),
    #dfd0b7;

  box-shadow:
    0 18px 42px
    rgba(5, 4, 3, 0.24);

  color: #352b23;
}

.humanities-ocr-page-meta {
  position: relative;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.humanities-ocr-page-label {
  display: block;

  color: rgba(73, 52, 40, 0.55);

  font-family: "Courier New", monospace;
  font-size: 0.43rem;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.humanities-ocr-page-title {
  position: relative;
  z-index: 3;

  margin-top: 19px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.humanities-ocr-page-text {
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 205px;
  margin: 24px auto 0;
}

.humanities-ocr-page-text p {
  margin: 0 0 18px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.56rem;
  line-height: 1.62;
  text-align: left;
  word-spacing: normal;
}

.humanities-ocr-page-text p:first-child {
  margin-bottom: 39px;
}


/* Frame includes title and both paragraphs */

.humanities-ocr-text-area {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 35px;
  bottom: 20px;
  z-index: 1;

  display: block;

  border: 1px solid rgba(139, 90, 87, 0.58);

  background: rgba(139, 90, 87, 0.025);

  pointer-events: none;
}


/* Uncertain word and vertical annotation */

.humanities-ocr-uncertain-word {
  position: relative;
  z-index: 6;

  display: inline-block;
  padding: 0 2px;

  border: 1px solid rgba(139, 90, 87, 0.9);

  background: rgba(139, 90, 87, 0.1);
}

.humanities-ocr-uncertain-word::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 100%;

  width: 1px;
  height: 21px;

  background: rgba(139, 90, 87, 0.78);

  transform: translateX(-50%);
}

.humanities-ocr-uncertain-word::before {
  content: "WORD NEEDS REVIEW";

  position: absolute;
  left: 50%;
  top: calc(100% + 21px);
  z-index: 8;

  padding: 4px 6px;

  border: 1px solid rgba(233, 185, 153, 0.48);

  background: #302e2c;

  color: rgba(233, 185, 153, 0.92);

  font-family: "Courier New", monospace;
  font-size: 0.33rem;
  line-height: 1.1;
  letter-spacing: 0.025em;
  white-space: nowrap;

  transform: translateX(-50%);
}


/* Arrow between page and OCR layer */

.humanities-ocr-arrow {
  width: 34px;

  color: var(--humanities-accent);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  text-align: center;
}


/* OCR output panel */

.humanities-ocr-result {
  width: 100%;
  min-width: 0;
  height: 270px;
  min-height: 270px;
  padding: 20px 22px;
  overflow: hidden;

  border: 1px solid var(--humanities-line);

  background: rgba(255, 255, 255, 0.016);
}

.humanities-ocr-result-label {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.53rem;
  letter-spacing: 0.08em;
}

.humanities-ocr-result > p {
  width: 100%;
  max-width: 100%;
  margin: 27px 0 0;

  display: block;

  color: var(--humanities-text);

  font-family: "Courier New", monospace;
  font-size: 0.59rem;
  line-height: 1.7;

  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.humanities-ocr-result > p span {
  width: 100%;
  max-width: 100%;

  display: block;

  white-space: normal;
}

.humanities-ocr-result-status {
  margin-top: 23px;

  display: grid;
  gap: 6px;
}

.humanities-ocr-result-status span {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 6px 9px;

  display: flex;
  align-items: center;

  border: 1px solid var(--humanities-line-soft);

  color: var(--humanities-muted);

  font-family: "Courier New", monospace;
  font-size: 0.47rem;
  white-space: normal;
}

.humanities-ocr-result-status span::before {
  content: "✓";

  margin-right: 9px;

  color: #b8ceae;
}

.humanities-ocr-summary {
  margin: 23px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  text-align: center;
}


/* =========================================================
   Computer vision and historical objects
========================================================= */

.humanities-coin-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-coin-panel {
  width: min(700px, 93%);
}

.humanities-coin-process {
  width: 100%;

  display: grid;
  grid-template-columns:
    minmax(105px, 0.92fr)
    14px
    minmax(135px, 1.12fr)
    14px
    minmax(112px, 0.96fr)
    14px
    minmax(112px, 0.96fr);

  gap: 6px;
  align-items: stretch;
}

.humanities-coin-process-stage {
  min-width: 0;
  min-height: 170px;
  padding: 14px 11px;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--humanities-line);

  background: rgba(255, 255, 255, 0.014);
}

.humanities-coin-process-stage--features {
  border-color: var(--humanities-line);

  background: rgba(255, 255, 255, 0.014);
}

.humanities-coin-process-stage > span {
  color: var(--humanities-accent);

  font-family: "Courier New", monospace;
  font-size: 0.43rem;
  line-height: 1.25;
  letter-spacing: 0.045em;
}

.humanities-coin-process-stage > strong {
  margin-top: 32px;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.26;
}

.humanities-coin-process-stage > small {
  margin-top: auto;

  color: var(--humanities-faint);

  font-size: 0.5rem;
  line-height: 1.4;
}

.humanities-coin-feature-list {
  margin-top: 20px;

  display: grid;
  gap: 6px;
}

.humanities-coin-feature-list small {
  min-height: 27px;
  padding: 6px 7px;

  display: flex;
  align-items: center;

  border: 1px solid var(--humanities-line-soft);

  color: var(--humanities-text);

  font-family: "Courier New", monospace;
  font-size: 0.48rem;
}

.humanities-coin-process-arrow {
  align-self: center;

  color: var(--humanities-accent);

  font-size: 0.83rem;
  font-style: normal;
  text-align: center;
}

.humanities-coin-summary {
  margin: 23px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  text-align: center;
}


/* =========================================================
   Finlaggan reconstruction
========================================================= */

.humanities-finlaggan-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-finlaggan-panel {
  width: min(760px, 98%);
}

.humanities-finlaggan-visual-content {
  width: 100%;
}

.humanities-finlaggan-process {
  margin-bottom: 15px;

  text-align: center;
}

.humanities-finlaggan-inputs {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    22px
    minmax(0, 1fr)
    22px
    minmax(0, 1fr);

  gap: 7px;
  align-items: center;
}

.humanities-finlaggan-inputs span {
  min-height: 41px;
  padding: 8px 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--humanities-line);

  background: rgba(255, 255, 255, 0.014);

  color: var(--humanities-text);

  font-family: "Courier New", monospace;
  font-size: 0.54rem;
  line-height: 1.3;
  text-align: center;
}

.humanities-finlaggan-inputs i {
  color: var(--humanities-accent);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-style: normal;
}

.humanities-finlaggan-process-arrow {
  margin: 7px 0 5px;

  color: var(--humanities-accent);

  font-size: 1rem;
}

.humanities-finlaggan-output {
  color: var(--humanities-accent);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.91rem;
  font-weight: 400;
}

.humanities-finlaggan-image {
  position: relative;

  height: 330px;
  overflow: hidden;

  border: 1px solid var(--humanities-line);

  background: #242321;
}

.humanities-finlaggan-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  filter:
    saturate(0.78)
    contrast(0.94)
    brightness(0.76);
}

.humanities-finlaggan-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(20, 19, 18, 0.22),
      transparent 40%
    );

  pointer-events: none;
}

.humanities-finlaggan-summary {
  margin: 23px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.humanities-heritage-quote {
  width: min(690px, 100%);
}


/* =========================================================
   Public digital heritage
========================================================= */

.humanities-public-heritage-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.humanities-public-heritage-panel {
  width: min(740px, 97%);
}

.humanities-public-heritage-network {
  position: relative;

  height: 340px;

  border: 1px solid var(--humanities-line);

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(233, 185, 153, 0.065),
      transparent 32%
    ),
    rgba(255, 255, 255, 0.01);
}

.humanities-public-heritage-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  width: 150px;
  height: 110px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(233, 185, 153, 0.7);

  background: #312d2a;

  transform: translate(-50%, -50%);
}

.humanities-public-heritage-centre span {
  color: var(--humanities-muted);

  font-family: "Courier New", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.humanities-public-heritage-centre strong {
  margin-top: 7px;

  color: var(--humanities-accent);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.23rem;
  font-weight: 400;
}

.humanities-public-heritage-node {
  position: absolute;
  z-index: 2;

  min-width: 145px;
  min-height: 58px;
  padding: 10px 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--humanities-line);

  background: #302e2c;

  color: var(--humanities-text);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.83rem;
  text-align: center;
}

.humanities-public-heritage-node--museum {
  left: 32px;
  top: 39px;
}

.humanities-public-heritage-node--immersive {
  right: 32px;
  top: 39px;
}

.humanities-public-heritage-node--public {
  left: 32px;
  bottom: 39px;
}

.humanities-public-heritage-node--learning {
  right: 32px;
  bottom: 39px;
}

.humanities-public-heritage-line {
  position: absolute;
  z-index: 1;

  height: 1px;

  background: rgba(233, 185, 153, 0.48);

  transform-origin: left center;
}

.humanities-public-heritage-line--01 {
  left: 174px;
  top: 93px;

  width: 155px;

  transform: rotate(27deg);
}

.humanities-public-heritage-line--02 {
  left: 50%;
  top: 169px;

  width: 167px;

  transform: rotate(-27deg);
}

.humanities-public-heritage-line--03 {
  left: 172px;
  bottom: 91px;

  width: 158px;

  transform: rotate(-27deg);
}

.humanities-public-heritage-line--04 {
  left: 50%;
  bottom: 169px;

  width: 167px;

  transform: rotate(27deg);
}

.humanities-public-heritage-audiences {
  margin-top: 18px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.humanities-public-heritage-audiences span {
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--humanities-line-soft);

  color: var(--humanities-muted);

  font-family: "Courier New", monospace;
  font-size: 0.57rem;
}

.humanities-public-heritage-summary {
  margin: 23px auto 0;

  color: var(--humanities-muted);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}


/* =========================================================
   Scene 05 evidence
========================================================= */

.humanities-heritage-evidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.humanities-heritage-evidence-grid button {
  min-height: 190px;
}


/* =========================================================
   Finlaggan image fallback
========================================================= */

.humanities-finlaggan-image .humanities-image-fallback {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.015);

  color: var(--humanities-faint);

  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
}


/* =========================================================
   Responsive — 1300px
========================================================= */

@media (max-width: 1300px) {
  .humanities-heritage-opening h2 {
    width: auto;
    white-space: normal;
  }

  .humanities-topic-panel {
    width: min(660px, 94%);
  }

  .humanities-topic-network-row {
    gap: 7px;
  }

  .humanities-topic-network-row strong,
  .humanities-topic-network-lower {
    font-size: 0.68rem;
  }

  .humanities-coin-panel {
    width: min(660px, 93%);
  }

  .humanities-coin-process-stage > strong {
    font-size: 0.72rem;
  }
}


/* =========================================================
   Responsive — 1000px
========================================================= */

@media (max-width: 1000px) {
  .humanities-heritage-stage {
    height: 570px;
    min-height: 500px;
  }

  .humanities-topic-clusters {
    grid-template-columns: 1fr;
  }

  .humanities-topic-cluster {
    min-height: 165px;
  }

  .humanities-topic-network {
    height: 95px;
  }

  .humanities-topic-network-branch {
    height: 22px;
    margin-top: 7px;
  }

  .humanities-topic-network-lower {
    margin-top: 7px;
  }

  .humanities-coin-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .humanities-coin-process-arrow {
    display: none;
  }

  .humanities-finlaggan-inputs {
    grid-template-columns: 1fr;
  }

  .humanities-finlaggan-inputs i {
    display: none;
  }

  .humanities-heritage-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   Responsive — 760px
========================================================= */

@media (max-width: 760px) {
  .humanities-heritage-stage {
    height: auto;
    min-height: 660px;
  }

  .humanities-litlong-map {
    min-height: 330px;
  }

  .humanities-litlong-highlight {
    left: 31%;
    top: 45%;
  }

  .humanities-ocr-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .humanities-ocr-page-wrap {
    width: 250px;
  }

  .humanities-ocr-arrow {
    transform: rotate(90deg);
  }

  .humanities-ocr-result {
    width: min(330px, 100%);
  }

  .humanities-coin-process {
    grid-template-columns: 1fr;
  }

  .humanities-finlaggan-image {
    height: 290px;
  }

  .humanities-public-heritage-network {
    height: 440px;
  }

  .humanities-public-heritage-centre {
    width: 135px;
    height: 95px;
  }

  .humanities-public-heritage-node {
    min-width: 120px;
    max-width: 138px;
  }

  .humanities-public-heritage-node--museum {
    left: 13px;
    top: 38px;
  }

  .humanities-public-heritage-node--immersive {
    right: 13px;
    top: 38px;
  }

  .humanities-public-heritage-node--public {
    left: 13px;
    bottom: 38px;
  }

  .humanities-public-heritage-node--learning {
    right: 13px;
    bottom: 38px;
  }

  .humanities-public-heritage-line {
    display: none;
  }

  .humanities-heritage-evidence-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Responsive — 520px
========================================================= */

@media (max-width: 520px) {
  .humanities-topic-network {
    transform: scale(0.92);
    transform-origin: center top;
  }

  .humanities-litlong-map {
    min-height: 290px;
  }

  .humanities-litlong-place {
    font-size: 0.48rem;
  }

  .humanities-litlong-highlight {
    left: 19%;
    top: 44%;

    max-width: 170px;
  }

  .humanities-ocr-panel {
    width: 100%;
  }

  .humanities-ocr-page-wrap,
  .humanities-ocr-page {
    width: 230px;
  }

  .humanities-ocr-page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .humanities-ocr-page-text {
    max-width: 190px;
  }

  .humanities-ocr-text-area {
    left: 15px;
    right: 15px;
  }

  .humanities-ocr-result {
    width: 100%;
    height: auto;
    min-height: 270px;
  }

  .humanities-finlaggan-image {
    height: 260px;
  }

  .humanities-public-heritage-network {
    height: 500px;
  }

  .humanities-public-heritage-node--museum,
  .humanities-public-heritage-node--immersive,
  .humanities-public-heritage-node--public,
  .humanities-public-heritage-node--learning {
    left: 50%;
    right: auto;

    transform: translateX(-50%);
  }

  .humanities-public-heritage-node--museum {
    top: 20px;
  }

  .humanities-public-heritage-node--immersive {
    top: 100px;
  }

  .humanities-public-heritage-node--public {
    top: auto;
    bottom: 100px;
  }

  .humanities-public-heritage-node--learning {
    top: auto;
    bottom: 20px;
  }

  .humanities-public-heritage-audiences {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Reduced motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .humanities-litlong-highlight-dot {
    box-shadow: none;
  }
}

/* =========================================================
   HUMANITIES — STATIC DEMO NOTE
========================================================= */

.humanities-static-demo {
  cursor: default;
}

.humanities-static-demo-note {
  display: inline-flex;
  align-items: center;

  margin: 0 0 12px;
  padding: 5px 10px;

  background: rgba(70, 66, 62, 0.86);
  border: 1px solid rgba(245, 215, 188, 0.24);
  border-radius: 2px;

  color: rgba(245, 215, 188, 0.92);

  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  line-height: 1.3;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.humanities-static-demo-note strong,
.humanities-static-demo-note span {
  color: inherit;
  font: inherit;
}

.humanities-static-demo-note strong {
  font-weight: 400;
}

.humanities-static-demo button,
.humanities-static-demo input,
.humanities-static-demo [role="button"] {
  cursor: default;
}

@media (max-width: 760px) {
  .humanities-static-demo-note {
    margin-bottom: 8px;
    font-size: 0.52rem;
  }
}

.drawer-media-item figcaption > .drawer-media-detail,
.drawer-media-item figcaption > .drawer-media-source {
  display: block;
  margin-top: 10px;
}

.drawer-media-item figcaption > :first-child {
  margin-top: 0;
}

.drawer-media-item figcaption strong {
  display: block;
  margin-bottom: 3px;
}

