/* ============================================================
   HUMAN ATLAS GUIDE — Design System & Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&family=Inter:wght@300;400;450;500;600&display=swap');

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea { font: inherit; }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Palette */
  --obsidian:   #1A1A1B;
  --clay:       #D4A373;
  --sage:       #8B9474;
  --parchment:  #F9F7F2;

  /* Light Mode Semantic Tokens */
  --bg:             #F9F7F2;
  --bg-alt:         #EDE9DE;
  --bg-card:        #FFFFFF;
  --text:           #1A1A1B;
  --text-secondary: #3A3A3B;
  --text-muted:     #6A6A6B;
  --accent:         #D4A373;
  --accent-hover:   #C49060;
  --accent-green:   #8B9474;
  --border:         rgba(26, 26, 27, 0.1);
  --border-strong:  rgba(26, 26, 27, 0.22);
  --nav-bg:         rgba(249, 247, 242, 0.88);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing Scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;
  --s10: 8rem;

  /* Layout */
  --max-width:    1320px;
  --content-width: 720px;
  --nav-height:   72px;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-2xl:   36px;

  /* Motion */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 280ms var(--ease);

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1),  0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.14);
}

[data-theme="dark"] {
  --bg:             #0D0F1A;
  --bg-alt:         #111320;
  --bg-card:        #161826;
  --text:           #F9F7F2;
  --text-secondary: #C8C4BA;
  --text-muted:     #7A788A;
  --border:         rgba(249, 247, 242, 0.08);
  --border-strong:  rgba(249, 247, 242, 0.18);
  --nav-bg:         rgba(13, 15, 26, 0.88);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);
}

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

.display-1 {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.045em;
}
.display-2 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-secondary);
}
.caption {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s5);
}
@media (min-width: 768px) { .container { padding: 0 var(--s8); } }

.section { padding: var(--s9) 0; }
.section-sm { padding: var(--s7) 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s5);
}
@media (min-width: 768px) { .nav__inner { padding: 0 var(--s8); } }

.nav__logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}
.nav__logo-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.nav__logo-tagline {
  font-size: 0.575rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.nav__links {
  display: none;
  align-items: center;
  gap: var(--s7);
}
@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.active { color: var(--text); }
.nav__link.active::after,
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: var(--s3); }
.nav__theme-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.nav__theme-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg-alt);
}
.nav__theme-btn svg { width: 15px; height: 15px; }

.nav__menu-btn {
  display: flex; flex-direction: column; gap: 5px;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
}
@media (min-width: 768px) { .nav__menu-btn { display: none; } }
.nav__menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 400ms var(--ease);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-height) + var(--s7)) var(--s6) var(--s6);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__links { display: flex; flex-direction: column; gap: var(--s4); }
.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 2.75rem; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--s4);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu__link:hover { color: var(--accent); padding-left: var(--s3); }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: var(--nav-height); left: 0;
  z-index: 101;
  height: 2px;
  background: linear-gradient(90deg, var(--clay), var(--sage));
  width: 0%;
  transition: width 80ms linear;
}

/* ============================================================
   HERO — HOME PAGE
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 55% 45%; align-items: stretch; }
}
.hero__content {
  padding: var(--s8) var(--s5) var(--s8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s5);
  position: relative; z-index: 2;
}
@media (min-width: 768px) { .hero__content { padding: var(--s10) var(--s8) var(--s9); } }

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.045em;
  color: var(--text);
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__desc {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 460px;
}
.hero__cta { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.hero__visual {
  position: relative;
  height: 55vh;
  min-height: 420px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero__visual { height: 100%; min-height: unset; }
}
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 50%);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .hero__visual::after {
    background: linear-gradient(to right, var(--bg) 0%, transparent 30%);
  }
}
.hero__visual::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none; z-index: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 0.8rem 1.6rem;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: var(--obsidian);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-ghost {
  border: 1px solid var(--border-strong); color: var(--text-secondary);
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--text);
  transform: translateY(-1px);
}
.btn-text {
  color: var(--text); padding: 0; gap: var(--s3);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.btn-text .btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--border-strong);
  transition: all var(--transition);
}
.btn-text:hover .btn-arrow {
  background: var(--accent); border-color: var(--accent);
  transform: translateX(4px);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
}
.card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card__image {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
}
.card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.card:hover .card__image img { transform: scale(1.05); }
.card__body {
  padding: var(--s5); flex: 1;
  display: flex; flex-direction: column; gap: var(--s3);
}
.card__meta { display: flex; align-items: center; gap: var(--s3); }
.card__category {
  font-size: 0.575rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 2px 8px; border-radius: 2px;
}
.card__category.sage { color: var(--accent-green); border-color: var(--accent-green); }
.card__date { font-size: 0.75rem; color: var(--text-muted); }
.card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 600; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--text);
  transition: color var(--transition);
}
.card:hover .card__title { color: var(--accent); }
.card__excerpt {
  font-size: 0.875rem; line-height: 1.65;
  color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card__author { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.card__read-time { font-size: 0.6875rem; color: var(--text-muted); }

/* Featured Card */
.card-featured {
  display: grid; grid-template-columns: 1fr;
  background: var(--bg-card);
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none; color: var(--text);
}
@media (min-width: 768px) { .card-featured { grid-template-columns: 1.3fr 1fr; } }
.card-featured:hover { box-shadow: var(--shadow-xl); border-color: transparent; }
.card-featured__image {
  aspect-ratio: 4/3; overflow: hidden; position: relative;
}
@media (min-width: 768px) {
  .card-featured__image { aspect-ratio: unset; min-height: 420px; }
}
.card-featured__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.card-featured:hover .card-featured__image img { transform: scale(1.04); }
.card-featured__badge {
  position: absolute; top: var(--s4); left: var(--s4);
  background: var(--accent); color: var(--obsidian);
  font-size: 0.575rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
}
.card-featured__body {
  padding: var(--s7) var(--s6);
  display: flex; flex-direction: column;
  justify-content: center; gap: var(--s4);
}
.card-featured__category {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.card-featured__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.03em; color: var(--text);
  transition: color var(--transition);
}
.card-featured:hover .card-featured__title { color: var(--accent); }
.card-featured__excerpt {
  font-size: 0.9375rem; line-height: 1.7;
  color: var(--text-secondary);
}
.card-featured__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s4); border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ============================================================
   GRIDS
   ============================================================ */
