/* /assets/css/mobile.css — the phone layer of presive.co (b127).
 *
 * Linked from the motion-includes partial with media="(max-width: 767px)": a wider screen downloads the file
 * and applies none of it, so the desktop cannot change. It loads after each page's own <style>, site.css and
 * motion.css; on the home page frames.css still comes later, so every rule that competes with an existing one
 * is written "html body …" and wins on weight, not on order.
 *
 * Sizes are declared here (the phone type scale and the spacing scale). Colours, radii, easings and
 * durations are tokens.css, used as they are or derived with calc(); there is no colour literal in this file.
 * Behaviour: /assets/js/mobile.js. How to build on it: overhaul/b127/MOBILE-SYSTEM.md, sections 1.8 and 1.9.
 */

/* ============================================================ 1. scales */
:root {
  /* type — sizes only; the family and the weights are the site's */
  --m-h1: clamp(
    45px,
    12.05vw,
    47px
  ); /* page title: 47 @390, 45 @360, line-height 1.02 */
  --m-h2: clamp(
    32px,
    8.72vw,
    34px
  ); /* section heading: 34 @390, 32 @360, line-height 1.08 */
  /* the steps (b127 r2): 47 > 40 > 34 > 28 > 22, one dominant line on every screen. A page's title is --m-h1, or
     --m-h1-inner where it runs to three lines or shares the first screen with a demo; a section heading is
     --m-h2; a heading that shares a screen with the title, or sits inside a card, is --m-h2-low. A section takes
     the lower step by redefining the token on itself:  html body #work { --m-h2: var(--m-h2-low) }  */
  --m-h1-inner: clamp(
    38px,
    10.26vw,
    40px
  ); /* 40 @390, 38 @360, line-height 1.04 */
  --m-h2-low: clamp(26px, 7.18vw, 28px); /* 28 @390, 26 @360, line-height 1.1 */
  --m-h3: 22px; /* card title, line-height 1.2, weight 600 */
  --m-lead: 18px; /* first paragraph of a section, line-height 1.45 */
  --m-body: 17px; /* line-height 1.5 */
  --m-aux: 14.5px; /* captions and notes, line-height 1.45 */
  --m-label: var(--fs-micro); /* small caps label: 12.5 px, never under 12 */
  --m-menu: 28px;
  --m-menu-2: 20px;
  /* space — nothing off this scale */
  --m-1: 4px;
  --m-2: 8px;
  --m-3: 12px;
  --m-4: 16px;
  --m-5: 24px;
  --m-6: 32px;
  --m-7: 48px;
  --m-8: 64px;
  --m-9: 88px;
  --m-sec: var(--m-8); /* a section: top and bottom */
  --m-sec-tight: var(--m-7); /* a section that continues the one before */
  --m-sec-break: var(--m-9); /* a chapter break */
  --m-tap: 44px; /* the smallest touch target */
  --m-btn: 56px; /* the height of a pill and of a menu row */
  --m-peek: 44px; /* a rail card is the column minus this, so the next card shows */
  /* time — tokens.css, derived where the system asks for a value between two tokens */
  --m-t-acc: calc(var(--t-press) * 1.6); /* 240 ms: an accordion row */
  --m-t-fade: calc(
    var(--t-micro) * 2
  ); /* 500 ms: the press light going out, as the footer lamp does */
  --m-step: calc(var(--stagger-fine) / 3); /* 20 ms between the menu's rows */
  /* the site's five-square arrow, drawn in currentColor (for a 44 px disc) */
  --m-arrow:
    linear-gradient(currentColor, currentColor) calc(50% - 5.5px)
      calc(50% - 5.5px) / 3px 3px no-repeat,
    linear-gradient(currentColor, currentColor) calc(50% - 0.5px)
      calc(50% - 5.5px) / 3px 3px no-repeat,
    linear-gradient(currentColor, currentColor) calc(50% + 4.5px) 50% / 3px 3px
      no-repeat,
    linear-gradient(currentColor, currentColor) calc(50% - 0.5px)
      calc(50% + 5.5px) / 3px 3px no-repeat,
    linear-gradient(currentColor, currentColor) calc(50% - 5.5px)
      calc(50% + 5.5px) / 3px 3px no-repeat;
  /* the dark stage is the default ground; .m-light and the light stages below flip these four */
  --m-ink: var(--white);
  --m-dim: var(--muted-on-dark);
  --m-rule: var(--line-strong);
  --m-edge: var(--gray); /* the boundary of a control: 6:1 on the dark stage */

  /* the site's own tokens, on a phone: one bar height and a rhythm that does not depend on the window's height */
  --bar-h: 56px;
  --space-s: var(--m-5);
  --space-m: var(--m-7);
  --space-l: var(--m-8);
  --space-xl: var(--m-8);
  --section-y: var(--m-8);
}
.m-light,
[data-stage="light"],
.stage-light {
  --m-ink: var(--ink);
  --m-dim: var(--muted-on-light);
  --m-rule: var(--line-dark-strong);
  --m-edge: var(--muted-on-light);
}
[data-stage="dark"],
.stage-dark {
  --m-ink: var(--white);
  --m-dim: var(--muted-on-dark);
  --m-rule: var(--line-strong);
  --m-edge: var(--gray);
}
html.m-locked {
  overflow: hidden;
}
/* the page's reading-progress rule (z-index 120) would lie over an open menu or sheet (95 / 96) */
html.m-locked .progress {
  visibility: hidden;
}

/* ============================================================ 2. shared headings and labels */
html body .sec-head h2 {
  margin-top: var(--m-3);
  font-size: var(--m-h2);
  line-height: 1.08;
  letter-spacing: -0.024em;
}
html body .sec-head > p {
  margin-top: var(--m-4);
  font-size: var(--m-lead);
  line-height: 1.45;
}
html body .sec-head .label {
  line-height: 1.3;
}
/* one label colour on the dark stage (7.6:1); the light stages keep theirs through their own, heavier rules */
.label {
  color: var(--muted-on-dark);
}

/* headings break into lines of even length, no orphan word; weightless, so a page's own text-wrap wins */
:where(h1, h2, h3) {
  text-wrap: balance;
}

/* ============================================================ 3. buttons
   The main action of a section is one 56 px pill across the column. The quote wizard keeps its own row. */
html body .btn {
  min-height: var(--m-btn);
}
html body main .btn:not(.q-form .btn) {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}
html body .btn:active {
  background: var(--btn-light-hover);
}
html body .btn--dark:active {
  background: color-mix(in srgb, var(--ink) 86%, var(--white));
}
html body .btn:active .px-arrow {
  transform: translateX(4px);
}

/* the second action of a section: an underlined link with the arrow, 44 px to the touch */
.m-link {
  display: inline-flex;
  align-items: center;
  gap: var(--m-2);
  min-height: var(--m-tap);
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--m-edge);
}
.m-link::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.m-link:active {
  opacity: 0.6;
}

/* ============================================================ 4. top bar: 56 px, the safe area above it */
html body .topbar {
  height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
html body .topbar .wrap {
  gap: var(--m-3);
  padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}
html body .topbar .tb-logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--m-tap);
  padding-block: 0;
}
/* the pill is drawn 40 px tall and answers on 44 */
html body .topbar a.tb-cta {
  position: relative;
  min-height: 40px;
  padding: 0 var(--m-4);
  margin-right: 0;
}
html body .topbar a.tb-cta::after {
  content: "";
  position: absolute;
  /* from the padding box: 38 + 10 = 48. Two more than 44 on each side: while the bar slides out, a hit test
     cannot count the part above the screen, and 40 + 4 is still 44 on every frame */
  inset: -5px -1px;
}
/* the three bars sit on their own 7 px pitch (the box stretched them to 15), flush with the column's edge */
html body .topbar .tb-burger {
  align-content: center;
  margin-right: calc(-1 * var(--m-3));
}
/* out of the way on the way down, back on any move up: mobile.js sets .nav-hidden */
html body .topbar.ready:not(.nav-hidden) {
  transition-duration: var(--t-micro), var(--t-press), var(--t-fast), 0s;
}
html body .topbar.ready.nav-hidden,
html.js body .topbar.nav-hidden {
  transition-timing-function: var(--ease-out), linear;
}
/* over a picture (the home hero) the bar's ground is deep enough for its small type at every width */
html body .topbar::before {
  bottom: calc(-1 * var(--m-5));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-dark) 92%, transparent),
    color-mix(in srgb, var(--bg-dark) 76%, transparent) 46%,
    transparent
  );
}
html body .topbar a.tb-cta:active {
  background: currentColor;
}
html body .topbar.on-dark a.tb-cta:active .tb-cta-t {
  color: var(--bg-dark);
}
html body .topbar:not(.on-dark) a.tb-cta:active .tb-cta-t {
  color: var(--bg-light);
}

/* ============================================================ 5. overlays: the close button, the menu, the sheet */
.m-x {
  position: relative;
  flex: none;
  width: var(--m-tap);
  height: var(--m-tap);
  margin-right: calc(-1 * var(--m-3));
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: none;
  color: inherit;
  cursor: pointer;
}
.m-x::before,
.m-x::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 21px;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.m-x::after {
  transform: rotate(-45deg);
}
.m-x:active {
  opacity: 0.6;
}

