/* Ayutta — ayutta.com. Built by src/build.py; this file is fingerprinted at build.

   DESIGN SYSTEM (19 Nov 2026, review fixes). Every page uses these tokens; src/validate.py fails the build on a
   colour or font-size literal outside :root. Documented in brand/BRAND.md ("Web type scale").
   Type (Plus Jakarta Sans; IBM Plex Sans Thai for Thai):
     --fs-display 42→72 home H1 800 · --fs-h1 34→56 page H1, closing band 800 · --fs-h2 28→44 section titles 800
     --fs-h3 20→25 card/row headings, article H2 600 · --fs-lead 18→20 ledes, article H3 · --fs-body 16→17
     --fs-small 14 meta, nav · --fs-label 13 labels (uppercase +0.12em; Thai: no caps, no tracking)
   Space: --s-1…--s-10 = 4 8 12 16 24 32 48 64 96 128px. Radius: --r 18 · --r-sm 12 · --r-xs 8 · --r-pill.
   Primitives: .card (+ .card--link), .label (+ .eyebrow), .pill (+ --accent), .bullets (the orange dash), .sr, .lang-tag.
   Layout: .sec-head (5/7 with its lede) and .split (5/7) share one grid; .feats is the 2 × 2 grid of short topics.
   Motion: keyframe reveal on translate + opacity, paused until .is-in (see "Motion" below). */

/* ---------- Fonts (self-hosted WOFF2) ---------- */
/* ---------- Fonts (self-hosted WOFF2) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url(/fonts/plus-jakarta-sans-var-latin.woff2) format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  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: "Plus Jakarta Sans";
  src: url(/fonts/plus-jakarta-sans-var-latin-ext.woff2) format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url(/fonts/ibm-plex-sans-thai-400-thai.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url(/fonts/ibm-plex-sans-thai-600-thai.woff2) format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url(/fonts/ibm-plex-sans-thai-700-thai.woff2) format("woff2");
  font-weight: 700 800; font-style: normal; font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* Metric-matched fallback so the large H1 does not jump when the web font swaps in. */
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%; ascent-override: 95%; descent-override: 22%; line-gap-override: 0%;
}
/* ---------- Tokens: the only place a colour, size or radius literal may appear (src/validate.py lints the rest) ---------- */
:root {
  --night: #041E42;          /* Navy, PANTONE 282 C */
  --night-2: #0A2B57;        /* panels */
  --night-3: #0F3463;        /* raised panel */
  --deep: #021433;           /* deepest well: footer, alternate sections */
  --deep-2: #03183A;
  --line: #1E3D68;           /* decorative borders */
  --line-2: #2E5085;         /* hover borders */
  --line-strong: #5D7AA6;    /* control borders and diagram strokes, 3:1+ on Navy (WCAG 1.4.11) */
  --muted: #9AAAC6;          /* muted text on dark */
  --eyebrow: #ADBBD3;        /* eyebrow labels */
  --soft: #C9D3E4;           /* secondary copy on dark */
  --body: rgba(255, 255, 255, .82);  /* running copy in sections */
  --white: #FFFFFF;
  --orange: #FF8F1C;         /* Ayutta Orange, PANTONE 1495 C: the only accent */

  /* alphas: orange only for glow under an action, depth only from blue lift and the navy vignette */
  --orange-a08: rgba(255, 143, 28, .08);
  --orange-a12: rgba(255, 143, 28, .12);
  --orange-a25: rgba(255, 143, 28, .25);
  --orange-a40: rgba(255, 143, 28, .4);
  --orange-a60: rgba(255, 143, 28, .6);
  --lift-sm: rgba(40, 110, 200, .12);
  --lift-md: rgba(40, 110, 200, .24);
  --lift: rgba(40, 110, 200, .35);
  --lift-hi: rgba(70, 140, 225, .45);
  --vignette: rgba(2, 20, 51, .85);
  --night-0: rgba(4, 30, 66, 0);
  --glass: rgba(4, 30, 66, .82);
  --glass-up: rgba(3, 24, 52, .8);
  --chip: rgba(10, 43, 87, .92);
  --hair: rgba(46, 80, 133, .6);
  --white-a04: rgba(255, 255, 255, .05);
  --white-a35: rgba(255, 255, 255, .35);
  --shade: rgba(1, 8, 22, .7);       /* navy-black, never pure black */
  --shade-sm: rgba(1, 8, 22, .4);

  --glow: 0 10px 28px -10px var(--orange-a60), 0 2px 10px -2px var(--orange-a25);
  --glow-up: 0 0 0 4px var(--orange-a25), 0 14px 34px -10px var(--orange-a60), 0 8px 18px -8px var(--shade);
  --halo: radial-gradient(closest-side, var(--orange-a12), var(--orange-a08) 55%, transparent);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --card-bg: linear-gradient(180deg, #0C305E 0%, #0A2B57 100%);
  --card-sh: 0 24px 48px -24px var(--shade);
  --card-sh-up: 0 32px 56px -24px rgba(1, 8, 22, .8);
  --screen-sh: 0 40px 80px -36px rgba(1, 8, 22, .85), 0 0 120px -50px var(--lift-hi);
  --drop: drop-shadow(0 24px 30px var(--shade-sm));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");

  /* type scale */
  --fs-display: clamp(42px, 4.4vw + 10px, 72px);
  --fs-h1: clamp(34px, 3.4vw + 10px, 56px);
  --fs-h2: clamp(28px, 2.4vw + 10px, 44px);
  --fs-h3: clamp(20px, .8vw + 14px, 25px);
  --fs-lead: clamp(18px, .4vw + 15px, 20px);
  --fs-body: clamp(16px, .2vw + 15px, 17px);
  --fs-small: 14px;
  --fs-label: 13px;
  --lh-display: 1.04; --lh-h1: 1.08; --lh-h2: 1.12; --lh-h3: 1.25; --lh-lead: 1.5; --lh-body: 1.6; --lh-small: 1.5; --lh-label: 1.35;
  --ls-display: -.035em; --ls-h1: -.03em; --ls-h2: -.025em; --ls-h3: -.015em; --ls-label: .12em;
  --tt-label: uppercase;

  /* measures */
  --measure-text: 65ch;
  --measure-head: 20ch;
  --wrap: 1180px;

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --sec-y: var(--s-8);
  --sec-y-sm: var(--s-7);
  --head-gap: var(--s-7);
  --pad-card: var(--s-5);
  --gut: 20px;
  --tap: 44px;               /* minimum target */

  /* radius */
  --r: 18px;
  --r-sm: 12px;
  --r-xs: 8px;
  --r-pill: 999px;

  --nav-h: 68px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --font: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --thai: "IBM Plex Sans Thai", "Plus Jakarta Sans", "Jakarta Fallback", "Thonburi", "Leelawadee UI", system-ui, sans-serif;
  color-scheme: dark;
}
/* Thai: looser leading at every step, no negative tracking, no capitals */
:lang(th) {
  font-family: var(--thai);
  --lh-display: 1.28; --lh-h1: 1.25; --lh-h2: 1.3; --lh-h3: 1.4; --lh-lead: 1.65; --lh-body: 1.7; --lh-small: 1.6; --lh-label: 1.5;
  --ls-display: 0; --ls-h1: 0; --ls-h2: 0; --ls-h3: 0; --ls-label: 0;
  --tt-label: none;
}
:lang(th) p, :lang(th) li { overflow-wrap: anywhere; }
/* Thai headings break between phrases (the spaces), never inside a word; a run too long for the line still wraps */
:lang(th) :is(h1, h2, h3, .eyebrow, .label) { word-break: keep-all; line-break: strict; overflow-wrap: anywhere; }
@media (min-width: 640px) { :root { --gut: 32px; } }
@media (min-width: 960px) {
  :root { --gut: 40px; --sec-y: var(--s-9); --sec-y-sm: var(--s-8); --head-gap: var(--s-8); --pad-card: var(--s-6); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s-4)); scroll-padding-bottom: var(--s-9); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--white);
  font-family: var(--font); font-weight: 400; font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
