/* Barker Infrastructure — shared stylesheet (black / orange) */

:root {
  --bg: #070707;
  --bg-2: #0d0d0d;
  --card: #121212;
  --card-hover: #181818;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f0ec;
  --dim: #9a958d;
  --dim-2: #6e6a63;
  --orange: #ff6b1a;
  --orange-2: #ff8a3d;
  --orange-deep: #c94f0a;
  --orange-glow: rgba(255, 107, 26, 0.14);
  --on-orange: #140800;
  --on-orange-dim: rgba(20, 8, 0, 0.55);
  --grad: linear-gradient(92deg, #ff6b1a 0%, #ff9d3d 100%);
  --max: 1200px;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.032em;
}

a { color: inherit; }
::selection { background: var(--orange); color: var(--on-orange); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Segmented pill nav ---------- */

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 7, 0.82);
  backdrop-filter: blur(14px);
  padding: 14px 16px;
}

.nav { display: flex; gap: 8px; align-items: stretch; }

.pill {
  display: flex; align-items: center;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 8px;
  padding: 0 16px; height: 42px;
  transition: background 0.15s, color 0.15s;
}

.brand-pill {
  gap: 10px; font-weight: 600;
  background: var(--orange); color: var(--on-orange);
  flex: none;
}
.brand-pill:hover { background: var(--orange-2); }
.brand-pill svg { flex: none; }

.nav-pill {
  flex: 1; color: var(--dim);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-pill:hover { background: rgba(255, 255, 255, 0.10); color: var(--text); }
.nav-pill.active { color: var(--text); background: rgba(255, 255, 255, 0.10); }

.nav-cta {
  flex: none;
  background: var(--orange); color: var(--on-orange);
  font-weight: 600; border: none;
}
.nav-cta:hover { background: var(--orange-2); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 90px;
  isolation: isolate;
}

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52% 44% at 74% 8%, rgba(255, 107, 26, 0.12), transparent 70%),
    radial-gradient(38% 34% at 8% 82%, rgba(255, 107, 26, 0.05), transparent 70%);
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(circle at center, transparent 63%, var(--line) 64%, var(--line) 65%, transparent 66%);
  background-size: 84px 84px;
  mask-image: radial-gradient(75% 70% at 55% 25%, black 0%, transparent 100%);
  opacity: 0.5;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--orange);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  max-width: 16ch;
}

.hero .lede {
  margin-top: 30px; max-width: 58ch;
  font-size: 19.5px; line-height: 1.65; color: var(--dim);
}
.hero .lede strong { color: var(--text); font-weight: 600; }

.hero-actions { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--mono); font-weight: 600;
  font-size: 14px; padding: 13px 24px; border-radius: 8px;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }

.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); transform: translateY(-1px); }

/* ---------- Ticker strip ---------- */

.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 26px 0;
}

.ticker-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.tick { display: flex; flex-direction: column; gap: 3px; }
.tick b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.tick b span { color: var(--orange); }
.tick small { font-family: var(--mono); font-size: 12px; color: var(--dim-2); }

/* ---------- Statement interlude (full-bleed orange) ---------- */

.statement {
  background: var(--orange);
  padding: 110px 0;
}

.statement p {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 600; line-height: 1.18; letter-spacing: -0.025em;
  color: var(--on-orange-dim);
  max-width: 30ch;
}
.statement p span { color: var(--on-orange); }

.statement .statement-kicker {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-orange); margin-bottom: 30px;
}

/* ---------- Sections ---------- */

section { padding: 96px 0; position: relative; }

.section-head { max-width: 64ch; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); }
.section-head h2 .dim2 { color: var(--dim-2); }
.section-head p { margin-top: 16px; color: var(--dim); font-size: 18px; }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 18px;
}

/* ---------- Facts / cards ---------- */

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.fact {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); padding: 30px 28px;
  transition: border-color 0.2s, background 0.2s;
}
.fact:hover { border-color: var(--line-strong); background: var(--card-hover); }

.fact h3 { font-size: 21px; margin-bottom: 12px; }
.fact p { font-size: 15.5px; color: var(--dim); }
.fact .rule { width: 34px; height: 4px; background: var(--orange); border-radius: 2px; margin-bottom: 20px; }

/* ---------- Numbered capability rows ---------- */

.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 96px 1.05fr 1.6fr auto;
  gap: 28px; align-items: baseline;
  padding: 34px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding-left 0.25s;
}

.row:hover { background: rgba(255, 107, 26, 0.05); padding-left: 20px; }

.row .num { font-family: var(--mono); font-size: 13px; color: var(--dim-2); }
.row:hover .num { color: var(--orange); }

.row h3 { font-size: clamp(21px, 2.4vw, 27px); }
.row p { font-size: 15.5px; color: var(--dim); max-width: 52ch; }

.row .arrow { font-family: var(--mono); font-size: 20px; color: var(--dim-2); transition: transform 0.25s, color 0.2s; }
.row:hover .arrow { transform: translateX(6px); color: var(--orange); }

.badge {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); background: var(--orange-glow);
  border: 1px solid rgba(255, 107, 26, 0.4);
  padding: 3px 10px; border-radius: 6px;
  margin-left: 10px; vertical-align: middle;
}

/* ---------- ML feature panel ---------- */

