:root {
  --ink: #101310;
  --ink-soft: #1a201b;
  --paper: #f3efdf;
  --paper-deep: #ddd4bd;
  --green: #a7f432;
  --green-dark: #2c6b36;
  --green-glow: #cbff66;
  --amber: #f3b85c;
  --red: #a33f2f;
  --muted: #98a099;
  --rule: rgba(16, 19, 16, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--green);
  font-weight: 850;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.25rem;
  padding: 0.55rem max(1rem, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(13, 16, 13, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  color: var(--ink);
  background: var(--green);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink), 0 0 22px rgba(167, 244, 50, 0.25);
}

nav {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 2rem);
}

nav a {
  color: #cbd1ca;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--green);
}

.chapter {
  --section-bg: var(--paper);
  --section-fg: var(--ink);
  --section-muted: #5c625c;
  --section-accent: var(--green-dark);
  position: relative;
  isolation: isolate;
  color: var(--section-fg);
  background-color: var(--section-bg);
}

.chapter::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 49.9%, rgba(0, 0, 0, 0.035) 50%, transparent 50.1%),
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px);
  background-size: 100% 100%, 7px 7px;
}

.chapter--dark,
.chapter--ink {
  --section-bg: var(--ink);
  --section-fg: var(--paper);
  --section-muted: #abb2aa;
  --section-accent: var(--green);
}

.chapter--ink {
  --section-bg: #181a17;
}

.chapter--green {
  --section-bg: #244f2d;
  --section-fg: #fbf8e9;
  --section-muted: #d3dfcf;
  --section-accent: var(--green-glow);
}

.chapter--warm {
  --section-bg: #ead8b9;
  --section-fg: #2d251d;
  --section-muted: #715e49;
  --section-accent: #8d3e2b;
}

.chapter__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: min(840px, 92vh);
  margin-inline: auto;
  padding-block: clamp(6.5rem, 11vw, 10rem);
}

.chapter__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 42rem;
}

.chapter__copy > :first-child:not(.eyebrow) {
  margin-top: 0;
}

.chapter__copy > :last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  color: var(--section-accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.25rem;
  height: 0.3rem;
  content: "";
  background: currentColor;
}

h1,
h2,
h3 {
  margin-block: 0 0.45em;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 0.92;
  text-wrap: balance;
  text-transform: uppercase;
}

h1 {
  max-width: 8ch;
  font-size: clamp(4.75rem, 11vw, 10rem);
}

h2 {
  font-size: clamp(3rem, 6vw, 6.2rem);
}

h3 {
  margin-top: 1.7rem;
  color: var(--section-accent);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: 0.035em;
}

p {
  margin-block: 0 1.15rem;
}

.chapter__copy > p:not(.eyebrow),
.chapter__copy > blockquote,
.chapter__copy > ol,
.chapter__copy > ul {
  max-width: 38rem;
}

.chapter__copy strong {
  font-weight: 900;
}

blockquote {
  margin: 2rem 0;
  padding: 1.1rem 1.35rem;
  border: 0;
  border-left: 0.45rem solid var(--section-accent);
  background: color-mix(in srgb, var(--section-fg) 8%, transparent);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  font-weight: 780;
  line-height: 1.35;
}

blockquote p {
  margin: 0;
}

.chapter__visual {
  position: relative;
  z-index: 1;
  margin: 0;
}

.image-link {
  position: relative;
  display: block;
  border-radius: 0.4rem;
  cursor: zoom-in;
}

.image-link::after {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--paper);
  background: rgba(16, 19, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "↗";
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.24);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.image-link img {
  transition: filter 180ms ease, transform 180ms ease;
}

.image-link:hover::after,
.image-link:focus-visible::after {
  color: var(--ink);
  background: var(--green);
  transform: translate(2px, -2px);
}

.image-link:hover img,
.image-link:focus-visible img {
  filter: saturate(1.06) brightness(1.03);
  transform: scale(1.006);
}

