/* =============================================================================
   site-overrides.css
   Single source of truth for all component and layout styles.
   Loaded after compiled main.css (Bootstrap + theme base).
   ============================================================================= */

/* ── 0. GLOBAL TYPOGRAPHY & DESIGN SYSTEM LOCKDOWN ──────────────────────────── */

:root {
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'SF Mono', 'Roboto Mono', 'Source Code Pro', monospace;
}

/* =============================================================================
   DESIGN SYSTEM TYPOGRAPHY HIERARCHY:
   1. DISPLAY (Montserrat): Headings (h1-h6), kickers, nav links, buttons, stat numbers
   2. BODY (Inter): All body text, paragraphs, lead paragraphs, lists, links, blockquotes
   3. MONO (SF Mono / monospace): Code blocks, inline tags
   ============================================================================= */

/* Universal font family assignment */
*, *::before, *::after {
  box-sizing: border-box;
}

body,
p,
li,
a,
span,
blockquote,
div,
main,
article {
  font-family: var(--font-body);
}

/* Headings & Interactive Display UI */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.page-kicker,
.post-kicker,
.section-kicker,
.hero-eyebrow,
.hero-role,
.navbar-brand,
.nav-link,
.btn,
.btn-sm,
.btn-lg,
.proof-value,
.writing-date,
.media-date,
.editorial-meta,
.writing-tags,
.contact-label,
.footer-name,
.scroll-cue,
.card-link,
.section-all-link,
.text-link-strong {
  font-family: var(--font-display) !important;
}

/* Code & Monospace */
code, kbd, samp, pre {
  font-family: var(--font-mono) !important;
}

/* ── Base Text ───────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.82 !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Standard Paragraphs (Uniform across all pages) */
p, main p, article p {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.82 !important;
  margin: 0 0 1.35rem 0 !important;
  color: var(--text) !important;
}

/* Lead Paragraphs (Introductory summary paragraph) */
p.lead, main p.lead, article p.lead, .section-lead {
  font-family: var(--font-body) !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  line-height: 1.82 !important;
  color: var(--ink) !important;
  margin-bottom: 1.6rem !important;
}

/* Bold text inside body paragraphs */
strong, b, main strong, article strong {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

/* Links inside paragraphs */
p a, li a, main p a, article p a {
  font-family: inherit;
  color: var(--blue) !important;
  text-decoration: none !important;
  transition: color var(--t-fast);
}

p a:hover, li a:hover, main p a:hover, article p a:hover {
  color: var(--blue-dark) !important;
  text-decoration: underline !important;
}

/* ── Heading Hierarchy ───────────────────────────────────────────────────── */
/* Level 1: Page Titles */
main h1, article h1, .page-header-clean h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(2.4rem, 5.5vw, 4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.055em !important;
  line-height: 1.05 !important;
  color: var(--ink) !important;
  margin: 0 0 .5rem 0 !important;
}

/* Level 2: Major Section Headings */
main h2, article h2, .home-section h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
  line-height: 1.15 !important;
  color: var(--ink) !important;
  margin: 2.8rem 0 1rem 0 !important;
}

/* Level 3: Subsection / Card Headings */
main h3, article h3, .editorial-card h3, .media-copy h3, .writing-copy h3 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
  line-height: 1.3 !important;
  color: var(--ink) !important;
  margin: 2rem 0 .75rem 0 !important;
}

/* Lists */
main ul, main ol, article ul, article ol {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  line-height: 1.82 !important;
  color: var(--text) !important;
  padding-left: 1.5rem !important;
  margin-bottom: 1.6rem !important;
}

main li, article li {
  font-family: var(--font-body) !important;
  margin-bottom: .45rem !important;
}


/* ── 1. NAVBAR ──────────────────────────────────────────────────────────────── */

#mainNav {
  padding: .75rem 0;
  transition: background var(--t-base), box-shadow var(--t-base);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

/* Base states: clean light nav by default */
#mainNav,
#mainNav:not(.is-fixed) {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 var(--line);
  border-bottom: none;
}

#mainNav.is-fixed {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1px 0 var(--line), 0 4px 20px rgba(16,33,59,.06);
}

/* Ensure navbar brand has crisp contrast across all pages */
#mainNav .navbar-brand,
#mainNav.is-fixed .navbar-brand,
body #mainNav .navbar-brand,
body.layout-home #mainNav .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink) !important;
  transition: color var(--t-fast);
}

