:root {
    /* MFO red — warm, energetic, with a gold accent for zing. */
    --ink: #2a090c;
    --ink-2: #3a1015;
    --cream: #fff7f4;
    --violet: #b3121f;   /* deep red (accents, headings, marquee) */
    --pink: #e11d2a;     /* bright scarlet */
    --amber: #f0a500;    /* gold accent */
    --teal: #e0592b;     /* warm ember (rarely used) */
    --mfo-red: #891818;      /* the brick red from the orchestra's existing site */
    --mfo-red-lift: #a01d1d; /* hover */
    --text: #2e1414;
    --muted: #8a5a58;
    --radius: 18px;
    --grad: linear-gradient(100deg, var(--pink), var(--violet) 55%, var(--amber));
    --shadow: 0 18px 40px rgba(177, 18, 31, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, .brand-mark { font-family: "Space Grotesk", "Inter", sans-serif; }
a { color: inherit; }
img, iframe { max-width: 100%; }

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 4px; width: 0;
    background: var(--grad);
    z-index: 200;
    transition: width 0.1s linear;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
/* Solid --mfo-red rather than the brand gradient, matching the deep brick red
   the orchestra's existing site uses for its panels. White on it measures
   9.5:1. Covers all three primary calls to action: "See our 2026 concerts",
   "Tickets" on each concert, and "Email us to come along". */
.btn-primary {
    background: var(--mfo-red);
    color: #fff;
    box-shadow: 0 10px 24px rgba(137, 24, 24, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--mfo-red-lift);
    box-shadow: 0 16px 30px rgba(137, 24, 24, 0.45);
}
/* Sits on the light hero scrim, so it's dark-on-light rather than the reverse. */
.btn-ghost {
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink);
    border: 1.5px solid rgba(42, 9, 12, 0.4);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.75); }

