/* ============================================================
   THE BUILD SLATE — HoosAI ✕ BNSF Railway
   ink + glass, Barlow Condensed / Inter / Fraunces italic
   ============================================================ */

:root {
  --ink: #06070A;
  --ink-2: #0B0D12;
  --text: #E9ECF2;
  --muted: rgba(233, 236, 242, 0.56);
  --faint: rgba(233, 236, 242, 0.32);
  --line: rgba(233, 236, 242, 0.10);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --accent: #F35D0A;
  --accent-soft: rgba(243, 93, 10, 0.16);
  --blue: #4D8DEE;
  --disp: "Barlow Condensed", sans-serif;
  --body: "Inter", sans-serif;
  --serif: "Fraunces", serif;
  --mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* grain — subtle, fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

em { font-family: var(--serif); font-style: italic; font-weight: 400; }

h1, h2, h3 { font-family: var(--disp); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; font-weight: 700; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #ff6f1f; }
.btn-ghost { background: var(--glass); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--glass-2); border-color: rgba(233,236,242,0.25); }

/* ---------- pulse dot ---------- */
.pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243,93,10,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(243,93,10,0); }
}

/* ---------- logo badge ---------- */
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-badge img { display: block; height: 22px; width: auto; }

/* ============================================================
   PRELOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader.lift { transform: translateY(-100%); }
.loader.gone { display: none; }

.loader-inner { text-align: center; width: min(560px, 86vw); }

.loader-gears { opacity: 0; transform: scale(0.8); transition: opacity 0.6s ease, transform 0.6s ease; }
.loader-gears.on { opacity: 1; transform: scale(1); }
.gear-svg { width: 170px; height: 90px; }

/* rail track mark: two rails + ties sliding in */
.rail-tie { opacity: 0; transform: scaleX(0); transition: opacity 0.4s ease, transform 0.4s ease; transform-origin: center; }
.rail-tie.on { opacity: 1; transform: scaleX(1); }
.rail-line { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.1s ease; }
.rail-line.on { stroke-dashoffset: 0; }

.loader-title {
  margin-top: 26px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 58px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
}
.loader-title span { opacity: 0; transform: translateY(14px); transition: opacity 0.35s ease, transform 0.35s ease; }
.loader-title span.in { opacity: 1; transform: translateY(0); }
.loader-title .sp { width: 0.35em; }

.loader-lockup {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.loader-lockup.on { opacity: 1; }

.loader-bar {
  margin: 30px auto 0;
  width: min(320px, 70vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 2.9s linear;
}
.loader-bar i.go { width: 100%; }

.loader-skip {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-head.scrolled {
  background: rgba(6, 7, 10, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}
.lockup {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lockup-x { color: var(--accent); font-size: 14px; }
.lockup-client { color: var(--muted); }
.head-nav { margin-left: auto; display: flex; gap: 26px; }
.head-nav a {
  font-family: var(--disp);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.head-nav a:hover { color: var(--text); }
.head-cta { font-size: 15px; padding: 10px 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 168px 0 96px; position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 18px;
  background: var(--glass);
}
.hero-h1 {
  margin-top: 30px;
  font-size: clamp(60px, 10.5vw, 140px);
}
.hero-h1 em { color: var(--accent); font-weight: 500; }
.hero-sub {
  margin-top: 26px;
  max-width: 660px;
  font-size: 18px;
  color: var(--muted);
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 26px 22px 4px 0; border-right: 1px solid var(--line); padding-left: 22px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  color: var(--text);
}
.stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ============================================================
   THE POINT
   ============================================================ */
.point { padding: 40px 0 96px; }
.point-line {
  max-width: 880px;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.55;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 28px;
}
.point-line em { color: var(--muted); }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.sec-head { margin-bottom: 56px; }
.sec-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.sec-head h2 {
  margin-top: 14px;
  font-size: clamp(40px, 6vw, 68px);
}
.sec-head p { margin-top: 16px; max-width: 560px; color: var(--muted); font-size: 15.5px; }

/* ============================================================
   BUILDS
   ============================================================ */
.demos { padding: 40px 0 60px; }

.build {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}
.build:hover { border-color: rgba(233, 236, 242, 0.22); }

.build-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.build-num {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 236, 242, 0.35);
}
.build-title { flex: 1 1 260px; }
.build-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--accent);
  display: inline-block;
  border: 1px solid var(--accent-soft);
  background: rgba(243, 93, 10, 0.07);
  padding: 5px 12px;
  border-radius: 100px;
}
.build-title h3 { margin-top: 12px; font-size: clamp(28px, 4vw, 42px); }
.build-open { align-self: center; }

.build-blurb {
  margin-top: 20px;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.shot {
  display: block;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-2);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.shot:hover { transform: translateY(-4px); border-color: rgba(233, 236, 242, 0.28); }
.shot img { display: block; width: 100%; height: auto; }

.feat-list {
  margin-top: 26px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 36px;
}
.feat-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}
.feat-list .pulse { position: relative; top: -1px; }

.build-url {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding: 90px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; max-width: 820px; }
.step {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 93, 10, 0.7);
  flex: none;
  width: 64px;
}
.step h3 { font-size: 26px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 600px; }

/* ============================================================
   NEXT — LEDGER
   ============================================================ */
.next { padding: 90px 0; border-top: 1px solid var(--line); }
.ledger { list-style: none; }
.ledger-row {
  display: flex;
  gap: 28px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row:first-child { border-top: 1px solid var(--line); }
.ledger-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  flex: none;
  width: 44px;
}
.ledger-row h3 { font-size: 24px; display: inline; margin-right: 14px; }
.ledger-row p { display: inline; color: var(--muted); font-size: 14.5px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { padding: 120px 0 130px; border-top: 1px solid var(--line); text-align: left; }
.final h2 { font-size: clamp(52px, 9vw, 110px); }
.final h2 em { color: var(--accent); font-weight: 500; }
.final p { margin-top: 22px; max-width: 560px; color: var(--muted); font-size: 17px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 60px; }
.foot-lockup {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-lockup span { color: var(--accent); }
.site-foot p { margin-top: 14px; max-width: 720px; font-size: 12.5px; color: var(--faint); line-height: 1.7; }

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

/* ============================================================
   MOBILE — no horizontal scroll anywhere; full containers stack
   ============================================================ */
@media (max-width: 860px) {
  .head-nav { display: none; }
  .head-row { gap: 12px; }
  .lockup { font-size: 17px; gap: 7px; }
  .head-cta { margin-left: auto; font-size: 13px; padding: 8px 12px; letter-spacing: 0.06em; }
  .hero { padding: 132px 0 70px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 0 16px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 18px; }
  .stat:nth-child(even) { padding-left: 18px; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .feat-list { grid-template-columns: 1fr; }
  .build-head { gap: 16px; }
  .build-open { width: 100%; }
  .point-line { padding-left: 20px; }
  .step { flex-direction: column; gap: 10px; }
  .ledger-row { flex-direction: column; gap: 6px; }
  .ledger-row h3 { display: block; }
  .ledger-row p { display: block; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  .loader { display: none; }
}
