/* Spezialanfertigungen — light Villex design, cinematic layout */
:root {
  --sz-navy: var(--navy, #001e5a);
  --sz-ink: var(--ink, #0c1630);
  --sz-steel: var(--steel, #5a6b85);
  --sz-ice: var(--ice, #f3f7ff);
  --sz-mist: var(--mist, #e6eefc);
  --sz-blue: var(--blue, #0d5bff);
  --sz-line: rgba(0, 30, 90, 0.1);
  --sz-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.sz-page {
  background: #fff;
  color: var(--sz-ink);
}

.sz-main {
  overflow: clip;
}

/* —— Hero —— */
.sz-hero {
  position: relative;
  min-height: min(92svh, 920px);
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #fff;
}

.sz-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a1a3a;
}

.sz-hero__video,
.sz-hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.sz-hero__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  transform: scale(1.04);
  transition: opacity 0.55s ease;
}

.sz-hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sz-hero__video::-webkit-media-controls,
.sz-hero__video::-webkit-media-controls-enclosure,
.sz-hero__video::-webkit-media-controls-start-playback-button,
.sz-hero__video::-webkit-media-controls-overlay-play-button,
.sz-hero__video::-webkit-media-controls-panel {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sz-hero.is-video-ready .sz-hero__video {
  opacity: 1;
}

.sz-hero.is-video-ready .sz-hero__poster {
  opacity: 0;
  pointer-events: none;
}

.sz-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 30, 90, 0.28) 0%, rgba(0, 30, 90, 0.18) 40%, rgba(0, 20, 64, 0.72) 78%, rgba(0, 20, 64, 0.92) 100%);
}

.sz-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--container, 1180px));
  margin: 0 auto;
  padding: clamp(6rem, 14vw, 8.5rem) 0 clamp(2.75rem, 6vw, 4rem);
  display: grid;
  gap: 0.9rem;
}

.sz-brand {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  animation: sz-rise 0.95s var(--sz-ease) 0.12s forwards;
}

.sz-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  animation: sz-rise 1s var(--sz-ease) 0.28s forwards;
}

.sz-hero__lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  transform: translateY(20px);
  animation: sz-rise 1s var(--sz-ease) 0.45s forwards;
}

.sz-hero__scroll {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  opacity: 0;
  animation: sz-rise 0.95s var(--sz-ease) 0.7s forwards;
}

.sz-hero__scroll-line {
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  animation: sz-pulse 1.8s ease-in-out infinite;
}

@keyframes sz-rise {
  to { opacity: 1; transform: none; }
}

@keyframes sz-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* —— Statement —— */
.sz-statement {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: var(--sz-ice);
  border-bottom: 1px solid var(--sz-line);
}

.sz-statement__inner {
  width: min(100% - 2.5rem, 920px);
  margin: 0 auto;
  text-align: center;
}

.sz-statement h2 {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
  font-size: clamp(1.65rem, 3.8vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--sz-navy);
}

.sz-statement p {
  margin: 0.9rem auto 0;
  max-width: 38rem;
  color: var(--sz-steel);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* —— Project chapters —— */
.sz-chapter {
  position: relative;
  background: #fff;
  border-top: 1px solid var(--sz-line);
}

.sz-chapter__intro {
  width: min(100% - 2.5rem, var(--container, 1180px));
  margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 4.75rem) 0 clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 0.65rem;
}

.sz-chapter__index {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sz-blue);
}

.sz-chapter__intro h2 {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--sz-navy);
  max-width: 18ch;
}

.sz-chapter__intro p {
  margin: 0;
  max-width: 36rem;
  color: var(--sz-steel);
  font-size: 1rem;
  line-height: 1.55;
}

.sz-gallery {
  width: min(100% - 2.5rem, var(--container, 1180px));
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.65rem;
}

.sz-gallery figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sz-mist);
  aspect-ratio: 4 / 3;
  grid-column: span 3;
}

.sz-gallery__item {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sz-mist);
  aspect-ratio: 4 / 3;
  grid-column: span 3;
  cursor: zoom-in;
  display: block;
  width: 100%;
  isolation: isolate;
}

.sz-gallery__item:focus-visible {
  outline: 2px solid var(--sz-blue);
  outline-offset: 2px;
}

.sz-gallery img,
.sz-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--sz-ease);
}

.sz-gallery figure:hover img,
.sz-gallery__item:hover img {
  transform: scale(1.03);
}

/* 8 Bilder: 4 + 4 */
.sz-gallery[data-count="8"] figure,
.sz-gallery[data-count="8"] .sz-gallery__item {
  grid-column: span 3;
}

/* 7 Bilder: 4 + 3 */
.sz-gallery[data-count="7"] figure,
.sz-gallery[data-count="7"] .sz-gallery__item {
  grid-column: span 3;
}
.sz-gallery[data-count="7"] figure:nth-child(n + 5),
.sz-gallery[data-count="7"] .sz-gallery__item:nth-child(n + 5) {
  grid-column: span 4;
}

/* 6 Bilder: 3 + 3 */
.sz-gallery[data-count="6"] figure,
.sz-gallery[data-count="6"] .sz-gallery__item {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .sz-gallery figure,
  .sz-gallery__item,
  .sz-gallery[data-count="8"] figure,
  .sz-gallery[data-count="8"] .sz-gallery__item,
  .sz-gallery[data-count="7"] figure,
  .sz-gallery[data-count="7"] .sz-gallery__item,
  .sz-gallery[data-count="7"] figure:nth-child(n + 5),
  .sz-gallery[data-count="7"] .sz-gallery__item:nth-child(n + 5),
  .sz-gallery[data-count="6"] figure,
  .sz-gallery[data-count="6"] .sz-gallery__item {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .sz-gallery {
    gap: 0.5rem;
  }
}

/* —— CTA —— */
.sz-cta {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(13, 91, 255, 0.08), transparent 55%),
    var(--sz-ice);
  border-top: 1px solid var(--sz-line);
  text-align: center;
}

.sz-cta__inner {
  width: min(100% - 2.5rem, 680px);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.sz-cta h2 {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--sz-navy);
}

.sz-cta p {
  margin: 0;
  color: var(--sz-steel);
  line-height: 1.55;
}

.sz-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.sz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s var(--sz-ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sz-btn--primary {
  background: var(--sz-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 91, 255, 0.22);
}

.sz-btn--ghost {
  border: 1px solid rgba(0, 30, 90, 0.18);
  color: var(--sz-navy);
  background: #fff;
}

.sz-btn:hover {
  transform: translateY(-2px);
}

.sz-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--sz-ease), transform 0.85s var(--sz-ease);
}

.sz-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .sz-hero__video {
    display: none;
  }

  .sz-hero.is-video-ready .sz-hero__poster,
  .sz-hero__poster {
    opacity: 1 !important;
    pointer-events: auto;
    transform: none;
  }

  .sz-hero__scroll-line,
  .sz-brand,
  .sz-hero h1,
  .sz-hero__lede,
  .sz-hero__scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .sz-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
