/* ==========================================================================
   Amjad & Hazli — marketing design system (ah-*)
   Editorial monochrome: serif display, quiet sans UI, ink/ivory palette.
   Mobile-first and self-contained: no other stylesheet is needed. Every class
   is ah-* prefixed so the legacy page bodies (legacy.css) can load
   alongside it.
   ========================================================================== */

/* Self-hosted Google Fonts, latin subset (the only subset the site's text needs). Not preloaded:
   on a throttled phone link a preload competes with this stylesheet and delays first paint, and
   the metric-matched fallbacks below make the late swap shift nothing.
   /assets/* is cached as immutable, so a changed font file needs a new file name. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/inter-var.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-mono-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-mono-500.woff2") format("woff2"); }
/* Local fallbacks scaled to the web fonts' width and line metrics (measured against the woff2
   files), so the swap doesn't reflow the headline or the body copy. */
@font-face { font-family: "Instrument Serif Fallback"; font-style: normal; src: local("Times New Roman"), local("TimesNewRomanPSMT"); size-adjust: 83.83%; ascent-override: 118.1%; descent-override: 36.98%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"); size-adjust: 88.77%; ascent-override: 111.53%; descent-override: 34.92%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 106.62%; ascent-override: 90.86%; descent-override: 22.62%; line-gap-override: 0%; }

:root {
  --ah-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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); /* film grain tile, overlay-blended */
  --ah-ink: #0f0e0d;
  --ah-ink-2: #1f1d1a;
  --ah-text: #33312c;
  --ah-muted: #706d66;
  --ah-faint: #8f8b85;
  --ah-line: #e5e5e3;
  --ah-line-2: #cccac6;
  --ah-bg: #fafaf9;
  --ah-bg-2: #f2f1f0;
  --ah-paper: #f7f5f0;
  --ah-white: #ffffff;

  --ah-d-text: rgba(250, 250, 249, 0.92);
  --ah-d-muted: rgba(250, 250, 249, 0.62);
  --ah-d-line: rgba(250, 250, 249, 0.14);
  --ah-d-card: rgba(250, 250, 249, 0.05);
  --ah-d-fill: rgba(250, 250, 249, 0.07);

  --ah-serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --ah-sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ah-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ah-fs-display: clamp(2.75rem, 1.6rem + 5.2vw, 5.75rem);
  --ah-fs-h1: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  --ah-fs-h2: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem);
  --ah-fs-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --ah-fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --ah-fs-body: 1rem;
  --ah-fs-sm: 0.875rem;

  --ah-gutter: clamp(16px, 4vw, 48px);
  --ah-max: 1440px;
  --ah-sec: clamp(72px, 6vw + 40px, 160px);
  --ah-sec-sm: clamp(48px, 4vw + 24px, 96px);
  --ah-radius: 8px;
  --ah-radius-lg: 14px;

  --ah-header-h: 64px;
  --ah-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1024px) { :root { --ah-header-h: 72px; } }

/* ---------- reset (element-level, so any ah-* class still wins) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ah-header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; font-family: var(--ah-serif); }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- base (scoped to new pages via body.ah) ---------- */
body.ah {
  position: relative;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  background: var(--ah-bg);
  color: var(--ah-ink);
  font-family: var(--ah-sans);
  font-size: var(--ah-fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.ah::before { display: none; }
body.ah main { display: block; position: relative; z-index: 1; padding: 0; margin: 0; max-width: none; }
@media (hover: hover) and (pointer: fine) { body.ah a:hover { opacity: 1; } }
body.ah img, body.ah svg { max-width: 100%; }
html.ah-locked { overflow: hidden; } /* the open drawer: the page behind can't scroll (on the root only: hidden on body would make it a scroller and unstick the header) */

.ah-wrap { width: 100%; max-width: var(--ah-max); margin-inline: auto; padding-inline: var(--ah-gutter); box-sizing: border-box; }
/* viewport-fit=cover lets the page run under a landscape notch: keep content out of it */
@supports (padding: max(0px)) { .ah-wrap { padding-inline: max(var(--ah-gutter), env(safe-area-inset-left, 0px)) max(var(--ah-gutter), env(safe-area-inset-right, 0px)); } }
.ah-wrap--narrow { max-width: 880px; }

.ah-skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ah-ink); color: var(--ah-bg); padding: 10px 14px; border-radius: 6px;
  font: 500 14px/1 var(--ah-sans);
}
.ah-skip:focus { top: 12px; }

body.ah :focus-visible { outline: 2px solid var(--ah-ink); outline-offset: 3px; border-radius: 4px; }
.ah-dark :focus-visible, .ah-announce :focus-visible { outline-color: var(--ah-bg) !important; }

.ah-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.ah-display, .ah-h1, .ah-h2, .ah-h3, .ah-serif {
  font-family: var(--ah-serif); font-weight: 400; margin: 0; color: inherit;
  text-wrap: balance;
}
.ah-display { font-size: var(--ah-fs-display); line-height: 1.02; letter-spacing: -0.02em; }
.ah-h1 { font-size: var(--ah-fs-h1); line-height: 1.04; letter-spacing: -0.018em; }
.ah-h2 { font-size: var(--ah-fs-h2); line-height: 1.06; letter-spacing: -0.015em; }
.ah-h3 { font-size: var(--ah-fs-h3); line-height: 1.12; letter-spacing: -0.01em; }
.ah-h4 { font: 500 1.0625rem/1.35 var(--ah-sans); letter-spacing: -0.005em; margin: 0; }
.ah-h1 em, .ah-h2 em, .ah-display em, .ah-h3 em { font-style: italic; }
.ah-lead { font-size: var(--ah-fs-lead); line-height: 1.42; color: var(--ah-text); margin: 0; text-wrap: pretty; }
.ah-body { color: var(--ah-muted); margin: 0; line-height: 1.55; text-wrap: pretty; }
.ah-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 var(--ah-fs-sm)/1.3 var(--ah-sans); letter-spacing: -0.005em; color: var(--ah-muted); margin: 0;
}
.ah-eyebrow a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ah-eyebrow a:hover { color: var(--ah-ink); } }
.ah-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px;
  border: 1px solid var(--ah-line-2); font: 500 12px/1 var(--ah-sans); color: var(--ah-muted); white-space: nowrap;
}
.ah-dark .ah-lead { color: var(--ah-d-text); }
.ah-dark .ah-body, .ah-dark .ah-eyebrow { color: var(--ah-d-muted); }
.ah-dark .ah-tag { border-color: var(--ah-d-line); color: var(--ah-d-muted); }
@media (hover: hover) and (pointer: fine) { .ah-dark .ah-eyebrow a:hover, .ah-dark .ah-crumb a:hover { color: var(--ah-bg); } }

/* ---------- buttons ---------- */
.ah-btn {
  --b-bg: var(--ah-ink); --b-fg: var(--ah-bg); --b-bd: var(--ah-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 6px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font: 500 15px/1 var(--ah-sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .2s var(--ah-ease), color .2s, border-color .2s, transform .14s var(--ah-ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) { .ah-btn:hover { --b-bg: var(--ah-ink-2); } }
.ah-btn:active { transform: scale(.97); }
.ah-btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.ah-btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.ah-btn--ghost { --b-bg: transparent; --b-fg: var(--ah-ink); --b-bd: var(--ah-line-2); }
@media (hover: hover) and (pointer: fine) { .ah-btn--ghost:hover { --b-bg: var(--ah-bg-2); --b-bd: var(--ah-ink); } }
.ah-dark .ah-btn { --b-bg: var(--ah-bg); --b-fg: var(--ah-ink); --b-bd: var(--ah-bg); }
@media (hover: hover) and (pointer: fine) { .ah-dark .ah-btn:hover { --b-bg: #e9e8e5; } }
.ah-dark .ah-btn--ghost { --b-bg: transparent; --b-fg: var(--ah-bg); --b-bd: rgba(250,250,249,.32); }
@media (hover: hover) and (pointer: fine) { .ah-dark .ah-btn--ghost:hover { --b-bg: rgba(250,250,249,.08); --b-bd: var(--ah-bg); } }
.ah-btn svg { width: 16px; height: 16px; flex: none; }

.ah-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 500 15px/1.2 var(--ah-sans); color: inherit; text-decoration: none;
}
.ah-link svg { width: 14px; height: 14px; transition: transform .25s var(--ah-ease); }
@media (hover: hover) and (pointer: fine) { .ah-link:hover svg, a:hover > .ah-link svg { transform: translateX(3px); } }
.ah-link span { background: linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat; transition: background-size .3s var(--ah-ease); }
@media (hover: hover) and (pointer: fine) { .ah-link:hover span { background-size: 100% 1px; } }

.ah-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- touch ----------
   Controls answer on press (not on release), fire without the double-tap wait, and never select
   their label or raise the long-press callout. Prose links stay selectable. Press feedback uses
   `scale`, its own property, so it composes with the reveal transform and keeps a short timing. */
:where(button, summary, label, [role="tab"], .ah-btn, .ah-chip, .ah-snav a, .ah-drawer__top, .ah-drawer details a) {
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
:where(a) { touch-action: manipulation; }
:is(a.ah-card, a.ah-story, a.ah-route, a.ah-trust__item, a.ah-feature):active { scale: .985; }
a.ah-tile:active .ah-tile__art, :is(.ah-tab, .ah-chip, .ah-app__tab, .ah-snav a, .ah-trail):active { scale: .96; }
:is(.ah-iconbtn, .ah-burger):active, .ah-seg label:active span { scale: .92; }
.ah-dots button:active i { scale: 1 2; }
:is(.ah-drawer summary, .ah-drawer__top, .ah-drawer details a, .ah-acc summary, .ah-footer li a, .ah-footer__base a, .ah-crumb a, a.ah-link):active { opacity: .55; transition: opacity 0s; }

/* ---------- announcement bar ---------- */
.ah-announce { background: var(--ah-ink); color: var(--ah-bg); font: 500 13px/1.3 var(--ah-sans); }
.ah-announce a {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
  padding: 8px var(--ah-gutter); color: inherit; text-decoration: none; text-align: center;
}
.ah-announce__label { opacity: .62; display: none; }
/* one line on phones: the short copy fits 360px and up, and anything narrower ellipsises */
.ah-announce__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-announce__long { display: none; }
.ah-announce__cta { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (min-width: 640px) { .ah-announce__label, .ah-announce__long { display: inline; } .ah-announce__short { display: none; } }

/* ---------- header ---------- */
.ah-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 249, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
  padding-top: env(safe-area-inset-top, 0);
}
.ah-header.is-scrolled, .ah-header.is-menu { border-bottom-color: var(--ah-line); }
.ah-header.is-menu { background: var(--ah-bg); }
.ah-header__bar { display: flex; align-items: center; gap: 24px; height: var(--ah-header-h); }
.ah-logo {
  font: 400 25px/1 var(--ah-serif); letter-spacing: -0.01em; color: var(--ah-ink);
  text-decoration: none; white-space: nowrap; margin-right: auto; display: inline-flex; align-items: center; min-height: 44px;
}
.ah-logo em { font-style: italic; }
.ah-nav { display: none; }
.ah-header__actions { display: none; gap: 8px; align-items: center; }
@media (min-width: 1080px) {
  .ah-logo { margin-right: 0; flex: 1 1 0; }
  .ah-nav { display: block; flex: 0 1 auto; }
  .ah-header__actions { display: flex; flex: 1 1 0; justify-content: flex-end; }
}
.ah-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ah-nav__trigger, .ah-nav__link {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 6px;
  font: 500 14px/1 var(--ah-sans); color: var(--ah-ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.ah-nav__trigger[aria-expanded="true"] { background: var(--ah-bg-2); }
@media (hover: hover) and (pointer: fine) { .ah-nav__trigger:hover, .ah-nav__link:hover { background: var(--ah-bg-2); } }
.ah-nav__link[aria-current="page"], .ah-nav__trigger.is-current { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.ah-nav__trigger svg { width: 12px; height: 12px; transition: transform .2s; }
.ah-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* mega menu */
.ah-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ah-bg); border-bottom: 1px solid var(--ah-line);
  box-shadow: 0 24px 48px -24px rgba(15,14,13,.18);
  animation: ah-drop .22s var(--ah-ease);
}
.ah-mega[hidden] { display: none; }
@keyframes ah-drop { from { opacity: 0; transform: translateY(-6px); } }
.ah-mega__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; padding-block: 32px 40px; }
.ah-mega__col { grid-column: span 3; }
.ah-mega__col--wide { grid-column: span 6; }
.ah-mega__col--wide ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.ah-mega__label { font: 500 13px/1 var(--ah-sans); color: var(--ah-muted); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ah-line); }
.ah-mega ul { list-style: none; margin: 0; padding: 0; }
.ah-mega__link { display: block; padding: 10px 0; text-decoration: none; color: var(--ah-ink); border-radius: 6px; }
.ah-mega__link strong { display: block; font: 500 14px/1.3 var(--ah-sans); }
.ah-mega__link span { display: block; font: 400 13px/1.4 var(--ah-sans); color: var(--ah-muted); margin-top: 2px; }
@media (hover: hover) and (pointer: fine) { .ah-mega__link:hover strong { text-decoration: underline; text-underline-offset: 3px; } }
.ah-mega__feature {
  grid-column: span 3; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 200px; padding: 20px; border-radius: var(--ah-radius);
  background: var(--ah-ink); color: var(--ah-bg); text-decoration: none; position: relative; overflow: hidden;
}
.ah-mega__feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(250,250,249,.16), transparent 60%); }
.ah-mega__feature > * { position: relative; }
.ah-mega__feature p { margin: 0; }
.ah-mega__feature .ah-h3 { font-size: 26px; }
.ah-mega__feature .ah-eyebrow { color: var(--ah-d-muted); }
.ah-mega__feature .ah-link { min-height: 0; margin-top: 12px; }
.ah-mega__foot { grid-column: 1 / -1; border-top: 1px solid var(--ah-line); padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; }

/* burger + drawer (mobile) */
.ah-burger {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--ah-ink); cursor: pointer; border-radius: 8px; -webkit-tap-highlight-color: transparent; transition: scale .14s var(--ah-ease);
}
.ah-burger svg { width: 24px; height: 24px; }
.ah-burger .i-close { display: none; }
.ah-burger[aria-expanded="true"] .i-open { display: none; }
.ah-burger[aria-expanded="true"] .i-close { display: block; }
@media (min-width: 1080px) { .ah-burger, .ah-drawer { display: none !important; } }

.ah-drawer {
  position: fixed; inset: calc(var(--ah-header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 99; /* top is set from the header's real bottom in ah.js */
  background: var(--ah-bg); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  animation: ah-fade .2s var(--ah-ease);
}
.ah-drawer[hidden] { display: none; }
@keyframes ah-fade { from { opacity: .6; } }
.ah-drawer__nav { flex: 1; padding: 8px var(--ah-gutter) 24px; }
.ah-drawer details { border-bottom: 1px solid var(--ah-line); }
.ah-drawer summary, .ah-drawer__top {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  font: 400 28px/1.1 var(--ah-serif); color: var(--ah-ink); text-decoration: none; list-style: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ah-drawer__top { border-bottom: 1px solid var(--ah-line); }
.ah-drawer__top svg { width: 18px; height: 18px; color: var(--ah-muted); }
.ah-drawer summary::-webkit-details-marker { display: none; }
.ah-drawer summary svg { width: 18px; height: 18px; transition: transform .25s var(--ah-ease); color: var(--ah-muted); }
.ah-drawer details[open] summary svg { transform: rotate(45deg); }
.ah-drawer details ul { list-style: none; margin: 0; padding: 0 0 16px; }
.ah-drawer details a { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 0; color: var(--ah-ink); text-decoration: none; font: 500 16px/1.3 var(--ah-sans); }
.ah-drawer details a span { font: 400 13px/1.35 var(--ah-sans); color: var(--ah-muted); }
.ah-drawer__foot {
  position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 16px var(--ah-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--ah-bg); border-top: 1px solid var(--ah-line);
}
.ah-drawer__foot .ah-btn { width: 100%; }

/* mobile sticky CTA: a slim bar that steps aside while the reader scrolls down
   and comes back on any scroll up (ah.js) */
.ah-mcta {
  position: fixed; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; gap: 4px; padding: 4px; border-radius: 10px;
  background: rgba(15,14,13,.95);
  box-shadow: 0 10px 24px -12px rgba(15,14,13,.45);
  transform: translateY(calc(100% + 24px)); transition: transform .3s var(--ah-ease);
}
.ah-mcta.is-on { transform: none; }
.ah-mcta .ah-btn { flex: 1; min-height: 44px; --b-bg: var(--ah-bg); --b-fg: var(--ah-ink); --b-bd: var(--ah-bg); }
.ah-mcta .ah-btn--ghost { --b-bg: transparent; --b-fg: var(--ah-bg); --b-bd: transparent; flex: 0 0 auto; }
@media (min-width: 768px) { .ah-mcta { display: none; } }

/* ---------- sections ---------- */
.ah-sec { padding-block: var(--ah-sec); }
.ah-sec--sm { padding-block: var(--ah-sec-sm); }
.ah-sec--flush-top { padding-top: 0; }
.ah-sec--alt { background: var(--ah-bg-2); }
.ah-sec--paper { background: var(--ah-paper); }
.ah-dark { background: var(--ah-ink); color: var(--ah-d-text); }
section.ah-dark + section.ah-dark { padding-top: 0; }

.ah-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 920px; }
.ah-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.ah-head--split { max-width: none; }
@media (min-width: 900px) {
  .ah-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 48px; }
  .ah-head--split > .ah-eyebrow { grid-column: 1 / -1; }
  .ah-head--split .ah-lead, .ah-head--split .ah-body { padding-bottom: 6px; }
}

/* ---------- heroes ---------- */
.ah-hero { padding-block: clamp(48px, 6vw, 112px) clamp(48px, 6vw, 104px); }
.ah-hero__grid { display: grid; gap: 28px; }
.ah-hero__aside { display: grid; gap: 28px; align-content: end; }
.ah-hero .ah-eyebrow { margin-bottom: 20px; }
@media (min-width: 900px) {
  .ah-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 120px); align-items: end; }
  .ah-hero__aside { max-width: 440px; padding-bottom: 10px; }
}
.ah-hero--page { padding-bottom: clamp(32px, 4vw, 64px); }
.ah-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ah-crumb a { position: relative; text-decoration: none; }
.ah-crumb a::after { content: ""; position: absolute; inset: -13px -6px; } /* a 44px-tall target without changing the line */
@media (hover: hover) and (pointer: fine) { .ah-crumb a:hover { color: var(--ah-ink); text-decoration: underline; text-underline-offset: 3px; } }

