/* =========================================================
   Metropolis Jazz Festival — Main Stylesheet
   Light theme (default), high-contrast toggle, a11y mode
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:           #f3efe6;
  --bg-soft:      #ece7da;
  --bg-card:      #ffffff;
  --line:         rgba(10,10,10,0.10);
  --line-strong:  rgba(10,10,10,0.22);
  --fg:           #0a0a0a;
  --fg-dim:       #3a3a3a;
  --fg-mute:      #6c6c6c;
  --accent:       #b91c1c;
  --accent-2:     #d97757;
  --grid-max:     1440px;
  --slider-h:     78vh;
  --serif:        "Fraunces", "Times New Roman", serif;
  --sans:         "Inter", system-ui, sans-serif;
  --mono:         "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- High-contrast (WCAG, black + yellow) ---------- */
[data-theme="contrast"] {
  --bg:          #000000;
  --bg-soft:     #000000;
  --bg-card:     #0a0a0a;
  --line:        #ffd400;
  --line-strong: #ffd400;
  --fg:          #ffd400;
  --fg-dim:      #ffd400;
  --fg-mute:     #ffd400;
  --accent:      #ffd400;
  --accent-2:    #ffd400;
}
[data-theme="contrast"] .slide-bg::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.85) 100%) !important;
}
[data-theme="contrast"] .slide-bg               { filter: grayscale(1) brightness(0.4); }
[data-theme="contrast"] .event-card .photo .img,
[data-theme="contrast"] .detail-cover           { filter: grayscale(1) brightness(0.6); }
[data-theme="contrast"] .btn-primary            { background: #ffd400; color: #000; box-shadow: none; }
[data-theme="contrast"] .btn-primary .arrow     { background: #000; color: #ffd400; }
[data-theme="contrast"] .btn-ghost              { background: #000; color: #ffd400; border-color: #ffd400; }
[data-theme="contrast"] .ticket-cta             { background: #ffd400; color: #000; }
[data-theme="contrast"] .ticket-cta .arrow      { background: #000; color: #ffd400; }
[data-theme="contrast"] .date-badge             { background: #ffd400 !important; color: #000 !important; }
[data-theme="contrast"] .stat .num,
[data-theme="contrast"] .editorial h2 em,
[data-theme="contrast"] .slide-title em,
[data-theme="contrast"] .section-title em,
[data-theme="contrast"] .detail-info h1 em,
[data-theme="contrast"] .footer-brand em,
[data-theme="contrast"] .contact-hero em        { color: #ffd400; }
[data-theme="contrast"] .brand .mark            { background: #ffd400; color: #000; }
[data-theme="contrast"] ::selection             { background: #ffd400; color: #000; }

/* ---------- A+ Accessibility mode ---------- */
body.a11y { font-size: 22px; }
body.a11y .nav button            { font-size: 20px; padding: 12px 20px; }
body.a11y .brand-meta b          { font-size: 20px; }
body.a11y .brand-meta span       { font-size: 14px; }
body.a11y .eyebrow,
body.a11y .breadcrumb,
body.a11y .footer-bottom,
body.a11y .hero-meta,
body.a11y .footer-col h4,
body.a11y .info-cell .l,
body.a11y .contact-cell h4       { font-size: 16px !important; letter-spacing: 0.08em; }
body.a11y .slide-subtitle        { font-size: 22px; gap: 16px; }
body.a11y .slide-index           { font-size: 20px; }
body.a11y .event-card .meta      { font-size: 16px; }
body.a11y .event-card .num,
body.a11y .event-card .date-badge { font-size: 16px; padding: 10px 14px; }
body.a11y .partner .logo-name    { font-size: 24px; }
body.a11y .partner .logo-tag     { font-size: 14px; }
body.a11y .marquee span          { font-size: 44px; }
body.a11y .footer-col a,
body.a11y .footer-col p          { font-size: 20px; line-height: 1.7; }
body.a11y .detail-body p         { font-size: 22px; line-height: 1.7; }
body.a11y .editorial p           { font-size: 22px; line-height: 1.6; }
body.a11y .info-cell .v          { font-size: 32px; }
body.a11y .stat .lbl             { font-size: 16px; }
body.a11y .btn-primary,
body.a11y .btn-ghost,
body.a11y .ticket-cta            { font-size: 20px; padding: 18px 28px 18px 32px; }
body.a11y .events-grid           { grid-template-columns: 1fr; gap: 32px; }
body.a11y .editorial-inner       { grid-template-columns: 1fr; gap: 48px; }
body.a11y .partners-grid         { grid-template-columns: 1fr 1fr; }
body.a11y .footer-top            { grid-template-columns: 1fr; gap: 40px; }
body.a11y .detail-grid           { grid-template-columns: 1fr; gap: 40px; }
body.a11y .detail-body-grid      { grid-template-columns: 1fr; gap: 24px; }
body.a11y .contact-grid          { grid-template-columns: 1fr; }
body.a11y .info-grid             { grid-template-columns: 1fr; }
body.a11y .editorial-stats       { grid-template-columns: 1fr; }
body.a11y .nav                   { gap: 2px; flex-wrap: wrap; }
body.a11y .topbar-inner          { padding: 16px 24px; gap: 16px; }
body.a11y section                { padding: 80px 28px; }
body.a11y .event-card h3         { font-size: 44px; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }

/* ---------- Top bar ---------- */
.mjf-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.topbar-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 16px;
  flex-shrink: 0;
}
.brand-meta { display: flex; flex-direction: column; line-height: 1.05; }
.brand-meta b {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-meta span {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

.mjf-nav { display: flex; gap: 4px; justify-content: center; }
.mjf-nav a {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.mjf-nav a:hover,
.mjf-nav a.current-menu-item,
.mjf-nav a[aria-current="page"] {
  color: var(--fg);
  background: color-mix(in oklab, var(--fg) 8%, transparent);
}

.topbar-right { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  display: grid; place-items: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--line-strong);
  background: color-mix(in oklab, var(--fg) 4%, transparent);
}
.icon-btn svg { width: 16px; height: 16px; }

.ticket-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}
.ticket-cta:hover { transform: translateY(-1px); filter: brightness(1.06); color: #fff; }
.ticket-cta .arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ---------- Page wrapper ---------- */
.mjf-page { padding-top: 80px; }

/* ---------- HERO / slider ---------- */
.mjf-hero {
  position: relative;
  height: var(--slider-h);
  min-height: 620px;
  overflow: hidden;
  background: var(--bg-soft);
}
.mjf-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.mjf-slide.active { opacity: 1; pointer-events: auto; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s linear;
}
.mjf-slide.active .slide-bg { transform: scale(1.10); }
.slide-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.20) 30%, rgba(0,0,0,0.30) 60%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, transparent 50%);
}

.hero-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-inner {
  position: relative;
  height: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 32px 56px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #fff;
}
.hero-meta {
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-meta .edition {
  display: flex; align-items: center; gap: 12px;
}
.hero-meta .edition::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
  animation: mjf-pulse 2s ease-in-out infinite;
}
@keyframes mjf-pulse {
  0%,100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
}

.hero-content { align-self: end; max-width: 900px; }
.slide-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,180,138,1);
  margin-bottom: 18px;
  display: inline-flex; gap: 16px; align-items: center;
}
.slide-index .bar { width: 56px; height: 1px; background: rgba(255,255,255,0.4); }

.slide-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(58px, 9.5vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.slide-title em { font-style: italic; font-weight: 300; color: rgba(255,180,138,1); }

.slide-subtitle {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  margin: 0 0 32px;
}
.slide-subtitle .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.slide-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px -8px color-mix(in oklab, var(--accent) 80%, transparent);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px -8px color-mix(in oklab, var(--accent) 80%, transparent);
  color: #fff;
}
.btn-primary .arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.22); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.btn-ghost {
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--fg);
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

/* Hero ghost override — always white on dark bg */
.mjf-hero .btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.65);
}
.mjf-hero .btn-ghost:hover { background: #fff; color: #0a0a0a; border-color: #fff; }

/* ---------- Slider controls ---------- */
.slider-controls {
  position: absolute; right: 32px; bottom: 32px;
  display: flex; align-items: center; gap: 14px; z-index: 5;
}
.pager { display: flex; gap: 8px; }
.pager .dot-btn {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.25); border: none; padding: 0;
  overflow: hidden; position: relative; cursor: pointer;
}
.pager .dot-btn .fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: #fff; width: 0;
}
.pager .dot-btn.active .fill { width: 100%; transition: width 6s linear; }
.arrow-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.2); color: #fff;
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.arrow-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ---------- Marquee ---------- */
.mjf-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; background: var(--bg); padding: 22px 0;
}
.marquee-track {
  display: flex; gap: 56px;
  animation: mjf-marquee 38s linear infinite;
  white-space: nowrap; width: max-content;
}
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 38px; letter-spacing: -0.02em; color: var(--fg-mute);
}
.marquee-track span.hot { color: var(--accent); font-style: normal; }
.marquee-track .star { color: var(--accent); font-size: 26px; align-self: center; }
@keyframes mjf-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.mjf-section {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 110px 32px;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px; align-items: end;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute); display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: "—"; color: var(--accent); }
.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 6vw, 96px);
  letter-spacing: -0.03em; line-height: 0.95; margin: 0;
}
.section-title em { font-style: italic; color: var(--accent-2); font-weight: 300; }
.section-aside {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute); text-align: right; line-height: 1.6;
}

