/* ============================================================
   FIRST AID SOCIETY — single-page site
   Palette pulled from the logo:
   - red       #E63946   (cross / accents)
   - sky       #CBE3F0   (logo ring)
   - sky-deep  #4A90C2   (stethoscope)
   - ink       #0A0A0A   (text)
   - cream     #FFF8F0   (warm bg)
============================================================ */

:root {
  --red:       #E63946;
  --red-dark:  #C32B38;
  --sky:       #CBE3F0;
  --sky-soft:  #E8F2F9;
  --sky-deep:  #4A90C2;
  --ink:       #0A0A0A;
  --ink-soft:  #2A2A2A;
  --cream:     #FFF8F0;
  --line:      rgba(10,10,10,0.12);

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow--light { border-color: rgba(255,255,255,0.45); color: #fff; }

.word-red     { color: var(--red); }
.word-outline {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  font-style: italic;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--red   { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(255,248,240,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav__brand em { color: var(--red); font-style: normal; }

.nav__links {
  display: flex; gap: 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width .2s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff;
  transition: background .2s ease;
}
.nav__cta:hover { background: var(--red); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #fff;
  transition: background .2s ease;
}
.nav__burger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__cta--mobile { display: none; }

@media (max-width: 820px) {
  .nav { padding: 12px 18px; }
  .nav__cta--desktop { display: none; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 67px; left: 0; right: 0;
    /* explicit height (not bottom:0) — .nav's backdrop-filter makes it the
       containing block for this fixed panel, so bottom:0 would collapse it
       against the short header. */
    height: calc(100vh - 67px);
    height: calc(100dvh - 67px);
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    padding: 24px 22px 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    border-top: 2px solid var(--ink);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a {
    font-family: var(--font-display); font-weight: 800;
    font-size: 28px; letter-spacing: -0.02em;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a::after { display: none; }
  .nav__cta--mobile {
    display: inline-flex; align-self: flex-start;
    margin-top: 20px;
    font-size: 14px;
  }
  body.nav-locked { overflow: hidden; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  padding: 80px 32px 100px;
  background:
    radial-gradient(60% 80% at 100% 0%, var(--sky) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, #ffe1e4 0%, transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  background: #fff; border: 2px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 28px;
}
.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(230,57,70,0.55);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(230,57,70,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}

.hero__title {
  font-weight: 900;
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero__sub {
  max-width: 560px;
  font-size: 18px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  max-width: 720px;
}
.hero__stats > div {
  background: #fff; border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex; flex-direction: column;
  box-shadow: 4px 4px 0 var(--ink);
}
.hero__stats strong {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.hero__stats span {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* logo decoration */
.hero__logo {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 440px; max-width: 50vw;
  z-index: 1;
  opacity: 0.92;
  pointer-events: none;
}
.hero__logo img {
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.12));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
@media (max-width: 1100px) { .hero__logo { display: none; } }

/* maximalist pattern */
.hero__pattern { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cross {
  position: absolute;
  width: 60px; height: 60px;
  background:
    linear-gradient(var(--red), var(--red)) center/100% 28% no-repeat,
    linear-gradient(var(--red), var(--red)) center/28% 100% no-repeat;
  opacity: 0.18;
}
.cross.c1 { top: 12%;  left: 8%;  transform: rotate(15deg);  width: 38px; height: 38px; }
.cross.c2 { top: 70%;  left: 18%; transform: rotate(-12deg); }
.cross.c3 { top: 22%;  left: 62%; transform: rotate(20deg);  width: 28px; height: 28px; }
.cross.c4 { top: 78%;  left: 60%; transform: rotate(-6deg);  width: 46px; height: 46px; opacity: 0.12; }
.dot { position: absolute; border-radius: 50%; background: var(--sky-deep); opacity: 0.4; }
.dot.d1 { width: 18px; height: 18px; top: 30%; left: 30%; }
.dot.d2 { width: 12px; height: 12px; top: 60%; left: 45%; }

/* ============================================================
   MARQUEE
============================================================ */
.marquee {
  background: var(--ink); color: #fff;
  border-block: 3px solid var(--ink);
  overflow: hidden;
  padding: 22px 0;
}
.marquee__track {
  display: flex; gap: 40px; align-items: center;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.04em;
}
.marquee__track span:nth-child(even) { color: var(--red); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 32px;
}
.about__head { max-width: 820px; margin-bottom: 56px; }
.about__head h2 {
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 32px 28px 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--ink);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 var(--ink); }
.card__num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 64px; line-height: 1;
  letter-spacing: -0.05em;
  opacity: 0.18;
  margin-bottom: 8px;
}
.card h3 { font-weight: 800; font-size: 24px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

.card--blue { background: var(--sky); }
.card--red  { background: var(--red); color: #fff; }
.card--red .card__num { opacity: 0.35; }
.card--red p { color: rgba(255,255,255,0.92); }
.card--dark { background: var(--ink); color: #fff; }
.card--dark p { color: rgba(255,255,255,0.78); }
.card--dark .card__num { opacity: 0.3; }

/* pillars */
.about__pillars {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.pillar {
  padding: 36px 28px;
  border-right: 2px solid var(--ink);
}
.pillar:last-child { border-right: 0; }
.pillar span {
  display: inline-block;
  font-size: 24px; color: var(--red);
  margin-bottom: 8px;
}
.pillar h4 {
  font-weight: 900; font-size: 22px;
  margin-bottom: 8px;
}
.pillar p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 820px) {
  .about__pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 2px solid var(--ink); }
  .pillar:last-child { border-bottom: 0; }
}

/* ============================================================
   BOOKS
============================================================ */
.books {
  background: var(--sky-soft);
  padding: 110px 32px;
  border-block: 2px solid var(--ink);
}
.books__head {
  max-width: 1200px; margin: 0 auto 56px;
}
.books__head h2 {
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  margin-bottom: 16px;
}
.books__head p { max-width: 580px; font-size: 18px; color: var(--ink-soft); margin: 0; }

.books__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 880px) { .books__grid { grid-template-columns: 1fr; } }

.book {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: transform .2s ease, box-shadow .2s ease;
}
.book:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 var(--ink); }
@media (max-width: 640px) { .book { grid-template-columns: 1fr; } }

.book__cover {
  background: linear-gradient(135deg, var(--red) 0%, #ff6b78 100%);
  position: relative;
  padding: 28px 22px;
  color: #fff;
  display: flex; align-items: flex-end;
  min-height: 280px;
  border-right: 2px solid var(--ink);
}
.book__cover--alt { background: linear-gradient(135deg, var(--sky-deep) 0%, #6fb0db 100%); }
.book__cover::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.25), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(0,0,0,0.18),    transparent 40%);
  pointer-events: none;
}
.book__cover-inner { position: relative; z-index: 1; }
.book__cover-cross {
  position: absolute; top: -14px; right: 0;
  font-size: 56px; line-height: 1; font-weight: 900;
  opacity: 0.35;
}
.book__badge {
  display: inline-block;
  background: #fff; color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 18px;
}
.book__cover h3 {
  font-weight: 900; font-size: 28px; line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.book__cover p { margin: 0; font-size: 13px; opacity: 0.9; }
@media (max-width: 640px) {
  .book__cover { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 220px; }
}

.book__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.book__body h4 { font-weight: 800; font-size: 24px; }
.book__body > p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.book__author { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.02em; }
.book__meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.book__meta .dot-sep { opacity: 0.5; letter-spacing: 0; }
.book__meta-pages {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red);
}
.book__icon {
  width: 14px; height: 14px;
  display: block;
  flex-shrink: 0;
}
.book__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

.book-slot { display: flex; flex-direction: column; gap: 12px; }

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

.book__contributor {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 2px 2px 0 var(--ink);
}

.contributor__role {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.contributor__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   FOUNDER
============================================================ */
.founder {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 32px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .founder { grid-template-columns: 1fr; } }

.founder__photo {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sky);
  box-shadow: 8px 8px 0 var(--ink);
}
.founder__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
}

.founder__text h2 {
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  margin: 0 0 8px;
}
.founder__role {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red);
  margin: 0 0 24px;
}
.founder__text > p {
  font-size: 17px; line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 580px;
}
blockquote {
  margin: 0;
  padding: 22px 28px;
  border-left: 4px solid var(--red);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ============================================================
   ACTIVITIES
============================================================ */
.activities {
  background: var(--cream);
  padding: 110px 32px;
  border-top: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.activities::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10,10,10,0.08) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}
.activities__head {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto 56px;
}
.activities__head h2 {
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  margin: 0 0 16px;
}
.activities__head p {
  max-width: 600px;
  font-size: 17px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.activities__grid {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.activities__grid[data-cols="1"] { grid-template-columns: minmax(0, 560px); }
.activities__grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .activities__grid,
  .activities__grid[data-cols="1"],
  .activities__grid[data-cols="2"],
  .activities__grid[data-cols="3"] { grid-template-columns: 1fr; }
}

.activity {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 36px 26px 26px;
  display: flex; flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.activity:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 var(--ink); }

/* colored top ribbon per status — clipped to card shape via overflow:hidden */
.activity::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: var(--sky-deep);
}
.activity--live::before { background: var(--red); }
.activity--past::before { background: var(--ink); }
.activity--wip::before  { background: var(--sky-deep); }

.activity__ribbon {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 6px;
}
.activity__num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.22;
  line-height: 1;
}
.activity__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--red); color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.activity__status i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: pulse-light 1.8s infinite;
}
@keyframes pulse-light {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.activity__status--past {
  background: var(--ink);
}
.activity__status--past i { display: none; }
.activity__status--wip {
  background: var(--sky-deep);
}

.activity h3 {
  font-weight: 900; font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.activity__role {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12.5px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.activity--past .activity__role,
.activity--wip  .activity__role { color: var(--sky-deep); }
.activity--past .activity__role { color: var(--ink); }

.activity__desc {
  margin: 0;
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-soft);
}

.activity__tags {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
}
.activity__tags span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.06em;
  padding: 4px 10px;
  background: var(--sky-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

.activity__link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 16px;
  transition: color .2s ease;
}
.activity__link svg {
  width: 14px; height: 14px;
  transition: transform .2s ease;
}
.activity__link:hover { color: var(--red); }
.activity__link:hover svg { transform: translate(2px,-2px); }

/* ============================================================
   CONTACT
============================================================ */
.contact {
  background: var(--ink);
  color: #fff;
  padding: 110px 32px;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "✚";
  position: absolute; top: -40px; right: -20px;
  font-size: 360px; color: var(--red);
  opacity: 0.12; line-height: 1; font-weight: 900;
  pointer-events: none;
}
.contact__inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.contact h2 {
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.04;
  max-width: 720px;
  margin: 0 0 48px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.contact__card:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}
.contact__icon { font-size: 24px; }
.contact__card strong {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.contact__card span { font-size: 14px; opacity: 0.85; }

.contact__form { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.contact__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .contact__form .row { grid-template-columns: 1fr; } }
.contact__form input,
.contact__form textarea {
  font-family: var(--font-body); font-size: 15px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #fff;
  resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(255,255,255,0.55); }
.contact__form input:focus,
.contact__form textarea:focus {
  outline: 0;
  border-color: var(--red);
  background: rgba(255,255,255,0.08);
}
.contact__form .btn { align-self: flex-start; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--cream);
  padding: 48px 32px;
  border-top: 2px solid var(--ink);
}
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  text-align: center;
}
.footer__inner > div {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.footer__inner img { width: 32px; height: 32px; border-radius: 50%; }
.footer p { margin: 0; font-size: 14px; letter-spacing: 0.04em; color: var(--ink-soft); }
.footer small { font-size: 12px; color: var(--ink-soft); }

/* ============================================================
   MODAL (PDF reader)
============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  width: min(1000px, 100%);
  height: min(85vh, 900px);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}
.modal__head strong { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.modal__close:hover { background: var(--red); }
.modal__panel iframe { flex: 1; width: 100%; border: 0; }

/* ============================================================
   DETAIL PAGES (activities)
============================================================ */
.detail-hero {
  position: relative;
  padding: 60px 32px 80px;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.detail-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: var(--sky-deep);
}
.detail-hero--live::before { background: var(--red); }
.detail-hero--past::before { background: var(--ink); }
.detail-hero--wip::before  { background: var(--sky-deep); }

.detail-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.back-link {
  display: block;
  max-width: 1100px;
  margin: 0 auto 32px;
  padding-top: 16px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.back-link:hover { color: var(--red); }

.detail-hero__meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.detail-hero__role {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.detail-hero--past .detail-hero__role { color: var(--ink); }
.detail-hero--wip  .detail-hero__role { color: var(--sky-deep); }

.detail-hero h1 {
  font-weight: 900;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  font-family: var(--font-display);
}
.detail-hero__sub {
  font-size: 19px; line-height: 1.5;
  max-width: 720px;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.detail-hero__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.detail-section {
  padding: 96px 32px;
}
.detail-section--alt {
  background: var(--sky-soft);
  border-block: 2px solid var(--ink);
}
.detail-section__inner {
  max-width: 1100px; margin: 0 auto;
}
.detail-section .eyebrow { margin-bottom: 20px; }
.detail-section h2 {
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 820px;
}
.detail-section p {
  font-size: 16.5px; line-height: 1.65;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 0 18px;
}
.detail-section p:last-child { margin-bottom: 0; }

/* subjects grid (First Study Aid) */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.subject-grid > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 19px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.subject-grid > div:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.subject-grid__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

/* stat grid (First Study Aid impact) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.stat-grid > div {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 4px 4px 0 var(--ink);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-grid > div:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.stat-grid strong {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-grid span {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.feature-grid article {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 4px 4px 0 var(--ink);
}
.feature-grid h3 {
  font-weight: 800; font-size: 21px;
  margin: 0 0 10px;
}
.feature-grid p {
  margin: 0; font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
}

/* photo gallery (Qarabağ MecHack) */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.detail-gallery figure {
  margin: 0;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.detail-gallery figure:hover {
  transform: translate(-2px,-2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.detail-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}
.detail-gallery figcaption {
  padding: 16px 20px;
  font-size: 14px; line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .detail-gallery { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .detail-gallery figcaption { font-size: 13.5px; padding: 14px 16px; }
}

/* timeline (Qarabağ MecHack) */
.timeline {
  display: flex; flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.timeline article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 26px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}
.timeline__year {
  font-size: 36px; line-height: 1;
}
.timeline h3 {
  font-weight: 800; font-size: 20px;
  margin: 0 0 6px;
}
.timeline p {
  margin: 0; font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
}
.timeline__badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red); color: #fff;
  border-radius: 4px; padding: 2px 8px;
  vertical-align: middle; margin-left: 8px;
}
.detail-competition-logo {
  margin: 20px 0 28px;
}
.detail-competition-logo img {
  height: 72px; width: auto; object-fit: contain;
  border-radius: 6px;
}

/* Certificate (MecHack disciplines) */
.cert-single {
  margin: 36px auto 0;
  max-width: 640px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}
.cert-single img {
  display: block;
  width: 100%;
  object-fit: contain;
  border-bottom: 2px solid var(--ink);
}
.cert-single figcaption {
  padding: 14px 18px;
  font-size: 13.5px; line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}

/* disciplines (SmartCast) */
.disciplines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.disciplines article {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: 6px 6px 0 var(--ink);
  text-align: center;
}
.disciplines__icon {
  font-size: 36px;
  color: var(--red);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}
.disciplines h3 {
  font-weight: 900; font-size: 22px;
  margin: 0 0 10px;
}
.disciplines p {
  margin: 0; font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
}

/* SmartCast demo video */
.video-showcase {
  margin-top: 36px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: #000;
}
.video-showcase video {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

/* big CTA strip */
.detail-cta {
  background: var(--ink);
  color: #fff;
  padding: 96px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.detail-cta::before {
  content: "✚";
  position: absolute; top: -40px; left: 50%;
  transform: translateX(-50%);
  font-size: 380px; color: var(--red);
  opacity: 0.1; line-height: 1; font-weight: 900;
  pointer-events: none;
}
.detail-cta__inner {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
}
.detail-cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.detail-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 28px;
}

/* ============================================================
   FILTER BAR (Activities)
============================================================ */
.filter-bar {
  position: relative; z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.filter-pill {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 9px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: background .18s, color .18s, transform .15s, box-shadow .15s;
}
.filter-pill:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
.filter-pill.is-active { background: var(--ink); color: #fff; box-shadow: none; transform: none; }
.filter-pill[data-filter="project"].is-active  { background: var(--red);  border-color: var(--red); }
.filter-pill[data-filter="research"].is-active { background: #1a7a4a;     border-color: #1a7a4a; }
.filter-pill[data-filter="award"].is-active      { background: #9a5e00;     border-color: #9a5e00; }
.filter-pill[data-filter="credential"].is-active { background: #5a4a8a;     border-color: #5a4a8a; }
.filter-pill__count {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.45;
  margin-left: 2px;
}

/* ---- Category badge ---- */
.cat-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  align-self: flex-start;
}
.cat-badge--project    { color: var(--red);  background: rgba(230,57,70,0.07); }
.cat-badge--research   { color: #1a7a4a;     background: rgba(26,122,74,0.07); }
.cat-badge--award      { color: #9a5e00;     background: rgba(154,94,0,0.07); }
.cat-badge--credential { color: #5a4a8a;     background: rgba(90,74,138,0.07); }

/* ---- Research & Award card variants ---- */
.activity--research::before   { background: #1a7a4a; }
.activity--award::before      { background: #9a5e00; }
.activity--credential::before { background: #5a4a8a; }
.activity[hidden]             { display: none !important; }

.activity__status--research { background: #1a7a4a; border-color: #1a7a4a; }
.activity__status--research i { display: none; }
.activity__status--award    { background: #9a5e00; border-color: #9a5e00; }
.activity__status--award i  { display: none; }
.activity__status--credential { background: #5a4a8a; border-color: #5a4a8a; }
.activity__status--credential i { display: none; }

.activity__role--research   { color: #1a7a4a; }
.activity__role--award      { color: #9a5e00; }
.activity__role--credential { color: #5a4a8a; }

/* ---- DOI chip ---- */
.doi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #1a7a4a;
  padding: 5px 11px;
  border: 1.5px solid #1a7a4a;
  border-radius: 8px;
  background: rgba(26,122,74,0.06);
  text-decoration: none;
  transition: background .2s;
  align-self: flex-start;
  margin-top: 12px;
  padding-top: 5px;
  border-top: none;
}
.doi-chip:hover { background: rgba(26,122,74,0.15); }

/* ---- Prize chip ---- */
.prize-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(154,94,0,0.08);
  border: 1.5px solid #9a5e00;
  border-radius: 8px;
  color: #9a5e00;
  align-self: flex-start;
  margin-top: 12px;
}

/* ============================================================
   FARAH PAGE — farah.html
============================================================ */
.farah-hero {
  padding: 72px 32px 96px;
  background: var(--ink);
  color: #fff;
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.farah-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.farah-hero__inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
}
.farah-hero .back-link {
  color: rgba(255,255,255,0.45);
  max-width: none; margin-left: 0;
  padding-top: 0; margin-bottom: 52px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.farah-hero .back-link:hover { color: #fff; }

.farah-hero__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 11vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.farah-hero__name span:last-child { color: var(--red); }

.farah-hero__sub {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 48px;
}

.farah-hero__jumps { display: flex; gap: 12px; flex-wrap: wrap; }
.farah-jump {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: #fff;
  transition: background .18s, border-color .18s;
}
.farah-jump:hover { background: var(--red); border-color: var(--red); }
.farah-jump__count {
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,0.15);
  padding: 2px 7px; border-radius: 999px;
}

/* CV list */
.cv-section { padding: 96px 32px; }
.cv-section--alt {
  background: var(--sky-soft);
  border-top: 2px solid var(--ink);
}
.cv-section__inner { max-width: 860px; margin: 0 auto; }
.cv-section__head { margin-bottom: 48px; }
.cv-section__head h2 {
  font-weight: 900;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.02;
  margin: 0 0 12px;
}
.cv-section__head > p {
  margin: 0;
  font-size: 16px; line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
}

.cv-list { border-top: 2px solid var(--ink); }
.cv-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.cv-entry__body { flex: 1; min-width: 0; }
.cv-entry__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 18px; line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
  transition: color .15s;
}
.cv-entry:hover .cv-entry__title { color: var(--red); }
.cv-entry__desc {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.cv-entry__meta {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px;
  flex-shrink: 0;
  padding-top: 2px;
}
.cv-entry__year {
  font-family: var(--font-display); font-weight: 800;
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.cv-entry__prize {
  font-family: var(--font-display); font-weight: 800;
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a5e00;
  background: rgba(154,94,0,0.08);
  border: 1.5px solid #9a5e00;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.cv-cert-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s;
}
.cv-cert-link:hover { border-color: var(--red); }
.cv-cert-group {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 8px;
}
.cv-cert-group .cv-cert-link { margin-top: 0; }

/* MUN journey timeline (Farah credentials page) */
.mun-tl { position: relative; margin-top: 40px; }
.mun-tl::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.mun-tl__fill {
  position: absolute;
  left: 7px; top: 6px;
  width: 2px; height: 0;
  background: var(--red);
  transition: height 0.08s linear;
  z-index: 0;
}
.mun-tl__item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 32px;
}
.mun-tl__item:last-child { padding-bottom: 0; }
.mun-tl__node {
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--ink);
  z-index: 1;
}
.mun-tl__node--peak { background: var(--red); border-color: var(--red); }
.mun-tl__card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 4px 4px 0 var(--ink);
}
.mun-tl__date {
  font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.mun-tl__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 17px; line-height: 1.25;
  margin: 4px 0 6px;
}
.mun-tl__role {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--sky-soft);
  border-radius: 5px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.mun-tl__desc {
  margin: 0; font-size: 13.5px; line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .mun-tl__item { padding-left: 30px; padding-bottom: 24px; }
  .mun-tl::before { left: 5px; }
  .mun-tl__node { width: 13px; height: 13px; }
  .mun-tl__card { padding: 16px 18px; }
  .mun-tl__title { font-size: 15.5px; }
  .mun-tl__role { display: block; margin-left: 0; margin-top: 6px; width: fit-content; }
}

/* Founder section links → farah.html */
.founder__links {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 28px;
}
.founder__link {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.founder__link:hover { color: var(--red); border-color: var(--red); }

@media (max-width: 640px) {
  .farah-hero { padding: 48px 18px 72px; }
  .farah-hero__name { font-size: clamp(56px, 15vw, 80px); margin-bottom: 24px; }
  .farah-hero__sub { font-size: 11px; margin-bottom: 32px; }
  .cv-section { padding: 64px 18px; }
  .cv-section__head { margin-bottom: 32px; }
  .cv-entry { flex-direction: column; gap: 10px; }
  .cv-entry__meta { flex-direction: row; align-items: center; padding-top: 0; }
}

/* ============================================================
   MOBILE OPTIMIZATIONS
============================================================ */

/* Tablet / small laptop */
@media (max-width: 900px) {
  .hero { padding: 56px 22px 72px; }
  .hero__title { font-size: clamp(36px, 9vw, 64px); }
  .hero__sub { font-size: 16px; margin-bottom: 28px; }
  .hero__tag { font-size: 12px; padding: 7px 14px; margin-bottom: 20px; }
  .about, .founder { padding: 80px 22px; }
  .books, .contact { padding: 80px 22px; }
  .about__head h2,
  .books__head h2,
  .contact h2,
  .founder__text h2 { font-size: clamp(30px, 5.6vw, 48px); }
}

/* Phones */
@media (max-width: 640px) {
  /* tighten section spacing */
  .hero        { padding: 40px 18px 56px; }
  .about       { padding: 64px 18px; }
  .books       { padding: 64px 18px; }
  .founder     { padding: 64px 18px; gap: 32px; }
  .contact     { padding: 64px 18px; }
  .footer      { padding: 36px 18px; }

  /* hero */
  .hero__title { font-size: clamp(34px, 10vw, 52px); line-height: 1.02; }
  .hero__sub { font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
  .hero__tag {
    font-size: 11px;
    letter-spacing: 0.02em;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .hero__actions { gap: 10px; margin-bottom: 36px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__stats { gap: 12px; }
  .hero__stats > div {
    padding: 14px 12px;
    box-shadow: 3px 3px 0 var(--ink);
    border-radius: 14px;
  }
  .hero__stats strong { font-size: 22px; }
  .hero__stats span { font-size: 10px; }

  /* hide decorative crosses on phones - they clutter */
  .cross, .dot { display: none; }

  /* marquee */
  .marquee { padding: 14px 0; }
  .marquee__track { font-size: 18px; gap: 24px; }

  /* eyebrow + headings */
  .eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 18px; letter-spacing: 0.2em; }
  .about__head, .books__head, .contact__inner { margin-bottom: 36px; }
  .about__head { margin-bottom: 36px; }
  .about__head h2,
  .books__head h2,
  .contact h2,
  .founder__text h2 {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.05;
  }
  .books__head p { font-size: 15px; }
  .books__head h2 { margin-bottom: 12px; }

  /* cards */
  .card {
    padding: 24px 22px;
    border-radius: 22px;
    box-shadow: 4px 4px 0 var(--ink);
    min-height: 0;
  }
  .card:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
  .card__num { font-size: 48px; }
  .card h3 { font-size: 21px; }
  .card p { font-size: 14.5px; }

  .about__pillars { margin-top: 40px; border-radius: 22px; }
  .pillar { padding: 24px 22px; }
  .pillar h4 { font-size: 19px; }

  /* books */
  .books__grid { gap: 18px; }
  .book {
    border-radius: 22px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .book:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
  .book__cover { min-height: 180px; padding: 22px 20px; }
  .book__cover h3 { font-size: 24px; }
  .book__cover-cross { font-size: 44px; top: -10px; }
  .book__body { padding: 22px 20px; gap: 12px; }
  .book__body h4 { font-size: 21px; }
  .book__body > p { font-size: 14.5px; }
  .book__actions { gap: 8px; }
  .book__actions .btn { flex: 1 1 auto; justify-content: center; padding: 12px 16px; font-size: 14px; }

  /* founder */
  .founder__photo { max-width: 280px; margin: 0 auto; box-shadow: 5px 5px 0 var(--ink); }
  .founder__text { text-align: left; }
  .founder__role { font-size: 12px; margin-bottom: 18px; }
  .founder__text > p { font-size: 15.5px; }
  blockquote { font-size: 16px; padding: 18px 22px; }

  /* detail pages */
  .detail-hero { padding: 28px 18px 56px; }
  .back-link { margin-bottom: 22px; padding-top: 8px; font-size: 12px; }
  .detail-hero__meta { gap: 10px; margin-bottom: 18px; }
  .detail-hero__role { font-size: 11.5px; }
  .detail-hero h1 { font-size: clamp(36px, 11vw, 56px); margin-bottom: 18px; }
  .detail-hero__sub { font-size: 16px; margin-bottom: 28px; }
  .detail-hero__actions .btn { width: 100%; justify-content: center; }

  .detail-section { padding: 56px 18px; }
  .detail-section h2 { font-size: clamp(26px, 7.5vw, 36px); margin-bottom: 18px; }
  .detail-section p { font-size: 15.5px; }

  .subject-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .subject-grid > div { padding: 18px 16px; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }
  .subject-grid > div:hover { transform: none; box-shadow: 3px 3px 0 var(--ink); }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .feature-grid article { padding: 22px; box-shadow: 3px 3px 0 var(--ink); }
  .feature-grid h3 { font-size: 18px; }

  .stat-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .stat-grid > div { padding: 20px 18px; box-shadow: 3px 3px 0 var(--ink); }
  .stat-grid > div:hover { transform: none; box-shadow: 3px 3px 0 var(--ink); }
  .stat-grid strong { font-size: 32px; }

  .timeline { gap: 10px; margin-top: 24px; }
  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 22px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .timeline__year { font-size: 28px; }
  .timeline h3 { font-size: 17px; }

  .disciplines { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .disciplines article { padding: 24px 22px; box-shadow: 4px 4px 0 var(--ink); }
  .disciplines__icon { font-size: 28px; margin-bottom: 10px; }
  .disciplines h3 { font-size: 19px; }

  .detail-cta { padding: 56px 18px; }
  .detail-cta::before { font-size: 220px; top: -20px; }
  .detail-cta .btn { width: 100%; justify-content: center; }

  /* activities */
  .activities { padding: 64px 18px; }
  .activities__head { margin-bottom: 36px; }
  .activities__head h2 { font-size: clamp(28px, 8vw, 40px); line-height: 1.05; }
  .activities__head p { font-size: 15px; }
  .activities__grid { gap: 18px; }
  .activity {
    padding: 24px 22px;
    border-radius: 22px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .activity:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
  .activity h3 { font-size: 22px; }
  .activity__num { font-size: 26px; }
  .activity__status { font-size: 10px; padding: 5px 10px; }
  .activity__role { font-size: 11.5px; }
  .activity__desc { font-size: 14px; }
  .activity__tags span { font-size: 10.5px; padding: 4px 9px; }

  /* contact */
  .contact::before { font-size: 220px; top: -20px; right: -40px; }
  .contact__grid { gap: 12px; margin-bottom: 36px; }
  .contact__card { padding: 20px; }
  .contact__card strong { font-size: 16px; }
  .contact__card span { font-size: 13px; }
  .contact__form { gap: 12px; }
  .contact__form input,
  .contact__form textarea {
    font-size: 16px; /* prevents iOS zoom-on-focus */
    padding: 13px 14px;
    border-radius: 10px;
  }
  .contact__form .btn { width: 100%; justify-content: center; }

  /* button + general tap targets */
  .btn { padding: 13px 18px; font-size: 14px; }

  /* footer */
  .footer__inner > div { font-size: 16px; }
  .footer p { font-size: 13px; }
  .footer small { font-size: 11px; line-height: 1.5; }

  /* modal: fullscreen on phones */
  .modal { padding: 0; }
  .modal__panel {
    width: 100%;
    height: 100dvh;
    height: 100vh;
    border-radius: 0;
    border-width: 0;
    box-shadow: none;
  }
  .modal__head { padding: 12px 16px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .nav__brand span { display: none; }
  .hero__title { font-size: 30px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* Respect users who want less motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .hero__logo img,
  .pulse,
  .activity__status i { animation: none !important; }
  html { scroll-behavior: auto; }
}
