/* =========================================================
   Muhammad Abdullah — v3c
   Layout and visual language modelled closely on frontal.so:
   dark-dominant grounds, one hot orange accent, [ mono tags ]
   in brackets, flat hairline panels with title bars, dashed
   connectors, huge numerals in the proof row.

   Content, copy and branding are entirely his own.
   No backdrop-filter, no JS animation loop, no dependencies.
   ========================================================= */

:root {
  /* grounds */
  --d0:  #0b0b0e;        /* dark section ground */
  --d1:  #000000;        /* logo band + footer */
  --d2:  #111116;        /* panel fill on dark */
  --d3:  #17171d;        /* panel title bar */
  --paper: #faf9f6;      /* light section ground — warm, not white */
  --paper2:#ffffff;      /* panel fill on light */

  /* ink */
  --t1:  #f4f4f6;        /* heading on dark */
  --t2:  #9ba1ac;        /* body on dark */
  /* 5.15:1 on the section ground, 4.94:1 on a panel, 4.68:1 on a title bar.
     Mono labels carry real text (attributions, captions, the logo-band label),
     so they clear AA against every dark surface they sit on. #6f7580 did not. */
  --t3:  #7c8390;        /* mono label on dark */
  --l1:  #121216;        /* heading on light */
  --l2:  #52525b;        /* body on light */
  --l3:  #6c6c75;        /* mono label on light */

  /* lines */
  --ld:  rgba(255,255,255,.11);
  --ld2: rgba(255,255,255,.18);
  --ll:  rgba(0,0,0,.12);
  --ll2: rgba(0,0,0,.20);

  /* the one accent. --o is band-aware: hot on dark, darkened on
     paper so mono labels still clear 4.5:1 (5.00:1 at #c93500). */
  --o:       #ff4d17;
  --o-soft:  rgba(255,77,23,.14);
  --grid:    rgba(255,255,255,.045);

  --wrap: 1180px;
  --s1:.5rem; --s2:1rem; --s3:1.5rem; --s4:2.25rem; --s5:3.5rem; --s6:5rem; --s7:7rem;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- band scoping ---------- */
.sec-dark, .logoband, .foot {
  --bg: var(--d0); --panel: var(--d2); --bar: var(--d3);
  --h: var(--t1); --p: var(--t2); --m: var(--t3);
  --line: var(--ld); --line2: var(--ld2);
  --o: #ff4d17; --grid: rgba(255,255,255,.045);
}
.sec-light {
  --bg: var(--paper); --panel: var(--paper2); --bar: #f2f1ec;
  --h: var(--l1); --p: var(--l2); --m: var(--l3);
  --line: var(--ll); --line2: var(--ll2);
  --o: #c93500; --grid: rgba(0,0,0,.045);
}
.logoband, .foot { --bg: var(--d1); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--d0); color: var(--t1);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 17px; height: 17px; display: block; flex: none; }
.ic-xs { width: 13px; height: 13px; }
:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: #ff4d17; color: #000; padding: .7rem 1.1rem; }
.skip:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3 {
  margin: 0; color: var(--h);
  font-family: var(--sans); font-weight: 500;
  letter-spacing: -.028em; line-height: 1.06; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.35rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; }
h2.big { font-size: clamp(2rem, 3.9vw, 3.1rem); }
h3 { font-size: 1.28rem; line-height: 1.2; letter-spacing: -.022em; }

.sec p { color: var(--p); max-width: 62ch; }
.body-lg { font-size: 1.075rem; line-height: 1.62; }

em { font-style: normal; color: var(--o); }

/* the signature device: [ a bracketed mono tag ] */
.tag {
  font-family: var(--mono); font-size: .755rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--o) !important; max-width: none !important;
}
.mono-lbl {
  font-family: var(--mono); font-size: .715rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--m) !important; max-width: none !important;
}

a { color: inherit; }
.tlink {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .875rem; font-weight: 500; color: var(--o);
  text-decoration: none; border-bottom: 1px solid currentColor;
  padding-bottom: 1px; background: none; border-top: 0; border-left: 0; border-right: 0;
  cursor: pointer; font-family: var(--sans);
  transition: opacity .15s ease;
}
.tlink:hover { opacity: .7; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s3); }
.sec { background: var(--bg); padding-block: var(--s7); position: relative; }
.sec-tight { padding-block: var(--s6); }
.sec > .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s3); }
/* The grid layouts below live on the .wrap itself, so they need to out-specify
   `.sec > .wrap`'s flex — otherwise they stack and align-items:center centres them. */
