/* 金华岩石 — 工业 AI 工程化
   视觉基线：工程图纸 / 检测数据 / 运行证据 */

:root {
  --ink: #060d13;
  --ink-panel: #0b1620;
  --ink-line: rgba(148, 190, 214, .18);
  --ink-soft: rgba(214, 232, 242, .68);
  --paper: #f1efe9;
  --paper-panel: #ffffff;
  --paper-line: rgba(12, 32, 46, .12);
  --graphite: #16232c;
  --graphite-soft: rgba(22, 35, 44, .68);
  --signal: #ffb01f;
  --probe: #38c8d8;
  --alert: #ff6b4a;
  --shell: min(1320px, 100% - 3rem);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: clamp(15px, .55vw + 13.6px, 17px);
  line-height: 1.75;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--signal);
  color: var(--ink);
  padding: .7rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  margin-bottom: 1.1rem;
}

/* ── Header ─────────────────────────────────────────────── */

.site {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1.5rem, (100vw - var(--shell)) / 2);
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.site.is-scrolled {
  background: rgba(6, 13, 19, .88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--ink-line);
  padding-block: .65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #fff;
}
.brand img {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 3px;
  padding: 3px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 1.06rem; letter-spacing: .06em; }
.brand-copy small {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .55);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  letter-spacing: .04em;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover { color: #fff; border-bottom-color: var(--signal); }
.nav .nav-contact {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 2px;
  padding: .45rem 1rem;
  color: #fff;
}
.nav .nav-contact:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(7.5rem, 14vh, 11rem) max(1.5rem, (100vw - var(--shell)) / 2) clamp(4rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 190, 214, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 190, 214, .09) 1px, transparent 1px),
    linear-gradient(rgba(148, 190, 214, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 190, 214, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(120% 90% at 30% 20%, #000 25%, transparent 78%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.6rem;
}
.eyebrow b {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .12em;
  font-size: .78rem;
  color: rgba(255, 255, 255, .58);
  padding-left: .85rem;
  border-left: 1px solid rgba(255, 255, 255, .22);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
  letter-spacing: -.035em;
  margin-bottom: 1.6rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--signal);
  position: relative;
  padding-inline: .1em;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: 3px;
  background: var(--signal);
  opacity: .35;
}

.hero-lede {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button-primary { background: var(--signal); color: var(--ink); }
.button-primary:hover { transform: translateY(-2px); background: #ffc352; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { transform: translateY(-2px); background: var(--graphite); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: .18rem;
  transition: gap .2s ease, color .2s ease;
}
.text-link:hover { gap: .85rem; color: var(--signal); }
.text-link.light { color: #fff; }

.hero-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--ink-line);
}
.hero-scope dt {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--probe);
  margin-bottom: .3rem;
}
.hero-scope dd { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .86); }

/* Execution trace — the page's single memory device */

