/* ==========================================================================
   CTUC — Covert Tactical Unit "Citrusi"
   Global stylesheet
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --ctuc-yellow: #FAC61D;
  --ctuc-gray: #BDCCD4;
  --ctuc-white: #FFFFFF;
  --ctuc-black: #000000;

  /* black-dominant surface scale */
  --surface-0: #000000;
  --surface-1: #0A0A0B;
  --surface-2: #131315;
  --surface-3: #1C1C1F;
  --line: rgba(189, 204, 212, 0.18);
  --line-strong: rgba(189, 204, 212, 0.35);

  --text-primary: var(--ctuc-white);
  --text-secondary: rgba(189, 204, 212, 0.82);
  --text-muted: rgba(189, 204, 212, 0.55);

  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1360px;
  --container-pad: clamp(20px, 5vw, 64px);
  --section-pad-y: clamp(72px, 10vw, 140px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  --nav-h: 84px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

html, body { overflow-x: hidden; }

body {
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { color: var(--text-secondary); }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ctuc-yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--ctuc-yellow);
  color: var(--ctuc-black);
  padding: 10px 18px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---- Technical label ---- */
.label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ctuc-yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--ctuc-yellow);
  display: inline-block;
}

.section__head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 720px; }
.section__head h2 { color: var(--text-primary); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn--primary {
  background: var(--ctuc-yellow);
  color: var(--ctuc-black);
}
.btn--primary:hover { transform: translateY(-2px); background: #ffd84a; }
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line-strong);
}
.btn--outline:hover {
  border-color: var(--ctuc-yellow);
  color: var(--ctuc-yellow);
}

/* ==========================================================================
   Scroll-driven intro
   ========================================================================== */
/* The intro holds the page at the top via wheel/touch/keydown handlers in
   main.js (all preventDefault) rather than `overflow: hidden`. Toggling the
   overflow of the scroll container mid-gesture makes Chrome/Safari "latch"
   that gesture to the old, non-scrollable target — so after the intro
   unlocked you had to move the mouse (forcing a new hit-test) before the
   wheel would scroll the hero. No CSS scroll-lock means no latch. */
html.intro-lock,
html.intro-lock body {
  overscroll-behavior: none;
  touch-action: none;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--surface-0);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Never a hit-test target. While the overlay was hittable, the browser
     latched the unlocking wheel gesture to it; once it disappeared, wheel
     events kept going nowhere until the pointer moved and forced a fresh
     hit-test. Touch scrolling is blocked on <html> below instead. */
  pointer-events: none;
}
.intro__logo {
  width: min(38vw, 380px);
  height: auto;
}
.intro.intro--done {
  /* display:none rather than visibility:hidden — a finished fullscreen
     overlay should cost nothing to composite while the page scrolls. */
  display: none;
}

.intro__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6vh, 56px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.intro__hint-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--ctuc-yellow), transparent);
  animation: scrollPulse 1.8s var(--ease) infinite;
}
.intro__hint p {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
@media (prefers-reduced-motion: reduce) {
  .intro { transition: opacity var(--dur-med) ease; }
  .intro__hint-line { animation: none; opacity: 0.6; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), height var(--dur-fast) var(--ease), opacity var(--dur-med) var(--ease), visibility var(--dur-med);
}
.nav.is-ready {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, opacity var(--dur-med) ease; }
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  height: 68px;
}
.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img {
  height: 42px;
  width: auto;
  transition: height var(--dur-fast) var(--ease);
}
.nav.is-scrolled .nav__logo img { height: 34px; }

.nav__links ul {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.nav__links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 6px;
  transition: color var(--dur-fast) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ctuc-yellow);
  transition: width var(--dur-fast) var(--ease);
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.is-active { color: var(--ctuc-yellow); }
.nav__links a.is-active::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ctuc-white);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--surface-0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.mobile-menu a.is-active { color: var(--ctuc-yellow); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.88) 55%, rgba(0, 0, 0, 0.93) 100%),
    url("../assets/team_photos/web/ctuc-airsoft-team-serbia-group-photo.jpg") center center / cover no-repeat,
    linear-gradient(160deg, var(--surface-1) 0%, var(--surface-0) 55%, var(--surface-0) 100%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 140%;
  background: var(--ctuc-yellow);
  opacity: 0.05;
  clip-path: polygon(40% 0%, 100% 0%, 60% 100%, 0% 100%);
}

