/* ============ TOKENS ============ */
  :root {
    --bg-0: #05060a;
    --bg-1: #0a0d18;
    --bg-2: #0f1424;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --stroke: rgba(255, 255, 255, 0.09);
    --stroke-strong: rgba(255, 255, 255, 0.16);
    --text: #eef1f7;
    --text-2: #b6bcca;
    --text-3: #7c8394;
    --cyan: #22d3ee;
    --violet: #8b5cf6;
    --pink: #f472b6;
    --amber: #fbbf24;
    --teal: #2dd4bf;
    --grad-primary: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 50%, #f472b6 100%);
    --grad-soft: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(139,92,246,0.18));
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 8px 24px -8px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(34, 211, 238, 0.18);
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
  body {
    margin: 0;
    font-family: 'Geist', -apple-system, system-ui, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--bg-0);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; }

  ::selection { background: var(--cyan); color: #000; }

  /* ============ BACKGROUND ATMOSPHERE ============ */
  .bg-stage {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
      radial-gradient(ellipse at top, #0e1530 0%, #05060a 60%) ,
      var(--bg-0);
  }
  .constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 85% 80% at center, black 35%, transparent 92%);
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, black 35%, transparent 92%);
  }
  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    will-change: transform;
  }
  .orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #22d3ee 0%, transparent 65%); top: -120px; left: -120px; animation: orbA 22s ease-in-out infinite; }
  .orb-2 { width: 620px; height: 620px; background: radial-gradient(circle, #8b5cf6 0%, transparent 65%); top: 25%; right: -180px; animation: orbB 28s ease-in-out infinite; }
  .orb-3 { width: 480px; height: 480px; background: radial-gradient(circle, #f472b6 0%, transparent 65%); bottom: -160px; left: 30%; animation: orbC 26s ease-in-out infinite; opacity: 0.35; }
  .orb-4 { width: 380px; height: 380px; background: radial-gradient(circle, #2dd4bf 0%, transparent 65%); bottom: 20%; right: 20%; animation: orbA 32s ease-in-out infinite reverse; opacity: 0.3; }
  .bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }

  @keyframes orbA { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(80px, 60px) scale(1.12); } 66% { transform: translate(-40px, 100px) scale(0.92); } }
  @keyframes orbB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-120px, 80px) scale(1.18); } }
  @keyframes orbC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(120px, -60px) scale(1.1); } }

  /* ============ SCROLL PROGRESS ============ */
  .scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: var(--grad-primary);
    z-index: 100;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  }

  /* ============ NAV ============ */
  nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 8px 22px;
    background: rgba(10, 13, 24, 0.55);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: navIn 0.9s var(--ease) 0.2s forwards;
  }
  @keyframes navIn { to { opacity: 1; transform: translateX(-50%) translateY(0); } from { opacity: 0; transform: translateX(-50%) translateY(-20px); } }

  nav .brand {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-style: italic;
    padding-right: 14px;
    margin-right: 6px;
    border-right: 1px solid var(--stroke);
    color: var(--text);
    letter-spacing: 0.01em;
  }
  nav ul { display: flex; gap: 2px; list-style: none; padding: 0; margin: 0; }
  nav a.link {
    display: inline-block;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 999px;
    transition: all 0.3s var(--ease);
    letter-spacing: 0.02em;
  }
  nav a.link:hover { color: var(--text); background: var(--surface-2); }
  nav .cta {
    margin-left: 8px;
    padding: 10px 18px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #07111a;
    background: var(--grad-primary);
    background-size: 200% 200%;
    border-radius: 999px;
    transition: all 0.4s var(--ease);
    animation: gradShift 8s ease infinite;
  }
  nav .cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(34, 211, 238, 0.5); }
  @keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

  @media (max-width: 720px) {
    nav { padding: 6px 6px 6px 14px; max-width: calc(100vw - 24px); }
    nav .brand { font-size: 15px; padding-right: 10px; }
    nav a.link { padding: 7px 9px; font-size: 12px; }
    nav .cta { padding: 7px 13px; font-size: 12px; line-height: 1.2; }
    nav ul, nav .cta, nav .nav-leaf { display: none; }
  }

  /* ============ LAYOUT ============ */
  main { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
  section { padding: 120px 0; position: relative; }
  @media (max-width: 720px) { section { padding: 80px 0; } main { padding: 0 20px; } }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 6px 14px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
  }
  .eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan);
    animation: pulse 2.4s ease infinite;
  }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

  h1, h2, h3 { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; margin: 0; }
  .section-title { font-size: clamp(36px, 5vw, 64px); margin: 18px 0 22px; }
  .section-title em { font-style: italic; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .section-intro { font-size: 17px; color: var(--text-2); max-width: 640px; margin-bottom: 64px; }

  /* ============ HERO ============ */
  .hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 60px; }
  .hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 80px; align-items: center; width: 100%; }
  @media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }

  .hero-content > * { opacity: 0; transform: translateY(30px); animation: rise 1s var(--ease) forwards; }
  .hero-content > *:nth-child(1) { animation-delay: 0.4s; }
  .hero-content > *:nth-child(2) { animation-delay: 0.6s; }
  .hero-content > *:nth-child(3) { animation-delay: 0.8s; }
  .hero-content > *:nth-child(4) { animation-delay: 1.0s; }
  .hero-content > *:nth-child(5) { animation-delay: 1.2s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }

  .hero h1 {
    font-size: clamp(48px, 7.5vw, 96px);
    margin: 22px 0 28px;
    letter-spacing: -0.025em;
  }
  .hero h1 .first {
    display: block;
    background: linear-gradient(180deg, #fff 0%, #c8cfde 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero h1 .last {
    display: block;
    font-style: italic;
    background: var(--grad-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradShift 6s ease infinite;
  }

  .role-rotator {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .role-rotator .tag { color: var(--text-3); }
  .role-rotator .role {
    color: var(--cyan);
    font-weight: 500;
    min-height: 22px;
    display: inline-block;
    border-right: 2px solid var(--cyan);
    padding-right: 4px;
    animation: caret 0.9s steps(2) infinite;
  }
  @keyframes caret { 50% { border-color: transparent; } }

  .hero-lede {
    font-size: 19px;
    color: var(--text-2);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.55;
  }

  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    letter-spacing: 0.01em;
  }
  .btn-primary {
    background: var(--grad-primary);
    background-size: 200% 200%;
    color: #07111a;
    animation: gradShift 8s ease infinite;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(34, 211, 238, 0.5); }
  .btn-ghost {
    background: var(--surface);
    border-color: var(--stroke);
    color: var(--text);
    backdrop-filter: blur(10px);
  }
  .btn-ghost:hover { background: var(--surface-2); border-color: var(--stroke-strong); transform: translateY(-2px); }
  .btn svg { width: 16px; height: 16px; }

  /* Hero photo card */
  .portrait {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4/5;
    margin-left: auto;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    animation: portraitIn 1.4s var(--ease) 0.5s forwards;
  }
  @keyframes portraitIn { to { opacity: 1; transform: translateY(0) scale(1); } }

  /* Technological frame: dashed orbital traces */
  .tech-frame {
    position: absolute;
    inset: -22px;
    width: calc(100% + 44px);
    height: calc(100% + 44px);
    pointer-events: none;
    overflow: visible;
  }
  .tech-frame .trace { fill: none; vector-effect: non-scaling-stroke; }
  .tech-frame .trace-outer {
    stroke: rgba(34, 211, 238, 0.6);
    stroke-width: 1.2;
    stroke-dasharray: 6 10;
    animation: trace-flow 16s linear infinite;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.45));
  }
  .tech-frame .trace-inner {
    stroke: rgba(139, 92, 246, 0.55);
    stroke-width: 1;
    stroke-dasharray: 2 18;
    animation: trace-flow 22s linear infinite reverse;
  }
  @keyframes trace-flow { to { stroke-dashoffset: -200; } }

  /* HUD corner brackets */
  .hud {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--cyan);
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
    animation: hud-pulse 2.4s ease-in-out infinite;
  }
  .hud.tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
  .hud.tr { top: -10px; right: -10px; border-left: 0; border-bottom: 0; animation-delay: 0.6s; }
  .hud.bl { bottom: -10px; left: -10px; border-right: 0; border-top: 0; animation-delay: 1.2s; }
  .hud.br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; animation-delay: 1.8s; }
  @keyframes hud-pulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
  }

  /* Floating data-tag labels on the frame */
  .tech-tag {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    color: var(--cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
  }
  .tech-tag::before { content: '◆ '; color: rgba(34, 211, 238, 0.8); }
  .tech-tag.tag-1 { top: -22px; right: 28%; animation: tag-blink 4s ease-in-out infinite; }
  .tech-tag.tag-2 { bottom: -22px; left: 28%; animation: tag-blink 4s ease-in-out 2s infinite; }
  @keyframes tag-blink {
    0%, 100% { opacity: 0.85; }
    48% { opacity: 0.85; }
    50% { opacity: 0.3; }
    52% { opacity: 0.85; }
  }

  .portrait-frame {
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-1);
    border: 1px solid var(--stroke-strong);
    box-shadow: var(--shadow-lg);
  }
  .portrait-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 12%;
    display: block;
    filter: contrast(1.04) saturate(1.05);
  }
  .portrait-frame::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5,6,10,0.55) 100%);
    pointer-events: none;
  }

  /* Static photo — copy/drag protection only, no cursor interaction. */
  .portrait-frame {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .portrait-frame img {
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
  }

  .portrait-badge {
    position: absolute;
    background: rgba(10, 13, 24, 0.75);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--stroke);
    border-radius: var(--r-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    z-index: 2;
  }
  .badge-status { bottom: 24px; left: -16px; }
  .badge-status .dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 12px #4ade80; animation: pulse 2s ease infinite; }
  .badge-status strong { font-weight: 600; color: var(--text); }
  .badge-status span { color: var(--text-3); font-size: 11px; display: block; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em; }
  .badge-loc { top: 24px; right: -20px; flex-direction: column; align-items: flex-start; padding: 14px 18px; gap: 4px; }
  .badge-loc .lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.16em; }
  .badge-loc .val { font-family: 'Instrument Serif', serif; font-size: 22px; font-style: italic; }

  /* ============ METRICS ============ */
  .metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 28px 0 0;
  }
  @media (max-width: 880px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
  .metric {
    position: relative;
    padding: 28px 22px;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
  }
  .metric::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .metric:hover { transform: translateY(-4px); border-color: var(--stroke-strong); }
  .metric:hover::before { opacity: 1; }
  .metric:nth-child(2)::before { background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 60%); }
  .metric:nth-child(3)::before { background: radial-gradient(circle at top right, rgba(244, 114, 182, 0.14), transparent 60%); }
  .metric:nth-child(4)::before { background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 60%); }

  .metric .num {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, #95a0b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  .metric .num .suffix { font-size: 0.45em; color: var(--cyan); font-style: italic; }
  .metric:nth-child(2) .num .suffix { color: var(--violet); }
  .metric:nth-child(3) .num .suffix { color: var(--pink); }
  .metric:nth-child(4) .num .suffix { color: var(--amber); }
  .metric .lbl {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.4;
  }
  .metric .kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
  }

  /* ============ ABOUT ============ */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  @media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
  .about-body p { font-size: 17px; color: var(--text-2); margin: 0 0 18px; line-height: 1.7; }
  .about-body p strong { color: var(--text); font-weight: 600; }

  .about-pillars { display: flex; flex-direction: column; gap: 14px; }
  .pillar {
    padding: 22px 24px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--stroke);
    border-radius: var(--r-md);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
  }
  .pillar:hover { transform: translateX(6px); border-color: var(--stroke-strong); background: var(--surface-2); }
  .pillar h4 { font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 600; margin: 0 0 4px; color: var(--text); display: flex; align-items: center; gap: 10px; }
  .pillar h4 .ico {
    display: inline-flex; width: 28px; height: 28px;
    align-items: center; justify-content: center;
    background: var(--grad-soft);
    border-radius: 8px;
    font-size: 14px;
  }
  .pillar p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.55; }

  /* ============ EXPERIENCE TIMELINE ============ */
  .timeline { position: relative; padding-left: 28px; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink), transparent);
    opacity: 0.4;
  }
  .role-card {
    position: relative;
    margin-bottom: 28px;
    padding: 28px 30px;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    transition: all 0.4s var(--ease);
  }
  .role-card::before {
    content: '';
    position: absolute;
    left: -28px; top: 32px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg-0);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12), 0 0 20px rgba(34, 211, 238, 0.4);
    transition: all 0.4s var(--ease);
  }
  .role-card:nth-child(2)::before { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 0 20px rgba(139, 92, 246, 0.4); }
  .role-card:nth-child(3)::before { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.12), 0 0 20px rgba(244, 114, 182, 0.4); }
  .role-card:nth-child(4)::before { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12), 0 0 20px rgba(45, 212, 191, 0.4); }
  .role-card:nth-child(5)::before { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12), 0 0 20px rgba(251, 191, 36, 0.4); }

  .role-card:hover { transform: translateX(4px); border-color: var(--stroke-strong); box-shadow: var(--shadow-lg); }

  .role-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 20px; margin-bottom: 8px; flex-wrap: wrap;
  }
  .role-title { display: flex; flex-direction: column; gap: 4px; }
  .role-title h3 { font-family: 'Geist', sans-serif; font-size: 19px; font-weight: 600; color: var(--text); }
  .role-title .company {
    font-family: 'Instrument Serif', serif;
    font-size: 28px; font-style: italic;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: -2px;
  }
  .role-meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    flex-shrink: 0;
  }
  .role-meta .date { color: var(--cyan); }
  .role-bullets { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
  .role-bullets li {
    font-size: 14.5px;
    color: var(--text-2);
    padding-left: 22px;
    position: relative;
    line-height: 1.6;
  }
  .role-bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 12px; height: 1px;
    background: var(--cyan);
  }
  @media (max-width: 720px) {
    .timeline { padding-left: 24px; }
    .role-card { padding: 22px 22px; }
    .role-meta { align-items: flex-start; }
    .role-title .company { font-size: 22px; }
  }

  /* ============ SKILLS ============ */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  @media (max-width: 720px) { .skills-grid { grid-template-columns: 1fr; } }
  .skill-card {
    padding: 26px 28px;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
  }
  .skill-card:hover { transform: translateY(-3px); border-color: var(--stroke-strong); }
  .skill-card::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .skill-card:hover::after { opacity: 1; }
  .skill-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
  .skill-card .head .ico {
    display: flex; width: 36px; height: 36px;
    align-items: center; justify-content: center;
    background: var(--grad-soft);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    font-size: 16px;
  }
  .skill-card h4 { font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 600; margin: 0; }
  .skill-card .head .ix {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.12em;
  }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    padding: 7px 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
    transition: all 0.3s var(--ease);
    cursor: default;
  }
  .chip:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.4);
    color: var(--text);
    transform: translateY(-1px);
  }

  /* ============ EDUCATION ============ */
  .edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  @media (max-width: 720px) { .edu-grid { grid-template-columns: 1fr; } }
  .edu-card {
    padding: 24px 26px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--stroke);
    border-radius: var(--r-md);
    transition: all 0.3s var(--ease);
  }
  .edu-card:hover { background: var(--surface-2); border-color: var(--stroke-strong); transform: translateY(-2px); }
  .edu-card .yr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .edu-card h4 { font-family: 'Geist', sans-serif; font-size: 15.5px; font-weight: 600; margin: 0 0 4px; color: var(--text); }
  .edu-card .inst { font-family: 'Instrument Serif', serif; font-size: 18px; font-style: italic; color: var(--text-2); }

  /* ============ MY STORY ============ */
  .story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  @media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 44px; } }
  .story-body p { font-size: 17px; color: var(--text-2); margin: 0 0 18px; line-height: 1.75; }
  .story-body p strong { color: var(--text); font-weight: 600; }
  .story-body p:first-of-type { font-size: 20px; color: var(--text); line-height: 1.6; }
  .chapters { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 26px; }
  .chapters::before {
    content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px;
    background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink), var(--amber), transparent);
    opacity: 0.45;
  }
  .chapter { position: relative; padding: 0 0 26px; }
  .chapter:last-child { padding-bottom: 0; }
  .chapter::before {
    content: ''; position: absolute; left: -26px; top: 4px; width: 13px; height: 13px;
    border-radius: 50%; background: var(--bg-0); border: 2px solid var(--cyan);
    box-shadow: 0 0 14px rgba(34,211,238,0.4);
  }
  .chapter:nth-child(2)::before { border-color: var(--violet); box-shadow: 0 0 14px rgba(139,92,246,0.4); }
  .chapter:nth-child(3)::before { border-color: var(--pink); box-shadow: 0 0 14px rgba(244,114,182,0.4); }
  .chapter:nth-child(4)::before { border-color: var(--amber); box-shadow: 0 0 14px rgba(251,191,36,0.4); }
  .chapter:nth-child(5)::before { border-color: var(--teal); box-shadow: 0 0 14px rgba(45,212,191,0.4); }
  .chapter .yr { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--cyan); letter-spacing: 0.14em; text-transform: uppercase; }
  .chapter h4 { font-family: 'Instrument Serif', serif; font-size: 23px; font-style: italic; margin: 2px 0 5px; color: var(--text); }
  .chapter p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.6; }

  /* ============ PORTFOLIO ============ */
  .portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  @media (max-width: 820px) { .portfolio-grid { grid-template-columns: 1fr; } }
  .case-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 32px 32px 28px;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
  }
  .case-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--grad-primary); opacity: 0; transition: opacity 0.4s ease;
  }
  .case-card:hover { transform: translateY(-4px); border-color: var(--stroke-strong); box-shadow: var(--shadow-lg); }
  .case-card:hover::before { opacity: 1; }
  .case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
  .case-card .sector { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
  .case-card h3 { font-family: 'Instrument Serif', serif; font-size: 30px; font-style: italic; line-height: 1.05; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .case-card .role-tag { font-family: 'Geist', sans-serif; font-size: 12px; font-weight: 600; color: var(--text-2); margin-top: 2px; }
  .case-card .case-body { font-size: 14.5px; color: var(--text-2); line-height: 1.65; margin: 0 0 18px; }
  .case-card .case-body strong { color: var(--text); font-weight: 600; }
  .case-metrics { display: flex; gap: 22px; margin: 0 0 18px; flex-wrap: wrap; }
  .case-metrics .cm { display: flex; flex-direction: column; }
  .case-metrics .cm b { font-family: 'Instrument Serif', serif; font-size: 26px; font-weight: 400; color: var(--text); line-height: 1; }
  .case-metrics .cm span { font-size: 11px; color: var(--text-3); margin-top: 4px; }
  .case-card .chips { margin-top: auto; }

  /* ============ BLOG / INSIGHTS ============ */
  .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
  .post-card {
    display: flex; flex-direction: column;
    padding: 28px 26px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    transition: all 0.4s var(--ease);
    cursor: pointer;
    min-height: 230px;
  }
  .post-card:hover { transform: translateY(-4px); background: var(--surface-2); border-color: var(--stroke-strong); }
  .post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
  .post-meta .cat { color: var(--cyan); border: 1px solid rgba(34,211,238,0.3); background: rgba(34,211,238,0.07); padding: 4px 9px; border-radius: 999px; }
  .post-meta .when { color: var(--text-3); }
  .post-card h3 { font-family: 'Instrument Serif', serif; font-size: 24px; line-height: 1.12; margin: 0 0 10px; color: var(--text); }
  .post-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0 0 18px; }
  .post-card .read { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; }
  .post-card .read svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
  .post-card:hover .read svg { transform: translateX(4px); }
  .blog-note { margin-top: 28px; font-size: 13px; color: var(--text-3); text-align: center; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.03em; }

  /* ============ SOCIAL CONTACT ============ */
  .contact-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
  .social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--stroke);
    border-radius: 50%;
    color: var(--text-2);
    transition: all 0.35s var(--ease);
  }
  .social-btn:hover { background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.4); color: var(--text); transform: translateY(-2px); }
  .social-btn svg { width: 19px; height: 19px; }

  /* ============ CONTACT ============ */
  .contact-card {
    padding: 64px 56px;
    background: var(--surface);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid var(--stroke-strong);
    border-radius: var(--r-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  .contact-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 120%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(34,211,238,0.12), transparent 60%);
    pointer-events: none;
  }
  .contact-card > * { position: relative; }
  @media (max-width: 720px) { .contact-card { padding: 48px 24px; } }

  .contact-card h2 {
    font-size: clamp(34px, 5vw, 58px);
    margin: 18px 0 12px;
  }
  .contact-card h2 em {
    font-style: italic;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .contact-card .blurb {
    font-size: 17px;
    color: var(--text-2);
    max-width: 540px;
    margin: 0 auto 36px;
  }
  .contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
  }
  .clink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.35s var(--ease);
  }
  .clink:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.3);
  }
  .clink svg { width: 16px; height: 16px; }

  /* ============ FOOTER ============ */
  footer {
    padding: 40px 28px 60px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    border-top: 1px solid var(--stroke);
    margin-top: 60px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
  }
  footer span { color: var(--cyan); }

  /* ============ REVEAL ON SCROLL ============ */
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.05s; }
  .reveal-delay-2 { transition-delay: 0.1s; }
  .reveal-delay-3 { transition-delay: 0.15s; }
  .reveal-delay-4 { transition-delay: 0.2s; }

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