.sec > .wrap.hero-in, .sec > .wrap.cols, .sec > .wrap.close-in { display: grid; }

/* faint drafting grid, static, one paint */
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 58px 58px;
}

.cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s6); align-items: center; }
.cols-faq { grid-template-columns: .8fr 1.2fr; align-items: start; }
.col-txt { display: flex; flex-direction: column; gap: var(--s2); }
.col-dia { display: flex; flex-direction: column; gap: var(--s2); }

.two-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s5); align-items: end; margin-bottom: var(--s3); }
.note { font-size: .92rem; color: var(--m) !important; max-width: 74ch; margin-top: var(--s2); }
.note a, .foot p a { color: var(--o); }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .82rem 1.35rem; min-height: 46px;
  background: #1a1a20; color: #fff;
  border: 1px solid var(--o); border-radius: 7px;
  font: 500 .9rem/1 var(--sans); cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 3px rgba(255,77,23,.10), 0 0 22px rgba(255,77,23,.20);
  transition: background-color .16s ease, box-shadow .16s ease;
}
.cta:hover { background: var(--o); color: #140602; box-shadow: 0 0 0 3px rgba(255,77,23,.18), 0 0 30px rgba(255,77,23,.34); }
.cta-lg { padding: 1rem 1.6rem; min-height: 54px; font-size: .97rem; }
.cta-sm { padding: .62rem 1rem; min-height: 40px; font-size: .84rem; }
.sec-light .cta { background: #17171b; border-color: #17171b; box-shadow: none; }
.sec-light .cta:hover { background: var(--o); border-color: var(--o); color: #fff; }

.guarantee { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--p); }
.guarantee .ic { color: var(--o); }

/* ---------- book dropdown ---------- */
.book { position: relative; display: inline-flex; }
.book-chev { transition: transform .18s ease; }
.book-btn[aria-expanded="true"] .book-chev { transform: rotate(180deg); }
.book-menu {
  position: absolute; top: calc(100% + .45rem); left: 0; z-index: 90;
  min-width: 290px; padding: .3rem;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 1px;
}
.book-menu[hidden] { display: none; }
.book-up { top: auto; bottom: calc(100% + .45rem); }
.book-menu a {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .65rem;
  border-radius: 5px; text-decoration: none;
  font-size: .77rem; line-height: 1.35; color: var(--m);
  transition: background-color .14s ease;
}
.book-menu a:hover, .book-menu a:focus-visible { background: var(--o-soft); }
.book-menu a .ic { color: var(--o); }
.book-menu b { display: block; font-size: .88rem; font-weight: 500; color: var(--h); }

/* ---------- nav ---------- */
/* the nav's dropdown hangs at the wrap's right edge — open it leftward (UX3) */
.nav .book-menu { left: auto; right: 0; }
/* mobile-only Book CTA in the header bar: without it, every booking CTA
   between the hero and the close lived inside the collapsed hamburger (UX1) */
.nav-cta-m { display: none; text-decoration: none; }

.nav {
  position: sticky; top: 0; z-index: 70;
  background: rgba(11,11,14,.94); border-bottom: 1px solid var(--ld);
  --panel: var(--d2); --line2: var(--ld2); --h: var(--t1); --m: var(--t3); --o: #ff4d17;
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; font-weight: 500; font-size: .97rem; letter-spacing: -.01em; }
.brand-mark {
  width: 18px; height: 18px; flex: none;
  background: var(--o);
  clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
}
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links > a { color: #9ba1ac; text-decoration: none; font-size: .875rem; padding: .5rem .7rem; border-radius: 5px; transition: color .15s ease; }
.nav-links > a:hover, .nav-links > a.here { color: #fff; }
.nav-links .book { margin-left: .6rem; }
.nav-toggle { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 19px; height: 1.5px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 1 · hero ---------- */
.hero { padding-block: var(--s6) var(--s7); }
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: var(--s6); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.hero h1 { max-width: 13ch; margin-block: .35rem .2rem; }
.hero .body-lg { max-width: 46ch; }
.hero-book { margin-top: .3rem; }

/* --- the engine diagram --- */
.dia { display: flex; flex-direction: column; }
.dia-src { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.dia-src li {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .45rem .3rem; background: var(--d2); border: 1px solid var(--ld);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; color: #b9bec7;
  border-radius: 3px; overflow: hidden;
}
.sq { width: 7px; height: 7px; background: var(--b, var(--o)); flex: none; }

.dia-wires { width: 100%; height: 74px; display: block; }
.dia-wires path { fill: none; stroke: var(--o); stroke-width: 1; opacity: .5; }

.engine {
  display: flex; align-items: center; gap: .55rem;
  align-self: center; padding: .6rem 1rem;
  background: #16100e; border: 1px solid var(--o); border-radius: 4px;
  box-shadow: 0 0 26px rgba(255,77,23,.30);
}
.engine-dot { width: 9px; height: 9px; background: var(--o); flex: none;
  clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); }
.engine-t { font-size: .84rem; font-weight: 500; color: #fff; }
.engine-s { font-family: var(--mono); font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; color: var(--o); }
.wire-down { width: 1px; height: 30px; background: var(--o); opacity: .5; align-self: center; }

/* --- panels: flat, hairline, title bar with end ticks --- */
.pnl { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.pnl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .42rem .6rem; background: var(--bar); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .11em; text-transform: uppercase; color: var(--m);
}
.pnl-bar i { width: 5px; height: 5px; background: currentColor; opacity: .5; flex: none; }
.pnl-hot { border-color: rgba(255,77,23,.4); }
.pnl-hot .pnl-bar { color: var(--o); border-bottom-color: rgba(255,77,23,.3); }

.pnl-rows { padding: .3rem 0; }
.pnl-rows li {
  display: flex; align-items: center; gap: .5rem;
  padding: .48rem .7rem; font-size: .8rem; color: #cdd2da;
}
.pnl-rows .ic { color: var(--o); }
.pnl-rows b { margin-left: auto; font-family: var(--mono); font-size: .62rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--m); }
.pnl-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .7rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; color: var(--m);
}
.badge {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .45rem; background: var(--o-soft); color: var(--o); border: 1px solid rgba(255,77,23,.35);
}

/* ---------- 2 · logo band ---------- */
.logoband { background: var(--d1); border-block: 1px solid var(--ld); padding-block: 0; }
.logoband-in { display: flex; align-items: stretch; gap: 0; padding-inline: 0; }
.logoband-lbl {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase;
  color: #8b909a; padding: 1.5rem var(--s3); background: #0d0d10;
  border-inline: 1px solid var(--ld); flex: none; align-self: stretch;
  display: flex; align-items: center; line-height: 1.5;
}
/* The client strip is a marquee, exactly as the reference does it:
   long linear loop, masked edges, pauses the moment you hover to read it.
   One composited transform. */
.logoband-track {
  flex: 1; display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 5% 95%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 5% 95%,transparent);
}
.logoband-run {
  flex: none; display: flex; align-items: center; gap: var(--s5);
  width: max-content; padding-left: var(--s5);
}
.logoband-run li { font-size: 1rem; font-weight: 500; color: #cfd3da; white-space: nowrap; letter-spacing: -.01em; }
@media (prefers-reduced-motion: no-preference) {
  .logoband-run { animation: lb-scroll 48s linear infinite; }
  .logoband-track:hover .logoband-run,
  .logoband-track:focus-within .logoband-run,
  .logoband-track:focus .logoband-run { animation-play-state: paused; }
}
@keyframes lb-scroll { to { transform: translateX(-100%); } }

/* ---------- 3 · two ways ---------- */
.two-list { display: flex; flex-direction: column; gap: .5rem; }
.two-list li { display: flex; align-items: baseline; gap: .8rem; font-size: clamp(1.5rem,2.7vw,2.1rem); font-weight: 500; letter-spacing: -.028em; color: var(--h); }
.two-list li span { font-family: var(--sans); color: var(--o); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--panel); }
.split-card { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.split-card + .split-card { border-left: 1px solid var(--line); }
.split-top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--s2); }
.chip { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .55rem; border: 1px solid var(--line2); color: var(--m); }
.split-dia { width: 100%; margin-top: var(--s2); border: 1px solid var(--line); background: var(--bg); }
.mini-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .7rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--m);
}
.mini-bar-b { border-bottom: 0; border-top: 1px solid var(--line); }
.sec-light .badge { background: rgba(201,53,0,.10); border-color: rgba(201,53,0,.35); color: var(--o); }