.hero__inner { padding-top: var(--nav-h); }

.hero__kicker { margin-bottom: 20px; }

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(2.4rem, 7vw, 6rem);
  color: var(--text-primary);
}
.hero__title-accent {
  color: var(--ctuc-gray);
  font-style: normal;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__meta-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.hero__meta-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--ctuc-yellow);
}

.hero__scroll {
  position: absolute;
  bottom: clamp(20px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity var(--dur-med) var(--ease);
}
.hero__scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.hero__scroll span {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--ctuc-yellow), transparent);
  animation: scrollPulse 1.8s var(--ease) infinite;
}
.hero__scroll p {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
@keyframes scrollPulse {
  0% { transform: scaleY(0.3); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.3); opacity: 0.3; transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; opacity: 0.6; }
}

/* ==========================================================================
   Section base
   ========================================================================== */
.section {
  padding-block: var(--section-pad-y);
  position: relative;
  border-top: 1px solid var(--line);
}

/* ---- Who we are ---- */
.who-we-are__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.who-we-are__text h2 { margin-bottom: 24px; }
.who-we-are__body { max-width: 52ch; margin-bottom: 36px; }

.who-we-are__graphic { aspect-ratio: 4 / 5; position: relative; }
.angular-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface-1) 100%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
  border: 1px solid var(--line);
}
.angular-panel__logo {
  position: relative;
  z-index: 1;
  width: 42%;
  height: auto;
}
.angular-panel::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  right: 30%;
  bottom: 45%;
  border-top: 2px solid var(--ctuc-yellow);
  border-left: 2px solid var(--ctuc-yellow);
  opacity: 0.7;
}
.angular-panel::after {
  content: "";
  position: absolute;
  bottom: 12%;
  right: 12%;
  width: 34%;
  height: 34%;
  border: 1px solid var(--ctuc-gray);
  opacity: 0.4;
  clip-path: polygon(20% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%, 0% 20%);
}
.angular-panel--photo {
  background:
    linear-gradient(155deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.72) 100%),
    var(--panel-photo) center center / cover no-repeat,
    linear-gradient(155deg, var(--surface-2) 0%, var(--surface-1) 100%);
}

