/* ═══════════════════════════════════════════
   NAJIB SHAIKH — PORTFOLIO v2
   Premium minimal with GSAP, grain, cursor
   ═══════════════════════════════════════════ */

/* ── Variables ─────────────────────────────── */
:root {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Light Mode ────────────────────────────── */
[data-theme="light"], :root {
  --bg: #F4F8F1;
  --bg-card: #FFFFFF;
  --bg-card-hover: #EEF3EB;
  --text: #1A2318;
  --text-muted: #4A5E44;
  --text-dim: #7A8F73;
  --accent: #2E6B3A;
  --accent-subtle: rgba(46, 107, 58, 0.08);
  --accent-glow: rgba(46, 107, 58, 0.10);
  --border: rgba(30, 60, 30, 0.10);
  --border-hover: rgba(30, 60, 30, 0.20);
  --nav-bg: rgba(244, 248, 241, 0.85);
  --nav-bg-scroll: rgba(244, 248, 241, 0.95);
  --shadow-card: 0 2px 16px rgba(30, 60, 30, 0.04);
  --shadow-hover: 0 16px 48px rgba(30, 60, 30, 0.08);
  --footer-name: #C8D4C0;
  --footer-name-hover: #2E6B3A;
  --grain-opacity: 0.03;
}

/* ── Dark Mode ─────────────────────────────── */
[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --text: #E8E8E8;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent: #C9A84C;
  --accent-subtle: rgba(201, 168, 76, 0.08);
  --accent-glow: rgba(201, 168, 76, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(10, 10, 10, 0.8);
  --nav-bg-scroll: rgba(10, 10, 10, 0.95);
  --shadow-card: none;
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.3);
  --footer-name: rgba(255, 255, 255, 0.06);
  --footer-name-hover: rgba(201, 168, 76, 0.3);
  --grain-opacity: 0.04;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Layout ────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.section {
  padding: clamp(80px, 12vh, 160px) 0;
}

/* ── Typography ────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: clamp(40px, 6vh, 80px);
}

/* Word split containers */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
}

.word-inner {
  display: inline-block;
  will-change: transform;
}

/* ── Grain Overlay ─────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.grain::before {
  content: '';
  position: absolute;
  inset: -200%;
  width: 500%;
  height: 500%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}

/* ── Cursor Glow ───────────────────────────── */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.4s;
}

.cursor-glow.visible { opacity: 1; }

/* Hide the old cursor elements */
.cursor, .cursor-dot { display: none; }

