@font-face {
    font-family: "Gabarito";
    src: url("/fonts/Gabarito-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Gabarito";
    src: url("/fonts/Gabarito-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Gabarito";
    src: url("/fonts/Gabarito-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-display: swap;
}

:root {
    --navy: #071f5f;
    --navy-deep: #04143e;
    --ink: #15102b;
    --muted: #6b6676;
    --purple: #560bad;
    --violet: #7209b7;
    --pink: #b5179e;
    --green: #0a9f45;
    --canvas: #f7f5fa;
    --white: #fff;
    --line: #e8e3ed;
    --shadow: 0 24px 70px rgba(25, 8, 61, 0.12);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Gabarito", system-ui, sans-serif;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.section-wrap,
.nav-wrap,
.hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(7, 31, 95, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo img {
    display: block;
    width: 200px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.main-navigation > a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    color: #4f4960;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.main-navigation > a:hover,
.main-navigation > a.active {
    background: #f2ebf8;
    color: var(--purple);
}

.nav-socials {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding-left: 0.7rem;
    border-left: 1px solid var(--line);
}

/* Older gallery pages retain archived navigation markup; keep retired networks out of every menu. */
.nav-socials a[href*="bsky.app"],
.nav-socials a[href*="x.com"] {
    display: none;
}

.nav-socials a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
}

.nav-socials a:hover {
    background: #f2ebf8;
}

.nav-socials img {
    width: 15px;
    max-height: 16px;
}

.nav-socials .youtube-icon {
    filter: brightness(0) saturate(100%);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    border-radius: 10px;
    background: #f2ebf8;
}

.menu-button > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--purple);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 9rem) 0;
    background: var(--navy-deep);
    color: var(--white);
}

.hero::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    content: "";
    mask-image: linear-gradient(to right, black, transparent 72%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
}

.hero-glow-one {
    top: -18rem;
    right: -10rem;
    width: 42rem;
    height: 42rem;
    background: rgba(114, 9, 183, 0.55);
}

.hero-glow-two {
    bottom: -17rem;
    left: 28%;
    width: 32rem;
    height: 32rem;
    background: rgba(181, 23, 158, 0.28);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--pink);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #efa6e4;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 1.5rem;
    font-size: clamp(3.2rem, 7vw, 6.7rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.hero-intro {
    max-width: 650px;
    margin-bottom: 2.2rem;
    color: rgba(255, 255, 255, 0.73);
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.85rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.button-primary {
    background: var(--pink);
}

.button-primary:hover {
    background: #cc1bb3;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.event-card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
}

.event-label {
    margin-bottom: 1.3rem;
    color: #efa6e4;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.event-date > span {
    font-size: clamp(5rem, 9vw, 7.5rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.07em;
}

.event-date div {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.35rem;
    line-height: 1.05;
}

.event-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.event-meta p {
    margin: 0;
}

.event-meta strong,
.event-meta span {
    display: block;
}

.event-meta span {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.countdown {
    padding-top: 1.3rem;
}

.countdown-label {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.countdown-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.countdown-values span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
}

.countdown-values strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #fff;
    font-size: 1.4rem;
}

.event-ended {
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.aftermovie-section {
    padding-top: clamp(4rem, 8vw, 7rem);
}

.aftermovie-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: var(--navy-deep);
    box-shadow: var(--shadow);
}

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

.aftermovie-section:not([hidden]) + .about-section,
.quick-actions + .sponsors-section {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

.about-section + .quick-actions {
    padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

.about-section + .quick-actions[hidden] + .sponsors-section {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

.sponsors-section {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.sponsors-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.sponsors-heading h2 { margin: 0.2rem 0 0; color: var(--navy); font-size: clamp(2rem, 5vw, 3.4rem); }
.sponsor-marquee {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 1.1rem 0;
    border: 1px solid rgba(13, 32, 82, 0.1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(13, 32, 82, 0.08);
}
.sponsor-marquee::before, .sponsor-marquee::after {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 7%;
    content: "";
    pointer-events: none;
}
.sponsor-marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.sponsor-marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.sponsor-track { display: flex; align-items: center; width: max-content; }
.sponsor-track { width: 100%; justify-content: center; }
.sponsor-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; align-content: center; gap: clamp(1rem, 3vw, 2rem); padding: 0 clamp(1rem, 3vw, 2rem); }
.sponsor-logo {
    display: grid;
    width: clamp(150px, 18vw, 220px);
    height: 100px;
    padding: 1rem;
    place-items: center;
    border-radius: 16px;
    transition: background 160ms ease, transform 160ms ease;
}
a.sponsor-logo:focus-visible { outline: 3px solid rgba(192, 38, 211, 0.35); outline-offset: 2px; }
.sponsor-logo img { width: var(--sponsor-size, 100%); max-width: 200%; max-height: var(--sponsor-max-height, 56px); object-fit: contain; filter: saturate(0.92); transform: translate(var(--sponsor-offset-x, 0), var(--sponsor-offset-y, 0)); transition: transform 160ms ease; }
a.sponsor-logo:hover img { transform: translate(var(--sponsor-offset-x, 0), var(--sponsor-offset-y, 0)) scale(1.06); }

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding-top: clamp(4rem, 8vw, 7rem);
}

.action-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.4rem;
    padding: clamp(1.6rem, 4vw, 2.4rem);
    border-radius: 24px;
    color: #fff;
    box-shadow: var(--shadow);
}

.action-green {
    background: linear-gradient(135deg, #087a37, var(--green));
}

.action-purple {
    background: linear-gradient(135deg, var(--purple), var(--violet));
}

.icon-box,
.detail-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.icon-box img,
.detail-icon img {
    width: 23px;
    filter: brightness(0) invert(1);
}

.action-card .eyebrow {
    color: rgba(255, 255, 255, 0.65);
}

.action-card h2 {
    margin-bottom: 0.7rem;
    font-size: 2rem;
}

.action-card p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.55;
}

.action-card a {
    font-weight: 600;
    text-underline-offset: 4px;
}

.about-section {
    padding-top: clamp(6rem, 12vw, 11rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-heading {
    max-width: 690px;
    margin-bottom: 3rem;
}

.section-heading h2 {
    margin-bottom: 0;
    color: var(--navy);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: clamp(3rem, 8vw, 8rem);
}

.about-copy p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.about-other {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
    white-space: pre-line;
}

.about-other > p:last-child {
    margin-bottom: 0;
}

.about-copy .lead {
    color: var(--ink);
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    line-height: 1.5;
}

.partners {
    align-self: start;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.partners p {
    color: var(--muted);
    line-height: 1.55;
}

.partners img {
    display: block;
    width: 100%;
    margin-top: 2rem;
}

.details-section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--navy-deep);
}

.section-heading-light h2 {
    color: #fff;
}

.section-heading-light .eyebrow {
    color: #efa6e4;
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 1.25rem;
}

.date-card,
.location-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.date-card {
    padding: 2rem;
}

.date-card .eyebrow,
.location-overlay .eyebrow {
    margin-top: 1.7rem;
    color: #efa6e4;
}

.date-card h3,
.location-overlay h3 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.date-card > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

.calendar {
    display: block;
    width: 100%;
    margin-top: 2rem;
    border-radius: 15px;
}

.location-card {
    display: grid;
    min-height: 590px;
    grid-template-rows: 1.05fr 0.95fr;
}

.location-image {
    position: relative;
    min-height: 310px;
}

.location-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 20, 62, 0.92), rgba(4, 20, 62, 0.12));
    content: "";
}

.location-overlay {
    position: absolute;
    z-index: 1;
    top: 2rem;
    left: 2rem;
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    filter: saturate(0.8);
}

footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
}

.footer-inner img {
    width: 180px;
}

.footer-inner p {
    margin: 0 0 0 auto;
    color: var(--muted);
    text-align: right;
}

.footer-inner a {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-inner a[href="/admin/"] {
    display: none;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--navy-deep);
    color: #fff;
}

.page-hero::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    content: "";
    mask-image: linear-gradient(to right, black, transparent 75%);
}

.page-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: end;
    gap: clamp(3rem, 8vw, 8rem);
}

.page-hero h1 {
    max-width: 800px;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 7vw, 6rem);
}

.page-hero-inner > div:first-child > p:last-child {
    max-width: 600px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    line-height: 1.6;
}

.page-event-meta {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.page-event-meta div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
}

.page-event-meta div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-event-meta span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

.page-event-meta strong {
    text-align: right;
}

.agenda-section {
    padding-top: clamp(5rem, 10vw, 9rem);
    padding-bottom: clamp(5rem, 10vw, 9rem);
}

.agenda-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 0.65fr);
    align-items: end;
    gap: 3rem;
    margin-bottom: 4rem;
}