#mainNav .navbar-brand:hover,
body #mainNav .navbar-brand:hover {
  color: var(--blue) !important;
}

/* Nav links styling - always visible with proper contrast */
#mainNav .navbar-nav > li.nav-item > a,
#mainNav .nav-link,
#mainNav.is-fixed .nav-link,
body #mainNav .nav-link,
body.layout-home #mainNav .nav-link {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted) !important;
  padding: .45rem .85rem;
  transition: color var(--t-fast);
}

#mainNav .navbar-nav > li.nav-item > a:hover,
#mainNav .nav-link:hover,
#mainNav.is-fixed .nav-link:hover,
body #mainNav .nav-link:hover,
body.layout-home #mainNav .nav-link:hover {
  color: var(--blue) !important;
}

#mainNav .navbar-nav > li.nav-item > a.active,
#mainNav .nav-link.active,
#mainNav.is-fixed .nav-link.active,
body #mainNav .nav-link.active,
body.layout-home #mainNav .nav-link.active {
  color: var(--blue) !important;
  font-weight: 700;
}

/* PortfolioFuture pill button in navbar */
#mainNav .portfoliofuture-nav,
body #mainNav .portfoliofuture-nav,
body.layout-home #mainNav .portfoliofuture-nav {
  color: var(--blue) !important;
  font-weight: 700 !important;
}

@media (min-width: 992px) {
  #mainNav .portfoliofuture-nav,
  body #mainNav .portfoliofuture-nav {
    border: 1.5px solid rgba(34, 100, 234, 0.4);
    border-radius: 999px;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    margin-left: .5rem;
    transition: all var(--t-fast);
  }
  #mainNav .portfoliofuture-nav:hover,
  body #mainNav .portfoliofuture-nav:hover {
    background: var(--surface-blue);
    border-color: var(--blue);
  }
}

/* Mobile toggler */
#mainNav .navbar-toggler {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .4rem .75rem;
}

@media (max-width: 991px) {
  #navbarResponsive {
    background: #ffffff;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    margin-top: .75rem;
    border: 1px solid var(--line);
  }
  #navbarResponsive .nav-link {
    padding: .6rem 1rem !important;
  }
}

/* ── 2. HOME HERO ────────────────────────────────────────────────────────────── */

.personal-hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
  background: #fff;
}

/* Animated mesh gradient */
.personal-hero::before {
  content: '';
  position: absolute;
  inset: -20% -20%;
  background:
    radial-gradient(ellipse 72% 60% at 88% 8%,  rgba(34,100,234,.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(34,100,234,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 55% 42%, rgba(34,100,234,.04) 0%, transparent 70%);
  animation: meshDrift 14s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes meshDrift {
  0%, 100% { transform: translate(0,   0)   scale(1); }
  33%       { transform: translate(1.5%, 1%) scale(1.02); }
  66%       { transform: translate(-1%, 1.5%) scale(.99); }
}

/* Noise texture overlay */
.personal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: .4;
  pointer-events: none;
}

.personal-hero .container { position: relative; z-index: 1; }

/* Hero text entrance animations */
.hero-eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp .6s cubic-bezier(.22,1,.36,1) .1s forwards;
}

.hero-eyebrow a { color: inherit; text-decoration: none; }

.personal-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.055em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp .7s cubic-bezier(.22,1,.36,1) .22s forwards;
}

.hero-role {
  margin: 1.6rem 0 .9rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -.025em;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp .65s cubic-bezier(.22,1,.36,1) .36s forwards;
}

.hero-summary {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--muted);
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp .65s cubic-bezier(.22,1,.36,1) .48s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.25rem;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp .6s cubic-bezier(.22,1,.36,1) .6s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: heroFadeUp .6s .9s forwards, cueFloat 2.4s ease-in-out 1.5s infinite;
  opacity: 0;
  cursor: pointer;
  text-decoration: none;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes cueFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── 3. HOME SECTIONS ────────────────────────────────────────────────────────── */

