/* ============================================================
   kennyolutola.com — Design System Stylesheet
   Direction: Purpose-Led Editorial Minimal
   Tokens & patterns from the Kenny Olutola Design System v1.0
   Brand: Inter | Navy #003366 | Action #FF6600 | Wisdom #087E8B
   ============================================================ */

:root {
  /* ── Brand core ── */
  --color-navy-950: #001A33;
  --color-navy-900: #002244;
  --color-navy-800: #003366;
  --color-navy-700: #004488;
  --color-orange-600: #FF6600;
  --color-orange-700: #CC5200;
  --color-teal-700: #087E8B;
  --color-teal-800: #066B75;

  /* ── Neutral surfaces ── */
  --color-cream: #F8F5EF;
  --color-paper: #FFFFFF;
  --color-mist: #F4F6F8;
  --color-border: #D9DEE5;
  --color-border-strong: #B8C0CC;

  /* ── Text ── */
  --color-text: #1F2937;
  --color-text-muted: #4B5563;
  --color-text-soft: #6B7280;

  /* ── Semantic roles ── */
  --color-bg: var(--color-paper);
  --color-bg-soft: var(--color-cream);
  --color-bg-muted: var(--color-mist);
  --color-brand: var(--color-navy-800);
  --color-accent: var(--color-orange-600);
  --color-wisdom: var(--color-teal-700);

  /* ── Type ── */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ── Spacing rhythm (4px base) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 112px;

  /* ── Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ── Shadow (rare + subtle) ── */
  --shadow-subtle: 0 1px 2px rgba(0, 20, 40, 0.06);
  --shadow-card: 0 12px 32px rgba(0, 20, 40, 0.08);
  --shadow-lift: 0 24px 64px rgba(0, 20, 40, 0.16);

  /* ── Layout ── */
  --container: 1120px;
  --container-narrow: 760px;
  --nav-height: 72px;

  /* ── Motion ── */
  --motion-fast: 160ms ease;
  --motion-medium: 240ms ease;
}