.chapter__visual img {
  width: 100%;
  max-height: min(73vh, 720px);
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--section-fg) 28%, transparent);
  border-radius: 0.4rem;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 0.7rem;
  color: var(--section-muted);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.chapter--image-left .chapter__visual {
  order: -1;
}

/* Cover */
.chapter--hero {
  min-height: 100svh;
  overflow: hidden;
}

.chapter--hero::before {
  position: absolute;
  z-index: 0;
  top: 18%;
  left: 28%;
  width: min(56vw, 720px);
  aspect-ratio: 1;
  border: clamp(2px, 0.35vw, 5px) solid rgba(167, 244, 50, 0.34);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 4vw rgba(167, 244, 50, 0.09),
    0 0 0 8vw rgba(167, 244, 50, 0.055),
    0 0 0 12vw rgba(167, 244, 50, 0.025);
}

.chapter--hero .chapter__inner {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  min-height: 100svh;
  padding-top: 7.5rem;
  padding-bottom: 3.5rem;
}

.chapter--hero .chapter__copy {
  z-index: 3;
}

.chapter--hero h1 {
  text-shadow: 0.035em 0.035em 0 #2d6f38;
}

.chapter--hero .chapter__copy > p:nth-of-type(2) {
  margin: 1.25rem 0 1.35rem;
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.8vw, 3.2rem);
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.chapter--hero .chapter__copy > p:nth-of-type(3) {
  max-width: 32rem;
  color: #cdd4cc;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.chapter--hero .chapter__copy > p:last-child a,
.chapter--closing .chapter__copy > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  color: var(--ink);
  background: var(--green);
  border: 2px solid var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.chapter--hero .chapter__copy > p:last-child a::after,
.chapter--closing .chapter__copy > p:last-child a::after {
  content: "↓";
  font-size: 1rem;
}

.chapter--hero .chapter__copy > p:last-child a:hover,
.chapter--closing .chapter__copy > p:last-child a:hover {
  color: var(--green);
  background: transparent;
  transform: translateY(-2px);
}

.chapter--hero .chapter__visual {
  align-self: end;
}

.chapter--hero .chapter__visual::before {
  position: absolute;
  z-index: -1;
  inset: 5% -8% -5%;
  content: "";
  background: var(--green);
  clip-path: polygon(7% 0, 100% 5%, 92% 100%, 0 94%);
}

.chapter--hero .chapter__visual img {
  max-height: calc(100svh - 9rem);
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(1.2deg);
}

/* Identity */
.chapter--profile .chapter__inner {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.7fr);
}

.chapter--profile blockquote {
  max-width: 25rem;
  color: var(--ink);
  background: #fffdf3;
  border: 2px solid var(--ink);
  border-top: 2.75rem solid #4c9a58;
  border-radius: 0.45rem;
  box-shadow: 0.5rem 0.5rem 0 var(--ink);
  transform: rotate(-1deg);
}

.identity-signal {
  position: relative;
  display: grid;
  width: min(100%, 480px);
  aspect-ratio: 1;
  place-items: center;
  margin-inline: auto;
}

.identity-signal strong {
  position: relative;
  z-index: 2;
  display: grid;
  width: 42%;
  aspect-ratio: 1;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border: 0.65rem solid var(--green-dark);
  border-radius: 50%;
  font-family: var(--display);
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 1;
  box-shadow: var(--shadow);
}

.identity-signal__ring {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border: 0.45rem solid var(--green-dark);
  border-radius: 50%;
  opacity: 0.72;
}

.identity-signal__ring:nth-child(2) {
  width: 78%;
  opacity: 0.42;
}

.identity-signal__ring:nth-child(3) {
  width: 98%;
  opacity: 0.2;
}

/* Case-file feature */
.chapter--feature .chapter__inner {
  display: block;
  min-height: 0;
}

.chapter--feature .chapter__copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 8vw, 8rem);
  max-width: none;
  margin-bottom: 3rem;
}

.chapter--feature .chapter__copy .eyebrow,
.chapter--feature .chapter__copy h2,
.chapter--feature .chapter__copy blockquote {
  grid-column: 1;
}

