/* AppSheet Solutions. A ruled ledger on blue and white, with one pinned act on the whole site.
   ../sc/scrollcraft.css is the engine's floor and loads first; never edit it. Theme it here with its tokens.
   Every page reads and works without the script: content is hidden for an entrance only under html.js, and the inline
   fallback in <head> shows everything if the script never runs. The page always scrolls natively. */

/* ---- Tokens ------------------------------------------------------------------------------------------------- */
:root {
  --sc-canvas: #fbfcfe;
  --sc-surface: #fff;
  --sc-ink: #0c1524;
  --sc-ink-soft: #4d5a6e;      /* 6.6:1 on canvas */
  --sc-accent: #1967d2;        /* AppSheet blue, the darker one in the AppSheet icon: for text and white-on-blue. 5.2:1 on canvas, white on it 5.4:1 */
  --as-blue: #4285f4;          /* AppSheet blue, the main one in the AppSheet icon: for marks, lines, icons and large type only (3.5:1 on canvas) */
  --sc-accent-ink: #fff;
  --sc-font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --sc-font-text: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --sc-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sc-gutter: clamp(1rem, 3.2vw, 3rem);
  --sc-maxw: 84rem;
  --sc-section: clamp(4.5rem, 9vw, 9rem);
  --sc-shadow-color: 216 60% 20%;

  --line: #dfe4ec;
  --line-strong: #bdc6d3;
  --field-line: #858f9f;       /* 3.3:1 on white, for the edges of text fields */
  --tint: #eff3f9;
  --accent-soft: #e8f0fe;      /* AppSheet blue, faint */
  --accent-hover: #185abc;
  --danger: #c5221f;
  --night: #0a1c38;            /* the hard-cut ground of the rebuild and the contact form */
  --night-2: #12294d;
  --night-ink: #f1f5fb;
  --night-soft: #b4c3d9;       /* 9.5:1 on night */
  --night-accent: #4285f4;     /* AppSheet blue: 4.8:1 on night */
  --night-line: rgba(241, 245, 251, .18);
  --header-h: max(64px, 3.5rem);
  --x: 50;                     /* where the divider stands, in percent */
}

/* ---- Base --------------------------------------------------------------------------------------------------- */
html { scroll-behavior: auto; scroll-padding-top: calc(var(--header-h) + 20px); overflow-anchor: none; background: var(--sc-canvas); }
@media (prefers-reduced-motion: no-preference) { html.smooth-scroll { scroll-behavior: smooth; } }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
body { font-size: 1rem; line-height: 1.6; letter-spacing: 0; }
img, svg { height: auto; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sc-font-display); font-weight: 500; letter-spacing: -.028em; line-height: 1.08; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: inherit; }
h1 em { font-weight: 600; }
:focus-visible { outline-color: var(--as-blue); }
h2 { font-size: var(--sc-t-2xl); }
h3 { font-size: var(--sc-t-lg); line-height: 1.2; letter-spacing: -.018em; }
figure { margin: 0; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -6em; z-index: 100; padding: 10px 16px; background: var(--sc-ink); color: #fff; font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.ico-back { transform: rotate(180deg); }
.ico-accent { stroke: var(--as-blue); }
.section { padding-block: var(--sc-section); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem) var(--sc-section); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head-row .section-head { margin-bottom: 0; }
.section-intro { margin: 1rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); }
.square-list li { position: relative; padding-left: 16px; color: var(--sc-ink); font-size: var(--sc-t-sm); line-height: 1.45; }
.square-list li + li { margin-top: .625rem; }
.square-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--as-blue); }

/* A flow entrance is the engine's. It waits only for a running script. */
html:not(.js) [data-sc-in], html:not(.js) [data-sc-stagger] > *, .reveal-all [data-sc-in], .reveal-all [data-sc-stagger] > * { opacity: 1; transform: none; }

/* ---- Buttons and links -------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .5rem 1.75rem;
  border: 1px solid transparent; background: var(--sc-accent); color: var(--sc-accent-ink);
  font: 500 1rem/1.25 var(--sc-font-text); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-medium { min-height: 44px; padding-inline: 1.5rem; font-size: var(--sc-t-sm); }
.btn-small { min-height: 36px; padding-inline: 1.125rem; font-size: var(--sc-t-sm); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--sc-accent); font-weight: 500; text-decoration: none; }
.link-arrow .ico { transition: transform 160ms var(--sc-ease-out); }
@media (hover: hover) { .link-arrow:hover .ico { transform: translateX(3px); } .link-arrow:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; } }
.link-plain { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--sc-ink-soft); font: inherit; font-size: var(--sc-t-sm); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; cursor: pointer; transition: color 160ms var(--sc-ease-out); }
.link-plain:hover { color: var(--sc-ink); }
.link-night { display: flex; color: var(--night-soft); }
.link-night:hover { color: var(--night-ink); }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; }

/* ---- Header: a plain bar with the owner's menu titles --------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--sc-canvas); box-shadow: 0 1px 0 transparent; transition: box-shadow 160ms var(--sc-ease-out); }
.nav-ready .site-header { position: fixed; left: 0; right: 0; }
.nav-ready .site-header + main { padding-top: var(--header-h); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--sc-ink); font: 500 1.0625rem/1.2 var(--sc-font-display); letter-spacing: -.015em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border: 0; background: transparent; color: var(--sc-ink-soft);
  font: 400 var(--sc-t-sm)/20px var(--sc-font-text); text-decoration: none; cursor: pointer; transition: color 160ms var(--sc-ease-out);
}
.nav-link:hover, .nav-trigger[aria-expanded="true"] { color: var(--sc-ink); }
.nav-link[aria-current="page"] { color: var(--sc-ink); }
.nav-chevron { width: 12px; height: 12px; margin-left: 4px; transition: transform 240ms var(--sc-ease-out); }
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-has-menu { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 2; width: 268px; padding: 8px; border: 1px solid var(--line); background: var(--sc-surface); box-shadow: var(--sc-e2);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 180ms var(--sc-ease-out), transform 180ms var(--sc-ease-out), visibility 0s 180ms;
}
.nav-menu::before { content: ""; position: absolute; left: -1px; right: -1px; top: -13px; height: 12px; }
.nav-menu li + li { margin-top: 2px; }
html:not(.nav-ready) .nav-has-menu:hover .nav-menu, html:not(.nav-ready) .nav-has-menu:focus-within .nav-menu, .nav-has-menu.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-sub { display: flex; align-items: center; gap: 12px; padding: 8px; color: var(--sc-ink); text-decoration: none; transition: background-color 160ms var(--sc-ease-out); }
.nav-sub:hover { background: var(--tint); }
.nav-sub b { display: block; font-size: var(--sc-t-sm); font-weight: 500; line-height: 20px; }
.nav-sub small { display: block; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); line-height: 16px; }
.nav-sub-ico { width: 20px; height: 20px; stroke-width: 1.3; }
.header-cta { flex: none; }
.nav-panel-cta, .menu-toggle { display: none; }

/* Below 1024 px: the name and a menu button, and the links in a panel. Without the script the links sit on a second row. */
@media (max-width: 63.9375em) {
  html:not(.nav-ready) .nav-menu { width: min(268px, calc(100vw - 88px)); }
  .header-row { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; margin-inline: -12px; padding-bottom: 8px; }
  .nav-ready .header-row { flex-wrap: nowrap; }
  .nav-ready .header-cta { display: none; }
  .nav-ready .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--sc-ink); cursor: pointer; }
  .menu-lines { position: relative; display: block; width: 18px; height: 1.5px; background: currentColor; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--sc-ink); transition: transform 240ms var(--sc-ease-out), top 240ms var(--sc-ease-out); }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  .menu-open .menu-lines { background: transparent; }
  .menu-open .menu-lines::before { top: 0; transform: rotate(45deg); }
  .menu-open .menu-lines::after { top: 0; transform: rotate(-45deg); }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-ready .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 40; width: auto; max-height: calc(100svh - var(--header-h)); margin: 0; padding: 16px var(--sc-gutter) 24px; overflow-y: auto; background: var(--sc-canvas); box-shadow: 0 1px 0 var(--line);
    opacity: 0; visibility: hidden; transition: opacity 180ms var(--sc-ease-out), visibility 0s 180ms;
  }
  .nav-ready.menu-open .site-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-ready .nav-list { display: block; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .nav-ready .nav-link { display: flex; justify-content: space-between; width: 100%; min-height: 48px; padding: 12px 0; color: var(--sc-ink); font-size: 1rem; font-weight: 500; line-height: 24px; }
  .nav-ready .nav-chevron { width: 16px; height: 16px; color: var(--sc-ink-soft); }
  .nav-ready .nav-menu { position: static; display: none; width: auto; padding: 0 0 12px; border: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-ready .nav-has-menu.is-open .nav-menu { display: block; }
  .nav-ready .nav-menu::before { display: none; }
  .nav-ready .nav-sub { padding: 8px 4px; }
  .nav-ready .nav-panel-cta { display: flex; width: 100%; margin-top: 16px; }
  html:not(.nav-ready) .site-header { position: static; }
  html:not(.nav-ready) .header-row { padding-top: 14px; }
}

/* ---- Hero: one plain sentence, and real work lying at three depths ---------------------------------------------- */
.hero { position: relative; padding-block: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 4vh, 3rem); overflow: clip; }
.hero h1 em { display: block; }
.hero h1 { max-width: 15.5em; font-size: clamp(2.5rem, 1.3rem + 5vw, 5.25rem); line-height: 1.02; letter-spacing: -.04em; }
.hero-kicker { display: block; margin-bottom: .85rem; color: var(--sc-ink-soft); font: 500 var(--sc-t-sm)/1.4 var(--sc-font-text); letter-spacing: .01em; }
.hero-row { display: grid; gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(1.5rem, 4vh, 3rem); }
.hero-lead { max-width: 30em; margin: 0 0 1.5rem; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.45; text-wrap: pretty; }
.hero-actions .btn, .header-cta { box-shadow: 0 8px 18px -12px rgb(var(--sc-shadow-color) / .65); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; }
.hero-planes { position: relative; height: clamp(16rem, 62vw, 24rem); }
.plane-slot { position: absolute; display: block; }
.plane-slot:hover, .plane-slot:focus-visible { z-index: 3; }
.plane-slot:focus-visible { outline-offset: 2px; }
.plane-tilt { display: block; transform: translate3d(calc(var(--px, 0) * var(--pd, 0) * 1px), calc(var(--py, 0) * var(--pd, 0) * 1px), 0); transition: transform 400ms var(--sc-ease-out); }
.plane-slot img { display: block; width: 100%; height: auto; box-shadow: var(--sc-e3); transition: filter 200ms var(--sc-ease-out), opacity 200ms var(--sc-ease-out); }
.plane-slot:hover img, .plane-slot:focus-visible img { filter: none; opacity: 1; }
.plane-far { width: 62%; right: -6%; top: 0; --pd: 4; }
.plane-far img { filter: saturate(.75) blur(.6px); opacity: .72; box-shadow: var(--sc-e1); }
.plane-mid { width: 62%; left: 12%; top: 10%; --pd: 9; }
.plane-mid img { box-shadow: var(--sc-e2); }
.plane-near { width: 56%; left: -3%; top: 34%; --pd: 16; }
.hero-note { margin: 1rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); }
@media (min-width: 900px) {
  .hero-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .hero-planes { height: clamp(21rem, calc(100svh - 29rem), 34rem); }
  .plane-far { width: 54%; right: -1%; top: 0; }
  .plane-mid { width: 56%; left: 20%; top: 8%; }
  .plane-near { width: 50%; left: 0; top: 22%; }
}