/* ── 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-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(255, 102, 0, 0.07), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 42%, #ffffff 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(255, 102, 0, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgba(255, 102, 0, 0.22); color: var(--color-navy-950); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-navy-950); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--radius-md) 0; font-weight: 800;
}
.skip-link:focus { left: 0; }

/* ── Layout helpers ── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--space-5); }

.section { padding-block: clamp(64px, 8vw, 112px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-soft { background: var(--color-bg-soft); }
.section-muted { background: var(--color-bg-muted); }
.section-dark {
  background:
    radial-gradient(circle at 10% 5%, rgba(8, 126, 139, 0.30), transparent 32rem),
    linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
  color: #fff;
}

.section-header { max-width: 720px; margin-bottom: var(--space-7); }
.section-header.center { text-align: center; margin-inline: auto; }
.stack-sm > * + * { margin-top: var(--space-3); }
.stack > * + * { margin-top: var(--space-5); }

/* ── Typography ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; line-height: 1;
  text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: var(--radius-pill); background: currentColor;
}
.eyebrow.no-line::before { display: none; }
.eyebrow.center { justify-content: center; }
.section-dark .eyebrow { color: #FFB077; }

.display    { color: var(--color-navy-950); font-size: clamp(46px, 7vw, 78px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.97; text-wrap: balance; }
.heading-xl { color: var(--color-navy-950); font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em;  line-height: 1.04; text-wrap: balance; }
.heading-lg { color: var(--color-navy-950); font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.03em;  line-height: 1.12; text-wrap: balance; }
.heading-md { color: var(--color-navy-900); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em;  line-height: 1.2;  text-wrap: balance; }

.body-lead { color: var(--color-text-muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.7; max-width: 68ch; }
.body-copy { color: var(--color-text-muted); font-size: 16px; line-height: 1.75; }
.body-copy + .body-copy { margin-top: var(--space-4); }
.text-soft { color: var(--color-text-soft); }
.measure { max-width: 68ch; }

.section-dark .display,
.section-dark .heading-xl,
.section-dark .heading-lg,
.section-dark .heading-md { color: #fff; }
.section-dark .body-lead,
.section-dark .body-copy { color: rgba(255, 255, 255, 0.78); }

.inline-link {
  color: var(--color-navy-900); font-weight: 800;
  text-decoration: underline; text-decoration-color: rgba(255, 102, 0, 0.45);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: text-decoration-color var(--motion-fast);
}
.inline-link:hover { text-decoration-color: var(--color-accent); }
.section-dark .inline-link { color: #fff; }

/* =============================================================
   NAVIGATION
============================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(217, 222, 229, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner {
  min-height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
}
.brand-mark { display: flex; align-items: center; gap: var(--space-3); color: var(--color-navy-950); font-weight: 800; letter-spacing: -0.03em; flex-shrink: 0; }
.brand-symbol { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; box-shadow: var(--shadow-subtle); background: #fff; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-text { line-height: 1.15; font-size: 15px; }
.brand-text span { display: block; margin-top: 1px; color: var(--color-text-soft); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); color: var(--color-text-muted); font-size: 14px; font-weight: 700; }
.nav-links a { transition: color var(--motion-fast); padding: 6px 2px; }
.nav-links a:hover { color: var(--color-navy-900); }
.nav-links a.active { color: var(--color-navy-950); }
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--color-accent);
}
/* "Work With Me" in the desktop header: orange text, no button background */
.nav-links .btn-primary {
  background: transparent; color: var(--color-accent);
  box-shadow: none; border-color: transparent;
  padding: 6px 2px; min-height: auto; border-radius: 0;
}
.nav-links .btn-primary:hover { background: transparent; color: var(--color-orange-700); transform: none; box-shadow: none; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; border-radius: var(--radius-md); }
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--color-navy-900); border-radius: 2px; transition: transform var(--motion-fast), opacity var(--motion-fast); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-5) var(--space-5); border-top: 1px solid var(--color-border); background: rgba(255, 255, 255, 0.97); }
.nav-mobile.is-open { display: flex; }
.nav-mobile a { padding: 12px 4px; font-size: 15px; font-weight: 700; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.nav-mobile a:last-child { border-bottom: none; margin-top: var(--space-3); }
.nav-mobile .btn { color: #fff; }

/* =============================================================
   BUTTONS
============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 12px 20px; min-height: 46px;
  font-size: 14px; font-weight: 800; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast),
              color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { color: #fff; background: var(--color-accent); box-shadow: 0 10px 22px rgba(255, 102, 0, 0.22); }
.btn-primary:hover { background: var(--color-orange-700); box-shadow: 0 14px 28px rgba(255, 102, 0, 0.28); }

.btn-secondary { color: var(--color-navy-900); background: #fff; border-color: rgba(0, 51, 102, 0.16); }
.btn-secondary:hover { border-color: rgba(0, 51, 102, 0.36); box-shadow: var(--shadow-card); }

.btn-ghost { color: var(--color-navy-900); background: rgba(0, 51, 102, 0.06); }
.btn-ghost:hover { background: rgba(0, 51, 102, 0.1); }

.section-dark .btn-secondary,
.btn-on-dark { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.section-dark .btn-secondary:hover,
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }

.btn-large { padding: 15px 26px; min-height: 52px; font-size: 15px; }
.btn-full { width: 100%; }

/* =============================================================
   HERO (homepage)
============================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 120px); }
.hero::after {
  content: ""; position: absolute; inset: auto -8rem -20rem auto;
  width: 42rem; height: 42rem; border-radius: 999px;
  background: rgba(8, 126, 139, 0.08); pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(40px, 7vw, 80px); align-items: center;
}
.hero-copy { display: grid; gap: var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.hero-proof .pill { font-size: 12px; padding: 6px 12px; }
@media (min-width: 941px) { .hero-proof { flex-wrap: nowrap; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid rgba(0, 51, 102, 0.1); border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72); color: var(--color-text-muted);
  font-size: 13px; font-weight: 700;
}

.visual-card {
  position: relative; display: grid; gap: var(--space-4); padding: var(--space-5);
  border: 1px solid rgba(0, 51, 102, 0.12); border-radius: 32px;
  background: rgba(255, 255, 255, 0.76); box-shadow: var(--shadow-lift);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.visual-card::before {
  content: ""; position: absolute; inset: 16px; border-radius: 24px;
  border: 1px solid rgba(255, 102, 0, 0.13); pointer-events: none;
}

.book-panel {
  position: relative; display: grid; gap: var(--space-5); min-height: 420px;
  padding: var(--space-6); border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 102, 0, 0.22), transparent 16rem),
    linear-gradient(145deg, var(--color-navy-950), var(--color-navy-800));
  color: #fff; overflow: hidden;
}
.book-panel::after {
  content: ""; position: absolute; right: -56px; bottom: -80px;
  width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
}
.book-panel-top { display: flex; justify-content: space-between; gap: var(--space-4); align-items: flex-start; }
.book-cover-img {
  position: relative; z-index: 1; width: min(80%, 250px); margin-inline: auto;
  border-radius: 8px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); transform: rotate(-2deg);
  transition: transform var(--motion-medium);
}
.book-panel:hover .book-cover-img { transform: rotate(0deg) translateY(-4px); }
.book-panel-meta { position: relative; z-index: 1; display: flex; justify-content: center; gap: var(--space-5); flex-wrap: wrap; }
.book-panel-meta div { text-align: center; }
.book-panel-meta strong { display: block; font-size: 20px; color: #fff; }
.book-panel-meta span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); }

/* =============================================================
   GRIDS
============================================================= */
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* =============================================================
   CARDS
============================================================= */
.card {
  position: relative; min-height: 100%; padding: var(--space-6);
  border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  background: var(--color-paper); box-shadow: var(--shadow-subtle);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), border-color var(--motion-fast);
}
a.card, .card.interactive { display: block; }
a.card:hover, .card.interactive:hover {
  transform: translateY(-4px); border-color: rgba(0, 51, 102, 0.24); box-shadow: var(--shadow-card);
}
.card h3 { margin-top: var(--space-4); margin-bottom: var(--space-2); color: var(--color-navy-900); font-size: 22px; letter-spacing: -0.025em; line-height: 1.22; }
.card > p { color: var(--color-text-muted); line-height: 1.72; }

.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: rgba(0, 51, 102, 0.08); color: var(--color-navy-900);
  font-size: 22px; font-weight: 800;
}
.card[data-accent="orange"] .card-icon { background: rgba(255, 102, 0, 0.12); color: var(--color-orange-700); }
.card[data-accent="teal"] .card-icon   { background: rgba(8, 126, 139, 0.12); color: var(--color-teal-800); }