/* ---- Nav ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    /* Denser than it needs to be over a dark hero: the nav now sits on the
       light scrim at the top of the page, and its links are white. */
    background: rgba(42, 9, 12, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, padding 0.3s ease;
}
.nav.scrolled { background: rgba(42, 9, 12, 0.9); padding: 0.6rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(225, 29, 42, 0.4);
}
.brand-mark.big { width: 60px; height: 60px; font-size: 1.4rem; border-radius: 16px; }
.brand-text { font-weight: 600; font-size: 0.95rem; }
.logo-mfo { height: 34px; width: auto; color: #fff7f4; display: block; }
.footer-brand .logo-mfo { height: 56px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
    color: #f3e9ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.nav-links a:not(.nav-cta)::after {
    content: "";
    position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; border-radius: 2px;
    background: var(--grad);
    transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
    background: var(--mfo-red);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(137, 24, 24, 0.35);
}
.nav-cta:hover { background: var(--mfo-red-lift); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 3px; background: #fff; transition: 0.3s; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink);
    overflow: hidden;
    padding: 7rem 1.5rem 4rem;
}
/* Crossfading photo slideshow behind the hero. */
.hero-slides { position: absolute; inset: 0; z-index: 0; background: #f3e2da; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
    will-change: transform, opacity;
}
.hero-slide.active { opacity: 1; }

/* ---- Ken Burns drift ----
   The slide only moves while it's the active one, so the zoom always starts as
   the image fades in rather than running on a timeline of its own. Slides
   alternate between pushing in and pulling out so consecutive images don't
   feel identical.

   Each slide's resting transform is the END of its own keyframes: when .active
   comes off and the animation stops, the transform it falls back to is the one
   it already had, so there's no jump during the 1.6s fade-out.
   Odd slides push in along one diagonal, even slides pull out along the other.

   Headroom rule: a translate of X% shifts the layer by X% x scale of its width,
   while the overscan available at that scale is only (scale - 1) / 2. So the
   pan has to stay under (scale - 1) / (2 x scale) at the SMALLEST scale in the
   keyframes — 3.7% here, at scale 1.08. Everything below is inside that, which
   is why the minimum zoom is 1.08 rather than 1.04: a flat image can't pan
   without showing an edge. */
.hero-slide                 { transform: scale(1.20) translate3d(2.6%, 1.6%, 0); }
.hero-slide:nth-child(even) { transform: scale(1.08) translate3d(-2.2%, 1.8%, 0); }

.hero-slide.active                 { animation: kenburns-in 6.8s ease-out forwards; }
.hero-slide.active:nth-child(even) { animation-name: kenburns-out; }

/* zoom in, drifting top-left -> bottom-right */
@keyframes kenburns-in {
    from { transform: scale(1.08) translate3d(-2.6%, -1.6%, 0); }
    to   { transform: scale(1.20) translate3d(2.6%, 1.6%, 0); }
}
/* zoom out, drifting top-right -> bottom-left */
@keyframes kenburns-out {
    from { transform: scale(1.20) translate3d(2.2%, -1.8%, 0); }
    to   { transform: scale(1.08) translate3d(-2.2%, 1.8%, 0); }
}

/* Warm cream scrim. The hero headline is black, and black needs a LIGHT
   background — on the old deep-red wash it measured under 2.4:1 and failed
   WCAG large-text contrast on every slide. At these alphas the instruments
   still read clearly through it and the headline measures ~9.8:1 at worst.
   Raising the alphas buys contrast the headline doesn't need and washes the
   photos out; lowering them starts to cost legibility. */
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(255, 247, 244, 0.42) 8%, rgba(255, 233, 222, 0.58)),
        linear-gradient(120deg, rgba(255, 247, 244, 0.58), rgba(255, 226, 212, 0.42) 55%, rgba(255, 240, 232, 0.58));
}
.hero::after {
    /* Floor fade into the cream page background so the white stat cards that
       overlap the hero don't land on a hard edge. */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 247, 244, 0.85));
}
.hero-inner { position: relative; z-index: 3; max-width: 860px; }
.hero-inner .logo-mfo {
    height: clamp(64px, 11vw, 104px);
    margin: 0 auto 1.4rem;
    color: var(--ink);
    filter: drop-shadow(0 4px 14px rgba(255, 247, 244, 0.85));
}
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(42, 9, 12, 0.25);
    color: var(--ink-2);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}
.hero h1 {
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    line-height: 1.02;
    margin: 0 0 1.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}
.hero h1 .grad {
    /* Solid black, overriding the .grad clipped-gradient treatment. "The
       Midlands" stays the slightly softer --ink above it. */
    background: none;
    -webkit-background-clip: border-box; background-clip: border-box;
    color: #000;
}
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.35rem); max-width: 640px; margin: 0 auto 2.2rem; color: var(--ink-2); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-notes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-notes span {
    position: absolute;
    font-size: 2.4rem;
    color: rgba(42, 9, 12, 0.22);
    animation: float 9s ease-in-out infinite;
}
.hero-notes span:nth-child(1) { left: 8%;  top: 30%; animation-delay: 0s; }
.hero-notes span:nth-child(2) { left: 85%; top: 22%; animation-delay: 1.2s; font-size: 3rem; }
.hero-notes span:nth-child(3) { left: 18%; top: 68%; animation-delay: 2.4s; }
.hero-notes span:nth-child(4) { left: 78%; top: 70%; animation-delay: 0.6s; font-size: 3.2rem; }
.hero-notes span:nth-child(5) { left: 50%; top: 16%; animation-delay: 1.8s; }
.hero-notes span:nth-child(6) { left: 62%; top: 78%; animation-delay: 3s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-6deg); opacity: 0.5; }
    50% { transform: translateY(-26px) rotate(6deg); opacity: 0.9; }
}
.scroll-cue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 3; color: var(--ink); text-decoration: none; font-size: 1.5rem;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 10px);} }

