:root {
    --bg: #fafafa;
    --paper: #ffffff;
    --ink: #0a0a0a;
    --muted: #6b7075;
    --faint: #a3a8ad;
    --line: #e6e7e9;
    --accent: #1a3cff;
    --mono: ui-monospace, "SF Mono", Menlo, monospace;
    --font: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  ::selection { background: rgba(26,60,255,0.15); }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
  section { padding: 108px 0; }

  h1, h2 { font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
  h1 { font-size: clamp(44px, 7.2vw, 92px); }
  h2 { font-size: clamp(32px, 4.6vw, 54px); }
  h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
  .kicker {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 22px;
  }
  .kicker b { color: var(--accent); font-weight: 500; }
  .sub { color: var(--muted); font-size: 17px; max-width: 580px; }

  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 2px;
    font-size: 14px; font-weight: 550; text-decoration: none; letter-spacing: -0.005em;
    transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
  }
  .btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
  .btn-ink:hover { background: var(--accent); border-color: var(--accent); }
  .btn-ghost { background: transparent; color: var(--ink); border: 1px solid #c9ccd0; }
  .btn-ghost:hover { border-color: var(--ink); }

  /* ---------- nav ---------- */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250,250,250,0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(10,10,10,0.06);
  }
  .nav-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 28px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
  }
  .logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
  .logo svg { width: 26px; height: 26px; display: block; }
  .logo .wm { font-weight: 650; font-size: 15.5px; letter-spacing: -0.025em; }
  .logo .wm i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--accent); margin-left: 5px; font-weight: 500; }
  .nav-links { display: flex; gap: 26px; align-items: center; }
  .nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 13px; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
  .nav-links a:not(.btn):hover { color: var(--ink); }
  .nav-links .btn { padding: 9px 18px; }
  @media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

  /* ---------- hero ---------- */
  .hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0; overflow: hidden;
  }
  #terrain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-veil {
    position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(250,250,250,0.97) 0%, rgba(250,250,250,0.82) 38%, rgba(250,250,250,0.25) 66%, rgba(250,250,250,0) 82%),
      linear-gradient(0deg, rgba(250,250,250,0.95) 0%, rgba(250,250,250,0.5) 26%, rgba(250,250,250,0) 48%),
      linear-gradient(180deg, rgba(250,250,250,0.4) 0%, rgba(250,250,250,0) 20%);
  }
  .hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1160px; margin: 0 auto; padding: 120px 28px 72px; }
  .hero-services {
    position: absolute; top: 108px; right: 28px; z-index: 2;
    text-align: right; display: flex; flex-direction: column; gap: 10px;
  }
  .hero-services a {
    color: var(--ink); text-decoration: none; font-size: clamp(17px, 2vw, 24px);
    font-weight: 550; letter-spacing: -0.02em; transition: color .15s;
  }
  .hero-services a span { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-right: 10px; letter-spacing: 0.08em; }
  .hero-services a:hover { color: var(--accent); }
  @media (max-width: 900px) { .hero-services { display: none; } }
  .hero h1 { max-width: 820px; }
  .hero h1 em { font-style: normal; color: var(--faint); }
  .hero .sub { margin: 26px 0 34px; font-size: clamp(16px, 1.8vw, 19px); }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-meta {
    margin-top: 56px; padding-top: 18px; border-top: 1px solid rgba(10,10,10,0.12);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  }
  .hero-meta .live { display: inline-flex; align-items: center; gap: 8px; }
  .hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(26,60,255,.4);} 55% { box-shadow: 0 0 0 6px rgba(26,60,255,0);} }

  /* ---------- manifesto ---------- */
  .manifesto { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .manifesto h2 { max-width: 900px; }
  .manifesto h2 em { font-style: normal; color: var(--faint); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
  .manifesto .sub { margin-top: 26px; }

  /* ---------- teardown ---------- */
  .tear-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 56px; border: 1px solid var(--line); background: var(--paper); }
  @media (max-width: 800px) { .tear-grid { grid-template-columns: 1fr; } }
  .tear-col { padding: 38px; }
  .tear-col + .tear-col { border-left: 1px solid var(--line); }
  @media (max-width: 800px) { .tear-col + .tear-col { border-left: 0; border-top: 1px solid var(--line); } }
  .tear-col .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 24px; }
  .tear-old .tag { color: var(--faint); }
  .tear-new .tag { color: var(--accent); }
  .tear-col ol { list-style: none; counter-reset: t; }
  .tear-col li { counter-increment: t; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
  .tear-col li:last-child { border-bottom: 0; }
  .tear-col li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
  .tear-old li { color: var(--muted); }
  .tear-old li s { color: var(--faint); }
  .tear-new li { color: var(--ink); }
  .tear-new li::before { color: var(--accent); }
  .tear-foot { margin-top: 20px; font-size: 13px; color: var(--muted); }

  /* ---------- roles ---------- */
  .roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
  @media (max-width: 860px) { .roles-grid { grid-template-columns: 1fr; } }
  .role { background: var(--paper); border: 1px solid var(--line); padding: 40px; position: relative; transition: border-color .2s; }
  .role:hover { border-color: var(--ink); }
  .role .hiring { position: absolute; top: 40px; right: 40px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent); border: 1px solid rgba(26,60,255,.35); padding: 4px 9px; }
  .role .for { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
  .role h3 { font-size: 27px; letter-spacing: -0.025em; margin-bottom: 14px; }
  .role > p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
  .spec { border-top: 1px solid var(--line); }
  .spec div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
  .spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
  .spec dd { color: var(--ink); }

  /* ---------- control room ---------- */
  .control { background: var(--ink); color: #fff; }
  .control .kicker { color: #8b9096; }
  .control h2 { color: #fff; }
  .control .sub { color: #a6abb0; }
  .ctrl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); margin-top: 56px; }
  @media (max-width: 900px) { .ctrl-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .ctrl-grid { grid-template-columns: 1fr; } }
  .ctrl { background: var(--ink); padding: 30px 26px; }
  .ctrl .n { font-family: var(--mono); font-size: 11px; color: var(--accent); display: block; margin-bottom: 40px; filter: brightness(1.6); }
  .ctrl h3 { color: #fff; margin-bottom: 10px; font-size: 16.5px; }
  .ctrl p { color: #a6abb0; font-size: 13.5px; }
  .eval-note {
    margin-top: 40px; border: 1px solid rgba(255,255,255,0.18); padding: 26px 30px;
    display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap;
  }
  .eval-note .mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); filter: brightness(1.6); text-transform: uppercase; flex-shrink: 0; }
  .eval-note p { color: #d3d6d9; font-size: 15px; max-width: 640px; }

  /* ---------- steps ---------- */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
  @media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
  .step { border-top: 2px solid var(--ink); padding-top: 22px; }
  .step .n { font-family: var(--mono); font-size: 11.5px; color: var(--accent); display: block; margin-bottom: 40px; }
  .step h3 { margin-bottom: 10px; }
  .step p { color: var(--muted); font-size: 14.5px; }

  /* ---------- runs on it ---------- */
  .runs { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .runs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  @media (max-width: 900px) { .runs-grid { grid-template-columns: 1fr; gap: 40px; } }
  .runs ul { list-style: none; }
  .runs li { position: relative; padding: 14px 0 14px 30px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14.5px; }
  .runs li:last-child { border-bottom: 0; }
  .runs li b { color: var(--ink); font-weight: 550; }
  .runs li::before { content: "→"; color: var(--accent); position: absolute; left: 0; top: 14px; }

  /* ---------- pricing ---------- */
  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
  @media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
  .plan { background: var(--paper); border: 1px solid var(--line); padding: 36px 32px; display: flex; flex-direction: column; position: relative; }
  .plan h3 { font-size: 20px; margin-bottom: 10px; }
  .plan .desc { color: var(--muted); font-size: 13.5px; min-height: 62px; margin-bottom: 26px; }
  .plan .price { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
  .plan .price span { font-size: 14px; font-weight: 450; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
  .plan .btn { margin: 26px 0 30px; justify-content: center; }
  .plan ul { list-style: none; border-top: 1px solid var(--line); }
  .plan li { padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); position: relative; }
  .plan li b { color: var(--ink); font-weight: 550; }
  .plan li::before { content: "→"; color: var(--accent); position: absolute; left: 0; top: 10px; }
  .plan.featured { background: var(--ink); border-color: var(--ink); }
  .plan.featured h3, .plan.featured .price { color: #fff; }
  .plan.featured .desc { color: #a6abb0; }
  .plan.featured .price span { color: #8b9096; }
  .plan.featured ul, .plan.featured li { border-color: rgba(255,255,255,0.14); }
  .plan.featured li { color: #a6abb0; }
  .plan.featured li b { color: #fff; }
  .plan.featured .btn-ink { background: #fff; color: var(--ink); border-color: #fff; }
  .plan.featured .btn-ink:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
  .plan .flag {
    position: absolute; top: -1px; right: -1px; background: var(--accent); color: #fff;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; padding: 6px 12px;
  }
  .plans-note { margin-top: 26px; font-family: var(--mono); font-size: 12px; color: var(--muted); max-width: 720px; line-height: 1.8; }
  .plans-note b { color: var(--ink); font-weight: 550; }

  /* ---------- faq ---------- */
  .faq-list { margin-top: 52px; max-width: 760px; border-top: 1px solid var(--line); }
  details { border-bottom: 1px solid var(--line); }
  summary {
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; font-weight: 550; font-size: 16px; letter-spacing: -0.01em;
  }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--faint); font-size: 22px; font-weight: 300; transition: transform .2s; }
  details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
  details p { color: var(--muted); padding-bottom: 22px; max-width: 640px; font-size: 14.5px; }

  /* ---------- final ---------- */
  .final { text-align: left; background: var(--paper); border-top: 1px solid var(--line); }
  .final .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; }
  @media (max-width: 860px) { .final .wrap { grid-template-columns: 1fr; } }
  .final .sub { margin-top: 22px; }
  .final .cta-box { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
  .final .cta-box .btn { justify-content: center; }
  .final .cta-box .note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); text-align: center; }

  footer { padding: 40px 0; }
  .foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--faint); font-size: 13px; }
  .foot a { color: var(--muted); text-decoration: none; }
  .foot a:hover { color: var(--ink); }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-meta .dot { animation: none; }
  }

/* ---------- industries (homepage) ---------- */
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
@media (max-width: 860px) { .ind-grid { grid-template-columns: 1fr; } }
.ind-card {
  display: block; background: var(--paper); border: 1px solid var(--line); padding: 36px;
  text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s;
}
.ind-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.ind-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 18px; }
.ind-card h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px; }
.ind-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.ind-link { font-size: 14px; font-weight: 550; color: var(--accent); }
.ind-note { margin-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------- footer site links ---------- */
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.foot-links a:hover { color: var(--ink); }