/* ---- Team preview ---- */
.team-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.team-preview__card {
  display: block;
  padding: clamp(32px, 4vw, 48px);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ctuc-yellow);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.team-preview__card:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
}
.team-preview__card--visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 240px;
  background:
    linear-gradient(155deg, var(--surface-2) 0%, var(--surface-0) 100%);
}
/* Diagonal grid texture */
.team-preview__card--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  mask-image: linear-gradient(150deg, black 0%, transparent 70%);
}
/* Angular yellow shard */
.team-preview__card--visual::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 65%;
  height: 160%;
  z-index: -1;
  background: var(--ctuc-yellow);
  opacity: 0.08;
  clip-path: polygon(45% 0%, 100% 0%, 55% 100%, 0% 100%);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.team-preview__card--visual:hover::after {
  opacity: 0.14;
  transform: translateX(-8%);
}
.team-preview__card--visual .team-preview__letter {
  position: absolute;
  top: 50%;
  right: 0;
  width: 42%;
  margin: 0;
  transform: translate(12%, -38%);
  text-align: center;
  font-size: clamp(5.5rem, 12vw, 9rem);
  line-height: 1;
  color: var(--text-primary);
  opacity: 0.07;
  pointer-events: none;
}
.team-preview__card--visual h3,
.team-preview__card--visual .team-preview__count { position: relative; }
.team-preview__letter {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--ctuc-gray);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
}
.team-preview__card h3 { margin-bottom: 8px; }
.team-preview__count {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---- Terrain preview ---- */
.terrain-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.terrain-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease);
}
.terrain-card:hover,
.terrain-card:focus-within { border-color: var(--ctuc-yellow); }
/* The heading link stretches over the whole card */
.terrain-card__link {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.terrain-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.terrain-card__link:hover,
.terrain-card:focus-within .terrain-card__link { color: var(--ctuc-yellow); }
.terrain-card__link:focus-visible { outline: none; }
.terrain-card__link:focus-visible::after {
  outline: 2px solid var(--ctuc-yellow);
  outline-offset: -3px;
}
.terrain-card__visual {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 2px, var(--surface-1) 2px 14px);
  position: relative;
}
.terrain-card__visual--photo {
  background:
    var(--card-photo) center center / cover no-repeat,
    var(--surface-2);
}
/* Crest visual — partner/terrain logo centred on a tactical backdrop */
.terrain-card__visual--crest {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(250, 198, 29, 0.10) 0%, transparent 62%),
    repeating-linear-gradient(135deg, var(--surface-2) 0 2px, var(--surface-1) 2px 14px);
}
.terrain-card__crest {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 72%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s ease;
}
.terrain-card:hover .terrain-card__crest { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .terrain-card__crest { transition: none; }
  .terrain-card:hover .terrain-card__crest { transform: none; }
}
.terrain-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
}
.terrain-card__info { padding: 24px; }
.terrain-card__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ctuc-black);
  background: var(--ctuc-yellow);
  padding: 4px 10px;
  margin-bottom: 14px;
}
.terrain-card__info h3 { margin-bottom: 6px; color: var(--text-primary); }
.terrain-card__location {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ctuc-gray);
  margin-bottom: 12px;
}
.terrain-card__desc { font-size: 0.92rem; }

/* ---- Statistics ---- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats__item {
  padding-block: 8px;
  border-left: 1px solid var(--line-strong);
  padding-left: 20px;
}
.stats__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--ctuc-yellow);
  line-height: 1;
  margin-bottom: 10px;
}
.stats__label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* ---- Work with us ---- */
.work-with-us__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.work-with-us__text h2 { margin-bottom: 24px; }
.work-with-us__body { max-width: 52ch; margin-bottom: 36px; }
.work-with-us__graphic { aspect-ratio: 4 / 5; position: relative; }
.work-with-us__list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  gap: 14px;
  width: 100%;
}
.work-with-us__list li {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}
.work-with-us__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--ctuc-yellow, #FAC61D);
}

/* ---- Final CTA ---- */
.final-cta__inner { text-align: center; }
.final-cta h2 { margin-bottom: 36px; }
.final-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Inner-page header band
   ========================================================================== */
.page-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 88px));
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, var(--surface-1) 0%, var(--surface-0) 60%);
}
.page-header__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.2;
  mask-image: radial-gradient(ellipse at 75% 20%, black 0%, transparent 65%);
}
.page-header__bg::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: var(--ctuc-yellow);
  opacity: 0.05;
  clip-path: polygon(40% 0%, 100% 0%, 60% 100%, 0% 100%);
}
.page-header h1 {
  color: var(--text-primary);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}
.page-header__bg--photo {
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.88) 100%),
    var(--header-photo) center center / cover no-repeat,
    linear-gradient(160deg, var(--surface-1) 0%, var(--surface-0) 60%);
}