.mini-flow { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; padding: .8rem; }
.mini { display: flex; flex-direction: column; gap: .3rem; padding: .65rem .5rem; background: var(--panel); border: 1px solid var(--line); text-align: center; align-items: center; }
.mini .ic { color: var(--o); }
.mini b { font-size: .74rem; font-weight: 500; color: var(--h); }
.mini span { font-size: .68rem; line-height: 1.35; color: var(--m); }
.mini-prog { display: flex; align-items: center; gap: .7rem; padding: 0 .8rem .8rem; }
.prog { flex: 1; height: 7px; background: var(--line); position: relative; overflow: hidden; }
.prog i { position: absolute; inset: 0 42% 0 0; background: repeating-linear-gradient(45deg, var(--o) 0 4px, transparent 4px 8px); }

.run-list { padding: .8rem; display: flex; flex-direction: column; gap: .45rem; }
.run-list li { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; background: var(--panel); border: 1px solid var(--line); font-size: .8rem; color: var(--p); }

/* ---------- 4 · problem quad ---------- */
.dia-box { background: var(--d1); border: 1px solid var(--ld); padding: var(--s4); }
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); position: relative; }
.pnl-body { padding: .6rem; }
.pnl-row { display: flex; gap: .55rem; align-items: flex-start; }
.pnl-row .ic { color: var(--o); margin-top: 2px; }
.pnl-row span { display: flex; flex-direction: column; gap: .1rem; }
.pnl-row b { font-size: .82rem; font-weight: 500; color: #e6e8ec; }
.pnl-row em { font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; color: var(--m); }

/* dashed connectors between the four panels, each labelled */
.qwire { position: absolute; display: block; }
.qwire em {
  position: absolute; font-family: var(--mono); font-size: .58rem;
  letter-spacing: .11em; text-transform: uppercase; color: var(--o);
  background: var(--d1); padding: 0 .3rem; white-space: nowrap;
}
.qwire-t { top: 22%; left: 50%; width: var(--s5); transform: translateX(-50%); border-top: 1px dashed rgba(255,77,23,.55); }
.qwire-t em { top: -.55rem; left: 50%; transform: translateX(-50%); }
.qwire-b { top: 78%; left: 50%; width: var(--s5); transform: translateX(-50%); border-top: 1px dashed rgba(255,77,23,.55); }
.qwire-b em { top: -.55rem; left: 50%; transform: translateX(-50%); }
.qwire-l { left: 22%; top: 50%; height: var(--s4); transform: translateY(-50%); border-left: 1px dashed rgba(255,77,23,.55); }
.qwire-l em { left: .3rem; top: 50%; transform: translateY(-50%); }
.qwire-r { left: 78%; top: 50%; height: var(--s4); transform: translateY(-50%); border-left: 1px dashed rgba(255,77,23,.55); }
.qwire-r em { left: .3rem; top: 50%; transform: translateY(-50%); }
.dia-cap { text-align: left; }

/* ---------- 5 · proof ---------- */
.proof { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); margin-top: var(--s2); }
.proof article { padding: var(--s4) var(--s4) var(--s4) 0; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.proof article + article { border-left: 1px solid var(--line); padding-left: var(--s4); }
.proof-who { font-size: 1rem; font-weight: 500; color: var(--h) !important; }
.proof-n { font-size: clamp(2rem,3.4vw,2.8rem); font-weight: 500; letter-spacing: -.035em; line-height: 1; color: var(--h) !important; font-variant-numeric: tabular-nums; }
.proof-what { margin-top: -.35rem; }
.proof blockquote { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--p); }
.proof blockquote::before { content: "\201C"; } .proof blockquote::after { content: "\201D"; }