/* ---------- Event cards ---------- */
.events-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.event-card {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.3s;
  isolation: isolate; text-decoration: none; display: block; color: inherit;
}
.event-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.event-card .photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.event-card .photo .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.event-card:hover .photo .img { transform: scale(1.06); }
.event-card .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
}
.event-card .num {
  position: absolute; top: 16px; left: 18px; z-index: 2;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.85);
}
.event-card .date-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--accent); color: #fff; border-radius: 4px;
  padding: 8px 12px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
}
.event-card .body { padding: 24px 24px 28px; }
.event-card h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: 38px; line-height: 1; letter-spacing: -0.02em; margin: 0 0 16px;
}
.event-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute);
}
.event-card .meta .more { color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.event-card .meta .more .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center; transition: background 0.2s, color 0.2s;
}
.event-card:hover .meta .more .arrow { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Editorial block ---------- */
.mjf-editorial {
  background: var(--bg-soft); padding: 110px 32px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.editorial-inner {
  max-width: var(--grid-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center;
}
.editorial-inner h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5vw, 78px); line-height: 1;
  letter-spacing: -0.025em; margin: 18px 0 28px;
}
.editorial-inner h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.editorial-inner p {
  font-size: 17px; line-height: 1.55; color: var(--fg-dim); max-width: 52ch; margin: 0 0 20px;
}
.editorial-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.stat { background: var(--bg-soft); padding: 32px 28px; }
.stat .num {
  font-family: var(--serif); font-weight: 300; font-size: 64px;
  line-height: 1; letter-spacing: -0.03em; color: var(--accent);
}
.stat .lbl {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); margin-top: 12px;
}

