/* ==========================================================================
   Porto RCM Partner Solutions — homepage styles (v4)
   Layout, type scale and component patterns modelled on physitrack.com,
   rendered in Porto's navy and gold. Layer order is declared in tokens.css.
   Motion is opt-in: every animation sits under prefers-reduced-motion: no-preference.
   ========================================================================== */

@property --drawer-backdrop { syntax: "<number>"; inherits: true; initial-value: 0; }

/* ================================ reset ================================ */
@layer reset {
  html, body, div, section, header, footer, main, nav, article, aside, figure, figcaption,
  form, fieldset, label, input, select, textarea, button, a, span, ul, ol, li, p, dl, dt, dd,
  h1, h2, h3, h4, blockquote, address, details, summary, dialog, table, caption, th, td, img, svg, mark {
    box-sizing: border-box;
  }
  body, p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  img, svg { display: block; max-inline-size: 100%; block-size: auto; }
  input, select, textarea, button { font: inherit; color: inherit; }
  mark { background: none; color: inherit; }
}

/* ================================ base ================================= */
@layer base {
  html { scroll-padding-top: 6rem; }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  body {
    background: var(--paper);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11" 1, "ss01" 1;
  }
  a { color: inherit; text-underline-offset: 0.18em; }
  h1, h2, h3 { text-wrap: balance; }
  p, li, dd, blockquote { text-wrap: pretty; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
  ::selection { background: var(--brass-100); color: var(--ink); }
}

/* ============================== components ============================= */
@layer components {

  .wrap { inline-size: min(100% - 2 * var(--gutter), var(--content-max)); margin-inline: auto; }
  .wrap--narrow { inline-size: min(100% - 2 * var(--gutter), 48rem); }

  /* ---------- Type ------------------------------------------------------ */
  .h1, .display {
    font-size: var(--fs-h1); line-height: 1.1; font-weight: 600;
    letter-spacing: -0.02em; color: var(--text);
  }
  .h2 {
    font-size: var(--fs-h2); line-height: 1.2; font-weight: 500;
    letter-spacing: -0.015em; color: var(--text);
  }
  .h2--light { color: var(--white); }
  .lede, .hero__lede, .head__sub { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); }
  .display em, .h2 em { font-style: normal; }

  /* Highlighter: one key phrase per heading (Physitrack pattern) */
  .hl {
    background-image: var(--hl);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left center;
    border-radius: 0.22em;
    padding: 0 0.18em;
    margin-inline: -0.04em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: inherit;
  }
  .hl--dark { background-image: var(--hl-dark); color: var(--white); }

  /* ---------- Buttons ---------------------------------------------------- */
  .btn {
    --btn-bg: var(--porto-navy); --btn-fg: var(--white); --btn-bd: var(--porto-navy);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-block-size: 3rem; padding: 0.75rem 1.5rem;
    border: 1px solid var(--btn-bd); border-radius: var(--radius-pill);
    background: var(--btn-bg); color: var(--btn-fg);
    font-size: var(--fs-body); font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  }
  .btn:hover:not(:disabled) { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); box-shadow: 0 8px 20px -10px rgb(5 46 92 / 0.6); }
  .btn:disabled { opacity: 0.6; cursor: progress; }
  .btn--outline { --btn-bg: transparent; --btn-fg: var(--porto-navy); --btn-bd: var(--porto-navy); }
  .btn--outline:hover:not(:disabled) { --btn-bg: var(--navy-50); --btn-fg: var(--porto-navy); --btn-bd: var(--porto-navy); box-shadow: none; }
  .btn--ghost { --btn-bg: transparent; --btn-fg: var(--porto-navy); --btn-bd: var(--line-strong); }
  .btn--white { --btn-bg: var(--white); --btn-fg: var(--porto-navy); --btn-bd: var(--white); }
  .btn--white:hover:not(:disabled) { --btn-bg: var(--brass-100); --btn-fg: var(--porto-navy); --btn-bd: var(--brass-100); }
  .btn--sm { min-block-size: 2.625rem; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
  .btn--block { inline-size: 100%; }

  .link-more, .link-arrow {
    display: inline-flex; align-items: center; gap: 0.35rem; min-block-size: 2.75rem;
    font-weight: 500; color: var(--porto-navy); text-decoration: none;
  }
  .link-more::after, .link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; }
  .link-more:hover, .link-arrow:hover { text-decoration: underline; }

  /* ---------- Announcement ----------------------------------------------- */
  .notice { background: var(--cream); color: var(--text); font-size: var(--fs-small); font-weight: 500; }
  .notice__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-4); padding-block: 0.55rem; text-align: center; }
  .notice__tag { background: var(--hl); color: var(--porto-navy); border-radius: var(--radius-pill); padding: 0.15rem 0.6rem; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
  .notice__link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; white-space: nowrap; }
  @media (width < 40rem) { .notice__more { display: none; } }

  /* ---------- Header ------------------------------------------------------ */
  .site-header {
    position: sticky; inset-block-start: 0; z-index: 50;
    container: site-header / scroll-state;
    background: rgb(255 255 255 / 0.92);
    backdrop-filter: saturate(1.4) blur(12px);
    border-block-end: 1px solid transparent;
    transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  }
  @container site-header scroll-state(stuck: block-start) {
    .site-header__inner { box-shadow: none; }
  }
  .site-header.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -20px rgb(13 27 46 / 0.4); }
  .site-header__inner { display: flex; align-items: center; gap: var(--space-6); min-block-size: 5rem; }
  .brand img { inline-size: auto; block-size: 3.25rem; }
  .primary-nav { display: none; }
  .primary-nav ul { display: flex; gap: clamp(1rem, 1.6vw, 1.75rem); }
  .primary-nav a { display: inline-block; padding-block: 0.6rem; font-weight: 500; color: var(--text); text-decoration: none; position: relative; }
  .primary-nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0.35rem; block-size: 2px; border-radius: 2px; background: var(--brass); scale: 0 1; transform-origin: left; }
  .primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { scale: 1 1; }
  @media (prefers-reduced-motion: no-preference) { .primary-nav a::after { transition: scale var(--dur) var(--ease-out); } }
  .site-header__actions { display: none; gap: var(--space-3); margin-inline-start: auto; }
  .menu-button {
    margin-inline-start: auto; display: inline-flex; align-items: center; gap: var(--space-2);
    min-block-size: 2.75rem; padding: 0 1.1rem; border: 1px solid var(--porto-navy); border-radius: var(--radius-pill);
    background: var(--white); color: var(--porto-navy); font-weight: 500; cursor: pointer;
  }
  @media (width >= 72rem) {
    .primary-nav { display: block; margin-inline-start: var(--space-4); }
    .site-header__actions { display: flex; }
    .menu-button { display: none; }
  }
  @media (width >= 64rem) and (width < 72rem) {
    .site-header__actions { display: flex; }
  }

  /* ---------- Drawer ------------------------------------------------------- */
  .drawer { --drawer-width: min(22em, 86dvw, 100dvw - 24px); inset: 0; inline-size: auto; block-size: auto; max-inline-size: none; max-block-size: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
  .drawer::backdrop { background: rgb(2 26 51 / calc(0.5 * var(--drawer-backdrop, 1))); }
  html:has(.drawer[open]) { overflow: hidden; }
  .drawer__scroller { display: grid; grid-template-columns: var(--drawer-width) 100%; block-size: 100svh; overflow-x: scroll; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: none; scrollbar-width: none; }
  .drawer__scroller::-webkit-scrollbar { display: none; }
  .drawer__scroller::after { content: ""; scroll-snap-align: end; scroll-initial-target: nearest; }
  @media (prefers-reduced-motion: no-preference) { .drawer__scroller { scroll-behavior: smooth; } }
  .drawer__sheet { scroll-snap-align: start; block-size: 100svh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); background: var(--white); color: var(--text); box-shadow: 20px 0 40px -30px rgb(2 26 51 / 0.6); }
  .drawer__head { display: flex; align-items: center; justify-content: space-between; margin-block-end: var(--space-2); }
  .drawer__logo { block-size: 3rem; inline-size: auto; }
  .drawer__close { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); color: var(--porto-navy); cursor: pointer; }
  .drawer__links { display: grid; margin-block-end: var(--space-4); }
  .drawer__links a { display: flex; justify-content: space-between; padding-block: 0.85rem; border-block-end: var(--hairline); font-size: 1.125rem; font-weight: 500; text-decoration: none; }
  .drawer__links a::after { content: "›"; color: var(--text-3); }
  .drawer__meta { margin-block-start: auto; font-size: var(--fs-small); color: var(--text-3); }
  @supports (animation-timeline: scroll()) {
    .drawer { timeline-scope: --drawer-scroll; animation: drawer-backdrop linear both; animation-timeline: --drawer-scroll; }
    .drawer__scroller { scroll-timeline: --drawer-scroll x; }
    @keyframes drawer-backdrop { from { --drawer-backdrop: 1; } to { --drawer-backdrop: 0; } }
  }

  /* ---------- Sections ----------------------------------------------------- */
  .section { padding-block: var(--section); }
  .section--tight { padding-block: calc(var(--section) * 0.6); }
  .section--cream { background: var(--cream); }
  .head { display: grid; gap: var(--space-4); margin-block-end: clamp(2.5rem, 2rem + 2vw, 3.5rem); max-inline-size: 54rem; }
  .head__sub { max-inline-size: 40rem; }
  .head--center { margin-inline: auto; text-align: center; justify-items: center; }
  .head--split { max-inline-size: none; }
  @media (width >= 56rem) {
    .head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--space-8); }
    .head--split .head__sub { justify-self: end; }
    .head--bottom { align-items: end; }
    .head--split > .link-more { justify-self: end; }
  }

  /* ---------- Hero ----------------------------------------------------------- */
  .hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0; overflow: clip; }
  .hero__inner { display: grid; gap: clamp(3rem, 2rem + 3vw, 4rem); align-items: center; }
  @media (width >= 64rem) { .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
  .hero__copy { display: grid; gap: var(--space-5); justify-items: start; max-inline-size: 36rem; }
  .hero__trust { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-small); color: var(--text-2); }
  .hero__trust strong { color: var(--text); font-weight: 600; }
  .hero__avatar { inline-size: 2.5rem; block-size: 2.5rem; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--brass); }
  @media (width < 30rem) { .hero__trust-sep, .hero__trust-more { display: none; } }
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: var(--space-2); }
  .hero__assurances { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--fs-small); color: var(--text-2); }
  .hero__assurances li { display: inline-flex; align-items: center; gap: var(--space-2); }
  .hero__assurances li::before, .checks li::before {
    content: ""; flex: none; inline-size: 1.1rem; block-size: 1.1rem; border-radius: 50%;
    background: var(--porto-navy) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4.5 8.3l2.2 2.2 4.8-5%27 fill=%27none%27 stroke=%27%23fff%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / 100% no-repeat;
  }

  .hero__visual { position: relative; margin: 0; padding-block-end: 3rem; }
  .hero__photo { position: relative; aspect-ratio: 4 / 5; inline-size: min(100%, 27rem); margin-inline: auto 0; border-radius: var(--radius-l); overflow: clip; background: var(--ink); box-shadow: var(--shadow-card); }
  .hero__photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
  .hero__report { position: absolute; inset-inline-start: 0; inset-block-end: 0; inline-size: min(80%, 30rem); block-size: auto; filter: drop-shadow(0 24px 30px rgb(2 26 51 / 0.25)); }
  .hero__stat {
    position: absolute; inset-block-start: 2rem; inset-inline-start: 4%;
    display: grid; gap: 0.1rem; padding: 1rem 1.25rem; max-inline-size: 14rem;
    background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-float);
  }
  .hero__stat-value { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--porto-navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
  .hero__stat-label { font-size: var(--fs-small); color: var(--text-2); line-height: 1.35; }
  @media (width < 40rem) {
    .hero__visual { padding-block-end: 0; display: grid; gap: var(--space-4); }
    .hero__photo { inline-size: 100%; aspect-ratio: 4 / 3; }
    .hero__report { position: relative; inline-size: 100%; margin-block-start: -4rem; }
    .hero__stat { position: relative; inset: auto; }
  }

  /* Revenue-leak chips marquee */
  .leaks { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-block-start: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); padding-block: var(--space-6) var(--space-7); text-align: center; }
  .leaks__label { font-size: var(--fs-body); font-weight: 500; color: var(--text-2); margin-block-end: var(--space-3); }
  .marquee { display: flex; min-inline-size: 0; overflow: clip; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .marquee__row { flex: none; display: flex; gap: var(--space-3); padding-inline-end: var(--space-3); }
  .marquee__row li {
    display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
    padding: 0.55rem 1rem; border-radius: var(--radius-pill); background: var(--cream);
    font-size: 0.9375rem; color: var(--text);
  }
  .marquee__row li::before { content: ""; inline-size: 0.45rem; block-size: 0.45rem; border-radius: 50%; background: var(--brass); }
  .marquee--reverse .marquee__row li::before { background: var(--leak); }
  @media (prefers-reduced-motion: no-preference) {
    .marquee__row { animation: marquee 48s linear infinite; }
    .marquee--reverse .marquee__row { animation-direction: reverse; animation-duration: 56s; }
    .marquee:hover .marquee__row { animation-play-state: paused; }
    @keyframes marquee { to { translate: -100% 0; } }
  }
  .leaks .motion-toggle { justify-self: center; margin-block-start: var(--space-3); }

  /* ---------- Motion toggle (WCAG 2.2.2) ---------------------------------- */
  .motion-toggle { display: none; align-items: center; gap: var(--space-2); min-block-size: 2.25rem; padding: 0 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--white); color: var(--text-2); font-size: var(--fs-small); font-weight: 500; cursor: pointer; }
  .motion-toggle__icon { inline-size: 0.6rem; block-size: 0.7rem; border-inline: 2.5px solid currentColor; }
  .motion-toggle[aria-pressed="true"] .motion-toggle__icon { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
  @media (prefers-reduced-motion: no-preference) { .motion-toggle { display: inline-flex; } }

  /* ---------- Approach: compare cards ------------------------------------- */
  .compare { display: grid; gap: var(--space-4); }
  @media (width >= 56rem) { .compare { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .compare > li { display: grid; }
  .compare__card { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--cream); border-radius: var(--radius-m); color: var(--text-2); }
  .compare__who { font-size: var(--fs-small); font-weight: 500; color: var(--text-3); }
  .compare__title { font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--text); }
  .compare__verdict { display: inline-flex; align-items: center; gap: var(--space-2); margin-block-start: auto; padding-block-start: var(--space-4); border-block-start: 1px solid var(--line-strong); font-size: var(--fs-small); font-weight: 600; color: var(--text); }
  .compare__card--porto { background: var(--porto-navy); color: var(--text-on-dark-2); }
  .compare__card--porto .compare__who { color: var(--brass); }
  .compare__card--porto .compare__title, .compare__card--porto .compare__verdict { color: var(--white); }
  .compare__card--porto .compare__verdict { border-color: rgb(255 255 255 / 0.2); }
  .compare__bg { position: absolute; z-index: -1; inset: 0 0 0 auto; inline-size: 60%; block-size: 100%; object-fit: cover; opacity: 0.22; mask-image: linear-gradient(to left, #000, transparent); }
  .dot { inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; }
  .dot--leak { background: var(--leak); }
  .dot--signal { background: #6fc3ad; }

  /* ---------- Who we serve: tabs ------------------------------------------ */
  .serve { display: grid; gap: var(--space-5); padding: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); border: var(--hairline); border-radius: var(--radius-l); background: var(--white); }
  @media (width >= 56rem) { .serve { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
  .serve__list { display: flex; flex-direction: column; gap: var(--space-5); }
  .serve__tabs { display: grid; gap: var(--space-3); }
  .serve__tab {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4);
    inline-size: 100%; padding: var(--space-4); text-align: start;
    background: var(--white); border: var(--hairline); border-radius: var(--radius-m); cursor: pointer;
    transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  }
  .serve__tab:hover { border-color: var(--line-strong); background: var(--cream); }
  .serve__tab[aria-selected="true"] { background: var(--navy-50); border-color: rgb(5 46 92 / 0.35); }
  .serve__icon { display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; border-radius: 12px; background: var(--cream); color: var(--porto-navy); transition: background-color var(--dur), color var(--dur); }
  .serve__tab[aria-selected="true"] .serve__icon { background: var(--porto-navy); color: var(--white); }
  .serve__tab-text { display: grid; gap: 0.15rem; }
  .serve__tab-text b { font-size: 1.0625rem; font-weight: 600; color: var(--text); }
  .serve__tab-text span { font-size: var(--fs-small); color: var(--text-3); }
  .serve__arrow { color: var(--text-3); font-size: 1.15rem; transition: translate var(--dur) var(--ease-out), color var(--dur); }
  .serve__tab[aria-selected="true"] .serve__arrow { color: var(--porto-navy); translate: 3px 0; }
  .serve__note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-block-start: auto; padding: var(--space-5) var(--space-4) var(--space-3); border-block-start: var(--hairline); font-size: var(--fs-small); color: var(--text-2); }
  .serve__note b { font-size: 1rem; color: var(--text); }
  .serve__panel { display: grid; grid-template-rows: auto 1fr; overflow: clip; border-radius: 20px; background: linear-gradient(135deg, #f4e8d2 0%, #e2ebf6 100%); }
  .serve__panel[hidden] { display: none; }
  .serve__panel img { inline-size: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
  .serve__body { display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(1.5rem, 1rem + 1.5vw, 2rem); color: var(--text-2); }
  .serve__title { font-size: var(--fs-h3l); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
  .serve__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-block-start: auto; padding-block-start: var(--space-4); border-block-start: 1px solid rgb(13 27 46 / 0.12); font-weight: 600; color: var(--text); }
  @media (prefers-reduced-motion: no-preference) {
    .serve__panel:not([hidden]) { animation: panel-in 450ms var(--ease-out); }
    @keyframes panel-in { from { opacity: 0; translate: 0 10px; } }
  }

  .checks { display: grid; gap: var(--space-3); }
  .checks li { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; color: var(--text); }
  .checks--2 { gap: var(--space-3) var(--space-6); }
  @media (width >= 40rem) { .checks--2 { grid-template-columns: 1fr 1fr; } }

  /* ---------- The 2027 shift ----------------------------------------------- */
  .shift {
    position: relative; isolation: isolate; overflow: clip;
    display: grid; gap: var(--space-7); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
    border-radius: var(--radius-l);
    background: radial-gradient(ellipse 70% 90% at 100% 0%, rgb(184 146 79 / 0.22), transparent 60%), var(--ink);
    color: var(--text-on-dark-2);
  }
  @media (width >= 64rem) { .shift { grid-template-columns: 1fr 1fr; align-items: center; column-gap: var(--space-8); } }
  .shift__photo { position: absolute; z-index: -1; inset: 0 0 0 auto; inline-size: 55%; block-size: 100%; object-fit: cover; opacity: 0.2; filter: grayscale(1); mask-image: linear-gradient(to left, #000 20%, transparent); }
  .shift__copy { display: grid; gap: var(--space-5); justify-items: start; }
  .shift__copy p { font-size: var(--fs-lead); }
  .shift__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-m); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1); backdrop-filter: blur(6px); }
  .stat dt { font-size: var(--fs-small); line-height: 1.4; }
  .stat dd { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; color: var(--white); line-height: 1.05; font-variant-numeric: tabular-nums; }
  .stat:first-child dd { color: #e4c48a; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); }
  .shift__source { grid-column: 1 / -1; font-size: var(--fs-xs); color: #96a2b6; }

  /* ---------- Bento ---------------------------------------------------------- */
  .bento { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
  @media (width >= 48rem) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile--audit { grid-column: 1 / -1; } }
  @media (width >= 72rem) {
    .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .tile--audit { grid-column: span 7; grid-row: span 2; }
    .tile--path, .tile--queue { grid-column: span 5; }
    .tile--loop, .tile--codes, .tile--kpi { grid-column: span 4; }
  }
  .tile { container-type: inline-size; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); background: var(--cream); border-radius: var(--radius-m); color: var(--text-2); overflow: clip; transition: box-shadow var(--dur) var(--ease-out), translate var(--dur) var(--ease-out); }
  .tile:hover { box-shadow: var(--shadow-card); }
  @media (prefers-reduced-motion: no-preference) { .tile:hover { translate: 0 -3px; } }
  .tile__viz { margin-block-end: var(--space-4); }
  .tile__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; color: var(--text); }
  .tile--audit .tile__title { margin-block-start: auto; }

  .tile:not(.is-live) :is(*, *::before, *::after),
  html[data-motion="paused"] :is(.tile, .marquee, .float) :is(*, *::before, *::after),
  html[data-motion="paused"] :is(.marquee__row, .float) { animation-play-state: paused !important; }

  /* ledger */
  .ledger { position: relative; border: var(--hairline); border-radius: 12px; background: var(--white); font-size: 0.78rem; font-variant-numeric: tabular-nums; overflow: clip; }
  .ledger__head, .ledger__row { position: relative; display: grid; grid-template-columns: 1.05fr 1.2fr 0.8fr 1.35fr; gap: var(--space-3); padding: 0.85rem 1rem; align-items: center; }
  .ledger__head { color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; font-weight: 600; background: var(--cream); border-block-end: var(--hairline); }
  .ledger__row { border-block-end: 1px dashed var(--line); color: var(--text); }
  .ledger .ok { color: var(--signal); font-weight: 500; }
  .ledger .flag { color: var(--leak); font-weight: 500; }
  .ledger__row.is-flag::before { content: ""; position: absolute; inset: 0; background: rgb(168 67 47 / 0.07); }
  .ledger__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); padding: 0.9rem 1rem; background: var(--cream); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
  .ledger__sum b { font-size: 1.35rem; letter-spacing: -0.01em; text-transform: none; color: var(--leak); }
  .ledger__sum small { margin-inline-start: auto; font-size: 0.65rem; }
  .ledger__scan { display: none; }
  @container (width < 30rem) {
    .ledger__head, .ledger__row { grid-template-columns: 1fr 0.7fr 1.25fr; }
    .ledger__head span:nth-child(2), .ledger__row span:nth-child(2) { display: none; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .ledger__scan { display: block; position: absolute; inset-inline: 0; inset-block-start: 2.35rem; block-size: 2.6rem; background: linear-gradient(180deg, transparent, rgb(184 146 79 / 0.18) 45%, rgb(184 146 79 / 0.18) 55%, transparent); border-block: 1px solid rgb(184 146 79 / 0.5); pointer-events: none; animation: ledger-scan 6s linear infinite; }
    .ledger__row.is-flag::before { animation: ledger-flag 6s var(--ease-out) infinite; animation-delay: calc(var(--d) * 0.75s - 0.2s); }
    @keyframes ledger-scan { from { translate: 0 0; } to { translate: 0 calc(8 * 2.6rem); } }
    @keyframes ledger-flag { 0%, 10% { opacity: 0; } 16%, 82% { opacity: 1; } 100% { opacity: 0; } }
  }

  /* claim path */
  .pathviz { inline-size: 100%; }
  .pathviz__nodes circle { fill: var(--white); stroke: var(--porto-navy); stroke-width: 1.5; }
  .pathviz__broken { fill: none; stroke: var(--leak); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.15; }
  .pathviz__clean { fill: none; stroke: var(--porto-navy); stroke-width: 2; transform-box: fill-box; transform-origin: left center; }
  .pathviz__arrow { fill: none; stroke: var(--porto-navy); stroke-width: 2; }
  .pathviz__labels text { font: 600 9px var(--font); letter-spacing: 0.08em; fill: var(--text-3); text-anchor: middle; }
  @media (prefers-reduced-motion: no-preference) {
    .pathviz__broken { animation: path-broken 6s var(--ease-in-out) infinite; }
    .pathviz__clean { animation: path-clean 6s var(--ease-in-out) infinite; }
    .pathviz__arrow { animation: path-arrow 6s var(--ease-in-out) infinite; }
    @keyframes path-broken { 0%, 35% { opacity: 1; } 50%, 90% { opacity: 0.15; } 100% { opacity: 1; } }
    @keyframes path-clean { 0%, 35% { scale: 0 1; } 60%, 90% { scale: 1 1; } 100% { scale: 0 1; } }
    @keyframes path-arrow { 0%, 55% { opacity: 0; } 62%, 90% { opacity: 1; } 100% { opacity: 0; } }
  }

  /* queues */
  .queue { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: 12px; background: var(--white); }
  .queue__lane { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: var(--space-3); }
  .queue__name { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); }
  .queue__track { position: relative; block-size: 1.5rem; border-radius: var(--radius-pill); background: var(--cream); overflow: clip; }
  .queue__track i { position: absolute; inset-block-start: 50%; inset-inline-start: 0; inline-size: 1.75rem; block-size: 0.6rem; margin-block-start: -0.3rem; border-radius: var(--radius-pill); background: var(--porto-navy); translate: calc(var(--q) * 3rem + 0.5rem) 0; }
  .queue__track i.is-brass { background: var(--brass); }
  @media (prefers-reduced-motion: no-preference) {
    .queue__track i { animation: queue-run 4.5s linear infinite; animation-delay: calc(var(--q) * -1.5s); }
    @keyframes queue-run { from { translate: -2rem 0; } to { translate: 26rem 0; } }
  }

  /* ERA/EFT loop */
  .loopviz { inline-size: min(100%, 9.5rem); margin-inline: auto; }
  .loopviz__track { fill: none; stroke: var(--cream-2); stroke-width: 8; }
  .loopviz__run { fill: none; stroke: var(--porto-navy); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 60 292; transform-origin: 80px 80px; rotate: -90deg; }
  .loopviz__big { font: 700 32px var(--font); fill: var(--porto-navy); text-anchor: middle; }
  .loopviz__small { font: 600 7.5px var(--font); letter-spacing: 0.1em; fill: var(--text-3); text-anchor: middle; }
  @media (prefers-reduced-motion: no-preference) { .loopviz__run { animation: loop-run 3.2s linear infinite; } @keyframes loop-run { to { rotate: 270deg; } } }

  /* quarterly audits */
  .quarters { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
  @container (width < 30rem) { .quarters { grid-template-columns: repeat(2, 1fr); } }
  .quarters li { position: relative; display: grid; gap: 0.3rem; padding: 0.75rem 0.6rem; border: 1px solid var(--signal); border-radius: 10px; background: var(--signal-100); font-size: 0.7rem; color: var(--text-2); overflow: clip; }
  .quarters li span { font-size: 0.95rem; font-weight: 700; color: var(--porto-navy); }
  .quarters li b { font-weight: 500; overflow-wrap: anywhere; }
  @media (prefers-reduced-motion: no-preference) {
    .quarters li::after { content: ""; position: absolute; inset: 0; background: var(--white); border-radius: inherit; animation: quarter-cover 6s var(--ease-out) infinite; animation-delay: calc(var(--d) * 0.9s); }
    .quarters li span, .quarters li b { position: relative; z-index: 1; }
    @keyframes quarter-cover { 0%, 8% { opacity: 1; } 14%, 85% { opacity: 0; } 100% { opacity: 1; } }
  }

  /* sparkline */
  .spark { inline-size: 100%; }
  .spark__band { fill: rgb(46 125 107 / 0.12); }
  .spark__bandlabel { font: 600 8px var(--font); letter-spacing: 0.06em; fill: var(--signal); text-anchor: end; }
  .spark__axis { font: 600 7.5px var(--font); letter-spacing: 0.08em; fill: var(--text-3); }
  .spark__line { fill: none; stroke: var(--porto-navy); stroke-width: 2; }
  .spark__dot { fill: var(--brass); }
  .spark__wipe { transform-box: fill-box; transform-origin: left center; }
  @media (prefers-reduced-motion: no-preference) {
    .spark__wipe { animation: spark-wipe 5s var(--ease-out) infinite; }
    .spark__dot { animation: spark-dot 5s var(--ease-out) infinite; }
    @keyframes spark-wipe { 0% { scale: 0 1; } 55%, 100% { scale: 1 1; } }
    @keyframes spark-dot { 0%, 50% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }
  }

  /* ---------- How it works: stacking step cards ---------------------------- */
  .steps { display: grid; gap: var(--space-6); }
  .step {
    display: grid; gap: var(--space-6); align-items: center;
    padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
    border-radius: var(--radius-l); overflow: clip;
  }
  @media (width >= 64rem) {
    .step { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); min-block-size: 32rem; position: sticky; inset-block-start: calc(6.5rem + var(--i, 0) * 1.25rem); box-shadow: 0 -12px 40px -24px rgb(13 27 46 / 0.35); }
    .step:nth-child(2) { --i: 1; }
    .step:nth-child(3) { --i: 2; }
  }
  .step--cream { background: var(--cream); }
  .step--gradient { background: linear-gradient(110deg, #dfe9f6 0%, #f2e3c6 100%); }
  .step--navy { background: var(--porto-navy); color: var(--text-on-dark-2); }
  .step__copy { display: grid; gap: var(--space-5); justify-items: start; }
  .step__pill { display: inline-block; padding: 0.45rem 0.85rem; border-radius: var(--radius-s); background: var(--white); color: var(--text); font-size: 0.9375rem; font-weight: 600; }
  .step--navy .step__pill { background: rgb(255 255 255 / 0.12); color: var(--white); }
  .step__title { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
  .step--navy .step__title { color: var(--white); }
  .step__media { inline-size: 100%; block-size: auto; border-radius: 12px; filter: drop-shadow(0 20px 30px rgb(2 26 51 / 0.2)); }
  .bullets { display: grid; gap: var(--space-2); font-size: 1.0625rem; color: var(--text); }
  .bullets li { display: flex; gap: var(--space-3); align-items: baseline; }
  .bullets li::before { content: ""; flex: none; inline-size: 0.4rem; block-size: 0.4rem; border-radius: 50%; background: currentColor; translate: 0 -0.15rem; }
  .tiers { display: grid; gap: var(--space-3); }
  @media (width >= 40rem) { .tiers { grid-template-columns: 1fr 1fr; } }
  .tiers li { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-radius: 12px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.12); color: var(--white); font-weight: 500; }
  .tiers li span { font-size: var(--fs-small); font-weight: 600; color: #e4c48a; }

  /* ---------- Results ------------------------------------------------------- */
  .results { display: grid; gap: var(--space-4); }
  @media (width >= 48rem) { .results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (width >= 72rem) { .results { grid-template-columns: 1.1fr 1fr 1fr 0.9fr; } }
  .result { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--cream); border-radius: var(--radius-m); }
  .result__label { font-size: var(--fs-small); font-weight: 600; color: var(--text-3); }
  .result__big { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
  .result__big--navy { color: var(--porto-navy); }
  .result__meta { margin-block-start: auto; font-size: var(--fs-small); color: var(--text-2); }
  .result--navy { background: var(--porto-navy); }
  .result--navy .result__label { color: #e4c48a; }
  .result--navy .result__big { color: var(--white); }
  .result--navy .result__meta { color: var(--text-on-dark-2); }
  .bars { display: grid; gap: var(--space-3); margin-block-start: auto; }
  .bar { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); font-size: var(--fs-small); }
  .bar__name { font-size: 0.75rem; font-weight: 600; color: var(--text-3); }
  .bar__track { block-size: 0.6rem; border-radius: var(--radius-pill); background: var(--cream-2); overflow: clip; }
  .bar__fill { display: block; block-size: 100%; inline-size: calc(var(--v) * 100%); background: var(--porto-navy); border-radius: inherit; transform-origin: left; }
  .bar__fill--before { background: var(--line-strong); }
  .bar__val { font-weight: 600; color: var(--text); text-align: end; font-variant-numeric: tabular-nums; }
  @media (prefers-reduced-motion: no-preference) {
    .js [data-live]:not(.is-in) .bar__fill { scale: 0 1; }
    .bar__fill { transition: scale 1.1s var(--ease-out); }
  }

  .table-wrap { container-type: inline-size; overflow: auto; margin-block-start: var(--space-6); border: var(--hairline); border-radius: var(--radius-m); background: var(--white); }
  .table-wrap table { --label-2: "Porto RCM target"; --label-3: "What it protects"; inline-size: 100%; border-collapse: separate; border-spacing: 0; }
  .table-wrap caption { caption-side: top; text-align: start; padding: 1.25rem 1.25rem 1rem; font-size: var(--fs-h3); font-weight: 600; color: var(--text); }
  .table-wrap th, .table-wrap td { text-align: start; padding: 1rem 1.25rem; border-block-start: var(--hairline); vertical-align: top; }
  .table-wrap thead th { position: sticky; inset-block-start: 0; z-index: 1; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); background: var(--cream); }
  .table-wrap tbody th { position: sticky; inset-inline-start: 0; background: var(--white); font-weight: 600; color: var(--text); }
  .table-wrap td { color: var(--text-2); }
  .table-wrap td.num { font-size: var(--fs-lead); font-weight: 600; color: var(--porto-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
  @container (width < 600px) {
    .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
    .table-wrap thead { display: none; }
    .table-wrap tr { padding-block: 0.75rem; border-block-start: var(--hairline); }
    .table-wrap tbody th { position: static; border: 0; padding-block: 0.25rem; }
    .table-wrap td { border: 0; padding-block: 0.25rem; }
    .table-wrap td::before { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
    .table-wrap td:nth-child(2)::before { content: var(--label-2) ": "; }
    .table-wrap td:nth-child(3)::before { content: var(--label-3) ": "; }
  }

  /* ---------- About: founder ------------------------------------------------- */
  .founder { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
  .founder__photo { position: relative; margin: 0; border-radius: var(--radius-l); overflow: clip; aspect-ratio: 4 / 5; background: var(--ink); max-inline-size: 30rem; }
  @media (width >= 64rem) { .founder { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } .founder__photo { position: sticky; inset-block-start: 7rem; } }
  .founder__photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
  .founder__photo figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 0.2rem; padding: 4rem 1.5rem 1.5rem; background: linear-gradient(to top, rgb(2 26 51 / 0.92), transparent); color: var(--text-on-dark-2); font-size: var(--fs-small); }
  .founder__photo figcaption b { font-size: 1.375rem; font-weight: 600; color: var(--white); }
  .founder__copy { display: grid; gap: var(--space-6); color: var(--text-2); font-size: var(--fs-lead); line-height: 1.6; }
  .founder__quote { position: relative; padding-block-start: 2.5rem; }
  .founder__quote::before { content: "“"; position: absolute; inset-block-start: -1.25rem; inset-inline-start: -0.25rem; font-size: 6rem; line-height: 1; font-weight: 700; color: var(--brass); }
  .founder__quote p { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; color: var(--text); }
  .proof { display: grid; gap: var(--space-3); }
  @media (width >= 40rem) { .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .proof li { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); border-radius: var(--radius-m); background: var(--white); font-size: var(--fs-small); line-height: 1.45; }
  .proof b { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--porto-navy); font-variant-numeric: tabular-nums; }
  .timeline { display: grid; gap: 0; font-size: 1rem; }
  .timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-4); padding-block: 0.85rem; border-block-end: 1px solid var(--line-strong); color: var(--text); }
  .timeline li span { font-size: var(--fs-small); font-weight: 600; color: var(--brass-text); }
  @media (width < 30rem) { .timeline li { grid-template-columns: 1fr; gap: 0.1rem; } }
  .founder__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
  .founder__cred { font-size: var(--fs-small); color: var(--text-3); }

  /* ---------- Partners / systems ---------------------------------------------- */
  .systems { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); max-inline-size: 60rem; margin-inline: auto; }
  .systems li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--space-3); align-items: center; padding: var(--space-4); border: var(--hairline); border-radius: 12px; background: var(--white); transition: border-color var(--dur), box-shadow var(--dur); }
  .systems li:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
  .systems__mark { grid-row: span 2; display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border-radius: 10px; background: var(--navy-50); color: var(--porto-navy); font-weight: 700; }
  .systems b { font-weight: 600; color: var(--text); }
  .systems li > span:last-child { font-size: var(--fs-small); color: var(--text-3); }
  .partner { display: grid; gap: var(--space-6); margin-block-start: var(--space-7); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--radius-l); background: var(--cream); align-items: center; }
  @media (width >= 56rem) { .partner { grid-template-columns: 0.9fr 1.1fr; } }
  .partner__copy { display: grid; gap: var(--space-4); color: var(--text-2); }
  .partner__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); font-size: var(--fs-h3l); font-weight: 700; letter-spacing: -0.02em; color: var(--porto-navy); }
  .partner__name span { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--brass-text); }
  .partner__compliance { font-size: var(--fs-small); color: var(--text-3); }

  /* ---------- Insights: posts ------------------------------------------------- */
  .posts { display: grid; gap: var(--space-6); }
  @media (width >= 56rem) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
  .post { position: relative; display: grid; gap: var(--space-3); align-content: start; color: var(--text-2); }
  .post__img { aspect-ratio: 3 / 2; border-radius: 12px; overflow: clip; background: var(--cream); margin-block-end: var(--space-2); }
  .post__img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
  @media (prefers-reduced-motion: no-preference) {
    .post__img img { transition: scale var(--dur-slow) var(--ease-out); }
    .post:hover .post__img img { scale: 1.04; }
  }
  .post__meta { font-size: var(--fs-small); color: var(--text-3); }
  .post__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; color: var(--text); }
  .post__title a { text-decoration: none; }
  .post:hover .post__title a { text-decoration: underline; text-decoration-color: var(--brass); }
  .post__more { font-weight: 500; color: var(--porto-navy); }
  .post__more::after { content: " ›"; }
  .card-link::after { content: ""; position: absolute; inset: 0; }
  .card-link:focus-visible { outline: none; }
  .post:has(.card-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 12px; }

  /* ---------- CTA + form ------------------------------------------------------ */
  .cta { display: grid; gap: var(--space-7); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); border-radius: var(--radius-l); background: linear-gradient(135deg, #f7f5f3 0%, #eaf0f8 100%); }
  @media (width >= 64rem) { .cta { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--space-8); } }
  .cta__copy { display: grid; gap: var(--space-5); color: var(--text-2); font-size: var(--fs-lead); }
  .cta__media { inline-size: 100%; max-inline-size: 32rem; block-size: auto; margin-block-start: var(--space-4); border-radius: 12px; background: var(--ink); }
  .form { display: grid; gap: var(--space-5); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
  .form__req { font-size: var(--fs-small); color: var(--text-3); }
  .form__grid { display: grid; gap: var(--space-4); }
  @media (width >= 40rem) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
  .field { display: grid; gap: 0.4rem; align-content: start; }
  .field label { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
  .field__hint { font-size: 0.8125rem; color: var(--text-3); }
  .field input, .field select, .field textarea { inline-size: 100%; min-block-size: 3rem; padding: 0.7rem 0.9rem; font-size: max(1rem, 1em); color: var(--text); background: var(--white); border: 1px solid var(--field-border); border-radius: 10px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
  .field textarea { resize: vertical; min-block-size: 7rem; field-sizing: content; max-block-size: 18rem; }
  .field :is(input, select, textarea):hover { border-color: var(--porto-navy); }
  .field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--porto-navy); box-shadow: 0 0 0 3px rgb(5 46 92 / 0.2); }
  .field :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) { border-color: var(--leak); background: #fdf6f4; }
  .field__error { display: none; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--leak); }
  .field :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) ~ .field__error { display: flex; }
  .icon-error { flex: none; inline-size: 1rem; block-size: 1rem; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%277%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27/%3E%3Cpath d=%27M8 4.5v4.5%27 stroke=%27%23000%27 stroke-width=%271.6%27 stroke-linecap=%27round%27/%3E%3Ccircle cx=%278%27 cy=%2711.5%27 r=%271%27 fill=%27%23000%27/%3E%3C/svg%3E") center / contain no-repeat; }
  .hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .form__legal { font-size: 0.8125rem; color: var(--text-3); }
  .form__status { font-weight: 600; color: var(--signal); }
  .form__status:empty { display: none; }

  /* ---------- FAQ -------------------------------------------------------------- */
  .accordion { border-block-start: var(--hairline); }
  .accordion details { border-block-end: var(--hairline); }
  .accordion summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: 1.25rem; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 500; color: var(--text); }
  .accordion summary::-webkit-details-marker { display: none; }
  .accordion summary::after {
    content: ""; flex: none; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%; background-color: var(--cream);
    background-image: linear-gradient(var(--text), var(--text)), linear-gradient(var(--text), var(--text));
    background-size: 0.75rem 1.5px, 1.5px 0.75rem; background-position: center; background-repeat: no-repeat;
  }
  .accordion details[open] > summary::after { rotate: 45deg; background-color: var(--brass-100); }
  .accordion summary:hover { color: var(--porto-navy); }
  .accordion details > p { padding-block-end: 1.5rem; padding-inline-end: 3rem; color: var(--text-2); }
  .accordion details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
  .accordion details:not([open])::details-content { block-size: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .accordion summary::after { transition: rotate var(--dur) var(--ease-out), background-color var(--dur); }
    .accordion details::details-content { transition: block-size, content-visibility, display; transition-duration: 0.3s; transition-behavior: allow-discrete; }
  }

  /* ---------- Footer ----------------------------------------------------------- */
  .site-footer { background: var(--ink); color: var(--text-on-dark-2); padding-block: var(--space-8) var(--space-5); font-size: var(--fs-small); --focus: var(--brass); }
  .site-footer__inner { display: grid; gap: var(--space-6); padding-block-end: var(--space-7); border-block-end: 1px solid rgb(255 255 255 / 0.1); }
  @media (width >= 56rem) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
  .site-footer__brand { display: grid; gap: var(--space-4); justify-items: start; align-content: start; }
  .site-footer__brand img { block-size: 5rem; inline-size: auto; }
  .site-footer__nav ul { display: grid; gap: var(--space-1); }
  .site-footer a { display: inline-block; padding-block: 0.3rem; color: var(--white); text-decoration: none; }
  .site-footer .btn { padding-block: 0.5rem; color: var(--porto-navy); }
  .site-footer a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--brass); }
  .site-footer__contact { display: grid; gap: var(--space-1); font-style: normal; align-content: start; justify-items: start; }
  .site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-block-start: var(--space-5); font-size: 0.75rem; color: #96a2b6; }

  /* ---------- Brand-guide compatibility (brand.html) ------------------------- */
  .kpi-chip { display: grid; gap: 0.15rem; align-content: start; padding: var(--space-4); background: var(--white); border: var(--hairline); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
  .kpi-chip__label { font-size: 0.75rem; font-weight: 600; color: var(--text-3); }
  .kpi-chip__value { font-size: var(--fs-h3l); font-weight: 700; letter-spacing: -0.02em; color: var(--porto-navy); }
  .kpi-chip__meta { font-size: var(--fs-small); color: var(--signal); }
  .arch { position: relative; overflow: clip; aspect-ratio: 4 / 5; border-radius: var(--radius-l); background: var(--ink); }
  .arch__img { inline-size: 100%; block-size: 100%; object-fit: cover; }
}