.m-menu,
.m-sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg-dark);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  outline: 0;
}
.m-sheet {
  z-index: 96;
  display: flex;
  flex-direction: column;
}
.m-sheet.m-light {
  background: var(--bg-light);
  color: var(--ink);
}
.m-menu.is-open,
.m-sheet.is-open {
  opacity: 1;
  visibility: visible;
}
.m-menu {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.m-menu :is(a, button):focus-visible,
.m-sheet .m-x:focus-visible {
  outline: var(--focus-ring-dark);
  outline-offset: 3px;
}
.m-sheet.m-light .m-x:focus-visible {
  outline: var(--focus-ring);
}
/* motion: opacity and 8 px of travel, transitions (a second tap mid-way simply turns it round). The rows start
   20 ms apart and the last has landed inside 300 ms; closing is one 150 ms fade, the rows reset once it is over. */
html.pv-anim :is(.m-menu, .m-sheet) {
  transition:
    opacity var(--t-press) var(--ease),
    visibility 0s linear var(--t-press);
}
html.pv-anim :is(.m-menu, .m-sheet).is-open {
  transition:
    opacity var(--t-press) var(--ease-out),
    visibility 0s;
}
html.pv-anim .m-menu [data-m-i],
html.pv-anim .m-sheet-body {
  transition:
    opacity var(--t-press) var(--ease-out) calc(var(--i, 0) * var(--m-step)),
    transform var(--t-press) var(--ease-out) calc(var(--i, 0) * var(--m-step));
}
html.pv-anim .m-menu:not(.is-open) [data-m-i],
html.pv-anim .m-sheet:not(.is-open) .m-sheet-body {
  opacity: 0;
  transform: translateY(var(--m-2));
  transition:
    opacity 0s linear var(--t-press),
    transform 0s linear var(--t-press);
}

.m-menu-in {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: env(safe-area-inset-top, 0px)
    max(var(--pad-x), env(safe-area-inset-right, 0px))
    calc(var(--m-4) + env(safe-area-inset-bottom, 0px))
    max(var(--pad-x), env(safe-area-inset-left, 0px));
}
.m-menu-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bar-h);
}
.m-menu-logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--m-tap);
  color: var(--white);
}
.m-menu-logo svg {
  display: block;
  width: auto;
  height: 15px;
}
.m-menu-nav {
  display: flex;
  flex-direction: column;
  padding-top: var(--m-4);
}
/* "Services" names the list and is the only way to the services page: a row of its own across the column,
   48 px to the touch, in the page's ink, the site's arrow at its end where the rows under it carry their mark */
.m-menu-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-3);
  min-height: var(--m-7);
  font-size: var(--m-aux);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--white);
}
.m-menu-label::after {
  content: "";
  flex: none;
  width: 16px;
  height: 14px;
  background: var(--m-arrow);
}
.m-menu-label[aria-current]::after {
  width: 6px;
  height: 6px;
  background: currentColor;
}
.m-menu-svc,
.m-menu-more {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-menu-svc {
  counter-reset: m-svc;
  border-bottom: 1px solid var(--line);
}
.m-menu-svc li {
  counter-increment: m-svc;
  border-top: 1px solid var(--line);
}
.m-menu-svc a {
  display: grid;
  grid-template-columns: var(--m-6) minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--m-btn);
  color: var(--white);
}
.m-menu-svc a::before {
  content: counter(m-svc, decimal-leading-zero);
  font-size: var(--m-label);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  font-variant-numeric: tabular-nums;
  color: var(--muted-on-dark);
}
.m-menu-k {
  font-size: var(--m-menu);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.m-menu-more {
  margin-top: var(--m-3);
}
.m-menu-more a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--m-7);
  font-size: var(--m-menu-2);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
}
/* the page you are on: the site's dot, at the end of its row */
.m-menu :is(.m-menu-svc, .m-menu-more) a[aria-current]::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: currentColor;
}
.m-menu-label[aria-current] {
  color: var(--white);
}
.m-menu :is(.m-menu-svc, .m-menu-more, .m-menu-label) a:active,
.m-menu-label:active,
.m-menu-mail:active {
  opacity: 0.6;
}
.m-menu-foot {
  display: flex;
  flex-direction: column;
  gap: var(--m-1);
  margin-top: auto;
  padding-top: var(--m-5);
}
html body .m-menu-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: var(--m-btn);
}
.m-menu-mail {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--m-tap);
  font-size: var(--m-aux);
  color: var(--foot-link);
}
@media (max-height: 640px) {
  :root {
    --m-menu: 24px;
  }
  .m-menu-svc a {
    min-height: var(--m-7);
  }
  .m-menu-more a,
  .m-menu-label {
    min-height: var(--m-tap);
  }
}

.m-sheet-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-3);
  min-height: var(--bar-h);
  padding: env(safe-area-inset-top, 0px)
    max(var(--pad-x), env(safe-area-inset-right, 0px)) 0
    max(var(--pad-x), env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--m-rule);
}
.m-sheet-title {
  margin: 0;
  font-size: var(--m-body);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
/* a long status line as the title (m.sheet({ titleStyle: "label" })): the label style, lines of even length */
.m-sheet-title--label {
  padding-block: var(--m-2);
  font-size: var(--m-label);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--m-dim);
}
.m-sheet .m-x {
  margin-left: auto;
}
.m-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================================ 6. the rail (one carousel for the site)
   Any strip carrying data-m-rail, or handed to __presive.m.rail(), or one of the five the site already had.
   The layout below has no weight (:where), so a page's own card rules win; what follows it is the system's:
   snap, no scrollbar, the faded edge and the control row mobile.js puts after the strip. */
:where(.m-rail, [data-m-rail]) {
  display: flex;
  gap: var(--m-3);
  overflow-x: auto;
  overflow-y: hidden;
}
:where(.m-rail, [data-m-rail]) > :where(*) {
  flex: 0 0 var(--m-rail-w, calc(100% - var(--m-peek)));
  min-width: 0;
  scroll-snap-align: start;
}
.m-rail,
[data-m-rail] {
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.m-rail::-webkit-scrollbar,
[data-m-rail]::-webkit-scrollbar,
.m-chips::-webkit-scrollbar {
  display: none;
}
/* out to the screen's edges, the first card still on the column: for a strip that sits in a .wrap column */
.m-bleed,
[data-m-rail~="bleed"],
[data-m-chips~="bleed"] {
  margin-inline: calc(-1 * var(--pad-x));
  padding-inline: var(--pad-x);
  scroll-padding-inline: var(--pad-x);
}
/* an edge that cuts a card fades out, so the cut reads as "more this way", not as clipped. mobile.js writes
   the widths (0 where nothing is cut): the fade takes the outer half of what shows of the cut card, 44 px at
   most, so the card's near edge stays a card's edge. Without the script there is no mask at all */
.m-rail,
.m-chips {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent var(--m-fade-l0, 0px),
    var(--ink) var(--m-fade-l, 0px),
    var(--ink) calc(100% - var(--m-fade-r, 0px)),
    transparent calc(100% - var(--m-fade-r0, 0px))
  );
  mask-image: linear-gradient(
    90deg,
    transparent var(--m-fade-l0, 0px),
    var(--ink) var(--m-fade-l, 0px),
    var(--ink) calc(100% - var(--m-fade-r, 0px)),
    transparent calc(100% - var(--m-fade-r0, 0px))
  );
}
/* slides as wide as the strip (a gallery inside a sheet): no peek, no gap, nothing to fade */
.m-rail-full,
[data-m-rail~="full"] {
  --m-rail-w: 100%;
  gap: 0;
  -webkit-mask-image: none;
  mask-image: none;
}
/* a card that waits (under a third of it inside the strip; mobile.js marks it .m-aside) is a plain sliver
   (r3; r2 only halved it): one flat tone in the card's own shape, at --m-aside strength. contrast(0) takes
   every picture, dot, rule and control of the next card down to that one tone, so nothing of its content
   leaks in at the edge; the words go as well (on a card without a ground their shapes would stay). It comes
   forward as it comes in. The words stay in the document and for a reader. The step back is the card's own
   (a filter), so it travels with the card however a page moves it. --m-aside changes the strength,
   --m-aside-tone the tone (it follows the stage); a strip marked "keep" or "full" has no waiting cards */
:root {
  --m-aside-tone: 0.6;
}
:is(.m-light, [data-stage="light"], .stage-light) {
  --m-aside-tone: 1.5;
}
:is([data-stage="dark"], .stage-dark) {
  --m-aside-tone: 0.6;
}
html.m-on .m-rail > .m-aside {
  -webkit-text-fill-color: transparent;
  filter: contrast(0) brightness(var(--m-aside-tone))
    opacity(var(--m-aside, 0.5));
}
html.m-on .m-rail > .m-aside * {
  text-decoration-color: transparent;
}
/* the step back and forward is eased only once the strip is live (two frames after it is built): the first
   marking, which can land just after the first paint, is a single switch and not a movement on arrival */
:where(html.pv-anim .m-rail.m-rail-live > *) {
  transition: filter var(--t-micro) var(--ease-out);
}
/* the last card keeps the start line (r3): where one card fills the strip, mobile.js gives the strip the room
   after its last card that lets it scroll that far (.m-rail-room, --m-rail-room). A spacer, not padding:
   padding would narrow every card whose width is a percentage of the strip */
.m-rail.m-rail-room::after {
  content: "";
  flex: 0 0 var(--m-rail-room, 0px);
  width: var(--m-rail-room, 0px);
  height: 1px;
  pointer-events: none;
}
.m-rail:focus-visible {
  outline: var(--focus-w) solid var(--m-edge);
  outline-offset: -2px;
}
/* the control row's place is held before the script builds it, so nothing below a strip moves */
html.js
  :is(
    #services .frame-grid,
    .ab-work-list,
    .media-strip,
    .ec-strip,
    .bi-strip,
    [data-m-rail]
  ):not(.m-rail) {
  margin-bottom: calc(var(--m-tap) + var(--m-3));
}
.m-rail-ctl {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--m-3);
  min-height: var(--m-tap);
  margin-top: var(--m-3);
}
.m-rail-seg {
  flex: 1 1 auto;
  display: flex;
  gap: var(--m-1);
  min-width: 0;
}
.m-rail-seg i {
  flex: 1 1 0;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--m-rule);
  transition: background-color var(--t-micro) var(--ease);
}
.m-rail-seg i.is-on {
  background: var(--m-ink);
}
.m-rail-count {
  margin-left: var(--m-1);
  font-size: var(--m-label);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--m-dim);
}
.m-rail-count::before {
  content: attr(data-n) " / " attr(data-of);
}
.m-rail-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--m-tap);
  height: var(--m-tap);
  padding: 0;
  border: 1px solid var(--m-edge);
  border-radius: var(--radius-pill);
  background: none;
  color: var(--m-ink);
  cursor: pointer;
  transition:
    opacity var(--t-press) var(--ease),
    transform var(--t-press) var(--ease-out);
}
.m-rail-btn::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.m-rail-prev::before {
  transform: translateX(2px) rotate(-135deg);
}
.m-rail-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
}
.m-rail-btn:not([aria-disabled="true"]):active {
  transform: scale(0.94);
  border-color: var(--m-ink);
}
.m-rail-btn:focus-visible {
  outline: var(--focus-w) solid var(--m-ink);
  outline-offset: 3px;
}
/* the two strips that came with arrows of their own: theirs step aside on phones, the control row replaces
   them and their edge overlays (the mask above does that job now) */