/* ── Theme Toggle ──────────────────────────── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  color: var(--text-muted);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Theme Transitions ─────────────────────── */
body, .nav, .work-card, .philosophy-card, .project-card,
.photo-placeholder, .btn, .work-tag, .metric, .qualify-item {
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

/* ── Navigation ────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(24px, 5vw, 80px);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  transition: color 0.2s;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ── Hero ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px clamp(24px, 5vw, 80px) 60px;
  position: relative;
}

.hero-inner {
  max-width: 900px;
  text-align: center;
}

.hero-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 100px;
  transition: all 0.25s var(--ease-out);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 17px;
}

/* ── Previously Section ────────────────────── */
.previously-section {
  padding: clamp(48px, 7vh, 80px) 0;
}

.previously-label {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.previously-ticker-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.previously-ticker {
  display: inline-flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  animation: previously-scroll 25s linear infinite;
  white-space: nowrap;
}

@keyframes previously-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.previously-item {
  white-space: nowrap;
  padding: 8px 0;
  position: relative;
  opacity: 0.4;
  transition: opacity 0.4s var(--ease-out);
  line-height: 1;
}

.previously-item:hover {
  opacity: 0.7;
}

.wordmark-accent {
  opacity: 0.6;
}

/* Stealth AI — clean, modern, light weight */
.wordmark-stealth {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: lowercase;
}
.wordmark-stealth .wordmark-accent {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-left: 2px;
  font-size: 16px;
  vertical-align: baseline;
}

/* Retailo — bold, warm brand color at reduced opacity */
.wordmark-retailo {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FF4B2B;
  text-transform: lowercase;
}

/* US Mobile — bold uppercase, tech feel */
.wordmark-usmobile {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
}

/* FlatRock — serif, classic investment banking */
.wordmark-flatrock {
  font-family: 'Playfair Display', 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  font-style: normal;
}

/* Business Recorder — newspaper-style serif */
.wordmark-bizrecorder {
  font-family: 'Playfair Display', 'Instrument Serif', Georgia, serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: none;
}

/* Mentoga — modern clean sans */
.wordmark-mentoga {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: lowercase;
}

/* Caravan Media — medium weight editorial */
.wordmark-caravan {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  font-style: italic;
}

/* Clymb AI — clean tech */
.wordmark-clymb {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: lowercase;
}
.wordmark-clymb .wordmark-accent {
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 17px;
}

@media (max-width: 768px) {
  .previously-logos {
    gap: 12px 32px;
    max-width: 100%;
    padding: 0 20px;
  }

  .previously-item {
    opacity: 0.35;
  }

  .wordmark-stealth { font-size: 17px; }
  .wordmark-stealth .wordmark-accent { font-size: 14px; }
  .wordmark-retailo { font-size: 19px; }
  .wordmark-usmobile { font-size: 15px; }
  .wordmark-flatrock { font-size: 19px; }
  .wordmark-bizrecorder { font-size: 16px; }
  .wordmark-mentoga { font-size: 17px; }
  .wordmark-caravan { font-size: 18px; }
  .wordmark-clymb { font-size: 17px; }
  .wordmark-clymb .wordmark-accent { font-size: 14px; }
}

/* ── Logo Ticker ───────────────────────────── */
.logos-section {
  padding: clamp(32px, 5vh, 60px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logos-caption {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.ticker-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tickerScroll 35s linear infinite;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  flex-shrink: 0;
  padding: 0 clamp(24px, 3vw, 48px);
  color: var(--text-dim);
  transition: color 0.3s;
}

.ticker-item:hover {
  color: var(--text);
}

.ticker-logo {
  height: 24px;
  width: auto;
}

.ticker-item--logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

a.ticker-item--logo:hover .ticker-name {
  opacity: 0.8;
}

a.ticker-item--logo:hover .ticker-icon {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

.ticker-icon {
  height: 48px;
  width: 48px;
  border-radius: 8px;
  filter: grayscale(100%) brightness(1.8);
  opacity: 0.6;
  transition: all 0.3s var(--ease-out);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Conviction Statement ──────────────────── */
.conviction-section {
  padding: clamp(80px, 12vh, 160px) 0;
}

.conviction {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border: none;
  padding: 0;
}

.conviction-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ── Work Cards ────────────────────────────── */
.work-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.work-card:hover::before { opacity: 1; }

.work-card-header,
.work-metrics,
.work-body {
  position: relative;
  z-index: 1;
}

.work-card-header {
  padding: clamp(28px, 4vw, 48px);
}

.work-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.work-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}

.work-company-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 8px;
  max-width: 600px;
}

.work-role {
  font-size: 16px;
  color: var(--text-muted);
}

/* ── Work Metrics Strip ────────────────────── */
.work-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.metric {
  background: var(--bg-card);
  padding: clamp(16px, 2vw, 24px);
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ── Work Card Body (expandable) ───────────── */
.work-body {
  height: 0;
  overflow: hidden;
}

.work-context {
  padding: clamp(28px, 4vw, 48px);
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
}

.work-context p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.work-results {
  padding: 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.result {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.result p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.result strong {
  color: var(--text);
  font-weight: 500;
}

/* Open state indicator — real button */
.work-expand-btn {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  right: clamp(28px, 4vw, 48px);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-dim);
  transition: transform 0.4s var(--ease-out);
  z-index: 2;
}

.work-expand-btn:hover {
  color: var(--accent);
}

.work-card.open .work-expand-btn {
  transform: rotate(45deg);
}

/* ── AI Projects Bento ─────────────────────── */
.projects-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-card {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover::after { opacity: 1; }

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-card > * { position: relative; z-index: 1; }

.project-card--featured {
  grid-column: span 2;
}

.project-card--large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.project-card--large p {
  flex: 1;
}

.project-card--wide {
  grid-column: span 2;
}

.project-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 16px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.project-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tech, .project-companies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-tech span, .project-companies span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* ── Project Case Studies ──────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-case {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.project-case::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.project-case:hover::before { opacity: 1; }

.project-case-header,
.project-case-body {
  position: relative;
  z-index: 1;
}

.project-case-header {
  padding: clamp(24px, 3vw, 40px);
}

.project-case-header::after {
  content: '+';
  position: absolute;
  top: clamp(24px, 3vw, 40px);
  right: clamp(24px, 3vw, 40px);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform 0.4s var(--ease-out);
}

.project-case.open .project-case-header::after {
  transform: rotate(45deg);
}

.project-case-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.project-case-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.project-case-stats-mini {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.project-case-stats-mini span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent-subtle);
  border-radius: 100px;
  white-space: nowrap;
}

.project-case-oneliner {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 700px;
  padding-right: 40px;
}

/* Case study body (expandable) */
.project-case-body {
  height: 0;
  overflow: hidden;
}

.project-case-about {
  padding: 0 clamp(24px, 3vw, 40px) 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.project-case-about h4,
.project-detail h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-case-about p,
.project-detail p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.project-case-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  margin: 0 clamp(24px, 3vw, 40px) 24px;
  border-radius: 12px;
  overflow: hidden;
}

.project-metric {
  background: var(--bg);
  padding: 20px 16px;
  text-align: center;
}

.project-metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
}

.project-metric-label {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.project-case-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 clamp(24px, 3vw, 40px) 24px;
}

.project-detail {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.project-case-body .project-tech {
  padding: 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-case-body .project-tech span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

@media (max-width: 768px) {
  .project-case-top {
    flex-direction: column;
  }

  .project-case-details {
    grid-template-columns: 1fr;
  }

  .project-case-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .project-case-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Project Card Links ────────────────────── */
.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card-link .project-case {
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.project-card-link:hover .project-case {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.project-card-link .project-case-header::after {
  display: none;
}

.project-case-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: transform 0.2s;
}

.project-card-link:hover .project-case-cta {
  transform: translateX(4px);
}

/* ── Blog Section ──────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-post {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-out);
}

.blog-post:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.blog-date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.blog-post h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-post p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Project Status Badge ──────────────────── */
.project-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  margin-bottom: 12px;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── Recommended Stack / Repos ─────────────── */
.stack-intro {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: clamp(40px, 5vh, 64px);
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.repo-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.repo-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.repo-card:hover::after { opacity: 1; }

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

.repo-card > * { position: relative; z-index: 1; }

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.repo-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.repo-arrow {
  font-size: 16px;
  color: var(--text-dim);
  transition: color 0.2s, transform 0.2s;
}

.repo-card:hover .repo-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.repo-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.repo-use {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.repo-use-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.repo-use span:last-child {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* ── Philosophy ────────────────────────────── */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.philosophy-card {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.philosophy-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.philosophy-card:hover::after { opacity: 1; }

.philosophy-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.philosophy-card > * { position: relative; z-index: 1; }

.philosophy-number {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
}

.philosophy-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.philosophy-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── About ─────────────────────────────────── */
.about-content {
  max-width: 800px;
}

.about-prose {
  margin-bottom: clamp(40px, 5vh, 64px);
}

.about-bio {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-bio--lead {
  font-size: 20px;
  color: var(--text);
}

/* ── About AI Stats ────────────────────────── */
.about-ai-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: clamp(32px, 4vh, 48px) 0;
}

.ai-stat {
  background: var(--bg-card);
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
}

.ai-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.ai-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.about-coda {
  color: var(--text-dim);
  font-style: italic;
}

@media (max-width: 768px) {
  .about-ai-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .about-ai-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile Hamburger ──────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease-out);
}

.nav-burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile overlay menu */
.nav-links.mobile-open {
  display: flex !important;
  position: fixed;
  inset: 0;
  top: 65px;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 99;
  padding: 40px;
}

.nav-links.mobile-open a {
  font-size: 20px;
  color: var(--text);
  display: block !important;
}

/* ── Contact ───────────────────────────────── */
.contact-section {
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 48px;
  line-height: 1.05;
  text-align: center;
}

.contact-qualify {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.qualify-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.qualify-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.qualify-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────── */
.footer {
  padding: clamp(60px, 10vh, 120px) clamp(24px, 5vw, 80px);
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-name {
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 280px);
  line-height: 0.85;
  color: var(--footer-name);
  letter-spacing: -0.04em;
  user-select: none;
  transition: color 0.6s var(--ease-out);
}

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

.footer-cta {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.footer-cta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s;
}

.footer-cta a:hover {
  opacity: 0.7;
}

.footer-colophon {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  padding: 24px 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .cursor-glow { display: none; }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-links .theme-toggle,
  .nav-links .nav-cta {
    display: none;
  }

  .nav-links.mobile-open .theme-toggle,
  .nav-links.mobile-open .nav-cta {
    display: flex;
  }

  .hero-stats {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 24px 16px;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    min-width: 40%;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .work-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-results {
    grid-template-columns: 1fr;
  }

  .projects-bento {
    grid-template-columns: 1fr;
  }

  .project-card--featured,
  .project-card--large,
  .project-card--wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .repos-grid {
    grid-template-columns: 1fr;
  }


  .contact-qualify {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 16px 20px;
  }

  .work-card-header {
    padding: 24px;
  }

  .work-expand-btn {
    top: 24px;
    right: 24px;
  }

  .work-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .work-context {
    padding: 24px;
  }

  .work-results {
    padding: 0 24px 24px;
  }
}

/* ── Project Landing Pages ─────────────────── */
.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

.project-hero {
  padding: 140px 0 clamp(60px, 8vh, 100px);
}

.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.project-hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 40px;
}

.project-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.project-hero-metrics .project-metric {
  background: var(--bg-card);
  padding: 24px 16px;
  text-align: center;
}

.project-content {
  max-width: 800px;
}

.project-section {
  margin-bottom: clamp(48px, 6vh, 80px);
}

.project-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.project-section p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.project-stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stack-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.stack-item h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.stack-item p {
  font-size: 14px;
  margin-bottom: 0;
}

.project-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.timeline-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 15px;
  margin-bottom: 0;
}

.project-content .project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-content .project-tech span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

@media (max-width: 768px) {
  .project-stack-grid {
    grid-template-columns: 1fr;
  }

  .project-hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .project-hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Lenis ─────────────────────────────────── */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* ── About Page (Standalone) ─────────────── */

.nav-link-active {
  color: var(--accent) !important;
}

.about-page-hero {
  padding: 140px 0 clamp(40px, 6vh, 80px);
}

.about-page-hero .back-link {
  margin-bottom: 40px;
}

.about-page-label {
  margin-bottom: 24px;
}

.about-page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 800px;
}

.about-page-section {
  padding: 0 0 clamp(80px, 12vh, 160px);
}

.about-page-content {
  max-width: 760px;
}

.about-page-block {
  margin-bottom: clamp(56px, 8vh, 96px);
}

.about-page-lead {
  font-size: 20px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-page-text {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-page-text:last-child {
  margin-bottom: 0;
}

.about-page-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: clamp(24px, 3vh, 40px);
}

/* ── About Page Timeline ─────────────────── */
.about-timeline {
  position: relative;
  padding-left: 32px;
  margin-top: clamp(32px, 4vh, 48px);
}

.about-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.about-timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.about-timeline-item:last-child {
  padding-bottom: 0;
}

.about-timeline-marker {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}

.about-timeline-current .about-timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 8px var(--accent-glow);
}

.about-timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 8px;
}

.about-timeline-role {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.about-timeline-company {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.about-timeline-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── About Page CTA Block ────────────────── */
.about-page-cta-block {
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.about-page-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ── About Page Responsive ───────────────── */
@media (max-width: 768px) {
  .about-page-hero {
    padding-top: 120px;
  }

  .about-timeline {
    padding-left: 24px;
  }

  .about-timeline-marker {
    left: -28px;
  }

  .about-page-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .about-page-hero {
    padding-top: 100px;
  }

  .about-timeline {
    padding-left: 20px;
  }

  .about-timeline-marker {
    left: -24px;
  }

  .about-page-cta-block {
    padding: 24px;
  }
}

/* ── Blog Post Links (Index Page) ──────────── */
.blog-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-post-link:hover .blog-read-more {
  color: var(--accent);
  transform: translateX(4px);
}

.blog-read-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 12px;
  transition: all 0.3s var(--ease-out);
}

/* ── Blog Post Page (Standalone) ───────────── */
.blog-post-hero {
  padding: 140px 0 clamp(40px, 6vh, 80px);
}

.blog-post-hero .back-link {
  margin-bottom: 40px;
}

.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 800px;
}

.blog-post-body {
  padding: 0 0 clamp(80px, 12vh, 160px);
}

.blog-post-content {
  max-width: 700px;
}

.blog-post-content p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

.blog-post-content p:last-child {
  margin-bottom: 0;
}

.blog-post-content strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Blog Post Page Responsive ─────────────── */
@media (max-width: 768px) {
  .blog-post-hero {
    padding-top: 120px;
  }
}

@media (max-width: 480px) {
  .blog-post-hero {
    padding-top: 100px;
  }
}

/* ═══════════════════════════════════════════
   MOBILE EXPERIENCE IMPROVEMENTS
   ═══════════════════════════════════════════ */

/* ── Hero Stats: 2x2 grid on mobile ───────── */
/* (integrated into existing 768px breakpoint above) */

/* ── Work Card: touch-friendly expand btn ──── */
@media (max-width: 768px) {
  .work-expand-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .work-metrics {
    cursor: pointer;
  }

  .metric {
    min-height: 44px;
  }
}

/* ── Repo cards: single column on mobile ───── */
/* (already handled in existing 768px breakpoint) */

/* ── Touch-friendly tap targets ────────────── */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 12px 28px;
  }

  .btn-large {
    min-height: 48px;
    padding: 14px 36px;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-burger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links.mobile-open .nav-cta {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .project-card-link,
  .blog-post-link {
    min-height: 44px;
  }

  .project-case-header {
    min-height: 44px;
  }

  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .ticker-item--logo {
    min-height: 44px;
  }

  .back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .about-page-actions .btn {
    min-height: 44px;
  }
}

/* ── 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;
  }

  .grain::before {
    animation: none;
  }

  .scroll-line {
    animation: none;
    opacity: 0.5;
  }

  .ticker {
    animation: none;
  }

  .previously-ticker {
    animation: none;
  }

  .project-status {
    animation: none;
    opacity: 1;
  }

  .project-card:hover,
  .blog-post:hover,
  .repo-card:hover,
  .philosophy-card:hover,
  .work-card:hover {
    transform: none;
  }
}

/* ── iOS smooth momentum scrolling ─────────── */
body,
.nav-links.mobile-open {
  -webkit-overflow-scrolling: touch;
}