.agenda-heading h2 {
    margin-bottom: 0;
    color: var(--navy);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.agenda-heading > p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.agenda-list {
    position: relative;
}

.agenda-list::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 119px;
    width: 1px;
    background: var(--line);
    content: "";
}

.agenda-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 3rem;
    padding-bottom: 1.25rem;
}

.agenda-item::before {
    position: absolute;
    z-index: 1;
    top: 1.75rem;
    left: 113px;
    width: 13px;
    height: 13px;
    border: 4px solid var(--canvas);
    border-radius: 50%;
    background: var(--agenda-accent, var(--violet));
    content: "";
}

.agenda-item time {
    padding-top: 1.55rem;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: right;
}

.agenda-item time span {
    display: block;
    margin-top: 0.18rem;
    color: #9a94a3;
    font-size: 0.78rem;
    font-weight: 400;
}

.agenda-card {
    padding: clamp(1.5rem, 4vw, 2.2rem);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(25, 8, 61, 0.06);
}

.agenda-item-configured .agenda-card {
    border-color: var(--agenda-accent-border, var(--line));
    background: var(--agenda-accent-soft, #fff);
}

.agenda-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.agenda-type {
    margin-bottom: 0.8rem;
    color: var(--agenda-accent, var(--violet));
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.speaker {
    margin-bottom: 0;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.speaker span {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
}

.agenda-speakers {
    display: grid;
    gap: 0.65rem;
}

.agenda-description {
    white-space: pre-line;
}

.agenda-card h3 {
    max-width: 900px;
    margin-bottom: 1rem;
    color: var(--navy);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.agenda-card > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.agenda-keynote::before {
    background: var(--pink);
}

.agenda-keynote .agenda-card {
    border-color: rgba(181, 23, 158, 0.22);
    background: linear-gradient(135deg, #fff, #fcf5fb);
}

.agenda-keynote .agenda-type {
    color: var(--pink);
}

.agenda-break::before {
    background: var(--green);
}

.agenda-break .agenda-card {
    border-color: rgba(10, 159, 69, 0.16);
    background: #f1faf5;
}

.agenda-break .agenda-type {
    color: var(--green);
}

.agenda-moment .agenda-card {
    background: #f5f1f8;
}

.agenda-movie .agenda-card {
    border: 0;
    background: linear-gradient(135deg, var(--navy), var(--purple));
    color: #fff;
}

.agenda-movie .agenda-type,
.agenda-movie .agenda-card h3,
.agenda-movie .agenda-card > p:last-child {
    color: #fff;
}

.agenda-movie .agenda-card > p:last-child {
    color: rgba(255, 255, 255, 0.72);
}

.agenda-movie .agenda-card-top img {
    width: 28px;
    filter: brightness(0) invert(1);
}

.archive-stat {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.7rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.editions-hero .page-hero-inner {
    align-items: center;
}

.archive-stat strong {
    font-size: clamp(4.5rem, 9vw, 7rem);
    line-height: 0.75;
    letter-spacing: -0.07em;
}

.archive-stat span {
    color: rgba(255, 255, 255, 0.67);
    line-height: 1.45;
}

.editions-section {
    padding-top: clamp(5rem, 10vw, 9rem);
    padding-bottom: clamp(5rem, 10vw, 9rem);
}

.editions-heading {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 0.5fr);
    align-items: end;
    gap: 3rem;
    margin-bottom: 3rem;
}

.editions-heading h2 {
    margin-bottom: 0;
    color: var(--navy);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.editions-heading > p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 330px;
    gap: 1.25rem;
}

.edition-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    border-radius: 24px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 16px 45px rgba(25, 8, 61, 0.1);
    text-decoration: none;
}

.edition-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.edition-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.edition-card-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(181, 23, 158, 0.8), transparent 34%),
        linear-gradient(145deg, #071947, #3c096c 58%, #7209b7);
}

.edition-card:hover > img {
    transform: scale(1.055);
}

.edition-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 20, 62, 0.93), rgba(4, 20, 62, 0.06) 65%);
}