/* ---------- 6 · engine diagram ---------- */
.engine-dia { margin-top: var(--s2); }
.edia { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: var(--s4); align-items: start; }
.pnl-list li, .pnl-num li {
  display: flex; align-items: center; gap: .55rem;
  padding: .58rem .7rem; font-size: .82rem; color: #cdd2da;
  border-bottom: 1px solid var(--line);
}
.pnl-list li:last-child, .pnl-num li:last-child { border-bottom: 0; }
.pnl-list .sq { margin-left: auto; }
.pnl-num li span {
  width: 19px; height: 19px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--o); border-radius: 50%; color: var(--o);
  font-family: var(--mono); font-size: .62rem;
}
.pnl-core { border-color: rgba(255,77,23,.42); position: relative; }
.pnl-core .pnl-bar { color: var(--o); border-bottom-color: rgba(255,77,23,.3); }
.core-glow { position: absolute; inset: 20% 12% auto; height: 130px; background: radial-gradient(closest-side, rgba(255,77,23,.30), transparent); pointer-events: none; }
.core-steps { position: relative; }
.core-steps li {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  padding: .62rem .7rem; border-bottom: 1px solid var(--line);
}
.core-steps li:last-child { border-bottom: 0; }
.core-steps b { font-size: .86rem; font-weight: 500; color: #fff; }
.core-steps span { font-family: var(--mono); font-size: .63rem; letter-spacing: .06em; color: var(--m); text-align: right; }
.core-human { background: rgba(255,77,23,.07); }

/* ---------- 7 · what I build ---------- */
.builds { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); background: var(--panel); }
.build { padding: var(--s4); display: flex; flex-direction: column; gap: .7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.build:nth-child(2n) { border-right: 0; }
.build:nth-last-child(-n+2) { border-bottom: 0; }
.build header { display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--o) !important; font-weight: 500 !important; }
.ticks { display: flex; flex-direction: column; gap: .35rem; margin-top: .2rem; }
.ticks li { position: relative; padding-left: 1.3rem; font-size: .87rem; color: var(--p); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 5px;
  border-left: 1.5px solid var(--o); border-bottom: 1.5px solid var(--o); transform: rotate(-45deg);
}
.build .src, .case .src { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line); }

