﻿/* Digital Programme — standalone scrolling magazine (all viewports) */

@font-face {
  font-family: 'SFFourcheSCI';
  src: url('../fonts/SFFourcheSCItalic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

:root {
  --mag-navy: #122186;
  --mag-red: #BE1E2D;
  --mag-ink: #2a3354;
  --mag-paper: #e8eef8;
  --mag-cream: #f7f9fd;
  --mag-mist: #dfe6f5;
  --mag-paper-gradient:
    linear-gradient(118deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.2) 26%, transparent 48%),
    linear-gradient(165deg, #ffffff 0%, #f4f7fc 46%, #e6ebf5 100%);
  --mag-paper-gloss:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(18, 33, 134, 0.04),
    inset -14px 0 28px rgba(18, 33, 134, 0.05);
  --mag-brand: 'SFFourcheSCI', 'Cormorant Garamond', Georgia, serif;
  --mag-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --mag-body: 'Source Serif 4', Georgia, serif;
  --mag-ui: 'Outfit', 'Segoe UI', sans-serif;
  --mag-fs-kicker: 0.72rem;
  --mag-fs-meta: 0.82rem;
  --mag-fs-body: 1.08rem;
  --mag-fs-list: 0.98rem;
  --mag-fs-deck: 1.1rem;
  --mag-fs-subhead: clamp(1.35rem, 2.5vw, 1.65rem);
  --mag-fs-title: clamp(2.1rem, 4.2vw, 3.15rem);
  --mag-fs-chapter: clamp(2.85rem, 6.5vw, 4.35rem);
  --mag-lh-tight: 1.05;
  --mag-lh-snug: 1.25;
  --mag-lh-body: 1.55;
}

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

html {
  scroll-behavior: smooth;
}

body.programme-mag {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  font-family: var(--mag-body);
  font-optical-sizing: auto;
  font-size: var(--mag-fs-body);
  font-weight: 500;
  line-height: var(--mag-lh-body);
  letter-spacing: 0;
  color: var(--mag-ink);
  background-color: rgba(18, 33, 134, 1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.programme-mag h1,
body.programme-mag h2,
body.programme-mag h3 {
  font-family: var(--mag-display);
  font-weight: 700;
  line-height: var(--mag-lh-tight);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.programme-mag p {
  margin: 0;
}

/* Same fixed, cover-fit backdrop as the main app shell — content scrolls over it */
body.programme-mag::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../images/bg.png');
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
  background-position: center top;
  filter: blur(3px);
  transform: scale(1.04);
  pointer-events: none;
}

html.webp body.programme-mag::before {
  background-image: url('../images/bg.webp');
}

@media (orientation: portrait) {
  body.programme-mag::before {
    background-image: url('../images/bg_mobile.png');
  }

  html.webp body.programme-mag::before {
    background-image: url('../images/bg_mobile.webp');
  }
}

@media (orientation: landscape) {
  body.programme-mag::before {
    background-image: url('../images/bg.png');
  }

  html.webp body.programme-mag::before {
    background-image: url('../images/bg.webp');
  }
}

body.programme-mag > *:not(.programme-particles):not(.mag-hof-lightbox) {
  position: relative;
  z-index: 1;
}

/* Floating shapes — above backdrop photo, behind magazine content */
.programme-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.programme-particles__shape {
  position: absolute;
  display: block;
  opacity: 0.45;
  will-change: transform;
}

.programme-particles__shape--circle {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.programme-particles__shape--ring {
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}

.programme-particles__shape--diamond {
  background: rgba(190, 30, 45, 0.55);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.programme-particles__shape--1 {
  width: 36px;
  height: 36px;
  top: 12%;
  left: 8%;
  animation: magParticleDriftA 22s ease-in-out infinite;
}

.programme-particles__shape--2 {
  width: 28px;
  height: 28px;
  top: 22%;
  left: 78%;
  opacity: 0.4;
  animation: magParticleDriftB 28s ease-in-out infinite;
}

.programme-particles__shape--3 {
  width: 52px;
  height: 52px;
  top: 48%;
  left: 14%;
  opacity: 0.35;
  animation: magParticleDriftC 26s ease-in-out infinite;
}

.programme-particles__shape--4 {
  width: 32px;
  height: 32px;
  top: 68%;
  left: 88%;
  background: rgba(255, 201, 206, 0.55);
  opacity: 0.4;
  animation: magParticleDriftA 30s ease-in-out infinite reverse;
}

.programme-particles__shape--5 {
  width: 26px;
  height: 26px;
  top: 18%;
  left: 42%;
  background: rgba(18, 33, 134, 0.45);
  opacity: 0.38;
  animation: magParticleDriftB 24s ease-in-out infinite;
}

.programme-particles__shape--6 {
  width: 22px;
  height: 22px;
  top: 78%;
  left: 28%;
  background: rgba(190, 30, 45, 0.5);
  opacity: 0.5;
  animation: magParticleDriftC 20s ease-in-out infinite;
}

.programme-particles__shape--7 {
  width: 24px;
  height: 24px;
  top: 36%;
  left: 62%;
  opacity: 0.42;
  animation: magParticleDriftA 32s ease-in-out infinite;
}

.programme-particles__shape--8 {
  width: 44px;
  height: 44px;
  top: 58%;
  left: 52%;
  border-color: rgba(255, 201, 206, 0.55);
  opacity: 0.4;
  animation: magParticleDriftB 27s ease-in-out infinite reverse;
}

.programme-particles__shape--9 {
  width: 20px;
  height: 20px;
  top: 8%;
  left: 92%;
  background: rgba(255, 201, 206, 0.6);
  opacity: 0.35;
  animation: magParticleDriftC 23s ease-in-out infinite;
}

.programme-particles__shape--10 {
  width: 34px;
  height: 34px;
  top: 86%;
  left: 72%;
  background: rgba(255, 255, 255, 0.35);
  opacity: 0.4;
  animation: magParticleDriftA 29s ease-in-out infinite reverse;
}

.programme-particles__shape--11 {
  width: 18px;
  height: 18px;
  top: 42%;
  left: 3%;
  opacity: 0.5;
  animation: magParticleDriftB 19s ease-in-out infinite;
}

.programme-particles__shape--12 {
  width: 38px;
  height: 38px;
  top: 72%;
  left: 6%;
  opacity: 0.38;
  animation: magParticleDriftC 31s ease-in-out infinite;
}

.programme-particles__shape--13 {
  width: 64px;
  height: 64px;
  top: 28%;
  left: 30%;
  opacity: 0.28;
  animation: magParticleDriftA 34s ease-in-out infinite;
}

.programme-particles__shape--14 {
  width: 30px;
  height: 30px;
  top: 54%;
  left: 94%;
  background: rgba(255, 201, 206, 0.5);
  opacity: 0.36;
  animation: magParticleDriftB 25s ease-in-out infinite;
}

@keyframes magParticleDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(28px, -42px, 0) rotate(18deg); }
  50% { transform: translate3d(-18px, -78px, 0) rotate(-12deg); }
  75% { transform: translate3d(36px, -28px, 0) rotate(28deg); }
}

@keyframes magParticleDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(-40px, 36px, 0) rotate(24deg); }
  66% { transform: translate3d(24px, -54px, 0) rotate(-18deg); }
}

@keyframes magParticleDriftC {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  20% { transform: translate3d(18px, 48px, 0) rotate(-16deg); }
  55% { transform: translate3d(-32px, 12px, 0) rotate(22deg); }
  80% { transform: translate3d(12px, -36px, 0) rotate(-8deg); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.programme-back {
  position: fixed;
  z-index: 100;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--mag-navy);
  text-decoration: none;
  font-family: var(--mag-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(18, 33, 134, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.programme-back:hover,
.programme-back:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  outline: none;
}

.mag-empty {
  margin: 1rem 0 0;
  font-family: var(--mag-body);
  font-size: 1rem;
  font-style: italic;
  line-height: var(--mag-lh-snug);
  color: var(--mag-ink);
  opacity: 0.7;
}

.mag-closing {
  margin: 2rem 0 0;
  text-align: center;
  font-family: var(--mag-display);
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 700;
  font-style: italic;
  line-height: var(--mag-lh-snug);
  color: var(--mag-navy);
  text-wrap: balance;
}

/* ----- Desk (all viewports) ----- */

.programme-desk {
  display: block;
  padding-top: max(4.25rem, calc(env(safe-area-inset-top, 0px) + 3.5rem));
}

@media (max-width: 767.98px) {
  .programme-desk {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .mag-spread {
    perspective: none;
    padding: 1.15rem 0;
  }

  .mag-spread__paper,
  .mag-cover__paper {
    border-radius: 0 10px 10px 0;
    padding: 1.15rem 1rem 1.25rem;
    padding-left: 1.15rem;
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.22),
      var(--mag-paper-gloss),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }

  .mag-cover__paper {
    padding: 0;
  }

  .mag-spread__paper--tilt-left,
  .mag-spread__paper--tilt-right,
  .mag-spread__paper--depth,
  .mag-judge-slab--a,
  .mag-judge-slab--b,
  .mag-studio-tile--o1,
  .mag-studio-tile--o2,
  .mag-studio-tile--o3,
  .mag-studio-tile--o4,
  .mag-studio-tile--o5,
  .mag-sadt__banner {
    transform: none !important;
  }

  .mag-studio-tile:hover .mag-studio-tile__face {
    transform: none;
  }

  .mag-judge-slab,
  .mag-sponsor-slab {
    grid-template-columns: 1fr;
    direction: ltr;
    border-radius: 0 8px 8px 0;
    transform: none !important;
  }

  .mag-judge-slab__photo,
  .mag-sponsor-slab .mag-judge-slab__photo {
    min-height: 11rem;
    max-height: 14rem;
  }

  .mag-judge-stack {
    gap: 1rem;
  }

  .mag-studio-wall {
    gap: 0.85rem 0.75rem;
  }

  .mag-filter,
  #programme_dancer_filter,
  #programme_winner_filter {
    width: 100%;
    max-width: 100%;
  }

  .mag-dancer-chapters {
    gap: 1rem;
  }
}

/* ----- Desktop magazine spreads ----- */

.mag-spread {
  position: relative;
  perspective: none;
  padding: 3rem clamp(1rem, 4vw, 3rem);
}

.mag-spread__paper {
  position: relative;
  isolation: isolate;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-left: clamp(1.75rem, 4.5vw, 3.25rem);
  background: var(--mag-paper-gradient);
  border-left: 14px solid var(--mag-red);
  border-radius: 0 18px 6px 0;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 8px 16px rgba(0, 0, 0, 0.2),
    var(--mag-paper-gloss),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

/* SADSC logo watermark placeholder (unused on desk) */
.mag-spread__paper::before {
  content: none;
}

.mag-spread__paper > *,
.mag-sadt__paper > * {
  position: relative;
  z-index: 1;
}

.mag-judges,
.mag-team,
.mag-sponsors {
  position: relative;
  isolation: isolate;
}

.mag-spread__paper--tilt-left,
.mag-spread__paper--tilt-right,
.mag-spread__paper--depth {
  transform: none;
}

.mag-spread__paper--credits {
  background:
    radial-gradient(circle at 80% 20%, rgba(190, 30, 45, 0.08), transparent 40%),
    url('../images/star.png') center / 180px repeat,
    var(--mag-cream);
  background-blend-mode: normal, soft-light, normal;
}

.mag-spread__header {
  display: flex;
  gap: 1rem 1.35rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.mag-spread__header--light {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  color: #fff;
}

.mag-spread__header > div {
  min-width: 0;
  padding-top: 0.2rem;
}

.mag-spread__chapter {
  flex: 0 0 auto;
  font-family: var(--mag-display);
  font-size: var(--mag-fs-chapter);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--mag-red);
  text-shadow: 3px 4px 0 rgba(18, 33, 134, 0.15);
}

.mag-spread__header--light .mag-spread__chapter {
  color: #ffc9ce;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.mag-spread__title {
  margin: 0 0 0.4rem;
  font-family: var(--mag-display);
  font-size: var(--mag-fs-title);
  font-weight: 700;
  line-height: var(--mag-lh-tight);
  color: var(--mag-navy);
  letter-spacing: -0.025em;
}

.mag-spread__header--light .mag-spread__title {
  color: #fff;
}

.mag-spread__dek {
  margin: 0;
  max-width: 36rem;
  font-family: var(--mag-body);
  font-size: var(--mag-fs-deck);
  font-weight: 500;
  line-height: var(--mag-lh-snug);
  opacity: 0.82;
}

.mag-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--mag-ui);
  font-size: var(--mag-fs-kicker);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mag-red);
}

/* Cover */

.mag-cover {
  display: block;
  min-height: 0;
}

.mag-cover__paper {
  padding: 0;
  overflow: hidden;
}

.mag-cover__figure {
  margin: 0;
  display: block;
  width: 100%;
  background: #0b1230;
}

.mag-cover__figure picture {
  display: block;
  width: 100%;
}

.mag-cover__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}
/* TOC */

.mag-toc__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.mag-toc__list a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(90deg, rgba(18, 33, 134, 0.06), transparent);
  border-left: 4px solid var(--mag-navy);
  transform: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mag-toc__list a:hover,
.mag-toc__list a:focus-visible {
  transform: translateX(4px);
  background: linear-gradient(90deg, rgba(190, 30, 45, 0.1), transparent);
  border-left-color: var(--mag-red);
  outline: none;
}

.mag-toc__num {
  font-family: var(--mag-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--mag-red);
}

.mag-toc__label {
  font-family: var(--mag-display);
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 700;
  line-height: var(--mag-lh-snug);
  letter-spacing: -0.015em;
  color: var(--mag-navy);
}

.mag-toc__meta {
  font-family: var(--mag-ui);
  font-size: var(--mag-fs-meta);
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.mag-toc__highlights {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.mag-toc__highlights li {
  padding-left: 1.25rem;
  position: relative;
}

.mag-toc__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mag-red);
}

/* Studios wall */

.mag-studio-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem 1rem;
  align-items: start;
}

