:root {
  color-scheme: dark;
  --ink: #18131d;
  --paper: #f1eaf2;
  --accent: #e1bcf2;
  --wash: #2c1d37;
  --dark-accent: #593867;
  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --display: Georgia, 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
}
[data-theme="port"] { --accent: #b9def5; --wash: #173142; --paper: #e8eff2; --dark-accent: #245370; }
[data-theme="liquid"] { --accent: #f6d381; --wash: #392b17; --paper: #f5ebd6; --dark-accent: #70511b; }
[data-theme="atlantic"] { --accent: #f2cba5; --wash: #462027; --paper: #f3e9db; --dark-accent: #713c3e; }
[data-theme="pop"] { --accent: #ffc1d9; --wash: #3e2038; --paper: #f8eced; --dark-accent: #863756; }
[data-theme="budget"] { --accent: #f5a2ed; --wash: #452348; --paper: #f9eaf6; --dark-accent: #772968; }
[data-theme="coupable"] { --accent: #f7c575; --wash: #43241d; --paper: #f5ead7; --dark-accent: #84372e; }
[data-theme="video"] { --accent: #d5e7a2; --wash: #28351f; --paper: #edf1e4; --dark-accent: #536132; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.65 var(--sans); }
h1,h2,h3,p,figure,ol,dl,dd { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img, video { display: block; width: 100%; height: auto; }
.wrap { width: min(100% - 2 * var(--gutter), 79rem); margin-inline: auto; }
.bar { position: sticky; top: 0; z-index: 8; background: #18131df5; border-bottom: 1px solid #ffffff22; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.65rem; }
.bar a { font-size: .9rem; font-weight: 650; }
.bar .identity { color: var(--accent); font-weight: 750; }
.read-progress { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--read-progress, 0)); }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-170%); }
.skip:focus { transform: none; }
.hero { background: radial-gradient(ellipse at 75% 50%, var(--wash), var(--ink) 78%); border-bottom: .45rem solid var(--accent); overflow: hidden; }
.hero-grid { min-height: min(43rem, calc(100svh - 3.65rem)); display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; gap: clamp(2rem,5vw,5rem); padding-block: clamp(3rem,7vw,7.5rem); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .83rem; font-weight: 750; }
h1,h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.06em; line-height: 1; }
h1 { margin-block: .7rem 1.35rem; font-size: clamp(3.05rem,6.35vw,7.1rem); }
h1 em { display: block; color: var(--accent); font-weight: 400; }
.dek { max-width: 37ch; font-size: clamp(1.07rem,1.65vw,1.41rem); }
.byline { color: #e4d4e0; margin-block: .9rem 1.5rem; font-size: .875rem; }
.button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .52rem .92rem; background: var(--accent); color: var(--ink); font-weight: 750; text-decoration: none; }
.button:hover { background: var(--paper); }
.hero-image { transform: rotate(3deg); padding: .48rem; background: var(--paper); box-shadow: 1rem 1rem 0 var(--wash), 1.45rem 1.4rem 0 var(--accent); }
.hero-image img { aspect-ratio: 16/10; object-fit: contain; background: #231c27; }
[data-theme="port"] .hero-image img, [data-theme="pop"] .hero-image img, [data-theme="video"] .hero-image img { object-fit: cover; }
[data-theme="port"] .hero-image, [data-theme="coupable"] .hero-image { transform: rotate(-2.5deg); }
[data-theme="video"] .hero-image { transform: none; box-shadow: .55rem .55rem 0 var(--accent); }
.chapter-index { border-bottom: 1px solid #ffffff35; }
.chapter-index .wrap { display: flex; flex-wrap: wrap; gap: .4rem clamp(1.1rem, 4vw, 3.1rem); padding-block: .8rem; }
.chapter-index a { color: var(--paper); padding-block: .35rem; font-size: .9rem; }
.chapter { padding-block: clamp(3.4rem, 7.3vw, 7.3rem); overflow: clip; }
.chapter + .chapter { border-top: 1px solid #ffffff23; }
.chapter.paper { color: var(--ink); background: var(--paper); }
.chapter.ink { background: var(--wash); }
h2 { font-size: clamp(2.55rem, 5.4vw, 5.7rem); margin-bottom: 1.25rem; max-width: 20ch; text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.18; }
.copy { max-width: 58ch; font-size: clamp(1.04rem,1.55vw,1.2rem); }
.copy p + p { margin-top: .95rem; }
.split { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(1.8rem,5vw,5rem); align-items: center; }
.chapter .figure img { border: 1px solid #6a577673; }
figcaption { margin-top: .65rem; font-size: .87rem; line-height: 1.5; opacity: .86; }
.banner-text { margin: 1.7rem 0 1.4rem; display: block; font: 400 clamp(2.5rem,8vw,8.4rem)/.94 var(--display); letter-spacing: -.06em; overflow-wrap: anywhere; color: var(--accent); }
.paper .banner-text { color: var(--dark-accent); }
.triplet, .gallery, .films { display: grid; gap: 1rem clamp(1rem,2.4vw,2rem); margin-top: clamp(1.5rem,4vw,3rem); }
.triplet { grid-template-columns: repeat(3,minmax(0,1fr)); }
.triplet > div { border-top: 2px solid currentColor; padding-top: 1rem; }
.triplet p { margin-top: .65rem; }
.gallery { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
.gallery img { aspect-ratio: 3/4; object-fit: cover; }
.gallery figure:nth-child(2) { margin-top: 2.6rem; }
.films { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 53rem; }
.films video { aspect-ratio: 3/4; object-fit: contain; background: #080808; }
.route { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.route li { padding-top: .7rem; border-top: 3px solid var(--dark-accent); font-weight: 750; }
.route span { display: block; margin-top: .3rem; max-width: 26ch; font-size: .9rem; font-weight: 400; }
.comparisons { margin-top: 2rem; }
.comparisons > div { display: grid; grid-template-columns: minmax(7.2rem,.7fr) minmax(0,1.3fr); align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #70406160; }
.comparisons dt { font-weight: 750; }
.tableau { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 2rem 4.5rem; margin-top: 2rem; }
.tableau img { width: 100%; }
[data-theme="pop"] .tableau { align-items: start; }
[data-theme="pop"] .tableau figure { position: sticky; top: 5.3rem; }
.portrait-note { border-top: 1px solid #70406160; padding: 1.1rem 0; }
.portrait-note p { margin-top: .5rem; max-width: 58ch; }
.note { max-width: 60ch; margin-top: 1.1rem; font-size: .9rem; opacity: .89; }
.video-frame { max-width: 62rem; margin-top: 1.6rem; }
.video-frame video { aspect-ratio: 16/9; background: #0c0e0a; }
.film-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; padding: .75rem; background: #11150e; margin-top: 1.2rem; }
.film-strip img { aspect-ratio: 16/9; object-fit: cover; }
.sources details { border-bottom: 1px solid #ffffff2a; }
.sources details summary { padding-block: 1.2rem; cursor: pointer; width: fit-content; color: var(--accent); font-weight: 700; }
.sources details figure { max-width: 53rem; margin-bottom: 1.5rem; }
.ending { border-top: 1px solid #ffffff27; }
.ending .wrap { padding-block: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 2rem; }
.ending a { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise .75s cubic-bezier(.17,.8,.21,1) both; }
  .hero-image { animation: cover .9s .09s cubic-bezier(.17,.8,.21,1) backwards; }
  .reveal.in-view { animation: rise .76s cubic-bezier(.17,.8,.21,1) both; }
  .figure.reveal.in-view { animation: crop .9s cubic-bezier(.17,.8,.21,1) both; }
  .triplet .reveal:nth-child(2), .gallery .reveal:nth-child(2), .film-strip .reveal:nth-child(2) { animation-delay: .13s; }
  .triplet .reveal:nth-child(3), .gallery .reveal:nth-child(3), .film-strip .reveal:nth-child(3) { animation-delay: .23s; }
  .banner-text.reveal.in-view { animation: sweep .82s cubic-bezier(.17,.8,.21,1) both; }
  @keyframes rise { from { opacity: .22; transform: translateY(2rem); } }
  @keyframes cover { from { opacity: .2; transform: translate(11%,3%) rotate(10deg); } }
  @keyframes crop { from { clip-path: inset(0 64% 0 0); opacity: .55; } to { clip-path: inset(0); opacity: 1; } }
  @keyframes sweep { from { clip-path: inset(0 100% 0 0); transform: translateX(-1rem); } to { clip-path: inset(0); transform: none; } }
}
@media (max-width: 740px) {
  .hero-grid,.split,.tableau { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-image { width: min(95%,35rem); }
  .triplet,.gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery figure:nth-child(2) { margin-top: 0; }
  .gallery figure:last-child { grid-column: 1/-1; }
  .gallery figure:last-child img { aspect-ratio: 16/10; }
  [data-theme="pop"] .tableau figure { position: static; }
  .route { gap: .6rem; }
  .route li { font-size: .91rem; }
  .route span { font-size: .81rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
