/* ============================================================
   IFEANYI ANEKE — Executive Portfolio
   Palette: black / white / electric blue (his signature colors)
   Type: Fraunces (display serif) + Inter (body)
   ============================================================ */

:root {
  --bg: #06080c;
  --bg-2: #0a0e15;
  --surface: #10151f;
  --surface-2: #161c28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4f6fa;
  --ink-dim: #c2c9d6;
  --muted: #8b94a7;
  --accent: #3e7bff;
  --accent-soft: #7fb2ff;
  --grad-accent: linear-gradient(120deg, #3e7bff 0%, #7fb2ff 55%, #b7d4ff 100%);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.65);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(62, 123, 255, 0.35); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout primitives ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h-display em {
  font-style: italic;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--ink-dim); font-size: clamp(1.02rem, 1.35vw, 1.16rem); max-width: 62ch; }
.text-muted { color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(120deg, #3e7bff, #5f96ff);
  color: #fff;
  box-shadow: 0 12px 34px -10px rgba(62, 123, 255, 0.55);
}
.btn--primary:hover { box-shadow: 0 18px 44px -10px rgba(62, 123, 255, 0.7); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn--small { padding: 10px 20px; font-size: 13.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-soft);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3e7bff, #1e4fd6);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 22px -8px rgba(62, 123, 255, 0.7);
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:not(.btn):hover, .nav-links a.is-active { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; transition: 0.3s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 5vw 28px;
    background: rgba(6, 8, 12, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--ease-out);
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 10px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 101;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--grad-accent);
  box-shadow: 0 0 14px rgba(62, 123, 255, 0.8);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 240px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 570;
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
}
.hero-title .accent-line {
  display: block;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  padding-right: 0.1em;
}
.hero-kicker { margin-bottom: 26px; }
.hero-sub { color: var(--ink-dim); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 54ch; margin-bottom: 20px; }
.hero-domains {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 38px;
  min-height: 1.6em;
}
.hero-domains .typed { color: var(--accent-soft); font-weight: 600; border-right: 2px solid var(--accent-soft); padding-right: 3px; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-social { display: flex; align-items: center; gap: 10px; }
.hero-social span.label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }

.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink-dim);
  transition: 0.3s var(--ease-out);
  background: rgba(255, 255, 255, 0.02);
}
.social-btn svg { width: 17px; height: 17px; fill: currentColor; }
.social-btn:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(62, 123, 255, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(62, 123, 255, 0.5);
}

/* Hero portrait */
.hero-visual { position: relative; }
.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
  animation: float-slow 7s ease-in-out infinite;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(62, 123, 255, 0.22), transparent 45%);
  z-index: 1;
  pointer-events: none;
}
.portrait-frame img { width: 100%; height: auto; }
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-visual .halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 123, 255, 0.28), transparent 65%);
  filter: blur(20px);
  z-index: -1;
}

.stat-chip {
  position: absolute;
  background: rgba(12, 16, 24, 0.88);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: float-slow 6s ease-in-out infinite;
}
.stat-chip strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: #fff; }
.stat-chip small { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stat-chip--tl { top: 8%; left: -12%; animation-delay: 0.8s; }
.stat-chip--br { bottom: 10%; right: -10%; animation-delay: 1.6s; }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; }
  .stat-chip--tl { left: -4%; }
  .stat-chip--br { right: -4%; }
}

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue-drop 1.8s var(--ease-out) infinite;
}
@keyframes cue-drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-cell { text-align: center; padding: 12px 8px; position: relative; }
.stat-cell + .stat-cell::before {
  content: "";
  position: absolute;
  left: -12px; top: 20%;
  height: 60%; width: 1px;
  background: var(--line);
}
.stat-cell .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 560;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-cell .cap { margin-top: 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(odd)::before { display: none; }
}

/* ---------- About preview / split section ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split--flip { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) { .split, .split--flip { grid-template-columns: 1fr; } }

.framed-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.framed-img img { width: 100%; }
.framed-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.img-accent {
  position: relative;
}
.img-accent::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid rgba(62, 123, 255, 0.35);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ---------- Ventures ---------- */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.ventures-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .ventures-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .ventures-grid { grid-template-columns: 1fr; } }

