:root {
  color-scheme: light;
  --paper: #fff;
  --footer-paper: #f5f7fa;
  --ink: #141926;
  --muted: #505f73;
  --line: #e4e7eb;
  --rail: #8996a7;
  --accent: #176497;
  --frame: 1296px;
  --inset: clamp(1.25rem, 5vw, 5rem);
  --text-font: Montserrat, sans-serif;
  --hover-font: Eczar, serif;
  font: 400 1rem/1.5 var(--text-font);
}
:root[data-theme="projection"] {
  color-scheme: dark;
  --paper: #141926;
  --footer-paper: #111621;
  --ink: #f5f7fa;
  --muted: #b7c1d0;
  --line: #3b4658;
  --rail: #8794a8;
  --accent: #3db7ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .24em; }
button, select { font: inherit; }
button { color: inherit; }
figure, h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; }
[hidden], [data-hero] { display: none !important; }
html[data-view="galerie"] [data-hero="galerie"],
html[data-view="index"] [data-hero="index"] { display: grid !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
:target { scroll-margin-top: 6rem; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: 1rem; background: white; color: #191919; }
.frame { width: min(calc(100% - 2 * var(--inset)), var(--frame)); margin-inline: auto; }
.site-masthead { position: sticky; top: 0; z-index: 3; background: var(--paper); }
.site-header { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.logo img { width: 5.4rem; height: auto; }
.header-actions { display: flex; align-items: center; gap: clamp(.2rem, 1vw, .8rem); }
.language-switch { display: flex; align-items: center; font-size: .875rem; gap: .15rem; }
.language-switch a { color: var(--muted); padding: .42rem .35rem; text-decoration: none; }
.language-switch a:hover { text-decoration: underline; }
.language-switch a[aria-current] { color: var(--accent); font-weight: 500; text-decoration: underline; }
.theme-toggle {
  padding: .5rem .75rem; background: var(--paper); border: 1px solid var(--line);
}
.theme-toggle:is(:hover, [aria-pressed="true"]) { color: var(--accent); border-color: var(--accent); }
.site-menu { position: relative; }
.site-menu summary {
  list-style: none; display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem;
  cursor: pointer; color: var(--ink); border: 1px solid var(--line);
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary i {
  width: 1rem; height: 8px; border-block: 1px solid currentColor;
}
.site-menu[open] summary i { height: 0; border-bottom: 0; }
.site-menu nav {
  position: absolute; top: calc(100% + .45rem); right: 0; width: 12rem;
  display: grid; padding: .3rem; gap: .125rem; background: var(--paper); border: 1px solid var(--line);
}
.site-menu nav a { padding: .65rem .6rem; text-decoration: none; }
.site-menu nav a:hover, .site-menu nav a:focus-visible { background: var(--ink); color: var(--paper); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
html[data-view="galerie"] .work-section:not(:target) { display: none; }

.gallery-intro h1, #works-heading, .profile h2, .detail-title h1, .article-copy h2 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
}
.gallery-hero {
  grid-template-columns: minmax(12rem, .9fr) minmax(0, 2.35fr);
  gap: clamp(2rem, 6.2vw, 6.5rem); align-items: center;
  width: min(calc(100% - 2 * var(--inset)), 71.5rem);
  min-height: calc(100svh - 4.75rem);
  padding-block: clamp(3rem, 7vh, 5rem);
}
.gallery-intro h1 { color: var(--accent); }
.gallery-intro p { max-width: 30ch; margin-block: 1.3rem 1.6rem; color: var(--muted); }
.index-link {
  display: inline-block; padding: .65rem 1rem; border: 1px solid var(--accent);
  text-decoration: none; color: var(--accent);
}
.index-link:hover { background: var(--accent); color: var(--paper); }
.gallery-selection {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.45rem, .9vw, .8rem);
  padding: 0; margin: 0; list-style: none; min-width: 0;
}
.selection-card { min-width: 0; }
.selection-card .work-button { position: relative; }
.gallery-selection .work-image { padding: 0; aspect-ratio: 1; background: var(--paper); }
.gallery-selection .work-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-selection .work-caption { margin-top: .35rem; }
@media (hover: hover) and (pointer: fine) and (min-width: 650px) {
  .gallery-selection .work-caption {
    position: absolute; inset: auto 0 0; padding: 1.8rem .7rem .62rem; margin: 0;
    color: white; background: linear-gradient(transparent, rgba(20, 25, 38, .95));
    opacity: 0; transition: opacity .18s ease;
  }
  .gallery-selection .work-button:is(:hover, :focus-visible) .work-caption { opacity: 1; }
}
.section-rail { display: none; }
@media (min-width: 1120px) {
  html[data-view="galerie"] .section-rail {
    position: fixed; z-index: 2; top: 50%; right: 0; transform: translateY(-50%); display: grid; gap: .25rem;
  }
  .section-rail a {
    display: flex; justify-content: flex-end; align-items: center; min-height: 2rem; width: 2.2rem;
    color: var(--ink); text-decoration: none;
  }
  .section-rail a::after {
    content: ''; display: block; flex: none; width: .65rem; height: .25rem;
    margin-right: .75rem; background: var(--rail);
  }
  .section-rail a[aria-current]::after { background: var(--accent); }
  .section-rail a span { opacity: 0; white-space: nowrap; padding: .32rem .5rem; font-size: .875rem; background: var(--paper); }
  .section-rail a:is(:hover, :focus-visible) span { opacity: 1; }
}
.back-to-top {
  position: fixed; right: clamp(.75rem, 2.5vw, 2rem); bottom: 1rem; z-index: 2;
  padding: .55rem .7rem; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-size: .875rem; text-decoration: none;
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  html[data-view="galerie"] { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-selection .work-caption { transition: none; }
}

.work-section { border-top: 1px solid var(--line); padding-top: 1.15rem; padding-bottom: clamp(3.5rem, 7vw, 7rem); }
.work-tools { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .8rem 1.5rem; margin-top: 1.4rem; }
.search-control, .sort-control { display: grid; gap: .35rem; font-size: .875rem; color: var(--muted); }
.search-control { width: min(100%, 29rem); }
.search-control input, .sort-control select { min-height: 2.65rem; }
.search-control input {
  width: 100%; padding: .45rem .65rem; font: inherit;
  border: 1px solid var(--rail); border-radius: 0; background: var(--paper); color: var(--ink);
}
.search-control input::placeholder { color: var(--muted); opacity: 1; }
.search-status { margin: .9rem 0; font-size: .875rem; color: var(--muted); }
.search-pages { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; margin: 1.25rem 0 0; }
.search-pages a {
  display: grid; gap: .25rem; padding: .8rem 1rem; border: 1px solid var(--line);
  text-decoration: none;
}
.search-pages a:hover strong { text-decoration: underline; }
.search-pages span { color: var(--muted); font-size: .875rem; }
select {
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  font-size: .875rem; padding: .45rem .65rem; border-radius: 0;
}
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; gap: 2.2rem 1.4rem; padding: 0; margin: 0; }
.work-card { min-width: 0; }
.work-button { display: block; width: 100%; text-align: left; text-decoration: none; }
.work-image { background: var(--paper); display: grid; place-items: center; aspect-ratio: 1.36; padding: 1rem; overflow: hidden; }
.work-image img { width: 100%; height: 100%; object-fit: contain; }
.work-caption { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: .7rem; }
.work-title {
  font-size: 1.5rem; font-weight: 500;
  line-height: 1.5; overflow-wrap: anywhere;
}
.work-caption time { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .work-button:hover .work-title {
    text-decoration: underline;
    text-underline-offset: .27em;
  }
  html[data-view="galerie"] .work-button:hover .work-title { font-family: var(--hover-font); }
}
.profile, .profile-podcast {
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 4.5rem);
}
.profile p { max-width: 69ch; margin: .9rem 0 1.45rem; line-height: 1.65; }
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; }
.portrait-link {
  display: inline-block; padding: .65rem .95rem; border: 1px solid var(--accent);
  text-decoration: none; color: var(--accent);
}
.portrait-link:hover { background: var(--accent); color: var(--paper); }
.detail-title .portrait-link { margin-top: 1.25rem; }
.profile-podcast h2 { margin-bottom: 1rem; font-size: 1.5rem; font-weight: 500; }
.podcast-episode {
  display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 1rem; align-items: start;
  width: min(100%, 51rem);
}
.episode-artwork { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; }
.profile-podcast iframe {
  display: block; width: 100%; max-width: 100%; border: 0; border-radius: .75rem;
}
.profile-podcast a { display: inline-block; margin-top: .55rem; font-size: .875rem; }
.site-footer {
  background: var(--footer-paper); border-top: 1px solid var(--line); color: var(--muted);
  padding-block: clamp(2.5rem, 6vw, 4.8rem) 1.85rem;
}
.footer-groups {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem;
  max-width: 65rem;
}
.footer-group { display: grid; grid-template-columns: 1.2rem 1fr; gap: .8rem; align-items: start; }
.footer-group h2 {
  writing-mode: vertical-rl; font-size: .8125rem; line-height: 1.2;
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.footer-group ul { padding: 0; margin: 0; list-style: none; display: grid; gap: .28rem; }
.site-footer a { overflow-wrap: anywhere; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.25rem;
  margin-top: clamp(2rem, 6vw, 4rem); padding-top: 1.15rem;
  border-top: 1px solid var(--line); font-size: .875rem;
}
.portrait-note {
  max-width: 75ch; margin: 2rem auto 0; border-top: 1px solid var(--line); padding-top: 1.25rem;
}
.portrait-note h2 { font-size: 1.25rem; font-weight: 500; margin-bottom: .55rem; }
.portrait-note p { font-size: 1.125rem; margin-bottom: .65rem; }
.portrait-note a { color: var(--accent); font-size: .875rem; }

html[data-view="index"] .site-header { border-bottom: 1px solid var(--line); }
html[data-view="index"] .work-section { border-top: 0; padding-top: 1.75rem; }
html[data-view="index"] .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
html[data-view="index"] .work-card { padding: .75rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
html[data-view="index"] .work-image { aspect-ratio: 1.16; padding: .45rem; }
html[data-view="index"] .work-caption { min-height: 2.5rem; }

.detail-page { border-top: 1px solid var(--line); padding-block: 1.25rem 3.5rem; }
.detail-index-link { color: var(--muted); }
.detail-title { margin-block: clamp(2rem, 5vw, 4rem) 1.5rem; }
.detail-title h1 { overflow-wrap: anywhere; }
.work-dates {
  display: flex; flex-wrap: wrap; gap: .35rem 1.5rem;
  margin: .9rem 0 0; font-size: .875rem;
}
.work-dates div { display: flex; flex-wrap: wrap; gap: .35rem; }
.work-dates dt { color: var(--muted); }
.work-dates dd { margin: 0; font-weight: 500; }
.detail-teaser { max-width: 62ch; font-size: 1.125rem; margin-top: 1.25rem; }
.detail-cover { display: grid; place-items: center; padding: clamp(.5rem, 3vw, 2rem); }
.detail-cover img { width: auto; max-height: 44rem; }
.article-copy { max-width: 75ch; margin: 2.1rem auto 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.article-copy p { margin: 1em 0; }
.article-copy img { margin: 1.5rem auto; }
.article-copy video { width: 100%; height: auto; }
.work-video { margin-block: 1em; }
.work-video video { display: block; }

.article-copy audio { max-width: 100%; }
.work-audio {
  width: min(100%, 39rem); margin-block: 0 clamp(1.75rem, 4vw, 3.5rem);
  padding: clamp(1rem, 3vw, 1.65rem); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent); background: var(--footer-paper);
}
.work-audio h2 { font-size: 1.14rem; font-weight: 600; }
.work-audio p { margin: .22rem 0 .9rem; color: var(--muted); font-size: .875rem; }
.work-audio audio { display: block; width: 100%; }

.detail-neighbours {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; border-top: 1px solid var(--line); margin-top: 3rem;
  padding-top: 1.15rem;
}
.detail-neighbours a { display: grid; gap: .3rem; text-decoration: none; }
.detail-neighbours a:last-child { text-align: right; }
.detail-neighbours a:hover strong { text-decoration: underline; }
.detail-neighbours span { font-size: .875rem; color: var(--muted); }

@media (max-width: 860px) {
  .gallery-hero { gap: 1.75rem; grid-template-columns: minmax(10rem, .85fr) minmax(0, 2fr); min-height: min(44rem, calc(100svh - 4.75rem)); }
  html[data-view="index"] .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header { min-height: 4.65rem; }
  .logo img { width: clamp(3.9rem, 16vw, 5.4rem); }
  .site-menu summary, .theme-toggle { padding-inline: .5rem; }
  .gallery-hero { grid-template-columns: 1fr; gap: 1.6rem; }
  .gallery-hero { min-height: auto; padding-block: 1.85rem 2.5rem; }
  .gallery-intro p { margin-block: .65rem 1.1rem; }
  .gallery-selection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem .55rem; }
  .work-grid, html[data-view="index"] .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { gap: 1.45rem .8rem; }
  .work-image { padding: .45rem; }
  .work-caption { flex-wrap: wrap; gap: .15rem .4rem; }
  .podcast-episode { grid-template-columns: 1fr; gap: .75rem; }
  .episode-artwork { width: min(8rem, 100%); }
  .footer-groups { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-group { grid-template-columns: 1fr; gap: .45rem; }
  .footer-group h2 { writing-mode: horizontal-tb; }
}

@media (max-width: 380px) {
  .header-actions { flex-wrap: wrap; justify-content: flex-end; row-gap: .2rem; }
  .theme-toggle, .site-menu summary { font-size: .875rem; }
  .language-switch a { padding-inline: .28rem; }
}

.footer-legal, .legal-jump { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; }
.legal-page { padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.legal-page h1 { font-size: 2rem; font-weight: 500; }
.legal-page .article-copy { margin-left: 0; }
.legal-page section { margin-top: 2.5rem; }
.legal-page section h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: .35rem; }
.legal-page address { font-style: normal; }
.legal-jump { font-size: .95rem; color: var(--accent); }
.cookie-banner, .cookie-dialog {
  background: var(--paper); color: var(--ink); border: 1px solid var(--rail);
  padding: clamp(.85rem, 2vw, 1.4rem);
  box-shadow: 0 8px 36px #10162029;
}
.cookie-banner {
  position: fixed; z-index: 6; inset-inline: 1rem; margin-inline: auto;
  bottom: max(1rem, env(safe-area-inset-bottom)); width: min(calc(100% - 2rem), 43rem);
  max-height: calc(100dvh - 2rem); overflow: auto;
}
.cookie-banner h2, .cookie-dialog h2 { font-size: 1.125rem; font-weight: 600; }
.cookie-banner p { margin-block: .45rem .85rem; }
.cookie-banner a, .podcast-settings { color: var(--accent); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.cookie-actions button {
  padding: .55rem .75rem; border: 1px solid var(--rail); background: var(--paper);
  color: var(--ink); min-height: 2.75rem; font-size: .875rem;
}
.cookie-actions button:hover { border-color: var(--accent); color: var(--accent); }
.cookie-dialog { width: min(calc(100% - 2rem), 31rem); max-height: calc(100dvh - 2rem); }
.cookie-dialog::backdrop { background: #10162099; }
.cookie-dialog p, .cookie-dialog label { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.cookie-dialog label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-dialog input { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--accent); }
.cookie-dialog .cookie-actions { margin-top: 1rem; }
.podcast-settings { display: inline-block; margin-bottom: .5rem; }

.opening-film {
  --film-poster: url('/media/openings/the-blue-room.webp');
  --wide-film-ratio: calc(1280 / 690);
}
.opening-visual {
  position: relative; isolation: isolate; overflow: hidden; container-type: size;
  height: min(77svh, 48rem); min-height: 23rem; background: #101620;
}
.opening-visual::before {
  content: ''; position: absolute; inset: -2rem; z-index: -1;
  background: var(--film-poster) center / cover no-repeat;
  filter: blur(28px); opacity: .5;
}
.opening-visual video { width: 100%; height: 100%; object-fit: contain; }
.opening-shade {
  position: absolute; inset: auto 0 0; height: 10rem; pointer-events: none;
  background: linear-gradient(transparent, rgba(10, 14, 22, .85));
}
.opening-actions {
  position: absolute; inset: auto 0 1.5rem; display: flex; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; color: white;
}
.opening-film:not(.portrait-film) .opening-actions {
  --film-inset: clamp(.65rem, 2cqw, 1.5rem);
  width: calc(min(100cqw, 100cqh * var(--wide-film-ratio)) - 2 * var(--film-inset));
  bottom: calc(max(0px, (100cqh - 100cqw / var(--wide-film-ratio)) / 2) + var(--film-inset));
}
.opening-work { font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 500; text-decoration: none; }
.opening-work:hover { text-decoration: underline; }
.opening-controls { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.opening-controls a, .opening-toggle {
  color: white; background: #101620b8; border: 1px solid #ffffff8c;
  font-size: .875rem; padding: .55rem .72rem; text-decoration: none;
}
.opening-controls a:hover, .opening-toggle:hover { background: #101620; }
.opening-actions :focus-visible { outline-color: white; }
@media (max-width: 620px) {
  .opening-visual { height: min(65svh, 37rem); min-height: 24rem; }
  .opening-actions { inset-block-end: 1rem; }
}
