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

  :root {
    --bg: #0B0B0A;
    --bg-2: #131310;
    --bg-3: #1B1B17;
    --ink: #F2EDE2;
    --ink-mute: #8A867C;
    --ink-faint: #4A4842;
    --accent: #D4FF3D;
    --accent-2: #FF5A1F;
    --line: #26241F;
    --gutter: clamp(20px, 4vw, 56px);
    --easing: cubic-bezier(0.65, 0, 0.35, 1);
    --easing-out: cubic-bezier(0.22, 1, 0.36, 1);
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* Tabular numerals everywhere numeric */
  .num, .yr, .idx, .scene-num, .ticker-row span, .now-row .key, .topnav-time, .stat-num, .archive-item .yr {
    font-variant-numeric: tabular-nums;
  }

  /* Em as semantic emphasis: color-only treatment */
  em { font-style: normal; color: var(--accent); }

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

  /* ===========================================
     SIDE RAIL + TOP NAV (from v2)
  =========================================== */
  .rail {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 64px;
    border-right: 1px solid var(--line);
    background: var(--bg);
    
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
  }
  .rail-logo { font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.04em; }
  .rail-logo span { color: var(--accent); }

  .rail-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .rail-vertical span { color: var(--accent); }

  .rail-pulse {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
  }
  .rail-pulse::before {
    content: ""; position: absolute; inset: -4px;
    border-radius: 50%; background: var(--accent);
    opacity: 0.4;
    animation: pulse 2s infinite var(--easing);
  }
  @keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
  }

  .topnav {
    position: fixed;
    top: 0; right: 0; z-index: 100;
    padding: 24px var(--gutter);
    display: flex; align-items: center; gap: 36px;
    
    background: var(--bg);
    border-bottom: 1px solid transparent;
    border-left: 1px solid var(--line);
    transition: border-color 0.4s;
  }
  .topnav.scrolled { border-bottom-color: var(--line); }
  .topnav a {
    color: var(--ink); text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
  }
  .topnav a::after {
    content: ""; position: absolute;
    left: 0; bottom: 0; height: 1px; width: 0;
    background: var(--accent);
    transition: width 0.4s var(--easing);
  }
  .topnav a:hover::after { width: 100%; }
  .topnav a.active { color: var(--accent); }
  .topnav a.active::after { width: 100%; background: var(--accent); }
  .topnav-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    text-transform: uppercase;
  }

  @media (max-width: 768px) {
    .rail { display: none; }
    .topnav { padding: 16px var(--gutter); gap: 16px; left: 0; right: 0; justify-content: space-between; border-left: none; }
    .topnav-time { display: none; }
  }

  main { padding-left: 64px; }
  @media (max-width: 768px) { main { padding-left: 0; } }

  .container { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

  .label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .label::before {
    content: ""; width: 8px; height: 8px;
    background: var(--accent); border-radius: 50%;
  }

  /* ===========================================
     HERO (v2 layout, v3 typography)
  =========================================== */
  .hero {
    min-height: 100vh;
    padding: 140px var(--gutter) 60px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 24px 40px;
    overflow: hidden;
  }

  .hero-bignum, .hero-bignum-shadow {
    position: absolute;
    top: 60px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 200;
    font-size: clamp(180px, 32vw, 520px);
    line-height: 0.8;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.06em;
  }
  .hero-bignum { right: var(--gutter); color: var(--accent); }
  .hero-bignum-shadow {
    right: calc(var(--gutter) - 4px);
    color: transparent;
    -webkit-text-stroke: 1px var(--ink-faint);
    z-index: -1;
  }

  .hero-tag { grid-column: 1 / 2; grid-row: 1 / 2; position: relative; z-index: 2; }
  .hero-tag .label { margin-bottom: 12px; }
  .hero-tag p { font-size: 14px; color: var(--ink-mute); max-width: 340px; line-height: 1.5; }

  .hero-name {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    align-self: end;
    position: relative;
    z-index: 2;
  }
  .hero-name h1 {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(60px, 13vw, 200px);
    line-height: 0.85;
    letter-spacing: -0.055em;
  }
  .hero-name .word { display: inline-block; overflow: hidden; vertical-align: top; }
  .hero-name .word > span {
    display: inline-block;
    transform: translateY(110%);
    animation: wordUp 1.2s var(--easing-out) forwards;
  }
  .hero-name .word:nth-child(1) > span { animation-delay: 0.2s; }
  .hero-name .word:nth-child(2) > span { animation-delay: 0.4s; }
  @keyframes wordUp { to { transform: translateY(0); } }

  /* Outlined surname (v3 signature move) */
  .hero-name .surname {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    font-weight: 300;
  }
  .hero-name .dot { color: var(--accent); -webkit-text-stroke: 0; }

  .hero-bottom {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 1s var(--easing-out) 1.1s forwards;
  }
  @keyframes fadeUp { to { opacity: 1; } }
  .hero-bottom .role {
    font-size: clamp(14px, 1.3vw, 17px);
    color: var(--ink-mute);
    line-height: 1.5;
    max-width: 460px;
  }
  .hero-bottom .role strong { color: var(--ink); font-weight: 600; }
  .hero-bottom .meta-block .label { margin-bottom: 8px; }
  .hero-bottom .meta-block .val {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  @media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; padding-top: 100px; }
    .hero-tag, .hero-name, .hero-bottom { grid-column: 1 / 2; }
    .hero-bottom { grid-template-columns: 1fr; gap: 20px; }
    .hero-bignum { font-size: 220px; top: 280px; opacity: 0.7; }
    .hero-bignum-shadow { display: none; }
  }

  /* ===========================================
     TICKER
  =========================================== */
  .ticker {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: var(--bg);
    padding: 16px 0;
  }
  .ticker-row {
    display: flex; gap: 48px;
    width: max-content;
    align-items: center;
    white-space: nowrap;
  }
  .ticker-row.r1 { animation: tk 50s linear infinite; will-change: transform; }
  .ticker-row.r2 { display: none; }
  .ticker.paused .ticker-row { animation-play-state: paused; }
  .ticker:hover .ticker-row { animation-play-state: paused; }
  .ticker-row span {
    font-weight: 600;
    font-size: clamp(28px, 4.5vw, 56px);
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .ticker-row .alt {
    color: transparent;
    -webkit-text-stroke: 1px var(--ink);
    font-weight: 400;
  }
  .ticker-row .star { color: var(--accent); font-size: 24px; -webkit-text-stroke: 0; }
  @keyframes tk { to { transform: translateX(-50%); } }

  /* ===========================================
     ABOUT (v2 + v3)
  =========================================== */
  .about {
    padding: 140px var(--gutter);
    background: var(--bg);
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    max-width: 1440px;
    margin: 0 auto;
  }
  .about-text .label { margin-bottom: 32px; }
  .about-text h2 {
    font-weight: 500;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 36px;
  }
  .about-text p {
    font-size: 17px;
    color: var(--ink-mute);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 20px;
  }
  .about-text p strong { color: var(--ink); font-weight: 600; }

  .now-divider {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    margin-bottom: 4px;
  }
  .now-divider span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .now-panel {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 28px;
    position: sticky;
    top: 100px;
    align-self: start;
  }
  .now-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .now-panel-header .title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .now-panel-header .live {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex; align-items: center; gap: 6px;
  }
  .now-panel-header .live::before {
    content: ""; width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
    animation: blink 1.5s infinite;
  }
  @keyframes blink { 50% { opacity: 0.3; } }

  .now-row {
    display: flex; justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
    align-items: baseline; gap: 16px;
  }
  .now-row:last-child { border-bottom: 0; }
  .now-row .key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    flex-shrink: 0;
  }
  .now-row .val {
    font-size: 15px; font-weight: 500;
    color: var(--ink);
    text-align: right;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  @media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .now-panel { position: static; }
  }

  /* ===========================================
     WORK — v1's hover-peek list (the keeper) + filter chips
  =========================================== */
  .work {
    padding: 140px var(--gutter);
    background: var(--bg);
    position: relative;
  }
  .work-header {
    max-width: 1440px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    flex-wrap: wrap;
  }
  .work-header h2 {
    font-weight: 600;
    font-size: clamp(48px, 7vw, 112px);
    line-height: 0.95;
    letter-spacing: -0.05em;
  }
  .work-header .work-count { text-align: right; color: var(--ink-mute); }
  .work-header .work-count .num {
    font-weight: 500;
    font-size: 48px;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  /* Filter chips */
  .filters {
    max-width: 1440px;
    margin: 0 auto 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }
  .filters .label { margin-right: 16px; }
  .filter-chip {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
  }
  .filter-chip:hover { border-color: var(--ink-mute); }
  .filter-chip.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
  .filter-chip .count {
    margin-left: 6px;
    color: var(--ink-faint);
    font-weight: 400;
  }
  .filter-chip.active .count { color: var(--bg); opacity: 0.7; }

  .work-list {
    max-width: 1440px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    list-style: none;
  }
  .work-item {
    border-bottom: 1px solid var(--line);
    transition: max-height 0.4s var(--easing), opacity 0.3s;
    overflow: hidden;
    max-height: 200px;
  }
  .work-item.hidden {
    max-height: 0;
    opacity: 0;
    border-bottom-color: transparent;
  }
  .work-item a {
    display: grid;
    grid-template-columns: 60px 2.4fr 1fr 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 32px 0;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.4s var(--easing);
    position: relative;
  }
  .work-item .idx {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink-faint);
    letter-spacing: 0.1em;
  }
  .work-item .name {
    font-weight: 500;
    font-size: clamp(28px, 3.6vw, 48px);
    line-height: 1;
    letter-spacing: -0.035em;
    transition: transform 0.5s var(--easing-out), color 0.4s;
  }
  .work-item .cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .work-item .yr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ink-mute);
  }
  .work-item .arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s var(--easing);
  }
  .work-item .arrow svg { width: 14px; height: 14px; transition: transform 0.4s var(--easing); }
  .work-item:hover .name { transform: translateX(20px); color: var(--accent); }
  .work-item:hover .arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
  .work-item:hover .arrow svg { color: var(--bg); }

  /* Hover-peek thumbnail (v1's signature) — transform-only for perf */
  .work-peek {
    position: fixed;
    top: 0; left: 0;
    width: 280px; height: 320px;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    transition: opacity 0.25s var(--easing);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    will-change: transform, opacity;
  }
  .work-peek.active { opacity: 1; }
  .work-peek-card {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
  }
  .work-peek-card.show { opacity: 1; }

  .peek-mosotho { background: linear-gradient(135deg, #F58220, #C25500); }
  .peek-forte { background: linear-gradient(135deg, #2A4D3E, #1A3328); }
  .peek-cquential { background: linear-gradient(135deg, #1A3A6B, #0D2347); }
  .peek-dataorbis { background: linear-gradient(135deg, #4A6FB5, #2C4A8C); }
  .peek-google { background: linear-gradient(135deg, #4285F4, #1A56C7); }
  .peek-phanda { background: linear-gradient(135deg, #FFC107, #E0A500); }
  .peek-brewtiful { background: linear-gradient(135deg, #E85A4F, #B83A2F); }
  .peek-mandela { background: linear-gradient(135deg, #1B2545, #0E1530); }
  .peek-recycle { background: linear-gradient(135deg, #A8C957, #7FA830); }
  .peek-logos { background: linear-gradient(135deg, #1B1B17, #0B0B0A); }
  .peek-springboks { background: linear-gradient(135deg, #006A4E, #00A86B); }
  .peek-bathroom { background: linear-gradient(135deg, #4A4842, #1B1B17); }

  .peek-meta {
    position: absolute;
    bottom: 16px; left: 16px; right: 16px;
    display: flex; justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.85);
  }

  @media (max-width: 768px) {
    .work-item a { grid-template-columns: 40px 1fr auto; gap: 16px; }
    .work-item .cat, .work-item .yr { display: none; }
    .work-peek { display: none; }
  }

  /* ===========================================
     PROCESS STRIP (v1)
  =========================================== */
  .process {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 100px var(--gutter);
  }
  .process-head {
    max-width: 1440px;
    margin: 0 auto 60px;
  }
  .process-head h2 {
    font-weight: 500;
    font-size: clamp(36px, 4.5vw, 56px);
    max-width: 720px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-top: 16px;
  }
  .process-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
  }
  .process-item .num {
    font-weight: 500;
    font-size: 48px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
  }
  .process-item h4 {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
  }
  .process-item p {
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.5;
  }
  @media (max-width: 900px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* ===========================================
     TOOLBOX — draggable ticker (v2)
  =========================================== */
  .toolbox { padding: 120px var(--gutter); background: var(--bg); }
  .toolbox-head {
    max-width: 1440px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
  }
  .toolbox-head h2 {
    font-weight: 600;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.04em;
  }
  .toolbox-head p {
    color: var(--ink-mute);
    max-width: 380px;
    text-align: right;
    margin-left: auto;
  }
  @media (max-width: 768px) {
    .toolbox-head { grid-template-columns: 1fr; }
    .toolbox-head p { text-align: left; margin-left: 0; }
  }

  .tool-track {
    overflow: hidden;
    position: relative;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    cursor: grab;
  }
  .tool-track::before, .tool-track::after {
    content: ""; position: absolute;
    top: 0; bottom: 0;
    width: 100px; z-index: 2;
    pointer-events: none;
  }
  .tool-track::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .tool-track::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

  .tool-track-inner {
    display: flex; gap: 16px;
    width: max-content;
    animation: ttk 60s linear infinite;
    will-change: transform;
  }
  .tool-track.paused .tool-track-inner { animation-play-state: paused; }
  .tool-track:hover .tool-track-inner { animation-play-state: paused; }
  .tool-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 16px 28px;
    display: flex; align-items: center; gap: 14px;
    flex-shrink: 0;
    transition: background 0.4s, color 0.4s, border-color 0.4s;
  }
  .tool-pill:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
  .tool-pill .ico {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.02em;
  }
  .ico-ps { background: linear-gradient(135deg, #001E36, #31A8FF); }
  .ico-ai { background: linear-gradient(135deg, #330000, #FF9A00); }
  .ico-id { background: linear-gradient(135deg, #49021F, #FF3366); }
  .ico-ae { background: linear-gradient(135deg, #00005B, #9999FF); }
  .ico-pr { background: linear-gradient(135deg, #00005B, #9999FF); }
  .ico-xd { background: linear-gradient(135deg, #2E001F, #FF61F6); }
  .ico-wp { background: linear-gradient(135deg, #21759B, #4A8AB0); }
  .ico-el { background: linear-gradient(135deg, #92003B, #D40258); }
  .ico-ga { background: linear-gradient(135deg, #F9AB00, #E37400); }
  .ico-sm { background: linear-gradient(135deg, #FF642D, #C5340D); }
  .ico-ux { background: linear-gradient(135deg, #1B1B17, #4A4842); }
  .tool-pill .name {
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.015em;
    white-space: nowrap;
  }
  @keyframes ttk { to { transform: translateX(-50%); } }

  /* ===========================================
     AWARDS — timeline rail (v2)
  =========================================== */
  .awards {
    padding: 120px var(--gutter);
    background: var(--bg-2);
    border-top: 1px solid var(--line);
  }
  .awards-head { max-width: 1440px; margin: 0 auto 60px; }
  .awards-head h2 {
    font-weight: 600;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .timeline {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    padding-left: 80px;
  }
  .timeline::before {
    content: ""; position: absolute;
    left: 30px; top: 0; bottom: 0;
    width: 1px; background: var(--line);
  }
  .timeline::after {
    content: ""; position: absolute;
    left: 30px; top: 0;
    width: 1px; background: var(--accent);
    height: var(--progress, 0%);
    transition: height 0.1s linear;
    box-shadow: 0 0 12px var(--accent);
  }

  .tl-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 28px;
    padding: 28px 0;
    align-items: center;
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .tl-item::before {
    content: ""; position: absolute;
    left: -56px; top: 50%;
    width: 12px; height: 12px;
    background: var(--bg-2);
    border: 2px solid var(--line);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.4s var(--easing);
  }
  .tl-item.passed::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 255, 61, 0.15);
  }
  .tl-item .yr {
    font-weight: 500;
    font-size: 28px;
    color: var(--ink-mute);
    transition: color 0.4s;
    letter-spacing: -0.03em;
  }
  .tl-item.passed .yr { color: var(--accent); }
  .tl-item .title {
    font-weight: 500;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.2;
    letter-spacing: -0.025em;
  }
  .tl-item .org {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }

  @media (max-width: 768px) {
    .timeline { padding-left: 40px; }
    .timeline::before, .timeline::after { left: 14px; }
    .tl-item::before { left: -32px; }
    .tl-item { grid-template-columns: 1fr; gap: 6px; }
  }

  /* ===========================================
     CONTACT
  =========================================== */
  .contact {
    padding: 160px var(--gutter) 80px;
    background: var(--bg);
    text-align: center;
    position: relative;
  }
  .contact .label { margin-bottom: 32px; }
  .contact h2 {
    font-weight: 600;
    font-size: clamp(56px, 11vw, 200px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    margin-bottom: 56px;
  }
  .contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 28px 48px;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    transition: transform 0.4s var(--easing-out), background 0.3s;
  }
  .contact-cta:hover { background: var(--ink); }
  .contact-cta svg { width: 16px; height: 16px; transition: transform 0.4s var(--easing); }
  .contact-cta:hover svg { transform: rotate(-45deg) translateX(2px); }

  .contact-info {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid var(--line);
    padding-top: 60px;
    text-align: left;
  }
  .contact-info .label { margin-bottom: 12px; }
  .contact-info .val {
    font-weight: 500;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: -0.02em;
  }
  .contact-info .val a {
    color: inherit; text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
  }
  .contact-info .val a:hover { border-color: var(--accent); }

  @media (max-width: 768px) {
    .contact-info { grid-template-columns: 1fr; gap: 24px; }
  }

  /* Footer */
  footer {
    border-top: 1px solid var(--line);
    padding: 32px var(--gutter);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
  }
  footer .copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    text-transform: uppercase;
  }
  footer .domain { color: var(--accent); }
  footer .top-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
  }
  footer .top-link:hover { color: var(--accent); }

  /* Reveal */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--easing-out), transform 0.9s var(--easing-out);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--easing-out), transform 0.8s var(--easing-out);
  }
  .reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
  .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
  .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
  .reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
  /* ==================================================================
     MOBILE — APP MODE (under 768px)
     A purpose-built layout that feels native, not a squeezed desktop site.
     Adds: status bar, bottom tab bar, gradient work cards, snap sections,
     pressed states, safe-area handling.
     ================================================================== */

  /* Hide mobile-only elements on desktop */
  .m-statusbar, .m-tabbar { display: none; }

  @media (max-width: 768px) {
    /* Allow safe-area insets */
    :root {
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* Hide desktop chrome, show mobile chrome */
    .topnav { display: none; }
    .m-statusbar { display: flex; }
    .m-tabbar { display: flex; }

    /* Push body content past the status bar at top, tab bar at bottom */
    body {
      padding-top: calc(36px + var(--safe-top));
      padding-bottom: calc(64px + var(--safe-bottom));
    }
    main { padding-left: 0; }

    /* ===== STATUS BAR ===== */
    .m-statusbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: calc(36px + var(--safe-top));
      padding: var(--safe-top) 16px 0;
      background: var(--bg);
      
      -webkit-
      border-bottom: 1px solid var(--line);
      z-index: 200;
      align-items: center;
      justify-content: space-between;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink);
    }
    .m-status-left, .m-status-right {
      display: flex; align-items: center; gap: 8px;
      flex: 1;
    }
    .m-status-right { justify-content: flex-end; }
    .m-status-center { flex: 0 0 auto; }
    .m-pulse {
      width: 7px; height: 7px;
      background: var(--accent);
      border-radius: 50%;
      position: relative;
    }
    .m-pulse::before {
      content: ""; position: absolute; inset: -3px;
      border-radius: 50%; background: var(--accent);
      opacity: 0.4;
      animation: pulse 2s infinite var(--easing);
    }
    .m-status-text { color: var(--accent); font-weight: 700; }
    .m-status-logo {
      font-family: 'Hanken Grotesk', sans-serif;
      font-weight: 700;
      font-size: 14px;
      letter-spacing: -0.04em;
      text-transform: none;
    }
    .m-status-logo span { color: var(--accent); }
    .m-clock { color: var(--ink); font-variant-numeric: tabular-nums; }
    .m-loc { color: var(--ink-mute); }

    /* ===== BOTTOM TAB BAR ===== */
    .m-tabbar {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      height: calc(64px + var(--safe-bottom));
      padding-bottom: var(--safe-bottom);
      background: var(--bg);
      
      -webkit-
      border-top: 1px solid var(--line);
      z-index: 200;
      justify-content: space-around;
      align-items: stretch;
    }
    .m-tab {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      text-decoration: none;
      color: var(--ink-mute);
      transition: color 0.25s var(--easing);
      position: relative;
      padding: 8px 0;
      -webkit-tap-highlight-color: transparent;
    }
    .m-tab svg { width: 20px; height: 20px; transition: transform 0.3s var(--easing-out); }
    .m-tab-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 500;
    }
    .m-tab.active { color: var(--accent); }
    .m-tab.active::before {
      content: "";
      position: absolute;
      top: 0; left: 25%; right: 25%;
      height: 2px;
      background: var(--accent);
      border-radius: 0 0 2px 2px;
      box-shadow: 0 0 10px var(--accent);
    }
    .m-tab:active svg { transform: scale(0.88); }

    /* ===== HERO refinements ===== */
    .hero {
      padding: 24px 20px 48px;
      min-height: calc(100vh - 100px);
      gap: 16px 0;
    }
    .hero-bignum { font-size: 200px; top: 220px; right: -10px; opacity: 0.65; }
    .hero-bignum-shadow { display: none; }
    .hero-tag p { max-width: none; }
    .hero-name h1 {
      font-size: clamp(56px, 18vw, 90px);
      letter-spacing: -0.06em;
    }
    .hero-bottom { padding-top: 24px; gap: 16px; }
    .hero-bottom .role { font-size: 14px; }
    .hero-bottom .meta-block .val { font-size: 16px; }

    /* ===== TICKER — slow down, single visual rhythm ===== */
    .ticker { padding: 12px 0; }
    .ticker-row.r2 { display: none; }
    .ticker-row span { font-size: 32px; }
    .ticker-row .star { font-size: 18px; }

    /* ===== ABOUT — Now Panel as a "home widget" ===== */
    .about { padding: 48px 20px; }
    .about-grid { gap: 24px; }
    .about-text h2 { font-size: 36px; margin-bottom: 24px; }
    .about-text p { font-size: 15px; }

    .now-panel {
      padding: 22px;
      border-radius: 16px;
      background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
      box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px rgba(0,0,0,0.4);
    }
    .now-panel-header { padding-bottom: 14px; margin-bottom: 18px; }
    .now-row { padding: 11px 0; }
    .now-row .val { font-size: 14px; }

    /* ===== WORK — full-width gradient cards (the big mobile move) ===== */
    .work { padding: 48px 20px; }
    .work-header { margin-bottom: 28px; gap: 16px; }
    .work-header h2 { font-size: 48px; }
    .work-header .work-count { text-align: left; }
    .work-header .work-count .num { font-size: 36px; }

    /* Sticky horizontal filter chips */
    .filters {
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
      gap: 8px;
      margin: 0 -20px 20px;
      padding: 8px 20px;
      scrollbar-width: none;
      position: sticky;
      top: calc(36px + var(--safe-top));
      background: var(--bg);
      
      -webkit-
      z-index: 50;
      border-bottom: 1px solid var(--line);
    }
    .filters::-webkit-scrollbar { display: none; }
    .filters .label { display: none; }
    .filter-chip {
      flex-shrink: 0;
      scroll-snap-align: start;
      padding: 9px 16px;
      font-size: 10px;
    }

    /* Work list — each item becomes a card with project gradient */
    .work-list { border-top: 0; display: flex; flex-direction: column; gap: 14px; }
    .work-item {
      max-height: none;
      border-bottom: 0;
      border-radius: 14px;
      overflow: hidden;
      transition: max-height 0.4s var(--easing), opacity 0.3s, transform 0.2s var(--easing-out);
    }
    .work-item.hidden {
      max-height: 0;
      margin: 0;
      opacity: 0;
    }
    .work-item:active { transform: scale(0.98); }
    .work-item a {
      grid-template-columns: auto 1fr auto;
      grid-template-rows: auto auto;
      gap: 6px 14px;
      padding: 22px 18px;
      align-items: center;
      position: relative;
      color: #fff;
      min-height: 110px;
    }
    .work-item .idx {
      grid-column: 1; grid-row: 1;
      color: rgba(255,255,255,0.55);
      font-size: 10px;
    }
    .work-item .name {
      grid-column: 1 / 3; grid-row: 2;
      font-size: 26px;
      letter-spacing: -0.035em;
      color: #fff;
      transform: none !important;
    }
    .work-item .cat {
      grid-column: 2; grid-row: 1;
      display: inline-block !important;
      color: rgba(255,255,255,0.65);
      font-size: 9px;
      letter-spacing: 0.15em;
    }
    .work-item .yr {
      display: none; /* year already in cat row context, save space */
    }
    .work-item .arrow {
      grid-column: 3; grid-row: 1 / 3;
      align-self: center;
      width: 36px; height: 36px;
      background: rgba(255,255,255,0.12);
      border-color: transparent;
      
    }
    .work-item .arrow svg { color: #fff; }
    .work-item:hover .name { color: #fff; }
    .work-item:hover .arrow {
      background: var(--accent);
      transform: rotate(-45deg);
    }
    .work-item:hover .arrow svg { color: var(--bg); }

    /* Apply each project's gradient to its card on mobile */
    .work-item[data-peek="mosotho"] a { background: linear-gradient(135deg, #F58220, #C25500); }
    .work-item[data-peek="forte"] a { background: linear-gradient(135deg, #2A4D3E, #1A3328); }
    .work-item[data-peek="cquential"] a { background: linear-gradient(135deg, #1A3A6B, #0D2347); }
    .work-item[data-peek="dataorbis"] a { background: linear-gradient(135deg, #4A6FB5, #2C4A8C); }
    .work-item[data-peek="google"] a { background: linear-gradient(135deg, #4285F4, #1A56C7); }
    .work-item[data-peek="phanda"] a { background: linear-gradient(135deg, #FFC107, #E0A500); }
    .work-item[data-peek="phanda"] .name,
    .work-item[data-peek="phanda"] .idx,
    .work-item[data-peek="phanda"] .cat { color: #0B0B0A; }
    .work-item[data-peek="phanda"] .idx,
    .work-item[data-peek="phanda"] .cat { color: rgba(11,11,10,0.7); }
    .work-item[data-peek="phanda"] .arrow { background: rgba(11,11,10,0.15); }
    .work-item[data-peek="phanda"] .arrow svg { color: #0B0B0A; }
    .work-item[data-peek="brewtiful"] a { background: linear-gradient(135deg, #E85A4F, #B83A2F); }
    .work-item[data-peek="mandela"] a { background: linear-gradient(135deg, #1B2545, #0E1530); }
    .work-item[data-peek="recycle"] a { background: linear-gradient(135deg, #A8C957, #7FA830); }
    .work-item[data-peek="springboks"] a { background: linear-gradient(135deg, #006A4E, #00A86B); }
    .work-item[data-peek="bathroom"] a { background: linear-gradient(135deg, #4A4842, #1B1B17); }
    .work-item[data-peek="logos"] a { background: linear-gradient(135deg, #1B1B17, #0B0B0A); border: 1px solid var(--line); }

    /* ===== PROCESS — 2 cols, tighter ===== */
    .process { padding: 48px 20px; }
    .process-head h2 { font-size: 28px; }
    .process-grid { gap: 24px; }
    .process-item .num { font-size: 36px; margin-bottom: 10px; }
    .process-item h4 { font-size: 15px; }
    .process-item p { font-size: 12px; }

    /* ===== TOOLBOX — make it feel like swipeable cards ===== */
    .toolbox { padding: 48px 20px; }
    .toolbox-head h2 { font-size: 36px; }
    .toolbox-head p { font-size: 13px; }
    .tool-track {
      cursor: default;
      padding: 18px 0;
    }
    .tool-track::before, .tool-track::after { width: 30px; }
    .tool-pill {
      padding: 12px 20px;
    }
    .tool-pill .name { font-size: 14px; }
    .tool-pill .ico { width: 24px; height: 24px; font-size: 11px; }

    /* ===== AWARDS / TIMELINE ===== */
    .awards { padding: 48px 20px; }
    .awards-head h2 { font-size: 36px; }
    .tl-item { padding: 20px 0; }
    .tl-item .yr { font-size: 22px; }
    .tl-item .title { font-size: 17px; }
    .tl-item .org { font-size: 9px; }

    /* ===== CONTACT — bigger card, big tap target ===== */
    .contact { padding: 64px 20px 32px; }
    .contact h2 { font-size: 56px; margin-bottom: 32px; }
    .contact-cta {
      padding: 22px 36px;
      font-size: 12px;
      width: 100%;
      max-width: 320px;
      justify-content: center;
    }
    .contact-info {
      margin-top: 48px;
      padding-top: 36px;
      gap: 20px;
    }
    .contact-info .val { font-size: 18px; }

    /* ===== FOOTER — minimal on mobile ===== */
    footer { padding: 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
    footer .copy { font-size: 9px; }
  }

  /* Even tighter on very small phones */
  @media (max-width: 380px) {
    .hero-name h1 { font-size: 56px; }
    .work-header h2 { font-size: 40px; }
    .contact h2 { font-size: 44px; }
    .m-status-text { display: none; }
    .m-tab-label { font-size: 8px; }
  }

  /* Reduce motion — respect user preference */
  @media (prefers-reduced-motion: reduce) {
    .ticker-row, .tool-track-inner, .m-pulse::before, .rail-pulse::before {
      animation: none !important;
    }
    .reveal, .reveal-stagger > * { transition: none !important; opacity: 1; transform: none; }
  }
  /* ==================================================================
     SHARED SUB-PAGE CHROME
     Components reused across services / portfolio / qualifications / ventures
     ================================================================== */

  /* Page hero — used at top of sub-pages */
  .page-hero {
    padding: 140px var(--gutter) 60px;
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .page-hero-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: end;
  }
  .page-hero h1 {
    font-weight: 600;
    font-size: clamp(48px, 8vw, 128px);
    line-height: 0.92;
    letter-spacing: -0.05em;
    margin-top: 16px;
  }
  .page-hero h1 em {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    font-style: normal;
    font-weight: 300;
  }
  .page-hero .lede {
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--ink-mute);
    line-height: 1.55;
    max-width: 460px;
  }
  .page-hero .lede strong { color: var(--ink); font-weight: 600; }

  .page-hero-meta {
    display: grid;
    gap: 16px;
    align-self: end;
  }
  .page-hero-meta .meta-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 12px;
    gap: 16px;
  }
  .page-hero-meta .meta-row:last-child { border-bottom: 0; }
  .page-hero-meta .meta-row .key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .page-hero-meta .meta-row .val {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-align: right;
  }

  @media (max-width: 768px) {
    .page-hero { padding: 100px 20px 40px; }
    .page-hero-inner { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 48px; }
  }

  /* Breadcrumbs */
  .crumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
    flex-wrap: wrap;
  }
  .crumbs a {
    color: var(--ink-mute);
    text-decoration: none;
    transition: color 0.3s;
  }
  .crumbs a:hover { color: var(--accent); }
  .crumbs .sep { color: var(--ink-faint); }
  .crumbs .current { color: var(--accent); }

  /* Section block — generic content section */
  .section {
    padding: 100px var(--gutter);
    max-width: 1440px;
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
  }
  .section:last-of-type { border-bottom: 0; }
  .section-head {
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
  }
  .section-head h2 {
    font-weight: 600;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.04em;
  }
  .section-head h2 em {
    color: var(--accent);
    font-style: normal;
  }
  .section-head .lede {
    color: var(--ink-mute);
    max-width: 380px;
    margin-left: auto;
    text-align: right;
    font-size: 14px;
    line-height: 1.5;
  }
  @media (max-width: 768px) {
    .section { padding: 60px 20px; }
    .section-head { grid-template-columns: 1fr; gap: 16px; }
    .section-head .lede { text-align: left; margin-left: 0; }
  }

  /* Card grid — for services, ventures */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }

  .v-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s var(--easing-out), border-color 0.3s, background 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
  }
  .v-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
  }
  .v-card .v-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--ink-mute);
  }
  .v-card .v-title {
    font-weight: 600;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }
  .v-card .v-title em { color: var(--accent); font-style: normal; }
  .v-card .v-desc {
    font-size: 14px;
    color: var(--ink-mute);
    line-height: 1.55;
  }
  .v-card .v-meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .v-card .v-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .v-card .v-status::before {
    content: ""; width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }
  .v-card .v-status.live { color: var(--accent); }
  .v-card .v-status.dev { color: #FFA94D; }
  .v-card .v-status.dev::before { background: #FFA94D; }
  .v-card .v-status.soon { color: var(--ink-mute); }
  .v-card .v-status.soon::before { background: var(--ink-mute); }
  .v-card .v-link-arrow {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s var(--easing);
  }
  .v-card .v-link-arrow svg { width: 12px; height: 12px; transition: transform 0.3s; }
  .v-card:hover .v-link-arrow {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(-45deg);
  }
  .v-card:hover .v-link-arrow svg { color: var(--bg); }

  /* Cross-page CTA strip */
  .cta-strip {
    padding: 80px var(--gutter);
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .cta-strip h3 {
    font-weight: 600;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
  }
  .cta-strip h3 em { color: var(--accent); font-style: normal; }
  .cta-strip p {
    color: var(--ink-mute);
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-strip .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    transition: transform 0.3s var(--easing-out), background 0.3s, color 0.3s;
  }
  .btn-primary { background: var(--accent); color: var(--bg); }
  .btn-primary:hover { background: var(--ink); }
  .btn-ghost { border: 1px solid var(--line); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn svg { width: 14px; height: 14px; }

  /* Detail page (e.g. mosotho.html) — hero image */
  .detail-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    position: relative;
    overflow: hidden;
  }
  .detail-hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
  }
  .detail-hero-content .name {
    font-weight: 700;
    font-size: clamp(60px, 12vw, 180px);
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: #fff;
  }
  .detail-hero-content .tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
  }

  /* Detail body — long-form content */
  .detail-body {
    max-width: 880px;
    margin: 0 auto;
    padding: 100px var(--gutter);
  }
  .detail-body h2 {
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 48px 0 20px;
  }
  .detail-body h2:first-child { margin-top: 0; }
  .detail-body h2 em { color: var(--accent); font-style: normal; }
  .detail-body p {
    font-size: 17px;
    color: var(--ink-mute);
    line-height: 1.7;
    margin-bottom: 18px;
  }
  .detail-body p strong { color: var(--ink); font-weight: 600; }
  .detail-body p em { color: var(--accent); font-style: normal; }
  .detail-body ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
  }
  .detail-body ul li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    color: var(--ink-mute);
    font-size: 16px;
    line-height: 1.6;
  }
  .detail-body ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
  }

  /* Detail meta panel — runs alongside content */
  .detail-meta {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 24px;
    margin: 32px 0;
  }
  .detail-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    gap: 16px;
  }
  .detail-meta-row:last-child { border-bottom: 0; }
  .detail-meta-row .key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .detail-meta-row .val {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    text-align: right;
  }

  /* Next/Prev navigation between detail pages */
  .pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 60px var(--gutter);
    border-top: 1px solid var(--line);
    max-width: 1440px;
    margin: 0 auto;
  }
  .pager a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.3s, transform 0.3s var(--easing-out);
  }
  .pager a:hover { border-color: var(--accent); transform: translateY(-2px); }
  .pager a .lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .pager a .name {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.025em;
  }
  .pager a.next { text-align: right; }

  @media (max-width: 768px) {
    .pager { grid-template-columns: 1fr; padding: 40px 20px; }
    .pager a.next { text-align: left; }
  }

  /* Service tile (for /services overview) */
  .service-tile {
    padding: 32px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s var(--easing-out), border-color 0.3s;
    display: grid;
    gap: 18px;
  }
  .service-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
  .service-tile .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--accent);
  }
  .service-tile .title {
    font-weight: 600;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .service-tile .desc {
    color: var(--ink-mute);
    font-size: 14px;
    line-height: 1.55;
  }
  .service-tile .pricing {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: 18px;
    border-top: 1px dashed var(--line);
  }

  /* Cert grid (for /qualifications) */
  .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }
  .cert-card {
    padding: 28px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.3s, transform 0.3s var(--easing-out);
  }
  .cert-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .cert-card .yr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
  }
  .cert-card .ttl {
    font-weight: 600;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
  }
  .cert-card .org {
    font-size: 13px;
    color: var(--ink-mute);
  }

  /* Cross-link footer (shows other pages) */
  .other-pages {
    padding: 60px var(--gutter);
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .other-pages-inner {
    max-width: 1440px;
    margin: 0 auto;
  }
  .other-pages h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    text-transform: uppercase;
    margin-bottom: 24px;
  }
  .other-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }
  .other-pages a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .other-pages a:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .other-pages a svg { width: 14px; height: 14px; }

  /* ==================================================================
     ABOUT PAGE — narrative, two lives, competencies, role grid,
     skill tiers, education list, references
     ================================================================== */

  /* Narrative — long-form prose */
  .narrative {
    max-width: 760px;
    margin: 0 auto;
  }
  .narrative p {
    font-size: 18px;
    color: var(--ink-mute);
    line-height: 1.75;
    margin-bottom: 24px;
    letter-spacing: -0.005em;
  }
  .narrative p:first-of-type {
    font-size: 22px;
    color: var(--ink);
    line-height: 1.55;
    font-weight: 400;
  }
  .narrative p strong { color: var(--ink); font-weight: 600; }
  .narrative p em { color: var(--accent); font-style: normal; font-weight: 500; }

  /* Two-lives panel */
  .two-lives {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .life-card {
    padding: 36px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.3s, transform 0.3s var(--easing-out);
  }
  .life-card:hover { border-color: var(--accent); transform: translateY(-3px); }
  .life-card .life-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .life-card h3 {
    font-weight: 600;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }
  .life-card .life-org {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--line);
  }
  .life-card p {
    color: var(--ink-mute);
    font-size: 15px;
    line-height: 1.65;
  }
  .life-card p strong { color: var(--ink); font-weight: 500; }
  .life-card p em { color: var(--accent); font-style: normal; font-weight: 600; }
  .life-card .life-link {
    margin-top: auto;
    padding-top: 12px;
    color: var(--accent);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: transform 0.3s;
    align-self: flex-start;
  }
  .life-card .life-link:hover { transform: translateX(4px); }

  @media (max-width: 768px) {
    .two-lives { grid-template-columns: 1fr; }
    .life-card { padding: 24px; }
    .life-card h3 { font-size: 24px; }
  }

  /* Competencies grid */
  .comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .comp-card {
    padding: 28px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.3s, transform 0.3s var(--easing-out);
  }
  .comp-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .comp-card .comp-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 14px;
  }
  .comp-card h4 {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
  }
  .comp-card p {
    color: var(--ink-mute);
    font-size: 14px;
    line-height: 1.6;
  }

  /* Role grid (career timeline as side-by-side blocks) */
  .role-grid {
    display: grid;
    gap: 20px;
  }
  .role-block {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
  }
  .role-block:last-child { border-bottom: 0; }
  .role-meta .role-yr {
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
  }
  .role-meta .role-org {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
    line-height: 1.5;
  }
  .role-content h3 {
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
  }
  .role-content ul {
    list-style: none;
    padding: 0;
  }
  .role-content ul li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 12px;
    color: var(--ink-mute);
    font-size: 15px;
    line-height: 1.6;
  }
  .role-content ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }
  .role-content em { color: var(--accent); font-style: normal; font-weight: 600; }

  @media (max-width: 768px) {
    .role-block { grid-template-columns: 1fr; gap: 12px; }
  }

  /* Skill tiers */
  .skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .skill-tier {
    padding: 28px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .skill-tier-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
  }
  .skill-tier .tier-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 5px 11px;
    background: rgba(212, 255, 61, 0.08);
    border: 1px solid rgba(212, 255, 61, 0.3);
    border-radius: 999px;
    margin-bottom: 10px;
  }
  .skill-tier .tier-desc {
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.5;
  }
  .skill-tier .skill-list {
    list-style: none;
    padding: 0;
  }
  .skill-tier .skill-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .skill-tier .skill-list li:last-child { border-bottom: 0; }

  /* Education list */
  .edu-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .edu-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
  }
  .edu-yr {
    font-weight: 500;
    font-size: 22px;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .edu-content .edu-title {
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .edu-content .edu-org {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  @media (max-width: 600px) {
    .edu-row { grid-template-columns: 1fr; gap: 6px; }
  }

  /* References grid */
  .ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .ref-card {
    padding: 24px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.3s;
  }
  .ref-card:hover { border-color: var(--accent); }
  .ref-card .ref-name {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
  }
  .ref-card .ref-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
  }
  .ref-card .ref-phone {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }

  /* ==================================================================
     PRICING PAGE V2 — tier cards, tabs, comparison
     QUOTE BUILDER V2 — toggles, sliders, pill groups, live receipt
     ================================================================== */

  /* --- Pricing tabs --- */
  .pricing-tabs {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 var(--gutter);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .pricing-tabs::-webkit-scrollbar { display: none; }
  .pricing-tab {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 14px 22px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s var(--easing);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .pricing-tab:hover { border-color: var(--ink-mute); }
  .pricing-tab.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
  .pricing-tab .icon {
    width: 22px; height: 22px;
    border-radius: 5px;
    background: var(--accent);
    color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: -0.04em;
    transition: all 0.25s;
  }
  .pricing-tab.active .icon {
    background: var(--bg);
    color: var(--accent);
  }

  /* --- Tier panel (one shows at a time, swapped via JS) --- */
  .tier-panel { display: none; }
  .tier-panel.active { display: block; animation: fadeIn 0.4s var(--easing-out); }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* --- Tier card grid --- */
  .tier-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
  .tier-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: border-color 0.3s, transform 0.3s var(--easing-out);
  }
  .tier-card:hover { transform: translateY(-3px); border-color: var(--accent); }
  .tier-card.featured {
    border-color: var(--accent);
    box-shadow: 0 20px 40px -20px rgba(212, 255, 61, 0.3);
  }
  .tier-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -1px; right: 20px;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--bg);
    padding: 5px 12px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    font-weight: 700;
  }

  /* Tier label pill — matches the EXPERT/FLUENT/WORKING reference */
  .tier-card .tier-label {
    display: inline-block;
    align-self: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 5px 11px;
    background: rgba(212, 255, 61, 0.08);
    border: 1px solid rgba(212, 255, 61, 0.3);
    border-radius: 999px;
    margin-bottom: 14px;
  }

  /* Heading + descriptor — sits before the dashed divider, like the
     "Daily tools — fluent in muscle memory." subline in the reference */
  .tier-card-head {
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 0;
  }
  .tier-card-head h3 {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    line-height: 1.1;
  }
  .tier-card-head p {
    color: var(--ink-mute);
    font-size: 13px;
    line-height: 1.5;
  }

  /* Price as a list-rhythm row — sits in the same dashed-divider cadence
     as the feature items below it, not as a separate heavy block */
  .tier-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-bottom: 1px dashed var(--line);
  }
  .tier-price .price-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .tier-price .from {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    text-transform: uppercase;
  }
  .tier-price .unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-mute);
    letter-spacing: 0.05em;
  }
  .tier-price .amount {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--accent);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  /* Feature list — exactly the skill-list pattern from the About page */
  .tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
  }
  .tier-features li {
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
  }
  .tier-features li:last-child { border-bottom: 0; }

  /* CTA button — sits at bottom */
  .tier-cta {
    margin-top: 18px;
    padding: 14px 20px;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    transition: all 0.25s;
  }
  .tier-cta:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
  .tier-card.featured .tier-cta {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
  .tier-card.featured .tier-cta:hover {
    background: var(--ink);
    border-color: var(--ink);
  }

  /* ==================================================================
     QUOTE BUILDER V3 — guided configurator
     - Numbered steps with completion state
     - Service tiles with mini-illustrations
     - Tier cards reusing the pricing-page tier-card pattern
     - Segmented complexity control (not a default slider)
     - Toggle switches (kept from V2)
     - "Build card" receipt that feels like a living document
     ================================================================== */

  .qb-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px var(--gutter);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
  }
  @media (max-width: 968px) {
    .qb-shell { grid-template-columns: 1fr; gap: 24px; padding: 40px var(--gutter); }
  }

  /* Form column */
  .qb-form { min-width: 0; }

  /* Step block */
  .qb-step {
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px dashed var(--line);
  }
  .qb-step:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

  .qb-step-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
  }
  .qb-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 1px dashed var(--line);
    color: var(--ink-mute);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    transition: all 0.3s var(--easing);
  }
  .qb-step.done .qb-step-num {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--bg);
  }
  .qb-step.active .qb-step-num {
    border-color: var(--accent);
    color: var(--accent);
    border-style: solid;
  }
  .qb-step h2 {
    font-weight: 600;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
  }
  .qb-step h2 em { color: var(--accent); font-style: normal; }
  .qb-step-hint {
    color: var(--ink-mute);
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0 24px 42px;
  }
  @media (max-width: 600px) {
    .qb-step-hint { margin-left: 0; }
  }

  /* === Service tiles with mini-illustrations === */
  .qb-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
  .qb-service-tile {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.25s var(--easing);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink);
    font-family: inherit;
    text-align: left;
  }
  .qb-service-tile:hover { border-color: var(--ink-mute); transform: translateY(-2px); }
  .qb-service-tile.active {
    border-color: var(--accent);
    background: rgba(212, 255, 61, 0.05);
  }
  .qb-service-glyph {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(212, 255, 61, 0.1);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.25s;
  }
  .qb-service-tile.active .qb-service-glyph {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
  .qb-service-glyph svg { width: 18px; height: 18px; }
  .qb-service-name {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.015em;
    line-height: 1.2;
  }
  .qb-service-from {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--ink-mute);
    margin-top: -4px;
  }

  /* === Tier cards (mirrors pricing.html .tier-card pattern) === */
  .qb-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }
  .qb-tier {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    cursor: pointer;
    text-align: left;
    color: var(--ink);
    font-family: inherit;
    transition: all 0.25s var(--easing);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
  }
  .qb-tier:hover { border-color: var(--ink-mute); transform: translateY(-2px); }
  .qb-tier.active {
    border-color: var(--accent);
    background: rgba(212, 255, 61, 0.05);
  }
  .qb-tier.active::after {
    content: "✓";
    position: absolute;
    top: 18px; right: 18px;
    width: 22px; height: 22px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
  }
  .qb-tier-name {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    padding-right: 32px;
  }
  .qb-tier-desc {
    color: var(--ink-mute);
    font-size: 12px;
    line-height: 1.45;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 12px;
    flex-grow: 1;
  }
  .qb-tier-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .qb-tier-price .from {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    text-transform: uppercase;
  }
  .qb-tier-price .amt {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--accent);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }

  /* === Segmented complexity control === */
  .qb-segmented {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
  }
  .qb-seg {
    background: transparent;
    border: none;
    color: var(--ink-mute);
    padding: 12px 6px;
    border-radius: 7px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.2s var(--easing);
  }
  .qb-seg:hover { color: var(--ink); }
  .qb-seg.active {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
  }
  .qb-complexity-detail {
    margin-top: 16px;
    padding: 18px 22px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .qb-complexity-detail .label {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
  }
  .qb-complexity-detail .desc {
    color: var(--ink-mute);
    font-size: 13px;
    line-height: 1.4;
  }
  .qb-complexity-detail .multi {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--accent);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    line-height: 1;
  }

  /* === Toggle switches (iOS-style, kept from V2 with refinements) === */
  .qb-toggles {
    display: grid;
    gap: 10px;
  }
  .qb-toggle {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
    user-select: none;
  }
  .qb-toggle:hover { border-color: var(--ink-mute); }
  .qb-toggle.on {
    border-color: var(--accent);
    background: rgba(212, 255, 61, 0.04);
  }
  .qb-toggle-content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .qb-toggle-name {
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .qb-toggle-desc {
    font-size: 12px;
    color: var(--ink-mute);
    line-height: 1.4;
  }
  .qb-toggle-price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .switch {
    position: relative;
    width: 44px;
    height: 26px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s;
  }
  .switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--ink-mute);
    border-radius: 50%;
    transition: transform 0.25s var(--easing-out), background 0.25s;
  }
  .qb-toggle.on .switch {
    background: var(--accent);
    border-color: var(--accent);
  }
  .qb-toggle.on .switch::after {
    transform: translateX(18px);
    background: var(--bg);
  }
  .qb-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  /* === Form fields === */
  .qb-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .qb-field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
  .qb-field-half { grid-column: span 1; }
  .qb-field span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .qb-field input, .qb-field textarea {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    padding: 13px 14px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s;
    resize: vertical;
  }
  .qb-field input:focus, .qb-field textarea:focus {
    outline: none;
    border-color: var(--accent);
  }
  @media (max-width: 600px) {
    .qb-fields { grid-template-columns: 1fr; }
    .qb-field-half { grid-column: 1 / -1; }
  }

  /* === Build card (receipt) === */
  .qb-build-card {
    position: sticky;
    top: 100px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }
  .qb-build-head {
    background: var(--bg-3);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--line);
  }
  .qb-build-head .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .qb-build-head .ref {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .qb-build-head .ref::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.5s infinite;
  }
  .qb-build-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 100px;
  }
  .qb-build-empty {
    text-align: center;
    padding: 28px 0;
    color: var(--ink-mute);
    font-size: 13px;
    line-height: 1.6;
  }
  .qb-build-empty strong { color: var(--ink); font-weight: 500; }

  .qb-build-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    animation: slideIn 0.3s var(--easing-out);
  }
  .qb-build-line:last-of-type { border-bottom: 0; }
  @keyframes slideIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .qb-build-line.muted { opacity: 0.5; }
  .qb-build-line .key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    flex-shrink: 1;
    min-width: 0;
  }
  .qb-build-line .val {
    color: var(--ink);
    text-align: right;
    font-weight: 500;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
  }

  .qb-build-total {
    padding: 22px 24px;
    background: var(--bg-3);
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .qb-build-total .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .qb-build-total .amt {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--accent);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  .qb-build-actions {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .qb-build-disclaimer {
    font-size: 11px;
    color: var(--ink-mute);
    line-height: 1.5;
    text-align: center;
    margin-bottom: 4px;
  }
  .qb-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 11px;
    border: none;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s;
  }
  .qb-submit-wa {
    background: var(--accent);
    color: var(--bg);
  }
  .qb-submit-wa:hover { background: var(--ink); color: var(--bg); }
  .qb-submit-email {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
  }
  .qb-submit-email:hover { border-color: var(--accent); color: var(--accent); }

  /* Tier strategy explainer (top of pricing page) */
  .tier-strategy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 768px) {
    .tier-strategy { grid-template-columns: 1fr; }
  }
  .tier-strategy-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.3s;
  }
  .tier-strategy-card:hover { border-color: var(--accent); }
  .tier-strategy-card .tier-strategy-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 5px 11px;
    background: rgba(212, 255, 61, 0.08);
    border: 1px solid rgba(212, 255, 61, 0.3);
    border-radius: 999px;
    margin-bottom: 14px;
  }
  .tier-strategy-card h4 {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  .tier-strategy-card p {
    color: var(--ink-mute);
    font-size: 13px;
    line-height: 1.55;
  }
  .tier-strategy-card p em {
    color: var(--ink);
    font-style: normal;
    font-weight: 500;
  }

  /* Tier tag in qb-tier cards */
  .qb-tier-tag {
    display: inline-block;
    align-self: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 4px 9px;
    background: rgba(212, 255, 61, 0.08);
    border: 1px solid rgba(212, 255, 61, 0.3);
    border-radius: 999px;
    margin-bottom: 12px;
  }

  /* ==================================================================
     QUOTE SUMMARY PAGE — quote document layout
     Designed to read as a real quote, print well, look credible
     ================================================================== */

  /* Top action bar — sits below the global topnav (which is z-100) */
  .qs-topbar {
    position: sticky;
    top: 80px;  /* Below the global .topnav (which sits at 0 with ~80px height) */
    z-index: 90;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .qs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-mute);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s;
  }
  .qs-back:hover {
    color: var(--accent);
    border-color: var(--line);
  }
  .qs-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .qs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
  }
  .qs-btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .qs-btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 700;
  }
  .qs-btn-primary:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
  }

  @media (max-width: 768px) {
    .qs-topbar { padding: 12px 16px; }
    .qs-actions { display: none; }  /* Mobile uses bottom action bar instead */
  }

  /* Mobile action bar */
  .qs-mobile-actions {
    display: none;
    position: fixed;
    bottom: 80px;  /* Above the m-tabbar */
    left: 12px;
    right: 12px;
    z-index: 49;
    gap: 8px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  }
  @media (max-width: 768px) {
    .qs-mobile-actions { display: flex; }
    .qs-mobile-actions .qs-btn { flex: 1; justify-content: center; }
  }

  /* The quote document */
  .qs-doc {
    max-width: 880px;
    margin: 40px auto;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 56px;
    color: var(--ink);
  }

  /* Document header */
  .qs-doc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
    flex-wrap: wrap;
  }
  .qs-brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .qs-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.04em;
    position: relative;
    flex-shrink: 0;
  }
  .qs-brand-mark span {
    color: var(--accent);
  }
  .qs-brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .qs-brand-name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
  }
  .qs-brand-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .qs-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    min-width: 200px;
  }
  .qs-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
  }
  .qs-meta-row .key {
    color: var(--ink-mute);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 10px;
  }
  .qs-meta-row .val {
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  /* Sections */
  .qs-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
  }
  .qs-section:last-of-type { border-bottom: 0; }
  .qs-section h3 {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 18px;
  }

  /* From / For */
  .qs-from-to {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  @media (max-width: 600px) {
    .qs-from-to { grid-template-columns: 1fr; gap: 24px; }
  }
  .qs-party-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
  }
  .qs-party-name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  .qs-party-detail {
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.6;
  }

  /* Notes */
  .qs-notes p {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    background: var(--bg);
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
  }

  /* Quote table */
  .qs-table {
    border-top: 1px solid var(--line);
  }
  .qs-table-head {
    display: grid;
    grid-template-columns: 1.4fr 2fr 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .qs-table-head span:last-child { text-align: right; }
  .qs-table-row {
    display: grid;
    grid-template-columns: 1.4fr 2fr 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
    align-items: baseline;
  }
  .qs-table-row:last-child { border-bottom: 0; }
  .qs-row-label {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
  }
  .qs-row-detail {
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.4;
  }
  .qs-row-amount {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', monospace;
  }

  @media (max-width: 600px) {
    .qs-table-head { display: none; }
    .qs-table-row {
      grid-template-columns: 1fr auto;
      grid-template-areas: "label amount" "detail detail";
      gap: 4px 12px;
    }
    .qs-row-label { grid-area: label; }
    .qs-row-amount { grid-area: amount; }
    .qs-row-detail { grid-area: detail; padding-top: 4px; }
  }

  /* Total section */
  .qs-total {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .qs-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
  }
  .qs-total-row .key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .qs-total-row .val {
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    font-weight: 600;
  }
  .qs-total-row-vat .val {
    color: var(--ink-mute);
    font-weight: 400;
    font-size: 13px;
  }
  .qs-total-row-final {
    margin-top: 8px;
    padding: 18px 0;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
  }
  .qs-total-row-final .key {
    font-size: 12px;
    color: var(--ink);
    font-weight: 600;
  }
  .qs-total-row-final .val {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 32px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  /* Included list */
  .qs-included {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }
  @media (max-width: 600px) {
    .qs-included { grid-template-columns: 1fr; }
  }
  .qs-included li {
    padding-left: 22px;
    position: relative;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
  }
  .qs-included li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
  }

  /* Terms grid */
  .qs-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
  .qs-term {
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .qs-term-num {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 8px;
  }
  .qs-term h4 {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
  }
  .qs-term p {
    font-size: 12px;
    color: var(--ink-mute);
    line-height: 1.5;
  }

  /* Honest note */
  .qs-honest-note p {
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.6;
    text-align: center;
    padding: 16px 0;
  }
  .qs-honest-note p strong {
    color: var(--ink);
    font-weight: 600;
  }
  .qs-honest-note a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
  }

  /* Document footer */
  .qs-doc-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--ink-mute);
    flex-wrap: wrap;
  }

  @media (max-width: 768px) {
    .qs-doc { padding: 32px 24px; margin: 24px 16px; }
    .qs-doc-head { flex-direction: column; }
    .qs-meta { text-align: left; min-width: 0; }
  }

  /* Print styles — hide chrome, white background, optimize for paper */
  @media print {
    body * {
      background: white !important;
      color: black !important;
    }
    .rail, .topnav, .m-statusbar, .m-tabbar, .qs-topbar, .qs-mobile-actions,
    main > footer, .other-pages {
      display: none !important;
    }
    main {
      margin: 0 !important;
      padding: 0 !important;
    }
    .qs-doc {
      max-width: 100% !important;
      margin: 0 !important;
      border: none !important;
      padding: 20mm !important;
      background: white !important;
      border-radius: 0 !important;
      box-shadow: none !important;
    }
    .qs-doc * {
      color: black !important;
      background: white !important;
    }
    .qs-brand-mark {
      background: black !important;
      color: white !important;
    }
    .qs-brand-mark span,
    .qs-party-label,
    .qs-term-num,
    .qs-honest-note a {
      color: #6a7d1f !important;  /* darker lime for print readability */
    }
    .qs-total-row-final .val {
      color: #6a7d1f !important;
    }
    .qs-total-row-final {
      border-top: 2px solid #6a7d1f !important;
      border-bottom: 2px solid #6a7d1f !important;
    }
    .qs-included li::before {
      background: #6a7d1f !important;
    }
    .qs-notes p {
      border-left: 3px solid #6a7d1f !important;
    }
    .qs-section {
      border-bottom: 1px solid #ccc !important;
      page-break-inside: avoid;
    }
    .qs-doc-head {
      border-bottom: 1px solid #ccc !important;
    }
    .qs-doc-foot {
      border-top: 1px solid #ccc !important;
    }
    .qs-table-head, .qs-table-row {
      border-bottom-color: #ddd !important;
    }
  }

  /* Spinner keyframe for loading buttons */
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* ==========================================================
     NAV: About Cosy dropdown (desktop)
     ========================================================== */
  .nav-dropdown { position: relative; display: inline-flex; }
  .nav-dropdown-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: color 0.25s var(--easing);
  }
  .nav-dropdown-trigger::after {
    content: ""; position: absolute;
    left: 0; bottom: 0; height: 1px; width: 0;
    background: var(--accent);
    transition: width 0.4s var(--easing);
  }
  .nav-dropdown-trigger:hover { color: var(--accent); }
  .nav-dropdown-trigger:hover::after { width: 100%; }
  .nav-dropdown-trigger .chev {
    transition: transform 0.25s var(--easing);
  }
  .nav-dropdown.open .nav-dropdown-trigger .chev,
  .nav-dropdown:hover .nav-dropdown-trigger .chev {
    transform: rotate(180deg);
  }
  .nav-dropdown-trigger.active { color: var(--accent); }
  .nav-dropdown-trigger.active::after { width: 100%; }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 200px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--easing), transform 0.2s var(--easing), visibility 0.2s;
    z-index: 110;
  }
  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* Invisible bridge so cursor doesn't drop the menu on the gap */
  .nav-dropdown::before {
    content: ""; position: absolute;
    top: 100%; left: 0; right: 0; height: 14px;
  }
  .nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
  }
  .nav-dropdown-menu a::after { display: none; }  /* override topnav underline */
  .nav-dropdown-menu a:hover {
    background: var(--bg-3);
    color: var(--accent);
  }
  .nav-dropdown-menu a.active {
    color: var(--accent);
    background: rgba(212, 255, 61, 0.06);
  }

  @media (max-width: 768px) {
    .nav-dropdown, .nav-dropdown-menu { display: none; }
  }

  /* ==========================================================
     NAV: Mobile menu trigger (the "Menu" tab) & full-screen overlay
     ========================================================== */
  .m-menu-trigger {
    /* base styles inherit from .m-tab in the mobile media query;
       these only apply when .m-tabbar is visible (mobile) */
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }

  .m-menu {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--bg);
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s var(--easing);
  }
  .m-menu.open {
    display: flex;
    opacity: 1;
  }
  .m-menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 20px 18px;
    border-bottom: 1px solid var(--line);
  }
  .m-menu-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 700;
  }
  .m-menu-close {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .m-menu-close:active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
  .m-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
  }
  .m-menu-list a {
    display: grid;
    grid-template-columns: 60px 1fr 32px;
    align-items: center;
    gap: 12px;
    padding: 22px 24px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .m-menu-list a:last-child { border-bottom: none; }
  .m-menu-list a:active {
    background: var(--bg-2);
    color: var(--accent);
  }
  .m-menu-list a .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
  }
  .m-menu-list a .m-menu-name {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .m-menu-list a .arrow {
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-faint);
  }
  .m-menu-list a .arrow svg { width: 18px; height: 18px; }
  .m-menu-list a.active .m-menu-name { color: var(--accent); }
  .m-menu-list a.active .num,
  .m-menu-list a.active .arrow { color: var(--accent); }
  .m-menu-foot {
    padding: 20px 24px calc(env(safe-area-inset-bottom, 0px) + 24px);
    border-top: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--ink-mute);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .m-menu-foot .dot { color: var(--ink-faint); }

  /* Prevent body scroll while menu open */
  body.menu-open { overflow: hidden; }

  /* Hide menu overlay on desktop */
  @media (min-width: 769px) {
    .m-menu { display: none !important; }
  }

  /* ==========================================================
     FEATURED LOGO ARCHIVE CALLOUT
     Used on home page (after work list) and portfolio.html (above work list)
     ========================================================== */
  .featured-archive {
    padding: 24px var(--gutter) 0;
    max-width: 1440px;
    margin: 0 auto;
  }
  .featured-archive-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    padding: 36px 40px;
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s var(--easing), border-color 0.3s var(--easing), box-shadow 0.3s var(--easing);
    position: relative;
    overflow: hidden;
  }
  .featured-archive-card::before {
    content: ""; position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(212, 255, 61, 0.06), transparent 50%);
    pointer-events: none;
  }
  .featured-archive-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }
  .fa-left {
    display: flex; flex-direction: column; justify-content: center;
    gap: 12px;
  }
  .fa-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 700;
  }
  .fa-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0;
  }
  .fa-desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-mute);
    max-width: 520px;
    margin: 4px 0 8px;
  }
  .fa-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-top: 4px;
  }
  .featured-archive-card:hover .fa-cta svg {
    transform: translateX(4px);
  }
  .fa-cta svg { transition: transform 0.25s var(--easing); }

  .fa-right {
    display: flex; flex-direction: column; align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
  }
  .fa-stat { text-align: right; }
  .fa-stat-num {
    display: block;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(56px, 7vw, 96px);
    line-height: 0.9;
    color: var(--accent);
    letter-spacing: -0.04em;
  }
  .fa-stat-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 4px;
  }
  .fa-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 78px);
    gap: 6px;
  }
  .fa-thumbs img {
    width: 100%;
    aspect-ratio: 1200 / 624;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.25s;
  }
  .featured-archive-card:hover .fa-thumbs img { opacity: 1; }

  @media (max-width: 768px) {
    .featured-archive-card {
      grid-template-columns: 1fr;
      gap: 24px;
      padding: 28px 24px;
    }
    .fa-right {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
    .fa-thumbs {
      grid-template-columns: repeat(3, 64px);
    }
    .fa-desc { font-size: 14px; }
  }
  @media (max-width: 480px) {
    .fa-thumbs { display: none; }
    .fa-right { justify-content: flex-start; }
  }
