/* Blueprint visual system
   Technical-drawing figures that draw themselves on scroll.

   Usage:
     <figure class="bp" data-animate="bp">            (main.js adds .in-view)
       <span class="bp__tag">Fig. 01 · Title</span>
       <svg class="bp__svg" viewBox="..." role="img" aria-label="...">
         <path class="bp-line" pathLength="1" style="--d:.2s" d="..."/>
         <g class="bp-node" style="--d:.4s">...</g>
       </svg>
       <figcaption class="bp__cap">...</figcaption>
     </figure>

   Every line that should draw needs pathLength="1". --d is the delay.
   No JavaScript of its own: it rides the [data-animate] observer in main.js,
   which adds .in-view straight away when the visitor prefers reduced motion. */

:root {
  --bp-ink: #67E8F9;
  --bp-ink-soft: rgba(103, 232, 249, .55);
  --bp-ink-faint: rgba(103, 232, 249, .22);
  --bp-grid: rgba(59, 130, 246, .10);
  --bp-grid-strong: rgba(59, 130, 246, .20);
  --bp-paper: #0B1224;
  --bp-fill: rgba(37, 99, 235, .12);
  --bp-hot: #F0EEE9;
  --bp-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ───────────── The sheet ───────────── */
.bp {
  position: relative;
  margin: 0;
  padding: 44px 22px 20px;
  border: 1px solid var(--bp-grid-strong);
  border-radius: 14px;
  background-color: var(--bp-paper);
  background-image:
    linear-gradient(var(--bp-grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-strong) 1px, transparent 1px),
    linear-gradient(var(--bp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  overflow: hidden;
}
/* a soft light falling across the sheet */
.bp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 12% 0%, rgba(6, 182, 212, .13), transparent 60%);
  pointer-events: none;
}
/* corner registration marks */
.bp::after {
  content: '';
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    linear-gradient(var(--bp-ink-soft), var(--bp-ink-soft)) left top / 14px 1px no-repeat,
    linear-gradient(var(--bp-ink-soft), var(--bp-ink-soft)) left top / 1px 14px no-repeat,
    linear-gradient(var(--bp-ink-soft), var(--bp-ink-soft)) right top / 14px 1px no-repeat,
    linear-gradient(var(--bp-ink-soft), var(--bp-ink-soft)) right top / 1px 14px no-repeat,
    linear-gradient(var(--bp-ink-soft), var(--bp-ink-soft)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--bp-ink-soft), var(--bp-ink-soft)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--bp-ink-soft), var(--bp-ink-soft)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--bp-ink-soft), var(--bp-ink-soft)) right bottom / 1px 14px no-repeat;
}
.bp__tag {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 1;
  font-family: var(--bp-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bp-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bp__svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.bp__cap {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--bp-ink-faint);
  font-size: .86rem;
  line-height: 1.55;
  color: var(--gray-400);
}
.bp__cap strong { color: var(--off-white); font-weight: 600; }

/* ───────────── Ink ───────────── */
.bp-line,
.bp-dash,
.bp-flow {
  fill: none;
  stroke: var(--bp-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bp-line--soft { stroke: var(--bp-ink-soft); }
.bp-line--faint { stroke: var(--bp-ink-faint); }
.bp-line--hot { stroke: var(--bp-hot); }
.bp-line--thick { stroke-width: 2.6; }
.bp-dash { stroke: var(--bp-ink-soft); stroke-dasharray: 5 6; }
.bp-fill { fill: var(--bp-fill); stroke: none; }
.bp-fill--hot { fill: rgba(240, 238, 233, .10); }
.bp-dot { fill: var(--bp-ink); }
.bp-dot--hot { fill: var(--bp-hot); }
.bp-arrow { fill: var(--bp-ink); stroke: none; }

.bp-text {
  font-family: var(--bp-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  fill: var(--bp-ink-soft);
}
.bp-text--lg {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  fill: #fff;
}
.bp-text--num { fill: var(--bp-ink); font-size: 12px; }
.bp-text--hot { fill: var(--bp-hot); }
.bp-text--mid { text-anchor: middle; }
.bp-text--end { text-anchor: end; }

/* ───────────── Motion ─────────────
   Lines draw, nodes rise, then a quiet loop keeps the figure alive. */
[data-animate=bp] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  [data-animate=bp] .bp-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) var(--d, 0s);
  }
  [data-animate=bp].in-view .bp-line { stroke-dashoffset: 0; }

  [data-animate=bp] .bp-node {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .6s ease var(--d, 0s), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
  }
  [data-animate=bp].in-view .bp-node { opacity: 1; transform: none; }

  /* marching dashes: data moving along a wire */
  [data-animate=bp].in-view .bp-flow {
    stroke-dasharray: 2 10;
    animation: bp-march 1.4s linear infinite;
  }
  /* a soft ping on the thing that matters */
  [data-animate=bp].in-view .bp-ping {
    transform-box: fill-box;
    transform-origin: center;
    animation: bp-ping 2.6s ease-out infinite;
    animation-delay: var(--d, 0s);
  }
  [data-animate=bp].in-view .bp-blink { animation: bp-blink 1.1s steps(2, start) infinite; }
}
.bp-flow { stroke: var(--bp-hot); stroke-dasharray: 2 10; opacity: .9; }
.bp-ping { fill: none; stroke: var(--bp-hot); stroke-width: 1.5; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .bp-ping { opacity: .5; }
  .bp-runner { display: none; }
}

@keyframes bp-march { to { stroke-dashoffset: -24; } }
@keyframes bp-ping {
  0% { opacity: .85; transform: scale(.6); }
  70%, 100% { opacity: 0; transform: scale(1.9); }
}
@keyframes bp-blink { to { visibility: hidden; } }

/* ───────────── Hero with a figure beside the copy ───────────── */
.bp-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.bp-hero .hero__content { max-width: none; text-align: left; margin: 0; }
/* sit above the hero's own bottom fade so the figure never dims */
.bp-hero .bp { z-index: 3; }
.bp-hero .hero__actions { justify-content: flex-start; }
.bp-hero .hero__subtitle { margin-left: 0; margin-right: 0; }
.bp-hero .cmp-quickfacts,
.bp-hero .cmp-hero-actions { justify-content: flex-start; }
@media (max-width: 960px) {
  .bp-hero .container { grid-template-columns: 1fr; }
  .bp-hero .bp { max-width: 560px; }
}

/* ───────────── Process steps with drawn icons ───────────── */
.bp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--bp-cols, 5), minmax(0, 1fr));
  gap: 0;
  position: relative;
  counter-reset: bpstep;
}
.bp-steps > li {
  counter-increment: bpstep;
  position: relative;
  padding: 0 18px 0 0;
}
.bp-steps__icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border: 1px solid var(--bp-grid-strong);
  border-radius: 12px;
  background:
    linear-gradient(var(--bp-grid) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--bp-paper);
  display: grid;
  place-items: center;
  z-index: 1;
}
.bp-steps__icon svg { width: 36px; height: 36px; overflow: visible; }
/* the wire between stations */
.bp-steps > li::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 64px;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--bp-ink-soft) 0 5px, transparent 5px 11px);
  transform-origin: left;
}
.bp-steps > li:last-child::before { display: none; }
.bp-steps__num {
  display: block;
  font-family: var(--bp-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--bp-ink-soft);
  margin-bottom: 6px;
}
.bp-steps__num::before { content: counter(bpstep, decimal-leading-zero) ' / '; }
.bp-steps strong { display: block; font-size: 1.05rem; margin-bottom: 6px; font-family: var(--font-display, inherit); }
.bp-steps span.bp-steps__desc { display: block; color: var(--gray-400); font-size: .93rem; line-height: 1.6; }

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  [data-animate=bp] .bp-steps > li,
  .bp-steps[data-animate=bp] > li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease calc(var(--i, 0) * .14s), transform .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * .14s);
  }
  .bp-steps[data-animate=bp].in-view > li { opacity: 1; transform: none; }
  .bp-steps[data-animate=bp] > li::before { transform: scaleX(0); transition: transform .7s ease calc(var(--i, 0) * .14s + .25s); }
  .bp-steps[data-animate=bp].in-view > li::before { transform: scaleX(1); }
  .bp-steps[data-animate=bp] .bp-line { transition-delay: calc(var(--i, 0) * .14s + .15s); }
}
.bp-steps > li:nth-child(1) { --i: 0; }
.bp-steps > li:nth-child(2) { --i: 1; }
.bp-steps > li:nth-child(3) { --i: 2; }
.bp-steps > li:nth-child(4) { --i: 3; }
.bp-steps > li:nth-child(5) { --i: 4; }
.bp-steps > li:nth-child(6) { --i: 5; }