/* media stage (textured frame around product mock) */
.ah-stage {
  position: relative; border-radius: var(--ah-radius-lg); overflow: hidden;
  background: #2a2825 radial-gradient(140% 90% at 15% 10%, #5b5751 0%, #2a2825 55%, #141312 100%);
  padding: clamp(14px, 4vw, 64px);
  isolation: isolate;
}
.ah-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; mix-blend-mode: overlay;
  background-image: var(--ah-grain); }

/* ---------- homepage showcase: one sample client, four services ----------
   Staged the Stageshow way (benji.org/stageshow): the window sits whole on a Paper grain-gradient
   ground with one even gutter (--g) all round; each scene's result arrives as a notification card
   in the window's activity rail; a cursor clicks the tabs. Inner layout follows the window's own
   width (container app). */
.ah-showfig { margin: 0; }
.ah-showfig__cap { margin-top: 12px; font: 400 13px/1.4 var(--ah-sans); color: var(--ah-faint); }
/* the poster: the shader's palette and fall-off sampled from its render, so the canvas fading in
   over it (paper-hero.js) reads as the ground coming alive. No grain overlay here: a blended SVG
   noise layer this size costs over a second of first paint where the GPU rasterises in software. */
.ah-show { container: show / inline-size; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--ah-radius-lg);
  background: #100f0e linear-gradient(172deg, #aca59a 0%, #8b867c 16%, #706b64 28%, #57534d 38%, #3d3a35 50%, #2a2825 60%, #151413 72%, #100f0e 80%); }
.ah-show__shader { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ah-ease); }
.ah-show__shader.is-on { opacity: 1; }
.ah-show__shader canvas { display: block; width: 100% !important; height: 100% !important; }
.ah-show__frame { --g: clamp(14px, 4.5cqi, 64px); --rail: clamp(190px, 25cqi, 260px); container: app / inline-size; position: relative; margin: var(--g); }

.ah-app { --sc-good: #2f5a2c; --sc-good-bg: #e7efe6; --sc-accent: #b5562b;
  overflow: hidden; border-radius: 12px; background: var(--ah-white); color: var(--ah-ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -12px rgba(0,0,0,.6); }
.ah-app__bar { display: flex; align-items: center; gap: 16px; padding: 8px; border-bottom: 1px solid var(--ah-line); }
.ah-app__dots { display: none; gap: 6px; padding-left: 6px; }
.ah-app__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ah-line); }
.ah-app__tabs { display: flex; flex: 1 1 auto; min-width: 0; gap: 2px; padding: 3px; border-radius: 8px; background: var(--ah-bg-2); overflow-x: auto; scrollbar-width: none; }
.ah-app__tabs::-webkit-scrollbar { display: none; }
.ah-app__tab { position: relative; flex: 1 0 auto; min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; overflow: hidden;
  font: 500 13px/1 var(--ah-sans); color: var(--ah-muted); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s, scale .14s var(--ah-ease); }
@media (hover: hover) and (pointer: fine) { .ah-app__tab:hover { color: var(--ah-ink); } }
.ah-app__tab .s { display: none; }
.ah-app__tab[aria-selected="true"] { background: var(--ah-white); color: var(--ah-ink); box-shadow: 0 1px 2px rgba(15,14,13,.08), 0 0 0 1px var(--ah-line); }
.ah-app__tab i { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ah-ink); opacity: 0; transform-origin: left; }
.is-auto .ah-app__tab[aria-selected="true"] i { opacity: .7; animation: ah-review-bar var(--rv-ms) linear; }
.is-auto.is-paused .ah-app__tab[aria-selected="true"] i { animation-play-state: paused; }
.ah-app__co { display: none; margin-left: auto; padding-right: 8px; font: 500 12px/1 var(--ah-mono); color: var(--ah-faint); white-space: nowrap; }

/* a fixed body height (the design size); each scene's main card runs past it, so the stage
   edge only ever cuts filler */
.ah-app__body { display: grid; height: 318px; }
.ah-app__rail { display: none; }

/* .ah-stack: tab panels share one grid cell, so switching never changes the height.
   Panels set their own display (an author display beats the browser's [hidden] rule), so a
   hidden panel keeps its real layout and size; it just isn't painted. */
