/* ============================================================
   RHINO AUTOMATIONS — Machined Dark / Blueprint design system
   ============================================================ */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --iron-950: #0b0d10;
  --iron-900: #12151a;
  --iron-850: #171b21;
  --iron-700: #262c35;
  --iron-600: #333b47;
  --steel-400: #7a8494;
  --steel-300: #9aa3b0;
  --paper: #e8ebef;
  --signal: #ff6a00;
  --signal-dim: #cc5500;
  --bp-line: #35566e;
  --bp-bright: #7fa8c4;
  --bp-glow: rgba(127, 168, 196, 0.16);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max-w: 1180px;
  --pad-x: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--iron-950);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--signal); color: var(--iron-950); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- utility text styles ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.mono--bp { color: var(--bp-bright); }
.mono--signal { color: var(--signal); }

h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; line-height: 0.95; }

a { color: inherit; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--signal); color: var(--iron-950);
  padding: 10px 16px; font-family: var(--font-mono); font-size: 13px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- blueprint grid backdrop ---------- */
.bp-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--bp-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-glow) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 75%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--iron-700);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav__brand svg { display: block; }
.nav__wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav__wordmark span { color: var(--signal); }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__links a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--steel-300); transition: color 0.18s ease;
}
.nav__links a:hover { color: var(--paper); }
.nav__cta {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--signal); color: var(--iron-950);
  padding: 10px 18px; text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.nav__cta:hover { background: #ff7d1f; }
@media (max-width: 860px) {
  .nav__links li:not(.nav__cta-item) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 16px 28px; text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--signal { background: var(--signal); color: var(--iron-950); }
.btn--signal:hover { background: #ff7d1f; }
.btn--ghost { border-color: var(--iron-600); color: var(--paper); background: transparent; }
.btn--ghost:hover { border-color: var(--bp-bright); color: var(--bp-bright); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(64px, 9vh, 110px) 0 64px; }
.hero__center { max-width: 860px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  margin-bottom: 22px; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: ""; display: block; width: 34px; height: 1px; background: var(--signal);
}
.hero h1 {
  font-size: clamp(52px, 8.5vw, 108px);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero__sub {
  max-width: 54ch; color: var(--steel-300); font-size: 18px;
  margin: 0 auto 36px;
}
.hero__sub strong { color: var(--paper); font-weight: 500; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__schematic {
  margin: clamp(48px, 7vh, 80px) auto 0;
  max-width: 1020px;
}
.hero__schematic svg { width: 100%; height: auto; display: block; }
@media (max-width: 720px) {
  .hero__schematic { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hero__schematic svg { min-width: 680px; }
}

/* ---------- trust bar ---------- */
.trust {
  border-top: 1px solid var(--iron-700);
  border-bottom: 1px solid var(--iron-700);
  background: var(--iron-900);
  padding: 26px 0;
}
.trust__inner {
  display: flex; align-items: center; gap: 20px 36px; flex-wrap: wrap;
  justify-content: space-between;
}
.trust__label { flex-shrink: 0; }
.trust__list {
  display: flex; gap: 16px 32px; flex-wrap: wrap; list-style: none;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel-300);
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section__head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section__head .mono { display: block; margin-bottom: 16px; }
.section__head h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.section__head p { color: var(--steel-300); margin-top: 18px; max-width: 60ch; }

/* ---------- systems (services) ---------- */
.systems__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--iron-700); border: 1px solid var(--iron-700);
}
.system {
  background: var(--iron-900); padding: 36px 30px 40px;
  position: relative; transition: background 0.2s ease;
}
.system:hover { background: var(--iron-850); }
.system__ref { display: block; margin-bottom: 26px; }
.system h3 { font-size: 27px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.02em; }
.system p { color: var(--steel-300); font-size: 15.5px; margin-bottom: 20px; }
.system ul { list-style: none; }
.system li {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--steel-400);
  padding: 7px 0 7px 18px; position: relative;
  border-top: 1px dashed var(--iron-700);
}
.system li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px; border: 1px solid var(--bp-line);
}
.system:hover li::before { border-color: var(--bp-bright); }
@media (max-width: 900px) { .systems__grid { grid-template-columns: 1fr; } }

/* ---------- builds (case studies) ---------- */
.builds { background: var(--iron-900); border-top: 1px solid var(--iron-700); border-bottom: 1px solid var(--iron-700); }
.build {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(40px, 6vw, 64px) 0;
  align-items: center;
}
.build + .build { border-top: 1px dashed var(--iron-600); }
.build:nth-child(even) .build__diagram { order: -1; }
.build__ref { display: block; margin-bottom: 18px; }
.build h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 14px; letter-spacing: 0.02em; }
.build p { color: var(--steel-300); font-size: 16px; margin-bottom: 22px; max-width: 52ch; }
.build__metrics { display: flex; gap: 28px 40px; flex-wrap: wrap; }
.build__metric .build__num {
  font-family: var(--font-display); font-weight: 800; font-size: 34px;
  color: var(--paper); line-height: 1; display: block; letter-spacing: 0.02em;
}
.build__metric .build__num sup { font-size: 0.5em; color: var(--signal); }
.build__metric .mono { display: block; margin-top: 6px; }
.build__diagram { min-width: 0; }
.build__diagram svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .build { grid-template-columns: 1fr; }
  .build:nth-child(even) .build__diagram { order: 0; }
  .build__diagram { max-width: 540px; }
}