@media (max-width: 900px) {
  .bp-steps { grid-template-columns: 1fr; gap: 26px; }
  .bp-steps > li { padding: 0 0 0 84px; min-height: 64px; }
  .bp-steps__icon { position: absolute; left: 0; top: 0; margin: 0; }
  .bp-steps > li::before {
    top: 64px;
    bottom: -26px;
    left: 32px;
    right: auto;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--bp-ink-soft) 0 5px, transparent 5px 11px);
    transform-origin: top;
  }
  .bp-steps[data-animate=bp] > li::before { transform: scaleY(0); }
  .bp-steps[data-animate=bp].in-view > li::before { transform: scaleY(1); }
}

/* ───────────── Photo, framed like a reference plate ───────────── */
.bp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.bp-split--flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .bp-split { grid-template-columns: 1fr; }
  .bp-split--flip > :first-child { order: 0; }
}
.bp-photo {
  position: relative;
  margin: 0;
  border: 1px solid var(--bp-grid-strong);
  border-radius: 14px;
  padding: 10px;
  background: var(--bp-paper);
}
.bp-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(.82) contrast(1.04);
}
.bp-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px 2px;
  font-family: var(--bp-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.bp-photo figcaption a { color: inherit; }
.bp-split h2 { margin-bottom: 14px; }
.bp-split p { color: var(--gray-400); line-height: 1.7; }
.bp-checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.bp-checks li { position: relative; padding-left: 30px; color: var(--gray-300); line-height: 1.55; }
.bp-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .35em;
  width: 16px;
  height: 9px;
  border-left: 1.5px solid var(--bp-ink);
  border-bottom: 1.5px solid var(--bp-ink);
  transform: rotate(-45deg) scale(.8);
}