.home-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.home-current   { background: #fff; }
.home-foundation,
.home-media     { background: var(--surface); }
.home-thinking  { background: #fff; }

.section-kicker {
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}

.home-section h2,
.writing-featured h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.section-lead {
  font-size: 1.14rem;
  line-height: 1.8;
  color: var(--text);
}

.max-copy { max-width: 800px; }

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.section-all-link,
.text-link-strong,
.card-link {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--blue);
  text-decoration: none;
  transition: color var(--t-fast);
  white-space: nowrap;
}

.section-all-link:hover,
.text-link-strong:hover,
.card-link:hover { color: var(--blue-dark); }

/* ── 4. PORTFOLIOFUTURE VISUAL ───────────────────────────────────────────────── */

.portfoliofuture-visual {
  display: block;
  overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: 0 16px 40px rgba(3, 16, 42, 0.16);
  border: 1px solid rgba(16, 33, 59, 0.08);
  background: #030a1a;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.portfoliofuture-visual:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 50px rgba(3, 16, 42, 0.24);
}

.portfoliofuture-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── 5. PROOF / STAT GRIDS ───────────────────────────────────────────────────── */

.proof-grid,
.record-summary,
.strategy-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 2.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
}

.proof-grid,
.record-summary { grid-template-columns: repeat(3, 1fr); }
.strategy-grid  { grid-template-columns: repeat(3, 1fr); }

.proof-item,
.record-summary > div,
.strategy-grid > div {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  transition: background var(--t-fast);
}

.proof-item:hover,
.record-summary > div:hover,
.strategy-grid > div:hover {
  background: var(--surface-blue);
}

.proof-value,
.record-summary strong,
.strategy-grid strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .35rem;
}

.proof-label,
.record-summary span,
.strategy-grid span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

/* ── 6. EDITORIAL CARDS (Writing) ────────────────────────────────────────────── */

.editorial-card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.editorial-card:hover {
  border-color: rgba(34,100,234,.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.editorial-meta {
  margin: 0 0 .5rem;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.editorial-card h3 {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -.015em;
}

.editorial-card h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--t-fast);
}

.editorial-card h3 a:hover { color: var(--blue); }

.editorial-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: .9rem;
}

/* ── 7. MEDIA / WRITING ROWS ─────────────────────────────────────────────────── */

.media-list-compact,
.writing-list {
  border-top: 1px solid var(--line);
}

.media-row,
.writing-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}

.media-date,
.writing-date {
  padding-top: .1rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.6;
}

.media-copy h3,
.writing-copy h3 {
  margin: 0 0 .3rem;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -.015em;
}

.media-copy h3 a,
.writing-copy h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--t-fast);
}

.media-copy h3 a:hover,
.writing-copy h3 a:hover { color: var(--blue); }

.media-copy p,
.writing-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.writing-tags {
  margin-top: .35rem;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.media-list-page .media-row { padding: 1.65rem 0; }

/* ── 8. BUTTONS ──────────────────────────────────────────────────────────────── */

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: .7rem 1.6rem;
  border-radius: var(--r-sm);
  transition: background var(--t-base), border-color var(--t-base),
              transform var(--t-fast), box-shadow var(--t-base);
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34,100,234,.35);
}

.btn-outline-primary {
  color: var(--blue) !important;
  border-color: var(--blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34,100,234,.25);
}

.btn-sm {
  font-size: .75rem;
  padding: .5rem 1.1rem;
}

/* ── 9. CLEAN MINIMAL PAGE HEADERS (replaces photo mastheads) ────────────────── */

.page-header-clean {
  padding: 140px 0 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Subtle atmospheric mesh drift matching homepage */
.page-header-clean::before {
  content: '';
  position: absolute;
  inset: -20% -20%;
  background:
    radial-gradient(ellipse 65% 50% at 90% 10%, rgba(34,100,234,.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 10% 85%, rgba(34,100,234,.04) 0%, transparent 60%);
  animation: meshDrift 14s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

.page-header-clean::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(34,100,234,.3) 100%);
}

.page-header-clean .container {
  position: relative;
  z-index: 1;
}

.page-header-clean .page-kicker {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp .6s cubic-bezier(.22,1,.36,1) .08s forwards;
}

.page-header-clean h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.02;
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp .7s cubic-bezier(.22,1,.36,1) .18s forwards;
}

.page-header-clean .page-subhead {
  margin: 1.25rem 0 0;
  max-width: 760px;
  font-size: 1.15rem;
  line-height: 1.78;
  color: var(--muted);
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp .65s cubic-bezier(.22,1,.36,1) .3s forwards;
}

/* Post-specific header variant */
.post-header-clean {
  padding: 140px 0 56px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.post-header-clean::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(34,100,234,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(34,100,234,.12) 0%, transparent 60%);
  animation: meshDrift 16s ease-in-out infinite;
  pointer-events: none;
}

