/* ============================================================
   PERSONA SPACE — Design System
   Neuro-Aesthetic Architecture · Quiet Luxury · Relational Intelligence
   ============================================================ */

/* === RESET & BOX MODEL === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand Palette */
  --limestone:    #F5F2EC;
  --smoked-oak:   #2C2B29;
  --sage:         #788475;
  --terracotta:   #D4A373;

  /* Semantic Tokens — Light Mode */
  --bg:           #F5F2EC;
  --bg-alt:       #EDE9E0;
  --text:         #2C2B29;
  --text-dim:     #788475;
  --text-muted:   #9A9590;
  --accent:       #D4A373;
  --accent-hover: #C8935D;
  --surface:      rgba(255, 255, 255, 0.52);
  --surface-solid: #EAE6DC;
  --border:       rgba(44, 43, 41, 0.08);
  --border-mid:   rgba(44, 43, 41, 0.13);

  /* Shadows — Soft, Organic */
  --shadow-sm:    0 4px 16px -4px rgba(44, 43, 41, 0.06);
  --shadow-md:    0 10px 40px -10px rgba(44, 43, 41, 0.08);
  --shadow-lg:    0 20px 60px -12px rgba(44, 43, 41, 0.12);
  --shadow-hover: 0 24px 72px -12px rgba(44, 43, 41, 0.16);

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

  /* Spacing Scale */
  --space-xs:  0.375rem;
  --space-sm:  0.625rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --nav-height:     72px;
  --max-width:      1320px;
  --content-width:  740px;
  --gutter:         1.5rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Transitions */
  --ease-restorative: 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-mid:         420ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-fast:        180ms ease;
}

/* === DARK MODE TOKENS === */
[data-theme="dark"] {
  --bg:           #1C1A18;
  --bg-alt:       #242220;
  --text:         #E6DFD3;
  --text-dim:     #8A9A87;
  --text-muted:   #5E5B56;
  --surface:      rgba(36, 34, 30, 0.85);
  --surface-solid: #28261F;
  --border:       rgba(230, 223, 211, 0.07);
  --border-mid:   rgba(230, 223, 211, 0.12);
  --shadow-sm:    0 4px 16px -4px rgba(0, 0, 0, 0.3);
  --shadow-md:    0 10px 40px -10px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 20px 60px -12px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 24px 72px -12px rgba(0, 0, 0, 0.65);
}

/* === BASE STYLES === */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  transition: background-color 0.45s ease, color 0.45s ease;
  overflow-x: hidden;
  position: relative;
}

/* === GRAIN OVERLAY — Static, no animation to prevent edge artifacts === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 320px 320px;
  opacity: 0.038;
  pointer-events: none;
  z-index: 9998;
}
[data-theme="dark"] body::after { opacity: 0.055; }

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
p { color: var(--text); }
.text-serif { font-family: var(--font-serif); }
.text-sans  { font-family: var(--font-sans); }
.text-dim   { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }

/* === CONTAINER === */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(245, 242, 236, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .site-nav.scrolled {
  background: rgba(28, 26, 24, 0.88);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.nav-logo-mark {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.nav-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color var(--ease-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--ease-mid);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* Dark Mode Toggle */
.theme-toggle {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--surface-solid);
  border: 1px solid var(--border-mid);
  position: relative;
  transition: background var(--ease-mid), border-color var(--ease-mid);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform var(--ease-mid), background var(--ease-mid);
}
[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(18px);
  background: var(--accent);
}

/* Mobile Menu Toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--ease-mid), opacity var(--ease-fast);
  border-radius: 1px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.footer-brand-mark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 22ch;
}
.footer-nav-title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-nav-link {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color var(--ease-fast);
}
.footer-nav-link:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-2xl) auto 0;
  padding: var(--space-lg) var(--gutter) 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  transition: opacity 0.5s ease;
}
[data-theme="dark"] .hero-bg-image img { opacity: 0.1; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--sage);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-subheadline {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: var(--space-xl);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--smoked-oak);
  color: var(--limestone);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--ease-mid), transform var(--ease-mid), box-shadow var(--ease-mid);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--smoked-oak);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn-primary {
  background: var(--text);
  color: var(--bg);
}
[data-theme="dark"] .btn-primary:hover {
  background: var(--accent);
  color: var(--smoked-oak);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--ease-fast);
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost .arrow { transition: transform var(--ease-mid); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.hero-visual {
  position: relative;
}
.hero-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-restorative);
}
.hero-image-frame:hover img { transform: scale(1.02); }

.hero-image-caption {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  background: rgba(245, 242, 236, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
[data-theme="dark"] .hero-image-caption {
  background: rgba(28, 26, 24, 0.88);
}
.hero-image-caption-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2px;
}
.hero-image-caption-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}

/* Hero scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--text-dim));
  animation: scroll-pulse 2.5s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.1); }
}
.hero-scroll-text {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

/* ============================================================
   HOME — FEATURED SECTION
   ============================================================ */
.section {
  padding: var(--space-3xl) 0;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}
.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--sage);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color var(--ease-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.section-link:hover { color: var(--accent); }

/* ============================================================
   FEATURED CARDS — HOME PAGE
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feat-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--ease-restorative), transform var(--ease-restorative);
  display: flex;
  flex-direction: column;
}
.feat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feat-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.feat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-restorative);
}
.feat-card:hover .feat-card-image img { transform: scale(1.02); }

.feat-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.feat-card-tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-sm);
}
.feat-card-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.feat-card-excerpt {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-dim);
  flex: 1;
  margin-bottom: var(--space-md);
}
.feat-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.feat-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-mid);
}

/* ============================================================
   MANIFESTO BAND (HOME)
   ============================================================ */
.manifesto-band {
  background: var(--smoked-oak);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .manifesto-band { background: var(--bg-alt); }
.manifesto-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}
.manifesto-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.manifesto-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.625rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--limestone);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.015em;
}
[data-theme="dark"] .manifesto-quote { color: var(--text); }
.manifesto-source {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ============================================================
   ARTICLES PAGE — BENTO GRID
   ============================================================ */
.articles-header {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
}
.articles-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.articles-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-md);
}
.articles-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 52ch;
}
.articles-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: var(--space-lg) 0;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-3xl);
}