.ah-stack { display: grid; }
.ah-stack > [role="tabpanel"] { grid-area: 1 / 1; }
.ah-stack > [hidden] { visibility: hidden; }
.ah-app__scenes { min-height: 0; overflow: hidden; }
.ah-scene { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; padding: 14px; }
.ah-scene:focus-visible { outline-offset: -4px !important; }
.ah-scene__title { flex: none; font: 400 19px/1.1 var(--ah-serif); letter-spacing: -.01em; text-wrap: balance; }
.ah-sc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ah-sc-label { font: 500 11px/1.2 var(--ah-mono); letter-spacing: .02em; color: var(--ah-faint); text-transform: uppercase; }
.ah-sc-legend { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ah-bar { display: block; height: 6px; border-radius: 3px; background: #e6e3dd; }

/* two stacked states; the new one rolls up into place (match chip, before/after label) */
.ah-swap { display: inline-grid; overflow: hidden; }
.ah-swap > * { grid-area: 1 / 1; }
.ah-swap > .from { opacity: 0; }

.ah-sc-card--run { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }
/* a list that carries on past the window's foot fades out over its filler rather than being cut;
   an overlay, not a mask, so the count-up inside doesn't re-mask the card every frame */
@container app (min-width: 560px) { .ah-sc-card--run:has(.ah-sc-more)::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; pointer-events: none; background: linear-gradient(rgba(255,255,255,0), var(--ah-white)); } }

/* accounting: the month's profit and loss, March against February */
.ah-sc-chip > span { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font: 500 11px/1 var(--ah-sans); }
.ah-sc-chip .from { background: var(--ah-bg-2); color: var(--ah-muted); }
.ah-sc-chip .to { background: var(--sc-good-bg); color: var(--sc-good); }

/* ledger rows: the tax computation */
.ah-sc-ledger { display: grid; }
.ah-sc-ledger > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ah-line); font-size: 13px; }
.ah-sc-ledger dt { color: var(--ah-muted); }
.ah-sc-ledger dd { margin: 0; font: 500 13px/1.3 var(--ah-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ah-sc-ledger b { font-weight: 500; }
.ah-sc-ledger .is-total { border-top-color: var(--ah-ink); }
.ah-sc-ledger :is(.is-total, .is-sub) dt { color: var(--ah-ink); font-weight: 500; }
.ah-sc-ledger .is-big { align-items: baseline; }
.ah-sc-ledger .is-big dd { font: 400 22px/1 var(--ah-serif); }
.ah-sc-ledger--cols > div { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px; }
.ah-sc-ledger--cols dd { text-align: right; }
.ah-sc-ledger--cols dd + dd { color: var(--ah-faint); }
.ah-sc-ledger--cols .is-big dd + dd { font: 500 13px/1.3 var(--ah-mono); }
.ah-sc-ledger .is-head { padding: 0 0 6px; border-top: 0; }
.ah-sc-ledger .is-head dd { font: 500 11px/1.2 var(--ah-mono); color: var(--ah-faint); text-transform: uppercase; }
.ah-sc-more { margin-top: 26px; }
.ah-sc-more p:not(.ah-sc-label) { display: flex; justify-content: space-between; align-items: center; height: 36px; border-top: 1px solid var(--ah-line); }

/* virtual CFO: one big figure, two quiet ones, the twelve-month chart filling the rest */
.ah-sc-kpis { flex: none; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--ah-line); }
.ah-sc-kpis li { display: grid; align-content: start; gap: 4px; }
.ah-sc-kpis span { font: 400 12px/1.25 var(--ah-sans); color: var(--ah-muted); }
.ah-sc-kpis b { font: 400 20px/1.05 var(--ah-serif); font-variant-numeric: tabular-nums; }
.ah-sc-kpis .is-lead b { font-size: 30px; }
.ah-sc-kpis small { font: 500 12px/1 var(--ah-mono); color: var(--sc-good); }
.ah-scene:has(.ah-sc-chart) .ah-sc-card--run { padding-top: 2px; }
.ah-sc-chart { position: relative; flex: 1 1 auto; min-height: 90px; margin-bottom: 30px; }
.ah-sc-bars { position: absolute; inset: 0; display: flex; align-items: stretch; gap: clamp(3px, 1.2cqi, 10px); }
/* each column: its value, then its bar; the month hangs below the baseline */
.ah-sc-col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.ah-sc-col > span { height: var(--h); border-radius: 3px 3px 0 0; background: #e3e1dc; transform-origin: bottom; }
.ah-sc-col:last-child > span { background: var(--ah-ink); }
.ah-sc-col b { padding-bottom: 4px; text-align: center; font: 500 9.5px/1 var(--ah-mono); color: var(--ah-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ah-sc-col:last-child b { color: var(--ah-ink); }
.ah-sc-col i { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 6px; font: 400 10px/1 var(--ah-mono); font-style: normal; color: var(--ah-faint); }
.ah-sc-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ah-sc-line polyline { fill: none; stroke: var(--sc-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ah-sc-key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #cfccc6; }
.ah-sc-key--line { width: 12px; height: 2px; margin-left: 8px; background: var(--sc-accent); }

/* restructuring: positions are % of the diagram box; nodes centre on them */
.ah-org { position: relative; flex: 1 1 auto; min-height: 140px; margin-bottom: 8px; }
.ah-org__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ah-org__lines path { fill: none; stroke: var(--ah-line-2); stroke-width: 1.5; }
.ah-org__lines--pre path { stroke-dasharray: 4 4; }
.ah-org > :not(svg) { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.ah-org__node { display: grid; justify-items: center; gap: 2px; width: 30%; padding: 6px; border: 1px solid var(--ah-line-2); border-radius: 8px; background: var(--ah-white); text-align: center; }
.ah-org__node b { font: 500 11.5px/1.2 var(--ah-sans); }
.ah-org__node small { font: 400 11px/1.2 var(--ah-sans); color: var(--ah-muted); }
.ah-org__node--hold { width: 50%; border-color: var(--ah-ink); background: var(--ah-ink); color: var(--ah-bg); }
.ah-org__node--hold small { color: var(--ah-d-muted); }
.ah-org__own { padding: 3px 8px; border-radius: 99px; background: var(--ah-bg-2); font: 500 10.5px/1.2 var(--ah-sans); color: var(--ah-text); white-space: nowrap; }
.ah-org__pct { padding: 2px 5px; border-radius: 4px; background: var(--ah-white); font: 500 11px/1.2 var(--ah-mono); color: var(--ah-muted); }

/* the activity rail: chrome in placeholder lines */
.ah-app__rail .ah-sc-label { margin-bottom: 12px; }
.ah-app__rail ul { display: grid; gap: 14px; }
.ah-app__rail li { display: flex; gap: 10px; align-items: flex-start; }
.ah-app__rail li > span { display: grid; gap: 7px; flex: 1; padding-top: 3px; }
.ah-app__av { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #e9e7e2; }

/* each scene's result: a notification card raised in the activity rail, inset evenly from its
   edges (the rail is 25% of the window, 190–260px; the card is that less 16px either side) */
.ah-sats { position: absolute; z-index: 2; top: 52%; right: 16px; width: calc(var(--rail) - 32px); display: none; }
.ah-sat { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--ah-white); color: var(--ah-ink);
  box-shadow: 0 0 0 1px rgba(15,14,13,.06), 0 14px 32px -8px rgba(50,50,60,.24), 0 4px 10px -4px rgba(0,0,0,.1); }
.ah-sat[hidden] { display: none; }
.ah-sat__ico { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ah-ink); color: var(--ah-bg); }
.ah-sat__ico svg { width: 13px; height: 13px; stroke-width: 2.4; }
.ah-sat b { display: block; font: 500 13.5px/1.3 var(--ah-sans); }
.ah-sat small { display: block; margin-top: 3px; font: 400 12.5px/1.35 var(--ah-sans); color: var(--ah-muted); }

/* the cursor (the Stageshow kit's macOS arrow); motion.js moves it by its hotspot */
.ah-cursor { position: absolute; z-index: 3; left: 0; top: 0; width: 24px; height: 24px; margin: -5px 0 0 -7.5px; pointer-events: none; display: none;
  transition: opacity .25s; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.3)); }
.ah-cursor svg { display: block; transform-origin: 31% 22%; transition: scale .12s var(--ah-ease); }
.ah-cursor.is-press svg { scale: .86; }
.has-cursor .ah-cursor { display: block; }
@media (hover: hover) and (pointer: fine) { .ah-show:hover .ah-cursor { opacity: 0; } }

/* the window, phone-narrow first: one visual per scene, no rail, no satellite, no cursor */
@container app (max-width: 559px) {
  .ah-show [data-opt~="sm"] { display: none; }
  .ah-app__tab { min-height: 44px; padding: 0 10px; font-size: 13px; scroll-snap-align: start; }
  .ah-app__tabs { scroll-snap-type: x proximity; }
  .ah-app__tab .l { display: none; }
  .ah-app__tab .s { display: inline; }
  .ah-sc-ledger > div { padding: 6px 0; font-size: 12.5px; }
  .ah-sc-ledger dd { font-size: 12.5px; }
  .ah-sc-ledger--cols > div { grid-template-columns: minmax(0, 1fr) auto; }
  .ah-sc-ledger .is-big dd { font-size: 20px; }
}
@container app (min-width: 560px) {
  .ah-app__body { height: 360px; }
  .ah-app__tabs { flex: 0 1 auto; }
  .ah-app__tab { padding: 0 16px; }
  .ah-app__dots { display: inline-flex; }
  .ah-scene { gap: 16px; padding: 22px 24px; }
  .ah-scene__title { font-size: 26px; }
  .ah-org__node { padding: 9px 8px; }
  .ah-org__node b { font-size: 13px; }
  .ah-org__node--hold { width: 40%; }
}
@container app (min-width: 760px) {
  .ah-app__body { height: 440px; grid-template-columns: minmax(0, 1fr) var(--rail); }
  .ah-app__rail { display: block; padding: 22px 20px; border-left: 1px solid var(--ah-line); background: var(--ah-bg); }
  .ah-scene { padding: 28px 32px; }
  .ah-scene__title { font-size: clamp(26px, 3.2cqi, 34px); }
}
@container app (min-width: 960px) { .ah-app__co { display: block; } }
/* the result cards live in the activity rail, so they show wherever it does */
@container app (min-width: 760px) { .ah-sats { display: grid; } }
/* the cursor needs a mouse and room for the tabs at full length; where it's off, the tab
   underline shows the rotation instead */
@container show (max-width: 719px) { .has-cursor .ah-cursor { display: none; } }
@container show (min-width: 720px) { .has-cursor .ah-app__tab i { display: none; } }

/* entrances: played when motion.js adds .is-play; without it scenes stay in their final state */
.ah-show [data-a="out"] { opacity: 0; }
.is-play [data-a], .is-play .ah-swap > * { animation-duration: .5s; animation-timing-function: var(--ah-ease); animation-fill-mode: both; animation-delay: var(--d, 0s); }
.is-play [data-a="in"] { animation-name: sc-in; }
.is-play .ah-swap > .to { animation-name: sc-roll-in; animation-duration: .4s; }
.is-play [data-a="out"] { animation-name: sc-out; animation-duration: .35s; }
.is-play .ah-swap > .from { animation-name: sc-roll-out; animation-duration: .4s; }
.is-play [data-a="pop"] { animation-name: sc-pop; }
.is-play [data-a="grow"] { animation-name: sc-grow; animation-duration: .6s; }
.is-play [data-a="wipe"] { animation-name: sc-wipe-x; animation-duration: 1s; }
.is-play [data-a="wipe-y"] { animation-name: sc-wipe-y; animation-duration: .8s; }
.is-play [data-a="drop"] { animation-name: sc-drop; animation-duration: .7s; }
@keyframes sc-in { from { opacity: 0; translate: 0 6px; } }
@keyframes sc-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sc-roll-in { from { opacity: 0; translate: 0 70%; } }
@keyframes sc-roll-out { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -70%; } }
@keyframes sc-pop { from { opacity: 0; scale: .85; } }
@keyframes sc-wipe-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes sc-wipe-y { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes sc-drop { from { top: var(--y0); } }
@keyframes sc-grow { from { transform: scaleY(0); } }
/* the satellite arrives whole from just above at the scene's payoff, and leaves as the next tab is clicked */
.ah-sat.is-in { animation: sat-in .6s cubic-bezier(.25,.8,.25,1) var(--sat-d, 1s) both; }
.ah-sat.is-out { animation: sat-out .22s cubic-bezier(.4,0,1,1) both; }
@keyframes sat-in { 0% { opacity: 0; translate: 0 -12px; } 35% { opacity: 1; } 100% { translate: 0 0; } }
@keyframes sat-out { to { opacity: 0; translate: 0 -6px; } }

/* ---------- credential strip (logo-wall equivalent) ---------- */
.ah-creds { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ah-line); border-left: 1px solid var(--ah-line); }
.ah-cred { display: grid; grid-template-rows: 64px auto; align-content: start; justify-items: center; gap: 16px; min-height: 128px; padding: 28px 12px 24px; text-align: center;
  border-right: 1px solid var(--ah-line); border-bottom: 1px solid var(--ah-line); }
.ah-cred__logo { display: block; align-self: center; width: auto; max-width: 156px; object-fit: contain; }
.ah-cred span { font: 400 13px/1.35 var(--ah-sans); color: var(--ah-muted); max-width: 22ch; }
@media (min-width: 640px) { .ah-creds { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ah-creds { grid-template-columns: repeat(5, 1fr); } }

/* ---------- audience router ---------- */
.ah-router { display: grid; gap: 16px; }
@media (min-width: 900px) { .ah-router { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ah-route {
  position: relative; display: flex; flex-direction: column; gap: 28px; overflow: hidden;
  border-radius: var(--ah-radius-lg); padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px) 0;
  background: #1c1b19; color: var(--ah-d-text); min-height: 560px; isolation: isolate;
}
.ah-route::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 70% at 0% 0%, rgba(126,119,108,.55), transparent 65%), radial-gradient(80% 60% at 100% 100%, rgba(88,84,77,.5), transparent 60%); }
.ah-route--warm::before { background: radial-gradient(90% 70% at 100% 0%, rgba(150,132,104,.5), transparent 65%), radial-gradient(70% 60% at 0% 100%, rgba(90,80,64,.5), transparent 60%); }
.ah-route__copy { display: grid; gap: 14px; max-width: 460px; }
.ah-route__copy .ah-body { color: var(--ah-d-muted); }
.ah-route__mock { margin-top: auto; }
.ah-route__title { font-size: clamp(34px, 3.6vw, 52px); }
.ah-route .ah-btn { justify-self: start; }

/* mini UI mock used inside cards; on the homepage motion.js animates the row states */
.ah-mock {
  position: relative; overflow: hidden;
  background: var(--ah-bg); color: var(--ah-ink); border-radius: 10px 10px 0 0; padding: 16px 16px 8px;
  box-shadow: 0 -12px 40px -12px rgba(0,0,0,.45); font-size: 13px;
}
.ah-mock__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ah-line); }
.ah-mock__title { font: 400 19px/1.1 var(--ah-serif); }
.ah-mock__meta { font: 500 11px/1 var(--ah-mono); color: var(--ah-faint); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ah-mock__bar { height: 3px; border-radius: 3px; background: var(--ah-line); margin: 12px 0 2px; overflow: hidden; }
.ah-mock__bar i { display: block; height: 100%; background: var(--ah-ink); border-radius: inherit; transition: width .9s var(--ah-ease); }
.ah-mock ul { list-style: none; margin: 0; padding: 0; }
.ah-mock li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--ah-line); transition: background .4s var(--ah-ease); }
.ah-mock li:last-child { border-bottom: 0; }
.ah-mock li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-mock li.is-done > span:nth-child(2) { color: var(--ah-muted); }
.ah-mock small { color: var(--ah-muted); font-size: 12px; white-space: nowrap; }
/* animated mocks (data-mock): each row carries its pill; it shows only while the row is live */
[data-mock] li > .ah-pill { display: none; }
[data-mock] li.is-live > .ah-pill, [data-mock] li.is-flash > .ah-pill { display: inline-block; animation: ah-pill-in .35s var(--ah-ease); }
[data-mock] li.is-live > small, [data-mock] li.is-flash > small { display: none; }
[data-mock] li.is-flash > .ah-pill { background: var(--ah-ink); color: var(--ah-bg); }
@keyframes ah-pill-in { from { transform: translateX(6px); opacity: .4; } }
.ah-mock__win { overflow: hidden; } /* calendar: a five-row window the list rolls through */
.ah-mock__win ul { transition: transform .7s var(--ah-ease); }
.ah-mock__win ul.is-jump { transition: none; }