/* ───────────── Comparison pages ───────────── */
.cmp-table-wrap { border-color: var(--bp-grid-strong); background: var(--bp-paper); }
.cmp-table tbody th {
  font-family: var(--bp-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bp-ink-soft);
  white-space: nowrap;
  width: 1%;
}
.cmp-table thead th { font-family: var(--bp-mono); letter-spacing: .12em; }
.cmp-table thead th.cmp-us { box-shadow: inset 0 2px 0 var(--accent); }
.cmp-table tbody tr { transition: background .2s ease; }
.cmp-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
@media (max-width: 640px) {
  .cmp-table tbody th { white-space: normal; width: auto; }
}

.cmp-faq, .post-faq__list { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.cmp-faq__item, .post-faq__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 0 22px;
  transition: border-color .3s ease;
}
.cmp-faq__item[open], .post-faq__item[open] { border-color: var(--bp-ink-faint); }
.cmp-faq__item summary, .post-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cmp-faq__item summary::-webkit-details-marker,
.post-faq__item summary::-webkit-details-marker { display: none; }
.cmp-faq__item summary::after, .post-faq__item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform .3s ease;
}
.cmp-faq__item[open] summary::after, .post-faq__item[open] summary::after { transform: rotate(45deg); }
.cmp-faq__item summary:focus-visible, .post-faq__item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
.cmp-faq__item p, .post-faq__item p { color: var(--gray-400); line-height: 1.7; margin: 0 0 18px; max-width: none; }

/* ───────────── Blog: figures and callouts inside an article ───────────── */
.post-body .bp { margin: 34px 0; }
.post-body .bp__cap { font-size: .88rem; }
.post-callout {
  position: relative;
  margin: 30px 0;
  padding: 20px 22px 20px 26px;
  border: 1px solid var(--bp-grid-strong);
  border-left: 3px solid var(--cat, var(--accent));
  border-radius: 4px 14px 14px 4px;
  background: var(--bp-paper);
}
.post-callout__label {
  display: block;
  font-family: var(--bp-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cat, var(--bp-ink-soft));
  margin-bottom: 8px;
}
.post-body .post-callout p { margin: 0; }
.post-body .post-callout p + p { margin-top: 10px; }
.post-faq { margin-top: 44px; }
.post-faq__list { max-width: none; }
.post-body .post-faq__item p { margin: 0 0 18px; }

/* Hero titles were set for a full-width column; beside a figure they need
   to wrap, and the gradient line must not clip. */
.bp-hero .hero__title { font-size: clamp(2.1rem, 3.9vw, 3.4rem); text-wrap: balance; }
.bp-hero .hero__title .gradient-text { white-space: normal; }

/* ═════════════ Blueprint art: illustrated figures ═════════════
   Each piece has its own motion. Everything below runs only once the figure
   is in view and only for visitors who have not asked for reduced motion;
   the rules outside the media query are the still frame. */