.chapter--feature .chapter__copy > p:not(.eyebrow) {
  grid-column: 2;
}

.chapter--feature .chapter__copy > p:nth-of-type(2) {
  grid-row: 1 / span 2;
  align-self: end;
  color: var(--section-muted);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.chapter--feature blockquote {
  margin-bottom: 0;
  color: var(--green);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.feature-art {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 1rem;
  align-items: end;
}

.feature-art .chapter__visual--primary img {
  max-height: none;
  aspect-ratio: 1.25;
}

.feature-art .chapter__visual--secondary {
  margin-bottom: -2.75rem;
  transform: rotate(1.5deg);
}

.feature-art .chapter__visual--secondary img {
  aspect-ratio: 0.92;
}

/* Homework scene */
.chapter--homework .chapter__visual img {
  aspect-ratio: 1.25;
}

/* Dossier */
.chapter--dossier .chapter__inner {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
}

.dossier-mark {
  position: relative;
  min-height: 390px;
  padding: 2rem;
  overflow: hidden;
  background: #d8cfb7;
  border: 1px solid #b9ae94;
  box-shadow: 0.65rem 0.7rem 0 rgba(16, 19, 16, 0.18);
  transform: rotate(1.7deg);
}

.dossier-mark::before {
  position: absolute;
  top: 2rem;
  left: 50%;
  padding: 0.5rem 1.5rem;
  color: var(--red);
  border: 0.35rem solid var(--red);
  content: "CLASSIFIED";
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  transform: translateX(-50%) rotate(-7deg);
}

.dossier-mark span {
  position: absolute;
  right: 9%;
  bottom: -8%;
  color: rgba(16, 19, 16, 0.1);
  font-family: var(--display);
  font-size: 19rem;
  line-height: 1;
}

.dossier-mark i {
  display: block;
  width: 75%;
  height: 1rem;
  margin-top: 7rem;
  background: var(--ink);
}

.dossier-mark i + i {
  width: 90%;
  margin-top: 1.3rem;
}

.dossier-mark i:nth-of-type(3) {
  width: 58%;
}

.dossier-mark i:nth-of-type(4) {
  width: 82%;
}

/* Villains */
.chapter--image-left .chapter__inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.chapter--image-left .chapter__copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.6rem;
}

.chapter--image-left .chapter__copy .eyebrow,
.chapter--image-left .chapter__copy h2 {
  grid-column: 1 / -1;
}

.chapter--image-left .chapter__copy h3 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
}