.mag-studio-tile {
  text-align: center;
}

.mag-studio-tile--o1,
.mag-studio-tile--o2,
.mag-studio-tile--o3,
.mag-studio-tile--o4,
.mag-studio-tile--o5 {
  transform: none;
}

.mag-studio-tile__face {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0.9rem;
  background: var(--mag-paper-gradient);
  border-radius: 12px;
  box-shadow:
    0 14px 28px rgba(18, 33, 134, 0.18),
    var(--mag-paper-gloss),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.25s ease;
}

.mag-studio-tile:hover .mag-studio-tile__face {
  transform: none;
  box-shadow:
    0 18px 32px rgba(18, 33, 134, 0.22),
    var(--mag-paper-gloss),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.mag-studio-tile__face img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mag-studio-tile__initials {
  font-family: var(--mag-display);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--mag-navy);
}

.mag-studio-tile h3 {
  margin: 0.65rem 0 0;
  font-family: var(--mag-ui);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--mag-navy);
  text-wrap: balance;
}

/* Dancers */

.mag-filter {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0.65rem 0.9rem;
  background: rgba(18, 33, 134, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(18, 33, 134, 0.12);
}

.mag-filter i {
  color: var(--mag-navy);
  opacity: 0.6;
}

.mag-filter input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--mag-ui);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--mag-ink);
  outline: none;
}

