/*
Theme Name: SnapSmartz
Theme URI: https://snapsmartz.com/
Description: SnapSmartz website built to the SnapSmartz Brand Guide v1.0 (November 2026): the New-Patient Booking Fix for independent practices, the Research Studio browser app (recipes, summaries, figures, Excel export, Paper Studio) and free lab utilities, services and pricing, and a contact page that embeds the SnapSmartz Google Form.
Author: SnapSmartz
Version: 1.7.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: snapsmartz
*/

/* ==========================================================================
   Brand system (SnapSmartz Brand Guide v1.0)
   Layout: 12-column feel, 1280px max content, 24px gutters, 4px spacing base.
   Color weight: navy 50 / Alice Blue 30 / Steel Blue 12 / Jungle Teal 6 / Coral 2.
   Type: Space Grotesk headlines, Inter body, IBM Plex Mono technical labels.
   ========================================================================== */

@font-face {
    font-family: "Space Grotesk";
    src: url("assets/fonts/space-grotesk-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url("assets/fonts/inter-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    /* The five official colors. White is a neutral, not a sixth accent. */
    --navy: #14213d;
    --alice: #dbe4ee;
    --steel: #3e7cb1;
    --teal: #558b6e;
    --coral: #ff8552;
    --white: #ffffff;

    /* Derived neutrals and tints for surfaces, rules and status fills. */
    --navy-hover: #22325a;
    --abyss: #000617;
    --surface: #f1f4f8;
    --surface-2: #f7f9fb;
    --line: #c9d4e1;
    --line-soft: #e4eaf1;
    --line-strong: #6b7a93;
    --muted: #4a5873;
    --on-dark: #dbe4ee;
    --on-dark-muted: #b4c1d2;
    --line-on-dark: rgba(219, 228, 238, .2);
    --tint-steel: #e3ecf5;
    --tint-teal: #e2eee7;
    --tint-coral: #fff3ee;
    --coral-soft: #ffc4aa;
    --steel-soft: #9ebcd8;

    /* Status roles. Text stays navy; tone is carried by fill, border and shape. */
    --ok: var(--navy);
    --ok-bg: var(--tint-teal);
    --warn: var(--navy);
    --warn-bg: var(--tint-coral);
    --crit: var(--navy);
    --crit-bg: #ffe6da;
    --info: var(--navy);
    --info-bg: var(--tint-steel);

    --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap: 80rem;
    --gutter: clamp(1.25rem, 5.5vw, 5rem);
    --header-h: 4.5rem;
    --header-offset: 0px;
    --radius-card: 8px;
    --radius-button: 6px;
    --radius-tag: 4px;
    --ease-out: cubic-bezier(.2, .7, .2, 1);
    --ease-expo: cubic-bezier(.16, 1, .3, 1);
    --focus: var(--navy);
    color-scheme: light;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--navy);
    font: 400 clamp(1rem, .25vw + .95rem, 1.125rem) / 1.56 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.admin-bar {
    --header-offset: 32px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

h1, h2, h3, h4, p, figure {
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.02em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 2.2vw + 1.25rem, 3rem);
    line-height: 1.125;
}

h2 {
    font-size: clamp(1.625rem, .8vw + 1.35rem, 2rem);
    line-height: 1.19;
}

h3 {
    font-size: clamp(1.375rem, .3vw + 1.3rem, 1.5rem);
    line-height: 1.25;
}

p {
    max-width: 70ch;
}

.mono, .label, .tag, .role {
    font-family: var(--font-mono);
}

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

.wrap {
    width: min(var(--wrap), calc(100% - var(--gutter) - var(--gutter)));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: calc(var(--header-offset) + .75rem);
    left: .75rem;
    z-index: 100;
    padding: .6rem 1rem;
    transform: translateY(-200%);
    border-radius: var(--radius-button);
    background: var(--white);
    color: var(--navy);
}

.skip-link:focus {
    transform: translateY(0);
}

[hidden] {
    display: none !important;
}

.anchor-target {
    scroll-margin-top: var(--header-h);
}

/* ---------- Labels and status tags ---------- */

.label {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1.5;
    text-transform: uppercase;
}

.label-on-dark {
    color: var(--coral);
}

.status-inline {
    color: var(--navy);
}

.label-on-dark .status-inline {
    color: var(--white);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    padding: .2rem .5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-tag);
    background: var(--surface);
    color: var(--navy);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}

.tag::before {
    flex: 0 0 auto;
    width: .55rem;
    height: .55rem;
    content: "";
}

/* Each status has its own shape, so color is never the only cue. */
.tag-available {
    border-color: var(--teal);
    background: var(--tint-teal);
}

.tag-available::before {
    border-radius: 50%;
    background: var(--teal);
}

.tag-dev {
    border-color: var(--steel);
    background: var(--tint-steel);
}

.tag-dev::before {
    border: 1.5px solid var(--steel);
    border-radius: 50%;
    background: linear-gradient(90deg, var(--steel) 50%, transparent 50%);
}

.tag-exploring {
    border-color: var(--navy);
    background: var(--white);
}

.tag-exploring::before {
    border: 1.5px solid var(--navy);
    border-radius: 50%;
}

.tag-concept, .tag-demo {
    border-color: var(--line-strong);
    background: var(--alice);
}

.tag-concept::before, .tag-demo::before {
    border: 1.5px solid var(--navy);
}

.tag.on-dark {
    border-color: var(--line-on-dark);
    background: rgba(219, 228, 238, .08);
    color: var(--white);
}

.tag-available.on-dark::before {
    background: #8fc2a6;
}

.tag-dev.on-dark::before {
    border-color: var(--steel-soft);
    background: linear-gradient(90deg, var(--steel-soft) 50%, transparent 50%);
}

.tag-demo.on-dark::before, .tag-concept.on-dark::before {
    border-color: var(--white);
}

.family-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* ---------- Header and navigation ---------- */

.site-header, .masthead, .site-footer, .band-navy, .demo-intro {
    --focus: var(--white);
    background: var(--navy);
    color: var(--white);
}

.site-header {
    position: sticky;
    z-index: 40;
    top: var(--header-offset);
    border-bottom: 1px solid rgba(219, 228, 238, .1);
    background: var(--abyss);
}

.site-footer {
    background: var(--abyss);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    color: var(--white);
    text-decoration: none;
}

.brand-logo {
    width: auto;
    height: 2.75rem;
}

.footer-brand .brand-logo {
    height: 2.5rem;
}

.site-nav, .nav-links {
    display: flex;
    align-items: center;
}

.site-nav {
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-links {
    gap: clamp(1rem, 2.4vw, 2rem);
}

.nav-links a {
    position: relative;
    padding-block: .75rem;
    color: var(--on-dark);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms var(--ease-out);
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
    color: var(--white);
}

.nav-links a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: .2rem;
    left: 0;
    height: 2px;
    background: var(--coral);
    content: "";
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .45rem .8rem;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--radius-button);
    background: transparent;
    color: var(--white);
    font-size: .9375rem;
    font-weight: 500;
}

.menu-icon {
    width: .9rem;
    height: .5rem;
    border-block: 1.5px solid currentColor;
}

/* ---------- Actions ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: fit-content;
    max-width: 100%;
    min-height: 48px;
    padding: .7rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 180ms var(--ease-out);
}

.button-compact {
    min-height: 44px;
    padding: .55rem 1rem;
    font-size: .9375rem;
}

/* Primary: navy text on coral. Reserved for the key action in a view. */
.button-primary {
    background: var(--coral);
    color: var(--navy);
}

.button-primary:hover {
    box-shadow: inset 0 0 0 2px var(--navy);
}

.site-header .button-primary:hover, .masthead .button-primary:hover, .band-navy .button-primary:hover, .demo-intro .button-primary:hover {
    box-shadow: inset 0 0 0 2px var(--white);
}

/* Secondary: white on navy. */
.button-secondary {
    background: var(--navy);
    color: var(--white);
}

.button-secondary:hover {
    background: var(--navy-hover);
}

/* On navy surfaces the secondary action becomes an outline. */
.button-secondary-dark {
    border-color: var(--on-dark-muted);
    background: transparent;
    color: var(--white);
}

.button-secondary-dark:hover {
    background: rgba(219, 228, 238, .1);
}

.button:disabled {
    border-color: var(--line);
    background: var(--surface);
    color: var(--muted);
    box-shadow: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
}

/* Tertiary: underlined navy text. */
.text-link, .back-link {
    width: fit-content;
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
    transition: text-decoration-color 180ms var(--ease-out);
}

.text-link:hover, .back-link:hover {
    text-decoration-color: var(--coral);
    text-decoration-thickness: 2px;
}

.text-link-on-dark, .back-link {
    color: var(--white);
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .9375rem;
}

.back-link::before {
    content: "\2190\00a0";
}

.text-button {
    width: fit-content;
    min-height: 32px;
    padding: .15rem 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .25em;
}

.text-button:disabled {
    color: var(--muted);
    text-decoration: none;
    opacity: .7;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

/* ---------- Homepage story: cinematic, scroll-linked on phones, tablets and laptops ---------- */

.story {
    --focus: var(--white);
    --tip-x: 30%;
    --tip-y: 68%;
    --spot-x: var(--tip-x);
    --spot-y: var(--tip-y);
    position: relative;
    background: var(--abyss);
    color: var(--white);
}

.story-frame {
    position: relative;
    overflow: hidden;
}

.story-visual {
    position: relative;
    overflow: hidden;
    background: var(--abyss);
}

.story-stage {
    position: absolute;
    inset: 0 0 0 34%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

.story-camera {
    position: absolute;
    inset: 0;
    transform-origin: var(--tip-x) var(--tip-y);
    transform: translate3d(var(--pan-x, 0px), var(--pan-y, 0px), 0) scale(var(--zoom, 1));
    will-change: transform;
}

.story-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 50%;
    transform-origin: var(--tip-x) var(--tip-y);
    filter: saturate(1.08) contrast(1.06);
}

.story-sweep {
    position: absolute;
    inset: -10% -40%;
    background: linear-gradient(104deg, transparent 42%, rgba(150, 196, 255, .12) 47%, rgba(226, 238, 255, .3) 50%, rgba(150, 196, 255, .12) 53%, transparent 58%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
}

.story-glow {
    position: absolute;
    left: var(--spot-x);
    top: var(--spot-y);
    width: 22rem;
    height: 22rem;
    transform: translate(-50%, -42%);
    background: radial-gradient(circle, rgba(170, 214, 255, .5), rgba(62, 124, 177, .2) 30%, transparent 62%);
    mix-blend-mode: screen;
    opacity: calc(.85 * var(--ambient, 1));
    pointer-events: none;
}

.story-beam {
    position: absolute;
    left: var(--spot-x);
    top: var(--spot-y);
    width: 11rem;
    height: 46%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(170, 220, 255, .5), rgba(62, 124, 177, .12) 65%, transparent);
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
    filter: blur(5px);
    mix-blend-mode: screen;
    opacity: calc(.7 * var(--ambient, 1));
    pointer-events: none;
}

.story-focus {
    position: absolute;
    left: var(--spot-x);
    top: var(--spot-y);
    width: clamp(9rem, 16vw, 15rem);
    height: auto;
    overflow: visible;
    transform: translate(-50%, -50%) scale(var(--focus-scale, 1));
    opacity: var(--focus-op, 1);
    pointer-events: none;
}

.focus-ring {
    fill: none;
    stroke-linecap: round;
    transform-box: fill-box;
    transform-origin: center;
}

.focus-ring-outer {
    stroke: rgba(219, 228, 238, .55);
    stroke-width: 1.2;
    stroke-dasharray: 1.2 2.6;
}

.focus-ring-inner {
    stroke: var(--steel-soft);
    stroke-width: 1.6;
    stroke-dasharray: 22 6 9 6 30 6 9 12;
}

.focus-core {
    fill: var(--coral);
}

.focus-brackets {
    fill: none;
    stroke: rgba(255, 255, 255, .9);
    stroke-width: 2;
}

.focus-ticks {
    fill: none;
    stroke: rgba(219, 228, 238, .6);
    stroke-width: 1.5;
}



.story-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.story-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--abyss) 0, rgba(0, 6, 23, .82) 30%, rgba(0, 6, 23, .1) 58%, transparent 70%);
    pointer-events: none;
}

.story-aperture {
    display: none;
}

.story-controls {
    display: none;
}

.story-progress {
    display: none;
}

.story-steps {
    position: relative;
}

.story-step {
    position: relative;
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.story-step + .story-step {
    border-top: 1px solid var(--line-on-dark);
}

.story-copy {
    display: grid;
    gap: 1.1rem;
    max-width: 36rem;
}

/* The logo artwork sits on its own dark ground; feather its edges into the scene. */
.hero-logo {
    width: min(100%, 34rem);
    height: auto;
    margin: 0 0 .25rem -1.2%;
    -webkit-mask-image: radial-gradient(ellipse 58% 70% at 50% 50%, #000 62%, rgba(0, 0, 0, .55) 78%, transparent 100%);
    mask-image: radial-gradient(ellipse 58% 70% at 50% 50%, #000 62%, rgba(0, 0, 0, .55) 78%, transparent 100%);
}

.story-establish h1 {
    font-size: clamp(2.5rem, 3.2vw + 1.4rem, 4rem);
    font-weight: 500;
    line-height: 1.0625;
}

.story-lede {
    color: var(--on-dark);
    font-size: clamp(1.0625rem, .4vw + 1rem, 1.25rem);
    line-height: 1.5;
}

.story-copy .button-row {
    margin-top: .5rem;
}

.story-scroll-cue {
    display: none;
}

.story-specimen {
    position: relative;
    width: min(100%, 34rem);
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--radius-card);
    aspect-ratio: 16 / 10;
}

.story-specimen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-specimen figcaption, .story-caption, .cine-caption, .cine-frame figcaption {
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.story-specimen figcaption {
    position: absolute;
    right: .6rem;
    bottom: .5rem;
    padding: .15rem .45rem;
    border-radius: var(--radius-tag);
    background: rgba(0, 6, 23, .7);
}

/* Detection rings drawn over real nuclei; --draw runs 0 to 1 */
.detect {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.detect-rings circle {
    fill: none;
    stroke: rgba(255, 255, 255, .92);
    stroke-width: 3;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - 100 * clamp(0, var(--draw, 1) * (var(--n) + 4) - var(--i), 1));
    filter: drop-shadow(0 0 6px rgba(120, 240, 230, .8));
}

.detect-label {
    opacity: clamp(0, var(--draw, 1) * (var(--n) + 4) - var(--i) - 2, 1);
}

.detect-label path {
    fill: none;
    stroke: rgba(255, 255, 255, .8);
    stroke-width: 2;
}

.detect-label text {
    fill: #ffffff;
    font-family: var(--font-mono);
    font-size: 26px;
    letter-spacing: .04em;
    paint-order: stroke;
    stroke: rgba(0, 6, 23, .85);
    stroke-width: 6px;
}

.resolve-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.resolve-head > div {
    display: grid;
    gap: .6rem;
}

.resolve-link {
    display: inline-block;
    margin-top: 1.5rem;
}

/* Research workspace concept (original graphic, demo data) */

.ws {
    --rows: 1;
    overflow: hidden;
    border: 1px solid rgba(219, 228, 238, .16);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, #0f1c3a, #050d1f);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
    color: var(--on-dark);
}

.ws-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(219, 228, 238, .12);
}

.ws-brand {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.02em;
}

.ws-brand span, .ws-title span {
    margin-left: .5rem;
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ws-tabs {
    display: flex;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ws-tabs li {
    padding: .3rem .65rem;
    border-radius: var(--radius-tag);
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ws-tabs .is-active {
    background: rgba(62, 124, 177, .28);
    box-shadow: inset 0 -2px 0 var(--coral);
    color: var(--white);
}

.ws-demo {
    margin-left: auto;
    padding: .2rem .5rem;
    border: 1px solid rgba(219, 228, 238, .3);
    border-radius: var(--radius-tag);
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ws-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr);
    gap: 1px;
    background: rgba(219, 228, 238, .08);
}

.ws-panel {
    display: grid;
    align-content: start;
    gap: .75rem;
    min-width: 0;
    padding: 1rem;
    background: rgba(5, 13, 31, .9);
}

.ws-title {
    color: var(--white);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ws-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 3px;
    font-family: var(--font-mono);
    font-size: .75rem;
}

.ws-table th, .ws-table td {
    padding: .4rem .5rem;
    color: var(--white);
    font-weight: 400;
    text-align: left;
    white-space: nowrap;
}

.ws-table thead th {
    padding-block: 0 .25rem;
    color: var(--on-dark-muted);
    font-size: .625rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ws-table tbody tr {
    --row-op: clamp(0, var(--ws, 1) * 9 - var(--i) * 1.2, 1);
    opacity: var(--row-op, 1);
    transform: translateX(calc((1 - var(--row-op, 1)) * -12px));
}

.ws-table tbody th {
    background: rgba(219, 228, 238, .05);
}

.ws-table td[style] {
    background: rgba(122, 220, 208, calc(var(--h) * .42));
    font-variant-numeric: tabular-nums;
}

.ws-table .chip {
    min-width: 0;
}

.ws-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16 / 11;
}

.ws-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-image .detect-label {
    display: none;
}

.ws-graph {
    width: 100%;
    height: auto;
    overflow: visible;
}

.ws-graph .ring {
    fill: none;
    stroke: rgba(219, 228, 238, .14);
    stroke-dasharray: 2 5;
}

.ws-graph .edges line {
    stroke: rgba(122, 220, 208, .35);
    stroke-width: 1;
}

.ws-graph .edges .hl {
    stroke: var(--coral);
    stroke-width: 1.8;
    filter: drop-shadow(0 0 4px rgba(255, 133, 82, .8));
}

.ws-graph .nodes > * {
    --node-s: clamp(0, var(--ws, 1) * 44 - var(--i), 1);
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(var(--node-s, 1));
}

.ws-graph .pt {
    fill: #7adcd0;
    filter: drop-shadow(0 0 3px rgba(122, 220, 208, .9));
}

.ws-graph .hub {
    fill: #0f1c3a;
    stroke: #7adcd0;
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(122, 220, 208, .9));
}

.ws-graph .sq {
    fill: var(--white);
}

.ws-graph .center-num {
    fill: var(--white);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    text-anchor: middle;
}

.ws-graph .center-label {
    fill: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-anchor: middle;
    text-transform: uppercase;
}

.ws-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid rgba(219, 228, 238, .12);
}

.ws-stats > div {
    display: grid;
    gap: .2rem;
    padding: .8rem 1rem;
}

.ws-stats > div + div {
    border-left: 1px solid rgba(219, 228, 238, .12);
}

.ws-stats dt {
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ws-stats dd {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

/* ---- Static layout (reduced motion, or motion switched off) ---- */

.story:not(.is-cinematic) .story-visual {
    position: absolute;
    inset: 0 0 auto;
    height: var(--establish-h);
}

.story:not(.is-cinematic) .story-establish {
    display: flex;
    align-items: center;
    min-height: var(--establish-h);
}

.story:not(.is-cinematic) {
    --establish-h: clamp(36rem, 50vw, 50rem);
}

.story:not(.is-cinematic) .story-resolve {
    background: radial-gradient(120% 80% at 80% 0%, #10224a, var(--abyss) 60%);
}

/* ---- Cinematic layout ---- */

.story.is-cinematic {
    height: 420vh;
}

.story.is-cinematic .story-frame {
    position: sticky;
    top: calc(var(--header-offset) + var(--header-h));
    height: calc(100vh - var(--header-offset) - var(--header-h));
}

@supports (height: 100svh) {
    .story.is-cinematic .story-frame {
        height: calc(100svh - var(--header-offset) - var(--header-h));
    }
}

.story.is-cinematic .story-visual {
    position: absolute;
    inset: 0;
}

.story.is-cinematic .story-aperture {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--abyss);
    clip-path: circle(var(--aperture, 0px) at var(--ap-x, 60%) var(--ap-y, 60%));
}

.story.is-cinematic .story-specimen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--spec-scale, 1.12));
}

.story.is-cinematic .story-aperture .detect {
    transform: scale(var(--spec-scale, 1.12));
}

.story.is-cinematic .story-aperture::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 6, 23, .92), rgba(0, 6, 23, .7) 32%, rgba(0, 6, 23, .05) 60%, transparent);
    content: "";
    pointer-events: none;
}

