/* ==========================================================================
   Stormriders — design system
   One set of tokens, one button family, one card, one section header.
   Page CSS files only add layout for content that is unique to that page.
   ========================================================================== */

:root {
  /* Brand */
  --red: #e10600;
  --red-deep: #b30500;
  --ink: #0c0d0f;          /* off-black, used for dark sections */
  --ink-2: #16181b;        /* raised surface on dark */
  --paper: #ffffff;
  --mist: #f3f3f1;         /* light alternate surface */
  --text: #16181b;
  --text-muted: #5a606a;
  --line: rgba(12, 13, 15, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --on-dark-muted: rgba(255, 255, 255, .7);

  /* Type */
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --fs-hero: clamp(4.75rem, 14vw, 12.5rem);
  --fs-h1: clamp(3.75rem, 9vw, 8.5rem);
  --fs-h2: clamp(3.25rem, 6.4vw, 6.5rem);
  --fs-h3: clamp(1.75rem, 2.6vw, 2.5rem);
  --fs-body: clamp(1.0625rem, 1rem + .2vw, 1.1875rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + .45vw, 1.4375rem);
  --fs-small: .9375rem;
  --fs-label: .8125rem;

  /* Space & shape */
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --section: clamp(80px, 10vw, 152px);
  --r-sm: 6px;
  --r-md: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --z-header: 50;
  --z-menu: 60;
  --z-lightbox: 80;
}
@media (max-width: 809px) { :root { --header-h: 64px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--red); color: #fff; font-weight: 700; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--flush-top { padding-top: 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--mist { background: var(--mist); }
.section--red { background: var(--red); color: #fff; }

/* The storm cut: dark/red bands start with one consistent diagonal edge */
.cut { --cut: clamp(28px, 4vw, 64px); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); padding-top: calc(var(--section) + var(--cut)); }
.cut + .cut { margin-top: calc(var(--cut) * -1); }

.split { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-text { grid-template-columns: 1.15fr .85fr; } }

/* Background grain on dark surfaces — breaks digital flatness */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.display { font-size: var(--fs-hero); line-height: .84; letter-spacing: -.01em; }
.h1 { font-size: var(--fs-h1); line-height: .88; }
.h2 { font-size: var(--fs-h2); line-height: .9; }
.h3 { font-size: var(--fs-h3); line-height: 1; letter-spacing: .01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-label); font-weight: 700; line-height: 1.2;
  letter-spacing: .18em; text-transform: uppercase;
}
/* The brand slash: a short slanted red bar, used before eyebrows */
.eyebrow::before {
  content: ""; width: 28px; height: 5px; background: var(--red); transform: skewX(-24deg); flex: none;
}
.eyebrow--plain::before { display: none; }

.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 38ch; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.section--dark .muted, .on-dark .muted { color: var(--on-dark-muted); }

/* Long-form text */
.prose { max-width: 66ch; text-wrap: pretty; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: .01em; margin-top: 1.6em; }
.prose h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.prose h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose strong { font-weight: 700; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--red); }

/* ---------- Section header ----------
   <div class="sh"><div class="sh__text"><p class="eyebrow">…</p><h2 class="h2">…</h2><p class="sh__lead">…</p></div><a class="link-arrow">…</a></div> */