/* ============ ACTIVE NAV STATE ============ */
nav a.link.active { color: var(--text); background: var(--surface-2); }
nav a.link.active::after {
  content: ''; display: block; height: 2px; margin-top: 2px; border-radius: 2px;
  background: var(--grad-primary);
}

/* ============ BOTTOM SECTION BAR (widget) ============ */
.sectionbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: min(900px, calc(100vw - 24px));
  padding: 7px 8px;
  background: rgba(10, 13, 24, 0.66);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.45s var(--ease), opacity 0.4s var(--ease);
}
.sectionbar.hidden {
  transform: translateX(-50%) translateY(160%);
  opacity: 0;
  pointer-events: none;
}
.sectionbar-toggle {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.sectionbar-toggle:hover { color: var(--text); border-color: var(--stroke-strong); background: var(--surface-2); }
.sectionbar-toggle svg { width: 16px; height: 16px; }
.sectionbar-track {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.sectionbar-track::-webkit-scrollbar { display: none; }
.sectionbar-track a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 999px;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.sectionbar-track a .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); flex-shrink: 0; transition: all 0.25s var(--ease);
}
.sectionbar-track a:hover { color: var(--text); background: var(--surface-2); }
.sectionbar-track a:hover .dot { background: var(--cyan); }
.sectionbar-track a.here {
  color: #07111a;
  background: var(--grad-primary);
  background-size: 200% 200%;
  animation: gradShift 8s ease infinite;
}
.sectionbar-track a.here .dot { background: #07111a; }

/* small "show" tab when the bar is hidden */
.sectionbar-show {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(160%);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10, 13, 24, 0.66);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.4s var(--ease), border-color 0.3s var(--ease);
}
.sectionbar-show:hover { border-color: var(--stroke-strong); }
.sectionbar-show.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.sectionbar-show .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease infinite;
}
.sectionbar-show svg { width: 13px; height: 13px; }


