/* ═══════════════════════════════════════════════
   WALLZ — STYLE.CSS
   ═══════════════════════════════════════════════ */

:root {
  --black: #000000;
  --white: #ffffff;
  --grey-mid: rgba(255,255,255,0.5);
  --grey-dim: rgba(255,255,255,0.15);
  --font: 'Arimo', sans-serif;
  --nav-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body { background: var(--black); color: var(--white); font-family: var(--font); overflow-x: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Force SVG icons white */
.dl-icons img,
.dl-series img {
  filter: invert(1) brightness(2);
}

.dl-icons-row img {
  filter: brightness(0) invert(1);
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 40px;
  display: flex;
  align-items: center;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.06);;
}

.nav-logo { display: flex; align-items: center; height: 60px; }

.nav-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%;
  /* Never taller than the 16:9 artwork, so the headline baked into
     slide 1 is never cropped at the sides */
  height: min(110vh, 56.25vw);
  min-height: 560px;
  overflow: hidden;
  background: var(--black);
  container-type: size;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Live text over hero 1. .hero-art is a 16:9 box sized and centred exactly
   like the cover-fitted image, so % positions and cqi font sizes stay locked
   to the artwork at any screen size. Values measured from the client file
   (6000 × 3375): left 338px, first line box top 2098px, 232px type. */
.hero-art {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, 177.78cqh);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  container-type: inline-size;
  pointer-events: none;
}

.hero-headline {
  position: absolute;
  left: 5.633%;
  top: 62.17%;
  margin: 0;
  font-family: 'II Vorkurs', var(--font);
  font-weight: 700;
  font-size: 3.865cqi;
  line-height: 0.9617;
  letter-spacing: -0.0668em;
  white-space: nowrap;
  color: var(--white);
}

/* Top-right episode label */
.hero-toplabel {
  position: absolute;
  top: 72px;
  right: 40px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  z-index: 2;
}

/* Bottom-left info block */
.hero-info {
  position: absolute;
  bottom: 190px;
  left: 80px;
  right: 80px;
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  max-width: 560px;
  z-index: 2;
}

/* Series logo — linked */
.hero-info > a {
  display: inline-block;
}

.hero-series-logo {
  height: auto;
  width: 200px;
  object-fit: contain;
  object-position: left center;
  filter: invert(1) brightness(2);
  max-height: 90px;
  margin-bottom: 8px;
}

/* Wallz Tablets — wide logo, control by width */
.hero-slide[data-index="1"] .hero-series-logo {
  width: 200px;
  max-height: none;
}

/* Places Worldwide — tall/stacked logo, control by height */
.hero-slide[data-index="2"] .hero-series-logo {
  width: auto;
  height: 160px;
  max-height: 160px;
}

/* Instagram row */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-ig-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--white);
}

.hero-handle {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  transition: opacity 0.2s;
}

.hero-handle:hover { opacity: 0.75; }

.hero-dot-sep {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
}

.hero-platform-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
}

/* Description */
.hero-desc {
  font-size: 17px;
  line-height: 1.2;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
}

/* CTA — white fill, black text */
.hero-cta-wrap {
  position: absolute;
  bottom: 96px;
  left: 80px;
  z-index: 10;
}

.hero-cta {
  display: inline-block;
  padding: 20px 52px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.hero-cta:hover { opacity: 0.88; }

/* ══════════════════════════════════════
   TAGLINE BAND
══════════════════════════════════════ */
#tagline {
  padding: 80px 40px;
  text-align: center;
  background: var(--white);
  color: var(--black);
}

#tagline p {
  font-size: clamp(16px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.45;
  max-width: 980px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════
   FONT: II VORKURS
══════════════════════════════════════ */
@font-face {
  font-family: 'II Vorkurs';
  src: url('../assets/fonts/II%20Vorkurs%20Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'II Vorkurs';
  src: url('../assets/fonts/II%20Vorkurs%20Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* ══════════════════════════════════════
   PROJECT APPLICATION FORM
══════════════════════════════════════ */
#apply {
  background: var(--white);
  color: #1d1d1f;
  padding: 100px 40px 120px;
}

.apply-inner {
  max-width: 960px;
  margin: 0 auto;
}

.apply-intro {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: #1d1d1f;
  margin-bottom: 64px;
  max-width: 600px;
}

.wf-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

.wf-progress-bar {
  height: 1px;
  background: rgba(0,0,0,0.1);
  flex: 1;
  overflow: hidden;
}

.wf-progress-fill {
  height: 100%;
  background: #1d1d1f;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}

.wf-progress-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.35);
  margin-left: 16px;
  white-space: nowrap;
}

.wf-steps {
  display: flex;
  flex-direction: column;
}

.wf-step {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.wf-step:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.wf-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
}

.wf-step-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.wf-step-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.25);
  flex-shrink: 0;
  width: 24px;
}

