@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=Inter:wght@300;400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500&family=Source+Serif+4:opsz,wght@8..60,300;400&display=swap');

@font-face {
  font-family: "BlackRush";
  src: url("../fonts/Blackrush.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Autography";
  src: url("../fonts/Autography.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Citadel";
  src: url("../fonts/CitadelScriptStd.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paragone";
  src: url("../fonts/Paragone.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monalisha";
  src: url("../fonts/monalisha.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "theharmony";
  src: url("../fonts/theharmony.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Agatho Bold";
  src: url("../fonts/Agatho_ Bold.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montreal";
  src: url("../fonts/montreal-regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Agatho Light";
  src: url("../fonts/Agatho_ Light.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paragone";
  src: url("../fonts/Kugile_Demo.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F9FAFF;
  --paper: #ffffff;
  --text: #2B2B2B;
  --muted: #6b7280;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #4A7FA5;
  --coral: #F35F45;
  --cyan: #CBEFF2;
  --pink: #E8C7D1;
  --sage: #C8EAD8;
  --label-xs: 0.58rem;
  --label-sm: 0.65rem;
  --label-md: 0.74rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 66px;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

a {
  color: inherit;
}

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

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

/* NAVBAR */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: 110px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 3000;
  transition: background 0.45s ease, border-color 0.45s ease;
}

.navbar.nav-scrolled {
  background: rgba(249, 250, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.navbar.nav-scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

/* Over the dark hero video — make elements white */
.navbar:not(.nav-scrolled) .logo img {
  filter: brightness(0) invert(1);
}

.navbar:not(.nav-scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.72);
}

.navbar:not(.nav-scrolled) .nav-links a:hover {
  color: #ffffff;
}

.navbar:not(.nav-scrolled) .nav-links a.active {
  color: rgba(255, 255, 255, 0.9);
}

.logo {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.logo img {
  height: 150px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 0.25s ease;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  background: var(--text);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease;
}

/* COMMON */

.small-title {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* INDEX */

.expo {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.expo-bg,
.expo-overlay {
  position: absolute;
  inset: 0;
}

.expo-bg img,
.expo-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none !important;
}

.expo-overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.30) 40%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

/* HERO — WORD BY WORD ENTRANCE */

.expo-content.expo-text-only {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 52px;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 2.2rem;
  opacity: 0;
}

.expo.hero-animate .hero-eyebrow {
  animation: exhibition-reveal 1.1s cubic-bezier(0.25, 0, 0.1, 1) forwards;
  animation-delay: 0s;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.8rem;
  pointer-events: none;
}

.hero-line {
  display: block;
  font-family: "theharmony", serif;
  font-size: clamp(2.8rem, 5.8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.hero-line--italic {
  font-family: "Autography", serif;
  font-style: normal;
  font-size: clamp(2.7rem, 5.8vw, 7rem);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.12em;
  letter-spacing: 0.01em;
}

.hero-line--1 {
  font-family: "theharmony", serif;
  opacity: 0;
}

.hero-line--2 {
  opacity: 0;
}

.expo.hero-animate .hero-line--1 {
  animation: exhibition-reveal 1.1s cubic-bezier(0.25, 0, 0.1, 1) forwards;
  animation-delay: 0.5s;
}

.expo.hero-animate .hero-line--2 {
  animation: exhibition-reveal 1.1s cubic-bezier(0.25, 0, 0.1, 1) forwards;
  animation-delay: 1s;
}

.expo-text-only .expo-sub {
  font-family: "theharmony", serif;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  opacity: 0;
}

.expo.hero-animate .expo-sub {
  animation: exhibition-reveal 1.1s cubic-bezier(0.25, 0, 0.1, 1) forwards;
  animation-delay: 1.5s;
}

.hero-cta-primary {
  margin-top: 1.8rem;
  pointer-events: auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  opacity: 0;
}

.expo.hero-animate .hero-cta-primary {
  animation: word-rise 0.8s ease forwards;
  animation-delay: calc(7 * 0.16s + 0.5s);
}

.hero-side-nav {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  pointer-events: auto;
  opacity: 0;
  background: rgba(168, 185, 163, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.45s ease;
  --mouse-y: 50%;
}

.hero-side-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90px 150px at 50% var(--mouse-y),
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-side-nav:hover::before {
  opacity: 1;
}

.expo.hero-animate .hero-side-nav {
  animation: exhibition-reveal 1.1s cubic-bezier(0.25, 0, 0.1, 1) forwards;
  animation-delay: 2s;
}

@keyframes cta-enter {
  from { opacity: 0; transform: translateY(calc(-50% + 14px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}

@keyframes exhibition-reveal {
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: blur(0); }
}

.hero-side-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease, letter-spacing 0.3s ease, opacity 0.3s ease;
}


.side-label {
  position: relative;
}

.side-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--lc, rgba(255, 255, 255, 0.9));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.25, 0, 0.1, 1);
}

.hero-side-link:hover {
  color: var(--lc, #ffffff);
  letter-spacing: 0.28em;
}


.hero-side-link:hover .side-label::after {
  transform: translateX(-50%) scaleX(1);
}

.hero-side-nav:has(.hero-side-link:hover) .hero-side-link:not(:hover) {
  opacity: 0.35;
}

body:has(.hero-side-nav) .nav-links {
  display: none;
}

.cta-beacon {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.cta-beacon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: beacon-ping 2.6s ease-out infinite;
}

.cta-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s ease;
}

.hero-cta-primary:hover .cta-beacon {
  background: #ffffff;
}

.hero-cta-primary:hover .cta-text {
  color: rgba(255, 255, 255, 0.95);
}

@keyframes beacon-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  75% {
    box-shadow: 0 0 0 11px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes word-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PAGE HEADER */

.page-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 42px 70px;
  border-bottom: 1px solid var(--line);
}

.page-header h1,
.threads-title {
  max-width: 980px;
  font-family: "theharmony", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* ABOUT */

body:has(.about-layout) {
  overflow: hidden;
}

body:has(.about-layout) .footer {
  display: none;
}

.about-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 150px 80px 88px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 120px;
  min-height: calc(100vh - 66px);
  align-items: start;
}

.about-menu {
  counter-reset: about-section;
  position: sticky;
  top: 150px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-menu .small-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.about-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.3);
  cursor: pointer;
  transition: color 0.25s ease;
  counter-increment: about-section;
}

.about-btn::before {
  content: none;
}

.about-btn.active {
  color: var(--text);
  font-weight: 600;
}

.about-btn:hover {
  color: var(--muted);
}

.about-content {
  overflow-y: auto;
  max-height: calc(100vh - 238px); /* 150px layout top + 88px layout bottom padding */
  padding: 0 0 80px 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.about-content::-webkit-scrollbar {
  width: 3px;
}

.about-content::-webkit-scrollbar-track {
  background: transparent;
}

.about-content::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}


.about-tab {
  display: none;
}

.about-tab.active {
  display: block;
  animation: tabReveal 0.45s cubic-bezier(0.25, 0, 0.1, 1);
  margin: auto 0;
}

@keyframes tabReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.about-text {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.72;
}

.long-text {
  display: grid;
  gap: 20px;
}

.project-opening {
  font-family: "Autography", cursive;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.5;
  color: var(--text);
}

.me-opening {
  font-family: "Autography", cursive;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.5;
  display: block;
  margin-bottom: 0.2em;
}

.about-list {
  display: grid;
  gap: 22px;
  max-width: 640px;
}

.about-list p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.about-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
}

.about-profile-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

.about-profile-links span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-profile-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-profile-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* RESEARCH TIMELINE */

.methodology-timeline {
  overflow-x: visible;
  padding-bottom: 8px;
}

.timeline-inner {
  min-width: 0;
}

.phase-banners {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.phase-banner-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.phase-banner-row + .phase-banner-row {
  border-top: 1px solid var(--line);
}

.phase-banner-cell {
  display: flex;
  align-items: center;
  padding: 6px 14px;
}

.phase-banner-cell:first-child {
  display: grid;
  grid-template-columns: 12fr auto 10fr;
  align-items: center;
  padding: 6px 14px;
  border-right: 1px solid var(--line);
}

.phase-banner-cell:first-child > :nth-child(2) {
  justify-self: center;
  text-align: center;
}

.phase-banner-cell .phase-banner-label {
  display: inline;
  margin-bottom: 0;
}

.phase-ucl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.phase-banner-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}

.phase-banner-name {
  font-family: "theharmony", serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.phase-list-mobile {
  display: none;
}

.timeline-axis {
  position: relative;
  display: grid;
  grid-template-columns: 11fr 1fr 12fr 11fr 1fr;
  padding: 6px 0 8px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-axis span {
  position: relative;
  padding-top: 8px;
  white-space: nowrap;
}

.timeline-axis span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 5px;
  background: var(--line);
}

.timeline-axis span:nth-child(2),
.timeline-axis span:nth-child(5) {
  justify-self: end;
  text-align: right;
}

.timeline-axis span:nth-child(2)::before,
.timeline-axis span:nth-child(5)::before {
  left: auto;
  right: 0;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--line);
}

.timeline-block {
  position: relative;
  padding: 11px 16px 10px;
  border-radius: 4px;
  border-left: 3px solid currentColor;
  background: var(--paper);
  transition: opacity 0.2s ease;
}

.timeline-block:hover {
  opacity: 0.85;
}

.timeline-block h3 {
  margin: 0;
  font-family: "theharmony", serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.2;
}

.timeline-block.archival {
  grid-column: 1 / 10;
  color: #6B8A66;
}

.timeline-block.oral {
  grid-column: 2 / 11;
  color: #A05070;
}

.timeline-block.spatial {
  grid-column: 4 / 13;
  color: var(--accent);
}

.timeline-block p {
  margin: 0;
  font-size: 0.6rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
}

/* Accordion trigger */
.block-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
  gap: 10px;
}

.block-chevron {
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  opacity: 0.7;
  margin-top: -3px;
}

.timeline-block.open .block-chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* Collapsible body */
.block-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.timeline-block.open .block-body {
  grid-template-rows: 1fr;
}

.block-body-inner {
  overflow: hidden;
  padding-top: 0;
  transition: padding-top 0.3s ease;
}

.timeline-block.open .block-body-inner {
  padding-top: 8px;
}


/* NETWORK */

.network-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.network-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(249, 250, 255, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.network-card span {
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.network-card h3 {
  margin-top: 14px;
  font-family: "theharmony", serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
}

.network-place {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}

.network-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: nowrap;
}

.network-card small {
  margin-top: 10px;
  color: var(--text);
  font-size: 0.78rem;
  white-space: nowrap;
}

.network-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.network-map {
  height: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.network-map .leaflet-container {
  height: 100%;
  font-family: "Inter", sans-serif;
}

.net-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: net-pulse 2.8s ease-out infinite;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.leaflet-marker-icon:hover .net-dot {
  transform: scale(1.5);
}

@keyframes net-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74, 127, 165, 0.35); }
  65%  { box-shadow: 0 0 0 7px rgba(74, 127, 165, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(74, 127, 165, 0);    }
}

.net-tooltip.leaflet-tooltip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 12px;
  box-shadow: 0 2px 12px rgba(23, 23, 23, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.net-tooltip.leaflet-tooltip::before {
  display: none;
}

.net-tt-role {
  color: var(--accent);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.net-tt-name {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}

.net-tt-city {
  font-size: 0.72rem;
  color: var(--muted);
}

/* FUNDING */

.funding-block {
  border-top: 1px solid var(--line);
}

.funding-head {
  padding-bottom: 34px;
}

.funding-head span {
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.funding-head h3 {
  margin-top: 18px;
  font-family: "theharmony", serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.15;
}

.funding-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.funding-row strong {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.funding-row p {
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
}

.funding-disclaimer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
}

/* THREADS */

.thread-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* card base */

.thread-card {
  position: relative;
  min-height: 290px;
  padding: 34px;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  text-decoration: none;
  overflow: hidden;

  display: flex;
  align-items: flex-end;

  filter: grayscale(100%);

  transition:
    background 0.45s ease,
    filter 0.45s ease,
    transform 0.3s ease;
}

.thread-card:nth-child(2n) {
  border-right: 0;
}

.thread-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* default b&w pastel tones */

.thread-card.domestic {
  background: #C8EAD8;
}

.thread-card.construction {
  background: #CBEFF2;
}

.thread-card.urban {
  background: #E8C7D1;
}

.thread-card.inclusion {
  background: #FBDDD8;
}

/* warm neutral hover — deepen slightly */

.thread-card.domestic:hover {
  background: #A8D4BE;
}

.thread-card.construction:hover {
  background: #A8DDE0;
}

.thread-card.urban:hover {
  background: #D4AFBF;
}

.thread-card.inclusion:hover {
  background: #F0C4BC;
}

.thread-card:hover {
  filter: grayscale(0%);
  transform: translateY(-2px);
}

.thread-card.dimmed {
  opacity: 0.45;
  transition:
    background 0.45s ease,
    filter 0.45s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* subtle paper texture */

.thread-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.012) 0px,
      rgba(0,0,0,0.012) 1px,
      transparent 1px,
      transparent 5px
    );

  opacity: 0.28;
}

/* large quiet number */

.card-num {
  position: absolute;
  top: 24px;
  right: 28px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;

  color: rgba(30,26,20,0.35);
}

/* caption */

.thread-caption {
  position: relative;
  z-index: 2;

  max-width: 34ch;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thread-caption h2 {
  margin: 0;

  font-family: "theharmony", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;

  color: #1d1a16;
}

.thread-caption p {
  margin: 0;
  white-space: nowrap;

  font-family: "theharmony", serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.25;

  color: rgba(40,34,24,0.72);
}

/* explore tag */

.card-explore {
  margin-top: 14px;

  width: fit-content;

  padding: 5px 10px;

  border: 1px solid rgba(50,40,28,0.12);
  background: rgba(255,255,255,0.28);

  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: rgba(40,32,22,0.72);

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.thread-card:hover .card-explore {
  background: rgba(255,255,255,0.45);
  transform: translateX(2px);
}

/* THREADS PAGE SPLIT LAYOUT */

.threads-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  height: calc(100vh - 74px - 66px);
  margin-top: 74px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.threads-layout .page-header {
  max-width: none;
  margin: 0;
  padding: 44px 42px 48px;
  border-bottom: none;
  border-right: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.threads-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.threads-count-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.threads-display-title {
  font-family: "theharmony", serif;
  font-size: clamp(3rem, 4.8vw, 5.2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--text);
}

.threads-bottom {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.threads-accent-rule {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}

.threads-layout .page-header p.threads-intro {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  text-align: justify;
}

.threads-layout .thread-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  height: 100%;
  min-height: 0;
  border: 0;
}

.threads-layout .thread-card {
  min-height: 0;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  filter: none;
  transition: background 0.45s ease, transform 0.3s ease;
}

.threads-layout .thread-card:nth-child(2n) {
  border-right: 0;
}

.threads-layout .thread-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* strip the glass box on threads page cards */
.threads-layout .thread-caption {
  background: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}

.threads-layout .thread-caption h2 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  color: var(--text);
  text-shadow: none;
}

.threads-layout .thread-caption p {
  max-width: none;
  font-size: 0.88rem;
  color: var(--muted);
  text-shadow: none;
}

.threads-layout .card-num {
  color: rgba(40, 32, 24, 0.45);
  text-shadow: none;}

.threads-layout .card-explore {
  color: var(--muted);
}

/* subtle paper grain */
.threads-layout .thread-card::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.018) 0px,
      rgba(0, 0, 0, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
  filter: none;
}

.threads-layout .thread-card::after {
  background: none;
}

.threads-layout .thread-card:hover::before {
  filter: none;
}

.threads-layout .thread-card:hover::after {
  background: none;
}

.card-num {
  position: relative;
  z-index: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.card-explore {
  display: block;
  margin-top: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 245, 220, 0.82);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.thread-card:hover .card-explore {
  opacity: 1;
  transform: translateY(0);
}

.thread-card::before {
  filter: grayscale(100%) opacity(0.36) contrast(1.05) saturate(0.9);
}

.thread-card:hover::before {
  filter: grayscale(0%) opacity(0.82) contrast(1.12) saturate(1.55);
  transform: scale(1.035);
}

.thread-card::after {
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.58)
    );
}

.thread-card:hover::after {
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.36)
    );
}

/* THREADS REDESIGN */

.threads-page {
  padding-top: 110px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.threads-header {
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  padding: 32px 42px;
}

.threads-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.threads-heading {
  margin-top: 12px;
  font-family: "theharmony", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.threads-lead {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.thread-strip {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 0;
}

.thread-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thread-panel:last-child {
  border-right: 0;
}

.thread-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) opacity(0.36) contrast(1.05) saturate(0.9);
  transition: filter 0.55s ease, transform 0.55s ease;
}

.thread-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.58)
  );
  transition: background 0.45s ease;
}

.thread-panel:hover::before {
  filter: grayscale(0%) opacity(0.82) contrast(1.12) saturate(1.55);
  transform: scale(1.035);
}

.thread-panel:hover::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.36)
  );
}

.thread-panel.domestic::before     { background-color: #C8EAD8; background-image: url("../images/thread-1.jpg"); }
.thread-panel.construction::before { background-color: #CBEFF2; background-image: url("../images/thread-2.jpg"); }
.thread-panel.urban::before        { background-color: #E8C7D1; background-image: url("../images/thread-3.jpg"); }
.thread-panel.inclusion::before    { background-color: #FBDDD8; background-image: url("../images/thread-4.jpg"); }

.thread-num {
  position: relative;
  z-index: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.thread-panel .thread-caption {
  position: relative;
  z-index: 2;
}

.thread-panel .thread-caption span {
  display: block;
  margin-top: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 245, 220, 0.8);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.thread-panel:hover .thread-caption span {
  opacity: 1;
  transform: translateY(0);
}

/* THREAD PAGES */

.th-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 74px - 66px);
  margin-top: 74px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.th-hero-text {
  padding: 48px 52px 56px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.th-hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.th-hero-title {
  font-family: "theharmony", serif;
  font-size: clamp(4rem, 8.5vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 22px;
}

.th-hero-intro {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  line-height: 1.72;
  color: var(--muted);
  max-width: 46ch;
  margin-top: 18px;
}

.th-hero-aside {
  background: #CBEFF2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 52px 52px 56px;
  position: relative;
  overflow: hidden;
}

.th-hero-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.016) 0px,
    rgba(0, 0, 0, 0.016) 1px,
    transparent 1px,
    transparent 4px
  );
}

.th-hero-statement {
  position: relative;
  font-family: "theharmony", serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
}

/* BODY CONTENT */

.th-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 42px 80px;
}

/* Overview */
.th-overview {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 80px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.th-overview-text {
  display: grid;
  gap: 22px;
  max-width: 600px;
}

.th-overview-text p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.th-overview-aside {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 4px;
}

.th-meta-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.th-meta-list {
  list-style: none;
}

.th-meta-list li {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.th-meta-list li:first-child {
  border-top: 1px solid var(--line);
}

/* Research questions */
.th-questions {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.th-questions .small-title {
  margin-bottom: 40px;
}

.th-q-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
}

.th-q-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.th-q-dash {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
}

.th-q-item p {
  font-family: "Inter", sans-serif;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text);
}

/* Sources */
.th-sources {
  padding: 64px 0 0;
}

.th-sources .small-title {
  margin-bottom: 36px;
}

.th-sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.th-source-card {
  padding: 30px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.th-source-card:last-child {
  border-right: none;
}

.th-source-card h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.th-source-card p {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Thread navigation */
.th-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 42px 80px;
  border-top: 1px solid var(--line);
}

.th-nav .small-title {
  margin-bottom: 28px;
}

.th-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.th-nav-card {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s ease;
}

.th-nav-card:last-child {
  border-right: none;
}

.th-nav-card:hover {
  background: var(--paper);
}

.th-nav-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}

.th-nav-card h3 {
  font-family: "theharmony", serif;
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.th-nav-card p {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* EXHIBITION THREAD PAGES */

body:has(.exh-wrapper) {
  overflow: hidden;
  padding-bottom: 0;
}

.exh-wrapper {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 66px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.exh-wrapper::-webkit-scrollbar {
  display: none;
}

.exh-room {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
}

/* Title room */

.exh-title {
  padding: 44px 52px 52px;
  background: var(--bg);
  justify-content: space-between;
}

.exh-title-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.exh-title-top .small-title {
  margin-bottom: 0;
}

.exh-back {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.exh-back:hover {
  color: var(--accent);
}

.exh-title-bottom {
  display: flex;
  flex-direction: column;
}

.exh-main-title {
  font-family: "theharmony", serif;
  font-size: clamp(5rem, 11vw, 13rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 28px;
}

.exh-rule {
  width: 48px;
  height: 1.5px;
  background: var(--accent);
  margin-bottom: 22px;
}

.exh-tagline {
  font-family: "theharmony", serif;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: var(--muted);
  line-height: 1.4;
  max-width: 48ch;
}

/* Keywords room */

.exh-keywords {
  background: #CBEFF2;
}

.exh-keywords.domestic     { background: #C8EAD8; }  /* sage */
.exh-keywords.construction { background: #CBEFF2; }  /* dusty teal */
.exh-keywords.urban        { background: #E8C7D1; }  /* warm olive */
.exh-keywords.inclusion    { background: #FBDDD8; }  /* muted mauve */

.exh-room-header {
  padding: 32px 52px 0;
  flex-shrink: 0;
}

.exh-room-header .small-title {
  margin-bottom: 0;
}

.exh-kw-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
  padding: 36px 52px 52px;
  min-height: 0;
}

.exh-kw-cell {
  display: inline-flex;
  align-items: center;
}

.exh-kw-cell span {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.32);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.exh-wip {
  padding: 36px 52px 52px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.45;
}

/* Statement room */

.exh-statement {
  background: var(--paper);
  justify-content: center;
  padding: 80px 120px;
}

.exh-statement .pull-quote {
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: 1.25;
  max-width: 22ch;
  margin: 0;
  border-left-width: 3px;
  padding-left: 36px;
}

/* Threads navigation room */

.exh-threads-room {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.exh-threads-room .exh-room-header {
  padding: 36px 52px 22px;
  border-bottom: 1px solid var(--line);
}

.exh-threads-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 0;
}

.exh-thread-link {
  padding: 40px 48px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s ease;
}

.exh-thread-link:last-child {
  border-right: none;
}

.exh-thread-link:hover {
  background: rgba(0, 0, 0, 0.025);
}

.exh-thread-num {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.exh-thread-link h3 {
  font-family: "theharmony", serif;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.exh-thread-link p {
  font-family: "theharmony", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: auto;
}

/* Scroll dot indicators */

.exh-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.exh-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.28;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.exh-dot.active {
  opacity: 1;
  transform: scale(1.5);
  background: var(--text);
}

.about-dots {
  display: none;
}

/* OUTPUTS */

.outputs-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 42px 90px;
}

.outputs-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 46px;
}

.output-tab {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.output-tab.active {
  background: var(--sage);
  color: var(--text);
}

.output-view {
  display: none;
}

.output-view.active {
  display: block;
}

.calendar-entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 50px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-date span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.calendar-date strong,
.calendar-info h2 {
  font-family: "theharmony", serif;
  font-weight: 400;
}

.calendar-date strong {
  font-size: 1.65rem;
}

.calendar-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.calendar-info p {
  color: var(--muted);
}

/* CONTACT — MUSEUM */

.cpage {
  padding-top: 110px;
  padding-bottom: 66px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.cpage-body {
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1.8fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 64px 40px 80px;
  gap: 64px;
  align-items: center;
}

.cpage-left {
  display: flex;
  flex-direction: column;
  padding-right: 0;
}

.cpage-eyebrow {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  margin-bottom: 22px;
}

.cpage-heading {
  font-family: "theharmony", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.cpage-meta {
  display: grid;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.cpage-links-eyebrow {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  margin-top: 28px;
  margin-bottom: 10px;
}

.cpage-form-eyebrow {
  display: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  margin-bottom: 24px;
}

.cpage-links {
  display: grid;
  gap: 8px;
}

.cpage-links a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: fit-content;
  transition: opacity 0.2s ease;
}

.cpage-links a:hover {
  opacity: 0.62;
}

.cpage-write-link {
  display: none;
}

.cpage-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 48px 36px;
}

.cpage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cpage-field {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cpage-row .cpage-field:first-child {
  padding-right: 40px;
  border-right: 1px solid var(--line);
}

.cpage-row .cpage-field:last-child {
  padding-left: 40px;
}

.cpage-field label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.65;
  margin-bottom: 10px;
}

.cpage-field input,
.cpage-field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: "theharmony", serif;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
  padding: 0;
}

.cpage-field input:focus,
.cpage-field textarea:focus {
  outline: none;
}

.cpage-field input::placeholder,
.cpage-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.36;
}

.cpage-field textarea {
  resize: none;
  display: block;
}

.cpage-submit {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease;
}

.cpage-submit:hover {
  background: var(--sage);
  color: var(--text);
  padding: 18px 24px;
  border-bottom-color: var(--sage);
}

.cpage-arrow {
  font-size: 1rem;
  letter-spacing: 0;
  transition: transform 0.3s ease;
}

.cpage-submit:hover .cpage-arrow {
  transform: translateX(5px);
}

.cpage-ethics {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cpage-ethics summary {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cpage-ethics summary::-webkit-details-marker {
  display: none;
}

.cpage-ethics summary::after {
  content: "+";
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 1;
}

.cpage-ethics[open] summary::after {
  content: "−";
}

.cpage-ethics p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
  opacity: 0.75;
}

/* FOOTER */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 16px 42px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.footer.footer-visible {
  transform: translateY(0);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.footer-substack {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.footer-substack:hover {
  color: var(--accent);
}

.eu-logo img {
  height: 34px;
}

.partners {
  display: flex;
  align-items: center;
  gap: 30px;
}

.partners img {
  height: 40px;
  max-width: 200px;
  object-fit: contain;
}

/* EXHIBITION PROGRESS BAR */

.exh-progress {
  position: fixed;
  top: 74px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 2999;
  transition: width 0.2s ease;
  pointer-events: none;
}

/* EDITORIAL UTILITIES */

.drop-cap::first-letter {
  font-family: "theharmony", serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.8;
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--accent);
}

.pull-quote {
  border-left: 2px solid var(--accent);
  padding: 12px 0 12px 28px;
  margin: 36px 0;
  font-family: "theharmony", serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  color: var(--text);
}

/* HOMEPAGE THREADS PREVIEW */

.home-threads {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 42px 100px;
}

.home-threads-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.home-threads-lead {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 38ch;
  text-align: right;
}

/* ANIMATIONS */

@keyframes softAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SITE LOADER */

body.loading {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d0d0b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 0s linear 1s;
}

.site-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  height: 140px;
  width: auto;
  filter: brightness(0) invert(1);
  -webkit-mask-image: linear-gradient(to right, #000 40%, transparent 100%);
          mask-image: linear-gradient(to right, #000 40%, transparent 100%);
  -webkit-mask-size: 250% 100%;
          mask-size: 250% 100%;
  -webkit-mask-position: -150% 0;
          mask-position: -150% 0;
  animation: logoWrite 1.8s cubic-bezier(0.3, 0, 0.15, 1) 0.3s forwards;
}

@keyframes logoWrite {
  to {
    -webkit-mask-position: 60% 0;
            mask-position: 60% 0;
  }
}

.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loader-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.55);
  animation: loaderFill 2.2s cubic-bezier(0.4, 0, 0.15, 1) 0.3s forwards;
}


@keyframes loaderFill {
  to { width: 100%; }
}

/* MOBILE */

@media (max-width: 900px) {

  /* — BASE — */

  body {
    padding-bottom: 54px;
  }

  /* — NAVBAR — */

  .hero-side-nav {
    display: none;
  }

  body:has(.hero-side-nav) .nav-links {
    display: flex;
  }

  .navbar {
    height: 80px;
    padding: 0 20px;
  }

  .logo img {
    display: block;
    height: 60px;
  }

  .navbar:not(.nav-scrolled) .menu-toggle span {
    background: rgba(255, 255, 255, 0.85);
  }

  .navbar:not(.nav-scrolled) .menu-toggle span:nth-child(2) {
    background: rgba(255, 255, 255, 0.52);
  }

  /* When the drawer is open the toggle stays visible above the backdrop */
  .navbar:not(.nav-scrolled) .nav-links.active a {
    color: var(--text);
  }

  .navbar:not(.nav-scrolled) .menu-toggle.active span {
    background: var(--text);
  }

  /* — HAMBURGER BUTTON — */

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 4000;
    width: 30px;
    height: 22px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
  }

  .menu-toggle span {
    position: absolute;
    left: 0;
    height: 1.5px;
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.3s ease;
  }

  /* Full-width top line */
  .menu-toggle span:nth-child(1) {
    top: 0;
    width: 30px;
    background: var(--text);
  }

  /* Short teal accent mark — the distinctive element */
  .menu-toggle span:nth-child(2) {
    display: block;
    top: 10px;
    width: 17px;
    background: var(--accent);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.3s ease,
                width 0.32s ease;
  }

  /* Full-width bottom line */
  .menu-toggle span:nth-child(3) {
    bottom: 0;
    width: 30px;
    opacity: 1;
    background: var(--text);
  }

  /* Hover: accent line extends as a subtle cue */
  .menu-toggle:hover span:nth-child(2) {
    width: 24px;
  }

  /* Active → × : accent line dissolves, outer lines cross */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* — FULL-SCREEN OVERLAY — */

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 72vw;
    max-width: 300px;
    z-index: 2500;
    padding: 80px 32px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    background: #829e80;
    counter-reset: nav-item;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 0s 0.42s;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.42s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 0s 0s;
  }

  .nav-links li {
    list-style: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    counter-increment: nav-item;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.32s ease, transform 0.32s ease;
  }

  .nav-links li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }

  .nav-links.active li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.18s; }
  .nav-links.active li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.24s; }
  .nav-links.active li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.30s; }
  .nav-links.active li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.36s; }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .nav-links a:hover { color: #000000; }

  .nav-links a::before {
    content: '0' counter(nav-item);
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
  }

  .nav-links a::after {
    content: '→';
    display: inline-block;
    position: static;
    width: auto; height: auto;
    bottom: auto; left: auto;
    font-size: 0.7rem;
    letter-spacing: 0;
    background: transparent;
    margin-left: auto;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links a:hover::after {
    opacity: 0.45;
    transform: translateX(0);
  }

  /* — GENERIC PAGE HEADER — */

  .page-header {
    padding: 110px 20px 44px;
  }

  .page-header h1,
  .threads-title {
    max-width: 100%;
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    line-height: 1.1;
  }

  /* — INDEX HERO — */

  .expo {
    height: 100svh;
  }

  .expo-content.expo-text-only {
    padding: 0 24px;
  }

  .hero-eyebrow {
    display: none;
  }

  .hero-line {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-line--italic {
    font-size: clamp(1.8rem, 8.5vw, 2.8rem);
  }

  .expo-text-only .expo-sub {
    font-size: 1rem;
    white-space: normal;
  }

  /* — ABOUT PAGE — */

  body:has(.about-layout) {
    overflow: auto;
    padding-bottom: 54px;
  }

  body:has(.about-layout) .footer {
    display: block;
  }

  .about-layout {
    display: block;
    height: auto;
    padding: 80px 0 54px;
    max-width: none;
  }

  .about-content {
    max-height: none;
  }

  /* Accordion — museum catalogue style */
  .about-menu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow-x: visible;
    background: transparent;
    border-bottom: 1px solid var(--line);
    counter-reset: section;
  }

  .about-menu .small-title {
    display: block;
    padding: 32px 20px 20px;
    margin-bottom: 0;
  }

  .about-btn {
    flex-shrink: unset;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 18px 20px;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
    white-space: normal;
    font-size: 1.05rem;
    font-family: "theharmony", serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease;
    counter-increment: section;
  }

  .about-btn::before {
    content: counter(section, decimal-leading-zero);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    flex-shrink: 0;
    padding-top: 2px;
  }

  .about-btn::after {
    content: '+';
    margin-left: auto;
    font-family: "IBM Plex Mono", monospace;
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted);
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s ease;
  }

  .about-btn.active {
    color: var(--accent);
    background: transparent;
  }

  .about-btn.active::before {
    color: var(--accent);
  }

  .about-btn.active::after {
    content: '−';
    color: var(--accent);
  }

  /* Content panel hidden — panels move into accordion */
  .about-content {
    display: none;
  }

  .about-menu .about-tab {
    display: none;
    padding: 0;
  }

  .about-menu .about-tab.active {
    display: block;
    padding: 24px 20px 32px 20px;
    animation: softAppear 0.3s ease;
    background: transparent;
    border-top: 1px solid var(--line);
  }

  .about-menu .about-text {
    font-size: 0.98rem;
    max-width: none;
  }

  .about-dots {
    display: none;
  }

  /* Research timeline — vertical on mobile */
  .phase-banners {
    display: none;
  }

  .phase-list-mobile {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .phase-item-mobile {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }

  .phase-item-mobile:last-child {
    border-bottom: none;
  }

  .phase-months {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 1px;
  }

  .timeline-axis {
    display: none;
  }

  .timeline-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .timeline-block {
    grid-column: auto !important;
  }

  /* Network */
  .network-layout {
    grid-template-columns: 1fr;
  }

  .network-map {
    height: 220px;
    min-height: unset;
  }

  .network-grid {
    grid-template-columns: 1fr;
  }

  /* Funding */
  .funding-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* — THREADS OVERVIEW — */

  .threads-layout {
    display: block;
    height: auto;
    margin-top: 80px;
    border-bottom: none;
    overflow: visible;
  }

  .threads-layout .page-header {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 44px 20px 36px;
    justify-content: flex-start;
    gap: 20px;
  }

  .threads-display-title {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    line-height: 1.04;
  }

  /* Exhibition-gallery card list */
  .threads-layout .thread-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    border: none;
  }

  .threads-layout .thread-card {
    min-height: 220px;
    padding: 28px 20px 32px;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    filter: none;
    transition: background 0.45s ease;
  }

  .threads-layout .thread-card:last-child {
    border-bottom: none !important;
  }

  /* Generic thread-grid (used on other pages) */
  .thread-grid {
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0;
    width: 100%;
    padding: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .thread-card {
    flex: none;
    width: 100%;
    min-height: 220px;
    padding: 28px 20px 32px;
    border: none;
    border-bottom: 1px solid var(--line);
    scroll-snap-align: none;
    filter: none;
  }

  .thread-card:last-child {
    border-bottom: none;
  }

  .thread-card:hover {
    transform: none;
  }

  .thread-card::before {
    filter: grayscale(100%) opacity(0.36) contrast(1.06);
  }

  .thread-card:hover::before {
    transform: none;
  }

  /* — EXHIBITION THREAD PAGES — */

  .exh-statement {
    padding: 48px 24px;
  }

  .exh-statement .pull-quote {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem);
    padding-left: 20px;
  }

  /* — THREAD INNER PAGES — */

  .th-hero {
    display: block;
    height: auto;
    margin-top: 80px;
  }

  .th-hero-text {
    padding: 40px 20px 44px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }

  .th-hero-title {
    font-size: clamp(3.5rem, 16vw, 5.5rem);
    margin-bottom: 18px;
    line-height: 0.88;
  }

  .th-hero-intro {
    max-width: 100%;
  }

  .th-hero-aside {
    padding: 36px 20px 40px;
    min-height: 180px;
  }

  .th-hero-statement {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .th-body {
    padding: 0 20px 64px;
  }

  .th-overview {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 0;
  }

  .th-overview-text {
    max-width: 100%;
  }

  .th-overview-aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
  }

  .th-q-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .th-sources-grid {
    grid-template-columns: 1fr;
  }

  .th-source-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .th-source-card:last-child {
    border-bottom: none;
  }

  .th-nav {
    padding: 44px 20px 70px;
  }

  .th-nav-grid {
    grid-template-columns: 1fr;
  }

  .th-nav-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .th-nav-card:last-child {
    border-bottom: none;
  }

  /* — EXHIBITION THREAD PAGES — */

  body:has(.exh-wrapper) {
    overflow: hidden;
    padding-bottom: 0;
  }

  .exh-wrapper {
    top: 80px;
    bottom: 54px;
  }

  /* Title room — imposing type, gallery entrance */
  .exh-title {
    padding: 36px 20px 40px;
    justify-content: space-between;
  }

  .exh-main-title {
    font-size: clamp(2rem, 13vw, 8.5rem);
    margin-bottom: 22px;
    line-height: 0.88;
  }

  .exh-rule {
    margin-bottom: 18px;
  }

  .exh-tagline {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    max-width: 30ch;
  }

  /* Keywords room */
  .exh-room-header {
    padding: 24px 20px 0;
  }

  .exh-kw-grid {
    padding: 24px 20px 36px;
    gap: 8px;
  }

  .exh-kw-cell span {
    font-size: 0.68rem;
    padding: 6px 13px;
  }

  /* Navigation room */
  .exh-threads-room .exh-room-header {
    padding: 22px 20px 16px;
  }

  .exh-threads-grid {
    grid-template-columns: 1fr;
  }

  .exh-thread-link {
    padding: 22px 20px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    gap: 8px;
  }

  .exh-thread-link:last-child {
    border-bottom: none;
  }

  .exh-thread-link h3 {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }

  .exh-dots {
    right: 14px;
  }

  /* — OUTPUTS — */

  .outputs-page {
    padding: 100px 20px 70px;
  }

  .outputs-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .calendar-entry {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .calendar-info h2 {
    font-size: 1.6rem;
  }

  /* — CONTACT — */

  .cpage {
    padding-top: 80px;
    min-height: unset;
    align-items: flex-start;
  }

  .cpage-body {
    grid-template-columns: 1fr;
    padding: 40px 20px 80px;
    gap: 0;
  }

  .cpage-form {
    padding: 28px 24px 24px;
    margin-top: 48px;
  }

  .cpage-left {
    border-bottom: 1px solid var(--line);
    padding-bottom: 40px;
  }

  .cpage-form-eyebrow {
    display: block;
  }

  .cpage-heading {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    white-space: normal;
  }

  .cpage-row {
    grid-template-columns: 1fr;
  }

  .cpage-row .cpage-field:first-child {
    padding-right: 0;
    border-right: 0;
  }

  .cpage-row .cpage-field:last-child {
    padding-left: 0;
  }

  .cpage-submit:hover {
    padding: 18px 16px;
  }

  /* — FOOTER — */

  .footer {
    padding: 11px 16px;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .footer-substack {
    display: none;
  }

  .eu-logo img {
    height: 24px;
    width: auto;
  }

  .partners {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .partners img {
    height: 22px;
    width: auto;
    max-width: 90px;
  }

  /* — FORMS (prevent iOS zoom on focus) — */

  input,
  textarea,
  button {
    font-size: 16px !important;
  }

  /* — EXHIBITION PROGRESS — */

  .exh-progress {
    top: 80px;
  }

  /* — HOMEPAGE THREADS PREVIEW — */

  .home-threads {
    padding: 80px 20px 80px;
  }

  .home-threads-header {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
  }

  .home-threads-lead {
    text-align: left;
    font-size: 0.95rem;
  }

  /* — DROP CAP — */

  .drop-cap::first-letter {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader {
    animation: none !important;
    transition: opacity 0.4s ease !important;
  }

  .site-loader.loaded {
    opacity: 0 !important;
  }

  .loader-logo,
  .loader-bar,
  .loader-bar-fill {
    animation: none !important;
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important;
    transform: none !important;
    width: 100% !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
  }
}

