/* ==========================================================================
   GFSMUN - components.css
   Monochrome black/white, boxy (0 radius), Antonio, human-modern
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVIGATION - DESKTOP
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-standard), border-color var(--transition-standard), height var(--transition-standard);
}

.nav--scrolled {
  background: rgba(5, 5, 7, 0.96);
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--content-width), calc(100% - var(--gutter)));
  margin-inline: auto;
  height: 100%;
  gap: 32px;
  position: relative;
  text-align: center;
}

/* Wordmark - part of centered navbar group */
.nav__logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.1;
  flex-shrink: 0;
  text-transform: uppercase;
  text-align: center;
}

.nav__logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0C0C0E;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
}

.nav__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav__logo-mark--letter {
  background: #FFFFFF;
  color: #0A0A0A;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.nav__logo-title {
  font-family: var(--font-brand);
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  transform: translateY(0.06em);
}

.nav__logo-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* Links - centered group */
.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-left: 0;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0;
  line-height: 1;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-standard);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text-main);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__link--active {
  color: var(--text-main);
}

.nav__link--active::after {
  transform: scaleX(1);
  background: #FFFFFF;
  height: 1px;
}

.nav__link--cop {
  font-family: 'Cinzel', serif;
  color: #ABC9B4 !important;
  letter-spacing: 0.08em;
}
.nav__link--cop::after { background: #ABC9B4; }
.nav__link--cop:hover,
.nav__link--cop:focus-visible { color: #ABC9B4 !important; }

.mobile-menu__link--cop {
  font-family: 'Cinzel', serif;
  color: #ABC9B4 !important;
}

.nav__cta {
  margin-left: 8px;
  font-size: 14px;
  padding: 16px 29px;
  align-self: center;
}

/* Mobile toggle – boxy */
.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-self: center;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.04);
  border-radius: 0;
  place-items: center;
  color: var(--text-main);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav__toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-soft);
}

.nav__toggle[aria-expanded="true"] {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0A0A0A;
}

.nav__toggle-icon {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav__toggle-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 0;
  transition: transform var(--transition-standard), opacity var(--transition-standard), width var(--transition-standard);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   2. MOBILE MENU
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu--open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-standard);
}

.mobile-menu--open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 88vw);
  background: #0A0A0C;
  border-left: 1px solid var(--border-subtle);
  padding: calc(var(--nav-height-mobile) + 24px) 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
}

.mobile-menu--open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-main);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: #FFFFFF;
  padding-left: 8px;
}

.mobile-menu__link small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-menu__meta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu__meta p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.mobile-menu__social {
  display: flex;
  gap: 12px;
}

/* Body lock */
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav { height: 60px; }
  .nav__inner {
    justify-content: space-between;
    flex-direction: row;
    gap: 16px;
  }
  .nav__logo {
    position: static;
    transform: none;
  }
  .nav__logo-mark { width: 32px; height: 32px; }
  .nav__logo-title { font-size: 18px; }
  .nav__toggle {
    display: grid;
    width: 40px;
    height: 40px;
  }
  .nav__links, .nav a.nav__cta { display: none; }
  html { scroll-padding-top: 60px; }
}

