@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@500;600;700;800&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --ink: #26241f;
  --paper: #e8e1d2;
  --paper-dark: #d3cbb8;
  --paper-light: #f3eee3;
  --red: #9b3424;
  --blue: #233f70;
  --line: 1px solid #57534a;
  --mono: "IBM Plex Mono", monospace;
  --serif: "PT Serif", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(76, 68, 52, .055) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 28px;
  font-family: var(--serif);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 13px clamp(20px, 5vw, 78px);
  background: rgba(232, 225, 210, .94);
  border-bottom: var(--line);
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "ЦЕНТРАЛЬНЫЙ АРХИВ / ФОНД 1909—2007";
  position: absolute;
  top: 6px;
  left: clamp(20px, 5vw, 78px);
  color: #777165;
  font: 500 .52rem var(--mono);
  letter-spacing: .08em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 9px;
  font: 600 .72rem var(--mono);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand::before {
  content: "ЛВ";
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 .85rem var(--serif);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 38px);
  padding-top: 8px;
}

.main-nav a {
  position: relative;
  font: 600 .66rem var(--mono);
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid currentColor;
  font: 600 .65rem var(--mono);
  text-transform: uppercase;
}

.lev,
.lev-character {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 .06em;
  padding: .02em .18em .08em;
  color: #fff7df;
  background: #273f70;
  border: 1px solid #151f35;
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-size: 1.05em;
  font-style: italic;
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.02em;
  text-shadow: 2px 2px 0 #a63020;
  transform: rotate(-3deg) skew(-5deg);
  box-shadow: 3px 3px 0 #a63020;
}

.brand .lev {
  font-size: 1.2em;
}

.ticker {
  overflow: hidden;
  padding: 8px 0;
  color: #d9d2c3;
  background: #24231f;
  border-bottom: var(--line);
  font: 500 .66rem/1 var(--mono);
  letter-spacing: .09em;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  min-width: 200%;
  animation: ticker 28s linear infinite;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  min-height: calc(100vh - 100px);
  border-bottom: var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 9vw, 140px) clamp(24px, 7vw, 110px);
  border-right: var(--line);
}

.eyebrow {
  margin: 0 0 24px;
  font: 500 .68rem var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  padding: 8px 10px;
  color: var(--red);
  border: 1px solid var(--red);
  transform: rotate(-1deg);
}

.display-title {
  margin: 0;
  font: 400 clamp(6rem, 15vw, 14rem)/.72 var(--serif);
  letter-spacing: -.08em;
}

.display-title .word {
  display: inline-block;
}

.display-title .lev-character {
  padding: .03em .12em .09em;
  color: #fff4d8;
  background: #233f70;
  font-size: 1em;
  box-shadow: .06em .06em 0 #9b3424;
  transform: rotate(-4deg) skew(-6deg);
}

.hero-lead {
  max-width: 700px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 12px 17px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--ink);
  font: 600 .68rem var(--mono);
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease, transform .18s ease;
  cursor: pointer;
}

.button:hover {
  color: #fff;
  background: var(--red);
  transform: translateY(-2px);
}

.button.dark {
  color: #fff;
  background: #25241f;
}

.button.ghost {
  background: transparent;
}

.hero-portrait {
  position: relative;
  min-height: 680px;
  padding: clamp(24px, 4vw, 58px);
  background: var(--paper-dark);
}

.hero-portrait img {
  width: 100%;
  height: calc(100% - 64px);
  object-fit: cover;
  filter: grayscale(1) sepia(.25) contrast(1.08);
}

.portrait-label {
  position: absolute;
  right: clamp(24px, 4vw, 58px);
  bottom: 25px;
  left: clamp(24px, 4vw, 58px);
  padding-top: 13px;
  border-top: 1px solid #57534a;
  font: 500 .78rem var(--mono);
}

.portrait-label > span {
  display: block;
  margin-bottom: 5px;
  color: #797266;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section {
  padding: clamp(70px, 9vw, 135px) clamp(22px, 7vw, 110px);
  border-bottom: var(--line);
}

.section.dark {
  color: #e8e1d5;
  background: #22221f;
}

.section.red {
  background: #cfc7b5;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid currentColor;
}

.section-title,
.page-title {
  max-width: 1100px;
  margin: 0;
  font: 400 clamp(3.1rem, 7vw, 7rem)/.92 var(--serif);
  letter-spacing: -.055em;
}