/* Grid Placement */
.bento-card:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
.bento-card:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 2; }
.bento-card:nth-child(3) { grid-column: 8 / 13; grid-row: 2 / 3; }
.bento-card:nth-child(4) { grid-column: 1 / 5; grid-row: 3 / 4; }
.bento-card:nth-child(5) { grid-column: 5 / 9; grid-row: 3 / 4; }
.bento-card:nth-child(6) { grid-column: 9 / 13; grid-row: 3 / 4; }

/* Bento Card Base */
.bento-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--ease-restorative), transform var(--ease-restorative);
  display: flex;
  flex-direction: column;
  position: relative;
}
.bento-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Featured (large) bento card */
.bento-card.is-featured {
  min-height: 560px;
}
.bento-card.is-featured .bento-image {
  flex: 1;
  min-height: 0;
}

.bento-image {
  overflow: hidden;
  position: relative;
}
.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-restorative);
  display: block;
}
.bento-card:hover .bento-image img { transform: scale(1.02); }

/* Standard card image aspect ratios */
.bento-card:nth-child(1) .bento-image { aspect-ratio: unset; height: 62%; }
.bento-card:nth-child(2) .bento-image { aspect-ratio: 5 / 3; }
.bento-card:nth-child(3) .bento-image { aspect-ratio: 5 / 3; }
.bento-card:nth-child(4) .bento-image,
.bento-card:nth-child(5) .bento-image,
.bento-card:nth-child(6) .bento-image { aspect-ratio: 4 / 3; }

.bento-body {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.bento-card:nth-child(1) .bento-body { padding: var(--space-xl); }
.bento-card:nth-child(2) .bento-body,
.bento-card:nth-child(3) .bento-body { padding: var(--space-md) var(--space-lg); }

.bento-tags {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.bento-tag {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  padding: 3px 8px;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  background: transparent;
}

.bento-title {
  font-family: var(--font-serif);
  color: var(--text);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bento-card:nth-child(1) .bento-title {
  font-size: clamp(1.375rem, 2vw, 1.875rem);
}
.bento-card:nth-child(2) .bento-title,
.bento-card:nth-child(3) .bento-title {
  font-size: 1.0625rem;
}
.bento-card:nth-child(4) .bento-title,
.bento-card:nth-child(5) .bento-title,
.bento-card:nth-child(6) .bento-title {
  font-size: 1rem;
}

.bento-excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.bento-card:nth-child(2) .bento-excerpt,
.bento-card:nth-child(3) .bento-excerpt { display: none; }

.bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
}
.bento-read-time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.bento-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: background var(--ease-mid), border-color var(--ease-mid), color var(--ease-mid), transform var(--ease-mid);
}
.bento-card:hover .bento-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--smoked-oak);
  transform: translateX(2px);
}

/* ============================================================
   THE BLUEPRINT PAGE
   ============================================================ */
