:root {
    --paper:      #FFFFFF;   /* logo ground: clean white */
    --surface:    #FBF8F1;   /* faint gold-warm for cards/bands */
    --surface-2:  #F3ECDC;
    --ink:        #14233D;   /* Coded navy */
    --ink-soft:   #47536A;
    --ink-faint:  #948A74;
    --line:       #ECE3D2;
    --line-soft:  #F4EEE1;
    --crimson:    #A11330;   /* Cheri red */
    --crimson-br: #BE2141;
    --gold:       #B8975A;   /* sprout gold */
    --gold-soft:  #D8C089;
    --pass:       #3C8A5B;   /* semantic: passing tests */
    --shadow:     0 1px 2px rgba(20,35,61,.05), 0 14px 40px -20px rgba(20,35,61,.28);
    --radius: 14px;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }

  .mono {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-faint); font-weight: 500;
  }

  h1, h2, h3 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600; line-height: 1.05; letter-spacing: -.015em;
    text-wrap: balance; margin: 0;
  }

  a { color: inherit; }

  /* ---------- Brand logo ---------- */
  .brand { display: inline-flex; align-items: center; text-decoration: none; border-radius: 10px; }
  .brand .brand-logo { height: 46px; width: auto; display: block; }

  /* ---------- Header ---------- */
  header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 84%, transparent);
    backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
  .nav-links { display: flex; align-items: center; gap: 30px; }
  .nav-links a { text-decoration: none; color: var(--ink-soft); font-size: .93rem; font-weight: 500; transition: color .15s; }
  .nav-links a:hover { color: var(--ink); }
  .nav-links .cta-sm { padding: 9px 17px; border-radius: 9px; background: var(--crimson); color: #fff; }
  .nav-links .cta-sm:hover { background: var(--crimson-br); color: #fff; }
  @media (max-width: 720px) { .nav-links a:not(.cta-sm) { display: none; } }

  /* ---------- Hero ---------- */
  .hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
  .hero .sprout-bg { position: absolute; right: -60px; top: -40px; width: 340px; opacity: .06; pointer-events: none; transform-origin: bottom center; transform: rotate(8deg) scaleY(.4); animation: grow-in 1.8s cubic-bezier(.2,.7,.3,1) forwards; }
  @keyframes grow-in { to { transform: rotate(8deg) scaleY(1); opacity: .06; } }
  @media (prefers-reduced-motion: reduce) { .hero .sprout-bg { animation: none; transform: rotate(8deg); } }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; position: relative; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 64px 0 58px; } .hero .sprout-bg { display: none; } }

  .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; }
  .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
  .hero h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); font-weight: 600; }
  .hero h1 em { font-style: italic; color: var(--crimson); font-weight: 500; }
  .hero p.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 42ch; margin: 26px 0 34px; }
  .btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: .96rem;
    padding: 13px 22px; border-radius: 10px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: transform .12s ease, background .15s, border-color .15s;
  }
  .btn-primary { background: var(--crimson); color: #fff; }
  .btn-primary:hover { background: var(--crimson-br); transform: translateY(-1px); }
  .btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
  .btn-ghost:hover { border-color: var(--gold); }
  .btn .arrow { transition: transform .18s; }
  .btn:hover .arrow { transform: translateX(3px); }

  .stat-row { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
  .stat .n { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.85rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
  .stat .n span { color: var(--gold); }
  .stat .l { font-size: .82rem; color: var(--ink-faint); margin-top: 2px; }

  /* ---------- Test runner panel ---------- */
  .runner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
  .runner-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
  .runner-bar .lights { display: flex; gap: 6px; }
  .runner-bar .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
  .runner-bar .lights i:nth-child(1) { background: var(--crimson); }
  .runner-bar .lights i:nth-child(2) { background: var(--gold); }
  .runner-bar .lights i:nth-child(3) { background: var(--pass); }
  .runner-bar .file { font-family: "IBM Plex Mono", monospace; font-size: .74rem; color: var(--ink-faint); margin-left: 6px; }
  .runner-body { padding: 18px 18px 20px; font-family: "IBM Plex Mono", monospace; font-size: .82rem; line-height: 1.5; }
  .suite { color: var(--ink-faint); margin: 0 0 4px; }
  .suite:not(:first-child) { margin-top: 14px; }
  .t { display: flex; align-items: center; gap: 10px; padding: 3px 0 3px 14px; opacity: 0; transform: translateX(-6px); }
  .t .check { width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--pass) 16%, transparent); color: var(--pass); display: grid; place-items: center; flex: none; font-size: 10px; }
  .t .name { color: var(--ink); }
  .t .ms { margin-left: auto; color: var(--ink-faint); font-size: .74rem; }
  .runner-foot { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); background: color-mix(in srgb, var(--pass) 8%, var(--surface)); font-family: "IBM Plex Mono", monospace; font-size: .78rem; }
  .runner-foot .pass-badge { color: var(--pass); font-weight: 600; display: flex; align-items: center; gap: 7px; }
  .runner-foot .pass-badge b { width: 8px; height: 8px; border-radius: 50%; background: var(--pass); }
  .runner-foot .dim { color: var(--ink-faint); margin-left: auto; }

  @keyframes tin { to { opacity: 1; transform: translateX(0); } }
  .go .t { animation: tin .34s cubic-bezier(.2,.7,.3,1) forwards; }
  .go .t:nth-child(2){animation-delay:.15s}.go .t:nth-child(3){animation-delay:.28s}.go .t:nth-child(4){animation-delay:.41s}
  .go .t:nth-child(5){animation-delay:.54s}.go .t:nth-child(6){animation-delay:.67s}.go .t:nth-child(7){animation-delay:.8s}
  .go .t:nth-child(8){animation-delay:.93s}
  @media (prefers-reduced-motion: reduce) { .t { opacity: 1; transform: none; } .go .t { animation: none; } }

  /* ---------- Sections ---------- */
  section { padding: 88px 0; }
  .sec-head { max-width: 640px; margin-bottom: 52px; }
  .sec-head h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 14px 0 0; }
  .sec-head p { color: var(--ink-soft); margin: 16px 0 0; font-size: 1.05rem; }

  .marquee-band { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface); }
  .stack-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding: 26px 0; }
  .stack-strip .lbl { font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
  .stack-strip .tech { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.24rem; color: var(--ink); letter-spacing: -.01em; }
  .stack-strip .sep { color: var(--gold); }

  /* Services */
  .svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  @media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px; transition: border-color .18s, transform .18s; position: relative; overflow: hidden; }
  .card:hover { border-color: var(--gold); transform: translateY(-3px); }
  .card .idx { font-family: "IBM Plex Mono", monospace; font-size: .72rem; color: var(--ink-faint); letter-spacing: .1em; }
  .card h3 { font-size: 1.5rem; margin: 16px 0 10px; display: flex; align-items: center; gap: 12px; }
  .card h3 .glyph { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); flex: none; font-size: 17px; }
  .card p { color: var(--ink-soft); margin: 0 0 18px; font-size: .98rem; }
  .card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
  .card li { font-family: "IBM Plex Mono", monospace; font-size: .72rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; }
  .card.feature { grid-column: 1 / -1; background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .card.feature h3 { color: var(--paper); }
  .card.feature .idx { color: color-mix(in srgb, var(--paper) 55%, transparent); }
  .card.feature p { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 52ch; }
  .card.feature h3 .glyph { background: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--gold-soft); }
  .card.feature li { color: color-mix(in srgb, var(--paper) 80%, transparent); border-color: color-mix(in srgb, var(--paper) 22%, transparent); }
  .card.feature:hover { border-color: var(--gold); }
  .feat-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: center; }
  @media (max-width: 760px) { .feat-inner { grid-template-columns: 1fr; gap: 24px; } }
  .coverage { font-family: "IBM Plex Mono", monospace; }
  .cov-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .78rem; }
  .cov-row .cn { width: 92px; color: color-mix(in srgb, var(--paper) 68%, transparent); }
  .cov-track { flex: 1; height: 7px; border-radius: 100px; background: color-mix(in srgb, var(--paper) 15%, transparent); overflow: hidden; }
  .cov-fill { height: 100%; border-radius: 100px; background: var(--gold); width: 0; transition: width 1.1s cubic-bezier(.2,.7,.3,1); }
  .cov-row .cp { width: 40px; text-align: right; color: var(--paper); font-weight: 600; }

  /* Process — the growing vine */
  .vine { position: relative; }
  .vine-track { position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .vine-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.2,.7,.3,1); }
  .vine.in .vine-fill { transform: scaleX(1); }
  .stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
  .stage { padding-top: 34px; position: relative; }
  .stage .node { position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent); transform: scale(0); transition: transform .5s cubic-bezier(.2,.9,.3,1.4); }
  .vine.in .stage .node { transform: scale(1); }
  .vine.in .stage:nth-child(1) .node { transition-delay: .1s; }
  .vine.in .stage:nth-child(2) .node { transition-delay: .5s; }
  .vine.in .stage:nth-child(3) .node { transition-delay: .9s; }
  .vine.in .stage:nth-child(4) .node { transition-delay: 1.3s; }
  .stage .st-label { color: var(--gold); }
  .stage h3 { font-size: 1.5rem; margin: 8px 0 8px; }
  .stage p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
  @media (max-width: 760px) {
    .stages { grid-template-columns: 1fr; gap: 0; margin-left: 8px; }
    .vine-track { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; }
    .vine-fill { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); transform: scaleY(0); transform-origin: top; }
    .vine.in .vine-fill { transform: scaleY(1); }
    .stage { padding: 4px 0 30px 34px; }
    .stage .node { left: 0; top: 4px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .vine-fill, .stage .node { transition: none; }
    .vine .vine-fill { transform: scaleX(1); }
    .stage .node { transform: scale(1); }
  }

  /* Growth reveal — rise up as sections enter */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

  /* CTA */
  .cta-band { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 66px 48px; text-align: center; position: relative; overflow: hidden; }
  .cta-band .cta-sprout { position: absolute; width: 200px; opacity: .10; right: 4%; bottom: -30px; transform: rotate(-6deg); pointer-events: none; }
  .cta-band h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); color: var(--paper); position: relative; }
  .cta-band h2 em { font-style: italic; color: var(--gold-soft); }
  .cta-band p { color: color-mix(in srgb, var(--paper) 76%, transparent); max-width: 46ch; margin: 18px auto 30px; position: relative; }
  .cta-band .btn-primary { position: relative; }
  @media (max-width: 560px) { .cta-band { padding: 48px 24px; } }

  footer { padding: 46px 0 60px; border-top: 1px solid var(--line-soft); margin-top: 88px; }
  .foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  .foot-grid .mono { text-transform: none; letter-spacing: .02em; }
  .foot-links { display: flex; gap: 24px; }
  .foot-links a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; }
  .foot-links a:hover { color: var(--ink); }

  :focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 4px; }

  /* ---------- Page-wide growing vine ---------- */
  .page-vine { position: fixed; top: 0; left: 12px; width: 52px; height: 100vh; z-index: 5; pointer-events: none; opacity: .5; }
  .page-vine svg { display: block; width: 52px; height: 100%; }
  .pv-stem { stroke: var(--gold); }
  .pv-leaf {
    position: absolute; width: 16px; height: 16px; background: var(--gold);
    border-radius: 0 100% 0 100%; transform-origin: 0% 100%;
    transform: scale(0) rotate(var(--r, 0deg)); opacity: 0;
    transition: transform .7s cubic-bezier(.2,.8,.3,1.4), opacity .6s ease;
  }
  .pv-leaf.unfurled { transform: scale(1) rotate(var(--r, 0deg)); opacity: .9; }
  .pv-leaf.l1 { top: 15%; left: 27px; --r: 22deg; }
  .pv-leaf.l2 { top: 39%; left: 9px; --r: -158deg; }
  .pv-leaf.l3 { top: 62%; left: 28px; --r: 28deg; }
  .pv-leaf.l4 { top: 84%; left: 7px; --r: -164deg; }
  @media (max-width: 1180px) { .page-vine { display: none; } }
  @media (prefers-reduced-motion: reduce) { .pv-leaf { transition: none; } }
