:root { --gutter: clamp(1.1rem, 5.4vw, 5.5rem); }
.top { position: relative; z-index: 2; }
.edition-hero { position: relative; isolation: isolate; }
.hero-inner { position: relative; display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.1rem, 3.7vw, 4rem); }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.edition-kicker { font: 540 .76rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: clamp(.9rem, 2vw, 1.65rem); }
.edition-hero h1 { margin: 0; font-size: clamp(2.65rem, 5.25vw, 6.05rem); font-weight: 630; line-height: .99; letter-spacing: -.065em; }
.edition-hero h1 em { font-style: normal; }
.hero-description { margin-top: clamp(1.05rem, 2vw, 1.65rem); max-width: 45ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.25rem; margin-top: clamp(1.05rem, 2.5vw, 2.25rem); }
.hero-actions .button { padding-inline: 1.15rem; min-height: 48px; }
.hero-actions .text-link { min-height: 44px; }
.hero-visual { position: relative; min-width: 0; isolation: isolate; }
.motion-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.float-art { transform: translate(var(--drift-x, 0px), var(--drift-y, 0px)); position: relative; pointer-events: none; }
.float-art img { width: 100%; height: 100%; object-fit: contain; }
.hero-visual figcaption { display: flex; flex-direction: column; gap: .16rem; line-height: 1.35; }
.hero-visual figcaption b { font-weight: 640; font-size: 1rem; }
.hero-visual figcaption span { font-size: .82rem; }
.motion-control { position: absolute; z-index: 1; inset: auto 1rem 1rem auto; min-height: 36px; padding: .3rem .66rem; border: 1px solid var(--motion-line, currentColor); border-radius: 99px; background: var(--motion-surface, var(--white)); color: var(--motion-ink, var(--ink)); font-size: .75rem; white-space: nowrap; }
.motion-control:hover { box-shadow: inset 0 0 0 1px currentColor; }
.atlas-content { padding-top: clamp(1.8rem, 4.5vw, 4.5rem); }
.atlas-content .section h2 { font-weight: 620; }
.g-visual img { transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.gallery-card:hover .g-visual img, .gallery-card:focus-visible .g-visual img { filter: brightness(1.42) drop-shadow(0 8px 16px #15253b55); }
.category-card, .source-tile, .gallery-filters button, .button { transition: background-color .22s ease, color .22s ease, border-color .22s ease; }
:root[data-motion-paused] *, :root[data-motion-paused] *::before, :root[data-motion-paused] *::after { animation-play-state: paused !important; transition-duration: 0s !important; }
@media(max-width: 850px) {
  .hero-inner { gap: 1.45rem; }
  .edition-hero h1 { font-size: clamp(2.55rem, 5.9vw, 4.8rem); }
}
@media(max-width: 660px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .edition-hero h1 { font-size: clamp(2.42rem, 9.8vw, 4.15rem); }
  .hero-description { font-size: .94rem; }
  .edition-kicker { font-size: .69rem; }
  .motion-control { inset: auto .65rem .65rem auto; padding-inline: .48rem; }
}

:root {
  --paper: #f9f8fc; --white: #fff; --ink: #1a1a34; --muted: #52516b;
  --line: #d9d8e8; --soft: #eeedf7; --deep: #373379; --mint: #e4ddff; --radius: 8px;
}
.top { background: #11132f; color: #f5f2ff; border-color: #474363; }
.top .nav-browse { border-color: #8c83c1; background: #211d47; color: #f7f2ff; }
.top .nav-browse:hover { background: #e7defb; color: #251848; }
.relay-hero { min-height: 560px; background: radial-gradient(ellipse at 77% 48%,#3a2258 0%,#1e2049 39%,#11152f 75%); color: #fbf9ff; overflow: hidden; }
.relay-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg,#11152ff5 2%,#11152f70 38%,#11152f00 68%); }
.relay-hero .motion-canvas { z-index: -1; }
.relay-hero .hero-inner { min-height: clamp(560px, 46vw, 700px); grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); padding-block: 3.2rem; }
.relay-hero .edition-kicker { color: #d8c8f3; }
.relay-hero h1 { font: 520 clamp(2.6rem, 6.15vw, 6.15rem)/.97 'Space Grotesk', Inter, sans-serif; letter-spacing: -.061em; }
.relay-hero h1 em { color: #e9dcff; }
.relay-hero .hero-description { color: #e2dff1; }
.relay-hero .hero-actions .button { background: #f2edf9; color: #262041; border-color: #f2edf9; }
.relay-hero .hero-actions .button:hover { background: #ccbbf2; border-color: #ccbbf2; }
.relay-hero .hero-actions .text-link { color: #f2eaff; }
.relay-visual { align-self: stretch; display: grid; place-items: center; }
.relay-visual .float-art { width: min(112%, 690px); margin-inline: -6%; }
.relay-visual .float-art img { transform: translate(-3%, -5%) scale(1.25); filter: brightness(1.29) saturate(1.25) drop-shadow(0 0 25px #8783f38e); }
.relay-visual figcaption { justify-self: start; position: absolute; bottom: 1.1rem; left: .18rem; padding-left: .6rem; border-left: 1px solid #a79acb; color: #f9f4ff; }
.relay-visual figcaption span { color: #e6def7; }
.relay-hero .motion-control { inset: auto var(--gutter) 1.1rem auto; --motion-ink: #f5f0ff; --motion-surface: #231d47; --motion-line: #9088b5; }
.atlas-content { padding-top: clamp(1.3rem, 3.3vw, 3.15rem); }
.gallery .gallery-head h2, .category-map h2 { font-family: 'Space Grotesk', Inter, sans-serif; }
.gallery-grid[data-gallery-view='all'] .gallery-card:nth-child(-n+3) { grid-column: span 3; }
.gallery-grid[data-gallery-view='all'] .gallery-card:first-child { grid-column: span 6; }
.gallery-grid[data-gallery-view='all'] .gallery-card:nth-child(-n+3) .g-visual { height: clamp(180px, 22vw, 350px); aspect-ratio: auto; }
.g-visual { background: radial-gradient(ellipse at 50% 43%,#5a5380,#1d234a 90%); }
.gallery-card:nth-child(3n+2) .g-visual { background: radial-gradient(ellipse at 50% 43%,#75527a,#361b49 90%); }
.gallery-card:nth-child(3n) .g-visual { background: radial-gradient(ellipse at 50% 43%,#426583,#172c51 90%); }
.stats { background: #eeebf9; }
.stats h2, .stats > div { border-color: #c7bfde; }
.analysis-stage { background: #e9e6f6; }
.footer { background: #151732; }
@media(max-width: 850px) {
  .gallery-grid[data-gallery-view='all'] .gallery-card:nth-child(-n+3) { grid-column: auto; }
  .gallery-grid[data-gallery-view='all'] .gallery-card:nth-child(-n+3) .g-visual { height: auto; aspect-ratio: 1.62; }
}
@media(max-width: 660px) {
  .relay-hero, .relay-hero .hero-inner { min-height: 0; }
  .relay-hero .hero-inner { grid-template-columns: 1fr; padding-block: 2.35rem 1rem; }
  .relay-hero h1 { font-size: clamp(2.7rem, 10.4vw, 4.5rem); }
  .relay-visual { height: calc(clamp(220px, 56vw, 330px) + 56px); }
  .relay-visual .float-art { position: absolute; inset: 0 0 56px; width: 100%; height: auto; margin: 0; }
  .relay-visual .float-art img { transform: scale(1.18); }
  .relay-visual figcaption { bottom: 0; left: 0; }
  .relay-visual figcaption span { font-size: .69rem; }
  .relay-hero .motion-control { bottom: .8rem; }
  .gallery-grid[data-gallery-view='all'] .gallery-card:nth-child(-n+3) .g-visual { aspect-ratio: 1.33; }
}


/* Typography mapped to the corresponding reference page and content roles. */
:root {font-family:var(--type)}
#home #page-title, #home .section h2, #home #gallery-title {font-family:var(--display,var(--type));font-weight:var(--weight);letter-spacing:var(--tracking);line-height:var(--title-height)}
#home #page-title {font-size:var(--title)} #home .section h2,#home #gallery-title {font-size:var(--heading)}
#home .hero-description,#home .hero-aside p,#home .section-note {font-family:var(--type);font-size:var(--copy);line-height:var(--leading);letter-spacing:normal}
#home .gallery-card h3,#home .category-card strong {font-family:var(--type);font-size:var(--card);line-height:1.2;letter-spacing:normal}
#home .section-head>div,#home .gallery-head>div {min-width:0} #home .section h2{overflow-wrap:break-word}

:root {--type:Telegraf,'PP Telegraf',Helvetica,Arial,sans-serif;--title:60px;--heading:110px;--card:28px;--copy:24px;--leading:1.2;--weight:400;--tracking:-1.92px;--title-height:1;}
#home .edition-kicker {font:400 20px/1.3 var(--type);text-transform:none;letter-spacing:normal;border-bottom:1px solid #a59acf;width:fit-content;padding-bottom:12px}
#home .relay-hero .hero-inner {min-height:clamp(530px,47vw,720px);grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
#home .relay-hero .hero-description {max-width:39ch} #home .relay-hero h1 em{color:#fff} #home .hero-actions :is(a,button) {font:400 18px/1.3 var(--type)}
#home .top-inner {justify-content:space-between;position:relative} #home .top .brand {margin-right:auto} .relay-nav summary {padding:10px 14px;cursor:pointer;font-size:18px} #home .relay-nav nav {position:absolute;z-index:7;right:0;top:100%;width:min(560px,100%);padding:24px var(--gutter);display:grid;gap:4px;background:#fff;color:#16162c;box-shadow:0 24px 50px #12122f30;justify-content:start;align-items:start} #home .relay-nav nav a {font:400 45px/1.23 var(--type);letter-spacing:-1.92px}
#home #gallery-title, #home .atlas-content .section h2 {letter-spacing:-3.86px;line-height:1;overflow-wrap:break-word} #home .section-head,#home .gallery-head {align-items:start;flex-direction:column} #home .section-head .section-note {max-width:60ch}
@media(max-width:1200px){#home .relay-nav nav a{font-size:30px}} @media(max-width:991px){:root{--title:40px;--heading:60px;--tracking:-1px;--copy:20px} #home #gallery-title, #home .atlas-content .section h2{letter-spacing:-1.92px}}
@media(max-width:850px){#home .top-inner{display:flex;padding-block:.5rem}#home .top .nav-browse{min-height:40px}#home .relay-nav summary{font-size:16px;padding:8px 0}} @media(max-width:767px){:root{--title:35px;--heading:40px;--tracking:normal}#home #gallery-title, #home .atlas-content .section h2{letter-spacing:-1px}#home .edition-kicker{font-size:18px}} @media(max-width:660px){#home .relay-hero .hero-inner{grid-template-columns:1fr;min-height:0} #home .top-inner{gap:8px}}

@media(max-width:479px){
  #home .top-inner {column-gap:6px;grid-template-columns:minmax(0,1fr) auto}
  #home .top-inner .nav-browse {padding-inline:7px;letter-spacing:0}
  #home .top .brand {font-size:16px;gap:5px}
  #home .top .brand img {width:27px;height:27px}
  #home .section-head, #home .gallery-head {min-width:0;max-width:100%}
}

.category-card strong, .section h2, .gallery-card h3 { max-width:100%; overflow-wrap:anywhere; }
#home .relay-nav:not([open]) nav {display:none}
@media(max-width:550px){#home .category-grid{grid-template-columns:1fr} #home .relay-nav[open] nav{left:0;right:0;width:100%}}

/* The six transparent SVG plates use light text and axes. */
#analysis, #figure-dialog { --figure-paper: #102235; }
#analysis .analysis-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(.65rem, 1.8vw, 1.75rem);
}
#analysis .analysis-copy {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(1rem, 3vw, 3rem);
}
#analysis-population, #analysis-title { grid-column: 1 / -1; }
#analysis .analysis-figure {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--figure-paper);
  cursor: zoom-in;
}
#analysis .analysis-figure img { display: block; width: 100%; }
#figure-dialog {
  width: min(96vw, 104rem);
  max-width: 96vw;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  overflow: hidden;
}
#figure-dialog[open] { display: flex; flex-direction: column; }
#figure-dialog .dialog-head {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding: .65rem .8rem;
}
#dialog-title { flex: 1 1 20rem; line-height: 1.3; }
.figure-scale { display: flex; gap: .4rem; align-items: center; font-size: .875rem; }
.figure-scale select { padding: .4rem; }
#figure-dialog .figure-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  background: var(--figure-paper);
}
#figure-dialog #dialog-image {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
}
#figure-dialog[data-scale="read"] #dialog-image { min-width: 1280px; }
#figure-dialog[data-scale="detail"] #dialog-image { min-width: 2048px; }
@media (max-width: 650px) {
  #analysis .analysis-copy { grid-template-columns: minmax(0, 1fr); }
  #figure-dialog .dialog-head { gap: .35rem .7rem; }
  #figure-dialog #figure-close { margin-left: auto; }
}