/* ============================== utilities ============================== */
@layer utilities {
  .visually-hidden:where(:not(:focus-within, :active)) {
    position: absolute !important; inline-size: 1px !important; block-size: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
  }
  .skip-link:focus { position: fixed; inset-inline-start: var(--space-4); inset-block-start: var(--space-4); z-index: 100; padding: var(--space-3) var(--space-4); background: var(--ink); color: var(--white); border-radius: var(--radius-s); }

  @media (prefers-reduced-motion: no-preference) {
    /* Hero entrance */
    .hero__copy > * { animation: rise 800ms var(--ease-out) backwards; }
    .hero__copy > :nth-child(2) { animation-delay: 80ms; }
    .hero__copy > :nth-child(3) { animation-delay: 160ms; }
    .hero__copy > :nth-child(4) { animation-delay: 240ms; }
    .hero__copy > :nth-child(5) { animation-delay: 320ms; }
    .hero__photo { animation: rise 900ms var(--ease-out) 120ms backwards; }
    .hero__report { animation: rise 900ms var(--ease-out) 380ms backwards; }
    .hero__stat { animation: rise 900ms var(--ease-out) 560ms backwards; }
    @keyframes rise { from { opacity: 0; translate: 0 24px; } }

    /* Gentle float on the hero cards (paused by the motion toggle) */
    .hero__report.float { animation: rise 900ms var(--ease-out) 380ms backwards, float 7s var(--ease-in-out) 1.3s infinite; }
    .hero__stat.float { animation: rise 900ms var(--ease-out) 560ms backwards, float 7s var(--ease-in-out) 2.4s infinite; }
    @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

    /* Highlighter draws in when its heading enters the viewport */
    .js .hl { background-size: 0% 100%; transition: background-size 1s var(--ease-out) 0.2s; }
    .js .is-in .hl, .js .hl.is-in { background-size: 100% 100%; }

    /* Section headings ink in from grey as they scroll into view (Physitrack pattern) */
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      .h2:not(.h2--light) { animation: ink-in linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
      @keyframes ink-in { from { color: #9ba6b5; } to { color: var(--text); } }
      .reveal { animation: reveal auto linear backwards; animation-timeline: view(); animation-range: entry 0% entry 75%; }
      @keyframes reveal { from { opacity: 0; translate: 0 1.75rem; } }
    }
    .reveal--io { opacity: 0; translate: 0 1.75rem; transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out); }
    .reveal--io.is-in { opacity: 1; translate: 0 0; }
  }

  @media (forced-colors: active) {
    .btn, .menu-button, .drawer__close, .motion-toggle, .serve__tab { border: 1px solid ButtonText; }
    .tile, .compare__card, .step, .result, .proof li, .systems li, .table-wrap, .serve__panel, .shift, .cta, .partner { border: 1px solid CanvasText; }
    .hl { forced-color-adjust: none; background: Mark; color: MarkText; }
  }
  @media print {
    .notice, .site-header, .drawer, .form, .motion-toggle, .leaks { display: none !important; }
    .step { position: static !important; }
  }
}