:lang(th) body, body:lang(th) { font-family: var(--thai); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
main:focus { outline: none; }
address { font-style: normal; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: var(--r-xs); }
.skip { position: absolute; left: var(--s-3); top: -60px; z-index: 100; padding: var(--s-3) var(--s-4); background: var(--white); color: var(--night); font-weight: 600; border-radius: var(--r-xs); text-decoration: none; }
.skip:focus { top: var(--s-3); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.nw { white-space: nowrap; }
h1 .pp, h2 .pp { margin-left: -.09em; }   /* wide side bearing on . and , at display sizes */
.hl { color: var(--orange); }
.nojs-status { display: none; }
.nojs-status:target { display: block; }

/* ---------- Primitives ---------- */
/* .sr: visually hidden, still read */
.sr, .pains--on .ppanel__h, .form__status:empty {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* .label: the one small uppercase label; .eyebrow is a label with the orange dash */
.label, .eyebrow {
  font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: var(--tt-label);
  font-weight: 600; color: var(--eyebrow); text-wrap: balance;
}
.label--accent { color: var(--orange); }
.eyebrow { display: flex; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-4); }
.eyebrow::before { content: ""; width: 18px; height: 2px; margin-top: .6em; border-radius: 2px; background: var(--orange); flex: none; }
/* .lang-tag: a link to a page in another language carries a small tag, never "(English)" */
.lang-tag { display: inline-block; margin-left: var(--s-2); padding: 0 var(--s-2); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: var(--fs-label); line-height: 20px; letter-spacing: .06em; font-weight: 600; color: var(--muted); vertical-align: .15em; text-decoration: none; }
/* .card: one surface for every boxed component */
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--hi), var(--card-sh); }
.card--link { transition: border-color .2s, translate .25s ease, box-shadow .25s ease; }
.card--link:hover { translate: 0 -3px; box-shadow: var(--hi), var(--card-sh-up); border-color: var(--line-2); }
.card--link:focus-within { border-color: var(--orange); outline: 2px solid var(--orange); outline-offset: 3px; }
/* .pill: rounded control or tag */
.pill { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4);
  border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: transparent; color: var(--soft);
  font: inherit; font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.pill--accent { min-height: 0; padding: var(--s-1) var(--s-3); border: 1px solid var(--orange-a25);
  background: linear-gradient(var(--orange-a12), var(--orange-a12)), var(--night); color: var(--orange); }
/* .bullets: the one list marker, an orange dash */
.bullets { display: grid; gap: var(--s-3); }
.bullets > li, .prose ul > li { position: relative; padding-left: var(--s-5); }
.bullets > li::before, .prose ul > li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 2px; background: var(--orange); border-radius: 2px; }
.bullets strong { color: var(--white); }

/* ---------- Type scale ---------- */
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 800; max-width: var(--measure-head); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 800; max-width: var(--measure-head); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 600; }
.lede { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--soft); max-width: var(--measure-text); margin-top: var(--s-5); }

/* ---------- Links and buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 2px solid transparent;
  background: var(--orange); color: var(--night);
  font: inherit; font-size: var(--fs-body); font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: var(--glow), 0 6px 14px -8px var(--shade);
  transition: translate .2s ease, box-shadow .2s ease, background-color .2s, border-color .2s;
  max-width: 100%;
}
.btn:hover { translate: 0 -2px; box-shadow: var(--glow-up); }
.btn--lg { min-height: 56px; padding: 0 var(--s-6); }
.btn--sm { min-height: var(--tap); padding: 0 var(--s-4); font-size: var(--fs-small); box-shadow: 0 6px 18px -8px var(--orange-a60); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--white-a04); border-color: var(--soft); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; translate: none; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); align-items: center; }
/* one arrow link everywhere; .small-link is the same link in the quieter colour */
.arrow-link, .small-link, .svc__more {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap);
  font-size: var(--fs-body); font-weight: 600; color: var(--orange); text-decoration: none;
}
.small-link { color: var(--soft); }
.arrow-link:hover, .small-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.small-link:hover { color: var(--white); }
.inline-mail { color: var(--white); text-underline-offset: 4px; text-decoration-color: var(--white-a35); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.nav.is-scrolled { background: var(--glass-up); border-bottom-color: var(--hair); box-shadow: 0 12px 32px -16px var(--shade); }
.nav__in { display: flex; align-items: center; gap: var(--s-3); height: var(--nav-h); }
.nav__logo { flex: none; padding: var(--s-2) 0; margin-right: auto; }
.nav__logo img { height: 26px; width: auto; }
.nav nav { display: flex; align-items: center; }
.nav__quick { white-space: nowrap; }
.nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--white); cursor: pointer; flex: none; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav__links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); padding: var(--s-2) var(--gut) var(--s-5); background: var(--deep-2); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
.nav__links.is-open { display: block; }
.nav__links a:not(.btn) { display: block; padding: var(--s-3) 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
/* current page: colour plus a bar, never colour alone */
.nav__links a[aria-current="page"] { color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); padding-left: var(--s-3); }
.nav__lang > div { display: flex; gap: var(--s-1); padding-top: var(--s-3); }
.nav__links .nav__lang a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--soft); font-size: var(--fs-small); font-weight: 600; }
.nav__links .nav__lang a[aria-current="true"] { color: var(--night); background: var(--white); border-color: var(--white); }
.nav__cta-li { padding-top: var(--s-4); }
/* Submenus (Services, Industries): the label is a link to the index page, the chevron button opens the list (site.js) */
.nav__row { display: flex; align-items: stretch; }
.nav__row > a { flex: 1; }
.nav__sub-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--tap); min-height: var(--tap); padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--soft); cursor: pointer; }
.nav__sub-btn:hover { color: var(--white); }
.nav__chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s, translate .2s; }
.nav__sub-btn[aria-expanded="true"] .nav__chev { rotate: -135deg; translate: 0 2px; }
.nav__sub[hidden] { display: none !important; }
.nav__sub { padding: var(--s-1) 0 var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); }
.nav__links .nav__sub a:not(.btn) { font-weight: 500; color: var(--soft); border-bottom: 0; padding: var(--s-2) 0; min-height: var(--tap); display: flex; align-items: center; }
.nav__links .nav__row a[aria-current="true"] { color: var(--orange); }
.no-js .nav__sub-btn { display: none; }
/* no JS: the links sit in a row under the logo instead of behind the menu button */
.no-js .nav__toggle, .no-js .nav__quick { display: none; }
.no-js .nav__in { flex-wrap: wrap; height: auto; min-height: var(--nav-h); row-gap: 0; }
.no-js .nav nav { flex-basis: 100%; }
.no-js .nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); position: static; padding: 0 0 var(--s-3); background: none; border: 0; max-height: none; }
.no-js .nav__links a:not(.btn) { border: 0; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0; }
.no-js .nav__lang > div { padding-top: 0; }
.no-js .nav__cta-li { padding-top: 0; }