/* --------------------------------------------------------------------------
   3. BUTTONS - BOXY, WHITE
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 0;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-standard);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn--primary {
  background: #FFFFFF;
  color: #0A0A0A;
  border-color: #FFFFFF;
  box-shadow: none;
}

.btn--primary:hover {
  background: #F0F0EE;
  color: #0A0A0A;
  border-color: #F0F0EE;
  transform: translateY(-1px);
}

.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255,255,255,0.22);
}

.btn--secondary:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0A0A0A;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn--ghost:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: rgba(255,255,255,0.06);
}

.btn--large { padding: 17px 32px; font-size: 13px; }
.btn--small { padding: 10px 18px; font-size: 11.5px; }

.btn__icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.btn:hover .btn__icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   4. HERO - HOME - MONOCHROME
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-deep);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.05) brightness(1.15);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 760px 520px at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 62%),
    linear-gradient(180deg, rgba(8,8,10,0.20) 0%, rgba(8,8,10,0.45) 42%, rgba(8,8,10,0.92) 100%),
    linear-gradient(90deg, rgba(8,8,10,0.40) 0%, transparent 45%, rgba(8,8,10,0.30) 100%);
}

.hero__content {
  width: min(var(--content-width), calc(100% - var(--gutter)));
  margin-inline: auto;
  padding: calc(var(--nav-height) + 48px) 0 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 0;
  margin-bottom: 32px;
}

.hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 0;
  background: #FFFFFF;
  box-shadow: none;
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.88); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 168px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  text-wrap: balance;
  margin: 0;
  text-transform: uppercase;
}

.hero__title-accent {
  display: block;
  font-size: 0.34em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  margin-bottom: 12px;
  line-height: 1;
}

.hero__title-main {
  display: block;
  color: #FFFFFF;
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Minimal GFSMUN-only hero */
.hero__content--minimal {
  padding: calc(var(--nav-height) + 24px) 0 48px;
  justify-content: center;
  text-align: center;
}

.hero__content--minimal .hero__title {
  font-size: clamp(72px, 17vw, 240px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin-top: 18px;
  line-height: 1.32;
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.3vw, 12.5px);
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__tagline::before,
.hero__tagline::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.16);
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__meta {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.09);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__meta-item {
  text-align: center;
  min-width: 96px;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.02em;
  font-weight: 600;
  text-transform: uppercase;
}

.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  margin-top: 6px;
}

.hero__scroll {
  display: none;
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18px;
  background: #fff;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-18px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}

@media (max-width: 768px) {
  .hero { min-height: 92vh; }
  .hero__content { padding-top: calc(var(--nav-height-mobile) + 32px); }
  .hero__content--minimal { padding-top: calc(var(--nav-height-mobile) + 16px); }
  .hero__content--minimal .hero__title { font-size: clamp(64px, 20vw, 140px); }
}

/* Alternative hero for inner pages */
.page-hero {
  position: relative;
  min-height: 44vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: none;
  padding: calc(var(--nav-height) + 32px) 0 48px;
}

.page-hero--small { min-height: 35vh; }

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.30;
}

.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: none; }

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 380px at 50% 0%, rgba(255,255,255,0.06), transparent 65%),
    linear-gradient(180deg, rgba(8,8,10,0.08) 0%, rgba(8,8,10,0.88) 100%);
}

.page-hero__inner {
  text-align: center;
  max-width: 760px;
  padding-inline: 24px;
}