/* status dots: --done / --live modifiers, or .is-done / .is-live on the parent row */
.ah-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ah-line-2); flex: none; display: grid; place-items: center;
  transition: background .35s var(--ah-ease), border-color .35s var(--ah-ease), transform .35s var(--ah-ease); }
.ah-dot--done, .is-done > .ah-dot { background: var(--ah-ink); border-color: var(--ah-ink); }
.ah-dot--done::after, .is-done > .ah-dot::after, .ah-toast b::after { content: ""; width: 7px; height: 4px; border: 1.5px solid var(--ah-bg); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.ah-dot--live, .is-live > .ah-dot { border-color: var(--ah-ink); }
.ah-dot--live::after, .is-live > .ah-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ah-ink); }
.ah-mock .is-live > .ah-dot::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--ah-ink); animation: ah-ping 1.8s var(--ah-ease) infinite; }
.ah-mock .is-pop > .ah-dot { transform: scale(1.25); }
@keyframes ah-ping { from { transform: scale(1); opacity: .45; } 70%, to { transform: scale(1.9); opacity: 0; } }

/* toast used by the animated mocks and the portal demo */
.ah-toast { position: absolute; right: 12px; bottom: 12px; z-index: 15; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px);
  padding: 9px 12px 9px 10px; border-radius: 8px; background: var(--ah-ink); color: var(--ah-bg); font: 500 12px/1.25 var(--ah-sans);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); transform: translateY(calc(100% + 20px)); transition: transform .5s var(--ah-ease); pointer-events: none; }
.ah-toast.is-on { transform: none; }
.ah-toast b { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ah-bg); }
.ah-toast b::after { border-color: var(--ah-ink); }
.ah-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-pill { font: 500 11px/1 var(--ah-sans); padding: 5px 8px; border-radius: 99px; background: var(--ah-bg-2); color: var(--ah-text); white-space: nowrap; }
.ah-pill--ink { background: var(--ah-ink); color: var(--ah-bg); }

/* ---------- value / feature grid ---------- */
.ah-grid { display: grid; gap: 40px 32px; }
@media (min-width: 700px) { .ah-grid--3, .ah-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ah-grid--3 { grid-template-columns: repeat(3, 1fr); } .ah-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.ah-feat { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--ah-line); }
.ah-dark .ah-feat { border-color: var(--ah-d-line); }
.ah-feat__n { font: 500 12px/1 var(--ah-mono); color: var(--ah-faint); letter-spacing: .04em; }
.ah-feat ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ah-feat li { position: relative; padding-left: 20px; color: var(--ah-text); font-size: 15px; line-height: 1.45; }
.ah-feat li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 1px; background: currentColor; opacity: .55; }
.ah-dark .ah-feat li { color: var(--ah-d-text); }

/* split feature: copy left, list right */
.ah-split { display: grid; gap: 40px; }
@media (min-width: 960px) { .ah-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; } .ah-split__sticky { position: sticky; top: calc(var(--ah-header-h) + 40px); align-self: start; } }
.ah-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ah-line); }
.ah-list > li { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--ah-line); }
@media (min-width: 700px) { .ah-list > li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; } }
.ah-dark .ah-list, .ah-dark .ah-list > li { border-color: var(--ah-d-line); }

/* ---------- cards ---------- */
.ah-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .ah-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ah-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.ah-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 28px);
  background: var(--ah-white); border: 1px solid var(--ah-line); border-radius: var(--ah-radius);
  color: var(--ah-ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ah-ease), box-shadow .3s var(--ah-ease);
}
@media (hover: hover) and (pointer: fine) { a.ah-card:hover { border-color: var(--ah-ink); box-shadow: 0 16px 32px -20px rgba(15,14,13,.35); } }
.ah-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ah-card .ah-body { flex: 1; }
.ah-card .ah-link { margin-top: auto; min-height: 0; padding-top: 8px; }
.ah-sec--alt .ah-card { background: var(--ah-bg); }
.ah-dark .ah-card { background: var(--ah-d-card); border-color: var(--ah-d-line); color: var(--ah-d-text); }
@media (hover: hover) and (pointer: fine) { .ah-dark a.ah-card:hover { border-color: rgba(250,250,249,.5); } }

/* ---------- carousel (scroll-snap, native on touch) ---------- */
.ah-carousel { position: relative; }
.ah-carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 420px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px var(--ah-gutter) 8px; margin-inline: calc(var(--ah-gutter) * -1);
  scroll-padding-inline: var(--ah-gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ah-carousel__track::-webkit-scrollbar { display: none; }
.ah-carousel__track > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .ah-carousel__track { grid-auto-columns: calc((100% - 2 * 16px - 2 * var(--ah-gutter)) / 3); } }
.ah-carousel__ctrl { display: flex; gap: 8px; }
.ah-iconbtn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer;
  background: transparent; color: inherit; border: 1px solid var(--ah-line-2); transition: background .2s, border-color .2s, opacity .2s, scale .14s var(--ah-ease);
}
.ah-iconbtn svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .ah-iconbtn:hover { border-color: currentColor; } }
.ah-iconbtn:disabled { opacity: .3; cursor: default; }
.ah-dark .ah-iconbtn { border-color: var(--ah-d-line); }
.ah-head-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 700px) { .ah-head-row { flex-direction: row; align-items: flex-end; gap: 24px; } }
.ah-head-row .ah-head { margin-bottom: 0; }
.ah-head-row .ah-carousel__ctrl { display: none; }
@media (min-width: 700px) { .ah-head-row .ah-carousel__ctrl { display: flex; } }

/* scenario card */
.ah-story {
  display: flex; flex-direction: column; min-height: 100%; border-radius: var(--ah-radius); overflow: hidden;
  background: var(--ah-d-card); border: 1px solid var(--ah-d-line); color: var(--ah-d-text); text-decoration: none;
}
.ah-story__art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: #2b2926; }
.ah-story__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ah-story__body { display: grid; gap: 12px; padding: 22px; align-content: start; flex: 1; }
.ah-story__body .ah-h3 { font-size: clamp(22px, 2vw, 26px); }
.ah-story__body p { margin: 0; color: var(--ah-d-muted); font-size: 15px; line-height: 1.5; }
.ah-story__foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 22px 22px; }
.ah-light .ah-story { background: var(--ah-white); border-color: var(--ah-line); color: var(--ah-ink); }
.ah-light .ah-story__body p { color: var(--ah-muted); }

/* ---------- facts / stats band ---------- */
.ah-facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ah-line); }
@media (min-width: 640px) { .ah-facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ah-facts { grid-template-columns: repeat(4, 1fr); } }
.ah-fact { display: grid; gap: 10px; align-content: start; padding: 28px 0; border-bottom: 1px solid var(--ah-line); }
@media (min-width: 640px) { .ah-fact { padding: 32px 28px 32px 0; } .ah-fact + .ah-fact { padding-left: 28px; border-left: 1px solid var(--ah-line); } .ah-fact:nth-child(2n+1) { border-left: 0; padding-left: 0; } }
@media (min-width: 1024px) { .ah-fact:nth-child(2n+1) { border-left: 1px solid var(--ah-line); padding-left: 28px; } .ah-fact:first-child { border-left: 0; padding-left: 0; } }
.ah-fact b { font: 400 clamp(44px, 5vw, 72px)/1 var(--ah-serif); letter-spacing: -0.02em; }
.ah-fact b small { font-size: .5em; margin-left: 4px; letter-spacing: 0; }
.ah-fact span { color: var(--ah-muted); font-size: 15px; line-height: 1.45; max-width: 32ch; }
.ah-dark .ah-facts, .ah-dark .ah-fact { border-color: var(--ah-d-line); }
.ah-dark .ah-fact span { color: var(--ah-d-muted); }
.ah-footnote { margin: 20px 0 0; font-size: 13px; color: var(--ah-faint); }
.ah-dark .ah-footnote { color: rgba(250,250,249,.45); }

/* ---------- trust / policy grid ---------- */
.ah-trust { display: grid; gap: 1px; background: var(--ah-d-line); border: 1px solid var(--ah-d-line); border-radius: var(--ah-radius); overflow: hidden; }
@media (min-width: 640px) { .ah-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ah-trust { grid-template-columns: repeat(4, 1fr); } }
.ah-trust__item { display: grid; gap: 10px; align-content: start; padding: 28px 24px 24px; background: var(--ah-ink); min-height: 220px; text-decoration: none; color: inherit; }
.ah-trust__item b { font: 400 34px/1 var(--ah-serif); color: var(--ah-bg); }
.ah-trust__item p { margin: 0; color: var(--ah-d-muted); font-size: 15px; line-height: 1.5; }
.ah-trust__item .ah-h4 { color: var(--ah-bg); }

/* ---------- pull quote ---------- */

/* ---------- tabs (use cases) ---------- */
.ah-tabs { display: grid; gap: 24px; }
@media (min-width: 960px) { .ah-tabs { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }
.ah-tabs__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--ah-gutter) * -1); padding-inline: var(--ah-gutter); scroll-snap-type: x proximity; }
.ah-tabs__list::-webkit-scrollbar { display: none; }
.ah-tab {
  flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 16px; border-radius: 99px; cursor: pointer;
  background: transparent; border: 1px solid var(--ah-line-2); color: var(--ah-muted); font: 500 14px/1 var(--ah-sans); text-align: left;
  transition: color .2s, background .2s, border-color .2s, scale .14s var(--ah-ease);
}
.ah-tab[aria-selected="true"] { background: var(--ah-ink); border-color: var(--ah-ink); color: var(--ah-bg); }
@media (min-width: 960px) {
  .ah-tabs__list { flex-direction: column; gap: 0; overflow: visible; margin: 0; padding: 0; border-top: 1px solid var(--ah-line); }
  .ah-tab { border: 0; border-bottom: 1px solid var(--ah-line); border-radius: 0; min-height: 64px; padding: 0; font: 400 24px/1.15 var(--ah-serif); color: var(--ah-faint); background: none !important; position: relative; }
  .ah-tab[aria-selected="true"] { color: var(--ah-ink); }
  .ah-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -20px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--ah-ink); transform: translateY(-50%); }
}
.ah-panel { border-radius: var(--ah-radius-lg); background: var(--ah-bg-2); padding: clamp(22px, 3vw, 44px); display: grid; gap: 20px; align-content: start; min-height: 100%; animation: ah-fade .3s var(--ah-ease); }
.ah-panel[hidden] { display: none; }
.ah-panel .ah-h3 { max-width: 24ch; }
.ah-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--ah-line-2); }
.ah-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--ah-line-2); color: var(--ah-text); font-size: 15px; line-height: 1.45; }
.ah-steps li::before { content: counter(s, decimal-leading-zero); font: 500 12px/1.9 var(--ah-mono); color: var(--ah-faint); }

/* ---------- FAQ ---------- */
.ah-faq { display: grid; gap: 40px; }
@media (min-width: 960px) { .ah-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }
.ah-acc { border-top: 1px solid var(--ah-line); }
.ah-acc details { border-bottom: 1px solid var(--ah-line); }
.ah-acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 0;
  font: 500 clamp(16px, 1.2vw, 18px)/1.35 var(--ah-sans); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.ah-acc summary::-webkit-details-marker { display: none; }
.ah-acc summary svg { width: 18px; height: 18px; flex: none; color: var(--ah-muted); transition: transform .25s var(--ah-ease); }
.ah-acc details[open] summary svg { transform: rotate(45deg); }
.ah-acc__body { padding: 0 0 24px; color: var(--ah-text); max-width: 68ch; line-height: 1.6; display: grid; gap: 12px; }
.ah-acc__body p { margin: 0; }
.ah-dark .ah-acc, .ah-dark .ah-acc details { border-color: var(--ah-d-line); }
.ah-dark .ah-acc__body { color: var(--ah-d-muted); }