.articles-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s5);
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

.bento-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s4);
}
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-grid .card:nth-child(1) { grid-column: span 2; }
  .bento-grid .card:nth-child(4) { grid-column: span 2; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s7);
  gap: var(--s4); flex-wrap: wrap;
}
.section-header__label {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s2);
}
.section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1; color: var(--text);
}

/* ============================================================
   FILTER TAGS
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s7); }
.tag {
  display: inline-flex; align-items: center;
  padding: var(--s2) var(--s4);
  border-radius: 999px; font-size: 0.75rem;
  font-weight: 500; letter-spacing: 0.04em;
  border: 1px solid var(--border); color: var(--text-secondary);
  background: transparent; transition: all var(--transition); cursor: pointer;
}
.tag:hover, .tag.active {
  border-color: var(--accent); color: var(--text);
  background: rgba(212, 163, 115, 0.12);
}

/* ============================================================
   ARTICLE PAGE LAYOUT
   ============================================================ */
.article { padding-top: var(--nav-height); }
.article__header { padding: var(--s9) 0 var(--s7); }
.article__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s3); margin-bottom: var(--s5);
}
.article__category {
  font-size: 0.575rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 3px 10px; border-radius: 2px;
}
.article__separator { color: var(--border-strong); }
.article__date, .article__read-time { font-size: 0.75rem; color: var(--text-muted); }
.article__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.04em; color: var(--text);
  margin-bottom: var(--s5); max-width: 900px;
}
.article__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75;
  color: var(--text-secondary); max-width: 680px;
  margin-bottom: var(--s5);
}
.article__author { display: flex; align-items: center; gap: var(--s3); }
.article__author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%; overflow: hidden;
  background: var(--bg-alt); flex-shrink: 0;
}
.article__author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article__author-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.article__author-role { font-size: 0.75rem; color: var(--text-muted); }

.article__hero {
  width: 100%; aspect-ratio: 21/9;
  overflow: hidden; border-radius: var(--radius-lg);
  margin-bottom: var(--s8); position: relative;
}
@media (max-width: 768px) {
  .article__hero { aspect-ratio: 16/9; border-radius: var(--radius-md); }
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__hero-caption {
  position: absolute; bottom: var(--s3); right: var(--s4);
  font-size: 0.575rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Article Body */
.article__body { max-width: var(--content-width); margin: 0 auto; }
.article__body p {
  font-size: 1.0625rem; line-height: 1.85;
  color: var(--text-secondary); margin-bottom: var(--s5);
}
.article__body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700;
  letter-spacing: -0.03em; color: var(--text);
  margin-top: var(--s8); margin-bottom: var(--s4); line-height: 1.2;
}
.article__body h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem; font-weight: 600; color: var(--text);
  margin-top: var(--s7); margin-bottom: var(--s3);
}
.article__body ul, .article__body ol {
  margin-bottom: var(--s5); padding-left: var(--s6);
}
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li {
  font-size: 1.0625rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: var(--s2);
}
.article__body strong { font-weight: 600; color: var(--text); }
.article__body em { font-style: italic; }
.article__body a {
  color: var(--accent); text-decoration: underline;
  text-decoration-color: rgba(212, 163, 115, 0.4);
  text-underline-offset: 3px; transition: text-decoration-color var(--transition);
}
.article__body a:hover { text-decoration-color: var(--accent); }

/* Pull Quote */
.pull-quote {
  padding: var(--s6); margin: var(--s7) 0;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.pull-quote p {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.25rem, 2vw, 1.625rem) !important;
  font-style: italic; color: var(--text) !important;
  line-height: 1.5 !important; margin: 0 !important;
}