/* ---------- Partners grid ---------- */
.partners-section { margin-top: 36px; }
.partners-section:first-of-type { margin-top: 0; }
.partners-section h3 {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute);
  margin: 0 0 14px;
}
.partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.partners-grid.partners-count-1 { grid-template-columns: 1fr; }
.partners-grid.partners-count-2 { grid-template-columns: repeat(2, 1fr); }
.partners-grid.partners-count-3 { grid-template-columns: repeat(3, 1fr); }
.partners-grid.partners-count-4 { grid-template-columns: repeat(4, 1fr); }
.partner {
  position: relative; background: var(--bg); padding: 40px 28px;
  aspect-ratio: 1 / 1; display: grid; place-items: center; text-align: center;
  transition: background 0.25s ease; overflow: hidden; text-decoration: none; color: inherit;
}
.partner:hover { background: var(--bg-card); }
.partner.is-full-width {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 1;
}
.partner .logo-slot {
  width: 100%; max-width: 72%; height: 72%;
  display: grid; place-items: center; position: relative;
}
.partner.is-full-width .logo-slot {
  max-width: 70%;
  height: 78%;
}
/* Placeholder crosshatch when no logo is uploaded */
.partner.no-logo .logo-slot::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in oklab, var(--fg) 5%, transparent) 0 6px,
    transparent 6px 12px
  );
  border: 1px dashed var(--line-strong); border-radius: 3px;
  opacity: 0.55; transition: opacity 0.25s ease;
}
.partner.no-logo:hover .logo-slot::before { opacity: 0.9; }
.partner .logo-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.partner:hover .logo-img { filter: grayscale(0); opacity: 1; }
.partner .logo-name {
  position: relative; z-index: 1;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 19px; letter-spacing: -0.01em; color: var(--fg-dim);
  background: var(--bg); padding: 4px 12px;
  transition: color 0.25s ease, background 0.25s ease;
}
.partner:hover .logo-name { color: var(--fg); background: var(--bg-card); }
.partner .logo-tag {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute); opacity: 0.7;
}