html body :is(.bi-striprow, .ec-striprow) > :is(.bi-arrow, .ec-arrow) {
  display: none;
}
html body .bi-striprow::after,
html body .ec-strip-wrap::after {
  display: none;
}
html body :is(.bi-striprow, .ec-striprow) {
  row-gap: 0;
}

/* ============================================================ 7. a card that is a link
   Press: the card gives 1.5 % and a light comes up where the finger landed (mobile.js writes --m-x / --m-y),
   in 150 ms; on release it goes out in 500. The short delay keeps a scroll that starts on a card from flashing it. */
html
  body
  :is(
    .m-card,
    [data-m-press],
    a.work-link,
    a.ab-work-link,
    a.cs-nextcard,
    a.svc-row
  ) {
  position: relative;
}
html
  body
  :is(
    .m-card,
    [data-m-press],
    a.work-link,
    a.ab-work-link,
    a.cs-nextcard,
    a.svc-row
  )::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    circle 170px at var(--m-x, 50%) var(--m-y, 40%),
    color-mix(in srgb, var(--white) 17%, transparent),
    transparent 72%
  );
  mix-blend-mode: screen;
  transition: opacity var(--m-t-fade) var(--ease);
}
:is(.m-light, [data-stage="light"], .stage-light)
  :is(
    .m-card,
    [data-m-press],
    a.work-link,
    a.ab-work-link,
    a.cs-nextcard,
    a.svc-row
  )::after {
  background: radial-gradient(
    circle 170px at var(--m-x, 50%) var(--m-y, 40%),
    color-mix(in srgb, var(--ink) 10%, transparent),
    transparent 72%
  );
  mix-blend-mode: multiply;
}
html
  body
  :is(
    .m-card,
    [data-m-press],
    a.work-link,
    a.ab-work-link,
    a.cs-nextcard,
    a.svc-row
  ):active::after {
  opacity: 1;
  transition-duration: var(--t-press);
  transition-delay: var(--stagger-fine);
}
html.pv-anim
  body
  :is(
    .m-card,
    [data-m-press],
    a.work-link,
    a.ab-work-link,
    a.cs-nextcard,
    a.svc-row
  ) {
  transition:
    transform var(--t-press) var(--ease-out),
    opacity var(--t-press) var(--ease-out);
}
html.pv-anim
  body
  :is(
    .m-card,
    [data-m-press],
    a.work-link,
    a.ab-work-link,
    a.cs-nextcard,
    a.svc-row
  ):active {
  transform: scale(0.985);
  transition-delay: var(--stagger-fine);
}
/* the row dimmed under the finger; it lights up instead */
html body .press:active {
  opacity: 1;
}
/* what a pointer got on hover, a finger gets while it presses */
html.pv-anim body a.work-link:active .work-frame[data-revealed="true"] img {
  transform: scale(1.035);
  transition-duration: var(--t-fast);
}
html.pv-anim body a.ab-work-link:active .ab-work-img img {
  transform: scale(1.025);
  transition-duration: var(--t-fast);
}
html.pv-anim body a.cs-nextcard:active .cs-nextcard-media img {
  transform: scale(1.035);
  transition-duration: var(--t-fast);
}

/* the way in is visible: the site's arrow in a 44 px disc beside the title. .m-go on any title element;
   the two rails of cards the system builds get it without being asked */
.m-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-3);
}
.m-go::after,
html body .frame-grid .work-meta::after,
html body a.ab-work-link::before {
  content: "";
  flex: none;
  width: var(--m-tap);
  height: var(--m-tap);
  border: 1px solid var(--m-edge);
  border-radius: 50%;
  background: var(--m-arrow);
}
/* the same way in on a compact row: the arrow alone, no disc */
.m-go.m-go-s::after {
  width: 16px;
  height: 14px;
  border: 0;
  border-radius: 0;
}
html body .frame-grid .work-meta {
  position: relative;
}
html body .frame-grid .work-meta > :is(.wm-n, h3) {
  padding-right: calc(var(--m-tap) + var(--m-3));
}
html body .frame-grid .work-meta::after {
  position: absolute;
  top: 0;
  right: 0;
}
html body a.ab-work-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--m-tap);
  column-gap: var(--m-3);
  align-items: center;
}
html body a.ab-work-link > .ab-work-img {
  grid-column: 1 / -1;
}
html body a.ab-work-link > :is(.ab-work-name, .ab-work-meta) {
  grid-column: 1;
}
html body a.ab-work-link::before {
  grid-column: 2;
  grid-row: 2 / span 2;
  margin-top: var(--m-3);
}

/* ============================================================ 8. chips: a row of 44 px pills that scrolls, never wraps */
.m-chips,
[data-m-chips] {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--m-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
:is(.m-chips, [data-m-chips]) > * {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--m-tap);
  padding: 0 var(--m-4);
  border: 1px solid var(--m-edge);
  border-radius: var(--radius-pill);
  background: none;
  color: var(--m-ink);
  font-size: var(--m-label);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color var(--t-press) var(--ease),
    color var(--t-press) var(--ease);
}
:is(.m-chips, [data-m-chips])
  > :is([aria-selected="true"], [aria-pressed="true"], [aria-current], .is-on) {
  border-color: transparent;
  background: var(--white);
  color: var(--ink);
}
:is(.m-light, [data-stage="light"], .stage-light)
  :is(.m-chips, [data-m-chips])
  > :is([aria-selected="true"], [aria-pressed="true"], [aria-current], .is-on) {
  background: var(--ink);
  color: var(--white);
}
:is(.m-chips, [data-m-chips]) > :active {
  opacity: 0.6;
}

/* ============================================================ 9. accordion (mobile.js: __presive.m.accordion)
   A row of at least 56 px, a plus in a 44 px field at its end; the panel opens through grid-template-rows. */
.m-acc-item {
  border-top: 1px solid var(--m-rule);
}
.m-acc > .m-acc-item:last-child,
.m-acc-item.m-acc-last {
  border-bottom: 1px solid var(--m-rule);
}
.m-acc-head {
  position: relative;
  min-height: var(--m-btn);
  padding-right: calc(var(--m-tap) + var(--m-3));
}
.m-acc-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--m-ink);
  cursor: pointer;
}
.m-acc-btn::before,
.m-acc-btn::after {
  content: "";
  position: absolute;
  right: 15px;
  top: calc(var(--m-btn) / 2 - 1px);
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: transform var(--m-t-acc) var(--ease-out);
}
.m-acc-btn::after {
  transform: rotate(90deg);
}
.m-acc-item[data-open] .m-acc-btn::after {
  transform: rotate(0deg);
}
.m-acc-btn:focus-visible {
  outline: var(--focus-w) solid var(--m-ink);
  outline-offset: -2px;
}
.m-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
}
html.pv-anim .m-acc-panel {
  transition: grid-template-rows var(--m-t-acc) var(--ease-out);
}
.m-acc-item[data-open] .m-acc-panel {
  grid-template-rows: 1fr;
}
.m-acc-in {
  min-height: 0;
  overflow: hidden;
}

/* ============================================================ 10. steps: a line down the left that draws once */
.m-steps,
[data-m-steps] {
  position: relative;
  display: grid;
  gap: var(--m-6);
  margin: 0;
  padding: 0 0 0 var(--m-6);
  list-style: none;
}
:is(.m-steps, [data-m-steps])::before {
  content: "";
  position: absolute;
  left: 3px;
  top: var(--m-2);
  bottom: var(--m-2);
  width: 1px;
  background: var(--m-rule);
  transform-origin: 50% 0;
}
:is(.m-steps, [data-m-steps]) > * {
  position: relative;
}
:is(.m-steps, [data-m-steps]) > *::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--m-6));
  top: var(--m-2);
  width: 7px;
  height: 7px;
  background: var(--m-ink);
}
html.m-on.pv-anim :is(.m-steps, [data-m-steps])::before {
  transition: transform var(--t-slow) var(--ease-out);
}
html.m-on.pv-anim :is(.m-steps, [data-m-steps]):not(.is-in)::before {
  transform: scaleY(0);
}

/* ============================================================ 11. the closing card: one, the same on every page */
html body .ab-cta {
  gap: var(--m-5);
  margin: var(--m-8) 0 0;
  padding: var(--m-6) var(--m-5);
  border-radius: var(--radius-card);
}
html body .cs-cta .ab-cta {
  margin-top: 0;
}
/* a card's heading, not a section's: one step under --m-h2, so each of its two sentences keeps to one line */
html body .ab-cta-head h2 {
  font-size: var(--m-h2-low);
  line-height: 1.1;
}
html body .ab-cta-act {
  gap: var(--m-3);
}
html body .ab-cta-note {
  font-size: var(--m-aux);
  line-height: 1.45;
}
/* the address under the pill, on its own line, 44 px to the touch (it was 19) */
html body .ab-cta-note a {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: var(--m-tap);
}
/* the card ends the page: its section adds nothing under it, the footer's own 48 px is the gap */
html body :is(.ec-cta, .bi-cta, .ai-cta-wrap, .cs-cta) {
  padding-bottom: 0;
}
/* the home page's closing step has the same address line */
html body .close-note a {
  display: inline-block;
  padding-block: var(--m-3);
  margin-block: calc(-1 * var(--m-3));
}