.section-note {
  max-width: 380px;
  margin: 0;
  font: 400 .76rem/1.6 var(--mono);
}

.manifesto {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(45px, 9vw, 150px);
}

.manifesto-copy {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.fact-stack {
  border-top: 1px solid #777166;
}

.fact {
  display: grid;
  grid-template-columns: 115px 1fr;
  align-items: center;
  gap: 20px;
  padding: 21px 0;
  border-bottom: 1px solid #777166;
  font-size: .9rem;
}

.fact strong {
  color: var(--red);
  font: 400 2.5rem var(--serif);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #5a5851;
  border: 1px solid #5a5851;
}

.feature-card {
  position: relative;
  min-height: 360px;
  padding: 30px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  overflow: hidden;
  transition: background .2s ease;
}

.feature-card:hover {
  background: #f3eee3;
}

.feature-card:nth-child(2) {
  color: #ebe3d7;
  background:
    linear-gradient(rgba(24, 12, 8, .5), rgba(24, 12, 8, .82)),
    url("new_materials/images/hell/Tarsis.png") center/cover;
}

.feature-card:nth-child(3) {
  background: #d8d2ff;
}

.feature-number {
  color: var(--red);
  font: 500 .68rem var(--mono);
}

.feature-card h3 {
  margin: 100px 0 16px;
  font: 400 clamp(2rem, 3.4vw, 3.7rem)/.95 var(--serif);
  letter-spacing: -.045em;
}

.feature-card p {
  max-width: 34ch;
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
}

.page-hero {
  position: relative;
  padding: clamp(75px, 11vw, 155px) clamp(22px, 7vw, 110px) clamp(60px, 8vw, 105px);
  border-bottom: var(--line);
  overflow: hidden;
}

.page-hero::after {
  content: attr(data-stamp);
  position: absolute;
  right: 3vw;
  bottom: 8%;
  color: var(--red);
  border: 4px double currentColor;
  padding: .14em .2em;
  font: 600 clamp(2.5rem, 8vw, 8rem)/.8 var(--mono);
  opacity: .14;
  transform: rotate(-8deg);
}

.page-intro {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 32px 0 0;
  font-size: clamp(1.08rem, 1.7vw, 1.4rem);
  line-height: 1.55;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: var(--red);
}

.bio-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 930px);
  justify-content: center;
  gap: clamp(45px, 8vw, 125px);
  padding: clamp(65px, 9vw, 125px) clamp(22px, 6vw, 95px);
}

.bio-index {
  position: sticky;
  top: 105px;
  align-self: start;
  padding: 22px;
  border: 1px solid #777166;
}

.bio-index p {
  margin: 0 0 14px;
  color: var(--red);
  font: 600 .64rem var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bio-index a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #aaa393;
  font: 500 .7rem var(--mono);
  text-decoration: none;
}

.bio-index a:hover {
  color: var(--red);
}

.timeline {
  counter-reset: record;
}

.timeline-item {
  counter-increment: record;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  margin-bottom: 70px;
}

.timeline-year {
  position: sticky;
  top: 105px;
  align-self: start;
  padding: 11px 8px;
  color: var(--red);
  border: 1px solid var(--red);
  font: 600 .74rem var(--mono);
  text-align: center;
  transform: rotate(-1deg);
}

.timeline-card {
  position: relative;
  padding: clamp(25px, 4vw, 48px);
  background: rgba(243, 238, 227, .62);
  border: 1px solid #777166;
}

.timeline-card::before {
  content: "ЛИСТ " counter(record, decimal-leading-zero);
  display: block;
  margin-bottom: 28px;
  color: #827b6e;
  font: 500 .62rem var(--mono);
  letter-spacing: .1em;
}

.timeline-card h2 {
  margin: 0 0 22px;
  font: 400 clamp(2rem, 4vw, 4rem)/.95 var(--serif);
  letter-spacing: -.04em;
}

.timeline-card p,
.prose p,
.prose li {
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.68;
}

.timeline-card blockquote,
.quote {
  margin: 30px 0;
  padding: 23px 25px;
  color: #283f6c;
  background: #d9d2bd;
  border-left: 3px solid #283f6c;
  font-style: italic;
  line-height: 1.55;
}

.bio-media {
  margin: 30px 0 0;
  padding: 15px;
  background: #cec6b3;
  transform: rotate(-.5deg);
}

.bio-media:nth-of-type(even) {
  transform: rotate(.7deg);
}

