*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0c1220;
  color: #e6eaf2;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

:root {
  --ink: #e6eaf2;
  --muted: #8b95a8;
  --void: #0c1220;
  --panel: #141c2e;
  --panel-2: #1a2438;
  --steel: #3d4f6f;
  --flame: #ff6b2c;
  --flame-dim: rgba(255,107,44,0.18);
  --line: rgba(230,234,242,0.1);
}

/* ——— PIPELINE NODE NAV (unique) ——— */
.pipehead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12,18,32,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 18px 28px 22px;
}
.pipehead .brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.pipehead .brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.pipehead .brand span {
  color: var(--flame);
  font-weight: 600;
}
.pipehead .tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pipeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.pipeline::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--flame), var(--steel));
  border-radius: 2px;
  opacity: 0.5;
}
.pipeline nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.pipeline nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.2s;
  width: 90px;
}
.pipeline nav a .node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--void);
  border: 3px solid var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  transition: all 0.25s;
}
.pipeline nav a .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}
.pipeline nav a:hover { color: var(--ink); }
.pipeline nav a:hover .node { border-color: var(--flame); }
.pipeline nav a.active { color: var(--flame); }
.pipeline nav a.active .node {
  background: var(--flame);
  border-color: var(--flame);
  color: #0c1220;
  box-shadow: 0 0 0 6px var(--flame-dim);
}

.mob {
  display: none;
  background: var(--flame);
  color: #0c1220;
  border: none;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

/* ——— SPARK HERO ——— */
.spark {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.spark .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 12px;
}
.spark h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.spark h1 em {
  font-style: normal;
  color: var(--flame);
}
.spark p {
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.spark .frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.spark .frame img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.spark .frame .status {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(12,18,32,0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-flame {
  background: var(--flame);
  color: #0c1220;
}
.btn-flame:hover { filter: brightness(1.1); }
.btn-steel {
  background: var(--panel-2);
  color: #fff;
  border: 1px solid var(--line);
}
.btn-steel:hover { border-color: var(--flame); color: var(--flame); }
.btn-line {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--void); }

/* ——— METRICS ——— */
.metrics {
  max-width: 1100px;
  margin: 0 auto 36px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}
.metric .v {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--flame);
  margin-bottom: 4px;
}
.metric .l {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* ——— FLOW ——— */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px 56px;
}
.section .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.flow-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.flow-card:hover { border-color: rgba(255,107,44,0.4); }
.flow-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.flow-card .body { padding: 20px; }
.flow-card .code {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 6px;
}
.flow-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.flow-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ——— GRID ABOUT ——— */
.grid-top {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 28px 24px;
  text-align: center;
}
.grid-top .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 10px;
}
.grid-top h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.grid-top p {
  color: var(--muted);
  font-size: 1.05rem;
}
.grid-img {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 0 28px;
}
.grid-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.grid-prose {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 28px 56px;
}
.grid-prose p {
  color: var(--muted);
  margin-bottom: 14px;
}

/* ——— VALVE CONTACT ——— */
.valve-wrap {
  max-width: 1100px;
  margin: 28px auto 60px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
}
.valve-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
}
.valve-side h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.v-row { margin-bottom: 16px; }
.v-row .lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 4px;
}
.v-row p, .v-row a {
  font-size: 0.95rem;
  color: var(--muted);
}
.v-row a:hover { color: var(--flame); }

.valve-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--flame);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ft {
  border-top: 1px solid var(--line);
  padding: 28px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.ft strong { color: var(--ink); }

@media (max-width: 860px) {
  .pipeline nav {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .pipeline nav.open { display: flex; }
  .pipeline::before { display: none; }
  .mob { display: inline-block; margin-bottom: 12px; }
  .spark { grid-template-columns: 1fr; }
  .spark .frame img { height: 240px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .valve-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .grid-img img { height: 220px; }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
}