/* ---------- 8 · phases + stats ---------- */
.phases { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line2); margin-top: var(--s2); }
.phases li { padding: var(--s3) var(--s3) var(--s4) 0; display: flex; flex-direction: column; gap: .55rem; position: relative; }
.phases li + li { border-left: 1px solid var(--line); padding-left: var(--s3); }
.phases li::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 2px; background: var(--o); }
.phases li + li::before { left: -1px; }
.phases p { font-size: .89rem; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s3); }
.stats div { display: flex; flex-direction: column; gap: .3rem; }
.stats b { font-size: clamp(1.9rem,3.2vw,2.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1; color: var(--h); font-variant-numeric: tabular-nums; }

.certs-line { margin-top: var(--s2); }

/* ---------- 9 · cases ---------- */
.cases { border: 1px solid var(--line); background: var(--panel); margin-top: var(--s2); }
.case { display: grid; grid-template-columns: 1.55fr .85fr; gap: var(--s5); padding: var(--s4); }
.case + .case { border-top: 1px solid var(--line); }
.case-l { display: flex; flex-direction: column; gap: .7rem; }
.case-l h3 { max-width: 26ch; }
.case-r { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: var(--s3); align-self: start; }
.case-r li { display: flex; flex-direction: column; gap: .15rem; padding-block: .55rem; }
.case-r b { font-size: 1.55rem; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--o); font-variant-numeric: tabular-nums; }

/* ---------- 10 · faq ---------- */
.faq { border-top: 1px solid var(--line2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.05rem 2.2rem 1.05rem 0;
  font-size: 1rem; font-weight: 500; color: var(--h); letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.05rem; color: var(--o); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--o); }
.faq details p { padding: 0 2.2rem 1.15rem 0; font-size: .92rem; }

