  :root {
    --bg: #131110;
    --surface: #1c1917;
    --surface2: #24201c;
    --border: #332d26;
    --border-soft: #251f1b;
    --accent: #5b9aff;
    --accent2: #e0bd94;
    --accent3: #6dc5cc;
    --accent4: #e08b7d;
    --accent5: #b8a0f0;
    --accent6: #5b9aff;
    --text: #efe9e1;
    --muted: #9a8f80;
    --muted2: #6b6254;
    --tag-bg: #221e1a;
    --gutter: clamp(32px, 7vw, 140px);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
  }

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

  a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
  a:hover { color: var(--accent2); }

  /* ------------ NAV ------------ */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--gutter);
    background: rgba(14,15,17,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }

  .nav-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
  }
  .nav-brand em { font-style: italic; color: var(--accent); }

  .nav-links {
    display: flex;
    gap: 28px;
  }
  .nav-links a {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-links a.nav-cta {
    color: var(--accent);
    border: 1px solid rgba(91,154,255,0.45);
    border-radius: 999px;
    padding: 5px 13px;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .nav-links a.nav-cta:hover { background: rgba(91,154,255,0.10); border-color: var(--accent); }
  .nav-links a.nav-cta.active::after { display: none; }

  /* ------------ HERO ------------ */
  header.hero {
    padding: 74px var(--gutter) 56px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
  }

  header.hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(91,154,255,0.10) 0%, transparent 70%);
    pointer-events: none;
  }
  header.hero::after {
    content: '';
    position: absolute;
    bottom: -200px; left: -200px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(214,180,138,0.06) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-inner {
    position: relative;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
  }
  .hero-text, .hero-left, .hero-right { min-width: 0; }
  .hero-right {
    border-left: 1px solid var(--border);
    padding-left: clamp(28px, 3vw, 48px);
  }
  .hero-right h2 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); margin-bottom: 14px; }
  .hero-right .section-intro { margin-bottom: 24px; font-size: 0.9rem; }
  .about-aside-stacked {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    margin-top: 26px;
    padding-top: 24px;
  }
  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-right { border-left: none; padding-left: 0; }
  }

  .hero-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-label::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--accent);
  }

  h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.1rem, 3vw, 3.35rem);
    font-weight: 400;
    line-height: 1.07;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
  }
  h1 em {
    font-style: italic;
    color: var(--accent);
  }

  .hero-tagline {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--text);
    max-width: 720px;
    margin-bottom: 18px;
    font-weight: 300;
    line-height: 1.55;
  }

  .hero-sub {
    color: var(--text);
    opacity: 0.86;
    max-width: 620px;
    font-size: 0.95rem;
    margin-bottom: 26px;
  }

  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 28px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
  .meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .meta-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .meta-value {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    color: var(--text);
  }
  .meta-value a { color: var(--text); border-bottom: 1px dashed var(--border); }
  .meta-value a:hover { color: var(--accent); border-color: var(--accent); }

  /* ------------ HIGHLIGHTS ------------ */
  section.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat {
    background: var(--bg);
    padding: 36px 40px;
    transition: background 0.2s;
  }
  .stat:hover { background: var(--surface); }
  .stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2.6rem;
    font-style: italic;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
  }
  .stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
  }

  /* ------------ SECTION HEADERS ------------ */
  section.block {
    padding: 96px var(--gutter);
    border-bottom: 1px solid var(--border);
    position: relative;
  }

  .section-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section-eyebrow::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--accent);
  }

  h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 18px;
    max-width: 800px;
  }
  h2 em { font-style: italic; color: var(--accent); }

  .section-intro {
    color: var(--muted);
    max-width: 700px;
    font-size: 0.95rem;
    margin-bottom: 56px;
  }

  /* ------------ ABOUT ------------ */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
  }
  .about-body p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.7;
  }
  .about-body p:last-child { margin-bottom: 0; }
  .about-body strong { color: var(--accent2); font-weight: 500; }

  .about-aside {
    border-left: 1px solid var(--border);
    padding-left: 40px;
  }
  .aside-block { margin-bottom: 36px; }
  .aside-block:last-child { margin-bottom: 0; }
  .aside-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
  }
  .aside-content {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .aside-content ul { list-style: none; }
  .aside-content li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-soft);
    color: var(--muted);
    font-size: 0.88rem;
  }
  .aside-content li:last-child { border-bottom: none; }
  .aside-content li strong { color: var(--text); font-weight: 400; }

  /* ------------ PROJECTS ------------ */
  .projects-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
  }
  .project-group-head { background: var(--bg); padding: 64px var(--gutter) 10px; }
  .projects-list > .project-group-head:first-child { padding-top: 22px; }
  .project-group-eyebrow { font-family:'DM Mono',monospace; font-size:11px; letter-spacing:0.22em; text-transform:uppercase; color:var(--accent); display:block; margin-bottom:10px; }
  .project-group-title { font-family:'DM Serif Display',Georgia,serif; font-weight:400; font-size:clamp(1.7rem,3.4vw,2.4rem); color:var(--text); margin:0 0 10px; line-height:1.12; }
  .project-group-blurb { color:var(--muted); font-size:1rem; line-height:1.55; margin:0; max-width:62ch; }
  @media (max-width: 880px) { .project-group-head { padding-left:28px; padding-right:28px; padding-top:48px; } }

  .project {
    background: var(--bg);
    padding: 56px var(--gutter);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    transition: background 0.2s;
  }
  .project:hover { background: var(--surface); }

  .project-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .project-index {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted);
  }

  .project-chip {
    display: inline-block;
    width: fit-content;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid;
  }
  .chip-platform     { color: var(--text);    border-color: var(--border); }
  .chip-data         { color: var(--text);    border-color: var(--border); }
  .chip-ai           { color: var(--text);    border-color: var(--border); }
  .chip-integrations { color: var(--accent2); border-color: rgba(214,180,138,0.4); }
  .chip-analytics    { color: var(--text);    border-color: var(--border); }

  .project-status {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .project-status::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
  }
  .project-status.shipped::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
  .project-status.live::before { background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }

  .project-meta {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted2);
    line-height: 1.8;
    margin-top: 8px;
  }
  .project-meta div { color: var(--muted); }
  .project-meta strong { color: var(--text); font-weight: 400; }

  .project-body { min-width: 0; }

  .project-name {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 6px;
  }
  .project-name em { font-style: italic; color: var(--accent); }

  .project-acronym {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 18px;
  }

  .project-tagline {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 22px;
    line-height: 1.55;
    font-weight: 400;
  }

  .project-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .project-desc strong { color: var(--text); font-weight: 400; }

  .project-highlights {
    list-style: none;
    margin-bottom: 28px;
  }
  .project-highlights li {
    display: block;
    position: relative;
    padding: 10px 0 10px 22px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text);
  }
  .project-highlights li:last-child { border-bottom: 1px solid var(--border-soft); }
  .project-highlights li::before {
    content: '›';
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1.4;
    position: absolute;
    left: 0;
    top: 10px;
  }
  .project-highlights strong { color: var(--accent2); font-weight: 500; }

  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 2px;
    background: var(--tag-bg);
    border: 1px solid var(--border);
    color: var(--text);
    letter-spacing: 0.04em;
  }

  /* ------------ SKILLS ------------ */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    margin: 0 var(--gutter);
  }

  .skill {
    background: var(--bg);
    padding: 32px 40px;
    transition: background 0.2s;
  }
  .skill:hover { background: var(--surface); }

  .skill-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
  }
  .skill-num {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted);
    line-height: 1;
    align-self: flex-start;
    padding-top: 4px;
  }
  .skill-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    line-height: 1.2;
  }
  .skill-blurb {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 14px;
  }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
  .skill-tags .tag { font-size: 9px; padding: 3px 8px; }

  /* ------------ EXPERIENCE ------------ */
  .timeline {
    max-width: 900px;
    margin-top: 16px;
  }
  .role {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 56px;
    padding: 36px 0;
    border-top: 1px solid var(--border);
  }
  .role:last-child { border-bottom: 1px solid var(--border); }

  .role-date {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--muted);
    line-height: 1.6;
  }
  .role-date strong {
    display: block;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: 0.18em;
  }

  .role-body { min-width: 0; }
  .role-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .role-company {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
  }
  .role-summary {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .role-bullets {
    list-style: none;
  }
  .role-bullets li {
    display: block;
    position: relative;
    padding: 8px 0 8px 22px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
  }
  .role-bullets li + li { border-top: 1px solid var(--border-soft); }
  .role-bullets li::before {
    content: '—';
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 8px;
  }
  .role-bullets li.titled { padding-top: 14px; padding-bottom: 14px; }
  .role-bullets li.titled::before { top: 18px; }
  .role-bullet-title {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 6px;
  }
  .role-bullet-body { margin: 0; }
  .role-bullet-body code {
    font-family: 'DM Mono', monospace;
    font-size: 0.82em;
    background: var(--surface2);
    padding: 1px 6px;
    border-radius: 2px;
    color: var(--text);
  }
  .role-bullet-body strong { color: var(--text); font-weight: 400; }

  /* ------------ MORE / FUTURE ------------ */
  .more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    margin: 0 var(--gutter);
  }
  .more-card {
    background: var(--bg);
    padding: 32px 36px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px dashed transparent;
    transition: all 0.2s;
  }
  .more-card:hover { background: var(--surface); }
  .more-card.placeholder {
    border: 1px dashed var(--border);
    background: transparent;
  }
  .more-card.placeholder .more-label {
    color: var(--muted2);
  }
  .more-card.placeholder .more-title {
    color: var(--muted);
    font-style: italic;
  }
  .more-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
  }
  .more-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .more-desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .more-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .more-tags .tag { font-size: 9px; padding: 3px 8px; }

  /* ------------ LEARNING ------------ */

  /* ------------ CONTACT ------------ */
  section.contact {
    padding: 100px var(--gutter);
    text-align: left;
    position: relative;
    overflow: hidden;
  }
  section.contact::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(91,154,255,0.06) 0%, transparent 70%);
    pointer-events: none;
  }
  .contact-inner { position: relative; max-width: 900px; }
  .contact h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
  .contact-lead {
    color: var(--muted);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 40px;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
  }
  .contact-card {
    border: 1px solid var(--border);
    padding: 24px 28px;
    border-radius: 2px;
    transition: all 0.2s;
  }
  .contact-card:hover { border-color: var(--accent); background: var(--surface); }
  .contact-card .meta-label { margin-bottom: 8px; }
  .contact-card-value {
    font-family: 'DM Mono', monospace;
    font-size: 0.95rem;
    color: var(--text);
  }
  .contact-card-value a { color: var(--text); }
  .contact-card-value a:hover { color: var(--accent); }

  /* ------------ FOOTER ------------ */
  footer {
    border-top: 1px solid var(--border);
    padding: 32px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-note {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.1em;
  }
  .footer-note em { color: var(--accent); font-style: normal; }

  /* ------------ ANIMATION / INTERACTIVE ------------ */
  body.is-loaded .anim-init {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  body.is-loaded .anim-init.in {
    opacity: 1;
    transform: translateY(0);
  }

  /* Slight horizontal slide for hero label and h1 italic */
  body.is-loaded .hero-label.anim-init { transform: translateX(-16px); opacity: 0; }
  body.is-loaded .hero-label.anim-init.in { transform: translateX(0); opacity: 1; }

  /* Scroll cue */
  .scroll-cue {
    position: absolute;
    bottom: 28px;
    left: var(--gutter);
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
    z-index: 2;
  }
  .scroll-cue-line {
    display: inline-block;
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--accent) 0%, var(--accent) 60%, transparent 100%);
    transform-origin: top;
    animation: scrollLine 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
  @keyframes scrollLine {
    0%   { transform: scaleY(0.3); opacity: 0.3; }
    50%  { transform: scaleY(1);   opacity: 1; }
    100% { transform: scaleY(0.3); opacity: 0.3; transform-origin: bottom; }
  }

  /* Active nav indicator */
  .nav-links a { position: relative; transition: color 0.2s ease; }
  .nav-links a.active { color: var(--accent); }
  .nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--accent);
    animation: navUnderline 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes navUnderline {
    from { transform: scaleX(0); transform-origin: left; }
    to   { transform: scaleX(1); transform-origin: left; }
  }

  /* Stat hover lift */
  .stat { cursor: default; }
  .stat:hover .stat-num { transform: translateY(-2px); }
  .stat-num { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

  /* Project lift on hover */
  .project { transition: background 0.25s ease; }
  .project-name { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
  .project:hover .project-name { transform: translateX(6px); }

  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    body.is-loaded .anim-init,
    body.is-loaded .anim-init.in {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    .scroll-cue-line { animation: none; }
    .project:hover .project-name,
    .stat:hover .stat-num { transform: none; }
    html { scroll-behavior: auto; }
  }

  /* ------------ GUIDE: forced intro + chat assistant ------------ */
  .guide-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 15, 17, 0.65);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
  }
  .guide-overlay.show { opacity: 1; visibility: visible; }
  @media (min-height: 640px) {
    .guide-overlay { align-items: center; }
  }

  .guide-modal {
    width: 100%;
    max-width: 600px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 44px 40px 32px;
    position: relative;
    transform: translateY(24px);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  }
  .guide-overlay.show .guide-modal { transform: translateY(0); }

  .guide-skip {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    transition: color 0.2s;
  }
  .guide-skip:hover { color: var(--accent); }

  .guide-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .guide-eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
    animation: guidePulse 2s ease-in-out infinite;
  }
  @keyframes guidePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.45; }
  }

  .guide-body {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.45;
    color: var(--text);
    font-weight: 400;
    min-height: 110px;
    margin-bottom: 28px;
    transition: opacity 0.25s ease;
  }
  .guide-body.fading { opacity: 0; }
  .guide-body em     { color: var(--accent); font-style: italic; }
  .guide-body strong { color: var(--accent2); font-weight: 500; }

  .guide-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
  }
  .guide-progress-dot {
    width: 28px;
    height: 2px;
    background: var(--border);
    transition: background 0.35s ease;
  }
  .guide-progress-dot.done   { background: var(--accent2); }
  .guide-progress-dot.active { background: var(--accent); }

  .guide-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
  }
  .guide-chip {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 2px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
  }
  .guide-chip:hover { border-color: var(--accent); color: var(--accent); }

  .guide-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }
  .guide-btn {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
  }
  .guide-btn:hover { background: var(--accent2); border-color: var(--accent2); }
  .guide-btn-secondary {
    background: transparent;
    color: var(--muted);
    border-color: var(--border);
  }
  .guide-btn-secondary:hover { color: var(--text); border-color: var(--text); }
  .guide-btn-secondary[disabled] { visibility: hidden; }

  .guide-tour-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent);
    cursor: pointer;
    border-bottom: 1px dashed var(--accent);
  }
  .guide-tour-link:hover { color: var(--accent2); border-color: var(--accent2); }

  /* Floating trigger */
  .guide-trigger {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    transition: all 0.25s;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    box-shadow: 0 10px 32px rgba(0,0,0,0.5);
  }
  .guide-trigger.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .guide-trigger:hover { border-color: var(--accent); color: var(--accent); }
  .guide-trigger-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: guidePulse 2s ease-in-out infinite;
  }

  /* Chat panel */
  .guide-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 160;
    width: 440px;
    max-width: calc(100vw - 48px);
    max-height: min(640px, calc(100vh - 64px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    box-shadow: 0 18px 56px rgba(0,0,0,0.65);
  }
  .guide-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .guide-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .guide-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
  }
  .guide-panel-title::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
  }
  .guide-panel-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 2px 8px;
    line-height: 1;
    transition: color 0.2s;
  }
  .guide-panel-close:hover { color: var(--text); }

  .guide-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .guide-messages::-webkit-scrollbar { width: 6px; }
  .guide-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

  .guide-msg {
    font-size: 0.86rem;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 4px;
    max-width: 90%;
    animation: msgIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .guide-msg-assistant {
    background: var(--surface2);
    border-left: 2px solid var(--accent);
    border-radius: 0 4px 4px 0;
    color: var(--text);
    align-self: flex-start;
  }
  .guide-msg-assistant strong { color: var(--accent2); font-weight: 500; }
  .guide-msg-assistant em     { color: var(--accent); font-style: italic; }
  .guide-msg-user {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    align-self: flex-end;
    font-family: 'DM Mono', monospace;
    font-size: 0.77rem;
    letter-spacing: 0.02em;
  }
  .guide-msg-typing {
    background: transparent;
    color: var(--muted);
    font-style: italic;
    padding: 4px 0 4px 16px;
    border-left: 2px solid var(--accent);
    border-radius: 0;
  }
  .guide-msg-typing::after {
    content: '';
    display: inline-block;
    width: 14px;
    text-align: left;
    animation: typingDots 1.2s steps(3, end) infinite;
  }
  @keyframes typingDots {
    0%   { content: '.'; }
    33%  { content: '..'; }
    66%  { content: '...'; }
    100% { content: '.'; }
  }

  .guide-panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 20px 14px;
    border-top: 1px dashed var(--border-soft);
  }
  .guide-panel-chip {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s;
  }
  .guide-panel-chip:hover { border-color: var(--accent); color: var(--accent); }

  .guide-panel-input {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .guide-panel-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    padding: 8px 4px;
    outline: none;
    letter-spacing: 0.02em;
  }
  .guide-panel-input input::placeholder { color: var(--muted2); }
  .guide-panel-input button {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 2px;
    padding: 8px 14px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
  }
  .guide-panel-input button:hover { background: var(--accent2); }

  /* Section highlight pulse when guide scrolls to a target */
  .guide-highlight {
    animation: guideHighlight 2.4s ease-out;
  }
  @keyframes guideHighlight {
    0%   { box-shadow: inset 0 0 0 0 rgba(91, 154, 255, 0); }
    25%  { box-shadow: inset 0 0 0 2px rgba(91, 154, 255, 0.25); }
    100% { box-shadow: inset 0 0 0 0 rgba(91, 154, 255, 0); }
  }

  @media (max-width: 600px) {
    .guide-modal      { padding: 36px 22px 22px; }
    .guide-body       { font-size: 1.05rem; min-height: 90px; }
    .guide-panel      { right: 12px; bottom: 12px; left: 12px; width: auto; max-height: 78vh; }
    .guide-trigger    { right: 12px; bottom: 12px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .guide-trigger-dot, .guide-eyebrow::before { animation: none; }
    .guide-highlight { animation: none; }
  }

  /* ===== F1 mini-dashboard demo ===== */
  .f1demo {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .f1demo-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  .f1demo-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--text);
  }
  .f1demo-title code {
    font-family: 'DM Mono', monospace;
    font-size: 0.85em;
    color: var(--accent);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 2px;
  }
  .f1demo-sub {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 4px;
    max-width: 520px;
  }
  .f1demo-stamp {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 5px 10px;
    background: var(--surface);
  }
  .f1demo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 0.5px solid var(--border);
    margin-bottom: 24px;
  }
  .f1demo-stat {
    background: var(--bg);
    padding: 16px 18px;
  }
  .f1demo-stat-num {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 28px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
  }
  .f1demo-stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.4;
  }
  .f1demo-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .f1demo-col-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 10px;
  }
  .f1demo-after {
    color: var(--muted);
    letter-spacing: 0.12em;
    margin-left: 4px;
  }
  .f1demo-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
  }
  .f1demo-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 9px;
  }
  .f1demo-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
  }
  .f1demo-table tr:last-child td { border-bottom: none; }
  .f1demo-table td.pos { color: var(--muted); width: 36px; }
  .f1demo-table td.name { font-family: 'DM Sans', sans-serif; }
  .f1demo-table td.pts { text-align: right; color: var(--accent2); width: 50px; }
  .f1demo-table td.wins { text-align: right; color: var(--muted); width: 40px; font-size: 10px; }
  .f1demo-table tr.leader td.pos { color: var(--accent); }
  .f1demo-table tr.leader td.name { color: var(--accent); }
  .f1demo-footer {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
  }
  .f1demo-disclaimer {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted2);
    line-height: 1.55;
  }

  /* ===== F1 demo tabs + circuit guide ===== */
  .f1demo-tabs {
    display: flex;
    gap: 1px;
    background: var(--border);
    border: 0.5px solid var(--border);
    margin-bottom: 22px;
  }
  .f1demo-tab {
    flex: 1;
    background: var(--bg);
    border: none;
    padding: 11px 16px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.12s;
  }
  .f1demo-tab:hover { color: var(--text); background: var(--surface); }
  .f1demo-tab.active {
    background: var(--surface2);
    color: var(--accent);
  }
  .f1demo-circuit-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  .f1demo-search {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
  }
  .f1demo-search:focus {
    outline: none;
    border-color: var(--accent);
  }
  .f1demo-search-count {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
  }
  .f1demo-circuit-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    border: 1px solid var(--border);
  }
  .f1demo-circuit-list {
    background: var(--surface);
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
  }
  .f1demo-circuit-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 14px;
    cursor: pointer;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    transition: background 0.12s;
  }
  .f1demo-circuit-row:hover { background: var(--surface2); }
  .f1demo-circuit-row.selected {
    background: var(--surface2);
    border-left: 2px solid var(--accent);
    padding-left: 12px;
  }
  .f1demo-circuit-round {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
  }
  .f1demo-circuit-name {
    font-size: 13px;
    color: var(--text);
    margin-top: 2px;
  }
  .f1demo-circuit-where {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px;
  }
  .f1demo-circuit-detail {
    padding: 22px 24px;
    background: var(--bg);
    min-width: 0;
  }
  .f1demo-circuit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .f1demo-circuit-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--text);
    line-height: 1.1;
  }
  .f1demo-circuit-sub {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 4px;
  }
  .f1demo-circuit-round-big {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--accent);
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid var(--accent);
    background: var(--surface);
    white-space: nowrap;
  }
  .f1demo-circuit-facts {
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .f1demo-circuit-facts strong {
    color: var(--text);
    font-weight: 400;
  }
  .f1demo-empty {
    color: var(--muted);
    font-style: italic;
    padding: 24px 16px;
    text-align: center;
    font-size: 12px;
  }

  /* ===== F1 circuit guide — rich detail ===== */
  .f1demo-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
  }
  .f1demo-flag {
    font-size: 13px;
    flex-shrink: 0;
  }
  .f1demo-badge {
    margin-left: auto;
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 2px 6px;
    border: 1px solid var(--border);
    color: var(--muted);
    flex-shrink: 0;
  }
  .f1demo-badge.done {
    border-color: var(--accent2);
    color: var(--accent2);
  }
  .f1demo-badge.up {
    border-color: var(--border);
    color: var(--muted);
  }
  .f1demo-circuit-round-big.done {
    border-color: var(--accent2);
    color: var(--accent2);
  }
  .f1demo-circuit-round-big.up {
    border-color: var(--accent);
    color: var(--accent);
  }
  .f1demo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 6px;
  }
  .f1demo-chip {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 4px 9px;
    border: 1px solid var(--border);
    background: var(--surface);
  }
  .f1demo-chip strong {
    color: var(--text);
    font-weight: 400;
  }
  .f1demo-chip.type-street { border-color: var(--accent3); color: var(--accent3); }
  .f1demo-chip.type-permanent { border-color: var(--accent2); color: var(--accent2); }
  .f1demo-chip.type-hybrid { border-color: var(--accent5); color: var(--accent5); }

  .f1demo-laprec {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
  }
  .f1demo-laprec-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .f1demo-laprec-time {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--accent);
  }
  .f1demo-laprec-who {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--text);
    margin-left: auto;
  }

  .f1demo-chars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .f1demo-char {
    display: grid;
    grid-template-columns: 130px 1fr 50px;
    gap: 10px;
    align-items: center;
  }
  .f1demo-char-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .f1demo-char-track {
    height: 6px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    position: relative;
    overflow: hidden;
  }
  .f1demo-char-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    transition: width 0.4s ease;
  }
  .f1demo-char-val {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--text);
    text-align: right;
  }

  .f1demo-fact {
    margin-top: 18px;
    padding: 10px 14px;
    background: var(--surface);
    border-left: 2px solid var(--accent3);
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    font-style: italic;
  }

  /* ------------ V2 ADDITIONS: FEATURED, SCHEMA, SQL CARD ------------ */

  /* Hero system schematic */
  .hero-schema {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    max-width: none;
  }
  @media (max-width: 900px) {
    .hero-schema { max-width: 880px; }
  }
  .hero-schema-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 22px;
  }
  .hero-vantage-card {
    display: block;
    margin-top: 30px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius, 14px);
    background: linear-gradient(180deg, rgba(91,154,255,0.05), rgba(28,25,23,0.4));
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .hero-vantage-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-soft, 0 2px 10px rgba(0,0,0,0.24));
  }
  .hvc-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
  }
  .hvc-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .hero-vantage-card:hover .hvc-arrow { color: var(--accent); }
  .hvc-arrow { color: var(--accent2); }
  .hero-outcomes:hover { transform: none; border-color: var(--border); box-shadow: none; }
  .hvc-outcomes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .hvc-outcomes li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
  .hvc-outcomes li:first-child { border-top: none; padding-top: 2px; }
  .hvc-outcomes .hvc-name { font-family: 'DM Serif Display', serif; font-size: 1.05rem; color: var(--text); line-height: 1.25; }
  .hvc-outcomes span:not(.hvc-arrow) { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
  @media (max-width: 560px) { .hvc-outcomes li { grid-template-columns: 1fr; gap: 3px; } }
  .hvc-sub {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    max-width: 52ch;
  }
  .hero-schema-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
  }
  .hero-schema-svg .node-rect {
    fill: var(--surface);
    stroke: var(--border);
    stroke-width: 1;
  }
  .hero-schema-svg .node-rect.is-core {
    stroke: var(--accent);
    fill: rgba(91, 154, 255, 0.05);
  }
  .hero-schema-svg .node-title {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    fill: var(--text);
    text-transform: uppercase;
  }
  .hero-schema-svg .node-title.is-core { fill: var(--accent); }
  .hero-schema-svg .node-sub {
    font-family: 'DM Mono', monospace;
    font-size: 9.5px;
    fill: var(--muted);
    letter-spacing: 0.05em;
  }
  .hero-schema-svg .link {
    stroke: var(--border);
    stroke-width: 1;
    fill: none;
  }
  .hero-schema-svg .link-arrow { fill: var(--muted2); }

  /* SQL contract card sitting before the projects list */
  .sql-card-wrap {
    margin: 0 var(--gutter) 56px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .sql-card-caption {
    border-left: 1px solid var(--border);
    padding-left: 28px;
  }
  .sql-card-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
  }
  .sql-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .sql-card-title em { font-style: italic; color: var(--accent); }
  .sql-card-body {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .sql-card-body strong { color: var(--text); font-weight: 400; }
  .sql-card-code {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px 22px;
    font-family: 'DM Mono', monospace;
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--text);
    white-space: pre;
    overflow-x: auto;
    position: relative;
  }
  .sql-card-code .kw { color: var(--accent2); }
  .sql-card-code .lit { color: var(--accent); }
  .sql-card-code .com { color: var(--muted2); font-style: italic; }
  .sql-card-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .sql-card-code-head .filename { color: var(--text); }
  .sql-card-code-head .status { color: var(--accent); }

  /* Featured (Vantage) project treatment */
  .project.project-featured {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 72px var(--gutter);
    background: linear-gradient(180deg, rgba(91,154,255,0.025) 0%, transparent 60%);
    border-bottom: 1px solid var(--border);
  }
  .project.project-featured:hover { background: linear-gradient(180deg, rgba(91,154,255,0.04) 0%, var(--surface) 100%); }
  .featured-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
  }
  .featured-head-left { max-width: 720px; }
  .featured-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .featured-eyebrow::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--accent);
  }
  .featured-name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 10px;
  }
  .featured-name em { font-style: italic; color: var(--accent); }
  .featured-tagline {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 18px;
  }
  .featured-acronym {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--muted);
    text-transform: uppercase;
  }
  .featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 16px;
    border: 1px solid var(--accent);
    border-radius: 11px;
    background: rgba(91,154,255,0.06);
    color: var(--accent);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .featured-cta:hover { background: rgba(91,154,255,0.14); transform: translateY(-1px); }
  .featured-status {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--accent2);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    line-height: 1.6;
    padding-top: 6px;
  }
  .featured-status::before {
    flex: none;
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 8px var(--accent2);
  }
  .featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .featured-grid-full { grid-template-columns: 1fr; }
  .featured-body { min-width: 0; }
  .featured-desc {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 22px;
  }
  .featured-desc strong { color: var(--accent2); font-weight: 500; }
  .featured-highlights { list-style: none; margin-bottom: 24px; }
  .featured-highlights li {
    display: block;
    position: relative;
    padding: 12px 0 12px 22px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text);
  }
  .featured-highlights li:last-child { border-bottom: 1px solid var(--border-soft); }
  .featured-highlights li::before {
    content: '›';
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1.4;
    position: absolute;
    left: 0;
    top: 12px;
  }
  .featured-highlights strong { color: var(--accent2); font-weight: 500; }
  .featured-tags { display: flex; flex-wrap: wrap; gap: 6px; }

  .featured-aside {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-left: 36px;
    border-left: 1px solid var(--border);
  }
  .featured-aside-block { display: flex; flex-direction: column; gap: 8px; }
  .featured-aside-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted2);
  }
  .featured-aside-value {
    font-family: 'DM Mono', monospace;
    font-size: 0.86rem;
    color: var(--text);
    line-height: 1.55;
  }

  /* Mini architecture diagram inside Vantage */
  .featured-arch {
    margin-top: 8px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    background: var(--bg);
  }
  .featured-arch-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 18px;
  }
  .featured-arch-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
  }
  .featured-arch-svg rect.box {
    fill: var(--surface);
    stroke: var(--border);
  }
  .featured-arch-svg rect.box.is-core {
    stroke: var(--accent);
    fill: rgba(91, 154, 255, 0.06);
  }
  .featured-arch-svg text { font-family: 'DM Mono', monospace; fill: var(--text); font-size: 10px; letter-spacing: 0.08em; }
  .featured-arch-svg text.layer { fill: var(--accent); font-size: 9px; letter-spacing: 0.22em; }
  .featured-arch-svg text.sub { fill: var(--muted); font-size: 9px; }
  .featured-arch-svg line { stroke: var(--border-soft); stroke-width: 1; stroke-dasharray: 2 3; }

  @media (max-width: 980px) {
    .featured-grid { grid-template-columns: 1fr; gap: 40px; }
    .featured-aside { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 24px; }
    .sql-card-wrap { grid-template-columns: 1fr; gap: 28px; }
    .sql-card-caption { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 22px; }
  }
  @media (max-width: 880px) {
    .hero-schema { margin-top: 4px; padding-top: 0; }
    .sql-card-wrap { margin: 0 28px 40px; }
    .project.project-featured { padding: 48px 28px; }
  }

  /* ------------ RESPONSIVE ------------ */
  @media (max-width: 880px) {
    nav, header.hero, section.block, section.contact, footer { padding-left: 28px; padding-right: 28px; }
    .nav-links { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-aside { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 32px; }
    .project { grid-template-columns: 1fr; gap: 24px; padding: 40px 28px; }
    .skills-grid, .more-grid { margin: 0 28px; }
    .role { grid-template-columns: 1fr; gap: 12px; }
    .stat { padding: 28px; }
    .stat-num { font-size: 2.1rem; }
    .explore-tabs, .demo-frame { margin-left: 28px; margin-right: 28px; }
    .aria-body { grid-template-columns: 1fr; }
    .aria-queue { max-height: 380px; }
    .aria-stats { grid-template-columns: repeat(2, 1fr); }
    .aria-checks { grid-template-columns: 1fr; }
    .aria-evidence { grid-template-columns: 1fr; }
    /* Explore + side-project demos (Adapter, THEA, F1) — reflow for mobile */
    .aa-strip, .thea-strip, .f1demo-strip { grid-template-columns: repeat(2, 1fr); }
    .aa-body { grid-template-columns: 1fr; }
    .f1demo-cols, .f1demo-circuit-grid { grid-template-columns: 1fr; }
    .aa-body .aa-preview, .f1demo-circuit-grid > * { min-width: 0; }
  }

  /* ========================================================================
     COZY REFRESH (2026) — warmer surfaces, softer rounding, gentle depth.
     Additive layer: overrides earlier rules via cascade order. No structural
     changes. The hairline .projects-list is intentionally left un-rounded.
     ======================================================================== */
  :root {
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --shadow-soft: 0 2px 10px rgba(0,0,0,0.24);
    --shadow-card: 0 14px 40px rgba(0,0,0,0.34);
  }

  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
      radial-gradient(1000px 520px at 12% -8%, rgba(224,189,148,0.06), transparent 60%),
      radial-gradient(1100px 620px at 100% -4%, rgba(91,154,255,0.05), transparent 58%),
      var(--bg);
  }

  /* Pills for small chips, tags, filters */
  .tag, .project-chip, .aria-filter, .bw-filter, .csm-suggest,
  .guide-chip, .guide-panel-chip, .featured-eyebrow, .demo-tab,
  .explore-tab, .aria-filter, .demo-disclaimer {
    border-radius: var(--radius-pill);
  }

  /* Rounded, softly-shadowed card surfaces */
  .skill, .more-card, .project-featured, .demo-frame, .demo-pane,
  .csm-frame, .thea-frame, .bw-batch, .aria-stat, .thea-stat, .aa-stat,
  .stat, .aria-detail, .aria-queue, .featured-aside, .featured-arch {
    border-radius: var(--radius);
  }
  .guide-panel { border-radius: var(--radius-lg); overflow: hidden; }
  .guide-trigger { border-radius: var(--radius-pill); }

  /* Buttons & inputs get a friendlier corner */
  .demo-run-btn, .csm-input, .csm-reset, .guide-panel-input,
  .guide-panel-input input, .guide-panel-input button, .bw-filter,
  .contact-form input, .contact-form textarea, .nav-cta, .resume-btn {
    border-radius: 11px;
  }

  /* Gentle lift on the interactive cards */
  .skill, .more-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  }
  .skill:hover, .more-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent);
  }
  .project-featured { box-shadow: var(--shadow-card); }

  h2 { letter-spacing: -0.012em; }

  /* ========================================================================
     CLUSTERED PROJECTS — 2-column packed cards to cut scrolling.
     Each family = full-width head + a multi-column block of compact bordered
     cards (multicol packs varied heights with no ragged gaps). Overrides the
     earlier hairline single-column rules via cascade order. Featured cards
     (.project-featured) sit outside .project-grid and are untouched.
     ======================================================================== */
  .projects-list { display: block; background: none; border-top: none; }
  .project-group-head { padding: 30px var(--gutter) 4px; }
  .projects-list > .project-group-head:first-child { padding-top: 8px; }
  .project-group-blurb { margin-bottom: 2px; }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
    padding: 12px var(--gutter) 8px;
  }
  @media (max-width: 900px) {
    .project-grid { grid-template-columns: 1fr; padding-left: 28px; padding-right: 28px; }
  }

  .project-grid .project {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 15px 12px;
    margin: 0;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  }
  .project-grid .project:hover {
    background: var(--surface2);
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
  }

  .project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }
  .project-grid .project-name { font-size: 1.22rem; line-height: 1.08; margin-bottom: 2px; }
  .project-grid .project-acronym { font-size: 8.5px; margin-bottom: 8px; }
  .project-grid .project-tagline { font-size: 0.88rem; line-height: 1.42; margin-bottom: 8px; }
  .project-grid .project-desc { font-size: 0.78rem; line-height: 1.5; margin-bottom: 9px; }
  .project-grid .project-highlights { margin-bottom: 9px; }
  .project-grid .project-highlights li { font-size: 0.75rem; line-height: 1.42; padding: 6px 0 6px 16px; }
  .project-grid .project-highlights li::before { top: 6px; font-size: 0.9rem; }

  .project-grid .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin: 0 0 9px;
    line-height: 1.45;
    font-size: 9px;
  }
  .project-grid .project-meta span { color: var(--muted); position: relative; }
  .project-grid .project-meta span:not(:last-child)::after {
    content: '·';
    color: var(--muted2);
    margin-left: 12px;
  }
  .project-grid .project-meta strong { color: var(--text); font-weight: 400; }
  .project-grid .project-tags { gap: 4px; margin-top: auto; padding-top: 1px; }
  .project-grid .project-tags .tag { font-size: 9px; padding: 3px 8px; }

  /* ── VANTAGE INSIDE EXPERIENCE (Nov 2026 refocus) ── */
  .timeline { max-width: 960px; }
  .vx { margin-top: 26px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius, 14px);
        background: linear-gradient(180deg, rgba(91,154,255,0.05), rgba(28,25,23,0.4)); }
  .vx-eyebrow { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
  .vx-tools { margin-top: 30px; }
  .vx-tools-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted2); margin-bottom: 14px; }
  .vx-family + .vx-family { margin-top: 24px; }
  .vx-family-head { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent2);
                    padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .vx-family-head span { color: var(--muted2); margin-left: 6px; }
  .vx-tool-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); column-gap: 28px; }
  .vx-tool-list li { padding: 12px 0; border-bottom: 1px solid var(--border-soft, rgba(255,255,255,0.06)); scroll-margin-top: 90px; }
  .vx-tool-name { display: block; font-family: 'DM Serif Display', serif; font-size: 1.05rem; color: var(--text); line-height: 1.25; margin-bottom: 3px; }
  .vx-tool-line { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
  #vantage { scroll-margin-top: 90px; }

  /* ── SKILLS: separate cards so an odd count leaves clean empty space (Nov 2026) ── */
  .skills-grid { background: transparent; border-top: none; gap: 14px; }
  .skill { border: 1px solid var(--border); }

  /* ── HERO RESULTS (Nov 2026) ── */
  .hero-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 4px; max-width: 620px; }
  .hr-item { border: 1px solid var(--border); border-radius: var(--radius, 14px); padding: 14px 16px;
             background: linear-gradient(180deg, rgba(91,154,255,0.06), rgba(28,25,23,0.35)); }
  .hr-num { font-family: 'DM Serif Display', serif; font-size: 1.7rem; line-height: 1.1; color: var(--accent); }
  .hr-label { color: var(--muted); font-size: 0.84rem; line-height: 1.45; margin-top: 6px; }
  @media (max-width: 560px) { .hero-results { grid-template-columns: 1fr; } }

  /* ── CASE STUDY (Nov 2026) ── */
  .cs .cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
  .cs .cs-card { border: 1px solid var(--border); border-radius: var(--radius, 14px); padding: 20px 22px;
                 background: linear-gradient(180deg, rgba(91,154,255,0.04), rgba(28,25,23,0.35)); }
  .cs .cs-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin: 0; }
  .cs .cs-card p b, .cs .cs-result b { color: var(--text); font-weight: 600; }
  .cs .cs-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
  .cs .cs-label-wide { margin: 34px 0 12px; }
  .cs .cs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: none; }
  .cs .cs-steps details { border: 1px solid var(--border); border-radius: var(--radius, 14px); background: rgba(28,25,23,0.35); transition: border-color .2s; }
  .cs .cs-steps details[open] { border-color: var(--accent); }
  .cs .cs-steps summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; }
  .cs .cs-steps summary::-webkit-details-marker { display: none; }
  .cs .cs-steps summary::after { content: '+'; grid-column: 4; color: var(--accent2); font-size: 1.1rem; }
  .cs .cs-steps details[open] summary::after { content: '–'; }
  .cs .cs-n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
              font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent); border: 1px solid var(--accent); }
  .cs .cs-t { font-family: 'DM Serif Display', serif; font-size: 1.12rem; color: var(--text); }
  .cs .cs-c { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted2); white-space: nowrap; }
  .cs .cs-body { padding: 0 18px 16px 66px; }
  .cs .cs-body p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; margin: 0 0 8px; }
  .cs .cs-body p b { color: var(--text); font-weight: 600; }
  .cs .cs-checks { display: flex; flex-wrap: wrap; gap: 8px; }
  .cs .cs-checks span { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 0.82rem; color: var(--muted); }
  .cs .cs-result { margin-top: 30px; border-color: var(--accent); }
  .cs .cs-result ul { margin: 0; padding-left: 18px; }
  .cs .cs-result li { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
  @media (max-width: 900px) { .cs .cs-grid { grid-template-columns: 1fr; } }
  @media (max-width: 560px) { .cs .cs-steps summary { grid-template-columns: 30px 1fr; } .cs .cs-c { display: none; } .cs .cs-body { padding-left: 18px; } }

  /* ── NAV ON TABLET/PHONE (Nov 2026): links wrap to a scrollable row instead of hiding ── */
  @media (max-width: 880px) {
    nav { flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 10px; }
    .nav-links { display: flex; width: 100%; gap: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch;
                 scrollbar-width: none; padding-bottom: 2px; }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { white-space: nowrap; padding: 6px 0; font-size: 10.5px; }
  }

  /* ========================================================================
     2026 FULL REFRESH (Nov 2026). Cooler, crisper palette; Inter for headings
     and body (DM Mono kept for small labels); one centred 1120px column;
     unified card surfaces; greeting hero with a CTA row. Additive layer:
     overrides everything above via cascade order.
     ======================================================================== */
  :root {
    --bg: #0b0c0f; --surface: #12141a; --surface2: #181b22;
    --border: rgba(255,255,255,0.09); --border-soft: rgba(255,255,255,0.06);
    --accent: #7aa7ff; --accent2: #7fdcc0; --accent3: #7fdcc0; --accent6: #7aa7ff;
    --text: #eceef3; --muted: #9ba2b0; --muted2: #6d7484; --tag-bg: rgba(255,255,255,0.04);
    --radius: 16px; --radius-lg: 22px;
    --content: 1120px;
    --pad-x: max(24px, calc((100vw - var(--content)) / 2));
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --shadow-card: 0 18px 50px rgba(0,0,0,0.45);
    --grad: linear-gradient(92deg, var(--accent) 0%, var(--accent2) 100%);
  }
  body {
    font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.65;
    background:
      radial-gradient(900px 520px at 12% -12%, rgba(122,167,255,0.12), transparent 60%),
      radial-gradient(760px 460px at 96% -4%, rgba(127,220,192,0.07), transparent 60%),
      var(--bg);
  }
  ::selection { background: var(--accent); color: #0b0c0f; }
  a { color: var(--accent); }
  a:hover { color: #a9c6ff; }
  :focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 6px; }

  /* Type: one sans family for every heading-like element */
  h1, h2, h3, .nav-brand, .role-title, .skill-title, .featured-name, .cs .cs-t, .vx-tool-name,
  .role-bullet-title, .hr-num, .f1demo-title, .f1demo-stat-num, .f1demo-circuit-title, .f1demo-laprec-time,
  .project-name, .project-group-title, .guide-body, .stat-num, .more-title, .hvc-title,
  .hvc-outcomes .hvc-name, .sql-card-title {
    font-family: var(--font); font-style: normal; letter-spacing: -0.02em;
  }
  h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; max-width: 820px; margin-bottom: 16px; }
  h1 em, h2 em, .hr-num {
    font-style: normal; color: var(--accent);
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .section-intro { font-size: 1.02rem; color: var(--muted); max-width: 680px; margin-bottom: 48px; }
  .section-eyebrow { font-size: 11px; letter-spacing: .16em; color: var(--accent); gap: 10px; margin-bottom: 18px; }
  .section-eyebrow::before, .hero-label::before {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent2);
    box-shadow: 0 0 0 4px rgba(127,220,192,.14);
  }

  /* Layout: everything sits in one centred content column */
  nav, header.hero, section.block, section.contact, footer { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .skills-grid { margin-left: var(--pad-x); margin-right: var(--pad-x); }
  section.block { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); border-bottom: none; }
  section.block + section.block, .skills-grid + section.block, header.hero + section.block { border-top: 1px solid var(--border-soft); }
  #skills { padding-bottom: 0 !important; }
  .skills-grid + section.block { margin-top: clamp(72px, 9vw, 112px); }

  /* Nav */
  nav {
    padding-top: 12px; padding-bottom: 12px;
    background: rgba(11,12,15,.72);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-brand { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--text); }
  .nav-brand:hover { color: var(--text); }
  .nav-brand em { font-style: normal; color: var(--text); }
  .nav-brand::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(127,220,192,.14); }
  .nav-links { gap: 2px; align-items: center; }
  .nav-links a {
    font-family: var(--font); font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none;
    color: var(--muted); padding: 7px 12px; border-radius: 999px; transition: color .2s, background .2s;
  }
  .nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
  .nav-links a.active { color: var(--text); background: rgba(255,255,255,.08); }
  .nav-links a.active::after { display: none; }
  .nav-links a.nav-cta { margin-left: 10px; color: #0b0c0f; background: var(--text); border: none; padding: 7px 15px; font-weight: 600; }
  .nav-links a.nav-cta:hover { background: #fff; color: #0b0c0f; }

  /* Hero */
  header.hero { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 8vw, 104px); border-bottom: none; }
  header.hero::before {
    top: 0; right: 0; left: 0; width: auto; height: 100%;
    background-image:
      linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 65% 70% at 25% 30%, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse 65% 70% at 25% 30%, #000 10%, transparent 72%);
  }
  header.hero::after { display: none; }
  .hero-inner { display: block; }
  .hero-left { max-width: 880px; }
  .hero-label { font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-bottom: 28px; }
  h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 26px; }
  h1 .h1-line2 { display: block; margin-top: 14px; font-size: .56em; font-weight: 700; line-height: 1.18; letter-spacing: -0.03em; color: #c9ceda; }
  .hero-tagline { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 680px; margin-bottom: 34px; line-height: 1.65; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
    font-weight: 600; font-size: .95rem; line-height: 1; border: 1px solid var(--border); color: var(--text);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  }
  .btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.28); color: var(--text); background: rgba(255,255,255,.04); }
  .btn-primary { background: var(--text); color: #0b0c0f; border-color: transparent; }
  .btn-primary:hover { background: #fff; color: #0b0c0f; border-color: transparent; }
  .btn-ghost { border-color: transparent; color: var(--muted); }
  .hero-results { max-width: 780px; gap: 14px; margin: 0; }
  .hr-item { padding: 22px 24px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); }
  .hr-num { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -0.04em; line-height: 1.1; }
  .hr-label { font-size: .9rem; color: var(--muted); }
  .hero-meta { border-top: 1px solid var(--border-soft); margin-top: 40px; padding-top: 22px; max-width: 780px; gap: 18px 44px; }
  .meta-label { font-size: 10px; letter-spacing: .16em; color: var(--muted2); }
  .meta-value { font-family: var(--font); font-size: .95rem; }

  /* About */
  .about-grid2 { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
  .about-grid2 h2 { position: sticky; top: 96px; }
  .about-body p { color: var(--muted); font-size: 1.04rem; line-height: 1.8; margin-bottom: 20px; }
  .about-body p:first-child { color: var(--text); }
  @media (max-width: 900px) { .about-grid2 { grid-template-columns: 1fr; } .about-grid2 h2 { position: static; } }

  /* Experience */
  .timeline { max-width: none; margin-top: 8px; }
  .role {
    grid-template-columns: 190px minmax(0, 1fr); gap: 40px; padding: 34px 36px; margin-bottom: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: border-color .2s ease;
  }
  .role:last-child { border-bottom: 1px solid var(--border); }
  .role:hover { border-color: rgba(255,255,255,.16); }
  .role-date { font-size: 11px; letter-spacing: .1em; }
  .role-date strong { color: var(--text); font-weight: 500; letter-spacing: .08em; }
  .role-title { font-size: 1.4rem; font-weight: 700; }
  .role-company { font-family: var(--font); font-size: .9rem; letter-spacing: 0; color: var(--accent); }
  .role-summary { color: #c9ceda; font-size: 1rem; }
  .role-bullets li { color: var(--muted); font-size: .95rem; padding-left: 20px; }
  .role-bullets li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); top: 18px; }
  .role-bullets li.titled::before { top: 24px; }
  .role-bullet-title { font-style: normal; font-weight: 600; font-size: 1.02rem; }
  .vx { background: linear-gradient(180deg, rgba(122,167,255,.08), rgba(255,255,255,.015)); border-color: rgba(122,167,255,.22); }
  .vx-eyebrow, .vx-tools-label { color: var(--accent); }
  .vx-family-head { color: var(--accent2); border-bottom-color: var(--border-soft); }
  .vx-tool-name { font-size: 1rem; font-weight: 600; }
  @media (max-width: 880px) { .role { grid-template-columns: 1fr; gap: 10px; padding: 24px 22px; } }

  /* Case study */
  .cs .cs-label { color: var(--accent2); }
  .cs .cs-card { background: var(--surface); border-color: var(--border); border-radius: var(--radius-lg); }
  .cs .cs-card p { color: var(--muted); }
  .cs .cs-steps details { background: var(--surface); border-color: var(--border); }
  .cs .cs-steps details:hover { border-color: rgba(255,255,255,.18); }
  .cs .cs-steps details[open] { border-color: rgba(122,167,255,.55); background: var(--surface2); }
  .cs .cs-t { font-size: 1.05rem; font-weight: 600; }
  .cs .cs-n { border-color: var(--accent2); color: var(--accent2); }
  .cs .cs-c { color: var(--muted2); }
  .cs .cs-checks span { background: rgba(255,255,255,.03); border-color: var(--border-soft); color: #c3c8d2; }
  .cs .cs-result { background: linear-gradient(180deg, rgba(127,220,192,.09), rgba(255,255,255,.015)); border-color: rgba(127,220,192,.35); }

  /* Skills */
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
  .skill { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 30px; }
  .skill:hover { transform: translateY(-3px); border-color: rgba(122,167,255,.45); box-shadow: var(--shadow-card); background: var(--surface2); }
  .skill-title { font-size: 1.15rem; font-weight: 700; }
  .skill-num { color: var(--accent2); }
  .tag {
    font-family: var(--font); font-size: 12.5px; letter-spacing: 0; text-transform: none;
    background: rgba(255,255,255,.04); border: 1px solid var(--border-soft); color: #c3c8d2; padding: 4px 11px;
  }

  /* Side project */
  .project.project-featured { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: none; }
  .project.project-featured { margin-left: var(--pad-x); margin-right: var(--pad-x); margin-bottom: clamp(72px, 9vw, 112px); padding: clamp(28px, 4vw, 48px); }
  .project.project-featured:hover { background: var(--surface); border-color: rgba(255,255,255,.16); }
  #side { padding-bottom: 0 !important; }
  .featured-name { font-weight: 800; letter-spacing: -0.03em; }
  .featured-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

  /* Contact */
  section.contact { padding-top: clamp(80px, 10vw, 128px); padding-bottom: clamp(80px, 10vw, 128px); border-top: 1px solid var(--border-soft); }
  section.contact::before { background: radial-gradient(circle, rgba(122,167,255,.08) 0%, transparent 70%); }
  .contact-inner { max-width: none; }
  .contact h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; }
  .contact-grid { gap: 14px; }
  .contact-card { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
  .contact-card:hover { border-color: rgba(122,167,255,.5); background: var(--surface2); transform: translateY(-2px); }
  .contact-card-value { font-family: var(--font); font-weight: 500; font-size: .98rem; }

  /* Footer */
  footer { border-top: 1px solid var(--border-soft); padding-top: 28px; padding-bottom: 28px; }
  .footer-note { font-family: var(--font); font-size: 13px; letter-spacing: 0; color: var(--muted2); }
  a.footer-top:hover { color: var(--text); }

  @media (max-width: 880px) {
    .nav-links a.nav-cta { margin-left: 4px; }
    .hero-cta .btn { padding: 11px 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .btn, .skill, .contact-card { transition: none; }
    .btn:hover, .skill:hover, .contact-card:hover { transform: none; }
  }

  /* Guide chat: match the refreshed type and surfaces */
  .guide-trigger { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
                   background: rgba(18,20,26,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-card); }
  .guide-panel { background: var(--surface); border-color: var(--border); }

  /* ── MOBILE FIXES (Nov 2026 audit at 320/360/390px) ──
     Fixed grid minimums wider than a phone pushed the page sideways; min(…,100%) lets them shrink. */
  .vx-tool-list { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
  .contact-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
  .contact-card-value { overflow-wrap: anywhere; }
  @media (max-width: 600px) {
    .tag { font-size: 11px; }
    .featured-acronym a { display: inline-block; padding: 8px 0; }
    .skill { padding: 22px 20px; }
  }

/* ── MULTI-PAGE (Nov 2026): home "Explore" cards, shared footer strip, page endings ── */
.explore { padding-top: clamp(40px, 6vw, 72px) !important; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; margin-top: 18px; }
.explore-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 52px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.explore-card:hover { transform: translateY(-3px); border-color: rgba(122,167,255,.45); background: var(--surface2); }
.explore-k { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.explore-t { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.explore-d { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.explore-go { position: absolute; left: 24px; bottom: 18px; color: var(--accent); font-size: 1.1rem; transition: transform .2s ease; }
.explore-card:hover .explore-go { transform: translateX(4px); }
.site-foot { border-top: 1px solid var(--border-soft); padding: 28px var(--pad-x, 28px); }
.site-foot-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-foot-lead { color: var(--muted); font-size: .95rem; }
.site-foot-lead a { color: var(--accent); }
.site-foot-links { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .92rem; }
.site-foot-links a { color: var(--text); text-decoration: none; opacity: .85; }
.site-foot-links a:hover { opacity: 1; color: var(--accent); }
main > .skills-grid:last-child, main > .project-featured { margin-bottom: clamp(56px, 8vw, 96px); }
main > section.block:first-child { border-top: none; }
.guide-go { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(122,167,255,.45); color: var(--accent); text-decoration: none; font-weight: 600; }
.guide-go:hover { background: rgba(122,167,255,.1); }
@media (prefers-reduced-motion: reduce) { .explore-card, .explore-go { transition: none; } .explore-card:hover { transform: none; } }
.page-contact .site-foot-lead { visibility: hidden; }
main { min-height: calc(100vh - 260px); }

/* ── DECO (Nov 2026): animated line-art graphics, same family as the F1 hero track ──
   Data-pipeline motifs about the work (records flowing through check gates); the Projects page gets a track.
   Pure SVG + SMIL in the page sources; site.js strips the animations under prefers-reduced-motion.
   Decorative only: aria-hidden, no pointer events, hidden on narrow screens where they'd crowd the text. */
.deco { position: absolute; pointer-events: none; z-index: 0; overflow: visible; }
.deco text { font-family: 'DM Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .06em; fill: var(--muted2); text-anchor: middle; }
.deco .d-base, .deco .t-base { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 14; stroke-linejoin: round; stroke-linecap: round; }
.deco .d-edge, .deco .t-edge { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1; stroke-dasharray: 2 6; }
.deco .d-run { fill: none; stroke: url(#dgRun); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 80 920; filter: drop-shadow(0 0 6px rgba(127,220,192,.8)); }
.deco .d-recs circle { fill: #7fdcc0; filter: drop-shadow(0 0 6px rgba(127,220,192,.9)); }
.deco .d-recs .d-flag { fill: #ffb454; }
.deco .d-gate rect { fill: rgba(11,12,15,.9); stroke: #7aa7ff; stroke-width: 1.5; }
.deco .d-gate path { fill: none; stroke: #7fdcc0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deco .d-gate-qa rect { stroke: #7fdcc0; }
/* about: a table being checked row by row, under the heading */
.about-grid2 > div:first-child { position: sticky; top: 96px; align-self: start; }
.about-grid2 h2 { position: static; }
.deco-table { position: static; display: block; width: 100%; max-width: 320px; margin-top: 34px; opacity: .9; }
.deco-table .d-scan { fill: rgba(122,167,255,.07); stroke: rgba(122,167,255,.25); }
.deco-table .d-rows rect { fill: rgba(255,255,255,.13); }
.deco-table .d-checks circle { fill: rgba(11,12,15,.9); stroke: #7fdcc0; stroke-width: 1.5; }
.deco-table .d-checks path { fill: none; stroke: #7fdcc0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deco-table .d-fix circle, .deco-table .d-fix path { stroke: inherit; }
.deco-table .d-cap { text-anchor: start; font-size: 10px; }
/* experience: the career path, top right */
section#experience { position: relative; }
section#experience > :not(.deco) { position: relative; z-index: 1; }
/* projects: the track, top right of the header */
section#side { position: relative; }
section#side > :not(.deco) { position: relative; z-index: 1; }
.deco-track { right: var(--pad-x); top: clamp(36px, 5vw, 64px); width: min(340px, 30%); opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
.deco-track .t-run { fill: none; stroke: url(#dgCar); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 90 910; filter: drop-shadow(0 0 6px rgba(255,60,30,.9)); }
.deco-track .t-car { fill: #fff; filter: drop-shadow(0 0 6px #ff3d1f) drop-shadow(0 0 14px rgba(255,61,31,.8)); }
.deco-track .t-sf { stroke: rgba(255,255,255,.6); stroke-width: 3; stroke-dasharray: 3 3; }
/* contact: signal pings around an envelope */
section.contact > :not(.deco) { position: relative; z-index: 1; }
.deco-signal { right: var(--pad-x); top: clamp(48px, 6vw, 84px); width: min(230px, 22%); opacity: .85; }
.deco-signal .d-ring { fill: none; stroke: #7aa7ff; stroke-width: 1.5; }
.deco-signal .d-mail rect { fill: rgba(11,12,15,.95); stroke: #7fdcc0; stroke-width: 2; }
.deco-signal .d-mail path { fill: none; stroke: #7fdcc0; stroke-width: 2; stroke-linejoin: round; }
/* case study: the steps are joined by a line; a pulse travels dot to dot and each dot fills as it is reached (site.js) */
.cs .cs-steps { position: relative; padding-left: var(--cs-pad); --cs-pad: 34px; --cs-x: 12px; }
.cs .cs-steps::before, .cs .cs-fill { content: ''; position: absolute; left: calc(var(--cs-x) - 1px); top: var(--cs-y0, 28px); width: 2px; border-radius: 2px; }
.cs .cs-steps::before { height: var(--cs-len, 0px); background: rgba(122,167,255,.35); }
.cs .cs-fill { height: 0; background: linear-gradient(180deg, rgba(127,220,192,.35), #7fdcc0); pointer-events: none; transition: opacity .4s; }
.cs .cs-pulse { position: absolute; left: calc(var(--cs-x) - 5px); top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #e9fff8;
  box-shadow: 0 0 0 3px rgba(127,220,192,.35), 0 0 14px 3px rgba(127,220,192,.8); pointer-events: none; z-index: 2; transition: opacity .4s; }
.cs .cs-steps > li { position: relative; }
.cs .cs-steps > li::before { content: ''; position: absolute; left: calc(var(--cs-x) - var(--cs-pad) - 6px); top: calc(var(--dot-y, 28px) - 6px); width: 12px; height: 12px; border-radius: 50%; z-index: 1;
  background: var(--bg, #0b0c0f); border: 2px solid rgba(122,167,255,.8); box-sizing: border-box; transition: background .25s, border-color .25s, box-shadow .25s, transform .25s; }
.cs .cs-steps > li.cs-lit::before { background: #7fdcc0; border-color: #7fdcc0; transform: scale(1.1); }
.cs .cs-steps > li:has(details[open])::before { background: #7fdcc0; border-color: #7fdcc0; box-shadow: 0 0 10px rgba(127,220,192,.8); }
@media (max-width: 900px) {
  .deco-flow, .deco-steps, .deco-track, .deco-signal { display: none; }
  .about-grid2 > div:first-child { position: static; }
  .deco-table { max-width: 280px; margin-top: 20px; }
}
@media (max-width: 560px) { .deco-table { display: none; } .cs .cs-steps { --cs-pad: 26px; --cs-x: 8px; } }
@media (prefers-reduced-motion: reduce) { .cs .cs-pulse { display: none; } }

/* home: inputs → Vantage check node → live data (replaces the track-like pipeline; owner: "too F1") */
.hero-inner { position: relative; }
.hero-inner > :not(.deco) { position: relative; z-index: 1; }
/* hero becomes two columns so the graphic never sits under the text */
@media (min-width: 901px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 36%); gap: clamp(28px, 4vw, 56px); align-items: center; }
  .hero-inner > .hero-left { grid-column: 1; grid-row: 1; }
  .deco-flow { position: static; grid-column: 2; grid-row: 1; width: 100%; max-width: 420px; justify-self: end; opacity: .95; }
  .block:has(> .deco-steps, > .deco-track, > .deco-signal) > :is(h2, .section-intro) { max-width: min(640px, 58%); }
}
.deco .f-in text, .deco .f-out text { text-anchor: start; fill: var(--text); opacity: .8; font: 600 11.5px Inter, system-ui, sans-serif; letter-spacing: 0; }
.deco .f-side { text-anchor: start; fill: var(--text); opacity: .85; font: 600 12px Inter, system-ui, sans-serif; letter-spacing: 0; }
.deco .f-side.f-sub { fill: var(--muted2); opacity: 1; font-weight: 400; font-size: 11px; }
.deco .f-node.f-ai rect { stroke: #7aa7ff; filter: drop-shadow(0 0 10px rgba(122,167,255,.45)); }
.deco .f-node.f-ai path { fill: #7aa7ff; stroke: none; }
.deco .f-recs .f-ai-rec { fill: #7aa7ff; }
.deco .f-in > g > rect:first-child, .deco .f-out > rect:first-child, .deco .s-card > rect:first-child { fill: rgba(18,20,26,.92); stroke: rgba(255,255,255,.14); stroke-width: 1; }
.deco .f-line { fill: rgba(255,255,255,.16); }
.deco .f-ok { fill: rgba(127,220,192,.85); }
.deco .f-wire { fill: none; stroke: rgba(122,167,255,.45); stroke-width: 1.5; }
.deco .f-node rect { fill: rgba(18,20,26,.95); stroke: #7fdcc0; stroke-width: 2; filter: drop-shadow(0 0 10px rgba(127,220,192,.45)); }
.deco .f-node path { fill: none; stroke: #7fdcc0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.deco .f-pulse { fill: none; stroke: #7fdcc0; stroke-width: 1.5; }
.deco .f-recs circle { fill: #7aa7ff; filter: drop-shadow(0 0 5px rgba(122,167,255,.9)); }
.deco .f-recs .f-flag { fill: #ffb454; filter: drop-shadow(0 0 5px rgba(255,180,84,.9)); }
.deco .f-recs .f-done { fill: #7fdcc0; filter: drop-shadow(0 0 5px rgba(127,220,192,.9)); }
/* experience: three role cards rising like steps, progress bars filling in turn */
.deco-steps { right: var(--pad-x); top: clamp(48px, 6vw, 80px); width: min(440px, 38%); opacity: .95; }
.deco-steps text { text-anchor: start; fill: var(--text); opacity: .85; font: 600 11.5px Inter, system-ui, sans-serif; letter-spacing: 0; }
.deco .s-track { fill: rgba(255,255,255,.08); }
.deco .s-fill { fill: #7aa7ff; }
.deco .s-now .s-fill { fill: #7fdcc0; filter: drop-shadow(0 0 6px rgba(127,220,192,.7)); }
.deco .s-now > rect:first-child { stroke: rgba(127,220,192,.6) !important; }
.deco .s-check circle { fill: rgba(127,220,192,.15); stroke: #7fdcc0; stroke-width: 1.5; }
.deco .s-check path { fill: none; stroke: #7fdcc0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* PROJECTS INDEX (owner: "hard to tell there are multiple projects"): numbered picker under the intro */
.proj-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; margin: 28px 0 clamp(40px, 6vw, 64px); position: relative; z-index: 1; }
.proj-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s; }
.proj-pick:hover { border-color: rgba(127,220,192,.45); transform: translateY(-2px); text-decoration: none; }
.proj-num { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--accent2); border: 1px solid rgba(127,220,192,.35); border-radius: 999px; padding: 3px 9px; line-height: 1.4; }
.proj-body { display: grid; gap: 6px; }
.proj-name { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.proj-line { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.proj-tags { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted2); letter-spacing: .02em; }
.proj-go { color: var(--accent2); font-size: 1.1rem; transition: transform .2s; }
.proj-pick:hover .proj-go { transform: translateY(3px); }
#f1-project, #sql-project { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { .proj-pick, .proj-go { transition: none; } .proj-pick:hover { transform: none; } }