.story-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--scan, 0) * 100%);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(122, 220, 208, .95) 30%, rgba(255, 255, 255, .95) 50%, rgba(122, 220, 208, .95) 70%, transparent);
    box-shadow: 0 0 22px 4px rgba(122, 220, 208, .45);
    opacity: var(--scan-op, 0);
    z-index: 1;
}

.story-hud {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: var(--gutter);
    display: grid;
    gap: .55rem;
    min-width: 13rem;
    padding: .9rem 1rem;
    transform: translateY(-50%);
    border: 1px solid rgba(219, 228, 238, .22);
    border-radius: var(--radius-card);
    background: rgba(0, 6, 23, .62);
    backdrop-filter: blur(10px);
    opacity: var(--hud-op, 0);
}

.story-hud p {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: .75rem;
}

.story-hud span {
    min-width: 6.5rem;
    color: var(--on-dark-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.story-hud strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.story-hud p:last-child strong {
    color: var(--coral);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.story.is-cinematic .story-caption {
    position: absolute;
    z-index: 2;
    right: var(--gutter);
    bottom: 1.25rem;
    padding: .2rem .5rem;
    border-radius: var(--radius-tag);
    background: rgba(0, 6, 23, .7);
}

.story.is-cinematic .story-steps {
    position: absolute;
    inset: 0;
}

.story.is-cinematic .story-step {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-block: 2rem 5rem;
    border: 0;
    opacity: var(--step-opacity, 0);
    transform: translate3d(0, var(--step-shift, 0px), 0);
}

.story.is-cinematic .story-step > .wrap {
    width: min(var(--wrap), calc(100% - var(--gutter) - var(--gutter)));
}

.story.is-cinematic .story-specimen {
    display: none;
}

.story.is-cinematic .story-resolve {
    background: radial-gradient(120% 90% at 78% 0%, rgba(16, 34, 74, .96), rgba(0, 6, 23, .97) 62%);
    backdrop-filter: blur(4px);
}

.story.is-cinematic .ws {
    transform: translate3d(0, calc((1 - var(--ws, 1)) * 40px), 0) scale(calc(.96 + .04 * var(--ws, 1)));
}

.story.is-cinematic .story-controls {
    display: flex;
    position: absolute;
    z-index: 6;
    bottom: 1.1rem;
    left: var(--gutter);
    gap: .5rem;
}

.story.is-cinematic .story-progress {
    display: block;
    position: absolute;
    z-index: 6;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: rgba(219, 228, 238, .1);
}

.story-progress span {
    display: block;
    height: 100%;
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    background: var(--coral);
}

.story.is-cinematic .story-scroll-cue {
    display: grid;
    justify-items: center;
    gap: .5rem;
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.story-scroll-cue span {
    width: 1px;
    height: 2.2rem;
    overflow: hidden;
    background: rgba(219, 228, 238, .25);
}

.story-scroll-cue span::after {
    display: block;
    width: 100%;
    height: 40%;
    background: var(--white);
    content: "";
}

.story-control {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .9rem;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--radius-button);
    background: rgba(0, 6, 23, .7);
    color: var(--white);
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.story-control:hover {
    background: var(--navy);
}

/* With motion turned off on a large screen, keep the toggle so the choice can be reversed. */
.story.can-animate:not(.is-cinematic) .story-controls {
    display: flex;
    position: absolute;
    z-index: 5;
    top: calc(var(--establish-h) - 4.5rem);
    left: var(--gutter);
}

.story.can-animate:not(.is-cinematic) [data-story-skip] {
    display: none;
}

/* ---- Ambient motion (off for reduced motion) ---- */

@media (prefers-reduced-motion: no-preference) {
    .story.is-animated .story-photo {
        animation: snz-drift 22s cubic-bezier(.45, 0, .55, 1) infinite alternate;
    }

    .story.is-animated .story-sweep {
        animation: snz-sweep 8s cubic-bezier(.4, 0, .2, 1) infinite;
    }

    .story.is-animated .story-glow {
        animation: snz-pulse 4.8s ease-in-out infinite;
    }

    .story.is-animated .story-beam {
        animation: snz-flicker 6.5s ease-in-out infinite;
    }

    .story.is-animated .focus-ring-outer {
        animation: snz-spin 48s linear infinite;
    }

    .story.is-animated .focus-ring-inner {
        animation: snz-spin 26s linear infinite reverse;
    }

    .story.is-animated .focus-core {
        animation: snz-blink 2.4s ease-in-out infinite;
    }

    .story.is-animated .story-scroll-cue span::after {
        animation: snz-cue 2s cubic-bezier(.65, 0, .35, 1) infinite;
    }

    .story.is-animated .hero-logo {
        animation: snz-rise 1.4s var(--ease-expo) .15s both;
    }

    .story.is-animated .story-establish h1,
    .story.is-animated .story-establish .story-lede,
    .story.is-animated .story-establish .button-row,
    .story.is-animated .story-establish .offer-chip {
        animation: snz-rise 1.2s var(--ease-expo) both;
    }

    .story.is-animated .story-establish h1 { animation-delay: .35s; }
    .story.is-animated .story-establish .story-lede { animation-delay: .5s; }
    .story.is-animated .story-establish .button-row { animation-delay: .65s; }
    .story.is-animated .story-establish .offer-chip { animation-delay: .85s; }

    .story.is-animated .story-camera {
        animation: snz-focus-in 1.6s var(--ease-expo) both;
    }
}

@keyframes snz-drift {
    from { transform: scale(1.02); }
    to { transform: scale(1.085); }
}

@keyframes snz-sweep {
    0% { opacity: 0; transform: translateX(-38%); }
    12% { opacity: 1; }
    55% { opacity: 1; transform: translateX(38%); }
    62%, 100% { opacity: 0; transform: translateX(38%); }
}

@keyframes snz-pulse {
    0%, 100% { opacity: calc(.7 * var(--ambient, 1)); transform: translate(-50%, -42%) scale(.94); }
    50% { opacity: calc(1 * var(--ambient, 1)); transform: translate(-50%, -42%) scale(1.06); }
}

@keyframes snz-flicker {
    0%, 100% { opacity: calc(.55 * var(--ambient, 1)); }
    40% { opacity: calc(.8 * var(--ambient, 1)); }
    44% { opacity: calc(.62 * var(--ambient, 1)); }
    70% { opacity: calc(.78 * var(--ambient, 1)); }
}

@keyframes snz-spin {
    to { transform: rotate(360deg); }
}

@keyframes snz-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@keyframes snz-cue {
    0% { transform: translateY(-110%); }
    100% { transform: translateY(260%); }
}

@keyframes snz-rise {
    from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes snz-focus-in {
    from { filter: blur(14px) brightness(.7); }
    to { filter: none; }
}

/* ---- Tablet and phone compositions ---- */

@media (max-width: 1023px) {
    .story-stage {
        inset: 0 0 auto 0;
        height: 56%;
        -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
        mask-image: linear-gradient(180deg, #000 72%, transparent);
    }

    .story-shade {
        background: linear-gradient(0deg, var(--abyss) 30%, rgba(0, 6, 23, .7) 46%, transparent 64%);
    }

    .story.is-cinematic .story-step:not(.story-resolve) {
        align-items: flex-end;
        padding-bottom: 5.25rem;
    }

    .story.is-cinematic .story-aperture::after {
        background: linear-gradient(0deg, rgba(0, 6, 23, .95) 22%, rgba(0, 6, 23, .6) 46%, transparent 68%);
    }

    .story-hud {
        top: 1rem;
        right: var(--gutter);
        transform: none;
        min-width: 0;
        gap: .35rem;
        padding: .6rem .75rem;
    }

    .story-hud span {
        min-width: 5.2rem;
    }


    .story-aperture .detect-label {
        display: none;
    }

    .story:not(.is-cinematic) .story-visual {
        position: relative;
        height: clamp(20rem, 70vw, 34rem);
    }

    .story:not(.is-cinematic) .story-stage {
        height: 100%;
    }

    .story:not(.is-cinematic) .story-establish {
        min-height: 0;
    }

    .story:not(.is-cinematic) .story-shade {
        background: linear-gradient(0deg, var(--abyss) 4%, transparent 40%);
    }

    .ws-body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ws-map {
        display: none;
    }

    .story.is-cinematic .story-scroll-cue {
        display: none;
    }
}

@media (max-width: 640px) {
    .story-stage {
        height: 62%;
    }

    .story-shade {
        background: linear-gradient(0deg, var(--abyss) 36%, rgba(0, 6, 23, .55) 50%, transparent 62%);
    }

    .story.is-cinematic .story-step:not(.story-resolve) {
        padding-bottom: 4.5rem;
    }

    .story-shade {
        background: linear-gradient(0deg, var(--abyss) 42%, rgba(0, 6, 23, .8) 52%, rgba(0, 6, 23, .2) 64%, transparent 72%);
    }

    .story-copy {
        gap: .85rem;
    }

    .hero-logo {
        width: min(100%, 24rem);
    }

    .story-establish h1 {
        font-size: clamp(2.25rem, 9vw, 2.75rem);
    }

    .story.is-cinematic .story-step:not(.story-resolve) .button-row {
        gap: .6rem 1rem;
    }

    .story.is-cinematic .story-establish .button-row .button {
        width: auto;
    }

    .story-focus {
        width: 8rem;
    }


    .ws-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .ws-measure {
        display: none;
    }

    .ws-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ws-stats > div:nth-child(3) {
        border-left: 0;
    }

    .ws-stats > div:nth-child(n+3) {
        border-top: 1px solid rgba(219, 228, 238, .12);
    }

    .ws-stats > div {
        padding: .55rem .8rem;
    }

    .ws-stats dd {
        font-size: 1.05rem;
    }

    .ws-panel {
        padding: .75rem;
    }

    .ws-title span {
        display: none;
    }

    .story.is-cinematic .story-resolve {
        align-items: flex-start;
        padding-top: 1.25rem;
    }

    .story.is-cinematic .resolve-link {
        display: none;
    }

    .story.is-cinematic .story-step .story-lede {
        font-size: 1rem;
    }

    .story.is-cinematic .story-caption {
        display: none;
    }

    .ws-tabs li {
        padding: .25rem .45rem;
        font-size: .625rem;
    }

    .ws-demo {
        display: none;
    }

    .story.is-cinematic .resolve-head {
        margin-bottom: 1rem;
    }

    .story.is-cinematic .resolve-head h2 {
        font-size: 1.5rem;
    }

    .story.is-cinematic .resolve-head .tag {
        display: none;
    }

    .story.is-cinematic .resolve-link {
        margin-top: 1rem;
    }

    .story.is-cinematic .story-controls {
        bottom: .75rem;
    }

    .story-control {
        min-height: 40px;
        padding: .4rem .7rem;
        font-size: .8125rem;
    }
}


/* ---------- Sections ---------- */

.section {
    padding-block: clamp(4rem, 7vw, 6rem);
}

.band-alice {
    --focus: var(--navy);
    background: var(--alice);
}

.band-navy .label {
    color: var(--coral);
}

.section-head {
    display: grid;
    gap: .75rem;
    max-width: 48rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 2rem;
    max-width: none;
}

.section-head-row > div {
    display: grid;
    gap: .75rem;
    max-width: 48rem;
}

.section-copy {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-width: 0;
}

.lede {
    color: var(--muted);
    font-size: clamp(1.0625rem, .3vw + 1rem, 1.25rem);
    line-height: 1.5;
}

.band-navy .lede, .masthead .lede {
    color: var(--on-dark);
}

.note-on-dark {
    color: var(--on-dark-muted);
    font-size: 1rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.split-top {
    align-items: start;
}

.section-copy .button-row, .section-copy > .button {
    margin-top: .5rem;
}

.concept-figure {
    min-width: 0;
}

.concept-figure img {
    width: 100%;
    aspect-ratio: 6 / 5;
    border-radius: var(--radius-card);
    object-fit: cover;
}

.band-alice .concept-figure figcaption, .section:not(.band-navy) .concept-figure figcaption {
    color: var(--muted);
}

/* ---------- Product families and cards ---------- */

.family-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.family-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.family-grid-text .family-card {
    grid-template-rows: 1fr;
}

.family-card img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.family-body {
    display: grid;
    align-content: start;
    gap: .9rem;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.family-body p {
    color: var(--muted);
}

.family-body .text-link {
    margin-top: .25rem;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    transition: border-color 180ms var(--ease-out);
}

.tool-card:hover {
    border-color: var(--navy);
}

.tool-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.tool-card-formula {
    padding: .2rem .5rem;
    border-radius: var(--radius-tag);
    background: var(--tint-teal);
    color: var(--navy);
    font-size: .8125rem;
}

.tool-card-link {
    margin-top: auto;
    padding-top: .5rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .3em;
}

.tool-card:hover .tool-card-link {
    text-decoration-color: var(--coral);
    text-decoration-thickness: 2px;
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.principle {
    display: grid;
    align-content: start;
    gap: .75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.principle .icon {
    color: var(--steel);
}

.principle p {
    color: var(--muted);
}

.band-navy .principle {
    border-color: var(--line-on-dark);
}

.band-navy .principle .icon {
    color: var(--steel-soft);
}

.band-navy .principle p {
    color: var(--on-dark);
}

.product-list {
    display: grid;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.product-list a {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 16rem) minmax(0, 1fr);
    align-items: baseline;
    gap: .5rem 1.5rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    text-decoration: none;
}

.product-list a:hover strong {
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-underline-offset: .3em;
}

.product-list strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.product-list span:last-child {
    color: var(--muted);
    font-size: 1rem;
}

/* ---------- CTA band ---------- */

.cta-band {
    padding-block: clamp(3.5rem, 6vw, 5rem);
    border-top: 1px solid var(--line);
    background: var(--alice);
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.cta-copy {
    display: grid;
    gap: .75rem;
    max-width: 44rem;
}

.cta-copy p:not(.label) {
    color: var(--muted);
}

/* ---------- Mastheads ---------- */

.masthead {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    background: radial-gradient(110% 90% at 88% -10%, #12285a 0%, #081430 38%, var(--abyss) 70%);
}

.masthead h1 {
    max-width: 48rem;
}

.masthead .wrap > p:not(.label),
.masthead-copy > p:not(.label) {
    max-width: 40rem;
    margin-top: 1rem;
    color: var(--on-dark);
    font-size: clamp(1.0625rem, .3vw + 1rem, 1.25rem);
    line-height: 1.5;
}

.masthead .label {
    margin-bottom: 1rem;
}

.masthead .family-tags {
    margin-top: 1.5rem;
}

.masthead .button-row {
    margin-top: 2rem;
}

.masthead-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.masthead-copy {
    min-width: 0;
}

.masthead-image {
    overflow: hidden;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--radius-card);
}

.masthead-image img {
    width: 100%;
    aspect-ratio: 6 / 5;
    object-fit: cover;
}

.masthead-tall {
    padding-block: clamp(5rem, 12vw, 9rem);
}

/* ---------- Clinical: modules, scope, FAQ ---------- */

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.module {
    display: grid;
    align-content: start;
    gap: .75rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.module .icon {
    color: var(--steel);
}

.module p {
    color: var(--muted);
}

.scope-table {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.scope-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scope-row + .scope-row {
    border-top: 1px solid var(--line);
}

.scope-row span {
    position: relative;
    padding: 1rem 1.25rem 1rem 2.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.scope-row span + span {
    border-left: 1px solid var(--line);
    color: var(--muted);
}

.scope-row:not(.scope-head) span::before {
    position: absolute;
    top: 1.15rem;
    left: 1.25rem;
    display: grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid var(--teal);
    border-radius: 50%;
    color: var(--navy);
    content: "\2713";
    font-size: .65rem;
    font-weight: 700;
}

.scope-row:not(.scope-head) span + span::before {
    border-color: var(--line-strong);
    content: "\2013";
}

.scope-head span {
    padding-left: 1.25rem;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.faq-layout .section-copy .button {
    margin-top: .75rem;
}

.faq {
    display: grid;
    min-width: 0;
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding-block: 1.1rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.02em;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    flex: 0 0 auto;
    width: .7rem;
    height: .7rem;
    transform: rotate(45deg) translate(-2px, -2px);
    border-right: 1.75px solid var(--navy);
    border-bottom: 1.75px solid var(--navy);
    content: "";
    transition: transform 200ms var(--ease-out);
}

.faq details[open] summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.faq details p {
    padding-bottom: 1.25rem;
    color: var(--muted);
}

/* ---------- Approach ---------- */

.rules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rule {
    display: grid;
    align-content: start;
    gap: .75rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--navy);
}

.rule-index {
    color: var(--muted);
    font-size: .75rem;
}

.rule p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.status-list {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--line);
}

.status-list > div {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: center;
    gap: .5rem 1.5rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.status-list dd {
    margin: 0;
    color: var(--muted);
}

/* ---------- About ---------- */

.prose {
    display: grid;
    gap: 1rem;
    max-width: 44rem;
    min-width: 0;
}

.prose p {
    color: var(--navy);
    font-size: clamp(1.0625rem, .3vw + 1rem, 1.1875rem);
    line-height: 1.6;
}

.prose .button {
    margin-top: .75rem;
}

.founder-role {
    color: var(--muted);
    font-size: .875rem;
}

/* ---------- Research tools and checklist ---------- */

.masthead-split-section .masthead-image img {
    aspect-ratio: 6 / 5;
}

.subnav {
    position: sticky;
    z-index: 30;
    top: calc(var(--header-offset) + var(--header-h));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}

.subnav-inner {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
}

.subnav a {
    flex: 0 0 auto;
    position: relative;
    padding-block: .9rem;
    color: var(--muted);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
}

.subnav a:hover, .subnav a.is-active {
    color: var(--navy);
}

.subnav a.is-active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--coral);
    content: "";
}

.tool-section {
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
    scroll-margin-top: calc(var(--header-h) + 3.5rem);
}

.tool-section + .tool-section {
    border-top: 1px solid var(--line);
}

.tool-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
}

.tool-intro {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.tool-intro p:not(.label) {
    color: var(--muted);
}

.formula {
    display: grid;
    gap: .35rem;
    padding: .9rem 1rem;
    border-left: 2px solid var(--steel);
    border-radius: 0 var(--radius-tag) var(--radius-tag) 0;
    background: var(--surface);
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.6;
}

.formula .text-link {
    font-family: var(--font-body);
}

.band-alice .formula {
    background: var(--white);
}

.limits {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.limits .icon {
    color: var(--steel);
}

.limits p {
    color: var(--navy) !important;
    font-size: .9375rem;
    line-height: 1.55;
}

.tool-panel {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.field, .field-row {
    display: grid;
    gap: .5rem;
    min-width: 0;
}

.field-row {
    grid-template-columns: minmax(0, 1fr) minmax(7rem, .55fr);
    gap: 1rem;
}

.field-row-even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field label, .topic-field legend {
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.43;
}

.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: .65rem .85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-button);
    background: var(--white);
    color: var(--navy);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.field textarea {
    min-height: 9rem;
    resize: vertical;
    line-height: 1.5;
}

.field-hint {
    margin-top: -.6rem;
    color: var(--muted);
    font-size: .875rem;
}

.result-pair {
    display: grid;
    gap: .75rem;
}

.tool-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .2rem 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--teal);
    border-radius: var(--radius-card);
    background: var(--tint-teal);
    color: var(--navy);
}

.tool-result-quiet {
    border-color: var(--line);
    background: var(--surface);
}

.result-label {
    font-size: .875rem;
    font-weight: 600;
}

.tool-result strong {
    grid-row: span 2;
    justify-self: end;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1;
    text-align: right;
}

.result-detail, .tool-note {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.tool-error {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .6rem;
    padding: .75rem .9rem;
    border: 1.5px solid var(--navy);
    border-radius: var(--radius-button);
    background: var(--crit-bg);
    color: var(--navy);
    font-size: .9375rem;
}

.tool-error::before {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border: 1.5px solid var(--navy);
    border-radius: 50%;
    content: "!";
    font-size: .75rem;
    font-weight: 700;
}

.tool-result.is-stale {
    opacity: .45;
}

.seg {
    display: inline-flex;
    gap: .25rem;
    width: fit-content;
    padding: .25rem;
    border-radius: var(--radius-button);
    background: var(--surface);
}

.seg button {
    min-height: 40px;
    padding: .45rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-size: .9375rem;
    font-weight: 600;
}

.seg button[aria-selected="true"] {
    border-color: var(--line);
    background: var(--white);
    color: var(--navy);
}

.checklist-list {
    display: grid;
    gap: 1rem;
}

.checklist-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checklist-heading strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.checklist-progress {
    display: block;
    width: 100%;
    height: .5rem;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 2px;
    background: var(--line-soft);
    color: var(--teal);
    accent-color: var(--teal);
}

.checklist-progress::-webkit-progress-bar {
    background: var(--line-soft);
}

.checklist-progress::-webkit-progress-value {
    background: var(--teal);
    transition: width 200ms var(--ease-out);
}

.checklist-progress::-moz-progress-bar {
    background: var(--teal);
}

.checklist-items {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist-items label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    min-height: 48px;
    padding: .6rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
}

.checklist-items label:hover {
    border-color: var(--line-strong);
}

.checklist-items label:has(input:checked) {
    background: var(--surface);
}

.checklist-items label:has(input:checked) span {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-color: rgba(74, 88, 115, .5);
}

.checklist-items input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    accent-color: var(--navy);
}

.role {
    padding: .1rem .4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-tag);
    background: var(--surface);
    color: var(--muted);
    font-size: .6875rem;
    font-style: normal;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------- Chips used inside the clinical demo ---------- */

.chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: 4.4rem;
    padding: .1rem .45rem;
    border: 1px solid transparent;
    border-radius: var(--radius-tag);
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.chip::before {
    font-family: var(--font-body);
    font-weight: 700;
}

.chip-ok { border-color: var(--teal); background: var(--tint-teal); }
.chip-ok::before { content: "\2713"; }
.chip-info { border-color: var(--steel); background: var(--tint-steel); }
.chip-info::before { content: "i"; }
.chip-warn { border-color: var(--coral); background: var(--tint-coral); }
.chip-warn::before { content: "!"; }
.chip-critical { border-color: var(--navy); background: var(--navy); color: var(--white); }
.chip-critical::before { color: var(--coral); content: "!"; }
.chip-neutral { border-color: var(--line); background: var(--surface); }

/* ---------- Contact ---------- */

.contact-layout-section {
    padding-top: clamp(3rem, 5vw, 4rem);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.form-card {
    min-width: 0;
    padding: clamp(1.25rem, 3.5vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    scroll-margin-top: calc(var(--header-h) + 2rem);
}

.inquiry-form {
    display: grid;
    gap: 1.25rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.topic-field {
    display: grid;
    gap: .6rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.topic-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.topic-options label {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 48px;
    padding: .65rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-button);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.topic-options label:has(input:checked) {
    border-color: var(--navy);
    background: var(--alice);
    box-shadow: inset 0 0 0 1px var(--navy);
}

.topic-options input, .consent input {
    margin: 0;
    accent-color: var(--navy);
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
    background: var(--surface);
    font-size: .9375rem;
    cursor: pointer;
}

.consent input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .15rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.form-fineprint {
    color: var(--muted);
    font-size: .875rem;
}

.form-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .7rem;
    margin-bottom: 1.5rem;
    padding: .9rem 1rem;
    border: 1.5px solid var(--navy);
    border-radius: var(--radius-button);
    font-size: 1rem;
}

.form-notice::before {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 1.5px solid var(--navy);
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
}

.form-notice.is-success {
    border-color: var(--teal);
    background: var(--tint-teal);
}

.form-notice.is-success::before {
    border-color: var(--teal);
    content: "\2713";
}

.form-notice.is-error {
    background: var(--crit-bg);
}

.form-notice.is-error::before {
    content: "!";
}

.form-success {
    display: grid;
    justify-items: start;
    gap: 1rem;
    padding-block: 1rem;
}

.form-success p {
    color: var(--muted);
}

.contact-aside {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.contact-aside h2 {
    font-size: 1.5rem;
}

.steps {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.steps li {
    position: relative;
    display: grid;
    gap: .25rem;
    padding-left: 2.75rem;
    counter-increment: steps;
}

.steps li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: var(--radius-tag);
    background: var(--navy);
    color: var(--white);
    content: "0" counter(steps);
    font-family: var(--font-mono);
    font-size: .75rem;
}

.steps span {
    color: var(--muted);
    font-size: .9375rem;
}

.aside-note {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--muted);
    font-size: .9375rem;
}

.aside-note strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--navy);
}

/* ---------- Privacy and WordPress content ---------- */

.prose-layout {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.prose-toc {
    position: sticky;
    top: calc(var(--header-offset) + var(--header-h) + 1.5rem);
    display: grid;
    gap: .5rem;
    font-size: .9375rem;
}

.prose-toc p {
    margin-bottom: .25rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.prose-toc a {
    color: var(--navy);
}

.prose h2, .entry-content h2 {
    margin-top: 2.5rem;
    font-size: clamp(1.375rem, .5vw + 1.25rem, 1.75rem);
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose a, .entry-content a {
    color: var(--navy);
}

.entry-content {
    max-width: 44rem;
}

.entry-content p, .entry-content ul, .entry-content ol {
    margin-block: 1rem;
    line-height: 1.65;
}

.content-page {
    min-height: 50vh;
    padding-block: clamp(3rem, 6vw, 6rem);
}

.content-page article + article {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

.content-page h1 {
    margin-bottom: 1rem;
}

.content-page .entry-meta {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .75rem;
}

.content-page h2 a {
    text-decoration: none;
}

/* ---------- Clinical demo page ---------- */

.demo-intro {
    padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 6vw, 5rem);
}

.demo-intro-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.demo-intro-inner > div:first-child {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.demo-intro .back-link {
    margin-bottom: 0;
}

.demo-intro p {
    max-width: 40rem;
    color: var(--on-dark);
}

.demo-facts {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.demo-facts li {
    display: grid;
    gap: .1rem;
    padding: .75rem 1rem;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--radius-card);
    font-size: .9375rem;
}

.demo-facts span {
    color: var(--on-dark-muted);
}

.demo-stage {
    margin-top: clamp(-2.5rem, -3vw, -1.5rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: 3.5rem 1.75rem;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 2rem 3rem;
}

.footer-brand p {
    max-width: 22rem;
    margin-top: .75rem;
    color: var(--on-dark);
    font-size: .9375rem;
}

.footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem clamp(2rem, 6vw, 5rem);
}

.footer-col {
    display: grid;
    align-content: start;
    gap: .15rem;
}

.footer-heading {
    margin-bottom: .5rem;
    color: var(--coral);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-col a {
    padding-block: .3rem;
    color: var(--on-dark);
    font-size: .9375rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-underline-offset: .3em;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-on-dark);
    color: var(--on-dark-muted);
    font-size: .8125rem;
}

.footer-bottom span:last-child {
    max-width: 44rem;
}

/* ---------- Cinematic mastheads ---------- */

.cine {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(32rem, 72vh, 46rem);
    overflow: hidden;
    padding-block: clamp(7rem, 14vw, 10rem) clamp(3rem, 6vw, 4.5rem);
    background: var(--abyss);
}

.cine-media {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.cine-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
    opacity: .9;
}

.cine::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(0deg, var(--abyss) 2%, rgba(0, 6, 23, .78) 38%, rgba(0, 6, 23, .25) 72%, rgba(0, 6, 23, .5)),
        linear-gradient(90deg, rgba(0, 6, 23, .85), transparent 65%);
    content: "";
}

.cine-copy {
    display: grid;
    gap: 1rem;
}

.cine-copy h1 {
    max-width: 52rem;
    font-size: clamp(2.4rem, 3.4vw + 1.2rem, 4.25rem);
    font-weight: 500;
    line-height: 1.06;
}

.cine-copy > p:not(.label) {
    max-width: 40rem;
    color: var(--on-dark);
    font-size: clamp(1.0625rem, .4vw + 1rem, 1.3125rem);
    line-height: 1.5;
}

.cine-copy .label {
    margin: 0;
}

.cine-caption {
    position: absolute;
    right: var(--gutter);
    bottom: 1.25rem;
}

.cine-frame {
    position: relative;
}

.cine-frame figcaption {
    position: absolute;
    right: .6rem;
    bottom: .5rem;
    padding: .15rem .45rem;
    border-radius: var(--radius-tag);
    background: rgba(0, 6, 23, .7);
}

@media (prefers-reduced-motion: no-preference) {
    .cine-media img, .cine-frame img {
        animation: snz-kenburns 28s cubic-bezier(.45, 0, .55, 1) infinite alternate;
    }

    .cine-copy > :not([data-split]), .masthead .wrap:not(.masthead-split) > :not([data-split]), .masthead-copy > :not([data-split]) {
        animation: snz-rise 1.1s var(--ease-expo) both;
    }

    .cine-copy > :nth-child(2), .masthead .wrap:not(.masthead-split) > :nth-child(2), .masthead-copy > :nth-child(2) { animation-delay: .12s; }
    .cine-copy > :nth-child(3), .masthead .wrap:not(.masthead-split) > :nth-child(3), .masthead-copy > :nth-child(3) { animation-delay: .24s; }
    .cine-copy > :nth-child(4), .masthead .wrap:not(.masthead-split) > :nth-child(4), .masthead-copy > :nth-child(4) { animation-delay: .36s; }
    .cine-copy > :nth-child(5), .masthead-copy > :nth-child(5) { animation-delay: .48s; }

    .masthead-image {
        animation: snz-rise 1.3s var(--ease-expo) .2s both;
    }
}

@keyframes snz-kenburns {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

/* ---------- About ---------- */

.prose .prose-lead {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, .6vw + 1.1rem, 1.5rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.35;
}

.principles-band {
    background: radial-gradient(110% 100% at 10% 0%, #13285a, var(--abyss) 65%);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.pillar {
    position: relative;
    display: grid;
    align-content: start;
    gap: .75rem;
    padding: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(219, 228, 238, .14);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(20, 33, 61, .7), rgba(0, 6, 23, .6));
}

.pillar::after {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    aspect-ratio: 1;
    border: 1px solid rgba(219, 228, 238, .1);
    border-radius: 50%;
    content: "";
}

.pillar .icon {
    color: var(--steel-soft);
}

.pillar h3 {
    font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem);
}

.pillar p {
    color: var(--on-dark);
}

.statement {
    max-width: 56rem;
    margin: clamp(3rem, 6vw, 4.5rem) 0 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--coral);
}

.statement p {
    max-width: none;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.6vw + 1rem, 2.4rem);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.statement footer {
    margin-top: 1rem;
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.founder-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
}

.founder-card {
    position: sticky;
    top: calc(var(--header-offset) + var(--header-h) + 2rem);
    display: grid;
    gap: .75rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.founder-card h2 {
    font-size: clamp(2rem, 1.6vw + 1.4rem, 2.75rem);
}

.founder-role {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.founder-facts {
    display: grid;
    gap: 1rem;
    margin: .75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.founder-facts dt {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.founder-facts dd {
    margin: .2rem 0 0;
    font-size: 1rem;
    line-height: 1.5;
}

.founder-story .founder-question {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1vw + 1.1rem, 1.85rem);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.3;
}

.founder-signoff {
    margin-top: .5rem;
    color: var(--muted) !important;
    font-family: var(--font-mono);
    font-size: .8125rem !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ---------- Scroll-in reveal (children stagger) ---------- */

@media (prefers-reduced-motion: no-preference) {
    .js-reveal [data-reveal] > * {
        transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo), filter 1s var(--ease-expo);
        transition-delay: calc(var(--k, 0) * 90ms);
    }

    .js-reveal [data-reveal].is-pending > * {
        opacity: 0;
        transform: translate3d(0, 34px, 0);
        filter: blur(4px);
    }

    .tool-card, .family-card, .module, .pillar, .workflow-step, .product-list a {
        transition: transform 380ms var(--ease-expo), border-color 220ms ease, box-shadow 380ms var(--ease-expo);
    }

    .tool-card:hover, .family-card:hover, .module:hover, .workflow-step:hover {
        transform: translate3d(0, -4px, 0);
        box-shadow: 0 18px 40px rgba(20, 33, 61, .12);
    }

    .family-card img {
        transition: transform 1.2s var(--ease-expo);
    }

    .family-card:hover img {
        transform: scale(1.05);
    }
}

@media (max-width: 960px) {
    .pillars {
        grid-template-columns: minmax(0, 1fr);
    }

    .founder-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .founder-card {
        position: static;
    }
}

/* ==========================================================================
   Cinematic system shared by every page
   ========================================================================== */

@property --draw {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

.band-ink {
    --focus: var(--white);
    background: radial-gradient(120% 90% at 85% 0%, #10224a 0%, #060f26 45%, var(--abyss) 78%);
    color: var(--white);
}

.band-ink .lede {
    color: var(--on-dark);
}

/* ---- Mastheads ---- */

.cine {
    --cine-p: 0;
}

.cine-media {
    transform: translate3d(0, calc(var(--cine-p) * 16%), 0) scale(calc(1 + var(--cine-p) * .06));
    will-change: transform;
}

.cine-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.cine-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(122, 220, 208, .9) 30%, #ffffff 50%, rgba(122, 220, 208, .9) 70%, transparent);
    box-shadow: 0 0 24px 4px rgba(122, 220, 208, .4);
    opacity: 0;
    pointer-events: none;
}

.cine .detect-label {
    display: none;
}

.cine-copy {
    transform: translate3d(0, calc(var(--cine-p) * -48px), 0);
    opacity: calc(1 - var(--cine-p) * 1.4);
}

.cine-short {
    min-height: clamp(28rem, 62vh, 38rem);
}

.cine-tall {
    min-height: clamp(34rem, 84vh, 52rem);
    align-items: center;
}

.cine-research .cine-media img {
    object-position: 50% 30%;
}

.cine-clinical .cine-media img {
    object-position: 70% 50%;
}

.cine-lite {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--abyss);
}

.cine-lite .cine-media {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.cine-lite .cine-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
}

.cine-lite::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, var(--abyss) 10%, rgba(0, 6, 23, .7) 55%, rgba(0, 6, 23, .45));
    content: "";
}

/* ---- Headline word reveal ---- */

.split-words .w {
    display: inline-block;
    overflow: hidden;
    padding-bottom: .14em;
    margin-bottom: -.14em;
    vertical-align: top;
}

.split-words .w > span {
    display: inline-block;
    transform: translate3d(0, 112%, 0);
    transition: transform 1.15s var(--ease-expo);
    transition-delay: calc(var(--wi, 0) * 45ms + 80ms);
}

.split-words.is-in .w > span {
    transform: none;
}

/* ---- Icons draw themselves in ---- */

.js-reveal [data-reveal] .icon :is(path, circle, rect) {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s var(--ease-expo);
    transition-delay: calc(var(--k, 0) * 90ms + 250ms);
}

.js-reveal [data-reveal].is-pending .icon :is(path, circle, rect) {
    stroke-dashoffset: 1;
}

/* ---- Cursor spotlight on cards ---- */

.rules-dark .rule, .pillar, .ws-panel {
    background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(122, 220, 208, .12), transparent 60%);
}

.tool-card, .module, .family-body, .product-list a, .faq details {
    background-image: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), rgba(62, 124, 177, .09), transparent 60%);
}

/* ---- Approach: rules on ink ---- */

.rules-dark .rule {
    position: relative;
    gap: .9rem;
    padding: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(219, 228, 238, .12);
    border-radius: var(--radius-card);
    background-color: rgba(10, 20, 44, .6);
    transition: border-color 300ms ease, transform 500ms var(--ease-expo);
}

.rules-dark .rule:hover {
    border-color: rgba(122, 220, 208, .35);
    transform: translate3d(0, -4px, 0);
}

.rules-dark .rule-index {
    color: transparent;
    font-family: var(--font-display);
    font-size: clamp(3rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(219, 228, 238, .4);
}

.rules-dark .rule:hover .rule-index {
    -webkit-text-stroke-color: var(--coral);
}

.rules-dark .rule p {
    color: var(--on-dark);
}

/* ---- Approach: pinned workflow scene ---- */

.scrolly {
    --sp: 1;
    --sv-file: 0;
    --sv-load: 1;
    --sv-scan: 0;
    --sv-scan-op: 0;
    --sv-hud: 1;
    --sv-exp: 0;
    --sv-blur: 0;
    position: relative;
    background: radial-gradient(110% 80% at 20% 10%, #0f2148, var(--abyss) 65%);
    color: var(--white);
}

.scrolly-pin {
    padding-block: clamp(4rem, 7vw, 6rem);
}

.scrolly-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.scrolly-copy {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.scrolly-copy h2 {
    font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.6rem);
}

.scrolly-steps {
    display: grid;
    gap: .15rem;
    margin: .5rem 0 0;
    padding: 0;
    list-style: none;
}

.scrolly-steps li {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: .75rem;
    padding: .85rem 0 .85rem 1rem;
    border-left: 2px solid rgba(219, 228, 238, .14);
    transition: opacity 500ms ease, border-color 500ms ease;
}

.scrolly-num {
    padding-top: .3rem;
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .08em;
}

.scrolly-steps h3 {
    font-size: 1.375rem;
}

.scrolly-steps p {
    margin-top: .25rem;
    color: var(--on-dark);
    font-size: 1rem;
    line-height: 1.5;
}

.scrolly-rail {
    height: 2px;
    background: rgba(219, 228, 238, .12);
}

.scrolly-rail span {
    display: block;
    height: 100%;
    transform: scaleX(var(--sp));
    transform-origin: left;
    background: var(--coral);
}

.sv {
    position: relative;
    aspect-ratio: 16 / 12;
    overflow: hidden;
    border: 1px solid rgba(219, 228, 238, .16);
    border-radius: 12px;
    background: #020814;
    box-shadow: 0 50px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4);
}

.sv-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(calc(var(--sv-blur) * 1px)) brightness(calc(1 - var(--sv-blur) * .03));
    transform: scale(calc(1.06 - var(--sp) * .06));
}

.sv .detect {
    transform: scale(calc(1.06 - var(--sp) * .06));
}

.sv .detect-label {
    display: none;
}

.sv-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--sv-scan) * 100%);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(122, 220, 208, .95) 25%, #ffffff 50%, rgba(122, 220, 208, .95) 75%, transparent);
    box-shadow: 0 0 26px 5px rgba(122, 220, 208, .45);
    opacity: var(--sv-scan-op);
}

.sv-file, .sv-hud, .sv-export {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(219, 228, 238, .22);
    border-radius: 8px;
    background: rgba(0, 6, 23, .72);
    backdrop-filter: blur(10px);
}

.sv-file {
    top: 1rem;
    left: 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .2rem .7rem;
    width: min(20rem, calc(100% - 2rem));
    padding: .75rem .9rem;
    opacity: var(--sv-file);
    transform: translate3d(0, calc((1 - var(--sv-file)) * -14px), 0);
}

.sv-file-icon {
    grid-row: span 2;
    width: 1.6rem;
    height: 2rem;
    border: 1.5px solid var(--alice);
    border-radius: 3px;
    background: linear-gradient(135deg, transparent 70%, var(--alice) 70%);
}

.sv-file-name {
    color: var(--white);
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.sv-file-meta {
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
}

.sv-file-bar {
    grid-column: 1 / -1;
    height: 3px;
    margin-top: .35rem;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(219, 228, 238, .15);
}

.sv-file-bar i {
    display: block;
    height: 100%;
    transform: scaleX(var(--sv-load));
    transform-origin: left;
    background: #7adcd0;
}

.sv-hud {
    top: 1rem;
    right: 1rem;
    display: grid;
    gap: .4rem;
    padding: .75rem .9rem;
    opacity: var(--sv-hud);
    transform: translate3d(calc((1 - var(--sv-hud)) * 14px), 0, 0);
}

.sv-hud p {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: .6875rem;
}

.sv-hud span {
    min-width: 5.4rem;
    color: var(--on-dark-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sv-hud strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.sv-hud em {
    color: var(--on-dark-muted);
    font-style: normal;
}

.sv-export {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: .8rem 1rem;
    opacity: var(--sv-exp);
    transform: translate3d(0, calc((1 - var(--sv-exp)) * 40px), 0);
}

.sv-export-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: none;
    margin-bottom: .45rem;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: .75rem;
}

.sv-export-head span {
    color: var(--coral);
}

.sv-export pre {
    margin: 0;
    overflow: hidden;
    color: #9fe8de;
    font-family: var(--font-mono);
    font-size: .6875rem;
    line-height: 1.6;
    white-space: pre;
}

.sv-demo {
    position: absolute;
    z-index: 1;
    left: 1rem;
    bottom: 1rem;
    padding: .2rem .5rem;
    border: 1px solid rgba(219, 228, 238, .3);
    border-radius: var(--radius-tag);
    background: rgba(0, 6, 23, .6);
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scrolly.is-pinned {
    height: 360vh;
}

.scrolly.is-pinned .scrolly-pin {
    position: sticky;
    top: calc(var(--header-offset) + var(--header-h));
    display: flex;
    align-items: center;
    height: calc(100vh - var(--header-offset) - var(--header-h));
    padding-block: 1.5rem;
    overflow: hidden;
}

@supports (height: 100svh) {
    .scrolly.is-pinned .scrolly-pin {
        height: calc(100svh - var(--header-offset) - var(--header-h));
    }
}

.scrolly.is-pinned .scrolly-pin > .wrap {
    width: min(var(--wrap), calc(100% - var(--gutter) - var(--gutter)));
}

.scrolly.is-pinned .scrolly-steps li {
    opacity: .38;
}

.scrolly.is-pinned .scrolly-steps li.is-active {
    border-left-color: var(--coral);
    opacity: 1;
}

/* ---- About: eyepiece ---- */

.about-lead {
    align-content: start;
}

.eyepiece {
    position: relative;
    width: min(100%, 26rem);
    aspect-ratio: 1;
    margin-top: 1.5rem;
    transform: translate3d(0, calc(var(--px, 0) * 1px), 0);
}

.eyepiece-field {
    position: absolute;
    inset: 7%;
    overflow: hidden;
    border-radius: 50%;
    background: #050b1a;
    box-shadow: 0 30px 80px rgba(20, 33, 61, .35), 0 0 0 10px rgba(20, 33, 61, .06);
}

.eyepiece-field img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eyepiece-field::after {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 52%, rgba(2, 8, 20, .55) 78%, rgba(2, 8, 20, .95) 100%);
    content: "";
}

.eyepiece-reticle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.eyepiece-reticle circle, .eyepiece-reticle path {
    fill: none;
    transform-box: fill-box;
    transform-origin: center;
}

.er-outer {
    stroke: rgba(20, 33, 61, .35);
    stroke-width: 1.2;
    stroke-dasharray: 1 2.4;
}

.er-inner {
    stroke: rgba(255, 255, 255, .55);
    stroke-width: 1.2;
    stroke-dasharray: 22 6 4 6 30 6 4 22;
}

.er-cross {
    stroke: rgba(255, 255, 255, .8);
    stroke-width: 1.5;
}

.er-ticks {
    stroke: var(--steel);
    stroke-width: 2;
}

.founder-photo {
    position: relative;
    margin: 0 0 .5rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    background: var(--navy);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    transition: transform 1.4s var(--ease-expo);
}

.founder-card:hover .founder-photo img {
    transform: scale(1.04);
}

.founder-photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 6, 23, .35), transparent 35%);
    content: "";
    pointer-events: none;
}

@media (max-height: 900px) {
    .founder-card {
        position: static;
    }
}

.founder-quip {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.4;
}

/* ---- Research: calculator visuals ---- */

.tool-quip {
    margin-top: -.4rem;
    color: var(--navy) !important;
    font-family: var(--font-display);
    font-size: clamp(1.125rem, .4vw + 1rem, 1.3rem);
    font-weight: 500;
}

.tool-viz {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(20, 33, 61, .2);
    border-radius: var(--radius-card);
    background: radial-gradient(120% 120% at 75% 0%, #13295b, #050d1f 72%);
    color: var(--white);
}

.tool-viz.is-pulse {
    animation: snz-pulse-ring 900ms var(--ease-expo);
}

@keyframes snz-pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(122, 220, 208, .55); }
    100% { box-shadow: 0 0 0 14px rgba(122, 220, 208, 0); }
}

.viz-density canvas {
    display: block;
    width: 100%;
    height: 13rem;
}

.viz-read {
    position: absolute;
    left: 1rem;
    bottom: .75rem;
    display: flex;
    align-items: baseline;
    gap: .5rem;
    max-width: none;
}

.viz-read strong {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}

.viz-read span {
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.viz-dilution {
    --stock: .05;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: end;
    gap: 0 1.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

.pipette {
    position: relative;
    justify-self: center;
    width: .55rem;
    height: 3.2rem;
    border-radius: 0 0 .3rem .3rem;
    background: linear-gradient(90deg, rgba(219, 228, 238, .5), rgba(219, 228, 238, .2));
}

.pipette::before {
    position: absolute;
    left: 50%;
    top: -1.2rem;
    width: 1.3rem;
    height: 1.3rem;
    transform: translateX(-50%);
    border-radius: 50% 50% 30% 30%;
    background: rgba(219, 228, 238, .35);
    content: "";
}

.drop {
    position: absolute;
    left: 50%;
    top: 100%;
    width: .5rem;
    height: .62rem;
    transform: translateX(-50%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: var(--coral);
    opacity: 0;
}

.tube {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    width: 3.4rem;
    height: 10rem;
    margin-top: .5rem;
    overflow: hidden;
    border: 2px solid rgba(219, 228, 238, .55);
    border-top: 0;
    border-radius: 0 0 1.7rem 1.7rem;
    background: rgba(255, 255, 255, .03);
}

.fill-diluent, .fill-stock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.fill-diluent {
    height: 84%;
    background: linear-gradient(180deg, rgba(158, 188, 216, .6), rgba(62, 124, 177, .35));
}

.fill-diluent::before {
    position: absolute;
    left: 0;
    right: 0;
    top: -4px;
    height: 8px;
    border-radius: 50%;
    background: rgba(219, 228, 238, .7);
    content: "";
}

.fill-stock {
    height: max(5px, calc(84% * var(--stock)));
    background: linear-gradient(180deg, #ffa57e, var(--coral));
    box-shadow: 0 0 20px rgba(255, 133, 82, .65);
    transition: height 900ms var(--ease-expo);
}

.tube-legend {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: grid;
    gap: .55rem;
}

.tube-legend p {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    max-width: none;
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tube-legend strong {
    margin-left: auto;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.01em;
    text-transform: none;
}

.sw {
    width: .7rem;
    height: .7rem;
    border-radius: 2px;
}

.sw-stock {
    background: var(--coral);
}

.sw-dil {
    background: var(--steel-soft);
}

.tube-ratio {
    padding-top: .5rem;
    border-top: 1px solid rgba(219, 228, 238, .15);
    color: var(--white) !important;
    font-family: var(--font-display) !important;
    font-size: 1.75rem !important;
    font-weight: 600;
    letter-spacing: -.02em !important;
    text-transform: none !important;
}

.viz-balance {
    --heap: .4;
    display: grid;
    place-items: center;
    padding: 1.5rem 1rem 1.25rem;
}

.balance {
    display: grid;
    justify-items: center;
    width: min(100%, 17rem);
}

.balance-heap {
    display: grid;
    align-items: end;
    justify-items: center;
    width: 10rem;
    height: 4rem;
}

.balance-heap span {
    display: block;
    width: calc(2rem + var(--heap) * 7rem);
    height: calc(.8rem + var(--heap) * 3rem);
    border-radius: 50% 50% 8% 8% / 100% 100% 10% 10%;
    background: radial-gradient(120% 100% at 50% 100%, #ffffff, #c9d6e6 60%, #9fb4cc);
    box-shadow: 0 -6px 30px rgba(219, 228, 238, .25);
    transition: width 900ms var(--ease-expo), height 900ms var(--ease-expo);
}

.balance-pan {
    width: 13rem;
    height: .9rem;
    margin-top: -.2rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #dfe7f1, #8ea3bd);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .5);
}

.balance-body {
    position: relative;
    display: grid;
    place-items: center;
    width: 15rem;
    height: 4.4rem;
    margin-top: .35rem;
    border-radius: 10px 10px 14px 14px;
    background: linear-gradient(180deg, #1d2d52, #0b1630);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 30px rgba(0, 0, 0, .45);
}

.balance-display {
    min-width: 10rem;
    padding: .35rem .8rem;
    border-radius: 4px;
    background: #071b16;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, .8);
    color: #8fe3b5;
    font-family: var(--font-mono);
    font-size: 1.375rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
    text-shadow: 0 0 10px rgba(143, 227, 181, .7);
}

.balance-led {
    position: absolute;
    right: .8rem;
    bottom: .55rem;
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: #8fe3b5;
    box-shadow: 0 0 8px #8fe3b5;
}

/* ---- Research: figure builder panels ---- */

.panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    padding: .5rem;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 50px 120px rgba(0, 0, 0, .55);
    transform: rotate(-2deg);
}

.panel {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1;
    background: #000000;
}

.panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-expo);
}

.panel:hover img {
    transform: scale(1.08);
}

.panel b {
    position: absolute;
    left: .5rem;
    top: .3rem;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.scalebar {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    width: 24%;
    height: 3px;
    transform-origin: right;
    background: #ffffff;
    transition: transform 1.2s var(--ease-expo);
    transition-delay: calc(var(--k, 0) * 120ms + 500ms);
}

.js-reveal [data-reveal].is-pending .scalebar {
    transform: scaleX(0);
}

/* ---- Approach: data orbit ---- */

.orbit {
    justify-self: center;
    width: 100%;
    max-width: 32rem;
    margin: 0;
}

.orbit svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.orbit-window > rect:first-child {
    fill: rgba(20, 33, 61, .6);
    stroke: rgba(219, 228, 238, .35);
}

.orbit-window path {
    fill: none;
    stroke: rgba(219, 228, 238, .22);
}

.orbit-window circle {
    fill: rgba(219, 228, 238, .35);
}

.orbit-url {
    fill: rgba(219, 228, 238, .1);
}

.orbit-rings ellipse {
    fill: none;
    stroke: rgba(122, 220, 208, .35);
    stroke-dasharray: 3 6;
}

.orbit-core circle {
    fill: rgba(85, 139, 110, .35);
    stroke: #8fe3b5;
    stroke-width: 1.5;
}

.orbit-core path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orbit-sat circle, .orbit-sat rect {
    fill: #7adcd0;
    filter: drop-shadow(0 0 6px rgba(122, 220, 208, .9));
}

.orbit-sat.s3 rect {
    fill: var(--coral);
    filter: drop-shadow(0 0 6px rgba(255, 133, 82, .9));
}

.orbit-server rect {
    fill: none;
    stroke: rgba(219, 228, 238, .3);
    stroke-dasharray: 4 4;
}

.orbit-server path {
    fill: none;
    stroke: rgba(219, 228, 238, .3);
}

.orbit-server text {
    fill: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .06em;
    text-anchor: middle;
}

.orbit-wire {
    fill: none;
    stroke: rgba(255, 133, 82, .7);
    stroke-dasharray: 4 6;
}

.orbit-block circle {
    fill: var(--abyss);
    stroke: var(--coral);
    stroke-width: 1.5;
}

.orbit-block path {
    stroke: var(--coral);
    stroke-width: 2;
    stroke-linecap: round;
}

/* ---- Ambient motion for the shared pieces ---- */

@media (prefers-reduced-motion: no-preference) {
    .cine-scan {
        animation: snz-scan 7.5s cubic-bezier(.45, 0, .55, 1) 1.2s infinite;
    }

    .cine .detect {
        animation: snz-draw 3.4s var(--ease-expo) .5s both;
    }

    .eyepiece-field img {
        animation: snz-kenburns 26s cubic-bezier(.45, 0, .55, 1) infinite alternate;
    }

    .er-outer {
        animation: snz-spin 60s linear infinite;
    }

    .er-inner {
        animation: snz-spin 34s linear infinite reverse;
    }

    .drop {
        animation: snz-drop 2.6s cubic-bezier(.55, 0, .9, .4) infinite;
    }

    .orbit-wire {
        animation: snz-wire 1.6s linear infinite;
    }

    .orbit-block {
        animation: snz-blink 2.4s ease-in-out infinite;
    }

    .balance-led {
        animation: snz-blink 2s ease-in-out infinite;
    }
}

@keyframes snz-scan {
    0% { top: 0; opacity: 0; }
    8% { opacity: .85; }
    62% { top: 100%; opacity: .85; }
    68%, 100% { top: 100%; opacity: 0; }
}

@keyframes snz-draw {
    from { --draw: 0; }
    to { --draw: 1; }
}

@keyframes snz-drop {
    0%, 30% { opacity: 0; transform: translate(-50%, 0) scale(.4); }
    40% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    78% { opacity: 1; transform: translate(-50%, 6.2rem) scale(1); }
    84%, 100% { opacity: 0; transform: translate(-50%, 6.6rem) scale(1.4, .4); }
}

@keyframes snz-wire {
    to { stroke-dashoffset: -20; }
}

/* ---- Tablet and phone ---- */

@media (max-width: 1023px) {
    .scrolly.is-pinned .scrolly-grid {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 1rem;
    }

    .scrolly.is-pinned .scrolly-visual {
        order: -1;
    }

    .scrolly.is-pinned .sv {
        aspect-ratio: auto;
        height: min(44svh, 26rem);
    }

    .scrolly.is-pinned .scrolly-steps li {
        display: none;
    }

    .scrolly.is-pinned .scrolly-steps li.is-active {
        display: grid;
        animation: snz-rise .7s var(--ease-expo) both;
    }

    .scrolly.is-pinned .scrolly-copy {
        gap: .6rem;
    }

    .scrolly.is-pinned .scrolly-copy .label {
        display: none;
    }

    .scrolly-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-lead .eyepiece {
        width: min(80%, 22rem);
    }
}

@media (max-width: 640px) {
    .scrolly.is-pinned .scrolly-copy h2 {
        font-size: 1.5rem;
    }

    .scrolly.is-pinned .sv {
        height: min(38svh, 20rem);
    }

    .sv-file {
        width: calc(100% - 2rem);
    }

    .sv-hud {
        top: auto;
        bottom: 1rem;
    }

    .sv-demo {
        display: none;
    }

    .sv-export pre {
        font-size: .625rem;
    }

    .viz-dilution {
        gap: 0 1.25rem;
        padding: 1rem;
    }

    .tube-legend strong {
        font-size: 1.05rem;
    }

    .panels {
        transform: none;
    }

    .orbit {
        max-width: 24rem;
    }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* ---------- Responsive (8 columns on tablet, 4 on mobile) ---------- */

@media (max-width: 1080px) {
    .workflow, .rules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-list a {
        grid-template-columns: 11.5rem minmax(0, 1fr);
    }

    .product-list span:last-child {
        grid-column: 2;
    }
}

@media (max-width: 960px) {
    .split, .masthead-split, .faq-layout, .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .masthead-image img {
        aspect-ratio: 16 / 9;
    }

    .tool-cards, .principles {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Four audience links plus the button need a wider desktop header; collapse into the menu below 1120px. */
@media (max-width: 1120px) {
    .header-inner {
        flex-wrap: wrap;
        gap: .5rem 1rem;
        min-height: 4rem;
        padding-block: .6rem;
    }

    .site-nav {
        flex: 1 0 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: .75rem 1rem;
        padding-block: .5rem;
    }

    .has-interactive-nav .nav-toggle {
        display: inline-flex;
    }

    .has-interactive-nav .site-nav:not(.is-open) {
        display: none;
    }

    .has-interactive-nav .site-nav {
        align-items: stretch;
        flex-direction: column;
        padding-bottom: 1rem;
    }

    .has-interactive-nav .nav-links {
        display: grid;
        gap: 0;
        width: 100%;
    }

    .has-interactive-nav .nav-links a {
        padding-block: .7rem;
        border-bottom: 1px solid var(--line-on-dark);
    }

    .has-interactive-nav .nav-links a[aria-current="page"]::after {
        right: auto;
        bottom: 50%;
        left: -.75rem;
        width: 3px;
        height: 1.1rem;
        transform: translateY(50%);
    }

    .subnav {
        top: calc(var(--header-offset) + 4rem);
    }

    html {
        scroll-padding-top: 5.5rem;
    }
}

@media (max-width: 760px) {
    .tool-layout, .module-grid, .prose-layout, .family-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .prose-toc {
        position: static;
    }

    .scope-row span {
        padding-left: 2.5rem;
        font-size: .9375rem;
    }

    .scope-row:not(.scope-head) span::before {
        left: 1rem;
    }

    .status-list > div {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    body.admin-bar {
        --header-offset: 0px;
    }

    .workflow, .rules, .topic-options, .field-row-even {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-list a {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-list span:last-child {
        grid-column: auto;
    }

    .button-row .button, .cta-inner .button, .form-actions .button {
        width: 100%;
    }

    .demo-facts {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Clinical concept demo (operations workspace)
   ========================================================================== */

.of-app {
    position: relative;
    min-width: 0;
    font-size: .92rem;
}

.of-noscript {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.of-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    box-shadow: none;
}

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

.of-muted {
    color: var(--muted);
    font-size: .84rem;
}

.of-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.of-practice {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.of-practice strong {
    display: block;
    font-size: .98rem;
    letter-spacing: -.02em;
}

.of-practice span:not(.of-logo) {
    color: var(--muted);
    font-size: .78rem;
}

.of-logo {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--radius-tag);
    background: var(--navy);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.of-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}

.of-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .8rem;
}

.of-user select, .of-toolbar select, .of-toolbar input, .of-proc-side input, .of-add-item input, .of-add-item select, .of-reading input, .of-field input, .of-field select, .of-field textarea {
    min-height: 2.35rem;
    padding: .4rem .6rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-button);
    background: var(--white);
    color: var(--navy);
    font-size: .88rem;
}

.of-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.35rem;
    padding: .4rem .85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-button);
    background: var(--white);
    color: var(--navy);
    font-size: .86rem;
    font-weight: 600;
    white-space: nowrap;
}

.of-btn:hover:not(:disabled) {
    border-color: var(--navy);
    color: var(--navy);
}

.of-btn:disabled {
    opacity: .5;
}

.of-btn-quiet {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.of-btn-quiet:hover:not(:disabled) {
    border-color: var(--line);
    background: var(--white);
}

.of-btn-primary {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.of-btn-primary:hover:not(:disabled) {
    border-color: var(--navy-hover);
    background: var(--navy-hover);
    color: var(--white);
}

.of-btn-danger {
    border-color: var(--crit);
    background: var(--crit);
    color: var(--white);
}

.of-btn-danger:hover:not(:disabled) {
    border-color: var(--navy-hover);
    background: var(--navy-hover);
    color: var(--white);
}

.of-btn-danger-text {
    color: var(--crit);
}

.of-btn-small {
    min-height: 2rem;
    padding: .25rem .6rem;
    font-size: .8rem;
}

.of-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: .84rem;
    font-weight: 620;
    text-decoration: underline;
    text-underline-offset: .2em;
    white-space: nowrap;
}

.of-icon-btn {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    border-radius: var(--radius-tag);
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
}

.of-icon-btn:hover {
    background: var(--surface);
    color: var(--navy);
}

.of-confirm {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    font-size: .84rem;
    font-weight: 600;
}

.of-body {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr);
    min-height: 40rem;
}

.of-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem .7rem;
    border-right: 1px solid var(--line);
    background: var(--surface);
}

.of-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .7rem;
    border: 0;
    border-radius: var(--radius-button);
    background: transparent;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 560;
    text-align: left;
}

.of-nav-item:hover {
    background: var(--line-soft);
    color: var(--navy);
}

.of-nav-item[aria-current="page"] {
    background: var(--white);
    color: var(--navy);
    font-weight: 650;
    box-shadow: 0 1px 3px rgba(20, 33, 61, .08), inset 0 0 0 1px var(--line);
}

.of-badge {
    min-width: 1.4rem;
    padding: .05rem .4rem;
    border-radius: 999px;
    background: var(--line-soft);
    color: var(--muted);
    font-size: .72rem;
    font-style: normal;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.of-badge-ok { background: var(--ok-bg); color: var(--ok); }
.of-badge-warn { background: var(--warn-bg); color: var(--warn); }
.of-badge-info { background: var(--info-bg); color: var(--info); }
.of-badge-on-dark { background: var(--alice); color: var(--navy); }

.of-nav-note {
    margin-top: auto;
    padding: .7rem;
    border-radius: var(--radius-button);
    background: var(--white);
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.4;
}

.of-main {
    min-width: 0;
    padding: clamp(1rem, 2.4vw, 1.6rem);
    outline: none;
}

.of-view {
    display: grid;
    gap: 1.1rem;
}

.of-view-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: .8rem 1.5rem;
}

.of-view-head h2 {
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    letter-spacing: -.045em;
}

.of-kicker {
    margin-bottom: .3rem;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.of-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}

.of-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
}

.of-tile {
    position: relative;
    display: grid;
    align-content: start;
    gap: .2rem;
    min-width: 0;
    padding: .9rem 1rem 1.05rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--navy);
    text-align: left;
}

.of-tile:hover {
    border-color: var(--steel);
}

.of-tile strong {
    font-size: 1.7rem;
    font-weight: 620;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.05em;
    line-height: 1.1;
}

.of-tile span {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.3;
}

.of-tile::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: transparent;
    content: "";
}

.of-tile-warn strong { color: var(--warn); }
.of-tile-warn::before { background: var(--coral); }
.of-tile-info strong { color: var(--info); }
.of-tile-info::before { background: var(--steel); }
.of-tile-ok::before { background: var(--teal); }

.of-tile .of-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
}

.of-bar {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--line-soft);
}

.of-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--steel);
    transition: width 300ms var(--ease-out);
}

.of-bar-ok i {
    background: var(--teal);
}

.of-today-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.of-stack {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.of-card {
    display: grid;
    align-content: start;
    gap: .8rem;
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.of-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .3rem 1rem;
}

.of-card-head h3 {
    font-size: 1.05rem;
    letter-spacing: -.025em;
}

.of-card-head-wrap {
    align-items: start;
}

.of-card-head-wrap h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.of-brief, .of-mini, .of-activity, .of-items, .of-list-picker, .of-proc-list, .of-hist-row {
    margin: 0;
    padding: 0;
    list-style: none;
}

.of-brief {
    display: grid;
    gap: .45rem;
}

.of-brief-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .35rem .65rem;
    padding: .6rem .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
    line-height: 1.4;
}

.of-brief-item .chip {
    margin-top: .05rem;
    min-width: 4.6rem;
}

.of-brief-item .of-link {
    grid-column: 2;
    justify-self: start;
}

.of-tone-critical {
    border-color: var(--coral);
    background: var(--tint-coral);
}

.of-tone-warn {
    border-color: var(--coral-soft);
    background: var(--surface-2);
}

.of-empty {
    padding: 1rem;
    color: var(--muted);
    text-align: center;
}

.of-foot {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
}

.of-mini {
    display: grid;
    gap: .35rem;
}

.of-mini-list, .of-list-pick {
    display: grid;
    gap: .35rem;
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    background: var(--surface-2);
    color: var(--navy);
    text-align: left;
}

.of-mini-list:hover, .of-list-pick:hover {
    border-color: var(--line);
    background: var(--white);
}

.of-list-pick[aria-current="true"] {
    border-color: var(--steel);
    background: var(--tint-steel);
}

.of-mini-head {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .88rem;
}

.of-mini-head span {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.of-mini-sub {
    color: var(--muted);
    font-size: .75rem;
}

.of-activity {
    display: grid;
}

.of-activity li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .1rem .8rem;
    padding: .55rem 0;
    border-top: 1px solid var(--surface);
    font-size: .83rem;
    line-height: 1.4;
}

.of-activity li:first-child {
    border-top: 0;
    padding-top: 0;
}

.of-act-who {
    font-weight: 640;
}

.of-act-text {
    grid-column: 1;
    color: var(--muted);
}

.of-activity time {
    grid-row: 1;
    grid-column: 2;
    color: var(--muted);
    font-size: .74rem;
    white-space: nowrap;
}

.of-split {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.of-list-picker {
    display: grid;
    gap: .4rem;
}

.of-progress-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .3rem 1rem;
    font-variant-numeric: tabular-nums;
}

.of-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.of-chip-btn {
    padding: .3rem .7rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-tag);
    background: var(--white);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 560;
}

.of-chip-btn em {
    margin-left: .15rem;
    color: inherit;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    opacity: .75;
}

.of-chip-btn[aria-pressed="true"] {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.of-items {
    display: grid;
    gap: .4rem;
}

.of-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: .75rem;
    padding: .65rem .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
    background: var(--white);
}

.of-item.is-done {
    background: var(--surface-2);
}

.of-item.is-done .of-item-text {
    color: var(--muted);
}

.of-item.is-flagged {
    border-color: var(--coral);
    background: var(--tint-coral);
}

.of-check {
    position: relative;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: .05rem;
    padding: 0;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-tag);
    background: var(--white);
}

.of-check:hover {
    border-color: var(--steel);
}

.of-check.is-done {
    border-color: var(--steel);
    background: var(--steel);
}

.of-check.is-done::after {
    position: absolute;
    top: .22rem;
    left: .2rem;
    width: .7rem;
    height: .4rem;
    transform: rotate(-45deg);
    border-bottom: 2px solid var(--white);
    border-left: 2px solid var(--white);
    content: "";
}

.of-check.is-placeholder {
    border-style: dashed;
}

.of-item-body {
    display: grid;
    gap: .3rem;
    min-width: 0;
}

.of-item-text {
    line-height: 1.4;
}

.of-item-meta {
    color: var(--muted);
    font-size: .78rem;
}

.of-item-meta .is-good {
    color: var(--ok);
}

.of-item-meta .is-bad {
    color: var(--crit);
}

.of-item-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
    gap: .35rem;
}

.of-item-tags .chip {
    min-width: 0;
}

.of-reading {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.of-reading input {
    width: 7rem;
}

.of-add-item {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: .8rem;
    border-top: 1px dashed var(--line-strong);
}

.of-add-item input[type="text"] {
    flex: 1 1 16rem;
    min-width: 0;
}

.of-inline-check {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--muted);
    font-size: .84rem;
}

.of-hist-row {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: .5rem;
}

.of-hist {
    display: grid;
    justify-items: center;
    gap: .3rem;
    min-width: 0;
    text-align: center;
}

.of-hist-bar {
    display: flex;
    align-items: end;
    width: min(2.4rem, 100%);
    height: 4.5rem;
    overflow: hidden;
    border-radius: var(--radius-tag);
    background: var(--surface);
}

.of-hist-bar i {
    display: block;
    width: 100%;
    background: var(--steel-soft);
}

.of-hist-bar i.is-full {
    background: var(--steel);
}

.of-hist strong {
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}

.of-hist span {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.25;
}

.of-hist.is-current strong {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-underline-offset: .2em;
}

.of-hist.is-closed strong {
    color: var(--muted);
    font-weight: 500;
}

.of-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1rem;
}

.of-toolbar-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.of-toolbar input[type="search"] {
    width: 16rem;
    max-width: 100%;
}

.of-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.of-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}

.of-table-wrap .of-table {
    min-width: 54rem;
}

.of-table th, .of-table td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--surface);
    text-align: left;
    vertical-align: middle;
}