/* ============================================================ 12. footer: under 0.85 of a screen, the wordmark stays
   mail and studio time on one row, then the two link lists with 44 px rows, then the studio and the company,
   then PRESIVE across the column, then the legal row. */
html body footer.site-foot {
  padding-top: var(--m-7);
  contain-intrinsic-size: auto 612px; /* its height before it is first drawn: 660 with the padding */
}
html body footer.site-foot .foot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--m-3);
  row-gap: var(--m-4);
  padding-bottom: var(--m-4);
}
html body footer.site-foot .foot-col {
  gap: 0;
}
html body footer.site-foot .foot-cat {
  margin-bottom: var(--m-1);
}
html body footer.site-foot .foot-col a {
  display: inline-flex;
  align-items: center;
  min-width: var(--m-tap);
  min-height: var(--m-tap);
}
html body footer.site-foot .foot-grid > .foot-col:last-child {
  order: -1;
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--m-4);
}
html body footer.site-foot .foot-grid > .foot-col:last-child .foot-cat {
  flex: 0 0 100%;
}
html body footer.site-foot .foot-now {
  margin: 0;
  white-space: nowrap;
}
html body footer.site-foot .foot-grid > .foot-about {
  order: 3;
  grid-column: 1 / -1;
}
html body footer.site-foot .foot-about p {
  max-width: none;
  margin-top: var(--m-1);
  font-size: var(--m-aux);
  line-height: 1.5;
}
html body footer.site-foot .foot-about .foot-reg {
  margin-top: var(--m-2);
}
html body footer.site-foot .watermark {
  margin-top: 0;
  margin-bottom: var(--m-4);
  touch-action: pan-y; /* a finger resting on the letters moves the light; a vertical drag still scrolls */
}
html body footer.site-foot .foot-bar {
  justify-content: space-between;
  gap: 0 var(--m-4);
  padding: var(--m-1) 0 calc(var(--m-1) + env(safe-area-inset-bottom, 0px));
}
html body footer.site-foot .foot-bar :is(a, .foot-consent) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--m-tap);
  min-height: var(--m-tap);
}
html body footer.site-foot .foot-bar .foot-copy {
  display: inline-flex;
  align-items: center;
  min-height: var(--m-tap);
}
html body footer.site-foot :is(.foot-col a, .foot-bar a, .foot-consent):active {
  color: var(--white);
}
html.pv-anim body footer.site-foot .foot-col a:active::after {
  transform: scaleX(1);
}

/* ============================================================ 13. cookie card: compact, 44 px answers, on the edge that is free
   The card is the site's (partial cookie-banner, cookies.js): its words, its choices and when it shows are not
   touched. A phone gets its measures and its place. It stands at the foot; mobile.js moves it under the top
   bar (html.m-consent-top) when the foot would put it on a primary action that is on screen (a button, a form
   field) and the top would not, so it never rests on one while an edge is free (r3). The placement rules are
   keyed on html.m-on: without mobile.js the card stands where cookies.js and site.css put it. */
html body .pv-consent__in {
  gap: var(--m-2);
  padding: var(--m-3) var(--m-3) var(--m-3) var(--m-4);
}
html body .pv-consent__copy {
  padding-right: var(--m-tap);
}
html body .pv-consent__txt {
  line-height: 1.4;
}
html body .pv-consent__btn {
  min-height: var(--m-tap);
}
/* the close: 44 px in the card's corner, a cross large enough to be seen */
html body .pv-consent__x {
  top: 0;
  right: 0;
  width: var(--m-tap);
  height: var(--m-tap);
  font-size: calc(var(--m-5) + var(--m-1));
  color: var(--white);
}
html body .pv-consent__x:active {
  opacity: 0.6;
}
/* "What is stored" was 17 px to the touch; the padding takes it to 44 and moves no line */
html body .pv-consent__txt a {
  display: inline-block;
  padding-block: 14px;
  margin-block: -14px;
}
html body .pv-consent__btn:active {
  background: color-mix(in srgb, var(--white) 14%, transparent);
}
html body .pv-consent__btn--primary:active {
  background: var(--btn-light-hover);
}
html.m-on body .pv-consent,
html.m-on.pv-consent-top body .pv-consent {
  top: auto;
  bottom: max(var(--pv-gutter), env(safe-area-inset-bottom, 0px));
}
html.m-on.m-consent-top body .pv-consent,
html.m-on.m-consent-top.pv-consent-top body .pv-consent {
  top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + var(--m-2));
  bottom: auto;
}
@media (prefers-reduced-motion: no-preference) {
  html.m-on.pv-consent-top:not(.m-consent-top) body .pv-consent:not(.is-open) {
    transform: translateY(var(--m-4));
  }
  html.m-on.m-consent-top body .pv-consent:not(.is-open) {
    transform: translateY(calc(-1 * var(--m-4)));
  }
}
/* changing edge: out, across, in. The card never slides over the page */
html.m-on body .pv-consent.m-consent-swap {
  opacity: 0;
  transition-duration: var(--t-press);
}

/* ============================================================ 14. the rest of the shared touch states */
/* the case tour's play disc was dimmed until a pointer hovered the frame; on a phone it is the only control */
html body .sbp-disc {
  opacity: 1;
  border-color: var(--white);
}
html body .sbp-disc:active {
  transform: scale(0.94);
}
/* a finger leaves :hover behind on whatever it last touched: the bar's pill stayed filled, a button stayed lifted */
@media (hover: none) {
  html body .topbar a.tb-cta:hover:not(:active) {
    background: none;
  }
  html body .topbar a.tb-cta:hover:not(:active) .tb-cta-t {
    color: inherit;
  }
  html body .btn:hover:not(:active) {
    transform: none;
  }
  html body .btn:hover:not(:active)::after {
    opacity: 0;
  }
  html body footer.site-foot .foot-col a:hover:not(:active) {
    transform: none;
  }
}

/* motion off (no html.pv-anim): the states still change, nothing travels and nothing fades */
html:not(.pv-anim) :is(.m-rail-seg i, .m-rail-btn, .m-acc-btn, .m-x),
html:not(.pv-anim) :is(.m-chips, [data-m-chips]) > *,
html:not(.pv-anim) .m-acc-btn::before,
html:not(.pv-anim) .m-acc-btn::after,
html:not(.pv-anim)
  body
  :is(
    .m-card,
    [data-m-press],
    a.work-link,
    a.ab-work-link,
    a.cs-nextcard,
    a.svc-row
  )::after {
  transition: none;
}

/* ============================================================ 15. a phone on its side (short and still under 768 wide) */
@media (max-height: 500px) and (orientation: landscape) {
  html body .pv-consent__in {
    flex-wrap: nowrap;
  }
  html body .pv-consent__copy {
    flex: 1 1 auto;
  }
  html body .pv-consent__act {
    flex: 0 0 auto;
  }
}

/* ============================================================ 16. arrival: the top of a page is solid in its first frame
   (r3) The first screen is what a visitor reads first, and on a phone it used to assemble itself for most of
   a second: the bar's pill, the label, the heading, the intro and the first block each faded up on a delay.
   Here they are there at 0.0 s. Whatever is below the first screen keeps its reveal, top to bottom. The
   desktop is not touched: this file is the phone's. A page that wants an opening of its own on one of these
   elements writes it with more weight:  html.pv-anim:root body <selector> { animation: … }  */
/* the bar's pill: site.css holds it at .01 until the font gate, then each page runs navIn on a delay */
html body .topbar.ready a.tb-cta {
  animation: none !important;
  opacity: 1 !important;
}
/* the page head: site.css runs pv-head-up / pv-head-h1 on the children of these eight heads */
html.pv-anim
  body
  :is(
    .svc-page-head,
    .ec-hero-in,
    .ai-hero-head,
    .ab-hero > .wrap,
    .quote-intro-block,
    .priv-head,
    .cs-head > .wrap,
    .bi-hero-copy
  )
  > :not(.m-late) {
  animation: none;
}
/* the first screen's own blocks that rode the head's timeline */
html.pv-anim body #tlStage,
html.pv-anim body .ai-hero .media-strip,
html.pv-anim body #svcRows > .svc-rows-vline + .svc-row {
  animation: none;
}
/* the quote card is the first screen of /contact: it does not wait for the reveal observer */
html.js body .quote-card-wrap.rv:not(.in) {
  opacity: 1;
  transform: none;
}
/* the 404's one block */
html body main > .inner {
  animation: none;
}

/* ============================================================ 17. the plate: one frame for every picture of work
   (r3) .m-plate is a fixed-ratio, hairline-framed plate for a picture of a website or of work. The picture
   sits inside a narrow mat, so a captured page reads as a picture of a site and never as this page's own
   buttons, menus or forms. The whole plate is ONE tap target: a link, a button, or any element mobile.js lays
   one button over (.m-plate-hit); nothing drawn inside it takes a tap. Optional: a label strip above the
   picture (.m-plate-tag) and ONE action row of 48 px across its foot (.m-plate-act).
     ratio      .m-plate--1x1 · --4x5 (default) · --3x4 · --5x4 · --3x2 · --16x10 · --9x16, or --m-plate-ratio
     no mat     .m-plate--flush (a photograph: the picture runs to the frame)
     crop       --m-plate-pos (object-position of the picture; a capture is cut from its top by default) */
