/* ═══════════════════════════════════════════════════
   505 OPS site stylesheet v1.2
   Built on brand tokens v1.0 (July 2026)
   ═══════════════════════════════════════════════════ */

:root {
  /* brand tokens */
  --ops-ink: #0C1524;
  --ops-slate: #1D2E47;
  --ops-amber: #F5A623;
  --ops-paper: #F4F2ED;
  --ops-font-sans: 'Hanken Grotesk', sans-serif;
  --ops-font-mono: 'IBM Plex Mono', monospace;
  /* extended palette from guidelines */
  --ops-amber-dark: #B87A0E;      /* amber-as-label on light grounds */
  --ops-ink-soft: #3d4453;        /* body text on light */
  --ops-muted-light: #6b7280;     /* muted text on light */
  --ops-muted-dark: #8493ab;      /* muted text on navy */
  --ops-border-light: #E5E1D6;    /* hairlines on paper */
  --ops-border-dark: #3d4a61;     /* hairlines on navy */
  --ops-card-light: #FAF8F3;      /* card fill on paper */
  --ops-card-dark: #101B2E;       /* card fill on navy */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ops-ink);
  color: var(--ops-ink);
  font: 400 16px/1.65 var(--ops-font-sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── mono labels (the system voice) ─────────────── */
.label {
  font: 500 11px var(--ops-font-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.label--amber-on-dark { color: var(--ops-amber); }
.label--amber-on-light { color: var(--ops-amber-dark); }
.label--muted-dark { color: var(--ops-muted-dark); }
.label--muted-light { color: #8a8578; }

/* ── node states (working notation) ─────────────── */
.node {
  width: 14px; height: 14px; border-radius: 50%;
  flex: none; display: inline-block;
}
.node--input-dark  { border: 2.5px solid var(--ops-paper); background: transparent; }
.node--input-light { border: 2.5px solid var(--ops-ink); background: transparent; }
.node--process     { background: var(--ops-amber); border: none; }
.node--output-dark  { background: var(--ops-paper); border: none; }
.node--output-light { background: var(--ops-ink); border: none; }

/* ── buttons ────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font: 700 15px var(--ops-font-sans);
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--amber { background: var(--ops-amber); color: var(--ops-ink); }
.btn--ghost-dark { border: 1.5px solid var(--ops-border-dark); color: var(--ops-paper); }
.btn--ghost-light { border: 1.5px solid #C9C2B2; color: var(--ops-ink); }
.btn--ink { background: var(--ops-ink); color: var(--ops-paper); }

/* ── grid texture for navy sections ─────────────── */
.gridded { position: relative; }
.gridded::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 36px 36px;
}
.gridded > * { position: relative; }

/* ═══════════ NAV ═══════════ */
.nav {
  background: var(--ops-ink);
  border-bottom: 1px solid var(--ops-slate);
  position: sticky; top: 0; z-index: 50;
}
.nav__inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; max-width: 1120px; margin: 0 auto;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  font: 600 13px var(--ops-font-sans);
  color: var(--ops-muted-dark); text-decoration: none;
}
.nav__links a:not(.btn):hover { color: var(--ops-paper); }
.nav .btn { padding: 10px 18px; font-size: 13px; }

/* ═══════════ HERO ═══════════ */
.hero { background: var(--ops-ink); padding: 96px 0 88px; }
.hero__kicker { margin-bottom: 24px; }
.hero h1 {
  margin: 0 0 24px;
  font: 800 clamp(38px, 6vw, 64px)/1.08 var(--ops-font-sans);
  letter-spacing: -.015em;
  color: var(--ops-paper);
  max-width: 18ch;
}
.hero__sub {
  margin: 0 0 36px;
  font-size: clamp(16px, 2vw, 19px); line-height: 1.6;
  color: var(--ops-muted-dark);
  max-width: 52ch;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__micro {
  margin-top: 18px;
  font: 400 12px var(--ops-font-mono);
  color: var(--ops-muted-dark);
  letter-spacing: .06em;
}
/* decorative horizontal spine under hero content */
.hero__spine {
  display: flex; align-items: center; gap: 0; margin-top: 64px;
}
.hero__spine .seg { flex: 1; border-top: 2px dashed var(--ops-border-dark); margin: 0 8px; }
.hero__spine .label { white-space: nowrap; }

/* ═══════════ SECTION SCAFFOLD ═══════════ */
.section { padding: 88px 0; }
.section--paper { background: var(--ops-paper); }
.section--navy { background: var(--ops-ink); }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.section__head h2 {
  margin: 0;
  font: 800 clamp(28px, 4vw, 40px)/1.15 var(--ops-font-sans);
  letter-spacing: -.01em;
}
.section--paper h2 { color: var(--ops-ink); }
.section--navy h2 { color: var(--ops-paper); }
.section__lede { margin: 0; max-width: 60ch; font-size: 17px; }
.section--paper .section__lede { color: var(--ops-ink-soft); }
.section--navy .section__lede { color: var(--ops-muted-dark); }

/* dashed divider with node endpoints (paper sections) */
.divider {
  display: flex; align-items: center; gap: 10px;
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.divider .seg { flex: 1; border-top: 2px dashed #C9C2B2; }
.divider .node { width: 11px; height: 11px; }

/* ═══════════ WHO IT'S FOR ═══════════ */
.qualifiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--ops-border-light); margin-top: 40px; }
.qualifiers > div {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--ops-border-light);
  font-size: 15px; color: var(--ops-ink-soft);
}
.qualifiers .node { margin-top: 4px; }
.painlines {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 10px;
  font: 400 13px/1.7 var(--ops-font-mono);
  color: #8a8578;
}

/* ═══════════ THE FLOW ═══════════ */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.flow__card {
  background: var(--ops-card-dark);
  border: 1px solid var(--ops-slate);
  border-radius: 6px;
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.flow__card--featured { border-color: var(--ops-amber); }
.flow__stage { display: flex; align-items: center; gap: 12px; }
.flow__card h3 {
  margin: 0;
  font: 700 22px/1.2 var(--ops-font-sans);
  color: var(--ops-paper);
}
.flow__promise { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ops-muted-dark); }
.flow__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.flow__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.55; color: #b8c0cf;
}
.flow__list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ops-slate); border: 1.5px solid var(--ops-border-dark);
  flex: none; margin-top: 6px;
}
/* connector row above cards */
.flow__spine {
  display: flex; align-items: center; margin-bottom: 28px;
}
.flow__spine .seg { flex: 1; border-top: 2px dashed var(--ops-border-dark); margin: 0 10px; }

