/* self-hosted fonts (2026-08-22): one hop fewer than Google Fonts, no third-party request */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   NorthBore design system - "Ink & Highlighter" (2026-08-22 revamp)
   Tokens per SPEC S1. Shared by home, services, work, and legacy 404 shape.
   Selectors are kept flat (single classes) so specificity never fights itself.
   ============================================================ */

:root {
  --ground:   #F3F5F7;
  --ground-2: #FFFFFF;
  --ink:      #0D1B2A;
  --ink-2:    #3B4754;
  --ink-3: #5A6673;
  --line:     rgba(13,27,42,.12);
  --line-2:   rgba(13,27,42,.22);
  --mark:     #FFD23F;
  --mark-2:   #FFF3B8;
  --on-ink:   #F3F5F7;
  --radius:   14px;
  --radius-s: 8px;
  --maxw:     1180px;
  --ease:     cubic-bezier(.2,.7,.2,1);
  --loop:     9s;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: 'Archivo', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-variation-settings: 'wdth' 100;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 960px) { body { font-size: 18px; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--mark); color: var(--ink); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 3px; }
.on-ink :focus-visible { box-shadow: 0 0 0 5px var(--ink); outline-color: var(--mark); }

/* ---------- type ---------- */
h1, h2, .display {
  font-family: 'Archivo', -apple-system, sans-serif;
  font-variation-settings: 'wdth' 115;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  font-variation-settings: 'wdth' 110;
  color: var(--ink);
  line-height: 1.25;
}
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--on-ink); }
.eyebrow, .mono, .label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink-3);
  margin: 0 0 1rem;
}
.on-ink .eyebrow { color: rgba(243,245,247,.62); }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 46rem; }
@media (min-width: 960px) { .lead { font-size: 19px; } }
.on-ink .lead { color: rgba(243,245,247,.82); }
small, .quiet { font-size: .9rem; }
.quiet { color: var(--ink-3); }
.on-ink .quiet { color: rgba(243,245,247,.62); }
.quiet a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.on-ink .quiet a { color: var(--on-ink); }

/* highlighter mark - the signature. Zero-JS: fully swept by default is the
   correct state for every browser; @supports below is the only enhancement. */