.m-plate {
  --m-plate-ratio: 4 / 5;
  --m-plate-mat: var(--m-2);
  --m-plate-bg: var(--panel);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: var(--m-plate-mat);
  border: 1px solid var(--m-rule);
  border-radius: var(--radius-card);
  background: var(--m-plate-bg);
  color: var(--m-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
:is(.m-light, [data-stage="light"], .stage-light) .m-plate {
  --m-plate-bg: color-mix(in srgb, var(--ink) 5%, transparent);
}
:is([data-stage="dark"], .stage-dark) .m-plate {
  --m-plate-bg: var(--panel);
}
:is(a, button).m-plate {
  width: 100%;
  cursor: pointer;
  appearance: none;
}
.m-plate--1x1 {
  --m-plate-ratio: 1 / 1;
}
.m-plate--4x5 {
  --m-plate-ratio: 4 / 5;
}
.m-plate--3x4 {
  --m-plate-ratio: 3 / 4;
}
.m-plate--5x4 {
  --m-plate-ratio: 5 / 4;
}
.m-plate--3x2 {
  --m-plate-ratio: 3 / 2;
}
.m-plate--16x10 {
  --m-plate-ratio: 16 / 10;
}
.m-plate--9x16 {
  --m-plate-ratio: 9 / 16;
}
.m-plate--flush {
  --m-plate-mat: 0px;
  overflow: hidden;
}
.m-plate-pic {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: var(--m-plate-ratio);
  overflow: hidden;
  border-radius: calc(var(--radius-card) - var(--m-plate-mat) - 1px);
  background: var(--bg-dark);
}
.m-plate--flush .m-plate-pic {
  border-radius: 0;
}
.m-plate-pic > :is(img, video, canvas, iframe, picture),
.m-plate-pic > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.m-plate-pic :is(img, video) {
  object-fit: cover;
  object-position: var(--m-plate-pos, 50% 0);
}
/* the label strip: what the picture is, in the site's label style */
.m-plate-tag {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-3);
  box-sizing: border-box;
  min-height: var(--m-6);
  padding: 0 var(--m-2) var(--m-1);
  font-size: var(--m-label);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--m-dim);
}
.m-plate--flush .m-plate-tag {
  padding: var(--m-2) var(--m-4);
}
/* the one action row: the width of the plate, 48 px, the site's arrow at its end. It is a sign, not a second
   target: the tap belongs to the plate */
.m-plate-act {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m-3);
  box-sizing: border-box;
  min-height: var(--m-7);
  margin-bottom: calc(-1 * var(--m-plate-mat));
  padding: 0 var(--m-2);
  font-size: var(--m-body);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--m-ink);
}
.m-plate--flush .m-plate-act {
  margin-bottom: 0;
  padding: 0 var(--m-4);
  border-top: 1px solid var(--m-rule);
}
.m-plate-act::after {
  content: "";
  flex: none;
  width: 16px;
  height: 14px;
  background: var(--m-arrow);
}
/* one target. With the script running, nothing inside the plate takes a tap; without it a plate that is not
   a link keeps whatever it holds live, as before */
:is(a, button).m-plate > *,
html.m-on .m-plate > :not(.m-plate-hit) {
  pointer-events: none;
}
.m-plate-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.m-plate-hit:focus-visible,
:is(a, button).m-plate:focus-visible {
  outline: var(--focus-w) solid var(--m-ink);
  outline-offset: 3px;
}
/* press: the plate gives 1.5 % and its hairline comes up to ink */
.m-plate:is(:active, :has(> .m-plate-hit:active)) {
  border-color: var(--m-ink);
  transform: scale(0.985);
}
html.pv-anim .m-plate {
  transition:
    transform var(--t-press) var(--ease-out),
    border-color var(--t-press) var(--ease);
}

/* ============================================================ 18. the viewer: a picture of work at reading size
   (r3) __presive.m.viewer(): the shared sheet with the shared rail inside, slides as wide as the screen. A
   slide shows its picture at full width, from the top, and scrolls on its own when the capture is taller than
   the stage: the picture is never shrunk to fit and never floats in a black field. The layout is the same on
   every slide: top row (title, close), the stage, then a caption block as tall as the longest caption, then
   the rail's control row (segments, counter, previous / next) above the safe area. */
.m-sheet.m-view .m-sheet-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.m-view-strip {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.m-view-strip::-webkit-scrollbar {
  display: none;
}
.m-view-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  -webkit-overflow-scrolling: touch;
}
.m-view-slide > :is(picture, img, video),
.m-view-slide > picture > img {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
}
/* a capture taller than the stage starts at its top and scrolls; one shorter than the stage stands on its
   caption at the foot of the stage (the auto margin is nothing once the picture overflows) */
.m-view-slide > :first-child {
  margin-top: auto;
}
/* photographs (viewer({ fit: "cover" })): each picture fills the stage and is cut to it; nothing scrolls */
.m-view-cover .m-view-slide {
  overflow: hidden;
}
.m-view-cover .m-view-slide > :is(picture, img, video),
.m-view-cover .m-view-slide > picture > img {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.m-view-caps {
  order: 2;
  flex: none;
  display: grid;
  padding: var(--m-3) max(var(--pad-x), env(safe-area-inset-right, 0px)) 0
    max(var(--pad-x), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--m-rule);
}
html body .m-view-caps > * {
  grid-area: 1 / 1;
  margin: 0;
  padding: 0;
  font-size: var(--m-aux);
  line-height: 1.45;
  color: var(--m-dim);
  visibility: hidden;
}
html body .m-view-caps > .is-on {
  visibility: visible;
}
html body .m-view-caps :is(b, strong) {
  font-weight: 600;
  color: var(--m-ink);
}
.m-sheet.m-view .m-rail-ctl {
  order: 3;
  flex: none;
  margin: 0;
  padding: var(--m-2) max(var(--pad-x), env(safe-area-inset-right, 0px))
    calc(var(--m-3) + env(safe-area-inset-bottom, 0px))
    max(var(--pad-x), env(safe-area-inset-left, 0px));
}
.m-sheet.m-view .m-view-strip:focus-visible {
  outline-offset: -4px;
}

/* ===== pages: services index, about, contact, privacy, 404 (B4b) ===== */
/* Builder B4b. Edited in overhaul/b127/tools/b4b-pages.css and spliced in by b4b-splice.mjs: these five pages
   have HTML size ceilings too tight for a <style> block of their own. Same law as the rest of the file: tokens
   only, "html body …" wherever a page's own rule is being replaced, hidden states keyed on a class a script sets. */

/* ------------------------------------------------------------ a. the head of an inner page (these five) */
html body :is(.svc-page, .quote-page, .priv-page, .ab-hero) {
  padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + var(--m-6));
}
html body :is(.svc-page-head, .ab-hero, .quote-intro-block, .priv-head) h1 {
  margin-top: var(--m-2);
  font-size: var(--m-h1);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ------------------------------------------------------------ b. /services: five closed rows in one screen
   Round 2. On arrival every row is closed and all five stand in the first screen under the page heading:
   number, name, the whole pitch, a thumbnail cut on purpose, a 44 px ring with a plus. The whole row is the
   button. Open (one at a time), a row adds one picture plate across the column (the same 5:4 shape for all
   five), its caption, the spec lines and the way into the service's page. mobile.js builds the accordion,
   m-services.js adds the link. Three states share one set of measures, so nothing moves when the script lands:
     built    .m-acc-item, open when [data-open]
     waiting  html.js, #svcRows not yet .m-acc: every row closed (for five seconds at most)
     no JS    every row open, each still one link to its page
   A picture belongs to a service ([data-svc]), never to a position: the rows may be re-ordered freely. */
html body .svc-page {
  padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + var(--m-4));
}
html body .svc-page-head {
  margin-bottom: var(--m-3);
}
/* the heading's column carries the deck (the heading's own children are busy with the page entrance) */
html body .wrap:has(> .svc-page-head) {
  position: relative;
  /* one card's width: 64 px at 390, 59 at 360 */
  --dk-w: clamp(56px, 16.4vw, 64px);
}
html body .svc-page-head h1 {
  font-size: var(--m-h1-inner);
  line-height: 1.04;
}
html body .svc-page-head p {
  margin-top: var(--m-3);
  font-size: var(--m-lead);
  line-height: 1.45;
}

/* the deck: three real layout captures, fanned once, beside the heading. Drawn by CSS alone, so it is there
   in its resting place on the first painted frame without a script and without motion; with motion it deals
   itself in once after the ready gate (opacity and transform only: the cards are out of the flow, nothing
   moves around them). m-services.js lets a finger send the front card to the back (custom properties). */