/* ---------- Sections ---------- */
.section { padding: var(--sec-y) 0; }
.section--tight { padding: var(--sec-y-sm) 0; }
.section--panel {
  background:
    radial-gradient(42% 32% at 86% 40%, var(--lift-sm), transparent 100%),
    linear-gradient(180deg, var(--night) 0, var(--deep-2) 120px, var(--deep) 55%, var(--deep-2) calc(100% - 120px), var(--night) 100%);
}
.section--panel + .section--panel { background: linear-gradient(180deg, var(--deep-2) 0, var(--deep) 50%, var(--night) 100%); }
/* one section head: eyebrow and title on the left, the lede (or an aside) on the right, 5/7 like .split */
.sec-head { margin-bottom: var(--head-gap); }
.sec-head .lede { margin-top: var(--s-5); }
.sec-head__aside .lede { margin-top: 0; }
.sec-head__aside .pill { margin-top: var(--s-4); }
.split .sec-head { margin-bottom: 0; }
@media (max-width: 959px) { .sec-head__aside { margin-top: var(--s-5); } }
@media (min-width: 960px) {
  .sec-head:has(> .lede, > .sec-head__aside) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-8); align-items: end; }
  .sec-head > :not(.lede, .sec-head__aside) { grid-column: 1; }
  .sec-head > :is(.lede, .sec-head__aside) { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; }
}

/* ---------- Grid of card-like links / items ---------- */
.svc, .ind, .post { position: relative; display: flex; flex-direction: column; padding: var(--pad-card); }
.svc__n { display: block; margin-bottom: var(--s-6); color: var(--muted); }
.svc h3, .ind h3, .post h3 { margin-bottom: var(--s-3); }
.svc h3 a, .ind h3 a, .post h3 a { text-decoration: none; }
.svc h3 a::after, .ind h3 a::after, .post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.svc h3 a:focus-visible, .ind h3 a:focus-visible, .post h3 a:focus-visible { outline: none; }
.svc p, .post p { color: var(--soft); }
.svc__more { margin-top: auto; padding-top: var(--s-4); }
.ind__head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-2); }
.ind__ic { width: 36px; height: 36px; color: var(--orange); flex: none; }
.ind__head h3 { margin-bottom: 0; }
.ind__for { color: var(--muted); font-size: var(--fs-small); margin-bottom: var(--s-5); }
.post { gap: var(--s-2); }
.post h3 { margin-bottom: 0; }
.post__meta { color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.services, .inds, .posts, .steps { display: grid; gap: var(--s-4); }
.topics { display: grid; gap: var(--s-5); }
.topics h3 { margin-bottom: var(--s-2); }
.topics ul { display: grid; gap: var(--s-2); }
.topics a { color: var(--soft); text-underline-offset: 3px; }
.step { position: relative; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--pad-card); }
.step p { color: var(--soft); }
h3.step__k { display: flex; align-items: center; gap: var(--s-3); color: var(--white); }
.step__k span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-small); font-weight: 600; border: 1.5px solid var(--line-strong); color: var(--soft); flex: none; }
.step:first-child .step__k span { border: 0; background: var(--orange); color: var(--night); }
.step__out strong { color: var(--white); }
.step .step__t { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.related { display: grid; gap: var(--s-3); align-content: start; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5); text-decoration: none; font-weight: 600; }
.related a > span:last-child { color: var(--orange); }
.related small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: var(--fs-small); }
@media (min-width: 640px) {
  .services, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .services, .inds, .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
}
/* The four stage cards: 1 column, 2 x 2 at 768px+, 4 at 1200px+ (always full width, see blocks.steps_section) */
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .steps { gap: var(--s-5); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* "Other services" / "Other industries" on service and industry pages (build.siblings_html) */
.sibs-sec { border-top: 1px solid var(--line); }
.sibs { display: grid; gap: var(--s-4); }
.sibs ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sibs .pill { text-decoration: none; transition: border-color .2s, color .2s; }
.sibs .pill:hover { color: var(--white); border-color: var(--white-a35); }
.steps__after { margin-top: var(--s-6); max-width: var(--measure-text); color: var(--soft); }
/* Home: three principles (1, then 3 at 960px+) and four pillars (1, 2 x 2 at 768px+, 4 at 1200px+) */
@media (max-width: 959px) { .services--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .services--4 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) and (max-width: 1199px) { .services--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .services--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.services--4 .ind__head { gap: var(--s-3); margin-bottom: var(--s-4); }
.services--4 .ind__head h3 { min-width: 0; hyphens: auto; }
/* A section that continues the one before it (home: "See it work" after the pillars) */
.section--follow { padding-top: 0; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; overflow-x: clip; isolation: isolate; padding: var(--s-6) 0 var(--s-7); }
.hero__fallback { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(80% 30% at 70% 80%, var(--lift), transparent 72%),
    radial-gradient(60% 20% at 100% 0%, var(--lift-sm), transparent 70%),
    radial-gradient(140% 100% at 50% 40%, transparent 55%, var(--vignette) 100%),
    var(--night); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .035; mix-blend-mode: overlay; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 180px; z-index: -1; background: linear-gradient(var(--night-0), var(--night)); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); max-width: var(--measure-head); margin-bottom: var(--s-5); }
.hero__sub { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--soft); max-width: var(--measure-text); }
.hero .ctas { position: relative; }
.hero .ctas::before { content: ""; position: absolute; z-index: -1; left: -30px; top: 50%; width: 300px; height: 120px; translate: 0 -50%; background: var(--halo); pointer-events: none; }
.hero__micro { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); }
/* product stack: the fleet window sits behind, the device composite in front; both stay inside the column */
.hstack { position: relative; margin: 0; padding-top: 6%; isolation: isolate; }
.hstack__back { position: absolute; top: 0; right: 0; width: 64%; z-index: -1; opacity: .55; filter: saturate(.8);
  -webkit-mask-image: linear-gradient(180deg, black 30%, transparent 80%); mask-image: linear-gradient(180deg, black 30%, transparent 80%); }
