/* ============================================================
   HUMAN ATLAS ONLINE — Global Design System
   ============================================================ */

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

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bone:   #F0ECE6;
  --color-basalt: #1A1B1A;
  --color-sienna: #A8573C;
  --color-indigo: #2C3A47;

  /* Semantic */
  --bg:           var(--color-bone);
  --bg-surface:   #E6E1DB;
  --bg-inset:     #D9D3CC;
  --text:         var(--color-basalt);
  --text-meta:    var(--color-indigo);
  --accent:       var(--color-sienna);
  --border:       rgba(26,27,26,0.12);

  /* Typography */
  --serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --gutter:  clamp(20px, 6vw, 96px);
  --gap-xl:  clamp(32px, 5vw, 72px);
  --gap-lg:  clamp(24px, 3vw, 48px);
  --gap-md:  clamp(16px, 2vw, 32px);
  --gap-sm:  clamp(8px,  1vw, 16px);

  /* Nav */
  --nav-h: 72px;

  /* Cinematic transitions */
  --t-cin:   1.5s ease-out;
  --t-fast:  0.28s ease;
  --t-mid:   0.45s ease;
}

html.dark {
  --bg:          var(--color-basalt);
  --bg-surface:  #212221;
  --bg-inset:    #2A2B2A;
  --text:        var(--color-bone);
  --text-meta:   #8A9BAB;
  --border:      rgba(240,236,230,0.10);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   UTILITY
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-shrink: 0;
}

.nav__logo a {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  transition: color var(--t-fast);
}

.nav__logo a:hover { color: var(--accent); }

.nav__logo-sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 52px);
}

.nav__links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-meta);
  transition: color var(--t-fast);
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--t-fast);
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }

.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

.nav__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__theme-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}

.nav__theme-btn:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
}

.icon-moon, .icon-sun { display: block; }
html.dark .icon-moon { display: none; }
.icon-sun { display: none; }
html.dark .icon-sun { display: block; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* Mobile nav drawer */
.nav__drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 190;
  background: var(--bg);
  padding: 40px var(--gutter);
  flex-direction: column;
  gap: 28px;
  border-top: 1px solid var(--border);
}

.nav__drawer.is-open { display: flex; }

.nav__drawer a {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--t-fast);
}

.nav__drawer a:hover { color: var(--accent); }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ============================================================
   HERO (HOME)
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

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

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(26,27,26,0.90) 0%,
    rgba(26,27,26,0.40) 45%,
    rgba(26,27,26,0.08) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(48px, 9vh, 100px);
  padding-left: clamp(40px, 8vw, 128px);
  max-width: 960px;
}

@media (max-width: 768px) {
  .hero__content {
    padding-top: clamp(48px, 8vh, 96px);
    padding-bottom: clamp(36px, 6vh, 72px);
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sienna);
  margin-bottom: 22px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--color-sienna);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7.5vw, 6.8rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--color-bone);
  margin-bottom: 28px;
}

.hero__subtitle {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(240,236,230,0.72);
  max-width: 520px;
  margin-bottom: 44px;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-bone);
  padding: 15px 32px;
  border: 1px solid rgba(240,236,230,0.35);
  transition: background var(--t-fast), border-color var(--t-fast);
}

.btn-primary:hover {
  background: var(--color-sienna);
  border-color: var(--color-sienna);
}

.btn-ghost {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,236,230,0.55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}

.btn-ghost:hover { color: var(--color-bone); }

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-text {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,236,230,0.4);
  writing-mode: vertical-lr;
}

.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(240,236,230,0.0), rgba(240,236,230,0.35));
  animation: linePulse 2.2s ease-in-out infinite;
}

@keyframes linePulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.85); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   ARTICLE CARD  (shared component)
   ============================================================ */
.card {
  display: block;
  position: relative;
  cursor: pointer;
}

.card__img-wrap {
  position: relative;
  overflow: hidden;
}

.card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-cin), filter var(--t-cin);
  will-change: transform;
}

.card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(26,27,26,0.32) 100%);
  opacity: 0;
  transition: opacity var(--t-cin);
  pointer-events: none;
}

.card:hover .card__img-wrap img {
  transform: scale(1.03);
  filter: brightness(0.86);
}

.card:hover .card__img-wrap::after { opacity: 1; }

.card__body {
  padding: 22px 0 0;
}

.card__category {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card__title {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 10px;
  transition: color var(--t-fast);
}

.card:hover .card__title { color: var(--accent); }

.card__excerpt {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-meta);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-meta);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-meta);
  flex-shrink: 0;
}

/* ============================================================
   READ MORE LINK
   ============================================================ */
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--t-fast);
  margin-top: 16px;
}

.read-link::after {
  content: '→';
  transition: transform var(--t-fast);
}

.read-link:hover { gap: 14px; }
.read-link:hover::after { transform: translateX(4px); }

/* ============================================================
   HOME — FEATURE DISPATCH
   ============================================================ */

.feature {
  padding: clamp(56px, 9vh, 112px) var(--gutter);
}