html body .wrap:has(> .svc-page-head)::before,
html body .wrap:has(> .svc-page-head)::after,
html body .svc-page-head::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--m-1));
  right: calc(var(--pad-x) + var(--dk-w) * 0.47);
  width: var(--dk-w);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-btn);
  outline: 1px solid var(--line-strong);
  outline-offset: -1px;
  background: var(--panel) center / cover no-repeat;
  transform-origin: 50% 165%;
  pointer-events: none;
}
html body .wrap:has(> .svc-page-head)::before {
  z-index: var(--dk-za, 1);
  opacity: var(--dk-oa, 1);
  transform: translateX(var(--dk-xa, 0px)) rotate(var(--dk-ra, -13deg));
  background-image: url("/assets/b127/services/deck-3.webp?v=4fd1c14c62");
  background-image: image-set(
    url("/assets/b127/services/deck-3.avif?v=b192631282") type("image/avif"),
    url("/assets/b127/services/deck-3.webp?v=4fd1c14c62") type("image/webp")
  );
}
html body .wrap:has(> .svc-page-head)::after {
  z-index: var(--dk-zb, 2);
  opacity: var(--dk-ob, 1);
  transform: translateX(var(--dk-xb, 0px)) rotate(var(--dk-rb, 13deg));
  background-image: url("/assets/b127/services/deck-2.webp?v=46319fe22b");
  background-image: image-set(
    url("/assets/b127/services/deck-2.avif?v=1270e6ae9d") type("image/avif"),
    url("/assets/b127/services/deck-2.webp?v=46319fe22b") type("image/webp")
  );
}
html body .svc-page-head::after {
  z-index: var(--dk-zc, 3);
  opacity: var(--dk-oc, 1);
  transform: translateX(var(--dk-xc, 0px)) rotate(var(--dk-rc, 0deg));
  background-image: url("/assets/b127/services/deck-1.webp?v=b418469083");
  background-image: image-set(
    url("/assets/b127/services/deck-1.avif?v=bddfe7fd94") type("image/avif"),
    url("/assets/b127/services/deck-1.webp?v=b418469083") type("image/webp")
  );
}
html.pv-anim.js:not([data-ready]) body .wrap:has(> .svc-page-head)::before,
html.pv-anim.js:not([data-ready]) body .wrap:has(> .svc-page-head)::after,
html.pv-anim.js:not([data-ready]) body .svc-page-head::after {
  opacity: 0;
}
html.pv-anim[data-ready] body .wrap:has(> .svc-page-head)::before,
html.pv-anim[data-ready] body .wrap:has(> .svc-page-head)::after,
html.pv-anim[data-ready] body .svc-page-head::after {
  animation: m-dk-in var(--t-mid) var(--ease-out) backwards;
  transition:
    transform var(--t-micro) var(--ease-out),
    opacity var(--t-press) var(--ease);
}
html.pv-anim[data-ready] body .svc-page-head::after {
  animation-delay: 120ms;
}
html.pv-anim[data-ready] body .wrap:has(> .svc-page-head)::after {
  animation-delay: 220ms;
}
html.pv-anim[data-ready] body .wrap:has(> .svc-page-head)::before {
  animation-delay: 320ms;
}
/* under the finger the front card follows at once */
html.pv-anim body .wrap.is-drag::before,
html.pv-anim body .wrap.is-drag::after,
html.pv-anim body .wrap.is-drag > .svc-page-head::after {
  transition: none;
}
@keyframes m-dk-in {
  from {
    opacity: 0;
    transform: translateY(var(--m-2)) rotate(0deg) scale(0.94);
  }
}
/* where the finger lands (built by m-services.js; decoration, so no name and no focus) */
.m-deck {
  position: absolute;
  top: calc(-1 * var(--m-3));
  right: var(--m-3);
  z-index: 4;
  width: calc(var(--dk-w) * 2.5);
  height: calc(var(--dk-w) * 1.75);
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

html body .svc-rows {
  margin-top: 0;
  /* the thumbnail's column: 76 px at 390, 70 at 360 (76 x 57: as tall as three lines of the pitch) */
  --svc-t: clamp(68px, 19.5vw, 76px);
}
html body .svc-row {
  display: block;
  padding: var(--m-3) var(--pad-x) var(--m-2);
  border-top: 1px solid var(--m-rule);
}
html body .svc-rows-end {
  border-top-color: var(--m-rule);
}
/* line one: the number hangs over the thumbnail's column, the name starts the text column, the ring ends it */
html body #svcRows .svc-top {
  position: static;
  display: grid;
  grid-template-columns: var(--svc-t) minmax(0, 1fr) var(--m-tap);
  grid-template-rows: 27px;
  column-gap: var(--m-3);
  align-items: baseline;
  min-height: 0;
  padding: 0;
}
html body .svc-idx {
  grid-column: 1;
  margin: 0;
  line-height: 1;
}
/* a row's name is not a section heading: motion.js would hide the ones under the fold until they are scrolled
   to (the fifth name was missing from the first screen at 360) */
html.pv-anim body #svcRows h2.pv-h {
  opacity: 1;
  animation: none;
}
html body .svc-row-title {
  grid-column: 2;
  font-size: clamp(20px, 5.64vw, 22px);
  line-height: 27px;
  letter-spacing: -0.02em;
}
/* the expand mark: a 44 px ring. It is taller than the line it sits on, so it gives its extra height back.
   Until the accordion is built it carries its own plus; built, the shared button draws the two bars (and
   turns the plus into a minus). Without a script it carries the site's arrow: the row is a link. */
html body .svc-top::after {
  content: "";
  grid-column: 3;
  align-self: center;
  width: var(--m-tap);
  height: var(--m-tap);
  margin-block: calc((27px - var(--m-tap)) / 2);
  border: 1px solid var(--m-edge);
  border-radius: 50%;
  color: var(--m-ink);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
}
html body #svcRows.m-acc .svc-top::after {
  background: none;
}
html:not(.js) body .svc-top::after {
  background: var(--m-arrow);
}
html:not(.js) body .svc-row {
  padding-bottom: var(--m-4);
}
/* line two: the thumbnail and the pitch; whatever opens lies under both */
html body .svc-bottom {
  display: grid;
  grid-template-columns: var(--svc-t) minmax(0, 1fr);
  column-gap: var(--m-3);
  margin-top: var(--m-2);
  padding: 0;
}
html body .svc-bottom::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-btn);
  outline: 1px solid var(--line-strong);
  outline-offset: -1px;
  background: var(--panel) center / cover no-repeat;
}
/* b132: the row was web-design in b127 and became swipe-and-match in b130; same service, same thumbnail */
html body [data-svc="web-design"] .svc-bottom::before,
html body [data-svc="swipe-and-match"] .svc-bottom::before {
  background-image: url("/assets/b127/services/web-design-th.webp?v=e8e4f82ff7");
  background-image: image-set(
    url("/assets/b127/services/web-design-th.avif?v=79691ed848") type("image/avif"),
    url("/assets/b127/services/web-design-th.webp?v=e8e4f82ff7") type("image/webp")
  );
}
html body [data-svc="ai-receptionists"] .svc-bottom::before {
  background-image: url("/assets/b127/services/ai-assistants-th.webp?v=1ea09159f3");
  background-image: image-set(
    url("/assets/b127/services/ai-assistants-th.avif?v=9040c84601") type("image/avif"),
    url("/assets/b127/services/ai-assistants-th.webp?v=1ea09159f3") type("image/webp")
  );
}
html body [data-svc="web-development"] .svc-bottom::before {
  background-image: url("/assets/b127/services/web-development-th.webp?v=a479b0c81b");
  background-image: image-set(
    url("/assets/b127/services/web-development-th.avif?v=7bc54ab734") type("image/avif"),
    url("/assets/b127/services/web-development-th.webp?v=a479b0c81b") type("image/webp")
  );
}
html body [data-svc="ecommerce"] .svc-bottom::before {
  background-image: url("/assets/b127/services/ecommerce-th.webp?v=7239f2de68");
  background-image: image-set(
    url("/assets/b127/services/ecommerce-th.avif?v=e9f1a73669") type("image/avif"),
    url("/assets/b127/services/ecommerce-th.webp?v=7239f2de68") type("image/webp")
  );
}
html body [data-svc="brand-identity"] .svc-bottom::before {
  background-image: url("/assets/b127/services/brand-identity-th.webp?v=dd1e990816");
  background-image: image-set(
    url("/assets/b127/services/brand-identity-th.avif?v=cbbd420379") type("image/avif"),
    url("/assets/b127/services/brand-identity-th.webp?v=dd1e990816") type("image/webp")
  );
}
html body .svc-desc {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  margin: 0;
  font-size: var(--fs-s);
  line-height: 1.4;
}
html body .svc-bottom > :is(.m-acc-panel, .svc-meta-row) {
  grid-column: 1 / -1;
}

/* what opens: the plate, its caption, the spec lines, the way in */
html body .svc-media-col {
  order: 1;
  padding: 0;
  margin-top: var(--m-4);
}
html body .svc-img-wrap {
  aspect-ratio: 5 / 4;
}
/* one edge on every plate: the dark ones (Hallam Slate, NOCT) ran into the page */
html body .svc-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: inherit;
  pointer-events: none;
}
html body .svc-img-wrap .svc-ph {
  object-position: 50% 50%;
}
html body .svc-cap {
  max-width: none;
  margin-top: var(--m-3);
  font-size: var(--m-aux);
  line-height: 1.45;
}
/* FIELD / SPECS / DEMO: one ruled line each, label and value side by side (they were six stacked lines) */
html body .svc-meta-row {
  order: 2;
  display: block;
  max-width: none;
  margin-top: var(--m-4);
  border-top: 1px solid var(--line);
}
html body .svc-meta-row > div {
  display: grid;
  grid-template-columns: var(--m-8) minmax(0, 1fr);
  column-gap: var(--m-3);
  align-items: baseline;
  padding: var(--m-2) 0;
  border-bottom: 1px solid var(--line);
}
html body .svc-meta-label {
  margin: 0;
  line-height: 1.3;
}
html body .svc-meta-val {
  grid-column: 2;
  font-size: var(--fs-b);
  line-height: 1.4;
}

/* built: the whole closed row is the button; the open panel lies over it and belongs to the link */
html body #svcRows .m-acc-btn::before,
html body #svcRows .m-acc-btn::after {
  top: calc(var(--m-3) + 27px / 2 - 1px);
  right: calc(var(--pad-x) + var(--m-tap) / 2 - 7px);
}
html body #svcRows .m-acc-btn:focus-visible {
  outline-color: var(--focus-dark);
  outline-offset: -4px;
}
html body #svcRows .m-acc-btn:active {
  background: color-mix(in srgb, var(--white) 4%, transparent);
}
html body #svcRows .m-acc-panel {
  position: relative;
  z-index: 3;
}
html body #svcRows .m-acc-in {
  display: flex;
  flex-direction: column;
}
html body #svcRows .m-acc-in::after {
  content: "";
  order: 9;
  height: var(--m-4);
}
/* the way in: the home tiles' own cue, as an outlined 56 px pill across the column */
.m-svc-go {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--m-3);
  min-height: var(--m-btn);
  margin-top: var(--m-5);
  border: 1px solid var(--m-edge);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: var(--fs-b);
  font-weight: 500;
  line-height: 1.3;
}
.m-svc-go::before {
  content: attr(data-k);
}
.m-svc-go::after {
  content: "";
  flex: none;
  width: 16px;
  height: 14px;
  background: var(--m-arrow);
}
.m-svc-go:active {
  border-color: var(--white);
  background: color-mix(in srgb, var(--white) 10%, transparent);
}
.m-svc-go:focus-visible {
  outline: var(--focus-ring-dark);
  outline-offset: 3px;
}
html.pv-anim .m-svc-go {
  transition:
    background-color var(--t-press) var(--ease),
    border-color var(--t-press) var(--ease);
}
html.pv-anim .m-svc-go::after {
  transition: transform var(--t-press) var(--ease-out);
}
html.pv-anim .m-svc-go:active::after {
  transform: translateX(4px);
}