.bp-ring { fill: none; stroke: var(--bp-ink-faint); stroke-width: 1.5; stroke-dasharray: 4 9; }
.bp-blip { fill: none; stroke: var(--bp-hot); stroke-width: 1.5; opacity: 0; }
.bp-focus { fill: none; stroke: var(--bp-hot); stroke-width: 2.5; opacity: 0; }
.bp-focus:first-of-type { opacity: 1; }
.bp-tick { fill: none; stroke: var(--bp-hot); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bp-progress { transform-box: fill-box; transform-origin: left center; }
.bp-scan { opacity: 0; }
.bp-sweep { opacity: .9; }
.bp-serp .bp-line { stroke-dasharray: none; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  /* chip cores, neurons, key caps: fire in turn */
  [data-animate=bp].in-view .bp-core { animation: bp-core 2.7s ease-in-out infinite; animation-delay: var(--d, 0s); }
  /* dashed orbits turning in opposite directions */
  [data-animate=bp].in-view .bp-ring { animation: bp-ring 14s linear infinite; }
  [data-animate=bp].in-view .bp-ring--rev { animation-direction: reverse; animation-duration: 10s; }
  /* radar */
  [data-animate=bp].in-view .bp-sweep { transform-box: view-box; transform-origin: 280px 215px; animation: bp-sweep 6s linear infinite; }
  [data-animate=bp].in-view .bp-blip { transform-box: fill-box; transform-origin: center; animation: bp-blip 6s ease-out infinite; animation-delay: var(--d, 0s); }
  /* sound bars */
  [data-animate=bp].in-view .bp-bar { transform-box: fill-box; transform-origin: center; animation: bp-bar .9s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
  /* chat bubbles arriving */
  [data-animate=bp] .bp-pop { opacity: 0; }
  [data-animate=bp].in-view .bp-pop { animation: bp-pop 9s ease infinite both; animation-delay: var(--d, 0s); }
  /* floating plates */
  [data-animate=bp].in-view .bp-bob { animation: bp-bob 5s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
  /* keyboard focus stepping through five stops */
  [data-animate=bp].in-view .bp-focus,
  [data-animate=bp].in-view .bp-focus:first-of-type { opacity: 0; animation: bp-step5 6s steps(1, end) infinite; animation-delay: calc(var(--i, 0) * 1.2s); }
  /* scanner */
  [data-animate=bp].in-view .bp-scan { opacity: 1; animation: bp-scan 6s linear infinite; }
  [data-animate=bp].in-view .bp-found { animation: bp-found 6s linear infinite both; animation-delay: var(--d, 0s); }
  /* checklist */
  [data-animate=bp].in-view .bp-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bp-tick 8s ease infinite both; animation-delay: var(--d, 0s); }
  [data-animate=bp].in-view .bp-progress { animation: bp-progress 8s ease infinite both; }
  /* search results: your row climbs, the rest step down */
  [data-animate=bp].in-view .bp-serp-all { animation: bp-serp-fade 10s ease infinite both; }
  [data-animate=bp].in-view .bp-serp--you { animation: bp-serp-you 10s cubic-bezier(.5, 0, .2, 1) infinite both; }
  [data-animate=bp].in-view .bp-serp--r4 { animation: bp-serp-r4 10s cubic-bezier(.5, 0, .2, 1) infinite both; }
  [data-animate=bp].in-view .bp-serp--r3 { animation: bp-serp-r3 10s cubic-bezier(.5, 0, .2, 1) infinite both; }
  [data-animate=bp].in-view .bp-serp--r2 { animation: bp-serp-r2 10s cubic-bezier(.5, 0, .2, 1) infinite both; }
  [data-animate=bp].in-view .bp-serp--r1 { animation: bp-serp-r1 10s cubic-bezier(.5, 0, .2, 1) infinite both; }
  /* terminal typing */
  .bp-term[data-animate=bp] .bp-term__line { clip-path: inset(0 100% 0 0); }
  .bp-term[data-animate=bp].in-view .bp-term__line { animation: bp-type .9s steps(34, end) forwards; animation-delay: calc(var(--i, 0) * .75s + .3s); }
  .bp-term[data-animate=bp].in-view .bp-term__caret { animation: bp-blink 1.1s steps(2, start) infinite; }
  /* spec strip */
  .bp-spec[data-animate=bp] > div { opacity: 0; transform: translateY(8px); transition: opacity .6s ease calc(var(--i, 0) * .12s), transform .6s ease calc(var(--i, 0) * .12s); }
  .bp-spec[data-animate=bp].in-view > div { opacity: 1; transform: none; }
  .bp-spec[data-animate=bp]::before { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
  .bp-spec[data-animate=bp].in-view::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bp-found { opacity: 1; }
}

@keyframes bp-core { 0%, 100% { opacity: .25; } 35% { opacity: 1; } }
@keyframes bp-ring { to { stroke-dashoffset: -260; } }
@keyframes bp-sweep { to { transform: rotate(360deg); } }
@keyframes bp-blip { 0% { opacity: .95; transform: scale(.4); } 28% { opacity: 0; transform: scale(2.1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes bp-bar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes bp-pop { 0% { opacity: 0; transform: translateY(8px); } 5%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }
@keyframes bp-bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes bp-step5 { 0% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes bp-scan { 0% { transform: translateY(0); } 100% { transform: translateY(392px); } }
@keyframes bp-found { 0% { opacity: .12; } 3%, 78% { opacity: 1; } 92%, 100% { opacity: .12; } }
@keyframes bp-tick { 0% { stroke-dashoffset: 1; } 6%, 86% { stroke-dashoffset: 0; } 94%, 100% { stroke-dashoffset: 1; } }
@keyframes bp-progress { 0% { transform: scaleX(.02); } 6%, 17.5% { transform: scaleX(.25); } 23.5%, 35% { transform: scaleX(.5); } 41%, 52.5% { transform: scaleX(.75); } 58.5%, 92% { transform: scaleX(1); } 100% { transform: scaleX(.02); } }
@keyframes bp-serp-fade { 0% { opacity: 0; } 4%, 93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bp-serp-you { 0%, 12% { transform: translateY(216px); } 20%, 28% { transform: translateY(162px); } 36%, 44% { transform: translateY(108px); } 52%, 60% { transform: translateY(54px); } 68%, 100% { transform: none; } }
@keyframes bp-serp-r4 { 0%, 12% { transform: translateY(-54px); } 20%, 100% { transform: none; } }
@keyframes bp-serp-r3 { 0%, 28% { transform: translateY(-54px); } 36%, 100% { transform: none; } }
@keyframes bp-serp-r2 { 0%, 44% { transform: translateY(-54px); } 52%, 100% { transform: none; } }
@keyframes bp-serp-r1 { 0%, 60% { transform: translateY(-54px); } 68%, 100% { transform: none; } }
@keyframes bp-type { to { clip-path: inset(0); } }

/* ───────────── Block: spec strip (a dimensioned line of plain facts) ───────────── */
.bp-spec {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 0;
  padding: 26px 0 0;
}
.bp-spec::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bp-ink-soft);
  transform-origin: left;
}
.bp-spec > div { position: relative; padding: 0 22px 0 16px; border-left: 1px solid var(--bp-ink-soft); }
.bp-spec > div::before { content: ''; position: absolute; left: -4px; top: -23px; width: 7px; height: 7px; border-radius: 50%; background: var(--bp-ink); }
.bp-spec > div:nth-child(1) { --i: 0; } .bp-spec > div:nth-child(2) { --i: 1; } .bp-spec > div:nth-child(3) { --i: 2; } .bp-spec > div:nth-child(4) { --i: 3; }
.bp-spec dt { font-family: var(--bp-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-ink-soft); margin-bottom: 6px; }
.bp-spec dd { margin: 0; font-family: var(--font-display, inherit); font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: #fff; }
.bp-spec dd small { display: block; margin-top: 4px; font-family: 'Inter', sans-serif; font-size: .86rem; font-weight: 400; color: var(--gray-400); }
.bp-band { padding: 34px 0 40px; border-top: 1px solid var(--bp-grid-strong); border-bottom: 1px solid var(--bp-grid-strong); background: var(--bp-paper); }
@media (max-width: 640px) { .bp-spec { gap: 22px 0; } }

/* ───────────── Block: terminal (a file typing itself out) ───────────── */
.bp-term {
  margin: 0;
  border: 1px solid var(--bp-grid-strong);
  border-radius: 12px;
  background: #070C19;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(6, 182, 212, .35);
}
.bp-term__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--bp-grid-strong); font-family: var(--bp-mono); font-size: .72rem; letter-spacing: .08em; color: var(--gray-500); }
.bp-term__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--bp-grid-strong); }
.bp-term__bar span { margin-left: 8px; }
.bp-term pre { margin: 0; padding: 20px 20px 22px; overflow-x: auto; font-family: var(--bp-mono); font-size: .86rem; line-height: 1.75; color: var(--gray-300); white-space: pre; }
.bp-term__line { display: block; width: max-content; }
.bp-term__line:nth-child(1) { --i: 0; } .bp-term__line:nth-child(2) { --i: 1; } .bp-term__line:nth-child(3) { --i: 2; } .bp-term__line:nth-child(4) { --i: 3; }
.bp-term__line:nth-child(5) { --i: 4; } .bp-term__line:nth-child(6) { --i: 5; } .bp-term__line:nth-child(7) { --i: 6; } .bp-term__line:nth-child(8) { --i: 7; }
.bp-term .h { color: var(--bp-ink); font-weight: 600; }
.bp-term .q { color: var(--bp-hot); }
.bp-term .u { color: #93C5FD; }
.bp-term__caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: text-bottom; background: var(--bp-ink); }

/* ═════════════ 3D: a model that comes apart as you scroll ═════════════
   Real CSS 3D (preserve-3d), no library. js/blueprint-3d.js pins the scene
   and writes scroll progress to --p (0 assembled, 1 fully apart), then steps
   a highlight through the layers. Without JS or with reduced motion the
   scene is a normal section showing the model already apart. */
.x3d { position: relative; background: var(--bp-paper); border-top: 1px solid var(--bp-grid-strong); border-bottom: 1px solid var(--bp-grid-strong); --p: 1; }
.x3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--bp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 50%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 70% 50%, #000, transparent);
  pointer-events: none;
}
.x3d__pin { position: relative; padding: 96px 0; }
.x3d--live { height: 280vh; }
.x3d--live .x3d__pin { position: sticky; top: 0; height: 100vh; padding: var(--nav-height, 72px) 0 0; display: flex; align-items: center; overflow: hidden; }
.x3d__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: center; width: 100%; }
.x3d__copy .section__title { text-align: left; margin-bottom: 14px; }
.x3d__copy > p { color: var(--gray-400); line-height: 1.7; margin: 0; max-width: 46ch; }
.x3d__legend { list-style: none; margin: 26px 0 0; padding: 0; display: grid; }
.x3d__legend li { position: relative; padding: 11px 0 11px 20px; border-left: 2px solid var(--bp-grid-strong); transition: opacity .4s ease, border-color .4s ease, transform .4s ease; }
.x3d--live .x3d__legend li { opacity: .42; }
.x3d--live .x3d__legend li.is-active { opacity: 1; border-color: var(--bp-hot); transform: translateX(6px); }
.x3d__legend small { display: block; font-family: var(--bp-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-ink-soft); }
.x3d__legend strong { display: block; font-family: var(--font-display, inherit); font-size: 1.08rem; color: #fff; }
.x3d__legend span { display: block; color: var(--gray-400); font-size: .92rem; line-height: 1.5; }
.x3d__hint { margin-top: 22px; font-family: var(--bp-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); }
.x3d:not(.x3d--live) .x3d__hint { display: none; }

.x3d__stage { position: relative; height: min(580px, 72vh); perspective: 1600px; opacity: 1; }
.x3d__model {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w, 320px);
  height: var(--h, 220px);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) scale(var(--s, 1)) rotateX(58deg) rotateZ(calc(-44deg + var(--p) * 14deg));
  will-change: transform;
}
.x3d__model::after {
  content: '';
  position: absolute;
  inset: -18%;
  background: radial-gradient(closest-side, rgba(6, 182, 212, .26), transparent);
  transform: translateZ(calc((var(--mid) + .9) * -1 * (9px + var(--p) * 78px)));
}
.x3d__slab {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc((var(--i) - var(--mid)) * (9px + var(--p) * 78px)));
}
.x3d__face {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--bp-ink-soft);
  border-radius: var(--r, 14px);
  background: rgba(11, 18, 36, .8);
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), border-color .4s ease, box-shadow .4s ease, background .4s ease, opacity .5s ease;
}
/* the underside, a few pixels down, gives each plate its thickness */
.x3d__face::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid var(--bp-ink-faint); background: rgba(8, 13, 28, .6); transform: translateZ(-8px); }
.x3d__face svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.x3d__slab.is-active .x3d__face { transform: translate(38px, -38px); border-color: var(--bp-hot); background: rgba(22, 36, 70, .92); box-shadow: 0 0 70px rgba(103, 232, 249, .28); }
.x3d[data-active] .x3d__slab:not(.is-active) .x3d__face { opacity: .5; }
.x3d__face .bp-text { font-size: 13px; }

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .x3d__stage[data-animate=bp] .x3d__slab { opacity: 0; transition: opacity .7s ease calc(var(--i) * .13s); }
  .x3d__stage[data-animate=bp].in-view .x3d__slab { opacity: 1; }
}
@media (max-width: 900px) {
  .x3d__grid { grid-template-columns: 1fr; gap: 8px; }
  .x3d__stage { order: -1; height: 46vh; --s: .62; }
  .x3d--live { height: 300vh; }
  .x3d--live .x3d__pin { align-items: flex-start; }
  .x3d--live .x3d__legend li:not(.is-active) { display: none; }
  .x3d--live[data-active] .x3d__copy > p { display: none; }
  .x3d--live .x3d__legend { margin-top: 12px; min-height: 96px; }
  .x3d__copy .section__title { font-size: 1.6rem; }
}

}

