/* ============================================================
   PETROMINES — Design System
   Petroleum & Mining Training and Research Center
   University of Douala — Faculty of Science
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --red: #9c1c29;
  --red-deep: #6e1220;
  --red-bright: #c02436;
  --ink: #14110f;
  --ink-soft: #2b2523;
  --cream: #fcfaef;
  --cream-2: #f3efdf;
  --yellow: #ffce00;
  --blue-univ: #1c3f7c;

  /* Soil palette (hero + accents) */
  --soil-1: #b8905d;
  --soil-2: #966d40;
  --soil-3: #6f4c2c;
  --soil-4: #4b321d;

  /* Surfaces */
  --bg: var(--cream);
  --surface: #ffffff;
  --line: rgba(20, 17, 15, 0.12);
  --line-soft: rgba(20, 17, 15, 0.07);
  --muted: rgba(20, 17, 15, 0.62);

  /* Type */
  --font: "Geologica", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(1.85rem, 7.6vw, 5.6rem);
  --fs-h1: clamp(2.1rem, 7.2vw, 4.6rem);
  --fs-h2: clamp(1.65rem, 5vw, 3.1rem);
  --fs-h3: clamp(1.15rem, 3.2vw, 1.6rem);
  --fs-body: clamp(0.98rem, 2.4vw, 1.06rem);
  --fs-sm: 0.83rem;
  --fs-xs: 0.72rem;

  /* Space */
  --gut: clamp(1.15rem, 5vw, 4.5rem);
  --sec: clamp(4rem, 12vw, 9rem);
  --r: 4px;
  --r-lg: 18px;

  /* Motion */
  --e: cubic-bezier(0.22, 1, 0.36, 1);
  --e-in: cubic-bezier(0.62, 0, 0.28, 1);
  --t: 0.55s var(--e);

  --header-h: 62px;
}

@media (min-width: 900px) { :root { --header-h: 76px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* long account numbers, URLs and emails must never widen the page */
.nlist li, .blist li, .ccard, .footer__list, .menu__contact { overflow-wrap: anywhere; }

body.no-scroll { overflow: hidden; }

img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--red); color: var(--cream); }

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

/* ---------- 3. Type scale ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }

.h-hero {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-transform: uppercase;
}
.h1 { font-size: var(--fs-h1); text-transform: uppercase; font-weight: 650; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-weight: 500; }

.lead {
  font-size: clamp(1.02rem, 2.8vw, 1.32rem);
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: -0.012em;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow.no-rule::before { display: none; }

.muted { color: var(--muted); }
.mono-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 880px; }
.section { padding-block: var(--sec); }
.section-tight { padding-block: clamp(2.6rem, 7vw, 5rem); }
.grid { display: grid; gap: clamp(1.4rem, 3.5vw, 2.6rem); }

@media (min-width: 760px) {
  .g-2 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-programmes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 5rem); }
}
@media (min-width: 1180px) {
  .g-programmes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .g-2, .g-3, .g-programmes, .g-sidebar { grid-template-columns: 1fr; }
}

.rule { height: 1px; background: var(--line); border: 0; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.35rem; }
.stack-lg > * + * { margin-top: 2.4rem; }

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--e), border-color 0.4s var(--e), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(252, 250, 239, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0;
  transition: opacity 0.4s var(--e);
  pointer-events: none;
}
.header.is-solid::before { opacity: 1; }
.header.on-dark::before { background: rgba(20, 17, 15, 0.72); }
.header.is-solid { border-bottom-color: var(--line-soft); }

.header__inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.brand img { height: clamp(13px, 2.9vw, 17px); width: auto; }
.brand__logo { position: relative; display: block; }
.brand__logo--light {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--e);
}
.header.on-dark .brand__logo--light { opacity: 1; }
.header.on-dark .brand__logo--dark { opacity: 0; }
.brand__logo--dark { transition: opacity 0.4s var(--e); }

.header__actions { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.1rem); }

/* Language switch */
.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
  height: 30px;
  position: relative;
  background: rgba(255, 255, 255, 0.4);
}
.lang__btn {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0 0.62rem;
  height: 100%;
  color: var(--muted);
  transition: color 0.3s var(--e);
  position: relative;
  z-index: 2;
}
.lang__btn[aria-pressed="true"] { color: var(--cream); }
.lang__pill {
  position: absolute;
  z-index: 1;
  top: 2px;
  bottom: 2px;
  left: 2px;
  border-radius: 100px;
  background: var(--red);
  transition: transform 0.45s var(--e), width 0.45s var(--e);
}