/* Map-like generated header background (tactical chart, tinted) */
.page-header__bg--map {
  background:
    radial-gradient(ellipse at 72% 22%, rgba(250, 198, 29, 0.10) 0%, transparent 55%),
    linear-gradient(160deg, var(--surface-1) 0%, var(--surface-0) 70%);
}
/* Street / block grid */
.page-header__bg--map::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(189, 204, 212, 0.16) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(189, 204, 212, 0.16) 0 1px, transparent 1px 124px),
    repeating-linear-gradient(0deg, rgba(189, 204, 212, 0.07) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(189, 204, 212, 0.07) 0 1px, transparent 1px 31px);
  background-size: auto;
  opacity: 0.9;
  mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.35) 0%, black 30%, black 100%);
}
/* Arterial roads, range rings and position markers */
.page-header__bg--map::after {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: none;
  opacity: 1;
  clip-path: none;
  background-image:
    /* range rings around the primary marker */
    repeating-radial-gradient(circle at 74% 34%, transparent 0 54px, rgba(250, 198, 29, 0.13) 54px 55px, transparent 55px 108px),
    /* markers */
    radial-gradient(circle at 74% 34%, var(--ctuc-yellow) 0 4px, transparent 4px),
    radial-gradient(circle at 30% 68%, rgba(189, 204, 212, 0.75) 0 3px, transparent 3px),
    radial-gradient(circle at 52% 18%, rgba(189, 204, 212, 0.75) 0 3px, transparent 3px),
    /* arterial roads */
    repeating-linear-gradient(24deg, transparent 0 210px, rgba(189, 204, 212, 0.22) 210px 213px, transparent 213px 420px),
    repeating-linear-gradient(-58deg, transparent 0 320px, rgba(189, 204, 212, 0.17) 320px 322px, transparent 322px 640px),
    /* open corridor */
    repeating-linear-gradient(78deg, transparent 0 520px, rgba(189, 204, 212, 0.10) 520px 532px, transparent 532px 1040px);
  mask-image: radial-gradient(ellipse at 68% 35%, black 0%, black 50%, transparent 92%);
}
/* Tint layer so header type stays readable over the map */
.page-header__bg--map ~ .container { position: relative; }

/* --------------------------------------------------------------------------
   Intel tablet / radar header background (Contact page)
   -------------------------------------------------------------------------- */
.page-header__bg--intel {
  background:
    radial-gradient(ellipse at 74% 26%, rgba(250, 198, 29, 0.08) 0%, transparent 55%),
    linear-gradient(160deg, var(--surface-1) 0%, var(--surface-0) 70%);
}
/* Fine data grid + readout ticks */
.page-header__bg--intel::before {
  background-image:
    linear-gradient(rgba(189, 204, 212, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 204, 212, 0.10) 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(189, 204, 212, 0.18) 0 2px, transparent 2px 14px);
  background-size: 40px 40px, 40px 40px, 100% 3px;
  background-position: 0 0, 0 0, 0 18px;
  opacity: 0.55;
  mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.25) 0%, black 35%, black 100%);
}
/* Radar sweep + range rings + contact blips */
.page-header__bg--intel::after {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: none;
  opacity: 1;
  clip-path: none;
  background-image:
    repeating-radial-gradient(circle at 78% 34%, transparent 0 46px, rgba(189, 204, 212, 0.16) 46px 47px, transparent 47px 94px),
    radial-gradient(circle at 78% 34%, rgba(250, 198, 29, 0.55) 0 3px, transparent 3px),
    radial-gradient(circle at 62% 20%, rgba(250, 198, 29, 0.7) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 54%, rgba(189, 204, 212, 0.6) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 60%, rgba(189, 204, 212, 0.45) 0 2px, transparent 3px),
    conic-gradient(from 0deg at 78% 34%, rgba(250, 198, 29, 0.16) 0deg, rgba(250, 198, 29, 0.03) 34deg, transparent 60deg, transparent 360deg);
  mask-image: radial-gradient(ellipse at 74% 36%, black 0%, black 52%, transparent 90%);
  animation: intel-sweep 7s linear infinite;
  transform-origin: 78% 34%;
}
@keyframes intel-sweep {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-header__bg--intel::after { animation: none; }
}

/* --------------------------------------------------------------------------
   Operational planning / briefing header background (About page)
   A pre-game movement plan: contour terrain, phase lines, waypoints and
   a bounding-overwatch route — "every game starts before the first shot".
   -------------------------------------------------------------------------- */