.execution {
  border: 1px solid var(--ink-line);
  background: linear-gradient(180deg, rgba(13, 26, 36, .95), rgba(6, 13, 19, .95));
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
}
.execution-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .55);
}
.execution-state { display: inline-flex; align-items: center; gap: .45rem; color: var(--probe); }
.execution-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--probe);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.execution-canvas {
  position: relative;
  aspect-ratio: 640 / 520;
  min-height: 400px;
  background-image:
    linear-gradient(rgba(148, 190, 214, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 190, 214, .07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.axis-label {
  position: absolute;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .28);
}
.axis-y {
  left: .75rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
}

.trace-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace-lines path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.trace-base { stroke: rgba(148, 190, 214, .25); }
.trace-run {
  stroke: var(--signal);
  stroke-dasharray: 8 220;
  filter: drop-shadow(0 0 5px rgba(255, 176, 31, .55));
  animation: trace 9s linear infinite;
}
@keyframes trace { to { stroke-dashoffset: -1140; } }

.execution-steps { position: absolute; inset: 0; }
.execution-steps li:nth-child(1) { --x: 4%; --y: 5%; }
.execution-steps li:nth-child(2) { --x: 22%; --y: 22%; }
.execution-steps li:nth-child(3) { --x: 40%; --y: 40%; }
.execution-steps li:nth-child(4) { --x: 56%; --y: 58%; }
.execution-steps li:nth-child(5) { --x: 70%; --y: 75%; }
.execution-steps li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  min-width: 148px;
  padding: .6rem .8rem;
  border: 1px solid var(--ink-line);
  border-left: 2px solid rgba(148, 190, 214, .35);
  background: rgba(6, 13, 19, .92);
  transition: border-color .35s ease, transform .35s ease, background .35s ease;
}
.execution-steps li.is-active {
  border-color: rgba(255, 176, 31, .5);
  border-left-color: var(--signal);
  background: rgba(24, 20, 8, .95);
  transform: translateX(4px);
}
.step-id {
  display: block;
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .42);
}
.execution-steps li.is-active .step-id { color: var(--signal); }
.execution-steps strong { display: block; font-size: .88rem; color: #fff; margin-top: .15rem; }
.execution-steps small {
  display: block;
  font-size: .68rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.5;
}

.execution-readout {
  padding: .85rem 1.1rem 1rem;
  border-top: 1px solid var(--ink-line);
  background: rgba(6, 13, 19, .96);
  display: grid;
  gap: .12rem;
}
.execution-readout span {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .2em;
  color: var(--probe);
}
.execution-readout strong { font-size: .95rem; color: #fff; }
.execution-readout small { font-size: .7rem; color: rgba(255, 255, 255, .5); }

.hero-scroll {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
}
.hero-scroll i {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, var(--signal), transparent);
}
.hero-scroll:hover { color: var(--signal); }

/* ── Sections ───────────────────────────────────────────── */

.section {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-heading { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.85rem); margin-bottom: 1.2rem; }
.section-heading p { color: var(--graphite-soft); max-width: 56ch; }

.capability-list { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.capability-list article {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.35fr) minmax(0, .8fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.8rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--paper-line);
  transition: background .25s ease;
}
.capability-list article:hover { background: rgba(255, 255, 255, .55); }
.cap-index {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper-line);
  line-height: 1;
}
.capability-list h3 { font-size: 1.32rem; margin-bottom: .65rem; }
.capability-list p { color: var(--graphite-soft); max-width: 48ch; }
.capability-list ul { display: flex; flex-wrap: wrap; gap: .45rem; align-content: start; }
.capability-list li {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  padding: .3rem .65rem;
  border: 1px solid var(--paper-line);
  color: var(--graphite-soft);
}
.capability-list article:hover .cap-index { color: var(--signal); }

/* Adaptation — dark board */

.adaptation {
  background: var(--ink-panel);
  color: #fff;
  padding: clamp(4.5rem, 9vw, 7rem) max(1.5rem, (100vw - var(--shell)) / 2);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.adaptation .kicker { color: var(--probe); }
.adaptation h2 { font-size: clamp(1.8rem, 3.4vw, 2.85rem); margin-bottom: 1.2rem; }
.adaptation p { color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.8rem; }

.software-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  position: relative;
}
.board-label {
  grid-column: 1 / -1;
  background: var(--ink);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .45);
  padding: .7rem .95rem;
}
.software-cell {
  background: var(--ink);
  padding: 1.1rem .95rem 1.2rem;
  display: grid;
  gap: .18rem;
  transition: background .25s ease;
}
.software-cell:hover { background: #101f2b; }
.software-cell span {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .18em;
  color: var(--probe);
}
.software-cell strong { font-size: 1rem; color: #fff; }
.software-cell small { font-size: .7rem; color: rgba(255, 255, 255, .5); line-height: 1.5; }
.software-cell.featured { background: #12212d; box-shadow: inset 3px 0 0 var(--signal); }

/* Evidence */

.evidence { background: var(--paper); }
.case-ledger { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.case-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: center;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--paper-line);
}
.case-row.reverse > figure { order: 2; }
.case-row figure {
  margin: 0;
  border: 1px solid var(--paper-line);
  background: var(--ink);
  padding: .4rem;
  overflow: hidden;
}
.case-row img { width: 100%; }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-bottom: .9rem;
}
.case-meta span {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--graphite-soft);
}
.status {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  font-weight: 400;
  padding: .22rem .6rem;
  border: 1px solid;
}
.status.in-progress { color: #a65f00; border-color: rgba(166, 95, 0, .4); background: rgba(255, 176, 31, .12); }
.status.verified { color: #0d6b74; border-color: rgba(13, 107, 116, .35); background: rgba(56, 200, 216, .12); }
.status.support { color: #3c4a55; border-color: rgba(60, 74, 85, .3); background: rgba(60, 74, 85, .08); }
.case-copy h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: .8rem; }
.case-copy p { color: var(--graphite-soft); margin-bottom: 1.1rem; }
.case-copy ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.case-copy li {
  font-family: var(--mono);
  font-size: .68rem;
  padding: .28rem .6rem;
  border: 1px solid var(--paper-line);
  color: var(--graphite-soft);
}

/* Products */

.products {
  background: var(--graphite);
  color: #fff;
  padding: clamp(4.5rem, 9vw, 7rem) max(1.5rem, (100vw - var(--shell)) / 2);
}
.products-heading { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.products-heading .kicker { color: var(--signal); }
.products-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.85rem); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.product-mark {
  display: inline-block;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .2em;
  color: var(--probe);
  margin-bottom: .9rem;
}
.product h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: .9rem; }
.product p { color: rgba(255, 255, 255, .7); margin-bottom: 1.2rem; max-width: 46ch; }
.product-copy ul {
  display: grid;
  gap: .35rem;
  margin-bottom: 1.6rem;
}
.product-copy ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .92rem;
  color: rgba(255, 255, 255, .82);
}
.product-copy ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 1px;
  background: var(--signal);
}
.product figure {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #0b1620;
  padding: .4rem;
}
.product-yida figure { max-width: 420px; margin-inline: auto; }