/* Menu button */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem 0.42rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.35s var(--e), color 0.35s var(--e), border-color 0.35s var(--e);
}
.menu-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.menu-btn__bars { display: grid; gap: 3.5px; width: 15px; }
.menu-btn__bars i {
  display: block;
  height: 1.4px;
  background: currentColor;
  transition: transform 0.4s var(--e), width 0.4s var(--e);
}
.menu-btn__bars i:nth-child(2) { width: 68%; margin-left: auto; }
.menu-btn:hover .menu-btn__bars i:nth-child(2) { width: 100%; }
.menu-btn__label { display: none; }
@media (min-width: 560px) { .menu-btn__label { display: inline; } }

/* Dark header variant (over hero) */
.header.on-dark { color: var(--cream); }
.header.on-dark .lang,
.header.on-dark .menu-btn { border-color: rgba(252, 250, 239, 0.28); background: rgba(20, 17, 15, 0.22); }
.header.on-dark .lang__btn { color: rgba(252, 250, 239, 0.6); }
.header.on-dark .lang__btn[aria-pressed="true"] { color: #fff; }
.header.on-dark .menu-btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- 6. Menu frame (full overlay) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #1b1714;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--e), visibility 0.75s;
  visibility: hidden;
  -webkit-overflow-scrolling: touch;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 80% at 82% 18%, rgba(156, 28, 41, 0.34), transparent 64%),
    radial-gradient(80% 70% at 8% 82%, rgba(111, 76, 44, 0.26), transparent 64%);
  pointer-events: none;
}

.menu__top {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: calc(var(--header-h) + 1rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: max(.75rem, env(safe-area-inset-top)) max(1.25rem, var(--gut)) .4rem;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  background: transparent;
}

.close-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  transition: background 0.35s var(--e), color 0.35s var(--e), transform .45s var(--e);
}
.close-btn:hover { background: rgba(252,250,239,.1); transform: rotate(90deg); }
.close-btn svg { width: 20px; height: 20px; }

.menu__body {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gut) 0;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-content: start;
}

.menu__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(252, 250, 239, 0.42);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.mnav { display: grid; }
.mnav li { border-top: 1px solid rgba(252, 250, 239, 0.13); }
.mnav li:last-child { border-bottom: 1px solid rgba(252, 250, 239, 0.13); }

.mnav a {
  display: flex;
  align-items: baseline;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  padding: clamp(0.6rem, 1.9vw, 0.95rem) 0;
  position: relative;
  isolation: isolate;
  transition: color 0.4s var(--e), padding-left 0.5s var(--e);
}
.mnav a::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--gut));
  right: calc(-1 * var(--gut));
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--e);
}
@media (hover: hover) {
  .mnav a:hover { padding-left: clamp(0.6rem, 2vw, 1.4rem); }
  .mnav a:hover::before { transform: scaleX(1); }
}
.mnav a:focus-visible::before { transform: scaleX(1); }
.mnav a.is-current { color: var(--yellow); }

.mnav__idx {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(252, 250, 239, 0.4);
  font-weight: 500;
  flex: none;
  width: 2.2em;
  transition: color 0.4s var(--e);
}
.mnav a:hover .mnav__idx { color: rgba(255, 255, 255, 0.85); }
.mnav__t {
  font-size: clamp(1.35rem, 4.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.menu__foot {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.2rem) var(--gut) clamp(1.6rem, 4vw, 2.4rem);
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  border-top: 1px solid rgba(252, 250, 239, 0.13);
}
.menu__foot-univ { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.2rem); }
.menu__foot-univ img { height: clamp(42px, 9vw, 60px); width: auto; }
.menu__foot-univ span {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  color: rgba(252, 250, 239, 0.66);
  font-weight: 400;
}
.menu__foot-univ b { display: block; color: var(--cream); font-weight: 600; letter-spacing: 0.14em; }
.menu__social { display: flex; gap: 1.2rem; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.menu__social a { color: rgba(252, 250, 239, 0.6); transition: color 0.3s; }
.menu__social a:hover { color: var(--yellow); }

/* Stagger reveal inside menu */
.menu .stagger { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--e), transform 0.7s var(--e); }
.menu.is-open .stagger { opacity: 1; transform: none; }
.menu.is-open .stagger:nth-child(1) { transition-delay: 0.16s; }
.menu.is-open .stagger:nth-child(2) { transition-delay: 0.21s; }
.menu.is-open .stagger:nth-child(3) { transition-delay: 0.26s; }
.menu.is-open .stagger:nth-child(4) { transition-delay: 0.31s; }
.menu.is-open .stagger:nth-child(5) { transition-delay: 0.36s; }
.menu.is-open .stagger:nth-child(6) { transition-delay: 0.41s; }
.menu.is-open .stagger:nth-child(7) { transition-delay: 0.46s; }
.menu.is-open .stagger:nth-child(8) { transition-delay: 0.51s; }

