/* =========================================================
   RebelLUG — Stylesheet   ("dark hangar", rebel-orange accent)
   Structure adapted from jastabrick.com, repainted for a
   near-black theme with a single orange accent.
   ========================================================= */

/* --- Reset & base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --surface-2: #1e1e24;
  --line: #2a2a30;
  --line-strong: #3a3a42;

  --ink: #ececec;
  --muted: #9a9aa2;
  --muted-2: #6a6a72;

  --accent: #f5a623;
  --accent-hover: #ffb943;
  --accent-ink: #0d0d0f;

  --radius: 4px;
  --max-w: 1400px;
  /* home page: carousel + Instagram + collab grid share this narrower width,
     so the group photos stay a modest size (no cropping — smaller width just
     means smaller height). Tweak this one number to taste. */
  --home-w: 1280px;
  --pad-x: clamp(20px, 4vw, 32px);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

[data-layout="footer"] { margin-top: auto; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* --- Typography helpers --- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.mono { font-family: var(--font-mono); }

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  background-image: url('/white-greeble-background.jpg');
  background-size: 620px;
  background-blend-mode: overlay;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 26px; width: auto; display: block; }

/* --- Navigation --- */
.nav--desktop { display: none; }

.nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.nav a:hover { color: var(--muted); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { opacity: 1; }

/* --- Hamburger --- */
.hamburger {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 5px;
  margin-left: auto;
}
.hamburger span { width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; }
.hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* --- Mobile nav overlay --- */
.nav--mobile {
  display: none !important;
  position: fixed;
  inset: 0;
  width: 100%;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px var(--pad-x);
  z-index: 9999;
  overflow-y: auto;
}
.nav--mobile.is-open { display: flex !important; }
.nav--mobile a {
  display: block;
  padding: 18px 0;
  color: var(--muted);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}
.nav--mobile a.is-active { color: var(--ink); }

.nav-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  z-index: 10000;
}
.nav-close svg { width: 24px; height: 24px; }

body.menu-open { overflow: hidden; }

/* --- Social icons --- */
.nav-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: auto;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.nav-social a {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  color: var(--ink);
  transition: color var(--transition);
}
.nav-social a:hover { color: var(--accent); }
.nav-social svg { width: 100%; height: 100%; }

.nav-social--mobile {
  position: absolute;
  bottom: 56px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}
.nav-social--mobile a { width: 26px; height: 26px; }

/* --- Responsive nav --- */
@media (min-width: 820px) {
  .nav--desktop { display: flex; gap: 26px; align-items: center; }
  .nav--mobile { display: none !important; }
  .hamburger { display: none; }
}

/* --- Site Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 56px var(--pad-x) 40px;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.site-footer__brand img { height: 52px; width: auto; opacity: 0.9; }
.site-footer__legal { font-size: 12px; line-height: 1.6; color: var(--muted); }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.site-footer__links a:hover { color: var(--accent); }
.site-footer__bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Generic page container --- */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--pad-x) 80px;
  width: 100%;
}

.page__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.page__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page__count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* --- Home: section blocks --- */
.home-section {
  max-width: var(--home-w);
  margin: 0 auto;
  padding: 44px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.home-section:last-of-type { border-bottom: none; }

/* first section sits right under the header — no big top gap */
.home-section--top { padding-top: 16px; }
.home-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.home-section__title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.home-section__link {
  font-size: 13px;
  color: var(--accent);
  transition: color var(--transition);
}
.home-section__link:hover { color: var(--accent-hover); }

/* --- Carousel (group photos) ---
   The band is locked to 2:1. Put 2:1-cropped photos in /group/ and list
   them in GROUP_PHOTOS (assets/js/config.js). object-fit:cover means a
   photo that isn't exactly 2:1 still fills the band (it gets cropped —
   that's the signal to fix the file). */
.carousel { position: relative; }
.carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 2 / 1;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(13, 13, 15, 0.45);
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.carousel:hover .carousel__btn,
.carousel__btn:focus-visible { opacity: 1; }
.carousel__btn:hover { background: rgba(13, 13, 15, 0.75); color: var(--accent); }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel__dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: background var(--transition), transform var(--transition);
}
.carousel__dot.is-active { background: var(--accent); transform: scale(1.15); }

/* --- Instagram embed --- */
.ig-fallback {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.ig-fallback .btn svg { width: 18px; height: 18px; }

/* Manual Instagram post embeds */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}
.ig-grid .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 400px !important;
  margin: 0 !important;
}