/* ---------- process ---------- */
.process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sheet {
  border: 1px solid var(--bp-line);
  background:
    linear-gradient(rgba(53, 86, 110, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 86, 110, 0.10) 1px, transparent 1px),
    var(--iron-900);
  background-size: 24px 24px, 24px 24px, auto;
  padding: 30px 28px 34px;
  position: relative;
}
.sheet::after {
  /* drawing-frame corner ticks */
  content: ""; position: absolute; inset: 8px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bp-bright), var(--bp-bright)) top left / 14px 1px,
    linear-gradient(var(--bp-bright), var(--bp-bright)) top left / 1px 14px,
    linear-gradient(var(--bp-bright), var(--bp-bright)) bottom right / 14px 1px,
    linear-gradient(var(--bp-bright), var(--bp-bright)) bottom right / 1px 14px;
  background-repeat: no-repeat;
  pointer-events: none; opacity: 0.7;
}
.sheet__stage { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.sheet h3 { font-size: 30px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.02em; }
.sheet p { color: var(--steel-300); font-size: 15.5px; }
.sheet p + p { margin-top: 12px; }
.sheet .sheet__note {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--bp-line);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--bp-bright);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) { .process__grid { grid-template-columns: 1fr; } }

/* ---------- guarantees ---------- */
.guarantees { background: var(--iron-900); border-top: 1px solid var(--iron-700); border-bottom: 1px solid var(--iron-700); }
.guarantees__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.guarantee h3 { font-size: 21px; font-weight: 700; margin: 14px 0 10px; letter-spacing: 0.03em; }
.guarantee p { color: var(--steel-300); font-size: 14.5px; }
.guarantee__tick {
  width: 30px; height: 30px; border: 1px solid var(--signal);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 14px; color: var(--signal);
}
@media (max-width: 900px) { .guarantees__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guarantees__grid { grid-template-columns: 1fr; } }

/* ---------- booking ---------- */
.book { position: relative; }
.book__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 72px); align-items: start;
}
.book h2 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 800; margin: 16px 0 20px; }
.book h2 em { font-style: normal; color: var(--signal); }
.book__lead { color: var(--steel-300); max-width: 46ch; margin-bottom: 28px; }
.book__steps { list-style: none; margin-bottom: 34px; }
.book__steps li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0; border-top: 1px dashed var(--iron-600);
  color: var(--steel-300); font-size: 15.5px;
}
.book__steps .mono { flex-shrink: 0; }
.book__fallback { font-size: 14.5px; color: var(--steel-400); }
.book__fallback a { color: var(--bp-bright); text-decoration-color: var(--bp-line); }

