/* ============================================================
   MICHAEL RAVEN — Personal Site
   Ultra-premium, warm cream + deep sage, Spectral serif
   ============================================================ */

/* ==================== VARIABLES ==================== */

:root {
  /* Backgrounds */
  --bg: #fdf5e8;
  --bg-warm: #f0e5d1;
  --bg-white: #FFFFFF;

  /* Accent — Warm Sage Green (complements #fdf5e8 beige) */
  --accent: #6B9E78;
  --accent-light: #8BBD96;
  --accent-dark: #567F62;
  --accent-subtle: rgba(107, 158, 120, 0.08);
  --accent-glow: rgba(107, 158, 120, 0.14);

  /* Dark Section */
  --dark: #111412;
  --dark-surface: #1A1D1B;
  --dark-border: #2A2F2C;
  --dark-border-hover: #8BBD96;

  /* Text */
  --text: #1A1D1B;
  --text-secondary: #3E4944;
  --text-dim: #6B7570;
  --text-muted: #95A09B;
  --text-on-dark: #F4F1EC;
  --text-on-dark-dim: #A8B0AC;

  /* Borders */
  --border: #e0d5c5;
  --border-strong: #d4c8b6;

  /* Fonts */
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;

  /* Layout */
  --container: 1140px;
  --nav-height: 72px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;
  --space-4xl: 160px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.08), 0 10px 10px rgba(0, 0, 0, 0.04);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.5s;
  --duration-fast: 0.25s;
  --duration-slow: 0.7s;
}


/* ==================== RESET ==================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}


/* ==================== ACCESSIBILITY ==================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

.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;
}

[id] {
  scroll-margin-top: calc(var(--nav-height) + var(--space-md));
}


/* ==================== CONTAINER ==================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}


/* ==================== TYPOGRAPHY ==================== */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.eyebrow--light {
  color: var(--accent-light);
}


/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  padding: 14px 34px;
  background: var(--accent);
  color: #FFFFFF;
  border: 2px solid var(--accent);
  border-radius: 50px;
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  padding: 14px 34px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-dim);
  background: var(--accent-subtle);
  transform: translateY(-1px);
}

.btn--ghost:active {
  transform: translateY(0);
}

.btn--inverted {
  padding: 14px 34px;
  background: #FFFFFF;
  color: var(--accent-dark);
  border: 2px solid #FFFFFF;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

.btn--inverted:hover {
  background: #FFFFFF;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.btn--inverted:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn--ghost-light {
  padding: 14px 34px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
}

.btn--ghost-light:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn--ghost-light:active {
  transform: translateY(0);
}

.btn--sm { padding: 10px 24px; font-size: 0.82rem; }
.btn--lg { padding: 18px 42px; font-size: 0.95rem; }
.btn--xl { padding: 24px 64px; font-size: 1.15rem; letter-spacing: 0.01em; }


/* ==================== SCROLL REVEAL ==================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.role.reveal:nth-child(2) { transition-delay: 0s; }
.role.reveal:nth-child(3) { transition-delay: 0.15s; }

.advisory__logo.reveal:nth-child(1) { transition-delay: 0s; }
.advisory__logo.reveal:nth-child(2) { transition-delay: 0.06s; }
.advisory__logo.reveal:nth-child(3) { transition-delay: 0.12s; }
.advisory__logo.reveal:nth-child(4) { transition-delay: 0.18s; }
.advisory__logo.reveal:nth-child(5) { transition-delay: 0.24s; }
.advisory__logo.reveal:nth-child(6) { transition-delay: 0.30s; }
.advisory__logo.reveal:nth-child(7) { transition-delay: 0.36s; }
.advisory__logo.reveal:nth-child(8) { transition-delay: 0.42s; }


/* ==================== NAVIGATION ==================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s var(--ease);
}

.nav--scrolled .nav__link {
  color: var(--text-secondary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav__link:hover {
  color: #FFFFFF;
}

.nav--scrolled .nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.nav--scrolled .nav__hamburger span {
  background: var(--text);
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==================== MOBILE NAV OVERLAY ==================== */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  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 0.4s var(--ease), transform 0.4s var(--ease);
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-overlay a {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.8vw, 1.85rem);
  font-weight: 400;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

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


/* ==================== HERO ==================== */

.hero {
  background: #000000;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: end;
  min-height: 100svh;
}

.hero__content {
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-2xl) var(--space-3xl);
  padding-left: max(var(--space-xl), calc((100vw - var(--container)) / 2 + var(--space-xl)));
  z-index: 2;
  align-self: center;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

.hero__body {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin-bottom: var(--space-xs);
}

.hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
}

.hero__portrait img {
  width: 100%;
  height: auto;
  max-height: 100svh;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}


/* ==================== WHAT I DO (DARK SECTION) ==================== */

.what-i-do {
  background: var(--dark);
  padding: var(--space-3xl) 0;
}

.role {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--dark-border);
}

.role:last-child {
  border-bottom: none;
}