/* opening: the plate comes up from the thumbnail's corner */
html.m-on.pv-anim body .svc-row.m-acc-item .svc-img-wrap {
  transform-origin: 12% 0;
  transition:
    opacity var(--m-t-acc) var(--ease-out),
    transform var(--m-t-acc) var(--ease-out);
}
html.m-on.pv-anim body .svc-row.m-acc-item:not([data-open]) .svc-img-wrap {
  opacity: 0;
  transform: scale(0.96);
}

/* waiting for the script: the same five closed rows, held for five seconds at most */
html.js body #svcRows:not(.m-acc) .svc-row :is(.svc-media-col, .svc-meta-row) {
  max-height: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  visibility: hidden;
  animation: m-svc-late 1ms linear 5s forwards;
}
@keyframes m-svc-late {
  to {
    max-height: 1200px;
    visibility: visible;
  }
}

/* a finger leaves :hover behind: the number stayed lifted, the name shifted, the AI chip stayed filled */
@media (hover: none) {
  html body .svc-row:hover :is(.svc-idx, .svc-row-title) {
    transform: none;
  }
  html body .svc-row:hover .svc-demo {
    border-color: var(--line-strong);
    background: color-mix(in srgb, var(--bg-dark) 62%, transparent);
    color: var(--gray-3);
    transform: none;
  }
  html body .svc-row:hover .svc-demo .svc-demo-k {
    color: var(--white);
  }
}

/* ------------------------------------------------------------ c. /contact: the wizard on a phone
   Every step is short enough to stand between the top of the screen and the keyboard: the card is tight, the
   question is a card title, a field is 56 px, "Next" runs across the card. m-contact.js keeps the step there
   (the shared keepAboveKeyboard) and brings the card to the top once the visitor is in the form. */
html body .quote-card-wrap {
  margin-top: var(--m-5);
}
html body .quote-card {
  min-height: 0;
  padding: var(--m-4) var(--m-5) var(--m-5);
  border-radius: var(--radius-card);
  scroll-margin-top: calc(var(--bar-h) + var(--m-2));
}
/* the step used to float at 40 % of a tall, mostly empty card */
html body .q-steps-wrap {
  min-height: 0;
}
html body .q-steps-wrap::before,
html body .q-steps-wrap::after {
  display: none;
}
html body .q-wizard-head {
  min-height: var(--m-tap);
  margin-bottom: var(--m-3);
}
/* Back: a control with an edge, 44 px to the touch */
html body .q-back {
  min-height: var(--m-tap);
  margin-left: calc(-1 * var(--m-1));
  padding: 0 var(--m-4) 0 var(--m-3);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-pill);
  font-size: var(--m-aux);
  color: var(--ink);
}
html body .q-back:active {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
/* six marks from the first screen to the last (the sixth used to appear when Web Design was picked);
   on the review they close into one line */
html body .q-progress {
  flex: 0 1 180px;
  width: auto;
  gap: var(--m-1);
}
html body .q-progress-seg[hidden] {
  display: block;
}
html body .q-progress-seg {
  height: 4px;
}
html body .q-form:has(.q-step[data-step="6"]:not([hidden])) .q-progress {
  gap: 0;
}
html body .q-question {
  margin-bottom: var(--m-3);
  font-size: var(--m-h3);
  line-height: 1.2;
}
html body .svc-pick-fs .q-question {
  margin-bottom: var(--m-1);
}
html body .svc-pick-hint {
  margin-bottom: var(--m-3);
  font-size: var(--m-aux);
}
html body .svc-pick {
  gap: var(--m-2);
}
html body .svc-card-in {
  min-height: var(--m-btn);
}
/* "Pick one or more": a box that takes a tick, not a radio's circle */
html body .svc-card-tick {
  border-radius: calc(var(--radius-btn) / 2);
}
html body .q-big-input {
  min-height: var(--m-btn);
  padding: 15px var(--m-4);
  font-size: var(--m-body);
}
html body .q-hint {
  margin-top: 0;
}
html body .q-question:has(+ .q-hint) {
  margin-bottom: var(--m-1);
}
html body .q-hint + .q-big-input {
  margin-top: var(--m-2);
}
html body .q-field + .q-field {
  margin-top: var(--m-4);
}
html body .q-step-actions {
  flex-wrap: nowrap;
  gap: var(--m-2);
  margin-top: var(--m-4);
}
html body .q-form .q-next {
  flex: 1 1 auto;
  justify-content: center;
}
/* Skip: the second answer of its step, a pill of the same height */
html body .q-skip {
  flex: none;
  min-height: var(--m-btn);
  padding-inline: var(--m-5);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-b);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
html body .q-skip:active {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
html body .svc-opts {
  margin-top: var(--m-4);
}
html body .tier-select .tp {
  min-height: var(--m-8);
}

/* the review: a row is its label over the answer, with Edit beside both (the page's own order, drawn tight:
   round 1 set label, answer and Edit on one line, and "Google profile" broke in two in a 76 px column).
   Edit is a control with an edge, 36 px drawn and 44 px to the touch. Then the opt-in, the note and Send. */
html body .q-review-row {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--m-3);
  align-items: center;
  padding: var(--m-1) 0;
}
html body .q-review-row:not([hidden]):first-of-type {
  padding-top: var(--m-1);
}
html body .q-review-row > dt {
  grid-column: 1;
  grid-row: 1;
  line-height: 1.3;
  white-space: nowrap;
}
html body .q-review-row > dd {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
  font-size: var(--fs-b);
  line-height: 1.35;
}
html body .q-review-row > dd.q-review-act {
  grid-column: 2;
  grid-row: 1 / span 2;
}
html body .q-edit {
  position: relative;
  min-width: 0;
  min-height: 36px;
  padding: 0 var(--m-4);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-pill);
  font-size: var(--m-aux);
  color: var(--ink);
  text-decoration: none;
}
html body .q-edit::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
html body .q-edit:active {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
html body .q-consent {
  margin: var(--m-4) 0 0;
  font-size: var(--m-aux);
}
html body .q-notes {
  margin-top: var(--m-4);
}
html body .q-notes-l {
  margin-bottom: var(--m-2);
}
html body .q-notes textarea {
  min-height: var(--m-9);
  font-size: var(--m-body);
}
html body .q-submit {
  margin-top: var(--m-4);
}
html body .q-note {
  margin-top: var(--m-3);
}
html body .q-brief-text {
  overscroll-behavior: contain;
}
html body .q-fallback-act a {
  display: inline-flex;
  align-items: center;
  min-height: var(--m-tap);
}
/* under the card: what happens next, then the address */
html body .quote-steps {
  gap: var(--m-4);
  margin-top: var(--m-7);
}
html body .quote-direct {
  margin-top: var(--m-6);
}
html body .quote-reply {
  margin-bottom: 0;
}
html body .quote-mail {
  display: inline-flex;
  align-items: center;
  min-height: var(--m-tap);
}
/* the card grows and shrinks from step to step; the browser's scroll anchoring answered by moving the page
   (it held on to whatever lay under the card), which took the question off the screen. The card holds still. */
html:has(#quoteCard),
html:has(#quoteCard) body {
  overflow-anchor: none;
}
/* the first screen has no Back: its head is the progress line alone */
html body .q-wizard-head:has(.q-back[hidden]) {
  min-height: var(--m-5);
}

/* ------------------------------------------------------------ d. /about: three forms for three lists
   The steps are the shared axis under the page's own arc (the desktop's drawing, redrawn at phone width: the
   line crosses once, the four points are on it in order); the four things are four ruled rows; the work is the
   shared rail. Headings follow the phone scale: page 47, section 34, step and tile below them. */
html body .ab-hero-lede {
  margin-top: var(--m-4);
  font-size: var(--m-lead);
  line-height: 1.45;
}
html body .ab-hero + .about .process {
  padding-top: var(--m-4);
}
html body .tl-stage {
  gap: var(--m-4);
}
html body .tl-arc {
  display: block;
  height: var(--m-9);
  -webkit-mask-image: linear-gradient(var(--ink) 52%, transparent);
  mask-image: linear-gradient(var(--ink) 52%, transparent);
}
html body .tl-arc svg {
  width: 132%;
  height: auto;
}
html body .tl-arc :is(.tl-base, .tl-draw) {
  vector-effect: non-scaling-stroke;
}
html body .tl-arc .tl-base {
  stroke: var(--line-strong);
}
html body .tl-arc .tl-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(2.5);
}
html body .tl-arc .tl-pip {
  display: none;
}
/* the line crosses once, when the steps come into view (mobile.js marks the list .is-in) */
html.m-on.pv-anim body .tl-arc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  transform-origin: 100% 50%;
  transition: transform var(--t-slow) var(--ease-out);
}
html.m-on.pv-anim body .tl-stage:has(.tl-cards.is-in) .tl-arc::after {
  transform: scaleX(0);
}
html body .tl-cards {
  gap: var(--m-5);
  width: 100%;
  padding: 0 var(--pad-x) 0 calc(var(--pad-x) + var(--m-6));
}
html body .tl-cards::before {
  left: calc(var(--pad-x) + 3px);
}
html body .tl-cards > .tl-card::before {
  left: calc(-1 * var(--m-6));
  top: 5px;
  border-radius: 50%;
}
html body .tl-card h3 {
  margin-top: var(--m-1);
  font-size: var(--m-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
html body .tl-card p {
  max-width: none;
  margin-top: var(--m-2);
  font-size: var(--m-body);
  line-height: 1.5;
}
html body .tl-ask {
  margin-top: var(--m-2);
  font-size: var(--m-body);
  line-height: 1.5;
}
html body :is(.ab-values, .ab-work) {
  padding-top: var(--m-7);
}
html body .ab-values-lede {
  max-width: none;
  margin-top: var(--m-3);
  font-size: var(--m-h2);
  line-height: 1.08;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
/* four things, four full rows (round 1 set them two by two: 15 to 22 characters a line, titles on three
   lines). A row is its mark, then the title and the sentence on the whole remaining measure; ruled like the
   service rows, no card around each. */
html body .ab-values-list {
  display: block;
  margin-top: var(--m-5);
  border-bottom: 1px solid var(--m-rule);
}
html body .ab-value:nth-child(n) {
  display: grid;
  grid-template-columns: var(--m-tap) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--m-4);
  padding: var(--m-4) 0;
  border: 0;
  border-top: 1px solid var(--m-rule);
  border-radius: 0;
  background: none;
}
html body .ab-g {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: var(--m-tap);
}
html body .ab-value h3 {
  grid-column: 2;
  margin: 0;
  padding: 0;
  font-size: var(--m-lead);
  line-height: 1.25;
}
html body .ab-value p {
  grid-column: 2;
  max-width: none;
  margin-top: var(--m-1);
  font-size: var(--m-aux);
  line-height: 1.45;
  text-wrap: pretty;
}
/* the work rail: one disc stands by one title. A card that is waiting at the edge keeps its picture and
   gives up its disc (at the last card the disc of the card before it stood left of the title) */
html body .ab-work-list > .m-aside a.ab-work-link::before {
  opacity: 0;
}
/* under 385 px the page title took three lines at the display size: the inner size keeps it at two */
@media (max-width: 384px) {
  html body .ab-hero h1 {
    font-size: var(--m-h1-inner);
    line-height: 1.04;
  }
}
html body .ab-work-list {
  margin-top: var(--m-5);
}

/* ------------------------------------------------------------ e. /privacy: prose with a way around it
   "On this page" is the shared chips row and stays with the reader: it sticks under the top bar (its label
   slides under the bar) and rides up with the bar when the bar leaves. m-privacy.js marks the section being
   read. The sections no longer wait for a reveal: a tall one stayed blank until 18 % of it was on screen. */
html body .priv-head {
  margin-bottom: var(--m-5);
}
html body .priv-head h1 {
  max-width: none;
}
html body .priv-lead {
  margin-top: var(--m-4);
  font-size: var(--m-lead);
  line-height: 1.45;
}
html body .priv-toc {
  position: sticky;
  top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) - var(--m-5));
  z-index: 4;
  margin: 0 calc(-1 * var(--pad-x)) var(--m-6);
  padding: 0 var(--pad-x) var(--m-2);
  border-bottom: 1px solid var(--line);
  background: var(--bg-dark);
}
html.pv-anim body .priv-toc {
  transition:
    transform var(--t-micro) var(--ease-out),
    opacity var(--t-press) var(--ease),
    visibility 0s linear 0s;
}
/* the text is ending (m-privacy.js): the row goes before its own column can push it half off the screen */
html body .priv-toc.is-off {
  opacity: 0;
  visibility: hidden;
}
html.pv-anim body .priv-toc.is-off {
  transition:
    transform var(--t-micro) var(--ease-out),
    opacity var(--t-press) var(--ease),
    visibility 0s linear var(--t-press);
}
/* the bar has left: the row rides up with it and keeps 8 px of air above the chips (its label, which would be
   cut by the edge, steps out) */
