/* Manch flagship page. Loaded only on /manch (static + cacheable).
   Brand colours are decorative; text/button colours use the *-ink values so
   they meet WCAG AA (4.5:1) on their backgrounds. */

.manch-page-wrapper {
  --m-dark: #0f172a;
  --m-body: #334155;
  --m-muted: #475569;
  --m-line: #e2e8f0;
  --m-soft: #f8fafc;
  --m-gold: #f59e0b;
  --m-cyan: #00aeef;
  --m-cyan-ink: #0369a1;
  --m-orange: #f95000;
  --m-orange-ink: #c2410c;
  --m-radius: 24px;
  color: var(--m-dark);
  font-family: 'Inter', system-ui, sans-serif;
  scroll-behavior: smooth;
}

.manch-page-wrapper :focus-visible {
  outline: 3px solid var(--m-cyan-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.manch-page-wrapper .m-hero :focus-visible {
  outline-color: #fff;
}

.navbar-minimal {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.m-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--m-dark);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 700;
}

.m-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Hero ---------- */
.m-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
  padding: 3.5rem 0 3rem;
  margin-top: var(--navbar-height, 80px);
  overflow: hidden;
  background: #020617;
  isolation: isolate;
}

.m-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.m-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Even dark scrim (no white fade): the photo stays visible while the white title,
     kicker and glass card keep >= 4.5:1 against even a bright backdrop. */
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.66) 0%, rgba(2, 6, 23, 0.5) 45%, rgba(2, 6, 23, 0.66) 100%);
}

.m-hero__inner {
  width: 100%;
  max-width: 1100px;
  padding: 0 1.5rem;
  text-align: center;
}

.m-kicker {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  background: rgba(2, 6, 23, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ffb27d; /* 9:1 on the hero scrim; brand orange is too dark here */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.m-hero__title {
  margin: 0 0 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3.5rem, 12vw, 9.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.m-hero__title--bling {
  background: linear-gradient(45deg, #f95000 0%, #f59e0b 15%, #fff 30%, #f59e0b 45%, #00aeef 60%, #fff 75%, #f95000 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: m-shimmer 3s linear infinite;
  filter: brightness(1.15) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.m-hero__title--mask {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: cover;
  background-position: center;
}

@keyframes m-shimmer {
  to { background-position: 200% center; }
}

.m-datecard {
  display: inline-block;
  max-width: 100%;
  margin-top: 1.25rem;
  padding: 2rem 3.5rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.m-datecard__label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--m-orange-ink);
}

.m-datecard__date {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--m-dark);
}

.m-datecard__meta {
  margin: 0.6rem 0 0;
  color: var(--m-muted);
  font-weight: 500;
}

.m-datecard__meta span + span::before {
  content: '·';
  margin: 0 0.6rem;
  color: #94a3b8;
}

/* ---------- Buttons ---------- */
.m-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.95rem 2.4rem;
  border: 0;
  border-radius: 100px;
  font: 800 0.9rem/1.1 'Inter', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.m-btn:hover {
  transform: translateY(-3px);
}

.m-btn--primary {
  background: var(--m-orange-ink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(194, 65, 12, 0.35);
}

.m-btn--secondary {
  background: var(--m-cyan-ink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(3, 105, 161, 0.3);
}

.m-btn--ghost {
  background: #fff;
  color: var(--m-dark);
  border: 2px solid var(--m-line);
}

.m-btn[aria-disabled='true'] {
  background: #475569;
  box-shadow: none;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.m-section {
  padding: 4rem 0;
  background: #fff;
}

.m-section--soft {
  background: var(--m-soft);
}

.m-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.m-head {
  margin-bottom: 2.25rem;
  text-align: center;
}

.m-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.m-title em {
  font-style: normal;
  color: var(--m-cyan-ink);
}

.m-title .m-accent {
  color: var(--m-orange-ink);
}

.m-rule {
  width: 60px;
  height: 5px;
  margin: 1rem auto 0;
  border-radius: 10px;
  background: var(--m-orange);
}

.m-sub {
  max-width: 44rem;
  margin: 0.9rem auto 0;
  color: var(--m-muted);
  font-size: 1.05rem;
}

/* ---------- Details + tickets ---------- */
.m-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .m-grid-2 { grid-template-columns: 1fr 1fr; }
}

.m-card {
  padding: 2rem;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.m-card h3 {
  margin: 0 0 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.m-facts {
  display: grid;
  gap: 1.1rem;
  margin: 0;
}

.m-facts dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-orange-ink);
}

.m-facts dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  color: var(--m-body);
}

.m-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.m-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 2px solid var(--m-line);
  border-radius: 100px;
  color: var(--m-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.m-link:hover {
  border-color: var(--m-cyan-ink);
  color: var(--m-cyan-ink);
}

.m-tiers {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: var(--m-soft);
}

.m-tier--out {
  opacity: 0.7;
}

.m-tier__name {
  font-weight: 800;
}

.m-tier__desc {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--m-muted);
}

.m-tier__price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  white-space: nowrap;
}

.m-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.m-badge--eb { background: #fef3c7; color: #92400e; }
.m-badge--low { background: #ffedd5; color: #9a3412; }
.m-badge--out { background: #e2e8f0; color: #334155; }
.m-badge--tag { background: #e0f2fe; color: #075985; }

.m-fine {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--m-muted);
}

/* ---------- Notify ---------- */
.m-notify {
  max-width: 34rem;
  margin: 0 auto;
}

.m-notify__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.m-notify__input {
  flex: 1 1 14rem;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border: 2px solid #94a3b8;
  border-radius: 100px;
  font-size: 1rem;
  color: var(--m-dark);
  background: #fff;
}

.m-notify__input:focus {
  border-color: var(--m-cyan-ink);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.18);
}

.m-notify__status {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  font-weight: 600;
  text-align: center;
}

.m-notify__status[data-state='ok'] { color: #166534; }
.m-notify__status[data-state='error'] { color: #b91c1c; }

/* ---------- Vision ---------- */
.m-vision {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid var(--m-line);
  border-radius: 30px;
  background: var(--m-soft);
}

@media (min-width: 900px) {
  .m-vision { grid-template-columns: 1.4fr 1fr; padding: 3rem 3.5rem; }
}

.m-vision h3 {
  margin: 0 0 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
}

.m-vision h3 span { color: var(--m-orange-ink); }
.m-vision p { color: var(--m-body); line-height: 1.8; }

.m-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(220px, 62vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 4px solid var(--m-cyan);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.m-seal small {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: var(--m-orange-ink);
}

.m-seal strong {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  font-weight: 900;
}

/* ---------- Stats ---------- */
.m-stats {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.m-stat {
  padding: 2rem 1.25rem;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.m-stat__n {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--m-dark);
}

.m-stat__l {
  margin-top: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-orange-ink);
}

/* ---------- Perform ---------- */
.m-perform {
  padding: 3rem 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  text-align: center;
}

.m-perform h2 {
  margin: 0 0 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 900;
}

.m-perform p {
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  color: #cbd5e1;
  font-size: 1.05rem;
}

/* ---------- Video facade ---------- */
.m-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: var(--m-radius);
  background: #000;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.14);
}

.m-video img,
.m-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.m-video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.1));
  cursor: pointer;
}

.m-video__play span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--m-orange-ink);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}

.m-video__play:hover span { transform: scale(1.08); }

/* ---------- Past editions ---------- */
.m-editions {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
}

.m-edition a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.m-edition a:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.m-edition__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
}

.m-edition__body {
  display: block;
  padding: 1rem 1.15rem 1.2rem;
}

.m-edition__year {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
}

.m-edition__date {
  display: block;
  color: var(--m-muted);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.m-faq {
  max-width: 48rem;
  margin: 0 auto;
}

.m-faq details {
  margin-bottom: 0.75rem;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #fff;
}

.m-faq summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem 1.35rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.m-faq summary::-webkit-details-marker { display: none; }

.m-faq summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--m-orange-ink);
}