.chapter--image-left .chapter__copy p {
  color: var(--section-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.chapter--image-left .chapter__visual img {
  min-height: 500px;
}

/* Volume meter */
.chapter--meter .chapter__inner {
  display: block;
  min-height: 0;
}

.chapter--meter .chapter__copy {
  max-width: 940px;
  margin-inline: auto;
}

.chapter--meter .chapter__copy > p {
  max-width: 42rem;
}

.chapter--meter ol {
  display: grid;
  gap: 0.75rem;
  max-width: none;
  margin: 3.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: volume;
}

.chapter--meter li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(180px, 0.75fr) minmax(120px, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 3.2rem;
  font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  counter-increment: volume;
}

.chapter--meter li::before {
  content: "0" counter(volume);
  color: var(--green);
  font-family: var(--display);
  font-size: 1.4rem;
}

.chapter--meter li::after {
  width: var(--level);
  height: 100%;
  content: "";
  background:
    repeating-linear-gradient(90deg, var(--green) 0 1.15rem, transparent 1.15rem 1.45rem);
  filter: drop-shadow(0 0 8px rgba(167, 244, 50, 0.3));
}

.chapter--meter li:nth-child(1) { --level: 20%; }
.chapter--meter li:nth-child(2) { --level: 40%; }
.chapter--meter li:nth-child(3) { --level: 62%; }
.chapter--meter li:nth-child(4) { --level: 82%; }
.chapter--meter li:nth-child(5) { --level: 100%; }

.chapter--meter li:last-child {
  color: var(--green);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
}

/* Closing */
.chapter--closing {
  overflow: hidden;
}

.chapter--closing::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  border: 2px solid rgba(167, 244, 50, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 7vw rgba(167, 244, 50, 0.05),
    0 0 0 14vw rgba(167, 244, 50, 0.025);
  transform: translate(-50%, -50%);
}

.chapter--closing .chapter__inner {
  display: grid;
  min-height: 82svh;
  place-items: center;
  text-align: center;
}

.chapter--closing .chapter__copy {
  max-width: 850px;
}

.chapter--closing .chapter__copy > * {
  margin-inline: auto;
}

.chapter--closing .eyebrow {
  justify-content: center;
}

.chapter--closing h2 {
  color: var(--green);
  font-size: clamp(4rem, 10vw, 9rem);
}

.chapter--closing .chapter__copy > p:nth-of-type(2) {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.chapter--closing .chapter__copy > p:last-child a::after {
  content: "↑";
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem max(1rem, calc((100vw - var(--max-width)) / 2));
  color: #9ca39b;
  background: #090b09;
  border-top: 1px solid #242a24;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.footer-tease {
  color: var(--green) !important;
  opacity: 0.72;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-tease:hover,
.footer-tease:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

/* Edition 2 easter egg */
.preview-page {
  --section-accent: var(--green);
  min-height: 100%;
  color: var(--paper);
  background:
    radial-gradient(circle at 70% 8%, rgba(85, 137, 57, 0.2), transparent 30rem),
    var(--ink);
}

.preview-page::before {
  opacity: 0.1;
}

.preview-intro {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-intro::before {
  position: absolute;
  top: 7rem;
  right: -8rem;
  width: min(62vw, 800px);
  aspect-ratio: 1;
  border: 2px solid rgba(167, 244, 50, 0.18);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 7vw rgba(167, 244, 50, 0.045),
    0 0 0 14vw rgba(167, 244, 50, 0.022);
}

.preview-intro__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 1040px);
  margin-inline: auto;
  padding-block: clamp(9rem, 16vw, 13rem) clamp(6rem, 10vw, 9rem);
}

.preview-intro__copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  column-gap: clamp(2rem, 8vw, 8rem);
}

.preview-intro__copy h1 {
  grid-column: 1 / -1;
  max-width: 10ch;
  margin-bottom: 0.4em;
  font-size: clamp(4.5rem, 9vw, 8rem);
  text-shadow: 0.035em 0.035em 0 #2d6f38;
}

.preview-intro__copy > p {
  grid-column: 2;
  color: #c8cfc7;
}

.preview-intro__copy > p:nth-of-type(1) {
  grid-row: 2;
}

.preview-intro__copy > p:nth-of-type(2) {
  grid-row: 3;
}

.preview-intro__copy > p:nth-of-type(3) {
  grid-row: 4;
}

.preview-intro__copy > p:nth-of-type(4) {
  grid-row: 5;
}

.preview-intro__copy blockquote {
  grid-row: 2 / span 4;
  grid-column: 1;
  align-self: center;
  margin: 2rem 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 13rem);
  letter-spacing: 0.03em;
  line-height: 0.8;
  text-transform: uppercase;
}

.preview-intro__copy > p:last-child {
  grid-row: 6;
  grid-column: 2;
  margin-top: 2rem;
  color: #8d958d;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-sequence {
  display: grid;
  gap: clamp(5rem, 11vw, 10rem);
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding-block: clamp(6rem, 12vw, 11rem);
}

.preview-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1060px);
  margin: 0;
}

.preview-panel::before {
  position: absolute;
  z-index: -1;
  top: -4.5rem;
  left: -0.05em;
  color: rgba(167, 244, 50, 0.08);
  font-family: var(--display);
  font-size: clamp(9rem, 23vw, 19rem);
  line-height: 1;
}

.preview-panel--1 {
  margin-right: auto;
}

.preview-panel--1::before {
  content: "01";
}

.preview-panel--2 {
  margin-left: auto;
}

.preview-panel--2::before {
  right: -0.05em;
  left: auto;
  content: "02";
}

