/*
Theme Name: NWBK Årgang
Description: Redesign 2026 for Niels Wessel Bagges Kunstfond. Hver årgang får sin egen farve fra årets billede.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: nwbk
*/

:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #5e5e5e;
  --line: #e2e2e2;
  --soft-bg: #f4f3f1;
  --y-ground: #2b1e17;
  --y-accent: #d39a62;
  --y-text: #f4ede6;
  --y-soft: #cdbfb2;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --label: "Jost", "Futura", "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1440px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0f; --ink: #efefef; --muted: #a3a3a3; --line: #262626; --soft-bg: #18181a; color-scheme: dark;
  }
}
:root[data-theme="dark"] { --bg: #0e0e0f; --ink: #efefef; --muted: #a3a3a3; --line: #262626; --soft-bg: #18181a; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.5; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--y-accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--bg); padding: 8px 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.label { font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* Header ------------------------------------------------------------- */
.site-header { border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.logo img { width: 161px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.primary-nav a { font-weight: 500; font-size: 17px; padding: 10px 0; display: inline-block; white-space: nowrap; }
@media (max-width: 1180px) { .primary-nav ul { gap: 18px; } .primary-nav a { font-size: 16px; } }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current-category-ancestor > a, .primary-nav .current-post-ancestor > a { box-shadow: inset 0 -2px 0 currentColor; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer; border-radius: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.search-panel { border-top: 1px solid var(--line); }
.search-panel form { display: flex; gap: 12px; padding-block: 16px; }
.search-panel input[type=search], .field { flex: 1; height: 52px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font: inherit; font-size: 24px; font-weight: 500; color: inherit; outline: none; padding: 0; }
.btn { height: 48px; padding: 0 20px; border: 2px solid var(--ink); background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }

/* Dark header: the logo is inverted, inactive items step back, active item uses the year accent */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo img { filter: invert(1) hue-rotate(180deg); }
  :root:not([data-theme="light"]) .site-header { border-bottom-color: var(--line); }
  :root:not([data-theme="light"]) .primary-nav a { color: #b9b9b9; }
  :root:not([data-theme="light"]) .primary-nav .current-menu-item > a, :root:not([data-theme="light"]) .primary-nav .current-category-ancestor > a, :root:not([data-theme="light"]) .primary-nav .current-post-ancestor > a, :root:not([data-theme="light"]) .primary-nav .current-menu-ancestor > a { color: var(--y-accent); }
}
:root[data-theme="dark"] .logo img { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .site-header { border-bottom-color: var(--line); }
:root[data-theme="dark"] .primary-nav a { color: #b9b9b9; }
:root[data-theme="dark"] .primary-nav .current-menu-item > a, :root[data-theme="dark"] .primary-nav .current-category-ancestor > a, :root[data-theme="dark"] .primary-nav .current-post-ancestor > a, :root[data-theme="dark"] .primary-nav .current-menu-ancestor > a { color: var(--y-accent); }
.primary-nav a:hover { color: var(--ink); }

@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; flex-direction: column; align-items: stretch; z-index: 20; }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { font-size: 26px; font-weight: 700; padding: 10px 0; display: block; border-bottom: 1px solid var(--line); }
  .site-header .wrap { position: relative; }
  .logo img { width: 115px; }
}

/* Year block (Årgang) ------------------------------------------------- */
.year-block { background: var(--y-ground); color: var(--y-text); }
.year-block a:hover { color: var(--y-accent); }
.year-accent { color: var(--y-accent); }
.cut { clip-path: polygon(0 0, calc(100% - var(--cut, 96px)) 0, 100% var(--cut, 96px), 100% 100%, 0 100%); }

/* Front page carousel. The artwork is never cropped or covered: it sits whole on the year's
   ground colour, and the text gets its own column. Slides stack in one cell. */
.carousel { position: relative; --hero-h: clamp(600px, 84vh, 820px); --pad: 40px; }
.slides { display: grid; grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
.slide { grid-area: 1 / 1; min-width: 0; position: relative; isolation: isolate; visibility: hidden; background: none;
  display: grid; grid-template-columns: minmax(360px, 1fr) auto; min-height: var(--hero-h); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--y-ground); clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%); }
.slide.is-active, .slide.is-leaving { visibility: visible; }
.slide.is-active { z-index: 2; }
.slide.is-leaving { z-index: 1; }
.slide-text { grid-area: 1 / 1; align-self: end; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: var(--pad) 44px calc(var(--pad) + 2px); container-type: inline-size; }
.slide-figure { grid-area: 1 / 2; position: relative; margin: 0; padding: var(--pad) var(--pad) 12px 0; display: grid; align-content: end; justify-content: end; min-width: 0; }
.slide-figure img { width: auto; height: auto; max-height: calc(var(--hero-h) - var(--pad) - 40px); max-width: calc(100cqw - 360px - var(--pad)); }
.slide-figure a { display: block; }
.slide-figure figcaption { width: 0; min-width: 100%; margin-top: 8px; text-align: right; font-size: 12px; line-height: 1.35; color: var(--y-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-year { font-weight: 800; font-size: clamp(80px, 30cqi, 168px); line-height: .8; letter-spacing: -.05em; margin: 0 0 0 -.04em; }
.hero-year a:hover, .hero-title a:hover { text-decoration: none; color: inherit; }
.hero-title { font-weight: 800; font-size: clamp(34px, 10cqi, 62px); line-height: .95; letter-spacing: -.04em; margin: 4px 0 0; text-wrap: balance; }
.hero-teaser { margin: 0; font-size: 18px; line-height: 1.45; color: var(--y-soft); max-width: 40ch; }
.hero-names { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 3px 20px; font-size: 17px; }
.slide-more { margin-top: 4px; font-weight: 500; }
/* Wide works run edge to edge across the top of the box. The box keeps one height for every slide and the
   gap to the text is fixed, so the image takes the remaining height and is trimmed top/bottom when needed. */
.slide-wide { height: var(--hero-h); min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.slide-wide::before { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), calc(100% - 56px) 100%, 0 100%); }
.slide-wide .slide-figure { grid-area: 1 / 1; position: relative; padding: 0; display: block; min-height: 0; }
.slide-wide .slide-figure img { position: absolute; inset: 0 0 30px; width: 100%; height: calc(100% - 30px); max-width: none; max-height: none; object-fit: cover; object-position: var(--focus, center 45%); }
.slide-wide .slide-figure figcaption { position: absolute; right: 44px; bottom: 8px; left: 44px; width: auto; min-width: 0; margin: 0; padding: 0; }
.slide-wide .slide-text { grid-area: 2 / 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 6px 48px; padding-top: 14px; container-type: normal; }
.slide-wide .slide-text > .label { grid-column: 1; }
.slide-wide .hero-year, .slide-wide .hero-title { grid-column: 1; grid-row: 2 / 4; align-self: end; font-size: 150px; }
.slide-wide .hero-title { font-size: clamp(40px, 3.8vw, 58px); max-width: 18ch; }
.slide-wide .hero-names, .slide-wide .hero-teaser { grid-column: 2; grid-row: 1 / 3; align-self: end; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.slide-wide .slide-more { grid-column: 2; grid-row: 3; }

.carousel-nav { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.carousel-nav .arrow { flex: none; border: 1px solid var(--line); }
.carousel-nav .arrow:hover { border-color: var(--ink); }
.carousel-steps { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.carousel-steps button { width: 100%; display: flex; flex-direction: column; gap: 7px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); text-align: left; cursor: pointer; }
.step-bar { display: block; height: 4px; background: var(--y-ground); opacity: .22; transform-origin: left; transition: opacity .3s, transform .3s; }
.step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carousel-steps button:hover .step-bar { opacity: .5; }
.carousel-steps button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.carousel-steps button[aria-selected="true"] .step-bar { opacity: 1; transform: scaleY(1.75); }
.carousel-count { flex: none; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .step-bar { background: var(--y-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-bar { background: var(--y-accent); } }

@keyframes nwbk-wipe { from { clip-path: polygon(100% 0, 100% 0, 100% 0); } to { clip-path: polygon(-100% 0, 100% 0, 100% 200%); } }
@keyframes nwbk-wipe-back { from { clip-path: polygon(0 100%, 0 100%, 0 100%); } to { clip-path: polygon(0 -100%, 200% 100%, 0 100%); } }
@keyframes nwbk-rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-entering { animation: nwbk-wipe .95s cubic-bezier(.75, 0, .2, 1) both; }
  .slide.is-entering.back { animation-name: nwbk-wipe-back; }
  .slide.is-entering .slide-text > * { animation: nwbk-rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .38s; }
  .slide.is-entering .slide-text > :nth-child(2) { animation-delay: .46s; }
  .slide.is-entering .slide-text > :nth-child(3) { animation-delay: .54s; }
  .slide.is-entering .slide-text > :nth-child(4) { animation-delay: .62s; }
  .slide.is-entering .slide-figure img { animation: nwbk-fade 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .25s; }
}
@keyframes nwbk-fade { from { opacity: 0; transform: translateY(12px); } }

.shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; margin-bottom: 64px; }
.shortcuts a { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--ink); padding-top: 14px; }
.shortcuts strong { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.01em; }
.shortcuts span { color: var(--muted); }
@media (max-width: 900px) {
  .carousel { --pad: 0px; }
  .slide { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .slide::before { display: none; }
  .slide:not(.is-active):not(.is-leaving) { display: none; }
  .slide-figure { order: -1; padding: 0 0 10px; display: flex; flex-direction: column; align-items: center; background: var(--y-ground); }
  .slide-figure figcaption { width: auto; margin: 0; }
  .slide-figure img { max-width: 100%; max-height: 72vh; }
  .slide-figure figcaption { position: static; align-self: stretch; padding: 8px 18px 0; text-align: right; font-size: 11px; white-space: normal; }
  .slide-wide .slide-text > * { align-self: auto; }
  .slide-wide .hero-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-text, .slide-wide .slide-text { display: flex; align-self: stretch; padding: 22px 22px 26px; background: var(--y-ground); clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%); margin-top: -1px; }
  .hero-title, .slide-wide .hero-title { font-size: clamp(34px, 9vw, 48px); }
  .slide-wide .hero-year { font-size: clamp(80px, 30cqi, 168px); }
  .slide-wide { height: auto; }
  .slide-wide .slide-figure { padding: 0 0 10px; display: flex; }
  .slide-wide .slide-figure img { position: static; width: auto; height: auto; max-width: 100%; max-height: 72vh; object-fit: contain; }
  .slide-wide .slide-figure figcaption { position: static; padding: 8px 18px 0; }
  .carousel-steps { display: flex; overflow-x: auto; scrollbar-width: none; gap: 10px; }
  .carousel-steps::-webkit-scrollbar { display: none; }
  .carousel-steps li { flex: none; width: 84px; }
  .carousel-count { display: none; }
  .shortcuts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shortcuts a { border-top-width: 1px; padding-block: 14px; }
  .shortcuts strong { font-size: 22px; }
}

/* Recipient list ------------------------------------------------------ */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-top: 24px; }
.page-title { margin: 0; font-weight: 800; font-size: min(clamp(48px, 7.2vw, 104px), calc((100vw - 2 * var(--gutter)) / (var(--lw, 6) * .56))); line-height: .88; letter-spacing: -.045em; hyphens: manual; }
.search-box { display: flex; flex-direction: column; gap: 6px; width: min(380px, 100%); }
.year-nav-sentinel { height: 1px; margin-top: 39px; }
.year-nav { --bar-max: 150px; padding-top: 8px; }
/* Compact copy, fixed to the top once the chart has scrolled away. Outside the page flow, so it never moves the content. */
.year-mini { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: var(--bg); --bar-max: 24px; box-shadow: 0 1px 0 var(--line), 0 12px 24px -18px rgba(0,0,0,.35); transform: translateY(-110%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); padding-top: 8px; }
.year-mini.show { transform: none; }
.year-mini .year-bars a:not([aria-current="true"]) .n { opacity: 0; }
.year-mini .year-bars a .n { height: 12px; }
@media (prefers-reduced-motion: reduce) { .year-mini { transition: none; } }
.year-bars { display: grid; grid-template-columns: repeat(var(--n, 23), minmax(0, 1fr)); gap: 6px; align-items: end; border-bottom: 1px solid var(--ink); }
.year-bars a { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; text-decoration: none; }
.year-bars a .n { line-height: 1; transition: opacity .2s, height .3s; height: 12px; overflow: hidden; }
.year-bars a .bar { display: block; background: #d8d1ca; height: calc(var(--h) * var(--bar-max)); min-height: 3px; transition: height .45s cubic-bezier(.2, .7, .2, 1), background-color .45s; }
:root[data-theme="dark"] .year-bars a .bar { background: #3a3a3c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .year-bars a .bar { background: #3a3a3c; } }
.year-bars a:hover .bar { background: var(--muted); }
.year-bars a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.year-bars a[aria-current="true"] .bar { background: var(--y-ground); }
:root[data-theme="dark"] .year-bars a[aria-current="true"] .bar { background: var(--y-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .year-bars a[aria-current="true"] .bar { background: var(--y-accent); } }
.year-bars a .yr { padding-bottom: 8px; }
.bars-legend { display: flex; justify-content: space-between; margin-top: 8px; padding-bottom: 4px; }
.year-bars a.is-loading .bar { animation: nwbk-pulse .8s ease-in-out infinite alternate; }
@keyframes nwbk-pulse { to { opacity: .45; } }
@media (max-width: 700px) {
  .year-nav { --bar-max: 100px; }
  .year-bars { overflow-x: auto; grid-template-columns: repeat(var(--n, 23), 34px); scrollbar-width: none; }
  .year-bars::-webkit-scrollbar { display: none; }
  .bars-legend span:nth-child(2) { display: none; }
}
/* Picking a year: the band opens from its cut corner, portraits follow one by one */
#aargang { scroll-margin-top: 90px; view-transition-name: aargang; }
::view-transition-old(aargang) { animation: .35s ease both nwbk-fade-out; }
::view-transition-new(aargang) { animation: .8s cubic-bezier(.75, 0, .2, 1) both nwbk-wipe; }
::view-transition-group(aargang) { animation-duration: .8s; }
@keyframes nwbk-fade-out { to { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: no-preference) {
  .year-band.entering .year-band-head .num { animation: nwbk-rise .6s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .year-band.entering .people li { animation: nwbk-rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.32s + var(--i, 0) * 55ms); }
}
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.year-band { margin-top: 32px; padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 28px; --cut: 64px; }
.year-band-head { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.year-band-head .num { font-weight: 800; font-size: clamp(72px, 9vw, 120px); line-height: .8; letter-spacing: -.05em; }
.people { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 26px 16px; list-style: none; margin: 0; padding: 0; }
.people a { display: flex; flex-direction: column; gap: 10px; }
.people a:hover { text-decoration: none; }
.people img, .people .ph { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.ph { display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--y-accent); font-weight: 800; font-size: 34px; letter-spacing: -.03em; }
.people span { font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -.005em; text-wrap: balance; }
.people a:hover span { color: var(--y-accent); }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .year-band { padding: 24px 20px; } .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } .people span { font-size: 15px; } }
.year-index { margin-top: 28px; }
.year-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-block: 18px; }
.year-row .num { font-weight: 800; font-size: 44px; line-height: .9; letter-spacing: -.04em; color: var(--muted); }
.year-row ul { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 20px; font-size: 18px; font-weight: 500; }
.year-row li { break-inside: avoid; padding-block: 3px; }
@media (max-width: 900px) { .year-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } .year-row ul { columns: 2 140px; } }
.no-hits { padding: 24px 0; font-size: 20px; }
[hidden] { display: none !important; }

/* Artist page ---------------------------------------------------------- */
.artist-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; min-height: 600px; }
.artist-portrait { grid-column: span 4; margin: 0; position: relative; --cut: 96px; }
.artist-portrait img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; }
.artist-portrait figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 12px; background: rgba(0,0,0,.45); padding: 2px 8px; color: #fff; }
.artist-intro { grid-column: 6 / span 7; padding: 48px 48px 44px 0; display: flex; flex-direction: column; gap: 22px; container-type: inline-size; min-width: 0; }
/* The longest word decides the size, so names never break mid-word. */
.artist-name { margin: 0; font-weight: 800; font-size: min(clamp(56px, 9.4vw, 136px), calc(100cqi / (var(--lw, 8) * .62))); line-height: .84; letter-spacing: -.05em; hyphens: manual; }
.facts { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 16px 36px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 16px; }
.facts > div { flex: 0 1 auto; min-width: 0; }
.facts > .wide { flex: 1 1 260px; }
.facts dd { overflow-wrap: anywhere; }
.artist-lead { margin: 0; max-width: 44ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; color: var(--y-soft); }
.artist-lead a { text-decoration: underline; }
.facts dt { font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--y-soft); }
.facts dd { margin: 0; font-size: 18px; }
.facts dd a { text-decoration: underline; display: block; }
.anchor-nav { display: flex; gap: 32px; border-bottom: 1px solid var(--line); font-weight: 500; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.anchor-nav a { padding: 16px 0; color: var(--muted); }
.anchor-nav a.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--y-accent); }
#vaerker, #om, #aargang { scroll-margin-top: 72px; }
@media (max-width: 900px) {
  .artist-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .artist-portrait, .artist-intro { grid-column: auto; }
  .artist-portrait { --cut: 64px; }
  .artist-portrait img { min-height: 0; aspect-ratio: 4 / 5; max-height: 420px; }
  .artist-intro { padding: 20px 20px 24px; }
  .facts { gap: 12px 28px; }
}
.works { margin-top: 48px; display: flex; flex-direction: column; gap: 64px; --row-h: min(640px, 72vh); }
.work-row { display: flex; gap: 24px; align-items: flex-start; width: 100%; max-width: min(100%, calc(min(var(--row-h), var(--hmax, 9999px)) * var(--sum) + 24px * (var(--count, 2) - 1))); }
.work-row.single { max-width: min(100%, calc(min(var(--row-h), var(--hmax, 9999px)) * var(--sum)), 75%); }
.works.per-3 { --row-h: min(460px, 60vh); gap: 48px; }
.works.per-3 .work-row { gap: 20px; }
.work-row.alt { align-self: flex-end; }
.work-row.single.alt { margin-right: 8.333%; }
.work-row:not(.alt).single { margin-left: 0; }
.works figure { margin: 0; display: flex; flex-direction: column; gap: 10px; flex: var(--ar) 1 0; min-width: 0; }
.works button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.works img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; background: var(--soft-bg); }
.works figcaption { display: flex; gap: 14px; font-size: 15px; max-width: 62ch; }
.works figcaption > :not(.n) { min-width: 0; overflow-wrap: anywhere; }
.works figcaption .n { flex: none; }
.works figcaption .n { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .works { gap: 36px; }
  .work-row, .work-row.single { flex-direction: column; max-width: none; margin: 0 !important; gap: 36px; }
  .works figure { flex: none; width: 100%; }
}
.about { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; border-top: 2px solid var(--ink); padding-top: 24px; }
.about h2 { grid-column: span 12; margin: 0; }
.about .lead { grid-column: span 7; margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.about .rest { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 14px; }
.about .rest p { margin: 0; }
.about .rest.solo { grid-column: span 7; font-size: 19px; }
@media (max-width: 900px) { .about .lead, .about .rest { grid-column: span 12; } }
.cohort { margin-top: 72px; padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; --cut: 48px; }
.cohort-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cohort h2 { margin: 0; font-weight: 800; font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.cohort ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.cohort ul a { display: flex; flex-direction: column; gap: 8px; }
.cohort ul img, .cohort ul .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cohort ul .ph { background: rgba(255,255,255,.08); }
.cohort ul span { font-size: clamp(13px, 4vw, 15px); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .cohort ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cohort { padding: 20px; } .cohort ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cohort h2 { font-size: 30px; } }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; margin-bottom: 72px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.prev-next a { min-width: 0; }
@media (max-width: 600px) { .prev-next { flex-direction: column; gap: 14px; font-size: 19px; } .prev-next a:last-child:not(:first-child) { align-self: flex-end; text-align: right; } }

/* Pages: shared ----------------------------------------------------------- */
.tinted { --y-ink: var(--y-ground); }
:root[data-theme="dark"] .tinted { --y-ink: var(--y-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tinted { --y-ink: var(--y-accent); } }
.page-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: end; padding-top: 28px; padding-bottom: 36px; border-bottom: 2px solid var(--ink); }
.page-head.has-tabs { padding-top: 40px; }
.page-head .page-title { grid-column: span 7; }
.page-intro { grid-column: span 5; margin: 0; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }
.page-head.stacked .page-title, .page-head.stacked .page-intro { grid-column: span 12; }
.page-head.stacked .page-intro { max-width: 52ch; }
@media (max-width: 900px) { .page-head .page-title, .page-intro { grid-column: span 12; } }
.prose { font-size: 19px; line-height: 1.6; max-width: 66ch; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { font-size: 24px; letter-spacing: -.015em; line-height: 1.2; margin: 1.6em 0 .5em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose img { margin-block: 16px; }
.prose .lead { font-size: clamp(22px, 2vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
.section-prose { margin-top: 32px; }
.prose-cols { max-width: none; columns: 2 340px; column-gap: 48px; margin-top: 56px; font-size: 18px; }
.prose-cols p { break-inside: avoid-column; }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 16px; border-top: 2px solid var(--ink); }
.gallery-head h2 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.gallery-head + .works { margin-top: 32px; }

/* Section tabs (siblings) */
.section-tabs { position: sticky; top: 0; z-index: 6; background: var(--bg); display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs .tabs-root, .chapter-rail .tabs-root { flex: none; font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 16px 0; }
.section-tabs .tabs { display: flex; gap: 24px; }
.section-tabs .tabs a { flex: none; padding: 16px 0; color: var(--muted); font-weight: 500; white-space: nowrap; }
.section-tabs .tabs a:hover { color: var(--ink); text-decoration: none; }
.section-tabs .tabs a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--y-ink, var(--ink)); }

/* Section index: Samlingen, Om fonden */
.section-index { list-style: none; margin: 0 0 64px; padding: 0; }
.idx-row { border-bottom: 1px solid var(--line); }
.idx-link { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 28px; min-height: 160px; }
.idx-link:hover { text-decoration: none; }
.idx-n { align-self: start; padding-top: 14px; font-family: var(--label); font-size: 14px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.idx-main { display: flex; flex-direction: column; gap: 10px; align-self: start; padding-top: 4px; }
.idx-title { font-weight: 800; font-size: clamp(40px, 5vw, 76px); line-height: .92; letter-spacing: -.045em; transition: color .25s; }
.idx-arrow { display: inline-block; font-weight: 500; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.idx-link:hover .idx-arrow { transform: translateX(10px); }
.idx-link:hover .idx-title { color: var(--y-ground); }
:root[data-theme="dark"] .idx-link:hover .idx-title { color: var(--y-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .idx-link:hover .idx-title { color: var(--y-accent); } }
.idx-teaser { color: var(--muted); max-width: 46ch; font-size: 18px; line-height: 1.45; }
.idx-meta { color: var(--ink); }
.idx-media { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 300px; justify-self: end; width: min(100%, 470px); }
.idx-img { overflow: hidden; background: var(--soft-bg); }
.idx-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.idx-img-0 { grid-row: span 2; --cut: 56px; }
.idx-img-1 img { transition-delay: .04s; } .idx-img-2 img { transition-delay: .08s; }
.idx-link:hover .idx-img img { transform: scale(1.05); }
.idx-row.media-1 .idx-media { grid-template-columns: 1fr; width: 220px; }
.idx-row.media-1 .idx-img-0 { grid-row: span 2; }
.idx-row.media-2 .idx-img-1 { grid-row: span 2; }
.section-about { margin: 0 0 80px; padding-top: 16px; border-top: 2px solid var(--ink); }
.section-about h2 { margin: 0 0 24px; color: var(--muted); }
.section-about .prose-cols { margin-top: 0; }
.idx-row:not(.has-media) .idx-link { grid-template-columns: 80px minmax(0, 1fr); min-height: 0; }
.idx-row:not(.has-media) .idx-title { font-size: clamp(32px, 3.6vw, 52px); }
.idx-chapters { list-style: none; margin: -8px 0 0; padding: 0 0 32px 104px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.idx-chapters a { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 500; }
.idx-chapters .n { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .idx-link { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 22px; }
  .idx-n { padding-top: 0; }
  .idx-media { order: -1; justify-self: stretch; width: 100%; height: 220px; }
  .idx-row:not(.has-media) .idx-link { grid-template-columns: minmax(0, 1fr); }
  .idx-chapters { padding-left: 0; grid-template-columns: minmax(0, 1fr); }
}

/* Collection pages */
.col-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; min-height: 560px; margin-top: 20px; }
.col-intro { grid-column: span 6; padding: 44px 0 40px 48px; display: flex; flex-direction: column; gap: 20px; container-type: inline-size; }
/* Never hyphenated: the size shrinks until the longest word fits the column (as on the artist pages). */
.col-title { margin: 0; font-weight: 800; font-size: min(clamp(56px, 8.4vw, 136px), calc(100cqi / (var(--lw, 8) * .62))); line-height: .84; letter-spacing: -.05em; hyphens: manual; }
.col-lead { margin: 0; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; max-width: 34ch; color: var(--y-text); }
.col-jump { margin-top: auto; font-weight: 500; }
.col-figure { grid-column: 7 / span 6; margin: 0; position: relative; --cut: 120px; display: flex; flex-direction: column; }
.col-figure button { flex: 1; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; min-height: 0; }
.col-figure img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }
.col-figure figcaption { padding: 10px 48px 14px 0; font-size: 13px; color: var(--y-soft); display: flex; gap: 10px; }
@media (max-width: 900px) {
  .col-hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .col-intro { grid-column: auto; padding: 22px 20px 26px; order: 2; }
  .col-figure { grid-column: auto; --cut: 56px; }
  .col-figure img { max-height: 420px; }
  .col-figure figcaption { padding: 8px 20px 0; }
}
.next-card { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; margin: 72px 0 72px; background: var(--y-ground); color: var(--y-text); min-height: 180px; clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%); }
.next-card:hover { text-decoration: none; }
.next-text { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px 32px; }
.next-text .label { color: var(--y-soft); }
.next-title { font-weight: 800; font-size: clamp(32px, 4vw, 60px); letter-spacing: -.04em; line-height: .95; }
.next-title span { display: inline-block; transition: transform .3s; }
.next-card:hover .next-title span { transform: translateX(10px); }
.next-img { width: 220px; flex: none; }
.next-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .next-img { width: 110px; } .next-text { padding: 18px 20px; min-width: 0; } }
@media (max-width: 420px) { .next-card { flex-direction: column; gap: 0; } .next-img { width: 100%; height: 150px; order: -1; } }

/* Biography chapters */
.chapter-rail { position: sticky; top: 0; z-index: 6; background: var(--bg); display: flex; align-items: stretch; gap: 20px; border-bottom: 1px solid var(--line); }
.chapter-rail ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; flex: 1; min-width: 0; }
.chapter-rail a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 11px; color: var(--muted); box-shadow: inset 0 3px 0 var(--line); height: 100%; }
.chapter-rail a:hover { color: var(--ink); text-decoration: none; box-shadow: inset 0 3px 0 var(--muted); }
.chapter-rail a[aria-current] { color: var(--ink); box-shadow: inset 0 3px 0 var(--y-ink); }
.chapter-rail .n { font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.chapter-rail .t { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chapter-rail .tabs-root { padding-top: 15px; }
@media (max-width: 900px) {
  .chapter-rail { overflow-x: auto; scrollbar-width: none; }
  .chapter-rail ol { grid-auto-columns: 112px; }
  .chapter-rail .tabs-root { display: none; }
}
.chapter-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 40px; border-bottom: 2px solid var(--ink); align-items: end; }
.chapter-no { grid-column: span 3; font-weight: 800; font-size: clamp(80px, 13vw, 200px); line-height: .78; letter-spacing: -.06em; color: var(--y-ink); font-variant-numeric: tabular-nums; }
.chapter-head > div:last-child { grid-column: 4 / span 9; display: flex; flex-direction: column; gap: 16px; }
.chapter-head .page-intro { max-width: 40ch; }
@media (max-width: 900px) { .chapter-no, .chapter-head > div:last-child { grid-column: span 12; } .chapter-no { font-size: 72px; } .chapter-head { padding-top: 28px; gap: 12px; } }
.chapter-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 44px; margin-bottom: 64px; }
.chapter-body .prose { grid-column: 4 / span 6; }
.chapter-body.no-figs .prose { grid-column: 4 / span 7; }
.chapter-figs { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 28px; }
.chapter-figs figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.chapter-figs figure:first-child { --cut: 40px; }
.chapter-figs button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.chapter-figs img { width: 100%; height: auto; }
.chapter-figs figcaption { font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (max-width: 1100px) { .chapter-body .prose { grid-column: 1 / span 8; } .chapter-figs { grid-column: 9 / span 4; } .chapter-body.no-figs .prose { grid-column: 1 / span 9; } }
@media (max-width: 760px) { .chapter-body .prose, .chapter-figs, .chapter-body.no-figs .prose { grid-column: span 12; } .chapter-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.toc { list-style: none; margin: 0 0 32px; padding: 0; border-top: 2px solid var(--ink); counter-reset: none; }
.toc a { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.toc a:hover { text-decoration: none; }
.toc .n { font-weight: 800; font-size: 28px; letter-spacing: -.03em; color: var(--y-ink); font-variant-numeric: tabular-nums; }
.toc .t { font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.025em; line-height: 1.1; }
.toc a:hover .t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.toc .x { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .toc a { grid-template-columns: 52px minmax(0, 1fr); } .toc .x { grid-column: 2; } }
.chapter-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 80px; }
.chapter-pager a { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-top: 2px solid var(--ink); }
.chapter-pager a:hover { text-decoration: none; }
.chapter-pager .next { text-align: right; align-items: flex-end; }
.chapter-pager .t { font-weight: 800; font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -.035em; line-height: 1; }
.chapter-pager a:hover .t { color: var(--y-ink); }
.chapter-pager .label { color: var(--muted); }
@media (max-width: 560px) { .chapter-pager { grid-template-columns: minmax(0, 1fr); } .chapter-pager .next { text-align: left; align-items: flex-start; } }

/* Press releases */
.press-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; min-height: 520px; margin-top: 8px; }
.press-figure { grid-column: span 6; margin: 0; position: relative; --cut: 96px; }
.press-figure button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.press-figure img { width: 100%; height: 100%; min-height: 520px; max-height: 640px; object-fit: cover; }
.press-figure figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 5px 8px; max-width: 80%; }
.press-intro { grid-column: 7 / span 6; padding: 48px 48px 44px 0; display: flex; flex-direction: column; gap: 22px; }
.press-hero.no-figure { min-height: 0; --cut: 64px; clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%); }
.press-hero.no-figure .press-intro { grid-column: span 12; padding: 40px 48px; }
.press-title { margin: 0; font-weight: 800; font-size: min(clamp(44px, 5.6vw, 92px), calc((100vw - 2 * var(--gutter) - 40px) / (var(--lw, 6) * .56))); line-height: .9; letter-spacing: -.045em; text-wrap: balance; }
.press-intro .facts { margin-top: auto; }
@media (max-width: 900px) {
  .press-hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .press-figure { grid-column: auto; --cut: 56px; }
  .press-figure img { min-height: 240px; max-height: 380px; }
  .press-intro, .press-hero.no-figure .press-intro { grid-column: auto; padding: 22px 20px 26px; }
}
.article-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 48px; margin-bottom: 48px; }
.article-body .content { grid-column: span 7; min-width: 0; }
.article-body aside { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 900px) { .article-body .content, .article-body aside { grid-column: span 12; } }
.side-block h2 { margin: 0 0 10px; }
.side-block ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.side-block li a, .side-block li span { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-block li .d { display: block; padding: 0; border: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.person-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.press-list { list-style: none; margin: 32px 0 72px; padding: 0; border-top: 2px solid var(--ink); }
.press-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.press-list .date { color: var(--muted); font-variant-numeric: tabular-nums; }
.press-list .t { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.press-list .chip { width: 44px; height: 44px; background: linear-gradient(var(--y-ground) 58%, var(--y-accent) 58%); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
@media (max-width: 600px) { .press-list li { grid-template-columns: minmax(0, 1fr) auto; } .press-list .date { grid-column: 1 / -1; } }
/* Press archive */
.press-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 36px; min-height: 460px; }
.press-feature:hover { text-decoration: none; }
.pf-figure { grid-column: span 7; overflow: hidden; --cut: 96px; }
.pf-figure img { width: 100%; height: 100%; min-height: 460px; max-height: 600px; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.press-feature:hover .pf-figure img { transform: scale(1.03); }
.pf-text { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 18px; padding: 44px 44px 40px 0; }
.press-feature.no-figure .pf-text { grid-column: span 12; padding: 44px; }
.pf-title { font-weight: 800; font-size: min(clamp(40px, 4.6vw, 76px), calc((100vw - 2 * var(--gutter) - 40px) / (var(--lw, 6) * .56))); line-height: .92; letter-spacing: -.045em; }
.pf-teaser { color: var(--y-soft); font-size: 18px; line-height: 1.45; max-width: 40ch; }
.pf-more { margin-top: auto; font-weight: 500; }
.press-grid { list-style: none; margin: 56px 0 80px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.press-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.press-card:hover { text-decoration: none; }
.pc-media { display: block; aspect-ratio: 4 / 3; background: var(--y-ground); overflow: hidden; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); position: relative; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.press-card:hover .pc-media img { transform: scale(1.04); }
.pc-year { position: absolute; left: 20px; bottom: 6px; font-weight: 800; font-size: clamp(64px, 7vw, 112px); letter-spacing: -.05em; line-height: .8; color: var(--y-accent); }
.pc-meta { display: flex; align-items: center; gap: 10px; }
.pc-chip { width: 14px; height: 14px; flex: none; background: linear-gradient(var(--y-ground) 50%, var(--y-accent) 50%); }
.pc-title { font-weight: 700; font-size: 24px; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.press-card:hover .pc-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .press-feature { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .pf-figure { grid-column: auto; --cut: 56px; }
  .pf-figure img { min-height: 240px; max-height: 380px; }
  .pf-text, .press-feature.no-figure .pf-text { grid-column: auto; padding: 22px 20px 26px; }
  .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }
  .pc-title { font-size: 20px; }
}
@media (max-width: 560px) { .press-grid { grid-template-columns: minmax(0, 1fr); } }

/* Board: the group photo leads; each member's column sits under where they stand.
   Hovering a column (or a person in the photo) puts that person in the light. */
.board-stage { margin: 0 0 72px; }
.board-photo { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--y-ground); clip-path: polygon(0 0, calc(100% - 96px) 0, 100% 96px, 100% 100%, 0 100%); }
.board-photo img { position: absolute; top: 0; left: -7%; width: 112%; max-width: none; height: auto; margin-top: -19.5%; }
.board-spots { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.spot { position: relative; display: block; transition: background-color .35s; }
.spot:hover { text-decoration: none; }
.spot-no { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: transform .3s; }
.spot-name { position: absolute; left: 50%; bottom: 66px; translate: -50% 0; white-space: nowrap; padding: 6px 12px; background: var(--bg); color: var(--ink); font-weight: 700; font-size: 15px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.board-credit { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.board-cols { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 40px 28px; }
.member { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 3px solid var(--line); transition: border-color .3s, opacity .3s; scroll-margin-top: 24px; }
.member.off-photo { grid-column: span 1; }
.member-portrait { margin: 0 0 6px; width: 60%; }
.member-portrait img, .member-portrait .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.member-portrait .ph { background: var(--soft-bg); color: var(--y-ink, var(--muted)); font-size: 44px; }
.member-meta { display: flex; align-items: center; gap: 12px; min-height: 28px; }
.member-no { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 13px; transition: background-color .3s; }
.board-role { font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--y-ink); font-weight: 500; }
.board-name { margin: 0; font-weight: 800; font-size: clamp(28px, 2.5vw, 40px); line-height: .95; letter-spacing: -.04em; text-wrap: balance; transition: color .3s; }
.member-since { margin: 0; font-size: 14px; color: var(--muted); }
.board-bio { font-size: 16px; line-height: 1.55; }
.board-bio p { margin: 0 0 .8em; }
.board-bio strong { font-weight: 600; }

@media (hover: hover) and (min-width: 901px) {
  .board-stage:has(.member:hover, .spot:hover) .spot { background-color: rgba(8, 10, 14, .58); }
  .board-stage:has(.member:hover, .spot:hover) .member { opacity: .45; }
  .board-stage:has(.member:nth-child(1):hover, .spot:nth-child(1):hover) .spot:nth-child(1) { background-color: transparent; }
  .board-stage:has(.member:nth-child(1):hover, .spot:nth-child(1):hover) .spot:nth-child(1) .spot-name { opacity: 1; transform: none; }
  .board-stage:has(.member:nth-child(1):hover, .spot:nth-child(1):hover) .spot:nth-child(1) .spot-no { transform: scale(1.15); }
  .board-stage:has(.member:nth-child(1):hover, .spot:nth-child(1):hover) .member:nth-child(1) { opacity: 1; border-color: var(--y-ink); }
  .board-stage:has(.member:nth-child(1):hover, .spot:nth-child(1):hover) .member:nth-child(1) .member-no { background: var(--y-ink); }
  .board-stage:has(.member:nth-child(2):hover, .spot:nth-child(2):hover) .spot:nth-child(2) { background-color: transparent; }
  .board-stage:has(.member:nth-child(2):hover, .spot:nth-child(2):hover) .spot:nth-child(2) .spot-name { opacity: 1; transform: none; }
  .board-stage:has(.member:nth-child(2):hover, .spot:nth-child(2):hover) .spot:nth-child(2) .spot-no { transform: scale(1.15); }
  .board-stage:has(.member:nth-child(2):hover, .spot:nth-child(2):hover) .member:nth-child(2) { opacity: 1; border-color: var(--y-ink); }
  .board-stage:has(.member:nth-child(2):hover, .spot:nth-child(2):hover) .member:nth-child(2) .member-no { background: var(--y-ink); }
  .board-stage:has(.member:nth-child(3):hover, .spot:nth-child(3):hover) .spot:nth-child(3) { background-color: transparent; }
  .board-stage:has(.member:nth-child(3):hover, .spot:nth-child(3):hover) .spot:nth-child(3) .spot-name { opacity: 1; transform: none; }
  .board-stage:has(.member:nth-child(3):hover, .spot:nth-child(3):hover) .spot:nth-child(3) .spot-no { transform: scale(1.15); }
  .board-stage:has(.member:nth-child(3):hover, .spot:nth-child(3):hover) .member:nth-child(3) { opacity: 1; border-color: var(--y-ink); }
  .board-stage:has(.member:nth-child(3):hover, .spot:nth-child(3):hover) .member:nth-child(3) .member-no { background: var(--y-ink); }
  .board-stage:has(.member:nth-child(4):hover, .spot:nth-child(4):hover) .spot:nth-child(4) { background-color: transparent; }
  .board-stage:has(.member:nth-child(4):hover, .spot:nth-child(4):hover) .spot:nth-child(4) .spot-name { opacity: 1; transform: none; }
  .board-stage:has(.member:nth-child(4):hover, .spot:nth-child(4):hover) .spot:nth-child(4) .spot-no { transform: scale(1.15); }
  .board-stage:has(.member:nth-child(4):hover, .spot:nth-child(4):hover) .member:nth-child(4) { opacity: 1; border-color: var(--y-ink); }
  .board-stage:has(.member:nth-child(4):hover, .spot:nth-child(4):hover) .member:nth-child(4) .member-no { background: var(--y-ink); }
  .board-stage:has(.member:nth-child(5):hover, .spot:nth-child(5):hover) .spot:nth-child(5) { background-color: transparent; }
  .board-stage:has(.member:nth-child(5):hover, .spot:nth-child(5):hover) .spot:nth-child(5) .spot-name { opacity: 1; transform: none; }
  .board-stage:has(.member:nth-child(5):hover, .spot:nth-child(5):hover) .spot:nth-child(5) .spot-no { transform: scale(1.15); }
  .board-stage:has(.member:nth-child(5):hover, .spot:nth-child(5):hover) .member:nth-child(5) { opacity: 1; border-color: var(--y-ink); }
  .board-stage:has(.member:nth-child(5):hover, .spot:nth-child(5):hover) .member:nth-child(5) .member-no { background: var(--y-ink); }
  .board-stage:has(.member:nth-child(6):hover, .spot:nth-child(6):hover) .spot:nth-child(6) { background-color: transparent; }
  .board-stage:has(.member:nth-child(6):hover, .spot:nth-child(6):hover) .spot:nth-child(6) .spot-name { opacity: 1; transform: none; }
  .board-stage:has(.member:nth-child(6):hover, .spot:nth-child(6):hover) .spot:nth-child(6) .spot-no { transform: scale(1.15); }
  .board-stage:has(.member:nth-child(6):hover, .spot:nth-child(6):hover) .member:nth-child(6) { opacity: 1; border-color: var(--y-ink); }
  .board-stage:has(.member:nth-child(6):hover, .spot:nth-child(6):hover) .member:nth-child(6) .member-no { background: var(--y-ink); }
}

.board-timeline { margin: 0 0 88px; padding-top: 16px; border-top: 2px solid var(--ink); }
.board-timeline h2 { margin: 0 0 22px; }
.board-timeline ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.board-timeline li, .tl-axis { display: grid; grid-template-columns: minmax(160px, 22%) minmax(0, 1fr); align-items: center; gap: 24px; }
.tl-name { font-weight: 700; font-size: 17px; }
.tl-track { position: relative; height: 36px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 21)); }
.tl-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 100%); right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: var(--y-ink, var(--ink)); color: var(--bg); font-size: 14px; font-weight: 700; transform-origin: right; }
.tl-len { font-weight: 500; opacity: .8; }
.tl-axis { margin-top: 8px; font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tl-axis span:first-child { grid-column: 2; grid-row: 1; }
.tl-axis span:last-child { grid-column: 2; grid-row: 1; justify-self: end; }

@media (max-width: 900px) {
  .board-photo { aspect-ratio: 4 / 3; clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%); }
  .board-photo img { margin-top: -15%; }
  .spot-no { width: 26px; height: 26px; font-size: 13px; bottom: 12px; }
  .spot-name { display: none; }
  .board-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .board-timeline li, .tl-axis { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tl-axis span:first-child, .tl-axis span:last-child { grid-column: 1; grid-row: 1; }
}

/* Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 40px; color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; gap: 20px; }

/* Lightbox ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; margin: 0; border: 0; padding: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; overflow: hidden; background: #0b0b0b; color: #f2f2f2; }
.lightbox::backdrop { background: #0b0b0b; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.lb-count { font-size: 13px; color: #a8a8a8; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; padding: 0 72px; min-height: 0; touch-action: pan-y pinch-zoom; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.lightbox-bottom [data-lb-caption] { flex: 1; min-width: 0; text-align: center; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.lightbox .icon-btn { color: #f2f2f2; border: 1px solid #444; flex: none; }
.lightbox.single [data-lb-prev], .lightbox.single [data-lb-next] { visibility: hidden; }
@media (max-width: 700px) {
  /* Phones: the image always spans the full screen width, so it is larger than on the page.
     A tall image scrolls; close button and caption stay pinned. */
  .lightbox-inner { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
  .lightbox-top { position: sticky; top: 0; z-index: 2; background: linear-gradient(#0b0b0b 60%, rgba(11, 11, 11, 0)); }
  .lightbox-stage { flex: 1 0 auto; padding: 0; }
  .lightbox-stage img { width: 100%; height: auto; }
  .lightbox-bottom { position: sticky; bottom: 0; z-index: 2; background: #0b0b0b; flex-wrap: wrap; padding: 12px 16px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .lightbox-bottom [data-lb-caption] { order: -1; flex-basis: 100%; text-align: left; font-size: 13px; max-height: 4.2em; overflow-y: auto; }
}
@media (prefers-reduced-motion: no-preference) { .works img, .people img { transition: opacity .2s; } }

/* Preview of the coming round (logged-in editors only) */
.pv-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px dashed currentColor; border-radius: 99px; font: 500 11px/1.5 var(--display); font-style: normal; letter-spacing: .02em; text-transform: none; white-space: nowrap; vertical-align: middle; opacity: .85; }
.pv-bar { position: fixed; z-index: 9999; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); padding: 10px 12px 10px 18px; background: #111; color: #fff; border-radius: 99px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; line-height: 1.35; }
.pv-bar a { color: #111; background: #fff; padding: 6px 14px; border-radius: 99px; text-decoration: none; font-weight: 500; white-space: nowrap; }
@media (max-width: 600px) { .pv-bar { left: 16px; right: 16px; transform: none; max-width: none; justify-content: space-between; border-radius: 14px; font-size: 13px; } }

/* Touch screens: small text links get a taller tap area (at least 24 px) without moving anything. */
@media (pointer: coarse) {
  .label a, .hero-names a, .year-row a, .site-footer a { display: inline-block; padding-block: 6px; margin-block: -6px; }
}