.mag-dancer-chapters {
  display: grid;
  gap: 1.75rem;
}

.mag-dancer-chapter__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--mag-navy);
  font-family: var(--mag-display);
  font-size: var(--mag-fs-subhead);
  font-weight: 700;
  line-height: var(--mag-lh-snug);
  letter-spacing: -0.015em;
  color: var(--mag-navy);
}

.mag-dancer-chapter__count {
  margin-left: auto;
  font-family: var(--mag-ui);
  font-size: var(--mag-fs-meta);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  opacity: 0.6;
  text-align: right;
  max-width: 55%;
}

.mag-winner-chapter .mag-dancer-chapter__title {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.mag-winner-chapter .mag-dancer-chapter__count {
  margin-left: 0;
  max-width: 100%;
  text-align: left;
  opacity: 0.95;
  font-weight: 700;
  color: var(--mag-red);
}

.mag-dancer-cols {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

@media (min-width: 992px) {
  .mag-dancer-cols {
    columns: 3;
  }
}

.mag-dancer {
  break-inside: avoid;
  padding: 0.3rem 0;
  border-bottom: 1px dotted rgba(18, 33, 134, 0.2);
  font-family: var(--mag-ui);
  font-size: var(--mag-fs-list);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.mag-dancer[hidden],
.mag-dancer-chapter[hidden] {
  display: none !important;
}

/* Judges */

.mag-judges {
  padding-bottom: 4rem;
}

.mag-judges__intro {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 1.35rem;
  margin-bottom: 2.75rem;
}

.mag-judges__heading {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
}

.mag-judges__heading .mag-spread__title {
  margin: 0;
}

.mag-judges__intro .mag-spread__dek {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--mag-ink);
  opacity: 0.78;
}

.mag-judge-stack {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.mag-judge-slab {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0;
  background: var(--mag-paper-gradient);
  border-left: 14px solid var(--mag-red);
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    var(--mag-paper-gloss),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.mag-judge-slab--a,
.mag-judge-slab--b {
  transform: none;
  direction: ltr;
}

.mag-judge-slab--b > * {
  direction: ltr;
}

.mag-judge-slab__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: linear-gradient(160deg, var(--mag-navy), #2a3aaa);
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
}

.mag-judge-slab__photo img,
.mag-judge-slab__photo picture,
.mag-judge-slab__photo picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mag-judge-slab__photo picture {
  display: block;
}

.mag-judge-slab__photo--logo {
  background: linear-gradient(160deg, #f7f9fd, #dfe6f5);
  padding: 1.25rem;
}

.mag-judge-slab__photo--logo img,
.mag-judge-slab__photo--logo picture img {
  object-fit: contain;
}

.mag-closing--light {
  max-width: 1100px;
  margin: 2rem auto 0;
  color: #fff;
  opacity: 0.9;
}

.mag-closing--ink {
  color: var(--mag-navy);
  margin-top: 1.25rem;
}

.mag-judge-slab__copy {
  padding: 1.5rem 1.75rem;
}

.mag-judge-slab__copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--mag-display);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 700;
  line-height: var(--mag-lh-tight);
  letter-spacing: -0.02em;
  color: var(--mag-navy);
}

.mag-judge-slab__role {
  margin: 0 0 0.75rem;
  font-family: var(--mag-ui);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mag-red);
}

.mag-judge-slab__bio {
  margin: 0;
  font-family: var(--mag-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: var(--mag-lh-body);
  color: var(--mag-ink-soft);
}

.mag-judges .mag-judge-slab__quote {
  margin-top: 1.75rem;
  font-size: clamp(1.12rem, 1.9vw, 1.28rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: var(--mag-ink);
}

.mag-judge-slab__copy a {
  font-family: var(--mag-ui);
  color: var(--mag-red);
  font-weight: 700;
}

/* Meet The Team */

.mag-team {
  padding-bottom: 4rem;
}

.mag-team-stack {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.25rem;
}

.mag-team-row {
  display: grid;
  gap: 1.25rem;
  justify-content: center;
}

.mag-team-row--2 {
  grid-template-columns: repeat(2, minmax(140px, 220px));
}

.mag-team-row--4 {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.mag-team-row--5 {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.mag-team-card {
  text-align: center;
}

.mag-team-card__photo {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--mag-navy), #2a3aaa);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.mag-team-card__photo img,
.mag-team-card__photo picture,
.mag-team-card__photo picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mag-team-card__photo picture {
  width: 100%;
  height: 100%;
  display: block;
}

.mag-team-card__photo--logo {
  background: #0a0a0a;
  padding: 1rem;
}

.mag-team-card__photo--logo img,
.mag-team-card__photo--logo picture img {
  object-fit: contain;
  object-position: center;
}

.mag-team-card h3 {
  margin: 0.85rem 0 0.3rem;
  font-family: var(--mag-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  line-height: var(--mag-lh-tight);
  letter-spacing: -0.02em;
  color: var(--mag-navy);
}

.mag-team-card__role {
  margin: 0;
  font-family: var(--mag-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mag-red);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .mag-team-row--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mag-team-row--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mag-team-row--2,
  .mag-team-row--4,
  .mag-team-row--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Sponsors — refined judge-style slabs */

.mag-sponsors {
  padding-bottom: 4rem;
}

.mag-sponsor-stack {
  gap: 1.35rem;
}

.mag-sponsor-slab {
  --mag-sponsor-dots: radial-gradient(circle, rgba(18, 33, 134, 0.14) 1.1px, transparent 1.35px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-image: var(--mag-sponsor-dots), var(--mag-sponsor-fill, var(--mag-paper-gradient));
  background-size: 14px 14px, auto;
  background-position: 0 0, 0 0;
}

.mag-sponsor-slab:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.32);
}

.mag-sponsor-slab--sadt {
  --mag-sponsor-fill: linear-gradient(145deg, #fce7f3 0%, #f5d0fe 42%, #e9d5ff 100%);
  --mag-sponsor-dots: radial-gradient(circle, rgba(112, 26, 117, 0.18) 1.1px, transparent 1.35px);
  border-left-color: #c026d3;
}

.mag-sponsor-slab--eventful {
  --mag-sponsor-fill: linear-gradient(145deg, #dbeafe 0%, #93c5fd 45%, #3b82f6 100%);
  --mag-sponsor-dots: radial-gradient(circle, rgba(23, 37, 84, 0.16) 1.1px, transparent 1.35px);
  border-left-color: #1d4ed8;
}

.mag-sponsor-slab--w3 {
  --mag-sponsor-fill: linear-gradient(145deg, #3f3f46 0%, #18181b 52%, #09090b 100%);
  --mag-sponsor-dots: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.1px, transparent 1.35px);
  border-left-color: #a1a1aa;
  color: #f4f4f5;
}

.mag-sponsor-slab--w3 .mag-judge-slab__copy h3 {
  color: #fff;
}

.mag-sponsor-slab--w3 .mag-sponsor-slab__badge,
.mag-sponsor-slab--w3 .mag-judge-slab__copy a {
  color: #f0abfc;
}

.mag-sponsor-slab--w3 .mag-judge-slab__bio {
  color: rgba(244, 244, 245, 0.88);
}

.mag-sponsor-slab--sadt .mag-judge-slab__photo--logo,
.mag-sponsor-slab--eventful .mag-judge-slab__photo--logo,
.mag-sponsor-slab--w3 .mag-judge-slab__photo--logo {
  background: rgba(255, 255, 255, 0.92);
}

.mag-sponsor-slab--eventful .mag-sponsor-slab__badge,
.mag-sponsor-slab--eventful .mag-judge-slab__copy a {
  color: #1e3a8a;
}

.mag-sponsor-slab--eventful .mag-judge-slab__copy h3 {
  color: #172554;
}

.mag-sponsor-slab--sadt .mag-sponsor-slab__badge,
.mag-sponsor-slab--sadt .mag-judge-slab__copy a {
  color: #a21caf;
}

.mag-sponsor-slab--sadt .mag-judge-slab__copy h3 {
  color: #701a75;
}

.page--sponsor {
  --mag-sponsor-dots: radial-gradient(circle, rgba(18, 33, 134, 0.14) 1.1px, transparent 1.35px);
  background-image: var(--mag-sponsor-dots), var(--mag-sponsor-fill, var(--mag-paper-gradient));
  background-size: 14px 14px, auto;
}

.page--sponsor-sadt {
  --mag-sponsor-fill: linear-gradient(165deg, #fce7f3 0%, #f5d0fe 45%, #e9d5ff 100%);
  --mag-sponsor-dots: radial-gradient(circle, rgba(112, 26, 117, 0.18) 1.1px, transparent 1.35px);
}

.page--sponsor-eventful {
  --mag-sponsor-fill: linear-gradient(165deg, #dbeafe 0%, #93c5fd 45%, #3b82f6 100%);
  --mag-sponsor-dots: radial-gradient(circle, rgba(23, 37, 84, 0.16) 1.1px, transparent 1.35px);
}

.page--sponsor-w3 {
  --mag-sponsor-fill: linear-gradient(165deg, #3f3f46 0%, #18181b 52%, #09090b 100%);
  --mag-sponsor-dots: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.1px, transparent 1.35px);
  color: #f4f4f5;
}

.page--sponsor-w3 .page__title,
.page--sponsor-w3 .page__kicker,
.page--sponsor-w3 .page-judge-role,
.page--sponsor-w3 .mag-closing--ink {
  color: #fff;
}

.page--sponsor-w3 .page-judge-bio,
.page--sponsor-w3 .page-judge-bio a {
  color: rgba(244, 244, 245, 0.9);
}

.page--sponsor-sadt .page__kicker,
.page--sponsor-sadt .page-judge-role,
.page--sponsor-sadt .page-judge-bio a {
  color: #a21caf;
}

.page--sponsor-sadt .page__title {
  color: #701a75;
}

.page--sponsor-eventful .page__kicker,
.page--sponsor-eventful .page-judge-role,
.page--sponsor-eventful .page-judge-bio a {
  color: #1e3a8a;
}

.page--sponsor-eventful .page__title {
  color: #172554;
}

.page--sponsor .page-judge-photo--logo {
  background: rgba(255, 255, 255, 0.94);
}

.mag-sponsor-initials {
  font-family: var(--mag-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--mag-navy);
}

.mag-sponsor-slab__badge {
  margin: 0 0 0.45rem;
  font-family: var(--mag-ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--mag-red);
}

.mag-sponsor-slab__tagline {
  margin: 0 0 0.75rem;
  font-family: var(--mag-display);
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--mag-navy);
  opacity: 0.9;
}

.mag-sponsor-slab--w3 .mag-sponsor-slab__tagline {
  color: #fff;
}

.mag-sponsor-slab--sadt .mag-sponsor-slab__tagline {
  color: #701a75;
}

.mag-sponsor-slab--eventful .mag-sponsor-slab__tagline {
  color: #172554;
}

.mag-sponsor-slab__points {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.mag-sponsor-slab__points li {
  position: relative;
  padding-left: 1.1rem;
  font-family: var(--mag-ui);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.mag-sponsor-slab__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.mag-sponsor-slab__meta {
  margin: 0.85rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mag-ui);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
}

.mag-sponsor-slab__link {
  margin-top: 0.85rem !important;
}

.mag-sponsor-slab__link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mag-ui);
  font-size: 0.9rem;
  text-decoration: none;
}

.mag-sponsor-slab__link a:hover,
.mag-sponsor-slab__link a:focus-visible {
  text-decoration: underline;
}

/* SADT */

.mag-sadt__frame {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.mag-sadt__caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: 0.3rem;
  align-items: start;
  color: #fff;
  padding: 0 0.5rem;
}

.mag-sadt__caption .mag-spread__chapter {
  grid-row: 1 / span 2;
  color: #ffc9ce;
}

.mag-sadt__caption .mag-spread__title {
  margin: 0;
  color: #fff;
}

.mag-sadt__caption .mag-spread__dek {
  opacity: 0.85;
  color: #fff;
}

.mag-sadt__banner {
  margin: 0;
  border-left: 14px solid var(--mag-red);
  border-radius: 0 10px 10px 0;
  overflow: hidden;
  transform: none;
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.4);
}

.mag-sadt__banners {
  display: grid;
  gap: 1.25rem;
}

.mag-sadt__banner img {
  display: block;
  width: 100%;
  height: auto;
}

.mag-sadt__paper .mag-sadt__caption {
  margin-bottom: 1.25rem;
}

.mag-sadt__paper .mag-sadt__caption .mag-spread__title,
.mag-sadt__paper .mag-sadt__caption .mag-spread__dek {
  color: var(--mag-navy);
}

.mag-sadt__paper .mag-sadt__caption .mag-spread__dek {
  opacity: 0.8;
}

/* ========== Scene breaks (full-width performance photos) ========== */
.mag-scene-break {
  padding: 0.65rem 0 1.1rem;
  perspective: none;
}

.mag-scene-break__figure {
  margin: 0 auto;
  max-width: min(96vw, 68rem);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 20px 44px rgba(8, 12, 40, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mag-scene-break__figure picture {
  display: block;
  width: 100%;
}

.mag-scene-break__figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767.98px) {
  .mag-scene-break {
    padding: 0.5rem 0 0.85rem;
  }

  .mag-scene-break__figure {
    max-width: 100%;
    border-radius: 0 10px 10px 0;
  }
}

/* ========== 2025 Hall Of Fame ========== */
.mag-hof-galleries {
  display: grid;
  gap: 1.75rem;
  margin-top: 0.35rem;
}

.mag-empty--inline {
  margin: 0 0 0.5rem;
  font-size: var(--mag-fs-meta);
}

.mag-hof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .mag-hof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
  }
}

@media (min-width: 992px) {
  .mag-hof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

.mag-hof-tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(18, 33, 134, 0.08);
  cursor: zoom-in;
  box-shadow:
    0 8px 18px rgba(18, 33, 134, 0.12),
    inset 0 0 0 1px rgba(18, 33, 134, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mag-hof-tile:hover,
.mag-hof-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(18, 33, 134, 0.18),
    inset 0 0 0 1px rgba(18, 33, 134, 0.14);
  outline: none;
}

.mag-hof-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mag-hof-tile__zoom {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 33, 134, 0.72);
  font-size: 0.78rem;
  pointer-events: none;
  opacity: 0.92;
}

.mag-hof-lightbox {
  position: fixed !important;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
}

.mag-hof-lightbox[hidden] {
  display: none !important;
}

.mag-hof-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 48, 0.82);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.mag-hof-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(92vw, 56rem);
  max-height: min(92vh, 56rem);
}

.mag-hof-lightbox__close {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(190, 30, 45, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.mag-hof-lightbox__close:hover,
.mag-hof-lightbox__close:focus-visible {
  background: var(--mag-red);
  outline: none;
}

.mag-hof-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 50rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #0b1230;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.mag-hof-lightbox__caption {
  margin: 0;
  max-width: 100%;
  padding: 0 0.5rem;
  font-family: var(--mag-ui);
  font-size: var(--mag-fs-meta);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

body.programme-mag.hof-lightbox-open {
  overflow: hidden;
}

/* Mobile desk: tighten gaps + flatten after base desk rules */
@media (max-width: 767.98px) {
  .mag-spread {
    perspective: none;
    padding: 1.15rem 0;
  }

  .mag-spread__paper {
    border-radius: 0 10px 10px 0;
    padding: 1.15rem 1rem 1.25rem;
    padding-left: 1.15rem;
  }

  .mag-cover__paper {
    padding: 0;
  }

  .mag-spread__paper--tilt-left,
  .mag-spread__paper--tilt-right,
  .mag-spread__paper--depth,
  .mag-judge-slab--a,
  .mag-judge-slab--b,
  .mag-studio-tile--o1,
  .mag-studio-tile--o2,
  .mag-studio-tile--o3,
  .mag-studio-tile--o4,
  .mag-studio-tile--o5,
  .mag-sadt__banner {
    transform: none !important;
  }

  .mag-studio-tile:hover .mag-studio-tile__face {
    transform: none;
  }

  .mag-judge-slab,
  .mag-sponsor-slab {
    grid-template-columns: 1fr;
    direction: ltr;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .programme-particles__shape {
    animation: none !important;
    opacity: 0.22;
  }

  .mag-hof-tile:hover,
  .mag-hof-tile:focus-visible {
    transform: none;
  }
}
