:root {
  --ink: #05060b;
  --ink-soft: #0d1019;
  --paper: #f7f6f2;
  --paper-deep: #ebe9e2;
  --white: #fff;
  --green: #0aff3f;
  --green-soft: #a9ffb9;
  --cyan: #17cfff;
  --pink: #ff36dc;
  --text: #18191d;
  --muted: #666a73;
  --line: rgba(255,255,255,.14);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%); background: var(--green); color: #000; padding: .65rem 1rem; font-weight: 700; transition: transform .2s; }
.skip-link:focus { transform: none; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 999; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--green), var(--pink)); box-shadow: 0 0 14px var(--green); }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 76px; padding: 0 clamp(1rem, 3vw, 3rem); display: flex; align-items: center; justify-content: space-between; color: #fff; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(5,6,11,.82); backdrop-filter: blur(18px); border-color: rgba(255,255,255,.1); }
.brand { display: grid; grid-template-columns: auto auto; gap: 0 .2rem; align-items: end; color: #fff; text-decoration: none; font-family: "Barlow Condensed", sans-serif; line-height: .72; letter-spacing: -.04em; }
.brand span, .brand strong { grid-column: 1; font-weight: 900; font-size: 1rem; }
.brand strong { font-size: 1.25rem; }
.brand i { grid-column: 2; grid-row: 1 / 3; align-self: end; color: var(--green); font-size: .8rem; font-style: normal; font-weight: 900; }
.brand img { max-width: 120px; max-height: 80px; width: auto; height: auto; margin-top: 30px; object-fit: contain; transition: max-height .35s ease, margin-top .35s ease; }
.site-header.is-scrolled .brand img { max-height: 60px; margin-top: 0; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); margin-left: auto; }
.main-nav a { position: relative; color: rgba(255,255,255,.82); text-decoration: none; text-transform: uppercase; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.5rem; height: 2px; background: var(--green); transition: right .25s; box-shadow: 0 0 10px var(--green); }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; }
.menu-toggle > span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 5px; background: #fff; transition: transform .25s, opacity .25s; }