.bio-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  filter: grayscale(.7) sepia(.22) contrast(1.05);
}

.bio-media figcaption {
  padding-top: 12px;
  font: 400 .63rem/1.45 var(--mono);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 28px clamp(22px, 5vw, 78px);
  color: #c7c0b4;
  background: #22221f;
  font: 400 .66rem var(--mono);
}

.footer p {
  margin: 0;
}

/* Hell: an infernal branch of the same archive */
.hell-page {
  --ink: #eee4d5;
  --paper: #130d0a;
  --paper-dark: #20110b;
  --paper-light: #29130d;
  --red: #ff3a18;
  --blue: #871b0d;
  color: #eee4d5;
  background:
    radial-gradient(circle at 50% 0, rgba(166, 36, 9, .28), transparent 32rem),
    linear-gradient(rgba(255, 82, 27, .035) 1px, transparent 1px),
    #100b09;
  background-size: auto, 100% 28px, auto;
}

.hell-page::before {
  opacity: .2;
  mix-blend-mode: screen;
}

.hell-page .site-header {
  color: #f1e5d7;
  background: rgba(12, 8, 7, .9);
  border-color: #52271c;
}

.hell-page .site-header::before {
  content: "АРХИВ ТАРСИСА / ДОПУСК: ОГРАНИЧЕН";
  color: #a74b35;
}

.hell-page .brand::before {
  color: #ff4a27;
  border-color: #9c321d;
}

.hell-page .lev,
.hell-page .lev-character {
  color: #130805;
  background: #ff4b21;
  border-color: #ffb18d;
  text-shadow: 2px 2px 0 #ffb000;
  box-shadow: 3px 3px 0 #790f05, 0 0 18px rgba(255, 72, 23, .65);
}

.hell-page .page-hero {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(90deg, rgba(10, 5, 3, .98), rgba(10, 5, 3, .45) 68%, rgba(10, 5, 3, .7)),
    url("new_materials/images/hell/redemption_battle.png") center/cover;
  border-color: #592316;
}

.hell-page .page-hero::after {
  color: #ff3a18;
  opacity: .45;
  filter: drop-shadow(0 0 16px #ff3a18);
}

.hell-page .eyebrow span {
  color: #ff7955;
  border-color: #d74324;
}

.hell-page .page-title {
  max-width: 900px;
  font-size: clamp(4rem, 10vw, 10rem);
}

.hell-page .page-intro {
  color: #c9b7a9;
}

.hell-lead-image {
  position: relative;
  min-height: min(90vh, 980px);
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid #592316;
  background: #080504;
}

.hell-lead-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 4, 3, .85), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 47, 5, .24), transparent 45%);
  pointer-events: none;
}

.hell-lead-image img {
  width: 100%;
  height: min(90vh, 980px);
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(.78) contrast(1.13) brightness(.78);
}

.hell-lead-image figcaption {
  position: absolute;
  right: clamp(22px, 6vw, 95px);
  bottom: 38px;
  z-index: 2;
  padding: 10px 14px;
  color: #f7c1aa;
  background: rgba(9, 5, 4, .76);
  border: 1px solid #a53b22;
  font: 500 .67rem var(--mono);
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hell-page .section.red {
  background:
    radial-gradient(circle at 15% 10%, rgba(187, 43, 12, .22), transparent 25rem),
    #120c09;
  border-color: #592316;
}

.hell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #542619;
  border: 1px solid #542619;
}

.hell-card {
  position: relative;
  padding: clamp(30px, 4vw, 52px);
  color: #d9cec2;
  background:
    linear-gradient(145deg, rgba(92, 28, 13, .14), transparent 40%),
    #19110e;
}

.hell-card::before {
  content: "ДОКУМЕНТ " counter(hell-record, decimal-leading-zero);
  display: block;
  margin-bottom: 35px;
  color: #a14932;
  font: 500 .62rem var(--mono);
  letter-spacing: .1em;
}

.hell-grid {
  counter-reset: hell-record;
}

.hell-card {
  counter-increment: hell-record;
}

.hell-card--wide {
  grid-column: 1 / -1;
}

.hell-card h2 {
  margin: 0 0 25px;
  color: #f2e7dc;
  font: 400 clamp(2.2rem, 4.6vw, 4.8rem)/.94 var(--serif);
  letter-spacing: -.045em;
}

.hell-card-image {
  margin: 32px 0 0;
  background: #0e0907;
  border: 1px solid #66301f;
}