.page-hero__inner h1 {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  margin-top: 0;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.page-hero__inner p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Secretariat hero - sec-hero provided as background for THE SECRETARIAT - centered */
.page-hero--secretariat {
  min-height: 58vh;
  min-height: 58dvh;
  background-color: var(--bg-deep);
  background-image: url("../assets/images/sec-hero.jpg");
  background-image: image-set(url("../assets/images/sec-hero.jpg") 1x, url("../assets/images/sec-hero.png") 2x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero--secretariat .page-hero__bg { opacity: 1; }
.page-hero--secretariat .page-hero__bg img {
  object-position: center;
  filter: brightness(0.30) contrast(1.04) saturate(0.95);
}
.page-hero--secretariat .page-hero__bg::after {
  background:
    radial-gradient(ellipse 820px 420px at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 62%),
    linear-gradient(180deg, rgba(8,8,10,0.42) 0%, rgba(8,8,10,0.62) 42%, rgba(8,8,10,0.96) 100%),
    linear-gradient(90deg, rgba(8,8,10,0.38) 0%, transparent 45%, rgba(8,8,10,0.38) 100%);
}
.page-hero--secretariat .page-hero__inner h1 {
  text-shadow: 0 2px 28px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.45);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .page-hero--secretariat { min-height: 48vh; }
  .page-hero--secretariat .page-hero__bg img { object-position: center; }
}

/* Conference Archives hero - image.png background (same as Secretariat) - ensures showing */
.page-hero--archive {
  min-height: 58vh;
  min-height: 58dvh;
  background-color: var(--bg-deep);
  background-image: url("../assets/images/image-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero--archive .page-hero__bg { opacity: 1; }
.page-hero--archive .page-hero__bg img {
  object-position: center;
  filter: brightness(0.30) contrast(1.04) saturate(0.95);
}
.page-hero--archive .page-hero__bg::after {
  background:
    radial-gradient(ellipse 820px 420px at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 62%),
    linear-gradient(180deg, rgba(8,8,10,0.42) 0%, rgba(8,8,10,0.62) 42%, rgba(8,8,10,0.96) 100%),
    linear-gradient(90deg, rgba(8,8,10,0.38) 0%, transparent 45%, rgba(8,8,10,0.38) 100%);
}
.page-hero--archive .page-hero__inner h1 {
  text-shadow: 0 2px 28px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.45);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .page-hero--archive { min-height: 48vh; }
  .page-hero--archive .page-hero__bg img { object-position: center; }
}

/* --------------------------------------------------------------------------
   5. ABOUT SECTION - human editorial
   -------------------------------------------------------------------------- */
#about {
  background:
    linear-gradient(180deg, rgba(8,8,10,0.88) 0%, rgba(8,8,10,0.82) 100%),
    url("../assets/images/bg2.jpg") center / cover no-repeat;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.about__number {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.18);
  font-weight: 700;
}

.about__eyebrow { color: var(--text-muted); }

.about__heading {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}

.about__heading em {
  font-style: normal;
  font-weight: 700;
  color: #FFFFFF;
  position: relative;
}

.about__copy {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__copy strong { color: var(--text-secondary); font-weight: 600; }

.about__media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 5;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about__media:hover img { transform: scale(1.03); }

.about__media-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.about__media-caption p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 11; max-height: 520px; }
}

/* --------------------------------------------------------------------------
   6. EXPERIENCE / FEATURE CARDS - boxy, white hairlines
   -------------------------------------------------------------------------- */
.experience {
  background: var(--bg-deep);
  border-block: 1px solid var(--border-subtle);
}

.experience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
}

.experience__card {
  background: var(--bg-surface);
  padding: 28px 24px;
  position: relative;
  transition: background var(--transition-standard);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}

.experience__card:hover {
  background: var(--bg-surface-alt);
}

.experience__card:hover .experience__number {
  color: #fff;
  -webkit-text-stroke-color: #fff;
}

.experience__number {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.14);
  transition: all var(--transition-standard);
  font-weight: 700;
}

.experience__card h3 {
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-top: 2px;
  text-transform: uppercase;
}

.experience__card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: auto;
}

.experience__card-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 30px; height: 30px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all var(--transition-standard);
}

.experience__card:hover .experience__card-arrow {
  border-color: #fff;
  color: #0A0A0A;
  background: #fff;
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .experience__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .experience__grid { grid-template-columns: 1fr; }
  .experience__card { min-height: auto; }
}

/* --------------------------------------------------------------------------
   7. SECRETARY-GENERAL LETTER (HOME & SECRETARIAT) - boxy
   -------------------------------------------------------------------------- */
#letter {
  background:
    linear-gradient(180deg, rgba(8,8,10,0.88) 0%, rgba(8,8,10,0.82) 100%),
    url("../assets/images/bg3.jpg") center / cover no-repeat;
}

.letter {
  display: grid;
  grid-template-columns: 434px 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  background: var(--bg-surface);
  border: none;
  border-radius: 0;
  overflow: hidden;
  min-height: 490px;
  height: auto;
  padding: 32px;
  box-sizing: border-box;
}

