/* ==========================================================================
   Italian Speedrun Community — public site
   Replaces the Betheme/Bootstrap stack the site was migrated with.
   Mobile first; the only breakpoint that matters is 900px.
   ========================================================================== */

@font-face {
    font-family: 'Lemon Milk';
    src: url(fonts/lemon_milk/LEMONMILK-Regular.otf) format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lemon Milk';
    src: url(fonts/lemon_milk/LEMONMILK-Bold.otf) format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #fbf9f7;
    --surface: #ffffff;
    --panel: #f2ebf7;
    --tint: #f4eef8;
    --dark: #241f35;

    --ink: #241f35;
    --ink-soft: #5b5470;
    --ink-mute: #918aa6;
    --on-dark: #c3bcd2;

    --violet: #8e2fc8;
    --violet-deep: #6a1c9c;
    --line: #f0eaf2;
    --hairline: #e5dee9;

    --grad: linear-gradient(100deg, #33b5ff, #d671ff);
    --shadow-sm: 0 2px 16px rgba(36, 31, 53, 0.05);
    --shadow-md: 0 14px 36px rgba(36, 31, 53, 0.16);

    --radius-card: 20px;
    --radius-band: 28px;
    --gutter: 20px;
    --shell: 1312px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--violet);
    text-decoration: none;
}

a:hover {
    color: var(--violet-deep);
}

:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 2px;
    border-radius: 4px;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
}

p {
    margin: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 50;
    background: var(--surface);
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}

.shell {
    width: min(100% - (var(--gutter) * 2), var(--shell));
    margin-inline: auto;
}

.display {
    font-family: 'Lemon Milk', Montserrat, sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--violet);
}

.muted {
    color: var(--ink-mute);
}

.prose {
    color: var(--ink-soft);
    line-height: 1.68;
    text-wrap: pretty;
}

.prose p + p {
    margin-top: 0.9em;
}

.prose-small {
    font-size: 13px;
    line-height: 1.55;
}

.rule {
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: var(--grad);
    margin-bottom: 22px;
}

.section {
    padding-block: 0 clamp(34px, 5vw, 74px);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-lead {
    color: var(--ink-soft);
    margin: 10px 0 24px;
    max-width: 62ch;
    text-wrap: pretty;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 26px 22px;
}

.panel {
    background: var(--panel);
    border-radius: var(--radius-band);
    padding: 32px 24px;
}

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

.btn {
    display: inline-block;
    font-family: 'Lemon Milk', Montserrat, sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 17px 28px;
    border-radius: 999px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 22px rgba(198, 90, 240, 0.28);
}

.btn-primary:hover {
    color: #fff;
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--hairline);
    color: var(--ink);
}

.btn-ghost:hover {
    color: var(--ink);
}

.btn-light {
    background: #fff;
    color: var(--dark);
    white-space: nowrap;
}

.btn-light:hover {
    color: var(--dark);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.arrow-link {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 600;
    padding-block: 6px;
}

.arrow-link::after {
    content: ' \2192';
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.chip {
    background: var(--tint);
    color: #4a3b5c;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 999px;
}

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

.site-header {
    padding: 12px var(--gutter);
}

.header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100%, var(--shell));
    margin-inline: auto;
    background: var(--surface);
    border-radius: 999px;
    box-shadow: 0 2px 18px rgba(36, 31, 53, 0.07);
    padding: 9px 10px 9px 20px;
}

.header-logo img {
    display: block;
    width: 132px;
    height: auto;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    background: var(--surface);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    padding: 10px;
}

body.nav-open .header-nav {
    display: flex;
}

.nav-link {
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    padding: 13px 16px;
    border-radius: 999px;
}

.nav-link.is-current {
    color: var(--ink);
    font-weight: 600;
    background: var(--tint);
}

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

.hero {
    padding-top: 30px;
    padding-bottom: 40px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 30px;
}