.hstack__back img { width: 100%; height: auto; }
.hstack__front { position: relative; width: 100%; height: auto; filter: drop-shadow(0 36px 40px var(--shade-sm)); }
.hstack figcaption { position: absolute; right: 0; top: 100%; margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); text-align: right; }
@media (max-width: 639px) {
  .hero .btn--lg { width: 100%; padding: 0 var(--s-4); }
  .hero .ctas::before { left: 50%; width: 260px; translate: -50% -50%; }
  .hstack figcaption { display: none; }
}
@media (min-width: 960px) {
  /* the copy sets the height: no forced full-screen band; the product takes ~55% of the row */
  /* first screen = the hero: fills the viewport under the header (capped), content centred; next section starts at the fold */
  .hero { display: grid; align-items: center; min-height: min(calc(100svh - var(--nav-h)), 900px); padding: var(--s-7) 0; }
  .hero > .wrap { width: 100%; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); }
  .hero h1 { max-width: none; }
  .hstack { margin-right: calc(-1 * var(--s-5)); }
  .hero__fallback { background:
    radial-gradient(46% 58% at 74% 50%, var(--lift), transparent 72%),
    radial-gradient(28% 36% at 92% 8%, var(--lift-sm), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, var(--lift-sm), transparent 70%),
    radial-gradient(130% 100% at 60% 30%, transparent 52%, var(--vignette) 100%),
    var(--night); }
}

/* ---------- Inner page hero ---------- */
.phero { position: relative; overflow: hidden; isolation: isolate; padding: var(--s-6) 0 var(--s-8);
  background:
    linear-gradient(180deg, var(--night-0) 72%, var(--night) 100%),
    radial-gradient(42% 70% at 88% 6%, var(--lift-md), transparent 72%),
    radial-gradient(120% 110% at 70% 0%, transparent 55%, var(--vignette) 100%),
    var(--night); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .03; mix-blend-mode: overlay; pointer-events: none; }
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hair) 30%, var(--hair) 70%, transparent); }
.phero .ctas { margin-top: var(--s-6); }
.phero__grid { display: grid; gap: var(--s-6); align-items: center; }
.phero__grid > div:first-child { align-self: start; }
.phero__art { display: none; width: 100%; justify-self: end; }
.phero__art svg { width: 100%; height: auto; }
.phero__art .mark { color: var(--line-strong); }
.phero__art .mark path:first-child { opacity: .55; }
.phero__art .mark .mark__join { stroke: var(--orange); }
.phero__shot { margin-top: var(--s-8); }
.phero--contact .lede { margin-top: var(--s-4); }
.phero--contact .contact { margin-top: var(--s-6); }
@media (min-width: 960px) {
  .phero { padding: var(--s-9) 0; }
  .phero--text { padding: var(--s-8) 0 var(--s-7); }
  .phero__grid:has(> .phero__art) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); }
  .phero__art { display: block; }
  .phero__art:has(.mark) { max-width: 300px; }
  .phero--contact .contact { margin-top: var(--s-7); }
}

/* ---------- Text blocks ---------- */
.split { display: grid; gap: var(--s-5); }
.split__body { color: var(--body); max-width: var(--measure-text); }
.split__body > * + * { margin-top: var(--s-4); }
.split__body strong { color: var(--white); }
.split__body h3 { color: var(--white); margin-top: var(--s-6); }
.split__body .bullets > li { color: var(--body); }
.nums { counter-reset: n; display: grid; gap: var(--s-4); }
.nums li { counter-increment: n; position: relative; padding-left: 40px; color: var(--body); }
.nums li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: var(--fs-label); font-weight: 600; color: var(--white); }
.nums strong { color: var(--white); }
.note { padding: var(--s-5); color: var(--soft); }
.note strong { color: var(--white); }
.note--accent { border-color: var(--orange-a25); background: linear-gradient(var(--orange-a08), var(--orange-a08)), var(--card-bg); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); } }

/* ---------- Feature grid: short topics as H3 items, 2 x 2 ---------- */
.feats { display: grid; gap: var(--s-6) var(--s-7); }
.feats > li { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.feats h3 { margin-bottom: var(--s-3); }
.feats p { color: var(--body); max-width: var(--measure-text); }
.feats p + p { margin-top: var(--s-3); }
.feats strong { color: var(--white); }
@media (min-width: 760px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .feats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Product screens: one frame everywhere ----------
   .shot > .screen: a 16:10 stage with one inner padding; the screen sits on the bottom edge.
   --window: a bare screenshot gets the one window frame. --brand: a logotype, centred. */
.shot { margin: 0; }
.shot figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); }
.screen { position: relative; display: grid; place-items: end center; aspect-ratio: 16 / 10; overflow: hidden;
  padding: 6% 8% 0;
  border-radius: var(--r); border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 40%, var(--lift-md), transparent 70%), var(--card-bg);
  box-shadow: var(--hi), var(--screen-sh); }
.screen img { width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: bottom; }
.screen--window img { border-radius: var(--r-xs) var(--r-xs) 0 0; border: 1px solid var(--hair); border-bottom: 0; box-shadow: 0 24px 48px -20px var(--shade); }
.screen--own img { filter: var(--drop); }
.screen--brand { place-items: center; padding: 0; }
.screen--brand img { width: 52%; }
.photo-band { position: relative; overflow: hidden; height: clamp(200px, 32vw, 420px); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--glass-up), transparent 30%, transparent 70%, var(--glass-up)); pointer-events: none; }