.preview-panel--3 {
  margin-right: auto;
}

.preview-panel--3::before {
  content: "03";
}

.preview-panel .image-link {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
}

.preview-panel img {
  width: 100%;
  height: auto;
}

.preview-panel figcaption {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aeb5ad;
  text-transform: none;
}

.preview-panel figcaption span {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-panel figcaption p {
  max-width: 46rem;
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}

.preview-ending {
  display: grid;
  min-height: 62svh;
  place-items: center;
  padding: 6rem 1rem;
  text-align: center;
  background: #0a0c0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-ending p {
  margin: 0;
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 9rem);
  letter-spacing: 0.025em;
  line-height: 0.9;
  text-transform: uppercase;
}

.preview-ending a {
  margin-top: -5rem;
  color: #b4bbb3;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@supports (animation-timeline: view()) {
  .chapter:not(.chapter--hero) .chapter__copy,
  .chapter:not(.chapter--hero) .chapter__visual,
  .chapter:not(.chapter--hero) .identity-signal,
  .chapter:not(.chapter--hero) .dossier-mark {
    animation: reveal linear both;
    animation-range: entry 8% cover 35%;
    animation-timeline: view();
  }

  .preview-panel {
    animation: reveal linear both;
    animation-range: entry 5% cover 32%;
    animation-timeline: view();
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(2rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 850px) {
  .site-header {
    min-height: 3.8rem;
  }

  nav a:nth-child(2),
  nav a:nth-child(3) {
    display: none;
  }

  .chapter__inner,
  .chapter--hero .chapter__inner,
  .chapter--profile .chapter__inner,
  .chapter--dossier .chapter__inner,
  .chapter--image-left .chapter__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: 0;
  }

  .chapter--hero .chapter__inner {
    padding-top: 7rem;
  }

  .chapter--hero .chapter__copy {
    margin-bottom: -5rem;
  }

  .chapter--hero .chapter__visual {
    width: min(82%, 450px);
    margin-left: auto;
  }

  .identity-signal {
    max-width: 380px;
  }

  .chapter--image-left .chapter__visual {
    order: 0;
  }

  .chapter--image-left .chapter__visual img {
    min-height: 0;
  }

  .feature-art {
    grid-template-columns: 1fr 0.45fr;
  }

  .preview-intro__copy {
    display: block;
  }

  .preview-panel {
    width: 100%;
  }

}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 4rem;
  }

  .brand span:last-child {
    display: none;
  }

  nav {
    gap: 1rem;
  }

  .chapter__inner {
    width: min(calc(100% - 1.3rem), var(--max-width));
    padding-block: 5.5rem;
  }

  .chapter--hero .chapter__inner {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .chapter--hero .chapter__copy {
    margin-bottom: -3rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.5rem, 16.5vw, 5rem);
    letter-spacing: -0.01em;
  }

  h2 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .chapter--feature .chapter__copy {
    display: block;
    margin-bottom: 2rem;
  }

  .chapter--feature blockquote {
    font-size: 2.6rem;
  }

  .feature-art {
    display: block;
  }

  .feature-art .chapter__visual--primary img {
    aspect-ratio: auto;
  }

  .feature-art .chapter__visual--secondary {
    width: 52%;
    margin: -2rem 0 0 auto;
  }

  .chapter--image-left .chapter__copy {
    display: block;
  }

  .chapter--meter li {
    grid-template-columns: 2rem 1fr;
    gap: 0.65rem;
    padding-bottom: 0.75rem;
  }

  .chapter--meter li::after {
    grid-column: 1 / -1;
    width: var(--level);
    height: 1.4rem;
  }

  .dossier-mark {
    min-height: 310px;
  }

  .site-footer {
    display: grid;
    text-align: center;
  }

  .preview-intro__inner,
  .preview-sequence {
    width: min(calc(100% - 1.3rem), var(--max-width));
  }

  .preview-intro__copy h1 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }

  .preview-panel figcaption {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .preview-ending {
    min-height: 52svh;
  }

  .preview-ending a {
    margin-top: -2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