/* ---------- 7. Hero (dig canvas) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--soil-4);
  isolation: isolate;
  touch-action: pan-y;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  touch-action: pan-y;
}
.hero__canvas--three { opacity: 0; transition: opacity .7s var(--e); }
.hero--three .hero__canvas--three { opacity: 1; }
.hero--three .hero__canvas:not(.hero__canvas--three) { opacity: 0; }
.hero--three .hero__depth { opacity: 0 !important; }
.hero__depth {
  --dig-x: 50%;
  --dig-y: 50%;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle 92px at var(--dig-hx, var(--dig-x)) var(--dig-hy, var(--dig-y)), transparent 42%, rgba(255,232,181,.24) 54%, transparent 72%),
    radial-gradient(circle 66px at var(--dig-x) var(--dig-y), rgba(2,1,1,.92) 0%, rgba(7,4,2,.82) 42%, rgba(20,12,7,.48) 70%, transparent 100%),
    radial-gradient(circle 142px at var(--dig-x) var(--dig-y), transparent 0 31%, rgba(8,5,3,.72) 43%, rgba(21,13,8,.48) 56%, rgba(45,29,18,.18) 68%, transparent 80%),
    radial-gradient(circle 196px at var(--dig-x) var(--dig-y), transparent 42%, rgba(16,10,6,.28) 58%, transparent 82%);
  filter: saturate(.94);
  transition: opacity .4s var(--e);
}
.hero.is-digging .hero__depth { opacity: 1; }
.hero__vig {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(115% 78% at 50% 42%, transparent 24%, rgba(15, 10, 6, 0.5) 78%, rgba(10, 7, 4, 0.78) 100%),
    linear-gradient(rgba(12, 8, 5, 0.44), transparent 26%, transparent 66%, rgba(12, 8, 5, 0.6));
}
.hero__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: calc(var(--header-h) + 1.5rem) var(--gut) clamp(4.5rem, 12vw, 6.5rem);
  max-width: 1280px;
  pointer-events: none;
  width: 100%;
}
.hero__inner > * { pointer-events: auto; }

.hero__title {
  color: #fff;
  text-shadow: none;
  margin-bottom: clamp(1.2rem, 3.5vw, 1.9rem);
  font-weight: 500;
  line-height: .93;
  text-transform: none;
}
.hero__title .ln { display: block; white-space: nowrap; }
@media (max-width: 420px) { .hero__title .ln { white-space: normal; } }
.hero__title .accent { color: var(--yellow); }

@media (max-width: 700px) {
  .hero__title { font-size: clamp(3.24rem, 13.3vw, 9.8rem); line-height: .9; }
}

.hero__intro {
  max-width: 62ch;
  font-size: clamp(0.94rem, 2.2vw, 1.14rem);
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: none;
  font-weight: 350;
  line-height: 1.5;
  text-wrap: balance;
}
.hero__eyebrow {
  justify-content: center;
  color: var(--yellow);
  margin-bottom: clamp(1rem, 3vw, 1.6rem);
  text-shadow: none;
  gap: .55em;
}
.hero__eyebrow::before { display: none; }
.hero__eyebrow span + span::before { content: "·"; margin-right: .55em; }
@media (max-width: 560px) {
  .hero__eyebrow { flex-direction: column; gap: .15rem; line-height: 1.25; }
  .hero__eyebrow span + span::before { display: none; }
}
.hero__cta {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.hero__hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1.4rem, 4vw, 2.4rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  max-width: calc(100% - 2 * var(--gut));
  text-align: center;
  line-height: 1.5;
}
.hero__hint i {
  width: 22px;
  height: 1px;
  background: currentColor;
  display: block;
  animation: slide 2.6s var(--e) infinite;
}
@keyframes slide {
  0%, 100% { transform: scaleX(0.35); transform-origin: left; opacity: 0.4; }
  50% { transform: scaleX(1); transform-origin: left; opacity: 1; }
}

/* Scramble */
.scramble { display: inline-block; }
.scramble .ch { display: inline-block; }
.scramble .ch.is-noise { color: var(--soil-1); opacity: 0.9; }

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.82rem 1.5rem;
  border-radius: 100px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--red);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--e), box-shadow 0.45s var(--e), border-color 0.45s var(--e), color 0.45s var(--e);
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.48s var(--e);
  z-index: -1;
}
.btn:hover::after { transform: scaleX(1); transform-origin: left center; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(20, 17, 15, 0.16); }
.btn svg { width: 13px; height: 13px; flex: none; transition: transform 0.4s var(--e); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn--ghost::after { background: currentColor; }
.btn--light { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.42); color: #fff; backdrop-filter: blur(6px); }
.btn--light::after { background: #fff; }
.btn--light:hover { color: var(--ink); }
.btn--dark { background: var(--ink); }
.btn--dark::after { background: var(--red); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--e), color 0.3s;
}
.link-arrow:hover { background-size: 0% 1px; color: var(--red); }
.link-arrow svg { width: 12px; height: 12px; transition: transform 0.4s var(--e); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 9. Page header (interior) ---------- */
.phead {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.4rem, 7vw, 6rem)) 0 clamp(2.6rem, 7vw, 4.5rem);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.phead--img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  transform: scale(1.06);
}
.phead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(20, 17, 15, 0.94) 12%, rgba(20, 17, 15, 0.62) 62%, rgba(110, 18, 32, 0.55));
}
.phead .eyebrow { color: var(--yellow); }
.phead__title { margin: 1rem 0 0.9rem; }
.phead__sub { max-width: 60ch; color: rgba(252, 250, 239, 0.76); }
.phead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.36rem 0.85rem;
  border: 1px solid rgba(252, 250, 239, 0.28);
  border-radius: 100px;
  color: rgba(252, 250, 239, 0.9);
  font-weight: 400;
}
.tag--solid { background: var(--red); border-color: var(--red); }
.tag--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 500; }

