/* Centralwings: style własne tego case'u. Wspólny układ jest w src/css/case.css. */

/* Hero: samolot od przodu, jedna linia. */
body.case .hero-plane-wrap {
  position: absolute;
  top: 11%;
  right: 3%;
  width: min(33vw, 430px);
  opacity: 0.55;
  pointer-events: none;
}

body.case .hero-plane {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

body.case .hero-plane path {
  fill: none;
  stroke: var(--lime-dim);
  stroke-width: 1.6;
  stroke-miterlimit: 10;
  vector-effect: non-scaling-stroke;
}

/* Tydzień: pięć kroków na linii, która rysuje się przy przewijaniu. */
body.case .flow {
  --line: 1;
  position: relative;
  list-style: none;
  counter-reset: step;
  width: 70vw;
  max-width: 100%;
  margin: 3rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

body.case .flow::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(var(--line));
  transform-origin: left center;
  opacity: 0.6;
}

body.case .flow-step {
  position: relative;
  counter-increment: step;
  padding-top: 3.2rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--grey);
}

body.case .flow-step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lime);
  border-radius: 50%;
  background: var(--dark, #0b0b0b);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--lime);
  transition: background 0.3s, color 0.3s;
}

body.case .flow-step.is-on::before {
  background: var(--lime);
  color: #0b0b0b;
}

body.case .flow-step strong {
  display: block;
  color: var(--light);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

body.case .flow-day {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.35rem;
}

/* Wydania specjalne: akapit pod tygodniem. */
body.case .special {
  width: 70vw;
  max-width: 100%;
  margin: 3.5rem auto 0;
}

/* Rekonstrukcja: jedna animacja w trzech formatach naraz. */
body.case .formats {
  width: 70vw;
  max-width: 100%;
  margin: 3rem auto 0;
}

body.case .formats-stage {
  display: grid;
  grid-template-columns: 160px minmax(0, 300px) minmax(0, 1fr);
  grid-template-areas: "bill bill bill" "sky rect .";
  gap: 2rem;
  max-width: 780px;
  align-items: start;
}

body.case .fmt {
  margin: 0;
}

body.case .fmt-sky { grid-area: sky; }

body.case .fmt-rect { grid-area: rect; }

body.case .fmt-bill { grid-area: bill; }

body.case .fmt-size {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--grey);
}

body.case .ad {
  position: relative;
  overflow: hidden;
  background: #11110f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  container-type: inline-size;
}

body.case .fmt-sky .ad { aspect-ratio: 160 / 600; }

body.case .fmt-rect .ad { aspect-ratio: 300 / 250; }

body.case .fmt-bill .ad { aspect-ratio: 750 / 100; }

body.case .ad-sky-line {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 calc(100% - 1px), rgba(255, 255, 255, 0.05) 0) 0 0 / 100% 24px;
}

body.case .ad-plane {
  position: absolute;
  width: 34px;
  height: auto;
  fill: var(--lime);
}

body.case .ad-copy {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

body.case .ad-route {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--light);
}

body.case .ad-price {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--lime);
}

body.case .ad-price b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9em;
  letter-spacing: -0.03em;
}

body.case .ad-cta {
  position: absolute;
  padding: 0.45em 0.8em;
  background: var(--lime);
  color: #0b0b0b;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Skyscraper 160x600 */
body.case .fmt-sky .ad-plane { top: 8%; left: -30%; width: 38%; }

body.case .fmt-sky .ad-copy { left: 10%; right: 10%; top: 26%; }

body.case .fmt-sky .ad-route { font-size: 15cqi; }

body.case .fmt-sky .ad-price { font-size: 8cqi; }

body.case .fmt-sky .ad-cta { left: 10%; bottom: 6%; font-size: 7.5cqi; }

/* Rectangle 300x250 */
body.case .fmt-rect .ad-plane { top: 12%; left: -20%; width: 17%; }

body.case .fmt-rect .ad-copy { left: 8%; right: 8%; top: 34%; }

body.case .fmt-rect .ad-route { font-size: 9cqi; }

body.case .fmt-rect .ad-price { font-size: 4.6cqi; }

body.case .fmt-rect .ad-cta { right: 8%; bottom: 9%; font-size: 4cqi; }

/* Billboard 750x100 */
body.case .fmt-bill .ad-plane { top: 30%; left: -10%; width: 6%; }

body.case .fmt-bill .ad-copy { left: 12%; top: 50%; transform: translateY(-50%); flex-direction: row; align-items: baseline; gap: 1.2em; }

body.case .fmt-bill .ad-route { font-size: 3.4cqi; white-space: nowrap; }

body.case .fmt-bill .ad-price { font-size: 1.8cqi; white-space: nowrap; }

body.case .fmt-bill .ad-cta { right: 2.5%; top: 50%; transform: translateY(-50%); font-size: 1.5cqi; }

body.case .formats-more {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.case .formats-more span {
  padding: 0.35rem 0.6rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--grey);
}

body.case .formats-more .formats-more-label {
  padding-left: 0;
  border: 0;
}

body.case .formats figcaption {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--grey);
}

/* Kampanie: karty od 2005 do 2008. */
body.case .seasons {
  width: 70vw;
  max-width: 100%;
  margin: 3rem auto 0;
}

body.case .season-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}

body.case .season {
  padding: 1.5rem 1.4rem 1.6rem;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.case .season-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--lime);
}

body.case .season-place {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--light);
}

body.case .season-text {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--grey);
}

body.case .seasons figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--grey);
}

body.case .results-note {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--grey);
}

body.case .results-note a,
body.case .roles-note a {
  color: var(--light);
  border-bottom: 1px solid rgba(200, 230, 14, 0.5);
}

body.case .roles-note {
  width: 70vw;
  max-width: 100%;
  margin: 2rem auto 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--grey);
}

@media (max-width: 1100px) {
  body.case .season-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.case .formats-stage {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas: "bill bill" "sky rect";
  }
}

@media (max-width: 900px) {
  body.case .season-list {
    grid-template-columns: 1fr 1fr;
  }

  body.case .flow {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  body.case .flow::before {
    top: 18px;
    bottom: 18px;
    left: 18px;
    right: auto;
    width: 1px;
    height: auto;
    transform: scaleY(var(--line));
    transform-origin: center top;
  }

  body.case .flow-step {
    padding: 0.35rem 0 0 3.4rem;
    min-height: 36px;
  }

  body.case .seasons,
  body.case .flow,
  body.case .formats,
  body.case .special,
  body.case .roles-note {
    width: auto;
  }

  body.case .hero-plane-wrap {
    top: 3%;
    right: -8%;
    width: 58%;
    opacity: 0.3;
  }
}

@media (max-width: 620px) {
  body.case .season-list {
    grid-template-columns: 1fr;
  }

  body.case .formats-stage {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
  }
}

/* Bez animacji samolocik stoi w rogu bannera, a nie za jego krawędzią. */
@media (prefers-reduced-motion: reduce) {
  body.case .fmt .ad-plane {
    left: auto;
    right: 8%;
  }
}
