/* ─── RESET & TOKENS ─── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:      #0b0c0f;
      --surface: #111318;
      --border:  #1e2130;
      --purple:  #9b5de5;
      --purple2: #7b3fc8;
      --green:   #39d353;
      --text:    #e8eaf0;
      --muted:   #7a7f96;
      --font-mono: 'JetBrains Mono', monospace;
      --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
      --font-sans: 'DM Serif Display', serif;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-body);
      font-size: 16.5px;
      line-height: 1.68;
      overflow-x: hidden;
    }

    h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; }

    a { color: inherit; text-decoration: none; }
    /* height:auto is required once width/height attributes are present: the
       attributes apply as CSS presentational hints, so a stylesheet width of
       100% against an attribute height locks the wrong aspect ratio. */
    img { display: block; max-width: 100%; height: auto; }

    /* ─── UTILITIES ─── */
    .wrap { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }


    /* ─── NAV ─── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      border-bottom: 1px solid var(--border);
      background: rgba(11,12,15,0.92);
      backdrop-filter: blur(12px);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }
    .nav-logo {
      font-family: var(--font-mono);
      font-size: 0.9rem;
      font-weight: 500;
      letter-spacing: 0.03em;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .nav-logo .prompt {
      color: var(--purple);
      font-size: 1.1rem;
      font-weight: 700;
    }
    .nav-logo .brand { color: var(--text); }
    .nav-logo .subdued { color: var(--muted); }
    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }
    .nav-links a {
      font-size: 0.82rem;
      font-family: var(--font-mono);
      color: var(--muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--text); }
    .nav-cta {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border: 1px solid var(--purple);
      color: var(--purple);
      padding: 0.5rem 1.2rem;
      border-radius: 3px;
      transition: background 0.2s, color 0.2s;
    }
    .nav-cta:hover { background: var(--purple); color: #fff; }

    /* mobile nav toggle */
    .nav-hamburger {
      background: none;
      border: 0;
      padding: 0;
      cursor: pointer;
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
    }
    .nav-hamburger span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--text);
      transition: 0.3s;
    }

    /* ─── HERO ─── */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 100px 0 80px;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute;
      top: -200px; right: -200px;
      width: 700px; height: 700px;
      background: radial-gradient(circle, rgba(155,93,229,0.12) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 3.5rem;
      align-items: center;
    }
    /* Grid children default to min-width:auto, so a wide code block forces
       its track past the viewport and body's overflow-x:hidden clips the
       page instead of letting the block scroll. */
    .hero-grid > *, .two-col > * { min-width: 0; }
    .hero-terminal { max-width: 100%; }
    .terminal-body { overflow-x: auto; }
    .hero-tag::before { content: '// '; }
    h1 {
      font-size: clamp(2.6rem, 5vw, 4.2rem);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.02em;
      margin-bottom: 1.5rem;
    }
    h1 em { font-style: normal; color: var(--purple); }
    .hero-sub {
      font-size: 1.1rem;
      color: var(--muted);
      max-width: 480px;
      margin-bottom: 2.5rem;
      line-height: 1.7;
    }
    .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--font-mono);
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 0.75rem 1.6rem;
      border-radius: 3px;
      border: 1px solid transparent;
      cursor: pointer;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .btn-solid { background: var(--purple); color: #fff; }
    .btn-solid:hover { background: var(--purple2); }
    .btn-outline { border-color: var(--border); color: var(--muted); }
    .btn-outline:hover { border-color: var(--muted); color: var(--text); }

    /* terminal block */
    .hero-terminal {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .terminal-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--border);
    }
    .dot { width: 12px; height: 12px; border-radius: 50%; }
    .dot-r { background: #ff5f57; }
    .dot-y { background: #febc2e; }
    .dot-g { background: #28c840; }
    .terminal-title {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      color: var(--muted);
      margin-left: auto;
    }
    .terminal-body {
      padding: 1.5rem;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      line-height: 2;
    }
    .t-prompt { color: var(--purple); }
    .t-cmd    { color: var(--text); }
    .k-cmt { color: var(--muted); }
    .k-tbl { color: var(--text); }
    .k-op  { color: var(--purple); }
    .k-str { color: var(--green); }
    .k-fn  { color: #f9c74f; }
    .hero-caption {
      font-size: 0.82rem;
      color: var(--muted);
      margin-top: 0.9rem;
      line-height: 1.6;
    }
    .t-out    { color: var(--muted); }
    .t-ok     { color: var(--green); }
    .t-warn   { color: #f9c74f; }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

    /* ─── SECTION BASE ─── */
    .section { padding: 100px 0; }
    .section-label {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--purple);
      margin-bottom: 1rem;
    }
    h2 {
      font-size: clamp(2rem, 3.5vw, 3rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.1;
      margin-bottom: 1.2rem;
    }
    .section-intro {
      font-size: 1.05rem;
      color: var(--muted);
      max-width: 540px;
      line-height: 1.75;
      margin-bottom: 3.5rem;
    }

    /* ─── STATS STRIP ─── */
    .stats {
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 2.5rem 0;
    }
    .stat { text-align: center; }

    /* ─── SERVICES ─── */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .svc {
      background: var(--surface);
      padding: 2.5rem;
      transition: background 0.25s;
    }
    .svc:hover { background: #161923; }
    .svc-after {
      font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em;
      text-transform: uppercase; color: var(--muted); margin: 3rem 0 1.25rem;
    }
    .svc-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
    .svc-list li { color: var(--muted); font-size: 0.9rem; padding-left: 1.1rem; border-left: 2px solid var(--border); }
    .svc-list li strong { color: var(--text); display: block; font-weight: 500; }
    .svc-foot { color: var(--muted); font-size: 0.82rem; margin-top: 2.5rem; }
    @media (max-width: 820px) { .svc-list { grid-template-columns: 1fr; } }
    .svc-icon {
      font-family: var(--font-mono);
      font-size: 1.5rem;
      color: var(--purple);
      margin-bottom: 1.2rem;
    }
    .svc h3 {
      font-size: 1.15rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
    }
    .svc p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.2rem; }

    /* ─── APPROACH ─── */
    .approach { background: var(--surface); }
    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
    }
    .steps { display: flex; flex-direction: column; gap: 0; }
    .step {
      display: flex;
      gap: 1.5rem;
      padding: 1.8rem 0;
      border-bottom: 1px solid var(--border);
    }
    .step:first-child { padding-top: 0; }
    .step-num {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      color: var(--purple);
      padding-top: 4px;
      min-width: 28px;
      letter-spacing: 0.06em;
    }
    .step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
    .step p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

    /* ─── VALUES ─── */
    .about-bio-grid { display: grid; grid-template-columns: 360px 1fr; gap: 4rem; align-items: start; margin-bottom: 1rem; }
    .about-photo img { width: 100%; border-radius: 8px; border: 1px solid var(--border); display: block; }
    @media (max-width: 900px) { .about-bio-grid { grid-template-columns: 1fr; } }
    .vals { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
    .val {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding: 1.2rem 1.5rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      transition: border-color 0.25s;
    }
    .val:hover { border-color: var(--purple); }
    .val-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--purple);
      margin-top: 6px;
      flex-shrink: 0;
    }
    .val-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
    .val-desc  { font-size: 0.85rem; color: var(--muted); }

    /* ─── CONTACT ─── */
    .contact-note {
      font-size: 1rem;
      color: var(--muted);
      line-height: 1.8;
      margin-bottom: 1.5rem;
      max-width: 68ch;
    }
    .contact-email {
      font-size: 0.95rem;
      color: var(--muted);
    }
    .contact-email a {
      color: var(--purple);
      font-family: var(--font-mono);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    /* ─── FOOTER ─── */
    footer {
      border-top: 1px solid var(--border);
      padding: 2.5rem 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-logo { font-family: var(--font-mono); font-size: 0.9rem; }
    .footer-logo .prompt { color: var(--purple); }
    .footer-copy { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
    .footer-links { display: flex; gap: 1rem 1.5rem; flex-wrap: wrap; }
    .footer-links a {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--muted);
      letter-spacing: 0.05em;
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--text); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 900px) {
      .hero-grid, .two-col { grid-template-columns: 1fr; gap: 3rem; }
      .services-grid { grid-template-columns: 1fr; }
      .nav-links, .nav-cta { display: none; }
      .nav-hamburger { display: flex; }
    }
    @media (max-width: 520px) {
      h1 { font-size: 2.4rem; }
    }

    /* mobile menu */
    /* ─── PROOF ─── */
    .proof-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
    @media (min-width: 720px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
    .proof-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
      padding: 22px 22px 20px; display: flex; flex-direction: column; position: relative;
    }
    .proof-card.wip { opacity: 0.82; }
    .proof-cloud {
      font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
      letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
    }
    .proof-card h3 { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 400; letter-spacing: 0.01em; margin: 8px 0 10px; color: var(--text); }
    .proof-card p { font-size: 0.86rem; line-height: 1.65; color: var(--muted); margin: 0 0 14px; }
    .proof-card p .hl { color: var(--text); }
    .proof-spacer { flex: 1; }
    .proof-repo {
      display: inline-flex; align-items: center; gap: 8px;
      font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
      color: var(--purple); text-decoration: none;
      border: 1px solid rgba(155, 93, 229, 0.25); background: rgba(155, 93, 229, 0.12);
      border-radius: 8px; padding: 9px 13px; align-self: flex-start;
      transition: border-color 0.2s ease;
    }
    .proof-repo:hover { border-color: var(--purple); }
    .proof-repo.soon { color: var(--muted); background: transparent; border-color: var(--border); pointer-events: none; }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 64px; left: 0; right: 0; bottom: 0;
      background: var(--bg);
      z-index: 99;
      padding: 2rem;
      flex-direction: column;
      gap: 1.5rem;
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      font-family: var(--font-mono);
      font-size: 1.1rem;
      color: var(--muted);
      border-bottom: 1px solid var(--border);
      padding-bottom: 1rem;
      transition: color 0.2s;
    }
    .mobile-menu a:hover { color: var(--text); }
    .mobile-menu .btn { align-self: flex-start; margin-top: 1rem; }

    /* Mono is kept wherever it earns its place: labels, controls, code,
       and anything whose columns need to line up. Paragraphs are sans. */
    nav, .nav-links, .nav-links a, .nav-cta, .mobile-menu a, .btn,
    .section-label, .svc-icon, .svc-after, .proof-cloud, .proof-repo,
    .terminal-body, .terminal-title, .t-cmd, .t-out, .t-ok, .t-warn,
    code, .footer-logo, .footer-links, .footer-links a, .footer-copy {
      font-family: var(--font-mono);
    }

    /* ─── SCANNER PAGE ─── */
    .shc-hero { min-height: auto; padding: 8rem 0 4rem; }
    .shc-hero h1 { margin-bottom: 1.5rem; }
    .report-shot { width: 100%; border: 1px solid var(--border); border-radius: 8px; display: block; }
    .shc-checks { list-style: none; margin: 1.5rem 0; }
    .shc-checks li { border-left: 2px solid var(--border); padding: 0.6rem 0 0.6rem 1.1rem; margin-bottom: 1.1rem; color: var(--muted); }
    .shc-checks li strong { color: var(--text); display: block; }
    .shc-body p { color: var(--muted); margin-bottom: 1.1rem; max-width: 68ch; }
    .shc-body p strong { color: var(--text); }
    .shc-cta { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
    @media (max-width: 700px) { .shc-hero { padding: 7rem 0 2rem; } }

    /* ─── UTILITIES (replacing inline style attributes) ─── */
    strong { color: var(--text); }
    .accent { color: var(--purple); }
    .accent-block { color: var(--purple); display: block; }
    .section--surface { background: var(--surface); }
    .scroll-x { overflow-x: auto; }
    .btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
    .footnote { font-size: 0.88rem; }
    .logo-mark { color: var(--purple); font-weight: 700; }
    .link-mono {
      font-family: var(--font-mono); font-size: 0.78rem; color: var(--purple);
      text-decoration: underline; text-underline-offset: 3px;
    }
    .callout {
      margin-top: 2rem; padding: 1.5rem;
      border: 1px solid var(--border); border-left: 3px solid var(--purple);
      border-radius: 6px;
    }
    .callout p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.75rem; }
    .mt-md { margin-top: 1.5rem; }
    .mt-lg { margin-top: 2rem; }
    .mt-xl { margin-top: 4rem; }
    .mb-0  { margin-bottom: 0; }

    /* ─── ACCESSIBILITY ─── */
    /* Keyboard users must be able to see where they are. The only focus rule
       this site previously had targeted form inputs that no longer exist. */
    a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-cta:focus-visible {
      outline: 2px solid var(--purple);
      outline-offset: 3px;
      border-radius: 2px;
    }
    .skip-link {
      position: absolute; left: -9999px; top: 0; z-index: 200;
      background: var(--purple); color: #fff;
      font-family: var(--font-mono); font-size: 0.8rem;
      padding: 0.75rem 1.25rem; border-radius: 0 0 4px 0;
    }
    .skip-link:focus { left: 0; }

    /* Reveal-on-scroll is opt-in: without JavaScript nothing is ever hidden,
       so a script failure degrades to a static page rather than a blank one. */
    .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
    .js .reveal.on { opacity: 1; transform: none; }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
      .js .reveal { opacity: 1; transform: none; }
    }