/* roadmap offer strip */
.offer {
  margin-top: 24px;
  background: var(--ops-card-dark);
  border: 1px solid var(--ops-slate);
  border-radius: 6px;
  padding: 36px 40px;
  display: flex; flex-wrap: wrap; gap: 36px; align-items: center;
}
.offer__body { flex: 2; min-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.offer__body h3 { margin: 0; font: 700 22px/1.25 var(--ops-font-sans); color: var(--ops-paper); }
.offer__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.offer__steps li { display: flex; gap: 14px; align-items: baseline; font-size: 14.5px; color: #b8c0cf; }
.offer__steps .label { flex: none; width: 74px; }
.offer__box {
  flex: 1; min-width: 260px;
  border: 1px solid var(--ops-border-dark); border-radius: 6px;
  padding: 28px 30px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
}
.offer__price { font: 800 40px/1 var(--ops-font-sans); color: var(--ops-paper); }
.offer__meta { font: 500 11px/1.9 var(--ops-font-mono); letter-spacing: .14em; color: var(--ops-muted-dark); text-transform: uppercase; }
.offer__guarantee { font-size: 14px; line-height: 1.6; color: #b8c0cf; border-top: 1px solid var(--ops-border-dark); padding-top: 14px; }
.offer__guarantee strong { color: var(--ops-paper); }
.offer__proofline { font: 500 12px var(--ops-font-mono); color: var(--ops-amber); letter-spacing: .08em; }

/* ═══════════ PROOF ═══════════ */
.proof__client-line { font-size: 17px; line-height: 1.65; color: var(--ops-ink-soft); max-width: 68ch; margin: 0 0 32px; }
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid var(--ops-border-light); }
.proof__grid > div {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--ops-border-light);
  font-size: 15px; color: var(--ops-ink-soft);
}
.proof__grid .node { margin-top: 5px; }

/* ═══════════ APPROACH ═══════════ */
.steps { display: flex; flex-direction: column; margin-top: 8px; }
.step { display: flex; gap: 22px; }
.step__rail { display: flex; flex-direction: column; align-items: center; }
.step__rail .node { margin-top: 5px; } /* optically centre node on the heading's first line */
.step__rail .seg { flex: 1; border-left: 2px dashed #C9C2B2; margin: 4px 0; min-height: 26px; }
.step__body { padding-bottom: 30px; }
.step__body h3 { margin: 0 0 4px; font: 700 18px var(--ops-font-sans); color: var(--ops-ink); }
.step__body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ops-muted-light); max-width: 56ch; }