.m-faq details[open] summary::after { content: '–'; }

.m-faq details p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: var(--m-body);
  line-height: 1.7;
}

/* ---------- Sticky mobile CTA ---------- */
.m-sticky {
  position: fixed;
  left: 0;
  right: 0;
  /* Sits directly above the layout's fixed mobile bottom nav (68px tall, z-index 2000). */
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: none;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--m-line);
  backdrop-filter: blur(12px);
}

.m-sticky .m-btn { width: 100%; }

@media (max-width: 767.98px) {
  .m-sticky[data-active='true'] { display: block; }
  .manch-page-wrapper { padding-bottom: 4.5rem; }
  .m-sticky { box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08); }
}

/* ---------- Reveal (content is visible unless JS is confirmed running) ---------- */
.js-enabled .m-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

.m-reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---------- Small screens ---------- */
@media (max-width: 767.98px) {
  .m-hero { min-height: auto; padding: 3rem 0 2.25rem; }
  .m-datecard { padding: 1.4rem 1.25rem; border-radius: 22px; width: 100%; }
  .m-btn { width: 100%; max-width: 320px; padding-inline: 1.5rem; }
  .m-section { padding: 2.75rem 0; }
  .m-card { padding: 1.5rem 1.25rem; }
  .m-vision { padding: 1.75rem 1.25rem; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .manch-page-wrapper { scroll-behavior: auto; }
  .m-hero__title--bling { animation: none; }
  .m-reveal,
  .m-btn,
  .m-edition a,
  .m-video__play span { transition: none; }
  .js-enabled .m-reveal:not(.is-in) { opacity: 1; transform: none; }
  .m-btn:hover,
  .m-edition a:hover { transform: none; }
}

/* Screen-reader-only text */
.m-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
