/* =========================================================================
   DOBA — Dubai Open for Basketball Academies
   Same information architecture as dova.sportsmania.me, rebuilt for craft:
   a fluid type scale, one vertical rhythm, a diagonal ribbon motif lifted
   from DOBA's own brand card, and scroll-reveal that degrades to nothing.
   No photography — the imagery is drawn.
   ========================================================================= */

:root {
  /* Ink stack: three steps only, so alternating bands stay legible. */
  --ink: #090a12;
  --ink-2: #101220;
  --ink-3: #181b2c;

  --red: #c90a0a;
  --red-hi: #e81515;
  --navy: #1f3160;
  --sand: #e8b57e;          /* echoes the Dubai Sports Council gold */
  --paper: #f4f6fb;
  --muted: #9ea1bc;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);

  --shell: 1200px;
  --header-h: 88px;

  /* Fluid scale — one ratio, no ad-hoc font sizes below. */
  --fs-display: clamp(2.75rem, 1.4rem + 5.4vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  --fs-h2: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  --fs-h3: clamp(1.1rem, 0.95rem + 0.6vw, 1.35rem);
  --fs-lede: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  --fs-eyebrow: 0.72rem;

  --space-section: clamp(4rem, 2rem + 7vw, 8rem);
  --radius: 18px;

  --display: 'Anek Bangla', 'Poppins', system-ui, sans-serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--alt { background: var(--ink-2); }

/* ------------------------------------------------------------ typography */

.h1, .h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h1--center, .h2--center { text-align: center; margin-inline: auto; }
.h2--center { margin-bottom: 3rem; max-width: 20ch; }

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
}

.eyebrow--center { text-align: center; }

.lede {
  margin: 0 0 1.05rem;
  color: var(--muted);
  font-size: var(--fs-lede);
  max-width: 60ch;
}

/* --------------------------------------------------------- scroll reveal */

/* Applied by site.js only when IntersectionObserver exists, so with JS off or
   unsupported everything is simply visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-stuck {
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  border-bottom-color: var(--line);
}

.site-header__inner {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.site-header__logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-header__logo-sm { height: 46px; width: auto; }
.site-header__logo-ds { height: 21px; width: auto; }

.nav { display: flex; justify-content: center; gap: 2.5rem; }

.nav__link, .mobile-nav .nav__link {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 0.55rem;
  color: var(--paper);
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--red-hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover { color: var(--sand); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.social { display: flex; gap: 0.55rem; }
.social--header { justify-content: flex-end; }

.social__link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.social__link svg { width: 15px; height: 15px; fill: currentColor; }

.social__link:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}

.social--lg { justify-content: center; gap: 0.85rem; margin-top: 1.25rem; }
.social--lg .social__link { width: 52px; height: 52px; }
.social--lg .social__link svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open { display: flex; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4rem, 2rem + 9vw, 8.5rem) clamp(5rem, 3rem + 8vw, 8rem);
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 78%);
}

/* Court lines, faded toward the edges so nothing competes with the lock-up. */
.hero__court {
  position: absolute;
  inset: -10% -6%;
  z-index: -2;
  background: url('/assets/court.svg') center / cover no-repeat;
  opacity: 0.11;
  mask-image: radial-gradient(70% 76% at 50% 46%, #000 22%, transparent 76%);
  -webkit-mask-image: radial-gradient(70% 76% at 50% 46%, #000 22%, transparent 76%);
}

/* Arena lighting. Two warm sources and one cool, so the ground has depth
   without any photograph. */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 420px at 50% -6%, rgba(232, 181, 126, 0.16), transparent 64%),
    radial-gradient(820px 520px at 8% 96%, rgba(201, 10, 10, 0.28), transparent 62%),
    radial-gradient(760px 460px at 94% 12%, rgba(31, 49, 96, 0.6), transparent 66%);
}

.hero__eyebrow {
  margin: 0 auto 2rem;
  max-width: 42ch;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__logo {
  width: min(100%, 560px);
  margin-inline: auto;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.6));
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin-top: 2.25rem;
}

.hero__season {
  font-family: var(--display);
  font-size: clamp(1.35rem, 0.9rem + 1.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero__rule { width: 46px; height: 1px; background: var(--line-2); }

.hero__edition {
  padding: 0.3rem 1.05rem;
  border-radius: 999px;
  background: var(--red);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__partners {
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Scroll cue: a slow travelling dot inside a capsule. */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}

.hero__cue span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--sand);
  animation: cue 1.9s var(--ease) infinite;
}

@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--red);
  position: relative;
  display: inline-block;
  padding: 0.95rem 2.3rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(201, 10, 10, 0.36); }
.btn--primary:hover { --btn-bg: var(--red-hi); }
.btn--lg { padding: 1.1rem 3rem; font-size: 0.84rem; }

.btn--ghost { --btn-bg: transparent; border-color: var(--line-2); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); box-shadow: none; }

/* ----------------------------------------------------------- stats strip */

