/*
Theme Name: Archivo Lipschütz — Papel antiguo
Theme URI: https://www.alejandrolipschutz.cl
Author: IXA
Description: Tema WordPress de una sola página para el Archivo Lipschütz.
Version: 1.1.1
Text Domain: archivo-lipschutz
*/

:root {
  --paper: #f6f1dc;
  --paper-deep: #eadf9b;
  --ink: #30253b;
  --muted: #756a72;
  --line: rgba(87, 60, 104, 0.24);
  --red: #68447d;
  --blue: #68447d;
  --yellow: #dfcf7a;
  --display: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --typewriter: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 211, 111, .18), transparent 26%),
    linear-gradient(90deg, rgba(104, 68, 125, .025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 6px 6px, auto;
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

.site-header {
  position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; padding: 0 4vw; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--typewriter); font-size: 16px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid currentColor; font-family: var(--typewriter); font-size: 16px; font-weight: 700; }
.top-nav { display: flex; gap: clamp(18px, 3vw, 44px); font-family: var(--typewriter); font-size: 16px; letter-spacing: .04em; }
.top-nav a, .researcher-links a, footer a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.top-nav a:hover, .researcher-links a:hover, footer a:hover { text-decoration-line: underline; }

.hero { display: grid; min-height: calc(100vh - 74px); grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(68px, 8vw, 130px) 7vw clamp(60px, 8vw, 110px) 4vw; }
.eyebrow, .section-index, .researcher-kicker { margin: 0; color: var(--red); font-family: var(--typewriter); font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 26px 0 32px; font-family: var(--display); font-size: clamp(68px, 10.4vw, 160px); font-weight: 400; letter-spacing: -.065em; line-height: .77; }
.hero h1 em { color: var(--blue); font-weight: 400; }
.hero-deck { max-width: 620px; margin: 0; font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.18; }
.hero-link { display: flex; align-items: center; justify-content: space-between; width: min(100%, 320px); margin-top: 54px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hero-link span { font-size: 20px; transition: transform 180ms ease; }
.hero-link:hover span { transform: translateY(4px); }

.hero-archive { position: relative; overflow: hidden; padding: 30px 54px 48px 30px; border-left: 1px solid var(--line); background: #e4d47f; color: var(--ink); }
.archive-meta { display: flex; justify-content: space-between; gap: 20px; font-family: var(--typewriter); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.archive-image { margin: clamp(58px, 8vh, 110px) 0 0; }
.archive-image img { width: 100%; height: auto; border: 1px solid rgba(87, 60, 104, .22); object-fit: contain; object-position: center; box-shadow: 0 24px 55px rgba(63, 45, 72, .22); }
.archive-image figcaption { max-width: 340px; margin-top: 18px; color: #594963; font-family: var(--typewriter); font-size: 16px; line-height: 1.5; }
.vertical-date { position: absolute; right: 16px; bottom: 38px; margin: 0; color: #715d79; font-family: var(--typewriter); font-size: 16px; letter-spacing: .14em; writing-mode: vertical-rl; }

.manifesto { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; padding: clamp(90px, 12vw, 180px) 8vw; border-bottom: 1px solid var(--line); }
.manifesto > div { max-width: 960px; }
.manifesto h2, .section-heading h2, .thread h2, .researcher h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.045em; }
.manifesto h2 { max-width: 800px; font-size: clamp(42px, 6vw, 88px); line-height: .98; }
.manifesto div > p { max-width: 760px; margin: 42px 0 0 auto; font-size: clamp(18px, 1.7vw, 25px); line-height: 1.55; }

.studies { padding: 110px 4vw 0; }
.section-heading { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; padding: 0 4vw 80px; }
.section-heading h2 { font-size: clamp(48px, 7vw, 104px); line-height: .92; }
.split-carousel { margin: 0 4vw clamp(90px, 10vw, 150px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.split-stage { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); min-height: 540px; }
.split-image { position: relative; overflow: hidden; min-height: 540px; border-right: 1px solid var(--line); background: #d8c96f; }
.split-image::before,
.split-image::after { position: absolute; z-index: 2; width: 48px; height: 48px; border-color: var(--paper-deep); border-style: solid; content: ""; pointer-events: none; }
.split-image::before { top: 20px; left: 20px; border-width: 1px 0 0 1px; }
.split-image::after { right: 20px; bottom: 20px; border-width: 0 1px 1px 0; }
.split-image img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; object-position: center; filter: sepia(.15) saturate(.7) contrast(1.03); transition: transform 320ms ease, filter 320ms ease; }
.split-image:hover img { filter: sepia(.05) saturate(.86) contrast(1.05); transform: scale(1.012); }
.split-section, .split-status { position: absolute; z-index: 3; padding: 10px 13px; font-family: var(--typewriter); font-size: 16px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.split-section { top: 32px; left: 32px; background: var(--paper-deep); }
.split-status { right: 32px; bottom: 32px; background: var(--ink); color: var(--paper); }
.split-copy { display: flex; flex-direction: column; min-width: 0; padding: clamp(35px, 4vw, 66px); background: rgba(250, 246, 230, .68); }
.split-kicker { margin: 0; color: var(--red); font-family: var(--typewriter); font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.split-number { margin: 13px 0 5px; color: #b58a19; font-family: var(--display); font-size: clamp(90px, 10vw, 150px); font-style: italic; line-height: .8; }
.split-copy h3 { margin: 20px 0 0; font-family: var(--display); font-size: clamp(36px, 4vw, 62px); font-weight: 400; letter-spacing: -.045em; line-height: .96; }
.split-lead { margin: 26px 0; font-size: 16px; line-height: 1.65; }
.split-meta { margin: auto 0 28px; border-top: 1px solid var(--line); }
.split-meta div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.split-meta dt, .split-meta dd { margin: 0; font-family: var(--typewriter); font-size: 16px; line-height: 1.45; }
.split-meta dt { color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.split-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; background: var(--paper-deep); font-family: var(--typewriter); font-size: 16px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.split-cta span { font-size: 20px; transition: transform 180ms ease; }
.split-cta:hover span { transform: translateX(5px); }
.split-navigation { display: grid; grid-template-columns: 62px minmax(0, 1fr) 62px; align-items: stretch; border-top: 1px solid var(--ink); }
.split-arrow { cursor: pointer; border: 0; background: transparent; color: var(--ink); font-family: var(--display); font-size: 30px; transition: background 180ms ease, color 180ms ease; }
.split-arrow:hover { background: var(--ink); color: var(--paper); }
.split-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.split-thumbnail { display: grid; cursor: pointer; min-width: 0; grid-template-columns: 114px 48px 1fr; gap: 12px; align-items: center; padding: 13px; border: 0; border-right: 1px solid var(--line); background: rgba(250, 246, 230, .45); color: var(--ink); text-align: left; transition: background 180ms ease, box-shadow 180ms ease; }
.split-thumbnail:last-child { border-right: 0; }
.split-thumbnail:hover, .split-thumbnail.is-active { background: var(--paper-deep); }
.split-thumbnail.is-active { box-shadow: inset 0 -4px 0 var(--red); }
.split-thumbnail img { width: 114px; height: 94px; object-fit: cover; filter: grayscale(1) sepia(.12) contrast(1.05); }
.thumbnail-number { color: var(--red); font-family: var(--display); font-size: 26px; }
.thumbnail-title { overflow: hidden; font-family: var(--typewriter); font-size: 16px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.entries-label { display: flex; justify-content: space-between; gap: 30px; margin: 0 4vw; padding: 15px 0; border-top: 1px solid var(--ink); font-family: var(--typewriter); font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.study-list { border-top: 1px solid var(--ink); }
.study { --study-accent: var(--blue); display: grid; grid-template-columns: .38fr 1.45fr .7fr; gap: clamp(28px, 4vw, 70px); padding: clamp(70px, 8vw, 120px) 4vw; border-bottom: 1px solid var(--line); scroll-margin-top: 74px; }
.study--rust { --study-accent: #815687; }
.study--olive { --study-accent: #6f567f; }
.study--plum { --study-accent: #563968; }
.study-number { color: var(--study-accent); font-family: var(--display); font-size: clamp(56px, 7vw, 104px); font-style: italic; line-height: .8; }
.study-meta { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--typewriter); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.study h3 { max-width: 880px; margin: 38px 0 12px; font-family: var(--display); font-size: clamp(40px, 4.8vw, 74px); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.study-subtitle { max-width: 760px; margin: 0; color: var(--study-accent); font-family: var(--display); font-size: clamp(18px, 1.8vw, 26px); font-style: italic; line-height: 1.25; }
.study-lead { max-width: 690px; margin: 38px 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; }
.study details { max-width: 720px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.study summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.study summary::-webkit-details-marker { display: none; }
.study summary span { color: var(--study-accent); font-family: var(--display); font-size: 24px; transition: transform 180ms ease; }
.study details[open] summary span { transform: rotate(45deg); }
.study-details { padding: 12px 0 28px; }
.study-details > p { margin: 0; color: #39362f; font-size: 16px; line-height: 1.7; }
.study-details blockquote { margin: 26px 0 0; padding-left: 22px; border-left: 3px solid var(--study-accent); font-family: var(--display); font-size: 21px; font-style: italic; line-height: 1.35; }
.letters { margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.letters h4 { margin: 0 0 12px; color: var(--study-accent); font-family: var(--typewriter); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.letters ul { margin: 0; padding: 0; list-style: none; }
.letters li { border-top: 1px solid var(--line); }
.letters li:last-child { border-bottom: 1px solid var(--line); }
.letters a { display: flex; justify-content: space-between; gap: 18px; padding: 13px 2px; font-family: var(--typewriter); font-size: 16px; }
.letters a:hover { color: var(--study-accent); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 8px 12px; border: 1px solid var(--line); font-family: var(--typewriter); font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.study-cover { align-self: start; margin: 0; }
.cover-frame { position: relative; overflow: hidden; padding: 7%; background: var(--study-accent); box-shadow: 0 24px 50px rgba(24, 23, 19, .16); transform: rotate(1.2deg); transition: transform 260ms ease, box-shadow 260ms ease; }
.study:nth-child(even) .cover-frame { transform: rotate(-1.2deg); }
.cover-frame:hover { box-shadow: 0 30px 65px rgba(24, 23, 19, .23); transform: rotate(0deg) translateY(-4px); }
.cover-link { display: block; }
.cover-frame img { width: 100%; aspect-ratio: .75; object-fit: cover; object-position: top; filter: saturate(.55) contrast(1.03); }
.study-cover figcaption { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.5; text-transform: uppercase; }

.gallery { overflow: hidden; padding: clamp(90px, 11vw, 160px) 0 clamp(85px, 10vw, 145px); border-bottom: 1px solid var(--line); background: rgba(250, 246, 230, .46); }
.gallery-heading { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; padding: 0 8vw clamp(55px, 7vw, 92px); }
.gallery-heading > div { max-width: 980px; }
.gallery-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(54px, 8vw, 118px); font-weight: 400; letter-spacing: -.055em; line-height: .86; }
.gallery-heading > div > p { max-width: 680px; margin: 32px 0 0 auto; font-family: var(--display); font-size: clamp(18px, 1.8vw, 25px); line-height: 1.48; }
.gallery-viewport { overflow-x: auto; padding: 15px 0 28px; scroll-behavior: smooth; scrollbar-width: none; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track { display: grid; width: max-content; grid-auto-flow: column; grid-auto-columns: clamp(245px, 25vw, 390px); gap: clamp(22px, 3vw, 54px); align-items: start; padding: 0 10vw; }
.gallery-card { min-width: 0; cursor: pointer; outline: none; transition: transform 260ms ease, opacity 260ms ease; }
.gallery-card:nth-child(2) { margin-top: 72px; }
.gallery-card:nth-child(3) { margin-top: 18px; }
.gallery-card:nth-child(4) { margin-top: 98px; }
.gallery-card:nth-child(5) { margin-top: 38px; }
.gallery-card figure { overflow: hidden; margin: 0; padding: 10px; border: 1px solid var(--line); background: var(--paper-deep); box-shadow: 0 24px 48px rgba(48, 37, 59, .16); transform: rotate(-.8deg); }
.gallery-card:nth-child(even) figure { transform: rotate(.8deg); }
.gallery-card img { width: 100%; aspect-ratio: 4 / 5; background: #ddd2a1; object-fit: contain; filter: sepia(.12) saturate(.82) contrast(1.04); transition: filter 240ms ease, transform 240ms ease; }
.gallery-card:hover, .gallery-card:focus { transform: translateY(-8px); }
.gallery-card:hover img, .gallery-card:focus img { filter: sepia(.03) saturate(.95) contrast(1.06); transform: scale(1.012); }
.gallery-card-caption { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: baseline; padding: 22px 4px 0; border-bottom: 1px solid var(--line); }
.gallery-card-caption span { color: var(--red); font-family: var(--typewriter); font-size: 16px; font-weight: 700; }
.gallery-card-caption h3 { margin: 0 0 18px; font-family: var(--display); font-size: clamp(27px, 2.6vw, 42px); font-weight: 400; letter-spacing: -.035em; line-height: .98; }
.gallery-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin: 55px 8vw 0; font-family: var(--typewriter); font-size: 16px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.gallery-arrows { display: flex; border: 1px solid var(--ink); }
.gallery-arrows button { width: 56px; height: 50px; cursor: pointer; border: 0; background: transparent; color: var(--ink); font-size: 24px; transition: background 180ms ease, color 180ms ease; }
.gallery-arrows button + button { border-left: 1px solid var(--ink); }
.gallery-arrows button:hover, .gallery-arrows button:focus { background: var(--ink); color: var(--paper); }
.gallery-dots { display: flex; justify-content: center; gap: 10px; }
.gallery-dot { width: 11px; height: 11px; padding: 0; cursor: pointer; border: 1px solid var(--ink); border-radius: 50%; background: transparent; }
.gallery-dot.is-active { background: var(--ink); }

/* Visor modal de carpetas y subcarpetas de Galería */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 36px);
  background: rgba(31, 23, 39, 0.86);
  backdrop-filter: blur(6px);
}
.gallery-modal.is-open { display: flex; }
.gallery-modal-dialog {
  display: flex;
  flex-direction: column;
  width: min(1160px, 100%);
  max-height: 92vh;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
}
.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.gallery-modal-title-group { display: flex; flex-direction: column; gap: 4px; }
.gallery-modal-kicker {
  margin: 0;
  color: var(--red);
  font-family: var(--typewriter);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gallery-modal-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
}
.gallery-modal-actions { display: flex; align-items: center; gap: 10px; }
.gallery-modal-btn {
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--typewriter);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}
.gallery-modal-btn:hover, .gallery-modal-btn:focus { background: var(--ink); color: var(--paper); }
.gallery-modal-subfolders {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(234, 223, 155, .36);
}
.gallery-modal-subfolders[hidden] { display: none; }
.gallery-subfolder-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--typewriter);
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}
.gallery-subfolder-btn:hover, .gallery-subfolder-btn:focus { background: var(--ink); color: var(--paper); }
.gallery-subfolder-btn span { color: var(--red); }
.gallery-subfolder-btn:hover span, .gallery-subfolder-btn:focus span { color: var(--paper-deep); }
.gallery-modal-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  min-height: 0;
  flex: 1;
  padding: 20px 16px;
  overflow: auto;
}
.gallery-modal-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 14px;
}
.gallery-modal-stage img {
  max-width: 100%;
  max-height: 58vh;
  border: 1px solid var(--line);
  background: #ddd2a1;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(48, 37, 59, .18);
}
.gallery-modal-caption {
  max-width: 780px;
  margin: 0;
  text-align: center;
  font-family: var(--typewriter);
  font-size: 15px;
  line-height: 1.45;
}
.gallery-modal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--line);
  background: rgba(250, 246, 230, .75);
}
.gallery-modal-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 76px;
  padding: 3px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  opacity: .68;
  transition: opacity 180ms ease, border-color 180ms ease;
}
.gallery-modal-thumb.is-active, .gallery-modal-thumb:hover { opacity: 1; border-color: var(--ink); }
.gallery-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.thread { display: grid; grid-template-columns: 1fr 1.75fr; gap: 8vw; padding: clamp(100px, 13vw, 190px) 8vw; background: #3f3050; color: #f6f1dc; }
.thread-intro { position: sticky; top: 110px; align-self: start; }
.thread h2 { margin-top: 28px; font-size: clamp(50px, 6vw, 86px); line-height: .95; }
.thread-intro > p:last-child { max-width: 520px; margin-top: 34px; color: #c9c2b6; font-family: var(--display); font-size: 19px; line-height: 1.5; }
.thread-steps { margin: 0; padding: 0; list-style: none; }
.thread-steps li { display: grid; grid-template-columns: 70px .8fr 1.2fr; gap: 26px; align-items: baseline; padding: 38px 0; border-top: 1px solid rgba(241, 238, 231, .22); }
.thread-steps li:last-child { border-bottom: 1px solid rgba(241, 238, 231, .22); }
.thread-steps span { color: #ead87b; font-family: var(--typewriter); font-size: 24px; }
.thread-steps strong { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); font-weight: 400; }
.thread-steps p { margin: 0; color: #bcb4a8; font-size: 16px; line-height: 1.55; }

.researcher { padding: clamp(100px, 13vw, 190px) 8vw; background: var(--paper-deep); }
.researcher-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10vw; margin-top: 50px; }
.researcher-identity { min-width: 0; }
.researcher-portrait { width: min(100%, 470px); margin: 0 0 44px; padding: 12px 12px 10px; border: 1px solid var(--line); background: rgba(246, 241, 220, .22); box-shadow: 0 22px 46px rgba(48, 37, 59, .14); transform: rotate(-1deg); }
.researcher-portrait img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center top; filter: contrast(1.05) sepia(.08); mix-blend-mode: multiply; }
.researcher-portrait figcaption { margin-top: 10px; color: var(--muted); font-family: var(--typewriter); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.researcher h2 { max-width: 700px; font-size: clamp(52px, 7vw, 100px); line-height: .9; }
.researcher-grid > div > p:not(.project-note) { margin: 0 0 1.1em; font-family: var(--display); font-size: 16px; line-height: 1.6; }
.project-note { margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.researcher-links { display: flex; flex-direction: column; gap: 13px; font-size: 16px; }

.documentary { display: grid; grid-template-columns: .75fr 1.5fr; gap: clamp(50px, 8vw, 130px); padding: clamp(90px, 12vw, 170px) 8vw; border-top: 1px solid #000; background: #090909; color: var(--paper); }
.documentary .section-index { color: var(--paper-deep); }
.documentary-copy h2 { margin: 25px 0 28px; font-family: var(--display); font-size: clamp(52px, 7vw, 104px); font-weight: 400; letter-spacing: -.045em; line-height: .92; }
.documentary-copy > p:last-child { max-width: 470px; margin: 0; color: #d7d0c2; font-family: var(--display); font-size: 20px; line-height: 1.5; }
.documentary-video { position: relative; overflow: hidden; align-self: start; aspect-ratio: 16 / 9; border: 1px solid #423b45; background: #000; box-shadow: 0 28px 58px rgba(0, 0, 0, .42); }
.documentary-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; padding: 42px 4vw; background: #30253b; color: #f6f1dc; font-family: var(--typewriter); font-size: 16px; }
footer p { margin: 0; color: #aaa398; text-align: center; }
footer > a:last-child { text-transform: uppercase; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-archive { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; border-top: 1px solid var(--line); border-left: 0; }
  .archive-image { margin-top: 0; }
  .study { grid-template-columns: .25fr 1.2fr .55fr; }
  .study-meta { align-items: flex-start; flex-direction: column; }
  .thread-steps li { grid-template-columns: 50px 1fr; }
  .thread-steps p { grid-column: 2; }
}

@media (max-width: 720px) {
  .site-header { min-height: 64px; }
  .top-nav a:not(:first-child) { display: none; }
  .hero { min-height: auto; }
  .hero-copy { min-height: calc(100svh - 64px); padding: 70px 6vw 60px; }
  .hero h1 { font-size: clamp(58px, 19vw, 96px); }
  .hero-archive { display: block; padding: 28px 50px 38px 6vw; }
  .archive-image { margin-top: 46px; }
  .manifesto, .section-heading, .thread, .researcher-grid, .documentary { grid-template-columns: 1fr; }
  .manifesto { gap: 34px; padding-right: 6vw; padding-left: 6vw; }
  .manifesto div > p { margin-left: 0; }
  .studies { padding: 80px 0 0; }
  .section-heading { gap: 28px; padding: 0 6vw 60px; }
  .split-carousel { margin-right: 6vw; margin-left: 6vw; }
  .split-stage { grid-template-columns: 1fr; min-height: 0; }
  .split-image { min-height: 58vw; border-right: 0; border-bottom: 1px solid var(--line); }
  .split-image img { min-height: 58vw; }
  .split-copy { min-height: 520px; }
  .split-navigation { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .split-thumbnails { overflow-x: auto; grid-template-columns: repeat(4, minmax(300px, 1fr)); scrollbar-width: thin; }
  .split-thumbnail { grid-template-columns: 91px 36px 1fr; }
  .split-thumbnail img { width: 91px; height: 81px; }
  .entries-label { align-items: flex-start; flex-direction: column; margin-right: 6vw; margin-left: 6vw; }
  .study { grid-template-columns: 1fr; gap: 34px; padding: 72px 6vw; scroll-margin-top: 64px; }
  .study-number { font-size: 64px; }
  .study-cover { width: min(74vw, 360px); margin: 12px auto 0; }
  .gallery-heading { grid-template-columns: 1fr; gap: 28px; padding-right: 6vw; padding-left: 6vw; }
  .gallery-heading > div > p { margin-left: 0; }
  .gallery-track { grid-auto-columns: min(76vw, 330px); gap: 28px; padding-right: 12vw; padding-left: 12vw; }
  .gallery-card:nth-child(n) { margin-top: 0; }
  .gallery-controls { grid-template-columns: auto 1fr; margin-right: 6vw; margin-left: 6vw; }
  .gallery-controls > span { display: none; }
  .gallery-modal-body { grid-template-columns: 40px minmax(0, 1fr) 40px; padding: 14px 8px; }
  .thread { gap: 60px; padding-right: 6vw; padding-left: 6vw; }
  .thread-intro { position: static; }
  .thread-steps li { padding: 30px 0; }
  .researcher { padding-right: 6vw; padding-left: 6vw; }
  .researcher-grid { gap: 48px; }
  .researcher-portrait { width: min(88vw, 470px); }
  .documentary { gap: 46px; padding-right: 6vw; padding-left: 6vw; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
