/* MANYMEN — /shapingfutures/
   The only page in the theme's light scheme: #clapat-page-content.dark-content (dark text on #f9f9f9).
   site.css is written for the dark scheme, so every light-scheme override sits under .dark-content.
   Colours measured on the reference (tools/probe.cjs, reference/dumps/shapingfutures-*.json). */

/* ---------- light scheme: page background */
main:has(> .cd-main-content > .dark-content) { background-color: #f9f9f9; }

/* ---------- light scheme: header (black logo, dark links, dark burger); white again over the open menu */
.dark-content header:not(.over-sidebar) #logo .black-logo { opacity: 1; }
.dark-content header:not(.over-sidebar) #logo .white-logo { opacity: 0; }
.dark-content header:not(.over-sidebar) .button-text { color: #000; }
.dark-content header:not(.over-sidebar) #menu-burger span { background-color: #000; }
@media (min-width: 1025px) {
  .dark-content .flexnav > li > a { color: #222; }
  .dark-content .flexnav:hover > li > a { color: rgb(0 0 0 / .4); }
  .dark-content .flexnav > li:hover > a { color: #222; }
}

/* ---------- light scheme: hero */
.dark-content .hero-title,
.dark-content .hero-subtitle { color: #000; }
.dark-content #hero-footer { color: #222; }
.dark-content #hero-footer .button-icon,
.dark-content #hero-footer .button-text { color: #000; }

/* ---------- light scheme: next page teaser */
.dark-content #page-nav,
.dark-content .next-hero-subtitle,
.dark-content .page-title,
.dark-content .next-hero-title { color: #000; }

/* ---------- light scheme: footer */
.dark-content footer .button-icon,
.dark-content footer .button-text,
.dark-content .copyright,
.dark-content .copyright b,
.dark-content .copyright a,
.dark-content .socials-wrap,
.dark-content .socials li a { color: #000; }

/* ---------- portfolio grid (3 staggered cards) */
.sf-grid .row-inner { padding-bottom: 10px; }
.showcase-portfolio {
  position: relative; display: flex; flex-wrap: wrap;
  width: calc(100% - 80px); margin: 20px auto 0;
}
.showcase-portfolio .clapat-item {
  position: relative; z-index: 10; display: block; box-sizing: border-box;
  width: calc(33.3333% - 80px); height: 18vw; margin: 60px 40px 120px; padding: 0;
}
.showcase-portfolio .clapat-item:nth-of-type(6n+1) { width: calc(40% - 80px); height: 44vw; }
.showcase-portfolio .clapat-item:nth-of-type(6n+2) { width: calc(40% - 80px); height: 22vw; margin-left: calc(20% + 40px); }
.showcase-portfolio .clapat-item:nth-of-type(6n+3) { width: calc(60% - 80px); height: 33vw; margin-left: calc(20% + 40px); }

.showcase-portfolio .slide-inner { position: relative; display: block; width: 100%; height: 100%; cursor: pointer; color: #fff; }
.showcase-portfolio .img-mask { border-radius: 12px; }
.showcase-portfolio .section-image {
  position: relative; display: block; overflow: hidden; width: 100%; height: 100%;
  transform: scale(1.03); transition: transform .3s ease-out;
}
.showcase-portfolio .slide-inner:hover .section-image { transform: scale(1); }
.showcase-portfolio .item-image { z-index: 100; border-radius: 0; }

/* curtain strips (built by shapingfutures.js) that collapse when the card scrolls in */
.showcase-portfolio .curtains { position: absolute; inset: 0; z-index: 2; }
.showcase-portfolio .curtain-row { position: absolute; left: 0; width: 100%; overflow: hidden; background-color: #0c0c0c; transform-origin: center bottom; }

/* caption: title left and category right under the image, "MANYMEN" pill top left */
.showcase-portfolio .slide-caption {
  position: absolute; top: 0; left: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: space-between;
  width: 100%; height: calc(100% + 50px); padding: 0; text-align: left; color: #000; pointer-events: none;
}
.showcase-portfolio .slide-caption span { display: block; }
.showcase-portfolio .slide-title { overflow: hidden; font-size: 24px; font-weight: 500; line-height: 32px; color: #000; }
.showcase-portfolio .slide-cat {
  position: static; z-index: 10; overflow: hidden; padding: 0; border-radius: 0; background: none;
  font-size: 14px; font-weight: 500; line-height: 32px; color: #000; opacity: .4;
}
.showcase-portfolio .slide-date {
  position: absolute; top: 30px; left: 30px; bottom: auto; display: block; padding: 2px 16px; border-radius: 35px;
  font-size: 14px; line-height: 28px; color: #fff; background: rgb(255 255 255 / .2);
}
.showcase-portfolio .slide-date span { display: inline; }
/* desktop: captions appear on hover (shapingfutures.js); touch and <=1024 px: on scroll */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .showcase-portfolio .slide-caption { opacity: 0; }
}

/* cursor label [KLICK] on the cards (shared with the page-nav teaser; belongs in site.css) */
#ball.with-blur { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
#ball p {
  position: relative; display: flex; flex-direction: column; align-self: center; height: 16px; margin: 0 auto;
  font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; color: #fff;
}
#ball p.center-first::before,
#ball p.center-first::after { position: absolute; top: calc(50% - 10px); height: 20px; font-size: 12px; font-weight: 500; line-height: 20px; }
#ball p.center-first::before { content: "["; left: -8px; }
#ball p.center-first::after { content: "]"; right: -8px; }

/* ---------- prices (brown band) */
.sf-prices { background: var(--brown); }
.sf-prices .row-inner { padding: 20px 0; }
.sf-prices__title { font-size: var(--title); font-weight: 500; line-height: 1; color: #fff; }

@media (max-width: 1466px) {
  .showcase-portfolio { width: calc(100% - 60px); }
  .showcase-portfolio .clapat-item { width: calc(33.3333% - 60px); margin: 60px 30px 120px; }
  .showcase-portfolio .clapat-item:nth-of-type(6n+1) { width: calc(40% - 60px); height: 44vw; }
  .showcase-portfolio .clapat-item:nth-of-type(6n+2) { width: calc(40% - 60px); height: 22vw; margin-left: calc(20% + 30px); }
  .showcase-portfolio .clapat-item:nth-of-type(6n+3) { width: calc(60% - 60px); height: 33vw; margin-left: calc(20% + 30px); }
  .showcase-portfolio .slide-title { font-size: 20px; line-height: 28px; }
  .showcase-portfolio .slide-cat { line-height: 28px; }
}
@media (max-width: 1024px) {
  .showcase-portfolio { width: calc(100% - 40px); }
  .showcase-portfolio .clapat-item { width: calc(33.3333% - 40px); margin: 40px 20px 120px; }
  .showcase-portfolio .clapat-item:nth-of-type(6n+1) { width: calc(45% - 40px); height: 48vw; }
  .showcase-portfolio .clapat-item:nth-of-type(6n+2) { width: calc(45% - 40px); height: 25vw; margin-left: calc(10% + 20px); }
  .showcase-portfolio .clapat-item:nth-of-type(6n+3) { width: calc(60% - 40px); height: 33vw; margin-left: calc(20% + 20px); }
  .showcase-portfolio .section-image { transform: scale(1); }
  .showcase-portfolio .slide-title { font-size: 18px; }
}
@media (max-width: 767px) {
  .showcase-portfolio { width: calc(100% - 30px); }
  .showcase-portfolio .clapat-item,
  .showcase-portfolio .clapat-item:nth-of-type(n) { width: calc(100% - 30px); height: 55vw; margin: 30px 15px 60px; }
}
@media (max-width: 479px) {
  .showcase-portfolio { width: calc(100% - 20px); }
  .showcase-portfolio .clapat-item,
  .showcase-portfolio .clapat-item:nth-of-type(n) { width: calc(100% - 20px); height: 55vw; margin: 20px 10px 60px; }
}

/* ---------- light scheme: accordion base colour (the theme's #444 body text) */
.dark-content .accordion { color: #444; }