/* Breadcrumb */
.crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(252, 250, 239, 0.5);
}
.crumb a:hover { color: var(--yellow); }

/* ---------- 10. Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s var(--e), box-shadow 0.55s var(--e), border-color 0.4s;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px -20px rgba(20, 17, 15, 0.3); border-color: var(--line); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e), opacity 0.6s; }
.card:hover .card__media img { transform: scale(1.055); }
.card__media--tall { aspect-ratio: 4 / 5; }
.card__body { padding: clamp(1.15rem, 3vw, 1.7rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__title { font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
.card__txt { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; flex: 1; }
.card__foot { padding-top: 0.35rem; }
.card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--yellow);
  color: var(--ink);
}
.card__badge--red { background: var(--red); color: #fff; }

/* Program card — big editorial */
.pcard {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(340px, 62vw, 520px);
  color: #fff;
  isolation: isolate;
  background: var(--ink);
}
.pcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--e);
  opacity: 0.72;
}
.pcard:hover img { transform: scale(1.07); }
.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(12, 9, 6, 0.94) 6%, rgba(12, 9, 6, 0.52) 44%, rgba(12, 9, 6, 0.14) 78%);
  transition: opacity 0.6s;
}
.pcard__in {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.2rem, 3.5vw, 2rem);
  display: grid;
  gap: 0.6rem;
}
.pcard__k {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 500;
}
.pcard__t {
  font-size: clamp(1.5rem, 4.4vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-transform: uppercase;
}
.pcard__d { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.78); max-width: 40ch; line-height: 1.55; }
.pcard__go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  font-weight: 500;
}
.pcard__go svg { width: 12px; transition: transform 0.4s var(--e); }
.pcard:hover .pcard__go svg { transform: translateX(4px); }

/* FI-MLD flyer */
.flyer-layout { align-items: center; }
@media (min-width: 820px) {
  .flyer-layout { grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); }
}
.flyer-preview {
  display: block;
  justify-self: center;
  width: min(100%, 520px);
  padding: clamp(.55rem, 1.5vw, 1rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 24px 70px -42px rgba(20, 17, 15, .55);
  transition: transform .45s var(--e), box-shadow .45s var(--e), border-color .35s;
}
.flyer-preview:hover,
.flyer-preview:focus-visible {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 30px 80px -40px rgba(20, 17, 15, .65);
}
.flyer-preview img { width: 100%; height: auto; border-radius: calc(var(--r-lg) - .45rem); }

/* ---------- 11. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: clamp(1.3rem, 3.5vw, 2.2rem) clamp(0.9rem, 2.5vw, 1.6rem); }
.stat__n {
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.stat__l {
  font-size: var(--fs-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* ---------- 12. Dark band ---------- */
.band-dark {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 120% at 88% 4%, rgba(156, 28, 41, 0.38), transparent 58%);
}
.band-dark .muted { color: rgba(252, 250, 239, 0.6); }
.band-dark .eyebrow { color: var(--yellow); }
.band-dark .rule { background: rgba(252, 250, 239, 0.15); }

.band-red { background: var(--red-deep); color: var(--cream); }
.band-cream { background: var(--cream-2); }