/* Behold feed rendered as our own photo grid — one row of 6, content width */
.ig-grid--photos {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  justify-items: stretch;
}
@media (min-width: 720px) {
  .ig-grid--photos { grid-template-columns: repeat(6, 1fr); }
}
.ig-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity var(--transition);
}
.ig-item:hover img { transform: scale(1.04); opacity: 0.85; }
.ig-item__badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.ig-credit {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
.ig-credit a { color: var(--muted); }
.ig-credit a:hover { color: var(--accent); }

/* --- Work grid (collaborations) --- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: 1fr 1fr 1fr; gap: 26px 22px; } }

.card { display: block; color: var(--ink); }
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card__media img { transform: scale(1.03); }
.card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card__meta {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card__title { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.card:hover .card__title { color: var(--accent); }
.card__year { font-family: var(--font-mono); font-size: 11px; color: var(--muted); flex-shrink: 0; }
.card__subtitle { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* --- Collab detail --- */
.collab {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px var(--pad-x) 80px;
}
.collab-hero { margin-bottom: 8px; }
.collab-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.collab-hero__meta span + span::before { content: '·'; margin-right: 14px; color: var(--muted-2); }
.collab-hero__title {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
  color: var(--ink);
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.back-link:hover svg { transform: translateX(-3px); }

/* --- Content blocks (shared: collab detail) --- */
.blocks { margin-top: 8px; }
.pb { margin: 44px auto; }
.pb:first-child { margin-top: 36px; }
.pb--text { max-width: 680px; }

/* section heading with an optional "Built by …" credit on the same line */
.pb--heading { max-width: 680px; margin: 44px auto 14px; }
.pb--heading + .pb { margin-top: 10px; }
.pb__h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 3px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}
.pb__h-by { font-size: 12px; font-weight: 400; color: var(--muted); }
.pb--text p { font-size: 17px; line-height: 1.75; margin-bottom: 1em; }
.pb--text p:last-child { margin-bottom: 0; }
.pb--text a { color: var(--accent); border-bottom: 1px solid var(--accent); transition: opacity var(--transition); }
.pb--text a:hover { opacity: 0.7; }
.pb--text strong { font-weight: 600; }

.pb--image img,
.pb__duo-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.pb--full { max-width: 1000px; }
.pb--inset { max-width: 680px; }
.pb--duo { max-width: 1000px; }
.pb__duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pb--video { max-width: 1000px; }
/* kept small + framed so a page with many of these doesn't turn into a wall
   of stark white Instagram chrome — the frame reads as "a photo", not a widget */
.pb--instagram { max-width: 360px; }
.pb__ig-frame {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pb--instagram .instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border-radius: calc(var(--radius) - 2px) !important;
  overflow: hidden;
}
.pb__video {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pb__video iframe { width: 100%; height: 100%; border: 0; }
.pb__caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* --- Builder credits --- */
.pb__by {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.pb--by {
  max-width: 680px;
  margin: 22px auto;
  font-size: 13px;
  color: var(--muted);
}
.pb__by-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-right: 8px;
}
.pb__by-sep { margin: 0 8px; color: var(--muted-2); }
.builder {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
/* .pb prefix so these beat ".pb--text a" (which adds the orange underline) */
.pb .builder a { border-bottom: 0; }
.pb .builder__name {
  color: var(--ink);
  transition: color var(--transition);
}
.pb .builder__name:hover { color: var(--accent); opacity: 1; }
.builder__flag { font-size: 12px; line-height: 1; }
.builder__socials { display: inline-flex; gap: 6px; }
.pb .builder__socials a {
  width: 14px; height: 14px;
  display: inline-flex;
  color: var(--muted-2);
  transition: color var(--transition);
}
.pb .builder__socials a:hover { color: var(--accent); opacity: 1; }
.builder__socials svg { width: 100%; height: 100%; }
.builder--past { color: var(--muted); }
.builder--pending { color: var(--ink); }
.builder__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
}
@media (max-width: 600px) {
  .pb__duo-grid { grid-template-columns: 1fr; }
  .pb { margin: 32px auto; }
}

/* --- Tags --- */
.tags {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.tags__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 14px;
}
.tags__list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.tag.is-active {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

/* theme filter on the Collaborations page */
.collab-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

/* --- Text pages (Apply, generic prose) --- */
.text-page { max-width: 760px; margin: 0 auto; padding: 56px var(--pad-x) 80px; }
.text-page__eyebrow { margin-bottom: 16px; }
.text-page__title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.text-page h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}
.text-page h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 30px 0 12px;
}
.text-page p { font-size: 16px; line-height: 1.75; margin-bottom: 1em; color: var(--ink); }
.text-page ul, .text-page ol { margin: 0 0 1.2em 1.4em; font-size: 16px; line-height: 1.75; }
.text-page li { margin-bottom: 0.5em; }
.text-page a { color: var(--accent); border-bottom: 1px solid var(--accent); transition: opacity var(--transition); }
.text-page a:hover { opacity: 0.7; }

.embed-frame {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 20px 0 8px;
}

.apply-layout { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) {
  .apply-layout { flex-direction: row; align-items: flex-start; }
  .apply-layout__main { flex: 1; min-width: 0; }
  .apply-layout__aside { flex: 0 0 340px; position: sticky; top: 88px; }
}

/* --- Members --- */
.members-status {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 40px 0;
}
.members-status a { color: var(--accent); }

/* --- Member world map (countries with members, coloured from the sheet) --- */
.worldmap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}
.worldmap svg { display: block; width: 100%; height: auto; }
.worldmap path {
  fill: var(--surface-2);
  stroke: var(--bg);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
  transition: fill var(--transition);
}
.worldmap path.is-member { fill: var(--accent); }
.worldmap path.is-member:hover { fill: var(--accent-hover); }
.worldmap-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 8px;
}
.worldmap path.is-member { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .worldmap path { transition: none; } }