.page-header__bg--brief {
  background:
    radial-gradient(ellipse at 70% 24%, rgba(250, 198, 29, 0.09) 0%, transparent 55%),
    linear-gradient(160deg, var(--surface-1) 0%, var(--surface-0) 72%);
}
/* Plotting grid + contour-style relief lines */
.page-header__bg--brief::before {
  background-image:
    linear-gradient(rgba(189, 204, 212, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 204, 212, 0.10) 1px, transparent 1px),
    repeating-radial-gradient(circle at 22% 118%, transparent 0 70px, rgba(189, 204, 212, 0.10) 70px 72px, transparent 72px 150px);
  background-size: 48px 48px, 48px 48px, auto;
  opacity: 0.7;
  mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.28) 0%, black 34%, black 100%);
}
/* Phase lines, waypoints and the planned route */
.page-header__bg--brief::after {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: none;
  opacity: 1;
  clip-path: none;
  background-image:
    /* waypoint markers */
    radial-gradient(circle at 30% 70%, var(--ctuc-yellow) 0 4px, transparent 5px),
    radial-gradient(circle at 52% 46%, rgba(189, 204, 212, 0.8) 0 3px, transparent 4px),
    radial-gradient(circle at 74% 30%, rgba(189, 204, 212, 0.8) 0 3px, transparent 4px),
    /* objective ring on the last waypoint */
    radial-gradient(circle at 74% 30%, transparent 0 15px, rgba(250, 198, 29, 0.4) 15px 17px, transparent 17px 26px, rgba(250, 198, 29, 0.18) 26px 27px, transparent 28px),
    /* phase lines */
    repeating-linear-gradient(112deg, transparent 0 190px, rgba(189, 204, 212, 0.16) 190px 192px, transparent 192px 384px);
  mask-image: radial-gradient(ellipse at 64% 36%, black 0%, black 54%, transparent 92%);
}

/* --------------------------------------------------------------------------
   Collaboration / sponsorship band (Contact page)
   -------------------------------------------------------------------------- */
.collab {
  border-top: 1px solid var(--line);
  background: var(--surface-1);
}
.collab__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.collab__intro { max-width: 46ch; margin-top: 20px; }
.collab__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.collab__card {
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface-0);
}
.collab__card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.collab__card p { font-size: 0.9rem; color: var(--text-secondary); }
.collab__card-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ctuc-yellow);
  margin-bottom: 12px;
}
.collab__cta { margin-top: 28px; }
@media (max-width: 1024px) {
  .collab__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .collab__cards { grid-template-columns: 1fr; }
}

.page-header--error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 40px) 60px;
}
.page-header__error-body {
  max-width: 52ch;
  margin-top: 20px;
  margin-bottom: 32px;
}
.page-header__error-actions { margin-bottom: 40px; }
.page-header__error-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
}
.page-header__error-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}
.page-header__error-nav a:hover { color: var(--ctuc-yellow); }

/* ==========================================================================
   Team section
   ========================================================================== */
#a-team, #b-team { scroll-margin-top: var(--nav-h); }

.team-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.team-section__head h2 { color: var(--text-primary); }
.team-section__count {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.member-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.member-card--open { cursor: default; }
.member-card:focus-visible { outline-offset: -3px; }

.member-card__visual { position: absolute; inset: 0; }
.member-card__pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 2px, var(--surface-1) 2px 14px);
}
.member-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.7s var(--ease);
}
.member-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55) 66%, rgba(0, 0, 0, 0.88) 100%);
  transition: background var(--dur-med) var(--ease);
}

.member-card__open-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--line-strong);
  line-height: 1;
}

.member-card__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
}
.member-card__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--ctuc-yellow);
  margin-bottom: 6px;
}
.member-card__name {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-primary);
  text-transform: uppercase;
}
.member-card__accent {
  display: block;
  width: 0;
  height: 2px;
  background: var(--ctuc-yellow);
  margin-block: 12px;
  transition: width var(--dur-med) var(--ease);
}
.member-card__extra {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.member-card__role, .member-card__specialty {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ctuc-gray);
}
.member-card__specialty { margin-top: 4px; }

/* :hover is scoped to true hover-capable pointers so a tap on touch
   devices can't leave the card "stuck" hovered — touch/keyboard have
   no in-card reveal at all; click/Enter opens the detail popup instead. */