.feature__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-xl);
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.feature__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.feature__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-cin), filter var(--t-cin);
  will-change: transform;
}

.feature__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(26,27,26,0.28) 100%);
  opacity: 0;
  transition: opacity var(--t-cin);
  pointer-events: none;
}

.feature:hover .feature__img-wrap img {
  transform: scale(1.03);
  filter: brightness(0.87);
}

.feature:hover .feature__img-wrap::after { opacity: 1; }

.feature__content { padding-left: clamp(0px, 2vw, 32px); }

.feature__label {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 10px;
}

.feature__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 22px;
}

.feature__excerpt {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-meta);
  margin-bottom: 32px;
}

.feature__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-meta);
}

/* ============================================================
   HOME — DISPATCHES GRID (3 col)
   ============================================================ */
.dispatches {
  padding: 0 var(--gutter) clamp(64px, 10vh, 120px);
}

.dispatches__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--gap-lg);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dispatches__title {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--text);
}

.dispatches__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.dispatches__grid .card__img-wrap { height: clamp(200px, 28vw, 320px); }

/* ============================================================
   HOME — OBSERVATORY TEASER
   ============================================================ */
.obs-teaser {
  background: var(--color-basalt);
  padding: clamp(64px, 10vh, 120px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

html.dark .obs-teaser { background: #101110; }

.obs-teaser__eyebrow {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-sienna);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.obs-teaser__eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--color-sienna);
}

.obs-teaser__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-bone);
  margin-bottom: 24px;
}

.obs-teaser__text {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.82;
  color: rgba(240,236,230,0.6);
  margin-bottom: 36px;
}

.btn-outline-bone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bone);
  padding: 14px 30px;
  border: 1px solid rgba(240,236,230,0.28);
  transition: background var(--t-fast), border-color var(--t-fast);
}

.btn-outline-bone:hover {
  background: var(--color-sienna);
  border-color: var(--color-sienna);
}

.obs-teaser__stats {
  border-top: 1px solid rgba(240,236,230,0.12);
  padding-top: 32px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.stat__n {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--color-sienna);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.stat__l {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,236,230,0.38);
}

.obs-teaser__visual {
  position: relative;
  align-self: stretch;
  min-height: 320px;
  overflow: hidden;
}

.obs-teaser__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(30%) brightness(0.6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-basalt);
  padding: clamp(48px, 8vh, 88px) var(--gutter) clamp(24px, 4vh, 40px);
}

html.dark .footer { background: #0D0E0D; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--gap-md);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(240,236,230,0.1);
  margin-bottom: 32px;
}

.footer__brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-bone);
  margin-bottom: 12px;
}

.footer__brand-sub {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sienna);
  margin-bottom: 16px;
}

.footer__brand-text {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(240,236,230,0.45);
  max-width: 260px;
}

.footer__col-title {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sienna);
  margin-bottom: 18px;
}

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

.footer__links a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(240,236,230,0.5);
  transition: color var(--t-fast);
  line-height: 1.5;
}

.footer__links a:hover { color: var(--color-bone); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(240,236,230,0.28);
  letter-spacing: 0.04em;
}

/* ============================================================
   GALLERY PAGE — HEADER
   ============================================================ */
.gallery-hd {
  padding: clamp(56px, 9vh, 108px) var(--gutter) clamp(40px, 6vh, 72px);
  border-bottom: 1px solid var(--border);
}

.gallery-hd__eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.gallery-hd__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.028em;
  color: var(--text);
  max-width: 750px;
  margin-bottom: 22px;
}

.gallery-hd__desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--text-meta);
  max-width: 540px;
}

.gallery-hd__count {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
  margin-top: 16px;
}

/* ============================================================
   GALLERY PAGE — DOCUMENTARY GRID
   ============================================================ */
.gallery-grid {
  padding: clamp(40px, 6vh, 72px) var(--gutter) clamp(64px, 10vh, 128px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  row-gap: clamp(28px, 4vw, 56px);
  column-gap: clamp(16px, 2vw, 32px);
}

/* Row 1: Full-width hero */
.g-hero {
  grid-column: 1 / -1;
}
.g-hero .card__img-wrap {
  height: clamp(380px, 62vh, 680px);
}
.g-hero .card__title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  max-width: 720px;
}

/* Row 2: 8/12 + 4/12 */
.g-two-thirds {
  grid-column: span 8;
}
.g-two-thirds .card__img-wrap {
  height: clamp(280px, 46vh, 500px);
}
.g-two-thirds .card__title {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  max-width: 560px;
}

.g-one-third {
  grid-column: span 4;
}
.g-one-third .card__img-wrap {
  height: clamp(280px, 46vh, 500px);
}

/* Row 3: three equal columns */
.g-third {
  grid-column: span 4;
}
.g-third .card__img-wrap {
  height: clamp(220px, 32vh, 360px);
}

/* ============================================================
   OBSERVATORY PAGE
   ============================================================ */