/* --- Members grouped by country --- */
.member-country {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;   /* clear the sticky header on jump */
}
.member-country__flag { font-size: 18px; line-height: 1; }
.member-country__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-2);
}
.member-country.is-flash { animation: countryFlash 1.6s ease; }
@keyframes countryFlash {
  0%, 100% { background: transparent; }
  15%      { background: color-mix(in srgb, var(--accent) 22%, transparent); }
}
.member-row__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 6px;
  vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) { .member-country.is-flash { animation: none; } }

.member-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.member-section-title:first-child { margin-top: 0; }

/* Board cards */
.board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .board-grid { grid-template-columns: 1fr 1fr; } }
.board-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  display: flex;
  gap: 18px;
}
.board-card__avatar {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  overflow: hidden;
}
.board-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.board-card__name { font-size: 16px; font-weight: 600; }
.board-card__role {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 4px 0 8px;
}
.board-card__bio { font-size: 14px; color: var(--muted); line-height: 1.6; }
.board-card__bio p { margin-bottom: 0.6em; }
.board-card__bio p:last-child { margin-bottom: 0; }

/* Member list */
.member-list {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 24px;
}
@media (min-width: 560px) { .member-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .member-list { grid-template-columns: 1fr 1fr 1fr; } }
.member-row {
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-row__name { font-size: 14px; font-weight: 500; flex: 1; min-width: 0; }
.member-row__socials { display: flex; gap: 10px; flex-shrink: 0; }
.member-row__socials a {
  width: 18px; height: 18px;
  color: var(--muted);
  transition: color var(--transition);
}
.member-row__socials a:hover { color: var(--accent); }
.member-row__socials svg { width: 100%; height: 100%; }

/* --- Not found --- */
.not-found { max-width: 560px; margin: 0 auto; padding: 120px var(--pad-x); text-align: center; }
.not-found__code {
  font-family: var(--font-mono);
  font-size: 88px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}
.not-found__title { font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.not-found__meta { color: var(--muted); margin-bottom: 32px; font-size: 15px; }
.not-found__link { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; font-size: 14px; }

/* --- Loading --- */
.loading {
  text-align: center;
  padding: 100px var(--pad-x);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* --- Reveal animation --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.6s cubic-bezier(0.2, 0, 0.2, 1) backwards; }
.grid .card:nth-child(1) { animation-delay: 0.04s; }
.grid .card:nth-child(2) { animation-delay: 0.08s; }
.grid .card:nth-child(3) { animation-delay: 0.12s; }
.grid .card:nth-child(4) { animation-delay: 0.16s; }
.grid .card:nth-child(5) { animation-delay: 0.20s; }
.grid .card:nth-child(6) { animation-delay: 0.24s; }
.grid .card:nth-child(n+7) { animation-delay: 0.28s; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .carousel__track { transition: none; }
  .card:hover .card__media img { transform: none; }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .back-link, .carousel__btn, .carousel__dots { display: none; }
  body { background: #fff; color: #000; }
}