/* ---------- horizontal tiles (articles) ---------- */
.ah-tile { display: grid; gap: 14px; text-decoration: none; color: inherit; align-content: start; }
.ah-tile__art { aspect-ratio: 4 / 3; border-radius: var(--ah-radius); overflow: hidden; background: var(--ah-bg-2); position: relative; display: grid; place-items: center; transition: scale .14s var(--ah-ease); }
.ah-tile__art > span { font: 400 clamp(56px, 6vw, 88px)/1 var(--ah-serif); color: var(--ah-ink); opacity: .9; font-style: italic; letter-spacing: -0.02em; transition: transform .5s var(--ah-ease); }
@media (hover: hover) and (pointer: fine) { .ah-tile:hover .ah-tile__art > span { transform: scale(1.06); } }
.ah-tile__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ah-muted); }
.ah-tile .ah-h4 { font-size: 18px; }
@media (hover: hover) and (pointer: fine) { .ah-tile:hover .ah-h4 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.ah-art--1 { background: linear-gradient(135deg, #e9e6df, #d8d3c8); }
.ah-art--2 { background: linear-gradient(135deg, #dfe0dc, #c9cbc4); }
.ah-art--3 { background: linear-gradient(135deg, #ebe7e1, #dcd2c4); }
.ah-art--4 { background: linear-gradient(135deg, #2a2825, #44403a); }
.ah-art--4 > span { color: var(--ah-bg); }

/* featured split tile */
.ah-feature { display: grid; gap: 24px; text-decoration: none; color: inherit; }
@media (min-width: 900px) { .ah-feature { grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; } }
.ah-feature .ah-tile__art { aspect-ratio: 16 / 10; }
@media (hover: hover) and (pointer: fine) { .ah-feature:hover .ah-h2 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; } }

/* chips / filters */
.ah-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--ah-gutter) * -1) 32px; padding: 0 var(--ah-gutter); }
.ah-chips::-webkit-scrollbar { display: none; }
.ah-chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--ah-line-2); background: transparent; color: var(--ah-text); font: 500 14px/1 var(--ah-sans); cursor: pointer; transition: scale .14s var(--ah-ease); }
.ah-chip[aria-pressed="true"] { background: var(--ah-ink); color: var(--ah-bg); border-color: var(--ah-ink); }

/* ---------- CTA band ---------- */
.ah-cta { padding-block: clamp(64px, 8vw, 128px); border-top: 1px solid var(--ah-line); }
.ah-cta__inner { display: grid; gap: 28px; }
@media (min-width: 900px) { .ah-cta__inner { grid-template-columns: 1fr auto; align-items: end; gap: 48px; } }
.ah-cta .ah-h2 { max-width: 16ch; }

/* ---------- people ---------- */
.ah-person { display: grid; gap: 24px; padding-block: 40px; border-top: 1px solid var(--ah-line); }
@media (min-width: 900px) { .ah-person { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }
.ah-person__id { display: grid; gap: 10px; align-content: start; }
.ah-monogram { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--ah-ink); color: var(--ah-bg); font: 400 34px/1 var(--ah-serif); }
.ah-person__bio { display: grid; gap: 16px; color: var(--ah-text); line-height: 1.6; }
.ah-person__bio p { margin: 0; }

/* ---------- contact ---------- */
.ah-contact { display: grid; gap: 40px; }
@media (min-width: 1000px) { .ah-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.ah-cal { min-height: 640px; border-radius: var(--ah-radius-lg); overflow: hidden; background: var(--ah-ink); }
.ah-dl { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--ah-line); }
.ah-dl > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--ah-line); }
.ah-dl dt { font-size: 13px; color: var(--ah-muted); }
.ah-dl dd { margin: 0; font-size: 16px; line-height: 1.5; }
.ah-dl a { color: inherit; text-underline-offset: 3px; }
.ah-dl dd > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- prose (articles migrated into new shell) ---------- */
.ah-prose { max-width: 70ch; color: var(--ah-text); font-size: 17px; line-height: 1.7; }
.ah-prose h2 { font: 400 clamp(28px, 2.6vw, 36px)/1.15 var(--ah-serif); color: var(--ah-ink); margin: 48px 0 16px; letter-spacing: -0.01em; }
.ah-prose h3 { font: 500 19px/1.35 var(--ah-sans); color: var(--ah-ink); margin: 32px 0 10px; }
.ah-prose p, .ah-prose ul, .ah-prose ol { margin: 0 0 18px; }
.ah-prose ul, .ah-prose ol { padding-left: 1.2em; }
.ah-prose ul { list-style: disc; }
.ah-prose li { margin-bottom: 6px; }
.ah-prose a { color: var(--ah-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.ah-footer { background: var(--ah-ink); color: var(--ah-d-text); padding: clamp(56px, 6vw, 96px) 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.ah-footer__top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--ah-d-line); }
@media (min-width: 1000px) { .ah-footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.ah-footer__brand { display: grid; gap: 16px; align-content: start; max-width: 380px; }
.ah-footer__brand .ah-logo { color: var(--ah-bg); font-size: 30px; }
.ah-footer__brand p { margin: 0; color: var(--ah-d-muted); font-size: 15px; line-height: 1.55; }
.ah-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 700px) { .ah-footer__cols { grid-template-columns: repeat(4, 1fr); } }
.ah-footer h2 { font: 500 13px/1 var(--ah-sans); color: var(--ah-d-muted); margin: 0 0 14px; }
.ah-footer ul { list-style: none; margin: 0; padding: 0; }
.ah-footer li a { display: flex; align-items: center; min-height: 44px; color: var(--ah-d-text); text-decoration: none; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .ah-footer li a:hover { color: var(--ah-bg); text-decoration: underline; text-underline-offset: 3px; } }
.ah-footer__wordmark { font: 400 clamp(56px, 13vw, 200px)/.9 var(--ah-serif); letter-spacing: -0.03em; color: rgba(250,250,249,.08); margin: 40px 0 0; white-space: nowrap; overflow: hidden; user-select: none; }
.ah-footer__wordmark em { font-style: italic; }
.ah-footer__base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; font-size: 13px; color: var(--ah-d-muted); }
.ah-footer__base a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ah-footer__base a:hover { color: var(--ah-bg); } }
.ah-footer__base nav { display: flex; gap: 20px; }

/* ---------- reveal on scroll ---------- */
/* Content is never hidden: it only eases up into place, so a stalled animation can't leave a blank section. */
.ah-js [data-reveal] { transform: translateY(14px); transition: transform .8s var(--ah-ease), scale .14s var(--ah-ease); }
.ah-js [data-reveal].is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ah-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- legacy bodies inside new shell ---------- */
body.ah.ah-legacy main { background: var(--ah-bg); }
body.ah .nav, body.ah .footer, body.ah .nav-backdrop { display: none; }
body.ah .res-pill { min-height: 44px; }
body.ah .res-pill i[class^="ph-"]:empty { display: none; }
@media (max-width: 599px) {
  .ah-mock li > span:nth-child(2) { white-space: normal; line-height: 1.35; }
  .ah-mock li { align-items: flex-start; }
  .ah-mock .ah-dot { margin-top: 1px; }
}

/* ---------- migrated article bodies ---------- */
.ah-post { padding-bottom: clamp(48px, 6vw, 96px); }
.ah-post .article-body { max-width: 680px; padding: 8px 0 24px; margin: 0; font-size: 17px; color: var(--ah-text); }
.ah-post .article-body h2 { font-family: var(--ah-serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; color: var(--ah-ink); margin-top: 48px; }
/* Legacy markup nests .callout inside .callout with an empty icon slot:
   style only the outer box and flatten the inner ones. */
.ah-post .callout .callout { margin: 0; padding: 0; border: 0; background: none; }
.ah-post .callout .callout:empty, .ah-post .callout > .callout:first-child:not(:has(*:not(:empty))) { display: none; }
.ah-post .callout { border-radius: var(--ah-radius); border-color: var(--ah-line); background: var(--ah-bg-2); }
.ah-post .callout h4 { margin: 0 0 8px; font: 500 16px/1.35 var(--ah-sans); color: var(--ah-ink); }
.ah-post .author-card { display: none; }
.ah-post .article-body table { display: block; overflow-x: auto; max-width: 100%; }
/* resources tools: result panels only appear once a tool has produced output */
body.ah .tool-result:not(.show) { display: none; }
body.ah .deadline-result:empty, body.ah .result-box:empty, body.ah .tool-output:empty { display: none; }
/* article reference lists */
.ah-post .references-list { display: grid; gap: 0; border-top: 1px solid var(--ah-line); }
.ah-post .reference-item { display: block; padding: 14px 0; border-bottom: 1px solid var(--ah-line); text-decoration: none !important; color: var(--ah-ink); }
.ah-post .reference-item h5 { margin: 0 0 2px; font: 500 15px/1.35 var(--ah-sans); }
.ah-post .reference-item p { margin: 0; font-size: 14px; color: var(--ah-muted); }
@media (hover: hover) and (pointer: fine) { .ah-post .reference-item:hover h5 { text-decoration: underline; text-underline-offset: 3px; } }
.ah-post .reference-icon:empty { display: none; }

/* ==========================================================================
   Scenario playbooks (clients page + previews)
   ========================================================================== */
/* sticky scenario switcher */
.ah-snav { position: sticky; top: calc(var(--ah-header-h) - 1px); z-index: 50; background: rgba(250,250,249,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ah-line); }
.ah-snav__track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; scroll-snap-type: x proximity; scroll-padding-inline: var(--ah-gutter); }
.ah-snav__track::-webkit-scrollbar { display: none; }
.ah-snav a { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px;
  border-radius: 99px; border: 1px solid var(--ah-line-2); color: var(--ah-text); text-decoration: none; font: 500 14px/1 var(--ah-sans); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, scale .14s var(--ah-ease); }
.ah-snav a b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; background: var(--ah-bg-2); font: 500 11px/1 var(--ah-mono); letter-spacing: .02em; }
.ah-snav a[aria-current="true"] { background: var(--ah-ink); color: var(--ah-bg); border-color: var(--ah-ink); }
.ah-snav a[aria-current="true"] b { background: rgba(250,250,249,.16); }
/* jumps land below the sticky bar (about 64px tall): an edge case 8px under it, a scenario with
   its first line 40px under it, whatever the section's top padding */
.ah-snav ~ section { scroll-margin-top: calc(88px - var(--ah-sec)); }
.ah-snav ~ section [id] { scroll-margin-top: 72px; }
/* hidden="until-found" keeps the box (content-visibility: hidden), so drop its padding too */
.ah-snav ~ section[hidden] { padding-block: 0; }
/* the scenario cards above the bar: a swipeable rail on phones instead of six stacked cards */
@media (max-width: 699px) {
  .ah-cards--rail { grid-auto-flow: column; grid-auto-columns: min(84%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--ah-gutter) * -1); padding: 4px var(--ah-gutter) 8px; scroll-padding-inline: var(--ah-gutter); scrollbar-width: none; }
  .ah-cards--rail::-webkit-scrollbar { display: none; }
  .ah-cards--rail > * { scroll-snap-align: start; }
}

/* route art */
.ah-route-art { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ah-radius-lg); overflow: hidden; background: #151413; isolation: isolate; }
.ah-route-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ra-label { font: 500 4.4px var(--ah-mono); letter-spacing: .08em; fill: rgba(250,250,249,.6); text-transform: uppercase; }
.ra-code { font: 400 11px var(--ah-serif); fill: #fafaf9; }
.ra-label--hi { fill: var(--ah-bg); } .ra-label--ink { fill: var(--ah-ink); }

/* playbook layout */
.ah-play { display: grid; gap: clamp(28px, 4vw, 48px); }
.ah-play__top { display: grid; gap: 24px; }
@media (min-width: 1000px) { .ah-play__top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; } }
.ah-play__intro { display: grid; gap: 16px; align-content: start; }
.ah-who { display: grid; gap: 0; border-top: 1px solid var(--ah-line); margin-top: 4px; }
.ah-who > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ah-line); font-size: 15px; line-height: 1.45; }
.ah-who dt { font: 500 12px/1.6 var(--ah-mono); color: var(--ah-faint); text-transform: uppercase; letter-spacing: .04em; }
.ah-who dd { margin: 0; color: var(--ah-text); }

.ah-block { border: 1px solid var(--ah-line); border-radius: var(--ah-radius-lg); background: var(--ah-white); padding: clamp(18px, 2.6vw, 32px); }
.ah-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.ah-block__head .ah-h4 { font-size: 18px; }
.ah-sec--alt .ah-block { background: var(--ah-bg); }

