/* ==========================================================================
   Overhead Workflows — styles.css  (v3: graphical / editorial / infographic)
   Plain CSS, no build step. Design tokens live in :root below.

   System notes (see REDESIGN_BRIEF_V3.md):
   - Type:    Space Grotesk (500-700) for display, Inter for body,
              JetBrains Mono for diagram labels and small tags.
   - Colour:  deep ink base, cream/sand light sections, an electric-blue to
              violet gradient duo, coral/amber for small highlights, mint only
              for "live / done" status marks.
   - Texture: blurred gradient blobs + a subtle SVG grain on dark sections.
   - Shape:   large radii, pill buttons, diagonal section edges, tilted cards.
   - Graphics: every inline SVG in index.html is styled here, grouped by
              section. Gradient paints are referenced from the markup
              (fill="url(#g-duo)") because url(#id) inside an external
              stylesheet does not resolve reliably across browsers.
   ========================================================================== */

:root {
  /* Surfaces */
  --ink: #0d1321;
  --ink-2: #131b2f;
  --ink-3: #1b2540;
  --ink-deep: #080c17;
  --cream: #f7f6f2;
  --sand: #efece3;
  --paper: #ffffff;

  /* Text */
  --text: #4b5268;
  --muted: #6b7288;
  --on-dark: #ffffff;
  --on-dark-body: #b6bfd6;
  --on-dark-dim: #8a95b2;

  /* Lines */
  --line: rgba(13, 19, 33, 0.12);
  --line-strong: rgba(13, 19, 33, 0.24);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Palette. The "-ink" variants are darker cuts that pass contrast on light surfaces. */
  --blue: #4c7bff;
  --blue-ink: #3156e6;
  --violet: #9b6dff;
  --violet-ink: #7446ee;
  --coral: #ff7a59;
  --coral-ink: #c9431f;
  --amber: #ffb648;
  --mint: #45e0b3;
  --mint-ink: #0c8f6d;
  --grad: linear-gradient(100deg, #4c7bff, #9b6dff);
  --grad-btn: linear-gradient(100deg, #3b62f2 0%, #7a4cf3 50%, #3b62f2 100%);
  --grad-warm: linear-gradient(100deg, #ff7a59, #ffb648);

  /* Type */
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-h2: clamp(2.125rem, 1.2rem + 3.6vw, 3.75rem); /* 34px to 60px */
  --fs-h3: clamp(1.3125rem, 1.15rem + 0.5vw, 1.5rem); /* 21px to 24px */
  --fs-body: 1.0625rem;
  --fs-card: 1rem;
  --fs-ui: 0.9375rem;
  --fs-small: 0.8125rem;

  /* Radius */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;

  /* Elevation */
  --shadow-card: 0 1px 0 rgba(13, 19, 33, 0.04), 0 24px 48px -28px rgba(13, 19, 33, 0.28);
  --shadow-card-hover: 0 1px 0 rgba(13, 19, 33, 0.04), 0 36px 64px -28px rgba(49, 86, 230, 0.38);
  --shadow-dark: 0 40px 80px -32px rgba(0, 0, 0, 0.7);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 140px);
  --slant: clamp(28px, 5vw, 80px);
  /* How far a graphic may run past the container towards the right page edge. */
  --bleed: min(200px, max(var(--gutter), (100vw - var(--container)) / 2));

  /* Film grain: tiled SVG turbulence, white specks with low alpha. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* ------------------------------- Base ---------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--blue-ink);
  text-decoration: none;
}

a:hover {
  color: var(--violet-ink);
}

address {
  font-style: normal;
}

svg {
  display: block;
}

::selection {
  background: rgba(155, 109, 255, 0.3);
}

:focus-visible {
  outline: 2px solid var(--blue-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-header :focus-visible,
.hero :focus-visible,
.process :focus-visible,
.plan--featured :focus-visible,
.book :focus-visible,
.site-footer :focus-visible {
  outline-color: #b9c8ff;
}

.book__card :focus-visible {
  outline-color: var(--blue-ink);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Line icons: 24px grid. */
.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-ui);
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Mono label above headings, led by a short gradient rule. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.eyebrow .icon {
  width: 15px;
  height: 15px;
  color: var(--coral);
}

.process .eyebrow,
.book .eyebrow {
  color: #a9bcff;
}

/* Hand-drawn marker stroke under a key phrase. The stroke is an SVG background
   that wipes in from the left; it follows the text if the phrase wraps. */
.mark {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 13C52 5 100 16 152 9S250 4 296 10C238 13 128 12 44 19' fill='none' stroke='%23ff7a59' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  padding-bottom: 0.14em;
  background-image: var(--mark);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.36em;
  transition: background-size 0.9s var(--ease-out) 0.35s;
}

.mark--blue {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 13C52 5 100 16 152 9S250 4 296 10C238 13 128 12 44 19' fill='none' stroke='%234c7bff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mark--amber {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 13C52 5 100 16 152 9S250 4 296 10C238 13 128 12 44 19' fill='none' stroke='%23ffb648' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Soft blurred colour fields used behind dark sections ("gradient mesh"). */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
  animation: drift 24s ease-in-out infinite alternate;
}

.blob--blue {
  background: #3a63f5;
}

.blob--violet {
  background: #8a55f7;
  animation-duration: 30s;
  animation-direction: alternate-reverse;
}

.blob--coral {
  background: #ff6a45;
  opacity: 0.28;
  animation-duration: 36s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 6%, 0) scale(1.12);
  }
}

/* Shared SVG motion */
@keyframes dash-flow {
  to {
    stroke-dashoffset: -12;
  }
}

@keyframes packet {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-in {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  35%,
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Graphics pause while their section is off screen (script.js toggles the class). */
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after {
  animation-play-state: paused !important;
}

/* All diagram text is set in the mono face. */
.viz text,
.pipeline text {
  font-family: var(--font-mono);
}

.viz {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ------------------------------ Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-position 0.5s var(--ease), border-color 0.2s ease, color 0.2s ease,
    background-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.btn:hover .icon--arrow {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background: var(--grad-btn);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(76, 123, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary:hover {
  background-position: 100% 0;
  color: #fff;
  box-shadow: 0 18px 36px -12px rgba(122, 76, 243, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero .btn--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.btn--sm {
  padding: 10px 18px;
}

.btn--block {
  width: 100%;
}

/* ------------------------------- Header -------------------------------- */

/* Sits on top of the dark hero (negative margin pulls the page up underneath it).
   Once the page scrolls, script.js adds .is-scrolled and it becomes a blurred ink bar. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: calc(-1 * var(--header-h));
  color: #fff;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 123, 255, 0.7), rgba(155, 109, 255, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 19, 33, 0.82);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand:hover {
  color: #fff;
}

.brand__mark {
  flex: none;
  width: 32px;
  height: 32px;
  transition: transform 0.4s var(--ease-out);
}

.brand:hover .brand__mark {
  transform: rotate(-10deg) scale(1.08);
}

.brand__name span {
  font-weight: 500;
  color: #c6d0ea;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 14px 0;
  color: #dfe5f5;
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: #fff;
}

.site-nav__cta {
  margin-top: 16px;
}

.site-nav__cta .btn {
  width: 100%;
  padding-block: 14px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Small screens: with JS the menu is a panel that drops from the bar; without
   JS the header stops being an overlay and the links simply stay open in the flow. */
@media (max-width: 899.98px) {
  .site-nav {
    flex-basis: 100%;
    padding-bottom: 24px;
  }

  html:not(.js) .site-header {
    position: static;
    margin-bottom: 0;
    background: var(--ink);
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 var(--gutter) 24px;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    background: rgba(13, 19, 33, 0.97);
    box-shadow: var(--shadow-dark);
  }

  .js .site-nav.is-open {
    display: block;
  }

  /* Solid bar while the panel is open so the two read as one surface. */
  .site-header:has(.site-nav.is-open) {
    background: rgba(13, 19, 33, 0.97);
  }

  .site-nav__list li + li:not(.site-nav__cta) .site-nav__link {
    border-top: 1px solid var(--line-dark);
  }
}

@media (min-width: 900px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  .site-nav__link {
    padding: 10px 14px;
  }

  /* Gradient underline that grows from the left on hover / for the current section. */
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.3s var(--ease-out);
  }

  .site-nav__link:hover::after,
  .site-nav__link.is-active::after {
    transform: scaleX(1);
  }

  .site-nav__cta {
    margin: 0 0 0 16px;
  }

  .site-nav__cta .btn {
    width: auto;
    padding-block: 10px;
  }
}

/* -------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--header-h);
  background: var(--grain), var(--ink);
  color: var(--on-dark-body);
}

/* Diagonal lower edge: a cream wedge laid over the bottom of the section. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--slant);
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero__bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  /* script.js nudges these with the pointer for a slight parallax. */
  transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -14px), 0);
  transition: transform 0.6s var(--ease-out);
}

.hero .blob--blue {
  top: -18%;
  right: -6%;
  width: min(58vw, 780px);
  aspect-ratio: 1;
}

.hero .blob--violet {
  right: 18%;
  bottom: -30%;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  opacity: 0.42;
}

.hero .blob--coral {
  top: 30%;
  left: -12%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
}

.hero__inner {
  display: grid;
  gap: 48px;
  padding-block: clamp(40px, 7vw, 80px) calc(var(--slant) + 64px);
}

.hero .eyebrow {
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe3f7;
  font-size: 0.6875rem;
}

.hero .eyebrow::before {
  display: none;
}

.hero__title {
  margin-top: 28px;
  color: var(--on-dark);
  font-size: clamp(2.5rem, 9.6vw, 4.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

/* Second clause in the gradient duo. */
.hero__title-rest {
  color: #a9bcff;
  background: linear-gradient(100deg, #8fb0ff 10%, #c4a8ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__title .mark {
  animation: mark-in 1s var(--ease-out) 0.6s both;
}

@keyframes mark-in {
  from {
    background-size: 0% 0.36em;
  }
}

.hero__lead {
  max-width: 34rem;
  margin-top: 28px;
  font-size: 1.125rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__facts {
  display: grid;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  color: #d5dcee;
  font-size: 0.875rem;
  line-height: 1.4;
}

.hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero__facts .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
  color: var(--coral);
}

@media (max-width: 479.98px) {
  .hero__actions .btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 32px;
    padding-block: 72px calc(var(--slant) + 88px);
  }

  .hero__title {
    font-size: clamp(3rem, 5.4vw, 5rem);
  }
}

/* --- Hero visual: pipeline diagram + overlapping run-log card --- */

.hero__visual {
  position: relative;
  min-width: 0;
  transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 6px), 0);
  transition: transform 0.6s var(--ease-out);
}

/* Small screens: the diagram is drawn a little wider than the column so the
   output fan runs off the right edge; labels are enlarged to stay legible. */
.pipeline {
  width: 112%;
  max-width: none;
  height: auto;
  overflow: visible;
}

.pl-orbits circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.075);
}

.pl-marks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1.25;
}

.pl-cols path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
}