.uprising-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hell-card-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.72) contrast(1.15) brightness(.85);
}

.hell-card-image figcaption,
.hell-archive-item figcaption {
  padding: 12px 14px;
  color: #cbb8aa;
  background: #100a08;
  border-top: 1px solid #66301f;
  font: 400 .64rem/1.45 var(--mono);
}

.hell-page .quote {
  color: #ffc2a4;
  background: #2d130d;
  border-left-color: #ff4a27;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 30px;
  background: #682613;
}

.stat {
  padding: 22px 12px;
  color: #c7b3a5;
  background: #24120d;
  text-align: center;
  font: 400 .64rem var(--mono);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: #ff512c;
  font: 400 clamp(2rem, 4vw, 4rem) var(--serif);
  text-shadow: 0 0 18px rgba(255, 62, 17, .35);
}

.hell-archive-section {
  background: #080504;
  border-color: #592316;
}

.hell-archive {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.hell-archive-item {
  grid-column: span 2;
  margin: 0;
  background: #100a08;
  border: 1px solid #66301f;
}

.hell-archive-item--wide {
  grid-column: span 3;
}

.hell-archive-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.7) contrast(1.12) brightness(.82);
  transition: filter .25s ease;
}

.hell-archive-item:hover img {
  filter: saturate(1) contrast(1.14) brightness(.94);
}

.hell-archive-item--portrait img {
  aspect-ratio: 3 / 4;
}

.hell-page .section.dark {
  color: #e8d8ca;
  background:
    linear-gradient(90deg, #1b0c08, #0e0806);
  border-color: #592316;
}

.document-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 28px;
  color: #d8c8ba;
  background: rgba(8, 5, 4, .7);
  border: 1px solid #6c2c1b;
}

.document-card h3 {
  margin: 0 0 9px;
  font: 400 1.3rem var(--serif);
}

.document-card p {
  margin: 0;
  color: #9c8b80;
}

.hell-page .button {
  color: #ffb99e;
  background: #35150e;
  border-color: #a63820;
}

.hell-page .footer {
  border-top: 1px solid #592316;
  background: #080504;
}

/* Gallery: playful evidence wall */
.gallery-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 91, 149, .16), transparent 25rem),
    radial-gradient(circle at 90% 35%, rgba(65, 79, 255, .15), transparent 28rem),
    linear-gradient(rgba(49, 42, 29, .045) 1px, transparent 1px),
    #eee6d5;
  background-size: auto, auto, 100% 28px, auto;
}

.gallery-page .site-header {
  background: rgba(238, 230, 213, .9);
}

.gallery-page .page-hero {
  min-height: 520px;
  background:
    linear-gradient(110deg, transparent 55%, rgba(255, 68, 139, .2)),
    #d9ff48;
}

.gallery-page .page-hero::after {
  color: #283f70;
  opacity: .55;
  border: 0;
  font-family: Impact, sans-serif;
  transform: rotate(8deg);
}

.gallery-page .page-title {
  max-width: 950px;
  font-family: var(--sans);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.08em;
}

.gallery-page .section {
  padding-inline: clamp(16px, 4vw, 65px);
}

.gallery-tools {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -20px 0 52px;
  padding: 14px;
  background: rgba(238, 230, 213, .88);
  border: 1px solid #4b4840;
  backdrop-filter: blur(12px);
  transform: rotate(-.3deg);
}

.filter-button {
  padding: 10px 13px;
  color: #25231f;
  background: #f7f0e2;
  border: 1px solid #25231f;
  font: 700 .65rem var(--sans);
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}

.filter-button:hover {
  transform: rotate(-2deg) translateY(-2px);
}

