/* v2 pages (2026-11-25): shared motion styles + the Services and Pricing sections in the light ribbon palette.
   Loaded after industry.css, ribbon.css and home-v2.css on every v2 page. Tokens come from industry.css:
   white / #f5f5f7 sections, #1d1d1f text, #6e6e73 secondary, Apple blue only on actions and links. */

/* ---------- motion (assets/v2-motion.js adds .v2m; nothing hides without it) ---------- */
.v2m .rise {
  opacity: 0; translate: 0 1rem;
  /* quicker (client review 2026-11-25: "content beneath loads too slowly"); fires before the block enters */
  transition: opacity 380ms var(--ease-out), translate 480ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 40ms);
}
.v2m .rise.in { opacity: 1; translate: 0 0; }
/* cards drift on a curved rail: smooth the per-frame tilt a little, keep them crisp */
.v2m .gap-lines > li, .v2m .steps > li, .v2m .plan2, .v2m .svc-card, .v2m .work-item, .v2m .lead {
  transform-origin: 50% 50%; will-change: transform; transition: opacity 380ms var(--ease-out), translate 480ms var(--ease-out), transform 120ms linear;
  transition-delay: calc(var(--d, 0) * 40ms), calc(var(--d, 0) * 40ms), 0ms;
}

/* ---------- page heads below a ribbon ---------- */
.v2-head { text-align: center; }
.v2-head h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; max-width: 18ch; margin-inline: auto; }
.v2-head h2 span { color: var(--on-light-soft, #6e6e73); }
.v2-head p { margin: 1.5rem auto 0; max-width: 38rem; font-size: clamp(1.1875rem, 2vw, 1.5rem); line-height: 1.45; color: var(--on-light-soft, #6e6e73); }

/* ---------- services: jump row, then one card per service ---------- */
.svc-nav { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.svc-nav a {
  font-size: 0.9375rem; color: var(--on-light); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center;
  padding: 0 1.1rem; border-radius: 980px; box-shadow: inset 0 0 0 1px var(--rule-light);
  transition: box-shadow 160ms var(--ease-out);
}
@media (hover: hover) { .svc-nav a:hover { box-shadow: inset 0 0 0 1px var(--on-light-soft, #6e6e73); } }
.svc-list { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.svc-card {
  scroll-margin-top: 5rem; background: var(--white); border-radius: 24px;
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem);
}
.s-white .svc-card { background: var(--grey); }
.svc-card h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.svc-card .svc-n { display: block; margin-bottom: 0.9rem; font-size: 0.9375rem; font-weight: 600; color: var(--on-light-soft, #6e6e73); font-variant-numeric: tabular-nums; }
.svc-body > p:first-child { font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.45; }
.svc-gets { margin-top: 1.5rem; display: grid; gap: 0; }
.svc-gets li { padding-block: 0.85rem; border-top: 1px solid var(--rule-light); color: var(--on-light); }
.svc-gets li:last-child { border-bottom: 1px solid var(--rule-light); }
.svc-fit { margin-top: 1.25rem; color: var(--on-light-soft, #6e6e73); }
.svc-fit strong { color: var(--on-light, #1d1d1f); font-weight: 600; }

/* ---------- pricing: two plans side by side ---------- */
.plans { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.plan2 {
  background: var(--white); border-radius: 24px; padding: clamp(1.75rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 0;
}
.s-white .plan2 { background: var(--grey); }
.plan2 h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.plan2 .plan-for { margin-top: 0.75rem; color: var(--on-light-soft, #6e6e73); max-width: 32rem; }
.plan2 .price-big { margin-top: clamp(2rem, 4vw, 3rem); text-align: left; }
.plan2 .per { margin-top: 0.5rem; color: var(--on-light-soft, #6e6e73); }
.plan2 ul { margin-top: 1.5rem; }
.plan2 li { padding-block: 0.85rem; border-top: 1px solid var(--rule-light); }
.plan2 li:last-child { border-bottom: 1px solid var(--rule-light); }
.plan2 .pill { margin: 2rem 0 0; align-self: flex-start; }
.plans-note { margin: 2rem auto 0; max-width: 40rem; text-align: center; color: var(--on-light-soft, #6e6e73); }

/* ---------- closing band ---------- */
.v2-close { text-align: center; }
.v2-close h2 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; max-width: 20ch; margin-inline: auto; }
.v2-close h2 span { color: var(--on-light-soft, #6e6e73); }
.v2-close .acts { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.25rem; }
.v2-close .pill { margin: 0; }

@media (max-width: 47.99rem) {
  .svc-card, .plans { grid-template-columns: minmax(0, 1fr); }
  .plan2 .pill { align-self: stretch; justify-content: center; }
}

/* ---------- v2 effects (2026-11-25 draft; assets/v2-motion.js) ---------- */
/* lit words: the script sets each word's opacity; this only smooths the step */
.lw { transition: opacity 160ms linear; }

/* scroll reel: two rows of our stills and one line of type, slid sideways by the scroll */
.v2-reel {
  overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--white, #fff);
  display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.reel-row { display: flex; gap: clamp(0.75rem, 1.6vw, 1.25rem); width: max-content; margin-left: -12vw; will-change: transform; }
.reel-row img {
  height: clamp(11rem, 19vw, 17rem); width: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px;
  outline: 1px solid rgba(29,29,31,.08); outline-offset: -1px; background: #f5f5f7; cursor: zoom-in;
}
.reel-type {
  width: max-content; margin-left: -20vw; white-space: nowrap; will-change: transform;
  font-family: Archivo, "Inter Tight", system-ui, sans-serif; font-variation-settings: "wght" 800, "wdth" 112;
  font-size: clamp(3rem, 9vw, 8.5rem); line-height: 1; letter-spacing: -0.03em; color: #1d1d1f;
  -webkit-text-stroke: 1.5px #1d1d1f; /* the outline the script fills in */
}

/* dots that gather into the wordmark (assets/v2-motion.js, effect 7) */
.dot-mark { display: block; width: 100%; height: clamp(4.5rem, 10vw, 8rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.dot-mark canvas { display: block; width: 100%; height: 100%; }

/* slow zoom on click: `scale` only, so it stacks with the drift's transform and the rise's translate */
.v2m .work-item, .v2m .svc-card, .v2m .plan2, .v2m .gap-lines > li, .v2m .steps > li, .v2m .lead, .v2m .v2-reel img {
  transition-property: opacity, translate, transform, scale;
  transition-duration: 700ms, 900ms, 120ms, 900ms;
  transition-timing-function: var(--ease-out), var(--ease-out), linear, cubic-bezier(0.22, 1, 0.36, 1);
}
.v2m .zoom-in { scale: 1.045; transition-duration: 700ms, 900ms, 120ms, 1400ms; position: relative; z-index: 2; }
.v2m .v2-reel img.zoom-in { scale: 1.12; cursor: zoom-out; }

/* dot trail canvas: above the page, never takes a click */
.dot-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 45; }

/* ---------- industries (2026-11-25): services-v2 #industries + footer links on every v2 page ---------- */
.site-foot nav { flex-wrap: wrap; }
.ind-grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.ind-card {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  background: var(--grey); border-radius: 24px; padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.25rem) clamp(1.5rem, 3vw, 2rem);
  transition: transform .4s var(--ease-out, ease-out);
}
.s-grey .ind-card { background: var(--white); }
.ind-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; display: block; }
.ind-card h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 1.25rem 0 .5rem; }
.ind-card p { color: var(--on-light-soft, #6e6e73); margin: 0 0 1rem; }
.ind-go { margin-top: auto; color: var(--blue, #0066cc); font-weight: 600; }
.ind-card:focus-visible { outline: 2px solid var(--blue, #0071e3); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .ind-card:hover { transform: translateY(-4px); } }
.ind-more { margin-top: clamp(2rem, 4vw, 3rem); max-width: 44rem; color: var(--on-light-soft, #6e6e73); }
.ind-more strong { color: var(--on-light, #1d1d1f); font-weight: 600; }
@media (max-width: 760px) { .ind-grid { grid-template-columns: 1fr; max-width: 24rem; } }
@media (prefers-reduced-motion: reduce) { .ind-card { transition: none; } }
@media (max-width: 600px) {
  .site-foot .wrap { flex-wrap: wrap; padding-block: 1.25rem; }
  .site-foot nav { flex-basis: 100%; margin-left: -0.6rem; }
}

/* ---------- client review 2026-11-25: nothing waits for the scroll ----------
   The industry pages' phone no longer pins mid-scroll (it read as frozen); it sits beside the three steps,
   which are all fully readable at once. The phone plays each step's clip in turn on its own
   (assets/industry.js); the step it is showing carries the brand dot. A tap on a step shows its clip. */
.pinned-grid { align-items: center; }
.phone--stage { position: relative; top: auto; margin-inline: auto; }
.pinned-steps { gap: clamp(2rem, 4vw, 3rem); }
.step { min-height: 0; cursor: pointer; }
.js .step, .js .step.is-on { opacity: 1; }
/* the dot hangs in the margin, so titles stay aligned whether or not it shows */
.step-title { position: relative; }
.step-title::before {
  content: ""; position: absolute; left: -0.55em; top: 0.42em; width: 0.3em; height: 0.3em; border-radius: 50%;
  background: var(--blue, #0071e3); opacity: 0; transition: opacity 300ms;
}
/* the hero's centre hairline ran through the headline once the words sat whole at the top */
.rb-cross { display: none; }
.step.is-on .step-title::before { opacity: 1; }
@media (max-width: 47.99rem) {
  .pinned-stage { position: relative; top: auto; padding-block: 0 1rem; }
  .phone--stage { width: min(12rem, 55vw); }
}

/* ---------- credit pricing (user 2026-11-25): three kinds of video side by side ---------- */
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mix { margin-top: clamp(1.5rem, 3vw, 2.25rem); text-align: center; color: var(--on-light-soft, #6e6e73); text-wrap: balance; }
.mix b { color: var(--on-light, #1d1d1f); font-weight: 600; }
.compare--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare--3 .compare-col { padding-inline: clamp(0.75rem, 2.5vw, 2.5rem); }
.compare--3 .compare-line { margin-bottom: 2rem; }
@media (max-width: 63.99rem) { .plans--3 { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; } }
@media (max-width: 47.99rem) {
  .compare--3 { grid-template-columns: minmax(0, 1fr); }
  .compare--3 .compare-col + .compare-col { border-left: 0; border-top: 1px solid var(--rule-light); margin-top: 2rem; }
}
.plans--3 .price-big { font-size: clamp(2.75rem, 4.6vw, 4.25rem); white-space: nowrap; }

/* ---------- home: problems we fix (user 2026-11-25) ---------- */
.fix-list { list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.fix-list .svc-card { display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.fix-list .svc-card h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.fix-list p { color: var(--on-light-soft, #6e6e73); }
.fix-list .text-link { margin-top: auto; padding-top: 0.5rem; }
#help .sec-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* route 3 wordmark (PEO-5) */
/* people + linked pair + dots. Sizes from the brand kit: x-height 0.526em, dot 0.52 x-height,
   dot centres 0.72 x-height apart, link 0.13 x-height, gap 0.2 x-height. The leading dot is retired. */
.wordmark:has(.wm)::before { display: none; }
.wm { --wm-dot: #0071e3; white-space: nowrap;
  font-family: 'Archivo', system-ui, sans-serif; font-stretch: 112%; font-weight: 800; letter-spacing: -0.03em; }
html[data-theme="dark"] .wm { --wm-dot: #2997ff; }
.wm-pair {
  display: inline-block; position: relative; vertical-align: 0.126em;
  width: 0.652em; height: 0.274em; margin: 0 0.105em 0 0.135em;
  background: linear-gradient(currentColor, currentColor) center / 100% 0.068em no-repeat;
}
.wm-pair::before, .wm-pair::after {
  content: ""; position: absolute; top: 0; width: 0.274em; height: 0.274em; border-radius: 50%;
}
.wm-pair::before { left: 0; background: currentColor; }
.wm-pair::after { right: 0; background: var(--wm-dot); }