/* ---------- Footer ---------- */
.mjf-footer {
  background: var(--bg); border-top: 1px solid var(--line); padding: 80px 32px 40px;
}
.footer-inner { max-width: var(--grid-max); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 56px; line-height: 0.95; letter-spacing: -0.03em; margin: 0;
}
.footer-brand em { color: var(--accent); }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute); margin: 0 0 16px; font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block; color: var(--fg-dim); font-size: 14px;
  line-height: 1.7; margin: 0 0 4px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute);
  display: flex; gap: 12px; align-items: center; margin-bottom: 40px;
}
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb .sep { color: var(--accent); }

/* ---------- Single event ---------- */
.detail-hero {
  position: relative; padding: 60px 32px 80px;
  max-width: var(--grid-max); margin: 0 auto;
}
.detail-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: end;
}
.detail-cover {
  aspect-ratio: 4/5; background-size: cover; background-position: center;
  border-radius: 6px; position: relative; overflow: hidden;
}
.detail-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.detail-cover .badge {
  position: absolute; top: 24px; left: 24px;
  background: var(--accent); color: #fff;
  padding: 10px 14px; border-radius: 4px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.detail-info h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(60px, 8vw, 140px);
  line-height: 0.9; letter-spacing: -0.035em; margin: 0 0 20px;
}
.detail-info h1 em { font-style: italic; color: var(--accent-2); font-weight: 300; }
.detail-info .roles {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 32px;
}
.info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 32px;
}
.info-cell { background: var(--bg); padding: 22px 24px; }
.info-cell .l {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 8px;
}
.info-cell .v {
  font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1; letter-spacing: -0.02em;
}
.detail-info .lead {
  font-size: 18px; line-height: 1.55; color: var(--fg-dim); margin: 0 0 32px; max-width: 50ch;
}

.detail-body-outer { max-width: var(--grid-max); margin: 80px auto 0; padding: 0 32px 110px; }
.detail-body-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
}
.detail-body-grid h2 {
  font-family: var(--serif); font-weight: 300; font-size: 44px;
  line-height: 1; letter-spacing: -0.025em; margin: 0 0 18px;
}
.detail-body-grid p {
  font-size: 16.5px; line-height: 1.65; color: var(--fg-dim); margin: 0 0 16px;
}
.detail-body-grid .entry-content p:first-child::first-letter {
  font-family: var(--serif); font-style: italic; font-size: 56px;
  line-height: 0.85; float: left; margin: 8px 12px 0 0; color: var(--accent);
}

/* ---------- Contact ---------- */
.contact-wrap { max-width: var(--grid-max); margin: 0 auto; padding: 80px 32px 110px; }
.contact-hero {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(70px, 11vw, 200px); line-height: 0.88;
  letter-spacing: -0.04em; margin: 24px 0 48px;
}
.contact-hero em { font-style: italic; color: var(--accent); font-weight: 300; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.contact-cell { background: var(--bg); padding: 40px 36px; }
.contact-cell h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute); margin: 0 0 18px; font-weight: 500;
}
.contact-cell .big {
  font-family: var(--serif); font-weight: 300; font-size: 36px;
  line-height: 1.05; letter-spacing: -0.02em; margin: 0;
}
.contact-cell a { color: var(--fg); }
.contact-cell a:hover { color: var(--accent); }
.contact-cell-img-wrap { margin-bottom: 20px; }
.contact-cell-img { display: block; max-width: 100%; max-height: 120px; object-fit: contain; object-position: left center; }