.sh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.sh__text { display: grid; gap: 16px; max-width: 760px; }
.sh__lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 46ch; color: var(--text-muted); text-wrap: pretty; }
.section--dark .sh__lead, .section--red .sh__lead { color: var(--on-dark-muted); }
.section--red .eyebrow::before { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff; --btn-wipe: var(--ink); --btn-wipe-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 2px solid var(--btn-bg); border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .9375rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; text-align: center;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .15s ease;
}
/* Diagonal wipe — the one hover effect for every button */
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--btn-wipe);
  clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%);
  transition: clip-path .45s var(--ease);
}
.btn:hover { color: var(--btn-wipe-fg); border-color: var(--btn-wipe); }
.btn:hover::before { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--dark  { --btn-bg: var(--ink); --btn-wipe: var(--red); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-wipe: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-wipe: var(--red); border-color: currentColor; }
.section--dark .btn:not(.btn--light):not(.btn--ghost), .on-dark .btn:not(.btn--light):not(.btn--ghost) { --btn-wipe: #fff; --btn-wipe-fg: var(--ink); }
.section--red .btn--light { --btn-wipe: var(--ink); --btn-wipe-fg: #fff; }
.section--red .btn--dark  { --btn-wipe: #fff; --btn-wipe-fg: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .8125rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); color: var(--red); }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Tag / badge — square, small */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 3px;
  background: var(--red); color: #fff;
  font-size: .75rem; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
}
.tag--dark { background: var(--ink); }
.tag--light { background: #fff; color: var(--ink); }
.tag--outline { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h); color: #fff;
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, transform .35s var(--ease);
}
.site-header::before { /* scrim keeps nav readable over bright photos */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 13, 15, .55), transparent);
  transition: opacity .35s ease;
}
.site-header.is-solid { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--red); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(calc(-100% - 6px)); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.logo { position: relative; z-index: 2; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 10px; }
.logo::before { content: ""; width: 22px; height: 6px; background: var(--red); transform: skewX(-24deg); }

.site-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.site-nav a:not(.btn) {
  position: relative; font-size: .875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding-block: 8px;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--red); }
.site-header:not(.is-solid) .site-nav a[aria-current="page"] { color: #fff; }
.site-nav .menu-extra, .site-nav .only-menu { display: none; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; z-index: 2; }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .nav-open .site-header { color: #fff; background: transparent; box-shadow: none; }
  .nav-open .site-header::before { opacity: 0; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    background: var(--ink); color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    visibility: hidden;
    transition: clip-path .55s var(--ease), visibility 0s linear .55s;
    overflow-y: auto;
  }
  .nav-open .site-nav { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition: clip-path .55s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav ul a:not(.btn) {
    display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 13vw, 4.5rem);
    line-height: 1; letter-spacing: 0; padding-block: 4px;
    opacity: 0; transform: translateY(24px); transition: opacity .4s ease, transform .5s var(--ease), color .2s;
  }
  .site-nav ul a:not(.btn)::after { display: none; }
  .site-nav a[aria-current="page"], .site-header:not(.is-solid) .site-nav a[aria-current="page"] { color: var(--red); }
  .nav-open .site-nav ul a:not(.btn) { opacity: 1; transform: none; }
  .site-nav .menu-extra a { width: fit-content; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; }
  .site-nav .menu-extra .socials a { border-color: rgba(255, 255, 255, .3); }
  .site-nav .menu-extra .socials { margin-top: 0; }
  .nav-open .site-nav li:nth-child(2) a { transition-delay: .04s; }
  .nav-open .site-nav li:nth-child(3) a { transition-delay: .08s; }
  .nav-open .site-nav li:nth-child(4) a { transition-delay: .12s; }
  .nav-open .site-nav li:nth-child(5) a { transition-delay: .16s; }
  .nav-open .site-nav li:nth-child(6) a { transition-delay: .2s; }
  .nav-open .site-nav li:nth-child(7) a { transition-delay: .24s; }
  .site-nav .only-menu { display: block; }
  .site-nav .nav-cta { margin-top: 24px; }
  .site-nav .menu-extra { display: grid; gap: 20px; margin-top: 48px; color: var(--on-dark-muted); font-size: var(--fs-small); }
  .nav-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #fff; padding: clamp(72px, 9vw, 120px) 0 32px; overflow: hidden; }
.site-footer__grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 810px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__tagline { margin-top: 20px; max-width: 30ch; color: var(--on-dark-muted); font-size: var(--fs-lead); line-height: 1.4; }
.site-footer h2 { font-size: var(--fs-label); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 16px; }
.site-footer__links a, .site-footer__links span { display: block; width: fit-content; padding-block: 5px; transition: color .2s; }
.site-footer__links a:hover { color: var(--red); }
.socials { display: flex; gap: 12px; margin-top: 28px; }
.socials a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line-dark); transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.site-footer__wordmark {
  margin-top: clamp(56px, 8vw, 96px);
  font-family: var(--font-display); font-size: min(calc((100vw - var(--gutter) * 2) / 4.05), 316px); line-height: .78; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
  white-space: nowrap; user-select: none;
}
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: var(--fs-small); }
.site-footer__bottom a:hover { color: #fff; }

/* ---------- Page hero (all sub pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(460px, 68svh, 720px);
  padding: calc(var(--header-h) + 48px) 0 clamp(40px, 6vw, 80px);
  background: var(--ink); color: #fff;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 13, 15, .92) 0%, rgba(12, 13, 15, .55) 45%, rgba(12, 13, 15, .25) 100%),
    linear-gradient(to right, rgba(12, 13, 15, .5), transparent 70%);
}
.page-hero__inner { display: grid; gap: 20px; }
.page-hero .eyebrow { color: #fff; }
.page-hero .lead { max-width: 52ch; color: rgba(255, 255, 255, .86); }
.page-hero--short { min-height: clamp(380px, 52svh, 560px); }
.page-hero .btn-row { margin-top: 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: rgba(255, 255, 255, .7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* Key facts bar inside an event hero */
.facts { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 16px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; }
.facts > div { padding: 14px 20px; background: rgba(12, 13, 15, .62); }
@media (min-width: 600px) { .facts { grid-auto-flow: column; grid-auto-columns: 1fr; } }
@media (max-width: 599px) { .facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; } .facts dd { margin-top: 0; text-align: right; } }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.facts dd { margin-top: 4px; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }

