/* Architectural visualisations carry the compact mark at the displayed crop. */
.design-visual {
  position: relative;
  display: block;
  isolation: isolate;
}
.design-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: clamp(9px, 1.1vw, 18px);
  bottom: clamp(9px, 1.1vw, 18px);
  width: clamp(65px, 6vw, 96px);
  aspect-ratio: 748 / 250;
  background: url("brand/watermark.svg?v=gold") center / contain no-repeat;
  pointer-events: none;
}
.zoom-photo { display: table; position: relative; max-width: 100%; margin: auto; }
#lightbox .zoom-photo img { width: auto; height: auto; max-width: 100%; max-height: min(68vh, 780px); }
.closebox { z-index: 2; }

/* The page title and its links stay in place while the photographs change. */
.hero[data-reel] { display: grid; grid-template-columns: minmax(0,1fr); min-height: 0; }
.hero-stage { grid-area: 1 / 1; align-self: stretch; position: relative; z-index: -2; overflow: hidden; min-height: clamp(500px,40vw,765px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.hero-slide[data-active="true"] { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.hero-slide[data-view="crane-wall"] img {
  width: auto; max-width: 100%; margin-left: auto; object-position: 31% center;
}
.hero-slide[data-view="dzielnica-nad-rzeka"] img { object-position: 43% 54%; }
.hero-slide[data-view="kampus-szkolny"] img { object-position: 27% 56%; }
.hero-slide[data-view="biblioteka-publiczna"] img { object-position: 61% 53%; }
@media (min-width: 761px) {
  .hero-slide[data-view="rodzimy-85-garden"] img {
    width: auto; max-width: 100%; margin-left: auto; object-fit: contain; object-position: right center;
    mask-image: linear-gradient(90deg, transparent, black 17%);
  }
}
@media (min-width: 1020px) {
  .hero-slide[data-view="crane-wall"] img {
    max-width: 80%; mask-image: linear-gradient(90deg, transparent, black 19%);
  }
}
.hero[data-reel] .hero-shade {
  position: relative; grid-area: 1 / 1; align-self: stretch;
  background: linear-gradient(90deg, #0c1519e8 0%, #10191bd4 23%, #11191896 43%, #11191818 70%, transparent 85%),
              linear-gradient(0deg, #10161888, transparent 20%);
  pointer-events: none;
}
.hero[data-reel] .hero-inner { grid-area: 1 / 1; align-self: center; padding-block: 66px 88px; }
.hero[data-reel] h1 { max-width: 15ch; font-size: clamp(3.3rem, 5.2vw, 5.55rem); }
.hero[data-reel] h1 span { color: #e9d0a4; }
.hero[data-reel] .hero-inner p { max-width: 43ch; text-wrap: pretty; }
.reel-controls button:focus-visible { outline: 2px solid #f4d9a9; outline-offset: -4px; }
.reel-controls[hidden] { display: none; }
.reel-controls {
  position: relative; grid-area: 1 / 1; justify-self: end; align-self: end;
  margin: 0 var(--g) 16px; z-index: 1; color: white;
  display: inline-flex;
  align-items: center;
  background: #121719e8;
  border: 1px solid #ffffff60;
  border-radius: 4px;
  flex-shrink: 0;
}
.reel-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.reel-controls button:hover, .reel-controls button:focus-visible { background: #484b49; }
.reel-controls [data-slide-play] { border-left: 1px solid #ffffff54; }
.reel-arrow { width: 8px; height: 8px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.reel-arrow.back { transform: rotate(-135deg); }
.play-state { width: 10px; height: 13px; border-inline: 3px solid currentColor; }
[data-paused="true"] .play-state { width: 0; height: 0; border: solid transparent; border-width: 7px 0 7px 11px; border-left-color: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide { transition: opacity .85s ease, visibility 0s linear .85s; }
  .hero-slide[data-active="true"] { transition-delay: 0s; }
  .hero-slide img { transition: transform 1.1s ease-out; transform: translateX(1.2%) scale(1.024); }
  .hero-slide[data-active="true"] img { transform: translateX(0) scale(1); }
}

/* Development programme and project brief. */
.subgrid .actions { margin-top: 26px; }
.factory-bridge { margin-top: 25px; }
.factory-bridge img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.dev-programme { background: var(--ink); color: white; padding-block: clamp(54px, 6.4vw, 102px); }
.programme-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.programme-intro p { max-width: 55ch; color: #eee9de; }
.programme-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); margin-top: 40px; }
.programme-lanes article { border-top: 2px solid var(--gold); padding: 19px 0 28px; }
.programme-lanes article > span { display: block; color: #e6cca0; font: 600 .875rem var(--ui); margin-bottom: 14px; }
.programme-lanes h3, .programme-join h3 { font-size: clamp(1.3rem, 2vw, 2rem); }
.programme-lanes p, .programme-join p { margin-top: 12px; max-width: 61ch; color: #e4e4e0; }
.programme-join { border-top: 1px solid #6b6f71; padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(28px, 6vw, 96px); }
.programme-join p { margin: 0; }
.dev-sectors { padding-block: clamp(48px, 5.3vw, 84px); }
.dev-sectors h2 { max-width: 22ch; }
.dev-sectors > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(20px, 3.5vw, 58px); margin-top: 32px; }
.dev-sectors article { border-top: 1px solid var(--line); padding-top: 18px; }
.dev-sectors p { margin-top: 12px; color: var(--steel); }
.build-times { padding-block: clamp(46px, 5.4vw, 86px); background: var(--warm); }
.build-times h2 { max-width: 26ch; }
.time-studies { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(26px, 5vw, 84px); margin-top: clamp(24px,3vw,44px); }
.time-studies article { border-top: 2px solid var(--gold); padding-top: 19px; }
.time-studies h3 { font-size: clamp(1.16rem,1.7vw,1.65rem); }
.time-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; margin: 14px 0 20px; color: var(--darkgold); }
.time-result strong { font: 650 clamp(3.2rem,5.1vw,5.2rem)/1 var(--head); letter-spacing: -.07em; font-variant-numeric: lining-nums; }
.time-result span { font: 550 1rem/1.4 var(--ui); }
.time-bars { list-style: none; margin: 0; padding: 0; }
.time-bars li + li { margin-top: 12px; }
.time-bars li > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: .95rem/1.35 var(--ui); }
.time-bars b { white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; }
.time-bars meter { --fill: #50575a; display: block; width: 100%; height: 8px; margin-top: 6px; appearance: none; border: 0; border-radius: 0; background: #dfdfd8; }
.time-bars li:last-child meter { --fill: #9b752c; }
.time-bars meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 0; background: #dfdfd8; }
.time-bars meter::-webkit-meter-optimum-value { background: var(--fill); }
.time-bars meter::-moz-meter-bar { background: var(--fill); }
.time-context { margin-block: 20px 10px; color: var(--steel); }
.time-source { display: inline-block; padding-block: 5px; color: var(--darkgold); font: 550 .875rem/1.4 var(--ui); text-underline-offset: 3px; }
.supplier-grid { grid-template-columns: repeat(auto-fill,minmax(165px,1fr)); }

/* Same launcher, panel geometry and choice order as the DEWERIS website. */
#cookie-launcher {
  position: fixed; left: max(16px,env(safe-area-inset-left)); bottom: max(16px,env(safe-area-inset-bottom));
  z-index: 12; display: grid; place-items: center; padding: 0; width: 48px; height: 48px;
  border: 1px solid #d7d6ce; border-radius: 50%; background: #fff; color: #946e23;
  box-shadow: 0 2px 8px #14251c38;
}
#cookie-launcher:hover { color: var(--ink); }
#preferences {
  position: fixed; inset: 0; margin: auto; width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: clamp(18px,4vw,32px); background: #fff; color: var(--ink);
  border: 0; border-radius: 18px; text-align: left; font: 1rem/1.45 var(--ui);
  box-shadow: 0 12px 48px #10231e44;
}
#preferences::backdrop { background: #18221f99; }
#preferences h2 { margin: 0 32px 8px 0; font: 700 1.5rem/1.2 var(--head); letter-spacing: -.035em; }
#preferences p { margin: 0 0 18px; }
#preferences a { color: #73551d; text-underline-offset: 3px; }
#preferences label {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 16px; align-items: center;
  border: 1px solid #d8dad7; border-radius: 12px; margin: 8px 0; padding: 14px; cursor: pointer;
}
#preferences label:has(input:disabled) { cursor: default; }
#preferences label strong { font: 650 1rem/1.25 var(--ui); }
#preferences label small { grid-column: 1; color: var(--steel); font: .875rem/1.4 var(--ui); }
#preferences label input {
  appearance: none; grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 26px; margin: 0;
  border: 1px solid #66746d; border-radius: 18px; cursor: pointer;
  background: radial-gradient(circle at 12px center,white 8px,transparent 9px),#68746e;
}
#preferences label input:checked { background: radial-gradient(circle at 30px center,white 8px,transparent 9px),#96722f; }
#preferences label input:disabled { opacity: .65; cursor: default; }
#preferences .actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
#preferences button { border: 0; border-radius: 9px; background: #765821; color: #fff; padding: 10px 12px; font: 600 .94rem/1.3 var(--ui); }
#preferences .actions button { flex: 1 1 135px; min-height: 42px; }
#preferences [data-save] { color: var(--ink); background: #eff1ef; }
#preferences [data-dismiss] { position: absolute; right: 8px; top: 8px; color: var(--steel); background: transparent; font-size: 1.45rem; min-width: 42px; }
#preferences button:hover { filter: brightness(.94); }
.footline { padding-bottom: 60px; }
@media (max-width: 760px), (orientation: landscape) and (max-height: 515px) and (max-width: 950px) {
  .hero[data-reel] { background: var(--ink); align-items: start; }
  .hero-stage { z-index: 0; min-height: 0; width: 100%; aspect-ratio: 4 / 3; align-self: start; touch-action: pan-y pinch-zoom; }
  .hero[data-reel] .hero-shade { display: none; }
  .hero-slide[data-view] img {
    width: 100%; max-width: none; margin: 0; object-fit: cover; object-position: 50% 50%;
    mask-image: none; transform: none; transition: none;
  }
  .hero-slide[data-view="crane-wall"] img { object-position: 43.5% center; }
  .hero-slide[data-view="dzielnica-nad-rzeka"] img { object-position: 43% center; }
  .hero-slide[data-view="hotel-nad-jeziorem"] img { object-position: 22% center; }
  .hero-slide[data-view="kampus-szkolny"] img { object-position: 40% center; }
  .hero-slide[data-view="biblioteka-publiczna"] img { object-position: 58% center; }
  .reel-controls {
    grid-area: 2 / 1; align-self: start; justify-self: end;
    margin: 2px var(--g) 0; background: transparent; border: 0;
  }
  .reel-controls button { width: 44px; height: 44px; border-radius: 50%; }
  .reel-controls .reel-arrow { width: 10px; height: 10px; }
  .reel-controls [data-slide-play] { border-left: 0; }
  .hero[data-reel] .hero-inner { grid-row: 3; padding-block: 0 28px; }
  .hero[data-reel] h1 { max-width: 100%; font-size: clamp(2.15rem,7.8vw,3.55rem); }
  .hero[data-reel] .hero-inner p { max-width: 52ch; margin-block: 14px 20px; font-size: 1rem; }
  .hero[data-reel] .actions { gap: 8px 12px; }
  .hero[data-reel] .btn { padding-inline: 13px; }
  .hero[data-reel] .btn.ghost { padding-inline: 0; background: transparent; border-color: transparent; }
  .hero[data-reel] .btn.ghost:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px), (prefers-reduced-motion: no-preference) and (orientation: landscape) and (max-height: 515px) and (max-width: 950px) {
  .hero-slide { transition: opacity .4s ease, visibility 0s linear .4s; }
  .hero-slide[data-active="true"] { transition-delay: 0s; }
}
@media (orientation: landscape) and (min-width: 560px) and (max-width: 950px) and (max-height: 515px) {
  .hero[data-reel] { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-content: center; }
  .hero-stage { grid-area: 1 / 2; }
  .reel-controls { grid-area: 2 / 2; }
  .hero[data-reel] .hero-inner { grid-area: 1 / 1 / 3 / 2; padding-block: 24px; }
  .hero[data-reel] h1 { font-size: clamp(1.8rem,4vw,2.55rem); }
}
@media (max-width: 760px) {
  .dev-programme { padding-block: 42px; }
  .programme-intro, .programme-join { grid-template-columns: 1fr; gap: 16px; }
  .programme-lanes { gap: 18px; margin-top: 28px; }
  .dev-sectors > div { grid-template-columns: 1fr; gap: 22px; }
  .time-studies { grid-template-columns: 1fr; gap: 32px; }
  .supplier-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 460px) {
  .programme-lanes { grid-template-columns: 1fr; gap: 0; }
  #preferences .actions { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
  html[data-page="contact"] .texthead h1 { font-size: 2.05rem; }
}
@media (forced-colors:active) {
  #preferences label input { appearance: auto; }
  #preferences button, #cookie-launcher { border: 1px solid ButtonText; }
}
@media print {
  #cookie-launcher,.reel-controls { display: none!important; }
  .hero[data-reel] { min-height: 0; }
  .hero-stage,.hero[data-reel] .hero-shade { display: none; }
  .hero[data-reel] .hero-inner { padding-block: 20px; }
}

.foot-social {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(1rem, 2vw, 2rem);
  margin-top: .25rem;
  border-top: 1px solid #57524a;
  padding-top: .65rem;
  font: 400 1.0625rem/1.55 var(--ui);
}
.foot-social strong {
  color: #e2cd9c;
  font-weight: 650;
}
.foot-social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .24em;
}
.foot-social a:hover,
.foot-social a:focus-visible {
  color: #e2cd9c;
}
@media (max-width: 480px) {
  .foot-social strong { flex-basis: 100%; }
}