.strip {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat {
  padding: clamp(1.75rem, 3vw, 2.75rem) 1.25rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat__value {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--sand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ----------------------------------------------------------------- split */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

/* ----------------------------------------------------------------- steps */

/* Diagonal ribbon motif, taken from DOBA's own brand card, used to lift the
   band off the flat ink behind it. */
.ribbon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ribbon::before {
  content: '';
  position: absolute;
  inset: -30% -10%;
  z-index: -1;
  background: repeating-linear-gradient(
    -68deg,
    rgba(255, 255, 255, 0.028) 0 2px,
    transparent 2px 108px
  );
  pointer-events: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2.5rem 1.75rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}

.step__num {
  position: absolute;
  top: -1px;
  left: 1.75rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0 0 12px 12px;
  background: var(--red);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
}

.step__title {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
}

.step__body { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* -------------------------------------------------------------- timeline */

.tl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem 0;
}

.tl__item { position: relative; padding-top: 3.25rem; text-align: center; }

/* Each item draws its own connector, so the rule survives row wrapping when
   dates are added in the editor. */
.tl__item::before {
  content: '';
  position: absolute;
  top: 13px;
  inset-inline: 0;
  height: 2px;
  background: var(--line);
}

.tl__item:first-child::before { left: 50%; }
.tl__item:last-child::before { right: 50%; }

.tl__marker {
  position: absolute;
  top: 6px;
  left: 50%;
  translate: -50% 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red-hi);
  box-shadow: 0 0 0 5px rgba(201, 10, 10, 0.18);
}

.tl__step {
  margin: 0 0 0.4rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.tl__label {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.tl__value { margin: 0.3rem 0 0; font-size: 0.92rem; font-weight: 500; color: var(--sand); }

/* ------------------------------------------------------------ categories */

.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.cat {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem 2.25rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* A red wash that rises on hover, rather than a flat colour change. */
.cat::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-hi), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.cat:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 181, 126, 0.4);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5);
}

.cat:hover::after { transform: scaleX(1); }

.cat__rank {
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
}

.cat__years { margin: 0; font-size: 0.76rem; letter-spacing: 0.14em; color: var(--muted); }

.cat__age {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 1.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, var(--red-hi), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cat__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------- app band */

.app-band { background: var(--ink-2); border-block: 1px solid var(--line); }

.app-band__inner {
  display: grid;
  grid-template-columns: 1.15fr auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.app-band .h2 { margin-bottom: 0.75rem; }
.app-band .lede { margin-bottom: 0; }

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Doubles as the clear space both stores' brand guidelines ask for, since
     the artwork itself is trimmed tight. */
  gap: 1.25rem;
}

/* Height is the shared dimension: both badges are trimmed to their artwork,
   so one height renders them the same size. */
.store img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.store:hover img { transform: translateY(-3px); opacity: 0.88; }

/* --------------------------------------------------------------- CTA band */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 5vw, 6rem);
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(201, 10, 10, 0.4), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  border-block: 1px solid var(--line);
  text-align: center;
}

.cta-band__inner { display: grid; justify-items: center; gap: 0.5rem; }
.cta-band__title { max-width: 22ch; margin-bottom: 1.25rem; }

/* ------------------------------------------------------------- organisers */

.organisers { background: var(--paper); color: var(--navy); }
.organisers .h2 { color: var(--navy); }
.organisers__brand { width: min(100%, 300px); margin: 0 auto 3rem; }
.organisers__title { margin-bottom: 2.5rem; }

.organisers__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.organisers__logo { width: auto; }
.organisers__logo--ds { height: 42px; }
.organisers__logo--uae { height: 78px; }

/* ------------------------------------------------------ contact / page head */

.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem) clamp(2rem, 1rem + 3vw, 3rem);
  text-align: center;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}

.page-head__court {
  position: absolute;
  inset: -20% -6%;
  z-index: -1;
  background: url('/assets/court.svg') center / cover no-repeat;
  opacity: 0.08;
  mask-image: radial-gradient(60% 70% at 50% 40%, #000 20%, transparent 74%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000 20%, transparent 74%);
}

.page-head__lede {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: var(--fs-lede);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 760px;
  margin-inline: auto;
}

.contact__card {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 2.5rem 1.75rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact__card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 181, 126, 0.4);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45);
}

.contact__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: rgba(201, 10, 10, 0.16);
  border: 1px solid rgba(201, 10, 10, 0.35);
}

.contact__icon svg { width: 22px; height: 22px; fill: var(--sand); }

.contact__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__value { font-size: 1.08rem; font-weight: 600; word-break: break-word; }
.contact__social { margin-top: 3.5rem; }

/* ------------------------------------------------------------------ video */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: 2.25rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy { margin: 0; color: var(--muted); font-size: 0.84rem; }

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 50;
}

.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-4px); }

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 1024px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
}

@media (max-width: 900px) {
  .app-band__inner { grid-template-columns: 1fr; text-align: center; }
  .app-band .lede { margin-inline: auto; }
  .app-band .eyebrow { text-align: center; }
  .stores { justify-content: center; }
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .nav, .social--header { display: none; }
  .nav-toggle { display: flex; justify-self: end; grid-column: 3; }
  .site-header__logo { gap: 1.4rem; }
  .site-header__logo-sm { height: 36px; }
  .site-header__logo-ds { height: 16px; }
  .split { grid-template-columns: 1fr; }
  .site-footer__inner { justify-content: center; text-align: center; }
}

/* Below this the milestones stop fitting side by side; the timeline rotates
   to a vertical rail rather than wrapping into a ragged grid. */
@media (max-width: 760px) {
  .tl { grid-template-columns: 1fr; gap: 0; }
  .tl__item { text-align: left; padding: 0 0 1.85rem 2.5rem; }

  .tl__item::before {
    top: 16px;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .tl__item:first-child::before { left: 7px; top: 16px; }
  .tl__item:last-child::before { height: 0; }
  .tl__marker { top: 4px; left: 0; translate: none; }
}

@media (max-width: 620px) {
  .store img { height: 44px; }
  .cats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .organisers__logo--ds { height: 32px; }
  .organisers__logo--uae { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