/* socials inside the bottom section bar */
.sb-divider { flex: 0 0 auto; width: 1px; height: 22px; background: var(--stroke); margin: 0 4px; }
.sb-social {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  animation: sbBlink 3.2s ease-in-out infinite;
  border-radius: 50%;
  color: var(--text-2);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.sb-social:hover { color: var(--text); background: var(--surface-2); transform: translateY(-1px); animation-play-state: paused; }
@keyframes sbBlink { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.5; filter: drop-shadow(0 0 5px rgba(34,211,238,0.45)); } }
.sb-social svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 720px) {
  .sectionbar { bottom: 14px; max-width: calc(100vw - 20px); padding: 6px 7px; gap: 5px; }
  .sectionbar-track a { padding: 9px 14px; font-size: 13px; }
  .sectionbar-show { bottom: 14px; }
}


/* ============ SUBPAGE TOP SPACING (no hero) ============ */
main.subpage > section:first-child { padding-top: 150px; }
@media (max-width: 720px) { main.subpage > section:first-child { padding-top: 120px; } }


/* ============ ARTICLE ============ */
.article-main { max-width: none; padding: 0; margin: 0; }
.article-banner {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  padding: 0 28px 56px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.article-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,10,0.45) 0%, rgba(5,6,10,0.2) 40%, rgba(5,6,10,0.9) 100%);
}
.article-banner-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.article-banner h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 18px 0 16px; max-width: 16ch;
  color: var(--text);
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.06em; color: var(--text-2);
}
.article-meta .sep { color: var(--text-3); }

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 40px;
}
.article .lead { font-size: 21px; line-height: 1.6; color: var(--text); margin: 0 0 28px; font-weight: 300; }
.article p { font-size: 17px; line-height: 1.8; color: var(--text-2); margin: 0 0 22px; }
.article p strong { color: var(--text); font-weight: 600; }
.article h2 {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1;
  color: var(--text); margin: 44px 0 16px;
}
.article h2 em { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.article ol, .article ul { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; }
.article ol li, .article ul li {
  position: relative; padding-left: 40px; margin-bottom: 14px;
  font-size: 17px; line-height: 1.7; color: var(--text-2);
}
.article ol li strong, .article ul li strong { color: var(--text); }
.article ol li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500;
  color: #07111a; background: var(--grad-primary);
}
.article ul li::before {
  content: ''; position: absolute; left: 6px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px rgba(34,211,238,0.6);
}
.article figure { margin: 36px 0; }
.article figure img {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--stroke); display: block;
  box-shadow: var(--shadow-lg);
}
.article figcaption {
  margin-top: 12px; font-size: 13px; color: var(--text-3);
  font-style: italic; text-align: center;
}
.article blockquote {
  margin: 32px 0; padding: 8px 0 8px 26px;
  border-left: 3px solid var(--cyan);
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 24px; line-height: 1.4; color: var(--text);
}

