/* =====================================================
   leahkatinsights.com
   Redesign v2 · 2026-04-18
   Direction: Tech Product (Antigravity-inspired)
   Spec: docs/superpowers/specs/2026-04-18-lki-redesign-design.md
   ===================================================== */

  :root {
    --ink: #121317;
    --ink-2: #45474D;
    --ink-3: #6B6E76;
    --ink-4: #9AA0A8;
    --paper: #FFFFFF;
    --paper-tint: #F5F6F8;
    --paper-2: #FAFAFA;
    --hair: rgba(18,19,23,0.08);
    --rose: #D4829A;
    --rose-deep: #B85A78;
    --rose-hi: rgba(212,130,154,0.22);
    --rose-soft: rgba(212,130,154,0.08);
    --green: #22C55E;

    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --page-pad: clamp(20px, 4vw, 64px);
    --section-pad: clamp(60px, 10vh, 140px);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    --ease-soft: cubic-bezier(.22, 1, .36, 1);
    --ease-pop: cubic-bezier(.34, 1.85, .64, 1);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  .mono { font-family: var(--font-mono); }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--page-pad); }

  @keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.35 } }
  @keyframes focusIn {
    0%   { filter: blur(10px); opacity: 0.2; }
    60%  { filter: blur(2px); opacity: 0.85; }
    100% { filter: blur(0); opacity: 1; }
  }

  /* NAV, clean hairline */
  .nav-outer {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hair);
  }
  .nav {
    max-width: 1240px; margin: 0 auto;
    padding: 0 var(--page-pad);
    height: 64px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .nav-logo { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; display: flex; align-items: center; }
  .nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
  .nav-links a { transition: color .2s var(--ease-soft); }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta { background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; transition: transform .2s var(--ease-pop); }
  .nav-cta:hover { transform: translateY(-1px); }

  .nav-toggle {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column; justify-content: center; gap: 5px;
    background: transparent; border: 0; cursor: pointer;
    padding: 10px;
  }
  .nav-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform .2s var(--ease-soft), opacity .2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: none;
    flex-direction: column;
    padding: 8px var(--page-pad) 20px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hair);
  }
  .mobile-menu[data-open="true"] { display: flex; }
  .mobile-menu a {
    padding: 14px 2px;
    font-size: 16px; font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hair);
  }
  .mobile-menu a:last-child { border-bottom: 0; }
  .mobile-menu .mobile-menu-cta {
    align-self: flex-start;
    margin-top: 14px;
    padding: 12px 20px;
    background: var(--ink); color: #fff;
    border-radius: var(--radius-pill);
    border: 0;
    font-size: 14px;
  }

  /* HERO */
  .hero {
    position: relative;
    padding: clamp(56px, 9vh, 120px) 0 clamp(20px, 3vh, 36px);
    background: var(--paper);
    background-image: radial-gradient(circle at 1px 1px, rgba(18,19,23,0.10) 1.5px, transparent 0);
    background-size: 22px 22px;
    overflow: hidden;
  }
  .hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 10%, rgba(212,130,154,0.12) 0%, transparent 55%);
    pointer-events: none;
  }
  .hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 40px;
    align-items: start;
  }
  .hero-main { min-width: 0; }

  /* Profile card, right of the hero banner (LinkedIn-style compact card) */
  .hero-profile {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
  }
  .profile-photo {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    object-fit: cover;
    object-position: center top;
  }
  .profile-name {
    font-size: 22px; font-weight: 600; letter-spacing: -0.3px;
    color: var(--ink);
  }
  .profile-details {
    list-style: none;
    display: flex; flex-direction: column; gap: 12px;
    width: 100%;
  }
  .profile-details li {
    display: flex; flex-direction: column; gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hair);
  }
  .profile-details li:last-child { border-bottom: 0; padding-bottom: 0; }
  .profile-details .pd-k {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--ink-4); letter-spacing: 0.4px;
    text-transform: lowercase;
  }
  .profile-details .pd-v {
    font-size: 14px; font-weight: 500;
    color: var(--ink);
  }
  .profile-details .pd-v.rose {
    color: var(--rose-deep);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .profile-details .pd-v.rose::before {
    content: ''; width: 6px; height: 6px; background: var(--rose); border-radius: 50%;
    animation: pulse 2s ease-in-out infinite; flex-shrink: 0;
  }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-2);
    margin-bottom: 36px;
  }
  .hero-badge .dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

  .hero-h1 {
    font-size: clamp(36px, 8.4vw, 88px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--ink);
    max-width: none;
    margin-bottom: 28px;
  }
  @media (max-width: 480px) {
    .hero-h1 .line { white-space: normal; }
  }
  .hero-h1 .line {
    display: block;
    white-space: nowrap;
  }
  .hero-h1 .focus-in {
    display: inline-block;
    animation: focusIn 1.8s var(--ease-soft) 0.3s both;
    will-change: filter, opacity;
  }
  .hero-h1 mark {
    background: var(--rose-hi);
    color: var(--ink);
    padding: 0 6px;
    border-radius: 6px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    white-space: nowrap;
  }

  .hero-tag {
    font-size: clamp(16px, 1.4vw, 20px);
    color: var(--ink-2);
    max-width: 560px;
    line-height: 1.5;
    margin-bottom: 40px;
  }

  .hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 64px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px;
    border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 500;
    transition: transform .25s var(--ease-pop), background .2s var(--ease-soft);
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { background: var(--ink); color: #fff; }
  .btn-primary:hover { background: #000; }
  .btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(18,19,23,0.12); }
  .btn-ghost:hover { background: rgba(18,19,23,0.04); }
  .btn .arrow { font-family: var(--font-mono); transition: transform .2s var(--ease-soft); }
  .btn:hover .arrow { transform: translateX(3px); }

  /* Byline strip, no pill, photo in a rounded square so the face isn't cropped */
  .byline {
    display: flex; align-items: center; gap: 16px;
    padding: 0;
    background: transparent;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .byline-photo {
    width: 72px; height: 88px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
  }
  .byline-name { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
  .byline-meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); align-items: center; }
  .byline-meta .sep { color: var(--ink-4); }
  .byline-meta .rose { color: var(--rose-deep); display: inline-flex; align-items: center; gap: 6px; }
  .byline-meta .rose::before { content: ''; width: 6px; height: 6px; background: var(--rose); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

  /* SECTION SYSTEM */
  section { padding: var(--section-pad) 0; position: relative; scroll-margin-top: 80px; }
  .section-tint { background: var(--paper-tint); }

  .section-head {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    max-width: 1040px;
    margin-bottom: 64px;
    align-items: start;
  }
  .section-head .kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.4px;
    padding-top: 14px;
  }
  .section-head .kicker .idx { color: var(--rose-deep); margin-right: 8px; }
  .section-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--ink);
  }
  .section-title mark {
    background: var(--rose-hi);
    color: var(--ink);
    padding: 0 6px; border-radius: 4px;
  }

  /* ABOUT */
  .about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; }
  .about-body p { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-bottom: 16px; }
  .about-body p strong { color: var(--ink); font-weight: 600; }
  .about-body mark { background: var(--rose-hi); color: var(--ink); padding: 0 4px; border-radius: 4px; }

  .about-facts {
    margin-top: 36px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
    font-family: var(--font-mono); font-size: 11px;
  }
  .about-facts .fact .k { color: var(--ink-4); margin-bottom: 4px; }
  .about-facts .fact .v { color: var(--ink); font-size: 13px; font-family: var(--font-sans); font-weight: 500; }

  .river-block {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--paper-tint);
  }
  .river-block img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
  .river-meta {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: space-between;
  }
  .river-meta .name { font-size: 14px; font-weight: 600; color: var(--ink); }
  .river-meta .role { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.2px; }

  /* EXPERTISE, type-led columns, no cards */
  .expertise-cols {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    position: relative;
  }
  .expertise-col {
    padding: 0 4px;
    position: relative;
  }
  .expertise-col:not(:last-child)::after {
    content: ''; position: absolute;
    top: 8px; bottom: 8px; right: -28px;
    width: 1px; background: var(--hair);
  }
  .expertise-col .num {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--rose-deep); letter-spacing: 0.4px;
    margin-bottom: 24px;
  }
  .expertise-col h3 {
    font-size: 24px; font-weight: 600; letter-spacing: -0.3px;
    line-height: 1.15; margin-bottom: 14px;
  }
  .expertise-col p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

  /* PROJECTS */
  .projects-wip {
    font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
    margin-top: 10px; display: inline-flex; align-items: center; gap: 8px;
  }
  .projects-wip::before { content: ''; width: 6px; height: 6px; background: var(--rose); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

  .projects-note {
    font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
    margin-top: 8px; max-width: 640px; line-height: 1.55;
  }

  .project {
    padding: 0;
    margin-bottom: 64px;
  }
  .project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
  .tag {
    padding: 5px 11px; border-radius: 6px;
    background: var(--rose-soft); color: var(--rose-deep);
    font-family: var(--font-mono); font-size: 10px; font-weight: 500;
    letter-spacing: 0.2px;
  }
  .project-title { font-size: clamp(26px, 3.3vw, 38px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
  .project-sub { font-size: 17px; color: var(--ink-2); max-width: 560px; line-height: 1.5; }

  .project-framing {
    font-size: 15px;
    color: var(--ink-2);
    max-width: 560px;
    line-height: 1.6;
    margin-top: 16px;
  }
  .project-framing .framing-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
  }

  .project-hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
    margin-bottom: 56px;
  }
  .project-hero-text { min-width: 0; }

  .project-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .project-chart img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--hair);
  }
  .project-chart figcaption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.2px;
  }

  @media (max-width: 720px) {
    .project-hero {
      grid-template-columns: 1fr;
    }
    .project-chart { max-width: 520px; }
  }

  .project-section-label {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--ink-3); text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--hair);
  }

  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 56px; }
  .step-num { font-family: var(--font-mono); font-size: 11px; color: var(--rose-deep); margin-bottom: 12px; letter-spacing: 0.3px; }
  .step h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.2px; }
  .step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

  /* Tech stack with logos, no card backgrounds */
  .techstack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 56px;
  }
  .tech {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px 18px 0;
    border-top: 1px solid var(--hair);
  }
  .tech:nth-child(-n+3) { border-top: 0; padding-top: 4px; }
  .tech-logo {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .tech-logo img { width: 100%; height: 100%; object-fit: contain; }
  .tech-mark {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-sans); font-weight: 700; font-size: 14px;
    border-radius: 7px; letter-spacing: -0.5px;
  }
  .tech-mark.aws-mark { background: #FF9900; color: #000; font-size: 13px; }
  .tech-mark.delta-mark { background: #00ADD8; color: #fff; font-size: 18px; font-weight: 600; }
  .tech-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .tech-name { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
  .tech-detail { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

  /* Data flow pipeline, kept on dark */
  .pipeline {
    padding: 22px 24px;
    background: var(--ink); color: #fff;
    border-radius: var(--radius-md);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 13px;
  }
  .pipe-node {
    padding: 7px 13px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 12.5px;
  }
  .pipe-arrow { color: var(--rose); font-family: var(--font-mono); font-size: 14px; }

  /* Insight stat blocks (legacy, not used currently) */
  .insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
  }
  .insight {
    padding: 28px 24px;
    background: var(--paper-tint);
    border-radius: var(--radius-md);
  }
  .insight-stat {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--rose-deep);
    line-height: 1;
    margin-bottom: 14px;
  }
  .insight-text {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.55;
  }

  /* Full-width chart (for Project 2 second chart) */
  .project-chart-full {
    margin: 40px 0;
  }
  .project-chart-full img {
    border-radius: var(--radius-md);
    border: 1px solid var(--hair);
    background: var(--paper-tint);
  }

  /* Inline prose paragraph inside a project body */
  .project-prose {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 720px;
    margin: 8px 0 24px 0;
  }

  /* Projects section: title + quick-nav share one baseline row */
  .projects-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }

  /* Project quick-nav chips, rendered inside the Projects section header */
  .project-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
  }
  .project-nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: var(--paper-tint);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .project-nav-chip:hover {
    background: var(--rose-soft);
    color: var(--rose-deep);
  }
  .project-nav-idx {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-2);
    letter-spacing: 0.04em;
  }
  .project-nav-chip:hover .project-nav-idx {
    color: var(--rose-deep);
  }
  .project-nav-label {
    font-weight: 600;
  }

  /* Editorial insights split (stacked list + chart) */
  .insights-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 40px;
  }
  .insight-list {
    display: flex;
    flex-direction: column;
  }
  .insight-line {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 24px 0;
  }
  .insight-line + .insight-line {
    border-top: 1px solid var(--hair);
  }
  .insight-line:first-child { padding-top: 0; }
  .insight-line:last-child { padding-bottom: 0; }
  .insight-num {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--rose-deep);
    line-height: 1;
  }
  .insight-line p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.6;
  }

  .insights-charts {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .project-chart-side img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--hair);
    background: var(--paper-tint);
  }

  /* Chart lightbox */
  .project-chart img,
  .project-chart-side img {
    cursor: zoom-in;
    transition: opacity 0.15s ease;
  }
  .project-chart img:hover,
  .project-chart-side img:hover {
    opacity: 0.85;
  }
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 35, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 48px;
    cursor: zoom-out;
  }
  .lightbox.is-open {
    display: flex;
    animation: lightboxFade 0.18s ease;
  }
  @keyframes lightboxFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    cursor: default;
    background: white;
  }
  .lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: transparent;
    border: 0;
    color: white;
    font-size: 36px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
    padding: 4px 12px;
  }
  .lightbox-close:hover { opacity: 0.7; }
  @media (max-width: 600px) {
    .lightbox { padding: 24px; }
    .lightbox-close { top: 12px; right: 16px; font-size: 28px; }
  }
  .project-chart-side figcaption {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    margin-top: 6px;
  }

  @media (max-width: 820px) {
    .insights-split { grid-template-columns: 1fr; }
  }

  @media (max-width: 780px) {
    .insights { grid-template-columns: 1fr; gap: 16px; }
    .insight-stat { font-size: 40px; }
  }

  /* Accordion-style projects, no card look */
  details.project {
    border-top: 1px solid var(--hair);
    background: transparent;
    overflow: hidden;
  }
  details.project:first-of-type {
    border-top: 0;
  }

  /* Remove default triangle */
  summary.project-summary {
    list-style: none;
    cursor: pointer;
    padding: 48px 0;
    transition: opacity .2s var(--ease-soft);
  }
  summary.project-summary::-webkit-details-marker { display: none; }
  summary.project-summary::marker { display: none; }
  summary.project-summary:hover .project-title {
    color: var(--rose-deep);
  }
  summary.project-summary .project-title {
    transition: color .2s var(--ease-soft);
  }

  /* Project index label above title */
  .project-index {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--rose-deep);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  /* Toggle button at bottom of collapsed header */
  .project-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    transition: transform .2s var(--ease-pop), background .2s var(--ease-soft);
  }
  summary.project-summary:hover .project-toggle {
    transform: translateY(-1px);
  }
  .toggle-icon {
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s var(--ease-soft);
  }
  details[open] .toggle-icon {
    transform: rotate(45deg);
  }
  details[open] .toggle-text::before {
    content: 'Close';
  }
  details[open] .toggle-text {
    font-size: 0;
  }
  details[open] .toggle-text::before {
    font-size: 13px;
  }

  /* Body content (the case study details, revealed on expand) */
  .project-body {
    padding: 0 0 56px;
    animation: fadeIn .4s var(--ease-soft);
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .project-body .project-section-label:first-child { margin-top: 0; }

  /* Coming-soon, list, no cards */
  .coming-list {
    margin-top: 40px;
    border-top: 1px solid var(--hair);
  }
  .coming-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 32px;
    padding: 22px 0;
    border-bottom: 1px solid var(--hair);
    align-items: center;
  }
  .coming-status {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--rose-deep); letter-spacing: 0.4px;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .coming-status::before {
    content: ''; width: 6px; height: 6px; background: var(--rose); border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
  }
  .coming-status.planned { color: var(--ink-3); }
  .coming-status.planned::before { background: var(--ink-4); animation: none; }
  .coming-title { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; }
  .coming-eta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }

  /* EXPERIENCE */
  .timeline {
    position: relative;
    display: flex; flex-direction: column;
    max-width: 1040px;
  }
  .timeline::before {
    content: ''; position: absolute;
    left: 180px; top: 28px; bottom: 28px;
    width: 1px; background: var(--hair);
  }
  .timeline-item {
    position: relative;
    display: grid; grid-template-columns: 180px 1fr; gap: 40px;
    padding-bottom: 20px;
  }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-item::before {
    content: ''; position: absolute;
    left: 176px; top: 22px;
    width: 9px; height: 9px;
    background: var(--rose); border-radius: 50%;
    box-shadow: 0 0 0 4px var(--paper);
  }
  .timeline-item .era {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--rose-deep); letter-spacing: 0.4px;
    padding-top: 20px;
  }
  .timeline-item .body { padding: 20px 0 4px; }
  .timeline-item .body h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 4px; }
  .timeline-item .body .role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.3px; margin-bottom: 14px; }
  .timeline-item .body p { font-size: 15px; color: var(--ink-2); line-height: 1.55; max-width: 700px; }

  /* BRANDS */
  .brands-wall { display: flex; flex-wrap: wrap; gap: 8px; }
  .brand-chip {
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    font-size: 13px; font-weight: 500; color: var(--ink);
    transition: all .2s var(--ease-soft);
  }
  .brand-chip:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
  .brands-disclaimer { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 20px; }

  /* SKILLS, inline pill flow, no grid cells */
  .skills-flow { display: flex; flex-wrap: wrap; gap: 8px; }
  .skill-chip {
    padding: 9px 14px 9px 12px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    font-family: var(--font-mono); font-size: 12px;
    color: var(--ink-2); font-weight: 500;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s var(--ease-soft);
  }
  .skill-chip::before { content: ''; width: 5px; height: 5px; background: var(--rose); border-radius: 50%; }
  .skill-chip:hover { background: var(--ink); color: #fff; }
  .skill-chip .new-tag {
    font-family: var(--font-mono); font-size: 9px;
    color: var(--rose-deep); letter-spacing: 0.5px;
    padding: 2px 6px; border-radius: 4px;
    background: var(--rose-soft);
    text-transform: uppercase;
  }
  .skill-chip:hover .new-tag { background: rgba(255,255,255,0.15); color: var(--rose); }

  /* CREDENTIALS, 2-column grouped list */
  .cred-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .cred-group h4 {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-3); letter-spacing: 1.8px;
    text-transform: uppercase; font-weight: 500;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 8px;
  }
  .cred-entry {
    position: relative;
    padding: 22px 0;
    border-bottom: 1px solid var(--hair);
  }
  .cred-entry:last-child { border-bottom: 0; }
  .cred-entry h5 {
    font-size: 18px; font-weight: 600; letter-spacing: -0.25px;
    line-height: 1.25; margin-bottom: 6px;
  }
  .cred-entry .org {
    font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
    letter-spacing: 0.2px;
  }
  .cred-entry.featured {
    position: relative;
    padding-left: 20px;
    margin-left: -20px;
  }
  .cred-entry.featured::before {
    content: '';
    position: absolute; left: 0; top: 28px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--rose);
    animation: pulse 2s ease-in-out infinite;
  }
  .cred-entry.featured h5 { font-size: 22px; }
  .cred-entry .status {
    display: inline-flex; align-items: center;
    font-family: var(--font-mono); font-size: 10px;
    color: var(--rose-deep); letter-spacing: 1.2px;
    text-transform: uppercase; margin-top: 10px;
    padding: 4px 10px;
    background: var(--rose-soft);
    border-radius: 6px;
  }

  /* Certification badges: horizontal grid, badge on top, label below */
  .cred-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 18px;
  }
  .cred-badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .cred-badge {
    width: 132px;
    height: 132px;
    object-fit: contain;
    flex-shrink: 0;
  }
  /* Visual-size normalizers — for badge files that ship with extra whitespace */
  .cred-badge--lg { transform: scale(1.35); }
  .cred-badge-card h5 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    margin: 6px 0 0 0;
    color: var(--ink);
  }
  .cred-badge-card .org {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.2px;
    margin-top: 2px;
  }
  .cred-badge-card .status {
    margin-top: 6px;
    font-size: 9px;
    padding: 3px 8px;
  }

  /* Education: full-width 3-column editorial row */
  .edu-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
  }
  .edu-card {
    position: relative;
    padding: 32px 32px 36px;
    border-right: 1px solid var(--hair);
  }
  .edu-card:last-child { border-right: 0; }
  .edu-idx {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .edu-degree {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
    margin: 0 0 12px 0;
  }
  .edu-subject {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink-2);
  }
  .edu-detail {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink-3);
    margin-top: 4px;
  }
  .edu-org {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
    margin-top: 12px;
  }
  .edu-status {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    padding: 4px 10px;
    background: var(--rose-soft);
    color: var(--rose-deep);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 6px;
  }
  .edu-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 5px 11px;
    background: var(--rose-soft);
    color: var(--rose-deep);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 6px;
  }
  .edu-card.current::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    width: 32px;
    height: 3px;
    background: var(--rose);
  }
  .edu-card.current .edu-idx { color: var(--rose-deep); }

  /* Reserve the same vertical space the .edu-pill takes on the MBA card,
     so Bachelor's and Associate's degrees line up with MBA's degree. */
  .edu-card:not(.current) .edu-degree {
    margin-top: 41px;
  }

  @media (max-width: 880px) {
    .edu-row { grid-template-columns: 1fr; }
    .edu-card {
      border-right: 0;
      border-bottom: 1px solid var(--hair);
    }
    .edu-card:last-child { border-bottom: 0; }
    .edu-card.current::before { left: 32px; }
  }

  /* Full-width certifications band below the education row */
  .cred-certs-full {
    margin-top: 56px;
  }
  .cred-badge-grid--wide {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 4px;
  }

  /* Quiet asterisk footnote for personal training + nutrition */
  .cred-asterisk {
    text-align: right;
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 28px;
    letter-spacing: 0.01em;
  }

  @media (max-width: 960px) {
    .cred-badge-grid--wide { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 720px) {
    .cred-badge-grid,
    .cred-badge-grid--wide { grid-template-columns: repeat(2, 1fr); }
  }

  /* CONTACT */
  .contact-box {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(48px, 7vw, 96px);
    position: relative;
    overflow: hidden;
  }
  .contact-box::before {
    content: ''; position: absolute; top: -40%; right: -20%; width: 80%; height: 180%;
    background: radial-gradient(ellipse, rgba(212,130,154,0.25) 0%, transparent 55%);
    pointer-events: none;
  }
  .contact-kicker {
    font-family: var(--font-mono); font-size: 11px; color: var(--rose); letter-spacing: 0.4px;
    margin-bottom: 18px; position: relative;
  }
  .contact-title {
    font-size: clamp(36px, 5vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02;
    margin-bottom: 20px; position: relative;
  }
  .contact-title mark { background: var(--rose-hi); color: #fff; padding: 0 6px; border-radius: 4px; }
  .contact-intro { font-size: 18px; color: rgba(255,255,255,0.65); max-width: 540px; margin-bottom: 40px; line-height: 1.5; position: relative; }
  .contact-ctas { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
  .btn-rose { background: var(--rose); color: var(--ink); }
  .btn-rose:hover { background: #fff; }
  .btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); }
  .btn-outline-light:hover { background: rgba(255,255,255,0.08); }

  /* FOOTER */
  footer { padding: 32px 0 40px; }
  .footer-row {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
    gap: 20px; flex-wrap: wrap;
  }

  /* RESPONSIVE */
  @media (max-width: 960px) {
    .section-head { grid-template-columns: 1fr; gap: 12px; }
    .section-head .kicker { padding-top: 0; }

    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-profile { max-width: 360px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .expertise-cols { grid-template-columns: 1fr; gap: 32px; }
    .expertise-col:not(:last-child)::after { display: none; }
    .expertise-col:not(:last-child) { padding-bottom: 32px; border-bottom: 1px solid var(--hair); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .techstack { grid-template-columns: 1fr; }
    .tech:nth-child(-n+3) { border-top: 1px solid var(--hair); padding-top: 18px; }
    .tech:first-child { border-top: 0; padding-top: 4px; }
    .coming-row { grid-template-columns: 1fr; gap: 6px; }
    .cred-groups { grid-template-columns: 1fr; gap: 48px; }
    .timeline::before { left: 4px; top: 14px; bottom: 14px; }
    .timeline-item { grid-template-columns: 1fr; gap: 6px; padding: 0 0 20px 28px; }
    .timeline-item::before { left: 0; top: 8px; }
    .timeline-item .era { padding-top: 0; }
    .timeline-item .body { padding: 0; }
    .byline { padding: 12px 18px 12px 12px; }
    .byline-photo { width: 48px; height: 48px; }
  }
  @media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
  }

/* Reduced motion overrides */
[data-reduce-motion="true"] * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
[data-reduce-motion="true"] .btn:hover,
[data-reduce-motion="true"] .nav-cta:hover,
[data-reduce-motion="true"] .brand-chip:hover {
  transform: none !important;
}

/* Project index "quick build" badge — Project 04 */
.project-index-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  vertical-align: middle;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