.hero { position: relative; min-height: min(100vh, 920px); display: grid; place-items: center; background: #020309; overflow: hidden; }
.hero picture, .hero picture img { display: block; width: 100%; height: auto; }
.hero img { margin-inline: auto; object-fit: cover; object-position: center; max-width: 1550px;  }
.hero-artwork { position: relative; width: min(100%, 1550px); margin-inline: auto; }
.hero-social { position: absolute; z-index: 2; top: 85.5%; width: 6%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.hero-social--facebook { left: 40.7%; }
.hero-social--instagram { left: 48%; }
.hero-social--tiktok { left: 55%; }
@media (max-width: 779px) {
  .hero { min-height: 0; padding-top: 76px; }
  .hero picture img { max-width: none; }
  .hero-social { top: 89.6%; width: 12%; }
  .hero-social--facebook { left: 35.4%; }
  .hero-social--instagram { left: 49.8%; }
  .hero-social--tiktok { left: 64.4%; }
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 60%, rgba(5,6,11,.85)); pointer-events: none; }
.hero-glow { position: absolute; width: 30vw; height: 30vw; border-radius: 50%; filter: blur(90px); opacity: .13; animation: drift 9s ease-in-out infinite alternate; }
.hero-glow--blue { left: -10vw; top: 20%; background: var(--cyan); }
.hero-glow--pink { right: -10vw; top: 10%; background: var(--pink); animation-delay: -4s; }
.scroll-cue { position: absolute; z-index: 2; bottom: 1.4rem; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: .35rem; color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: .78rem; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.scroll-cue i { display: block; width: 1px; height: 30px; background: linear-gradient(var(--green), transparent); animation: pulse-down 1.8s infinite; }

.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: -1px auto 0; padding: 0 2rem; background: var(--ink); color: #fff; }
.fact { padding: 3.2rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .8; color: var(--green); letter-spacing: -.04em; text-shadow: 0 0 28px rgba(10,255,63,.18); }
.fact span { display: block; margin-top: 1rem; color: rgba(255,255,255,.62); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

.section { position: relative; padding: clamp(5rem, 9vw, 9rem) max(1.4rem, calc((100vw - var(--max)) / 2)); }
.light-section, .intro-section, .guests-section { background: var(--paper); }
.dark-section { background: var(--ink-soft); color: #fff; }
.intro-section { background: linear-gradient(135deg, #fff 0%, var(--paper) 65%, #eefbea 100%); }
.eyebrow, .kicker { color: #079e29; font-family: "Barlow Condensed", sans-serif; font-size: .83rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { max-width: var(--max); margin: 0 auto 6.5rem; text-align: center; }
.intro-section .eyebrow {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: -.029em;
    color: var(--green);
}
.intro-section .section-copy h2 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: -.025em; }
.section-grid { max-width: var(--max); margin: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
h2 { margin: 0 0 1.8rem; font-family: "Barlow Condensed", sans-serif; font-size: clamp(3.2rem, 7vw, 6.8rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
h2 span { color: #099e2a; }
.dark-section h2 span, .culture-section h2 span { color: var(--green); }
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; font-weight: 600; }
.section-copy > p:not(.lead), .prose > p:not(.lead), .culture-copy > p:not(.kicker) { color: var(--muted); max-width: 63ch; }
.event-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2.2rem; }
.event-meta div { display: flex; align-items: center; gap: .8rem; min-width: 0; padding: 1.1rem 1.25rem; background: #0f1f2b; }
.event-meta svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #0aff3f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.event-meta span { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.event-meta strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.15rem; text-transform: uppercase; color: #fff; }
.media-card { position: relative; margin: 0; padding: .6rem; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.16); transform: rotate(1.2deg); }
.media-card::before { content: ""; position: absolute; inset: -10px; z-index: -1; border: 1px solid rgba(10,255,63,.5); transform: rotate(-2.5deg); }
.media-card img { aspect-ratio: 4/5; width: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.media-card figcaption { padding: .9rem .55rem .4rem; font-size: .78rem; color: var(--muted); }

.section-heading { max-width: var(--max); margin: 0 auto clamp(3rem, 6vw, 6rem); display: flex; align-items: flex-start; gap: clamp(1rem, 3vw, 3rem); }
.section-heading h2 { margin: 0; }
.section-heading .kicker { margin: 0 0 .7rem; }
.section-number { padding-top: 0rem; color: var(--green); font-family: "Barlow Condensed", sans-serif; font-size: 2rem; font-weight: 800; }
.feature-grid { max-width: var(--max); margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 280px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s, transform .3s; }
.feature-card:hover { background: rgba(10,255,63,.06); transform: translateY(-6px); }
.feature-card > span { color: var(--green); font-size: 1.5rem; font-weight: 700; }
.feature-card h3 { margin: 4.5rem 0 1rem; font-family: "Barlow Condensed", sans-serif; font-size: 1.8rem; line-height: 1; text-transform: uppercase; }
.feature-card p { color: rgba(255,255,255,.55); font-size: .92rem; line-height: 1.6; }
.cinema-banner { max-width: var(--max); margin: 5rem auto 0; padding: clamp(2rem, 5vw, 4rem); text-align: center; background: radial-gradient(circle at 50% 120%, rgba(10,255,63,.2), transparent 45%), linear-gradient(100deg, rgba(23,207,255,.08), rgba(255,54,220,.08)); border: 1px solid rgba(255,255,255,.14); }
.cinema-banner span { color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; }
.cinema-banner strong { display: block; margin: .7rem 0; color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1; text-transform: uppercase; }
.cinema-banner p { margin: 0; color: var(--green-soft); }

.split-content { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.stat-panel { display: grid; background: #0c0e14; color: #fff; }
.stat-panel div { display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding: 1.5rem 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.stat-panel div:last-child { border-bottom: 0; }
.stat-panel strong { color: var(--green); font-family: "Barlow Condensed", sans-serif; font-size: 3.8rem; line-height: .8; }
.stat-panel span { color: rgba(255,255,255,.58); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.tournament-block { max-width: var(--max); margin: 6rem auto 0; padding: clamp(2rem, 5vw, 4rem); background: #fff; box-shadow: 0 18px 50px rgba(15,16,20,.07); }
.tournament-title { display: grid; grid-template-columns: 140px 1fr; gap: 0 2rem; align-items: end; }
.tournament-title > span { grid-row: 1 / 3; align-self: stretch; display: grid; place-items: center; background: var(--green); color: #000; font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.tournament-title h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; text-transform: uppercase; }
.tournament-title p { margin: .5rem 0 0; color: var(--muted); }
.tournament-days { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.tournament-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 2rem 0;
  padding: 1.4rem .75rem;
  list-style: none;
  text-align: center;
  background: rgb(15 31 43);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.4;
}
.tournament-highlights li { position: relative; align-self: center; color: #fff; }
.tournament-highlights strong { color: #0aff3f; font-size: 1.35em; font-weight: 800; white-space: nowrap; }
.tournament-highlights li + li::before {
  content: "";
  position: absolute;
  left: -.9rem;
  top: 50%;
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: #0aff3f;
  transform: translateY(-50%);
}
@media (max-width: 980px) {
  .tournament-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tournament-highlights li:nth-child(3)::before { display: none; }
}
@media (max-width: 420px) {
  .tournament-highlights { grid-template-columns: 1fr; gap: .65rem; }
  .tournament-highlights li + li::before { display: none; }
}
.tournament-days article { padding: 1.5rem; background: var(--paper); }
.tournament-days article > span { color: #079e29; font-family: "Barlow Condensed", sans-serif; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.microcopy { margin: 1.5rem 0 0; color: var(--muted); font-size: .8rem; }

.digital-section { background: radial-gradient(circle at 80% 40%, rgba(23,207,255,.11), transparent 30%), var(--ink-soft); }
.timeline { position: relative; max-width: 900px; margin: auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 34px; width: 1px; background: linear-gradient(var(--green), rgba(10,255,63,.08)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 2rem; padding-bottom: 3.5rem; }
.timeline-item > span { position: relative; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-soft); border: 1px solid var(--green); color: var(--green); font-weight: 800; box-shadow: 0 0 28px rgba(10,255,63,.12); }
.timeline-item h3 { margin: .3rem 0 .5rem; font-family: "Barlow Condensed", sans-serif; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.timeline-item p { margin: 0; max-width: 65ch; color: rgba(255,255,255,.58); }

.cosplay-layout { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 1fr .85fr; gap: 6rem; }
.date-line { display: grid; gap: .25rem; margin: 2rem 0; padding-left: 1.3rem; border-left: 3px solid var(--green); }
.date-line span { color: #079e29; font-family: "Barlow Condensed", sans-serif; font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.jury-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #d7d8d1; border: 1px solid #d7d8d1; }
.jury-grid article { min-height: 190px; padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; background: #fff; transition: color .25s, background .25s; }
.jury-grid article:hover { color: #000; background: var(--green); }
.jury-grid span { font-family: "Barlow Condensed", sans-serif; font-size: 2.3rem; font-weight: 900; text-transform: uppercase; }
.jury-grid p { margin: .25rem 0 0; color: var(--muted); font-size: .78rem; }
.jury-grid article:hover p { color: rgba(0,0,0,.65); }

.culture-section { min-height: 650px; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; color: #fff; background: linear-gradient(135deg, rgba(23,207,255,.08), transparent 45%), linear-gradient(315deg, rgba(255,54,220,.1), transparent 40%), #070812; }
.culture-copy { max-width: 520px; justify-self: end; }
.culture-copy p:not(.kicker) { color: rgba(255,255,255,.6); }
.culture-panel { position: relative; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.2rem; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: radial-gradient(circle at 70% 20%, rgba(10,255,63,.16), transparent 32%); }
.big-word { position: absolute; top: 0; right: -.06em; color: rgba(255,255,255,.04); font-family: "Barlow Condensed", sans-serif; font-size: clamp(8rem, 20vw, 16rem); font-weight: 900; line-height: .75; }
.culture-panel h3 { margin: 0 0 .6rem; color: var(--green); font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; text-transform: uppercase; }
.culture-panel p { max-width: 45ch; color: rgba(255,255,255,.68); }

.guest-grid { max-width: var(--max); margin: auto; display: grid; gap: 2rem; }
.guest-card { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 500px; background: #fff; box-shadow: 0 18px 60px rgba(10,12,15,.08); overflow: hidden; }
.guest-card--reverse { grid-template-columns: 1.2fr .8fr; }
.guest-card--reverse .guest-photo { order: 2; }
.guest-photo { min-height: 430px; overflow: hidden; }
.guest-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: scale .7s, filter .7s; }
.guest-card:hover .guest-photo img { scale: 1.035; filter: saturate(1); }
.guest-copy { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.guest-copy .role { margin: 0 0 1rem; color: #079e29; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guest-copy h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .85; text-transform: uppercase; }
.guest-tagline { margin: 1rem 0 1.5rem; font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1; text-transform: uppercase; }
.guest-copy > p:last-child { color: var(--muted); }

.schedule-section { color: #fff; background: var(--ink); }
.schedule-grid { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.schedule-day { background: #0d1018; }
.schedule-day header { padding: 2rem; border-bottom: 1px solid var(--line); }
.schedule-day header span { color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.schedule-day h3 { margin: .3rem 0 0; font-family: "Barlow Condensed", sans-serif; font-size: 2.5rem; text-transform: uppercase; }
.schedule-day ol { margin: 0; padding: 0; list-style: none; }
.schedule-day li { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.1rem 2rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.schedule-day li:last-child { border-bottom: 0; }
.schedule-day time { color: var(--green); font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 18px; }
.schedule-day li span { color: rgba(255,255,255,.67); }
.final-cta { max-width: var(--max); margin: 7rem auto 0; text-align: center; }
.final-cta p { color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.final-cta h2 { max-width: 900px; margin: 1rem auto 2.5rem; }
.final-cta a { display: inline-flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; background: var(--green); color: #020402; text-decoration: none; font-weight: 800; text-transform: uppercase; transition: transform .25s, box-shadow .25s; }
.final-cta a:hover { transform: translateY(-3px); box-shadow: 0 0 35px rgba(10,255,63,.35); }

.border-radius { border-radius: 20px; }

.image-pixels {
  --pixel-size: clamp(5px, 1vw, 8px);
  --pixel-color: var(--green);
  --pixel-accent: var(--cyan);
  position: relative;
  isolation: isolate;
  display: block;
  min-width: 0;
  overflow: visible;
}

.image-pixels > img,
.image-pixels > picture > img {
  display: block;
  width: 100%;
  height: auto;
  /* Découpe en escalier : le fond de la section reste visible dans le coin. */
  clip-path: polygon(
    calc(100% - 7 * var(--pixel-size)) 0, 0 0, 0 100%, 100% 100%,
    100% calc(7 * var(--pixel-size)),
    calc(100% - var(--pixel-size)) calc(7 * var(--pixel-size)),
    calc(100% - var(--pixel-size)) calc(5 * var(--pixel-size)),
    calc(100% - 3 * var(--pixel-size)) calc(5 * var(--pixel-size)),
    calc(100% - 3 * var(--pixel-size)) calc(3 * var(--pixel-size)),
    calc(100% - 4 * var(--pixel-size)) calc(3 * var(--pixel-size)),
    calc(100% - 4 * var(--pixel-size)) var(--pixel-size),
    calc(100% - 7 * var(--pixel-size)) var(--pixel-size)
  );
}

.image-pixels::before,
.image-pixels::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  transform: scaleX(-1);
  z-index: 1;
  width: var(--pixel-size);
  height: var(--pixel-size);
  pointer-events: none;
}

/* Pixels proches du bord, puis fragments plus petits et plus éloignés. */
.image-pixels::before {
  color: var(--pixel-color);
  box-shadow:
    calc(5 * var(--pixel-size)) calc(-1 * var(--pixel-size)) 0 0,
    calc(2 * var(--pixel-size)) calc(2 * var(--pixel-size)) 0 0,
    0 calc(4 * var(--pixel-size)) 0 0,
    calc(-2 * var(--pixel-size)) var(--pixel-size) 0 0;
}

.image-pixels::after {
  width: calc(var(--pixel-size) * .5);
  height: calc(var(--pixel-size) * .5);
  color: var(--pixel-accent);
  opacity: .75;
  box-shadow:
    calc(2 * var(--pixel-size)) calc(-2 * var(--pixel-size)) 0 0,
    calc(-1 * var(--pixel-size)) calc(-1 * var(--pixel-size)) 0 0,
    calc(-2 * var(--pixel-size)) calc(-3 * var(--pixel-size)) 0 0,
    calc(-3 * var(--pixel-size)) calc(3 * var(--pixel-size)) 0 0;
}

.site-footer { margin: auto; padding: 3rem 2rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; color: #333; border-top: 1px solid var(--line); background-color: var(--paper);}
.footer-brand { font-family: "Barlow Condensed", sans-serif; font-size: 2.3rem; font-weight: 900; }
.footer-brand strong { margin-left: .35rem; color: var(--green); }
.site-footer p { color: #333; font-size: 14px; text-align: center; margin:0; }
.social-links { justify-self: end; display: flex; gap: 1rem; }
.social-links a { color: rgba(255,255,255,.7); font-size: .75rem; text-decoration: none; }
.social-links a:hover { color: var(--green); }
  .header-calais-logo { width: 174px;
    height: auto;
    margin-left: 20px;
    padding: 4px;
    border-radius: 4px;
    object-fit: contain;
    flex: none; }
.header-calais-logo-mobile {
    max-width: 220px;
    height: auto;
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal--right { transform: translateX(40px); }
.reveal.is-visible { opacity: 1; transform: translate(0,0); }

@keyframes drift { to { transform: translate(4vw, -3vw) scale(1.1); } }
@keyframes pulse-down { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }


@media (max-width: 1200px) {
  .header-calais-logo { display: none !important; }
}

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .section-grid, .split-content, .cosplay-layout { grid-template-columns: 1fr; }
  .culture-section { grid-template-columns: 1fr; gap: 3rem; }
  .culture-copy { max-width: var(--max); justify-self: stretch; }
  .media-card { width: min(620px, 100%); margin: 0 auto; }
  .media-card img { aspect-ratio: 16/10; }
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: 1rem; }
}

@media (max-width: 840px) {
  html { scroll-padding-top: 72px; }
  /* A backdrop filter on the header would contain its fixed menu. */
  .site-header, .site-header.is-scrolled { height: 64px; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .35s, border-color .35s; }
  .site-header.is-scrolled { background: var(--ink); }
  .site-header.is-scrolled .brand img { max-height: 48px; }
  .menu-toggle { position: relative; display: block; z-index: 2; }
  .menu-toggle { margin-left: auto; }
  .main-nav { position: fixed; inset: 0; height: 100vh; height: 100dvh; padding: 5rem 2rem max(2rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; overflow-y: auto; overscroll-behavior-y: contain; background: var(--ink); visibility: hidden; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility .35s; }
  .main-nav.is-open { visibility: visible; transform: none; }
  .main-nav a { flex-shrink: 0; font-size: 2rem; }
  .main-nav a:first-child { margin-top: auto; }
  .main-nav a:last-child { margin-bottom: auto; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .hero { min-height: 100svh; }
  .hero img { object-position: center; }
  .scroll-cue { display: none; }
  .quick-facts { grid-template-columns: 1fr 1fr; padding: 0 .8rem; }
  .fact { padding: 2.2rem .8rem; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2) { border-right: 0; }
  .fact strong { font-size: 3rem; }
  .section { padding: 5rem 1.25rem; }
  .section-heading { gap: 1rem; }
  .event-meta, .jury-grid, .tournament-days, .schedule-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 235px; }
  .feature-card h3 { margin-top: 3rem; }
  .tournament-block { padding: 1.2rem; }
  .tournament-title { grid-template-columns: 58px 1fr; gap: 0 1rem; }
  .tournament-title > span { font-size: 1.15rem; }
  .timeline-item { gap: 1rem; }
  .culture-panel { min-height: 350px; }
  .guest-card, .guest-card--reverse { grid-template-columns: 1fr; }
  .guest-card--reverse .guest-photo { order: 0; }
  .guest-photo { min-height: 360px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-self: center; }
}

@media (max-width: 520px) {
  h2 { font-size: 3.2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .fact span { font-size: .62rem; }
  .event-meta { grid-template-columns: 1fr; }
  .stat-panel div { grid-template-columns: 110px 1fr; }
  .jury-grid { grid-template-columns: 1fr 1fr; }
  .jury-grid article { min-height: 150px; padding: 1.1rem; }
  .jury-grid span { font-size: 1.8rem; }
  .schedule-day li { grid-template-columns: 58px 1fr; padding: 1rem 1.2rem; }
}

/* Supplied artwork and full editorial content. */
.hero { min-height: 0; padding-top: 76px; display: block; }
.hero > img { display: block; width: 100%; height: auto; object-fit: contain; }
.hero::after { display: none; }
.source-poster { max-width: 360px; justify-self: center; }
.source-poster img { aspect-ratio: auto 1000 / 1778; height: auto; filter: none; }
.editorial-copy { max-width: var(--max); margin: 0 auto 3rem; }
.editorial-copy > p { max-width: 85ch; }
.editorial-title { font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; text-transform: uppercase; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { position: relative; min-height: 170px; }
.feature-icon { position: absolute; top: 1.5rem; right: 1.5rem; display: block; width: 58px; height: 58px; margin: 0; color: var(--green); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.feature-card:hover .feature-icon { transform: translateY(-4px); }
.feature-card p { color: rgba(255,255,255,.8); margin-top: 3.5rem; }
.source-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 1.5rem; max-width: var(--max); margin: 3rem auto 0; width: 100%; }
.source-gallery img { display: block; width: 100%; height: auto; }
.split-content > .source-gallery { grid-template-columns: 1fr; margin-top: 0; }
.digital-section .timeline-gallery { position: sticky; top: calc(76px + 1.5rem); align-self: start; }
.cinema-banner h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.cinema-banner p + p { margin-top: 1rem; }
.tournament-days .tournament-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tournament-days .tournament-logo { display: grid; place-items: center; flex: 0 1 calc((100% - 1.5rem) / 3); min-width: 0; aspect-ratio: 1; padding: .75rem; background: #fff; }
.tournament-days .tournament-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tournament-days h4 { color: #079e29; font-family: "Barlow Condensed", sans-serif; font-size: 1.2rem; }
.timeline-item { grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; }
.timeline-item > span { width: 46px; height: 46px; }
.timeline::before { left: 23px; }
.timeline-item p { color: rgba(255,255,255,.78); }
.timeline-item p + p { margin-top: 1rem; }
.jury-grid { max-width: var(--max); margin: 3rem auto 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; background: transparent; border: 0; }
.jury-grid article { min-width: 0; padding: .65rem; justify-content: flex-start; }
.jury-grid img { width: 100%; height: auto; display: block; }
.jury-grid span { margin-top: .7rem; text-align: center; }
.source-figure { margin: 0; justify-self: center; width: min(100%, 360px); }
.source-figure img { display: block; width: 100%; height: auto; }
.dark-section .prose > p:not(.lead) { color: rgba(255,255,255,.78); }
.karting-row { margin-top: 5rem; }
.karting-row .source-gallery { grid-template-columns: 1fr; margin-top: 0; }
.guest-card, .guest-card--reverse { align-items: start; }
.guest-photo { position: relative; margin: 0; min-height: 0; }
.guest-photo img { display: block; height: auto; filter: none; }
.guest-card:hover .guest-photo img { scale: 1; }
.guest-photo figcaption { padding: .5rem 1rem; color: var(--muted); font-size: .75rem; }
.guest-copy { padding: clamp(1.5rem, 3vw, 3rem); }
.guest-copy h3 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.guest-copy > p { color: var(--muted); }
.guest-copy .guest-tagline { color: var(--text); }
.schedule-day li { grid-template-columns: 130px minmax(0, 1fr); gap: .5rem; }
.schedule-day li span { color: rgba(255,255,255,.8); }
.site-footer { grid-template-columns: 1fr; text-align: center; }
.partner-logos { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3rem); background: var(--paper); padding: 2rem 0; }
.partner-logos > * { flex: 0 1 230px; min-width: 0; }
.partner-logos img { width: 100%; max-width: none; height: 130px; object-fit: contain; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .65rem; font-size: .9rem; }
.footer-legal a, .legal-trigger { color: #284c5d; font: inherit; text-decoration: underline; text-underline-offset: .2em; }
.legal-trigger { padding: .35rem 0; border: 0; background: none; cursor: pointer; }
.footer-legal a:hover, .footer-legal a:focus-visible, .legal-trigger:hover, .legal-trigger:focus-visible { color: #087b2b; }
.cookie-banner[hidden], .cookie-choice-status[hidden] { display: none; }
.cookie-banner { position: fixed; z-index: 200; right: 1rem; bottom: 1rem; left: 1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; width: min(960px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin-inline: auto; padding: 14px; overflow-y: auto; border: 1px solid rgba(10,255,63,.45); border-radius: 10px; background: #0d1019; color: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.48); }
.cookie-banner-copy { max-width: 62ch; }
.cookie-banner h2 { margin: 0 0 .5rem; color: var(--green); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; }
.cookie-banner p { margin: 0; color: rgba(255,255,255,.88); font-size: .9rem; line-height: 1.5; }
.cookie-banner .cookie-choice-status { margin-top: .45rem; color: var(--green-soft); }
.cookie-info-link { padding: 0; border: 0; background: transparent; color: var(--green-soft); font: inherit; font-size: .86rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.cookie-banner-actions { display: flex; flex: none; gap: .7rem; }
.cookie-banner-actions button { min-width: 110px; min-height: 44px; padding: .55rem .8rem; border: 1px solid var(--green); border-radius: 4px; background: transparent; color: #fff; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.cookie-banner-actions button:hover, .cookie-banner-actions button:focus-visible { background: var(--green); color: #000; }
@media (max-width: 760px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookie-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-banner-actions button { min-width: 0; }
}
.legal-dialog { width: min(720px, calc(100% - 2rem)); max-width: none; max-height: min(90vh, 90dvh); padding: 0; border: 1px solid #cfd2cb; border-radius: 8px; background: var(--paper); color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.legal-dialog::backdrop { background: rgba(3,5,8,.75); }
.legal-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem clamp(1.25rem, 4vw, 2rem); border-bottom: 1px solid #deded8; background: var(--paper); }
.legal-dialog h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1; }
.legal-close { flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid #cfd2cb; border-radius: 50%; background: #fff; color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.legal-close:hover, .legal-close:focus-visible { border-color: #079e29; color: #079e29; }
.legal-dialog-content { padding: .5rem clamp(1.25rem, 4vw, 2rem) 2rem; }
.legal-dialog-content section { padding-top: 1.5rem; }
.legal-dialog-content h3 { margin: 0 0 .5rem; font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; text-transform: uppercase; }
.legal-dialog-content p { margin: .5rem 0 0; overflow-wrap: anywhere; }
.legal-dialog-content a { color: #087b2b; }
@media (max-width: 980px) {
  .source-poster { width: min(360px, 100%); }
  .split-content > .source-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .digital-section .timeline-gallery { position: static; }
  .jury-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .karting-row .prose { order: 1; }
  .karting-row .source-gallery { order: 2; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: 64px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-gallery, .split-content > .source-gallery { grid-template-columns: 1fr; }
  .guest-photo { min-height: 0; }
  .schedule-day li { grid-template-columns: 105px minmax(0, 1fr); }
  .partner-logos { padding: 1rem 0; gap: .75rem; }
  .partner-logos img { height: 100px; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .jury-grid article { padding: .4rem; }
  .section-heading h2 { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (min-width: 841px) {
.header-calais-logo-mobile {
  display: none;  
}
}