.of-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface-2);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.of-table tbody tr:last-child > * {
    border-bottom: 0;
}

.of-table tbody th {
    font-weight: 500;
}

.of-table-wrap .of-table tbody th {
    min-width: 12.5rem;
}

.of-row-critical > th:first-child {
    box-shadow: inset 3px 0 0 var(--coral);
}

.of-row-warn > th:first-child {
    box-shadow: inset 3px 0 0 var(--coral);
}

.of-item-name {
    display: block;
    font-weight: 600;
}

.of-sub {
    display: block;
    color: var(--muted);
    font-size: .76rem;
}

.of-sub.is-warn {
    color: var(--warn);
    font-weight: 600;
}

.of-num {
    font-variant-numeric: tabular-nums;
    text-align: right !important;
}

.of-date {
    display: block;
    white-space: nowrap;
}

.of-status {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.of-status .chip {
    min-width: 0;
}

.of-stepper {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-button);
    background: var(--white);
}

.of-stepper button {
    width: 2rem;
    border: 0;
    background: var(--surface);
    color: var(--navy);
    font-size: 1rem;
    line-height: 1;
}

.of-stepper button:hover {
    background: var(--tint-steel);
    color: var(--navy);
}

.of-stepper input {
    width: 3.2rem;
    min-height: 2.1rem;
    padding: .2rem;
    border: 0;
    border-inline: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
    text-align: center;
    -moz-appearance: textfield;
}