/* ---------- 13. Partners marquee ---------- */
.marquee { overflow: hidden; position: relative; padding-block:1.25rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: scrollx 34s linear infinite; animation-play-state:paused; }
.marquee.is-visible .marquee__track { animation-play-state:running; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__g { display: flex; align-items: center; gap: clamp(2.4rem, 7vw, 5.5rem); padding-right: clamp(2.4rem, 7vw, 5.5rem); }
.marquee img {
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  position: relative;
  z-index: 1;
  transition: opacity 0.4s, filter 0.4s, transform .5s var(--e);
  transform: scale(1);
  cursor: zoom-in;
}
.marquee img:hover { opacity: 1; filter: none; transform: scale(1.32); z-index: 3; }
@keyframes scrollx { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- 14. Accordion / list ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  text-align: left;
  padding: clamp(1rem, 2.8vw, 1.4rem) 0;
  font-size: clamp(1rem, 2.8vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.35s;
}
.acc__btn:hover { color: var(--red); }
.acc__ic { flex: none; width: 16px; height: 16px; position: relative; }
.acc__ic::before, .acc__ic::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.45s var(--e), opacity 0.3s;
}
.acc__ic::before { inset: 50% 0 auto 0; height: 1.4px; transform: translateY(-50%); }
.acc__ic::after { inset: 0 50% 0 auto; width: 1.4px; transform: translateX(50%); }
.acc__btn[aria-expanded="true"] .acc__ic::after { transform: translateX(50%) rotate(90deg); opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--e); }
.acc__btn[aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner > div { padding-bottom: 1.5rem; color: var(--muted); font-size: var(--fs-sm); line-height: 1.68; max-width: 78ch; }

/* Bullet lists */
.blist { display: grid; gap: 0.68rem; }
.blist li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-sm);
  line-height: 1.58;
}
.blist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--red);
  transform: rotate(45deg);
}
.band-dark .blist li::before { background: var(--yellow); }
.blist--tight li { padding-left: 1.2rem; }

/* Numbered checklist */
.nlist { display: grid; gap: 0.9rem; counter-reset: n; }
.nlist li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.nlist li::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--red);
  flex: none;
  padding-top: 0.28em;
  letter-spacing: 0.06em;
}