/* gantt timeline */
.ah-gantt { --cols: 12; display: grid; gap: 0; }
.ah-gantt__scale { display: grid; grid-template-columns: var(--lw, 38%) 1fr; font: 500 11px/1 var(--ah-mono); color: var(--ah-faint); padding-bottom: 10px; border-bottom: 1px solid var(--ah-line); }
.ah-gantt__ticks { display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.ah-gantt__ticks span { border-left: 1px solid var(--ah-line); padding-left: 4px; }
.ah-gantt__row { display: grid; grid-template-columns: var(--lw, 38%) 1fr; align-items: center; min-height: 56px; border-bottom: 1px solid var(--ah-line); }
.ah-gantt__label { display: grid; gap: 4px; padding: 10px 16px 10px 0; }
.ah-gantt__label strong { font: 500 14px/1.3 var(--ah-sans); }
.ah-gantt__label span { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ah-auth { font: 500 10px/1 var(--ah-mono); letter-spacing: .04em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: var(--ah-bg-2); color: var(--ah-muted); }
.ah-gantt__track { position: relative; height: 100%; min-height: 40px; background-image: linear-gradient(90deg, var(--ah-line) 1px, transparent 1px); background-size: calc(100% / var(--cols)) 100%; }
.ah-gantt__bar { position: absolute; top: 50%; height: 14px; transform: translateY(-50%); border-radius: 99px; background: var(--ah-ink);
  left: calc(var(--s) / var(--cols) * 100%); width: max(14px, calc((var(--e) - var(--s)) / var(--cols) * 100%)); transform-origin: left center; }
.ah-gantt__bar--var { background: repeating-linear-gradient(135deg, var(--ah-ink) 0 6px, #4a4742 6px 10px); }
.ah-gantt__bar--ongoing { background: linear-gradient(90deg, var(--ah-ink), rgba(15,14,13,.15)); }
.ah-gantt__bar small { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--ah-mono); color: var(--ah-muted); white-space: nowrap; }
.ah-gantt__bar--end small { left: auto; right: calc(100% + 8px); }
.ah-js .ah-gantt [data-reveal] .ah-gantt__bar, .ah-js .ah-gantt[data-reveal] .ah-gantt__bar { transform: translateY(-50%) scaleX(0); transition: transform .9s var(--ah-ease); }
.ah-js .ah-gantt[data-reveal].is-in .ah-gantt__bar { transform: translateY(-50%) scaleX(1); }
.ah-gantt__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--ah-muted); }
.ah-gantt__legend i { display: inline-block; width: 18px; height: 8px; border-radius: 99px; margin-right: 6px; vertical-align: middle; background: var(--ah-ink); }
.ah-gantt__legend i.v { background: repeating-linear-gradient(135deg, var(--ah-ink) 0 4px, #4a4742 4px 7px); }
.ah-gantt__legend i.o { background: linear-gradient(90deg, var(--ah-ink), rgba(15,14,13,.15)); }
@media (max-width: 699px) {
  .ah-gantt__scale { grid-template-columns: 1fr; }
  .ah-gantt__scale > span:first-child { display: none; }
  .ah-gantt__row { grid-template-columns: 1fr; padding: 12px 0; min-height: 0; }
  .ah-gantt__label { padding: 0 0 10px; }
  .ah-gantt__track { min-height: 22px; }
}

/* key numbers strip */
.ah-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ah-line); border: 1px solid var(--ah-line); border-radius: var(--ah-radius-lg); overflow: hidden; }
@media (min-width: 900px) { .ah-nums { grid-template-columns: repeat(4, 1fr); } }
.ah-num { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--ah-white); }
.ah-num b { font: 400 clamp(30px, 3vw, 42px)/1 var(--ah-serif); letter-spacing: -0.015em; }
.ah-num b small { font-size: .5em; margin-left: 3px; }
.ah-num span { font-size: 14px; line-height: 1.4; color: var(--ah-muted); }
.ah-num em { font: 500 10px/1.3 var(--ah-mono); font-style: normal; color: var(--ah-faint); text-transform: uppercase; letter-spacing: .04em; }

/* two-up: docs + outcome */
.ah-two { display: grid; gap: 16px; }
@media (min-width: 900px) { .ah-two { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ah-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ah-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ah-line); font-size: 15px; line-height: 1.45; color: var(--ah-text); }
.ah-checks li:last-child { border-bottom: 0; }
.ah-checks li::before { content: ""; width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid var(--ah-line-2); border-radius: 4px; }

/* edge cases */
.ah-edges { display: grid; gap: 12px; }
@media (min-width: 760px) { .ah-edges { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ah-edges--3 { grid-template-columns: repeat(3, 1fr); } }
.ah-edge { display: flex; flex-direction: column; border-radius: var(--ah-radius-lg); overflow: hidden; border: 1px solid var(--ah-line); background: var(--ah-white); }
.ah-edge__risk { display: grid; gap: 10px; padding: 18px 18px 16px; }
.ah-edge__tag { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--ah-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ah-muted); }
.ah-edge__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--ah-line-2); }
.ah-edge--high .ah-edge__tag i { background: var(--ah-ink); box-shadow: 0 0 0 3px rgba(15,14,13,.12); }
.ah-edge--med .ah-edge__tag i { background: var(--ah-muted); }
.ah-edge h4 { margin: 0; font: 400 21px/1.2 var(--ah-serif); letter-spacing: -0.005em; }
.ah-edge p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ah-muted); }
.ah-edge__fix { margin-top: auto; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 18px 18px; background: var(--ah-bg-2); border-top: 1px dashed var(--ah-line-2); }
.ah-edge__fix svg { width: 28px; height: 28px; }
.ah-edge__fix p { color: var(--ah-text); }
.ah-edge__fix strong { display: block; font: 500 12px/1.4 var(--ah-mono); color: var(--ah-ink); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.ah-src { font-size: 12px; color: var(--ah-faint); margin: 0; }
.ah-src a { color: inherit; text-underline-offset: 2px; }

/* quick check */
.ah-qc { display: grid; gap: 24px; }
@media (min-width: 1000px) { .ah-qc { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: start; } }
.ah-qc__qs { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.ah-q { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--ah-radius); background: var(--ah-d-card); border: 1px solid var(--ah-d-line); }
.ah-q legend, .ah-q > span { font-size: 15px; line-height: 1.4; color: var(--ah-d-text); }
.ah-seg { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(250,250,249,.08); }
.ah-seg label { position: relative; }
.ah-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ah-seg span { display: inline-grid; place-items: center; min-width: 56px; min-height: 44px; padding: 0 12px; border-radius: 99px; font: 500 13px/1 var(--ah-sans); color: var(--ah-d-muted); transition: background .2s, color .2s, scale .14s var(--ah-ease); }
.ah-seg input:checked + span { background: var(--ah-bg); color: var(--ah-ink); }
.ah-seg input:focus-visible + span { outline: 2px solid var(--ah-bg); outline-offset: 2px; }
.ah-qc__out { position: sticky; top: calc(var(--ah-header-h) + 72px); border-radius: var(--ah-radius-lg); background: var(--ah-bg); color: var(--ah-ink); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 14px; }
.ah-qc__score { display: flex; align-items: baseline; gap: 10px; }
.ah-qc__score b { font: 400 56px/1 var(--ah-serif); }
.ah-qc__out ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ah-qc__out li a { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ah-line); color: var(--ah-ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.ah-qc__out li a small { display: block; color: var(--ah-muted); font-size: 13px; margin-top: 2px; }
.ah-qc__out li a svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .ah-qc__out li a:hover strong { text-decoration: underline; text-underline-offset: 3px; } }
.ah-qc__empty { color: var(--ah-muted); font-size: 15px; margin: 0; }
@media (max-width: 599px) { .ah-q { grid-template-columns: 1fr; } }
.ah-qc__out .ah-body { color: var(--ah-muted); }
.ah-qc__out .ah-btn { --b-bg: var(--ah-ink); --b-fg: var(--ah-bg); --b-bd: var(--ah-ink); }
@media (hover: hover) and (pointer: fine) { .ah-qc__out .ah-btn:hover { --b-bg: var(--ah-ink-2); } }

/* ==========================================================================
   Services: icons, compact hero, deliverable tiles, step track, lifecycle map,
   compliance year
   ========================================================================== */
.ah-ico { width: 22px; height: 22px; flex: none; }
.ah-icobox { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ah-bg-2); color: var(--ah-ink); flex: none; }
.ah-dark .ah-icobox { background: var(--ah-ink); color: var(--ah-bg); }
.ah-dark .ah-icobox--soft { background: rgba(250,250,249,.08); color: var(--ah-bg); }

/* service hero: a black-and-white photograph (in .ah-dark), dark on the text side, the photo
   breathing on the other, a light film grain on top */
.ah-shero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  min-height: clamp(460px, 62svh, 720px); padding-block: clamp(48px, 9svh, 112px); }
.ah-shero__bg { position: absolute; inset: 0; z-index: -2; }
.ah-shero__bg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 60% 50%); }
.ah-shero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15,14,13,.9) 0%, rgba(15,14,13,.72) 34%, rgba(15,14,13,.22) 68%, rgba(15,14,13,.08) 100%); }
.ah-shero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: var(--ah-grain); }
.ah-shero__copy { display: grid; gap: 20px; align-content: center; max-width: 660px; }
.ah-shero .ah-lead { max-width: 46ch; }
/* small text over a photo: full dark-theme text colour, not the muted eyebrow grey (WCAG 4.5:1) */
.ah-shero .ah-crumb { color: var(--ah-d-text); }
.ah-shero .ah-actions { margin-top: 6px; }
@media (max-width: 760px) {
  .ah-shero { align-items: end; min-height: clamp(460px, 78svh, 640px); }
  .ah-shero::before { background: linear-gradient(180deg, rgba(15,14,13,.35) 0%, rgba(15,14,13,.68) 38%, rgba(15,14,13,.92) 100%); }
}
/* short screens (phones on their side): size to the text so the buttons stay on screen */
@media (max-height: 560px) {
  .ah-shero { min-height: 0; padding-block: 24px 28px; }
  .ah-shero__copy { gap: 12px; }
  .ah-shero .ah-h1 { font-size: clamp(2rem, 9svh, 2.75rem); }
}

/* deliverable tiles */
.ah-gets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .ah-gets { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.ah-get { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: var(--ah-radius-lg); background: var(--ah-white); border: 1px solid var(--ah-line); transition: transform .3s var(--ah-ease), box-shadow .3s var(--ah-ease), border-color .2s; }
@media (hover: hover) and (pointer: fine) { .ah-get:hover { transform: translateY(-2px); border-color: var(--ah-line-2); box-shadow: 0 14px 28px -20px rgba(15,14,13,.35); } }
.ah-get div > b { display: block; font: 500 15px/1.3 var(--ah-sans); }
.ah-get div > span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ah-muted); margin-top: 3px; }
@media (min-width: 760px) { .ah-get { grid-template-columns: 44px 1fr; align-items: center; padding: 20px; } .ah-get b { font-size: 16px; } }
.ah-sec--alt .ah-get { background: var(--ah-bg); }

/* step track (situation switcher) */
.ah-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; position: relative; }
.ah-track li { counter-increment: st; position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 10px 0; font: 500 15.5px/1.35 var(--ah-sans); }
.ah-track li::before { content: counter(st); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ah-white); border: 1px solid var(--ah-line-2); font: 500 13px/1 var(--ah-mono); color: var(--ah-ink); position: relative; z-index: 1; }
.ah-track li:last-child::before { background: var(--ah-ink); border-color: var(--ah-ink); color: var(--ah-bg); }
.ah-track::before { content: ""; position: absolute; left: 20px; top: 30px; bottom: 30px; width: 1px; background: var(--ah-line-2); }
@keyframes ah-rise { from { transform: translateY(8px); } }

/* compact pricing */
.ah-prices { display: grid; gap: 14px; }
@media (min-width: 760px) { .ah-prices { grid-template-columns: 1fr 1fr; } }
.ah-price { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 28px); border-radius: var(--ah-radius-lg); border: 1px solid var(--ah-line); background: var(--ah-white); }
.ah-price__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ah-price__top b { font: 400 clamp(36px, 4vw, 48px)/1 var(--ah-serif); letter-spacing: -0.015em; }
.ah-price__top small { color: var(--ah-muted); font-size: 13px; }
.ah-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ah-price li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: center; font-size: 15px; color: var(--ah-text); }
.ah-price li .ah-ico { width: 18px; height: 18px; }

/* lifecycle map (overview) */
.ah-map { display: grid; gap: 20px; }
.ah-map__stages { display: grid; gap: 14px; }
@media (min-width: 960px) { .ah-map__stages { grid-template-columns: 3fr 3fr 2fr; gap: 0; } }
.ah-stage-col { display: grid; gap: 12px; align-content: start; position: relative; }
@media (min-width: 960px) { .ah-stage-col { padding-right: 28px; } .ah-stage-col + .ah-stage-col { padding-left: 28px; border-left: 1px dashed var(--ah-line-2); } }
.ah-stage-col__head { display: flex; align-items: baseline; gap: 10px; }
.ah-stage-col__head b { font: 500 12px/1 var(--ah-mono); color: var(--ah-faint); }
.ah-stage-col__head span { font: 400 26px/1 var(--ah-serif); }
.ah-stage-col__head em { font-style: normal; font-size: 13px; color: var(--ah-muted); margin-left: auto; }
.ah-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 960px) { .ah-pick { grid-template-columns: 1fr; } }
.ah-svc-btn { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid var(--ah-line); background: var(--ah-white); color: var(--ah-ink); cursor: pointer; text-align: left; font: 500 15px/1.25 var(--ah-sans); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ah-ease); -webkit-tap-highlight-color: transparent; }
.ah-svc-btn .ah-icobox { width: 40px; height: 40px; border-radius: 10px; transition: background .2s, color .2s; }
@media (hover: hover) and (pointer: fine) { .ah-svc-btn:hover { border-color: var(--ah-ink); } }
.ah-svc-btn:active { transform: scale(.98); }
.ah-svc-btn[aria-selected="true"] { background: var(--ah-ink); border-color: var(--ah-ink); color: var(--ah-bg); }
.ah-svc-btn[aria-selected="true"] .ah-icobox { background: rgba(250,250,249,.12); color: var(--ah-bg); }
@media (max-width: 420px) { .ah-svc-btn { font-size: 14px; gap: 10px; } }
.ah-map__panel { border-radius: var(--ah-radius-lg); background: var(--ah-ink); color: var(--ah-d-text); padding: clamp(22px, 3vw, 40px); display: grid; gap: 24px; animation: ah-fade .3s var(--ah-ease); scroll-margin-top: calc(var(--ah-header-h) + 16px); }
.ah-map__panel[hidden] { display: none; }
@media (min-width: 960px) { .ah-map__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; } }
.ah-map__intro { display: grid; gap: 14px; align-content: start; }
.ah-map__intro .ah-icobox { width: 56px; height: 56px; background: var(--ah-bg); color: var(--ah-ink); border-radius: 14px; }
.ah-map__intro .ah-ico { width: 28px; height: 28px; }
.ah-map__intro .ah-h3 { color: var(--ah-bg); }
.ah-map__intro p { margin: 0; color: var(--ah-d-muted); font-size: 16px; line-height: 1.5; }
.ah-map__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ah-map__gets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .ah-map__gets { grid-template-columns: repeat(3, 1fr); } }
.ah-map__get { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(250,250,249,.06); border: 1px solid var(--ah-d-line); font-size: 14px; line-height: 1.3; color: var(--ah-bg); }
.ah-map__get .ah-ico { color: var(--ah-d-muted); }
.ah-map__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--ah-d-line); }