/* ---- The numbers strip -------------------------------------------------------------------------------------- */
.numbers { position: relative; z-index: 1; background: var(--sc-canvas); border-block: 1px solid var(--line); }
.numbers-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.numbers-row > li { padding: 1.25rem 0; }
.numbers-row > li + li { padding-left: 1rem; }
.numbers-row > li:nth-child(odd) { padding-left: 0; }
.numbers-row > li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1rem; }
.numbers-row > li:nth-child(n+3) { border-top: 1px solid var(--line); }
.numbers-row strong { display: block; font: 500 clamp(1.375rem, 1.2rem + .8vw, 1.875rem)/1.15 var(--sc-font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.numbers-row span { display: block; margin-top: 4px; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.4; }
.numbers-tools strong { font-size: var(--sc-t-sm) !important; font-family: var(--sc-font-text) !important; font-weight: 500 !important; letter-spacing: 0 !important; line-height: 1.4 !important; }
.numbers-tools { grid-column: 1 / -1; }
@media (min-width: 56.25em) {
  .numbers-row { grid-template-columns: repeat(4, auto); justify-content: start; }
  .numbers-row strong { white-space: nowrap; }
  .numbers-row > li { padding: 1.25rem 1.5rem; border-top: 0 !important; }
  .numbers-row > li:first-child { padding-left: 0; }
  .numbers-row > li:not(:first-child) { border-left: 1px solid var(--line); padding-left: 1.5rem; }
  .numbers-tools { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line) !important; }
}
@media (min-width: 77.5em) {
  .numbers-row { grid-template-columns: auto auto auto auto minmax(0, 1fr); }
  .numbers-tools { grid-column: auto; padding-left: 1.5rem !important; border-left: 1px solid var(--line) !important; border-top: 0 !important; }
}

/* ---- Services: three ruled rows --------------------------------------------------------------------------------- */
.service-rows { border-top: 1px solid var(--line-strong); }
.service { display: grid; gap: 1rem; padding-block: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.service h3 { font-size: var(--sc-t-xl); letter-spacing: -.024em; }
.service-problem { color: var(--sc-ink); font-weight: 500; }
.service-body p { margin-bottom: .5rem; color: var(--sc-ink-soft); }
.service-body .service-problem { color: var(--sc-ink); }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; margin: .25rem 0 0 !important; }
.service h3 { transition: color 160ms var(--sc-ease-out); }
.art-box, .art-line, .art-fill { transition: stroke 160ms var(--sc-ease-out), fill 160ms var(--sc-ease-out); }
@media (hover: hover) { .service:hover h3 { color: var(--sc-accent); } .service:hover .art-fill { fill: var(--as-blue); } .service:hover .art-line, .service:hover .art-box { stroke: var(--as-blue); } }
.service-art { display: none; }
.service-art svg { width: 100%; }
.art-box, .art-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.art-soft { fill: var(--tint); }
.art-fill { fill: var(--accent-soft); }
.art-box { fill: var(--sc-surface); }
@media (min-width: 900px) {
  .service { grid-template-columns: 3fr 4fr 4fr 2fr; gap: 2rem; align-items: start; }
  .service-art { display: block; }
}

/* ---- One line, on purpose ------------------------------------------------------------------------------------- */
.quiet { display: grid; align-items: center; min-height: 64vh; padding-block: 3rem; }
.quiet-line { margin: 0; max-width: 16em; font: 500 var(--sc-t-2xl)/1.1 var(--sc-font-display); letter-spacing: -.03em; text-wrap: balance; }

/* ---- The rebuild. Without the script or with reduced motion nothing is pinned and both versions show -------------- */
.rebuild { background: var(--night); color: var(--night-ink); overflow-x: clip; }
.rebuild ::selection { background: var(--night-accent); color: var(--night); }
.rebuild :focus-visible { outline-color: var(--night-accent); }
.rebuild-stage { background: var(--night); }
.rebuild-grid { display: grid; gap: 1.5rem; padding-block: 3.5rem; }
.rebuild h2 { font-size: var(--sc-t-2xl); }
.rebuild h2 em { color: var(--night-accent); }
.beats { margin-top: 1.25rem; border-top: 1px solid var(--night-line); }
.beat { padding: .625rem 0 .625rem .875rem; border-bottom: 1px solid var(--night-line); box-shadow: inset 2px 0 0 transparent; transition: box-shadow 200ms var(--sc-ease-out); }
.beat b { display: block; font: 500 var(--sc-t-base)/1.3 var(--sc-font-display); letter-spacing: -.012em; }
.beat span { display: block; color: var(--night-soft); font-size: var(--sc-t-sm); line-height: 1.4; }
.beat.is-on { box-shadow: inset 2px 0 0 var(--night-accent); }
.beat.is-on b { color: var(--night-accent); }
.rebuild-end { margin: 1rem 0 0; color: var(--night-soft); font-size: var(--sc-t-sm); line-height: 1.45; transition: color 200ms var(--sc-ease-out); }
.rebuild-end.is-on { color: var(--night-ink); }
.rebuild-end .link-arrow { display: flex; color: var(--night-accent); }
.rebuild-ask { background: var(--night-accent); color: var(--night); }
.rebuild-ask:hover { background: var(--night-ink); }
@media (max-width: 899px) { .split-on .rebuild-ask { display: none; } }
.split-note { margin: .5rem 0 0; color: var(--night-soft); font-size: var(--sc-t-xs); }
.split-tools { margin: .5rem 0 0; display: none; align-items: center; gap: 1rem; color: var(--night-soft); font-size: var(--sc-t-xs); }
.split-range { flex: 1; min-width: 0; height: 24px; margin: 0; accent-color: var(--night-accent); cursor: ew-resize; }
.split-range-label { white-space: nowrap; }

.split-box { display: grid; gap: 1rem; position: relative; }
.version { min-width: 0; }
.version-label { margin: 0 0 .5rem; color: var(--night-soft); font-size: var(--sc-t-xs); font-weight: 500; }
.split-line { display: none; }

/* Both versions use the same measures, so a row lines up with itself on either side of the divider. */
.sample-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .875rem; line-height: 1.25; }
.sample-table th { height: 2.25rem; font-weight: 500; text-align: left; white-space: nowrap; }
.sample-table td { height: 2.875rem; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-table .col-supplier { width: 7rem; }
.sample-table .col-status { width: 7rem; }
.sample-table .col-price { width: 6.5rem; }
.col-price { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The AppSheet side: plain, and working. It is not mocked or made to look broken. */
.old-app { display: flex; flex-direction: column; min-height: 18rem; background: #eef1f5; color: #1c2533; }
.old-bar { display: flex; align-items: center; height: 3.25rem; margin: 0; padding: 0 .75rem; background: #d9dfe7; font-size: .875rem; font-weight: 500; }
.old-app .sample-table th, .old-app .sample-table td { padding: 0 .75rem; border-top: 1px solid #d9dfe7; }
.old-app .sample-table th { color: #47536a; font-size: .75rem; }
.old-app .sample-table b { font-weight: 400; color: #47536a; }
.old-tabs { display: flex; margin-top: auto; border-top: 1px solid #d9dfe7; background: #e4e8ee; color: #47536a; font-size: .75rem; }
.old-tabs li { flex: 1; padding: .5rem; text-align: center; }

/* The custom side: the same rows, and it really runs. */
.new-app { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); min-height: 18rem; background: var(--sc-surface); color: var(--sc-ink); font-size: .8125rem; line-height: 1.3; }
.new-rail { background: var(--tint); border-right: 1px solid var(--line); }
.new-rail ul { padding-inline: .375rem; }
.new-name { display: flex; align-items: center; height: 3.25rem; margin: 0; padding-left: .75rem; font: 500 .875rem/1.2 var(--sc-font-display); letter-spacing: -.012em; }
.view-btn { display: block; width: 100%; min-height: 36px; padding: .375rem .5rem; border: 0; background: transparent; color: var(--sc-ink-soft); text-align: left; cursor: pointer; font-size: .8125rem; transition: background-color 160ms var(--sc-ease-out); }
.view-btn:hover { background: var(--line); }
.view-btn[aria-pressed="true"] { background: var(--sc-accent); color: #fff; }
.new-main { display: flex; flex-direction: column; min-width: 0; }
.new-tools { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem auto; align-items: center; gap: .625rem; height: 3.25rem; padding: 0 .75rem; }
.new-links { display: flex; flex-wrap: wrap; gap: .125rem .625rem; color: var(--sc-ink-soft); font-size: .75rem; }
.new-links li { position: relative; padding-left: .625rem; white-space: nowrap; }
.new-links li::before { content: ""; position: absolute; left: 0; top: .4em; width: 5px; height: 5px; background: var(--as-blue); }
.new-search { margin: 0; }
.new-search input { display: block; width: 100%; min-height: 32px; padding: 4px 8px; border: 1px solid var(--field-line); background: var(--sc-surface); color: var(--sc-ink); font-size: 16px; line-height: 1.2; }
@media (min-width: 900px) { .new-search input { font-size: .8125rem; } }
.new-search input:focus { outline: none; border-color: var(--as-blue); box-shadow: 0 0 0 1px var(--as-blue); }
.new-roles { display: flex; border: 1px solid var(--line-strong); }
.role-btn { min-height: 30px; padding: 4px 8px; border: 0; background: transparent; color: var(--sc-ink-soft); font-size: .75rem; cursor: pointer; }
.role-btn[aria-pressed="true"] { background: var(--sc-ink); color: #fff; }
.new-app :focus-visible { outline-color: var(--as-blue); }
.new-view { flex: 1; min-height: 0; }
.new-app .sample-table th, .new-app .sample-table td { padding: 0 .75rem; border-top: 1px solid var(--line); }
.new-app .sample-table th { color: var(--sc-ink-soft); font-size: .75rem; }
.new-app .sample-table b { font-weight: 500; }
.hide-prices [data-price] { color: var(--sc-ink-soft); }
.chip { display: inline-block; padding: 2px 7px; background: var(--tint); color: var(--sc-ink); font-size: .75rem; white-space: nowrap; }
.chip-new { background: var(--accent-soft); color: var(--accent-hover); }
.chip-approved, .chip-delivered { background: #e4f3ea; color: #145c33; }
.chip-quoting { background: #fbefdc; color: #734b08; }
.new-empty { margin: 0; padding: 1rem .75rem; color: var(--sc-ink-soft); }
.new-foot { display: flex; align-items: center; gap: .5rem; min-height: 2.5rem; margin-top: auto; padding: .25rem .75rem; border-top: 1px solid var(--line); }
.new-status { flex: 1; min-width: 0; margin: 0; color: var(--sc-ink-soft); font-size: .75rem; line-height: 1.25; }
.foot-btn { flex: none; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line-strong); background: var(--sc-surface); color: var(--sc-ink); font-size: .75rem; cursor: pointer; transition: border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out); }
.foot-btn:hover { border-color: var(--sc-accent); color: var(--sc-accent); }
.chip-btn::before { content: ""; position: absolute; inset: -9px -6px; }   /* a finger-sized target around a small chip */
.chip-btn { position: relative; border: 0; font-family: inherit; line-height: 1.5; cursor: pointer; transition: box-shadow 160ms var(--sc-ease-out); }
.chip-btn:not([disabled])::after { content: " ›"; }
.chip-btn:not([disabled]):hover { box-shadow: 0 0 0 1px currentColor; }
.chip-btn[disabled] { cursor: default; }
.chip-btn[aria-disabled="true"] { opacity: .85; cursor: not-allowed; }
.chip-btn[aria-disabled="true"]::after { content: "" !important; }
.new-links li { transition: color 200ms var(--sc-ease-out); }
.new-links.is-live { color: var(--sc-ink); }
.new-roles, .new-search input, .view-btn { transition: box-shadow 200ms var(--sc-ease-out); }
[data-demo="0"] .new-roles, [data-demo="1"] .new-search input { box-shadow: 0 0 0 2px var(--as-blue); }
.report-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border-top: 1px solid var(--line); }
.report-row b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* With the script and motion the two versions lie in one box and the divider crosses them. The stage itself is sticky. */
.split-on .split-box, .split-manual .split-box { display: block; margin-top: 1.75rem; }
.split-on .split-box { flex: 0 1 31.5rem; min-height: 0; }
.split-on .version, .split-manual .version { position: absolute; inset: 0; display: flex; flex-direction: column; }
.split-on .version-label, .split-manual .version-label { position: absolute; top: -1.625rem; margin: 0; color: var(--night-ink); pointer-events: none; }
.split-on .version-old .version-label, .split-manual .version-old .version-label { left: 0; }
.split-on .version-new .version-label, .split-manual .version-new .version-label { right: 0; }
/* Each app is clipped, not the version, so the labels above the box stay whole. */
.split-on .new-app, .split-manual .new-app { clip-path: inset(0 0 0 calc(var(--x) * 1%)); }
.split-on .is-all-custom .version-old .version-label, .split-on .is-all-appsheet .version-new .version-label { opacity: 0; }
.split-on .is-done .split-line { opacity: 0; }
.split-on .is-done .split-grip { pointer-events: none; }
.split-on .split-line, .split-manual .split-line { position: absolute; inset: 0; z-index: 4; display: block; pointer-events: none; transform: translate3d(calc(var(--x) * 1%), 0, 0); }
.split-line { transition: opacity 200ms var(--sc-ease-out); }
.split-line::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--night-accent); }
.split-grip { position: absolute; left: -9px; top: 50%; width: 18px; height: 44px; margin-top: -22px; background: var(--night-accent); pointer-events: auto; touch-action: none; cursor: ew-resize; transition: transform 160ms var(--sc-ease-out); }
.split-grip:hover { transform: scale(1.12); }
.split-grip.is-held { transform: scale(1.2); }
.split-grip::before, .split-grip::after { content: ""; position: absolute; top: 12px; bottom: 12px; width: 2px; background: var(--night); }
.split-grip::before { left: 6px; }
.split-grip::after { right: 6px; }
.split-on .old-app, .split-on .new-app, .split-manual .old-app, .split-manual .new-app { flex: 1; min-height: 0; }
.split-on .old-app, .split-manual .old-app { overflow: hidden; }
.split-on .old-bar, .split-on .old-tabs, .split-manual .old-bar, .split-manual .old-tabs { flex: none; }
.split-on .split-tools, .split-manual .split-tools { display: flex; }

/* Pinned: exactly one screen tall, under the fixed header. */
.split-on .rebuild-stage { display: flex; }
.split-on .rebuild-grid { flex: 1; align-content: stretch; min-height: 0; height: 100%; padding-block: calc(var(--header-h) + clamp(1rem, 4vh, 2.5rem)) 1rem; }
.split-on .split-col { display: flex; flex-direction: column; min-height: 0; }
.split-manual .split-box { height: 31.5rem; }
.split-manual .split-col { min-width: 0; }
/* Not pinned: reduced motion, or a screen too short to hold the app. site.js sets this, and follows a rotation. */
.rebuild-static { height: auto !important; }
.rebuild-static .rebuild-stage.sc-stage { position: static; height: auto; overflow: visible; }
@media (prefers-reduced-motion: reduce) { .split-line { transition: none; } }
@media (min-width: 900px) {
  .rebuild-grid { grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
  .split-on .rebuild-grid { align-items: center; }
  .split-on .split-col { height: 100%; justify-content: center; }
  .split-box:not(.is-joined) { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .rebuild h2 { font-size: var(--sc-t-xl); }
  .beats { margin-top: .75rem; }
  .beat { padding-block: .375rem; }
  .rebuild-end { margin-top: .625rem; }
}
/* A laptop with browser bars: the rows tighten, on both sides alike, so the app's foot and its actions stay on screen. */
@media (min-width: 900px) and (max-height: 700px) {
  .split-on .sample-table th { height: 1.75rem; }
  .split-on .sample-table td { height: clamp(1.75rem, calc((100vh - 320px) / 8), 2.875rem); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .new-app { grid-template-columns: 7rem minmax(0, 1fr); }
  .sample-table .col-supplier { width: 5.75rem; }
  .sample-table .col-status { width: 6.25rem; }
  .sample-table .col-price { width: 5.5rem; }
}

/* Phones get their own composition: the divider runs across, the new version opens from the top, search and role first, and
   the copy is one line at a time. Scrolling stays with the page; the range is not offered while pinned, it would fight the thumb. */
@media (max-width: 899px) {
  .split-on .rebuild-grid { display: flex; flex-direction: column; gap: .625rem; padding-block: calc(var(--header-h) + .625rem) .625rem; }
  .split-on h2 { font-size: clamp(1.35rem, 1rem + 2.2vw, 2rem); }
  .split-on .beats { margin-top: .375rem; border-top: 0; }
  .split-on .beat { display: none; padding: 0 0 0 .75rem; border: 0; }
  .split-on .beat.is-on { display: block; }
  .split-on .rebuild-end { margin-top: 0; display: none; }
  .split-on .rebuild-end.is-on { display: block; }
  .split-on .rebuild-copy { flex: none; height: 7.5rem; overflow: hidden; }
  .split-on .split-col { flex: 1; }
  .split-on .split-tools { display: none; }
  .split-on .new-app { clip-path: inset(0 0 calc(var(--x) * 1%) 0); }
  .split-on .split-line { transform: translate3d(0, calc((100 - var(--x)) * 1%), 0); }
  /* Each label names the pane it sits against. */
  .split-on .split-box { margin-bottom: 1.625rem; }
  .split-on .version-new .version-label { left: 0; right: auto; }
  .split-on .version-old .version-label { top: auto; bottom: -1.5rem; }
  .split-on .split-line::before { left: 0; right: 0; top: -1px; bottom: auto; width: auto; height: 2px; }
  /* An 18 px bar in a 44 px target. */
  .split-on .split-grip { left: 50%; top: -22px; width: 44px; height: 44px; margin: 0 0 0 -22px; background: linear-gradient(var(--night-accent), var(--night-accent)) center / 100% 18px no-repeat; cursor: ns-resize; }
  .split-on .split-grip::before, .split-on .split-grip::after { left: 12px; right: 12px; width: auto; height: 2px; }
  .split-on .split-grip::before { top: 19px; bottom: auto; }
  .split-on .split-grip::after { top: auto; bottom: 19px; }
  /* Down at the screens the handle would sit on their tabs and take the tap. Scrolling still moves the divider. */
  .split-on .is-low .split-grip:not(.is-held) { pointer-events: none; }
  /* The screens sit where the AppSheet side keeps its tabs, so the rows line up here too. */
  .new-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .new-main { order: 1; }
  .new-rail { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .new-name { display: none; }
  .new-rail ul { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; }
  .new-rail li { flex: 1; }
  .view-btn { text-align: center; min-height: 36px; padding-block: .25rem; }
  .new-tools { grid-template-columns: minmax(0, 1fr) auto; padding-inline: .5rem; }
  .new-links { display: none; }
  .col-supplier { display: none; }
  .sample-table .col-request b { display: none; }
  .chip { padding-inline: 4px; font-size: .6875rem; }
  .chip-btn:not([disabled])::after { content: ""; }
  .new-foot { min-height: 2.25rem; padding-inline: .5rem; }
  .foot-btn[data-export] { display: none; }
  .old-bar { padding-block: .5rem; }
  .sample-table th { height: 1.75rem; }
  .sample-table td { height: 2.375rem; }
  .sample-table .col-status { width: 5.5rem; }
  .sample-table .col-price { width: 5.5rem; }
  .sample-table { font-size: .8125rem; }
  .new-app .sample-table th, .new-app .sample-table td, .old-app .sample-table th, .old-app .sample-table td { padding-inline: .5rem; }
  .old-bar, .new-tools { height: 3rem; }
  .split-on .split-box { flex: 1 1 auto; }
}
/* A tall phone has room for the connections, on both sides alike so the rows still line up. */
@media (max-width: 899px) and (min-height: 801px) {
  .old-bar, .new-tools { height: 4.25rem; }
  .new-links { display: flex; grid-column: 1 / -1; font-size: .6875rem; }
}
/* A tablet in portrait: the app no longer stretches to fill the screen, and larger rows once all of them fit. */
@media (min-width: 600px) and (max-width: 899px) {
  .split-on .split-box { flex: 0 1 36rem; }
  .split-on .split-col { justify-content: center; }
}
@media (min-width: 600px) and (max-width: 899px) and (min-height: 900px) {
  .sample-table th { height: 2.25rem; }
  .sample-table td { height: 3rem; }
  .split-manual .split-box { height: 36rem; }
}
/* Fewer rows on a short phone. Only rows still in the list count, so a search always shows what it found. */
@media (max-width: 899px) and (max-height: 780px) { .split-on .sample-table tbody tr:nth-child(n+7 of :not([hidden])) { display: none; } }
@media (max-width: 899px) and (max-height: 700px) { .split-on .sample-table tbody tr:nth-child(n+5 of :not([hidden])) { display: none; } }
@media (max-width: 899px) and (max-height: 680px) { .split-on [data-split-try] { display: none; } }
/* What is not on show on a phone stays readable to a screen reader, and appears when the keyboard reaches its link. */
@media screen and (max-width: 899px) {
  .split-on .beat:not(.is-on),
  .split-on .rebuild-end:not(.is-on):not(:focus-within),
  .split-on .beats:has(~ .rebuild-end:focus-within) .beat { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .split-on .rebuild-end:focus-within { display: block; }
}

/* ---- Selected work ---------------------------------------------------------------------------------------------- */
.work { background: var(--tint); }
.case { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line-strong); }
.case-figure-img { background: var(--sc-surface); }
.case-figure-img img { width: 100%; }
.case-figure figcaption { margin-top: .5rem; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); }
.label-line { display: flex; flex-wrap: wrap; gap: .125rem 1rem; margin: 0 0 .75rem; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.4; }
.case h3 { font-size: var(--sc-t-xl); letter-spacing: -.024em; }
.case h3 a { color: inherit; text-decoration: none; }
.case h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.status { display: flex; align-items: center; gap: 8px; margin: .75rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.status-dot { width: 9px; height: 9px; flex: none; border: 1.5px solid var(--as-blue); }
.status-live .status-dot { background: var(--as-blue); }
.status-testing .status-dot { background: linear-gradient(90deg, var(--as-blue) 50%, transparent 50%); }
.with-team { margin: .5rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.outcomes { margin: 1.25rem 0 .75rem; }
.outcomes ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 1rem; border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.outcomes strong, .cs-numbers strong { display: block; font: 500 var(--sc-t-xl)/1.1 var(--sc-font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.outcomes li > span, .cs-numbers li > span { display: block; margin-top: 4px; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.35; }
.outcome-note { margin: .75rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
@media (min-width: 900px) {
  .case { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem; align-items: center; }
  .case-1 .case-figure { grid-column: 1 / span 7; }
  .case-1 .case-text { grid-column: 8 / span 5; }
  .case-2 .case-figure { grid-column: 7 / span 6; order: 2; }
  .case-2 .case-text { grid-column: 1 / span 6; order: 1; }
  .case-3 .case-figure { grid-column: 1 / span 5; }
  .case-3 .case-text { grid-column: 6 / span 7; }
}

/* ---- How we work: the heading holds while the steps pass ---------------------------------------------------------- */
.approach-grid { display: grid; gap: 2rem; }
.approach h3 { font-size: var(--sc-t-lg); }
.steps { position: relative; padding-left: 1.5rem; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.steps::after { background: var(--as-blue); transform: scaleY(var(--progress, 1)); transform-origin: top; }
.step { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding-block: 1.5rem; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-n { color: var(--sc-accent); font: 500 var(--sc-t-sm)/1.7 var(--sc-font-display); font-variant-numeric: tabular-nums; }
.step-body p { margin: .375rem 0 0; color: var(--sc-ink-soft); }
.step-body .step-chips { color: var(--sc-ink); font-size: var(--sc-t-sm); }
.approach-ai, .approach-next { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.approach-ai p, .approach-next p { margin: .375rem 0 1rem; color: var(--sc-ink-soft); }
@media (min-width: 900px) {
  .approach-grid { grid-template-columns: 4fr 8fr; gap: 3rem; }
  .approach-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .approach-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
  .steps { grid-column: 1 / -1; }
}

/* ---- About and people. The portraits keep their style: grey, turning to colour under the blue tint on hover ---------- */
.about { background: var(--sc-canvas); }
.about-grid { display: grid; gap: 1rem; }
.about-grid .section-head { margin-bottom: 0; }
.about-copy { color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.45; }
.facts { margin-top: .5rem; font-size: var(--sc-t-base); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: end; } }
.people { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.people-h { margin-bottom: 1.25rem; font-size: var(--sc-t-lg); letter-spacing: -.018em; }
.people-h em { color: inherit; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; max-width: 26rem; }
.member { min-width: 0; }
.member-founder { width: calc((min(100%, 26rem) - 1rem) / 2); }
.member-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 400ms var(--sc-ease-out), transform 500ms var(--sc-ease-out); }
.member-photo::after { content: ""; position: absolute; inset: 0; background: var(--as-blue); opacity: 0; transition: opacity 240ms var(--sc-ease-out); pointer-events: none; }
@media (hover: hover) {
  .member:hover .member-photo img { filter: none; transform: scale(1.05); }
  .member:hover .member-photo::after { opacity: .2; }
}
.member-link { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; }
.member-link:focus-visible { outline-offset: -2px; }
.member-chip { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; color: var(--as-blue); opacity: 0; transition: opacity 240ms var(--sc-ease-out); }
.member-chip .ico { width: 20px; height: 20px; }
.member-link:focus-visible .member-chip { opacity: 1; }
@media (hover: hover) { .member:hover .member-chip { opacity: 1; } }
@media (hover: none) { .member-chip { opacity: 1; } }
.member-name { margin: .75rem 0 0; font: 500 var(--sc-t-base)/1.3 var(--sc-font-display); letter-spacing: -.012em; }
.member-role { margin: 2px 0 0; color: var(--sc-accent); font-size: var(--sc-t-sm); line-height: 1.35; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 980px; } }
@media (min-width: 640px) and (max-width: 1099px) {
  .member-founder { display: grid; grid-template-columns: calc((min(100%, 980px) - 3rem) / 4) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 1.5rem; width: 100%; }
  .member-founder .member-photo { grid-row: 1 / span 2; }
  .member-founder .member-name { align-self: end; }
}
@media (min-width: 1100px) {
  /* Five equal columns, so the founder's photo is exactly one team member's size. */
  .people { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3rem 1rem; }
  .member-founder { width: 100%; }
  .team { grid-column: 2 / -1; }
  .team-grid { max-width: none; }
}
.journey { margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.timeline { display: grid; gap: 1.5rem; }
.milestone-when { margin: 0 0 .25rem; color: var(--sc-accent); font-size: var(--sc-t-sm); font-weight: 500; }
.milestone p:last-child { margin: .375rem 0 0; color: var(--sc-ink-soft); }
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* ---- Common questions: native details, so every answer is in the page without a script ------------------------------ */
.faq { background: var(--sc-canvas); }
.faq-grid { display: grid; gap: 2rem; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: 1rem 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { margin: 0; font-size: var(--sc-t-lg); }
.faq-item .ico { color: var(--sc-ink-soft); transition: transform .2s; }
.faq-item[open] .ico { transform: rotate(180deg); }
.faq-item p { max-width: 40rem; margin: 0 0 1.25rem; color: var(--sc-ink-soft); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 3rem; } }
@media (prefers-reduced-motion: reduce) { .faq-item .ico { transition: none; } }

/* ---- Contact: the same hard-cut ground as the rebuild. The page resolves here, footer included -------------------- */
.contact { padding-block: clamp(3rem, 6vw, 6rem) clamp(3rem, 6vw, 5rem); background: radial-gradient(ellipse at 0 0, #17365d 0, transparent 55%), var(--night); color: var(--night-ink); }
.contact ::selection, .site-footer ::selection { background: var(--night-accent); color: var(--night); }
.contact-side :focus-visible, .site-footer :focus-visible { outline-color: var(--night-accent); }
.contact-grid { display: grid; grid-template-areas: "heading" "form" "person"; gap: 2rem; align-items: start; }
.contact-heading { grid-area: heading; }
.contact-form { grid-area: form; }
.contact-side { grid-area: person; }
.contact-eyebrow { color: var(--night-soft); font-size: var(--sc-t-xs); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.contact-steps { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: contact-step; display: grid; gap: 1rem; }
.contact-steps li { display: flex; align-items: center; gap: .875rem; font-size: var(--sc-t-sm); color: var(--night-soft); counter-increment: contact-step; }
.contact-steps li::before { content: counter(contact-step, decimal-leading-zero); display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid var(--night-line); color: var(--night-ink); font-size: var(--sc-t-xs); }
.contact h2 { font-size: var(--sc-t-2xl); }
.contact h2 em { color: inherit; }
.contact-person { display: flex; align-items: center; gap: 1rem; margin-top: 0; }
.contact-photo { width: 72px; height: 80px; flex: none; object-fit: cover; border-bottom: 3px solid var(--night-accent); }
.contact-name { margin: 0 0 .125rem; font: 500 var(--sc-t-lg)/1.25 var(--sc-font-display); letter-spacing: -.014em; }
.contact-direct { margin: 0; color: var(--night-soft); font-size: var(--sc-t-sm); overflow-wrap: anywhere; }
.contact-direct a { display: block; color: var(--night-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.contact-where { margin: 1rem 0 0; color: var(--night-soft); font-size: var(--sc-t-sm); }
.contact-links { margin-top: 1.5rem; border-top: 1px solid var(--night-line); }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-block: .5rem; border-bottom: 1px solid var(--night-line); color: var(--night-ink); font-size: var(--sc-t-sm); text-decoration: none; }
.contact-links a:hover { color: var(--night-accent); }
.contact-form { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--sc-surface); color: var(--sc-ink); box-shadow: var(--sc-e3); border-top: 3px solid var(--as-blue); }
.form-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-fields[disabled] { opacity: .6; }
.form-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: .625rem; }
.form-heading h3 { font: 500 clamp(1.125rem, 1.7vw, 1.5rem)/1.4 var(--sc-font-display); letter-spacing: -.025em; margin: 0; }
.form-channel { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 36px; padding: .375rem .625rem; border: 1px solid var(--line); color: var(--sc-accent); font-size: var(--sc-t-xs); text-decoration: none; flex-shrink: 0; }
.form-channel:hover { background: var(--accent-soft); border-color: var(--sc-accent); }
.form-intro { margin: 0 0 .75rem; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.6; max-width: 37em; }
.form-required { color: var(--sc-ink-soft); font-size: var(--sc-t-xs); margin: 0 0 1.5rem; }
.field-hint { display: block; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); margin: -.125rem 0 .625rem; line-height: 1.5; }
.form-details { margin: .25rem 0 1.5rem; border-block: 1px solid var(--line); }
.form-details summary { cursor: pointer; padding-block: .875rem; min-height: 44px; font-size: var(--sc-t-sm); color: var(--sc-accent); }
.form-details[open] summary { margin-bottom: .5rem; }
.message-example { margin: -.5rem 0 1rem; font-size: var(--sc-t-sm); }
.message-example summary { color: var(--sc-accent); cursor: pointer; min-height: 44px; padding: .625rem 0; }
.message-example p { margin: .25rem 0 .75rem; padding: .875rem 1rem; border-left: 2px solid var(--as-blue); background: var(--accent-soft); line-height: 1.6; color: var(--sc-ink-soft); }
.example-tabs { display: flex; flex-wrap: wrap; gap: .375rem; margin: .375rem 0 .75rem; }
.example-tabs button { min-height: 40px; padding: .5rem .625rem; border: 1px solid var(--line); background: var(--sc-surface); color: var(--sc-ink-soft); font: inherit; cursor: pointer; }
.example-tabs button:hover, .example-tabs button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--sc-accent); color: var(--sc-accent); }
.message-receipt { margin: 1.25rem 0; }
.message-receipt summary { min-height: 44px; padding-block: .625rem; cursor: pointer; color: var(--sc-accent); }
.message-receipt p { white-space: pre-wrap; background: var(--sc-surface); padding: 1rem; line-height: 1.6; }
.contact-whatsapp { margin-top: 1.75rem; padding: 1.25rem; border: 1px solid var(--night-line); }
.contact-whatsapp p { font-size: var(--sc-t-sm); color: var(--night-soft); margin: 0 0 .75rem; }
.contact-whatsapp a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; color: var(--night-ink); font-size: var(--sc-t-sm); text-decoration: none; }
.contact-whatsapp a:hover { color: var(--night-accent); }
.contact-whatsapp > span { display: block; color: var(--night-soft); font-size: var(--sc-t-xs); margin-top: .375rem; }
.field-error { display: block; margin-top: .5rem; font-size: var(--sc-t-sm); line-height: 1.4; color: var(--danger); }
.form-status.is-success { margin-top: 0; padding: clamp(1rem, 2vw, 1.75rem); border-top: 3px solid var(--sc-accent); }
.form-status h3 { font-size: var(--sc-t-xl); margin: 0 0 .75rem; }
.form-status h4 { font-size: var(--sc-t-sm); margin: 1.5rem 0 .625rem; }
.form-status ol { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.form-status li { padding-left: .25rem; margin-bottom: .625rem; }
.form-status .status-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.topics { min-width: 0; margin: 0 0 1.25rem; padding: 0; border: 0; }
.topics legend, .field label { display: block; margin-bottom: .5rem; padding: 0; font-size: var(--sc-t-sm); font-weight: 500; line-height: 20px; }
.topic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic { position: relative; min-width: 0; }
.topic input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.topic span { display: grid; place-items: center; height: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.25; text-align: center; transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out); }
.topic input:hover + span { border-color: var(--sc-accent); color: var(--sc-accent); }
.topic input:checked + span { border-color: var(--sc-accent); background: var(--accent-soft); color: var(--accent-hover); font-weight: 500; }
.topic input:focus-visible + span { outline: 2px solid var(--as-blue); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 16px; align-items: end; }
.field { margin: 0 0 1.25rem; }
.opt { color: var(--sc-ink-soft); font-weight: 400; }
.req { margin-left: 8px; color: var(--danger); }
/* 16 px on phones keeps the browser from zooming the page when a field takes focus. */
.field input, .field textarea { display: block; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--field-line); background: #fafbfd; color: var(--sc-ink); font: 400 1rem/1.25rem var(--sc-font-text); transition: border-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out); }
.field textarea { resize: vertical; min-height: 100px; }
.field textarea::placeholder { color: var(--sc-ink-soft); }
.field input:focus, .field textarea:focus { outline: none; background: var(--sc-surface); border-color: var(--as-blue); box-shadow: 0 0 0 3px #4285f422; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--danger); }
.form-note { margin: 1rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); line-height: 1.35; text-align: center; }
.config-missing { margin: 0 0 1.25rem; padding: 14px 16px; border: 1px dashed var(--line-strong); font-size: var(--sc-t-sm); }
.form-status { overflow-wrap: anywhere; margin-top: 1.25rem; padding: 1rem; background: var(--accent-soft); font-size: .9375rem; }
.form-status p { margin: 0 0 .625rem; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.service-location { color: var(--sc-ink-soft); margin-bottom: 1rem; }
.service-projects { list-style: none; padding: 0; }
.service-projects li + li { margin-top: 1.5rem; }
.service-detail .cs-block h3 { margin-top: 1.5rem; }
.service-detail .cs-block h3 + p { margin-top: .5rem; }
.form-status button { max-width: 100%; overflow-wrap: anywhere; min-height: 44px; padding: 6px 14px; border: 1px solid var(--sc-accent); background: var(--sc-surface); color: var(--sc-accent); font: 500 var(--sc-t-sm)/1.2 var(--sc-font-text); cursor: pointer; }
.form-status button:hover { background: var(--sc-canvas); }
@media (min-width: 900px) { .contact-grid { grid-template-areas: "heading form" "person form"; grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; gap: 2.5rem 4rem; } }
@media (max-width: 899px) { .contact-steps { display: none; } .contact h2 { max-width: 18em; } }

/* ---- Footer ----------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--night-soft); font-size: var(--sc-t-sm); }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.5rem; border-top: 1px solid var(--night-line); }
.footer-brand { color: var(--night-ink); }
.footer-brand .brand-mark { filter: brightness(0) invert(1); }
.footer-tag { max-width: 22em; margin: .75rem 0 0; }
.footer-where { margin: .5rem 0 0; }
.footer-h { margin: 0 0 .5rem; color: var(--night-ink); font-weight: 500; }
.footer-col a { display: block; padding-block: .3125rem; color: var(--night-soft); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--night-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--night-line); font-size: var(--sc-t-xs); }
.footer-bottom p { margin: 0; }
.footer-top { display: inline-flex; align-items: center; gap: 6px; color: var(--night-soft); text-decoration: none; white-space: nowrap; min-height: 44px; }
.footer-top:hover { color: var(--night-ink); }
.footer-top .ico { transform: rotate(-90deg); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 4fr 2fr 2fr 4fr; gap: 2rem; } .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 2rem; } }

/* ---- Customers: one collection, the same labels on every object --------------------------------------------------- */
.page-hero { padding-block: clamp(2.5rem, 7vh, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { max-width: 15em; font-size: var(--sc-t-3xl); letter-spacing: -.035em; line-height: 1.04; }
.page-hero h1 .h-muted { color: var(--sc-ink-soft); }
.page-hero-lead { margin: 1rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); }
.case-row { position: relative; display: grid; gap: 1rem; padding-block: clamp(1.25rem, 2.5vw, 2rem); border-top: 1px solid var(--line-strong); }
.case-row-img img { width: 100%; }
.case-row h2, .case-row h3 { font-size: var(--sc-t-lg); letter-spacing: -.02em; line-height: 1.2; transition: color 160ms var(--sc-ease-out); }
.case-row-summary { margin: .5rem 0 0; color: var(--sc-ink-soft); text-wrap: pretty; }
.case-row .outcome-note { margin: .5rem 0 0; }
.case-labels { display: grid; gap: .5rem; margin: 0; font-size: var(--sc-t-sm); line-height: 1.35; }
.case-labels div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem; }
.case-labels dt { color: var(--sc-ink-soft); }
.case-labels dd { margin: 0; }
.case-row .outcomes { position: relative; margin-bottom: 0; }
@media (hover: hover) { .case-row:hover h2, .case-row:hover h3, .news-row:hover h3, .news-feature:hover h2 { color: var(--sc-accent); } }
.case-row:focus-within { outline: 0; }
.stretch:focus-visible { outline: 0; }
.stretch:focus-visible::after { outline: 2px solid var(--as-blue); outline-offset: -2px; }
@media (min-width: 768px) {
  .case-row { grid-template-columns: 3fr 6fr 3fr; gap: 2rem; align-items: start; }
  .case-row-first { grid-template-columns: 5fr 4fr 3fr; }
}
@media (min-width: 768px) and (max-width: 999.98px) { .case-labels div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---- Case pages -------------------------------------------------------------------------------------------------- */
.cs-hero { padding-block: clamp(1.5rem, 3vh, 2.5rem) clamp(2rem, 4vw, 3.5rem); }
.cs-back { margin: 0 0 1.25rem; font-size: var(--sc-t-sm); }
.cs-back a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--sc-ink-soft); text-decoration: none; }
.cs-back a:hover { color: var(--sc-ink); }
.cs-hero h1 { max-width: 18em; font-size: clamp(1.875rem, 1.1rem + 3.9vw, 5rem); letter-spacing: -.035em; line-height: 1.04; }
.cs-hero h1 .nowrap { white-space: nowrap; }
.mcp-note { max-width: 46em; margin: 1rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.mcp-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 1.5rem 0 0; }
.mcp-list { max-width: var(--sc-measure); margin: 0; padding-left: 1.25rem; color: var(--sc-ink-soft); list-style: disc; }
ol.mcp-list { list-style: decimal; }
.mcp-demo { padding-block: .5rem clamp(2rem, 4vw, 3.5rem); scroll-margin-top: calc(var(--header-h) + 8px); }
.mcp-demo h2 { margin-bottom: .5rem; font-size: var(--sc-t-xl); letter-spacing: -.024em; }
.mcp-demo-note { max-width: var(--sc-measure); margin: 0 0 1.25rem; color: var(--sc-ink-soft); }
.mcp-demo-app { display: grid; gap: 1rem; }
.mcp-demo-app[hidden] { display: none; }
.demo-win { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 48px -32px rgba(23, 50, 110, .35); }
.demo-chat { height: 620px; }
.demo-app { height: 520px; }
.demo-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 54px; padding: .5rem 1rem; border-bottom: 1px solid var(--line); }
.demo-tag { padding: .1875rem .625rem; border-radius: 6px; background: #eceff3; color: #566274; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.demo-log { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .625rem; padding: 1rem; overflow-y: auto; background: #fbfcfd; font-size: var(--sc-t-sm); line-height: 1.45; }
.demo-me { align-self: flex-end; max-width: 85%; padding: .5rem .875rem; border-radius: 14px 14px 3px 14px; background: var(--sc-accent); color: #fff; overflow-wrap: anywhere; }
.demo-ai { align-self: flex-start; max-width: 95%; }
.demo-ai-unknown { color: var(--sc-ink-soft); }
.demo-wait { display: flex; align-items: center; gap: .5rem; color: var(--sc-ink-soft); }
.demo-spin { flex: none; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--as-blue); border-radius: 50%; animation: demo-spin .8s linear infinite; }
.demo-tick { flex: none; width: 12px; color: #0f7a4b; font-weight: 700; text-align: center; }
.demo-call { display: flex; flex-direction: column; gap: .125rem; padding: .5rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: 9px; font: .8125rem/1.4 var(--sc-font-mono); transition: border-color 200ms; }
.demo-call.is-running { border-color: var(--as-blue); }
.demo-call-top { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem .5rem; }
.demo-call code { font: inherit; font-weight: 600; }
.demo-call-st { margin-left: auto; color: var(--sc-ink-soft); font-family: var(--sc-font-text); white-space: nowrap; }
.demo-call.is-done .demo-call-st { color: #0f7a4b; }
.demo-call-arg { padding-left: calc(12px + .5rem); color: var(--sc-ink-soft); overflow-wrap: anywhere; }
.demo-head-end { display: flex; align-items: center; gap: .75rem; }
.demo-sync { display: inline-flex; align-items: center; gap: .375rem; background: var(--accent-soft); color: var(--sc-accent); }
.demo-sync[hidden] { display: none; }
.demo-sync .demo-spin { width: 10px; height: 10px; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@keyframes demo-flash { from { background: #d2e3fc; } to { background: var(--accent-soft); } }
@keyframes demo-pulse { 50% { background: #fbe3b8; } }
.demo-mini { background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.demo-mini p { display: flex; gap: 1rem; margin: 0; padding: .375rem .75rem; border-top: 1px solid var(--line); }
.demo-mini p:first-child { border-top: 0; }
.demo-mini b { min-width: 3.5rem; font-weight: 600; }
.demo-more { color: var(--sc-ink-soft); }
.demo-chips { flex: none; display: flex; flex-wrap: wrap; gap: .375rem; padding: .75rem 1rem 0; border-top: 1px solid var(--line); }
.demo-chip { min-height: 32px; padding: .25rem .625rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--sc-ink); font: inherit; font-size: .8125rem; cursor: pointer; }
.demo-chip:hover:not([aria-disabled="true"]) { border-color: var(--sc-accent); color: var(--sc-accent); }
.demo-chip[aria-disabled="true"], .demo-send[aria-disabled="true"] { opacity: .55; cursor: default; }
.demo-send[aria-disabled="true"]:hover { background: var(--sc-accent); }
.demo-empty { color: var(--sc-ink-soft); }
.mcp-demo-nojs { max-width: var(--sc-measure); margin: 0 0 1.25rem; color: var(--sc-ink-soft); }
.demo-form { flex: none; display: flex; gap: .5rem; padding: .75rem 1rem 1rem; }
.demo-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 .75rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--sc-ink); font: inherit; font-size: 16px; }
.demo-reset { min-height: 36px; padding: 0 .25rem; background: none; border: 0; color: var(--sc-ink-soft); font: inherit; font-size: var(--sc-t-sm); text-decoration: underline; cursor: pointer; }
.demo-tabs { flex: none; display: flex; flex-wrap: wrap; gap: .375rem; padding: .625rem 1rem; border-bottom: 1px solid var(--line); }
.demo-tab { min-height: 36px; padding: .25rem .75rem; background: none; border: 0; border-radius: 8px; color: var(--sc-ink-soft); font: inherit; font-size: var(--sc-t-sm); cursor: pointer; }
.demo-tab[aria-pressed="true"] { background: var(--accent-soft); color: var(--sc-accent); font-weight: 600; }
.demo-table { flex: 1; min-height: 0; overflow: auto; }
.demo-table table { width: 100%; border-collapse: collapse; font-size: var(--sc-t-sm); }
.demo-table th { position: sticky; top: 0; padding: .5rem 1rem; background: #f7f8fa; border-bottom: 1px solid var(--line); color: var(--sc-ink-soft); font-weight: 500; text-align: left; white-space: nowrap; }
.demo-table td { padding: .4375rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.demo-table tr.is-hit td { background: var(--accent-soft); }
.demo-table tr.is-new td { background: var(--accent-soft); animation: demo-flash 1.4s ease-out; }
.demo-table tr.is-busy td { background: #fdf3e1; animation: demo-pulse 1s ease-in-out infinite; }
.demo-changes li.is-new { animation: demo-in .5s ease-out; }
@keyframes demo-in { from { opacity: 0; } }
.demo-st { display: inline-block; padding: .0625rem .5rem; border-radius: 6px; font-size: .8125rem; font-weight: 600; }
.demo-st-pending { background: #fdefdc; color: #8f4c06; }
.demo-st-delivered, .demo-st-active { background: #e3f5ec; color: #0f7a4b; }
.demo-st-cancelled { background: #fce9e6; color: #a82e1c; }
.demo-st-inactive { background: #eceff3; color: #566274; }
.demo-changes-h { flex: none; margin: 0; padding: .625rem 1rem 0; border-top: 1px solid var(--line); color: var(--sc-ink-soft); font-size: .8125rem; font-weight: 600; }
.demo-changes { flex: none; margin: 0; padding: .25rem 1rem .75rem 2rem; font-size: .8125rem; list-style: disc; }
@media (min-width: 1000px) {
  .mcp-demo-app { grid-template-columns: 1fr 1fr; }
  .demo-chat, .demo-app { height: 700px; }
}
@media (max-width: 640px) {
  .demo-chat { height: 560px; }
  .demo-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .125rem; }
  .demo-chip { flex: none; min-height: 40px; }
  /* Only the spinner on phones, so the app's header stays on one line in both languages. */
  .demo-sync span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .demo-sync { padding-inline: .5rem; }
  .demo-table td, .demo-table th { padding-inline: .625rem; }
}
.mcp-list li + li { margin-top: .375rem; }
.mcp-more { margin-top: .75rem; }
.code-block { margin: 1rem 0; padding: 1rem 1.125rem; overflow-x: auto; background: #f5f7fa; border: 1px solid var(--line); border-radius: 10px; font: .875rem/1.55 var(--sc-font-mono); }
.tool-table { width: 100%; border-collapse: collapse; font-size: var(--sc-t-sm); }
.tool-table th { padding: 0 1rem .5rem 0; color: var(--sc-ink-soft); font-weight: 500; text-align: left; }
.tool-table td { padding: .625rem 1rem .625rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.tool-table td:last-child { color: var(--sc-ink-soft); }
.tool-table code { font: .8125rem/1.4 var(--sc-font-mono); }
.cs-block h3 { margin: 1.25rem 0 .25rem; font-size: var(--sc-t-base, 1rem); letter-spacing: -.01em; }
.cs-block h3:first-of-type { margin-top: 0; }
@media (max-width: 560px) {
  .tool-table thead { display: none; }
  .tool-table tr, .tool-table td { display: block; }
  .tool-table tr { padding-block: .625rem; border-top: 1px solid var(--line); }
  .tool-table td { padding: 0; border: 0; }
}
.cs-answer { max-width: 46em; margin: 1rem 0 0; color: var(--sc-ink-soft); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
.cs-updated { margin: .5rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); }
.cs-hero-row { display: grid; gap: 1.5rem; margin-top: clamp(1.25rem, 3vw, 2.5rem); }
.cs-person-label { margin: 1rem 0 .5rem; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.cs-person { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; color: var(--sc-ink); font-weight: 500; text-decoration: none; }
.cs-person img { width: 44px; height: 44px; object-fit: cover; }
.cs-person:hover span { color: var(--sc-accent); }
@media (min-width: 900px) { .cs-hero-row { grid-template-columns: 3fr 9fr; gap: 3rem; align-items: start; } .cs-hero-row .case-figure { max-width: 760px; justify-self: end; width: 100%; } }
.cs-layout { display: grid; gap: 2rem; padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--sc-section); border-top: 1px solid var(--line-strong); }
.cs-overview h2, .cs-numbers h2, .cs-toc-h { font: 500 var(--sc-t-sm)/1.4 var(--sc-font-text); letter-spacing: 0; color: var(--sc-ink-soft); margin: 0 0 .75rem; }
.cs-overview dl { margin: 0; font-size: var(--sc-t-sm); line-height: 1.4; }
.cs-overview dl > div { padding-block: .5rem; border-top: 1px solid var(--line); }
.cs-overview dt { color: var(--sc-ink-soft); }
.cs-overview dd { margin: 0; overflow-wrap: anywhere; }
.cs-main { min-width: 0; }
.cs-numbers ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1rem 1.5rem; }
.cs-numbers { padding-bottom: 1.5rem; }
.cs-block { padding-block: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 8px); }
.cs-block h2 { margin-bottom: .75rem; font-size: var(--sc-t-xl); letter-spacing: -.024em; }
.cs-block p { max-width: var(--sc-measure); margin-bottom: 0; color: var(--sc-ink-soft); text-wrap: pretty; }
.cs-block p + p { margin-top: 1rem; }
.cs-block .with-team { margin-top: .75rem; }
.cs-results li { display: flex; gap: .625rem; max-width: var(--sc-measure); }
.cs-results li + li { margin-top: .625rem; }
.cs-results .ico { margin-top: .22em; color: var(--as-blue); }
.cs-block-planned { color: var(--sc-ink-soft); }
.cs-toc { display: none; }
.cs-toc-h { display: flex; align-items: center; gap: .375rem; }
.cs-toc a { display: block; padding-block: .3125rem; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); text-decoration: none; transition: color 160ms var(--sc-ease-out); }
.cs-toc a:hover, .cs-toc a[aria-current] { color: var(--sc-ink); }
.cs-toc a[aria-current] { font-weight: 500; }
.mobile-contents { padding-block: 0 1.5rem; }
.mobile-contents details { border-block: 1px solid var(--line-strong); }
.mobile-contents summary { display: flex; align-items: center; gap: .625rem; min-height: 56px; padding-block: .75rem; font-weight: 500; cursor: pointer; list-style: none; }
.mobile-contents summary::-webkit-details-marker { display: none; }
.mobile-contents summary .ico:last-child { margin-left: auto; }
.mobile-contents details[open] summary .ico:last-child { transform: rotate(180deg); }
.mobile-contents nav { padding-bottom: .75rem; }
.mobile-contents a { display: block; padding-block: .75rem; min-height: 44px; font-size: var(--sc-t-sm); text-underline-offset: .2em; }
@media (max-width: 1099px) { .service-detail > .cs-overview { display: none; } }
@media (min-width: 1100px) {
  .mobile-contents { display: none; }
  .cs-layout { grid-template-columns: 3fr 7fr 2fr; gap: 3rem; align-items: start; }
  .cs-overview, .cs-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .cs-toc { display: block; }
}
.cs-more { padding-top: 0; }
.cs-more h2 { margin-bottom: 1.25rem; font-size: var(--sc-t-xl); }

/* A quiet phone contact strip, hidden while the opening or contact section is in view. */
.mobile-contact { display: none; }
@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .mobile-contact { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong); background: var(--sc-canvas); box-shadow: 0 -8px 24px -24px rgb(var(--sc-shadow-color) / .4); }
  .mobile-contact a { min-height: 44px; font-size: var(--sc-t-sm); }
  .mobile-contact .btn { justify-content: center; padding-inline: .75rem; }
  .mobile-whatsapp { display: inline-flex; align-items: center; gap: .375rem; }
  .menu-open .mobile-contact { display: none; }
  :is(a, button, input, textarea, select) { scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media print { .mobile-contact, .mobile-contents { display: none !important; } }

/* ---- News ---------------------------------------------------------------------------------------------------------- */
.news-feature { position: relative; display: grid; gap: 1.25rem; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.news-feature-img img { width: 100%; }
.news-meta { margin: 0 0 .5rem; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.news-feature h2 { font-size: var(--sc-t-xl); letter-spacing: -.024em; transition: color 160ms var(--sc-ease-out); }
.news-text { margin: .625rem 0 0; color: var(--sc-ink-soft); text-wrap: pretty; }
@media (min-width: 768px) { .news-feature { grid-template-columns: 6fr 6fr; gap: 3rem; align-items: center; } .news-feature-img { max-width: 608px; } }
.news-list { border-top: 1px solid var(--line-strong); padding-top: clamp(2rem, 4vw, 3.5rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-bottom: 1.25rem; }
.filter-result { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.news-list .filter-result { margin-bottom: .75rem; }
.cs-share { margin: .25rem 0 0; }
.filter { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-strong); background: transparent; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); cursor: pointer; transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out); }
.filter:hover { color: var(--sc-ink); border-color: var(--sc-ink); }
.filter[aria-pressed="true"] { background: var(--sc-ink); border-color: var(--sc-ink); color: #fff; }
.news-rows { border-bottom: 1px solid var(--line); }
.news-row { position: relative; display: grid; gap: .25rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.news-row h3 { font-size: var(--sc-t-lg); transition: color 160ms var(--sc-ease-out); }
.news-pic { display: none; }
.news-pic img { width: 100%; }
@media (min-width: 768px) { .news-row { grid-template-columns: 2fr 7fr 3fr; align-items: start; } .news-pic { display: block; } }
.news-note { margin: 1rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }

/* ---- 404 ------------------------------------------------------------------------------------------------------------ */
.notfound { max-width: 44rem; padding-block: clamp(2rem, 7vh, 5rem); }
.notfound-code { margin: 2rem 0 .5rem; color: var(--as-blue); font: 500 var(--sc-t-3xl)/1 var(--sc-font-display); letter-spacing: -.04em; }
.notfound h1 { font-size: var(--sc-t-2xl); }
.notfound-lead { margin: .75rem 0 1.25rem; color: var(--sc-ink-soft); }
.notfound-home .ico { width: 1em; height: 1em; }
.notfound-more { margin-top: 2.5rem; }
.notfound-more h2 { margin-bottom: .5rem; font: 500 var(--sc-t-sm)/1.4 var(--sc-font-text); letter-spacing: 0; color: var(--sc-ink-soft); }
.notfound-more ul { border-top: 1px solid var(--line-strong); }
.notfound-more a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding-block: .625rem; border-bottom: 1px solid var(--line); color: var(--sc-ink); text-decoration: none; }
.notfound-more b { display: block; font-weight: 500; transition: color 160ms var(--sc-ease-out); }
.notfound-more small { display: block; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.notfound-more a:hover b { color: var(--sc-accent); }
.notfound-note { margin: 2rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); }

/* ---- Reduced motion: fewer and gentler. Nothing is pinned above, and hovers no longer move ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .plane-tilt { transform: none !important; transition: none; }
  .member:hover .member-photo img { transform: none; }
  .btn:active { transform: none; }
  .btn, .member-photo img, .member-photo::after, .member-chip, .nav-menu, .site-nav, .link-arrow .ico, .beat { transition: none !important; }
  .link-arrow:hover .ico { transform: none; }
  .demo-spin { animation: none; border-color: var(--as-blue); border-right-color: var(--line-strong); }
  .demo-table tr.is-busy td, .demo-table tr.is-new td, .demo-changes li.is-new { animation: none; }
}

/* ---- Print: plain pages, nothing pinned or hidden ------------------------------------------------------------------- */
@media print {
  :root { --night: #fff; --night-2: #fff; --night-ink: #0c1524; --night-soft: #4d5a6e; --night-accent: #1967d2; --night-line: #bdc6d3; }
  .footer-brand .brand-mark { filter: none; }
  .new-foot { position: static; }
  .site-header, .nav-ready .site-header, .cs-overview, .cs-toc, .approach-head { position: static; }
  .nav-ready .site-header + main { padding-top: 0; }
  [data-sc-in], [data-sc-stagger] > *, [data-sc-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .rebuild { height: auto !important; }
  .rebuild-stage.sc-stage { position: static; height: auto; overflow: visible; }
  .split-on .split-box, .split-manual .split-box { display: grid; height: auto; margin-block: 0; }
  .split-on .version, .split-manual .version, .split-on .version-label, .split-manual .version-label { position: static; }
  .split-on .new-app, .split-manual .new-app { clip-path: none; }
  .split-line, .split-tools { display: none !important; }
  .split-on .beat, .split-on .rebuild-end { display: block; }
}

/* ---- Forced colours: the parts drawn only with a background stay visible ---------------------------------------------- */
@media (forced-colors: active) {
  .menu-lines, .menu-lines::before, .menu-lines::after, .split-line::before, .split-grip, .steps::after, .decide-meter b { forced-color-adjust: none; background: CanvasText; }
  .menu-open .menu-lines { background: transparent; }
  .filter[aria-pressed="true"], .view-btn[aria-pressed="true"], .role-btn[aria-pressed="true"] { outline: 2px solid Highlight; }
  .beat.is-on { outline: 1px solid Highlight; }
  .topic input:checked + span { border: 3px solid Highlight; }
  .chip-btn:not([disabled]) { border: 1px solid ButtonText; }
  .footer-brand .brand-mark { filter: none; }
}

/* ---- Language switch ---- */
.lang-switch { font-weight: 600; letter-spacing: .02em; }

/* Appointment booking uses Google's public schedule; all meeting state stays with Calendar. */
.contact-booking { padding: 1.25rem; margin-bottom: 1.75rem; border: 1px solid var(--night-line); background: #16304c; }
.contact-booking h3 { font-size: 1.25rem; line-height: 1.25; }
.contact-booking p { margin: .625rem 0 1rem; color: var(--night-soft); font-size: var(--sc-t-sm); line-height: 1.5; }
.contact-booking .btn { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 46px; padding: .75rem 1rem; font-size: var(--sc-t-sm); }
.booking-eyebrow { margin: 0 0 1rem; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); font-weight: 500; letter-spacing: .1em; }
.booking-hero { padding-block: 2rem 1.75rem; }
.booking-hero h1 { max-width: 18em; font-size: clamp(2rem, 3.5vw, 3.5rem); }
.booking-hero h1 em { display: block; }
.booking-hero .page-hero-lead { max-width: 52em; font-size: 1.125rem; }
.booking-facts { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 0; margin: 1.5rem 0 .75rem; list-style: none; }
.booking-facts li { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--sc-t-sm); }
.booking-facts .ico { color: var(--sc-accent); }
.booking-availability { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.booking-calendar { padding-top: .75rem; }
.booking-calendar-head { display: flex; justify-content: space-between; align-items: start; gap: 1.5rem; margin-bottom: 1.5rem; }
.booking-calendar-head h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.booking-calendar-head p { max-width: 48em; margin: .75rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.5; }
.booking-calendar-head > .btn { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .75rem 1rem; font-size: var(--sc-t-sm); }
.booking-frame { display: block; width: 100%; height: 760px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.booking-help { margin: 1.25rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
@media (max-width: 767px) {
  .booking-calendar-head { flex-direction: column; gap: 1rem; }
  .booking-calendar-head > .btn { width: 100%; }
  .booking-frame { height: 1000px; }
  .booking-facts { gap: .75rem 1rem; }
}
