/* ------------------------------------------------------------------
   Additions for shifts.dance (2026) – loaded after style.css
   ------------------------------------------------------------------ */

/* Text logo "David Brandstätter / shifts" replaces the old SVG logo */
#logo {
  width: auto;
  height: auto;
  text-indent: 0;
}
#logo a {
  background: none;
  display: inline-block;
  font-family: 'GraebenbachMedium', Helvetica, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  white-space: nowrap;
  padding: 2px 0;
}
#logo .logo-slash { margin: 0 0.35em; letter-spacing: 0; }

/* Phones: smaller logo so it does not run into the menu button */
@media (max-width: 767px) {
  #logo { right: 56px; overflow: hidden; }
  #logo a { font-size: 0.8rem; letter-spacing: 0.18em; }
}

/* Opening curtain on the home page */
.drape {
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drape-logo {
  width: 300px;
  height: 300px;
  border: 3px solid #000;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'GraebenbachMedium', Helvetica, sans-serif;
  font-size: 1.6rem;
  line-height: 1.15;
}
.drape-logo .logo-slash { display: none; }
.drape-logo .logo-shifts { letter-spacing: 0.3em; margin-top: 0.3em; }

/* Home intro */
.intro p { font-size: 1.2rem; }

/* About page */
/* About top: phone = intro, photos, biography; big screen = photos float right, text flows around */
#about .about-top { display: flex; flex-direction: column; }
#about .about-intro  { order: 1; }
#about .about-photos { order: 2; }
#about .about-bio    { order: 3; }
#about .about-quote  { order: 4; }
@media (min-width: 992px) {
  #about .about-top { display: flow-root; }
  #about .about-photos { float: right; width: 50%; padding-left: 30px; }
  #about .about-quote { clear: both; }
}

/* About: portrait photos with thumbnails to switch (assets/js/portraits.js) */
#about .portraits { margin-bottom: 1rem; }
#about .portraits-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
#about .portraits-stage .portrait {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; opacity: 0; transition: opacity 0.5s ease; cursor: pointer;
}
#about .portraits-stage .portrait.is-active { opacity: 1; }
#about .portraits-credit { font-size: 0.75rem; color: #777; margin: 6px 0 0; }
#about .portraits-thumbs { display: flex; gap: 8px; margin-top: 8px; }
#about .portraits-thumbs button { flex: 1; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; border-bottom: 3px solid transparent; }
#about .portraits-thumbs button.is-active { opacity: 1; border-bottom-color: var(--accent); }
#about .portraits-thumbs button:hover { opacity: 1; }
#about .portraits-thumbs img { display: block; width: 100%; height: auto; max-width: none; }
@media (prefers-reduced-motion: reduce) { #about .portraits-stage .portrait { transition: none; } }
.zones .zone h3 { margin-bottom: 0.8rem; }
.zones .zone p { margin-bottom: 0.8rem; }
.zones .zone ul { margin: 0 0 0.8rem 1.1rem; list-style: disc; }
.zone-links { list-style: none !important; margin-left: 0 !important; }
.zone-links li { display: inline-block; margin-right: 0.8rem; }
.zone-links li::before { content: '→ '; }
.zones .col-md-4 { margin-bottom: 0; }
/* Fields of work: real grid instead of floats, so a taller box cannot leave a hole beside it.
   1 column on phones, 2 (pairs of similar height), 4 on very wide screens */
#about .zones::before, #about .zones::after { display: none; }
@media (min-width: 768px) {
  #about .zones { display: grid; grid-template-columns: 1fr 1fr; }
  #about .zones > div { float: none; width: auto; }
}
@media (min-width: 1700px) {
  #about .zones { grid-template-columns: repeat(4, 1fr); }
}

/* Vertical logo on wide screens (old site used a rotated SVG) */
@media (min-width: 768px) {
  #logo {
    writing-mode: vertical-rl;
    width: auto;
    height: auto;
  }
  #logo a { padding: 0 2px; }
}

/* Boxes with the coloured frame need inner spacing */
.fullborder {
  padding: 26px 28px 24px;
}
.fullborder > *:last-child { margin-bottom: 0; }
.fullborder.press-box { padding-bottom: 28px; }

/* Space between paragraphs in text blocks */
.cont p + p,
.contlegal p + p { margin-top: 0.7em; }
.cont h3 + p, .cont h4 + p { margin-top: 0.3em; }
.cont ul + p, .cont p + ul { margin-top: 0.7em; }