/* compliance year */
.ah-year { display: grid; gap: 18px; }
.ah-year__toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-year__toggles .ah-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.ah-year__toggles .ah-chip i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid currentColor; display: grid; place-items: center; }
.ah-year__toggles .ah-chip[aria-pressed="true"] i::after { content: ""; width: 7px; height: 4px; border: 1.5px solid currentColor; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ah-year__board { border-radius: var(--ah-radius-lg); background: var(--ah-white); border: 1px solid var(--ah-line); padding: clamp(14px, 2.4vw, 28px); overflow: hidden; }
.ah-year__grid { display: grid; grid-template-columns: minmax(84px, 140px) repeat(12, minmax(0, 1fr)); align-items: center; }
.ah-year__grid > :not(.ah-year__row), .ah-year__row > * { min-height: 46px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--ah-line); }
.ah-year__grid .ah-year__mh { min-height: 30px; font: 500 11px/1 var(--ah-mono); color: var(--ah-faint); letter-spacing: .02em; }
.ah-year__row .ah-year__lbl { justify-content: flex-start; font: 500 13.5px/1.2 var(--ah-sans); padding-right: 8px; }
.ah-year__lbl a { flex: 1; align-self: stretch; display: flex; align-items: center; }
.ah-year__row[hidden] { display: none; }
.ah-year__row { display: contents; }
.ah-year__cell { position: relative; gap: 3px; }
.ah-m-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ah-line-2); }
.ah-m-key { width: 16px; height: 16px; border-radius: 50%; background: var(--ah-ink); box-shadow: 0 0 0 3px rgba(15,14,13,.1); cursor: help; }
.ah-year__cell .ah-m-key::after { content: ""; position: absolute; inset: 0; } /* the whole month cell opens the tip */
.ah-year__cell:has(.ah-m-key) .ah-m-dot { display: none; }
.ah-year__sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; }
.ah-year__sum b { font: 400 44px/1 var(--ah-serif); margin-right: 8px; }
.ah-year__legend { display: flex; gap: 16px; font-size: 13px; color: var(--ah-muted); align-items: center; }
.ah-year__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ah-year__tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ah-ink); color: var(--ah-bg); font: 500 12px/1 var(--ah-sans); padding: 7px 9px; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 5; }
.ah-year__cell:focus-within .ah-year__tip { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .ah-year__cell:hover .ah-year__tip { opacity: 1; } }
@media (max-width: 599px) {
  .ah-year__grid { grid-template-columns: 74px repeat(12, minmax(0, 1fr)); }
  .ah-year__row .ah-year__lbl { font-size: 12px; }
  .ah-m-key { width: 12px; height: 12px; box-shadow: 0 0 0 2px rgba(15,14,13,.1); }
  .ah-m-dot { width: 5px; height: 5px; }
}

/* start steps */
.ah-start { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 700px) { .ah-start { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ah-start { grid-template-columns: repeat(4, 1fr); } }
.ah-start li { list-style: none; display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: var(--ah-radius-lg); background: rgba(250,250,249,.05); border: 1px solid var(--ah-d-line); }
.ah-start li b { font: 400 22px/1.15 var(--ah-serif); color: var(--ah-bg); }
.ah-start li span { font-size: 14.5px; line-height: 1.45; color: var(--ah-d-muted); }
.ah-start li em { font: 500 12px/1 var(--ah-mono); font-style: normal; color: rgba(250,250,249,.45); }
.ah-start { padding: 0; margin: 0; }
.ah-chip[role="tab"][aria-selected="true"] { background: var(--ah-ink); color: var(--ah-bg); border-color: var(--ah-ink); }
.ah-chip[role="tab"] { min-height: 44px; }

/* ==========================================================================
   Finder ("Find your path")
   ========================================================================== */
.ah-finder { scroll-margin-top: calc(var(--ah-header-h) + 12px); }
.ah-finder__shell { border-radius: 20px; background: var(--ah-white); border: 1px solid var(--ah-line); box-shadow: 0 30px 60px -40px rgba(15,14,13,.35); overflow: hidden; }
.ah-finder__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px clamp(18px, 3vw, 32px); border-bottom: 1px solid var(--ah-line); min-height: 64px; }
.ah-finder__top > .ah-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ah-ink); }
.ah-finder__top > .ah-eyebrow .ah-ico { width: 18px; height: 18px; }
.ah-finder__bar { position: relative; flex: 1 1 120px; height: 4px; border-radius: 99px; background: var(--ah-bg-2); overflow: hidden; min-width: 80px; }
.ah-finder__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--ah-ink); border-radius: inherit; transition: width .5s var(--ah-ease); }
.ah-finder__trail { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.ah-finder__trail[hidden] { display: none; }
.ah-trail { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 12px; border-radius: 99px; border: 1px solid var(--ah-line-2); background: var(--ah-bg); font: 500 13px/1 var(--ah-sans); color: var(--ah-text); cursor: pointer; transition: scale .14s var(--ah-ease); }
.ah-trail .ah-ico { width: 14px; height: 14px; color: var(--ah-faint); }
@media (hover: hover) and (pointer: fine) { .ah-trail:hover { border-color: var(--ah-ink); } }
@media (hover: hover) and (pointer: fine) { .ah-trail:hover .ah-ico { color: var(--ah-ink); } }
.ah-finder__stage { padding: clamp(20px, 3.4vw, 44px); min-height: 360px; }
.ah-finder__static { padding: clamp(20px, 3.4vw, 44px); }
.ah-js .ah-finder.is-live .ah-finder__static { display: none; }

/* question */
.ah-fq { display: grid; gap: 14px; animation: ah-rise .4s var(--ah-ease) both; }
.ah-fq__q { margin: 0; font: 400 clamp(28px, 3vw, 42px)/1.1 var(--ah-serif); letter-spacing: -0.012em; outline: none; text-wrap: balance; }
.ah-fq__hint { margin: -4px 0 0; color: var(--ah-muted); font-size: 15px; }
.ah-fq__opts { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 720px) { .ah-fq__opts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ah-fq__opts:has(> :nth-child(5)) { grid-template-columns: repeat(3, 1fr); } }
.ah-opt { display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px 12px 12px; border-radius: 14px; border: 1px solid var(--ah-line); background: var(--ah-bg); color: var(--ah-ink); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ah-ease), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.ah-opt > .ah-ico { width: 18px; height: 18px; color: var(--ah-faint); transition: transform .25s var(--ah-ease), color .2s; }
@media (hover: hover) and (pointer: fine) { .ah-opt:hover { border-color: var(--ah-ink); background: var(--ah-white); box-shadow: 0 10px 24px -18px rgba(15,14,13,.4); } }
@media (hover: hover) and (pointer: fine) { .ah-opt:hover > .ah-ico { transform: translateX(3px); color: var(--ah-ink); } }
.ah-opt:active { transform: scale(.985); }
.ah-opt.is-picked { background: var(--ah-ink); border-color: var(--ah-ink); color: var(--ah-bg); }
.ah-opt.is-picked .ah-icobox { background: rgba(250,250,249,.12); color: var(--ah-bg); }
.ah-opt.is-picked .ah-opt__txt span { color: rgba(250,250,249,.7); }
.ah-opt .ah-icobox { background: var(--ah-white); border: 1px solid var(--ah-line); }
.ah-opt__txt b { display: block; font: 500 16px/1.25 var(--ah-sans); }
.ah-opt__txt span { display: block; font-size: 13.5px; line-height: 1.35; color: var(--ah-muted); margin-top: 3px; }
.ah-fback { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--ah-muted); font: 500 14px/1 var(--ah-sans); cursor: pointer; }
.ah-fback svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .ah-fback:hover { color: var(--ah-ink); } }

/* result */
.ah-fr { display: grid; gap: 16px; animation: ah-rise .45s var(--ah-ease) both; }
.ah-fr__head { display: grid; gap: 16px; padding-bottom: 8px; }
@media (min-width: 900px) { .ah-fr__head { grid-template-columns: 1fr auto; align-items: end; } }
.ah-fr__title { margin: 6px 0 0; font: 400 clamp(30px, 3.4vw, 48px)/1.06 var(--ah-serif); letter-spacing: -0.015em; outline: none; text-wrap: balance; }
.ah-fr__sum { margin: 10px 0 0; color: var(--ah-text); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; max-width: 60ch; }
.ah-fr__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-fr__badge { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 99px; background: var(--ah-bg-2); font: 500 13.5px/1 var(--ah-sans); }
.ah-fr__badge .ah-ico { width: 16px; height: 16px; }
.ah-fr__badge--act { background: var(--ah-ink); color: var(--ah-bg); }
.ah-fr__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .ah-fr__grid { grid-template-columns: 7fr 5fr; } .ah-fr__grid--b { grid-template-columns: 1fr 1fr; } .ah-fr__grid--b:has(> :only-child) { grid-template-columns: 1fr; } }
.ah-fr__card { border-radius: 16px; border: 1px solid var(--ah-line); background: var(--ah-bg); padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 14px; align-content: start; }
.ah-fr__card h4 { margin: 0; font: 500 13px/1 var(--ah-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ah-muted); }
.ah-fr__card--ink { background: var(--ah-ink); border-color: var(--ah-ink); color: var(--ah-d-text); }
.ah-fr__card--ink .ah-eyebrow { color: var(--ah-d-muted); }
.ah-fr__price { margin: 0; font: 400 clamp(44px, 5vw, 64px)/1 var(--ah-serif); color: var(--ah-bg); letter-spacing: -0.02em; }
.ah-fr__price small { font: 400 14px/1 var(--ah-sans); color: var(--ah-d-muted); letter-spacing: 0; vertical-align: middle; }
.ah-fr__pkg { margin: 0; color: var(--ah-d-muted); font-size: 15px; }
.ah-fr__watch { display: grid; gap: 0; margin-top: 4px; }
.ah-fr__watch span { font-size: 13px; color: var(--ah-d-muted); padding-bottom: 6px; }
.ah-fr__watch a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-top: 1px solid var(--ah-d-line); color: var(--ah-bg); text-decoration: none; font: 500 15px/1.2 var(--ah-sans); }
.ah-fr__watch a .ah-ico { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .ah-fr__watch a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.ah-fr__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ah-fr__card--ink .ah-btn { --b-bg: var(--ah-bg); --b-fg: var(--ah-ink); --b-bd: var(--ah-bg); }
.ah-fr__card--ink .ah-btn--ghost { --b-bg: transparent; --b-fg: var(--ah-bg); --b-bd: rgba(250,250,249,.32); }

.ah-needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ah-need { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ah-line); }
.ah-need:first-child { border-top: 0; padding-top: 0; }
.ah-need b { display: block; font: 500 15.5px/1.3 var(--ah-sans); }
.ah-need div > span:not(.ah-sr) { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--ah-muted); }
.ah-need__i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.ah-need__i .ah-ico { width: 18px; height: 18px; }
.ah-need--ok .ah-need__i { background: var(--ah-bg-2); color: var(--ah-ink); }
.ah-need--act .ah-need__i { background: var(--ah-ink); color: var(--ah-bg); }
.ah-need--info .ah-need__i { border: 1px solid var(--ah-line-2); color: var(--ah-muted); }

/* pricing card that matches the finder result */
.ah-price { position: relative; transition: border-color .3s, box-shadow .3s; }
.ah-price.is-match { border-color: var(--ah-ink); box-shadow: 0 0 0 1px var(--ah-ink), 0 24px 48px -32px rgba(15,14,13,.45); }
.ah-price.is-match::before { content: "Your match"; position: absolute; top: -12px; left: 20px; padding: 6px 10px; border-radius: 99px; background: var(--ah-ink); color: var(--ah-bg); font: 500 12px/1 var(--ah-sans); }