.edition-card::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.edition-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 1.5rem;
}

.edition-content strong {
    display: block;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.edition-featured .edition-content {
    padding: clamp(2rem, 5vw, 3.5rem);
}

.edition-featured .edition-content strong {
    font-size: clamp(5rem, 12vw, 9rem);
}

.edition-label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: var(--pink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.edition-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

.edition-location i {
    color: #fff;
    font-size: 0.85rem;
    font-style: normal;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.edition-card:hover .edition-location i,
.edition-card:focus-visible .edition-location i {
    opacity: 1;
    transform: translateX(0);
}

.gallery-hero {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.gallery-hero .page-hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    text-decoration: none;
}

.gallery-back:hover {
    color: #fff;
}

.gallery-hero h1 {
    margin-bottom: 0;
}

.gallery-count {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
    backdrop-filter: blur(18px);
}

.gallery-count strong {
    display: block;
    font-size: 3.6rem;
    line-height: 0.8;
    letter-spacing: -0.06em;
}

.gallery-count span {
    display: block;
    margin-top: 0.6rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-section {
    padding-top: clamp(3rem, 7vw, 6rem);
    padding-bottom: clamp(5rem, 10vw, 9rem);
}

.gallery-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-intro p {
    margin: 0;
    color: var(--muted);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-photo {
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #e9e4ed;
    cursor: zoom-in;
    box-shadow: 0 12px 35px rgba(25, 8, 61, 0.08);
}

.gallery-photo:nth-child(7n + 1) {
    grid-row: span 2;
}

.gallery-photo:nth-child(11n + 4) {
    grid-column: span 2;
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 200ms ease;
}

.gallery-photo:hover img,
.gallery-photo:focus-visible img {
    filter: saturate(1.08);
    transform: scale(1.045);
}

.gallery-photo:focus-visible {
    outline: 4px solid rgba(114, 9, 183, 0.35);
    outline-offset: 3px;
}

.lightbox {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    padding: 5rem 7rem;
    place-items: center;
    background: rgba(3, 10, 30, 0.94);
    backdrop-filter: blur(16px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 10rem);
    border-radius: 14px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-previous {
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
}

.lightbox-position {
    position: absolute;
    bottom: 1.7rem;
    left: 50%;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    transform: translateX(-50%);
}

body.lightbox-open {
    overflow: hidden;
}

.team-hero .page-hero-inner {
    align-items: center;
}

.team-stat {
    padding: 1.7rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.team-stat > span {
    color: #efa6e4;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.team-stat strong {
    display: block;
    margin: 1.1rem 0 0.5rem;
    font-size: clamp(5rem, 10vw, 8rem);
    line-height: 0.75;
    letter-spacing: -0.07em;
}

.team-stat p {
    max-width: 240px;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}

.team-section {
    padding-top: clamp(5rem, 10vw, 9rem);
    padding-bottom: clamp(5rem, 10vw, 9rem);
}

.team-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 0.55fr);
    align-items: end;
    gap: 3rem;
    margin-bottom: 3rem;
}

.team-heading h2 {
    max-width: 750px;
    margin-bottom: 0;
    color: var(--navy);
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.team-heading > p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

/* Reserve space without showing fallback copy while edition data loads. */
.team-content-loading [data-team-hero-title],
.team-content-loading [data-team-hero-summary],
.team-content-loading [data-team-member-count],
.team-content-loading [data-team-member-count-text],
.team-content-loading [data-team-title],
.team-content-loading [data-team-subtitle],
.archive-content-loading [data-editions-since],
.archive-content-loading [data-editions-hero-title],
.archive-content-loading [data-editions-location-summary],
.archive-content-loading [data-editions-count],
.archive-content-loading [data-editions-stat-text],
.current-content-loading .footer-inner > p {
    visibility: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 400px;
    gap: 1.25rem;
}

.team-card {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    border-radius: 26px;
    background: var(--navy);
    box-shadow: var(--shadow);
}

.team-photo,
.team-photo::after,
.team-photo img {
    position: absolute;
    inset: 0;
}

.team-photo {
    background:
        radial-gradient(circle at 70% 20%, rgba(181, 23, 158, 0.65), transparent 34%),
        linear-gradient(145deg, #071947, #3c096c 58%, #7209b7);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.team-card:first-child .team-photo img {
    object-position: center 28%;
}

.team-card:nth-child(3) .team-photo img {
    object-position: center 35%;
}

.team-photo::after {
    background: linear-gradient(to top, rgba(4, 20, 62, 0.96), rgba(4, 20, 62, 0.02) 68%);
    content: "";
}

.team-card:hover .team-photo img {
    transform: scale(1.04);
}

.team-card-content {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
}

.team-company {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: var(--pink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.team-card:nth-child(2) .team-company {
    background: var(--green);
}

.team-card:nth-child(3) .team-company {
    background: var(--violet);
}

.team-card-content h3 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

@media (max-width: 1040px) {
    .menu-button {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 72px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .main-navigation.open {
        display: flex;
        flex-direction: column;
    }

    .nav-socials {
        margin: 0.5rem 0;
        padding: 0.7rem 0;
        border-top: 1px solid var(--line);
        border-right: 0;
        border-bottom: 1px solid var(--line);
        border-left: 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .event-card {
        max-width: 520px;
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
    }

    .page-event-meta {
        max-width: 520px;
    }

    .archive-stat {
        max-width: 520px;
    }

    .team-stat {
        max-width: 520px;
    }

    .editions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sponsor-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-wrap,
    .nav-wrap,
    .hero-inner {
        width: min(100% - 28px, 1180px);
    }

    .logo img {
        width: 165px;
    }

    .hero {
        padding: 4.5rem 0;
    }

    h1 {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .quick-actions,
    .about-grid,
    .details-grid,
    .agenda-heading,
    .editions-heading,
    .team-heading {
        grid-template-columns: 1fr;
    }

    .action-card {
        grid-template-columns: 1fr;
    }

    .location-card {
        min-height: auto;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inner a {
        margin-left: 0;
    }

    .agenda-heading {
        gap: 1.5rem;
    }

    .agenda-list::before {
        left: 15px;
    }

    .agenda-item {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding-left: 2.3rem;
        padding-bottom: 1.5rem;
    }

    .agenda-item::before {
        top: 0.4rem;
        left: 9px;
    }

    .agenda-item time {
        padding-top: 0;
        text-align: left;
    }

    .agenda-item time span {
        display: inline;
    }

    .agenda-item time span::before {
        content: " – ";
    }

    .editions-heading {
        gap: 1.5rem;
    }

    .editions-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 350px;
    }

    .edition-featured {
        grid-column: auto;
        grid-row: auto;
    }

    .edition-featured .edition-content strong {
        font-size: clamp(4rem, 20vw, 7rem);
    }

    .edition-location i {
        opacity: 1;
        transform: none;
    }

    .gallery-hero .page-hero-inner {
        grid-template-columns: 1fr;
    }

    .gallery-count {
        width: 120px;
        height: 120px;
    }

    .photo-gallery {
        grid-auto-rows: 220px;
    }

    .gallery-photo:nth-child(11n + 4) {
        grid-column: auto;
    }

    .lightbox {
        padding: 4.5rem 1rem 5rem;
    }

    .lightbox-image {
        max-height: calc(100vh - 9.5rem);
    }

    .lightbox-arrow {
        top: auto;
        bottom: 1.2rem;
        transform: none;
    }
}

@media (max-width: 420px) {
    .sponsor-set { grid-template-columns: 1fr; }
    .hero-actions {
        display: grid;
    }

    .event-meta {
        grid-template-columns: 1fr;
    }

    .agenda-card-top {
        display: block;
    }

    .speaker {
        margin-bottom: 1rem;
        text-align: left;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .gallery-photo:nth-child(7n + 1) {
        grid-row: auto;
    }

    .gallery-intro {
        display: block;
    }

    .team-heading {
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(440px, auto);
    }

    .team-card {
        min-height: 440px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sponsors-section .sponsor-track { animation: none !important; }
    .sponsor-set[aria-hidden="true"] { display: none; }
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Placeholder pages use only configured Home content. */
.placeholder-heading {
    position: relative;
    isolation: isolate;
}

.placeholder-heading h1 {
    opacity: 0.4;
}

.announcement-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max-content;
    max-width: 96%;
    margin: 0;
    padding: 0.35em 0.5em;
    transform: translate(-50%, -50%) rotate(-10deg);
    border: 5px solid #ffb6e8;
    border-radius: 8px;
    outline: 2px dashed #ffb6e8;
    outline-offset: -11px;
    background: rgba(74, 8, 75, 0.94);
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    font-size: clamp(1.2rem, 3.8vw, 2.65rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.015em;
    text-align: center;
    pointer-events: none;
}

.placeholder-page .about-grid,
.placeholder-page .details-grid,
.placeholder-page .quick-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.placeholder-page .placeholder-location-image { display: block; width: 100%; border-radius: 16px; margin: 1.5rem 0; }
.placeholder-page .date-card p,
.placeholder-page .date-card h3,
.placeholder-page .action-card p { white-space: pre-line; }

/* Keep the menu state hidden until the current edition has loaded. */
.main-navigation a[hidden] { display: none !important; }