html:has(#topbar.nav-hidden) body .priv-toc {
  transform: translateY(calc(var(--m-2) - var(--bar-h)));
}
html:has(#topbar.nav-hidden) body .priv-toc .label {
  opacity: 0;
}
html.pv-anim body .priv-toc .label {
  transition: opacity var(--t-press) var(--ease);
}
html body .priv-toc .label {
  display: block;
  height: var(--m-5);
  line-height: var(--m-5);
}
/* the row always rests with a chip in the middle, so the one before and the one after show at its edges */
html body .priv-toc ol {
  display: flex;
  gap: var(--m-2);
  margin-top: 0;
  scroll-snap-type: x mandatory;
}
html body .priv-toc li {
  padding: 0;
  scroll-snap-align: center;
}
html body .priv-toc li a {
  display: flex;
  align-items: center;
  min-height: var(--m-tap);
  margin-block: -1px;
  padding: 0 var(--m-4);
  color: inherit;
  text-decoration: none;
}
html body .priv-toc li:has(a[aria-current]) {
  border-color: transparent;
  background: var(--white);
  color: var(--ink);
}
/* the chip being read keeps its ink under a finger's leftover :hover (the page turns a hovered link white) */
html body .priv-toc li a[aria-current],
html body .priv-toc li a[aria-current]:hover,
html body .priv-toc li a[aria-current]:focus-visible {
  color: var(--ink);
}
html body .priv-toc li a:focus-visible {
  outline: var(--focus-ring-dark);
  outline-offset: -3px;
  border-radius: var(--radius-pill);
}
html body .priv-body {
  gap: var(--m-7);
}
html.js body .priv-sec.rv:not(.in) {
  opacity: 1;
  transform: none;
}
html body .priv-sec :is(h2, h3, [id]),
html body .priv-sec[id] {
  scroll-margin-top: calc(
    var(--bar-h) + env(safe-area-inset-top, 0px) + var(--m-tap) + var(--m-5)
  );
}
html body .priv-sec h2 {
  margin-bottom: var(--m-3);
  font-size: clamp(24px, 6.7vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
html body .priv-sec .priv-h3 {
  margin: var(--m-5) 0 var(--m-3);
  font-size: var(--m-lead);
  line-height: 1.3;
}
html body .priv-sec p,
html body .priv-list li {
  font-size: var(--fs-b);
  line-height: 1.6;
}
html body .priv-sec p {
  margin-bottom: var(--m-3);
}
html body .priv-sec p:last-child {
  margin-bottom: 0;
}
html body .priv-list {
  gap: var(--m-2);
  margin-bottom: var(--m-3);
}
/* a link in a sentence: the line keeps its height, the finger gets more of it */
html body .priv-sec p a,
html body .priv-list a {
  padding-block: 6px;
}
html body .priv-sec .priv-consent {
  display: inline-block;
  padding-block: var(--m-3);
  margin-block: calc(-1 * var(--m-3));
  font-size: inherit;
}

/* ------------------------------------------------------------ f. the 404: one calm screen
   Its own shell (no menu, no shared footer), so it is scoped by its own bar. The bar is the site's 56 px bar;
   the message and its two answers stand at the top, the eight ways back are a grid of 48 px rows in the
   menu's order at the foot, within reach of the thumb; nothing is cut at 390 x 844 or 360 x 780. */
html body > header.bar {
  height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px)
    max(var(--pad-x), env(safe-area-inset-right, 0px)) 0
    max(var(--pad-x), env(safe-area-inset-left, 0px));
}
html body > header.bar .mark {
  min-height: var(--m-tap);
}
html body > header.bar .bar-cta {
  position: relative;
  min-height: 40px;
  padding: 0 var(--m-4);
}
html body > header.bar .bar-cta::after {
  content: "";
  position: absolute;
  inset: -3px -1px;
}
html body > header.bar .bar-cta:active {
  background: var(--white);
  color: var(--bg-dark);
}
html body:has(> header.bar) > main {
  align-items: stretch;
  padding: var(--m-6) var(--pad-x) var(--m-4);
}
html body:has(> header.bar) .inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
}
html body:has(> header.bar) .code {
  margin-bottom: var(--m-3);
  line-height: 1.3;
}
html body:has(> header.bar) .inner h1 {
  font-size: var(--m-h1);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
html body:has(> header.bar) .lede {
  max-width: none;
  margin-top: var(--m-4);
  font-size: var(--m-body);
  line-height: 1.5;
}
html body:has(> header.bar) .actions {
  flex-wrap: wrap; /* b132: nowrap (b127) put "Get a quote" out to 339 px at 320; the pair still fits on one line from 360 */
  gap: var(--m-2);
  margin-top: var(--m-5);
}
html body:has(> header.bar) .actions .btn {
  width: auto;
  padding-inline: var(--m-4);
  white-space: nowrap;
}
html body:has(> header.bar) .actions .btn-primary {
  flex: 1 1 auto;
}
html body:has(> header.bar) .actions .btn-ghost {
  flex: 0 0 auto;
  border-color: var(--m-edge);
}
html body:has(> header.bar) .actions .btn-ghost:active {
  border-color: var(--white);
  background: color-mix(in srgb, var(--white) 10%, transparent);
}
html body:has(> header.bar) nav.more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, var(--m-7));
  grid-auto-flow: column;
  gap: 0 var(--m-3);
  margin-top: auto;
  padding-top: 0;
  border-top: 0;
}
html body:has(> header.bar) nav.more a {
  display: flex;
  align-items: center;
  min-height: var(--m-7);
  border-top: 1px solid var(--line);
  font-size: var(--fs-b);
  color: var(--foot-link);
}
html body:has(> header.bar) nav.more a:active {
  color: var(--white);
}
/* the index first, then the services in the order the page lists them (no service is named here), then the
   studio */
html body:has(> header.bar) nav.more a[href="/services"] {
  order: 1;
}
html body:has(> header.bar) nav.more a[href^="/services/"] {
  order: 2;
}
html body:has(> header.bar) nav.more a[href="/about"] {
  order: 3;
}
html body:has(> header.bar) nav.more a[href="/contact"] {
  order: 4;
}
html body:has(> header.bar) > footer {
  padding: var(--m-3) var(--pad-x)
    calc(var(--m-3) + env(safe-area-inset-bottom, 0px));
  line-height: 1.5;
}
/* ===== end pages (B4b) ===== */