.of-stepper input::-webkit-outer-spin-button, .of-stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.of-row-actions {
    text-align: right !important;
    white-space: nowrap;
}

.of-row-actions .of-btn {
    margin-right: .6rem;
}

.of-split-proc {
    grid-template-columns: 17rem minmax(0, 1fr);
}

.of-proc-side {
    display: grid;
    gap: .55rem;
    min-width: 0;
}

.of-proc-side input {
    width: 100%;
}

.of-proc-list {
    display: grid;
    gap: .35rem;
}

.of-proc-pick {
    display: grid;
    justify-items: start;
    gap: .25rem;
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    background: transparent;
    color: var(--navy);
    text-align: left;
}

.of-proc-pick:hover {
    border-color: var(--line);
    background: var(--white);
}

.of-proc-pick[aria-current="true"] {
    border-color: var(--steel);
    background: var(--tint-steel);
}

.of-proc-pick strong {
    font-size: .9rem;
    font-weight: 620;
    line-height: 1.3;
}

.of-proc-pick .chip {
    min-width: 0;
}

.of-review {
    color: var(--muted);
    font-size: .85rem;
}

.of-review.is-due {
    color: var(--info);
    font-weight: 600;
}

.of-steps {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: of-step;
}

.of-steps li {
    position: relative;
    padding: .65rem .8rem .65rem 2.8rem;
    border: 1px solid var(--surface);
    border-radius: var(--radius-button);
    background: var(--surface-2);
    line-height: 1.5;
    counter-increment: of-step;
}