.section:has(#sg-heading) .letter {
  align-items: center;
}
.section:has(#sg-heading) .letter__body {
  align-self: center;
  justify-content: center;
}

.letter--featured {
  background: var(--bg-surface);
}

.letter__portrait {
  position: relative;
  width: 434px;
  height: 490px;
  aspect-ratio: 434 / 490;
  overflow: hidden;
  background: var(--bg-elevated);
}

.letter__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.letter__portrait:hover img { transform: scale(1.02); }

.letter__portrait-badge {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0;
  padding: 14px 16px;
}

.letter__portrait-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.letter__portrait-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

.letter__body {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.letter__quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.5;
  color: #fff;
  opacity: 0.18;
  margin-bottom: -8px;
}

.letter__quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.44;
  font-style: normal;
  font-weight: 400;
  color: var(--text-main);
  text-wrap: balance;
  letter-spacing: 0.01em;
  text-transform: none;
}

.letter__text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.letter__signature {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}

.letter__signature-line {
  width: 36px;
  height: 1px;
  background: #fff;
}

.letter__signature-name {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-main);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.letter__signature-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .letter { grid-template-columns: 1fr; }
  .letter__portrait { aspect-ratio: 434 / 490; max-height: none; }
  .letter__body { padding: 24px 20px 28px; }
}

@media (max-width: 560px) {
  .section:has(#sg-heading) .letter {
    max-width: 400px;
    margin-inline: auto;
  }
  .section:has(#sg-heading) .letter__portrait {
    max-width: 320px;
    height: 320px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }
  .section:has(#sg-heading) .letter__portrait img {
    object-fit: cover;
    object-position: center;
  }
}

.letter__expand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  margin-top: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.letter__expand:hover {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(255,255,255,0.04);
}
@media (max-width: 560px) {
  .letter__expand {
    display: inline-flex;
  }
  .letter__text--collapsible {
    max-height: 82px;
    overflow: hidden;
    position: relative;
    transition: max-height 320ms ease;
  }
  .letter__text--collapsible.is-expanded {
    max-height: 2000px;
  }
  /* Fix: index letter cutoff + box fit on mobile */
  #letter .letter { height: auto !important; min-height: 0 !important; overflow: visible !important; max-height: none !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; display: flex !important; flex-direction: column !important; gap: 16px !important; padding: 20px 16px !important; margin-inline: 0 !important; }
  #letter .letter__portrait { width: 100% !important; max-width: 100% !important; height: auto !important; min-height: 0 !important; aspect-ratio: 4/3 !important; margin: 0 !important; }
  #letter .letter__portrait img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
  #letter .letter__body { height: auto !important; overflow: visible !important; padding: 0 !important; gap: 12px !important; }
  #letter .letter__text { max-height: none !important; overflow: visible !important; height: auto !important; }
  #letter .container { width: calc(100% - 24px) !important; }
  #letter { padding-block: 24px !important; }
  .letter__text--collapsible:not(.is-expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(to bottom, transparent, var(--bg-surface));
    pointer-events: none;
  }
}

