/* ==========================================================================
   Slovak Cyber Team — style.css
   Light theme · white / red / blue · circuit motif · pixel accents
   ========================================================================== */

:root {
  /* Brand */
  --red: #e2251f;
  --red-dark: #b81b16;
  --blue: #1b5db4;
  --blue-bright: #2f7fe0;
  --blue-circuit: #1560a8;
  --navy: #0a1428;
  --navy-2: #0f1f3d;
  --ink: #101c33;
  --ink-soft: #44506a;

  /* Surfaces */
  --white: #ffffff;
  --paper: #f4f7fc;
  --line: #dde5f1;
  --card-shadow: 0 2px 6px rgba(16, 28, 51, .06), 0 12px 32px rgba(16, 28, 51, .08);
  --card-shadow-hover: 0 4px 10px rgba(16, 28, 51, .10), 0 20px 44px rgba(16, 28, 51, .14);

  /* Type */
  --font-pixel: 'Jersey 10', monospace;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.section { padding: 88px 0; scroll-margin-top: var(--header-h); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy); color: #e8eefb; }

/* Pixel kicker above section titles */
.kicker {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 10px);
}
.section--dark .kicker { color: #ff6b66; }

.section-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.section-lead { max-width: 720px; color: var(--ink-soft); margin-bottom: 40px; }
.section--dark .section-lead { color: #aebbd6; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform .15s;
}
.brand:hover img { transform: scale(1.04); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--paper); color: var(--red); }