@media (hover: hover) {
  .member-card:hover { border-color: var(--line-strong); }
  .member-card:hover .member-card__visual img { transform: scale(1.06); }
  .member-card:hover .member-card__overlay { background: rgba(0, 0, 0, 0.86); }
  .member-card:hover .member-card__accent { width: 44px; }
  .member-card:hover .member-card__extra { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .member-card__visual img,
  .member-card__overlay,
  .member-card__accent,
  .member-card__extra {
    transition: none;
  }
}

.member-grid .reveal:nth-child(4n+1) { transition-delay: 0s; }
.member-grid .reveal:nth-child(4n+2) { transition-delay: 0.08s; }
.member-grid .reveal:nth-child(4n+3) { transition-delay: 0.16s; }
.member-grid .reveal:nth-child(4n+4) { transition-delay: 0.24s; }

/* ==========================================================================
   Member detail popup
   ========================================================================== */
.member-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med);
}
.member-modal.is-open {
  visibility: visible;
  opacity: 1;
}
.member-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(4px);
}
.member-modal__panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  transform: scale(0.96) translateY(12px);
  transition: transform var(--dur-med) var(--ease);
}
.member-modal.is-open .member-modal__panel {
  transform: scale(1) translateY(0);
}
.member-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.member-modal__close:hover { background: var(--ctuc-yellow); color: var(--ctuc-black); }

.member-modal__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}
.member-modal__pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 2px, var(--surface-1) 2px 14px);
}
.member-modal__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.member-modal__info {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
}
.member-modal__number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--ctuc-yellow);
}
.member-modal__name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-primary);
  text-transform: uppercase;
  margin-top: 8px;
}
.member-modal__accent {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--ctuc-yellow);
  margin-block: 18px;
}
.member-modal__role, .member-modal__specialty {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ctuc-gray);
}
.member-modal__specialty { margin-top: 6px; }
.member-modal__desc {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .member-modal__panel { grid-template-columns: 1fr; }
  /* Portrait frame so the stacked photo is shown whole, not letterboxed */
  .member-modal__visual { aspect-ratio: 3 / 4; max-height: 52vh; }
}

@media (prefers-reduced-motion: reduce) {
  .member-modal, .member-modal__panel { transition: none; }
}

/* ==========================================================================
   Terrains
   ========================================================================== */
.terrains__list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
}

.terrain-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.terrain-block--reverse .terrain-block__visual { order: 2; }
.terrain-block--reverse .terrain-block__info { order: 1; }

.terrain-block__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-1);
}
.terrain-block__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.9) brightness(0.82);
  transition: filter 0.5s ease;
}
.terrain-block__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(250, 198, 29, 0.16), rgba(0, 0, 0, 0.58)),
    repeating-linear-gradient(135deg, rgba(189, 204, 212, 0.06) 0 2px, transparent 2px 14px);
  opacity: 1;
  transition: opacity 0.5s ease;
}
.terrain-block__visual:hover .terrain-block__map,
.terrain-block__visual:focus-within .terrain-block__map {
  filter: grayscale(0) contrast(1) brightness(1);
}
.terrain-block__visual:hover .terrain-block__tint,
.terrain-block__visual:focus-within .terrain-block__tint {
  opacity: 0;
}
.terrain-block__map-open {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ctuc-black);
  background: var(--ctuc-yellow);
  padding: 8px 14px;
  transition: background 0.2s ease;
}
.terrain-block__map-open:hover,
.terrain-block__map-open:focus-visible {
  background: var(--ctuc-white);
}

.terrain-block__owner {
  color: var(--ctuc-yellow);
}
.terrain-block__sep {
  display: inline-block;
  margin-inline: 0.45em;
  color: var(--ctuc-gray);
  font-weight: 400;
}
@media (max-width: 640px) {
  .terrain-block__title h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .terrain-block__sep { display: none; }
  .terrain-block__owner {
    font-size: 0.6em;
    letter-spacing: 0.06em;
  }
}
.terrain-block__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}
.terrain-block__logos .terrain-block__logo {
  height: 34px;
  max-width: 88px;
}
#polygon, #padinska-skela, #sabac { scroll-margin-top: calc(var(--nav-h) + 24px); }