/* timeline art */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  [data-animate=bp].in-view .bp-playhead { animation: bp-playhead 4s linear infinite; }
  [data-animate=bp].in-view .bp-spin { transform-box: fill-box; transform-origin: center; animation: bp-spin 4s cubic-bezier(.5, 0, .2, 1) infinite; }
}
@keyframes bp-playhead { from { transform: translateX(0); } to { transform: translateX(360px); } }
@keyframes bp-spin { from { transform: rotate(0); } to { transform: rotate(180deg); } }
.bp-linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.bp-linkgrid a { display: block; padding: 18px 20px; border: 1px solid var(--bp-grid-strong); border-radius: 12px; background: var(--bp-paper); text-decoration: none; color: inherit; transition: border-color .3s ease, transform .3s ease; }
.bp-linkgrid a:hover, .bp-linkgrid a:focus-visible { border-color: var(--bp-ink-soft); transform: translateY(-3px); }
.bp-linkgrid small { display: block; font-family: var(--bp-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-ink-soft); margin-bottom: 6px; }
.bp-linkgrid strong { display: block; font-family: var(--font-display, inherit); font-size: 1.05rem; color: #fff; }
.bp-linkgrid span { display: block; color: var(--gray-400); font-size: .9rem; line-height: 1.5; margin-top: 4px; }

/* Pinned, the copy has one screen of height: keep the list compact and
   open only the layer that is lifted out. */
.x3d__copy .section__title { font-size: clamp(1.7rem, 2.9vw, 2.5rem); line-height: 1.1; }
.x3d--live .x3d__legend { margin-top: 18px; }
.x3d--live .x3d__legend li { padding: 8px 0 8px 20px; }
.x3d--live .x3d__legend li span { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.x3d--live .x3d__legend li span > i { font-style: normal; overflow: hidden; }
.x3d--live .x3d__legend li.is-active span { grid-template-rows: 1fr; }
.x3d--live .x3d__hint { margin-top: 14px; }
.x3d--live[data-active] .x3d__hint { visibility: hidden; }
@media (max-height: 700px) and (min-width: 901px) {
  .x3d--live .x3d__copy > p:not(.x3d__hint), .x3d--live .x3d__hint { display: none; }
  .x3d--live .x3d__legend li { padding: 6px 0 6px 20px; }
}

/* Reserve the pinned scenes' scroll length before the script runs, so nothing
   below them shifts when it does. */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .x3d { height: 280vh; }
  .d3 { height: 340vh; }
}
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) and (max-width: 900px) {
  .x3d { height: 300vh; }
  .d3 { height: 360vh; }
}
/* Off screen, everything stops (js/blueprint-3d.js sets data-paused). */
[data-paused], [data-paused] * { animation-play-state: paused !important; }