.related { padding-top: 40px; }
.related .section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 32px; }

@media (max-width: 720px) {
  .article-banner { min-height: 48vh; padding: 0 20px 40px; }
  .article { padding: 44px 22px 32px; }
  .article .lead { font-size: 19px; }
}

/* ============ HERO LEDE EMPHASIS ============ */
.hero-lede strong { color: var(--text); font-weight: 600; }

/* ============ TESTIMONIALS / PROOF ============ */
.quote-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px;
}
.quote-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 30px 28px;
  background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke); border-radius: var(--r-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.quote-card:hover { border-color: var(--stroke-strong); transform: translateY(-3px); }
.quote-card blockquote {
  margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-2); position: relative; padding-top: 18px;
}
.quote-card blockquote::before {
  content: '\201C'; position: absolute; top: -14px; left: -4px;
  font-family: 'Instrument Serif', serif; font-size: 56px; line-height: 1; color: var(--cyan); opacity: 0.5;
}
.quote-card figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.quote-card .q-name { font-weight: 600; color: var(--text); font-size: 15px; }
.quote-card .q-role { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-3); }

.worked-with { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.worked-with .ww-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.worked-with .ww-logos { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; align-items: center; }
.worked-with .ww-logos span {
  font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--text-2);
  opacity: 0.7; transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.worked-with .ww-logos span:hover { opacity: 1; color: var(--text); }

/* ============ HOW I WORK / PRINCIPLES ============ */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.principle {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 26px; background: var(--surface);
  border: 1px solid var(--stroke); border-radius: var(--r-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.principle:hover { border-color: var(--stroke-strong); transform: translateY(-2px); }
.principle .p-num {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
  color: #07111a; background: var(--grad-primary); flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}
.principle h4 { margin: 2px 0 8px; font-size: 17px; color: var(--text); }
.principle p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

/* ============ DIPLOMAS & AWARDS GALLERY ============ */
.cred-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cred-card {
  margin: 0; display: flex; flex-direction: column; gap: 0;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cred-card:hover { border-color: var(--stroke-strong); transform: translateY(-3px); }
.cred-card img { width: 100%; aspect-ratio: 1000 / 720; object-fit: cover; display: block; border-bottom: 1px solid var(--stroke); }
.cred-card figcaption { padding: 16px 18px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cred-card figcaption strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* ============ BEYOND THE WORK ============ */
.beyond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.beyond-card {
  padding: 28px 26px; background: var(--surface);
  border: 1px solid var(--stroke); border-radius: var(--r-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.beyond-card:hover { border-color: var(--stroke-strong); transform: translateY(-2px); }
.beyond-card .b-ico { font-size: 22px; display: block; margin-bottom: 12px; }
.beyond-card h4 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.beyond-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

@media (max-width: 860px) {
  .quote-grid, .cred-gallery, .beyond-grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .quote-grid, .cred-gallery, .beyond-grid { grid-template-columns: 1fr; }
}

/* ============ ECOLOGY LEAF LINK ============ */
.nav-leaf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.32);
  background: rgba(74,222,128,0.08);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-leaf:hover { background: rgba(74,222,128,0.18); border-color: rgba(74,222,128,0.55); transform: translateY(-1px); }
.nav-leaf svg { width: 17px; height: 17px; }

/* ============ HAMBURGER + MOBILE MENU (stretch) ============ */
/* ---- Mobile menu button + panel: component styles kept TOP-LEVEL for parser robustness ---- */
.nav-burger {
  display: none;            /* revealed on mobile by the media query below */
  align-items: center; gap: 9px;
  height: 44px; padding: 0 15px 0 13px;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-burger:hover { border-color: var(--stroke-strong); background: var(--surface-2); }
.nav-burger.hinted { animation: none; }
.burger-bars { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 18px; }
.burger-bars i {
  display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease, width 0.4s ease;
}
.burger-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.nav-burger.active { border-color: var(--stroke-strong); animation: none; }
.nav-burger.active .burger-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.active .burger-bars i:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.active .burger-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;            /* revealed on mobile by the media query below */
  flex-direction: column; gap: 4px;
  position: fixed; top: 76px; left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  width: min(340px, calc(100vw - 22px));
  padding: 10px;
  background: rgba(10,13,24,0.86);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: transform 0.44s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
  z-index: 89;
}
.nav-mobile.open { transform: translateX(-50%) scaleY(1); opacity: 1; pointer-events: auto; }

@keyframes burgerHint {
  0%, 82%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
  90%           { box-shadow: 0 0 0 5px rgba(34,211,238,0.12); }
}

/* mobile: reveal the button + panel, push the button to the right edge */
@media (max-width: 720px) {
  .nav-burger { display: inline-flex; margin-left: auto; animation: burgerHint 4.5s ease-in-out infinite; }
  .nav-mobile { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .nav-burger { animation: none !important; } }
.nav-mlink {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; font-size: 15px; font-weight: 500; color: var(--text-2);
  border-radius: var(--r-sm);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.4s cubic-bezier(0.16,1,0.3,1), background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-mobile.open .nav-mlink { opacity: 1; transform: translateY(0); }
.nav-mobile.open .nav-mlink:nth-child(1){ transition-delay: 0.04s; }
.nav-mobile.open .nav-mlink:nth-child(2){ transition-delay: 0.09s; }
.nav-mobile.open .nav-mlink:nth-child(3){ transition-delay: 0.14s; }
.nav-mobile.open .nav-mlink:nth-child(4){ transition-delay: 0.19s; }
.nav-mobile.open .nav-mlink:nth-child(5){ transition-delay: 0.24s; }
.nav-mobile.open .nav-mlink:nth-child(6){ transition-delay: 0.29s; }
.nav-mobile.open .nav-mlink:nth-child(7){ transition-delay: 0.34s; }
.nav-mlink:hover, .nav-mlink.active { background: var(--surface-2); color: var(--text); }
.nav-mlink svg { width: 17px; height: 17px; }
.nav-mleaf { color: #4ade80; }
.nav-mleaf:hover { color: #4ade80; background: rgba(74,222,128,0.12); }
.nav-mcta { margin-top: 4px; justify-content: center; color: #07111a; background: var(--grad-primary); font-weight: 600; }
.nav-mcta:hover, .nav-mcta.active { color: #07111a; opacity: 0.95; background: var(--grad-primary); }

/* ============ NAME PRONUNCIATION HINT ============ */
.name-hint { position: relative; cursor: help; border-bottom: 2px dotted rgba(255,255,255,0.22); }
.hero h1 .first.name-hint { display: inline-block; line-height: 0.9; }
.name-hint::after {
  content: attr(data-hint);
  position: absolute; left: 50%; bottom: calc(100% + 5px);
  transform: translateX(-50%) translateY(8px) scale(0.96);
  font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 400; letter-spacing: 0.04em;
  white-space: nowrap; color: var(--text);
  background: rgba(10,13,24,0.92);
  border: 1px solid var(--stroke);
  padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.38s cubic-bezier(0.16,1,0.3,1);
}
.name-hint::before {
  content: ''; position: absolute; left: 50%; bottom: calc(100% - 1px);
  transform: translateX(-50%) translateY(8px);
  border: 6px solid transparent; border-top-color: rgba(10,13,24,0.92);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.38s cubic-bezier(0.16,1,0.3,1);
}
.name-hint:hover::after, .name-hint:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.name-hint:hover::before, .name-hint:focus-visible::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ EDU EVIDENCE LINK ============ */
.edu-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  color: var(--cyan); transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.edu-link:hover { gap: 9px; color: var(--text); }
.edu-link svg { width: 13px; height: 13px; }

/* ============ SECTION BAR — HIDE AT FOOTER ============ */
.sectionbar.at-bottom { transform: translateX(-50%) translateY(14px); opacity: 0; pointer-events: none; }
.sectionbar-show.at-bottom { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }

/* ============ GALLERY (mosaic) ============ */
.gallery-mosaic { column-count: 3; column-gap: 16px; margin-top: 8px; }
.g-item {
  position: relative; break-inside: avoid; margin: 0 0 16px;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--stroke);
  display: block;
}
.g-item img { width: 100%; display: block; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.g-item:hover img { transform: scale(1.05); }
.g-cap {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 16px 18px 26px;
  background: linear-gradient(180deg, rgba(7,9,16,0.94) 0%, rgba(7,9,16,0.6) 60%, rgba(7,9,16,0) 100%);
  color: var(--text); font-size: 14px; line-height: 1.5;
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.3s var(--ease);
}
.g-cap strong { display: block; font-size: 15px; margin-bottom: 3px; }
.g-cap span { color: var(--text-2); }
.g-item:hover .g-cap, .g-item:focus-within .g-cap { transform: translateY(0); opacity: 1; }
@media (max-width: 860px) { .gallery-mosaic { column-count: 2; } }
@media (max-width: 540px) { .gallery-mosaic { column-count: 1; } }

/* ============ SECTION BAR — HORIZONTAL SCROLL INDICATOR ============ */
.sb-scroll {
  position: absolute;
  left: 50%; bottom: 3px;
  transform: translateX(-50%);
  width: 72px; height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.sectionbar.scrollable .sb-scroll { opacity: 1; }
.sb-scroll-thumb {
  position: absolute; top: 0; left: 0; height: 100%;
  width: 30%; border-radius: 3px;
  background: var(--grad-primary);
  background-size: 200% 200%;
  box-shadow: 0 0 6px rgba(34,211,238,0.7);
  transition: left 0.12s linear, width 0.2s var(--ease);
}
.sectionbar.scrollable .sb-scroll-thumb { animation: sbScrollPulse 1.7s ease-in-out infinite; }
.sectionbar.scrollable.sb-end .sb-scroll-thumb { animation: none; box-shadow: 0 0 4px rgba(34,211,238,0.4); }
@keyframes sbScrollPulse {
  0%, 100% { opacity: 0.8; box-shadow: 0 0 4px rgba(34,211,238,0.55); }
  50%      { opacity: 1;   box-shadow: 0 0 11px rgba(34,211,238,0.95); }
}

/* ============ BLOG TAGS + FILTER ============ */
.post-meta { flex-wrap: wrap; }
.post-meta .when { margin-left: auto; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid;
}
.tag--opinion     { color: #a78bfa; background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.38); }
.tag--article     { color: #22d3ee; background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.38); }
.tag--useful      { color: #2dd4bf; background: rgba(45,212,191,0.12); border-color: rgba(45,212,191,0.38); }
.tag--case        { color: #fbbf24; background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.38); }
.tag--external    { color: #f472b6; background: rgba(244,114,182,0.12); border-color: rgba(244,114,182,0.38); }
.tag--interesting { color: #4ade80; background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.38); }

/* article body tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* filter bar */
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 30px; }
.filter-btn {
  cursor: pointer; font-size: 10.5px; padding: 5px 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.filter-btn:hover { transform: translateY(-1px); }
.filter-btn.active { box-shadow: 0 0 14px -3px currentColor, inset 0 0 0 1px currentColor; font-weight: 700; }
.filter-btn--all {
  color: var(--text-2); background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 999px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.filter-btn--all.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--stroke-strong); }

/* filtering */
.post-card.filtered-out { display: none; }

/* ============ CASE-CARD EXTERNAL PROOF LINK ============ */
.case-proof {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 8px 15px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.32);
  border-radius: 999px;
  animation: proofGlow 3.2s ease-in-out infinite;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.case-proof:hover {
  background: rgba(34,211,238,0.18);
  border-color: rgba(34,211,238,0.6);
  color: var(--text);
  transform: translateY(-2px);
}
.case-proof svg { width: 14px; height: 14px; animation: proofNudge 1.7s ease-in-out infinite; }
.case-proof:hover svg { animation-duration: 0.8s; }
@keyframes proofNudge {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(3px, -3px); }
}
@keyframes proofGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
  50%      { box-shadow: 0 0 16px -5px rgba(34,211,238,0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .case-proof, .case-proof svg { animation: none; }
}

/* ============ EXPERIENCE — LEGACY / OUTSIDE-IT BLOCKS ============ */
.timeline-sub {
  position: relative;
  margin: 8px 0 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3);
}
.role-card--legacy {
  background: rgba(255,255,255,0.018);
  border-color: rgba(255,255,255,0.06);
}
.role-card--legacy::before {
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148,163,184,0.10), 0 0 12px rgba(148,163,184,0.22);
}
.role-card--legacy:hover { border-color: rgba(255,255,255,0.14); }
.role-card--legacy .role-title h3 { color: var(--text-2); }
.role-card--legacy .role-title .company {
  background: none;
  -webkit-text-fill-color: #8b95a7;
  color: #8b95a7;
  font-size: 24px;
}
.role-card--legacy .role-meta .date { color: var(--text-3); }
.role-card--legacy .role-bullets li { color: var(--text-3); }
.role-card--legacy .role-bullets li::before { background: #94a3b8 !important; box-shadow: none !important; }

/* ============ STORY — extra chapter dot colours + external link ============ */
.chapter:nth-child(6)::before  { border-color: var(--cyan);   box-shadow: 0 0 14px rgba(34,211,238,0.4); }
.chapter:nth-child(7)::before  { border-color: var(--violet); box-shadow: 0 0 14px rgba(139,92,246,0.4); }
.chapter:nth-child(8)::before  { border-color: var(--pink);   box-shadow: 0 0 14px rgba(244,114,182,0.4); }
.chapter:nth-child(9)::before  { border-color: var(--amber);  box-shadow: 0 0 14px rgba(251,191,36,0.4); }
.chapter:nth-child(10)::before { border-color: #4ade80;       box-shadow: 0 0 14px rgba(74,222,128,0.4); }
.chapter-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em;
  color: #4ade80; transition: gap 0.25s var(--ease);
}
.chapter-link:hover { gap: 9px; }
.chapter-link svg { width: 12px; height: 12px; }