.role--reversed {
  grid-template-columns: 0.65fr 0.35fr;
}

.role--reversed .role__logo {
  order: 2;
}

.role--reversed .role__content {
  order: 1;
}

.role__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.role__logo img {
  max-width: 240px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Blazon logo — compact */
.role:first-child .role__logo img {
  max-width: 160px;
  max-height: 56px;
}

/* EU Commission logo — fill the space */
.role:last-child .role__logo img {
  max-width: 360px;
  max-height: 120px;
}

.role__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

.role__subtitle {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--dark-border);
}

.role__body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-on-dark-dim);
  max-width: 540px;
}

.role__link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: color var(--duration-fast) var(--ease);
  text-decoration: none;
  position: relative;
}

.role__link::after {
  content: ' \2192';
}

.role__link:hover {
  color: #FFFFFF;
}


/* ==================== ADVISORY PORTFOLIO ==================== */

.advisory {
  background: var(--bg-warm);
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.advisory__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.advisory__intro {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 620px;
}

/* Advisory Offer Cards */
.advisory__offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.advisory__offer {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.advisory__offer:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.advisory__offer-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.advisory__offer-body {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.advisory__subhead {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: var(--space-xl);
}

.advisory__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}

.advisory__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.advisory__logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.advisory__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* ==================== CTA (ACCENT GREEN SECTION) ==================== */

.cta {
  background: var(--accent);
  padding: var(--space-2xl) 0;
}

.cta__inner {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.cta__link {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: #FFFFFF;
  text-decoration: none;
  position: relative;
  transition: opacity var(--duration-fast) var(--ease);
}

.cta__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #FFFFFF;
  transition: width 0.3s var(--ease);
}

.cta__link:hover {
  opacity: 0.85;
}

.cta__link:hover::after {
  width: 100%;
}

.cta__divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.15rem;
  font-weight: 300;
  user-select: none;
}


/* ==================== ARTICLES LISTING PAGE ==================== */

.articles-listing {
  background: var(--bg);
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-4xl);
}

.articles-listing__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.articles-listing__intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: var(--space-2xl);
  max-width: 620px;
}

.articles__empty {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  padding: var(--space-2xl) 0;
}

.articles__view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: var(--space-xl);
  transition: gap 0.3s var(--ease);
}

.articles__view-all:hover {
  gap: 10px;
}

.articles__view-all svg {
  width: 18px;
  height: 18px;
}


/* ==================== HOMEPAGE ARTICLES SECTION ==================== */

.articles {
  background: var(--bg);
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.articles__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.articles__intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: var(--space-2xl);
  max-width: 580px;
}

.articles__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.articles__item {
  display: block;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s var(--ease);
}

.articles__item:first-child {
  border-top: 1px solid var(--border);
}

.articles__item:hover {
  opacity: 0.7;
}

.articles__item-category {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: block;
}

.articles__item-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.articles__item-excerpt {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles__item-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.articles__item-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.articles__more {
  margin-top: var(--space-2xl);
  text-align: center;
}

.articles__more a {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--duration-fast) var(--ease);
}

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

/* Stagger article items */
.articles__item.reveal:nth-child(1) { transition-delay: 0s; }
.articles__item.reveal:nth-child(2) { transition-delay: 0.08s; }
.articles__item.reveal:nth-child(3) { transition-delay: 0.16s; }
.articles__item.reveal:nth-child(4) { transition-delay: 0.24s; }
.articles__item.reveal:nth-child(5) { transition-delay: 0.32s; }
.articles__item.reveal:nth-child(6) { transition-delay: 0.40s; }

/* Loading state */
.articles__loading {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
}


/* ==================== ARTICLE PAGE ==================== */

.article-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

.article-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: var(--space-2xl);
  transition: color var(--duration-fast) var(--ease);
}

.article-page__back:hover {
  color: var(--accent);
}

.article-page__back svg {
  width: 16px;
  height: 16px;
}

.article-page__header {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.article-page__category {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.article-page__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: var(--space-md);
}

.article-page__meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.article-page__meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* Divider between header and body */
.article-page__divider {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  border: none;
  border-top: 1px solid var(--border);
}

.article-page__body {
  max-width: 680px;
  margin: 0 auto;
}

.article-page__body p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.6em;
}

/* Drop cap on first paragraph — only direct children, not inside end card */
.article-page__body > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.4em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin-right: 0.06em;
  margin-top: 0.06em;
  color: var(--text);
}

.article-page__body h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 3em;
  margin-bottom: 0.8em;
}

.article-page__body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}

.article-page__body blockquote {
  margin: 2.5em 0;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-2xl);
  position: relative;
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
}

.article-page__body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: var(--space-md);
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
}

.article-page__body blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0;
}

.article-page__body blockquote p:first-of-type::first-letter {
  font-size: inherit;
  font-weight: inherit;
  float: none;
  line-height: inherit;
  margin-right: 0;
  margin-top: 0;
}