.post-header-clean .container { position: relative; z-index: 1; }

.post-header-clean .post-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp .6s cubic-bezier(.22,1,.36,1) .08s forwards;
}

.post-header-clean h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp .7s cubic-bezier(.22,1,.36,1) .18s forwards;
}

.post-header-clean .post-subhead {
  margin: 1rem 0 0;
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.72;
  color: rgba(255,255,255,.72);
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp .65s cubic-bezier(.22,1,.36,1) .3s forwards;
}

.post-header-clean .post-meta {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp .6s cubic-bezier(.22,1,.36,1) .42s forwards;
}

.post-header-clean .post-meta a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}

/* Article & Page content entrance */
.page-content-fade {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp .65s cubic-bezier(.22,1,.36,1) .35s forwards;
}

/* Article body */
.article-body {
  padding: 64px 0 80px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp .65s cubic-bezier(.22,1,.36,1) .35s forwards;
}

.article-body .post-footer-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--blue);
  z-index: 9999;
  transition: width .1s linear;
}

/* ── 10. ABOUT / CONTACT COMPONENTS ─────────────────────────────────────────── */

.about-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.about-links-grid > a {
  display: block;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  background: var(--surface);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-fast);
}

.about-links-grid > a:hover {
  border-color: rgba(34,100,234,.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.about-links-grid strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}

.about-links-grid span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.evidence-links a { word-break: break-word; }

.contact-options {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.contact-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--t-fast);
}

.contact-option:last-child { border-bottom: 0; }
.contact-option:hover { background: var(--surface-blue); color: var(--ink); text-decoration: none; }

.contact-label {
  color: var(--muted);
  font-size: .75rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── 11. FOOTER ──────────────────────────────────────────────────────────────── */

.footer-enhanced {
  padding: 3.5rem 0 2.25rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  margin-top: 0;
}

.footer-primary,
.footer-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-primary { padding-bottom: 2rem; }

.footer-name {
  display: inline-block;
  margin-bottom: .3rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-name:hover { color: var(--blue); }

.footer-primary p,
.footer-secondary p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a,
.footer-social a,
.footer-primary p a {
  color: var(--muted);
  font-size: .85rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-nav a:hover,
.footer-social a:hover,
.footer-primary p a:hover { color: var(--blue); }

.footer-secondary {
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

/* ── 12. SCROLL-REVEAL ANIMATIONS ────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1),
              transform .6s cubic-bezier(.22,1,.36,1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for grid children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: .08s; }
.stagger-children > *:nth-child(3) { transition-delay: .16s; }
.stagger-children > *:nth-child(4) { transition-delay: .24s; }
.stagger-children > *:nth-child(5) { transition-delay: .32s; }
.stagger-children > *:nth-child(6) { transition-delay: .40s; }

/* Count-up numbers */
.count-up { display: inline-block; }

/* ── 13. RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
  .personal-hero        { padding: 155px 0 90px; }
  .home-section         { padding: 76px 0; }
  .page-header-clean    { padding: 120px 0 52px; }
  .post-header-clean    { padding: 120px 0 48px; }
  .portfoliofuture-visual { margin-top: .75rem; }
}

@media (max-width: 767px) {
  .personal-hero        { padding: 130px 0 72px; }
  .home-section         { padding: 60px 0; }
  .page-header-clean    { padding: 110px 0 44px; }
  .post-header-clean    { padding: 110px 0 40px; }
  .article-body         { padding: 48px 0 64px; }

  .proof-grid,
  .record-summary,
  .strategy-grid        { grid-template-columns: 1fr; }

  .section-heading-row  { align-items: flex-start; flex-direction: column; gap: .3rem; }

  .media-row,
  .writing-row          { grid-template-columns: 1fr; gap: .4rem; }

  .about-links-grid     { grid-template-columns: 1fr; }

  .contact-option       { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .contact-option strong { overflow-wrap: anywhere; }

  .footer-primary,
  .footer-secondary     { align-items: flex-start; flex-direction: column; gap: 1.25rem; }

  .scroll-cue           { display: none; }
}

/* ── 14. SKIP NAV ────────────────────────────────────────────────────────────── */

.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: .6rem 1.2rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  transition: top .2s;
}

.skip-nav:focus { top: 0; color: #fff; }

/* ── 15. MEDIA EMBED ─────────────────────────────────────────────────────────── */

.media-embed {
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.media-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