/* ---------- 11 · close: the pitch beside a real form ---------- */
.sec > .wrap.close-in {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: var(--s6); align-items: center;
}
.close-copy { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.close-in h2 { max-width: 16ch; }
.close-in .body-lg { max-width: 48ch; }
.close-in .book { margin-block: var(--s1) 0; }

/* the form itself: same flat panel language as every diagram */
.contact-body { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field input, .field textarea {
  font: 400 .95rem/1.5 var(--sans);
  color: var(--h); background: var(--bg);
  border: 1px solid var(--line); border-radius: 3px;
  padding: .65rem .75rem; width: 100%;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input::placeholder, .field textarea::placeholder { color: var(--m); opacity: .75; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--o);
}
.contact-send { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.cta-ghost {
  background: transparent; border-color: var(--line2);
  box-shadow: none; color: var(--h);
}
.cta-ghost:hover { background: transparent; border-color: var(--o); color: var(--o); box-shadow: none; }
.contact-err { color: var(--o) !important; }

/* ---------- footer ---------- */
.foot { background: var(--d1); border-top: 1px solid var(--ld); padding-top: var(--s5); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s4); padding-bottom: var(--s4); }
.foot-brand { display: flex; flex-direction: column; gap: .8rem; max-width: 34ch; }
.foot-nav { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.foot-nav a { color: #9ba1ac; text-decoration: none; font-size: .88rem; }
.foot-nav a:hover { color: #fff; }
.foot-btm { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; padding-block: var(--s3); border-top: 1px solid var(--ld); }

/* ---------- lightbox ---------- */
.lb { border: 0; padding: 0; background: transparent; max-width: min(94vw,900px); max-height: 92vh; overflow: visible; }
.lb::backdrop { background: rgba(0,0,0,.9); }
.lb img { max-height: 86vh; width: auto; border: 1px solid var(--ld2); }
.lb-x { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border: 1px solid #333; background: #111; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* =========================================================
   Entrance — the hero choreographs itself once, on load.
   One-shot CSS animations, nothing loops, reduced-motion kills it.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in .55s cubic-bezier(.22,1,.36,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  .hero-copy > *:nth-child(6) { animation-delay: .30s; }
  .hero-dia { animation: rise-in .6s cubic-bezier(.22,1,.36,1) .2s both; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Motion — the reference's vocabulary, rebuilt perf-safe.
   CSS-only, transform/opacity (or SVG stroke), and gated:
   one-shot effects fire when `.in` lands on the container;
   INFINITE effects run only under `.live`, which the observer
   removes the moment the diagram leaves the screen. Nothing
   animates unseen; reduced-motion kills all of it.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* wires draw themselves in (tp-draw) */
  .dia-wires path { stroke-dasharray: 210; stroke-dashoffset: 210; }
  .hero-dia.in .dia-wires path {
    animation: wire-draw .9s cubic-bezier(.22,1,.36,1) forwards;
  }
  .hero-dia.in .dia-wires path:nth-child(2) { animation-delay: .08s; }
  .hero-dia.in .dia-wires path:nth-child(3) { animation-delay: .16s; }
  .hero-dia.in .dia-wires path:nth-child(4) { animation-delay: .24s; }
  .hero-dia.in .dia-wires path:nth-child(5) { animation-delay: .32s; }

  /* a pulse slides down the drop-wire into the call panel (tp-flow) */
  .wire-down { position: relative; overflow: visible; }
  .wire-down::after {
    content: ""; position: absolute; left: -1px; top: 0;
    width: 3px; height: 10px; border-radius: 2px;
    background: var(--o); opacity: 0;
  }
  .hero-dia.live .wire-down::after { animation: pulse-drop 1.8s ease-in infinite; }

  /* the live dot actually reads as live (tp-blink) */
  .hero-dia.live .engine-dot { animation: blink 1.6s ease-in-out infinite; }

  /* a scan line sweeps the engine panel while on screen (lens-scan) */
  .pnl-core::after {
    content: ""; position: absolute; left: 8%; right: 8%; top: 38px;
    height: 1px; background: var(--o); opacity: 0; pointer-events: none;
  }
  .pnl-core.live::after { animation: scan 2.6s ease-in-out infinite alternate; }

  /* the 14-day progress bar fills once seen (nd-fill) */
  .split-dia .prog i { transform: scaleX(0); transform-origin: 0 50%; }
  .split-dia.in .prog i { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.22,1,.36,1) .25s; }
}

@keyframes wire-draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pulse-drop {
  0%   { opacity: 0; transform: translateY(0); }
  15%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(26px); }
}
@keyframes scan {
  0%   { opacity: 0; transform: translateY(0); }
  12%  { opacity: .8; }
  88%  { opacity: .8; }
  100% { opacity: 0; transform: translateY(150px); }
}

/* ---------- industry picker ---------- */
.ind { display: flex; flex-direction: column; gap: var(--s2); }
.ind-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.ind-tabs [role="tab"] {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .55rem .85rem; min-height: 40px;
  background: var(--panel); color: var(--m);
  border: 1px solid var(--line); border-radius: 3px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.ind-tabs [role="tab"]:hover { color: var(--h); border-color: var(--line2); }
.ind-tabs [role="tab"][aria-selected="true"] {
  color: var(--o); border-color: var(--o);
  background: rgba(255,77,23,.08);
}
.ind-pnl .ind-body { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.ind-pnl .ticks li { font-size: .95rem; }
.ind-pnl .src { padding-top: .8rem; border-top: 1px solid var(--line); }

/* ---------- also-built breadth grid ---------- */
.also-lbl { margin-top: var(--s3); }
.also {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: var(--panel);
}
.also li {
  display: flex; flex-direction: column; gap: .25rem;
  padding: var(--s2) var(--s3);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.also li:nth-child(4n) { border-right: 0; }
.also li:nth-last-child(-n+4) { border-bottom: 0; }
.also b { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--o); }
.also span { font-size: .84rem; line-height: 1.45; color: var(--p); }
.also a { color: var(--o); }

/* ---------- hire-me line in the close ---------- */
.hire-note { font-size: .88rem; color: var(--p); }
.hire-note a { color: var(--o); }

/* ---------- micro-hovers, all one paint ---------- */
.build, .split-card, .case, .proof article { transition: background-color .25s ease; }
.sec-dark .build:hover, .sec-dark .split-card:hover, .sec-dark .case:hover { background: #14141a; }
.sec-light .build:hover, .sec-light .split-card:hover, .sec-light .case:hover { background: #fffdf8; }
.tlink { transition: opacity .15s ease, transform .2s ease; }
.tlink:hover { transform: translateX(2px); }
.pnl { transition: border-color .25s ease; }
.pnl:hover { border-color: var(--line2); }
.pnl-hot:hover, .pnl-core:hover { border-color: rgba(255,77,23,.6); }

/* the little square ticks in a panel's title bar light up orange on hover */
.pnl-bar i { transition: background-color .25s ease, opacity .25s ease; }
.pnl:hover .pnl-bar i { background: var(--o); opacity: 1; }

/* a service card announces itself: its number and price warm up,
   and an orange rule slides in along its top edge */
.build { position: relative; overflow: hidden; }
.build::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--o); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.build:hover::before { transform: scaleX(1); }
.build header .mono-lbl { transition: color .25s ease; }
.build:hover header .mono-lbl:first-child { color: var(--o) !important; }

/* proof numerals warm up when you read them */
.proof-n { transition: color .25s ease; }
.proof article:hover .proof-n { color: var(--o) !important; }

/* case studies: the numbers column brightens with the card */
.case-r b { transition: transform .25s ease; }
.case:hover .case-r b { transform: translateX(3px); }

/* also-grid cells tint toward the accent */
.also li { transition: background-color .25s ease; }
.also li:hover { background: rgba(201,53,0,.05); }
.sec-dark .also li:hover { background: rgba(255,77,23,.07); }

/* mini flow steps in the split cards */
.mini { transition: border-color .25s ease; }
.split-card:hover .mini { border-color: var(--line2); }

/* the engine node glows a touch harder when the diagram is hovered */
.engine { transition: box-shadow .3s ease; }
.hero-dia:hover .engine { box-shadow: 0 0 38px rgba(255,77,23,.45); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(12px); }
  .rv.in-view { opacity: 1; transform: none; transition: opacity .32s ease-out, transform .32s ease-out; }
  /* rows inside a revealed panel rise one after another, frontal-style */
  .rv.in-view :is(.pnl-rows, .pnl-list, .pnl-num, .core-steps) li,
  .rv.in-view .mini {
    animation: row-rise .4s cubic-bezier(.22,1,.36,1) both;
  }
  .rv.in-view :is(.pnl-rows, .pnl-list, .pnl-num, .core-steps) li:nth-child(2), .rv.in-view .mini:nth-child(2) { animation-delay: .07s; }
  .rv.in-view :is(.pnl-rows, .pnl-list, .pnl-num, .core-steps) li:nth-child(3), .rv.in-view .mini:nth-child(3) { animation-delay: .14s; }
  .rv.in-view :is(.pnl-rows, .pnl-list, .pnl-num, .core-steps) li:nth-child(4) { animation-delay: .21s; }
  .rv.in-view :is(.pnl-rows, .pnl-list, .pnl-num, .core-steps) li:nth-child(5) { animation-delay: .28s; }
}
@keyframes row-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-in, .cols, .cols-faq, .two-head { grid-template-columns: 1fr; gap: var(--s4); }
  .sec > .wrap.close-in { grid-template-columns: 1fr; gap: var(--s4); }
  .two-head { align-items: start; }
  .edia { grid-template-columns: 1fr; gap: var(--s3); }
  .cols .col-dia { order: 2; }
  .dia { max-width: 560px; }
  .phases { grid-template-columns: repeat(2,1fr); }
  .phases li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .phases li:nth-child(3), .phases li:nth-child(4) { border-top: 1px solid var(--line); padding-top: var(--s3); }
}

@media (max-width: 1080px) {
  .proof { grid-template-columns: repeat(2,1fr); }
  .proof article:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof article:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .sec { padding-block: var(--s6); }
  .also { grid-template-columns: repeat(2, 1fr); }
  .also li:nth-child(2n) { border-right: 0; }
  .also li:nth-child(odd) { border-right: 1px solid var(--line); }
  .also li { border-bottom: 1px solid var(--line) !important; }
  .also li:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .split, .builds { grid-template-columns: 1fr; }
  .split-card + .split-card { border-left: 0; border-top: 1px solid var(--line); }
  .build { border-right: 0; }
  .build:last-child { border-bottom: 0; }
  .proof { grid-template-columns: 1fr; }
  .proof article { padding: var(--s3) 0; }
  .proof article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .case { grid-template-columns: 1fr; gap: var(--s3); }
  .case-r { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: var(--s2); flex-direction: row; flex-wrap: wrap; gap: var(--s4); }
  .stats { grid-template-columns: repeat(2,1fr); gap: var(--s3) var(--s2); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .logoband-in { flex-direction: column; }
  .logoband-lbl { border-inline: 0; border-bottom: 1px solid var(--ld); width: 100%; padding-block: .9rem; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: var(--s2); }
  .nav-toggle { display: flex; }
  .nav-cta-m { display: inline-flex; margin-left: auto; }
  .nav-in { gap: .6rem; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0b0b0e; border-bottom: 1px solid var(--ld); padding: .5rem var(--s2) var(--s3);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: .8rem .2rem; border-bottom: 1px solid var(--ld); font-size: .97rem; }
  .nav-links .book { margin: var(--s2) 0 0; display: block; }
  .nav-links .book .cta { width: 100%; justify-content: center; }
  .nav-links .book-menu { position: static; box-shadow: none; min-width: 0; margin-top: .4rem; }

  .quad { grid-template-columns: 1fr; gap: var(--s3); }
  .qwire { display: none; }
  .mini-flow { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .phases li { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); padding-top: var(--s3); }
  .phases li:first-child { border-top: 0; }
  .hero-book, .close-in .book { width: 100%; }
  .hero-book .cta, .close-in .cta { width: 100%; justify-content: center; }
  .dia-box { padding: var(--s2); }
  .dia-src { grid-template-columns: repeat(3,1fr); }
  .dia-src li:nth-child(n+4) { display: none; }
  /* chips 4-5 are hidden, so wires 1,2,4,5 would spring from empty space */
  .dia-wires path:not(:nth-child(3)) { display: none; }
  .split-card, .build, .case { padding: var(--s3); }
}

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