.obs-hero {
  position: relative;
  height: clamp(400px, 58vh, 640px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.obs-hero__bg {
  position: absolute;
  inset: 0;
}

.obs-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.obs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,27,26,0.92) 0%,
    rgba(26,27,26,0.50) 55%,
    rgba(26,27,26,0.10) 100%
  );
}

.obs-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(44px, 8vh, 88px);
}

.obs-hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-sienna);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.obs-hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--color-sienna);
  flex-shrink: 0;
}

.obs-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.028em;
  color: var(--color-bone);
}

/* Observatory manifesto body */
.obs-body {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 108px) var(--gutter);
}

.obs-body .lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}

.obs-body p {
  font-family: var(--sans);
  font-size: clamp(0.92rem, 1.4vw, 1.04rem);
  font-weight: 300;
  line-height: 1.88;
  color: var(--text-meta);
  margin-bottom: 28px;
}

.obs-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 60px 0 18px;
}

.obs-body__section-num {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

/* Observatory pillars */
.obs-pillars {
  background: var(--bg-surface);
  padding: clamp(56px, 9vh, 108px) var(--gutter);
}

html.dark .obs-pillars { background: var(--bg-inset); }

.obs-pillars__hd {
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.obs-pillars__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
  max-width: 980px;
  margin: 0 auto;
}

.pillar {
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: border-color var(--t-fast);
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height var(--t-mid);
}

.pillar:hover { border-color: rgba(168,87,60,0.35); }
.pillar:hover::before { height: 100%; }

.pillar__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 14px;
}

.pillar__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.pillar__text {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--text-meta);
}

/* ============================================================
   ARTICLE PAGE — MASTHEAD
   ============================================================ */
.art-mast {
  position: relative;
  height: clamp(480px, 72vh, 780px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.art-mast__bg {
  position: absolute;
  inset: 0;
}

.art-mast__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.art-mast__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,27,26,0.94) 0%,
    rgba(26,27,26,0.55) 45%,
    rgba(26,27,26,0.08) 100%
  );
}

.art-mast__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(44px, 8vh, 80px);
  max-width: 900px;
}

.art-mast__category {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sienna);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.art-mast__category::before {
  content: '';
  display: block;
  width: 22px; height: 1px;
  background: var(--color-sienna);
  flex-shrink: 0;
}

.art-mast__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--color-bone);
  margin-bottom: 22px;
}

.art-mast__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(240,236,230,0.55);
}

.art-mast__meta-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(240,236,230,0.35);
  flex-shrink: 0;
}

/* ============================================================
   ARTICLE PAGE — BODY
   ============================================================ */
.art-body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--gutter);
}

.art-body p {
  font-family: var(--sans);
  font-size: clamp(0.93rem, 1.4vw, 1.05rem);
  font-weight: 300;
  line-height: 1.88;
  color: var(--text-meta);
  margin-bottom: 28px;
}

.art-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--text);
  margin: 56px 0 18px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.art-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.art-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 40px 0 14px;
}

.art-body h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 30px 0 10px;
}

.art-body .pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.48;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 24px 28px 24px 32px;
  margin: 48px 0;
  background: var(--bg-surface);
}

/* ============================================================
   ARTICLE NAV (bottom of article)
   ============================================================ */
.art-nav {
  padding: clamp(40px, 7vh, 72px) var(--gutter);
  border-top: 1px solid var(--border);
}

.art-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 52px;
  transition: gap var(--t-fast);
}

.art-nav__back::before {
  content: '←';
  transition: transform var(--t-fast);
}

.art-nav__back:hover { gap: 14px; }
.art-nav__back:hover::before { transform: translateX(-4px); }

.art-nav__related-label {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.art-nav__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.art-nav__related-grid .card__img-wrap { height: 168px; }
.art-nav__related-grid .card__title { font-size: 0.95rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature__inner {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .feature__content { padding-left: 0; }

  .obs-teaser {
    grid-template-columns: 1fr;
  }

  .obs-teaser__visual { min-height: 260px; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .pillars-grid { grid-template-columns: 1fr; }

  .art-nav__related-grid { grid-template-columns: 1fr 1fr; }
}

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

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .g-two-thirds,
  .g-one-third,
  .g-third { grid-column: 1 / -1; }

  .g-hero .card__img-wrap,
  .g-two-thirds .card__img-wrap { height: clamp(240px, 52vw, 400px); }

  .dispatches__grid { grid-template-columns: 1fr 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .art-nav__related-grid { grid-template-columns: 1fr; }

  .obs-teaser__stats { grid-template-columns: repeat(3, 1fr); }

  .art-body {
    padding-top: 28px;
    padding-bottom: clamp(32px, 6vh, 56px);
  }

  .art-mast {
    height: clamp(320px, 55vh, 480px);
  }
}

@media (max-width: 560px) {
  .dispatches__grid { grid-template-columns: 1fr; }
  .hero__cta-row { flex-direction: column; align-items: flex-start; }
  .obs-teaser__stats { grid-template-columns: 1fr 1fr; }
}