.venture-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  padding: clamp(28px, 3.4vw, 44px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.35s;
  will-change: transform;
}
.venture-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(62, 123, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.venture-card:hover { border-color: rgba(62, 123, 255, 0.45); }
.venture-card:hover::before { opacity: 1; }
.venture-card .logo-plate {
  width: 66px; height: 66px;
  border-radius: 18px;
  background: #fff;
  display: grid; place-items: center;
  padding: 10px;
  margin-bottom: 26px;
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.7);
  transform: translateZ(38px);
}
.venture-card .logo-plate img { max-height: 100%; object-fit: contain; }
.venture-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 590;
  margin-bottom: 8px;
  transform: translateZ(30px);
}
.venture-card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(62, 123, 255, 0.12);
  border: 1px solid rgba(62, 123, 255, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  transform: translateZ(30px);
}
.venture-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 24px; transform: translateZ(22px); }
.venture-card .link-arrow { transform: translateZ(26px); }

/* ---------- Cards (journal) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

.post-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), border-color 0.35s, box-shadow 0.4s;
}
.post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(62, 123, 255, 0.4);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.8);
}
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card .meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.post-card .meta .pill {
  color: var(--accent-soft);
  background: rgba(62, 123, 255, 0.1);
  border: 1px solid rgba(62, 123, 255, 0.25);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-card h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 590; line-height: 1.3; }
.post-card h3 a:hover { color: var(--accent-soft); }
.post-card p { color: var(--muted); font-size: 14.5px; flex: 1; }

/* Blog filter tabs */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 42px; }
.filter-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.filter-tab:hover { border-color: var(--accent); color: #fff; }
.filter-tab.is-active {
  background: linear-gradient(120deg, #3e7bff, #5f96ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(62, 123, 255, 0.6);
}

/* ---------- Press strip ---------- */
.press-list { display: grid; gap: 14px; }
.press-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: 0.35s var(--ease-out);
}
.press-item:hover {
  border-color: rgba(62, 123, 255, 0.45);
  transform: translateX(8px);
  background: var(--surface-2);
}
.press-item .outlet {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  white-space: nowrap;
}
.press-item h3 { font-family: var(--font-display); font-weight: 560; font-size: 1.12rem; flex: 1; }
.press-item svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }

/* ---------- Gallery / marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track figure {
  width: clamp(260px, 30vw, 380px);
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.marquee-track figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.marquee-track figure:hover img { transform: scale(1.05); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 2.1;
  position: relative;
}
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out), filter 0.5s; }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figure.tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Quote ---------- */
.quote-section { text-align: center; position: relative; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 0.6;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 30px;
}
.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.25;
  max-width: 20ch;
  margin: 0 auto 26px;
}
.quote-attr { color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
.quote-attr::before { content: "— "; color: var(--accent-soft); }

/* ---------- Books ---------- */
.books-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (max-width: 760px) { .books-grid { grid-template-columns: 1fr; } }
.book-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  padding: clamp(24px, 3vw, 38px);
  transition: border-color 0.35s, transform 0.4s var(--ease-out);
}
.book-card:hover { border-color: rgba(62, 123, 255, 0.4); transform: translateY(-6px); }
.book-card .cover {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 14px 20px 44px -16px rgba(0, 0, 0, 0.8);
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease-out);
}
.book-card:hover .cover { transform: rotate(0deg) scale(1.03); }
.book-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 590; margin-bottom: 10px; }
.book-card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
@media (max-width: 520px) {
  .book-card { grid-template-columns: 1fr; }
  .book-card .cover { max-width: 200px; }
}

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; padding-left: 42px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(62, 123, 255, 0.05));
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px; top: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(62, 123, 255, 0.15), 0 0 16px rgba(62, 123, 255, 0.6);
}
.timeline-item h3 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 590; margin-bottom: 10px; }
.timeline-item .when { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-soft); font-weight: 700; display: block; margin-bottom: 8px; }
.timeline-item p { color: var(--ink-dim); max-width: 72ch; }