.wf-step-q {
  font-family: var(--font);
  font-weight: 600;
  font-size: 22px;
  color: #1d1d1f;
  line-height: 1.3;
}

.wf-step-q.answered {
  color: rgba(0,0,0,0.4);
}

.wf-step-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wf-step-check.done {
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.wf-step-check.done::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.wf-step-body {
  padding: 0 0 28px 44px;
  display: none;
}

.wf-step-body.active {
  display: block;
}

.wf-hint {
  font-size: 15px;
  color: rgba(0,0,0,0.4);
  margin-bottom: 16px;
  margin-top: -4px;
}


.wf-options {
  display: flex;
  flex-direction: column;
}

.wf-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.wf-option:last-child { border-bottom: none; }

.wf-radio, .wf-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0,0,0,0.2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.wf-radio { border-radius: 50%; }
.wf-checkbox { border-radius: 3px; }

.wf-radio.sel {
  border-color: #1d1d1f;
  background: #1d1d1f;
}

.wf-radio.sel::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
}

.wf-checkbox.sel {
  border-color: #1d1d1f;
  background: #1d1d1f;
}

.wf-checkbox.sel::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.wf-option-label {
  font-size: 18px;
  color: rgba(0,0,0,0.6);
  line-height: 1.4;
}

.wf-option.selected .wf-option-label {
  color: #1d1d1f;
}