/* Illustrations */
.rivers { width: 100%; height: auto; }
.rivers path { fill: none; stroke-linecap: round; }
.rivers .r { stroke: var(--line-strong); stroke-width: 2.2; }
.rivers .m { stroke: var(--soft); stroke-width: 3; }
.rivers .pt { fill: var(--orange); }
.flow text { font-family: var(--font); font-weight: 600; fill: var(--soft); }
.flow .box { fill: var(--night-2); stroke: var(--line-strong); stroke-width: 1.5; }
.flow .hub { fill: var(--night-3); stroke: var(--orange); stroke-width: 2; }
.flow .ln { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.flow .ln--on { stroke: var(--orange); }
.flow .tip { fill: var(--line-strong); }
.flow .tip--on { fill: var(--orange); }
.flow .lbl { fill: var(--muted); font-weight: 400; }
.flow .hubt { fill: var(--white); font-weight: 800; }

/* ---------- Home: tools we built (editorial rows, alternating) ---------- */
.work { display: grid; gap: var(--s-8); }
.work__item { display: grid; gap: var(--s-5); align-items: center; }
.work__text h3 { margin-top: var(--s-3); }
.work__p { margin-top: var(--s-4); color: var(--body); max-width: var(--measure-text); }
.work__p strong { color: var(--white); }
.work__p a { color: var(--white); text-underline-offset: 3px; }
.work__p a:hover { color: var(--orange); }
.work__text .arrow-link { margin-top: var(--s-3); }
.work__media { transition: translate .35s var(--ease-out); }
.work__media .screen img { transition: filter .35s ease; }
.work__item:hover .work__media { translate: 0 -4px; }
.work__item:hover .screen img { filter: brightness(1.06); }
.work__item:hover .screen--own img { filter: var(--drop) brightness(1.06); }
.work__offer { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--soft); max-width: var(--measure-text); }
.work__offer .arrow-link { display: inline; min-height: 0; }
@media (min-width: 960px) {
  .work { gap: var(--s-9); }
  .work__item { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); }
  .work__item:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .work__item:nth-child(even) .work__media { order: 2; }
}

/* ---------- Home: sound familiar? ---------- */
.pains__lead { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 600; color: var(--soft); max-width: var(--measure-text); margin-bottom: var(--s-6); }
.pains__lead .hl { color: var(--white); }
.ptabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.ptabs[hidden] { display: none; }
.ptab { min-height: 48px; padding: 0 var(--s-4) 0 var(--s-3); cursor: pointer; }
.ptab svg { width: 22px; height: 22px; color: var(--muted); }
.ptab:hover { color: var(--white); border-color: var(--soft); }
.ptab[aria-selected="true"] { color: var(--night); background: var(--white); border-color: var(--white); }
.ptab[aria-selected="true"] svg { color: var(--night); }
.ppanel + .ppanel { margin-top: var(--s-7); }
.js .pains--on .ppanel + .ppanel { margin-top: 0; }
.ppanel[hidden] { display: none; }
.ppanel__h { margin-bottom: var(--s-2); color: var(--muted); }
.plist { display: grid; margin-bottom: var(--s-4); }
.plist > li { padding: var(--s-5) 0 var(--s-5) var(--s-6); border-top: 1px solid var(--line); font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 600; color: var(--white); }
.plist > li::before { left: 0; top: calc(var(--s-5) + .75em); width: 16px; height: 3px; }
@media (min-width: 960px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); } }

/* ---------- Chat to ERP: three messages flow into one checked line (canvas threads in site.js) ---------- */
.hx { position: relative; display: grid; justify-items: center; isolation: isolate; max-width: 880px; margin: 0 auto; }
.hx::before { content: ""; position: absolute; z-index: -2; left: 0; bottom: 0; width: 100%; height: 70%; background: radial-gradient(50% 50% at 50% 55%, var(--lift), transparent 72%); pointer-events: none; }
.hx-sec { overflow-x: clip; }
.hx__canvas { position: absolute; left: -5%; top: 0; width: 110%; height: 100%; z-index: -1; pointer-events: none; }
.no-js .hx__canvas { display: none; }
.hx__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); width: 100%; }
.hx__chip { min-width: 0; padding: var(--s-2) var(--s-3) var(--s-3); border-radius: var(--r-sm) var(--r-sm) var(--r-sm) 4px; background: var(--chip); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -14px var(--shade); }
.hx__src { display: flex; align-items: center; gap: var(--s-2); }
.hx__src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
.hx__msg { display: block; margin-top: 2px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--white); }
.hx__node { position: relative; display: flex; align-items: center; margin: var(--s-8) 0 var(--s-4); }
.hx__node span { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px var(--orange-a25), 0 0 30px 6px var(--orange-a40); }
.hx__node em { position: absolute; left: 30px; white-space: nowrap; font-style: normal; font-size: var(--fs-small); font-weight: 600; color: var(--soft); }
.hx__screen { margin: 0; width: 100%; }
.hx__screen img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px var(--shade-sm)); }
.hx__screen figcaption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--muted); text-align: right; }
@media (max-width: 599px) {
  /* chips stack like a chat, full text, no ellipsis */
  .hx__chips { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .hx__chip { width: 86%; }
  .hx__chip--2 { justify-self: end; border-radius: var(--r-sm) var(--r-sm) 4px var(--r-sm); }
  .hx__node { margin: var(--s-7) 0 var(--s-3); }
  .hx__node span { width: 14px; height: 14px; }
  .hx__node em { left: 24px; white-space: normal; width: max-content; max-width: 34vw; line-height: var(--lh-small); }
  .hx__screen figcaption { display: none; }
}

/* ---------- Founder (About) ---------- */
.fdr { display: grid; gap: var(--s-6); align-items: center; }
.fdr__photo { width: min(100%, 440px); }
.fdr__pic { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--card-sh); }
.fdr__pic img { width: 100%; height: auto; }
.fdr__name { margin-top: var(--s-3); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-6) 0; padding: var(--s-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figs b { display: block; font-size: var(--fs-h1); line-height: 1; letter-spacing: var(--ls-h1); font-weight: 800; color: var(--orange); }
.figs span { display: block; margin-top: var(--s-3); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--soft); }
.fdr__p { color: var(--body); max-width: var(--measure-text); margin-bottom: var(--s-3); }
@media (min-width: 960px) { .fdr { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); } }