/* ---------- Passions / hobby cards ---------- */
.passions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .passions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .passions-grid { grid-template-columns: 1fr; } }
.passion-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 28px;
  transition: 0.35s var(--ease-out);
}
.passion-card:hover { border-color: rgba(62, 123, 255, 0.4); transform: translateY(-6px); background: var(--surface-2); }
.passion-card .icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(62, 123, 255, 0.12);
  border: 1px solid rgba(62, 123, 255, 0.3);
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.passion-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 590; margin-bottom: 8px; }
.passion-card p { color: var(--muted); font-size: 14.5px; }

/* Credentials list */
.cred-list { list-style: none; display: grid; gap: 14px; }
.cred-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-dim);
  font-size: 15px;
}
.cred-list li::before {
  content: "✦";
  color: var(--accent-soft);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Brand logo strip */
.brand-strip {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}
.brand-strip a, .brand-strip span {
  background: #fff;
  border-radius: 14px;
  padding: 14px 26px;
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.brand-strip a:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(62, 123, 255, 0.5); }
.brand-strip img { height: 34px; width: auto; object-fit: contain; }

/* ---------- Article ---------- */
.article-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(62, 123, 255, 0.12), transparent 60%),
    var(--bg-2);
}
.article-hero .meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; margin-top: 26px; flex-wrap: wrap; }
.article-hero .meta .pill {
  color: var(--accent-soft);
  background: rgba(62, 123, 255, 0.1);
  border: 1px solid rgba(62, 123, 255, 0.25);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 880px;
}
.article-figure img { width: 100%; max-height: 520px; object-fit: cover; }

.prose { max-width: 760px; margin-inline: auto; font-size: 1.08rem; color: var(--ink-dim); }
.prose h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 590;
  line-height: 1.25;
  margin: 2.4em 0 0.8em;
}
.prose h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 590;
  margin: 2em 0 0.7em;
}
.prose p { margin-bottom: 1.35em; }
.prose ul, .prose ol { margin: 0 0 1.5em 1.3em; }
.prose li { margin-bottom: 0.7em; }
.prose li::marker { color: var(--accent-soft); }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line-strong); margin: 2em auto; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px;
  margin: 2em 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2em;
  color: var(--ink);
}
.article-nav {
  max-width: 760px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 123, 255, 0.18);
}
.field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--muted); }

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  padding: clamp(28px, 3.4vw, 42px);
}
.contact-card ul { list-style: none; display: grid; gap: 18px; margin-top: 26px; }
.contact-card li { display: flex; gap: 14px; align-items: center; color: var(--ink-dim); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(62, 123, 255, 0.35);
  background:
    radial-gradient(700px 300px at 85% 15%, rgba(62, 123, 255, 0.28), transparent 60%),
    radial-gradient(500px 260px at 10% 90%, rgba(127, 178, 255, 0.16), transparent 60%),
    var(--surface);
  padding: clamp(44px, 6vw, 84px);
  text-align: center;
}
.cta-band .h-display { max-width: 22ch; margin-inline: auto; }
.cta-band .lead { margin: 20px auto 34px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(48px, 6vw, 80px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 52px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } }
.footer-grid h4 {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--ink-dim); font-size: 15px; transition: color 0.25s; }
.footer-grid ul a:hover { color: var(--accent-soft); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Reveal animations (JS-driven) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* Cursor glow */
.cursor-glow {
  position: fixed;
  z-index: 99;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(62, 123, 255, 0.07), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(44px, 6vw, 80px);
  background:
    radial-gradient(1000px 460px at 80% -10%, rgba(62, 123, 255, 0.16), transparent 60%),
    radial-gradient(700px 380px at 5% 20%, rgba(127, 178, 255, 0.07), transparent 55%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .crumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; letter-spacing: 0.06em; }
.page-hero .crumb a:hover { color: var(--accent-soft); }