.wf-answer-preview {
  font-size: 14px;
  color: rgba(0,0,0,0.32);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.wf-select {
  width: 100%;
  max-width: 360px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.6);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 0;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.wf-select:focus { border-bottom-color: #1d1d1f; }
.wf-select option { background: #fff; color: #1d1d1f; }

/* Custom Select Dropdown */
.wf-custom-select {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-bottom: 8px;
}

.wf-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  color: rgba(0,0,0,0.4);
  transition: border-color 0.2s;
  user-select: none;
}

.wf-custom-select-trigger:hover {
  border-bottom-color: #1d1d1f;
}

.wf-custom-select.open .wf-custom-select-trigger {
  border-bottom-color: #1d1d1f;
  color: #1d1d1f;
}

.wf-select-arrow {
  width: 16px;
  height: 16px;
  color: rgba(0,0,0,0.35);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.wf-custom-select.open .wf-select-arrow {
  transform: rotate(180deg);
}

.wf-custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  z-index: 50;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.wf-custom-select.open .wf-custom-select-dropdown {
  display: block;
}

.wf-custom-option {
  padding: 13px 18px;
  font-family: var(--font);
  font-size: 15px;
  color: rgba(0,0,0,0.6);
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.15s, color 0.15s;
}

.wf-custom-option:last-child {
  border-bottom: none;
}

.wf-custom-option:hover {
  background: #f5f5f5;
  color: #1d1d1f;
}

.wf-custom-option.selected {
  color: #1d1d1f;
  font-weight: 600;
  background: #f0f0f0;
}

.wf-text-area {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  color: #1d1d1f;
  font-family: var(--font);
  font-size: 18px;
  padding: 14px 0;
  outline: none;
  resize: none;
  min-height: 100px;
  transition: border-color 0.2s;
  line-height: 1.6;
}

.wf-text-area:focus { border-bottom-color: #1d1d1f; }
.wf-text-area::placeholder { color: rgba(0,0,0,0.2); }

.wf-text-input {
  width: 100%;
  max-width: 400px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  color: #1d1d1f;
  font-family: var(--font);
  font-size: 18px;
  padding: 14px 0;
  outline: none;
  transition: border-color 0.2s;
  display: block;
}

.wf-text-input:focus { border-bottom-color: #1d1d1f; }
.wf-text-input::placeholder { color: rgba(0,0,0,0.2); }

.wf-input-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin-bottom: 8px;
  display: block;
}

.wf-input-group {
  margin-bottom: 28px;
}

.wf-next {
  display: inline-block;
  padding: 15px 40px;
  background: #1d1d1f;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 100px;
}

.wf-next:hover { opacity: 0.75; }
.wf-next:disabled { opacity: 0.25; cursor: default; }

.wf-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.wf-back {
  display: inline-block;
  padding: 15px 32px;
  background: transparent;
  color: rgba(0,0,0,0.4);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 100px;
}

.wf-back:hover { border-color: rgba(0,0,0,0.4); color: #1d1d1f; }

.wf-submit {
  display: inline-block;
  padding: 18px 56px;
  background: #1d1d1f;
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 100px;
}

.wf-submit:hover { opacity: 0.75; }
.wf-submit:disabled { opacity: 0.25; cursor: default; }

.wf-max-note {
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  margin-top: 10px;
  letter-spacing: 0.03em;
  min-height: 16px;
}

.wf-success {
  display: none;
  text-align: center;
  padding: 80px 0;
}

.wf-success-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.wf-success-icon::after {
  content: '';
  display: block;
  width: 11px;
  height: 20px;
  border: 2px solid #1d1d1f;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -2px);
}

.wf-success h3 {
  font-family: 'II Vorkurs', var(--font);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #1d1d1f;
}

.wf-success p {
  font-size: 15px;
  color: rgba(0,0,0,0.5);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto;
}

.wf-success-state .apply-intro,
.wf-success-state .wf-progress {
  display: none;
}

@media (max-width: 768px) {
  #apply { padding: 80px 20px 100px; }
  .wf-step-body { padding: 0 0 24px 0; }
  .wf-step-left { gap: 14px; }
}

/* ══════════════════════════════════════
   GALLERY SLIDESHOW
══════════════════════════════════════ */
#gallery {
  background: var(--black);
}

.gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
  touch-action: pan-y;
}

.gallery--mobile { display: none; aspect-ratio: 9 / 16; }

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
}

.gallery-slide img[data-src] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Series slide: live logos over the text-free image. The slide is exactly
   16:9 like the artwork, so every value is a % of the client file
   (6000 × 3375). Font sizes use cqi (1cqi = 1% of slide width). */
.gallery-slide--series > :not(img[data-src]) {
  position: absolute;
  pointer-events: none;
}

.series-logo-art { height: auto; }

/* Logos ship dark; the Design Language one has its own white version */
.series-logo-art:not(.series-logo-art--dl) { filter: brightness(0) invert(1); }

.series-logo-art--dl       { left: 79.95%;  top: 15.585%; width: 15.317%; }
.series-logo-art--natures  { left: 2.483%;  top: 84.563%; width: 14.85%; }
.series-logo-art--timeplay { left: 21.35%;  top: 83.407%; width: 17.1%; }
.series-logo-art--places   { left: 45.25%;  top: 71.526%; width: 9.533%; }
.series-logo-art--feelings { left: 62.25%;  top: 84.563%; width: 15.833%; }
.series-logo-art--iconica  { left: 80.317%; top: 82.104%; width: 19.655%; }

.series-ig-icon {
  left: 79.883%;
  top: 7.259%;
  width: 3.067%;
  height: auto;
  color: var(--white);
}

.series-ig-name,
.series-ig-handle {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--white);
}

.series-ig-name   { left: 83.483%; top: 7.321%;  font-size: 1.772cqi; }
.series-ig-handle { left: 83.597%; top: 10.67%;  font-size: 1.1127cqi; }

/* Frosted-glass arrow buttons */
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(20,20,20,0.28);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.gallery-arrow svg { width: 24px; height: 24px; }

.gallery-arrow--prev { left: 40px; }
.gallery-arrow--next { right: 40px; }

.gallery-arrow:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-50%) scale(1.06);
}

.gallery-arrow:active { transform: translateY(-50%) scale(0.96); }

.gallery-arrow:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track { transition: none; }
}

/* ══════════════════════════════════════
   DESIGN LANGUAGE
══════════════════════════════════════ */
#design-language {
  background: var(--black);
  padding: 60px 40px 120px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.dl-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.dl-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0;
}

.dl-main-logo {
  height: 68px;
  width: auto;
  filter: invert(1) brightness(2);
  margin-bottom: 20px;
}

/* Sub-header row: "Design Language By Wallz" left, "Wallz Creative Design" right */
.dl-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #cacacb;
  margin-bottom: 0;
  width: 100%;
}

.dl-subtitle {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #cacacb;
}

/* Series logos row — generous vertical padding, no border of its own */
.dl-series {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 52px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dl-series::-webkit-scrollbar { display: none; }

.dl-series-left,
.dl-series-right {
  display: flex;
  align-items: center;
  gap: 80px;
  flex: 1;
}

.dl-series-right {
  justify-content: flex-end;
}

.dl-series-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 60px;
}

.series-logo {
  height: 18px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
  filter: invert(1) brightness(2);
}