.pl-head {
  fill: rgba(255, 255, 255, 0.66);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pl-head__n {
  fill: var(--coral);
}

.pl-wires path {
  fill: none;
  stroke-width: 2;
  opacity: 0.6;
}

.pl-dashes path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  animation: dash-flow 2.6s linear infinite;
}

.pl-packets path,
.pl-main-packet {
  fill: none;
  stroke: #fff;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 1.5 98.5;
  stroke-dashoffset: 100;
  animation: packet 7s linear infinite;
}

.pl-packets path:nth-child(2) {
  animation-duration: 6s;
  animation-delay: -2.5s;
}

.pl-packets path:nth-child(3) {
  animation-duration: 6.5s;
  animation-delay: -4.2s;
}

.pl-packets path:nth-child(4) {
  animation-delay: -1.2s;
}

.pl-op {
  --c: var(--blue);
  fill: var(--ink);
  stroke: var(--c);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pl-op--coral,
.pl-app--coral {
  --c: #ff7a59;
}

.pl-op--mint,
.pl-app--mint {
  --c: #45e0b3;
}

.pl-op--violet,
.pl-app--violet {
  --c: #b08cff;
}

.pl-op--blue,
.pl-app--blue {
  --c: #7da2ff;
}

.pl-main-glow {
  fill: none;
  stroke: #6f7fff;
  stroke-width: 18;
  stroke-linecap: round;
  opacity: 0.16;
}

.pl-main {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.pl-main-dash {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  opacity: 0.85;
  animation: dash-flow 1.8s linear infinite;
}

.pl-main-packet {
  stroke-width: 8;
  stroke-dasharray: 5 95;
  animation-duration: 3.5s;
}

.pl-out path {
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
  animation: dash-flow 2.2s linear infinite;
}

.pl-tile {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.25;
}

.pl-glyph {
  fill: none;
  stroke: var(--c);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pl-glyph--dots {
  stroke-width: 4;
}

.pl-glyph-fill {
  fill: var(--c);
  opacity: 0.24;
}

.pl-glyph-dot {
  fill: var(--c);
}

.pl-port {
  fill: var(--ink);
  stroke: var(--c);
  stroke-width: 2;
}

.pl-label {
  fill: rgba(255, 255, 255, 0.82);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-anchor: middle;
}

.pl-spin {
  transform-origin: 0 0;
  animation: spin 44s linear infinite;
}

.pl-spin--rev {
  animation-duration: 28s;
  animation-direction: reverse;
}

.pl-engine__teeth {
  fill: none;
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 6;
  stroke-dasharray: 1.5 9.67;
}

.pl-sat {
  fill: #fff;
}

.pl-sat--coral {
  fill: var(--coral);
}

.pl-sat--mint {
  fill: var(--mint);
}

.pl-engine__arc {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 70 43.1;
}

.pl-engine__core {
  fill: #131c38;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.25;
}

.pl-engine__mark {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.pl-ping {
  fill: none;
  stroke: #c0a8ff;
  stroke-width: 2;
  transform-origin: 0 0;
  animation: ping 3.6s ease-out infinite;
}

.pl-ping--late {
  animation-delay: 1.8s;
}

.pl-done__ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1.5;
  stroke-dasharray: 2 6.8;
}

.pl-done__check {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: draw-in 0.9s var(--ease-out) 1s both;
}

.pl-done__live {
  fill: var(--mint);
  stroke: var(--ink);
  stroke-width: 3.5;
}

.pl-pill {
  /* Scaled up on small screens (see label sizes above); reset on wider ones. */
  transform-origin: 0 0;
  transform: scale(1.45);
}

.pl-pill rect {
  fill: rgba(13, 19, 33, 0.92);
  stroke: rgba(255, 255, 255, 0.26);
}

.pl-pill__dot {
  fill: var(--mint);
  animation: blink 2.4s ease-in-out infinite;
}

.pl-pill text {
  fill: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-anchor: middle;
  text-transform: uppercase;
}

/* Run log: the example workflow as a dark glass card that overlaps the diagram. */
.flow {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  margin: 12px 0 0 auto;
  padding: 16px 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(19, 27, 47, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--on-dark-dim);
  transition: transform 0.5s var(--ease-out);
}

.flow__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.flow__title {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.flow__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.flow__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(69, 224, 179, 0.6);
  animation: status-ping 2.4s ease-out infinite;
}

@keyframes status-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(69, 224, 179, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(69, 224, 179, 0);
  }
}

.flow__steps {
  margin-top: 6px;
}

.flow__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 7px;
}

/* Dashed connector between the step tiles */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: calc(50% + 18px);
  height: calc(100% - 36px);
  min-height: 8px;
  width: 0;
  border-left: 1.5px dashed rgba(255, 255, 255, 0.28);
}

