/* Landing page */
/* Section scaffold */
  section.row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail-w);
    gap: 56px;
    padding: 0;
    align-items: start;
  }
  section.row > .col {
    position: relative;
    z-index: 3;
    padding: 80px 0;
    min-width: 0;
  }
  section.row > .rail {
    position: relative;
    z-index: 2;
    align-self: start;
    overflow: visible;
  }
  section.row > .rail[data-rail="hero"] { min-height: 820px; }
  section.row > .rail[data-rail="contact"] { min-height: 800px; }
  section.row > .rail > svg.trace {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    display: block;
  }
  .trace path.t-anim {
    fill: none;
    stroke: var(--sage);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.55;
  }
  .trace path.t-anim.coral { stroke: var(--coral); opacity: 0.6; }
  .trace path.t-anim.thin { stroke-width: 0.9; opacity: 0.4; }
  .trace path.t-pulse {
    fill: none;
    stroke: var(--sage);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    filter: drop-shadow(0 0 4px var(--sage));
  }
  .trace path.t-pulse.coral { stroke: var(--coral); filter: drop-shadow(0 0 5px var(--coral)); }
  .trace path.t-pulse.thin { stroke-width: 1.6; opacity: 0.8; }

  /* Inline PCB component visuals (resistors, caps, inductors, pads, silkscreen) */
  .cmp text {
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    paint-order: stroke;
    stroke: var(--bg);
    stroke-width: 2;
    stroke-linejoin: round;
  }
  .cmp .body-fill { fill: var(--bg); }
  .cmp.coral .body-stroke,
  .cmp.coral text { fill: #FF6B57; }
  .cmp .body-stroke { stroke: #6F8A7A; }
  .cmp.coral .body-stroke { stroke: #FF6B57; }

  /* HERO */
  section.hero { padding: 0; }
  section.hero .col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 72px;
    padding-bottom: 72px;
    min-height: 82vh;
  }
  section.hero h1 {
    margin-top: 22px;
    margin-bottom: 22px;
  }
  section.hero h1 em {
    font-style: normal;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    display: inline-block;
  }
  section.hero h1 em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.08em;
    height: 0.22em;
    background: var(--coral);
    opacity: 0.85;
    z-index: -1;
    transform: skewX(-6deg);
  }
  section.hero .lede { margin-bottom: 28px; }

  .backed-by {
    margin-bottom: 0;
  }
  .backed-by .label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 14px;
  }
  .backed-by .backers {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .backed-by .backer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 180ms ease;
  }
  .backed-by .backer:hover {
    opacity: 0.72;
  }
  .backed-by .backer-icon {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .backed-by .backer-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    letter-spacing: 0.01em;
  }

  section.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

  .hero-meta {
    margin-top: 32px;
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .hero-meta .item .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; }
  .hero-meta .item .v { font-family: var(--font-display); font-size: 17px; color: var(--ink); margin-top: 4px; font-weight: 500; }

  /* Chip styling (shared) */
  .chip-wrap {
    position: absolute;
    z-index: 4;
  }
  /* Overlay chips track the same viewBox stretch as svg.trace (not fixed px). */
  .chip-wrap--vb {
    left: calc(var(--vb-x) / var(--vb-vw) * 100%);
    top: calc(var(--vb-y) / var(--vb-vh) * 100%);
    width: calc(var(--vb-w) / var(--vb-vw) * 100%);
    height: calc(var(--vb-h) / var(--vb-vh) * 100%);
  }
  .chip-wrap .chip-svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 18px 30px rgba(13,15,17,0.10)) drop-shadow(0 2px 4px rgba(13,15,17,0.08));
  }
  .chip-caption {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
  }
  .chip-caption.center {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  /* SECTION 1 — architecture */
  section.architecture { padding: 0; }
  section.architecture .col { padding: 100px 0 120px; max-width: 640px; }
  section.architecture h2 { margin: 24px 0 28px; }
  section.architecture .lede { margin-bottom: 36px; }
  .spec-list {
    list-style: none; padding: 0; margin: 0;
    border-top: 1px solid var(--line);
  }
  .spec-list li {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
  }
  .spec-list .k {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .spec-list .v {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 17px;
    font-weight: 500;
  }
  .spec-list .v small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-3); font-size: 13.5px; margin-top: 4px; letter-spacing: 0; }

  /* SECTION 2 — stats */
  section.stats { padding: 0; }
  section.stats .col { padding: 100px 0 120px; }
  section.stats h2 { max-width: 14ch; margin: 24px 0 0; }
  .stats-grid {
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .stat {
    padding: 36px 28px 36px 0;
    border-right: 1px solid var(--line);
    position: relative;
  }
  .stat:last-child { border-right: none; padding-right: 0; }
  .stat .num {
    font-family: var(--font-display);
    font-size: clamp(64px, 8vw, 112px);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  .stat .num .unit {
    font-size: 0.35em;
    letter-spacing: -0.02em;
    color: var(--ink-3);
    font-weight: 400;
  }
  .stat .label {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .stat .desc {
    margin-top: 10px;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.5;
    max-width: 28ch;
  }
  .stat.coral .num .unit { color: var(--coral); }
  .stat .tag {
    position: absolute;
    top: 0;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-4);
    transform: translateY(-50%);
    background: var(--bg);
    padding: 0 8px;
  }
  .stat:last-child .tag { right: 0; }

  /* SECTION 3 — evals */
  section.evals { padding: 0; }
  section.evals .col { padding: 100px 0 120px; }
  section.evals h2 { margin: 24px 0 16px; }
  section.evals .lede { margin-bottom: 56px; max-width: 56ch; }
  .eval-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .eval-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 240ms ease, transform 240ms ease;
  }
  .eval-card:hover { border-color: var(--ink-2); transform: translateY(-2px); }
  .eval-card .head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px;
  }
  .eval-card .head .title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .eval-card .head .id {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
    border: 1px solid var(--line);
    padding: 4px 8px;
    border-radius: 999px;
  }
  .eval-card .sub {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 6px;
  }
  .eval-card .chart-area {
    flex: 1;
    margin-top: 22px;
    position: relative;
  }
  .eval-card .chart-area svg { width: 100%; height: 100%; display: block; overflow: visible; }
  .eval-card .foot {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .eval-card .foot .placeholder {
    color: var(--ink-3);
  }
  .eval-card .foot .saia {
    color: var(--coral);
  }
  /* Pending state for eval cards */
  .eval-card.pending .head .id {
    color: var(--coral);
    border-color: var(--coral);
  }
  .eval-card .pending-body {
    flex: 1;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
  }
  .eval-card .pending-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ink-2);
  }
  .eval-card .pending-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .eval-card .pending-status .dot {
    width: 7px; height: 7px; border-radius: 999px;
    background: var(--coral);
    box-shadow: 0 0 0 0 rgba(255, 107, 87, 0.6);
    animation: pending-pulse 1.8s ease-out infinite;
  }
  @keyframes pending-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 107, 87, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 107, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 87, 0); }
  }

  /* SECTION 4 — contact */
  section.contact { padding: 0; }
  section.contact .col { padding: 100px 0 100px; }
  section.contact h2 { margin: 24px 0 16px; }
  section.contact .lede { margin-bottom: 48px; max-width: 50ch; }
  .contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
  }
  form.contact-form {
    display: grid;
    gap: 18px;
    position: relative;
  }
  form.contact-form .field.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }
  form.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
  form.contact-form .field.row2 { grid-template-columns: 1fr 1fr; }
  form.contact-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  form.contact-form label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  form.contact-form label .optional {
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--ink-4);
  }
  form.contact-form input,
  form.contact-form textarea,
  form.contact-form select {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    outline: none;
    transition: border-color 180ms ease;
    border-radius: 0;
  }
  form.contact-form input:focus,
  form.contact-form textarea:focus,
  form.contact-form select:focus { border-color: var(--ink); }
  form.contact-form textarea { resize: vertical; min-height: 80px; font-family: var(--font-body); }
  form.contact-form .actions {
    display: flex;
    align-items: center;
    margin-top: 14px;
    gap: 16px;
    flex-wrap: wrap;
  }
  form.contact-form .actions .btn[type="submit"] {
    flex-shrink: 0;
    min-width: 10.75rem;
    justify-content: center;
  }
  form.contact-form .actions .note {
    flex: 1 1 12rem;
    min-width: 0;
    margin-left: auto;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .contact-aside {
    border-left: 1px solid var(--line);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .contact-aside .block .label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
  }
  .contact-aside .block .value {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
  }
  .contact-aside .block .value:hover { color: var(--coral); }
  .contact-aside .block p { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

/* Responsive */
  /* Two-column rail layout: only active when there's room for col + 460px rail + gap.
     Below 1180px we collapse to single column so the SVG viewBox (460) always
     equals --rail-w (also 460), guaranteeing 1:1 trace-to-chip alignment. */
  @media (max-width: 1180px) {
    section.row { grid-template-columns: 1fr; }
    section.row > .rail { display: none; }
    section.hero { min-height: auto; }
    section.hero .col { min-height: auto; padding-bottom: 80px; }
    .eval-grid { grid-template-columns: repeat(2, 1fr); }
    .eval-card:nth-child(3) { grid-column: span 2; aspect-ratio: auto; min-height: 280px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-aside { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; flex-direction: row; flex-wrap: wrap; gap: 32px; }
    .contact-aside .block { flex: 1 1 200px; }
    nav.top ul { gap: 22px; }
  }
  @media (max-width: 640px) {
    h1 .br { display: inline; }
    h1 .br::after { content: " "; }
  }
  @media (max-width: 860px) {
    section.row { grid-template-columns: 1fr; }
    section.row > .rail { display: none; }
    section.hero { min-height: auto; padding-bottom: 80px; }
    .hero-meta { flex-wrap: wrap; gap: 24px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; }
    .eval-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
    form.contact-form .pair { grid-template-columns: 1fr; }
h1 { font-size: clamp(40px, 11vw, 64px); }
  }
