/* Dragana Sapanjoš — site styles */
:root {
  --ground: #F6F4F0;
  --ground-2: #E8E5DF;
  --ink: #17181C;
  --muted: #66635D;
  --line: rgba(23, 24, 28, 0.16);
  --accent: #C23B22;
  --display: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --black: 900;
  --pad: clamp(20px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ===== NAV ===== */
.site-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px var(--pad);
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.site-nav .brand { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.site-nav .links { display: flex; gap: clamp(14px, 2.4vw, 32px); flex-wrap: wrap; justify-content: flex-end; }
.site-nav .links a[aria-current="page"] { color: var(--accent); }

/* ===== HOME ===== */
.hero { padding: clamp(24px, 5vw, 56px) var(--pad) clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(64px, 12.5vw, 184px); font-weight: var(--black);
  line-height: 0.88; letter-spacing: -0.035em;
}
.tagline {
  margin-top: 22px; font-family: var(--mono); font-size: clamp(14px, 1.4vw, 18px);
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
}
.tagline s { text-decoration-color: var(--accent); text-decoration-thickness: 2px; opacity: 0.55; }
.tagline .fix { color: var(--accent); }

.collage {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px) clamp(16px, 2vw, 24px);
  padding: 0 var(--pad);
}
.tile { display: flex; flex-direction: column; gap: 10px; align-self: start; }
.tile .frame { overflow: hidden; background: var(--ground-2); }
.tile img { width: 100%; height: auto; transition: transform 0.6s ease; }
.tile:hover img { transform: scale(1.025); }
.tile .cap { font-family: var(--mono); font-size: 13px; line-height: 1.4; }
.tile .cap span { color: var(--muted); }
.tile:hover .cap { color: var(--accent); }
/* 8 positions, repeating: three rows of staggered, smaller images */
.t1 { grid-column: 1 / span 3; }
.t2 { grid-column: 6 / span 3; margin-top: clamp(32px, 7vw, 110px); }
.t3 { grid-column: 10 / span 3; margin-top: clamp(12px, 2vw, 28px); }
.t4 { grid-column: 2 / span 3; margin-top: clamp(24px, 4vw, 64px); }
.t5 { grid-column: 6 / span 4; }
.t6 { grid-column: 10 / span 3; margin-top: clamp(40px, 8vw, 130px); }
.t7 { grid-column: 1 / span 4; margin-top: clamp(16px, 3vw, 48px); }
.t8 { grid-column: 7 / span 4; margin-top: clamp(40px, 6vw, 96px); }

.more {
  display: flex; justify-content: flex-end; padding: clamp(48px, 6vw, 88px) var(--pad) 0;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.more a { border-bottom: 1px solid var(--accent); padding-bottom: 4px; }

/* ===== INNER PAGES ===== */
.page { padding: clamp(24px, 5vw, 56px) var(--pad) 0; }
.page-title {
  font-size: clamp(56px, 9vw, 128px); font-weight: var(--black); line-height: 0.9; letter-spacing: -0.03em;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.prose { max-width: 680px; font-size: 19px; line-height: 1.65; }
.prose p + p { margin-top: 1em; }

/* CV */
.cv-section { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; border-top: 1px solid var(--line); padding: 28px 0 36px; }
.cv-section h2 { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.cv-list { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.cv-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.cv-list .y { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 3px; }
.cv-list .what { font-size: 17px; line-height: 1.45; }
.cv-list .note { display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.cv-legend { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 12px 0 0; }
.cv-year-group + .cv-year-group { margin-top: 6px; }

/* Works index */
.years { border-top: 1px solid var(--line); }
.year-block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.year-block .yr { font-size: clamp(32px, 4vw, 52px); font-weight: var(--black); line-height: 1; letter-spacing: -0.02em; }
.year-block ul { list-style: none; display: flex; flex-direction: column; }
.work-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  width: 100%; text-align: left; background: none; border: none; color: var(--ink); cursor: pointer;
  padding: 8px 0; font: inherit;
}
.work-row .ttl { font-size: 20px; line-height: 1.3; }
.work-row .whr { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; max-width: 380px; }
.work-row:hover .ttl { color: var(--accent); }
.work-preview { position: fixed; width: 320px; height: auto; max-height: 320px; object-fit: contain; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 50; box-shadow: 0 14px 34px rgba(0,0,0,0.18); }
.work-preview.on { opacity: 1; }

/* Work overlay */
#work { display: none; position: fixed; inset: 0; background: var(--ground); z-index: 100; overflow-y: auto; }
#work.open { display: block; }
.work-inner { max-width: 1100px; margin: 0 auto; padding: 28px var(--pad) 96px; }
.back { background: none; border: none; color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 0; }
.back:hover { color: var(--accent); }
.w-meta { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; margin-top: 36px; }
.w-title { font-size: clamp(40px, 6vw, 84px); font-weight: var(--black); line-height: 0.95; letter-spacing: -0.02em; margin: 10px 0 18px; }
.w-text { max-width: 680px; font-size: 18px; line-height: 1.7; margin-bottom: 40px; }
.w-text p + p { margin-top: 1em; }
.w-video { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 40px; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.w-video:hover { border-color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single img { max-height: 80vh; width: auto; }
.gallery figure { display: flex; flex-direction: column; gap: 6px; }
.gallery button { background: none; border: none; padding: 0; cursor: zoom-in; }
.gallery img { width: 100%; background: var(--ground-2); }
.gallery figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sub { margin-top: 28px; }
.sub > button { background: none; border: 0; color: var(--ink); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0; margin: 0; display: inline-flex; gap: 10px; align-items: center; }
.sub > button::after { content: '+'; font-size: 16px; font-weight: 400; }
.sub > button[aria-expanded="true"]::after { content: '\2013'; }
.sub > button[aria-expanded="true"] { margin-bottom: 22px; }
.sub > button:hover { color: var(--accent); }

/* Lightbox */
#lb { display: none; position: fixed; inset: 0; background: rgba(246, 244, 240, 0.98); z-index: 200; align-items: center; justify-content: center; }
#lb.open { display: flex; }
#lb img { max-width: 86vw; max-height: 84vh; object-fit: contain; }
#lb button { position: absolute; background: none; border: none; color: var(--ink); opacity: 0.6; cursor: pointer; font-family: var(--mono); font-size: 28px; padding: 16px 22px; }
#lb button:hover { opacity: 1; color: var(--accent); }
.lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0; top: 50%; transform: translateY(-50%); }
.lb-close { top: 8px; right: 8px; }
.lb-info { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 0 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line); color: var(--ink);
  font-family: var(--display); font-size: 19px; padding: 10px 0; outline: none; text-transform: none; letter-spacing: 0;
}
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button { align-self: flex-start; background: var(--ink); color: var(--ground); border: none; cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 26px; }
.contact-form button:hover { background: var(--accent); }
.contact-form button:disabled { opacity: 0.5; cursor: default; }
.form-msg { font-family: var(--mono); font-size: 13px; min-height: 1.4em; }

/* Footer */
.site-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: clamp(64px, 8vw, 120px) var(--pad) 36px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ===== MOBILE ===== */
@media (max-width: 760px) {
  .site-nav { flex-direction: column; align-items: flex-start; }
  .site-nav .links { justify-content: flex-start; }
  .collage { grid-template-columns: 1fr; }
  .tile { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .cv-section, .year-block { grid-template-columns: 1fr; gap: 14px; }
  .cv-list li { grid-template-columns: 1fr; gap: 2px; }
  .work-row { grid-template-columns: 1fr; gap: 2px; }
  .work-row .whr { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .work-preview { display: none; }
}

/* ===== HOME: PILE ===== */
body.home { overflow: hidden; height: 100vh; height: 100dvh; }
.pile { position: fixed; inset: 0; overflow: hidden; }
.card {
  position: absolute; left: 0; top: 0; display: block;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  background: var(--ground-2);
}
.card.dragging { transition: none; cursor: grabbing; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25); }
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.home-head {
  position: fixed; left: 0; top: 0; z-index: 100000;
  padding: 26px var(--pad) 0; display: flex; flex-direction: column; gap: 10px; max-width: 100%;
}
.home-name { font-size: clamp(30px, 3.6vw, 52px); font-weight: var(--black); line-height: 0.92; letter-spacing: -0.03em; }
.home-head .tagline { margin-top: 0; font-size: 14px; }
.home-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.pile-cap { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); min-height: 1.4em; }
.shuffle { position: fixed; top: 26px; right: var(--pad); z-index: 100000; background: var(--ground); border: 1px solid var(--ink); color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 14px; }
.shuffle:hover { background: var(--ink); color: var(--ground); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
@media (max-width: 700px) { .shuffle { top: auto; bottom: 16px; right: 16px; } .pile-cap { display: none; } }

/* Uniform thumbnails in work galleries: landscape 3:2, portrait 2:3 (full image in the viewer) */
.gallery img.land { aspect-ratio: 3 / 2; object-fit: cover; }
.gallery img.port { aspect-ratio: 2 / 3; object-fit: cover; }
/* DIS-REI: show the teeth in the thumbnail (crop the top of the case instead) */
.gallery img[src$="dragana-sapanjos-dis-rei-01.jpg"] { object-position: 50% 80%; }

/* Embedded video */
.w-embed { max-width: 1000px; aspect-ratio: 16 / 9; margin-bottom: 14px; background: var(--ground-2); }
.w-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.w-poster { position: relative; display: block; width: 100%; height: 100%; background: #111; }
.w-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.w-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(23, 24, 28, 0.78); }
.w-play::after { content: ''; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.w-poster:hover .w-play { background: var(--accent); }

/* Venues under the work title, one per line */
.w-where { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 0 0 36px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 820px; }
.w-where:empty { display: none; }

/* Work caption: materials, dimensions, duration — smaller than the text */
.w-caption { display: flex; flex-direction: column; gap: 2px; max-width: 680px; font-size: 14px; line-height: 1.5; letter-spacing: 0.01em; margin: 0 0 28px; }

.sub-cap { margin: 12px 0 0; }

/* Same header on every page as on the home: name top left, menu underneath */
.site-nav { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; padding: 26px var(--pad) 0; font-family: inherit; }
.site-nav .brand { font-size: clamp(30px, 3.6vw, 52px); font-weight: var(--black); line-height: 0.92; letter-spacing: -0.03em; text-transform: none; }
.site-nav .links { justify-content: flex-start; gap: 4px 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; }

/* Works already opened during this visit */
.work-row.seen .ttl { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.work-row.seen:hover .ttl { color: var(--accent); }

/* Statement sheet on the home pile */
.card.sheet {
  background: #fff; color: #17181C; padding: 1.6em 1.5em 1.8em; height: auto;
  font-size: 8px; line-height: 1.45; cursor: grab; overflow: hidden;
}
.card.sheet .sheet-title { font-size: 1em; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 1.2em; }
.card.sheet p { margin: 0 0 0.9em; }
.card.sheet p:last-child { margin-bottom: 0; }
.card.sheet.reading { cursor: default; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 2.2em 2.2em 2.4em; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); }
body.reading-on .card:not(.reading) { opacity: 0.12 !important; }
body.reading-on .home-head, body.reading-on .shuffle { opacity: 0.12; }
body.reading-on .pile { z-index: 100001; }

/* Dark home (trial) */
body.home.dark { --ground: #0E0E0F; --ground-2: #1C1C1E; --ink: #F2F0EC; --muted: #9A968F; --line: rgba(242, 240, 236, 0.18); --accent: #E5533A; }
body.home.dark .card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5); }
body.home.dark .shuffle { background: var(--ground); color: var(--ink); border-color: var(--ink); }
body.home.dark .shuffle:hover { background: var(--ink); color: var(--ground); }

/* Press: featured catalogue texts */
.cat-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.cat-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cat-cover { display: flex; align-items: flex-end; justify-content: flex-start; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 12px; }
.cat-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.12); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cat-card:hover .cat-cover img, .cat-card:focus-visible .cat-cover img { transform: translateY(-6px) rotate(-1.5deg); }
.cat-year { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.cat-title { font-size: 17px; line-height: 1.3; }
.cat-card:hover .cat-title { color: var(--accent); }
.cat-by { font-size: 13px; color: var(--muted); }
.reader { position: fixed; inset: 0; z-index: 1000; background: rgba(23, 24, 28, 0.55); display: flex; justify-content: center; align-items: flex-start; padding: 24px 16px; }
.reader[hidden] { display: none !important; }
.reader-in { position: relative; background: #fff; color: #17181C; width: 100%; max-width: 720px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: clamp(28px, 5vw, 56px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.reader-close { position: sticky; top: 0; float: right; margin: -12px -12px 0 0; background: #fff; border: 1px solid #17181C; color: #17181C; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
.reader-close:hover { background: #17181C; color: #fff; }
.reader-meta { font-size: 13px; color: #66635D; letter-spacing: 0.04em; }
.reader-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: var(--black); line-height: 1.05; letter-spacing: -0.02em; margin: 10px 0 6px; }
.reader-author { font-size: 15px; margin-bottom: 28px; }
.reader-body p { font-size: 17px; line-height: 1.65; margin-bottom: 1em; }
.reader-body h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 1.8em 0 0.8em; }
.reader-body h3:first-child { margin-top: 0; }
.reader-note { font-size: 13px; color: #66635D; margin-top: 24px; border-top: 1px solid rgba(23, 24, 28, 0.16); padding-top: 12px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 520px) { .reader { padding: 0; } .reader-in { max-height: 100vh; max-height: 100dvh; } }
/* Smaller catalogue covers (about a quarter of the first version) */
.cat-grid { grid-template-columns: repeat(auto-fill, 112px); gap: 28px 24px; }
.cat-cover { width: 112px; height: 150px; aspect-ratio: auto; margin-bottom: 10px; }
.cat-title { font-size: 14px; line-height: 1.3; }
.cat-year, .cat-by { font-size: 12px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(auto-fill, 100px); gap: 24px 18px; } .cat-cover { width: 100px; height: 134px; } }

/* Work page: score (the rule of the work) and credits */
.w-score { font-style: italic; font-size: 19px; line-height: 1.45; max-width: 680px; margin: -4px 0 22px; }
.w-credits { max-width: 820px; margin: 56px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 6px; font-size: 13px; line-height: 1.5; }
.w-credits div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
.w-credits dt { color: var(--muted); }
.w-credits dd { margin: 0; }
@media (max-width: 520px) { .w-credits div { grid-template-columns: 1fr; gap: 0; margin-bottom: 6px; } }
/* Score sits between the year and the title, small and muted like the venues */
.w-score { font-style: italic; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 820px; margin: 8px 0 0; }
/* Credits stacked like film credits: role in italics above, names below */
.w-credits { display: block; max-width: 680px; margin: 64px 0 0; padding-top: 22px; font-size: 15px; line-height: 1.45; }
.w-credits::before { content: 'Credits'; display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; }
.w-credits div { display: block; margin-bottom: 16px; }
.w-credits dt { font-style: italic; color: var(--muted); font-size: 14px; }
.w-credits dd { margin: 2px 0 0; }
/* Credits fold away: open them only if you want */
.w-credits-box { max-width: 680px; margin: 64px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }
.w-credits-box summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.w-credits-box summary::-webkit-details-marker { display: none; }
.w-credits-box summary::after { content: '+'; font-size: 16px; font-weight: 400; }
.w-credits-box[open] summary::after { content: '–'; }
.w-credits-box summary:hover { color: var(--accent); }
.w-credits-box .w-credits { margin: 22px 0 0; padding-top: 0; border: 0; }
.w-credits-box .w-credits::before { content: none; }
.w-credits-box[hidden] { display: none !important; }
/* Credit groups (Construction, Systems) like film credits */
.w-credits .cr-h { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 30px 0 14px; }
.w-credits .cr-gap { height: 14px; margin: 0; }
/* Opening image under the caption; with a video it links to it */
.w-hero { max-width: 1000px; margin: 0 0 40px; }
.w-hero a { display: block; color: inherit; }
.w-hero img { width: 100%; height: auto; display: block; }
.w-hero-label { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.w-hero a:hover .w-hero-label { color: var(--accent); }
.w-hero a:hover img { opacity: 0.92; }
/* Critical texts fold (above credits) */
.w-texts-box + .w-credits-box { margin-top: 0; }
.w-texts { list-style: none; margin: 22px 0 6px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.45; }
.w-texts li { display: flex; flex-direction: column; }
.w-texts .tx-title { font-weight: 500; }
.w-texts .tx-note { font-size: 14px; font-style: italic; color: var(--muted); }
.w-texts .tx-note em { font-style: normal; }
.w-texts-box[open] { padding-bottom: 22px; } .w-texts-box + .w-credits-box { border-top: 1px solid var(--line); }

/* ===== Single work pages (works/<slug>.html) ===== */
.work-page { padding-top: 8px; }
.work-page .back { display: inline-block; text-decoration: none; }
a.work-row { text-decoration: none; color: inherit; }
.w-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); }
.w-pn a { display: flex; flex-direction: column; gap: 4px; font-size: 17px; line-height: 1.3; text-decoration: none; }
.w-pn a span { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.w-pn a:hover { color: var(--accent); }
.w-pn .w-next { text-align: right; align-items: flex-end; }
@media (max-width: 520px) { .w-pn { grid-template-columns: 1fr; } .w-pn .w-next { text-align: left; align-items: flex-start; } }

/* Texts / Credits folds: no dividing lines (only the one above prev/next stays) */
.w-credits-box, .w-texts-box, .w-texts-box + .w-credits-box { border-top: 0; }
.w-texts-box + .w-credits-box { padding-top: 10px; }

/* Audio player (e.g. SIC MUNDUS choir) – sits under "Watch on YouTube" */
.w-audio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; font-size: 15px; }
.w-audio .au-btn { display: inline-flex; align-items: baseline; gap: 8px; background: none; border: 0; padding: 0 0 3px; border-bottom: 1px solid var(--accent); cursor: pointer; color: inherit; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.w-audio .au-ic { font-size: 11px; width: 1.6em; display: inline-block; }
.w-audio .au-btn:hover { color: var(--accent); }
.w-audio .au-title { color: var(--ink); }
.w-audio .au-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }

/* Spotify player for third-party songs (e.g. BACK TOGETHER AGAIN) */
.w-spotify { max-width: 460px; margin: 0 0 40px; }
.w-spotify iframe { display: block; border: 0; border-radius: 12px; }

/* Silent looping video in place of the hero image */
.w-hero video.w-loop { width: 100%; height: auto; display: block; background: #111; }
.w-audio a.au-btn { text-decoration: none; }
.w-texts .tx-link { align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.w-texts .tx-link:hover { color: var(--accent); }
button.tx-link { background: none; border: 0; border-bottom: 1px solid var(--accent); color: inherit; font-family: inherit; cursor: pointer; padding: 0 0 2px; }

/* "On loop while making it" – the song the artist played while making the work */
.w-loopsong { max-width: 680px; margin: 40px 0 0; font-size: 15px; line-height: 1.45; }
.w-loopsong .ls-lbl { font-style: italic; color: var(--muted); }
.w-loopsong a { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.w-loopsong a:hover { color: var(--accent); }
.w-related { max-width: 680px; margin: -8px 0 40px; font-size: 15px; }
.w-related .ls-lbl { font-style: italic; color: var(--muted); }
.w-related a { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.w-related a:hover { color: var(--accent); }
.w-text a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--accent); }
.w-text a:hover { color: var(--accent); }
.w-text a { border-bottom: 0; color: var(--accent); }
.w-text a:hover { color: var(--ink); }

/* Artist's own video file shown on the page (with sound, plays on demand) */
.w-hero-video { max-width: 720px; }
.w-hero-video video { width: 100%; height: auto; display: block; background: #111; }
