:root {
    --bg: #0a0e14;
    --bg-soft: #0f141d;
    --bg-card: #111826;
    --border: #1e2a3a;
    --fg: #d6e2f0;
    --fg-dim: #93a3b8;
    --accent: #4ade80;
    --accent-dim: #166534;
    --amber: #fbbf24;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  section { scroll-margin-top: 72px; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

  .skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #052e12;
    font-family: var(--mono); font-size: 13px; font-weight: 600;
    padding: 10px 16px; z-index: 200;
  }
  .skip-link:focus { left: 8px; top: 8px; }

  /* ---------- nav ---------- */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    max-width: 1080px; margin: 0 auto; padding: 0 24px;
    height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .logo {
    font-family: var(--mono); font-size: 17px; font-weight: 700;
    color: var(--fg); text-decoration: none; flex: none;
    display: inline-flex; align-items: center; gap: 8px; line-height: 1;
  }
  .logo-mark { display: block; width: auto; height: 30px; flex: none; }
  .logo-command { display: inline-flex; align-items: center; white-space: nowrap; }
  .logo .prompt { color: var(--accent); }
  .logo .cursor {
    display: inline-block; width: 9px; height: 17px;
    background: var(--accent); vertical-align: text-bottom;
    animation: blink 1.1s steps(1) infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }
  .nav-toggle {
    display: none; flex: none; align-items: center; justify-content: center;
    flex-direction: column; gap: 5px; width: 44px; height: 44px;
    border: 1px solid var(--border); border-radius: 6px;
    background: transparent; color: var(--fg); cursor: pointer;
  }
  .nav-toggle:hover { color: var(--accent); background: var(--bg-card); }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: flex; gap: 4px; list-style: none; }
  .nav-links a {
    font-family: var(--mono); font-size: 13px; white-space: nowrap;
    color: var(--fg-dim); text-decoration: none;
    padding: 6px 12px; border-radius: 6px;
    transition: color .15s, background .15s;
  }
  .nav-links a:hover { color: var(--accent); background: var(--bg-card); }
  .nav-links a.active { color: var(--accent); }

  @media (max-width: 800px) {
    nav { position: sticky; }
    .nav-inner { height: auto; flex-wrap: wrap; padding: 6px 20px; }
    .nav-links { width: 100%; flex-wrap: wrap; gap: 0; }
    .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; }
    .nav-ready { position: fixed; }
    .nav-ready .nav-inner { height: 56px; flex-wrap: nowrap; padding-block: 0; }
    .nav-ready .nav-toggle { display: flex; }
    .nav-ready .nav-links {
      display: none; position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; flex-wrap: nowrap; padding: 8px 20px 16px;
      max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px);
      overflow-y: auto; overscroll-behavior: contain;
      background: var(--bg); border-bottom: 1px solid var(--border);
    }
    .nav-ready .nav-toggle[aria-expanded="true"] + .nav-links { display: flex; }
  }

  /* ---------- hero ---------- */
  .hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 96px 24px 64px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute; top: -25%; left: 50%; transform: translateX(-50%);
    width: 1000px; height: 700px;
    background: radial-gradient(ellipse at center, rgba(74, 222, 128, 0.09), transparent 65%);
    pointer-events: none;
  }
  .hero-inner { position: relative; max-width: 820px; text-align: center; }
  .hero-eyebrow {
    font-family: var(--mono); font-size: 13px; color: var(--accent);
    letter-spacing: 2.5px; text-transform: uppercase;
    display: inline-block; margin-bottom: 18px;
  }
  .hero h1 {
    font-size: clamp(31px, 5.2vw, 52px);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.14;
  }
  .hero h1 .accent { color: var(--accent); }
  .hero .lede {
    font-size: clamp(16px, 2.2vw, 19px); color: var(--fg-dim);
    max-width: 640px; margin: 22px auto 0;
  }
  .hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .hero-proof {
    margin-top: 44px;
    font-family: var(--mono); font-size: 13px; color: var(--fg-dim);
  }
  .hero-proof span { color: var(--accent); }
  .btn {
    font-family: var(--mono); font-size: 14px; font-weight: 600;
    padding: 11px 22px; border-radius: 7px;
    text-decoration: none; transition: all .15s;
  }
  .btn-primary { background: var(--accent); color: #052e12; }
  .btn-primary:hover { background: #6ee7a0; }
  .btn-ghost { border: 1px solid var(--border); color: var(--fg-dim); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

  /* ---------- generic section ---------- */
  .wrap { max-width: 1080px; margin: 0 auto; padding: 88px 24px; }
  .section-head { margin-bottom: 44px; }
  .section-head .kicker {
    font-family: var(--mono); font-size: 13px; color: var(--accent);
    display: block; margin-bottom: 8px;
  }
  .section-head h2 {
    font-size: clamp(25px, 3.6vw, 34px); font-weight: 700; letter-spacing: -0.5px;
  }
  .section-head p { color: var(--fg-dim); max-width: 640px; margin-top: 10px; }

  .orc-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .orc-copy-column { display: grid; align-content: start; gap: 18px; }
  .orc-copy p { color: var(--fg-dim); font-size: 15.5px; }
  @media (max-width: 800px) {
    .orc-copy { grid-template-columns: 1fr; gap: 18px; }
  }

  /* ---------- cards ---------- */
  .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
  .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
  @media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
  .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 26px;
    transition: border-color .2s, transform .2s;
  }
  .card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
  .card .glyph {
    font-family: var(--mono); font-size: 13px; color: var(--accent);
    display: block; margin-bottom: 12px;
  }
  .card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -0.2px; }
  .card p { color: var(--fg-dim); font-size: 14.5px; }
  .card p + p.card-link { margin-top: 14px; }
  .card-link a {
    font-family: var(--mono); font-size: 13px; color: var(--accent); text-decoration: none;
    border-bottom: 1px solid transparent; transition: border-color .2s;
  }
  .card-link a:hover { border-color: var(--accent); }

  /* ---------- process ---------- */
  #process { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
  .step { border-left: 2px solid var(--accent-dim); padding: 2px 0 2px 18px; }
  .step .num { font-family: var(--mono); font-size: 12.5px; color: var(--accent); display: block; margin-bottom: 8px; }
  .step h3 { font-size: 16.5px; margin-bottom: 8px; }
  .step p { color: var(--fg-dim); font-size: 14.5px; }

  /* ---------- proof strip ---------- */
  .brands {
    display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center;
    margin-bottom: 44px;
  }
  .brand {
    font-family: var(--mono); font-size: 17px; font-weight: 700;
    color: var(--fg-dim); letter-spacing: 0.5px;
    transition: color .2s;
  }
  .brand:hover { color: var(--fg); }

  /* ---------- team ---------- */
  .member-heading {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 18px; margin-bottom: 16px;
  }
  .member-portrait {
    display: block; width: 128px; height: 128px; flex: none;
    object-fit: cover; object-position: 50% 25%;
    border: 1px solid var(--border); border-radius: 8px;
  }
  .member-identity { min-width: 0; }
  .member-heading h3 { margin-bottom: 6px; }
  .member .role {
    font-family: var(--mono); font-size: 13px; color: var(--amber);
    display: block;
  }
  @media (max-width: 640px) {
    .team-grid { grid-template-columns: minmax(0, 1fr); }
    .member-heading { flex-direction: row; align-items: center; gap: 16px; }
    .member-portrait { width: 80px; height: 80px; }
  }

  /* ---------- tech (for the CTO) ---------- */
  #tech { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
  .tech-item h3 { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
  .tech-item p { color: var(--fg-dim); font-size: 14.5px; }

  /* ---------- faq ---------- */
  .faq-list { display: grid; max-width: 820px; }
  .faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
  .faq-item:last-child { border-bottom: none; }
  .faq-item h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.2px; }
  .faq-item p { color: var(--fg-dim); font-size: 15px; }

  /* ---------- contact ---------- */
  #contact .wrap { text-align: center; }
  #contact .section-head p { margin-left: auto; margin-right: auto; }
  .contact-mail {
    display: inline-block; margin-top: 12px;
    font-family: var(--mono); font-size: clamp(18px, 3.5vw, 26px); font-weight: 700;
    color: var(--accent); text-decoration: none;
    border-bottom: 2px solid transparent; transition: border-color .2s;
    font-style: normal;
  }
  .contact-mail:hover { border-color: var(--accent); }
  .contact-note { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--fg-dim); }

  /* ---------- footer ---------- */
  footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px; text-align: center;
    font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim);
  }
  footer a { color: var(--fg-dim); }

  /* ---------- reveal animation ---------- */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.visible { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .logo .cursor { animation: none; }
  }

  @media (max-width: 640px) {
    .wrap { padding: 60px 20px; }
    .logo-mark { height: 26px; }
  }

  /* ---------- subpages ---------- */
  .subpage-hero { min-height: auto; padding: 132px 24px 72px; }
  .tinted { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .crumb { font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim); margin-bottom: 20px; }
  .crumb a { color: var(--accent); text-decoration: none; }
  .crumb a:hover { border-bottom: 1px solid var(--accent); }
  .points { display: grid; gap: 14px; max-width: 780px; list-style: none; }
  .points li { border-left: 2px solid var(--accent-dim); padding: 2px 0 2px 18px; color: var(--fg-dim); font-size: 15.5px; }
  .points li strong { color: var(--fg); font-weight: 600; }
  .back-home { text-align: center; }
  .back-home a { font-family: var(--mono); font-size: 13.5px; color: var(--accent); text-decoration: none; }
  .back-home a:hover { border-bottom: 1px solid var(--accent); }
  .service-links { margin-top: 26px; font-family: var(--mono); font-size: 13.5px; color: var(--fg-dim); }
  .service-links a { color: var(--accent); text-decoration: none; }
  .service-links a:hover { border-bottom: 1px solid var(--accent); }
  .footer-links { margin-bottom: 10px; }
  .footer-links a { color: var(--fg-dim); text-decoration: none; margin: 0 6px; }
  .footer-links a:hover { color: var(--accent); }