/* ---------- Home: stages (timeline) ---------- */
.tl { position: relative; display: grid; }
.tl__s { position: relative; padding: 0 0 var(--s-6) 58px; }
.tl__s::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line-strong); transform-origin: 50% 0; }
.tl__s:last-child::before { display: none; }
.tl__dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: var(--fs-small); border: 2px solid var(--line-strong); background: var(--night); color: var(--soft); }
.tl__s--first .tl__dot { background: var(--orange); border-color: var(--orange); color: var(--night); box-shadow: 0 0 0 6px var(--orange-a12); }
.tl__tag { margin-bottom: var(--s-2); }
.tl__t { margin-top: var(--s-1); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.tl__s--first .tl__t { color: var(--orange); }
.tl__g { margin-top: var(--s-3); color: var(--body); max-width: var(--measure-text); }
.tl__g strong { color: var(--white); }
.tl__stop { margin-top: var(--s-2); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; justify-content: space-between; padding: var(--pad-card); }
.tl__stop p { color: var(--soft); max-width: var(--measure-text); }
.tl__stop strong { display: block; color: var(--white); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin-bottom: var(--s-1); }
.tl__stop .btn { flex: 0 1 auto; }
@media (min-width: 960px) {
  .tl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
  .tl__s { padding: 62px 0 0; }
  .tl__s::before { left: 40px; right: calc(-1 * var(--s-5)); top: 19px; bottom: auto; width: auto; height: 2px; transform-origin: 0 50%; }
  .tl__tag { position: absolute; top: var(--s-2); left: 52px; margin: 0; }
  .tl__stop { margin-top: var(--s-7); }
}

/* ---------- FAQ (in a .split: title left, questions right) ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background:
    linear-gradient(var(--orange), var(--orange)) center / 12px 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center / 2px 12px no-repeat;
}
.faq details[open] summary::after { background-size: 12px 2px, 2px 0; }
.faq summary:focus-visible { outline-offset: -2px; border-radius: var(--r); }
.faq .faq__a { padding: 0 var(--s-5) var(--s-5); color: var(--body); }
.faq .faq__a p + p { margin-top: var(--s-3); }

/* ---------- Closing band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: var(--s-10) 0;
  background: radial-gradient(60% 46% at 50% 52%, var(--lift-md), transparent 100%); }
.cta::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(560px, 120vw); height: 300px; translate: -50% -5%; background: var(--halo); }
.cta__in { display: flex; flex-direction: column; align-items: center; }
.cta .eyebrow { justify-content: center; }
.cta h2 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.cta p:not(.eyebrow) { margin-top: var(--s-5); color: var(--soft); font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: var(--measure-text); }
.cta .ctas { justify-content: center; }
.cta__mail { padding: var(--s-3) var(--s-1); font-weight: 600; color: var(--white); text-underline-offset: 5px; text-decoration-color: var(--white-a35); }
.cta p.cta__reply { margin-top: var(--s-4); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--soft); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: var(--s-7); }
.form { display: grid; gap: var(--s-5); padding: var(--pad-card); }
.field { display: grid; gap: var(--s-2); }
.field label, .field legend { font-weight: 600; font-size: var(--fs-small); }
.field .hint, .form .hint { color: var(--muted); font-size: var(--fs-small); font-weight: 400; }
.req { margin-left: var(--s-1); color: var(--soft); font-size: var(--fs-label); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--night); color: var(--white); font: inherit; font-size: var(--fs-body);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.field [aria-invalid="true"] { border-color: var(--orange); }
.field__err { color: var(--orange); font-size: var(--fs-small); font-weight: 600; }
.field__err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: var(--s-2); }
.more { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.more > summary { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); cursor: pointer; font-weight: 600; font-size: var(--fs-small); color: var(--soft); list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--orange); line-height: 1; }
.more[open] > summary::before { content: "−"; }
.more__body { display: grid; gap: var(--s-5); padding-top: var(--s-4); }
.checks { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.checks label { cursor: pointer; }
.checks input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--orange); }
.checks label:has(input:checked) { border-color: var(--orange); background: var(--orange-a12); color: var(--white); }
.checks label:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: var(--s-4); border-radius: var(--r-sm); font-weight: 600; }
.form__status.is-ok { background: var(--orange-a12); border: 1px solid var(--orange-a25); color: var(--white); }
.form__status.is-err { background: var(--night-3); border: 1px solid var(--orange); color: var(--white); }
.form__small { color: var(--muted); font-size: var(--fs-small); }
/* after sending: the form gives way to a panel with what happens next */
.done { padding: var(--pad-card); }
.done h3 { margin-bottom: var(--s-4); }
.done ol { counter-reset: n; display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.done li { counter-increment: n; position: relative; padding-left: 40px; color: var(--body); }
.done li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--orange); display: grid; place-items: center; font-size: var(--fs-label); font-weight: 600; color: var(--orange); }
.done p { color: var(--soft); }
.done.is-on { display: block; }
.contact__main { display: grid; gap: var(--s-5); align-content: start; }
.contact__main > [hidden] { display: none; }
.book { display: grid; gap: var(--s-3); justify-items: start; padding: var(--pad-card);
  border-color: var(--orange-a25); background: radial-gradient(70% 140% at 100% 0%, var(--lift-md), transparent 65%), var(--card-bg); }
.book__h { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 600; max-width: none; }
.book .btn { max-width: 100%; white-space: normal; }
.book__note { font-size: var(--fs-small); color: var(--muted); }
.book__alt { margin-top: var(--s-3); font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: 0; font-weight: 600; color: var(--soft); max-width: none; }
.contact__aside { display: grid; gap: var(--s-5); align-content: start; }
.contact__aside h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 600; max-width: none; margin-bottom: var(--s-3); }
.mailcard { padding: var(--pad-card); }
.mailcard a { font-size: var(--fs-lead); font-weight: 600; color: var(--white); text-underline-offset: 5px; text-decoration-color: var(--white-a35); word-break: break-word; }
.mailcard p { color: var(--soft); font-size: var(--fs-small); margin-top: var(--s-2); }
.mailcard p:has(a) { margin-top: var(--s-1); }
.who { padding: var(--pad-card); }
.who__n { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 600; }
.who__t { margin-top: var(--s-2); color: var(--soft); font-size: var(--fs-small); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; } }
@media (max-width: 959px) {
  .phero--contact .contact { display: flex; flex-direction: column; gap: var(--s-5); }
  .phero--contact .contact__aside { display: contents; }
}