.calendly-slot {
  border: 1px dashed var(--bp-line);
  background: var(--iron-900);
  min-height: 560px;
  display: grid; place-items: center;
  position: relative;
}
.calendly-slot__placeholder { text-align: center; padding: 40px; max-width: 380px; }
.calendly-slot__placeholder .mono { display: block; margin-bottom: 18px; }
.calendly-slot__placeholder p { color: var(--steel-400); font-size: 14.5px; margin-bottom: 24px; }
@media (max-width: 900px) { .book__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--iron-700); padding: 44px 0 52px; }
.footer__inner {
  display: flex; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  align-items: center;
}
.footer__meta { display: flex; flex-direction: column; gap: 6px; }
.footer a { color: var(--steel-300); text-decoration-color: var(--iron-600); }
.footer a:hover { color: var(--paper); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- schematic (SVG shared styles) ---------- */
.sch-line { stroke: var(--bp-line); fill: none; }
.sch-bright { stroke: var(--bp-bright); fill: none; }
.sch-node { fill: var(--iron-950); stroke: var(--bp-bright); }
.sch-node--signal { stroke: var(--signal); }
.sch-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; fill: var(--steel-400); text-transform: uppercase; }
.sch-label--lg { font-size: 15px; }
.sch-label--bright { fill: var(--bp-bright); }
.sch-label--signal { fill: var(--signal); }
.sch-dim { stroke: var(--bp-line); stroke-dasharray: 3 4; fill: none; }

/* draw-on-load for hero rhino */
.draw path.rhino-stroke {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 2.6s ease forwards 0.3s;
}
.draw .fade-in { opacity: 0; animation: fadein 0.9s ease forwards 2.2s; }
.draw .fade-in--late { opacity: 0; animation: fadein 0.9s ease forwards 2.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .draw path.rhino-stroke { stroke-dashoffset: 0; }
  .draw .fade-in, .draw .fade-in--late { opacity: 1; }
}

/* signal pulse traveling along pipeline edges */
.pulse {
  stroke: var(--signal); stroke-width: 2; fill: none;
  stroke-dasharray: 14 300;
  animation: pulse-travel 3.4s linear infinite;
}
@keyframes pulse-travel { to { stroke-dashoffset: -314; } }
@media (prefers-reduced-motion: reduce) { .pulse { display: none; } }

/* ---------- guide page ---------- */
.guide-body { max-width: 760px; }
.guide-body h2 { font-size: 30px; margin: 44px 0 14px; }
.guide-body p { color: var(--steel-300); margin-bottom: 16px; }
.guide-body strong { color: var(--paper); font-weight: 500; }
.guide-body code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--iron-850); border: 1px solid var(--iron-700);
  padding: 1px 6px; color: var(--bp-bright);
}


/* ---------- mobile refinements ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 60px); margin-bottom: 20px; }
  .hero__sub { font-size: 16.5px; margin-bottom: 30px; }
  .hero__eyebrow { margin-bottom: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .hero__schematic { margin-top: 44px; }
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 36px; }
  .system { padding: 28px 22px 30px; }
  .build { padding: 36px 0; }
  .build h3 { font-size: 24px; }
  .build__metrics { gap: 20px 28px; }
  .build__metric .build__num { font-size: 29px; }
  .sheet { padding: 26px 22px 28px; }
  .calendly-slot { min-height: 420px; }
  .footer { padding: 32px 0 40px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 400px) {
  .nav__wordmark { font-size: 19px; }
  .trust__list { gap: 10px 20px; font-size: 12px; }
}

/* calendly live state */
.calendly-slot.is-live { border: 1px solid var(--iron-700); min-height: 660px; display: block; }