mark.hl {
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 60% / 100% 55%;
  color: inherit;
  padding: 0 .06em;
  margin: 0 -.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .hl {
  animation: hl-sweep .55s var(--ease) .5s both;
}
@supports (animation-timeline: view()) {
  .reveal .hl {
    animation: hl-sweep linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}
/* S1 says on-ink text "stays --on-ink" through the mark, but --on-ink (near-white)
   on --mark (bright yellow) measures ~1.3:1 contrast - effectively illegible.
   Planner-confirmed override: the marked word always renders --ink, matching the
   ink-on-yellow contrast used everywhere else the mark appears. */
.on-ink .hl {
  color: var(--ink);
  /* On the dark band a 55% stroke leaves ascenders/descenders ink-on-ink (the
     "prob em" glitch), so the mark becomes a full-height label there. */
  background-position: 0 0;
  background-size: 100% 100%;
  padding: 0 .12em;
  margin: 0 -.04em;
  border-radius: .08em;
  animation-name: hl-sweep-full;
}
@keyframes hl-sweep-full {
  from { background-size: 0% 100%; }
  to   { background-size: 100% 100%; }
}
@keyframes hl-sweep {
  from { background-size: 0% 55%; }
  to   { background-size: 100% 55%; }
}

/* ---------- text links ---------- */
.text-link {
  font-weight: 600;
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color .18s ease;
}
.text-link:hover { text-decoration-color: var(--ink); }
.on-ink .text-link { color: var(--on-ink); text-decoration-color: rgba(243,245,247,.4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13,27,42,.18); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.on-ink .btn-primary { background: var(--mark); color: var(--ink); }
.on-ink .btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.nav-cta { padding: .6rem 1.05rem; font-size: .88rem; border-radius: var(--radius-s); gap: 0; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.rule { color: var(--ink-3); font-size: .95rem; margin: 1.75rem 0 0; }
.quiet.disclosure, .disclosure { color: var(--ink-3); font-size: .95rem; }
.also { color: var(--ink-2); }
.sorter { min-width: 0; }
.sorter-caption { margin: -1.25rem 0 0; color: var(--ink-3); font-size: .95rem; text-align: center; }
@media (min-width: 960px) { .sorter-caption { grid-column: 2; margin-top: -1.5rem; } }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.legacy-anchor { display: block; position: relative; width: 0; height: 0; scroll-margin-top: 5rem; }
.skip-link {
  position: absolute;
  left: -999px;
  top: .75rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--on-ink);
  font: 500 12.5px 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: var(--radius-s);
}
.skip-link:focus { left: .75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(243,245,247,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 110;
  font-size: 1.08rem;
  color: var(--ink);
  min-height: 44px;
}
.brand .mark { width: 26px; height: 26px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.nav-cta) {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .18s ease;
}
.site-nav a:not(.nav-cta):hover { color: var(--ink); }
@media (max-width: 719px) {
  .site-nav a.nav-how { display: none; }
  .site-nav { gap: .85rem; }
  .site-nav a:not(.nav-cta) { font-size: .88rem; }
  .header-inner { width: min(100% - 1.5rem, var(--maxw)); gap: .75rem; }
  .brand { font-size: 1rem; gap: .4rem; }
  .nav-cta { padding: .55rem .8rem; font-size: .82rem; white-space: nowrap; }
  .nav-cta .cta-long { display: none; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.footer-links a { font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-note { color: var(--ink-3); font-size: .85rem; }

/* ============================================================
   HOME - hero
   ============================================================ */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 7fr 5fr; gap: clamp(2rem, 4vw, 4rem); }
}
.hero-copy h1 { margin: 0 0 1.25rem; }
.hero-copy .lead { margin: 0 0 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- sorter (signature animation) ---------- */
.sorter {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1rem;
  align-items: start;
}
.sources {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}
.source {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  background: var(--ground-2);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(13,27,42,.10);
  padding: 1.15rem 1rem 1.05rem;
}
.panel-title { font-size: .8rem; font-weight: 600; color: var(--ink-3); margin: 0 0 1.1rem; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  min-height: 52px;
  padding: 0 .4rem 0 .55rem;
  border-radius: var(--radius-s);
  position: relative;
  min-width: 0;
}
.row[data-n="2"]::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--ink);
}
.chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .3rem .5rem;
  color: var(--ink-2);
  white-space: nowrap;
  flex: none;
}
.chip.job {
  border: none;
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 0 / 0% 100%;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-foot { display: flex; align-items: center; gap: .4rem; margin: 1.05rem 0 0; font-size: .82rem; color: var(--ink-3); }
.count {
  position: relative;
  display: inline-block;
  width: 1ch;
  height: 1.1em;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--ink);
}
.count span { position: absolute; inset: 0; opacity: 0; }
.flyers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.flyer {
  position: absolute;
  left: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  background: var(--ground-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: .25rem .5rem;
  opacity: 0;
  white-space: nowrap;
}
/* offsets measured against the live hero grid (82px source column + 1rem gap + 1rem panel padding = 114px
   horizontal travel, constant at every desktop width since none of those are viewport-relative units;
   vertical targets land each flyer centred on its own row - re-measure via getBoundingClientRect() on
   .source/.flyer/.row/.panel-title if the hero layout changes again) */
.flyer[data-n="1"] { top: 3px;  --dx: 114px; --dy: 73px; --dy-mid: 50px; animation-name: flyer-fly-1; }
.flyer[data-n="2"] { top: 47px; --dx: 114px; --dy: 89px; }
.flyer[data-n="3"] { top: 91px; --dx: 114px; --dy: 105px; }

@media (max-width: 719px) {
  .sorter { grid-template-columns: 1fr; max-width: 420px; }
  .sources { flex-direction: row; justify-content: center; gap: 1.5rem; padding: 0 0 1rem; }
  .flyers { display: none; }
}

/* sorter motion - one shared 9s loop, percentages per element */
@keyframes flyer-fly {
  0%      { opacity: 0; transform: translate(0,0); }
  2.222%  { opacity: 1; transform: translate(0,0); animation-timing-function: var(--ease); }
  12.222% { opacity: 1; transform: translate(var(--dx), var(--dy)); }
  13.889% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  100%    { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
/* flyer 1 only: the source label sits at the panel title's height, so a straight diagonal would fly the
   chip straight through the title text. Drop clear of the title first (dx held at 0), then slide right
   into row 1 - same overall arrival timing as the shared path above, just a bent route. */
@keyframes flyer-fly-1 {
  0%      { opacity: 0; transform: translate(0,0); }
  2.222%  { opacity: 1; transform: translate(0,0); animation-timing-function: var(--ease); }
  7.222%  { opacity: 1; transform: translate(0, var(--dy-mid)); animation-timing-function: var(--ease); }
  12.222% { opacity: 1; transform: translate(var(--dx), var(--dy)); }
  13.889% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  100%    { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
@keyframes dot-flash {
  0%      { background: var(--line-2); }
  0.02%   { background: var(--ink); }
  11.111% { background: var(--ink); }
  11.15%  { background: var(--line-2); }
  100%    { background: var(--line-2); }
}
.flyer { animation: flyer-fly var(--loop) linear infinite both; }
.flyer[data-n="1"] { animation-delay: .3s; }
.flyer[data-n="2"] { animation-delay: 2.9s; }
.flyer[data-n="3"] { animation-delay: 5.5s; }
.source .dot { animation: dot-flash var(--loop) linear infinite both; }
.source:nth-child(1) .dot { animation-delay: .3s; }
.source:nth-child(2) .dot { animation-delay: 2.9s; }
.source:nth-child(3) .dot { animation-delay: 5.5s; }

@keyframes row-1 {
  0%, 15.556%     { opacity: 0; transform: translateY(8px); }
  19.444%, 96.667% { opacity: 1; transform: translateY(0); }
  100%            { opacity: 0; transform: translateY(0); }
}
@keyframes row-2 {
  0%, 44.444%     { opacity: 0; transform: translateY(8px); }
  48.333%, 96.667% { opacity: 1; transform: translateY(0); }
  100%            { opacity: 0; transform: translateY(0); }
}
@keyframes row-3 {
  0%, 73.333%     { opacity: 0; transform: translateY(8px); }
  77.222%, 96.667% { opacity: 1; transform: translateY(0); }
  100%            { opacity: 0; transform: translateY(0); }
}
.row, .row .chip {
  animation-duration: var(--loop);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-fill-mode: both;
}
.row[data-n="1"], .row[data-n="1"] .chip { animation-name: row-1; }
.row[data-n="2"], .row[data-n="2"] .chip { animation-name: row-2; }
.row[data-n="3"], .row[data-n="3"] .chip { animation-name: row-3; }
.row .chip:nth-child(2) { animation-delay: .12s; }
.row .chip:nth-child(3) { animation-delay: .24s; }

@keyframes chipfill-1 { 0%, 16.667% { background-size: 0% 100%; } 21.111%, 100% { background-size: 100% 100%; } }
@keyframes chipfill-2 { 0%, 45.556% { background-size: 0% 100%; } 50%,     100% { background-size: 100% 100%; } }
@keyframes chipfill-3 { 0%, 74.444% { background-size: 0% 100%; } 78.889%, 100% { background-size: 100% 100%; } }
.row[data-n="1"] .chip.job { animation: chipfill-1 var(--loop) linear infinite both; }
.row[data-n="2"] .chip.job { animation: chipfill-2 var(--loop) linear infinite both; }
.row[data-n="3"] .chip.job { animation: chipfill-3 var(--loop) linear infinite both; }

@keyframes count-1 { 0%, 18.889% { opacity: 0; } 19%, 47.778% { opacity: 1; } 47.889%, 100% { opacity: 0; } }
@keyframes count-2 { 0%, 47.778% { opacity: 0; } 47.889%, 76.667% { opacity: 1; } 76.778%, 100% { opacity: 0; } }
@keyframes count-3 { 0%, 76.667% { opacity: 0; } 76.778%, 96.667% { opacity: 1; } 96.778%, 100% { opacity: 0; } }
.count span:nth-child(1) { animation: count-1 var(--loop) linear infinite both; }
.count span:nth-child(2) { animation: count-2 var(--loop) linear infinite both; }
.count span:nth-child(3) { animation: count-3 var(--loop) linear infinite both; }

/* ============================================================
   offer / the build
   ============================================================ */
.offer-card {
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .offer-card { grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
}
.offer h2 { margin: 0 0 1.5rem; }
.checks { display: flex; flex-direction: column; gap: .9rem; margin: .75rem 0 0; }
.checks li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-2); }
.checks svg { flex: none; margin-top: .1rem; }
.guarantee { background: var(--mark-2); border-radius: var(--radius); padding: 1.5rem; }
.guarantee p:not(.eyebrow) { color: var(--ink); }
.capacity { margin-top: 1.5rem; color: var(--ink-2); }
.honest { margin-top: 1rem; color: var(--ink-2); }
.price { margin-top: 1.25rem; color: var(--ink-2); font-size: .95rem; }

/* ============================================================
   proof
   ============================================================ */
.proof-grid {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0 2rem;
}
@media (min-width: 720px)  { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .proof-grid { grid-template-columns: repeat(4, 1fr); } }
.proof-card {
  display: block;
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.proof-card:hover { border-color: var(--line-2); box-shadow: 0 12px 32px rgba(13,27,42,.10); transform: translateY(-2px); }
.proof-card a { display: block; color: inherit; }
.proof-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.proof-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position .6s var(--ease), transform 6s linear; }
.proof-card:hover .thumb img { object-position: center; transform: scale(1.04); }
.proof-card .body { padding: 1.25rem 1.4rem 1.5rem; }
.proof-card h3 { margin: 0 0 .4rem; }
.proof-card p { color: var(--ink-2); font-size: .95rem; }

/* ============================================================
   closing (ink band)
   ============================================================ */
.closing { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.closing.on-ink { background: var(--ink); }
.closing .wrap { text-align: center; }
.closing h2 { margin: 0 auto 1.25rem; max-width: 24ch; }
.closing .lead { margin: 0 auto 2rem; max-width: 44ch; }
.closing .actions { display: flex; justify-content: center; margin-bottom: 1.5rem; }

/* ============================================================
   shared sub-page components (services / work)
   ============================================================ */
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.page-hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { margin: 0 0 1.25rem; }
.page-hero .lead { margin: 0; }

.service-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.service-card h2 { font-size: 1.3rem; font-variation-settings: 'wdth' 110; font-weight: 600; letter-spacing: 0; line-height: 1.25; }
.service-card p { color: var(--ink-2); flex: 1; }

.work-card {
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.work-grid { display: grid; gap: 1.5rem; margin: 1.5rem 0 0; }
@media (min-width: 720px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.section h2 + .work-grid, .section h2 + .oss-list { margin-top: 1.5rem; }
.work-card .body { padding: 1.5rem 1.75rem 1.75rem; }
.work-card h3 { margin: 0 0 .5rem; }
.work-card p { color: var(--ink-2); margin: 0 0 1rem; }
.work-card .links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.work-card .links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.work-card .links a:hover { border-color: var(--ink); }
.work-card.oss { display: block; padding: 1.25rem 1.5rem; margin-top: 1rem; }
.h2-gap { margin-top: clamp(3rem, 6vw, 5rem); margin-bottom: .5rem; }
.work-card.oss h3 { display: inline; margin: 0 .5rem 0 0; }
.work-card.oss p { display: inline; color: var(--ink-2); }
.work-card.oss .links { margin-top: .6rem; }

/* ============================================================
   AI strip (Round 3 S14.1) + services-page AI cards (S14.2)
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink);
  background: var(--mark-2);
  border-radius: 999px;
  padding: .3rem .65rem;
}
.badge-pilot { color: var(--ink-3); background: transparent; border: 1px solid var(--line-2); }

.ai-grid {
  display: grid;
  gap: 1.25rem;
  margin: 3rem 0 2rem;
}
@media (min-width: 720px) { .ai-grid { grid-template-columns: repeat(3, 1fr); } }
.ai-tile > a {
  display: block;
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ai-tile > a:hover { border-color: var(--line-2); box-shadow: 0 12px 32px rgba(13,27,42,.10); }
.ai-tile h3 { font-size: 1.15rem; margin: 1.1rem 0 .35rem; }
.ai-tile p { color: var(--ink-2); margin: 0; }

/* services page: AI cards (S14.2) */
.ai-list { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 720px) { .ai-list { grid-template-columns: repeat(3, 1fr); } }
.ai-card {
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.ai-card .badge { align-self: flex-start; }
.ai-card h3 { font-size: 1.2rem; margin: .35rem 0 0; }
.ai-card p { color: var(--ink-2); margin: 0; }

/* ============================================================
   proof: gopalbagaswar.com tile (Round 2 S13.3)
   ============================================================ */
.proof-link {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.proof-link .eyebrow { color: rgba(243,245,247,.62); }
.proof-link strong {
  font-family: 'Archivo', -apple-system, sans-serif;
  font-variation-settings: 'wdth' 110;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--on-ink);
}
.proof-link .arrow {
  margin-top: auto;
  align-self: flex-end;
  padding-top: 1.5rem;
  font-size: 1.1rem;
  transition: transform 180ms var(--ease);
}
.proof-link:hover .arrow { transform: translate(2px, -2px); }
.proof-link:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; box-shadow: 0 0 0 5px var(--ink); }

/* ============================================================
   scroll reveal system
   ============================================================ */
/* Zero-JS: visible by default in every browser. The rise+fade is an
   enhancement that only exists where animation-timeline is supported -
   nothing ever depends on script to become readable. */
.reveal { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  /* 2026-08-23: transform-only entrances. Content is NEVER opacity-masked -
     full-page captures, printing and slow renders always show every section. */
  .reveal {
    transform: translateY(16px);
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }
  @keyframes reveal-in { to { transform: translateY(0); } }
}
@media print {
  .reveal, .reveal * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Round 2 animations (SPEC S13.4) - pure CSS, additive.
   Item 1 needs scroll(root); items 2-5 need view(). Each shows
   its FINAL state when the feature is unsupported (no @supports
   match = the plain rule above stands, nothing hidden/broken).
   Reduced motion disables all of it - see the block below.
   ============================================================ */

/* 1. header scroll-progress bar */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: var(--mark);
    transform-origin: left;
    transform: scaleX(0);
    animation: header-progress linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
  @keyframes header-progress { to { transform: scaleX(1); } }
}

@supports (animation-timeline: view()) {
  /* S14.1: AI tiles stagger in on reveal */
  .ai-tile:nth-child(1) { animation-delay: 0ms; }
  .ai-tile:nth-child(2) { animation-delay: 80ms; }
  .ai-tile:nth-child(3) { animation-delay: 160ms; }

  /* 4. offer: tick icons draw in sequence, guarantee box stamps in */
  .checks svg path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: check-draw linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  .checks li:nth-child(1) svg path { animation-delay: 0ms; }
  .checks li:nth-child(2) svg path { animation-delay: 100ms; }
  .checks li:nth-child(3) svg path { animation-delay: 200ms; }
  .checks li:nth-child(4) svg path { animation-delay: 300ms; }
  @keyframes check-draw { to { stroke-dashoffset: 0; } }

  .guarantee {
    transform: scale(1.04) rotate(-1.5deg);
    animation: guarantee-stamp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes guarantee-stamp { to { transform: scale(1) rotate(0deg); } }

  /* S14.3.3: price line fades in last, after the guarantee has landed */
  .price {
    transform: translateY(8px);
    animation: price-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
    animation-delay: 600ms;
  }
  @keyframes price-rise { to { transform: translateY(0); } }

  /* 5. proof: cards + portfolio tile stagger in (hover pan/lift is unconditional, above) */
  .proof-grid > :nth-child(1) { animation-delay: 0ms; }
  .proof-grid > :nth-child(2) { animation-delay: 80ms; }
  .proof-grid > :nth-child(3) { animation-delay: 160ms; }
  .proof-grid > :nth-child(4) { animation-delay: 240ms; }
}

/* 6. closing button: soft yellow pulse ring, infinite */
@keyframes btn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,210,63,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(255,210,63,0); }
  100% { box-shadow: 0 0 0 12px rgba(255,210,63,0); }
}
.closing .btn-primary { position: relative; overflow: hidden; animation: btn-pulse 2.4s infinite; }
.closing .btn-primary::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 35%;
  height: 220%;
  background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%);
  animation: btn-shimmer 6s linear infinite;
  pointer-events: none;
}
@keyframes btn-shimmer {
  0%   { left: -60%; }
  14%  { left: 130%; }
  100% { left: 130%; }
}

/* 7. hero button arrow: nudge up-right on hover */
.hero .btn span[aria-hidden] {
  display: inline-block;
  transition: transform 180ms var(--ease);
}
.hero .btn:hover span[aria-hidden] { transform: translate(2px, -2px); }

/* ============================================================
   reduced motion - disable everything, show final states
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; }
  .hl { background-size: 100% 55% !important; }
  .on-ink .hl { background-size: 100% 100% !important; }
  .flyers, .flyer { display: none; }
  .source .dot { background: var(--ink) !important; }
  .row, .row .chip { opacity: 1 !important; transform: none !important; }
  .chip.job { background-size: 100% 100% !important; }
  .count span { opacity: 0 !important; }
  .count span:last-child { opacity: 1 !important; }
  .site-header::after { display: none; }
  .checks svg path { stroke-dashoffset: 0 !important; }
  .guarantee { transform: none !important; }
  .closing .btn-primary { animation: none !important; box-shadow: none !important; }
  .closing .btn-primary::after { display: none !important; }
  .price { transform: none !important; }
}

/* round-3 spacing: the AI strip sits closer to the proof it leads into */
.ai { padding-bottom: clamp(2rem, 5vw, 4rem); }
.section.offer { padding-top: clamp(3rem, 6vw, 5rem); }

/* ============================================================
   S15: How-it-works step 5 (Handover) value demo - pure CSS,
   zero-JS, time-based loop like the hero sorter. Step 1 (Map)
   and step 2's chip system live with the S17 how-step block
   below, which is their only consumer.
   ============================================================ */
.demo-own svg { width: 34px; height: 34px; }
.demo-own .own-check { stroke-dasharray: 30; stroke-dashoffset: 30; animation: own-draw 7s linear infinite; }
@keyframes own-draw { 0%, 10% { stroke-dashoffset: 30; } 30%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }

@media (prefers-reduced-motion: reduce) {
  .demo-own .own-check { stroke-dashoffset: 0 !important; }
}

/* ============================================================
   S16 (reworked 2026-08-26, S15 Round 4): service fx panels -
   each card shows its own value loop: what arrives, what we do,
   what the owner gets. Pure CSS, per-element percentage
   keyframes on a shared scene loop (8s chase/remind, 9s voice),
   aria-hidden, reduced-motion = final state (stamp shown).
   Rows are reserved-height/fixed-position - opacity+transform
   only, so nothing ever shifts the panel's layout.
   ============================================================ */
.fx { position: relative; height: 118px; margin: 0 0 1rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--ground-2); overflow: hidden; font-family: "IBM Plex Mono", monospace; font-size: .8rem; }
.fx > span { position: absolute; opacity: 0; }
.fx-quote, .fx-record { top: 10px; left: 12px; right: 12px; padding: .35rem .55rem; border: 1.5px dashed var(--ink-3); border-radius: 6px; color: var(--ink-2); opacity: 1 !important; animation: none !important; }
/* fixed top reserves the bubble's own row so it can never collide with the quote/record row above it */
.fx-bubble { top: 44px; left: 12px; right: 30%; padding: .35rem .55rem; border-radius: 8px 8px 8px 2px; background: var(--ink); color: var(--ground-2); transform-origin: bottom left; }
.fx-stamp, .fx-booked, .fx-ready { right: 12px; bottom: 10px; padding: .3rem .6rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--mark); color: var(--ink); font-weight: 600; transform: rotate(-3deg); }
.fx-mic { flex: none; display: inline-block; vertical-align: middle; margin-right: .3rem; }
.fx-wave { top: 12px; left: 12px; display: inline-flex; gap: 3px; align-items: flex-end; height: 22px; }
/* wave bars pulse on their OWN short loop, independent of the scene story - a live waveform, never silent */
.fx-wave i { width: 4px; border-radius: 2px; background: var(--ink); height: 100%; transform-origin: bottom; animation: wave-pulse 1.1s ease-in-out infinite; }
.fx-wave i:nth-child(1) { animation-delay: 0s; }   .fx-wave i:nth-child(2) { animation-delay: .15s; }
.fx-wave i:nth-child(3) { animation-delay: .3s; }  .fx-wave i:nth-child(4) { animation-delay: .45s; }
.fx-wave i:nth-child(5) { animation-delay: .2s; }
@keyframes wave-pulse { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.fx > .fx-doc, .fx > .fx-wave, .fx > .fx-quote, .fx > .fx-record { opacity: 1; }
.fx > .fx-doc { width: calc(100% - 102px); right: auto; }
.fx > .fx-quote, .fx > .fx-record { animation: none; }
.fx-doc i { display: block; height: 7px; border-radius: 3px; background: var(--ink-3); margin: 7px 0 0; transform: scaleX(0); transform-origin: left; animation-duration: 9s; animation-timing-function: linear; animation-iteration-count: infinite; }
.fx-doc i:nth-child(2) { width: 78%; } .fx-doc i:nth-child(3) { width: 60%; }
.fx-doc i:nth-child(1) { animation-name: doc-line-1; } .fx-doc i:nth-child(2) { animation-name: doc-line-2; } .fx-doc i:nth-child(3) { animation-name: doc-line-3; }
/* doc lines grow at 15/35/55% of the 9s voice loop, hold, then reset with the scene */
@keyframes doc-line-1 { 0%, 15% { transform: scaleX(0); } 25%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes doc-line-2 { 0%, 35% { transform: scaleX(0); } 45%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes doc-line-3 { 0%, 55% { transform: scaleX(0); } 65%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* bubble "typing" entrance: scaleY grow + fade, holds, fades before the result stamp pops */
@keyframes bubble-solo  { 0%, 13% { opacity: 0; transform: scaleY(.6); } 25% { opacity: 1; transform: scaleY(1); } 46% { opacity: 1; transform: scaleY(1); } 54% { opacity: 0; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }
@keyframes bubble-first { 0%, 9%  { opacity: 0; transform: scaleY(.6); } 17% { opacity: 1; transform: scaleY(1); } 26% { opacity: 1; transform: scaleY(1); } 33% { opacity: 0; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }
@keyframes bubble-second { 0%, 35% { opacity: 0; transform: scaleY(.6); } 43% { opacity: 1; transform: scaleY(1); } 53% { opacity: 1; transform: scaleY(1); } 58% { opacity: 0; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }
/* result stamps: pop with a brief brightness flash, hold ~25% of the loop, fade for the reset */
@keyframes stamp-pop-60 { 0%, 57% { opacity: 0; transform: scale(1.3) rotate(-3deg); filter: brightness(1); } 60% { opacity: 1; transform: scale(1) rotate(-3deg); filter: brightness(1.5); } 64%, 88% { opacity: 1; transform: scale(1) rotate(-3deg); filter: brightness(1); } 94%, 100% { opacity: 0; transform: scale(1) rotate(-3deg); filter: brightness(1); } }
@keyframes stamp-pop-70 { 0%, 67% { opacity: 0; transform: scale(1.3) rotate(-3deg); filter: brightness(1); } 70% { opacity: 1; transform: scale(1) rotate(-3deg); filter: brightness(1.5); } 74%, 92% { opacity: 1; transform: scale(1) rotate(-3deg); filter: brightness(1); } 97%, 100% { opacity: 0; transform: scale(1) rotate(-3deg); filter: brightness(1); } }

/* every fx-remind instance runs 2s behind fx-chase (offset via delay, never via different %) so adjacent
   cards never move in lockstep; ai-grid tiles get an extra -1.5s step each so the grid feels alive */
.fx-remind { --remind-offset: -2s; }
.fx-bubble, .fx-stamp, .fx-booked, .fx-ready, .fx-doc i {
  animation-delay: calc(var(--remind-offset, 0s) + var(--tile-shift, 0s));
}
.ai-tile:nth-child(1) .fx { --tile-shift: 0s; }
.ai-tile:nth-child(2) .fx { --tile-shift: -1.5s; }
.ai-tile:nth-child(3) .fx { --tile-shift: -3s; }

/* chasing: quote sits, one message types in, PAID stamps at ~60%. Two messages (b1 then b2) wherever
   the panel isn't the single-bubble home how-list version - same content, fuller story. */
.fx-chase .fx-b1 { animation-name: bubble-solo; animation-duration: 8s; animation-timing-function: linear; animation-iteration-count: infinite; }
.fx-chase:not(.how-fx) .fx-b1 { animation-name: bubble-first; }
.fx-chase .fx-b2 { animation-name: bubble-second; animation-duration: 8s; animation-timing-function: linear; animation-iteration-count: infinite; }
.fx-chase .fx-stamp { animation-name: stamp-pop-60; animation-duration: 8s; animation-timing-function: linear; animation-iteration-count: infinite; }

/* reminders: record sits, one message types in (two side-by-side only in the full services panel), booked stamps at ~60% */
.fx-remind .fx-r1 { animation-name: bubble-solo; animation-duration: 8s; animation-timing-function: linear; animation-iteration-count: infinite; }
.fx-remind:not(.how-fx):not(.fx-compact) .fx-r1 { animation-name: bubble-first; }
.fx-remind .fx-r2 { left: 30%; right: 12px; border-radius: 8px 8px 2px 8px; background: var(--mark); color: var(--ink); animation-name: bubble-second; animation-duration: 8s; animation-timing-function: linear; animation-iteration-count: infinite; }
.fx-remind .fx-booked { animation-name: stamp-pop-60; animation-duration: 8s; animation-timing-function: linear; animation-iteration-count: infinite; }

/* voice: waveform never stops, doc lines type at 15/35/55%, "Ready to check" stamps at ~70% */
.fx-voice .fx-ready { animation-name: stamp-pop-70; animation-duration: 9s; animation-timing-function: linear; animation-iteration-count: infinite; }

@media (prefers-reduced-motion: reduce) {
  .fx > span { opacity: 1 !important; transform: none !important; animation: none !important; filter: none !important; }
  .fx-bubble { position: static; display: block; margin: 6px 12px 0; }
  .fx { height: auto; min-height: 118px; padding-bottom: 44px; }
  .fx-wave { position: static; display: inline-flex; margin: 10px 0 0 12px; }
  .fx-doc { position: static; margin: 8px 12px 0; }
  .fx-doc i { transform: scaleX(1) !important; }
}

/* compact fx variant for homepage tiles (S16.1) */
.fx-compact { height: 104px; font-size: .72rem; border-width: 1.5px; }
.fx-compact .fx-bubble { top: 40px; right: 18%; }
.fx-compact .fx-doc { left: 74px; }
@media (max-width: 720px) { .fx-compact { height: 96px; font-size: .66rem; } }

/* fx demo tag: marks panels as examples so demo amounts never read as pricing */
.fx::after { content: "example"; position: absolute; top: 6px; right: 8px; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ============================================================
   S17: how-it-works walkthrough (2026-08-24) - 5 concrete steps,
   each with its value animation. Vertical timeline, mobile-safe.
   ============================================================ */
.how-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 2rem; counter-reset: none; }
.how-step { display: grid; grid-template-columns: 44px 1fr; gap: .25rem 1.1rem; align-items: start; border: 2px solid var(--ink); border-radius: 12px; background: var(--ground-2); padding: 1.1rem 1.1rem 1.3rem; }
.how-num { font-family: "IBM Plex Mono", monospace; font-size: .85rem; color: var(--ink-2); border-bottom: 3px solid var(--mark); padding-bottom: .15rem; }
.how-text h3 { margin: .1rem 0 .35rem; font-size: 1.15rem; }
.how-text p { margin: 0; color: var(--ink-2); }
.how-fx, .how-step .demo-own { grid-column: 1 / -1; margin: .4rem 0 0; }
.how-step .demo-own { height: 52px; }
.how-step .demo-merge { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin: .4rem 0 0; }
.how-step .demo-merge .ch { position: static; border: 2px solid var(--ink); background: var(--ground-2); border-radius: 6px; width: 30px; height: 12px; animation: linear infinite; animation-duration: 6s; }
.how-step .demo-merge .ch.c1 { background: var(--mark); }
/* three channel chips converge and fade into .one, staggered so the merge reads left-to-right, then it flashes and holds */
.how-step .demo-merge .c1 { animation-name: merge-chip-1; }
.how-step .demo-merge .c2 { animation-name: merge-chip-2; }
.how-step .demo-merge .c3 { animation-name: merge-chip-3; }
@keyframes merge-chip-1 { 0%, 4% { opacity: 0; transform: translateX(16px) scale(.4); } 8% { opacity: 1; transform: translateX(0) scale(1); } 20% { opacity: 1; transform: translateX(0) scale(1); } 26% { opacity: 0; transform: translateX(16px) scale(.4); } 100% { opacity: 0; transform: translateX(16px) scale(.4); } }
@keyframes merge-chip-2 { 0%, 4% { opacity: 0; transform: translateX(10px) scale(.4); } 8% { opacity: 1; transform: translateX(0) scale(1); } 23% { opacity: 1; transform: translateX(0) scale(1); } 29% { opacity: 0; transform: translateX(10px) scale(.4); } 100% { opacity: 0; transform: translateX(10px) scale(.4); } }
@keyframes merge-chip-3 { 0%, 4% { opacity: 0; transform: translateX(4px) scale(.4); } 8% { opacity: 1; transform: translateX(0) scale(1); } 26% { opacity: 1; transform: translateX(0) scale(1); } 32% { opacity: 0; transform: translateX(4px) scale(.4); } 100% { opacity: 0; transform: translateX(4px) scale(.4); } }
.how-step .demo-merge .one { position: static; margin: 0; width: 84px; height: 14px; border-radius: 7px; border: 2px solid var(--ink); background: var(--mark); opacity: 0; transform: scale(.7); animation: merge-one-pop 6s linear infinite; }
@keyframes merge-one-pop { 0%, 34% { opacity: 0; transform: scale(.7); filter: brightness(1); } 38% { opacity: 1; transform: scale(1.14); filter: brightness(1.45); } 44%, 70% { opacity: 1; transform: scale(1); filter: brightness(1); } 80%, 100% { opacity: 0; transform: scale(.85); filter: brightness(1); } }
@media (min-width: 760px) {
  .how-step { grid-template-columns: 44px 1fr 300px; align-items: center; padding: 1.2rem 1.3rem; }
  .how-fx, .how-step .demo-merge, .how-step .demo-own { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .how-fx { height: 104px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .how-step .demo-merge .ch { opacity: 0 !important; }
  .how-step .demo-merge .one { opacity: 1 !important; transform: none !important; filter: none !important; }
  .how-step .demo-own .own-check { stroke-dashoffset: 0 !important; }
  .how-fx > span { opacity: 1 !important; transform: none !important; animation: none !important; position: static !important; }
  .how-fx { height: auto !important; }
  .how-fx .fx-wave, .how-fx .fx-doc { position: static !important; }
}
.how-lead { margin: .5rem 0 0; color: var(--ink-2); }

/* ============================================================
   S18: doodle sketch section (2026-08-24) - hand-drawn flow:
   human -> enquiries -> we chase -> customer pays.
   ============================================================ */
.doodle { padding-top: clamp(2rem, 5vw, 4rem); }
.doodle-board { margin-top: 2rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--ground-2); padding: 1rem .5rem; overflow: hidden; }
.doodle-board svg { display: block; width: 100%; height: auto; }
.doodle-human path, .doodle-human circle { stroke-dasharray: 320; stroke-dashoffset: 0; }
.d-arm { animation: doodle-point 4.5s var(--ease) infinite; transform-origin: 80px 140px; }
@keyframes doodle-point { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg); } }
.d-dot1 { animation: dot-flow-1 4.5s linear infinite; }
.d-dot2 { animation: dot-flow-2 4.5s linear 1.2s infinite; opacity: 0; }
/* the dot fades out exactly as it finishes travelling - no stop-in-place moment, so it never reads as "parked" */
@keyframes dot-flow-1 { 0% { opacity: 0; transform: translate(395px, 128px); } 6% { opacity: 1; } 26% { opacity: 1; transform: translate(510px, 127px); } 30% { opacity: 0; transform: translate(520px, 128px); } 100% { opacity: 0; transform: translate(395px, 128px); } }
@keyframes dot-flow-2 { 0% { opacity: 0; transform: translate(655px, 128px); } 8% { opacity: 1; } 30% { opacity: 1; transform: translate(750px, 122px); } 34% { opacity: 0; transform: translate(760px, 122px); } 100% { opacity: 0; transform: translate(655px, 128px); } }
@media (max-width: 720px) {
  .doodle-board svg { min-width: 640px; }
  .doodle-board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent;
    /* the right edge fades so a partial view reads as "more this way", not "broken" */
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
  .doodle-wrapper { position: relative; }
  .doodle-wrapper::after {
    content: "drag \2192";
    position: absolute; right: .6rem; top: .6rem;
    font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: .08em;
    color: var(--ink-3); text-transform: uppercase;
  }
}
@media (prefers-reduced-motion: reduce) {
  .d-arm, .d-dot1, .d-dot2 { animation: none !important; }
  .d-dot1 { transform: translate(460px, 128px); opacity: 1; }
  .d-dot2 { transform: translate(735px, 124px); opacity: 1; }
}

/* doodle draws itself while scrolling (view timeline); visible fallback */
@supports (animation-timeline: view()) {
  .doodle-board .dw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: doodle-draw linear both; animation-timeline: view(); }
  .doodle-board .sq1 { animation-range: entry 0% entry 12%; }
  .doodle-board .sq2 { animation-range: entry 4% entry 16%; }
  .doodle-board .sq3 { animation-range: entry 8% entry 22%; }
  .doodle-board .sq4 { animation-range: entry 14% entry 30%; }
  .doodle-board .sq5 { animation-range: entry 26% entry 38%; }
  .doodle-board .sq6 { animation-range: entry 34% entry 48%; }
  .doodle-board .sq7 { animation-range: entry 46% entry 56%; }
  .doodle-board .sq8 { animation-range: entry 52% entry 66%; }
  .doodle-board .df { opacity: 0; animation: doodle-fade linear both; animation-timeline: view(); }
  .doodle-board .sq4.df, .doodle-board .sq4 .df { animation-range: entry 22% entry 32%; }
  .doodle-board .sq6.df, .doodle-board .sq6 .df { animation-range: entry 44% entry 54%; }
  .doodle-board .sq8.df, .doodle-board .sq8 .df { animation-range: entry 60% entry 70%; }
  @keyframes doodle-draw { to { stroke-dashoffset: 0; } }
  @keyframes doodle-fade { to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .doodle-board .dw { stroke-dashoffset: 0 !important; }
  .doodle-board .df { opacity: 1 !important; }
}

/* ============================================================
   S19: services-page "three things we build" card scenes
   (Round 5b, 2026-08-28) - same time-based percentage-keyframe
   loop system as S15/S16/S17. One small scene per card, between
   its h2 and p, shape-only (ink strokes + --mark accents on
   --ground-2), staggered -0/-1.5/-3s via --card-shift so the
   grid never moves in lockstep. Motion is transform/opacity only:
   each scene sets container-type: inline-size so travel distances
   can use cqw (percent of the SCENE's own width) inside transform,
   never the layout-affecting `left`/`top` properties.
   ============================================================ */
.svc-fx { position: relative; height: 64px; container-type: inline-size; font-family: "IBM Plex Mono", monospace; }
.service-card:nth-child(1) .svc-fx { --card-shift: 0s; }
.service-card:nth-child(2) .svc-fx { --card-shift: -1.5s; }
.service-card:nth-child(3) .svc-fx { --card-shift: -3s; }
.svc-tick { width: 9px; height: 7px; flex: none; }
.svc-tag-text { font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }

/* --- #automation: chips travel a track; the exception chip stops for approval --- */
.svc-fx-automation .svc-track { position: absolute; left: 3%; right: 3%; top: 50%; height: 2px; background: var(--line-2); transform: translateY(-1px); }
.svc-fx-automation .svc-chip {
  position: absolute; top: 50%; left: 3%; margin-top: -6px;
  width: 20px; height: 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--ground-2);
  opacity: 0; animation-duration: 9s; animation-timing-function: linear; animation-iteration-count: infinite;
  animation-delay: var(--card-shift, 0s);
}
.svc-chip-a { border-style: dashed; animation-name: svc-chip-a; }
.svc-chip-b { animation-name: svc-chip-b; }
.svc-chip-c { animation-name: svc-chip-c; }
@keyframes svc-chip-a { 0%, 5% { opacity: 0; transform: translateX(0); } 9% { opacity: 1; transform: translateX(0); } 34% { opacity: 1; transform: translateX(78cqw); } 40%, 100% { opacity: 0; transform: translateX(78cqw); } }
@keyframes svc-chip-b { 0%, 20% { opacity: 0; transform: translateX(0); } 22% { opacity: 1; transform: translateX(0); } 40%, 64% { opacity: 1; transform: translateX(40cqw); } 82% { opacity: 1; transform: translateX(78cqw); } 88%, 100% { opacity: 0; transform: translateX(78cqw); } }
@keyframes svc-chip-c { 0%, 46% { opacity: 0; transform: translateX(0); } 50% { opacity: 1; transform: translateX(0); } 78% { opacity: 1; transform: translateX(78cqw); } 84%, 100% { opacity: 0; transform: translateX(78cqw); } }
/* the "person approves" badge pops directly above the exception chip's stop point (40cqw) while it holds */
.svc-fx-automation .svc-approve {
  position: absolute; left: calc(3% + 40cqw); top: 50%;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  padding: 2px 6px 2px 4px; background: var(--mark); border: 1.5px solid var(--ink); border-radius: 999px;
  opacity: 0; transform: translate(-50%, -18px) scale(.7);
  animation: svc-badge-pop 9s linear infinite; animation-delay: var(--card-shift, 0s);
}
.svc-fx-automation .svc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
@keyframes svc-badge-pop {
  0%, 42% { opacity: 0; transform: translate(-50%, -18px) scale(.7); filter: brightness(1); }
  44.5%   { opacity: 1; transform: translate(-50%, -26px) scale(1.12); filter: brightness(1.35); }
  48%, 58% { opacity: 1; transform: translate(-50%, -26px) scale(1); filter: brightness(1); }
  64%, 100% { opacity: 0; transform: translate(-50%, -18px) scale(.7); filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-fx-automation .svc-chip, .svc-fx-automation .svc-approve { animation: none !important; opacity: 1 !important; filter: none !important; }
  .svc-fx-automation .svc-chip-a { transform: translateX(78cqw) !important; }
  .svc-fx-automation .svc-chip-b { transform: translateX(40cqw) !important; }
  .svc-fx-automation .svc-chip-c { transform: translateX(14cqw) !important; }
  .svc-fx-automation .svc-approve { transform: translate(-50%, -26px) scale(1) !important; }
}

/* --- #apps: a small phone's screen assembles, then ships --- */
.svc-fx-apps { display: flex; align-items: center; gap: .65rem; }
.svc-fx-apps .svc-phone {
  position: relative; flex: none; width: 38px; height: 62px; box-sizing: border-box;
  border: 2px solid var(--ink); border-radius: 7px; background: var(--ground-2); padding: 6px 5px;
}
.svc-fx-apps .svc-bar { display: block; border-radius: 2px; background: var(--ink-3); opacity: 0; transform: scaleX(0); transform-origin: left; animation-timing-function: linear; animation-iteration-count: infinite; animation-delay: var(--card-shift, 0s); }
.svc-fx-apps .svc-ph-header { height: 5px; width: 100%; margin-bottom: 5px; background: var(--ink); animation-name: svc-ph-header; animation-duration: 8s; }
.svc-fx-apps .svc-ph-line1 { height: 4px; width: 88%; margin-bottom: 4px; animation-name: svc-ph-line1; animation-duration: 8s; }
.svc-fx-apps .svc-ph-line2 { height: 4px; width: 62%; margin-bottom: 5px; animation-name: svc-ph-line2; animation-duration: 8s; }
.svc-fx-apps .svc-ph-cta {
  position: absolute; left: 5px; right: 5px; bottom: 6px; height: 9px; border-radius: 3px; background: var(--mark);
  transform-origin: center; transform: scaleY(.4); animation-name: svc-ph-cta; animation-duration: 8s;
}
@keyframes svc-ph-header { 0%, 5% { opacity: 0; transform: scaleX(0); } 9% { opacity: 1; transform: scaleX(1); } 88% { opacity: 1; transform: scaleX(1); } 94%, 100% { opacity: 0; transform: scaleX(0); } }
@keyframes svc-ph-line1 { 0%, 15% { opacity: 0; transform: scaleX(0); } 20% { opacity: 1; transform: scaleX(1); } 88% { opacity: 1; transform: scaleX(1); } 94%, 100% { opacity: 0; transform: scaleX(0); } }
@keyframes svc-ph-line2 { 0%, 25% { opacity: 0; transform: scaleX(0); } 30% { opacity: 1; transform: scaleX(1); } 88% { opacity: 1; transform: scaleX(1); } 94%, 100% { opacity: 0; transform: scaleX(0); } }
@keyframes svc-ph-cta {
  0%, 36% { opacity: 0; transform: scaleY(.4); filter: brightness(1); }
  40%     { opacity: 1; transform: scaleY(1.25); filter: brightness(1.35); }
  44%, 86% { opacity: 1; transform: scaleY(1); filter: brightness(1); }
  92%, 100% { opacity: 0; transform: scaleY(.4); filter: brightness(1); }
}
.svc-fx-apps .svc-ship { display: inline-flex; align-items: center; gap: 4px; opacity: 0; transform: translateX(-6px) scale(.8); animation: svc-ph-tag 8s linear infinite; animation-delay: var(--card-shift, 0s); }
@keyframes svc-ph-tag {
  0%, 42% { opacity: 0; transform: translateX(-6px) scale(.8); }
  46%     { opacity: 1; transform: translateX(0) scale(1.1); }
  50%, 86% { opacity: 1; transform: translateX(0) scale(1); }
  92%, 100% { opacity: 0; transform: translateX(-6px) scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-fx-apps .svc-bar, .svc-fx-apps .svc-ship { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* --- #testing: find the break, snap it straight, draw the regression guard underneath --- */
@keyframes svc-mag-find {
  0%, 5%  { opacity: 0; transform: translateX(0); }
  9%      { opacity: 1; transform: translateX(0); }
  30%, 46% { opacity: 1; transform: translateX(44cqw); }
  52%, 100% { opacity: 0; transform: translateX(44cqw); }
}

/* ============================================================
   S20: webchat + ai-setup scenes (2026-08-28) - same time-based
   percentage-keyframe loop system as S16/S19. fx-chat: a visitor
   question pops in, a typing bubble becomes the answer, then a
   saved-enquiry tag confirms. fx-setup: three tasks feed into the
   AI box one at a time, then a done pill confirms. Reduced motion
   = final state everywhere; the S16 rule already force-locks every
   direct .fx > span to opacity 1 / no transform (a high-priority
   rule this section never fights), so hiding the typing bubble
   uses display:none instead - a property that rule never sets.
   ============================================================ */

/* --- #webchat: visitor asks, we answer, the enquiry is saved --- */
.fx-chat .fx-chat-q { top: 10px; left: 12px; right: 28%; padding: .35rem .55rem; border-radius: 8px 8px 8px 2px; background: var(--ground-2); border: 1.5px solid var(--ink); color: var(--ink); animation: chat-q-pop 7s linear infinite both; }
.fx-chat .fx-chat-typing { display: inline-flex; align-items: center; gap: 4px; right: 12px; bottom: 10px; padding: .4rem .55rem; border-radius: 8px 8px 2px 8px; background: var(--ground-2); border: 1.5px solid var(--line-2); animation: chat-typing-pop 7s linear infinite both; }
.fx-chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); display: inline-block; animation: chat-dot-bounce .9s ease-in-out infinite; }
.fx-chat-typing i:nth-child(1) { animation-delay: -.6s; }
.fx-chat-typing i:nth-child(2) { animation-delay: -.3s; }
.fx-chat-typing i:nth-child(3) { animation-delay: 0s; }
.fx-chat .fx-chat-a { left: 30%; right: 12px; bottom: 10px; padding: .35rem .55rem; border-radius: 8px 8px 2px 8px; background: var(--mark); color: var(--ink); animation: chat-a-pop 7s linear infinite both; }
.fx-chat .fx-chat-saved { left: 12px; bottom: 10px; padding: .3rem .6rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--mark); color: var(--ink); font-weight: 600; animation: chat-saved-pop 7s linear infinite both; }

@keyframes chat-q-pop { 0%, 4% { opacity: 0; transform: translateY(4px) scale(.9); } 9% { opacity: 1; transform: translateY(0) scale(1); } 86% { opacity: 1; transform: translateY(0) scale(1); } 93%, 100% { opacity: 0; transform: translateY(4px) scale(.9); } }
@keyframes chat-typing-pop { 0%, 27% { opacity: 0; transform: scale(.85); } 32% { opacity: 1; transform: scale(1); } 50% { opacity: 1; transform: scale(1); } 55%, 100% { opacity: 0; transform: scale(.85); } }
@keyframes chat-a-pop { 0%, 54% { opacity: 0; transform: translateY(4px) scale(.9); } 59% { opacity: 1; transform: translateY(0) scale(1); } 77% { opacity: 1; transform: translateY(0) scale(1); } 81%, 100% { opacity: 0; transform: translateY(4px) scale(.9); } }
@keyframes chat-saved-pop { 0%, 79% { opacity: 0; transform: translateY(4px) scale(.8) rotate(-3deg); filter: brightness(1); } 83% { opacity: 1; transform: translateY(0) scale(1.12) rotate(-3deg); filter: brightness(1.4); } 87%, 95% { opacity: 1; transform: translateY(0) scale(1) rotate(-3deg); filter: brightness(1); } 99%, 100% { opacity: 0; transform: translateY(4px) scale(.8) rotate(-3deg); filter: brightness(1); } }
@keyframes chat-dot-bounce { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-3px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .fx-chat .fx-chat-typing { display: none; }
  .fx-chat .fx-chat-a { bottom: 48px; }
}

/* --- #ai-setup: three tasks feed into the AI box one at a time, done pops in --- */
.fx-setup { container-type: inline-size; }
.fx-setup .fx-task { left: 10px; height: 8px; border-radius: 4px; background: var(--ink-3); }
.fx-setup .fx-t1 { top: 16px; width: 32%; animation: fx-t1 7s linear infinite both; }
.fx-setup .fx-t2 { top: 44px; width: 24%; animation: fx-t2 7s linear infinite both; }
.fx-setup .fx-t3 { top: 72px; width: 18%; animation: fx-t3 7s linear infinite both; }
.fx-setup .fx-setup-box { top: 50%; right: 10%; width: 30px; height: 30px; margin-top: -15px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--mark); color: var(--ink); font-weight: 700; font-size: .68rem; opacity: 1; animation: fx-setup-pulse 7s linear infinite both; }
.fx-setup .fx-setup-done { display: inline-flex; align-items: center; gap: 3px; right: 8%; bottom: 12px; padding: 2px 6px 2px 4px; background: var(--mark); border: 1.5px solid var(--ink); border-radius: 999px; animation: fx-setup-done-pop 7s linear infinite both; }
.fx-setup-text { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }

@keyframes fx-t1 { 0%, 4% { opacity: 0; transform: translateX(0) scale(1); } 8% { opacity: 1; transform: translateX(0) scale(1); } 30% { opacity: 1; transform: translateX(0) scale(1); } 38% { opacity: 0; transform: translateX(68cqw) scale(.3); } 100% { opacity: 0; transform: translateX(68cqw) scale(.3); } }
@keyframes fx-t2 { 0%, 20% { opacity: 0; transform: translateX(0) scale(1); } 24% { opacity: 1; transform: translateX(0) scale(1); } 50% { opacity: 1; transform: translateX(0) scale(1); } 58% { opacity: 0; transform: translateX(68cqw) scale(.3); } 100% { opacity: 0; transform: translateX(68cqw) scale(.3); } }
@keyframes fx-t3 { 0%, 42% { opacity: 0; transform: translateX(0) scale(1); } 46% { opacity: 1; transform: translateX(0) scale(1); } 70% { opacity: 1; transform: translateX(0) scale(1); } 78% { opacity: 0; transform: translateX(68cqw) scale(.3); } 100% { opacity: 0; transform: translateX(68cqw) scale(.3); } }
@keyframes fx-setup-pulse { 0%, 36% { transform: scale(1); } 38% { transform: scale(1.12); } 40%, 56% { transform: scale(1); } 58% { transform: scale(1.12); } 60%, 76% { transform: scale(1); } 78% { transform: scale(1.12); } 80%, 100% { transform: scale(1); } }
@keyframes fx-setup-done-pop { 0%, 80% { opacity: 0; transform: translateY(4px) scale(.8); } 84% { opacity: 1; transform: translateY(0) scale(1.12); } 88%, 96% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(4px) scale(.8); } }