/* Supporter logos in black and white, as on the old site */
.sup-logo {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

/* About: full CV pop-up (assets/js/about.js) */
#about .cv-open {
  margin-top: 14px; padding: 6px 14px; font: inherit; font-size: 0.95rem;
  background: none; border: 1px solid currentColor; cursor: pointer;
}
#about .cv-open:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cv-dialog {
  width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 64px);
  margin: auto; padding: 0; border: 0; border-top: 3px solid var(--accent); background: #fff; color: #111;
}
.cv-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.cv-bar {
  position: sticky; top: 0; display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #eee;
}
.cv-bar button { font: inherit; font-size: 0.9rem; padding: 4px 12px; background: none; border: 1px solid #111; cursor: pointer; }
.cv-bar .cv-close { font-size: 1.4rem; line-height: 1; border: 0; }
.cv-body { padding: 20px 28px 32px; font-size: 0.95rem; line-height: 1.45; }
.cv-body h3 { font-size: 1.6rem; margin-bottom: 6px; }
.cv-body h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 26px 0 8px; padding-top: 6px; border-top: 3px solid var(--accent); display: inline-block; }
.cv-body p { margin-bottom: 0.6em; }
.cv-body ul { list-style: none; padding: 0; margin: 0 0 0.6em; }
.cv-body li { padding: 3px 0 3px 7.5em; text-indent: -7.5em; }
.cv-body li strong { display: inline-block; width: 7.5em; text-indent: 0; font-weight: normal; color: #666; }
.cv-body em { color: #666; }
@media (max-width: 600px) {
  .cv-body { padding: 16px; }
  .cv-body li { padding-left: 0; text-indent: 0; }
  .cv-body li strong { display: block; width: auto; }
}

/* Printing / saving the CV as PDF: only the CV, no menu, no buttons */
@media print {
  body.cv-printing > *:not(.cv-dialog) { display: none !important; }
  body.cv-printing .cv-dialog { position: static; display: block; width: auto; max-height: none; border: 0; overflow: visible; }
  body.cv-printing .cv-bar { display: none; }
  body.cv-printing .cv-body { padding: 0; font-size: 10.5pt; }
  body.cv-printing li { break-inside: avoid; }
}

/* Decision field page (site/templates/decision-field.php): sober, for a different audience than the art pages */
.decision .df-head { margin: 24px 0 28px; padding-bottom: 18px; border-bottom: 3px solid var(--accent); }
.decision .df-sign { display: block; width: min(320px, 70%); height: auto; margin-bottom: 22px; color: #111; }
.decision .df-title { font-size: 2.4rem; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.1; }
.decision .df-tagline { margin-top: 8px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.14em; }
.decision .df-intro { max-width: 40em; font-size: 1.2rem; line-height: 1.45; margin-bottom: 24px; }
.decision .df-cta {
  display: inline-block; padding: 10px 22px; background: var(--accent); color: var(--on-accent);
  font-size: 1rem; text-decoration: none;
}
.decision .df-cta:hover { filter: brightness(0.95); }
.decision .df-grid { display: grid; grid-template-columns: 1fr; gap: 0 30px; margin-top: 44px; }
@media (min-width: 768px) { .decision .df-grid { grid-template-columns: 1fr 1fr; } }
.decision .df-box { border-top: 3px solid var(--accent); padding-top: 10px; margin-bottom: 32px; }
.decision .df-box h3, .decision .df-section-title { font-size: 1.25rem; margin-bottom: 12px; }
.decision .df-box p + p { margin-top: 0.7em; }
.decision .df-box ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.decision .df-box li { margin-bottom: 0.4em; }
.decision .df-formats-wrap { border-top: 3px solid var(--accent); padding-top: 10px; }
.decision .df-formats { display: grid; grid-template-columns: 1fr; gap: 16px 30px; }
@media (min-width: 600px) { .decision .df-formats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .decision .df-formats { grid-template-columns: repeat(4, 1fr); } }
.decision .df-format h4 { font-size: 1.05rem; margin-bottom: 4px; }
.decision .df-format p { color: #444; }
.decision .df-end { margin: 16px 0 40px; padding-top: 16px; border-top: 3px solid var(--accent); }
.decision .df-end p { margin-bottom: 14px; max-width: 40em; }
.decision .df-box a { text-decoration: underline; }

/* Practices and passions: longer personal texts, so each entry gets the full width in two text columns */
#about .interests::before, #about .interests::after { display: none; }
@media (min-width: 768px) {
  #about .interests > div { float: none; width: 100%; }
  #about .interests .interest { column-count: 2; column-gap: 30px; }
  #about .interests .interest h3 { column-span: all; }
}

/* Project pages: no black frame around photos and videos, as on the piece pages.
   The black stays only as a stage behind images that don't fill the box */
.mediabox { padding: 0; }

/* Closing line on the Pieces and Projects lists */
.archive-note { margin-top: 48px; padding-top: 14px; border-top: 1px solid #ddd; font-size: 0.9rem; color: #555; }
.archive-note p { max-width: 46em; }
.archive-note a { text-decoration: underline; }

/* Collaborators fold-out on About: each category in its own paragraph */
.about-collaborators .fold-body p { max-width: 62em; }

/* Fascia research: the atlas body stands on the right and the text flows around it (2026-11-05) */
.fascia-page::after { content: ''; display: block; clear: both; }
.fascia-hero { margin: 0 0 18px; text-align: center; }
.fascia-hero img { display: block; height: auto; margin: 0 auto; }
.fascia-hero figcaption { margin-top: 8px; font-size: 0.9rem; line-height: 1.35; }
.fascia-hero figcaption a { font-family: 'GraebenbachMedium', Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.fascia-hero figcaption span { color: #666; }
/* phones: after the title, before the text, centred */
@media (max-width: 767px) {
  .fascia-hero img { width: auto; max-width: 62%; max-height: 72vh; }
}
/* wider screens: floated right, the text wraps around it */
@media (min-width: 768px) {
  .fascia-hero { float: right; width: 260px; margin: 0 0 24px 40px; }
  .fascia-hero img { width: 100%; }
}
@media (min-width: 1200px) {
  .fascia-hero { width: 300px; margin-left: 56px; }
}
/* the text flows around the image and continues below it; the image's white background covers the fold-out lines */
.fascia-chapters { margin-top: 32px; }
@media (min-width: 768px) {
  .fascia-hero { position: relative; z-index: 1; background: #fff; margin-left: 0; padding: 0 0 0 40px; box-sizing: content-box; }
}
@media (min-width: 1200px) {
  .fascia-hero { margin-left: 0; padding-left: 56px; }
}

/* Fascia research: gallery of views from the atlas (black images, open full screen) */
.fascia-gallery { clear: both; margin: 48px 0 24px; padding-top: 14px; border-top: 3px solid var(--accent, #2bff88); }
.fascia-gallery h2 { font-family: 'GraebenbachMedium', Helvetica, sans-serif; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 14px; }

/* Projects overview: one project per row (2026-11-05) */
.proj-rows .proj-row { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; padding: 22px 0; border-top: 3px solid var(--accent); color: inherit; text-decoration: none; }
.proj-rows .proj-row-img img { display: block; width: 100%; height: auto; }
.proj-rows h4 { margin: 0 0 4px; }
.proj-rows .proj-meta { display: block; color: #666; font-size: 0.9rem; margin-bottom: 8px; }
.proj-rows .proj-line { display: block; line-height: 1.45; }
.proj-rows .proj-more { display: inline-block; margin-top: 12px; font-size: 0.9rem; border-bottom: 1px solid var(--accent); }
@media (max-width: 767px) { .proj-rows .proj-row { grid-template-columns: 1fr; gap: 12px; } }

.proj-rows { margin-bottom: 32px; }
.proj-rows .proj-row:last-child { border-bottom: 0; }
.proj-rows .proj-row:hover .proj-more { color: var(--accent); }
/* Projects rows: grey image baked on the server, colour image fades in (only opacity animates: smooth scrolling, 2026-11-05) */
.proj-rows .proj-row-img { position: relative; display: block; aspect-ratio: 3 / 2; background: #eee; overflow: hidden; }
.proj-rows .proj-row-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none !important; -webkit-filter: none !important; opacity: 1; transition: none; }
.proj-rows .proj-row-img .pi-c { opacity: 0; transition: opacity .15s ease; }
.proj-rows .proj-row:hover .pi-c, .proj-rows .proj-row:focus-visible .pi-c { opacity: 1; }
/* Pieces tiles: same smooth grey → colour technique as the Projects rows */
.thumbpage .thumb-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.thumbpage .thumb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none !important; -webkit-filter: none !important; opacity: 1; transition: none; }
.thumbpage .thumb-img .pi-c { opacity: 0; transition: opacity .15s ease; }
.thumbpage:hover .thumb-img .pi-c { opacity: 1; }

/* Smoother scrolling in every browser (2026-11-05): the fixed header is opaque and gets its own layer,
   so the browser does not have to blend it with the page on every scroll step */
header { background: #fff; will-change: transform; }
.proj-rows .proj-row, .thumbpage { contain: paint; }

/* Social media links on the contact page (2026-11-06) */
.social-links { list-style: none; margin: 0; padding: 0; }
.social-links li { margin: 0 0 0.4em; }

/* Short press quotes in running text, e.g. under the history of shifts on About (2026-11-07) */
blockquote.press-quote { margin: 1.4em 0 0; padding: 0 0 0 14px; border-left: 3px solid var(--accent); font-size: inherit; line-height: inherit; }
blockquote.press-quote p { font-style: italic; margin: 0; }
blockquote.press-quote p.quote-source { font-style: normal; font-size: 0.85em; color: #666; margin-top: 0.3em; }

/* Contact: shifts logo (2026-11-09) */
.contact-logo img { display: block; width: 170px; height: auto; margin: 6px 0 10px; }
@media (min-width: 768px) { .contact-logo img { width: 200px; } }

/* Contact: subscribe by email (2026-11-09) */
.contact-news p { max-width: 36em; }
.contact-news .news-cta { display: inline-block; margin-top: 4px; padding: 9px 20px; background: var(--accent); color: #fff; text-decoration: none; }
.contact-news .news-cta:hover { filter: brightness(0.95); }
.contact-news .news-topics { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 6px 24px; }
@media (min-width: 600px) { .contact-news .news-topics { grid-template-columns: 1fr 1fr; } }
.contact-news .news-topics label { display: flex; gap: 8px; align-items: center; font-weight: normal; cursor: pointer; margin: 0; }
.contact-news .news-topics input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

/* Pieces overview: touring status under the title (2026-11-09) */
.thumb-touring { margin: -4px 0 0; font-size: 0.85rem; color: #555; }
.thumb-touring::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; }
.thumb-touring.touring--request::before { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