.hero-title {
    font-size: clamp(34px, 8vw, 56px);
    line-height: 1.02;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: clamp(19px, 4.4vw, 27px);
    font-weight: 500;
    line-height: 1.28;
    margin-bottom: 20px;
    background: linear-gradient(100deg, #1385c9, #c24bee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 56ch;
    margin-bottom: 26px;
    font-size: 16.5px;
}

.hero-media {
    position: relative;
    /* The photo runs off the right edge of the page, so it needs to escape
       the shell without giving the document a horizontal scrollbar. */
    margin-right: calc(var(--gutter) * -1);
}

.hero-glow {
    position: absolute;
    inset: 12% 8% 20% 20%;
    background: var(--grad);
    filter: blur(58px);
    opacity: 0.32;
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 112%;
    max-width: none;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    object-position: 50% 42%;
    border-radius: 22px 0 0 22px;
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------- impact */

.impact {
    background: linear-gradient(150deg, #6f2bb5, #c24bee 62%, #e07bff);
    border-radius: var(--radius-band);
    padding: 32px 24px;
    color: #fff;
}

.counters {
    display: grid;
    gap: 20px;
}

.counters li {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.counter-value {
    font-family: 'Lemon Milk', Montserrat, sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 7vw, 44px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25em;
}

/*
 * The figure reads as one phrase — "26.400 €", "più di 7 milioni" — so the
 * prefix and the unit sit at display size with it, and the label carries the
 * rest underneath.
 */
.counter-prefix,
.counter-suffix {
    font-size: inherit;
}

.counter-label {
    margin-top: 8px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.86);
}

.impact-note {
    color: rgba(255, 255, 255, 0.9);
}

/* -------------------------------------------------------------- pillars */

.pillars {
    display: grid;
    gap: 12px;
}

.pillar-title {
    font-size: 20px;
    margin-bottom: 11px;
}

/* ----------------------------------------------------------- event card */

.event-card {
    display: grid;
    gap: 22px;
}

.event-title {
    font-size: clamp(23px, 5vw, 34px);
    margin: 14px 0 0;
}

.event-cta {
    align-self: start;
}

/* ------------------------------------------------ shop, guests, location */

.shop-card {
    display: grid;
    gap: 24px;
}

.shop-image {
    border-radius: 16px;
    overflow: hidden;
    background: #faf7fb;
}

.shop-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.shop-title {
    font-size: clamp(22px, 4.6vw, 30px);
    margin-bottom: 14px;
}

.shop-highlight {
    display: inline-block;
    margin: 18px 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--tint);
    color: #4a3b5c;
    font-weight: 600;
    font-size: 14.5px;
}

.shop-exclusive {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #faf7fb;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.6;
}

.shop-exclusive strong {
    color: var(--violet-deep);
}

.guest-grid {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.guest {
    text-align: center;
    padding: 26px 22px 24px;
}

.guest-photo {
    width: 132px;
    height: 132px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    background: var(--grad);
}

.guest-photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.guest-name {
    font-size: 19px;
    margin-bottom: 6px;
}

.guest-role {
    color: var(--ink-mute);
    font-size: 14px;
    margin-bottom: 18px;
}

.guest-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.guest-link {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--ink);
}

.guest-link:hover {
    color: #fff;
    opacity: 0.85;
}

.guest-link--youtube {
    background: #ff0000;
}

.guest-link--twitch {
    background: #9146ff;
}

.location {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.location-name {
    font-size: 21px;
    margin-bottom: 6px;
}

.location-address {
    color: var(--violet);
    font-weight: 600;
    margin-bottom: 14px;
}

.location-map {
    min-height: 280px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #ece7f1;
    box-shadow: var(--shadow-sm);
}

.leaflet-container {
    font-family: Montserrat, system-ui, sans-serif;
}

/* -------------------------------------------------------------- charity */

.charity-list {
    padding-block: 4px;
}

.charity-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 14px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.charity-row:last-child {
    border-bottom: 0;
}

.logo-tile {
    grid-column: 1;
    height: 76px;
    background: #faf7fb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/*
 * Flex, not grid: with `place-items: center` the image is not stretched, so
 * its auto height sizes the row — and a percentage height then resolves
 * against the row the image just grew, which lets tall logos escape the tile.
 * Bounding it instead keeps every mark inside whatever the tile is.
 */
.logo-tile img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-tile--large {
    height: 132px;
}

.charity-name {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 5px;
}

.charity-amount {
    font-family: 'Lemon Milk', Montserrat, sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.charity-cards {
    display: grid;
    gap: 12px;
}

.charity-card {
    display: grid;
    gap: 16px;
}

.charity-card-name {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 10px;
}

.charity-body .prose + .prose {
    margin-top: 10px;
}

.total-band {
    background: linear-gradient(150deg, #6f2bb5, #c24bee 62%, #e07bff);
    border-radius: var(--radius-band);
    padding: 32px 24px;
    color: #fff;
}

.total-value {
    font-family: 'Lemon Milk', Montserrat, sans-serif;
    font-weight: 700;
    font-size: clamp(44px, 11vw, 96px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 14px;
}

.total-label {
    font-size: clamp(17px, 3.2vw, 22px);
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

.cta-band {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius-band);
    padding: 32px 24px;
    display: grid;
    gap: 22px;
}

.cta-title {
    font-size: clamp(22px, 4.4vw, 32px);
    margin-bottom: 14px;
}

.cta-band .prose {
    color: #b7afc9;
}

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

.page-head {
    padding-top: 30px;
    padding-bottom: 34px;
}

.page-head-grid {
    display: grid;
    gap: 18px;
}

.page-title {
    font-size: clamp(34px, 7.5vw, 60px);
    line-height: 1;
}

.page-lead {
    font-size: 16.5px;
    color: var(--ink-soft);
}

/* ---------------------------------------------------------- event blocks */

.event-blocks {
    display: grid;
    gap: 14px;
}

.event-block {
    border-radius: var(--radius-band);
    padding: 30px 22px;
    color: #fff;
    display: grid;
    gap: 26px;
}

.event-block--violet {
    background: #3a2a6b;
}

.event-block--rose {
    background: #8c3352;
}

.event-block .kicker {
    color: #e0a6ff;
}

.event-block--rose .kicker {
    color: #ffc0d2;
}

.event-block .prose {
    color: rgba(255, 255, 255, 0.82);
}

.event-block-title {
    font-size: clamp(24px, 5vw, 40px);
    margin: 12px 0 14px;
}

.event-block-side {
    text-align: center;
}

.event-logo {
    display: block;
    width: 150px;
    margin: 0 auto 22px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.stat {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    padding: 13px 11px;
}

.stat-value {
    font-family: 'Lemon Milk', Montserrat, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 10.5px;
    line-height: 1.35;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.video {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

.video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.editions {
    text-align: left;
}

.editions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    font-size: 13.5px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.editions a:hover {
    color: #fff;
    opacity: 0.75;
}

.editions svg {
    flex: 0 0 auto;
    opacity: 0.6;
}

.other-events {
    display: grid;
    gap: 12px;
}

/* Logo over a flat colour, with the copy as real text beside it. */
.other-event {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    padding: 24px 22px;
    display: grid;
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.other-event-logo {
    display: block;
    width: 100%;
    max-width: 260px;
    margin-inline: auto;
    border-radius: 10px;
}

.other-event-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14.5px;
    line-height: 1.62;
}

.other-event-text strong {
    color: #fff;
}

/* ------------------------------------------------------------- community */

.wide-photo {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.wide-photo img {
    display: block;
    width: 100%;
    height: clamp(230px, 30vw, 420px);
    object-fit: cover;
    object-position: 50% 46%;
}

.story-grid {
    display: grid;
    gap: 12px;
}

.story-title {
    font-size: 21px;
    margin-bottom: 12px;
}

.join-band,
.community-teaser {
    display: grid;
    gap: 26px;
}

.join-title {
    font-size: clamp(24px, 4.4vw, 30px);
    margin-bottom: 14px;
}

.join-text {
    color: var(--ink-soft);
    text-wrap: pretty;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.team-member {
    padding: 14px 14px 16px;
}

.team-photo {
    border-radius: 13px;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 12px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.team-role {
    font-size: 11.5px;
    color: var(--ink-mute);
    margin-top: 4px;
}

/* --------------------------------------------------------------- contact */

.contact-grid {
    display: grid;
    gap: 26px;
}

.contact-grid .page-lead {
    margin-bottom: 24px;
}

.contact-cards {
    display: grid;
    gap: 12px;
}

.contact-card {
    padding: 26px 22px;
}

.contact-note {
    color: var(--ink-soft);
    margin: 8px 0 20px;
}

.contact-email a {
    font-size: clamp(16px, 3.4vw, 22px);
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

/* --------------------------------------------------------------- socials */

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    width: 52px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--tint);
    color: var(--ink);
}

.social-link:hover {
    background: #e7dcf0;
    color: var(--ink);
}

.social-list--tile .social-link {
    background: var(--surface);
}

.social-list--footer .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.social-list--footer .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------- sponsors */

.sponsors {
    padding-bottom: clamp(34px, 5vw, 64px);
}

.sponsors-band {
    background: var(--dark);
    border-radius: var(--radius-band);
    padding: 30px 0 34px;
}

.sponsors-title {
    color: #c69be8;
    text-align: center;
    margin-bottom: 24px;
}

.sponsors-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sponsors-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: sponsor-scroll 30s linear infinite;
}

.sponsors-track:hover {
    animation-play-state: paused;
}

.sponsor {
    flex: 0 0 auto;
    display: block;
    margin-right: 40px;
}

.sponsor img {
    display: block;
    height: 50px;
    width: auto;
    opacity: 0.95;
}

@keyframes sponsor-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

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

.site-footer {
    padding: 0 var(--gutter) var(--gutter);
}

.footer-inner {
    width: min(100%, var(--shell));
    margin-inline: auto;
    background: var(--dark);
    color: var(--on-dark);
    border-radius: var(--radius-band);
    padding: 34px 24px 26px;
}

.footer-cols {
    display: grid;
    gap: 26px;
}

.site-footer .kicker {
    color: #fff;
    margin-bottom: 12px;
}

.footer-mark {
    display: block;
    height: 34px;
    width: auto;
    margin-bottom: 16px;
}

.footer-legal {
    font-size: 13px;
    line-height: 1.7;
}

.footer-links a,
.footer-email a {
    color: var(--on-dark);
    display: inline-block;
    padding-block: 9px;
    font-size: 14px;
}

.footer-links a:hover,
.footer-email a:hover {
    color: #fff;
}

.footer-social {
    margin-top: 14px;
}

.footer-copy {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11.5px;
    color: #776e8c;
}

/* ============================================================== desktop */

@media (min-width: 900px) {
    :root {
        --gutter: 40px;
        --radius-card: 24px;
    }

    .section {
        padding-bottom: 74px;
    }

    .card {
        padding: 34px 32px 30px;
    }

    .panel {
        padding: 50px 52px;
    }

    .site-header {
        padding: 20px var(--gutter);
    }

    .header-bar {
        padding: 12px 14px 12px 28px;
    }

    .header-logo img {
        width: 190px;
    }

    .nav-toggle {
        display: none;
    }

    .header-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    .nav-link {
        font-size: 14px;
        padding: 11px 18px;
    }

    /* One gap between the menu and the first heading, on every page. */
    .hero,
    .page-head {
        padding-top: 56px;
    }

    .hero {
        padding-bottom: 78px;
    }

    .page-head {
        padding-bottom: 54px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 48px;
        align-items: start;
    }

    .hero-image {
        width: 820px;
        aspect-ratio: auto;
        height: 496px;
        border-radius: 32px 0 0 32px;
    }

    .page-head-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 64px;
        align-items: start;
    }

    .page-lead {
        padding-top: 9px;
        font-size: 17px;
    }

    .impact,
    .total-band,
    .cta-band {
        padding: 50px 56px;
    }

    .counters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px;
        padding-bottom: 34px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .counters li {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .impact-note {
        margin-top: 28px;
        max-width: 80ch;
    }

    .pillars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .pillar-title {
        font-size: 22px;
    }

    .event-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 48px;
        align-items: center;
        padding: 42px 46px;
    }

    .event-cta {
        align-self: center;
    }

    .shop-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 44px;
        align-items: center;
        padding: 42px 46px;
    }

    .guest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        max-width: 820px;
        margin-inline: auto;
    }

    .guest-photo {
        width: 150px;
        height: 150px;
    }

    .guest-name {
        font-size: 22px;
    }

    .location {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        align-items: stretch;
    }

    .location-map {
        min-height: 360px;
    }

    .location-name {
        font-size: 26px;
    }

    .charity-list {
        padding: 12px 36px;
    }

    .charity-row {
        grid-template-columns: 150px minmax(0, 1fr) auto;
        gap: 30px;
        padding: 22px 0;
    }

    .logo-tile {
        height: 112px;
        padding: 14px;
    }

    .logo-tile--large {
        height: 172px;
        padding: 20px;
    }

    .charity-name {
        font-size: 19px;
    }

    .charity-amount {
        font-size: 26px;
    }

    .charity-cards {
        gap: 18px;
    }

    .charity-card {
        grid-template-columns: 224px minmax(0, 1fr) 170px;
        gap: 44px;
        align-items: center;
        padding: 36px 40px;
    }

    .charity-card-name {
        font-size: 25px;
    }

    .charity-figure {
        text-align: right;
    }

    .charity-figure .charity-amount {
        font-size: 30px;
    }

    .cta-band {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 48px;
        align-items: center;
    }

    .event-blocks {
        gap: 26px;
    }

    .event-block {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 56px;
        padding: 48px 48px 44px;
        align-items: start;
    }

    .event-block-title {
        margin: 20px 0 18px;
    }

    .stats {
        gap: 12px;
        margin: 30px 0 34px;
    }

    .stat {
        border-radius: 16px;
        padding: 18px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11.5px;
    }

    .event-logo {
        width: 200px;
        margin-bottom: 30px;
    }

    .editions a {
        font-size: 14.5px;
    }

    .other-events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .other-event {
        border-radius: 20px;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
        gap: 26px;
        padding: 30px 30px;
    }

    .other-event-logo {
        max-width: none;
    }

    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .story-title {
        font-size: 26px;
    }

    .story .prose {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .join-band {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 48px;
    }

    .community-teaser {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 60px;
        align-items: center;
    }

    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .team-member {
        padding: 20px 20px 22px;
    }

    .team-photo {
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .team-name {
        font-size: 14.5px;
    }

    .team-role {
        font-size: 12.5px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 64px;
        align-items: start;
    }

    .contact-cards {
        gap: 18px;
    }

    .contact-card {
        padding: 36px 38px;
    }

    .social-link {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .sponsors-band {
        padding: 44px 0 48px;
    }

    .sponsors-title {
        margin-bottom: 34px;
    }

    .sponsor {
        margin-right: 60px;
    }

    .sponsor img {
        height: 84px;
    }

    .footer-inner {
        padding: 52px 52px 36px;
    }

    .footer-cols {
        grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
        gap: 52px;
        padding-bottom: 36px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-mark {
        height: 40px;
    }

    .footer-copy {
        margin-top: 0;
        padding-top: 24px;
        border-top: 0;
    }

    .footer-links a,
    .footer-email a {
        padding-block: 5px;
        font-size: 13.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sponsors-track {
        animation: none;
    }

    .btn:hover {
        transform: none;
    }

    * {
        scroll-behavior: auto !important;
    }
}
