  :root {
    --color-bg: #FAFAF8;
    --color-text: #1a1a1a;
    --color-text-muted: #5a5a5a;
    --color-accent: #2563EB;
    --color-accent-soft: #EFF6FF;
    --color-border: #e5e5e5;
    --color-hero-bg: #0F172A;
    --color-hero-text: #F8FAFC;
    --color-hero-muted: #94A3B8;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --max-width: 980px;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; color-scheme: only light; }
  body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
  }

  /* -- Scroll offset for fixed nav -- */
  section[id], .approach-step[id], .writing-card[id] {
    scroll-margin-top: 80px;
  }

  /* -- Nav -- */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  nav .nav-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem 2rem;
  }
  nav .nav-brand {
    flex-shrink: 0; display: flex; align-items: center; gap: 0.7rem;
    text-decoration: none;
  }
  nav .nav-name {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
    color: var(--color-hero-text); white-space: nowrap;
  }
  nav .nav-name .nav-cred { font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; color: var(--color-hero-muted); margin-left: 0.2rem; }
  nav .nav-brand img {
    height: 44px; width: 44px; border-radius: 50%; display: block;
  }
  nav .nav-links { display: flex; gap: 1.15rem; align-items: center; }
  nav .nav-links a {
    color: var(--color-hero-text); text-decoration: none;
    font-size: 0.875rem; font-weight: 400; transition: color 0.2s;
  }
  nav .nav-links a:hover { color: var(--color-hero-text); }

  /* -- Hero -- */
  .hero {
    background: var(--color-hero-bg);
    color: var(--color-hero-text);
    padding: 8rem 2rem 5rem;
    position: relative; overflow: hidden;
  }
  /* Stage photo as a soft backdrop behind the bio */
  .hero::before {
    content: ""; position: absolute; inset: 0;
    background: url("assets/images/photo-himss.jpg") center 35% / cover no-repeat;
    filter: blur(7px) saturate(0.9); transform: scale(1.08); opacity: 0.5;
  }
  .hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(15,23,42,0.97) 0%, rgba(15,23,42,0.88) 45%, rgba(15,23,42,0.6) 100%),
                linear-gradient(to bottom, rgba(15,23,42,0) 55%, rgba(15,23,42,0.95) 100%);
  }
  .hero-inner {
    position: relative; z-index: 1;
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 335px; gap: 3rem; align-items: start;
  }
  /* Round portrait, cropped to the face */
  .hero-portrait {
    width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 2.5rem auto 0;
    border: 3px solid rgba(255,255,255,0.14);
    box-shadow: 0 0 0 8px rgba(96,165,250,0.08), 0 20px 50px rgba(0,0,0,0.4);
  }
  .hero-portrait img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block;
    transform: scale(1.1); transform-origin: 50% 20%;
  }
  .hero-text > :last-child { margin-bottom: 0; }
  /* Bio with highlighter-marked keywords */
  .hero-bio {
    font-size: 1.2rem; line-height: 1.85; color: #CBD5E1; max-width: 700px; margin-bottom: 1.75rem;
  }
  .hero-bio mark {
    color: #fff; font-weight: 600; padding: 0 0.15em; border-radius: 3px;
    background: linear-gradient(90deg, rgba(96,165,250,0.45), rgba(167,139,250,0.45)) no-repeat 0 88% / 0% 38%;
    animation: mark-in 0.7s ease-out forwards;
  }
  .hero-bio mark:nth-of-type(2) { animation-delay: 0.25s; }
  .hero-bio mark:nth-of-type(3) { animation-delay: 0.5s; }
  .hero-bio mark:nth-of-type(4) { animation-delay: 0.75s; }
  .hero-bio mark:nth-of-type(5) { animation-delay: 1s; }
  .hero-bio mark:nth-of-type(6) { animation-delay: 1.25s; }
  .hero-bio mark:nth-of-type(7) { animation-delay: 1.5s; }
  @keyframes mark-in { to { background-size: 100% 38%; } }
  @media (prefers-reduced-motion: reduce) { .hero-bio mark { animation: none; background-size: 100% 38%; } }
  .hero-pillars { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
  .hero-pillars span {
    font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.3;
    color: var(--color-hero-text);
  }
  .hero-pillars span::before { content: ""; display: inline-block; width: 0.38em; height: 0.38em; border-radius: 50%; margin-right: 0.45em; vertical-align: 0.12em; background: linear-gradient(135deg, #60A5FA, #A78BFA); }
  .hero-name {
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: #93C5FD; margin-bottom: 1rem;
  }
  .hero-identity {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.2rem;
  }
  .hero-photo {
    flex-shrink: 0; width: 52px; height: 52px;
    border-radius: 50%; overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
  }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
  .hero-label {
    display: inline-block;
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--color-hero-muted);
  }
  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.1rem);
    font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
    margin-bottom: 1.75rem; max-width: 780px;
  }
  .hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-subtitle {
    font-size: 1.15rem; color: var(--color-hero-muted);
    max-width: 780px; line-height: 1.75; margin-bottom: 2.5rem;
  }
  .hero-proof {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-top: 0.5rem;
  }
  .hero-proof a, .hero-proof div {
    display: block; padding: 1.25rem 1.25rem 1.1rem; border-radius: 14px;
    background: rgba(96,165,250,0.07); border: 1px solid rgba(96,165,250,0.2);
    text-decoration: none; transition: border-color 0.2s, background 0.2s;
  }
  .hero-proof a:hover { border-color: rgba(96,165,250,0.55); background: rgba(96,165,250,0.12); }
  .hero-proof .proof-big {
    display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 0.6rem;
  }
  .hero-proof strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--color-hero-text); line-height: 1.35; }
  .hero-proof .proof-sub { display: block; font-size: 0.75rem; color: var(--color-hero-muted); margin-top: 0.25rem; line-height: 1.4; }
  .hero-credentials { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
  .hero-credentials span {
    font-size: 0.86rem; font-weight: 600;
    padding: 0.42rem 0.95rem; border-radius: 100px;
    background: rgba(96,165,250,0.16); color: #F1F5F9;
    border: 1px solid rgba(147,197,253,0.45);
  }

  /* -- Sections -- */
  section { padding: 5rem 2rem; }
  .section-inner { max-width: var(--max-width); margin: 0 auto; }
  .section-label {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.6rem;
  }
  .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 1.1rem;
    max-width: 780px;
  }
  .section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.15rem; max-width: 780px;
    margin-bottom: 3rem; line-height: 1.7;
  }

  /* -- About / Philosophy -- */
  .about-section { background: var(--color-bg); }
  .about-title {
    font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 1.25rem; max-width: 860px;
  }
  .about-title em, .about-quote em {
    font-style: normal; background: linear-gradient(135deg, #2563EB, #7C3AED);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .about-philosophy { margin-top: 4.5rem; padding-top: 4rem; border-top: 1px solid var(--color-border); }
  .about-kicker { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.65rem); font-weight: 600; font-style: italic; color: var(--color-accent); line-height: 1.3; margin-bottom: 1rem; }
  .about-lead { font-size: 1.25rem; line-height: 1.75; color: #334155; max-width: 760px; margin-bottom: 2.5rem; }
  .about-lead strong { color: var(--color-text); }
  .lifecycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .lifecycle > div { padding: 1.6rem 1.5rem; border-radius: 14px; background: #fff; border: 1px solid var(--color-border); }
  .lifecycle .lc-num { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: #CBD5E1; margin-bottom: 0.9rem; }
  .lifecycle strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.25; }
  .about-cycle { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
  .about-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; line-height: 1.2; margin-top: 0.4rem; }
  .about-cycle img { width: 100%; max-width: 520px; display: block; margin: 0 auto; }

  /* -- Problem -- */
  .problem-section { background: #fff; }
  .problem-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
    max-width: 780px;
  }
  .problem-card {
    padding: 2rem; border-radius: 12px;
    border: 1px solid var(--color-border); background: var(--color-bg);
  }
  .problem-card .card-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1rem;
  }
  .problem-card:nth-child(1) .card-icon { background: #FEE2E2; }
  .problem-card:nth-child(2) .card-icon { background: #FEF3C7; }
  .problem-card:nth-child(3) .card-icon { background: #DBEAFE; }
  .problem-card:nth-child(4) .card-icon { background: #E0E7FF; }
  .problem-card:nth-child(5) .card-icon { background: #D1FAE5; }
  .problem-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
  .problem-card p { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.65; }

  /* -- Example -- */
  .example-section { background: var(--color-bg); }
  .example-box {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border-radius: 16px; padding: 2.5rem; color: #F8FAFC;
    max-width: 780px;
  }
  .example-box h3 {
    font-family: var(--font-display); font-size: 1.2rem;
    font-weight: 700; margin-bottom: 1rem;
  }
  .example-box p { font-size: 0.95rem; color: #CBD5E1; line-height: 1.75; margin-bottom: 1rem; }
  .example-failures {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-top: 1.5rem;
  }
  .example-failure {
    padding: 1.25rem; border-radius: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  }
  .example-failure h4 {
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 0.4rem;
  }
  .example-failure p { font-size: 0.82rem; color: #94A3B8; line-height: 1.6; margin-bottom: 0; }
  .failure-surface h4 { color: #FCA5A5; }
  .failure-drift h4 { color: #FCD34D; }
  .failure-hallucination h4 { color: #93C5FD; }

  /* -- Approach -- */
  .approach-section { background: #fff; }

  /* Architecture Diagram */
  .arch-diagram {
    max-width: 780px; margin-bottom: 3rem;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    border-radius: 16px; padding: 2.5rem 2rem; color: #F8FAFC;
    overflow: hidden;
  }
  .arch-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: nowrap;
  }
  .arch-node {
    width: 130px; min-height: 80px; border-radius: 10px; text-align: center;
    font-size: 0.8rem; font-weight: 600; line-height: 1.35;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0.6rem 0.5rem;
  }
  .arch-node-sub {
    font-size: 0.68rem; font-weight: 400; opacity: 0.75; margin-top: 0.2rem;
  }
  .arch-node-human {
    background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.35);
    color: #C4B5FD;
  }
  .arch-node-llm {
    background: rgba(96,165,250,0.15); border: 1px solid rgba(96,165,250,0.35);
    color: #93C5FD;
  }
  .arch-node-knowledge {
    background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3);
    color: #6EE7B7; width: auto; padding: 0.7rem 0.9rem;
  }
  .arch-node-knowledge .arch-klayer {
    font-size: 0.68rem; font-weight: 500; padding: 0.25rem 0.6rem;
    border-radius: 4px; background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.2); margin: 0.15rem 0;
    white-space: nowrap; display: flex; align-items: center; gap: 0.35rem;
  }
  .arch-node-knowledge .arch-klayer .kl-q {
    font-style: italic; opacity: 0.8;
  }
  .arch-node-knowledge .arch-klayer .kl-sep {
    opacity: 0.4;
  }
  .arch-node-reasoner {
    background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.35);
    color: #FCD34D;
  }
  .arch-arrow {
    font-size: 1rem; color: #475569; padding: 0 0.4rem;
    font-weight: 300; flex-shrink: 0;
  }

  /* Approach Detail Steps */
  .approach-flow {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
    max-width: 780px;
  }
  .approach-step {
    background: var(--color-bg); padding: 2rem 1.75rem; border-radius: 12px;
    border: 1px solid var(--color-border);
  }
  .approach-step .step-num {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: #E2E8F0; margin-bottom: 0.8rem; line-height: 1;
  }
  .approach-step h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.6rem; }
  .approach-step .step-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.35rem; }
  .approach-step p { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.65; }

  /* -- Writing -- */
  .writing-section { background: var(--color-bg); }
  .writing-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 780px; }
  .writing-card {
    display: block; padding: 1.75rem; border-radius: 12px;
    background: #fff; border: 1px solid var(--color-border);
    text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s;
  }
  .writing-card:hover { border-color: var(--color-accent); box-shadow: 0 4px 16px rgba(37,99,235,0.08); }
  .writing-card .writing-meta {
    font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 0.5rem;
    display: flex; gap: 0.75rem; align-items: center;
  }
  .writing-card .writing-meta .writing-venue { font-weight: 600; color: var(--color-text); }
  .writing-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
  .writing-card p { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.65; }
  .writing-card .read-link {
    display: inline-block; margin-top: 0.75rem; font-size: 0.82rem;
    font-weight: 500; color: var(--color-accent);
  }
  .writing-card-photo {
    width: 100%; border-radius: 8px; margin-bottom: 1rem;
    max-height: 240px; object-fit: cover; object-position: center 45%;
  }
  .writing-card-photo.photo-top { object-position: center 20%; }

  /* On-stage photo gallery */
  .voice-section { background: #fff; }
  .stage-gallery {
    display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1.25rem 1.25rem;
  }
  .stage-gallery .stage-feature { grid-row: span 2; display: flex; flex-direction: column; }
  .stage-gallery .stage-feature img { flex: 1; min-height: 0; aspect-ratio: auto; height: 100%; }
  .stage-gallery a { display: block; text-decoration: none; color: inherit; }
  .stage-gallery img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .stage-gallery a:hover img { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,0.15); }
  .stage-gallery .stage-event { display: block; margin-top: 0.7rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
  .stage-gallery .stage-what { display: block; font-size: 0.82rem; color: var(--color-text-muted); }

  /* -- Community -- */
  .community-section { background: #fff; }
  .community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 780px; }
  .community-video {
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--color-border); background: #000;
    display: flex; flex-direction: column;
  }
  .community-video iframe {
    width: 100%; aspect-ratio: 16/9; display: block; border: none;
  }
  .community-video .video-caption {
    padding: 1rem 1.25rem; background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    flex: 1 1 auto;
  }
  .community-video .video-caption h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.3rem; }
  .community-video .video-caption p { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.6; }

  /* -- My version of an unconventional path -- */
  .path-section { background: linear-gradient(180deg, #F3F7FF 0%, #fff 100%); }
  .path-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.75rem; }
  .path { max-width: 860px; border-left: 2px solid #DBEAFE; }
  .path-beat {
    display: grid; grid-template-columns: 300px 1fr; gap: 1.75rem; align-items: baseline;
    padding: 1.1rem 0 1.1rem 1.5rem; position: relative;
  }
  .path-beat::before {
    content: ""; position: absolute; left: -7px; top: 1.6rem; width: 12px; height: 12px; border-radius: 50%;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
  }
  .path-big { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 1.75rem); font-weight: 700; line-height: 1.2; }
  .path-big em {
    font-style: normal; background: linear-gradient(135deg, #2563EB, #7C3AED);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .path-beat p { font-size: 0.98rem; color: var(--color-text-muted); line-height: 1.7; }
  .path-coda { max-width: 860px; margin-top: 2.25rem; padding: 2rem 2.25rem; border-radius: 16px; background: var(--color-hero-bg); color: #CBD5E1; }
  .path-coda-big { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; line-height: 1.2; color: var(--color-hero-text); margin-bottom: 0.9rem; }
  .path-coda p:not(.path-coda-big) { font-size: 0.98rem; line-height: 1.7; }
  .path-coda p:not(.path-coda-big) + p { margin-top: 0.9rem; }
  .path-coda .path-coda-close { color: var(--color-hero-text); font-weight: 600; }
  .path-coda a { color: #93C5FD; text-decoration: none; font-weight: 500; }
  .path-coda strong { color: var(--color-hero-text); }

  /* -- STEAM Slides -- */
  .steam-slides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 780px; margin-top: 2rem; }
  .steam-slide {
    border-radius: 12px; overflow: hidden; position: relative;
    aspect-ratio: 4/3; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 1.5rem;
  }
  .steam-slide-1 {
    background: #7c4dff;
    background: linear-gradient(135deg, #7c4dff 0%, #6a3de8 100%);
    color: #fff;
  }
  .steam-slide-1 .slide-robot {
    font-size: 2.5rem; margin-bottom: 0.5rem;
  }
  .steam-slide-1 h3 {
    font-size: 1.6rem; font-weight: 800; font-style: italic;
    margin-bottom: 0.3rem; color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  }
  .steam-slide-1 .slide-subtitle {
    font-size: 1rem; font-weight: 600; font-style: italic;
    color: #ffd54f;
  }
  .steam-slide-1 .slide-icons {
    margin-top: 0.75rem; font-size: 1.2rem; letter-spacing: 0.5rem;
  }
  .steam-slide-1 .corner-blob {
    position: absolute; border-radius: 50%; opacity: 0.5;
  }
  .steam-slide-1 .blob-tl { width: 60px; height: 60px; background: #e91e90; top: -10px; left: -10px; }
  .steam-slide-1 .blob-tr { width: 50px; height: 50px; background: #2196f3; top: 10px; right: -5px; }
  .steam-slide-1 .blob-bl { width: 55px; height: 55px; background: #1976d2; bottom: 10px; left: -5px; }
  .steam-slide-1 .blob-br { width: 45px; height: 45px; background: #e91e90; bottom: -5px; right: 10px; }

  .steam-slide-2 {
    background: #1a1a3e;
    color: #fff; padding: 1.25rem;
    align-items: stretch; justify-content: flex-start;
    aspect-ratio: auto; min-height: 0;
  }
  .steam-slide-2 .quiz-header {
    font-size: 0.85rem; font-weight: 700; color: #ffa726;
    margin-bottom: 0.6rem; text-align: center;
  }
  .rounds-section {
    margin-bottom: 0.7rem;
  }
  .rounds-section h4 {
    font-size: 0.72rem; font-weight: 700; color: #e0e0e0;
    text-align: center; margin-bottom: 0.4rem; text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .rounds-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.35rem;
  }
  .round-card {
    background: linear-gradient(135deg, #7c4dff, #536dfe);
    border-radius: 8px; padding: 0.5rem 0.3rem; text-align: center;
  }
  .round-card .round-emoji { font-size: 1.3rem; display: block; margin-bottom: 0.15rem; }
  .round-card .round-label { font-size: 0.55rem; font-weight: 700; color: #ffd54f; display: block; }
  .round-card .round-time { font-size: 0.48rem; color: rgba(255,255,255,0.7); display: block; margin-top: 0.1rem; }
  .round-card .round-q { font-size: 0.52rem; color: #fff; font-weight: 600; margin-top: 0.2rem; display: block; }
  .steam-slide-2 .quiz-board {
    border: 2px solid #ffa726; border-radius: 10px;
    padding: 0.6rem; flex: 1; display: flex; flex-direction: column;
    justify-content: center; background: rgba(255,255,255,0.04);
  }
  .steam-slide-2 .quiz-board h4 {
    font-size: 0.72rem; font-weight: 700; color: #ffa726;
    text-align: center; margin-bottom: 0.4rem;
  }
  .steam-slide-2 .quiz-options {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
  }
  .steam-slide-2 .quiz-option {
    background: #7c4dff; border-radius: 8px;
    padding: 0.4rem 0.5rem; font-size: 0.62rem;
    font-weight: 600; color: #fff; text-align: center;
    line-height: 1.3;
  }

  .play-along-prompt {
    margin: 0; text-align: center;
    font-size: 0.85rem; font-weight: 600; color: var(--color-accent);
    padding: 0.75rem 1.25rem; border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
  }

  @media (max-width: 600px) {
    .steam-slides { grid-template-columns: 1fr; }
    .steam-slide-1 h3 { font-size: 1.2rem; }
    .steam-slide-1 .slide-subtitle { font-size: 0.85rem; }
    .steam-slide-2 .quiz-header { font-size: 0.75rem; }
    .steam-slide-2 .quiz-option { font-size: 0.6rem; padding: 0.35rem 0.4rem; }
  }

  /* -- Contact -- */
  .contact-section {
    background: var(--color-hero-bg); color: var(--color-hero-text);
    text-align: center;
  }
  .contact-section .section-label { color: #60A5FA; }
  .contact-section .section-title { color: var(--color-hero-text); margin-left: auto; margin-right: auto; }
  .contact-section .section-subtitle {
    color: var(--color-hero-muted); margin-left: auto; margin-right: auto;
  }
  .contact-links {
    display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  }
  .contact-links a, .contact-links span {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: 100px;
    font-size: 0.9rem; font-weight: 500;
    text-decoration: none; transition: all 0.2s;
  }
  .contact-links .btn-primary { background: #2563EB; color: #fff; }
  .contact-links .btn-primary:hover { background: #1D4ED8; }
  .contact-links .btn-secondary {
    background: rgba(255,255,255,0.08); color: #CBD5E1;
    border: 1px solid rgba(255,255,255,0.12);
  }
  .contact-links .btn-secondary:hover { background: rgba(255,255,255,0.14); }

  footer {
    text-align: center; padding: 2rem;
    font-size: 0.78rem; color: var(--color-text-muted);
    background: var(--color-bg); border-top: 1px solid var(--color-border);
  }

  @media (max-width: 768px) {
    .problem-grid, .approach-flow, .example-failures { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }
    nav .nav-links { gap: 1rem; }
    nav .nav-links a { font-size: 0.78rem; }
    section { padding: 3.5rem 1.25rem; }
    .hero { padding: 6.5rem 1.25rem 3.5rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 0; }
    .hero-side { display: contents; }
    .hero-portrait { grid-row: 1; width: 120px; margin: 0 0 1.5rem; }
    .hero-bio { font-size: 1.08rem; }
    .stage-gallery { grid-template-columns: 1fr 1fr; }
    .stage-gallery .stage-feature { grid-row: auto; grid-column: 1 / -1; }
    .stage-gallery .stage-feature img { aspect-ratio: 4 / 3; height: auto; flex: none; }
    .lifecycle { grid-template-columns: 1fr; }
    .about-cycle { grid-template-columns: 1fr; gap: 1.5rem; }
    .path-beat { grid-template-columns: 1fr; gap: 0.3rem; }
    .example-box { padding: 2rem; }
  }

  @media (max-width: 960px) {
    nav .nav-inner { flex-direction: column-reverse; align-items: stretch; gap: 0.55rem; padding: 0.6rem 1rem; }
    nav .nav-links { justify-content: flex-start; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 0.15rem; }
    nav .nav-links::-webkit-scrollbar { display: none; }
    nav .nav-links a { font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }
    nav .nav-brand img { height: 32px; width: 32px; }
    nav .nav-name { font-size: 0.98rem; }
    .hero { padding-top: 8.5rem; }
    section[id], .approach-step[id], .writing-card[id] { scroll-margin-top: 110px; }
  }

  /* Prevent Edge/browser forced dark mode from overriding colors */
  @media (forced-colors: active) {
    .hero h1 em { -webkit-text-fill-color: unset; background: none; color: #60A5FA; }
    .hero-credentials span { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: #CBD5E1; }
  }
  @media (prefers-color-scheme: dark) {
    :root { color-scheme: only light; }
    .hero, .hero h1, .hero h1 em, .hero-subtitle, .hero-credentials span,
    .hero-label, .hero-photo, nav, nav a, .section-inner, footer,
    section, body, html {
      forced-color-adjust: none;
      -ms-high-contrast-adjust: none;
    }
  }

  /* -- Sub-page hero (Approach, Beyond) -- */
  .page-hero { background: var(--color-hero-bg); color: var(--color-hero-text); padding: 8.5rem 2rem 4rem; position: relative; overflow: hidden; }
  .page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, rgba(96,165,250,0.18), transparent 60%), radial-gradient(ellipse at 10% 100%, rgba(167,139,250,0.14), transparent 55%); }
  .page-hero .section-inner { position: relative; }
  .page-hero .section-label { color: #93C5FD; }
  .page-hero h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; max-width: 860px; margin-bottom: 1.2rem; }
  .page-hero h1 em { font-style: normal; background: linear-gradient(135deg, #60A5FA, #A78BFA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .page-hero p { font-size: 1.2rem; color: #CBD5E1; max-width: 720px; line-height: 1.7; }
  .page-hero .page-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
  .page-hero .page-jump a { font-size: 0.86rem; font-weight: 600; color: #F1F5F9; text-decoration: none; padding: 0.45rem 1rem; border-radius: 100px; background: rgba(96,165,250,0.16); border: 1px solid rgba(147,197,253,0.45); }
  .page-hero .page-jump a:hover { background: rgba(96,165,250,0.28); }
  nav .nav-links a.active { color: #93C5FD; font-weight: 600; }

  /* -- Shared numbered-card look for problems and approach steps -- */
  .problem-card h3, .approach-step h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.6rem; }
  .problem-card .step-num, .approach-step .step-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #CBD5E1; margin-bottom: 0.8rem; line-height: 1; }
  .problem-grid, .approach-flow { max-width: none; }

  /* -- Go deeper cards on the home page -- */
  .deeper-section { background: var(--color-hero-bg); color: var(--color-hero-text); }
  .deeper-section .section-label { color: #93C5FD; }
  .deeper-section .section-title { color: var(--color-hero-text); }
  .deeper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .deeper-card {
    display: flex; flex-direction: column; padding: 1.9rem 1.7rem 1.6rem; border-radius: 16px; text-decoration: none; color: inherit;
    background: rgba(96,165,250,0.07); border: 1px solid rgba(147,197,253,0.25); transition: transform 0.2s, border-color 0.2s, background 0.2s;
  }
  .deeper-card:hover { transform: translateY(-4px); border-color: rgba(147,197,253,0.6); background: rgba(96,165,250,0.12); }
  .deeper-card .dc-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 1rem; background: linear-gradient(135deg, #60A5FA, #A78BFA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .deeper-card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.7rem; }
  .deeper-card p { font-size: 0.95rem; color: #CBD5E1; line-height: 1.65; flex: 1; }
  .deeper-card .dc-more { margin-top: 1.3rem; font-size: 0.88rem; font-weight: 600; color: #93C5FD; }
  @media (max-width: 768px) {
    .deeper-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 8.5rem 1.25rem 3rem; }
  }

  /* -- Learn more link in the nav -- */
  nav .nav-links a.nav-more { padding: 0.3rem 0.85rem; border-radius: 100px; background: rgba(96,165,250,0.16); border: 1px solid rgba(147,197,253,0.45); font-weight: 600; }
  nav .nav-links a.nav-more:hover, nav .nav-links a.nav-more.active { background: rgba(96,165,250,0.3); color: #fff; }

  /* -- Harvard DCI feature row (uncropped) -- */
  .stage-hero { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 2.5rem; align-items: center; margin-bottom: 2.5rem; }
  .stage-hero-img img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,0.14); transition: transform 0.3s; }
  .stage-hero-img:hover img { transform: translateY(-3px); }
  .stage-hero-meta { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.6rem; }
  .stage-hero-big { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.08; margin-bottom: 1rem; }
  .stage-hero-big em { font-style: normal; background: linear-gradient(135deg, #2563EB, #7C3AED); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .stage-hero-talk { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: #334155; margin-bottom: 1rem; }
  .stage-hero-note { display: inline-block; font-size: 0.92rem; padding: 0.5rem 0.9rem; border-left: 3px solid var(--color-accent); background: var(--color-accent-soft); border-radius: 6px; margin-bottom: 1rem; }
  .stage-hero-link { display: block; font-size: 0.88rem; font-weight: 600; color: var(--color-accent); text-decoration: none; }
  .stage-gallery { grid-template-columns: 1fr 1fr; }
  @media (max-width: 768px) {
    .stage-hero { grid-template-columns: 1fr; gap: 1.25rem; }
    .stage-gallery { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stage-gallery .stage-event { font-size: 0.98rem; }
    .stage-gallery .stage-what { font-size: 0.76rem; line-height: 1.4; }
  }
  /* Phones: keep "Learn more" visible in the name row */
  @media (max-width: 960px) {
    nav .nav-inner { position: relative; }
    nav .nav-links a.nav-more { position: absolute; top: 0.62rem; right: 1rem; font-size: 0.76rem; padding: 0.28rem 0.75rem; }
  }

  /* -- Hero right column: portrait over an expertise card -- */
  .hero-credentials {
    grid-column: auto; display: block; margin-top: 2rem; padding: 1.1rem 1.35rem 0.6rem; border-radius: 18px;
    background: rgba(15,23,42,0.55); border: 1px solid rgba(147,197,253,0.22); backdrop-filter: blur(8px);
  }
  .hero-credentials span {
    display: block; padding: 0.55rem 0; border: 0; border-top: 1px solid rgba(255,255,255,0.07); border-radius: 0;
    background: none; font-size: 0.86rem; font-weight: 500; color: #E2E8F0; line-height: 1.35;
  }
  .hero-credentials span:not(.cred-title) { position: relative; padding-left: 1rem; }
  .hero-credentials span:not(.cred-title)::before {
    content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
  }
  .hero-credentials .cred-title { border-top: 0; padding: 0 0 0.45rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #93C5FD; }

  /* -- DCI row: typographic, no boxes -- */
  .stage-hero-stats { display: flex; gap: 2.25rem; margin: 0.4rem 0 1.6rem; }
  .stage-hero-stats > div + div { padding-left: 2.25rem; border-left: 1px solid var(--color-border); }
  .stage-hero-stats .stat-big {
    display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; line-height: 1;
    background: linear-gradient(135deg, #2563EB, #7C3AED); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 0.45rem;
  }
  .stage-hero-stats .stat-sub { display: block; font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
  .stage-hero-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.4rem; }
  .stage-hero-talk { font-style: italic; font-size: 1.25rem; color: var(--color-text); }
  @media (max-width: 768px) {
    .stage-hero-stats { gap: 1.25rem; }
    .stage-hero-stats > div + div { padding-left: 1.25rem; }
    .stage-hero-talk { font-size: 1.1rem; }
  }
  @media (max-width: 768px) { .hero-credentials { margin-top: 2rem; } }

  /* -- Public Voice bento: large uncropped DCI poster + four smaller photos -- */
  .stage-bento { display: grid; grid-template-columns: 0.9fr 1fr; gap: 1.25rem; align-items: start; }
  .stage-bento .stage-gallery { grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
  .stage-bento .stage-gallery img { aspect-ratio: 5 / 4; border-radius: 12px; }
  .stage-bento .stage-gallery .stage-event { font-size: 1rem; margin-top: 0.5rem; }
  .stage-bento .stage-gallery .stage-what { font-size: 0.76rem; line-height: 1.4; }
  @media (max-width: 768px) {
    .stage-bento { grid-template-columns: 1fr; }
  }

  /* -- Split section header: title left, subtitle right, both edges flush with the content below -- */
  .split-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
  .split-head .section-title { margin-bottom: 0; }
  .split-head .section-subtitle { margin: 0; padding-left: 1.5rem; border-left: 2px solid #DBEAFE; font-size: 1.05rem; }
  @media (max-width: 768px) {
    .split-head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
  }

  /* Shorter list, no heading: first row needs no divider */
  .hero-credentials { padding: 0.5rem 1.35rem; }
  .hero-credentials span:first-child { border-top: 0; }
  .hero-credentials span { padding: 0.7rem 0 0.7rem 1rem; }
  .hero-credentials span:not(.cred-title)::before { top: 1.2em; }

  /* -- Public Voice: poster left from the top; title sits above the four photos -- */
  .stage-bento { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .stage-head { margin-bottom: 1.4rem; }
  .stage-head .section-title { font-size: clamp(1.8rem, 3.2vw, 2.3rem); margin-bottom: 0; }
  .stage-bento .stage-gallery img { aspect-ratio: 4 / 3; }
  @media (max-width: 768px) {
    .stage-bento { grid-template-columns: 1fr; gap: 1.25rem; }
    .stage-right { display: contents; }
    .stage-head { order: -1; margin-bottom: 0.25rem; }
  }

  /* -- Hero: expertise card bottom-aligns with the bio; pillars span both columns -- */
  .hero-side { align-self: end; }
  .hero-pillars {
    grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem;
    margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.09);
  }
  /* -- Public Voice: poster on the right -- */
  .stage-bento { grid-template-columns: 1fr 1fr; }
  @media (max-width: 768px) {
    .hero-side { align-self: auto; }
    .hero-pillars { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2rem; padding-top: 1.5rem; }
    .stage-bento { grid-template-columns: 1fr; }
    .stage-bento .stage-hero-img { order: 0; }
    .stage-bento .stage-gallery { order: 1; }
  }
  @media (max-width: 768px) {
    .hero-pillars span { font-size: 1.35rem; white-space: nowrap; }
  }

  /* No divider above the four pillars */
  .hero-pillars { border-top: 0; padding-top: 0; }

  /* Tagline under the portrait */
  .hero-tagline {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.3; color: var(--color-hero-text);
    text-align: center; margin: 1.25rem auto 0; max-width: 260px;
  }

  /* -- Public Voice: four photos fill exactly the poster's height; captions sit on the photos -- */
  .stage-bento { grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: stretch; }
  .stage-right { display: flex; }
  .stage-bento .stage-gallery { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
  .stage-bento .stage-gallery a { position: relative; display: block; min-height: 0; border-radius: 14px; overflow: hidden; }
  .stage-bento .stage-gallery img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
  .stage-bento .stage-gallery a:hover img { transform: scale(1.03); box-shadow: none; }
  .stage-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 0.9rem 0.75rem;
    background: linear-gradient(to top, rgba(15,23,42,0.88), rgba(15,23,42,0));
  }
  .stage-bento .stage-gallery .stage-event { margin: 0; color: #fff; font-size: 1.05rem; }
  .stage-bento .stage-gallery .stage-what { color: #E2E8F0; font-size: 0.74rem; line-height: 1.35; }
  .stage-hero-img img { border-radius: 14px; }

  /* -- Larger evidence-cycle diagram -- */
  .about-cycle { grid-template-columns: 0.75fr 1.25fr; gap: 2rem; }
  .about-cycle img { max-width: 640px; }

  @media (max-width: 768px) {
    .hero-tagline { grid-row: 2; text-align: left; margin: 0 0 1.5rem; max-width: none; font-size: 1.15rem; }
    .stage-bento { grid-template-columns: 1fr; }
    .stage-bento .stage-gallery { grid-template-rows: auto; }
    .stage-bento .stage-gallery img { aspect-ratio: 4 / 3; height: auto; }
    .about-cycle img { max-width: 100%; }
  }

  /* The poster sets the height; the four photos fill exactly that height */
  .stage-right { position: relative; }
  .stage-bento .stage-gallery { position: absolute; inset: 0; }

  @media (max-width: 768px) {
    .stage-right { position: static; display: block; }
    .stage-bento .stage-gallery { position: static; }
    .stage-bento .stage-hero-img { order: -1; }
    .about-cycle { grid-template-columns: 1fr; }
    /* Phone hero: small photo with the tagline beside it */
    .hero-inner { grid-template-columns: 120px 1fr; column-gap: 1.25rem; }
    .hero-portrait { grid-row: 1; grid-column: 1; margin: 0 0 1.75rem; }
    .hero-tagline { grid-row: 1; grid-column: 2; align-self: center; margin: 0 0 1.75rem; font-size: 1.15rem; }
    .hero-text, .hero-credentials, .hero-pillars { grid-column: 1 / -1; }
  }

  /* -- One right edge: every card, grid and panel spans the full content width -- */
  .problem-grid, .example-box, .arch-diagram, .approach-flow, .writing-grid,
  .community-grid, .steam-slides, .path, .path-coda { max-width: none; }

  /* Hero: less air above the four words; each expertise item on one line */
  .hero-pillars { margin-top: 1.5rem; }
  .hero-credentials span { white-space: nowrap; }
  @media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr 300px; gap: 2rem; }
    .hero-credentials span { font-size: 0.8rem; }
  }
  @media (max-width: 768px) {
    .hero-inner { grid-template-columns: 120px 1fr; gap: 0 1.25rem; }
    .hero-credentials span { white-space: normal; font-size: 0.86rem; }
  }
  /* Architecture diagram stacks vertically on phones */
  @media (max-width: 768px) {
    .arch-diagram { padding: 1.75rem 1.25rem; }
    .arch-flow { flex-direction: column; gap: 0.15rem; }
    .arch-arrow { transform: rotate(90deg); padding: 0.1rem 0; }
    .arch-node { width: 100%; max-width: 300px; min-height: 0; padding: 0.7rem 0.75rem; }
    .arch-node-knowledge { width: 100%; max-width: 300px; }
    .arch-node-knowledge .arch-klayer { white-space: normal; justify-content: center; flex-wrap: wrap; }
  }

  /* -- Consistent headings and one right edge for text blocks -- */
  .section-title, .section-subtitle, .about-title, .about-lead { max-width: none; }
  .contact-section .section-subtitle { max-width: 780px; }
  .about-title { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 1rem; }
  .about-quote { font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
  .about-lead { font-size: 1.15rem; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr 350px; }
  @media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr 310px; } }
  @media (max-width: 768px) { .hero-inner { grid-template-columns: 120px 1fr; } }

  /* -- Coda line on one row (desktop) -- */
  @media (min-width: 961px) { .path-coda-big { font-size: 1.75rem; white-space: nowrap; } }

  /* -- Expertise list: credential leads -- */
  .hero-credentials span.cred-lead { color: #93C5FD; font-weight: 600; }

  /* -- My Path: numbered gradient timeline, tags, highlights, ink reveal -- */
  .path { counter-reset: beat; border-left: 0; position: relative; }
  .path::before { content: ""; position: absolute; left: 0; top: 0.6rem; bottom: 0.6rem; width: 2px; background: linear-gradient(to bottom, #60A5FA, #A78BFA, #F472B6); border-radius: 2px; }
  .path-beat { counter-increment: beat; padding: 1.25rem 1rem 1.25rem 2.6rem; border-radius: 14px; }
  .path-beat::before {
    content: counter(beat, decimal-leading-zero); left: -15px; top: 1.35rem; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; border: 3px solid #F3F7FF;
    font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
  }
  .path-beat:nth-child(n+4)::before { background: linear-gradient(135deg, #818CF8, #C084FC); }
  .path-beat:nth-child(n+5)::before { background: linear-gradient(135deg, #A78BFA, #F472B6); }
  .path-art { background: linear-gradient(90deg, rgba(244,114,182,0.08), rgba(167,139,250,0.06) 60%, transparent); }
  .path-tag { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #7C3AED; margin-bottom: 0.3rem; }
  .path-beat p strong { color: var(--color-text); font-weight: 600; }
  mark.hl {
    color: var(--color-text); font-weight: 500; padding: 0 0.1em; border-radius: 2px;
    background: linear-gradient(90deg, rgba(96,165,250,0.28), rgba(167,139,250,0.28)) no-repeat 0 90% / 100% 40%;
  }
  .ink-note { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.08em; color: #9F1239; }
  @media (max-width: 768px) { .path-beat { padding-left: 2.2rem; padding-right: 0.5rem; } }

  /* -- Hero v2: one editorial column -- identity row, full-width headline, bio + expertise, pillars -- */
  .hero-inner.hero-v2 { display: block; }
  .hero-v2 .hero-id { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
  .hero-v2 .hero-portrait { width: 96px; margin: 0; flex-shrink: 0; border-width: 2px; box-shadow: 0 0 0 6px rgba(96,165,250,0.1), 0 12px 30px rgba(0,0,0,0.4); }
  .hero-v2 .hero-name { margin-bottom: 0.3rem; }
  .hero-v2 .hero-tagline { text-align: left; margin: 0; max-width: none; font-size: 1.35rem; grid-row: auto; grid-column: auto; }
  .hero-v2 h1 { max-width: none; font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.06; margin-bottom: 2.25rem; }
  .hero-v2 .hero-row { display: grid; grid-template-columns: 1fr 350px; gap: 3rem; align-items: start; }
  .hero-v2 .hero-bio { margin: 0; max-width: none; }
  .hero-v2 .hero-credentials { margin-top: 0.35rem; }
  .hero-v2 .hero-pillars { margin-top: 2.5rem; }
  @media (max-width: 960px) {
    .hero-v2 .hero-row { grid-template-columns: 1fr 310px; gap: 2rem; }
  }
  @media (max-width: 768px) {
    .hero-v2 .hero-id { gap: 1rem; margin-bottom: 1.5rem; }
    .hero-v2 .hero-portrait { width: 76px; }
    .hero-v2 .hero-tagline { font-size: 1.08rem; }
    .hero-v2 .hero-row { grid-template-columns: 1fr; gap: 2rem; }
    .hero-v2 .hero-credentials { margin-top: 0; }
    .hero-v2 .hero-pillars { margin-top: 2rem; }
  }

  .hero-credentials .cred-mcp { font-weight: 700; color: #C4B5FD; }

  /* -- Hero v3: large portrait left, headline right -- */
  .hero-v2 .hero-top { display: grid; grid-template-columns: 260px 1fr; gap: 3.5rem; align-items: center; margin-bottom: 2.75rem; }
  .hero-v2 .hero-id { display: block; margin: 0; text-align: center; }
  .hero-v2 .hero-portrait { width: 240px; margin: 0 auto; border-width: 3px; box-shadow: 0 0 0 8px rgba(96,165,250,0.08), 0 20px 50px rgba(0,0,0,0.4); }
  .hero-v2 .hero-tagline { text-align: center; margin: 1.25rem auto 0; font-size: 1.2rem; max-width: 250px; }
  .hero-v2 .hero-name { margin-bottom: 1rem; }
  .hero-v2 h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; margin-bottom: 0; }
  @media (max-width: 960px) {
    .hero-v2 .hero-top { grid-template-columns: 200px 1fr; gap: 2.25rem; }
    .hero-v2 .hero-portrait { width: 190px; }
  }
  @media (max-width: 768px) {
    .hero-v2 .hero-top { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
    .hero-v2 .hero-id { display: flex; align-items: center; gap: 1.1rem; text-align: left; }
    .hero-v2 .hero-portrait { width: 110px; margin: 0; flex-shrink: 0; }
    .hero-v2 .hero-tagline { text-align: left; margin: 0; font-size: 1.12rem; }
    .hero-v2 .hero-name { margin-bottom: 0.75rem; }
  }
  @media (min-width: 769px) and (max-width: 960px) {
    .hero-v2 .hero-top { grid-template-columns: 220px 1fr; }
    .hero-v2 .hero-tagline { font-size: 1rem; max-width: 220px; }
  }

  /* -- Calligraphy photo inside step 07 -- */
  .path-photo { grid-column: 1 / -1; margin: 1rem 0 0; }
  .path-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 16px 40px rgba(15,23,42,0.15); }
  .path-photo figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--color-text-muted); }
  .path-photo figcaption em { font-family: var(--font-display); color: #9F1239; font-weight: 600; }

  /* -- Larger evidence-cycle diagram -- */
  .about-cycle { grid-template-columns: 0.6fr 1.4fr; gap: 1.5rem; }
  .about-cycle img { max-width: none; width: 100%; }
  @media (max-width: 768px) { .about-cycle { grid-template-columns: 1fr; } }
  @media (min-width: 769px) { .path-photo { grid-column: 2; margin-top: 0.25rem; } }

  .path-photo figcaption { font-size: 0.7rem; font-style: italic; color: #94A3B8; text-align: right; margin-top: 0.4rem; }
  /* Longer expertise labels: keep every line on one row */
  .hero-v2 .hero-row { grid-template-columns: 1fr 380px; }
  .hero-v2 .hero-credentials span { font-size: 0.84rem; white-space: nowrap; }
  @media (max-width: 960px) {
    .hero-v2 .hero-row { grid-template-columns: 1fr 330px; gap: 1.75rem; }
    .hero-v2 .hero-credentials { padding-left: 1.1rem; padding-right: 1.1rem; }
    .hero-v2 .hero-credentials span { font-size: 0.76rem; }
  }
  @media (max-width: 768px) {
    .hero-v2 .hero-row { grid-template-columns: 1fr; }
    .hero-v2 .hero-credentials span { font-size: 0.8rem; letter-spacing: -0.005em; }
  }

  /* -- Invisible ink developed by a hair dryer (assets/js/hair-dryer-ink.js) -- */
  .ink-ready { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .ink-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ink-word { white-space: nowrap; }
  .ink-ch { transition: text-shadow 1.2s ease; }
  .ink-ready:not(.ink-done) .ink-vis {
    background: linear-gradient(90deg, rgba(251,191,36,0.55) 50%, transparent 0) repeat-x 0 100% / 6px 2px;
  }
  .ink-done .ink-ch { text-shadow: 0 0 18px rgba(251,191,36,0.35); }

  .ink-dryer {
    position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity 0.2s;
    will-change: transform; filter: drop-shadow(0 6px 10px rgba(76,29,149,0.35));
  }
  .ink-dryer svg { display: block; }
  .ink-dryer.on { opacity: 1; }
  .ink-dryer.on svg { animation: dryer-buzz 0.07s linear infinite alternate; }
  .dryer-air path { animation: dryer-air 0.45s linear infinite; }
  .dryer-air path:nth-child(2) { animation-delay: -0.15s; }
  .dryer-air path:nth-child(3) { animation-delay: -0.3s; }
  @keyframes dryer-air { 0% { transform: translateX(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateX(6px); opacity: 0; } }
  @keyframes dryer-buzz { to { transform: translate(0.6px, -0.4px); } }
  .ink-glow {
    position: fixed; left: 0; top: 0; z-index: 999; width: 90px; height: 90px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(251,146,60,0.32), rgba(251,146,60,0) 70%);
    opacity: 0; transition: opacity 0.3s;
  }
  .ink-glow.on { opacity: 1; }
  html.ink-drying, html.ink-drying * { cursor: none !important; }
  html.ink-dragging, html.ink-dragging * { cursor: grabbing !important; }

  /* -- Hero: tagline alias linking to My Path / Roots -- */
  .hero-alias {
    display: inline-block; margin-top: 0.55rem; font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
    color: #CBD5E1; text-decoration: none;
  }
  .hero-alias span:first-child {
    color: #F9A8D4; font-weight: 600;
    background: linear-gradient(90deg, rgba(249,168,212,0.6) 50%, transparent 0) repeat-x 0 100% / 6px 1.5px; padding-bottom: 1px;
  }
  .hero-alias-arrow { display: inline-block; margin-left: 0.15em; color: #F9A8D4; transition: transform 0.2s; }
  .hero-alias:hover .hero-alias-arrow { transform: translateY(3px); }
  .hero-alias:hover span:first-child { color: #FBCFE8; }
  .path-beat[id] { scroll-margin-top: 110px; }
  .path-beat:target { animation: roots-flash 2.6s ease-out; }
  @keyframes roots-flash { 0%, 30% { box-shadow: 0 0 0 3px rgba(244,114,182,0.55); } 100% { box-shadow: 0 0 0 3px rgba(244,114,182,0); } }

  .hero-alias { white-space: nowrap; }
  @media (min-width: 769px) and (max-width: 960px) { .hero-alias { font-size: 0.9rem; } }
  @media (max-width: 768px) {
    .hero-v2 .hero-id-text { min-width: 0; }
    .hero-alias { font-size: 0.98rem; margin-top: 0.35rem; white-space: normal; }
    .hero-alias span:first-child { white-space: nowrap; }
  }

  /* -- Hero: the four keywords, developed with the hair dryer parked beside them -- */
  .hero-keys { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; padding-top: 2.4rem; }
  .keys-list {
    flex: 1; list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  }
  .keys-list li {
    font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.3;
    color: var(--color-hero-text); white-space: nowrap;
  }
  .keys-list li::before { content: ""; display: inline-block; width: 0.38em; height: 0.38em; border-radius: 50%; margin-right: 0.45em; vertical-align: 0.12em; background: linear-gradient(135deg, #60A5FA, #A78BFA); }

  .dryer-park {
    position: relative; flex-shrink: 0; width: 84px; height: 64px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
    border-radius: 14px; outline-offset: 4px;
  }
  .dryer-park svg { display: block; animation: park-wiggle 2.4s ease-in-out infinite; transform-origin: 25% 70%; }
  .dryer-park.is-dragging svg, .dryer-park.is-dragging .dryer-bubble,
  .dryer-park.is-away svg, .dryer-park.is-away .dryer-bubble { visibility: hidden; }
  .dryer-park:focus-visible { outline: 2px solid #F9A8D4; }
  @keyframes park-wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-9deg); } 86% { transform: rotate(6deg); } 93% { transform: rotate(-3deg); } }
  .dryer-bubble {
    position: absolute; bottom: calc(100% + 10px); left: -6px; white-space: nowrap; pointer-events: none;
    padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #1E1B4B;
    background: #FDE68A; box-shadow: 0 6px 18px rgba(0,0,0,0.3); animation: bubble-bob 2.4s ease-in-out infinite;
  }
  .dryer-bubble::after { content: ""; position: absolute; top: 100%; left: 28px; border: 7px solid transparent; border-top-color: #FDE68A; }
  @keyframes bubble-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  /* Once the words are out, the dryer stays for another go, with a quieter hint */
  .hero-keys.is-revealed .dryer-bubble { animation: none; opacity: 0.85; background: rgba(253,230,138,0.9); }
  .hero-keys.is-revealed .dryer-park svg { animation-duration: 6s; }

  @media (min-width: 769px) and (max-width: 960px) {
    .keys-list li { font-size: 1.4rem; }
    .hero-keys { gap: 1.1rem; }
  }
  @media (max-width: 768px) {
    .hero-keys { display: block; margin-top: 1.75rem; padding-top: 0; }
    .hero-keys .dryer-park { margin-bottom: 0.75rem; }
    .dryer-bubble { bottom: auto; top: 17px; left: 96px; }
    .dryer-bubble::after { top: 50%; left: auto; right: 100%; margin-top: -7px; border-top-color: transparent; border-right-color: #FDE68A; }
    .keys-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; }
    .keys-list li { font-size: 1.35rem; }
  }

  /* -- The craft: the Mad Calligrapher show video, with a sound button -- */
  .show-frame { position: relative; border-radius: 14px; overflow: hidden; background: #0F172A; box-shadow: 0 16px 40px rgba(15,23,42,0.15); }
  .show-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .show-sound {
    position: absolute; left: 0.7rem; bottom: 0.65rem; display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.38rem 0.75rem 0.38rem 0.6rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; cursor: pointer;
    font: 600 0.76rem/1 var(--font-body); color: #F8FAFC; background: rgba(15,23,42,0.68); backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.2s;
  }
  .show-sound:hover { background: rgba(124,58,237,0.85); transform: translateY(-1px); }
  .show-sound:focus-visible { outline: 2px solid #F9A8D4; outline-offset: 2px; }
  .show-sound .wave { display: none; }
  .show-sound[aria-pressed="true"] .wave { display: inline; }
  .show-sound[aria-pressed="true"] .mute { display: none; }

  /* -- "true clinical synthesis" points back up to the evidence cycle -- */
  .path-link { color: #9F1239; font-weight: 600; text-decoration: none; background: linear-gradient(90deg, rgba(159,18,57,0.55) 50%, transparent 0) repeat-x 0 100% / 6px 1.5px; padding-bottom: 1px; }
  .path-link:hover { color: #BE123C; background-image: linear-gradient(rgba(159,18,57,0.7), rgba(159,18,57,0.7)); background-size: 100% 1.5px; }
  .about-cycle[id] { scroll-margin-top: 100px; }
  .about-cycle:target img { animation: cycle-flash 2.6s ease-out; border-radius: 16px; }
  @keyframes cycle-flash { 0%, 30% { box-shadow: 0 0 0 4px rgba(244,114,182,0.55); } 100% { box-shadow: 0 0 0 4px rgba(244,114,182,0); } }

  /* -- "simple to use.": the dryer develops it by itself, so no drag hint -- */
  .ink-auto.ink-ready { cursor: default; }
  .ink-auto.ink-ready .ink-vis { background: none; }
  .path-big .ink-auto .ink-ch { font-style: italic; }
  .path-big .ink-done.ink-auto .ink-ch { text-shadow: 0 0 16px rgba(244,114,182,0.3); }

  /* Show video: a smaller clip under the Roots text, not a full-width banner */
  .path-photo.show-video { max-width: 400px; }

  /* -- Phones: "Learn more" lives outside the scrolling link strip (iPhone Safari clips it there) -- */
  nav .nav-more-phone { display: none; }
  @media (max-width: 960px) {
    nav .nav-links a.nav-more { display: none; }
    nav .nav-more-phone {
      display: block; position: absolute; top: 0.62rem; right: 1rem; z-index: 2;
      font-size: 0.76rem; font-weight: 600; color: var(--color-hero-text); text-decoration: none; white-space: nowrap;
      padding: 0.28rem 0.75rem; border-radius: 100px; background: rgba(96,165,250,0.16); border: 1px solid rgba(147,197,253,0.45);
    }
    nav .nav-more-phone:hover, nav .nav-more-phone.active { background: rgba(96,165,250,0.3); color: #fff; }
  }

  /* -- Phones: hold the dryer without the page scrolling or a callout popping up; sideways swipes on the words dry them -- */
  .dryer-park { -webkit-touch-callout: none; }
  .keys-list { touch-action: pan-y; }

  /* -- Hero: the hair dryer blows the hair in the profile photo -- */
  /* The clip is cut from the photo's own frame; these offsets put it exactly over the
     visible part of the image (object-position: center 20%, scale 1.1). */
  .hero-portrait { position: relative; overflow: visible; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .portrait-clip { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
  .hero-portrait .hair-video {
    position: absolute; left: -0.05%; top: -4.75%; width: 100.1%; height: 108.9%;
    object-fit: fill; display: block; pointer-events: none;
    opacity: 0; transition: opacity 0.15s;
  }
  .hero-portrait.is-blowing .hair-video { opacity: 1; }

  /* -- Hint on the photo: the dryer's air lines, with a label on hover or focus -- */
  .hair-hint {
    position: absolute; left: 2%; bottom: 2%; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: help;
    background: #0F172A; border: 1.5px solid rgba(245,158,11,0.55); box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    outline-offset: 3px;
  }
  .hair-hint:focus-visible { outline: 2px solid #F9A8D4; }
  .hair-hint::after {
    content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap; pointer-events: none;
    padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; color: #1E1B4B; background: #FDE68A;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3); opacity: 0; transform: translateY(-3px); transition: opacity 0.15s, transform 0.15s;
  }
  .hair-hint:hover::after, .hair-hint:focus::after { opacity: 1; transform: none; }
  @media (hover: none) { .hair-hint::after { content: attr(data-tip-touch); } }
  /* On phones the stand is a screen away from the photo, so the bubble keeps to the words */
  @media (max-width: 768px) { .bubble-more { display: none; } .hair-hint { width: 26px; height: 26px; left: 0; bottom: 0; } .hair-hint svg { width: 15px; } }

  /* -- Visual reasoning lens (Learn more 02 · 04, and The craft on the home page) -- */
  /* A lens wanders over a faint knowledge graph, then settles on a working set:
     the hypothesis path lights up, an inconsistency and an unstated assumption show. */
  .vr-visual { border-radius: 10px; background: #fff; border: 1px dashed #bfd4f2; padding: 0.6rem; }
  .lens-viz { display: block; width: 100%; height: auto; }
  .lens-viz .g-e { stroke: #E2E8F0; stroke-width: 1.3; }
  .lens-viz .g-n { fill: #CBD5E1; }
  .lens-viz .lens-bg { fill: #F8FAFF; }
  .lens-viz .c-e { stroke: #93C5FD; stroke-width: 1.5; }
  .lens-viz .c-e-ws { stroke: #60A5FA; stroke-width: 2; }
  .lens-viz .c-path { stroke: #7C3AED; stroke-width: 4; stroke-linecap: round; }
  .lens-viz .c-assume { stroke: #D97706; stroke-width: 2.5; stroke-dasharray: 5 4; }
  .lens-viz .c-n { fill: #60A5FA; }
  .lens-viz .c-ws { fill: #2563EB; }
  .lens-viz .c-hyp { fill: #7C3AED; stroke: #fff; stroke-width: 2; }
  .lens-viz .c-bad { fill: #E11D48; stroke: #FECDD3; stroke-width: 4; }
  .lens-viz .lens-ring { fill: none; stroke: #1E293B; stroke-width: 3; }
  .lens-viz text { font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 600; }
  .lens-viz .lens-call text { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
  .lens-viz .t-bad { fill: #E11D48; }
  .lens-viz .t-assume { fill: #B45309; }
  .lens-viz .t-phase { fill: #94A3B8; font-style: italic; font-weight: 500; }
  .lens-viz .t-focus { fill: #7C3AED; font-weight: 700; font-style: normal; }
  @media (max-width: 768px) {
    .vr-visual { padding: 0.4rem; }
    .lens-viz text { font-size: 19px; }
    .lens-viz .t-assume { font-size: 18px; }
    .lens-viz .t-bad { font-size: 16px; }
  }
  .path-photo.craft-lens { max-width: 520px; }
  .craft-lens figcaption { text-align: left; font-style: normal; font-size: 0.8rem; color: var(--color-text-muted); }
  .craft-lens figcaption a { color: var(--color-accent); text-decoration: none; font-weight: 500; white-space: nowrap; }

  /* ===== Learn more: problem visuals, loop diagram, approach cards ===== */
  /* -- 01 The Problem: picture-led retrieval card, and one query traced through every failure -- */
  .problem-grid { grid-template-columns: repeat(6, 1fr); }
  .problem-grid > .problem-card { grid-column: span 2; min-width: 0; }
  .problem-grid > .problem-card.problem-feature,
  .problem-grid > .problem-card:last-child { grid-column: 1 / -1; }

  .problem-feature { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center; }
  .problem-card p.pf-lead { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: #9F1239; }
  .mm .who { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }
  .mm-asked .who { color: #0F766E; }
  .mm-got .who { color: #BE123C; }
  .pc-link { display: inline-block; margin-top: 0.9rem; font-size: 0.82rem; font-weight: 500; color: var(--color-accent); text-decoration: none; }
  .drift-box { position: relative; }
  .drift-stamp { position: absolute; right: 1rem; bottom: 0.9rem; font-size: 0.78rem; }
  @media (max-width: 480px) { .drift-box .drift-stamp { position: static; display: table; margin: 0.5rem 0 0 auto; } }
  .ai-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; font-size: 0.85rem; color: var(--color-text); }
  .ai-answer code { white-space: nowrap; }
  /* 05: the rule as a tree, with the shortcut that skips it */
  .tree-hint { display: none; }
  .tree-wrap { margin-top: 1.25rem; padding: 1rem; border-radius: 10px; background: #fff; border: 1px dashed #CBD5E1; overflow-x: auto; }
  .logic-tree { display: block; width: 100%; min-width: 680px; height: auto; font-family: var(--font-body); }
  .logic-tree .node rect { fill: #F8FAFC; stroke: #CBD5E1; stroke-width: 1.5; }
  .logic-tree .t-op { font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; fill: #6D28D9; letter-spacing: 0.04em; }
  .logic-tree .t-op-light { font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; fill: #C4B5FD; letter-spacing: 0.04em; }
  .logic-tree .t-then { font-size: 16px; font-weight: 700; fill: #fff; }
  .logic-tree .t-node { font-size: 15px; font-weight: 600; fill: #1F2937; }
  .logic-tree .t-node.t-small { font-size: 13px; }
  .logic-tree .t-leaf { font-size: 13.5px; font-weight: 600; fill: #1F2937; }
  .logic-tree .chip text { font-size: 12.5px; font-weight: 700; }
  .logic-tree .chip.ok rect { fill: #CCFBF1; } .logic-tree .chip.ok text { fill: #0F766E; }
  .logic-tree .chip.bad rect { fill: #FFE4E6; } .logic-tree .chip.bad text { fill: #BE123C; }
  .logic-tree .chip.na rect { fill: #F1F5F9; } .logic-tree .chip.na text { fill: #64748B; font-weight: 600; }
  .logic-tree .t-verdict { font-family: var(--font-display); font-size: 19px; font-weight: 700; fill: #0F766E; }
  .logic-tree .t-verdict-sub { font-size: 13.5px; fill: #475569; }
  .logic-tree .t-sc-title { font-family: Inter, system-ui, sans-serif; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; fill: #BE123C; }
  .logic-tree .t-shortcut { font-family: var(--font-display); font-style: italic; font-size: 16px; font-weight: 600; fill: #1E1B4B; }
  .tree-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.6rem; font-size: 0.74rem !important; }
  .pc-link-wide { grid-column: 1 / -1; }
  .tree-legend .lg-ok { color: #0F766E; font-weight: 700; }
  .tree-legend .lg-bad { color: #BE123C; font-weight: 700; }
  .tree-legend .lg-sc { color: #BE123C; }
  .tree-legend .lg-sc::before { content: ""; display: inline-block; width: 22px; margin-right: 0.4rem; vertical-align: middle; border-top: 2.5px dashed #BE123C; }
  .problem-feature .pf-text p { font-size: 0.95rem; }

  .mismatch { display: grid; grid-template-columns: minmax(0, 190px) auto minmax(0, 190px); gap: 1rem 1.25rem; align-items: center; justify-content: start; }
  .mm { position: relative; margin: 0; }
  .mm img {
    display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.12); background: #E2E8F0;
  }
  .mm-tag {
    display: inline-block; margin-bottom: 0.6rem; padding: 0.25rem 0.6rem; border-radius: 999px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  }
  .mm-asked .mm-tag { background: #0F766E; }
  .mm-got .mm-tag { background: #BE123C; }
  .mm-got img { outline: 3px solid #FDA4AF; outline-offset: 3px; }
  .mm-x {
    position: absolute; top: 1.4rem; right: -0.6rem; z-index: 1; width: 2rem; height: 2rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 700; color: #fff;
    background: #BE123C; box-shadow: 0 4px 12px rgba(190,18,60,0.35);
  }
  .mm figcaption { margin-top: 0.75rem; font-size: 0.8rem; line-height: 1.45; color: var(--color-text-muted); }
  .mm figcaption strong { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; color: var(--color-text); margin-bottom: 0.15rem; }
  .mm-got figcaption strong { color: #9F1239; }

  .mismatch { align-items: start; }
  .mm-link { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; max-width: 7.5rem; }
  .mm-words { font-size: 0.78rem; color: var(--color-text-muted); white-space: nowrap; }
  .mm-words b { font-weight: 700; color: var(--color-text); padding: 0 0.15em; background: linear-gradient(transparent 60%, rgba(96,165,250,0.35) 0); }
  .mm-arrow { font-size: 1.6rem; line-height: 1; color: #94A3B8; }
  .mm-verdict { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 0.95rem; line-height: 1.25; color: #9F1239; }
  .mismatch .mm-credit { grid-column: 1 / -1; margin-top: 0.25rem; font-size: 0.7rem; font-style: italic; color: #94A3B8; text-align: right; }

  /* -- One query, traced through every failure -- */
  .trace-intro { margin-bottom: 2rem; }
  .trace-intro strong { color: #0F766E; }
  .problem-card { display: flex; flex-direction: column; }
  .problem-card.problem-feature { display: grid; }
  .trace { padding-top: 0.2rem; }
  .problem-grid > .problem-card.pc-drift { grid-column: 1 / span 3; grid-row: span 2; }
  .problem-grid > .problem-card.pc-side { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: center; }
  .pc-side .trace { padding-top: 0; }
  .pc-side .trace-box { margin-top: 0; }
  .pc-drift .drift { gap: 0.35rem; }
  .pc-drift .drift li span { padding: 0.3rem 0.75rem; font-size: 0.82rem; }
  .trace-box { margin-top: 1.1rem; padding: 0.9rem 1rem; border-radius: 10px; background: #fff; border: 1px dashed #CBD5E1; font-size: 0.8rem; line-height: 1.5; color: var(--color-text-muted); }
  .trace-label { display: block; margin-bottom: 0.55rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #0F766E; }
  .problem-card .trace-box p { font-size: 0.78rem; line-height: 1.5; }

  /* 02 drift: each step plausible, the last one a different diagnosis */
  .drift { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .drift li { padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 600; font-size: 0.76rem; }
  .drift li + li::before { content: "\2193"; display: block; margin: -0.15rem 0 0.15rem 0.2rem; font-weight: 400; color: #94A3B8; }
  .drift li + li { background: none !important; padding: 0; }
  .drift li span { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; }
  .drift li:nth-child(1) span { background: #CCFBF1; color: #0F766E; }
  .drift li:nth-child(2) span { background: #FEF3C7; color: #92400E; }
  .drift li:nth-child(3) span { background: #FFEDD5; color: #9A3412; }
  .drift li:nth-child(4) span { background: #FFE4E6; color: #9F1239; }
  .drift li:first-child { padding: 0; }

  /* 03 hallucination: a confident, well-formed, nonexistent code */
  .stamp { display: inline-block; padding: 0.15rem 0.5rem; border: 2px solid #BE123C; border-radius: 4px; color: #BE123C; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-4deg); }

  /* 04 explainability gap: a paragraph to read vs. what experts need to do */
  .gap-row b { display: block; margin: 0.15rem 0 0.3rem; font-size: 0.7rem; font-weight: 700; color: var(--color-text); }
  .gap-row .chips + b { margin-top: 0.6rem; }
  .chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .chips span { padding: 0.12rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
  .chips.have span { background: #E2E8F0; color: #475569; }
  .chips.need span { background: #EDE9FE; color: #5B21B6; }

  @media (max-width: 960px) {
    .problem-feature { grid-template-columns: 1fr; gap: 1.5rem; }
    .problem-grid > .problem-card { grid-column: 1 / -1; }
    .problem-grid > .problem-card.pc-drift { grid-column: 1 / -1; grid-row: auto; }
    .problem-grid > .problem-card.pc-side { grid-column: 1 / -1; }
  }
  @media (min-width: 769px) and (max-width: 960px) {
    .pc-drift .drift { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 0; }
    .pc-drift .drift li { display: flex; flex-direction: column; }
    .pc-drift .drift li + li { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
    .pc-drift .drift li + li::before { content: "\2192"; margin: 0.3rem 0.5rem 0; }
  }
  @media (max-width: 768px) {
    .problem-card p.tree-hint { display: block; margin-top: 0.9rem; font-size: 0.72rem; color: #94A3B8; }
    .tree-wrap { margin-top: 0.4rem; }
    .problem-grid { grid-template-columns: 1fr; }
    .problem-grid > .problem-card.pc-side { grid-template-columns: 1fr; gap: 0.9rem; }
    .problem-feature { padding: 1.5rem 1.25rem; }
    .mismatch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 0.85rem; max-width: 400px; }
    .mm-link { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; max-width: none; gap: 0.6rem; }
    .mm-arrow { transform: rotate(0); font-size: 1.2rem; }
    .mm figcaption strong { font-size: 1rem; }
    .mm-tag { font-size: 0.6rem; }
  }

  /* -- 02 Approach: loop diagram with a flat knowledge stack -- */
  .arch-loop { padding: 2.25rem 2rem 1.5rem; }
  .loop-grid {
    display: grid; align-items: center; gap: 1.1rem 0;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.25fr);
    grid-template-areas: "human a1 llm a2 stack" "human a4 reason a3 stack";
  }
  .arch-loop .arch-node { width: auto; min-height: 84px; }
  .lp-human { grid-area: human; align-self: stretch; }
  .lp-llm { grid-area: llm; } .lp-reason { grid-area: reason; } .lp-stack { grid-area: stack; }
  .lp-a1 { grid-area: a1; } .lp-a2 { grid-area: a2; } .lp-a3 { grid-area: a3; } .lp-a4 { grid-area: a4; }
  .arch-loop .arch-arrow { font-size: 1.6rem; line-height: 1; color: #94A3B8; padding: 0 0.85rem; }
  .kstack { display: flex; flex-direction: column; padding-right: 1.5rem; }
  .kstack-title { font-size: 0.8rem; font-weight: 600; color: #6EE7B7; margin: 0 0 0.6rem 1.5rem; }
  .kcard {
    position: relative; display: flex; flex-direction: column; gap: 0.1rem;
    padding: 0.55rem 0.85rem; border-radius: 8px; line-height: 1.3;
    background: #123B35; border: 1px solid rgba(110,231,183,0.45);
    box-shadow: 0 -6px 14px rgba(2,6,23,0.45);
  }
  .kcard b { font-size: 0.78rem; font-weight: 600; color: #A7F3D0; }
  .kcard span { font-size: 0.68rem; font-style: italic; color: #6EE7B7; opacity: 0.85; }
  .kcard + .kcard { margin-top: -0.35rem; }
  .kc-3 { margin-left: 1.5rem; margin-right: -1.5rem; z-index: 1; background: #0F302B; }
  .kc-2 { margin-left: 0.75rem; margin-right: -0.75rem; z-index: 2; background: #123B35; }
  .kc-1 { z-index: 3; background: #15463F; }
  .loop-note { margin: 1.4rem 0 0; text-align: center; font-size: 0.78rem; color: #94A3B8; }
  @media (max-width: 768px) {
    .arch-loop { padding: 1.75rem 1.25rem 1.25rem; }
    .loop-grid {
      grid-template-columns: minmax(0, 1fr); gap: 0.2rem; justify-items: center;
      grid-template-areas: "human" "a1" "llm" "a2" "stack" "a3" "reason";
    }
    .arch-loop .arch-node { width: 100%; max-width: 300px; min-height: 0; }
    .arch-loop .arch-arrow { transform: rotate(90deg); padding: 0.3rem 0; font-size: 1.3rem; }
    .lp-a4 { display: none; }
    .kstack { width: 100%; max-width: 300px; padding-right: 1.5rem; }
  }

  /* -- 02 Approach cards: 01-03 in a row, 04 full width with the lens -- */
  .approach-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .approach-step.vr-step { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0 2rem; align-items: center; }
  .tension-lead { margin-bottom: 0.3rem; font-style: italic; font-weight: 500; color: var(--color-text) !important; }
  .tension { margin: 0 0 0.6rem; padding: 0; list-style: none; font-size: 0.88rem; line-height: 1.55; color: var(--color-text-muted); }
  .tension li { position: relative; padding-left: 1.1rem; }
  .tension li::before { content: "\26A0"; position: absolute; left: 0; top: 0; font-size: 0.75rem; color: #D97706; }
  .eval-list li::before { content: "\25B8"; font-size: 0.9rem; top: -0.05rem; color: var(--color-accent); }
  .eval-list strong { color: var(--color-text); font-weight: 600; }
  .approach-step p strong { color: var(--color-text); font-weight: 600; }
  @media (max-width: 960px) {
    .approach-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .approach-flow > .approach-step:nth-child(3) { grid-column: 1 / -1; }
    .approach-step.vr-step { grid-template-columns: minmax(0, 1fr); }
    .vr-step .vr-visual { margin-top: 1rem; }
  }
  @media (max-width: 768px) {
    .approach-flow { grid-template-columns: minmax(0, 1fr); }
  }