.panel {
  position: relative; border-radius: 18px; padding: 56px 52px;
  background:
    radial-gradient(60% 90% at 88% 0%, rgba(255, 107, 26, 0.13), transparent 60%),
    var(--card);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.panel h2 { font-size: clamp(28px, 3.8vw, 46px); max-width: 22ch; position: relative; }
.panel p { margin-top: 18px; max-width: 60ch; color: var(--dim); font-size: 17.5px; position: relative; }
.panel .btn { margin-top: 30px; position: relative; }

/* ---------- Prose pages ---------- */

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 60px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .grad-text { font-family: var(--mono); font-weight: 600; font-size: 0.8em; }
.prose p { margin-bottom: 18px; color: var(--text); }
.prose p.dim, .prose .dim { color: var(--dim); }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 10px; color: var(--dim); }
.prose li strong { color: var(--text); }
.prose a { color: var(--orange); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.page-title { position: relative; padding-top: 110px; padding-bottom: 30px; isolation: isolate; }
.page-title::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 78% 0%, rgba(255, 107, 26, 0.10), transparent 70%);
}
.page-title h1 { font-size: clamp(38px, 5.4vw, 66px); max-width: 18ch; }
.page-title .lede { margin-top: 24px; max-width: 58ch; font-size: 19px; color: var(--dim); }

/* ---------- Principal ---------- */

.principal {
  display: flex; gap: 32px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); padding: 32px;
  margin-top: 8px;
}

.principal img {
  width: 240px; height: 240px; flex: none;
  border-radius: 14px; object-fit: cover;
  border: 1px solid var(--line-strong);
}

.principal h3 { font-size: 23px; margin-bottom: 4px; }
.principal .role { font-family: var(--mono); font-size: 13px; color: var(--orange); font-weight: 600; margin-bottom: 12px; }
.principal p { font-size: 15.5px; color: var(--dim); margin-bottom: 10px; }
.principal p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .principal { flex-direction: column; }
}

/* ---------- Contact block ---------- */

.contact-box {
  border: 1px solid var(--line-strong); border-radius: 18px;
  background:
    radial-gradient(70% 120% at 10% 0%, rgba(255, 107, 26, 0.10), transparent 60%),
    var(--card);
  padding: 52px 48px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px; flex-wrap: wrap;
}

.contact-box h2 { font-size: clamp(26px, 3.4vw, 38px); }
.contact-box p { color: var(--dim); margin-top: 10px; }

/* ---------- Floating orange footer card ---------- */

footer {
  padding: 20px 16px 16px;
  position: relative;
  background-image: radial-gradient(circle at center, transparent 62%, rgba(255, 255, 255, 0.06) 63%, rgba(255, 255, 255, 0.06) 64%, transparent 65%);
  background-size: 110px 110px;
}

.foot-card {
  background: var(--orange);
  border-radius: 20px;
  color: var(--on-orange);
  padding: 56px 56px 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.foot-mark { align-self: end; }
.foot-mark svg { display: block; width: 210px; height: auto; }

.foot-links { display: flex; flex-direction: column; }

.foot-links a {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600; letter-spacing: -0.025em;
  text-decoration: none;
  padding: 14px 0;
  border-top: 1px solid var(--on-orange-dim);
  transition: padding-left 0.2s;
}
.foot-links a:last-of-type { border-bottom: 1px solid var(--on-orange-dim); }
.foot-links a:hover { padding-left: 12px; }

.foot-meta {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; flex-wrap: wrap;
  margin-top: 34px;
  font-family: var(--mono); font-size: 13px;
  color: var(--on-orange-dim);
}
.foot-meta a { color: inherit; text-decoration: none; }
.foot-meta a:hover { color: var(--on-orange); }

/* ---------- Pipeline page ---------- */

.diagram {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); padding: 36px 28px 24px;
  overflow-x: auto;
}
.diagram svg { display: block; min-width: 860px; width: 100%; height: auto; }
.diagram-caption {
  font-family: var(--mono); font-size: 12.5px; color: var(--dim-2);
  margin-top: 14px; padding: 0 4px;
}

.flow-line { stroke-dasharray: 4 7; animation: flowdash 1.1s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -11; } }
@media (prefers-reduced-motion: reduce) { .flow-line { animation: none; } }

.stage {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.stage:last-of-type { border-bottom: none; }
.stage .glyph {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--orange-glow); border: 1px solid rgba(255, 107, 26, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.stage h3 { font-size: 22px; margin-bottom: 8px; }
.stage h3 .stage-num { font-family: var(--mono); font-size: 14px; color: var(--orange); margin-right: 10px; }
.stage p { font-size: 15.5px; color: var(--dim); max-width: 68ch; margin-bottom: 8px; }
.stage .tools {
  font-family: var(--mono); font-size: 12.5px; color: var(--dim-2);
  margin-top: 10px;
}
.stage .tools b { color: var(--orange); font-weight: 500; }

.terminal {
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: #0a0a0a; overflow: hidden;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: var(--card);
  font-size: 12px; color: var(--dim-2);
}
.terminal-bar i {
  width: 10px; height: 10px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.14); font-style: normal;
}
.terminal-bar i:first-child { background: var(--orange); }
.terminal pre { padding: 20px 22px; overflow-x: auto; color: var(--dim); }
.terminal .tk { color: var(--orange); }
.terminal .ts { color: var(--text); }
.terminal .tc { color: var(--dim-2); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; }
  .row { grid-template-columns: 48px 1fr; }
  .row p { grid-column: 2; }
  .row .arrow { display: none; }
  .hero { padding: 80px 0 60px; }
  section { padding: 64px 0; }
  .panel { padding: 40px 28px; }
  .contact-box { padding: 36px 28px; }
  .nav-pill:not(.nav-cta) { display: none; }
  .nav { justify-content: space-between; }
  .ticker-row { gap: 20px; }
  .statement { padding: 72px 0; }
  .foot-card { grid-template-columns: 1fr; padding: 40px 28px 32px; }
  .foot-mark svg { width: 150px; }
}