.article-page__body ul,
.article-page__body ol {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.6em;
  padding-left: 1.5em;
}

.article-page__body ul { list-style: disc; }
.article-page__body ol { list-style: decimal; }

.article-page__body li {
  margin-bottom: 0.6em;
}

.article-page__body strong {
  font-weight: 700;
  color: var(--text);
}

.article-page__body em {
  font-style: italic;
}

.article-page__body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(107, 158, 120, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast) var(--ease);
}

.article-page__body a:hover {
  text-decoration-color: var(--accent);
}

.article-page__body hr {
  border: none;
  text-align: center;
  margin: 3em 0;
}

.article-page__body hr::before {
  content: '* * *';
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-muted);
  letter-spacing: 0.5em;
}

/* Pullquote — for emphasis */
.article-page__pullquote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent);
  text-align: center;
  padding: var(--space-xl) 0;
  margin: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-page__loading {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
}

/* Article end — author card */
.article-page__end {
  max-width: 680px;
  margin: var(--space-3xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.article-page__end-portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
}

.article-page__end-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.article-page__end-info {
  display: flex;
  flex-direction: column;
}

.article-page__end-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.article-page__end-bio {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.5;
}

.article-page__end-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 6px;
}

.article-page__end-links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--duration-fast) var(--ease);
}

.article-page__end-links a:hover {
  color: var(--accent-dark);
}

.article-page__end-links .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}


/* ==================== FOOTER ==================== */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-dim);
}

.footer__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__links a {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease);
  position: relative;
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

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

.footer__links a:hover::after {
  width: 100%;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

.footer__bottom p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}


/* ==================== REDUCED MOTION ==================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==================== RESPONSIVE: 1024px ==================== */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  }

  .hero__body {
    max-width: 480px;
  }

  .hero__portrait {
    min-height: auto;
    max-height: 60vh;
  }

  .hero__portrait img {
    max-height: 60vh;
  }

  .role,
  .role--reversed {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .role--reversed .role__logo,
  .role--reversed .role__content {
    order: unset;
  }

  .role__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .role__logo img {
    max-width: 180px;
    max-height: 60px;
  }

  .role:first-child .role__logo img {
    max-width: 120px;
    max-height: 44px;
  }

  .role:last-child .role__logo img {
    max-width: 260px;
    max-height: 90px;
  }

  .role__body {
    max-width: none;
  }
}


/* ==================== RESPONSIVE: 768px ==================== */

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .nav__inner {
    padding: 0 var(--space-md);
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__portrait {
    max-height: 50vh;
  }

  .hero__portrait img {
    max-height: 50vh;
  }

  .hero__title {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
  }

  .what-i-do {
    padding: var(--space-2xl) 0;
  }

  .role {
    padding: var(--space-xl) 0;
  }

  .role__logo {
    padding: var(--space-md);
  }

  .advisory {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .advisory__heading {
    font-size: 1.5rem;
  }

  .advisory__offers {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .advisory__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .advisory__logo {
    padding: var(--space-md);
  }

  .articles {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .articles__item {
    padding: var(--space-lg) 0;
  }

  .articles__item-title {
    font-size: 1.2rem;
  }

  .article-page {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
  }

  .article-page__header {
    margin-bottom: var(--space-xl);
  }

  .article-page__title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .article-page__body p,
  .article-page__body ul,
  .article-page__body ol {
    font-size: 1.05rem;
  }

  .article-page__body > p:first-of-type::first-letter {
    font-size: 2.8em;
  }

  .article-page__body blockquote {
    padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-xl);
  }

  .article-page__pullquote {
    font-size: 1.25rem;
  }

  .cta {
    padding: var(--space-xl) 0;
  }

  .cta__inner {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .cta__link {
    font-size: 1rem;
  }

  .cta__divider {
    display: none;
  }

  .article-page__body blockquote {
    padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer__social {
    width: 100%;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__bottom {
    text-align: center;
  }
}


/* ==================== RESPONSIVE: 480px ==================== */

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .nav__inner {
    padding: 0 var(--space-md);
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero__portrait {
    max-height: 45vh;
  }

  .hero__portrait img {
    max-height: 45vh;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .advisory__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .advisory__logo {
    padding: var(--space-sm);
  }

  .article-page__body > p:first-of-type::first-letter {
    font-size: 2.2em;
  }

  .article-page__body blockquote::before {
    font-size: 3rem;
  }

  .article-page__body blockquote {
    padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md);
  }

  .article-page__end {
    flex-direction: column;
    text-align: center;
  }

  .article-page__end-links {
    justify-content: center;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}


/* ==================== PRINT ==================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .nav,
  .nav-overlay,
  .cta,
  .footer__links,
  .hero__actions {
    display: none !important;
  }

  .hero {
    padding-top: var(--space-lg);
    min-height: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  a[href^="mailto:"]::after,
  a[href^="#"]::after {
    content: "";
  }
}