.download-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.download-links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 2px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.download-links a span { font-family: var(--mono); opacity: .7; }
.download-links a:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}
.download-links a:hover span { opacity: 1; }

/* Contact */

.contact {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }
.contact-intro p { color: var(--graphite-soft); max-width: 34ch; }

.process { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.process li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--paper-line);
}
.process li span {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--signal);
  padding-top: .2rem;
}
.process strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.process p { color: var(--graphite-soft); font-size: .93rem; }

.contact-action {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.contact-action p { font-size: 1.05rem; font-weight: 600; max-width: 32ch; }

/* Footer */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  padding: clamp(3rem, 6vw, 4.5rem) max(1.5rem, (100vw - var(--shell)) / 2) 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.footer-brand img { width: 52px; height: 52px; background: #fff; border-radius: 3px; padding: 5px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-brand p { font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; padding-bottom: 1.8rem; }
.footer-links a {
  text-decoration: none;
  font-size: .9rem;
  border-bottom: 1px solid transparent;
  padding-bottom: .15rem;
}
.footer-links a:hover { color: #fff; border-bottom-color: var(--signal); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--signal); }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 6.5rem; }
  .execution-canvas { min-height: 430px; }
  .adaptation,
  .contact { grid-template-columns: 1fr; }
  .contact-action { grid-column: 1; }
  .capability-list article { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .capability-list ul { grid-column: 2; }
}

@media (max-width: 860px) {
  :root { --shell: min(1320px, 100% - 2.4rem); }

  .nav-toggle { display: grid; }
  .site { background: rgba(6, 13, 19, .92); backdrop-filter: blur(12px); }
  .nav {
    position: fixed;
    inset: 64px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    padding: .5rem 1.5rem 1.5rem;
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding-block: .95rem; border-bottom: 1px solid var(--ink-line); }
  .nav .nav-contact { margin-top: 1rem; text-align: center; justify-content: center; }

  .case-row,
  .product { grid-template-columns: 1fr; }
  .case-row.reverse > figure,
  .product-yida figure { order: -1; }
  .execution-canvas { min-height: 460px; }
  .execution-steps li { min-width: 138px; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .eyebrow { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .eyebrow b { padding-left: 0; border-left: 0; }
  .hero-scope { gap: 1.4rem 2rem; }
  .execution-canvas { min-height: 470px; }
  .execution-steps li {
    left: 4% !important;
    min-width: 0;
    width: 92%;
  }
  .execution-steps li:nth-child(1) { top: 2%; }
  .execution-steps li:nth-child(2) { top: 21%; }
  .execution-steps li:nth-child(3) { top: 40%; }
  .execution-steps li:nth-child(4) { top: 59%; }
  .execution-steps li:nth-child(5) { top: 78%; }
  .trace-lines,
  .axis-label { display: none; }
  .capability-list article { grid-template-columns: 1fr; gap: .9rem; }
  .capability-list ul { grid-column: 1; }
  .process li { grid-template-columns: 2.2rem 1fr; gap: .8rem; }
  .contact-action { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .trace-run { stroke-dasharray: none; opacity: .55; }
}

/* ── Live engineering media ─────────────────────────────── */

.hero-media {
  position: relative;
  min-height: 520px;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  background: #02080e;
  box-shadow: 0 44px 120px -55px #000;
}
.hero-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.08);
}
.hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 15, .5) 0%, transparent 27%, transparent 62%, rgba(3, 9, 14, .94) 100%),
    linear-gradient(90deg, rgba(6, 13, 19, .22), transparent 55%);
  pointer-events: none;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(106, 213, 221, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 213, 221, .06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent 35%, #000 100%);
  pointer-events: none;
}
.hero-media-top,
.hero-media-bottom {
  position: absolute;
  z-index: 3;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hero-media-top {
  top: 1rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.68);
}
.hero-media-top button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  appearance: none;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(5,11,17,.72);
  color: #fff;
  border-radius: 2px;
  padding: .4rem .58rem;
  font: .56rem/1 var(--mono);
  letter-spacing: .12em;
  cursor: pointer;
}
.hero-media-top button i {
  width: 7px;
  height: 7px;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
}
.hero-media-top button.is-paused i { background: var(--probe); box-shadow: 0 0 12px var(--probe); }
.hero-media-bottom { bottom: 5.9rem; align-items: end; }
.hero-media-bottom > div { display: grid; gap: .25rem; }
.hero-media-bottom span {
  font: .58rem/1.4 var(--mono);
  letter-spacing: .18em;
  color: var(--probe);
}
.hero-media-bottom strong { max-width: 30ch; font-size: 1rem; color: #fff; line-height: 1.45; }
.media-signal { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.media-signal i { width: 5px; height: 5px; border-radius: 50%; background: var(--probe); animation: pulse 2s infinite; }
.hero-proof-strip {
  position: absolute;
  z-index: 3;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.hero-proof-strip img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
  opacity: .78;
}

/* The visual evidence runway carries the site's strongest imagery. */
.proof-reel {
  background: #071018;
  color: #fff;
  padding: clamp(4.8rem, 9vw, 7.5rem) max(1.5rem, (100vw - var(--shell)) / 2);
}
.proof-reel-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.proof-reel-heading .kicker { grid-column: 1 / -1; color: var(--signal); margin-bottom: -.3rem; }
.proof-reel-heading h2 { font-size: clamp(1.9rem, 3.5vw, 3.05rem); }
.proof-reel-heading > p:last-child { color: var(--ink-soft); max-width: 44ch; padding-bottom: .2rem; }
.proof-stage {
  display: grid;
  grid-template-columns: 1.32fr .68fr;
  grid-template-rows: auto auto auto;
  gap: 1rem;
}
.proof-stage article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  background: #0b151d;
  min-height: 240px;
}
.proof-feature { grid-row: span 2; min-height: 650px !important; }
.proof-stage figure { position: absolute; inset: 0; margin: 0; }
.proof-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.proof-feature img { object-position: 61% center; }
.proof-tile-tall img { object-position: center; }
.proof-stage article:hover img { transform: scale(1.025); filter: saturate(1.08) contrast(1.03); }
.proof-stage article::after {
  content: "";
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(transparent, rgba(2,8,13,.94));
  pointer-events: none;
}
.proof-caption {
  position: absolute;
  z-index: 2;
  left: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
}
.proof-caption span { font: .6rem/1.4 var(--mono); letter-spacing: .18em; color: var(--signal); }
.proof-caption h3 { font-size: clamp(1.05rem, 1.8vw, 1.42rem); margin-top: .35rem; }
.proof-caption p { margin-top: .55rem; color: rgba(255,255,255,.67); max-width: 52ch; font-size: .9rem; }
.motion-reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.motion-reel article {
  border: 1px solid var(--ink-line);
  background: #0b151d;
  overflow: hidden;
}
.motion-reel video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #02070c; }
.motion-reel article > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1rem;
  align-items: center;
  padding: .85rem 1rem 1rem;
}
.motion-reel span { grid-column: 1; font: .56rem/1.4 var(--mono); letter-spacing: .16em; color: var(--probe); }
.motion-reel strong { grid-column: 1; font-size: .92rem; }
.motion-reel button {
  grid-column: 2;
  grid-row: 1 / span 2;
  appearance: none;
  background: var(--signal);
  color: var(--ink);
  border: 0;
  border-radius: 2px;
  font-weight: 700;
  padding: .55rem .75rem;
  cursor: pointer;
}
.motion-reel button:hover { background: #ffc352; }

@media (max-width: 1080px) {
  .hero-media { min-height: 620px; }
  .proof-reel-heading { grid-template-columns: 1fr; }
  .proof-reel-heading .kicker { grid-column: 1; }
}

@media (max-width: 860px) {
  .hero-media { min-height: 500px; }
  .proof-stage { grid-template-columns: 1fr; }
  .proof-feature { min-height: 520px !important; grid-row: auto; }
  .proof-tile { min-height: 360px !important; }
  .motion-reel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero-media { min-height: 410px; }
  .hero-media-bottom { bottom: 5.2rem; }
  .hero-media-bottom strong { font-size: .86rem; }
  .media-signal { display: none !important; }
  .hero-proof-strip img { height: 52px; }
  .proof-feature { min-height: 400px !important; }
  .proof-tile { min-height: 260px !important; }
  .proof-caption p { display: none; }
}

.proof-contact {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .65rem;
  margin-top: 1rem;
}
.proof-contact > div {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  background: #0b151d;
}
.proof-contact img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  opacity: .78;
  transition: opacity .25s ease, transform .5s ease;
}
.proof-contact > div:hover img { opacity: 1; transform: scale(1.045); }
.proof-contact span {
  display: block;
  padding: .48rem .55rem .6rem;
  font: .52rem/1.3 var(--mono);
  letter-spacing: .09em;
  color: rgba(255,255,255,.56);
}
@media (max-width: 1080px) {
  .proof-contact { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .proof-contact { grid-template-columns: repeat(2, 1fr); }
  .proof-contact span { font-size: .48rem; }
}

/* ── Case-specific engineering evidence decks ───────────── */

.case-visual {
  position: relative;
  height: clamp(360px, 37vw, 490px);
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1.72fr .78fr;
  gap: 4px;
  border-color: rgba(56, 200, 216, .25) !important;
  background: #061018 !important;
  isolation: isolate;
}
.case-visual > div,
.case-visual-main,
.case-visual-stack { min-width: 0; min-height: 0; overflow: hidden; }
.case-visual-main > img,
.case-visual-stack > img,
.case-paut > img,
.paut-overlays img,
.paut-overlays video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.case-visual-stack,
.paut-overlays {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.case-comsol .case-visual-main img { object-position: center; }
.case-comsol .case-visual-stack img { object-position: center; }
.case-paut .paut-console { min-width: 0; min-height: 0; object-position: center; }
.case-paut .paut-overlays { min-width: 0; min-height: 0; }
.case-paut .paut-overlays video { display: block; background: #050d14; }
.case-visual:hover img { transform: scale(1.018); filter: saturate(1.08) contrast(1.03); }
.case-visual figcaption {
  position: absolute;
  z-index: 4;
  left: .8rem;
  bottom: .8rem;
  display: grid;
  gap: .15rem;
  padding: .65rem .8rem;
  max-width: min(72%, 31rem);
  background: rgba(3, 10, 15, .88);
  border-left: 2px solid var(--signal);
  backdrop-filter: blur(8px);
  color: #fff;
}
.case-visual figcaption span {
  font: .54rem/1.3 var(--mono);
  letter-spacing: .17em;
  color: var(--probe);
}
.case-visual figcaption b { font-size: .86rem; line-height: 1.4; }
.case-visual figcaption small { font-size: .65rem; color: rgba(255,255,255,.54); }
.case-visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: -10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 2%, rgba(56,200,216,.75) 22%, rgba(255,176,31,.75) 72%, transparent 98%);
  box-shadow: 0 0 16px rgba(56,200,216,.5);
  animation: evidence-scan 6s linear infinite;
  pointer-events: none;
}
@keyframes evidence-scan { to { transform: translateY(570px); } }

@media (max-width: 860px) {
  .case-visual { height: clamp(320px, 68vw, 520px); }
}
@media (max-width: 620px) {
  .case-visual { height: 360px; grid-template-columns: 1.45fr .75fr; }
  .case-visual figcaption { max-width: calc(100% - 1.6rem); }
  .case-visual figcaption b { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .case-visual::after { display: none; }
}

.case-h1 {
  display: block;
  height: clamp(430px, 43vw, 620px);
  background: #0d1010 !important;
}
.case-h1 > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .35rem;
}
@media (max-width: 860px) {
  .case-h1 { height: clamp(430px, 76vw, 620px); }
}
@media (max-width: 620px) {
  .case-h1 { height: 430px; }
  .case-h1 > img { object-fit: cover; object-position: center; }
}