.terrain-block__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 24px;
}
.terrain-block__title h2 { margin: 0; }
.terrain-block__logo {
  width: auto;
  height: 56px;
  max-width: 96px;
  flex: 0 0 auto;
  object-fit: contain;
}
.terrain-block__info h2 {
  color: var(--text-primary);
  margin-top: 10px;
  margin-bottom: 24px;
}

.terrain-block__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.terrain-block__meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.terrain-block__meta-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.terrain-block__meta-value {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--ctuc-gray);
}

.terrain-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.terrain-block__tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ctuc-black);
  background: var(--ctuc-yellow);
  padding: 5px 12px;
}

.terrain-block__desc {
  max-width: 52ch;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .terrain-block,
  .terrain-block--reverse {
    grid-template-columns: 1fr;
  }
  .terrain-block__visual,
  .terrain-block--reverse .terrain-block__visual {
    order: -1;
  }
}

/* ==========================================================================
   About — identity blocks
   ========================================================================== */
.identity__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.identity__block {
  background: var(--surface-1);
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  z-index: 0;
  transition: background var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.identity__block .label { margin-bottom: 16px; }
.identity__block p { font-size: 0.95rem; }

@media (hover: hover) {
  .identity__block:hover {
    background: var(--surface-2);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--ctuc-yellow), 0 0 36px -6px rgba(250, 198, 29, 0.55);
    z-index: 1;
  }
}

.identity__grid .reveal:nth-child(1) { transition-delay: 0s; }
.identity__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.identity__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.identity__grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================================================
   About — history timeline
   ========================================================================== */
.history-list {
  display: flex;
  flex-direction: column;
}
.history-item {
  border-top: 1px solid var(--line);
  position: relative;
  padding-left: 28px;
}
.history-item:last-child { border-bottom: 1px solid var(--line); }
.history-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 34px;
  width: 9px;
  height: 9px;
  background: var(--ctuc-yellow);
}
.history-item__toggle {
  display: flex;
  align-items: baseline;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  padding-block: 24px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.history-item__year {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ctuc-yellow);
  min-width: 90px;
}
.history-item__label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}
.history-item__toggle:hover .history-item__label { color: var(--ctuc-yellow); }
.history-item__chevron {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-left: auto;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.history-item.is-open .history-item__chevron {
  transform: rotate(45deg);
  color: var(--ctuc-yellow);
}

.history-item__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-med) var(--ease), opacity var(--dur-fast) var(--ease);
}
.history-item.is-open .history-item__panel {
  max-height: 200px;
  opacity: 1;
}
.history-item__panel p {
  padding-bottom: 24px;
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.history-item--future {
  display: flex;
  align-items: baseline;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 24px;
}
.history-item--future::before { background: var(--text-muted); }
.history-item--future .history-item__year,
.history-item--future .history-item__label {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .history-item__panel, .history-item__chevron { transition: none; }
}

/* ==========================================================================
   About — philosophy statement
   ========================================================================== */
.about-statement {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  background: var(--surface-1);
}
.about-statement__bg {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.22;
  animation: aboutBgDrift 26s linear infinite;
}
.about-statement__bg::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55vmax;
  height: 55vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(250, 198, 29, 0.22) 0%, transparent 65%);
  animation: aboutGlowPulse 6s ease-in-out infinite;
}
@keyframes aboutBgDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}
@keyframes aboutGlowPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .about-statement__bg, .about-statement__bg::after { animation: none; }
}
/* Paused via js while the section is off-screen, so the continuous
   drift/pulse animation isn't running for no visible benefit. */
.about-statement__bg.is-paused,
.about-statement__bg.is-paused::after {
  animation-play-state: paused;
}