/* --------------------------------------------------------------------------
   8. TIMELINE / THROUGH THE YEARS - boxy, monochrome
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
}

.timeline__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.timeline__grid > .timeline__card {
  flex: 0 1 calc((100% - 40px) / 3);
  min-width: 0;
}

.timeline__card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-standard), transform var(--transition-standard), box-shadow var(--transition-standard);
  display: flex;
  flex-direction: column;
}

.timeline__card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.timeline__card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
}

.timeline__card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 700ms ease, filter 400ms ease;
}

.timeline__card:hover .timeline__card-media img { transform: scale(1.04); }

.timeline__card-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(8,8,10,0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 6px 10px;
  border-radius: 0;
}

.timeline__card-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.timeline__card-edition {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline__card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.timeline__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 8px;
  transition: gap var(--transition-fast), opacity var(--transition-fast);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
  width: fit-content;
}

.timeline__card-link:hover { gap: 12px; opacity: 0.85; }

@media (max-width: 1024px) {
  .timeline__grid > .timeline__card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 640px) {
  .timeline__grid > .timeline__card { flex-basis: 100%; }
}

/* --------------------------------------------------------------------------
   9. CONTACT SECTION - boxy, hidden per request but keep styles monochrome
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.contact__form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 28px;
}

.contact__form h3 {
  font-size: 22px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.contact__form-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full { grid-column: 1 / -1; }

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-label span { color: var(--error); }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
  background: #0E0E10;
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(255,77,77,0.5);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-hint {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  display: none;
  align-items: center;
  gap: 6px;
}

.form-field--error .form-error { display: flex; }
.form-field--error .form-input,
.form-field--error .form-textarea { border-color: var(--error); }

.form-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* Contact info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 22px;
}

.contact__info-card h4 {
  font-size: 17px;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact__detail-icon {
  width: 34px; height: 34px;
  border-radius: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.contact__detail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact__detail-value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 2px;
}

.contact__detail-value a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.22); padding-bottom: 1px; }
.contact__detail-value a:hover { border-color: #fff; }

.contact__map {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  aspect-ratio: 16 / 10;
  position: relative;
}

.contact__map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: contrast(1.08);
}

.contact__map-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  gap: 10px;
  color: var(--text-muted);
}

.contact__map-placeholder p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10. TEAM / SECRETARIAT - boxy, human
   -------------------------------------------------------------------------- */
.team-section {
  margin-bottom: 52px;
}