/* ---------- Mobile menu ---------- */
.hamburger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  align-items: center; justify-content: center; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.menu-open .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw); background: var(--bg);
  border-left: 1px solid var(--line); z-index: 110;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 96px 32px 40px;
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 105; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
body.menu-open .mobile-backdrop { opacity: 1; pointer-events: auto; }
.m-section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute); margin: 0 0 18px;
}
.m-nav { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; }
.m-nav a {
  background: transparent; border: none; border-top: 1px solid var(--line);
  color: var(--fg); font-family: var(--serif); font-weight: 300; font-size: 32px;
  letter-spacing: -0.02em; text-align: left; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: color 0.2s, padding 0.25s; text-decoration: none;
}
.m-nav a:last-child { border-bottom: 1px solid var(--line); }
.m-nav a:hover { color: var(--accent); padding-left: 8px; }
.m-nav a.current-menu-item { color: var(--accent); }
.m-nav a .arrow { font-family: var(--sans); font-size: 16px; color: var(--fg-mute); }

.m-a11y { display: flex; gap: 10px; margin-bottom: 32px; }
.m-a11y button {
  flex: 1; padding: 14px 16px; border: 1px solid var(--line);
  background: transparent; color: var(--fg); font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.m-a11y button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.m-a11y button svg { width: 16px; height: 16px; }
.m-foot {
  margin-top: auto; padding-top: 32px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute); line-height: 1.7;
}
.m-foot a { color: var(--fg-dim); display: block; }

/* ---------- Responsive ≤ 1024px ---------- */
@media (max-width: 1024px) {
  .topbar-inner { grid-template-columns: auto 1fr auto; padding: 14px 22px; }
  .mjf-nav, .topbar-right .icon-btn { display: none; }
  .topbar-right { justify-content: flex-end; }
  .hamburger { display: flex; }
  .ticket-cta { padding: 9px 16px; font-size: 12px; }
  .ticket-cta .arrow { width: 20px; height: 20px; }
  .brand-meta span { display: none; }
  .brand-meta b { font-size: 12px; letter-spacing: 0.14em; }
  .mjf-section { padding: 80px 22px; }
  .events-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mjf-editorial { padding: 80px 22px; }
  .editorial-inner { grid-template-columns: 1fr; gap: 40px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-body-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail-body-outer { padding: 0 22px 80px; }
  .detail-hero { padding: 40px 22px 60px; }
  .contact-wrap { padding: 60px 22px 80px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 14px; padding-bottom: 20px; margin-bottom: 36px; }
  .section-aside { text-align: left; }
  .hero-inner { padding: 0 22px 50px; }
  .slider-controls { right: 22px; bottom: 22px; }
}

@media (max-width: 720px) {
  .events-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .editorial-stats { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .slide-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .slide-cta-row .btn-primary, .slide-cta-row .btn-ghost { justify-content: center; }
  .footer-brand { font-size: 40px; }
  .marquee-track span { font-size: 28px; }
  .pager .dot-btn { width: 22px; }
  .arrow-btn { width: 42px; height: 42px; }
  .slide-subtitle { font-size: 12px; gap: 14px; }
  .slide-index { font-size: 11px; }
  .hero-meta { padding-top: 20px; font-size: 10px; }
  .breadcrumb { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .mobile-menu { padding: 88px 24px 32px; }
  .m-nav a { font-size: 26px; padding: 14px 0; }
  .detail-info h1 { font-size: clamp(48px, 14vw, 90px); }
  .mjf-section { padding: 60px 22px; }
}

/* ---------- Admin meta table helper (loaded in wp-admin only) ---------- */
.mjf-meta-table { width: 100%; border-collapse: collapse; }
.mjf-meta-table th, .mjf-meta-table td { padding: 10px 8px; vertical-align: top; }
.mjf-meta-table th { width: 160px; font-weight: 600; text-align: left; }
