/* ============================================
   PRATEEK BALI — PORTFOLIO
   Mobile-first · Premium editorial · Dark theme
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #16161a;
  --surface: #1a1a1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f3;
  --text-muted: #a0a0a8;
  --text-dim: #6a6a72;
  --accent: #5eead4;
  --accent-2: #a7f3d0;
  --accent-warm: #fbbf24;
  --accent-purple: #c4b5fd;
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1280px;
  --nav-h: 64px;
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
}

body.nav-open {
  overflow: hidden;
  height: 100svh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* =========================================================
   BACKGROUND FX
   ========================================================= */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 340px; height: 340px; top: -140px; right: -100px; background: radial-gradient(circle, #5eead4 0%, transparent 70%); opacity: 0.22; }
.orb-2 { width: 400px; height: 400px; bottom: -150px; left: -140px; background: radial-gradient(circle, #818cf8 0%, transparent 70%); opacity: 0.14; }
.orb-3 { width: 260px; height: 260px; top: 45%; right: -80px; background: radial-gradient(circle, #fbbf24 0%, transparent 70%); opacity: 0.06; }

@media (min-width: 1024px) {
  .orb-1 { width: 500px; height: 500px; top: -200px; right: -150px; opacity: 0.25; filter: blur(120px); }
  .orb-2 { width: 600px; height: 600px; bottom: -200px; left: -200px; opacity: 0.15; filter: blur(120px); }
  .orb-3 { width: 400px; height: 400px; top: 50%; left: 40%; opacity: 0.08; filter: blur(120px); }
}

/* =========================================================
   NAVIGATION (mobile-first)
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding-top: var(--safe-top);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  padding: 2px 0;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: var(--bg-2);
  flex-shrink: 0;
}
.logo-text {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
}

.nav-links { display: none; }

.nav-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.nav-menu:hover { background: rgba(255, 255, 255, 0.06); }
.nav-menu span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
}
body.nav-open .nav-menu span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-menu span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
body.nav-open .nav-menu span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: calc(var(--nav-h) + var(--safe-top) + 32px) 24px calc(var(--safe-bottom) + 32px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body.nav-open .nav-drawer {
  opacity: 1;
  pointer-events: auto;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.6s ease, color 0.2s ease;
}
body.nav-open .drawer-links a {
  transform: translateY(0);
  opacity: 1;
}
body.nav-open .drawer-links a:nth-child(1) { transition-delay: 0.08s; }
body.nav-open .drawer-links a:nth-child(2) { transition-delay: 0.14s; }
body.nav-open .drawer-links a:nth-child(3) { transition-delay: 0.20s; }
body.nav-open .drawer-links a:nth-child(4) { transition-delay: 0.26s; }
body.nav-open .drawer-links a:nth-child(5) { transition-delay: 0.32s; }
body.nav-open .drawer-links a:nth-child(6) { transition-delay: 0.38s; }

.drawer-links a:active { color: var(--accent); }
.drawer-links a .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  font-weight: 400;
}
.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.drawer-meta strong { color: var(--text); font-weight: 500; }

@media (min-width: 960px) {
  .nav-inner { padding: 0 32px; height: 72px; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
  }
  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-cta {
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text) !important;
  }
  .nav-cta:hover { background: var(--text); color: var(--bg) !important; }
  .nav-menu, .nav-drawer { display: none !important; }
}

/* =========================================================
   HERO (mobile-first)
   ========================================================= */
.hero {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + var(--safe-top) + 20px) 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ----- Top row: name (left) + small photo (right) ----- */
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}
.hero-identity {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-photo {
  position: relative;
  width: 108px;
  flex-shrink: 0;
}
.photo-frame {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 32px -8px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  background: var(--bg-2);
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.5), rgba(129, 140, 248, 0.25) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(94, 234, 212, 0.25), transparent 60%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.photo-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(16, 16, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.photo-badge-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

/* ----- Content ----- */
.hero-content { display: flex; flex-direction: column; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.kicker-line {
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.kicker-text { color: var(--accent); }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(44px, 14vw, 76px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-name .line { display: block; }
.hero-name .italic {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(16px, 4vw, 19px);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 22px;
  letter-spacing: -0.005em;
  line-height: 1.45;
}
.accent { color: var(--accent); font-weight: 500; }
.hero-role .accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  font-weight: 500;
}
.underline {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}

/* ----- Skill chips ----- */
.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.skill-chip svg { color: var(--accent); flex-shrink: 0; }
@media (hover: hover) {
  .skill-chip:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.06); }
}

/* ----- Facts grid ----- */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  padding: 18px 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.fact { min-width: 0; }
.fact-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fact-num span {
  font-size: 0.6em;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  margin-left: 1px;
}
.fact-text {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

/* ----- Actions ----- */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 50px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  touch-action: manipulation;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:active { transform: scale(0.97); background: var(--accent); }
.btn-primary svg { transition: transform 0.3s ease; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:active { background: var(--bg-2); transform: scale(0.97); }

@media (hover: hover) {
  .btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(94, 234, 212, 0.3); }
  .btn-primary:hover svg { transform: translateX(4px); }
  .btn-secondary:hover { background: var(--bg-2); border-color: var(--text); }
}

/* ----- Previous employers strip ----- */
.hero-prev {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.prev-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.prev-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}
.prev-dot { color: var(--text-dim); font-size: 14px; }

.hero-scroll { display: none; }

/* =========================================================
   HERO — tablet
   ========================================================= */
@media (min-width: 560px) {
  .hero-photo, .photo-frame { width: 140px; }
  .photo-frame { height: 140px; border-radius: 22px; }
  .photo-frame::before { border-radius: 22px; }
  .hero-name { font-size: clamp(64px, 12vw, 96px); }
  .hero-top { gap: 24px; }
}

@media (min-width: 720px) {
  .hero {
    padding: calc(var(--nav-h) + var(--safe-top) + 40px) 32px 72px;
    gap: 40px;
  }
  .hero-top { gap: 32px; }
  .hero-photo, .photo-frame { width: 170px; }
  .photo-frame { height: 170px; border-radius: 24px; }
  .photo-frame::before { border-radius: 24px; }
  .photo-badge { font-size: 11.5px; padding: 5px 12px; bottom: -10px; }
  .hero-kicker { margin-bottom: 18px; font-size: 11.5px; }
  .kicker-line { width: 30px; }
  .hero-name { font-size: clamp(80px, 11vw, 120px); }
  .hero-role { font-size: 20px; margin-bottom: 28px; max-width: 620px; }
  .hero-skills { gap: 8px; margin-bottom: 32px; }
  .skill-chip { padding: 8px 14px; font-size: 13px; }
  .hero-facts { padding: 24px; gap: 20px; margin-bottom: 32px; }
  .fact-num { font-size: 38px; margin-bottom: 8px; }
  .fact-text { font-size: 12px; }
  .hero-actions { flex-direction: row; gap: 14px; margin-bottom: 28px; }
  .btn { padding: 15px 26px; font-size: 15px; min-height: 52px; }
  .hero-prev { flex-direction: row; align-items: center; gap: 18px; }
  .prev-logos { font-size: 22px; gap: 14px; }
}

/* =========================================================
   HERO — desktop (name left + small photo inline, content below)
   ========================================================= */
@media (min-width: 1024px) {
  .hero {
    padding: calc(var(--nav-h) + 32px) 32px 100px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 44px;
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: center;
  }
  .hero-top {
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
  }
  .hero-photo, .photo-frame { width: 260px; }
  .photo-frame { height: 260px; border-radius: 28px; }
  .photo-frame::before { border-radius: 28px; }
  .photo-frame::after { inset: -40%; filter: blur(40px); }
  .photo-badge { font-size: 12px; padding: 6px 14px; bottom: -12px; }
  .hero-kicker { margin-bottom: 22px; font-size: 12px; }
  .kicker-line { width: 36px; }
  .hero-name {
    font-size: clamp(96px, 10.5vw, 156px);
    line-height: 0.86;
    letter-spacing: -0.04em;
  }
  .hero-role { font-size: 22px; margin-bottom: 32px; max-width: 720px; line-height: 1.45; }
  .hero-skills { gap: 8px; margin-bottom: 32px; }
  .skill-chip { padding: 9px 16px; font-size: 13.5px; }
  .hero-facts {
    margin-bottom: 32px;
    padding: 28px 32px;
    gap: 40px;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
  .fact-num { font-size: 46px; }
  .fact-text { font-size: 13px; }
  .hero-actions { margin-bottom: 32px; }
  .hero-scroll {
    display: flex;
    position: absolute;
    bottom: 32px;
    left: 32px;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: var(--font-mono);
  }
  .scroll-line {
    width: 40px;
    height: 1px;
    background: var(--text-dim);
    position: relative;
    overflow: hidden;
  }
  .scroll-line::after {
    content: '';
    position: absolute;
    left: -100%; top: 0;
    width: 100%; height: 100%;
    background: var(--text);
    animation: scrollMove 2s ease-in-out infinite;
  }
  @keyframes scrollMove { to { left: 100%; } }
}

@media (min-width: 1280px) {
  .hero-photo, .photo-frame { width: 300px; }
  .photo-frame { height: 300px; }
}

/* =========================================================
   SECTIONS (mobile-first)
   ========================================================= */
.section {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}
.section-dark {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-accent {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(94, 234, 212, 0.03) 50%, var(--bg) 100%);
}
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.section-eyebrow-sm { margin-bottom: 12px; }
.eyebrow-num { color: var(--accent); font-weight: 500; }
.eyebrow-text { color: var(--text-muted); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 7.6vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 44px;
  font-variation-settings: "opsz" 144;
}
.section-title .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

@media (min-width: 720px) {
  .section { padding: 110px 32px; }
  .section-title { margin-bottom: 64px; }
}

@media (min-width: 1024px) {
  .section { padding: 140px 32px; }
  .section-eyebrow { gap: 14px; margin-bottom: 28px; font-size: 12px; }
  .section-title { font-size: clamp(40px, 5vw, 64px); margin-bottom: 80px; max-width: 1000px; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: flex; flex-direction: column; gap: 40px; }
.about-main p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}
.about-main p:last-child { margin-bottom: 0; }

.about-side { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.side-label {
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.side-quote {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
}
.side-list { list-style: none; }
.side-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.side-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.side-list li:last-child { border-bottom: none; }

@media (min-width: 720px) {
  .about-main p { font-size: 19px; }
}

@media (min-width: 1024px) {
  .about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 80px; align-items: start; }
  .about-main p { font-size: 20px; margin-bottom: 28px; }
  .side-card { padding: 28px; }
  .side-quote { font-size: 18px; }
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 30%, var(--border) 100%);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 13px; height: 13px;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  border-radius: 50%;
}
.timeline-item:first-child .timeline-marker {
  border-color: var(--accent);
  background: var(--accent);
}
.marker-pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.75); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.timeline-content {
  padding: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.timeline-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.timeline-company {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.timeline-period {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.timeline-body {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.timeline-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-highlights li {
  font-size: 13.5px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}
.timeline-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}

@media (min-width: 720px) {
  .timeline { padding-left: 40px; }
  .timeline-marker { left: -40px; width: 15px; height: 15px; top: 8px; }
  .timeline::before { left: 7px; top: 8px; bottom: 8px; }
  .timeline-content { padding: 30px; }
  .timeline-item { padding-bottom: 56px; }
  .timeline-head { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 16px; }
  .timeline-role { font-size: 22px; }
  .timeline-period { padding-top: 6px; white-space: nowrap; font-size: 12px; }
  .timeline-body { font-size: 15px; }
  .timeline-highlights li { font-size: 14px; }
}

@media (min-width: 1024px) {
  .timeline-content { padding: 32px; }
  .timeline-item { padding-bottom: 64px; }
  .timeline-role { font-size: 24px; }
  .timeline-body { font-size: 16px; }
  @media (hover: hover) {
    .timeline-content:hover {
      background: rgba(255, 255, 255, 0.04);
      border-color: var(--border-strong);
      transform: translateY(-2px);
    }
  }
}

/* =========================================================
   EXPERTISE
   ========================================================= */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 64px;
}
.expertise-card {
  padding: 26px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
@media (hover: hover) {
  .expertise-card:hover {
    background: var(--bg-3);
    border-color: var(--border-strong);
    transform: translateY(-4px);
  }
  .expertise-card:hover::before { opacity: 1; }
}

.card-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(94, 234, 212, 0.08);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; }
.expertise-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.25;
}
.expertise-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 720px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 96px; }
  .expertise-card { padding: 32px 28px; }
  .card-icon { width: 44px; height: 44px; margin-bottom: 22px; }
  .card-icon svg { width: 22px; height: 22px; }
  .expertise-card h3 { font-size: 22px; margin-bottom: 12px; }
  .expertise-card p { font-size: 15px; }
}

@media (min-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 120px; }
  .expertise-card { padding: 36px 32px; }
  .card-icon { margin-bottom: 24px; }
  .expertise-card h3 { font-size: 22px; margin-bottom: 14px; }
}

/* =========================================================
   CREDENTIALS
   ========================================================= */
.creds { padding-top: 32px; border-top: 1px solid var(--border); }
.creds-head { margin-bottom: 28px; }
.creds-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}
.creds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cred-logo {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  background: var(--bg);
  flex-shrink: 0;
}
.cred-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.cred-org { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }

@media (min-width: 720px) {
  .creds { padding-top: 40px; }
  .creds-head { margin-bottom: 40px; }
  .creds-title { font-size: 32px; }
  .creds-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cred-item { padding: 22px; gap: 18px; }
  .cred-logo { width: 48px; height: 48px; font-size: 16px; }
  .cred-title { font-size: 15px; }
  .cred-org { font-size: 13px; }
}

/* =========================================================
   SPEAKING
   ========================================================= */
.speaking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.speaking-card {
  padding: 26px 24px;
  background: linear-gradient(145deg, var(--bg-2), rgba(94, 234, 212, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.speaking-tag {
  align-self: flex-start;
  padding: 5px 11px;
  background: rgba(94, 234, 212, 0.08);
  color: var(--accent);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.2);
}
.speaking-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.25;
}
.speaking-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.speaking-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  min-height: 44px;
  padding: 10px 0;
  transition: gap 0.2s ease;
}
.speaking-link:active { gap: 10px; }

@media (hover: hover) {
  .speaking-card:hover { border-color: rgba(94, 234, 212, 0.3); transform: translateY(-4px); }
  .speaking-link:hover { gap: 10px; }
}

@media (min-width: 720px) {
  .speaking-grid { grid-template-columns: 1fr; gap: 16px; }
  .speaking-card { padding: 32px 28px; gap: 16px; }
  .speaking-card h3 { font-size: 22px; }
  .speaking-card p { font-size: 15px; }
}

@media (min-width: 1024px) {
  .speaking-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .speaking-card { padding: 36px 32px; gap: 18px; }
  .speaking-card h3 { font-size: 24px; }
}

/* =========================================================
   WRITING
   ========================================================= */
.writing-list { display: flex; flex-direction: column; }
.writing-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: padding 0.3s ease;
}
.writing-item:last-child { border-bottom: 1px solid var(--border); }
.writing-item:active .writing-arrow { color: var(--accent); transform: translate(4px, -4px); }

.writing-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.writing-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.25;
}
.writing-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.writing-arrow {
  color: var(--text-dim);
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.writing-arrow svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .writing-item:hover { padding-left: 12px; }
  .writing-item:hover .writing-arrow { color: var(--accent); transform: translate(4px, -4px); }
}

@media (min-width: 720px) {
  .writing-item {
    grid-template-columns: 130px 1fr 40px;
    gap: 32px;
    padding: 28px 0;
  }
  .writing-date { margin-bottom: 0; }
  .writing-body h3 { font-size: 24px; margin-bottom: 6px; }
  .writing-body p { font-size: 14.5px; }
}

@media (min-width: 1024px) {
  .writing-item { grid-template-columns: 120px 1fr 40px; gap: 40px; padding: 32px 0; }
  .writing-body h3 { font-size: 28px; margin-bottom: 6px; }
  .writing-body p { font-size: 15px; max-width: 600px; }
  .writing-item:hover { padding-left: 16px; }
}

/* =========================================================
   QUOTE SECTION
   ========================================================= */
.section-quote {
  text-align: center;
  padding: 100px 24px;
}
.big-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 40px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 1000px;
  margin: 0 auto 28px;
  color: var(--text);
}
.quote-mark {
  display: inline-block;
  color: var(--accent);
  font-weight: 400;
  line-height: 0;
  vertical-align: baseline;
}
.quote-mark-end { margin-left: 4px; }
.quote-attribution {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.quote-attribution strong { color: var(--accent); font-weight: 500; }

@media (min-width: 720px) { .section-quote { padding: 140px 32px; } .big-quote { margin-bottom: 36px; } }
@media (min-width: 1024px) { .section-quote { padding: 160px 32px; } .big-quote { font-size: clamp(32px, 4vw, 48px); } .quote-attribution { font-size: 14px; } }

/* =========================================================
   CONNECT
   ========================================================= */
.section-connect { padding-bottom: calc(60px + var(--safe-bottom)); }
.connect-lede {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.connect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 48px;
}
.connect-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  min-height: 80px;
}
a.connect-card:active {
  border-color: var(--accent);
  background: rgba(94, 234, 212, 0.04);
  transform: scale(0.98);
}
@media (hover: hover) {
  a.connect-card:hover { border-color: var(--accent); background: rgba(94, 234, 212, 0.04); transform: translateY(-2px); }
  a.connect-card:hover .connect-arrow { color: var(--accent); transform: translate(4px, -4px); }
}

.connect-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.connect-icon svg { width: 20px; height: 20px; }
.connect-info { flex: 1; min-width: 0; }
.connect-label {
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-mono);
  margin-bottom: 5px;
}
.connect-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connect-arrow { color: var(--text-dim); transition: all 0.3s ease; flex-shrink: 0; width: 20px; height: 20px; }