/* Callout Box */
.callout {
  padding: var(--s5) var(--s6); border-radius: var(--radius-lg);
  background: rgba(139, 148, 116, 0.08);
  border: 1px solid rgba(139, 148, 116, 0.28);
  margin: var(--s6) 0;
}
.callout p { margin: 0 !important; }
.callout-title {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-green); margin-bottom: var(--s3) !important;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding-top: calc(var(--nav-height) + var(--s9));
  padding-bottom: var(--s9);
}
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s8); align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--s10); } }
.about-image {
  aspect-ratio: 3/4; border-radius: var(--radius-xl); overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.values-grid { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card {
  padding: var(--s5); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--accent); background: var(--bg-card);
  box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.value-card__number {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 800;
  color: var(--accent); opacity: 0.3; line-height: 1; margin-bottom: var(--s3);
}
.value-card__title {
  font-family: var(--font-serif); font-size: 1.25rem;
  font-weight: 600; color: var(--text); margin-bottom: var(--s2);
}
.value-card__desc { font-size: 0.875rem; line-height: 1.65; color: var(--text-muted); }

/* Team Card */
.team-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--s4);
}
.team-card__avatar {
  width: 120px; height: 120px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--bg-alt);
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name {
  font-family: var(--font-serif); font-size: 1.25rem;
  font-weight: 600; color: var(--text);
}
.team-card__role { font-size: 0.75rem; color: var(--accent); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.team-card__bio { font-size: 0.875rem; line-height: 1.65; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: var(--s9) 0 var(--s6); margin-top: var(--s10);
}
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s8);
  margin-bottom: var(--s8);
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand h3 {
  font-family: var(--font-serif); font-size: 1.5rem;
  font-weight: 700; color: var(--text); margin-bottom: var(--s3);
}
.footer__brand p {
  font-size: 0.875rem; line-height: 1.65; color: var(--text-muted);
  max-width: 280px; margin-bottom: var(--s5);
}
.footer__col-title {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--s4);
}
.footer__links { display: flex; flex-direction: column; gap: var(--s3); }
.footer__link {
  font-size: 0.875rem; color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--accent); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s5); border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: var(--s3);
}
.footer__copy { font-size: 0.75rem; color: var(--text-muted); }
.footer__social { display: flex; align-items: center; gap: var(--s4); }
.footer__social-link {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); transition: color var(--transition);
}
.footer__social-link:hover { color: var(--accent); }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  display: flex; align-items: center; gap: var(--s8);
  padding: var(--s6) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.stat-strip::-webkit-scrollbar { display: none; }
.stat { flex-shrink: 0; text-align: center; }
.stat__value {
  font-family: var(--font-serif); font-size: 2.5rem;
  font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.04em;
}
.stat__label {
  font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-top: var(--s1);
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--bg-alt); border-radius: var(--radius-xl);
  padding: var(--s9) var(--s6); text-align: center;
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .newsletter { padding: var(--s9) var(--s10); } }
.newsletter h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); margin-bottom: var(--s4);
}
.newsletter p {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 480px; margin: 0 auto var(--s6);
}
.newsletter-form {
  display: flex; gap: var(--s3);
  max-width: 420px; margin: 0 auto; flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1; min-width: 200px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: 0.875rem; outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-muted); }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related {
  padding: var(--s8) 0; border-top: 1px solid var(--border); margin-top: var(--s10);
}
.related__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s5);
}
@media (min-width: 768px) { .related__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden; padding: var(--s4) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.marquee__track {
  display: flex; gap: var(--s8);
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-serif); font-size: 0.9375rem;
  font-style: italic; color: var(--text-muted); flex-shrink: 0;
  display: flex; align-items: center; gap: var(--s6);
}
.marquee__item::after {
  content: '◆'; font-style: normal;
  font-size: 0.4rem; color: var(--accent);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   ANIMATIONS & SCROLL REVEAL
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 700ms var(--ease) both; }
.animate-fade-up.delay-1 { animation-delay: 120ms; }
.animate-fade-up.delay-2 { animation-delay: 240ms; }
.animate-fade-up.delay-3 { animation-delay: 360ms; }
.animate-fade-up.delay-4 { animation-delay: 480ms; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { height: 1px; background: var(--border); margin: var(--s7) 0; }

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.scroll-indicator {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--s2);
  color: var(--text-muted); font-size: 0.6875rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: var(--s3);
}
.scroll-indicator__line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2.5s ease infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0) translateY(-100%); opacity: 1; }
  100% { transform: scaleY(1) translateY(0%); opacity: 0; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-accent  { color: var(--accent); }
.text-sage    { color: var(--accent-green); }
.text-muted   { color: var(--text-muted); }
.font-serif   { font-family: var(--font-serif); }
.text-center  { text-align: center; }
.mt-auto      { margin-top: auto; }
.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; }

/* Page padding top (below fixed nav) */
.page-top { padding-top: var(--nav-height); }

/* Article page back link */
.back-link {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--s6);
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 14px; height: 14px; }

/* Grain texture overlay on hero */
.hero__visual .grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 128px;
}