/* Offer / list card */
.offer-card { display: flex; flex-direction: column; gap: var(--space-4); }
/* clickable cards default to display:block; keep them flex when used as offer cards */
a.card.offer-card, .card.interactive.offer-card { display: flex; flex-direction: column; }
.offer-card h3 { margin-top: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.card-footer {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--color-border);
}
.card-list { display: grid; gap: var(--space-2); }
.card-list li { position: relative; padding-left: 24px; color: var(--color-text-muted); line-height: 1.6; }
.card-list li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--color-accent); font-weight: 800; }
.card-list.check li::before { content: "\2713"; color: var(--color-teal-700); }

/* =============================================================
   TAGS
============================================================= */
.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 6px 12px;
  border-radius: var(--radius-pill); color: var(--color-navy-900);
  background: rgba(0, 51, 102, 0.08); font-size: 12px; font-weight: 800; line-height: 1;
}
.tag-orange { color: var(--color-orange-700); background: rgba(255, 102, 0, 0.12); }
.tag-teal   { color: var(--color-teal-800);  background: rgba(8, 126, 139, 0.12); }
.tag-live   { color: #166534; background: #DCFCE7; }
.tag-soon   { color: #92400E; background: #FEF3C7; }

/* =============================================================
   BELIEF BLOCK
============================================================= */
.belief-block {
  position: relative; padding: clamp(40px, 6vw, 72px); border-radius: 32px;
  background: linear-gradient(135deg, rgba(248, 245, 239, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(0, 51, 102, 0.1); box-shadow: var(--shadow-card);
}
.quote-mark { color: rgba(255, 102, 0, 0.34); font-size: 80px; line-height: 0.7; font-weight: 800; letter-spacing: -0.08em; }

/* =============================================================
   CTA PANEL
============================================================= */
.cta-panel {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center;
  padding: clamp(40px, 6vw, 72px); border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 102, 0, 0.28), transparent 20rem),
    linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
  color: #fff; overflow: hidden;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { max-width: 60ch; color: rgba(255, 255, 255, 0.78); margin-top: var(--space-3); }
.cta-panel .cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* =============================================================
   FORMS
============================================================= */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label { color: var(--color-navy-950); font-size: 14px; font-weight: 800; }
.field .req { color: var(--color-accent); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  background: #fff; color: var(--color-text);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
select.input { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { border-color: var(--color-orange-600); box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.12); outline: none; }
.input.is-invalid { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
.field-check { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 14px; color: var(--color-text-muted); line-height: 1.55; cursor: pointer; }
.field-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-navy-800); flex-shrink: 0; }
.form-note { font-size: 13px; color: var(--color-text-soft); }
.form-status { padding: 14px 18px; border-radius: var(--radius-md); font-weight: 700; font-size: 14px; display: none; }
.form-status.ok  { display: block; background: #DCFCE7; color: #166534; }
.form-status.err { display: block; background: #FEE2E2; color: #991B1B; }

/* =============================================================
   TIMELINE (CV)
============================================================= */
.timeline { position: relative; display: grid; gap: var(--space-7); }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--space-5); }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--color-navy-800); margin-top: 2px; z-index: 1; }
.timeline-item:first-child .timeline-dot { background: var(--color-navy-800); }
.timeline-date { color: var(--color-accent); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.timeline-role { color: var(--color-navy-950); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.timeline-org  { color: var(--color-text); font-weight: 700; margin-top: 2px; }
.timeline-focus { color: var(--color-text-soft); font-size: 14px; margin-top: 4px; margin-bottom: var(--space-3); }

/* CV layout */
.cv-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 6vw, 72px); align-items: start; }
.cv-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); display: grid; gap: var(--space-5); }