/* ═══════════ FINAL CTA ═══════════ */
.cta-final { text-align: left; }
.cta-final h2 { max-width: 18ch; }
.cta-final .hero__ctas { margin-top: 32px; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--ops-ink);
  border-top: 1px solid var(--ops-slate);
  padding: 40px 0;
}
.footer__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer__logo img { height: 22px; width: auto; }
.footer__links {
  display: flex; gap: 24px; align-items: center;
  font: 400 12px var(--ops-font-mono); color: var(--ops-muted-dark);
}
.footer__links a { color: var(--ops-muted-dark); text-decoration: none; }
.footer__links a:hover { color: var(--ops-paper); }

/* ═══════════ BOOKING MODAL ═══════════ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
}
.modal.is-open { display: block; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(12, 21, 36, 0.82);
}
.modal__panel {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 48px));
  background: var(--ops-ink);
  border: 1px solid var(--ops-border-dark);
  border-radius: 6px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ops-slate);
  flex: none;
}
.modal__close {
  background: none; border: none; cursor: pointer;
  color: var(--ops-paper); font-size: 26px; line-height: 1;
  padding: 2px 8px;
}
.modal__close:hover { color: var(--ops-amber); }
.modal__loading {
  position: absolute; inset: 0; top: 49px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--ops-ink);
}
.modal__frame {
  flex: 1; border: none; width: 100%;
  background: transparent; opacity: 0;
}
.modal__frame.is-ready { opacity: 1; background: #fff; }
.modal__fallback {
  flex: none; text-align: center; padding: 12px;
  color: var(--ops-muted-dark); text-decoration: none;
  border-top: 1px solid var(--ops-slate);
}
.modal__fallback:hover { color: var(--ops-paper); }
@media (max-width: 720px) {
  .modal__panel { width: 100vw; height: 100vh; border-radius: 0; border: none; }
}

/* ═══════════════════════════════════════════════════
   MOTION — per 505 OPS Motion Spec v1.0 (site v2.0)
   One easing. Transform + opacity only. Reduced-motion safe.
   ═══════════════════════════════════════════════════ */
:root {
  --ops-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ops-t-micro: 200ms;
  --ops-t-move: 450ms;
  --ops-t-seq: 1400ms;
}

/* ── SPEC 02: dash drift (hero spine only) ─────────── */
.hero__spine .seg {
  border-top: none;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--ops-border-dark) 0 9px, transparent 9px 18px);
  animation: ops-drift 2.4s linear infinite;
}
@keyframes ops-drift { to { background-position: 18px 0; } }
.is-paused .seg, .seg.is-paused { animation-play-state: paused; }

/* ── SPEC 03: node breath (one per viewport) ───────── */
.breath { position: relative; animation: ops-breath 3.2s var(--ops-ease) infinite; }
.breath::after {
  content: ""; position: absolute; inset: -3px;
  border: 1.5px solid var(--ops-amber); border-radius: 50%;
  animation: ops-breath-ring 3.2s var(--ops-ease) infinite;
}
@keyframes ops-breath { 0%,100% { transform: scale(1); } 45% { transform: scale(1.05); } }
@keyframes ops-breath-ring { 0% { transform: scale(1); opacity: .55; } 60%,100% { transform: scale(1.9); opacity: 0; } }