.series-logo--hero {
  height: 80px;
  width: auto;
}

.series-logo:hover { opacity: 1; }

/* All logos share the same height baseline */
.series-logo {
  height: 18px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.series-logo[alt="PLACES WORLDWIDE"] {
  height: 80px;
  width: auto;
}

.series-logo:hover { opacity: 1; }

.dl-divider { display: none; }

/* Icons section */
.dl-icons-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

/* Label row — rule below only */
.dl-icons-labels-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: none;
  border-bottom: 2px solid #cacacb;
  margin-bottom: 40px;
}

.dl-icons-label {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #cacacb;
  margin-bottom: 0;
}

/* Two icon groups: left block + right block */
.dl-icons-groups-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
}

.dl-icons-group:first-child { flex: 0 0 auto; }
.dl-icons-group:last-child  { flex: 0 0 auto; }

/* Home area icons — explicit 3+4 rows */
.dl-icons-group:first-child .dl-icons {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dl-icons-row {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.dl-icons-row:first-child {
  margin-bottom: 5px;
}

.dl-icons-row .icon-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* Intelligence icons — single tight row */
.dl-icons-group:last-child .dl-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 1px;
  align-items: center;
}

.icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Home icons size */
.dl-icons-group:first-child .icon-item img,
.dl-icons-row .icon-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* Intelligence icons — compact, roughly same total height as home block */
.dl-icons-group:last-child .icon-item img {
  width: 70px;
  height: 110px;
  object-fit: contain;
}

.icon-item span { display: none; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 120px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 100vh;
}

.footer-copy { display: none; }

.footer-disclaimer {
  font-size: 15px;
  line-height: 1.35;
  color: #cacacb;
  max-width: 1100px;
}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {

  #nav { padding: 0 20px; }

  /* Mobile hero 1 image has the headline baked in, so hide the live text
     visually but keep the h1 for screen readers and search engines */
  .hero-art {
    width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%);
  }

  /* Match the 9:16 mobile artwork */
  #hero { height: min(110vh, 177.78vw); min-height: 0; }

  .hero-toplabel { right: 20px; top: 64px; }

  .hero-info {
    left: 20px;
    right: 20px;
    bottom: 112px;
    text-align: center;
    align-items: center;
    max-width: 100%;
  }

  .hero-series-logo {
    width: 220px;
    max-height: 100px;
  }

  .hero-info > a { margin: 0 auto; }

  .hero-series-logo { object-position: center; }

  .hero-meta { justify-content: center; flex-wrap: wrap; }

  .hero-desc { text-align: center; max-width: 100%; font-size: 16px; }

  /* Let the two sentences flow together so they wrap into 3 lines */
  .hero-desc br { display: none; }

  .hero-cta-wrap {
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  #tagline { padding: 60px 20px; }
  #tagline p { font-size: 20px; }

  #apply { padding: 80px 20px; }

  .form-row { grid-template-columns: 1fr; }

  .form-submit { width: 100%; text-align: center; }

  .gallery--desktop { display: none; }
  .gallery--mobile { display: block; }

  .gallery-arrow { width: 46px; height: 46px; }
  .gallery-arrow svg { width: 20px; height: 20px; }
  .gallery-arrow--prev { left: 16px; }
  .gallery-arrow--next { right: 16px; }

  #design-language { padding: 60px 20px; }

  .dl-header { flex-direction: column; align-items: flex-start; }

  .dl-header-meta { flex-direction: column; gap: 6px; }
  .dl-icons-labels-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dl-icons-groups-row { flex-direction: column; gap: 40px; }
  .dl-icons-group:first-child .dl-icons { grid-template-columns: repeat(3, 48px); }
  .dl-icons-group:last-child .dl-icons { flex-wrap: wrap; }
  .dl-icons-group:first-child .icon-item img { width: 48px; height: 48px; }
  /* Bigger intelligence icons; shrink to fit narrow phones so all six stay on one row */
  .dl-icons-group:last-child .icon-item img { width: min(54px, calc((100vw - 45px) / 6)); height: auto; aspect-ratio: 54 / 88; }

  /* Series logos: Places Worldwide on its own row, then a 2×2 grid */
  .dl-series {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 40px 24px;
    overflow: visible;
  }

  .dl-series-left,
  .dl-series-right { display: contents; }

  .dl-series-center {
    grid-column: 1 / -1;
    order: -1;
    padding: 0;
  }

  .series-logo { max-width: 100%; }

  #footer { padding: 48px 20px 40px; }

}