.blueprint-hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.blueprint-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.blueprint-hero-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.blueprint-hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--sage);
}
.blueprint-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.blueprint-hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 44ch;
}
.blueprint-hero-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.blueprint-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blueprint Content */
.blueprint-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter);
}
.blueprint-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
}
.pillar-card {
  padding: var(--space-xl);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.pillar-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 500;
  color: var(--border-mid);
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}
.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.pillar-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.blueprint-prose {
  max-width: var(--content-width);
  margin: 0 auto;
}
.blueprint-prose h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-3xl);
}
.blueprint-prose h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-md);
  margin-top: var(--space-2xl);
}
.blueprint-prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: var(--space-lg);
}
.blueprint-prose p:first-child { color: var(--text); font-size: 1.1875rem; }

.blueprint-pull-quote {
  padding: var(--space-xl) var(--space-2xl);
  border-left: 2px solid var(--accent);
  margin: var(--space-2xl) 0;
  background: var(--surface-solid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.blueprint-pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text) !important;
  margin: 0 !important;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-header {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
}
.article-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  transition: color var(--ease-fast);
}
.article-back:hover { color: var(--accent); }
.article-back svg { transition: transform var(--ease-mid); }
.article-back:hover svg { transform: translateX(-3px); }

.article-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.article-tag {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.article-read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.article-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.article-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-mid);
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-xl);
}

.article-hero-image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--gutter);
  display: block;
}
.article-hero-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 21 / 9;
}

/* Article Body */
.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-3xl);
}

.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}

.article-body h5 {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-dim);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.article-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: var(--space-lg);
}
.article-body > p:first-of-type {
  font-size: 1.1875rem;
  color: var(--text);
  font-weight: 400;
}

.article-body .drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size: 4.5em;
  font-weight: 500;
  float: left;
  line-height: 0.75;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--text);
}

.article-body blockquote {
  padding: var(--space-lg) var(--space-xl);
  border-left: 2px solid var(--accent);
  background: var(--surface-solid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-2xl) 0;
}
.article-body blockquote p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text) !important;
  margin: 0;
}

.article-image-inline {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-image-inline img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}
.article-image-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
  font-style: italic;
  border-bottom: 1px solid var(--border);
}

/* Related Articles */
.article-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter);
  border-top: 1px solid var(--border);
}
.article-footer-title {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
}

/* Progress Bar */
.reading-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 499;
  transition: width 0.1s linear;
}

/* ============================================================
   BLUEPRINT TEASER — HOME PAGE
   ============================================================ */
.blueprint-teaser-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.blueprint-teaser-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--ease-mid), transform var(--ease-mid);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--ease-fast);
}
.mobile-nav-link:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 1.25rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-subheadline { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }

  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid .feat-card:last-child { grid-column: 1 / -1; }

  .bento-grid { grid-template-columns: repeat(6, 1fr); gap: var(--space-md); }
  .bento-card:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 2; }
  .bento-card:nth-child(2) { grid-column: 1 / 4; grid-row: 2 / 3; }
  .bento-card:nth-child(3) { grid-column: 4 / 7; grid-row: 2 / 3; }
  .bento-card:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; }
  .bento-card:nth-child(5) { grid-column: 3 / 5; grid-row: 3 / 4; }
  .bento-card:nth-child(6) { grid-column: 5 / 7; grid-row: 3 / 4; }

  .bento-card:nth-child(1) .bento-image { height: auto; aspect-ratio: 16 / 8; }
  .bento-card:nth-child(2) .bento-excerpt,
  .bento-card:nth-child(3) .bento-excerpt { display: block; }

  .blueprint-hero-inner { grid-template-columns: 1fr; }
  .blueprint-hero-image { max-width: 520px; }
  .blueprint-pillars { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 1rem; --space-3xl: 4rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner { padding: var(--space-2xl) var(--gutter); }
  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }

  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .feat-card:last-child { grid-column: auto; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .bento-card:nth-child(1) .bento-image { aspect-ratio: 16 / 9; height: auto; }
  .bento-card:nth-child(2) .bento-excerpt,
  .bento-card:nth-child(3) .bento-excerpt { display: block; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .manifesto-quote { font-size: clamp(1.25rem, 5vw, 1.75rem); }
  .article-title { font-size: clamp(1.75rem, 6vw, 2.75rem); }
  .blueprint-hero-title { font-size: clamp(2.25rem, 7vw, 3.25rem); }

  /* Blueprint Teaser — collapse to single column */
  .blueprint-teaser-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .blueprint-teaser-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; }
  .articles-title { font-size: 2rem; }
  .hero-cta-group { flex-direction: column; align-items: center; }
}