/* ---- Stats ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: -3.5rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
}
.stat {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.6rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-num {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* ---- Marquee ---- */
.marquee { overflow: hidden; padding: 2.5rem 0 0.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
    display: flex; gap: 1.5rem; width: max-content;
    animation: scroll-x 26s linear infinite;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600; font-size: 1.4rem; color: var(--violet);
    opacity: 0.7;
}
.marquee-track span:nth-child(even) { color: var(--pink); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Generic section ---- */
.section { max-width: 1080px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-alt { background: linear-gradient(180deg, #ffeee9, #fdf7ff); max-width: none; }
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 2.5rem; text-align: center; }
.eyebrow {
    display: inline-block;
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    font-size: 0.8rem; color: var(--pink); margin-bottom: 0.6rem;
}
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin: 0; letter-spacing: -0.5px; }
.lead { font-size: 1.2rem; color: var(--text); }

/* ---- About ---- */
/* The real orchestra photo. It's near-square, so it's capped by height rather
   than stretched across the column — a 16:9 crop would take the back row's
   heads off. */
.group-photo {
    margin: 0 0 2.5rem;
    text-align: center;
}
.group-photo img {
    width: 100%;
    max-width: 620px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 4px solid #fff;
}
.group-photo figcaption {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.instrument-card {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.instrument-card h3 { margin-top: 0; }
.chips { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
}
.instrument-card .muted { color: #e8c4b8; }

/* ---- Musical director ---- */
.director {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 3rem;
    padding: 2.2rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(177, 18, 31, 0.1);
    border-left: 5px solid var(--pink);
}
.director-portrait {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--grad);
    box-shadow: var(--shadow);
}
.director-portrait img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    display: block;
}
.director-body h3 { margin: 0 0 0.8rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.director-body .eyebrow { margin-bottom: 0.2rem; }
.director-body .lead { margin-top: 0; }
.director .chips { margin-top: 1.4rem; }
.director .chips li {
    background: rgba(177, 18, 31, 0.08);
    border-color: rgba(177, 18, 31, 0.18);
    color: var(--violet);
}

/* ---- Music cards ---- */
.section-lead {
    max-width: 720px;
    margin: 1rem auto 0;
    font-size: 1.15rem;
    color: var(--text);
}
.music-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.6rem;
    align-items: start;
}
.music-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(177, 18, 31, 0.1);
    border-top: 5px solid var(--mfo-red);
}
.music-card-body { padding: 1.6rem; }
.music-card-body h3 { margin: 0 0 0.2rem; font-size: 1.3rem; }
.music-card-subtitle { margin: 0 0 1rem; font-size: 0.95rem; }
.music-card-notes { margin: 1rem 0 0; }

.video-frame {
    position: relative; aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Track list ---- */
.track-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
/* Deliberately nowrap: when the row wrapped, a long track title pushed its note
   onto the next line, where it read as belonging to the track below. The button
   shrinks and wraps its own text instead. */
.track-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: nowrap; }
.track {
    display: inline-flex; align-items: center; gap: 0.55rem;
    min-width: 0;                 /* lets the button shrink instead of shoving the note out */
    text-align: left;
    font: inherit; font-size: 0.92rem; font-weight: 500;
    background: linear-gradient(120deg, rgba(137, 24, 24, 0.09), rgba(240, 165, 0, 0.12));
    border: 1px solid transparent;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: var(--violet);
}
button.track { cursor: pointer; transition: background 0.18s ease, transform 0.15s ease; }
button.track:hover { background: linear-gradient(120deg, rgba(137,24,24,0.18), rgba(240,165,0,0.2)); transform: translateY(-2px); }
button.track:focus-visible { outline: 2px solid var(--mfo-red); outline-offset: 2px; }
.track-icon {
    width: 0; height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;                 /* play triangle */
    border-color: transparent transparent transparent currentColor;
}
button.track[aria-pressed="true"] {
    background: var(--mfo-red); color: #fff;
    box-shadow: 0 8px 18px rgba(137, 24, 24, 0.3);
}
button.track[aria-pressed="true"] .track-icon {
    /* pause bars */
    width: 8px; height: 10px;
    border: 0;
    background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px);
}
.track-soon { opacity: 0.5; }
.track-title { overflow-wrap: anywhere; }
.track-notes { font-size: 0.82rem; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.track-player { display: block; width: 100%; margin-top: 1rem; }

/* ---- Performances ---- */
.gigs { display: flex; flex-direction: column; gap: 1.1rem; }
.gig {
    display: flex; align-items: center; gap: 1.5rem;
    background: #fff; border-radius: var(--radius);
    padding: 1.3rem 1.6rem;
    box-shadow: 0 10px 26px rgba(177, 18, 31, 0.1);
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.gig:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(177, 18, 31, 0.18); }

/* Past 2026 events: greyed out and de-emphasised. */
.gig-past { filter: grayscale(1); opacity: 0.55; }
.gig-past:hover { transform: none; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08); }
.gig-past .gig-date { background: #9a9a9a; box-shadow: none; }
.gig-past .gig-when { color: #8a8a8a; }
.gig-past .gig-cta { display: none; }
.gig-past .gig-body h3::after { content: " · past"; color: #9a9a9a; font-weight: 400; font-size: 0.8rem; }
.gig-date {
    flex: 0 0 auto; width: 76px; height: 76px;
    display: grid; place-content: center; text-align: center;
    background: var(--grad); color: #fff; border-radius: 14px;
    box-shadow: 0 8px 18px rgba(225, 29, 42, 0.3);
}
.gig-day { font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; font-weight: 700; line-height: 1; }
.gig-month { font-size: 0.75rem; letter-spacing: 1px; }
.gig-body { flex: 1; min-width: 0; }
.gig-body h3 { margin: 0 0 0.2rem; font-size: 1.25rem; }
.gig-when { margin: 0 0 0.4rem; color: var(--pink); font-weight: 600; font-size: 0.9rem; }
.gig-where { margin: 0 0 0.3rem; font-size: 0.95rem; }
.gig-price { margin: 0; font-size: 0.9rem; color: var(--muted); }
.gig-note { margin: 0.3rem 0 0; font-size: 0.82rem; color: var(--muted); font-style: italic; }
.gig-cta { flex: 0 0 auto; }
.gig-free {
    padding: 0.6rem 1.2rem; border-radius: 999px;
    background: rgba(177, 18, 31, 0.1); color: var(--violet);
    font-weight: 600; font-size: 0.9rem; white-space: nowrap;
}

/* ---- Join ---- */
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.join-card {
    background: #fff; border-radius: var(--radius); padding: 1.8rem;
    box-shadow: 0 10px 26px rgba(177, 18, 31, 0.1);
    transition: transform 0.18s ease;
}
.join-card:hover { transform: translateY(-5px); }
.join-card h3 { margin-top: 0; }
.join-card p { margin-bottom: 0; }
.join-cta {
    margin-top: 2.5rem; text-align: center;
    background: var(--ink); color: #fff;
    padding: 2.5rem 1.5rem; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.join-cta p { font-size: 1.25rem; margin: 0 0 1.4rem; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: #e9dcff; padding: 3.5rem 1.5rem 1.5rem; }
.footer-inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand p { margin: 0; font-weight: 600; }
.footer-brand .muted { color: #e0b3a8; font-weight: 400; }
.footer-contact h4 { margin: 0 0 0.5rem; }
.footer-contact a { color: #ffd86b; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.copyright { text-align: center; color: #b58a80; font-size: 0.85rem; margin: 1.5rem 0 0; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .brand-text { display: none; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; right: 0; left: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(42, 9, 12, 0.97);
        padding: 0.5rem 1rem 1.2rem;
        transform: translateY(-140%);
        transition: transform 0.35s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 0.9rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .nav-cta { text-align: center; margin-top: 0.6rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .music-grid { grid-template-columns: 1fr; }
    .director { grid-template-columns: 1fr; gap: 1.6rem; justify-items: center; text-align: center; }
    .director-portrait { width: 170px; }
    .director .chips { justify-content: center; }
    .join-grid { grid-template-columns: 1fr; }
    .gig { flex-wrap: wrap; }
    .gig-cta { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    /* No Ken Burns / floating notes / marquee for anyone who's asked their OS
       for less motion — the slideshow still crossfades, it just holds still. */
    .hero-slide, .hero-slide.active, .hero-notes span, .marquee-track, .scroll-cue { animation: none; }
    .hero-slide, .hero-slide:nth-child(even) { transform: scale(1.08); }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Interior pages (login, admin, advent)
   The home page runs the nav over a full-height hero; everywhere else the nav
   is a solid bar and the content needs to clear it.
   ========================================================================== */
.nav-solid { background: rgba(42, 9, 12, 0.96); }
.page-shell { padding-top: 76px; min-height: 60vh; }

.nav-login {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    padding: 0.45rem 1rem;
    border-radius: 999px;
}
.nav-login:hover { background: rgba(255, 255, 255, 0.12); }
.nav-signout { display: inline; margin: 0; }
.nav-linkish {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: #f3e9ff; font: inherit; font-weight: 500; font-size: 0.95rem;
}
.nav-linkish:hover { text-decoration: underline; }

.section.narrow { max-width: 620px; }
.centred { text-align: center; }

/* ---- Forms ---- */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field > span:first-child { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
    font: inherit;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid rgba(42, 9, 12, 0.2);
    border-radius: 10px;
    background: #fffdfc;
    color: var(--text);
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--mfo-red);
    outline-offset: 1px;
    border-color: transparent;
}
.field textarea { min-height: 150px; resize: vertical; }
.field-check { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.field-check input { width: 1.1rem; height: 1.1rem; }
.field-hint { font-size: 0.82rem; color: var(--muted); }
.field-error { color: var(--mfo-red); font-size: 0.85rem; }
.form-errors:not(:empty) {
    background: rgba(137, 24, 24, 0.08);
    border-left: 4px solid var(--mfo-red);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--mfo-red);
    font-size: 0.92rem;
}
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-actions { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }

.btn-secondary {
    background: rgba(42, 9, 12, 0.08);
    color: var(--ink);
    border: 1.5px solid rgba(42, 9, 12, 0.2);
}
.btn-secondary:hover { background: rgba(42, 9, 12, 0.14); }
.btn-danger { background: #7a1520; color: #fff; }
.btn-danger:hover { background: #921a27; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* ---- Admin ---- */
.admin-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.admin-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.admin-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.admin-nav a {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(42, 9, 12, 0.07);
    font-size: 0.92rem;
    font-weight: 500;
}
.admin-nav a:hover { background: rgba(42, 9, 12, 0.14); }
.admin-nav a.current { background: var(--mfo-red); color: #fff; }

.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.admin-card {
    background: #fff; border-radius: var(--radius); padding: 1.6rem;
    box-shadow: 0 10px 26px rgba(177, 18, 31, 0.1);
    text-decoration: none; display: block;
    border-left: 5px solid var(--mfo-red);
    transition: transform 0.15s ease;
}
.admin-card:hover { transform: translateY(-4px); }
.admin-card h3 { margin: 0 0 0.3rem; }
.admin-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.admin-card .count { font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 700; color: var(--mfo-red); }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 26px rgba(177, 18, 31, 0.1); }
.admin-table th, .admin-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid rgba(42, 9, 12, 0.08); vertical-align: top; }
.admin-table th { background: rgba(42, 9, 12, 0.05); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .row-actions { display: flex; gap: 0.4rem; white-space: nowrap; }
.admin-table .muted-row td { opacity: 0.55; }
.table-scroll { overflow-x: auto; }

.flash {
    padding: 0.9rem 1.1rem; border-radius: 10px; margin-bottom: 1.4rem;
    background: rgba(23, 122, 63, 0.1); border-left: 4px solid #177a3f; color: #14532d;
}
.flash-error { background: rgba(137, 24, 24, 0.09); border-left-color: var(--mfo-red); color: var(--mfo-red); }
.pill { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.pill-draft { background: rgba(42, 9, 12, 0.1); color: var(--muted); }
.pill-live { background: rgba(23, 122, 63, 0.14); color: #177a3f; }
.pill-pinned { background: rgba(240, 165, 0, 0.2); color: #8a5a00; }
.empty-note { background: #fff; border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--muted); box-shadow: 0 10px 26px rgba(177, 18, 31, 0.08); }

@media (max-width: 860px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ---- News tiles (home page) ---- */
.news-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.news-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 26px rgba(177, 18, 31, 0.1);
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.news-tile:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(177, 18, 31, 0.18); }
.news-tile-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(137, 24, 24, 0.12), rgba(240, 165, 0, 0.14));
    display: grid;
    place-items: center;
    overflow: hidden;
}
.news-tile-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-tile-placeholder { font-size: 3rem; color: rgba(137, 24, 24, 0.35); }
.news-tile-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-tile-body time { font-size: 0.8rem; color: var(--muted); }
.news-tile-body h3 { margin: 0.25rem 0 0.5rem; font-size: 1.15rem; line-height: 1.3; }
.news-tile-body p { margin: 0 0 1rem; font-size: 0.95rem; color: var(--text); }
.news-more { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--mfo-red); }
.news-tile:hover .news-more { text-decoration: underline; }
.news-tile.news-pinned { border-top: 4px solid var(--mfo-red); }
.news-flag {
    position: absolute; top: 0.8rem; right: 0.8rem;
    background: var(--mfo-red); color: #fff;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 0.2rem 0.6rem; border-radius: 999px;
}
.news-all { text-align: center; margin-top: 2.2rem; }

/* ---- News archive (/news) ---- */
.news-archive { display: flex; flex-direction: column; gap: 1.6rem; }
.news-article {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(177, 18, 31, 0.1);
    scroll-margin-top: 90px;   /* so #item-N anchors clear the fixed nav */
}
.news-article:not(:has(.news-article-image)) { grid-template-columns: 1fr; }
.news-article.news-pinned { border-left: 5px solid var(--mfo-red); }
.news-article-image { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 200px; }
.news-article-body { padding: 1.8rem; }
.news-article-body time { font-size: 0.85rem; color: var(--muted); margin-right: 0.5rem; }
.news-article-body h3 { margin: 0.3rem 0 0.8rem; font-size: 1.4rem; }
.news-article-body p { margin: 0 0 0.8rem; }
.news-article-body p:last-child { margin-bottom: 0; }

/* Admin: picture column and the current-image preview. */
.admin-table .thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; display: block; }
.current-image { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.current-image img { max-width: 220px; border-radius: 10px; display: block; }

@media (max-width: 700px) {
    .news-article { grid-template-columns: 1fr; }
    .news-article-image { max-height: 240px; }
}

/* The advent page brings its own stylesheet; this is just the empty-state note
   and making room for the site nav above the calendar board. */
.advent-page { padding-top: 1rem; border-radius: 0; }
.advent-empty {
    max-width: 640px; margin: 0 auto 1.5rem; text-align: center;
    background: rgba(0, 0, 0, 0.45); color: #fff;
    padding: 1rem 1.2rem; border-radius: 12px;
}
.advent-empty a { color: #ffd86b; }

/* Inline row editor in the track table. */
.inline-edit { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.inline-edit input {
    font: inherit; font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border: 1.5px solid rgba(42, 9, 12, 0.2);
    border-radius: 8px;
    background: #fffdfc;
    min-width: 9rem;
}
.inline-edit input:focus { outline: 2px solid var(--mfo-red); outline-offset: 1px; border-color: transparent; }

/* Marks a nav link only admins can currently see (e.g. the out-of-season advent
   calendar), so it's obvious visitors aren't getting it. */
.nav-tag {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}