/* ---------- Articles ---------- */
.article { padding: var(--sec-y-sm) 0 var(--sec-y); }
.prose { max-width: var(--measure-text); color: var(--body); }
.prose > * + * { margin-top: var(--s-5); }
/* article headings use the H3 and lead steps at 600 (BRAND.md: 800 is for display, H1 and section H2 only) */
.prose h2 { color: var(--white); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 600; max-width: none; margin-top: var(--s-7); }
.prose h3 { color: var(--white); font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 600; margin-top: var(--s-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose strong { color: var(--white); }
.prose a { color: var(--orange); text-underline-offset: 3px; font-weight: 600; }
.prose ul { display: grid; gap: var(--s-3); }
.prose ol { counter-reset: p; display: grid; gap: var(--s-3); }
.prose ol li { counter-increment: p; position: relative; padding-left: 38px; }
.prose ol li::before { content: counter(p); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: var(--fs-label); font-weight: 600; color: var(--white); line-height: 1; }
.prose .answer { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--white); padding-left: var(--s-4); border-left: 3px solid var(--orange); }
.byline { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-5); color: var(--muted); font-size: var(--fs-small); }
.byline a { color: var(--soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.prose th { color: var(--white); background: var(--night-2); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.article__end { margin-top: var(--s-8); }

/* ---------- 404 ---------- */
.nf { padding: var(--s-10) 0; }
.nf__more { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--muted); }

/* ---------- Footer ---------- */
.foot { position: relative; padding: var(--s-8) 0 var(--s-7); color: var(--muted); font-size: var(--fs-small); background: linear-gradient(180deg, var(--night) 0, var(--deep) 140px); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hair) 25%, var(--hair) 75%, transparent); }
.foot__grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
.foot__brand { grid-column: 1 / -1; }
.foot__brand img { height: 26px; width: auto; margin-bottom: var(--s-4); }
.foot__brand p { max-width: var(--measure-text); }
.foot__h { margin-bottom: var(--s-3); color: var(--white); }
.foot ul { display: grid; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--soft); text-decoration: none; }
.foot li a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.foot address { display: grid; gap: var(--s-1); }
.foot address a { color: var(--white); min-height: 36px; display: inline-flex; align-items: center; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .foot__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Breakpoints for the shell ---------- */
@media (max-width: 639px) { .nav__logo img { height: 24px; } }
@media (max-width: 379px) { .nav__quick { padding: 0 var(--s-3); } }
@media (max-width: 359px) { .nav__quick { display: none; } }
@media (min-width: 960px) {
  .nav__toggle, .nav__quick { display: none; }
  .nav__links { display: flex !important; position: static; padding: 0; background: none; border: 0; align-items: center; gap: 2px; max-height: none; overflow: visible; }
  .nav__links a:not(.btn) { padding: var(--s-2) var(--s-3); border: 0; font-size: var(--fs-small); font-weight: 600; color: var(--soft); border-radius: var(--r-pill); }
  .nav__links a:not(.btn):hover { color: var(--white); background: var(--white-a04); }
  .nav__links a[aria-current="page"] { color: var(--white); background: var(--white-a04); box-shadow: none; padding-left: var(--s-3); text-decoration: underline 2px var(--orange); text-underline-offset: 6px; }
  .nav__lang { margin-left: var(--s-2); }
  .nav__lang > div { padding: 0; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--r-pill); }
  .nav__links .nav__lang a:not(.btn) { min-width: 0; min-height: 36px; padding: 0 var(--s-3); border: 0; font-size: var(--fs-label); }
  .nav__links .nav__lang a[aria-current="true"] { color: var(--night); background: var(--white); }
  .nav__cta-li { padding: 0 0 0 var(--s-3); }
  .nav__links a, .nav__links .btn { white-space: nowrap; }
  .nav__home, .nav__mob { display: none; }  /* the logo links home and the button books the call on desktop */
  .nav__item { position: relative; }
  .nav__row { align-items: center; }
  .nav__sub-btn { width: 28px; min-height: 36px; margin-left: calc(-1 * var(--s-2)); border: 0; border-radius: var(--r-pill); }
  .nav__sub-btn:hover, .nav__sub-btn[aria-expanded="true"] { background: var(--white-a04); }
  .nav__links .nav__row a[aria-current="true"] { color: var(--white); background: var(--white-a04); text-decoration: underline 2px var(--orange); text-underline-offset: 6px; }
  .nav__sub { position: absolute; top: calc(100% + var(--s-2)); left: 0; z-index: 60; min-width: 260px; padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--r); background: var(--card-bg); box-shadow: var(--hi), var(--card-sh-up); }
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--s-3); }  /* hover bridge */
  .nav__links .nav__sub a:not(.btn) { min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-sm); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
  .nav__links .nav__sub a[aria-current="page"] { color: var(--white); text-decoration: none; box-shadow: inset 3px 0 0 var(--orange); }
  .nav__sub > li:last-child { margin-top: var(--s-1); padding-top: var(--s-1); border-top: 1px solid var(--line); }
  .foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
  .foot__brand { grid-column: auto; }
  .no-js .nav__in { flex-wrap: nowrap; height: var(--nav-h); }
  .no-js .nav nav { flex-basis: auto; }
  .no-js .nav__links { padding: 0; gap: 2px; }
}

/* Header at 960-1199px: tighter items so FR (and the submenu buttons) fit on one line */
@media (min-width: 960px) and (max-width: 1199px) {
  .nav__in { gap: var(--s-2); }
  .nav__links a:not(.btn) { padding: var(--s-2); }
  .nav__links .nav__lang a:not(.btn) { padding: 0 var(--s-2); }
  .nav__cta-li { padding-left: var(--s-2); }
}

/* =====================================================================
   Motion. CSS does the moving; site.js only adds classes.
   - Nothing is hidden without JS: the reveal needs html.js and the .rv class that site.js adds.
   - Reveal is a keyframe animation on `translate` and `opacity`, paused until .is-in, with fill-mode
     backwards: before it runs it holds the hidden first frame, after it ends the element's own styles
     apply again. Selectors sit in :where() and never set a component's transform, translate or transition.
   - Reduced motion: no .rv is added, and every rule below sits in (prefers-reduced-motion: no-preference).
   ===================================================================== */