/* ═════════════ Homepage: the free demo, built in 3D as you scroll ═════════════
   Four stages scrubbed by scroll (--s1..--s4, each 0 to 1):
   your assets float in, research is scanned, the pieces settle into a real
   page, then the page turns to face you. Fallback is the finished page. */
.d3 { position: relative; --s1: 1; --s2: 0; --s3: 1; --s4: 1; --scan: 0; }
.d3__pin { position: relative; }
.d3--live .d3__pin { position: sticky; top: 0; height: 100vh; padding-top: var(--nav-height, 72px); display: flex; align-items: center; overflow: hidden; }
.d3__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: 100%; }
.d3__copy .section__title { text-align: left; font-size: clamp(1.8rem, 3.1vw, 2.7rem); line-height: 1.08; margin-bottom: 12px; }
.d3__intro { color: var(--gray-400); line-height: 1.65; margin: 0; max-width: 44ch; }
.d3__steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: d3; }
.d3__steps li { position: relative; counter-increment: d3; padding: 10px 0 10px 54px; transition: opacity .4s ease; }
.d3__steps li::before {
  content: '1';
  position: absolute; left: 0; top: 8px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--bp-mono); font-size: .8rem; color: var(--bp-ink-soft);
  border: 1px solid var(--bp-grid-strong); background: var(--bg-dark);
  transition: color .4s ease, border-color .4s ease, background .4s ease;
}
.d3__steps li:nth-child(2)::before { content: '2'; }
.d3__steps li:nth-child(3)::before { content: '3'; }
.d3__steps li:nth-child(4)::before { content: '4'; }
.d3__steps li::after { content: ''; position: absolute; left: 17px; top: 46px; bottom: -6px; width: 1px; background: var(--bp-grid-strong); }
.d3__steps li:last-child::after { display: none; }
.d3__steps small { display: block; font-family: var(--bp-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-ink-soft); }
.d3__steps h3 { margin: 0; font-family: var(--font-display, inherit); font-size: 1.15rem; line-height: 1.3; color: #fff; }
.d3__steps p { margin: 4px 0 0; color: var(--gray-400); font-size: .95rem; line-height: 1.6; max-width: 46ch; }
.d3__steps p strong { color: var(--off-white); font-weight: 600; }
.d3--live .d3__steps li { opacity: .4; }
.d3--live .d3__steps li.is-active { opacity: 1; }
.d3--live .d3__steps li.is-active::before { color: #fff; border-color: var(--accent); background: var(--primary); }
.d3--live .d3__steps p { display: grid; grid-template-rows: 0fr; margin-top: 0; transition: grid-template-rows .5s ease, margin-top .5s ease; }
.d3--live .d3__steps p > span { overflow: hidden; }
.d3--live .d3__steps li.is-active p { grid-template-rows: 1fr; margin-top: 4px; }
.d3__caption { margin: 18px 0 0; font-size: .8rem; color: var(--gray-500); }

.d3__stage { position: relative; height: min(600px, 74vh); perspective: 1700px; }
.d3__model {
  --ease3: var(--s3);
  --shot: clamp(0, calc(var(--s3) * 2.5 - 1.3), 1);
  position: absolute; left: 46%; top: 50%;
  width: 440px; height: 290px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) scale(calc(var(--k, 1) * (1 + var(--s4) * .1))) rotateX(calc(54deg * (1 - var(--s4)))) rotateZ(calc(-30deg * (1 - var(--s4))));
  will-change: transform;
}
.d3__model::after { content: ''; position: absolute; inset: -16%; background: radial-gradient(closest-side, rgba(37, 99, 235, .3), transparent); transform: translateZ(-60px); opacity: calc(1 - var(--s4)); }
.d3__plate {
  position: absolute; inset: 0;
  border: 1.5px solid var(--bp-ink-soft); border-radius: 14px;
  background: #101A33; overflow: hidden;
  transition: border-color .6s ease, box-shadow .6s ease;
}
.d3[data-active="3"] .d3__plate { border-color: #34D399; box-shadow: 0 0 90px rgba(52, 211, 153, .22); }
.d3__bar { position: absolute; inset: 0 0 auto 0; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--bp-grid-strong); background: #0A1020; z-index: 3; font-family: var(--bp-mono); font-size: 10px; color: var(--gray-500); }
.d3__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--bp-grid-strong); }
.d3__bar span { margin-left: 8px; }
.d3__live { margin-left: auto !important; color: #34D399; opacity: var(--s4); letter-spacing: .1em; text-transform: uppercase; }
.d3__wire { position: absolute; inset: 30px 0 0 0; width: 100%; height: calc(100% - 30px); }
.d3__wire rect { fill: rgba(148, 163, 184, .13); }
.d3__shot { position: absolute; inset: 30px 0 0 0; opacity: var(--shot); z-index: 2; }
.d3__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.d3__scan { position: absolute; left: 0; right: 0; top: calc(30px + var(--s2) * (100% - 30px)); height: 2px; background: var(--bp-hot); box-shadow: 0 0 22px 6px rgba(103, 232, 249, .45); opacity: var(--scan); transition: opacity .3s ease; z-index: 2; }
.d3__tile, .d3__tag {
  position: absolute; left: var(--x); top: var(--y);
  --in: clamp(0, calc(var(--s1) * 5 - var(--o)), 1);
  /* once the real page fades in over the plate, the loose pieces are gone */
  opacity: calc(var(--in) * (1 - var(--shot)));
  transform: translate3d(calc(var(--ox, 0px) * .55 * (1 - var(--ease3))), calc(var(--oy, 0px) * .55 * (1 - var(--ease3))), calc(3px + var(--z) * .62 * (1 - var(--ease3)) + (1 - var(--in)) * 110px));
  will-change: transform, opacity;
}
.d3__tile--logo { padding: 7px 12px; border-radius: 8px; font-family: var(--font-display, 'Inter', sans-serif); font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, #a855f7, #7c3aed); box-shadow: 0 14px 30px -10px rgba(168, 85, 247, .7); }
.d3__tile--swatch { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(8, 13, 28, .8); border: 1px solid var(--bp-grid-strong); }
.d3__tile--swatch i { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset; }
.d3__tile--photo { width: 92px; height: 68px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16); background: url('/images/clients/sizzurp-sodalab-600.webp') var(--bgp, 30% 10%) / 420% no-repeat; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .9); }
.d3__tag {
  --in: clamp(0, calc(var(--s2) * 4 - var(--o)), 1);
  opacity: calc(var(--in) * clamp(0, calc(1 - var(--s3) * 3), 1));
  transform: translate3d(0, 0, calc(60px + (1 - var(--in)) * 60px));
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--bp-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--bp-ink); background: rgba(8, 13, 28, .9); border: 1px solid var(--bp-ink-soft);
}
.d3__phone {
  position: absolute; right: -44px; top: 86px; width: 104px; height: 216px;
  border-radius: 18px; border: 3px solid #1E293B; background: #0A1020; overflow: hidden;
  opacity: var(--shot);
  transform: translateZ(calc(-50px + var(--shot) * 100px));
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9);
}
.d3__phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.d3__cta { margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 1280px) { .d3__model { --k: 1.14; } }
@media (max-width: 1100px) { .d3__model { --k: .82; } }
@media (max-width: 900px) {
  .d3__grid { grid-template-columns: 1fr; gap: 6px; }
  .d3__stage { order: -1; height: 40vh; }
  .d3__model { --k: .6; left: 47%; }
  .d3--live .d3__pin { align-items: flex-start; }
  .d3--live .d3__intro, .d3--live .d3__caption { display: none; }
  .d3--live .d3__steps li:not(.is-active) { display: none; }
  .d3--live .d3__steps li::after { display: none; }
  .d3__copy .section__title { font-size: 1.55rem; }
  .d3--live .d3__steps { margin-top: 10px; min-height: 150px; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .d3--live .d3__intro { display: none; }
  .d3--live .d3__steps li { padding-top: 7px; padding-bottom: 7px; }
}