/* finder trail key */
.ah-trail__k { color: var(--ah-muted); font-weight: 400; }
/* service pages: the finder sits right under the photo hero (62svh), so a compact top keeps it peeking
   above the fold: its heading on 900px-tall screens and up, its "01 · Start here" label on shorter ones */
.ah-sec.ah-finder { padding-top: clamp(36px, 3.6vw, 64px); }
.ah-finder .ah-head { margin-bottom: clamp(20px, 2.4vw, 32px); }
.ah-finder .ah-h2 { font-size: clamp(32px, 3.2vw, 48px); }

/* ---------- finder v2: stages, reasons, comparison ---------- */
.ah-stages { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; counter-reset: stg; }
.ah-stages::-webkit-scrollbar { display: none; }
.ah-stages li { counter-increment: stg; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 5px; border-radius: 99px; font: 500 13px/1 var(--ah-sans); color: var(--ah-faint); background: transparent; border: 1px solid var(--ah-line); transition: background .25s, color .25s, border-color .25s; }
.ah-stages li::before { content: counter(stg); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ah-bg-2); font: 500 11px/1 var(--ah-mono); color: var(--ah-muted); }
.ah-stages li.is-current { background: var(--ah-ink); color: var(--ah-bg); border-color: var(--ah-ink); }
.ah-stages li.is-current::before { background: rgba(250,250,249,.16); color: var(--ah-bg); }
.ah-stages li.is-done { color: var(--ah-ink); border-color: var(--ah-line-2); }
.ah-stages li.is-done::before { content: "✓"; background: var(--ah-ink); color: var(--ah-bg); font-family: var(--ah-sans); }
@media (max-width: 599px) { .ah-stages li:not(.is-current) { padding-right: 5px; font-size: 0; gap: 0; } .ah-stages li:not(.is-current)::before { font-size: 11px; } }
.ah-finder__top:has(.ah-stages) .ah-finder__bar { display: none; }

.ah-fr__kind { margin: 4px 0 0; font: 500 13px/1.3 var(--ah-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ah-muted); }
.ah-why { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ah-why li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--ah-bg-2); font-size: 14px; line-height: 1.3; color: var(--ah-text); }
.ah-why li .ah-ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ah-ink); color: var(--ah-bg); flex: none; }

.ah-cmp { display: grid; gap: 12px; }
.ah-cmp__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ah-cmp__head h4 { margin: 0; font: 500 13px/1 var(--ah-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ah-muted); }
.ah-cmp__head span { font-size: 13px; color: var(--ah-faint); }
.ah-cmp__grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(clamp(20px, 3.4vw, 44px) * -1); padding: 2px clamp(20px, 3.4vw, 44px) 6px; scroll-padding-inline: clamp(20px, 3.4vw, 44px); }
.ah-cmp__grid::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .ah-cmp__grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; } }
.ah-cmp__col { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--ah-line); background: var(--ah-bg); }
.ah-cmp__col.is-rec { background: var(--ah-ink); border-color: var(--ah-ink); color: var(--ah-d-text); }
.ah-cmp__top { display: grid; gap: 6px; }
.ah-cmp__top b { font: 400 24px/1.1 var(--ah-serif); }
.ah-cmp__top > span:last-child { font-size: 13px; color: var(--ah-muted); }
.ah-cmp__col.is-rec .ah-cmp__top b { color: var(--ah-bg); }
.ah-cmp__col.is-rec .ah-cmp__top > span:last-child { color: var(--ah-d-muted); }
.ah-cmp__badge { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 6px; border-radius: 99px; font: 500 11.5px/1 var(--ah-sans); background: var(--ah-bg); color: var(--ah-ink); }
.ah-cmp__badge .ah-ico { width: 14px; height: 14px; }
.ah-cmp__badge--alt { background: var(--ah-bg-2); color: var(--ah-muted); padding-left: 9px; }
.ah-cmp__col dl { margin: 0; display: grid; gap: 0; align-content: start; }
.ah-cmp__col dl > div { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--ah-line); }
.ah-cmp__col.is-rec dl > div { border-color: var(--ah-d-line); }
.ah-cmp__col dt { font: 500 11px/1.3 var(--ah-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ah-faint); }
.ah-cmp__col.is-rec dt { color: rgba(250,250,249,.45); }
.ah-cmp__col dd { margin: 0; font-size: 14px; line-height: 1.4; }
.ah-cmp__col.is-rec dd { color: var(--ah-bg); }
.ah-cmp__why { margin: 0; padding: 12px; border-radius: 10px; background: var(--ah-white); border: 1px dashed var(--ah-line-2); font-size: 13.5px; line-height: 1.45; color: var(--ah-text); }

/* ---------- homepage: one team, shown as one message ----------
   Timeline (motion.js replays each example as it rotates in, every 11s): your message 0.2s → typing 0.9–1.6s
   → our reply 1.6s → tasks land 2.1–3.0s (uneven, as a wave) → each flips In progress → Done ~1s later. */
.ah-vs { display: grid; gap: clamp(24px, 4vw, 64px); padding: clamp(18px, 3vw, 40px); border-radius: 20px; }
@media (min-width: 900px) { .ah-vs { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; } }

.ah-vs__copy { display: grid; gap: 14px; justify-items: center; text-align: center; padding-block: 8px; }
/* the headline is the payoff, so it closes the box on its own */
.ah-vs__copy .ah-h3 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; color: var(--ah-bg); text-wrap: balance; }

.ah-chat { display: grid; gap: 18px; padding: clamp(16px, 2.4vw, 28px); border-radius: 16px; background: rgba(250,250,249,.04); border: 1px solid var(--ah-d-line); }
.ah-chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ah-d-line); }
.ah-chat__head b { display: block; font: 500 14px/1.3 var(--ah-sans); }
.ah-chat__head small { display: block; font: 400 12px/1.3 var(--ah-sans); color: var(--ah-d-muted); }
.ah-chat__mark { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ah-bg); color: var(--ah-ink); font: 400 15px/1 var(--ah-serif); }
/* like a real thread, messages sit at the bottom, so a shorter exchange leaves room above it, not a gap before the footer */
.ah-chat__body { display: grid; align-content: end; gap: 16px; }
.ah-chat__msg { margin: 0; font: 400 14px/1.45 var(--ah-sans); }
.ah-chat__msg--you { justify-self: end; max-width: 82%; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: var(--ah-bg); color: var(--ah-ink); }
.ah-chat__reply { position: relative; }
.ah-chat__msg--us { padding: 14px 16px 6px; border-radius: 16px 16px 16px 4px; background: var(--ah-d-fill); }
.ah-chat__msg--us > p { margin: 0 0 10px; }
.ah-chat__tasks { display: grid; }
.ah-chat__tasks li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 11px 0; border-top: 1px solid var(--ah-d-fill); }
.ah-chat__svc { font: 500 11px/1.2 var(--ah-mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ah-d-muted); }
.ah-chat__task { font-size: 13.5px; line-height: 1.35; }
.ah-chat__st > span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font: 500 11.5px/1 var(--ah-sans); white-space: nowrap; }
.ah-chat__st .from { border: 1px solid var(--ah-d-line); color: var(--ah-d-muted); }
.ah-chat__st .to { background: var(--ah-bg); color: var(--ah-ink); }
.ah-chat__st .ah-ico { width: 12px; height: 12px; stroke-width: 2.6; }
/* three conversations share one cell, so rotating never changes the card's height */
.ah-chat__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ah-chat__dots { margin-inline-start: -8px; } /* the first bar lines up with the card's edge, its target overhangs */
.ah-chat__note { margin: 0; font: 400 11px/1 var(--ah-sans); color: rgba(250,250,249,.38); }
@media (max-width: 599px) {
  .ah-chat { gap: 14px; padding: 16px; }
  .ah-chat__head { gap: 10px; padding-bottom: 12px; }
  .ah-chat__mark { width: 32px; height: 32px; font-size: 13px; }
  .ah-chat__head small { display: none; }
  .ah-chat__body { gap: 14px; }
  .ah-chat__msg { font-size: 13.5px; line-height: 1.4; }
  .ah-chat__msg--you { max-width: 92%; padding: 9px 12px; }
  .ah-chat__msg--us { padding: 12px 14px 4px; }
  .ah-chat__tasks li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "svc st" "task task"; gap: 4px 10px; padding: 10px 0; }
  .ah-chat__svc { grid-area: svc; } .ah-chat__st { grid-area: st; } .ah-chat__task { grid-area: task; font-size: 13px; }
  .ah-chat__st > span { height: 22px; padding: 0 8px; font-size: 11px; }
}

/* typing dots sit where the reply will land, and only exist while the exchange plays */
.ah-chat__typing { position: absolute; left: 0; top: 0; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--ah-d-fill); opacity: 0; }
.ah-chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ah-d-muted); }
.is-play .ah-chat__typing { animation: chat-typing .7s var(--d, 0s) both; }
.is-play .ah-chat__typing i { animation: chat-dot .6s ease-in-out var(--d, 0s) 2 alternate; }
.is-play .ah-chat__typing i:nth-child(2) { animation-delay: calc(var(--d, 0s) + .1s); }
.is-play .ah-chat__typing i:nth-child(3) { animation-delay: calc(var(--d, 0s) + .2s); }
@keyframes chat-typing { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes chat-dot { to { translate: 0 -3px; opacity: .5; } }
.ah-contact--below { margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .ah-contact--below { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* router cards: share row tracks so label, headline, text, button and mock line up across both cards */
@media (min-width: 900px) {
  .ah-router { grid-template-rows: repeat(5, auto); }
  .ah-route { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 14px; }
  .ah-route__copy { display: contents; }
  .ah-route__copy > * { max-width: 480px; }
  .ah-route__copy > .ah-btn { align-self: start; }
  .ah-route__mock { margin-top: 14px; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
  .ah-route__mock > .ah-mock { flex: 1; }
}

/* ---------- client reviews (rotating) ---------- */
.ah-reviews { max-width: 980px; margin-inline: auto; display: grid; justify-items: center; gap: 32px; }
.ah-reviews > .ah-review { grid-area: 1 / 1; }
.ah-review { margin: 0; display: grid; justify-items: center; gap: 28px; text-align: center; animation: ah-review-in .7s var(--ah-ease); }
.ah-review[hidden] { display: none; }
.ah-review blockquote { margin: 0; font: 400 clamp(26px, 3.2vw, 46px)/1.15 var(--ah-serif); letter-spacing: -0.015em; text-wrap: balance; }
.ah-review figcaption { display: flex; align-items: center; gap: 14px; text-align: left; }
.ah-review__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center;
  background: var(--ah-bg); border: 1px dashed var(--ah-line-2); font: 500 14px/1 var(--ah-mono); color: var(--ah-faint); }
img.ah-review__photo { border: 0; background: var(--ah-bg-2); }
.ah-review figcaption > span { display: grid; gap: 3px; }
.ah-review figcaption strong { font-size: 15px; font-weight: 500; }
.ah-review figcaption small { font-size: 14px; color: var(--ah-muted); }
/* .ah-dots: progress bars for a rotating tab set (rotate() in motion.js puts .is-auto / .is-paused on the tablist) */
.ah-dots { --dot-track: var(--ah-line-2); --dot-fill: var(--ah-ink); display: flex; }
/* a 44px target around each 28px bar; the bars keep a 16px gap */
.ah-dots button { appearance: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.ah-dots i { position: relative; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--dot-track); overflow: hidden; transition: scale .14s var(--ah-ease); }
.ah-dots i::after { content: ""; position: absolute; inset: 0; background: var(--dot-fill); transform: scaleX(0); transform-origin: left; }
.ah-dots [aria-selected="true"] i::after { transform: none; }
.ah-dots.is-auto [aria-selected="true"] i::after { animation: ah-review-bar var(--rv-ms) linear; }
.ah-dots.is-paused [aria-selected="true"] i::after { animation-play-state: paused; }
.ah-dots button:focus-visible { outline: 2px solid var(--dot-fill); outline-offset: 2px; border-radius: 4px; }
.ah-dark .ah-dots { --dot-track: rgba(250,250,249,.18); --dot-fill: var(--ah-bg); }
.ah-reviews__nav { grid-row: 2; }
.ah-reviews__nav [aria-selected="true"] i { background: var(--ah-faint); }
@keyframes ah-review-in { from { transform: translateY(10px); opacity: .2; } }
@keyframes ah-review-bar { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .ah-review, .ah-mock li.is-live .ah-dot::before { animation: none !important; }
  .ah-mock__bar i, .ah-mock__win ul, .ah-toast { transition: none; }
}

/* ---------- coarse pointers: compact desktop controls grow to a 44px target, and form text is
   16px so iOS doesn't zoom the page on focus ---------- */
@media (pointer: coarse) {
  .ah-btn--sm, .ah-app__tab { min-height: 44px; }
  body.ah :is(input, select, textarea) { font-size: max(16px, 1em); } /* outranks the legacy tool styles */
}