.flow__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e6ebfa;
  animation: flow-step 7.5s ease-in-out infinite;
}

.flow__icon .icon {
  width: 16px;
  height: 16px;
}

.flow__step:nth-child(2) .flow__icon { animation-delay: 1.5s; }
.flow__step:nth-child(3) .flow__icon { animation-delay: 3s; }
.flow__step:nth-child(4) .flow__icon { animation-delay: 4.5s; }
.flow__step:nth-child(5) .flow__icon { animation-delay: 6s; }

@keyframes flow-step {
  0%,
  16%,
  100% {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 0 rgba(76, 123, 255, 0);
  }
  4%,
  10% {
    border-color: #8fb0ff;
    background: #4c7bff;
    box-shadow: 0 0 0 5px rgba(76, 123, 255, 0.22);
  }
}

.flow__text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.flow__text strong {
  color: #fff;
  font-size: 0.84375rem;
  font-weight: 600;
  line-height: 1.35;
}

.flow__text span {
  font-size: 0.75rem;
  line-height: 1.35;
}

.flow__tag {
  flex: none;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #c5cee6;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.flow__step:first-child .flow__tag {
  border-color: rgba(255, 122, 89, 0.6);
  background: rgba(255, 122, 89, 0.14);
  color: #ffb19c;
}

@media (min-width: 640px) {
  .hero__visual {
    max-width: 720px;
    margin-inline: auto;
  }

  .pipeline {
    width: 100%;
  }

  .pl-head {
    font-size: 13.5px;
  }

  .pl-label {
    font-size: 16px;
  }

  .pl-pill {
    transform: none;
  }

  /* The card tucks into the empty lower-right quadrant of the diagram. The negative
     margin is a percentage of the visual's width, so the overlap scales with the SVG. */
  .flow {
    width: min(360px, 62%);
    margin: -33% 0 0 auto;
    transform: rotate(-1.5deg);
  }

  .flow:hover {
    transform: rotate(0deg) scale(1.02);
  }
}

@media (min-width: 1024px) {
  .hero__visual {
    max-width: none;
    margin-right: calc(-1 * var(--bleed));
  }

  .flow {
    margin-right: var(--bleed);
  }
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
  .pl-head {
    font-size: 15px;
  }

  .pl-label {
    font-size: 18px;
  }
}

/* ------------------------------ Sections ------------------------------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section__title,
.book__title {
  margin-top: 20px;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section__lead {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 1.125rem;
}

/* Editorial head: big title on the left, lead dropped to the baseline on the right. */
@media (min-width: 900px) {
  .section__head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: end;
    max-width: none;
  }

  .section__head--split .eyebrow {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .section__head--split .section__lead {
    justify-self: end;
    margin: 0 0 8px;
    max-width: 28rem;
  }
}

/* ------------------------------ Services ------------------------------- */

.services-section {
  padding-top: calc(var(--section-y) - var(--slant) / 2);
}