.connect-footer {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-signature { display: flex; flex-direction: column; gap: 4px; }
.sig-line { font-size: 13px; color: var(--text); }
.sig-muted { color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; }
.footer-year { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

@media (min-width: 720px) {
  .connect-lede { font-size: 18px; margin-bottom: 48px; }
  .connect-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 64px; }
  .connect-card { padding: 24px; gap: 18px; }
  .connect-icon { width: 50px; height: 50px; }
  .connect-footer { flex-direction: row; justify-content: space-between; align-items: center; padding-top: 36px; }
}

@media (min-width: 1024px) {
  .connect-lede { font-size: 20px; max-width: 720px; margin-bottom: 56px; }
  .connect-card { padding: 28px; gap: 20px; }
  .connect-icon { width: 52px; height: 52px; }
  .connect-icon svg { width: 22px; height: 22px; }
  .connect-value { font-size: 16px; }
  .connect-footer { padding-top: 40px; }
  .section-connect { padding-bottom: 80px; }
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

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

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

/* iOS safe-area tweaks */
@supports (padding: max(0px)) {
  .nav-inner { padding-left: max(20px, var(--safe-left)); padding-right: max(20px, var(--safe-right)); }
  .hero { padding-left: max(20px, var(--safe-left)); padding-right: max(20px, var(--safe-right)); }
  .section { padding-left: max(20px, var(--safe-left)); padding-right: max(20px, var(--safe-right)); }
  .nav-drawer { padding-left: max(24px, var(--safe-left)); padding-right: max(24px, var(--safe-right)); }
}

@media (min-width: 720px) {
  @supports (padding: max(0px)) {
    .nav-inner { padding-left: max(32px, var(--safe-left)); padding-right: max(32px, var(--safe-right)); }
    .hero, .section { padding-left: max(32px, var(--safe-left)); padding-right: max(32px, var(--safe-right)); }
  }
}