.filter-button.is-active {
  color: #fff;
  background: #2d43ca;
  box-shadow: 3px 3px 0 #ff4e94;
  transform: rotate(-2deg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
}

.gallery-item {
  position: relative;
  grid-column: span 3;
  width: 100%;
  margin: 0;
  padding: 10px 10px 0;
  background: #f7f1e7;
  box-shadow: 5px 8px 18px rgba(44, 37, 27, .18);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-item:nth-child(5n + 1) {
  grid-column: span 4;
  transform: rotate(-1.2deg);
}

.gallery-item:nth-child(5n + 2) {
  transform: rotate(1.4deg);
}

.gallery-item:nth-child(5n + 3) {
  grid-column: span 2;
  transform: rotate(-2deg);
}

.gallery-item:nth-child(5n + 4) {
  transform: rotate(.6deg);
}

.gallery-item:nth-child(7n) {
  margin-top: 38px;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 38%;
  z-index: 2;
  width: 62px;
  height: 20px;
  background: rgba(255, 224, 75, .78);
  transform: rotate(-3deg);
}

.gallery-item:hover {
  z-index: 5;
  transform: rotate(0) scale(1.035);
  box-shadow: 9px 14px 28px rgba(44, 37, 27, .28);
}

.gallery-item img {
  width: 100%;
  height: auto;
  filter: saturate(.82) contrast(1.05);
  transition: filter .2s ease;
}

.gallery-item:hover img {
  filter: saturate(1.15) contrast(1.07);
}

.gallery-item figcaption {
  padding: 13px 5px 16px;
  font: 600 .78rem/1.35 var(--sans);
}

.audio-badge {
  position: absolute;
  top: 16px;
  right: -9px;
  z-index: 3;
  padding: 7px 10px;
  color: #fff;
  background: #ff3e91;
  border: 1px solid #25231f;
  box-shadow: 3px 3px 0 #25231f;
  font: 800 .62rem var(--sans);
  text-transform: uppercase;
  transform: rotate(7deg);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 25px;
  background: rgba(19, 17, 14, .9);
  backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-inner {
  position: relative;
  display: grid;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 12px;
  background: #f4ede0;
  box-shadow: 12px 15px 0 #ff4e94;
  transform: rotate(-.4deg);
}

.lightbox-inner img {
  max-width: 100%;
  max-height: calc(92vh - 100px);
  object-fit: contain;
}

.lightbox-caption {
  padding: 14px 6px 5px;
  color: #26231e;
  font: 600 .8rem var(--sans);
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #2d43ca;
  border: 1px solid #fff;
  border-radius: 50%;
  font: 700 1.4rem var(--sans);
  cursor: pointer;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: var(--line);
  }

  .hero-portrait {
    min-height: 720px;
  }

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

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

  .feature-card {
    min-height: 270px;
  }

  .feature-card h3 {
    margin-top: 60px;
  }

  .bio-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 45px;
  }

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

  .hell-card--wide {
    grid-column: auto;
  }

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

  .hell-archive-item,
  .hell-archive-item--wide {
    grid-column: span 1;
  }

  .gallery-item,
  .gallery-item:nth-child(5n + 1) {
    grid-column: span 4;
  }

  .gallery-item:nth-child(5n + 3) {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding-inline: 18px;
  }

  .site-header::before {
    display: none;
  }

  .brand {
    padding-top: 0;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 18px 20px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: var(--line);
  }

  .hell-page .main-nav {
    color: #eee4d5;
    background: #100b09;
    border-color: #592316;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(100, 94, 82, .35);
  }

  .main-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-copy {
    padding-block: 80px;
  }

  .display-title {
    font-size: clamp(5.3rem, 30vw, 9rem);
  }

  .hero-portrait {
    min-height: 520px;
  }

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

  .fact {
    grid-template-columns: 90px 1fr;
  }

  .page-hero {
    min-height: 440px;
  }

  .page-hero::after {
    right: -5vw;
  }

  .bio-layout {
    grid-template-columns: 1fr;
  }

  .bio-index {
    position: relative;
    top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .bio-index p {
    width: 100%;
  }

  .bio-index a {
    padding: 5px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-year {
    position: relative;
    top: auto;
    width: max-content;
  }

  .hell-page .page-hero {
    min-height: 620px;
  }

  .hell-page .page-title {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .hell-lead-image,
  .hell-lead-image img {
    min-height: 660px;
    height: 75vh;
  }

  .uprising-images,
  .stat-row,
  .document-card {
    grid-template-columns: 1fr;
  }

  .hell-archive {
    grid-template-columns: 1fr;
  }

  .gallery-page .page-hero {
    min-height: 470px;
  }

  .gallery-tools {
    top: 66px;
    margin-inline: -8px;
  }

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

  .gallery-item,
  .gallery-item:nth-child(5n + 1),
  .gallery-item:nth-child(5n + 3) {
    grid-column: span 3;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: .58rem;
  }

  .brand::before {
    width: 32px;
    height: 32px;
  }

  .section {
    padding-inline: 18px;
  }

  .gallery {
    display: block;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    width: calc(100% - 8px);
    margin: 0 4px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation: none;
  }
}