/* Bento: five cards of different sizes, each led by its own infographic. */
.services {
  display: grid;
  gap: 20px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

/* Tactile cards: script.js feeds --rx/--ry from the pointer; :hover adds lift and a slight roll. */
[data-tilt] {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --rot: 0deg;
  transform: perspective(1100px) translateY(var(--lift)) rotate(var(--rot)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s ease;
}

[data-tilt].is-tilting {
  transition: transform 0.1s linear, box-shadow 0.35s var(--ease-out), border-color 0.25s ease;
}

.service:hover {
  --lift: -6px;
  --rot: -0.5deg;
  border-color: rgba(49, 86, 230, 0.35);
  box-shadow: var(--shadow-card-hover);
}

.service:nth-child(even):hover {
  --rot: 0.5deg;
}

/* The "canvas" each graphic is drawn on: tinted panel with a faint dot grid. */
.service__viz {
  padding: 14px;
  border-radius: var(--r-md);
  background-color: #f1efe8;
  background-image: radial-gradient(rgba(13, 19, 33, 0.13) 1px, transparent 1.4px);
  background-size: 16px 16px;
}

.service__idx {
  margin-top: 24px;
  color: var(--coral-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.service__idx::after {
  content: " / 04";
  color: var(--muted);
  opacity: 0.7;
}

.service__title {
  margin-top: 8px;
}

.service__text {
  max-width: 30rem;
  margin-top: 10px;
  font-size: var(--fs-card);
}

@media (min-width: 640px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service {
    padding: 24px 24px 32px;
  }

  .service--flow,
  .service--ledger,
  .service--scatter {
    grid-column: 1 / -1;
  }

}

/* Tablets only: the lone scatter card is full width, so its graphic sits beside the copy. */
@media (min-width: 640px) and (max-width: 999.98px) {
  .service--scatter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
    align-content: center;
  }

  .service--scatter .service__viz {
    grid-row: 1 / span 4;
    align-self: center;
  }

  .service--scatter .service__idx {
    align-self: end;
    margin-top: 0;
  }
}

@media (min-width: 1000px) {
  .services {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .service--flow {
    grid-column: 1 / span 7;
  }

  .service--funnel {
    grid-column: 8 / span 5;
  }

  .service--ledger {
    grid-column: 1 / span 6;
    grid-row: 2;
  }

  .service--scatter {
    grid-column: 7 / span 6;
    grid-row: 2;
  }
}

/* --- 01 Workflow graph --- */

.vf-edges path {
  fill: none;
  stroke: rgba(13, 19, 33, 0.2);
  stroke-width: 2;
}

.vf-flow path {
  fill: none;
  stroke: var(--blue-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  animation: dash-flow 1.8s linear infinite;
}

.vf-node:not(.vf-node--done) .vf-disc {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.75;
}

.vf-glyph {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vf-node--done .vf-glyph {
  stroke: #fff;
  stroke-width: 3;
}

.vf-ping {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0;
  transform-origin: 0 0;
  animation: ping 4.5s ease-out infinite;
  animation-delay: calc(var(--i) * 0.75s);
}

.vf-node--done .vf-ping {
  stroke: var(--violet);
}

.vf-labels text {
  fill: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-anchor: middle;
  text-transform: uppercase;
}

/* Nodes pop in one after another when the card scrolls into view. */
.vf-node > * {
  transition: opacity 0.5s var(--ease-out), scale 0.6s var(--ease-out);
  transition-delay: calc(var(--i) * 140ms + 150ms);
}

.reveal-on .service:not(.in-view) .vf-node > * {
  opacity: 0;
  scale: 0.4;
}

/* --- 02 Funnel + email sequence --- */

.fn-bands path {
  stroke-width: 4;
  stroke-linejoin: round;
  transition: opacity 0.5s var(--ease-out), translate 0.6s var(--ease-out);
}

.fn-b1 { fill: #cfdaff; stroke: #cfdaff; }
.fn-b2 { fill: #4c7bff; stroke: #4c7bff; transition-delay: 120ms; }
.fn-b3 { fill: #7c55ee; stroke: #7c55ee; transition-delay: 240ms; }
.fn-b4 { fill: #ff7a59; stroke: #ff7a59; transition-delay: 360ms; }

.reveal-on .service:not(.in-view) .fn-bands path {
  opacity: 0;
  translate: 0 -14px;
}

.fn-text text {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
}

.fn-text .fn-text--light {
  fill: #fff;
}

.fn-leads circle {
  fill: var(--blue-ink);
  animation: lead-drop 2.8s ease-in infinite;
  animation-delay: calc(var(--i) * 0.6s);
}

@keyframes lead-drop {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  70%,
  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

.fn-link,
.fn-rail {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 4;
  opacity: 0.55;
}

.fn-rail {
  stroke-dasharray: 3 9;
  animation: dash-flow 2s linear infinite;
}

.fn-chip {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.fn-env {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fn-ping {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  opacity: 0;
  transform-origin: 0 0;
  animation: ping 4.8s ease-out infinite;
  animation-delay: calc(var(--i) * 1.2s + 0.6s);
}

.fn-days text {
  fill: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fn-days rect {
  fill: rgba(13, 19, 33, 0.16);
}

/* --- 03 Ledger --- */

.lg-paper {
  fill: #fff;
  stroke: rgba(13, 19, 33, 0.14);
}

.lg-head text {
  fill: var(--muted);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lg-line {
  stroke: rgba(13, 19, 33, 0.14);
}

.lg-line--strong {
  stroke: var(--ink);
  stroke-width: 1.25;
}

/* Fixed "being reconciled" band the rows pass through. */
.lg-scan {
  fill: rgba(76, 123, 255, 0.09);
  stroke: rgba(76, 123, 255, 0.45);
  stroke-dasharray: 3 3;
}

.lg-rows {
  animation: ledger-scroll 18s linear infinite;
}

/* 8 rows x 30 units; rows 9-12 repeat rows 1-4, so the loop is seamless. */
@keyframes ledger-scroll {
  to {
    transform: translateY(-240px);
  }
}

.lg-in {
  fill: var(--blue);
}

.lg-out {
  fill: var(--coral);
}

.lg-desc {
  fill: rgba(13, 19, 33, 0.13);
}

.lg-amt {
  fill: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  text-anchor: end;
}

.lg-ok {
  fill: rgba(69, 224, 179, 0.24);
}

.lg-tick {
  fill: none;
  stroke: var(--mint-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-rule {
  stroke: rgba(13, 19, 33, 0.07);
}

.lg-total__label {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
}

.lg-total__amt {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-anchor: end;
}

/* Accountant's double underline under the total. */
.lg-total__rule {
  stroke: var(--ink);
  stroke-width: 1.1;
}

.lg-total__tick {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- 04 Dashboard --- */

.db-window {
  fill: #0f1730;
  stroke: rgba(255, 255, 255, 0.2);
}

.db-chrome {
  fill: rgba(255, 255, 255, 0.055);
}

.db-side {
  fill: rgba(255, 255, 255, 0.025);
}

.db-hair {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
}

.db-tab {
  fill: rgba(255, 255, 255, 0.08);
}

.db-tab__text {
  fill: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.db-ghost {
  fill: rgba(255, 255, 255, 0.1);
}

.db-nav rect:not(.is-active) {
  fill: rgba(255, 255, 255, 0.12);
}

.db-panel {
  fill: rgba(255, 255, 255, 0.045);
  stroke: rgba(255, 255, 255, 0.1);
}

.db-kpi__label {
  fill: rgba(255, 255, 255, 0.55);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.viz .db-kpi__val {
  fill: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.db-spark {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1.2s var(--ease-out) 0.4s;
}

.db-spark--mint { stroke: var(--mint); }
.db-spark--blue { stroke: #7da2ff; }
.db-spark--violet { stroke: #b99bff; }

.viz .db-title {
  fill: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
}

.db-gridline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-dasharray: 2 4;
}

.db-base {
  stroke: rgba(255, 255, 255, 0.22);
}

.db-bars rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 250ms);
}

.db-ticks text {
  fill: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  font-weight: 500;
  text-anchor: middle;
}

.db-compare {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.db-line {
  fill: none;
  stroke: #b99bff;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.5s;
}

.db-area,
.db-point,
.db-cross {
  transition: opacity 0.6s ease 1.7s;
}

.db-cross {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-dasharray: 2 3;
}

.db-point__dot {
  fill: #fff;
  stroke: var(--violet);
  stroke-width: 2.5;
}

.db-point__ping {
  fill: none;
  stroke: #c9b3ff;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 3s ease-out infinite;
}

.db-tip {
  fill: #fff;
}

.viz .db-tip__text {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  text-anchor: middle;
}

.reveal-on .service:not(.in-view) .db-bars rect {
  transform: scaleY(0);
}

.reveal-on .service:not(.in-view) .db-line,
.reveal-on .service:not(.in-view) .db-spark {
  stroke-dashoffset: 1;
}

.reveal-on .service:not(.in-view) .db-area,
.reveal-on .service:not(.in-view) .db-point,
.reveal-on .service:not(.in-view) .db-cross {
  opacity: 0;
}

/* --- 05 Scatter plot --- */

.sc-gridline {
  fill: none;
  stroke: rgba(13, 19, 33, 0.1);
  stroke-dasharray: 2 4;
}

.sc-axis {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-axis--ticks {
  stroke-width: 1.25;
  opacity: 0.6;
}

.sc-band {
  fill: rgba(76, 123, 255, 0.1);
}

.sc-target {
  stroke: var(--coral-ink);
  stroke-width: 1.25;
  stroke-dasharray: 5 4;
}

.sc-note {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sc-note--target {
  fill: var(--coral-ink);
}

.sc-note--hot {
  fill: var(--ink);
  font-size: 11px;
}

.sc-dots circle {
  fill: var(--blue-ink);
  fill-opacity: 0.82;
  transform-box: fill-box;
  transform-origin: center;
  transition: scale 0.5s var(--ease-out), opacity 0.3s ease;
  transition-delay: calc(var(--i) * 45ms + 200ms);
}

.sc-dots .is-violet {
  fill: var(--violet-ink);
}

.sc-dots .is-hot {
  fill: var(--coral);
  fill-opacity: 1;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.sc-trend {
  fill: none;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1.4s var(--ease-out) 0.9s;
}

.sc-ring {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 0.8s var(--ease-out) 1.7s;
}

.sc-arrow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-arrow,
.sc-note--hot {
  transition: opacity 0.5s ease 2.2s;
}

.reveal-on .service:not(.in-view) .sc-dots circle {
  scale: 0;
  opacity: 0;
}

.reveal-on .service:not(.in-view) .sc-trend,
.reveal-on .service:not(.in-view) .sc-ring {
  stroke-dashoffset: 1;
}

.reveal-on .service:not(.in-view) .sc-arrow,
.reveal-on .service:not(.in-view) .sc-note--hot {
  opacity: 0;
}

/* --- Additional services: loose, slightly rotated tags --- */

.extras {
  display: grid;
  gap: 28px;
  margin-top: clamp(64px, 9vw, 120px);
}

.extras__title {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.extras__lead {
  max-width: 22rem;
  margin-top: 12px;
  font-size: var(--fs-card);
}

.extras__arrow {
  display: none;
  width: 112px;
  margin: 20px 0 0 96px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.extras__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
}

.extra {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.35;
  transition: transform 0.35s var(--ease-out), border-color 0.2s ease, box-shadow 0.3s var(--ease-out);
}

.extra:nth-child(3n + 1) { transform: rotate(-1.4deg); }
.extra:nth-child(3n + 2) { transform: rotate(1deg); }
.extra:nth-child(3n) { transform: rotate(-0.5deg); }

.extra:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.04);
  border-color: var(--blue-ink);
  box-shadow: 0 16px 28px -16px rgba(49, 86, 230, 0.6);
}

.extra .icon {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 12px;
  background: #eef1ff;
  color: var(--blue-ink);
}

.extra:nth-child(even) .icon {
  background: #fff0ea;
  color: var(--coral-ink);
}

@media (min-width: 1000px) {
  .extras {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
    align-items: start;
  }

  .extras__arrow {
    display: block;
  }
}

/* ------------------------------- Process ------------------------------- */

.process {
  isolation: isolate;
  overflow: hidden;
  padding-block: calc(var(--section-y) + var(--slant));
  background: var(--grain), var(--ink);
  color: var(--on-dark-body);
}

/* Diagonal edges: cream wedges at the top and bottom, parallel to each other. */
.process::before,
.process::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  height: var(--slant);
  background: var(--cream);
}

.process::before {
  top: -1px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.process::after {
  bottom: -1px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.process__bg {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.process .blob--violet {
  top: -20%;
  right: -10%;
  width: min(50vw, 640px);
  aspect-ratio: 1;
  opacity: 0.36;
}

.process .blob--blue {
  bottom: -30%;
  left: -8%;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  opacity: 0.34;
}

.process .section__title,
.process h3 {
  color: #fff;
}

.process__path {
  display: none;
}

/* Small screens: a vertical rail of flowing dashes links the nodes. */
.step {
  --c: var(--coral);
  position: relative;
  padding: 2px 0 48px 84px;
}

.step:nth-child(2) { --c: #6e93ff; }
.step:nth-child(3) { --c: #8f7dff; }
.step:nth-child(4) { --c: #b79bff; }

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 62px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--c) 0 5px, transparent 5px 12px);
  opacity: 0.8;
  animation: rail-flow 1.4s linear infinite;
}

@keyframes rail-flow {
  to {
    background-position: 0 12px;
  }
}

.step__node {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--c);
  border-radius: 50%;
  background: var(--ink-2);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 16%, transparent), 0 0 32px -4px var(--c);
  color: #fff;
  transition: transform 0.4s var(--ease-out), opacity 0.5s ease, background-color 0.25s ease;
}

.step:hover .step__node {
  background: var(--c);
  transform: scale(1.1) rotate(-8deg);
}

/* Oversized outlined numeral. The markup holds "1"; the leading zero is presentational. */
.step__num {
  position: absolute;
  z-index: 0;
  top: -14px;
  right: 0;
  color: rgba(255, 255, 255, 0.07);
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

@supports (-webkit-text-stroke: 1px #000) {
  .step__num {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
  }
}

.step__num::before {
  content: "0";
}

.step__title,
.step__text,
.step__note {
  position: relative;
  z-index: 1;
}

.step__title {
  max-width: 14ch;
  padding-top: 12px;
}

.step__text {
  max-width: 30rem;
  margin-top: 12px;
  font-size: var(--fs-card);
}

.step__note {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1.5px dashed rgba(255, 122, 89, 0.7);
  border-radius: 14px;
  background: rgba(255, 122, 89, 0.1);
  color: #ffb9a6;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.45;
  transform: rotate(-1.2deg);
}

/* Large screens: the steps climb a single rising path drawn in SVG. Everything
   vertical is expressed in container-query units so the HTML nodes stay locked
   to the points on the path at any width (path canvas = 1200 x 300). */
@media (min-width: 1000px) {
  @supports (width: 1cqw) {
    .process__track {
      position: relative;
      container-type: inline-size;
    }

    .process__path {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: auto;
      overflow: visible;
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .step {
      --y: 240;
      padding: calc(var(--y) * 100cqw / 1200 + 52px) 32px 0 0;
    }

    .step:nth-child(2) { --y: 180; }
    .step:nth-child(3) { --y: 120; }
    .step:nth-child(4) { --y: 60; }

    .step:not(:last-child)::before {
      display: none;
    }

    .step__node {
      top: calc(var(--y) * 100cqw / 1200);
      left: calc(32 * 100cqw / 1200);
      margin: -28px 0 0 -28px;
    }

    .step__num {
      top: calc(var(--y) * 100cqw / 1200 + 14px);
      right: 16px;
      font-size: clamp(7.5rem, 13cqw, 10.5rem);
    }
  }
}

.pp-ghost {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
  stroke-dasharray: 2 8;
}

.pp-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 2.4s var(--ease) 0.1s;
}

.pp-dash {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  opacity: 0.75;
  animation: dash-flow 1.8s linear infinite;
  transition: opacity 0.6s ease 2s;
}

/* Scroll-in choreography: the path draws, then each step lands in turn. */
.step__title,
.step__text,
.step__note,
.step__num {
  transition: opacity 0.6s var(--ease-out), translate 0.7s var(--ease-out);
}

.step:nth-child(1) > * { transition-delay: 0.35s; }
.step:nth-child(2) > * { transition-delay: 0.75s; }
.step:nth-child(3) > * { transition-delay: 1.15s; }
.step:nth-child(4) > * { transition-delay: 1.55s; }

.step:hover > .step__node {
  transition-delay: 0s;
}

.reveal-on .process__track:not(.in-view) .pp-line {
  stroke-dashoffset: 1;
}

.reveal-on .process__track:not(.in-view) .pp-dash {
  opacity: 0;
}

.reveal-on .process__track:not(.in-view) .step__node {
  opacity: 0;
  transform: scale(0.4);
}

.reveal-on .process__track:not(.in-view) .step__title,
.reveal-on .process__track:not(.in-view) .step__text,
.reveal-on .process__track:not(.in-view) .step__note,
.reveal-on .process__track:not(.in-view) .step__num {
  opacity: 0;
  translate: 0 18px;
}

/* ------------------------------- Pricing ------------------------------- */

/* Audit call-out drawn as a ticket: dark illustrated stub, perforation, details. */
.audit {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.audit__stub {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
  background:
    radial-gradient(80% 90% at 20% 10%, rgba(76, 123, 255, 0.4), transparent 70%),
    radial-gradient(70% 80% at 100% 100%, rgba(155, 109, 255, 0.36), transparent 70%),
    var(--grain), var(--ink);
}

.viz-audit {
  max-width: 250px;
}

/* Punched notches at either end of the perforation. */
.audit__stub::before,
.audit__stub::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cream);
}

.audit__stub::before {
  left: -14px;
}

.audit__stub::after {
  right: -14px;
}

.audit__body {
  padding: 28px 24px 8px;
  border-top: 2px dashed var(--line-strong);
}

.audit__label {
  color: var(--coral-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.audit__title {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.audit__text {
  max-width: 40rem;
  margin-top: 12px;
  font-size: var(--fs-card);
}

.viz-credit {
  max-width: 460px;
  margin-top: 20px;
}

.audit > .btn {
  justify-self: start;
  margin: 16px 24px 28px;
}

@media (min-width: 860px) {
  .audit {
    grid-template-columns: 250px minmax(0, 1fr) auto;
    align-items: center;
  }

  .audit__stub {
    align-self: stretch;
    border-radius: calc(var(--r-lg) - 1px) 0 0 calc(var(--r-lg) - 1px);
  }

  .audit__stub::before,
  .audit__stub::after {
    left: auto;
    right: -14px;
  }

  .audit__stub::before {
    top: -13px;
    bottom: auto;
  }

  .audit__body {
    padding: 32px 8px 32px 40px;
    border-top: 0;
    border-left: 2px dashed var(--line-strong);
  }

  .audit > .btn {
    justify-self: end;
    margin: 0 36px 0 24px;
  }
}

.au-edges path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1.5;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  animation: dash-flow 2.6s linear infinite;
}

.au-nodes circle {
  fill: var(--ink);
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.75;
}

.au-hot {
  fill: var(--coral);
}

.au-ping {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2.6s ease-out infinite;
}

/* The magnifier drifts slowly around the bottleneck it has found. */
.au-lens {
  animation: lens-drift 9s ease-in-out infinite alternate;
}

@keyframes lens-drift {
  from {
    transform: translate(-7px, -4px);
  }
  to {
    transform: translate(6px, 5px);
  }
}

.au-lens__glass {
  fill: rgba(255, 255, 255, 0.09);
}

.au-lens__glare {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.au-lens__rim {
  fill: none;
  stroke-width: 5;
}

.au-lens__handle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.cr-chip {
  fill: #fff0ea;
  stroke: var(--coral);
  stroke-width: 1.5;
}

.cr-chip__text,
.cr-note {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 500;
  text-anchor: middle;
}

.cr-note {
  fill: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cr-note--hot {
  fill: var(--coral-ink);
}

.cr-arrow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cr-bar {
  fill: rgba(13, 19, 33, 0.06);
}

.cr-bar--outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.cr-credit {
  transform-box: fill-box;
  transform-origin: 0 50%;
  transition: transform 0.9s var(--ease-out) 0.6s;
}

.cr-cut {
  stroke: var(--coral-ink);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.reveal-on .audit:not(.in-view) .cr-credit {
  transform: scaleX(0);
}

/* --- Plans --- */

.plans {
  display: grid;
  gap: 28px;
  max-width: 520px;
  margin: 56px auto 0;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.plan:hover {
  --lift: -8px;
  --rot: 0deg;
  border-color: rgba(49, 86, 230, 0.35);
  box-shadow: var(--shadow-card-hover);
}

/* Oversized outlined tier numeral in the corner. */
.plan__num {
  position: absolute;
  top: 10px;
  right: 22px;
  color: rgba(13, 19, 33, 0.06);
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

@supports (-webkit-text-stroke: 1px #000) {
  .plan__num {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(13, 19, 33, 0.16);
  }

  .plan--featured .plan__num {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.22);
  }
}

.plan__name {
  position: relative;
  font-size: 1.375rem;
}

.plan__price {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 20px;
}

.plan__amount {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 1.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.plan__unit {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.plan__best {
  margin-top: 16px;
  font-size: var(--fs-card);
  line-height: 1.5;
}

.plan__best strong {
  color: var(--ink);
  font-weight: 600;
}

/* Scope meter: the same two measures on every card so tiers compare at a glance. */
.meter {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(13, 19, 33, 0.025);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.3;
}

.meter__row {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.meter__label {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meter__val {
  min-width: 4.4rem;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.meter__pips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meter__pips i {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  transition: scale 0.5s var(--ease-out), opacity 0.4s ease;
}

.meter__pips i:nth-child(2) { transition-delay: 90ms; }
.meter__pips i:nth-child(3) { transition-delay: 180ms; }
.meter__pips i:nth-child(4) { transition-delay: 270ms; }

.meter__pips .is-on {
  border-color: transparent;
  background: var(--grad);
}

.meter__loop {
  width: 15px;
  height: 15px;
  color: var(--violet-ink);
  stroke-width: 2.2;
  animation: spin 8s linear infinite;
}

.meter__bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(13, 19, 33, 0.1);
}

.meter__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 8px;
  background: var(--grad);
  transition: width 1.1s var(--ease-out) 0.3s;
}

/* "Ongoing": the bar never ends, it keeps moving. */
.meter__bar--ongoing i {
  background: repeating-linear-gradient(-55deg, #4c7bff 0 8px, #9b6dff 8px 16px);
  background-size: 200% 100%;
  animation: bar-run 1.6s linear infinite;
}

@keyframes bar-run {
  to {
    background-position: -39px 0;
  }
}

.reveal-on .plan:not(.in-view) .meter__bar i {
  width: 0;
}

.reveal-on .plan:not(.in-view) .meter__pips i {
  scale: 0;
  opacity: 0;
}

.plan__list {
  display: grid;
  align-content: start;
  flex: 1;
  gap: 12px;
  margin-top: 24px;
  font-size: var(--fs-ui);
  line-height: 1.55;
}

.plan__list li {
  display: flex;
  gap: 12px;
}

.plan__list .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke-width: 2.6;
  color: var(--blue-ink);
}

.plan__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block: 28px 16px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
}

.plan__meta .icon {
  width: 16px;
  height: 16px;
  color: var(--coral-ink);
}

.plan__fineprint {
  margin-top: 16px;
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* Featured tier: dark card, gradient edge, lifted, with a hand-drawn ribbon. */
.plan--featured {
  z-index: 1;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(140deg, #4c7bff, #9b6dff 55%, #ff7a59) border-box;
  box-shadow: 0 40px 80px -36px rgba(76, 99, 255, 0.75);
  color: var(--on-dark-body);
}

.plan--featured::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(155, 109, 255, 0.4), transparent 70%),
    radial-gradient(70% 40% at 0% 100%, rgba(76, 123, 255, 0.3), transparent 70%),
    var(--grain);
}

.plan--featured:hover {
  border-color: transparent;
  box-shadow: 0 48px 90px -36px rgba(122, 76, 243, 0.9);
}

.plan--featured .plan__name,
.plan--featured .plan__amount,
.plan--featured .plan__best strong,
.plan--featured .plan__meta,
.plan--featured .meter__val {
  color: #fff;
}

.plan--featured .plan__list .icon {
  color: var(--mint);
}

.plan--featured .plan__meta .icon {
  color: var(--coral);
}

.plan--featured .meter {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.plan--featured .meter__label {
  color: var(--on-dark-dim);
}

.plan--featured .meter__pips i:not(.is-on) {
  border-color: rgba(255, 255, 255, 0.3);
}

.plan--featured .meter__bar {
  background: rgba(255, 255, 255, 0.14);
}

.plan__badge {
  position: absolute;
  z-index: 2;
  top: -30px;
  right: -10px;
  width: 196px;
  transform: rotate(6deg);
  transform-origin: 80% 50%;
  transition: transform 0.5s var(--ease-out);
}

.plan--featured:hover .plan__badge {
  transform: rotate(-2deg) scale(1.06);
}

.plan__ribbon {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
}

.plan__badge span {
  position: absolute;
  inset: 12.5% 13% 34% 13%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.rb-tail {
  fill: #e2552f;
}

.rb-fold {
  fill: #8f2c12;
}

.rb-stitch {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.25;
  stroke-dasharray: 4 3.5;
  stroke-linecap: round;
}

.rb-star {
  fill: #ffd27a;
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 3.2s ease-in-out infinite;
}

.rb-star--sm {
  animation-delay: 1.4s;
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(0.55) rotate(40deg);
    opacity: 0.5;
  }
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    max-width: none;
    margin-top: 88px;
  }

  .plan {
    padding: 32px 24px 28px;
  }

  /* Deliberately off-grid: outer cards lean away, the featured card rides higher. */
  .plan:nth-child(1) {
    --rot: -1.3deg;
  }

  .plan:nth-child(3) {
    --rot: 1.3deg;
  }

  .plan--featured {
    --lift: -28px;
  }

  .plan--featured:hover {
    --lift: -38px;
  }

  .meter__row {
    grid-template-columns: 4.9rem minmax(0, 1fr) auto;
    gap: 8px;
  }
}

@media (min-width: 1100px) {
  .plans {
    gap: 28px;
  }

  .plan {
    padding: 40px 32px 32px;
  }

  .meter__row {
    grid-template-columns: 5.6rem minmax(0, 1fr) auto;
    gap: 10px;
  }
}

/* ------------------------------- Why us -------------------------------- */

.why {
  padding-top: calc(var(--section-y) + var(--slant));
  background-color: var(--sand);
  background-image: radial-gradient(rgba(13, 19, 33, 0.1) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

.why::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: var(--slant);
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.why__inner {
  display: grid;
  gap: 8px;
}

.trust {
  display: grid;
  gap: 20px;
}

.trust__item {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.trust__item:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.012);
  box-shadow: var(--shadow-card-hover);
}

.trust__art {
  width: 168px;
  max-width: 100%;
}

.trust__title {
  line-height: 1.2;
}

.trust__text {
  margin-top: 12px;
  font-size: var(--fs-card);
}

.reveal-on .trust__item:not(.in-view) .mark {
  background-size: 0% 0.36em;
}

@media (min-width: 600px) {
  .trust__item {
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 28px 32px 28px 24px;
  }

  /* Staggered and slightly rolled, like notes pinned to a board. */
  .trust__item:nth-child(1) { transform: rotate(-0.7deg); }
  .trust__item:nth-child(2) { transform: rotate(0.6deg); }
  .trust__item:nth-child(3) { transform: rotate(-0.4deg); }

  .trust__item:hover {
    transform: rotate(0deg) translateY(-4px) scale(1.012);
  }
}

@media (min-width: 1000px) {
  .why__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
    align-items: start;
  }

  .why .section__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    margin-bottom: 0;
  }

  .trust__item:nth-child(2) {
    margin-left: -40px;
    margin-right: 40px;
  }

  .partners {
    grid-column: 1 / -1;
  }
}

.ta-level {
  stroke: var(--coral-ink);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.ta-bar:not(.ta-bar--fill) {
  fill: rgba(13, 19, 33, 0.05);
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-dasharray: 5 4;
}

.ta-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease-out) 0.2s;
}

.ta-bar--fill {
  transition-delay: 0.45s;
}

.ta-equal {
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.ta-check {
  fill: none;
  stroke: var(--coral);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 0.7s var(--ease-out) 1.2s;
}

.ta-label {
  fill: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-anchor: middle;
  text-transform: uppercase;
}

.tb-page {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.75;
}

.tb-page--back {
  fill: #dfe6ff;
}

.tb-page--mid {
  fill: #f1efe8;
}

.tb-heading {
  fill: var(--blue);
}

.tb-lines {
  stroke: rgba(13, 19, 33, 0.22);
  stroke-width: 4;
  stroke-linecap: round;
}

.tb-video {
  fill: var(--ink);
}

.tb-play {
  fill: #fff;
}

.tb-shackle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5.5;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 100% 100%;
  transition: transform 0.7s var(--ease-out) 0.9s;
}

.tb-lock {
  stroke: var(--ink);
  stroke-width: 1.75;
}

.tb-key {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}

.tb-keyhole {
  fill: var(--ink);
}

.tc-tangle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tc-arrow {
  fill: none;
  stroke: var(--coral-ink);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tc-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 0.9s var(--ease-out) 0.6s;
}

.tc-node:not(.tc-node--done) {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.75;
}

.tc-tick {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal-on .trust__item:not(.in-view) .ta-bar {
  transform: scaleY(0);
}

.reveal-on .trust__item:not(.in-view) .ta-check,
.reveal-on .trust__item:not(.in-view) .tc-line {
  stroke-dashoffset: 1;
}

/* The padlock starts closed and springs open when the card scrolls in. */
.reveal-on .trust__item:not(.in-view) .tb-shackle {
  transform: translateY(8px);
}

/* Partners note: dark card with the two-rings mark. */
.partners {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 24px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(76, 123, 255, 0.36), transparent 70%),
    var(--grain), var(--ink);
  box-shadow: var(--shadow-card);
  color: var(--on-dark-body);
  font-size: 1.0625rem;
}

.partners__art {
  flex: none;
  width: 128px;
}

.partners > .icon {
  display: none;
}

.partners > span {
  flex: 1 1 16rem;
}

.partners strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pt-ring {
  stroke-width: 2.5;
}

.pt-ring--a {
  fill: rgba(76, 123, 255, 0.24);
  stroke: #7da2ff;
}

.pt-ring--n {
  fill: rgba(155, 109, 255, 0.24);
  stroke: #b99bff;
}

.viz .pt-letter,
.viz .pt-amp {
  fill: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-anchor: middle;
}

.viz .pt-amp {
  fill: var(--coral);
  font-size: 20px;
}

@media (min-width: 768px) {
  .partners {
    padding: 28px 40px;
  }
}

/* ------------------------------- Booking ------------------------------- */

.book {
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--section-y) + var(--slant));
  background: var(--grain), var(--ink);
  color: var(--on-dark-body);
}

.book::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 0;
  right: 0;
  height: var(--slant);
  background-color: var(--sand);
  background-image: radial-gradient(rgba(13, 19, 33, 0.1) 1px, transparent 1.4px);
  background-size: 22px 22px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.book__bg {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.book .blob--blue {
  right: -6%;
  bottom: -30%;
  width: min(60vw, 760px);
  aspect-ratio: 1;
}

.book .blob--violet {
  top: 4%;
  right: 22%;
  width: min(36vw, 460px);
  aspect-ratio: 1;
  opacity: 0.4;
}

.book .blob--coral {
  bottom: -14%;
  left: -8%;
  width: min(32vw, 380px);
  aspect-ratio: 1;
  opacity: 0.22;
}

.book__inner {
  display: grid;
  gap: 40px;
}

.book__title {
  color: var(--on-dark);
}

.book__pitch {
  margin-top: 20px;
  color: #e3e8f7;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.book__text {
  max-width: 33rem;
  margin-top: 16px;
}

/* Calendar + clock illustration */
.viz-cal {
  width: min(100%, 340px);
  margin: 32px 0 -8px;
}

.cal-shadow {
  fill: rgba(0, 0, 0, 0.38);
}

.cal-body {
  fill: var(--cream);
}

.cal-ring {
  fill: var(--ink);
  stroke: var(--cream);
  stroke-width: 2.5;
}

.cal-month {
  fill: rgba(255, 255, 255, 0.92);
}

.cal-chev {
  fill: none;
  stroke: #fff;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-days text {
  fill: rgba(13, 19, 33, 0.55);
  font-size: 9.5px;
  font-weight: 500;
  text-anchor: middle;
}

/* Day dots: one stroked line per week, dashed into round dots. */
.cal-dots {
  fill: none;
  stroke: rgba(13, 19, 33, 0.1);
  stroke-width: 24;
  stroke-linecap: round;
  stroke-dasharray: 0.01 31.99;
}

.cal-dots--past {
  stroke: rgba(13, 19, 33, 0.045);
}

.cal-open circle {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 1.75;
}

.cal-pick__tick {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-loop {
  fill: none;
  stroke: var(--coral);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1s var(--ease-out) 0.5s;
}

.reveal-on .viz-cal:not(.in-view) .cal-loop {
  stroke-dashoffset: 1;
}

.cal-sheet {
  transition: translate 0.8s var(--ease-out), opacity 0.6s ease;
}

.cal-clock {
  transform-origin: 0 0;
  transition: transform 0.8s var(--ease-out) 0.25s, opacity 0.6s ease 0.25s;
}

.reveal-on .viz-cal:not(.in-view) .cal-sheet {
  opacity: 0;
  translate: 0 24px;
}

.reveal-on .viz-cal:not(.in-view) .cal-clock {
  opacity: 0;
  transform: scale(0.7);
}

.cal-clock__halo {
  fill: rgba(155, 109, 255, 0.2);
}

.cal-clock__face {
  fill: var(--ink);
  stroke-width: 5;
}

/* The wedge is the slot being booked. */
.cal-clock__slot {
  fill: rgba(255, 122, 89, 0.34);
}

.cal-clock__ticks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 6;
  stroke-dasharray: 2 26.274;
}

.cal-clock__hour,
.cal-clock__min {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  transform-origin: 0 0;
}

.cal-clock__hour {
  stroke-width: 5.5;
  transform: rotate(-58deg);
  animation: clock-hour 720s linear infinite;
}

.cal-clock__min {
  stroke-width: 3.5;
  transform: rotate(40deg);
  animation: clock-min 60s linear infinite;
}

@keyframes clock-hour {
  from {
    transform: rotate(-58deg);
  }
  to {
    transform: rotate(302deg);
  }
}

@keyframes clock-min {
  from {
    transform: rotate(40deg);
  }
  to {
    transform: rotate(400deg);
  }
}

.cal-clock__cap {
  fill: var(--coral);
}

.cal-star {
  fill: var(--amber);
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 3.6s ease-in-out infinite;
}

.cal-star--sm {
  animation-delay: 1.2s;
}

/* Booking card: cream paper with a gradient "shadow sheet" tucked behind it. */
.book__card {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow-dark);
  color: var(--text);
  transition: transform 0.4s var(--ease-out);
}

.book__card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, #4c7bff, #9b6dff 60%, #ff7a59);
  transform: rotate(3deg) translate(6px, 8px);
  transition: transform 0.5s var(--ease-out);
}

.book__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.book__points li:first-child {
  padding-top: 0;
}

.book__points .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
  color: var(--coral-ink);
}

.book__widget {
  margin-top: 28px;
}

.book__widget .btn {
  padding-block: 18px;
  font-size: 1rem;
}

.book__alt {
  margin-top: 16px;
  font-size: var(--fs-small);
  line-height: 1.6;
}

.book__alt a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Calendly drop-in container: hidden until something is placed inside it. */
#calendar-embed {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

#calendar-embed:empty {
  display: none;
}

#calendar-embed iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  border: 0;
}

@media (min-width: 640px) {
  .book__card {
    padding: 36px;
  }
}

@media (min-width: 960px) {
  .book__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-items: center;
    gap: 72px;
  }

  .book__card {
    max-width: none;
  }

  .book__card:hover {
    transform: translateY(-4px) rotate(-0.6deg);
  }

  .book__card:hover::before {
    transform: rotate(5deg) translate(10px, 12px);
  }

  /* Once a calendar is embedded it needs the full width, so stack instead. */
  .book__inner:has(#calendar-embed:not(:empty)) {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .book__inner:has(#calendar-embed:not(:empty)) .book__copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 64px;
    align-items: center;
  }

  .book__inner:has(#calendar-embed:not(:empty)) .book__copy > :not(.viz-cal) {
    grid-column: 1;
  }

  .book__inner:has(#calendar-embed:not(:empty)) .viz-cal {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
  }

  .book__inner:has(#calendar-embed:not(:empty)) .book__card:hover {
    transform: none;
  }

  .book__inner:has(#calendar-embed:not(:empty)) .book__card::before {
    transform: rotate(0.8deg) translate(4px, 8px);
  }

  .book__inner:has(#calendar-embed:not(:empty)) .book__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--line-strong);
  }

  .book__inner:has(#calendar-embed:not(:empty)) .book__points li {
    padding: 0;
    border: 0;
  }

  .book__inner:has(#calendar-embed:not(:empty)) .book__widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
  }

  .book__inner:has(#calendar-embed:not(:empty)) .book__widget .btn {
    width: auto;
  }

  .book__inner:has(#calendar-embed:not(:empty)) .book__alt {
    margin-top: 0;
  }

  .book__inner:has(#calendar-embed:not(:empty)) #calendar-embed {
    flex-basis: 100%;
    margin-top: 8px;
  }
}

/* ------------------------------- Footer -------------------------------- */

.site-footer {
  position: relative;
  background: var(--ink-deep);
  color: var(--on-dark-dim);
  font-size: var(--fs-ui);
}

/* A last strand of the pipeline running across the top edge. */
.site-footer__wire {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  fill: none;
  stroke: rgba(155, 109, 255, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  animation: dash-flow 2.4s linear infinite;
  pointer-events: none;
}

.site-footer__wire path {
  vector-effect: non-scaling-stroke;
}

.site-footer a:not(.brand) {
  color: #c9d2ea;
  transition: color 0.15s ease;
}

.site-footer a:not(.brand):hover {
  color: #fff;
}

.site-footer__inner {
  display: grid;
  gap: 40px;
  padding-block: 72px 48px;
}

.site-footer__tagline {
  margin-top: 24px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.site-footer__heading {
  margin-bottom: 16px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer__nav ul {
  display: grid;
  gap: 8px;
}

.site-footer__contact address {
  line-height: calc(32 / 15); /* matches the 32px row pitch of the link list */
  margin-top: -4px;
}

.site-footer__contact a {
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  /* Hairline inset to the content width (the container's gutters stay clear). */
  background: linear-gradient(var(--line-dark), var(--line-dark)) top center /
    calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: var(--fs-small);
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.8fr 0.8fr 1.2fr;
    gap: 48px;
  }
}

/* --------------------------- Scroll reveal ----------------------------- */
/* Only active once script.js has run, so content is never hidden without JS. */

.reveal-on .reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------- Print -------------------------------- */

@media print {
  .site-header,
  .nav-toggle,
  .skip-link,
  .blob {
    display: none;
  }

  .reveal-on .reveal {
    opacity: 1;
    transform: none;
  }
}