/* Language toggle */
.lang-toggle {
  display: flex;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-pixel);
  font-size: 12px;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 11px;
  cursor: pointer;
  font: inherit;
  color: var(--ink-soft);
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.nav-burger {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.nav-burger span {
  width: 22px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(47, 127, 224, .25), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(226, 37, 31, .18), transparent 60%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero__circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding: clamp(84px, 12vw, 150px) 0 clamp(72px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.hero__wordmark {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: .02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}
.hero__wordmark .w { color: #fff; display: block; }
.hero__wordmark .r { color: var(--red); display: block; }
.hero__wordmark { position: relative; }
.hero__wordmark img {
  position: relative;
  width: min(560px, 100%);
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .45));
}
/* soft navy halo that quiets the circuit pattern behind the logo */
.hero__wordmark::before {
  content: "";
  position: absolute;
  inset: -48% -36%;
  background:
    radial-gradient(ellipse 52% 52% at 50% 50%, rgba(10, 20, 40, 1) 52%, rgba(10, 20, 40, 0) 78%),
    radial-gradient(ellipse 68% 68% at 50% 50%, rgba(10, 20, 40, .85) 40%, rgba(10, 20, 40, 0) 92%);
  pointer-events: none;
}

/* keep hero text above the logo halo (which is absolutely positioned) */
.hero__tagline, .hero__term, .hero__cta { position: relative; }

.hero__tagline {
  font-family: var(--font-head);
  font-size: clamp(17px, 2vw, 21px);
  color: #c3d1ea;
  max-width: 560px;
  margin-bottom: 14px;
}

.hero__term {
  font-family: var(--font-pixel);
  font-size: 24px;
  letter-spacing: .02em;
  color: #8ee89c;
  text-shadow: 0 0 14px rgba(127, 209, 139, .5);
  margin-bottom: 34px;
  min-height: 34px;
}
.hero__term::before { content: "> "; color: #6aa5e8; }
.hero__term .caret {
  display: inline-block;
  width: 12px; height: 22px;
  background: #8ee89c;
  box-shadow: 0 0 10px rgba(127, 209, 139, .6);
  vertical-align: -3px;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(226, 37, 31, .35);
}
.btn--red:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(27, 93, 180, .3); }
.btn--blue:hover { background: var(--blue-bright); color: #fff; transform: translateY(-2px); }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: #fff; }

/* Hero photo deck — scrub with mouse / swipe on touch */
.hero__deck {
  position: relative;
  aspect-ratio: 768 / 654;
  width: 100%;
  max-width: 620px;
  cursor: pointer;
  touch-action: pan-y;
}
.hero__deck:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 6px;
  border-radius: var(--radius);
}
.deck-card {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  background: var(--navy-2);
  transition: transform .28s ease, filter .28s ease;
  will-change: transform;
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(6, 12, 26, .9));
}
@media (prefers-reduced-motion: reduce) {
  .deck-card { transition: none; }
}

/* Hero stats strip */
.hero-stats {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(6, 12, 26, .55);
  backdrop-filter: blur(6px);
}
.hero-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 22px 0;
}
.stat { text-align: center; padding: 8px 6px; }
.stat b {
  display: block;
  font-family: var(--font-pixel);
  font-size: clamp(22px, 3vw, 32px);
  color: #fff;
  line-height: 1.1;
}
.stat b .accent { color: var(--red); }
.stat span { font-size: 13px; color: #9fb2d4; }

/* ==========================================================================
   Result highlight
   ========================================================================== */

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  background: var(--navy);
  color: #e8eefb;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}
.result-card__img img { width: 100%; height: 100%; object-fit: cover; }
.result-card__body { padding: clamp(28px, 4vw, 52px); align-self: center; }
.result-card__body h2, .result-card__body h3 {
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
}
.result-card__body p { color: #b7c5e0; }
.result-card__body .kicker { color: #ff6b66; }

/* ==========================================================================
   Team grid
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}

.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.member--clickable { cursor: pointer; }
.member:hover, .member:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--blue);
}
.member:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.member__photo {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #eef3fb, #e4ebf7);
  overflow: hidden;
}
.member__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member__photo-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .12s ease;
  /* opaque backdrop so transparent PNGs don't show the main photo through */
  background: linear-gradient(160deg, #eef3fb, #e4ebf7);
}
.member:hover .member__photo-alt,
.member:focus-visible .member__photo-alt { opacity: 1; }

/* ---- cameo requests from the team thread ---- */
/* Marcinčák: hue border; goes double-wide only when it keeps grid rows complete (see main.js) */
.member--epic.epic-wide { grid-column: span 2; }
.member--epic.epic-wide .member__photo { aspect-ratio: 2 / 1; }
.member--epic {
  outline: 3px solid transparent;
  outline-offset: -1px;
  transition: outline-color .2s ease, box-shadow .2s ease;
}
.member--epic:hover,
.member--epic:focus-within {
  animation: epic-hue 5s linear infinite;
}
@keyframes epic-hue {
  0%   { outline-color: hsl(0 85% 55%);   box-shadow: 0 0 16px hsl(0 85% 55% / .35); }
  25%  { outline-color: hsl(90 80% 42%);  box-shadow: 0 0 16px hsl(90 80% 42% / .35); }
  50%  { outline-color: hsl(180 80% 42%); box-shadow: 0 0 16px hsl(180 80% 42% / .35); }
  75%  { outline-color: hsl(270 80% 55%); box-shadow: 0 0 16px hsl(270 80% 55% / .35); }
  100% { outline-color: hsl(360 85% 55%); box-shadow: 0 0 16px hsl(360 85% 55% / .35); }
}

/* Varga: monochrome (courtesy of Ondrejčák) */
.member--varga .member__photo > img:first-of-type { filter: grayscale(1); }
.member--varga .member__photo-alt { z-index: 2; }

/* Ondrejčák: banana cursor, toggled by clicking his card */
.banana-cursor,
.banana-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='26' font-size='26'%3E%F0%9F%8D%8C%3C/text%3E%3C/svg%3E") 6 6, auto !important;
}

.member__body { padding: 14px 16px 16px; }
.member__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin: 0; }
.member__role {
  font-family: var(--font-pixel);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  margin: 3px 0 2px;
}
.member__affil { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* Captain badge */
.member--captain .member__photo::before {
  content: "CAPTAIN";
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 10px;
  background: var(--red);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Staff row */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

/* Member modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 20, 40, .7);
  backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal__card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 200px 1fr;
}
.modal__card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; align-self: start; }
.modal__body { padding: 26px 28px; }
.modal__body h3 { margin-bottom: 2px; }
.modal__body .member__role { margin-bottom: 12px; }
.modal__body p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  appearance: none;
  border: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

/* ==========================================================================
   Timeline (achievements + years)
   ========================================================================== */

.timeline { position: relative; margin: 0; padding: 0 0 0 30px; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--blue) 0 8px, transparent 8px 14px);
}
.timeline li { position: relative; padding: 0 0 28px 18px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px; top: 6px;
  width: 14px; height: 14px;
  background: var(--white);
  border: 3px solid var(--red);
  border-radius: 3px;
  transform: rotate(45deg);
}
.timeline.collapsed li:nth-child(n+6) { display: none; }
.timeline-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--blue);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
}
.timeline-toggle:hover { border-color: var(--blue); }
.timeline-toggle .tl-less { display: none; }
.timeline-toggle[aria-expanded="true"] .tl-more { display: none; }
.timeline-toggle[aria-expanded="true"] .tl-less { display: inline; }
.join-note { margin-top: 16px; font-size: 14px; color: #aebbd6; }

.timeline time {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 2px;
}
.timeline p { margin: 0; color: var(--ink-soft); }
.timeline b { color: var(--ink); }

/* Year cards */
.years-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.year-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  color: var(--ink);
}
.year-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); border-color: var(--red); color: var(--ink); }
.year-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.year-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.year-card:hover .year-card__img img { transform: scale(1.04); }
.year-card__body { padding: 16px 18px 18px; }
.year-card__year { font-family: var(--font-pixel); font-size: 20px; color: var(--red); display: block; }
.year-card__meta { font-size: 14px; color: var(--ink-soft); }
.year-card__arrow {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-pixel);
  background: rgba(255, 255, 255, .92);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 13px;
  color: var(--blue);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: 30px;
  color: #fff;
  background: rgba(10, 20, 40, 0);
  opacity: 0;
  transition: opacity .2s, background .2s;
}
.gallery a:hover::after { opacity: 1; background: rgba(10, 20, 40, .45); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 22, .92);
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.lightbox button {
  position: absolute;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: background .15s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Partners
   ========================================================================== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.partner {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 92px;
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.partner:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--card-shadow); color: var(--blue); }
.partner small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.partner img {
  max-height: 48px;
  max-width: min(180px, 85%);
  width: auto;
  object-fit: contain;
  filter: grayscale(0);
  transition: transform .15s;
}
.partner--logo { padding: 22px 18px; }
.partner--logo:hover img { transform: scale(1.05); }