.about-statement__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.about-statement__logo {
  width: min(18vw, 140px);
  height: auto;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.about-statement__rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--ctuc-yellow);
  margin-bottom: clamp(28px, 4vw, 40px);
}
.about-statement__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  max-width: 18ch;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .identity__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .identity__grid { grid-template-columns: 1fr; }
  .history-item__toggle { flex-wrap: wrap; row-gap: 6px; }
  .history-item__chevron { order: 3; margin-left: 0; }
  .history-item--future { flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact__intro {
  max-width: 44ch;
  margin-block: 20px 32px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  margin-bottom: 36px;
  border-top: 1px solid var(--line);
}
.contact__list-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact__list-value {
  display: block;
  width: fit-content;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--ctuc-yellow);
}
a.contact__list-value { transition: color var(--dur-fast) var(--ease); }
a.contact__list-value:hover { color: var(--ctuc-white); }

.contact__social {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form__field label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  transition: border-color var(--dur-fast) var(--ease);
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--ctuc-yellow);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form__field--invalid input,
.contact-form__field--invalid textarea {
  border-color: var(--text-muted);
}
.contact-form__error {
  display: none;
  font-size: 0.8rem;
  color: var(--ctuc-gray);
}
.contact-form__field--invalid .contact-form__error { display: block; }

.contact-form .btn { align-self: flex-start; }

.contact-form__status {
  display: none;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
}
.contact-form__status.is-visible { display: block; }
.contact-form__status--error {
  border-style: solid;
  border-color: var(--ctuc-yellow);
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .contact-form .btn { align-self: stretch; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 28px;
  background: var(--surface-1);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}
.footer__brand img { height: 44px; width: auto; margin-bottom: 14px; }
.footer__brand p {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.footer__brand .footer__tagline {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0.72;
  max-width: 30ch;
}

.footer__nav, .footer__social {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__nav a, .footer__social-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
  width: fit-content;
}
.footer__nav a:hover, .footer__social-link:hover { color: var(--ctuc-yellow); }

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ctuc-yellow);
  transition: transform var(--dur-fast) var(--ease);
}
.footer__social-link:hover .footer__social-icon { transform: scale(1.12); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Reveal animation (IntersectionObserver driven)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.team-preview__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.terrain-preview__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.terrain-preview__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.stats__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.stats__grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

/* 1280 */
@media (max-width: 1280px) {
  .terrain-preview__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* 1024 */
@media (max-width: 1024px) {
  .who-we-are__grid { grid-template-columns: 1fr; }
  .who-we-are__graphic { order: -1; max-width: 420px; aspect-ratio: 16/10; }
  .work-with-us__grid { grid-template-columns: 1fr; }
  .work-with-us__graphic { order: -1; max-width: 460px; aspect-ratio: 16/10; }
  .terrain-preview__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 768 */
@media (max-width: 768px) {
  :root { --nav-h: 72px; }

  /* Show the full operator photo instead of a cropped fill */
  .member-card__visual img {
    object-fit: contain;
    object-position: center top;
    background: var(--surface-1);
  }

  /* Keep stacked terrain cards the same height regardless of copy length */
  .terrain-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(3 * 1.6em);
  }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .team-preview__grid { grid-template-columns: 1fr; }
  .terrain-preview__grid { grid-template-columns: 1fr; }

  .hero__meta { gap: 28px; }

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

/* 480 */
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .final-cta__buttons { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.1rem, 9vw, 3rem); }

  .member-grid { grid-template-columns: 1fr; }
  .member-card { aspect-ratio: 3 / 4; }
}

/* 390 / 375 */
@media (max-width: 390px) {
  :root { --container-pad: 16px; }
  .stats__grid { grid-template-columns: 1fr; }
  .hero__meta { flex-direction: column; gap: 18px; }
}

/* Team preview — administration note */
.team-preview__note {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.team-preview__note a {
  color: var(--ctuc-gray);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 198, 29, 0.35);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.team-preview__note a:hover,
.team-preview__note a:focus-visible {
  color: var(--ctuc-yellow);
  border-color: var(--ctuc-yellow);
}