/* =============================================================
   CONTACT LAYOUT
============================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(40px, 6vw, 64px); align-items: start; }
.contact-aside {
  position: sticky; top: calc(var(--nav-height) + 24px);
  border-radius: var(--radius-xl); padding: clamp(32px, 4vw, 44px); color: #fff;
  background: linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
}
.contact-aside h2 { color: #fff; }
.contact-aside .info-item { display: grid; gap: 2px; margin-top: var(--space-5); }
.contact-aside .info-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); font-weight: 800; }
.contact-aside .info-value { color: rgba(255, 255, 255, 0.9); font-weight: 600; word-break: break-word; }
.contact-aside .info-value:hover { color: #fff; }

/* =============================================================
   SUBSTACK EMBED
============================================================= */
.embed-frame { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-subtle); background: #fff; }
.embed-frame iframe { width: 100%; border: 0; display: block; }

/* =============================================================
   FOOTER
============================================================= */
.footer { background: var(--color-navy-950); color: rgba(255, 255, 255, 0.72); padding-block: var(--space-8) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-7); padding-bottom: var(--space-7); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; margin-top: var(--space-4); }
.footer .brand-mark { color: #fff; }
.footer .brand-text { color: #fff; }
.footer .brand-text span { color: rgba(255, 255, 255, 0.55); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col h5 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.7); transition: color var(--motion-fast); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-5); font-size: 13px; color: rgba(255, 255, 255, 0.5); flex-wrap: wrap; gap: var(--space-4); }
.footer-social { display: flex; gap: var(--space-2); }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 13px; font-weight: 800; transition: background var(--motion-fast); }
.social-btn:hover { background: var(--color-accent); }
.social-btn svg { width: 17px; height: 17px; fill: currentColor; }

/* =============================================================
   SCROLL REVEAL (progressive enhancement)
============================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cv-layout { grid-template-columns: 1fr; }
  .cv-sidebar { position: static; }
}
@media (max-width: 940px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .cta-panel, .contact-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .contact-aside { position: static; }
  .cta-panel { text-align: left; }
}
@media (max-width: 620px) {
  .container, .container-narrow { padding-inline: var(--space-4); }
  .hero { padding-block: var(--space-8); }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .card, .belief-block, .visual-card, .book-panel, .cta-panel, .contact-aside { border-radius: var(--radius-lg); }
  .timeline-item { grid-template-columns: 32px 1fr; gap: var(--space-4); }
  .timeline::before { left: 11px; }
  /* Stack card footers so long buttons go full-width instead of overflowing */
  .card-footer { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .card-footer .btn { width: 100%; white-space: normal; }
  .card-footer .inline-link { align-self: flex-start; }
  .cta-panel .cta-actions .btn { width: 100%; }
}

/* Offset anchored sections so they aren't hidden under the sticky nav */
section[id], [id].scroll-target { scroll-margin-top: calc(var(--nav-height) + 16px); }
/* Never allow accidental horizontal scroll on small screens */
@media (max-width: 940px) { html, body { overflow-x: hidden; } }

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