/* ==========================================================================
   Info cards (About ECSC)
   ========================================================================== */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.info-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
}
.info-card__num {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: #ff6b66;
  display: block;
  margin-bottom: 12px;
}
.info-card h3 { color: #fff; font-size: 20px; }
.info-card p { color: #aebbd6; font-size: 15px; margin: 0; }

/* ==========================================================================
   Join / CTA band
   ========================================================================== */

.join-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 85% 20%, rgba(47, 127, 224, .3), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(226, 37, 31, .22), transparent 60%),
    var(--navy);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
}
.join-band h2 { font-size: clamp(26px, 4vw, 40px); color: #fff; }
.join-band p { color: #b7c5e0; max-width: 640px; margin: 0 auto 30px; }
.join-band .hero__cta { justify-content: center; }
.join-band .circuit-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .35; pointer-events: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: left;
}
.step {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 16px 18px;
}
.step span {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: #ff6b66;
  display: block;
  margin-bottom: 6px;
}
.step p { margin: 0; font-size: 14.5px; color: #dbe5f6; font-weight: 500; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: #9fb2d4;
  padding: 56px 0 34px;
  font-size: 14px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h3 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer a { color: #c3d1ea; }
.site-footer a:hover { color: #ff6b66; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }

.footer-brand {
  font-family: var(--font-pixel);
  font-size: 17px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.footer-brand b { color: #fff; }
.footer-brand span { color: var(--red); }
.footer-logo {
  width: min(240px, 100%);
  height: auto;
  margin-bottom: 14px;
}

.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background .15s, transform .15s;
}
.socials a:hover { background: var(--red); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }

.eu-strip {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 26px;
}
.eu-strip img { width: 100%; max-width: 980px; margin-inline: auto; }

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: #7488ad;
}

/* ==========================================================================
   Year archive pages
   ========================================================================== */

.page-hero {
  position: relative;
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(47, 127, 224, .28), transparent 60%),
    var(--navy);
  color: #fff;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0;
}
.page-hero .hero__circuit { opacity: .4; }
.page-hero__inner { position: relative; }
.page-hero .kicker { color: #ff6b66; }
.page-hero h1 { font-family: var(--font-pixel); font-weight: 400; font-size: clamp(30px, 5vw, 54px); margin-bottom: 10px; }
.page-hero p { color: #b7c5e0; max-width: 700px; font-size: 17px; margin: 0; }

.prose { max-width: 780px; }
.prose p { color: var(--ink-soft); }
.prose b, .prose strong { color: var(--ink); }

.year-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.year-nav a {
  font-family: var(--font-pixel);
  font-size: 13px;
  padding: 8px 14px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  color: #fff;
}
.year-nav a:hover, .year-nav a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__term .caret { animation: none; }
}

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .hero__term, .nav-burger, .lang-toggle { display: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__deck { max-width: 520px; margin-top: 44px; }
  .result-card { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero__term { font-size: 19px; min-height: 28px; }
  .hero__term .caret { width: 10px; height: 18px; }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 2px;
    display: none;
    box-shadow: 0 24px 40px rgba(16, 28, 51, .12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 17px; }
  .nav-burger { display: flex; }
  .lang-toggle { margin-left: auto; }
  .nav-burger { margin-left: 0; }
  .hero-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .modal__card { grid-template-columns: 1fr; }
  .modal__card img { max-height: 300px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
}