.team-section--compact .team-grid,
.team-section:has(#sg-team-heading) .team-grid,
.team-section:has(#dsg-heading) .team-grid,
.team-section:has(#usg-heading) .team-grid {
  max-width: 80%;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .team-section--compact .team-grid,
  .team-section:has(#sg-team-heading) .team-grid,
  .team-section:has(#dsg-heading) .team-grid,
  .team-section:has(#usg-heading) .team-grid {
    max-width: 90%;
  }
}

@media (max-width: 560px) {
  .team-section--compact .team-grid,
  .team-section:has(#sg-team-heading) .team-grid,
  .team-section:has(#dsg-heading) .team-grid,
  .team-section:has(#usg-heading) .team-grid {
    max-width: 100%;
  }
}

.team-section__header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-top: 10px;
  padding-bottom: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: none;
  flex-wrap: wrap;
}

/* Secretariat: reduce gap between sections - slightly increased */
.section:has(#sg-heading) {
  padding-block: 14px;
}
.section--tight:has(.team-section) {
  padding-block: 12px;
}
.team-section {
  margin-bottom: 0;
}

/* Bar above Secretary-Generals - single, closer (base already provides one) */

.team-section__header > div {
  text-align: center;
}

.team-section__header h3 {
  font-size: clamp(28.8px, 3.6vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.team-section__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: 0;
  background: transparent;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.team-grid--heads {
  grid-template-columns: repeat(2, 1fr);
}

.team-grid--deputies {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
  transition: border-color var(--transition-standard), transform var(--transition-standard), box-shadow var(--transition-standard);
  display: flex;
  flex-direction: column;
}

.team-card--head {
  border-color: rgba(255,255,255,0.13);
}

.team-card--head .team-card__role {
  color: #FFFFFF;
}

.team-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.team-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: #0E0E10;
}

.team-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.02);
  transition: transform 700ms ease, filter 500ms ease;
}

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

.team-card__bio {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(8,8,10,0.94));
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  line-height: 1.5;
  transform: translateY(4px);
  opacity: 0;
  transition: all var(--transition-standard);
  font-family: var(--font-body);
}

.team-card:hover .team-card__bio {
  transform: translateY(0);
  opacity: 1;
}

@media (hover: none) {
  .team-card__bio {
    transform: none;
    opacity: 1;
    position: relative;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
  }
}

.team-card__body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  border-top: 1px solid var(--border-subtle);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.12;
  color: var(--text-main);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.team-card__meta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Team role badge - white minimal */
.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-faint);
}

.team-badge--head {
  background: #FFFFFF;
  color: #0A0A0A;
  border-color: #FFFFFF;
}

/* HR middle deputy prominent */
.team-grid--hr {
  grid-template-columns: repeat(3, 1fr);
}
.team-grid--hr .team-card:nth-child(2) {
  border-color: rgba(255,255,255,0.14);
}

/* Unified quad grid - HR / Research / Crisis / Media same image size as Logistics, centered */
.team-grid--quad {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.team-grid--quad > .team-card {
  flex: 0 1 calc((100% - 48px) / 4);
  min-width: 0;
}

/* --------------------------------------------------------------------------
   11. GALLERY - boxy monochrome
   -------------------------------------------------------------------------- */
.gallery-intro {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 44px;
}

.gallery-edition {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-edition:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.section:has(.gallery-edition) { padding-block: clamp(28px, 4vw, 48px); }

/* Mobile: single straight bar between conferences */
@media (max-width: 768px) {
  .section[id^="gfsmun-"] {
    position: relative;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    margin-block: 0;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .section[id^="gfsmun-"]:first-of-type {
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  .section[id^="gfsmun-"]::before,
  .section[id^="gfsmun-"]::after { display: none; }
}

.gallery-edition__header {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
}

.gallery-edition__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.gallery-edition__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 800ms ease, filter 400ms ease;
}

.gallery-edition__cover:hover img { transform: scale(1.02); }

.gallery-edition__cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 40%, rgba(8,8,10,0.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 22px;
}

.gallery-edition__cover-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  color: #fff;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.gallery-edition__cover-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-edition__cover-meta span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 5px 9px;
  border-radius: 0;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
}

.gallery-edition__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-edition__info .eyebrow {
  font-size: 22px;
}

.gallery-edition__info h3 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.gallery-edition__info p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.gallery-edition__stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.gallery-edition__stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-edition__stat strong {
  color: var(--text-main);
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.gallery-item:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.gallery-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 600ms ease, filter var(--transition-standard);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,8,10,0.62));
  opacity: 0;
  transition: opacity var(--transition-standard);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__zoom {
  width: 30px; height: 30px;
  border-radius: 0;
  background: #FFFFFF;
  color: #0A0A0A;
  display: grid;
  place-items: center;
  margin-left: auto;
  transform: scale(0.92);
  transition: transform var(--transition-standard);
}

.gallery-item:hover .gallery-item__zoom { transform: scale(1); }

@media (max-width: 900px) {
  .gallery-edition__header { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid--heads { grid-template-columns: 1fr 1fr; }
  .team-grid--hr { grid-template-columns: 1fr; }
  .team-grid--quad > .team-card { flex-basis: calc((100% - 16px) / 2); }
}

/* Mobile: gallery title at top, Archive hidden */
@media (max-width: 768px) {
  .gallery-edition__header {
    display: flex;
    flex-direction: column;
  }
  .gallery-edition__info {
    order: -1;
    margin-bottom: 12px;
    text-align: center;
  }
  .gallery-edition__info .eyebrow { display: none; }
  .gallery-edition__info h3 { text-align: center; width: 100%; }
}

@media (max-width: 560px) {
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid > .gallery-item {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  .gallery-item { aspect-ratio: 16 / 10; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-grid--heads { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-grid--quad { gap: 12px; }
  .team-grid--quad > .team-card { flex-basis: calc((100% - 12px) / 2); }
  /* Logistics: heads then deputies on mobile (desktop has deputies on sides) */
  .team-section:has(#logistics-heading) .team-grid--quad .team-card:nth-child(1) { order: 3; }
  .team-section:has(#logistics-heading) .team-grid--quad .team-card:nth-child(2) { order: 1; }
  .team-section:has(#logistics-heading) .team-grid--quad .team-card:nth-child(3) { order: 2; }
  .team-section:has(#logistics-heading) .team-grid--quad .team-card:nth-child(4) { order: 4; }
  /* HR: deputy in middle -> heads then deputies */
  .team-section:has(#hr-heading) .team-card:nth-child(2) { order: 3; }
  .team-section:has(#hr-heading) .team-card:nth-child(3) { order: 2; }
  /* Center single last row */
  .team-section:has(#hr-heading) .team-grid--quad { justify-items: stretch; }
  .team-section:has(#hr-heading) .team-card:last-child { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   12. LIGHTBOX - monochrome
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 16px;
}

.lightbox--open { display: grid; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(10px);
}

.lightbox__dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(86vh, 900px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #0A0A0C;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: lightboxIn 280ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.98) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}

.lightbox__counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lightbox__close {
  width: 34px; height: 34px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.lightbox__close:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0A0A0A;
}

.lightbox__stage {
  position: relative;
  background: #050508;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
}

.lightbox__image {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  display: block;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 0;
  background: rgba(255,255,255,0.92);
  border: 1px solid #fff;
  color: #0A0A0A;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox__nav:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.04);
}

.lightbox__nav:disabled {
  opacity: 0.30;
  pointer-events: none;
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
@media (max-width: 768px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}

.lightbox__footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lightbox__caption {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.lightbox__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   13. FOOTER - monochrome, boxy
   -------------------------------------------------------------------------- */
.footer {
  background: #050508;
  border-top: 1px solid var(--border-subtle);
  padding-top: 48px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04), transparent 70%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 48px;
  padding-bottom: 44px;
}

.footer__brand {
  text-align: center;
}

.footer__brand h3 {
  font-family: var(--font-brand);
  font-size: 56px;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
}

.footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}

.footer__brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36ch;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.footer__links a:hover {
  color: var(--text-main);
  transform: translateX(2px);
}

.footer__links a::before {
  content: "→";
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition-fast);
  color: #fff;
}

.footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer__social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__social-link {
  width: 38px; height: 38px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0A0A0A;
  transform: translateY(-1px);
}

.footer__contact {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__contact a { color: var(--text-secondary); border-bottom: 1px solid transparent; }
.footer__contact a:hover { color: #fff; border-color: rgba(255,255,255,0.22); }

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__legal a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--transition-fast);
}

.footer__legal a:hover { color: var(--text-muted); }

/* Slim footer everywhere: short License button + Instagram icon only */
.footer {
  padding-top: 20px;
}

.footer::before {
  display: none;
}

.footer__inner {
  display: none;
}

.footer__copy {
  display: none;
}

.footer__bottom {
  justify-content: center;
  border-top: 0;
  padding: 16px 0 20px;
}

.footer__legal {
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer__legal a[href="#"] {
  display: none;
}

.footer__legal a[href*="github"] {
  display: inline-flex;
  align-items: center;
  color: #0A0A0A;
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  padding: 10px 18px;
  font-size: 11px;
}

.footer__mini-social {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}



/* --------------------------------------------------------------------------
   14. MISC - SCROLL PROGRESS, BADGES - BOXY
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 101;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: #FFFFFF;
  transition: width 100ms linear;
}

/* Inline badge - boxy */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
}

.badge--purple {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0A0A0A;
}

.badge--dot::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 0;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   15. ANIMATED DIVIDERS & ORNAMENT - monochrome line
   -------------------------------------------------------------------------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--border-soft);
  margin: 8px 0;
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 48px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18));
}

.ornament::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent);
}

.ornament svg { opacity: 0.5; }

/* Human micro-details */
.human-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-left: 1px solid var(--border-subtle);
  padding-left: 10px;
}