@keyframes rv-rise { from { opacity: 0; translate: 0 var(--rv-y, 14px); } }
@keyframes rv-side { from { opacity: 0; translate: var(--rv-x, -36px) 0; } }
@keyframes rv-zoom { from { scale: 1.04; } }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { opacity: 0; translate: 0 24px; scale: .985; } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes drift { to { translate: 0 -28px; } }
@keyframes drift-back { to { translate: 0 -12px; } }
@keyframes pop { to { opacity: 1; } }
@keyframes hx-in { from { opacity: 0; translate: 0 -10px; } }
@keyframes hx-node { 0% { scale: .3; opacity: 0; } 55% { scale: 1.35; opacity: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes hx-resolve { from { opacity: 0; translate: 0 18px; scale: .965; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: a gentle load-in, copy first, then the product */
  :where(.hero__copy > *) { animation: rise .7s var(--ease-out) backwards; }
  :where(.hero__copy > :nth-child(2)) { animation-delay: .08s; }
  :where(.hero__copy > :nth-child(3)) { animation-delay: .16s; }
  :where(.hero__copy > :nth-child(4)) { animation-delay: .24s; }
  :where(.hero__copy > :nth-child(5)) { animation-delay: .32s; }
  :where(.hstack__front) { animation: settle .9s var(--ease-out) .25s backwards; }
  :where(.hstack__back) { animation: fade 1.1s ease .45s backwards; }
  :where(.hstack figcaption) { animation: fade .6s ease .9s backwards; }

  /* Section reveal: held on its first frame until site.js adds .is-in, a small stagger inside each group */
  :where(.js .rv) { animation: rv-rise .7s var(--ease-out) calc(var(--i, 0) * 70ms) backwards paused; }
  :where(.js.is-home .rv) { --rv-y: 20px; }
  :where(.js .rv.is-in) { animation-play-state: running; }
  /* Tool rows: the screen slides in from its own side, the image eases from 1.04 */
  :where(.js .work__media.rv) { animation-name: rv-side; animation-duration: .9s; }
  :where(.js .work__item:nth-child(even) .work__media.rv) { --rv-x: 36px; }
  :where(.js .work__media.rv .screen > img) { animation: rv-zoom 1.2s var(--ease-out) backwards paused; }
  :where(.js .work__media.rv.is-in .screen > img) { animation-play-state: running; }

  /* Chat to ERP: armed by site.js when it will play; plays once when the section is in view (~4.5 s with the threads) */
  :where(.js .hx.is-armed:not(.is-playing)) :is(.hx__chip, .hx__node em, .hx__screen, .hx__node span) { opacity: 0; }
  :where(.hx.is-playing .hx__chip) { animation: hx-in .6s var(--ease-out) backwards; }
  :where(.hx.is-playing .hx__chip--1) { animation-delay: .15s; }
  :where(.hx.is-playing .hx__chip--2) { animation-delay: .3s; }
  :where(.hx.is-playing .hx__chip--3) { animation-delay: .45s; }
  :where(.hx.is-playing .hx__node span) { animation: hx-node 1.1s ease 1.05s backwards; }
  :where(.hx.is-playing .hx__node em) { animation: fade .5s ease 1.3s backwards; }
  :where(.hx.is-playing .hx__screen) { animation: hx-resolve 1s var(--ease-out) 1.35s backwards; }

  /* Timeline: the connecting line draws step by step (pseudo-elements only) */
  .js .tl.rv-line .tl__s::before { transform: scaleY(0); transition: transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 160ms + .25s); }
  .js .tl.rv-line.is-in .tl__s::before { transform: none; }

  /* Sound familiar?: the list re-enters when the reader switches trade */
  :where(.pains--switched .ppanel:not([hidden]) .plist > li) { animation: rise .45s var(--ease-out) backwards; }
  :where(.pains--switched .ppanel:not([hidden]) .plist > li:nth-child(2)) { animation-delay: .05s; }
  :where(.pains--switched .ppanel:not([hidden]) .plist > li:nth-child(3)) { animation-delay: .1s; }
  :where(.pains--switched .ppanel:not([hidden]) .plist > li:nth-child(4)) { animation-delay: .15s; }

  /* Three rivers illustration */
  .js .rivers:not(.is-drawn) path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .rivers:not(.is-drawn) .pt { opacity: 0; }
  .js .rivers.is-drawn path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s ease forwards; }
  .js .rivers.is-drawn .m { animation-duration: .9s; animation-delay: 1.1s; }
  .js .rivers.is-drawn .pt { opacity: 0; animation: pop .4s ease 1.2s forwards; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 960px) {
  .js .tl.rv-line .tl__s::before { transform: scaleX(0); }
  .js .tl.rv-line.is-in .tl__s::before { transform: none; }
}
/* Scroll-driven where the browser has it: progressive enhancement only */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hstack { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hstack__back > img { animation: drift-back linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .js .tl.rv-line { view-timeline: --tl block; }
    .js .tl.rv-line .tl__s::before { transition: none; animation: draw-y linear both; animation-timeline: --tl; animation-range: entry 30% cover 40%; }
    .js .tl.rv-line .tl__s:nth-child(2)::before { animation-range: entry 50% cover 50%; }
    .js .tl.rv-line .tl__s:nth-child(3)::before { animation-range: entry 70% cover 60%; }
  }
  @media (prefers-reduced-motion: no-preference) and (min-width: 960px) {
    .js .tl.rv-line .tl__s::before { animation-name: draw-x; }
  }
}

/* Hover lifts are movement too */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card--link:hover, .btn:hover, .work__item:hover .work__media { translate: none; }
}

@media (forced-colors: active) {
  .btn, .btn--ghost, .nav__toggle, .pill, .lang-tag { border: 2px solid ButtonText; }
  .nav__bars, .nav__bars::before, .nav__bars::after { background: ButtonText; forced-color-adjust: none; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  :focus-visible { outline-color: Highlight; }
  .eyebrow::before, .bullets > li::before, .prose ul > li::before { background: CanvasText; forced-color-adjust: none; }
  .card, .screen { border: 1px solid CanvasText; }
  .ptab[aria-selected="true"] { outline: 3px solid Highlight; }
  .hx__chip { border: 1px solid CanvasText; }
  .hx__canvas { display: none; }
  .hero::before, .phero::before, .hero .ctas::before { display: none; }
}

@media print {
  .rv { animation: none !important; }
  .nav, .hero .ctas::before, .cta::before, .phero::before, .phero::after, .hero::before, .foot::before { display: none !important; }
  body { background: white; color: black; }
}

/* Hero H1: keep "Your operations," together only where it fits */
@media (max-width: 479px) { .hero h1 .nw { white-space: normal; } }

/* the section right after the hero needs less top space: the hero already ends with air */
@media (min-width: 960px) { .hero + .section { padding-top: var(--s-7); } }