/* ---------- 15. Timeline / history scrollytelling ---------- */
.home-story { position:relative; overflow:hidden; isolation:isolate; color:var(--cream); background:#171513; }
.home-story__bg { position:absolute; inset:0; z-index:-2; background-size:cover; background-position:center; filter:saturate(.72) contrast(.98); transform:scale(1.04); }
.home-story::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(11,8,5,.92),rgba(11,8,5,.62) 54%,rgba(11,8,5,.28)); }
.home-story__in { padding-block:clamp(5rem,12vw,8rem); max-width:660px; }
.story-flow {
  position:relative;
  overflow:clip;
  color:var(--cream);
  --story-a:#090706;
  --story-b:#2b180f;
  --story-c:#3a1018;
  --shape-1-x:0vw;
  --shape-1-y:0vh;
  --shape-2-x:0vw;
  --shape-2-y:0vh;
  --shape-3-x:0vw;
  --shape-3-y:0vh;
  background:linear-gradient(145deg,var(--story-a),var(--story-b) 52%,var(--story-c));
  transition:--story-a 1.15s var(--e),--story-b 1.15s var(--e),--story-c 1.15s var(--e);
}
@property --story-a { syntax:"<color>"; inherits:true; initial-value:#090706; }
@property --story-b { syntax:"<color>"; inherits:true; initial-value:#2b180f; }
@property --story-c { syntax:"<color>"; inherits:true; initial-value:#3a1018; }
.story-flow::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.14;
  background-image:radial-gradient(rgba(252,250,239,.62) .55px,transparent .7px);
  background-size:9px 9px;
  mask-image:linear-gradient(to bottom,transparent,#000 8%,#000 92%,transparent);
}
.story-flow__ambient {
  position:sticky;
  z-index:0;
  top:0;
  height:100svh;
  margin-bottom:-100svh;
  overflow:hidden;
  pointer-events:none;
  background:linear-gradient(145deg,var(--story-a),var(--story-b) 52%,var(--story-c));
  transition:--story-a 1.15s var(--e),--story-b 1.15s var(--e),--story-c 1.15s var(--e);
}
.story-flow__ambient::after {
  content:"";
  position:absolute;
  top:7%;
  bottom:7%;
  left:50%;
  width:1px;
  background:linear-gradient(transparent,rgba(231,201,127,.25) 12%,rgba(231,201,127,.45) 50%,rgba(231,201,127,.18) 88%,transparent);
}
.story-flow__ambient i {
  position:absolute;
  display:block;
  border:1px solid rgba(252,250,239,.1);
  opacity:.28;
  filter:blur(1px);
  transition:transform 1.35s var(--e),border-radius 1.35s var(--e),background-color 1.15s var(--e);
  will-change:transform;
}
.story-flow__ambient i:nth-child(1) { width:min(58vw,760px); aspect-ratio:1; left:-20vw; top:12%; border-radius:46% 54% 64% 36% / 42% 36% 64% 58%; background:var(--story-b); transform:translate3d(var(--shape-1-x),var(--shape-1-y),0) rotate(-12deg); }
.story-flow__ambient i:nth-child(2) { width:min(48vw,620px); aspect-ratio:1; right:-16vw; top:38%; border-radius:61% 39% 34% 66% / 48% 62% 38% 52%; background:var(--story-c); transform:translate3d(var(--shape-2-x),var(--shape-2-y),0) rotate(18deg); }
.story-flow__ambient i:nth-child(3) { width:min(34vw,430px); aspect-ratio:1; left:42%; bottom:-10%; border-radius:32% 68% 55% 45% / 58% 38% 62% 42%; background:var(--story-a); transform:translate3d(var(--shape-3-x),var(--shape-3-y),0) rotate(8deg); }
.chap {
  position: relative;
  z-index:1;
  min-height:100svh;
  display: grid;
  align-items: center;
  overflow:visible;
  color: var(--cream);
  background:transparent;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.chap > .wrap { position:relative; width:100%; }
.chap__in {
  position:relative;
  z-index:3;
  padding-block:clamp(5rem,12vw,8rem);
  max-width:520px;
  opacity:.12;
  transform:translate3d(0,34px,0) scale(.975);
  transform-origin:center left;
  transition:opacity .52s var(--e),transform .78s var(--e);
}
.chap.is-active .chap__in { opacity:1; transform:none; }
.story-step:nth-of-type(even) .chap__in { margin-left:auto; transform-origin:center right; }
.chap--intro { min-height:100svh; }
.chap--intro .chap__in { max-width:900px; }
.chap__yr {
  font-size:clamp(3.4rem,13vw,8.5rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke:1px rgba(252,250,239,.34);
  margin-bottom:.65rem;
  font-variant-numeric: tabular-nums;
}
.chap__yr.filled { color: #e7c97f; -webkit-text-stroke: 0; }
.chap__t {
  font-size: clamp(1.6rem, 5.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 1.1rem;
}
.chap__p { color: rgba(252, 250, 239, 0.8); max-width: 54ch; }
.chap__p + .chap__p { margin-top: 0.9rem; }
.story-gallery {
  position:absolute;
  z-index:2;
  top:50%;
  right:clamp(1rem,5vw,5rem);
  width:min(48vw,650px);
  height:min(66svh,620px);
  opacity:0;
  transform:translate3d(0,-45%,0) scale(.93);
  transition:opacity .5s var(--e),transform .85s var(--e);
  pointer-events:none;
}
.chap.is-active .story-gallery { opacity:1; transform:translate3d(0,-50%,0) scale(1); pointer-events:auto; }
.story-step:nth-of-type(even) .story-gallery { right:auto; left:clamp(1rem,5vw,5rem); }
.story-media {
  --media-rot:-3deg;
  position:absolute;
  width:76%;
  padding:.48rem;
  border-radius:clamp(16px,2.4vw,28px);
  background:rgba(252,250,239,.94);
  color:var(--ink);
  box-shadow:0 38px 90px -38px rgba(0,0,0,.88),0 0 0 1px rgba(255,255,255,.28);
  transform:translate3d(0,22px,0) rotate(var(--media-rot)) scale(.94);
  transition:transform .85s var(--e),box-shadow .45s var(--e);
}
.chap.is-active .story-media { transform:translate3d(0,0,0) rotate(var(--media-rot)) scale(1); }
.story-media:nth-child(1) { top:0; left:0; --media-rot:-3.5deg; }
.story-media:nth-child(2) { width:62%; right:0; bottom:0; --media-rot:4deg; transition-delay:.1s; }
.story-gallery:has(.story-media:only-child) .story-media { width:66%; top:50%; left:50%; right:auto; bottom:auto; transform:translate3d(-50%,-44%,0) rotate(-2deg) scale(.94); }
.chap.is-active .story-gallery:has(.story-media:only-child) .story-media { transform:translate3d(-50%,-50%,0) rotate(-2deg) scale(1); }
.story-media:hover { box-shadow:0 48px 110px -38px rgba(0,0,0,.94),0 0 0 1px rgba(255,255,255,.38); }
.story-media img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:calc(clamp(16px,2.4vw,28px) - .34rem); filter:saturate(.76) contrast(1.04); }
#ch2 .story-media:nth-child(2) { width:48%; }
#ch2 .story-media:nth-child(2) img,#ch5 .story-media img,#ch9 .story-media img { aspect-ratio:4/5; }
#ch3 .story-media:nth-child(2) { width:72%; }
#ch3 .story-media:nth-child(2) img { aspect-ratio:16/6; }
#ch7 .story-media:nth-child(2) { width:50%; }
#ch7 .story-media:nth-child(2) img { aspect-ratio:4/5; }
.story-media figcaption { display:flex; justify-content:space-between; gap:.7rem; align-items:flex-start; padding:.68rem .38rem .2rem; }
.story-media figcaption b { color:var(--red); font-size:.61rem; letter-spacing:.14em; text-transform:uppercase; font-weight:700; }
.story-media figcaption a,.story-media figcaption span { max-width:28ch; text-align:right; color:rgba(24,21,18,.62); font-size:.54rem; line-height:1.35; letter-spacing:.04em; }
.story-media figcaption a:hover { color:var(--red); }

html.story-snap { scroll-snap-type:y proximity; }
html.story-snap .band-red { scroll-snap-align:start; }

@media (max-width: 700px) {
  .story-flow__ambient::after { left:var(--gut); }
  .story-flow__ambient i:nth-child(1) { width:110vw; left:-58vw; }
  .story-flow__ambient i:nth-child(2) { width:100vw; right:-55vw; }
  .chap { min-height:100svh; padding-block:5.5rem 3rem; }
  .chap__in,.story-step:nth-of-type(even) .chap__in { margin-left:0; padding-block:0; transform-origin:center left; }
  .story-gallery,.story-step:nth-of-type(even) .story-gallery {
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    margin:2rem auto 0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:.65rem;
    transform:translate3d(0,28px,0) scale(.96);
  }
  .chap.is-active .story-gallery { transform:none; }
  .story-media,.story-media:nth-child(1),.story-media:nth-child(2),#ch2 .story-media:nth-child(2),#ch3 .story-media:nth-child(2),#ch7 .story-media:nth-child(2) {
    position:relative;
    inset:auto;
    width:auto;
    transform:translate3d(0,16px,0) rotate(var(--media-rot)) scale(.96);
  }
  .chap.is-active .story-media { transform:translate3d(0,0,0) rotate(var(--media-rot)) scale(1); }
  .story-gallery:has(.story-media:only-child) .story-media,.chap.is-active .story-gallery:has(.story-media:only-child) .story-media { width:70%; grid-column:1/-1; justify-self:center; transform:rotate(-2deg); }
  .story-media img,#ch2 .story-media:nth-child(2) img,#ch3 .story-media:nth-child(2) img,#ch5 .story-media img,#ch7 .story-media:nth-child(2) img,#ch9 .story-media img { aspect-ratio:4/3; }
  .story-media figcaption { display:block; }
  .story-media figcaption a,.story-media figcaption span { display:block; margin-top:.25rem; text-align:left; }
}
@media (prefers-reduced-motion:reduce) {
  html.story-snap { scroll-snap-type:none; }
  .chap__in,.story-gallery,.story-media { opacity:1!important; filter:none!important; transform:none!important; transition:none!important; }
  .story-flow__ambient i { transform:none!important; }
}

.chap-prog {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--e);
  position: fixed;
  z-index: 60;
  right: clamp(0.7rem, 2.5vw, 1.6rem);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-end;
}
@media (min-width: 860px) { .chap-prog { display: flex; } }
.chap-prog.is-on { opacity: 1; pointer-events: auto; }
.chap-prog a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(252, 250, 239, 0.42);
  transition: color 0.4s;
  font-variant-numeric: tabular-nums;
}
.chap-prog a i { width: 16px; height: 1px; background: currentColor; transition: width 0.4s var(--e); display: block; }
.chap-prog a.is-active { color: var(--yellow); }
.chap-prog a.is-active i { width: 34px; }
.chap-prog a:hover { color: rgba(252, 250, 239, 0.85); }

/* ---------- 16. News ---------- */
.news-actions { display:flex; flex-wrap:wrap; gap:.8rem 1.2rem; align-items:center; justify-content:flex-end; }
.channel-link {
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  color:#1f7a48;
  font-size:var(--fs-xs);
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  transition:color .3s var(--e),transform .35s var(--e);
}
.channel-link:hover,.channel-link:focus-visible { color:#125b34; transform:translateY(-2px); }
.news-channel-note { margin-bottom:clamp(1.2rem,3vw,2rem); padding-bottom:1rem; border-bottom:1px solid var(--line); }
.news-item {
  display:block;
  padding:clamp(1.15rem,3vw,1.7rem) clamp(3rem,8vw,5.5rem) clamp(1.15rem,3vw,1.7rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition:padding-left .5s var(--e),border-color .4s var(--e),background .4s var(--e);
}
.news-item:hover, .news-item:focus-visible { padding-left:clamp(.45rem,1.5vw,1rem); border-color:rgba(156,28,41,.42); }
.news-item__body { display:block; min-width:0; }
.news-item__meta { display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:.45rem; color:var(--red); font-size:.66rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.news-item__t { display:block; font-size:clamp(1.12rem,3vw,1.65rem); font-weight:700; letter-spacing:-.025em; line-height:1.2; transition:color .35s; }
.news-item:hover .news-item__t, .news-item:focus-visible .news-item__t { color: var(--red); }
.news-item__x {
  display:block;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.55;
  max-width: 68ch;
  margin-top:.45rem;
}
.news-item__arrow {
  position: absolute;
  right: clamp(.45rem, 2vw, 1.2rem);
  top: 50%;
  transform: translate(-12px,-50%);
  color: var(--red);
  font-size: clamp(1.5rem,4vw,2.2rem);
  opacity: .48;
  transition: transform .5s var(--e), opacity .4s var(--e);
}
.news-item:hover .news-item__arrow, .news-item:focus-visible .news-item__arrow { transform: translate(0,-50%); opacity: 1; }

.news-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  background: var(--surface);
  align-self: stretch;
  height:100%;
  transition: border-color .4s var(--e), transform .5s var(--e), box-shadow .5s var(--e);
}
.news-card:hover, .news-card:focus-visible { border-color: rgba(156,28,41,.45); transform: translateY(-3px); box-shadow: 0 18px 38px -26px rgba(20,17,15,.38); }
.news-card__content { display:block; padding:clamp(1.15rem,3vw,1.6rem); }
.news-card__meta { display:flex; flex-wrap:wrap; gap:.4rem; color:var(--red); font-size:.64rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; margin-bottom:.5rem; }
.news-card__title { display:block; font-size:clamp(1.05rem,2.5vw,1.35rem); font-weight:700; line-height:1.22; letter-spacing:-.025em; padding-right:2rem; }
.news-card__intro { display:block; font-size:var(--fs-sm); color:var(--muted); line-height:1.55; margin-top:.55rem; }
.news-card__arrow { position:absolute; right:1.2rem; bottom:1rem; color:var(--red); font-size:1.7rem; transform:translateX(-10px); opacity:.5; transition:transform .5s var(--e),opacity .4s var(--e); }
.news-card:hover .news-card__arrow, .news-card:focus-visible .news-card__arrow { transform:none; opacity:1; }

.article-shell { max-width:58rem; margin-inline:auto; }
.article-back { margin-bottom:clamp(1.5rem,4vw,2.6rem); }
.article-hero { margin-bottom:clamp(1.8rem,5vw,3.2rem); }
.article-hero__meta { color:var(--red); font-size:.7rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; margin-bottom:.8rem; }
.article-hero__title { max-width:20ch; }
.article-hero__excerpt { max-width:64ch; margin-top:1rem; }
.article-hero__image { display:block; width:100%; max-height:36rem; object-fit:cover; border-radius:var(--r-lg); margin-top:clamp(1.4rem,4vw,2.4rem); background:#e9e3d8; }
.article-body { max-width:46rem; }
.article-body h2 { font-size:clamp(1.35rem,3vw,2rem); line-height:1.15; letter-spacing:-.03em; margin:2.2rem 0 .75rem; }
.article-body p,.article-body li { color:var(--ink-soft); line-height:1.78; }
.article-body p + p { margin-top:1rem; }
.article-body ul { display:grid; gap:.55rem; padding-left:1.25rem; margin:1rem 0 1.5rem; }

@media (max-width: 640px) {
  .news-item { padding-right:2.7rem; }
  .news-item__arrow { right:.2rem; }
}

/* ---------- 17. Contact ---------- */
.ccard {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3.2vw, 1.9rem);
  display: grid;
  gap: 0.7rem;
  background: var(--surface);
  transition: border-color 0.4s, transform 0.5s var(--e), box-shadow 0.5s var(--e);
}
.ccard:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(20, 17, 15, 0.35); }
.ccard__k { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.ccard__t { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.ccard__row { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.ccard__row svg { width: 14px; height: 14px; flex: none; color: var(--red); }
.ccard__row a { transition: color 0.3s; }
.ccard__row a:hover { color: var(--red); }

/* ---------- 18. Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding-block: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.2rem); }
.footer a { color: rgba(252, 250, 239, 0.66); transition: color 0.3s; font-size: var(--fs-sm); }
.footer a:hover { color: var(--yellow); }
.footer__grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer__h { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(252, 250, 239, 0.4); margin-bottom: 1rem; font-weight: 500; }
.footer__list { display: grid; gap: 0.55rem; }
.footer__bottom {
  margin-top: clamp(2.4rem, 6vw, 3.6rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(252, 250, 239, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(252, 250, 239, 0.42);
  letter-spacing: 0.05em;
}
.footer__brand img { height: 26px; margin-bottom: 1rem; }
.footer__univ { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.4rem; }
.footer__univ img { height: 46px; width: auto; }
.footer__univ span { font-size: 0.62rem; letter-spacing: 0.11em; text-transform: uppercase; color: rgba(252, 250, 239, 0.55); line-height: 1.5; }

/* ---------- 19. Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--e), transform 0.95s var(--e); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }

/* Line-mask reveal for headings */
.rv-mask { overflow: hidden; display: block; }
.rv-mask > * { display: block; transform: translateY(105%); transition: transform 1s var(--e); }
.rv-mask.is-in > * { transform: none; }

/* ---------- 20. Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-60 { max-width: 60ch; }
.max-70 { max-width: 70ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  background: var(--red); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 6px 6px;
  transition: top 0.3s;
}
.skip:focus { top: 0; }

.img-ph { background: var(--soil-4) center/cover; }

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv, .rv-mask > * { opacity: 1; transform: none; }
  .menu { transition: none; }
}

/* ---------- 22. Print ---------- */
@media print {
  .header, .menu, .hero__canvas, .marquee, .chap-prog { display: none !important; }
  body { color: #000; background: #fff; }
}