/* ── SPEC 01: hero boot sequence (once per session) ── */
body.boot .hero__spine > * { opacity: 0; }
body.boot .hero__spine .node { animation: ops-appear 300ms var(--ops-ease) forwards; }
body.boot .hero__spine .seg { animation: ops-appear 300ms var(--ops-ease) forwards, ops-drift 2.4s linear infinite; }
body.boot .hero__spine .label { animation: ops-appear 300ms var(--ops-ease) forwards; }
body.boot .hero__spine > :nth-child(1) { animation-delay: 0ms; }
body.boot .hero__spine > :nth-child(2) { animation-delay: 200ms; }
body.boot .hero__spine > :nth-child(3) { animation-delay: 300ms; }
body.boot .hero__spine > :nth-child(4) { animation-delay: 350ms; }
body.boot .hero__spine > :nth-child(5) { animation-delay: 400ms; }
body.boot .hero__spine > :nth-child(6) { animation-delay: 600ms; }
body.boot .hero__spine > :nth-child(7) { animation-delay: 700ms; }
body.boot .hero__spine > :nth-child(8) { animation-delay: 750ms; }
body.boot .hero__spine > :nth-child(9) { animation-delay: 800ms; }
body.boot .hero__spine > :nth-child(10) { animation-delay: 1000ms; }
body.boot .hero__spine > :nth-child(11) { animation-delay: 1100ms; }
body.boot .hero__spine > :nth-child(5) { animation-name: ops-appear, ops-swell, ops-drift; animation-duration: 300ms, 600ms, 2.4s; animation-delay: 400ms, 500ms, 0s; }
body.boot .hero__kicker, body.boot .hero h1, body.boot .hero__sub,
body.boot .hero__ctas, body.boot .hero__micro {
  opacity: 0; animation: ops-appear 500ms var(--ops-ease) forwards; animation-delay: 1100ms;
}
@keyframes ops-appear { to { opacity: 1; } }
@keyframes ops-swell { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
/* nth-child(5) is the process node in the hero spine; swell = the loudest moment */

/* ── SPEC 04: scroll is state (section markers) ────── */
.s-node {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  box-sizing: border-box; margin-right: 10px; vertical-align: -1px;
  border: 2px solid currentColor; position: relative;
}
.s-node::after {
  content: ""; position: absolute; inset: 1px; border-radius: 50%;
  background: currentColor; transform: scale(0);
  transition: transform 350ms var(--ops-ease);
}
.is-done .s-node::after { transform: scale(1); }

/* ── SPEC 05: nav lockup as scroll progress ────────── */
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup__spine { display: flex; align-items: center; }
.lockup__spine .node { width: 9px; height: 9px; }
.lockup__spine .node--input-dark { border-width: 1.5px; }
.lseg {
  width: 13px; height: 2px; margin: 0 3px; position: relative;
  background-image: repeating-linear-gradient(90deg, #55637d 0 3px, transparent 3px 6px);
}
.lseg__fill {
  position: absolute; inset: 0; background: var(--ops-paper);
  transform: scaleX(0); transform-origin: left;
}
.lockup__word { font: 800 15px 'Hanken Grotesk', sans-serif; color: var(--ops-paper); letter-spacing: .1em; }

/* ── SPEC 06: scroll-in reveal + card hover ────────── */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: translateY(0);
  transition: opacity var(--ops-t-move) var(--ops-ease), transform var(--ops-t-move) var(--ops-ease);
}
.flow__card { transition: transform var(--ops-t-micro) var(--ops-ease), border-color var(--ops-t-micro) var(--ops-ease), box-shadow var(--ops-t-micro) var(--ops-ease); }
.flow__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.flow__card .node { transition: background var(--ops-t-micro) var(--ops-ease); }
.flow__card:hover .node--input-dark { background: var(--ops-paper); }

/* ── SPEC 08: divider draw-on ──────────────────────── */
.divider .seg { transform: scaleX(0); }
.divider .seg:first-of-type { transform-origin: left; }
.divider .seg:last-of-type { transform-origin: right; }
.divider.is-in .seg { transform: scaleX(1); transition: transform 500ms var(--ops-ease); }

/* ── SPEC 09: CTA hover (no idle pulse, ever) ──────── */
.btn { transition: transform var(--ops-t-micro) var(--ops-ease), box-shadow var(--ops-t-micro) var(--ops-ease); }
.btn--amber:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(245, 166, 35, .35); }

/* ── guardrails: reduced motion = final states ─────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, body.boot .hero__spine > *, body.boot .hero__kicker, body.boot .hero h1,
  body.boot .hero__sub, body.boot .hero__ctas, body.boot .hero__micro { opacity: 1; transform: none; }
  .s-node::after { transform: scale(1); }
  .divider .seg { transform: scaleX(1); }
  .lseg__fill { display: none; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow__spine { display: none; }
  .proof__grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .hero__spine { display: none; }
  .offer { padding: 28px 24px; }
}