.of-steps li::before {
    position: absolute;
    top: .62rem;
    left: .75rem;
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: var(--tint-steel);
    color: var(--navy);
    content: counter(of-step);
    font-size: .76rem;
    font-weight: 700;
}

.of-dialog {
    width: min(40rem, calc(100vw - 2rem));
    max-height: calc(100vh - 3rem);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 30px 80px rgba(20, 33, 61, .3);
}

.of-dialog::backdrop {
    background: rgba(20, 33, 61, .45);
}

.of-dialog-form {
    display: grid;
    gap: 1rem;
    padding: 1.2rem 1.3rem 1.3rem;
}

.of-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.of-dialog-head h3 {
    font-size: 1.3rem;
}

.of-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.of-field {
    display: grid;
    gap: .3rem;
    min-width: 0;
}

.of-field span {
    font-size: .8rem;
    font-weight: 620;
}

.of-field input, .of-field select, .of-field textarea {
    width: 100%;
}

.of-field textarea {
    line-height: 1.5;
    resize: vertical;
}

.of-span-2 {
    grid-column: span 2;
}

.of-form-error {
    padding: .55rem .75rem;
    border-radius: var(--radius-button);
    background: var(--crit-bg);
    color: var(--crit);
    font-size: .86rem;
}

.of-form-hint {
    color: var(--muted);
    font-size: .8rem;
}