/* ---------- Card (events, posts) ----------
   <a class="card" href=…><img class="card__img"><div class="card__body"><span class="tag">…</span><h3 class="card__title">…</h3><p class="card__meta">…</p></div></a> */
.card-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(360px, 42vw, 460px); padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-md); background: var(--ink-2); color: #fff;
}
.card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12, 13, 15, .94) 0%, rgba(12, 13, 15, .6) 40%, rgba(12, 13, 15, .05) 75%);
  transition: opacity .4s ease;
}
.card__body { display: grid; gap: 10px; justify-items: start; }
.card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3vw, 2.75rem); line-height: .95; text-transform: uppercase; text-wrap: balance; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-small); color: rgba(255, 255, 255, .82); }
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.card__meta svg { width: 16px; height: 16px; color: var(--red); }
.card__excerpt { color: rgba(255, 255, 255, .85); max-width: 40ch; }
.card__go {
  position: absolute; top: clamp(20px, 2.4vw, 28px); right: clamp(20px, 2.4vw, 28px);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(12, 13, 15, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: background-color .3s, transform .4s var(--ease);
}
.card__go svg { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform .4s var(--ease); }
a.card:hover .card__img { transform: scale(1.06); }
a.card:hover .card__go { background: var(--red); }
a.card:hover .card__go svg { transform: rotate(0); }
.card--feature { min-height: clamp(420px, 52vw, 640px); }
.card--feature .card__title { font-size: clamp(2.75rem, 5vw, 4.5rem); }
.card--short { min-height: clamp(300px, 30vw, 380px); }

/* ---------- Photo grid + lightbox thumbs ---------- */
.photo-grid { display: grid; gap: clamp(8px, 1.2vw, 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.photo-grid a, .photo { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--mist); aspect-ratio: 4 / 3; }
.photo-grid img, .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.photo-grid a::after {
  content: ""; position: absolute; inset: 0; background: rgba(12, 13, 15, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 28px no-repeat;
  opacity: 0; transition: opacity .3s;
}
.photo-grid a:hover img { transform: scale(1.05); }
.photo-grid a:hover::after { opacity: 1; }
.photo-grid--dense { grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }

/* ---------- Ranking (hall of fame) ---------- */
.ranking { display: grid; gap: 0; counter-reset: rank; }
.ranking__title { font-family: var(--font-display); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1; text-transform: uppercase; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.section--dark .ranking__title { border-color: #fff; }
.ranking ol { display: grid; }
.ranking li {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.125rem;
}
.section--dark .ranking li { border-color: var(--line-dark); }
.ranking__nr { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--text-muted); }
.ranking li:first-child .ranking__nr { color: var(--red); }
.ranking__note { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ranking--cats li { grid-template-columns: 1fr auto; color: var(--text-muted); }
.ranking-group { display: grid; gap: clamp(32px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ---------- Info grid (praktische info) ---------- */
.info-grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 560px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-grid > div { display: grid; gap: 6px; align-content: start; padding: clamp(20px, 2.4vw, 28px); background: var(--ink); }
.info-grid svg { width: 26px; height: 26px; color: var(--red); margin-bottom: 10px; }
.info-grid dt { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.info-grid dd { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }

/* ---------- CTA band ---------- */
.cta-band { display: grid; gap: 24px; justify-items: start; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Media helpers ---------- */
.media-frame { position: relative; }
.media-frame img { width: 100%; border-radius: var(--r-md); object-fit: cover; }
/* Offset red slash behind an image — signature detail */
.media-frame--slash::before {
  content: ""; position: absolute; z-index: -1; right: -18px; bottom: -18px; width: 55%; height: 45%;
  background: var(--red); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.media-frame--slash { isolation: isolate; }

/* ---------- Prompt row (mail us your photo / story) ---------- */
.prompt-row {
  display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 20px 24px;
  border: 1.5px dashed var(--line); border-radius: var(--r-md);
  transition: border-color .3s, background-color .3s;
}
.prompt-row svg { width: 24px; height: 24px; flex: none; color: var(--red); }
.prompt-row strong { font-weight: 700; }
.prompt-row__arrow { margin-left: auto; transition: transform .3s var(--ease); }
.prompt-row:hover { border-color: var(--red); background: rgba(225, 6, 0, .04); }
.prompt-row:hover .prompt-row__arrow { transform: translateX(4px); }
.section--dark .prompt-row { border-color: var(--line-dark); }

/* ---------- Partner logos (static row) ---------- */
.logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 24px clamp(24px, 4vw, 56px); align-items: center; justify-items: center; }
.logo-row img { width: clamp(84px, 9vw, 120px); height: clamp(84px, 9vw, 120px); object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.logo-row a:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* ---------- Component variants ---------- */
/* Info grid on a light section */
.info-grid--light { background: var(--line); border-color: var(--line); }
.info-grid--light > div { background: var(--paper); }
.info-grid--light dt { color: var(--text-muted); }
/* Ranking extras */
.ranking li > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.section--dark .ranking__nr { color: var(--on-dark-muted); }
.section--dark .ranking li:first-child .ranking__nr { color: var(--red); }
.section--dark .ranking__note { color: #ff4d47; }
/* A note (e.g. a title) sits under the name, so narrow columns never squeeze the name */
.ranking:not(.ranking--cats) li:has(.ranking__note) { grid-template-columns: 56px 1fr; row-gap: 2px; }
.ranking:not(.ranking--cats) li:has(.ranking__note) .ranking__note { grid-column: 2; }
.ranking-group > .ranking { align-content: start; }
.photo-grid--portrait { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 810px) { .photo-grid--portrait { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 810px) { .photo-grid--dense { grid-template-columns: repeat(4, 1fr); } }
.photo-grid--portrait a { aspect-ratio: 3 / 4; }
.prose:empty { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); display: none; place-items: center; padding: 64px 16px; background: rgba(12, 13, 15, .94); }
.lightbox.is-open { display: grid; animation: fade .25s ease; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 128px); object-fit: contain; border-radius: var(--r-sm); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, .1); transition: background-color .2s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--red); }
.lightbox svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--on-dark-muted); font-size: var(--fs-small); letter-spacing: .1em; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