.of-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
}

.of-dialog-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.of-vendor {
    display: grid;
    gap: .4rem;
}

.of-vendor h4 {
    font-size: .9rem;
}

.of-table-compact {
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
}

.of-toast {
    position: fixed;
    z-index: 60;
    bottom: max(1.2rem, env(safe-area-inset-bottom, 0px));
    left: 50%;
    max-width: calc(100vw - 2rem);
    padding: .65rem 1rem;
    transform: translate(-50%, 1rem);
    border-radius: var(--radius-button);
    background: var(--navy);
    color: var(--white);
    font-size: .88rem;
    box-shadow: 0 12px 30px rgba(20, 33, 61, .3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

.of-toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.of-toast:empty {
    display: none;
}

@media (max-width: 1100px) {
    .of-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .of-today-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .of-body {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .of-nav {
        flex-direction: row;
        gap: .3rem;
        overflow-x: auto;
        padding: .5rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .of-nav-item {
        flex: 0 0 auto;
    }

    .of-nav-note {
        display: none;
    }

    .of-split, .of-split-proc {
        grid-template-columns: minmax(0, 1fr);
    }

    .of-list-picker {
        display: flex;
        overflow-x: auto;
        padding-bottom: .2rem;
    }

    .of-list-picker li {
        flex: 0 0 11.5rem;
    }
}

@media (max-width: 600px) {
    .of-top-actions, .of-user {
        width: 100%;
    }

    .of-user select {
        flex: 1;
        min-width: 0;
    }

    .of-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .of-item-tags {
        grid-column: 2;
        justify-content: start;
    }

    .of-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .of-span-2 {
        grid-column: auto;
    }

    .of-hist span {
        font-size: .64rem;
    }

    .of-toolbar input[type="search"] {
        width: 100%;
    }

    .of-toolbar-fields {
        width: 100%;
    }
}

/* ==========================================================================
   Services, pricing and the practice-operations offer
   ========================================================================== */

/* ---- Hero offer chip ---- */

.offer-chip {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    justify-self: start;
    max-width: 100%;
    margin-top: .35rem;
    padding: .35rem .9rem .35rem .35rem;
    border: 1px solid var(--line-on-dark);
    border-radius: 999px;
    background: rgba(219, 228, 238, .07);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--on-dark);
    font-size: .875rem;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 220ms ease, background-color 220ms ease;
}

.offer-chip:hover {
    border-color: var(--coral);
    background: rgba(255, 133, 82, .1);
}

.offer-chip:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.offer-chip-tag {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .4rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--coral);
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.offer-chip-tag::before {
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: var(--navy);
    content: "";
}

.offer-chip > span[aria-hidden] {
    transition: transform 380ms var(--ease-expo);
}

.offer-chip:hover > span[aria-hidden] {
    transform: translateX(4px);
}

/* ---- Offer band (home, clinical, services) ---- */

.offer-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
}

.offer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* A faint grid, like graph paper under the workbook. */
.offer::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(219, 228, 238, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(219, 228, 238, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(70% 80% at 75% 50%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 80% at 75% 50%, #000 0%, transparent 75%);
    content: "";
}

.price-line {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: .5rem;
}

.price-line strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(3rem, 3vw + 2rem, 4.25rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1;
}

.price-line span {
    padding-left: 1.1rem;
    border-left: 1px solid var(--line-on-dark);
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .05em;
    line-height: 1.6;
    text-transform: uppercase;
}

.price-note {
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .8125rem;
    letter-spacing: .02em;
}

.price-note-light {
    color: var(--muted);
}

/* ---- Sample workbook (Starter Kit) ---- */

.kit {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--white);
    box-shadow:
        0 0 0 1px rgba(219, 228, 238, .14),
        0 40px 90px -30px rgba(0, 0, 0, .7),
        0 30px 120px -40px rgba(62, 124, 177, .55);
    color: var(--navy);
    font-size: .875rem;
}

.kit-bar {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .7rem 1rem;
    background: var(--navy);
    color: var(--on-dark);
}

.kit-bar p {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kit-dots {
    display: inline-flex;
    flex: 0 0 auto;
    gap: .35rem;
}

.kit-dots i {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: rgba(219, 228, 238, .28);
}

.kit-dots i:first-child {
    background: var(--coral);
}

.kit-sample {
    flex: 0 0 auto;
    margin-left: auto;
    padding: .1rem .45rem;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--radius-tag);
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.kit-tabs {
    display: flex;
    gap: .25rem;
    padding: .5rem .75rem 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    scrollbar-width: none;
}

.kit-tabs span {
    flex: 0 0 auto;
    padding: .45rem .8rem;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 500;
}

.kit-tabs .is-active {
    position: relative;
    top: 1px;
    border-color: var(--line);
    background: var(--white);
    box-shadow: inset 0 2px 0 var(--coral);
    color: var(--navy);
}

.kit-scroll {
    overflow-x: auto;
}

.kit-sheet {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.kit-sheet th {
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.kit-sheet td {
    padding: .62rem 1rem;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
    white-space: nowrap;
}

.kit-sheet td:first-child {
    font-weight: 500;
    white-space: normal;
}

.kit-sheet td:last-child {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.kit-sheet td:nth-child(3) {
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.kit-sheet td:nth-child(3) .kit-check {
    margin-right: .45rem;
    vertical-align: -.2em;
}

.kit-check {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 4px;
    background: var(--teal);
}

.kit-check::after {
    position: absolute;
    top: 2px;
    left: 5.5px;
    width: 4px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

.kit-reorder {
    padding: .9rem 1rem 1rem;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.kit-reorder-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .7rem;
    margin: 0 0 .6rem;
    color: var(--muted);
    font-size: .8125rem;
}

.kit-reorder ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kit-reorder li {
    display: grid;
    gap: .1rem;
    padding: .55rem .7rem;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--coral);
    border-radius: 6px;
    background: var(--white);
    font-size: .8125rem;
}

.kit-reorder li strong {
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
}

/* ---- Before and after (Workflow Fix) ---- */

.fix {
    display: grid;
    gap: .9rem;
    min-width: 0;
    margin: 0;
}

.fix-panel {
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
}

.fix-file {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: .6rem 1rem;
    font-family: var(--font-mono);
    font-size: .75rem;
}

.fix-file span {
    padding: .05rem .4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-tag);
    color: var(--muted);
    font-size: .625rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.fix-before {
    width: 88%;
    background: var(--navy);
    color: var(--on-dark-muted);
    box-shadow: 0 24px 50px -28px rgba(20, 33, 61, .7);
    transform: rotate(-1.6deg) translateX(-.5rem);
}

.fix-before .fix-file {
    border-bottom: 1px solid var(--line-on-dark);
    color: var(--on-dark);
}

.fix-before pre {
    margin: 0;
    padding: .8rem 1rem 1rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.6;
}

.fix-arrow {
    display: grid;
    justify-items: center;
    height: 2.25rem;
}

.fix-arrow span {
    position: relative;
    width: 2px;
    height: 100%;
    background: linear-gradient(var(--steel), var(--coral));
}

.fix-arrow span::after {
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: .6rem;
    height: .6rem;
    border: solid var(--coral);
    border-width: 0 2px 2px 0;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.fix-after {
    justify-self: end;
    width: 94%;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 30px 60px -30px rgba(20, 33, 61, .45);
}

.fix-after .fix-file {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.fix-after table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
}

.fix-after th {
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
}

.fix-after td {
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.fix-after td:not(:first-child) {
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.fix-after tr:last-child td {
    border-bottom: 0;
}

.fix-flag td {
    background: var(--tint-coral);
}

.fix-flag td:first-child {
    box-shadow: inset 3px 0 0 var(--coral);
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.fix-flag td:last-child {
    font-family: var(--font-body);
    font-size: .8125rem;
}

/* ---- Pricing cards ---- */

.pricing-section {
    background: linear-gradient(180deg, var(--surface) 0%, var(--white) 70%);
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    min-width: 0;
    padding: clamp(1.5rem, 2.4vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.plan > .button {
    align-self: stretch;
    margin-top: auto;
}

.plan-featured {
    border-color: rgba(255, 133, 82, .55);
    background: radial-gradient(120% 90% at 85% 0%, #10224a 0%, #060f26 50%, var(--abyss) 85%);
    box-shadow: 0 40px 80px -36px rgba(20, 33, 61, .75);
    color: var(--white);
}

.plan-badge {
    position: absolute;
    top: 0;
    left: clamp(1.5rem, 2.4vw, 2.25rem);
    margin: 0;
    padding: .25rem .65rem;
    border-radius: var(--radius-tag);
    background: var(--coral);
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    transform: translateY(-50%);
}

.plan-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.plan-featured .plan-name {
    margin-top: .4rem;
}

.plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .75rem;
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.plan-featured .plan-price {
    border-bottom-color: var(--line-on-dark);
}

.plan-price strong {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 2vw + 2rem, 3.5rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1;
}

.plan-price span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.plan-featured .plan-price span, .plan-featured .plan-desc {
    color: var(--on-dark);
}

.plan-desc {
    margin: 0;
    color: var(--muted);
}

.plan-features, .check-list {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-features {
    margin-bottom: .75rem;
    font-size: .9375rem;
}

.plan-features li, .check-list li {
    position: relative;
    padding-left: 1.75rem;
}

.plan-features li::before, .check-list li::before {
    position: absolute;
    top: .3em;
    left: 0;
    display: grid;
    width: 1.1rem;
    height: 1.1rem;
    place-items: center;
    border-radius: 50%;
    background: var(--tint-teal);
    color: var(--teal);
    content: "\2713";
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
}

.plan-featured .plan-features li::before, .check-list-dark li::before {
    background: rgba(255, 133, 82, .16);
    color: var(--coral);
}

.check-list-dark {
    color: var(--on-dark);
}

.check-list-dark strong {
    color: var(--white);
}

.plans-note {
    max-width: 46rem;
    margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
    color: var(--muted);
    font-size: .9375rem;
    text-align: center;
}

.fine-print {
    padding-left: .9rem;
    border-left: 2px solid var(--coral);
    color: var(--muted);
    font-size: .9375rem;
}

/* ---- Process ---- */

.process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.process li {
    position: relative;
    display: grid;
    align-content: start;
    gap: .6rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--line);
}

.process li::after {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--steel);
    content: "";
    transform-origin: left;
}

.process li:nth-child(3)::after {
    background: var(--coral);
}

.process-num {
    color: var(--steel);
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1;
}

.process h3 {
    font-size: 1.25rem;
}

.process p {
    color: var(--muted);
}

/* ---- Motion ---- */

@media (prefers-reduced-motion: no-preference) {
    /* Checks tick in one row at a time once the workbook is on screen. */
    .js-reveal .kit .kit-check {
        transition: transform 520ms var(--ease-expo), opacity 300ms ease;
        transition-delay: calc(500ms + var(--r, 0) * 160ms);
    }

    .js-reveal .kit.is-pending .kit-check {
        opacity: 0;
        transform: scale(.2);
    }

    .js-reveal .kit .chip-critical {
        animation: kit-pulse 2.4s var(--ease-out) 1.6s infinite;
    }

    .js-reveal .process li::after {
        transition: transform 1.1s var(--ease-expo);
        transition-delay: calc(200ms + var(--k, 0) * 180ms);
    }

    .js-reveal .process.is-pending li::after {
        transform: scaleX(0);
    }

    .js-reveal .fix-arrow span {
        transition: transform 900ms var(--ease-expo) 500ms;
        transform-origin: top;
    }

    .js-reveal .fix.is-pending .fix-arrow span {
        transform: scaleY(0);
    }

    .plan {
        transition: transform 420ms var(--ease-expo), box-shadow 420ms var(--ease-expo), border-color 220ms ease;
    }

    .plan:hover {
        transform: translate3d(0, -4px, 0);
        box-shadow: 0 22px 46px -18px rgba(20, 33, 61, .22);
    }

    .plan-featured:hover {
        box-shadow: 0 46px 90px -34px rgba(20, 33, 61, .85);
    }
}

@keyframes kit-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 133, 82, 0); }
    30% { box-shadow: 0 0 0 4px rgba(255, 133, 82, .35); }
}

/* A slight turn toward the reader on large screens with a mouse. */
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
    .band-ink .kit {
        transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
        transition: transform 900ms var(--ease-expo);
    }

    .band-ink .kit:hover {
        transform: perspective(1600px) rotateY(0deg) rotateX(0deg);
    }
}

@media (min-width: 1024px) {
    .plan-featured {
        margin-block: -.75rem;
        padding-block: calc(clamp(1.5rem, 2.4vw, 2.25rem) + .75rem);
    }
}

/* ---- Tablet and phone ---- */

@media (max-width: 1023px) {
    .offer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .plans {
        grid-template-columns: minmax(0, 1fr);
        max-width: 40rem;
        margin-inline: auto;
    }

    .plan-featured {
        margin-top: .75rem;
    }

    .process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .process {
        grid-template-columns: minmax(0, 1fr);
    }

    .kit-reorder ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .kit-reorder li {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .kit-sheet th, .kit-sheet td {
        padding-inline: .7rem;
    }

    .kit-sheet th:nth-child(2), .kit-sheet td:nth-child(2) {
        display: none;
    }

    .kit-sample {
        display: none;
    }

    .fix-before, .fix-after {
        width: 100%;
    }

    .fix-before {
        transform: rotate(-1deg);
    }

    .price-line strong {
        font-size: 3rem;
    }

    .offer-chip {
        font-size: .8125rem;
    }

    .offer-chip-more {
        display: none;
    }
}

/* ---- Contact: project inquiry ---- */

.topic-options {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.topic-options label {
    grid-column: span 2;
}

.topic-options .topic-offer {
    grid-column: span 3;
    align-items: flex-start;
    padding-block: .85rem;
}

.topic-offer input {
    margin-top: .3rem;
}

.topic-offer span {
    display: grid;
    flex: 1;
    gap: .15rem;
    line-height: 1.3;
}

.topic-offer small {
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 400;
}

.topic-offer em {
    flex: 0 0 auto;
    padding: .1rem .45rem;
    border-radius: var(--radius-tag);
    background: var(--tint-coral);
    box-shadow: inset 0 0 0 1px var(--coral);
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-style: normal;
    font-weight: 500;
}

.optional {
    margin-left: .35rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 400;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.field .field-hint {
    margin-top: 0;
}

.steps li:nth-child(3)::before {
    background: var(--coral);
    color: var(--navy);
}

.aside-prices {
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.aside-prices a {
    color: var(--navy);
    text-underline-offset: .2em;
}

@media (max-width: 760px) {
    .topic-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .topic-options label, .topic-options .topic-offer {
        grid-column: auto;
    }
}

/* ==========================================================================
   1.5: New-Patient Booking Fix, Google Form contact, Research Studio
   ========================================================================== */

/* ---- Homepage hero: the offer, its price and the button come first ---- */

.hero-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .75rem;
    margin: 0;
    color: var(--on-dark);
}

.hero-price strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.6vw + 1.6rem, 3rem);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1;
}

.hero-price span {
    font-size: clamp(1.0625rem, .4vw + 1rem, 1.25rem);
}

.hero-price small {
    align-self: center;
    padding: .2rem .55rem;
    border: 1px solid rgba(255, 133, 82, .6);
    border-radius: var(--radius-tag);
    color: var(--coral);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
    .story.is-animated .story-establish .hero-price {
        animation: snz-rise 1.2s var(--ease-expo) .58s both;
    }

    .story.is-animated .story-establish .button-row {
        animation-delay: .7s;
    }
}

/* On tablets and phones the copy sits over the lower half of the scene; give it its own shade. */
@media (max-width: 1023px) {
    .story.is-cinematic .story-establish {
        background: linear-gradient(0deg, rgba(0, 6, 23, .92) 0%, rgba(0, 6, 23, .82) 52%, rgba(0, 6, 23, 0) 82%);
    }
}

@media (max-width: 640px) {
    .story-establish .hero-logo {
        width: min(100%, 15rem);
        margin-bottom: 0;
    }

    .story-establish h1 {
        font-size: clamp(2rem, 8.6vw, 2.5rem);
    }

    .story.is-cinematic .story-establish .story-lede {
        font-size: .96875rem;
        line-height: 1.45;
    }

    .hero-price strong {
        font-size: 2.125rem;
    }

    .hero-price span {
        font-size: 1rem;
    }

    .story.is-cinematic .story-establish .story-copy {
        gap: .7rem;
    }
}

/* Short phones (and landscape): keep the price and the button above the fold. */
@media (max-width: 1023px) and (max-height: 700px) {
    .story-establish .hero-logo {
        width: min(100%, 11rem);
    }

    .story.is-cinematic .story-establish .story-copy {
        gap: .55rem;
    }

    .story.is-cinematic .story-establish .story-lede {
        font-size: .9375rem;
    }

    .hero-price small {
        display: none;
    }
}

@media (max-width: 1023px) and (max-height: 600px) {
    .story-establish .hero-logo {
        display: none;
    }
}

/* ---- Shared CTA: the three offers, side by side ---- */

.cta-offers {
    display: grid;
    flex: 1 0 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: .5rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(20, 33, 61, .12);
    list-style: none;
}

.cta-offers a {
    display: grid;
    gap: .15rem;
    height: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
}

.cta-offers strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.cta-offers span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .04em;
}

.footer-brand .button {
    width: fit-content;
    margin-top: 1.25rem;
}

.tag-plain::before {
    display: none;
}

/* ---- Booking path: before and after on a phone ---- */

.bk, .studio {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--white);
    box-shadow:
        0 0 0 1px rgba(219, 228, 238, .14),
        0 40px 90px -30px rgba(0, 0, 0, .7),
        0 30px 120px -40px rgba(62, 124, 177, .55);
    color: var(--navy);
}

.bk-bar, .studio-bar {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .7rem 1rem;
    background: var(--navy);
    color: var(--on-dark);
}

.bk-bar p, .studio-bar p {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bk-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.75rem, 2vw, 1.5rem);
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(.75rem, 2.5vw, 1.5rem);
    background: linear-gradient(180deg, var(--surface), var(--white));
}

.bk-col {
    display: grid;
    justify-items: center;
    gap: .7rem;
    min-width: 0;
}

.bk-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .5rem;
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
    text-align: center;
}

.bk-state-tag {
    padding: .1rem .45rem;
    border: 1px solid var(--coral);
    border-radius: var(--radius-tag);
    background: var(--tint-coral);
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bk-after .bk-state-tag {
    border-color: var(--teal);
    background: var(--tint-teal);
}

.bk-phone {
    width: min(100%, 13.5rem);
    padding: .4rem;
    border-radius: 1.6rem;
    background: #0b1630;
    box-shadow: 0 22px 40px -20px rgba(0, 6, 23, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.bk-screen {
    position: relative;
    height: clamp(17.5rem, 26vw, 20rem);
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--white);
}

.bk-screen::before {
    position: absolute;
    z-index: 3;
    top: .4rem;
    left: 50%;
    width: 3rem;
    height: .8rem;
    border-radius: 1rem;
    background: #0b1630;
    content: "";
    transform: translateX(-50%);
}

.bk-site {
    display: grid;
    align-content: start;
    gap: .3rem;
    height: 100%;
    padding: 1.6rem .75rem .75rem;
    background: linear-gradient(180deg, var(--alice) 0%, var(--white) 50%);
}

.bk-url {
    margin: 0 0 .3rem;
    padding: .25rem .5rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(20, 33, 61, .07);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .5625rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bk-h {
    margin: 0;
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
}

.bk-sub {
    margin: 0;
    color: var(--muted);
    font-size: .6875rem;
    line-height: 1.35;
}

.bk-btn {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: .45rem;
    padding: .5rem .5rem;
    border-radius: var(--radius-button);
    background: var(--coral);
    color: var(--navy);
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.bk-tap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.4rem;
    height: 2.4rem;
    margin: -1.2rem 0 0 -1.2rem;
    border: 2px solid rgba(20, 33, 61, .55);
    border-radius: 50%;
    background: rgba(20, 33, 61, .18);
    opacity: 0;
    pointer-events: none;
}

.bk-sheet {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: .25rem;
    height: 57%;
    padding: .55rem .75rem .75rem;
    border-radius: 1rem 1rem 0 0;
    background: var(--white);
    box-shadow: 0 -14px 30px -14px rgba(20, 33, 61, .45);
}

.bk-sheet::before {
    justify-self: center;
    width: 2rem;
    height: .2rem;
    margin-bottom: .25rem;
    border-radius: 1rem;
    background: var(--line);
    content: "";
}

.bk-opens {
    margin: 0;
    color: var(--steel);
    font-family: var(--font-mono);
    font-size: .5625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bk-sheet .bk-url {
    margin-bottom: .15rem;
}

.bk-flag {
    justify-self: start;
    margin-top: .35rem;
    padding: .2rem .5rem;
    border: 1px solid var(--navy);
    border-radius: var(--radius-tag);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bk-flag::before {
    margin-right: .3rem;
    color: var(--coral);
    font-family: var(--font-body);
    font-weight: 700;
    content: "\2715";
}

.bk-flag-ok {
    border-color: var(--teal);
    background: var(--tint-teal);
    color: var(--navy);
}

.bk-flag-ok::before {
    color: var(--teal);
    content: "\2713";
}

.bk-summary, .studio-recipe {
    padding: 1rem clamp(1rem, 2.5vw, 1.5rem) 1.15rem;
    border-top: 1px solid var(--line);
}

.bk-summary-title, .studio-recipe-title {
    margin: 0 0 .6rem;
    color: var(--steel);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bk-summary ul {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bk-summary li {
    position: relative;
    padding-left: 1.6rem;
    font-size: .875rem;
    line-height: 1.45;
}

.bk-summary li::before {
    position: absolute;
    top: .1em;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-size: .625rem;
    font-weight: 700;
    content: "\2713";
}

@media (prefers-reduced-motion: no-preference) {
    .js-reveal .bk .bk-sheet {
        transition: transform 900ms var(--ease-expo) 1.2s;
    }

    .js-reveal .bk .bk-after .bk-sheet {
        transition-delay: 1.9s;
    }

    .js-reveal .bk.is-pending .bk-sheet {
        transform: translate3d(0, 105%, 0);
    }

    .js-reveal .bk:not(.is-pending) .bk-tap {
        animation: bk-tap 760ms var(--ease-out) .75s both;
    }

    .js-reveal .bk:not(.is-pending) .bk-after .bk-tap {
        animation-delay: 1.45s;
    }

    .js-reveal .bk .bk-flag {
        transition: opacity 400ms ease, transform 600ms var(--ease-expo);
        transition-delay: 1.85s;
    }

    .js-reveal .bk .bk-after .bk-flag {
        transition-delay: 2.55s;
    }

    .js-reveal .bk.is-pending .bk-flag {
        opacity: 0;
        transform: scale(.8);
    }

    .js-reveal .bk .bk-flag-bad {
        animation: kit-pulse 2.4s var(--ease-out) 3.2s infinite;
    }

    .js-reveal .bk .bk-summary li {
        transition: opacity 500ms ease, transform 700ms var(--ease-expo);
        transition-delay: calc(2.8s + var(--r, 0) * 150ms);
    }

    .js-reveal .bk.is-pending .bk-summary li {
        opacity: 0;
        transform: translate3d(-8px, 0, 0);
    }
}

@keyframes bk-tap {
    0% { opacity: 0; transform: scale(.3); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: scale(2.1); }
}

/* ---- Starter Kit: the secondary practice offer ---- */

.kit-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(1.25rem, 3.5vw, 2.75rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, var(--white) 0%, var(--surface) 100%);
}

.kit-card-copy {
    display: grid;
    gap: .9rem;
    min-width: 0;
}

.kit-card-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kit-card h2 {
    font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.25rem);
}

.kit-card-price {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    margin: 0;
}

.kit-card-price strong {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1;
}

.kit-card-price span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.kit-card-copy > p:not([class]) {
    color: var(--muted);
}

.kit-card .kit {
    box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(20, 33, 61, .35);
}

/* ---- Services: the Booking Fix spans the row ---- */

.plan-kicker {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.plan-featured .plan-kicker {
    color: var(--coral);
}

.plan-wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem clamp(2rem, 4vw, 3.5rem);
}

.plan-wide-main, .plan-wide-side {
    display: grid;
    align-content: start;
    gap: .9rem;
    min-width: 0;
}

.plan-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
    margin-top: .35rem;
}

@media (min-width: 1024px) {
    .plans-4 .plan-featured {
        margin-block: 0 .75rem;
        padding-block: clamp(2rem, 3vw, 2.75rem);
    }
}

/* ---- Booking Fix page ---- */

.cine-copy > :nth-child(6) {
    animation-delay: .6s;
}

.cine-booking .price-line {
    margin-top: .25rem;
}

.process-price {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bpath {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bpath::before {
    position: absolute;
    top: .5rem;
    right: calc((100% - 5rem) / 5 - .55rem);
    left: .55rem;
    height: 2px;
    background: linear-gradient(90deg, var(--steel), var(--teal));
    content: "";
    transform-origin: left;
}

.bpath li {
    position: relative;
    display: grid;
    align-content: start;
    gap: .35rem;
    padding-top: 2.1rem;
}

.bpath-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--steel);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 0 4px var(--white);
}

.bpath li:last-child .bpath-dot {
    border-color: var(--teal);
    background: var(--teal);
}

.bpath strong {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
}

.bpath li > span:not(.bpath-dot) {
    color: var(--muted);
    font-size: .9375rem;
}

.founder-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    max-width: 62rem;
}

.founder-intro-photo {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-card);
    background: var(--navy);
}

.founder-intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
}

.founder-intro-copy {
    display: grid;
    gap: .9rem;
}

.founder-intro-copy h2 {
    font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.25rem);
}

.founder-intro-note {
    padding-left: .9rem;
    border-left: 2px solid var(--coral);
    color: var(--muted);
    font-size: .9375rem;
}

@media (prefers-reduced-motion: no-preference) {
    .js-reveal .bpath::before {
        transition: transform 1.6s var(--ease-expo) .2s;
    }

    .js-reveal .bpath.is-pending::before {
        transform: scaleX(0);
    }

    /* A single pulse travels the path, the way a patient would. */
    .bpath::after {
        position: absolute;
        top: calc(.5rem - 4px);
        left: .55rem;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--coral);
        box-shadow: 0 0 12px 2px rgba(255, 133, 82, .7);
        content: "";
        animation: bpath-travel 5.5s var(--ease-out) 2s infinite;
        opacity: 0;
    }

    .js-reveal .bpath.is-pending::after {
        animation: none;
    }
}

@keyframes bpath-travel {
    0% { left: .55rem; opacity: 0; }
    8% { opacity: 1; }
    80% { opacity: 1; }
    92%, 100% { left: calc(100% - (100% - 5rem) / 5 + .55rem - 5px); opacity: 0; }
}

@keyframes bpath-travel-down {
    0% { top: .55rem; opacity: 0; }
    8% { opacity: 1; }
    80% { opacity: 1; }
    92%, 100% { top: calc(100% - .55rem - 10px); opacity: 0; }
}

/* ---- Contact: the Google Form, with a direct link beside it ---- */

.gform-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.gform-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    padding: 1rem clamp(1rem, 2.5vw, 1.5rem);
    background: var(--navy);
    color: var(--white);
}

.gform-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
}

.gform-sub {
    margin: 0;
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .04em;
}

.gform-phi {
    max-width: none;
    margin: 0;
    padding: .85rem clamp(1rem, 2.5vw, 1.5rem);
    border-bottom: 1px solid var(--line);
    background: var(--tint-coral);
    font-size: .9375rem;
}

.gform-frame {
    position: relative;
    background: var(--surface);
}

/* Google Forms can't resize its frame, so the height follows the form at each width, with room for error messages. */
.gform-frame iframe {
    display: block;
    width: 100%;
    height: 1510px;
    border: 0;
}

@media (max-width: 760px) {
    .gform-frame iframe {
        height: 1580px;
    }
}

.gform-loading {
    position: absolute;
    top: 2.5rem;
    right: 1rem;
    left: 1rem;
    max-width: 26rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: .9375rem;
    text-align: center;
}

.gform-frame.is-loaded .gform-loading {
    display: none;
}

.aside-block {
    display: grid;
    gap: .85rem;
}

.contact-aside .aside-block h2 {
    font-size: 1.25rem;
}

.service-picks {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-picks a {
    position: relative;
    display: grid;
    gap: .15rem;
    padding: .85rem 2.5rem .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
}

.service-picks a::after {
    position: absolute;
    top: 50%;
    right: 1rem;
    color: var(--steel);
    content: "\2192";
    transform: translateY(-50%);
}

.service-picks a[aria-current="true"] {
    border-color: var(--coral);
    box-shadow: inset 3px 0 0 var(--coral);
}

.service-picks strong {
    font-size: .9375rem;
}

.service-picks span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .03em;
}

.pay-split {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.pay-split p {
    margin: 0;
    color: var(--muted);
    font-size: .9375rem;
}

.pay-split dl {
    display: grid;
    gap: .5rem;
    margin: 0;
}

.pay-split dl div {
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: .75rem;
    padding-top: .5rem;
    border-top: 1px solid var(--line);
}

.pay-split dt {
    font-size: .875rem;
    font-weight: 600;
}

.pay-split dd {
    margin: 0;
    color: var(--muted);
    font-size: .875rem;
}

/* ---- Research Studio: raw export to workbook to figure ---- */

.studio-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.studio-step {
    position: relative;
    display: grid;
    align-content: start;
    gap: .6rem;
    min-width: 0;
    padding: clamp(1rem, 2.2vw, 1.5rem);
}

.studio-step + .studio-step {
    border-left: 1px solid var(--line);
}

.studio-step + .studio-step::before {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: -.85rem;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--steel);
    font-size: .8125rem;
    content: "\2192";
    transform: translateY(-50%);
}

.studio-raw {
    background: var(--surface);
}

.studio-step-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    color: var(--steel);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.studio-step-label span {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: var(--radius-tag);
    background: var(--navy);
    color: var(--white);
    letter-spacing: 0;
}

.studio-file {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-raw pre {
    margin: 0;
    padding: .7rem .75rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: .7rem;
    line-height: 1.7;
}

.studio-raw mark {
    border-radius: 2px;
    background: rgba(255, 133, 82, .24);
    box-shadow: 0 0 0 1px rgba(255, 133, 82, .55);
    color: inherit;
}

.studio-tabs {
    display: flex;
    gap: .25rem;
    margin: 0 0 -.6rem;
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.studio-tabs b, .studio-tabs span {
    padding: .2rem .5rem;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    color: var(--muted);
    font-weight: 500;
}

.studio-tabs b {
    background: var(--alice);
    color: var(--navy);
}

.studio-book table {
    width: 100%;
    border: 1px solid var(--line);
    border-collapse: collapse;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.studio-book th {
    padding: .4rem .45rem;
    border-bottom: 1px solid var(--line);
    background: var(--alice);
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.studio-book td {
    padding: .45rem;
    border-bottom: 1px solid var(--line);
}

.studio-book th:not(:first-child), .studio-book td:not(:first-child) {
    text-align: right;
}

.studio-flag {
    margin: 0;
    padding: .4rem .55rem;
    border: 1px solid rgba(255, 133, 82, .55);
    border-radius: var(--radius-tag);
    background: var(--tint-coral);
    font-family: var(--font-mono);
    font-size: .6875rem;
}

.studio-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.sc-grid path {
    fill: none;
    stroke: var(--line);
    stroke-dasharray: 2 3;
    stroke-width: .75;
}

.sc-axis path, .sc-err path {
    fill: none;
    stroke: var(--navy);
    stroke-width: 1;
}

.studio-chart text {
    fill: var(--muted);
    font-family: var(--font-mono);
    font-size: 7.5px;
}

.sc-labels text {
    fill: var(--navy);
    font-family: var(--font-body);
    font-size: 8.5px;
}

.sc-labels .sc-group {
    font-weight: 600;
}

.sc-bar { fill: var(--steel); }
.sc-bar-ctrl { fill: var(--navy); }
.sc-bar-hi { fill: var(--coral); }

.studio-recipe {
    background: var(--surface);
}

.studio-recipe ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: recipe;
}

.studio-recipe li {
    position: relative;
    padding-left: 1.75rem;
    font-size: .8125rem;
    line-height: 1.45;
    counter-increment: recipe;
}

.studio-recipe li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: .625rem;
    content: counter(recipe);
}

.studio-status {
    max-width: 48rem;
    margin: 1.5rem 0 0;
    color: var(--on-dark-muted);
    font-size: .9375rem;
}

.studio-status a {
    color: var(--white);
    text-underline-offset: .2em;
}

.studio-ideas .principle {
    grid-template-rows: auto auto 1fr auto;
}

.idea-io {
    margin: .25rem 0 0;
    color: var(--steel);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .02em;
}

.principle .idea-io {
    color: var(--steel);
}

.field-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.field-cards li {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.field-cards a {
    display: grid;
    align-content: start;
    gap: .3rem;
    height: 100%;
    padding: 1.25rem;
    color: var(--navy);
    text-decoration: none;
}

.field-cards small {
    margin-top: .4rem;
    color: var(--steel);
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.studio-cta {
    margin-top: 1.5rem;
}

.field-cards strong {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
}

.field-cards span {
    color: var(--muted);
    font-size: .9375rem;
}

.field-cards em {
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: .78rem;
    font-style: normal;
}

.field-cards em::before {
    color: var(--coral);
    content: "\2192\00a0";
}

.utilities-head {
    padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.utilities-head .section-head {
    margin-bottom: 0;
}

.utility-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.utility-links a {
    padding: .45rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
    background: var(--white);
    color: var(--navy);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
    .cta-offers a, .service-picks a, .field-cards li, .utility-links a {
        transition: border-color 220ms ease, transform 380ms var(--ease-expo), box-shadow 380ms var(--ease-expo);
    }

    .cta-offers a:hover, .service-picks a:hover, .utility-links a:hover {
        border-color: var(--steel);
        box-shadow: 0 14px 30px -18px rgba(20, 33, 61, .35);
        transform: translate3d(0, -2px, 0);
    }

    .field-cards li:hover {
        border-color: var(--steel);
        transform: translate3d(0, -4px, 0);
        box-shadow: 0 18px 40px rgba(20, 33, 61, .1);
    }

    .service-picks a::after {
        transition: transform 380ms var(--ease-expo);
    }

    .service-picks a:hover::after {
        transform: translate3d(4px, -50%, 0);
    }

    /* The mess gets marked, the rows land, the bars rise. */
    .js-reveal .studio mark {
        transition: background-color 500ms ease, box-shadow 500ms ease;
        transition-delay: calc(500ms + var(--r, 0) * 220ms);
    }

    .js-reveal .studio.is-pending mark {
        background-color: transparent;
        box-shadow: none;
    }

    .js-reveal .studio .studio-book tbody tr {
        transition: opacity 500ms ease, transform 700ms var(--ease-expo);
        transition-delay: calc(1.25s + var(--r, 0) * 160ms);
    }

    .js-reveal .studio.is-pending .studio-book tbody tr {
        opacity: 0;
        transform: translate3d(0, 6px, 0);
    }

    .js-reveal .studio .studio-flag {
        transition: opacity 500ms ease 1.8s;
    }

    .js-reveal .studio.is-pending .studio-flag {
        opacity: 0;
    }

    .js-reveal .studio .sc-bar {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        transition: transform 1.1s var(--ease-expo);
        transition-delay: calc(2s + var(--r, 0) * 150ms);
    }

    .js-reveal .studio.is-pending .sc-bar {
        transform: scaleY(0);
    }

    .js-reveal .studio .sc-err {
        transition: opacity 500ms ease 2.75s;
    }

    .js-reveal .studio.is-pending .sc-err {
        opacity: 0;
    }

    .js-reveal .studio .studio-recipe li {
        transition: opacity 500ms ease, transform 700ms var(--ease-expo);
        transition-delay: calc(2.9s + var(--r, 0) * 140ms);
    }

    .js-reveal .studio.is-pending .studio-recipe li {
        opacity: 0;
        transform: translate3d(0, 6px, 0);
    }
}

/* ---- 1.5: tablet and phone ---- */

@media (max-width: 1023px) {
    .kit-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan-wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .studio-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .studio-step + .studio-step {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .studio-step + .studio-step::before {
        top: -.85rem;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    .studio-fig .studio-chart {
        max-width: 26rem;
    }

    .studio-recipe ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bpath {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .bpath::before {
        top: .55rem;
        right: auto;
        bottom: .55rem;
        left: .5rem;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--steel), var(--teal));
        transform-origin: top;
    }

    .bpath li {
        padding-top: 0;
        padding-left: 2.25rem;
    }

    .bpath-dot {
        top: .1rem;
    }
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
    .js-reveal .bpath.is-pending::before {
        transform: scaleY(0);
    }

    .bpath::after {
        top: .55rem;
        left: calc(.5rem - 4px);
        animation-name: bpath-travel-down;
    }
}

@media (max-width: 760px) {
    .cta-offers {
        grid-template-columns: minmax(0, 1fr);
    }

    .founder-intro-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .founder-intro-photo {
        max-width: 11rem;
    }
}

@media (max-width: 600px) {
    .bk-compare {
        gap: .6rem;
        padding-inline: .6rem;
    }

    .bk-phone {
        padding: .3rem;
        border-radius: 1.25rem;
    }

    .bk-screen {
        height: 19.5rem;
        border-radius: 1rem;
    }

    .bk-sheet {
        height: 49%;
    }

    .bk-site {
        padding-inline: .55rem;
    }

    .bk-sheet {
        padding-inline: .55rem;
    }

    .bk-btn {
        font-size: .6875rem;
    }

    .bk-h {
        font-size: .875rem;
    }

    .studio-recipe ol, .field-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .pay-split dl div {
        grid-template-columns: minmax(0, 1fr);
        gap: .15rem;
    }

    .gform-frame iframe {
        height: 1680px;
    }
}

@media (max-width: 420px) {
    .gform-frame iframe {
        height: 1790px;
    }
}

/* Offer mastheads: price and button within the first screen on laptops. */
.cine-offer {
    min-height: 0;
    padding-top: clamp(4.5rem, 8vw, 6.5rem);
}

.cine-offer .cine-copy h1 {
    max-width: 50rem;
    font-size: clamp(2.25rem, 2.4vw + 1.25rem, 3.6rem);
}

.cine-offer .cine-copy {
    gap: .9rem;
}

/* ---- Homepage hero: a rotating "common symptom" ---- */

.hero-symptom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .65rem;
    min-height: 1.6rem;
    margin: 0;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: .8125rem;
    letter-spacing: .01em;
}

.hero-symptom-tag {
    padding: .15rem .45rem;
    border: 1px solid rgba(122, 220, 208, .55);
    border-radius: var(--radius-tag);
    color: #7adcd0;
    font-size: .625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-symptom-text {
    display: inline-block;
}

.hero-symptom-text.is-out {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-symptom-text {
        transition: opacity 380ms ease, transform 520ms var(--ease-expo);
    }

    .story.is-animated .story-establish .hero-symptom {
        animation: snz-rise 1.2s var(--ease-expo) .54s both;
    }

    .story.is-animated .story-establish .hero-price {
        animation-delay: .62s;
    }
}

@media (max-width: 640px) {
    .hero-symptom {
        font-size: .75rem;
    }
}

@media (max-width: 1023px) and (max-height: 700px) {
    .hero-symptom-tag {
        display: none;
    }
}


/* =====================================================================
   1.7: Practice Desk, SnapSmartz Together and a three-audience homepage
   ===================================================================== */

/* ---- Hero: readable from the first frame. The microscope keeps moving; the copy doesn't wait for it. ---- */
.story.is-animated .hero-logo,
.story.is-animated .story-establish h1,
.story.is-animated .story-establish .story-lede,
.story.is-animated .story-establish .button-row,
.story.is-animated .story-establish .hero-kicker {
    animation: none !important;
    opacity: 1;
    transform: none;
}

.story-establish .story-copy {
    max-width: 40rem;
}

/* Keep the paragraph and buttons clear of the focus ring on wide screens. */
@media (min-width: 1024px) {
    .story-establish .story-lede {
        max-width: 32rem;
    }
}

/* Small laptops: start the microscope scene further right so it never sits under the copy. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .story-stage {
        inset: 0 0 0 46%;
    }

    .story-establish .story-lede {
        max-width: 29rem;
    }
}

.hero-kicker {
    color: var(--coral-soft);
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .1em;
    line-height: 1.5;
    text-transform: uppercase;
}

.story-establish .hero-title {
    /* Capped so "More room for discovery." (about 11.7em) fits the 40rem column on one line. */
    font-size: clamp(2.25rem, 2.4vw + 1.3rem, 3.35rem);
    line-height: 1.06;
    letter-spacing: -.015em;
}

.hero-title span {
    display: block;
}

/* Break between phrases, never inside one. */
.hero-kicker span {
    white-space: nowrap;
}

.story-establish .button-row .button-secondary-dark {
    min-height: 48px;
}

@media (max-width: 640px) {
    .hero-kicker {
        font-size: .6875rem;
        letter-spacing: .08em;
    }

    /* Each sentence stays on one line: "More room for discovery." is about 11.7em wide. */
    .story-establish .hero-title {
        font-size: min(2.375rem, calc((100vw - 2 * var(--gutter)) / 12));
    }
}

/* ---- Audience cards ---- */
.audiences:focus {
    outline: none;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.audience-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 1px solid var(--line);
    border-top: 4px solid var(--steel);
    border-radius: var(--radius-card);
    background: var(--white);
}

.audience-together {
    border-top-color: var(--coral);
}

.audience-research {
    border-top-color: var(--teal);
}

.audience-icon {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.audience-label {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.audience-card h3 {
    font-size: clamp(1.25rem, .6vw + 1.05rem, 1.5rem);
    line-height: 1.2;
    text-wrap: balance;
}

.audience-card p:not(.audience-label) {
    color: var(--muted);
}

.audience-card .button {
    margin-top: auto;
}

@media (max-width: 900px) {
    .audience-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Practice Desk: views, preview mock, flow, limits ---- */
.desk-views-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.desk-view-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 1.75rem;
    padding: 0;
    list-style: none;
}

.desk-view-list li {
    padding: .1rem 0 .1rem 1rem;
    border-left: 3px solid var(--coral);
}

.desk-view-list h3 {
    margin-bottom: .2rem;
    font-size: 1.125rem;
}

.desk-view-list p {
    color: var(--muted);
}

.desk-home-points {
    margin: 1.25rem 0 1.5rem;
}

@media (max-width: 960px) {
    .desk-views-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.desk-preview {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(20, 33, 61, .14);
    overflow: hidden;
    font-size: .875rem;
}

.dp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    padding: .7rem .9rem;
    background: var(--navy);
    color: var(--on-dark);
}

.dp-tag {
    padding: .1rem .45rem;
    border: 1px solid var(--coral);
    border-radius: var(--radius-tag);
    color: var(--coral-soft);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dp-practice {
    color: var(--white);
    font-weight: 600;
}

.dp-tabs {
    display: flex;
    gap: .25rem;
    padding: .4rem;
    border-bottom: 1px solid var(--line-soft);
    background: var(--surface-2);
}

.dp-tabs span {
    flex: 1;
    padding: .4rem .5rem;
    border-radius: var(--radius-button);
    font-weight: 600;
    text-align: center;
}

.dp-tabs b {
    margin-left: .3rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--line-soft);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
}

.dp-tabs .is-active {
    background: var(--navy);
    color: var(--white);
}

.dp-tabs .is-active b {
    background: var(--coral);
    color: var(--navy);
}

.dp-body {
    display: grid;
    gap: .9rem;
    padding: .9rem;
}

@media (min-width: 1200px) {
    .dp-body {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        align-items: start;
    }
}

.dp-group {
    display: flex;
    justify-content: space-between;
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--navy);
    font-family: var(--font-display);
    font-weight: 700;
}

.dp-group span:last-child {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
}

.dp-task {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .1rem .55rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.dp-box {
    grid-row: span 3;
    width: 1rem;
    height: 1rem;
    margin-top: .15rem;
    border: 2px solid var(--line-strong);
    border-radius: 3px;
}

.dp-task.is-done .dp-box {
    border-color: var(--teal);
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.dp-title {
    font-weight: 600;
    line-height: 1.3;
}

.dp-task.is-done .dp-title {
    color: var(--muted);
    text-decoration: line-through;
}

.dp-meta {
    color: var(--muted);
    font-size: .8125rem;
}

.dp-meta em {
    padding: 0 .3rem;
    border-radius: var(--radius-tag);
    background: var(--tint-coral);
    color: var(--navy);
    font-style: normal;
    font-weight: 600;
}

.dp-chip {
    justify-self: start;
    padding: .05rem .4rem;
    border: 1px solid var(--steel-soft);
    border-radius: var(--radius-tag);
    background: var(--tint-steel);
    font-size: .75rem;
}

.dp-issue {
    display: grid;
    gap: .3rem;
    padding: .75rem .8rem;
    border: 1px solid var(--line);
    border-left: 5px solid var(--coral);
    border-radius: var(--radius-card);
}

.dp-issue-top {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.dp-high, .dp-status {
    padding: .05rem .4rem;
    border-radius: var(--radius-tag);
    font-size: .75rem;
    font-weight: 600;
}

.dp-high {
    background: var(--crit-bg);
}

.dp-status {
    border: 1px solid var(--line);
}

.dp-issue-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
}

.dp-linked {
    padding: .35rem .5rem;
    border-radius: var(--radius-button);
    background: var(--tint-steel);
    font-size: .8125rem;
    font-weight: 600;
}

.desk-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.desk-flow li {
    display: grid;
    align-content: start;
    gap: .5rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.desk-flow-step {
    color: var(--coral);
    font-family: var(--font-mono);
    font-size: .875rem;
    font-weight: 500;
}

.desk-flow h3 {
    font-size: 1.125rem;
}

.desk-flow p {
    color: var(--muted);
    font-size: .9375rem;
}

@media (max-width: 1000px) {
    .desk-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .desk-flow {
        grid-template-columns: minmax(0, 1fr);
    }
}

.desk-scope-note {
    margin-top: 1.25rem;
    padding: .9rem 1rem;
    border-left: 4px solid var(--coral);
    background: var(--tint-coral);
    font-size: .9375rem;
}

.desk-limits {
    background: var(--white);
}

.desk-limits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.desk-limits-col {
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.desk-limits-col:last-child {
    border-style: dashed;
    background: var(--surface-2);
}

.desk-limits-col h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    font-size: 1.1875rem;
}

.desk-limits-mark {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    border-radius: 50%;
    font-size: .875rem;
}

.desk-limits-mark.is-yes {
    background: var(--teal);
    color: var(--white);
}

.desk-limits-mark.is-no {
    border: 2px solid var(--line-strong);
    color: var(--line-strong);
}

.plain-list {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0 0 0 1.2rem;
}

.plain-list li::marker {
    color: var(--line-strong);
}

.desk-limits-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: .9375rem;
}

@media (max-width: 860px) {
    .desk-limits-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Pilot invitation ---- */
.pilot-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.5rem clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.pilot-cta-copy .lede {
    margin-top: .75rem;
}

.pilot-cta-action {
    display: grid;
    gap: .9rem;
    justify-items: start;
}

.pilot-cta-note {
    color: var(--muted);
    font-size: .875rem;
}

@media (max-width: 860px) {
    .pilot-cta-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Secondary services for practices ---- */
.service-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-mini {
    display: grid;
    align-content: start;
    gap: .5rem;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.service-mini:hover {
    border-color: var(--navy);
    box-shadow: 0 10px 30px rgba(20, 33, 61, .1);
}

.service-mini-price {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.service-mini h3 {
    font-size: 1.25rem;
}

.service-mini p {
    color: var(--muted);
}

.service-mini-link {
    margin-top: .25rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

@media (max-width: 760px) {
    .service-pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Footer with four columns ---- */
.footer-cols-4 {
    gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
}

.footer-cols-4 .footer-col {
    max-width: 15rem;
}

@media (max-width: 600px) {
    .footer-cols-4 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
}

@media (max-width: 380px) {
    .footer-cols-4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Services: the free tools card spans the row under the three paid services. */
.plan-free {
    background: var(--surface-2);
}

.plan-free .plan-features a {
    font-weight: 600;
}

/* The form's intro now mentions the Practice Desk pilot: one more line on the narrowest phones (measured 1823px at 278px wide). */
@media (max-width: 360px) {
    .gform-frame iframe {
        height: 1870px;
    }
}
