/* =====================================================================
   ARI Public – Design system
   Visual language of caralegal.eu/lp/ai-flow: one uniform warm-cream
   surface, generous and consistent vertical rhythm, hairline-bordered
   cards on the same cream (no value contrast, no section tinting),
   restrained purple + lime accents, one dark block before the footer.
   A floating navigation pill that narrows on scroll.
   No external fonts, no external JavaScript libraries.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* one surface for the whole page + the cards on it */
    --paper:      #feffF5;
    --card:       #feffF5;
    --line:       #e9e9df;      /* hairline card border */
    --line-soft:  #f0f0e8;

    --ink:        #3a3a31;      /* headings – warm grey */
    --ink-soft:   #5f6057;      /* body copy */
    --ink-mute:   #8c8c80;      /* captions, meta */

    /* accent line – muted olive (kickers, links, one number). No purple. */
    --flow:       #7c7d5b;
    --flow-strong:#61623f;
    --flow-100:   #f1f1e2;      /* the only gentle tint used for callouts */

    /* accent – lime (buttons / highlights only) */
    --accent:     #f6ff8a;
    --accent-300: #fbffcc;

    /* the single dark surface (closing CTA + footer) */
    --dark:       #23241f;
    --darker:     #191a15;
    --on-dark:    #fbfbf3;
    --on-dark-soft:#b4b4ab;

    --r-xs: 10px;
    --r-sm: 12px;
    --r:    16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;

    --container: 1160px;
    --hero-max: 1920px;
    --measure: 62ch;
    --nav-shrink: 760px;
    --section-pad-x: clamp(1.25rem, 4vw, 2rem);

    /* consistent rhythm – calm but compact */
    --section-y: clamp(2.25rem, 4.5vw, 3.75rem);
    --stack: 1.5rem;           /* gap between cards / list items */
    --stack-lg: 2rem;

    --shadow: 0 1px 2px rgba(25,26,21,.04), 0 18px 44px rgba(25,26,21,.06);

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.05, 0, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 132px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--flow); text-decoration: none; }
a:hover { color: var(--flow-strong); }
strong, b { font-weight: 600; color: var(--ink); }
h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 .6em;
    text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -.01em; }
p  { margin: 0 0 1rem; max-width: var(--measure); }
:focus-visible { outline: 2px solid var(--flow); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(246, 255, 138, .85); color: var(--ink); }

/* ---------- Layout shell ---------- */
.page-shell { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
main { flex: 1 0 auto; width: 100%; }

/* every section: same container, same generous padding on both sides */
main > section {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--section-y) var(--section-pad-x);
}

/* ---------- Header / floating navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    padding: clamp(.4rem, 1vw, .7rem) clamp(.9rem, 3vw, 1.25rem) clamp(1.15rem, 2vw, 1.5rem);
    transition: padding .4s var(--ease);
}
.site-nav {
    display: grid;
    grid-template-areas: "menu logo cta";
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .5rem;
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding: .42rem .6rem;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: max-width .5s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-shrunk { padding-top: .5rem; padding-bottom: .5rem; }
.site-header.is-shrunk .site-nav {
    max-width: var(--nav-shrink);
    padding: .5rem .6rem;
    box-shadow: var(--shadow);
}

.nav-logo { 
    grid-area: logo;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    white-space: nowrap;
}
.nav-logo:hover { color: var(--ink); }
.nav-logo .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 9px;
    background: var(--dark);
}
.ari-brand-symbol { display: block; }
.nav-logo .brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.nav-logo .brand-lockup strong { font-size: .94rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.nav-logo .brand-lockup small { font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); }

.nav-menu { grid-area: menu; justify-self: start; position: relative; }
.nav-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .65rem;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--dark);
    border: 1px solid var(--dark);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-menu-trigger:hover { background: var(--darker); color: var(--accent); }
.nav-menu-trigger .caret { width: 9px; height: 9px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.site-header.menu-open .nav-menu-trigger { background: var(--darker); color: var(--accent); }
.site-header.menu-open .nav-menu-trigger .caret { transform: rotate(-135deg); }

.nav-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    min-width: 244px;
    flex-direction: column;
    padding: .5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}
.site-header.menu-open .nav-menu-panel { display: flex; }
.nav-menu-panel a {
    padding: .6rem .7rem;
    border-radius: var(--r-xs);
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: background .18s, color .18s;
}
.nav-menu-panel a:hover { background: var(--flow-100); color: var(--flow); }

.nav-cta {
    grid-area: cta;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    padding: .44rem .72rem;
    font-size: .82rem;
    font-weight: 550;
    color: var(--ink);
    background: var(--flow-100);
    border-radius: var(--r-xs);
    transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-cta { background: var(--dark); color: var(--accent); }
.nav-cta:hover { background: var(--darker); color: var(--accent); }

@media (max-width: 720px) {
    .site-nav { grid-template-areas: "logo cta menu"; grid-template-columns: auto 1fr auto; }
    .nav-menu { justify-self: end; }
    .nav-menu-panel { left: auto; right: 0; }
    .nav-menu-trigger .label { display: none; }
    .nav-menu-trigger { padding: .55rem .7rem; min-width: 44px; min-height: 44px; justify-content: center; }
    .nav-logo .brand-lockup small { display: none; }
    .nav-cta { padding: .55rem .8rem; font-size: .82rem; }
}

/* ---------- Shared type helpers ---------- */
.eyebrow {
    display: inline-block;
    margin: 0 0 1.1rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--flow);
}
.section-intro { max-width: 42rem; margin-bottom: var(--stack-lg); }
.section-intro.wide { max-width: 46rem; }
.section-intro.compact { max-width: 36rem; }
.section-intro p { font-size: 1.1rem; color: var(--ink-soft); }

.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); }

/* buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.3rem;
    font-size: .95rem;
    font-weight: 550;
    line-height: 1;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.button.primary { padding: .95rem 1.55rem; background: var(--dark); color: var(--accent); border-radius: var(--r-pill); }
.button.primary:hover { background: var(--darker); color: var(--accent); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--accent); }
.button.secondary.dark { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.button.secondary.dark:hover { background: var(--darker); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 550; color: var(--flow); }
.text-link:hover { color: var(--flow-strong); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.9rem 0 1.6rem; }
.hero-actions.centered { justify-content: center; }

/* quiet pills */
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-proof span,
.sme-pill {
    display: inline-flex;
    align-items: center;
    padding: .38rem .8rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink-mute);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}
.sme-pill { color: var(--flow); border-color: color-mix(in srgb, var(--flow) 30%, transparent); }

/* ---------- Heroes ---------- */
.home-hero, .detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.25rem);
    align-items: center;
    padding-top: clamp(1rem, 3vw, 2rem);
}
.hero-copy, .detail-hero-copy, .hero-media, .story-media { min-width: 0; }
.hero-copy p, .detail-hero-copy p { max-width: 40ch; }
.hero-media img, .story-media img, .product-shot img {
    width: 100%;
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
}
figure { margin: 0; }
figcaption { margin-top: .85rem; font-size: .85rem; color: var(--ink-mute); max-width: var(--measure); }

@media (max-width: 900px) {
    .home-hero, .detail-hero { grid-template-columns: 1fr; }
    .hero-copy p, .detail-hero-copy p { max-width: none; }
}

/* image-first hero: photo bleeds to the true viewport edge on the left,
   like caralegal's hero — the rest of the page stays inside --container.
   On screens wider than --hero-max the whole hero is capped and centered
   like every other section, instead of the copy column drifting away from
   an ever-wider image with a growing dead zone of empty cream on its right. */
main > section.image-first {
    max-width: var(--hero-max);
    margin-inline: auto;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
}
.image-first .hero-media { align-self: stretch; }
.image-first .hero-media img {
    width: 100%;
    height: 100%;
    min-height: 26rem;
    object-fit: cover;
    border: none;
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
}
.image-first .detail-hero-copy, .image-first .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(2rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem);
    max-width: 100%;
}
@media (min-width: 901px) {
    main > section.fatm-hero,
    main > section.trusted-hero { align-items: start; }

    .fatm-hero.image-first .hero-media {
        height: clamp(32rem, 44vw, 38rem);
        align-self: start;
    }
    .trusted-hero.image-first .hero-media {
        height: clamp(29rem, 40vw, 34rem);
        align-self: start;
    }
    .fatm-hero.image-first .hero-media img,
    .trusted-hero.image-first .hero-media img {
        height: 100%;
        min-height: 0;
    }
    .trusted-hero.image-first .hero-media img { object-position: center top; }
}
@media (max-width: 900px) {
    main > section.image-first { grid-template-columns: 1fr; padding: 0; }
    .image-first .hero-media img { min-height: 20rem; border-radius: 0; }
    .image-first .detail-hero-copy, .image-first .hero-copy { max-width: none; padding: clamp(1.75rem, 6vw, 2.5rem) clamp(1.25rem, 4vw, 2rem); }
}

/* the dark policy card on the knowledge hero -> quiet light card */
.source-policy-card {
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.source-policy-card span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--flow); }
.source-policy-card strong { display: block; margin: .55rem 0 .75rem; font-size: 1.25rem; color: var(--ink); }
.source-policy-card ul { margin: .75rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.source-policy-card li { margin: .3rem 0; }
.source-policy-card.standalone { max-width: 42rem; }

/* ---------- Uniform card grids ---------- */
.evidence-grid, .triad-grid, .model-family-grid, .change-system,
.capability-grid, .shield-detail-grid, .basis-grid, .interpretation-grid,
.ai-act-facts, .trusted-stack, .gate-signals {
    display: grid;
    gap: var(--stack);
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.triad-grid, .change-system, .capability-grid { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }

/* one card style for everything */
.evidence-grid article, .triad-card, .model-family-grid article, .change-system article,
.capability-card, .shield-detail-grid article, .basis-grid article, .interpretation-grid article,
.ai-act-facts article, .trusted-stack article, .mixer-track, .story-rail a,
.framework-track li, .ari-flow li, .oversight-flow li, .logic-step {
    padding: clamp(1.5rem, 2.4vw, 1.9rem);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.story-rail a, .framework-track li, .ari-flow li, .oversight-flow li, .logic-step { border-radius: var(--r); }

.triad-card span, .model-family-grid article span, .change-system article span,
.capability-card span, .shield-detail-grid article span,
.framework-track span, .ari-flow .flow-index, .oversight-flow span, .logic-step span,
.basis-grid article span {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--flow);
}
.triad-card h3, .capability-card h3, .shield-detail-grid article h3, .basis-grid article h3 { margin: .55rem 0 .5rem; }
.triad-card p, .change-system article p, .capability-card p, .model-family-grid article p,
.basis-grid article p, .interpretation-grid article p, .ai-act-facts article p { margin: 0; font-size: .96rem; }

.triad-card ul, .shield-detail-grid article ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .9rem;
}
.triad-card li, .shield-detail-grid article li {
    padding: .3rem 0 .3rem 1.1rem;
    position: relative;
    color: var(--ink-soft);
}
.triad-card li::before, .shield-detail-grid article li::before {
    content: "";
    position: absolute; left: 0; top: .85em;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--ink-mute);
}
.model-family-grid article strong, .change-system article strong,
.mixer-track strong, .ari-flow strong, .oversight-flow strong {
    display: block; margin: .45rem 0 .4rem; color: var(--ink);
}
.capability-card.large-card { grid-column: 1 / -1; }

/* evidence numbers – the one place a big accent is allowed */
.evidence-card strong { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; color: var(--ink); line-height: 1; }
.evidence-card strong span { font-size: .45em; margin-left: .08em; color: var(--flow); }
.evidence-card p { margin-top: .8rem; font-size: .95rem; }
.evidence-card a { display: inline-block; margin-top: .6rem; font-weight: 550; font-size: .88rem; }

/* ---------- Story scenes – no cards, no tints, just rhythm ---------- */
.story-scene, .story-chapter {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.25rem);
    align-items: stretch;
}
.story-scene.reverse .scene-copy, .story-chapter.reverse .story-copy { order: 2; }
.scene-number {
    position: absolute;
    top: -.4em;
    left: var(--section-pad-x);
    right: auto;
    line-height: 1;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 500;
    letter-spacing: -.04em;
    color: var(--ink);
    opacity: .06;
    pointer-events: none;
}
.story-scene.reverse .scene-number { left: auto; right: var(--section-pad-x); }

/* the practice-example photo should carry the same visual weight as the copy
   next to it instead of floating at its own short natural aspect ratio.
   Flex column (not height:100% on the img) so the figcaption keeps its
   natural height and the image fills only what's left, never overflowing
   the stretched grid row. */
.story-scene .story-media, .story-chapter .story-media {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.story-scene .story-media img, .story-chapter .story-media img {
    flex: 1 1 auto;
    min-height: 22rem;
    object-fit: cover;
}
.story-scene .story-media figcaption, .story-chapter .story-media figcaption { flex: none; }
.story-label {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--flow);
}
.story-dialogue {
    margin: 1.4rem 0;
    padding: .2rem 0 .2rem 1.25rem;
    border-left: 2px solid var(--line);
    color: var(--ink-soft);
    font-size: 1rem;
}
.story-dialogue strong { color: var(--ink); }
.scene-question, .story-quote {
    margin-top: 1.4rem;
    padding: 1.15rem 1.3rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.scene-question span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--flow); }
.scene-question strong { display: block; margin-top: .4rem; color: var(--ink); font-size: 1.08rem; }
.story-quote { font-size: .98rem; color: var(--ink-soft); }

.story-facts { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.story-facts li { display: flex; gap: .85rem; padding: .7rem 0; border-top: 1px solid var(--line-soft); }
.story-facts li:first-child { border-top: 0; }
.story-facts span {
    flex: none;
    width: 1.6rem; height: 1.6rem;
    display: grid; place-items: center;
    font-size: .74rem; font-weight: 700;
    color: var(--flow);
    border: 1px solid color-mix(in srgb, var(--flow) 30%, transparent);
    border-radius: 50%;
}
.outcome-row, .story-progress { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.outcome-row span, .story-progress span {
    padding: .4rem .85rem;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .05em;
    color: var(--ink-mute);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}
.story-progress span.active { background: var(--ink); color: var(--accent); border-color: transparent; }
.governance-metaphor { display: flex; gap: .9rem; margin-top: 1.4rem; padding: 1.15rem 1.3rem; background: var(--flow-100); border-radius: var(--r); }
.governance-metaphor span { flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; background: var(--ink); color: var(--accent); border-radius: 50%; font-size: .85rem; }
.governance-metaphor p { margin: .25rem 0 0; }

@media (max-width: 860px) {
    .story-scene, .story-chapter { grid-template-columns: 1fr; }
    .story-scene.reverse .scene-copy, .story-chapter.reverse .story-copy { order: 0; }
    .scene-number { position: static; opacity: .1; display: block; margin-bottom: .5rem; }
    .story-scene .story-media img, .story-chapter .story-media img { min-height: 16rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Story rail ---------- */
.story-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(11rem, 1fr);
    gap: var(--stack);
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
}
.story-rail a { display: flex; flex-direction: column; gap: .25rem; color: var(--ink-soft); transition: border-color .25s; }
.story-rail a:hover { border-color: var(--flow); }
.story-rail span { font-size: .76rem; font-weight: 700; color: var(--flow); }
.story-rail strong { color: var(--ink); }
.story-rail small { font-size: .84rem; color: var(--ink-mute); }

/* ---------- ARI use-case dossier ---------- */
.use-case-dossier { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
.dossier-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.dossier-card { background: var(--dark); border-color: var(--dark); box-shadow: 0 22px 55px rgba(25,26,21,.18); }
.dossier-card h3, .dossier-card b { color: var(--on-dark); }
.dossier-card p, .dossier-card footer { color: var(--on-dark-soft); }
.dossier-card header, .dossier-card footer, .dossier-grid > div { border-color: rgba(251,251,243,.16); }
.dossier-label, .dossier-card small { color: var(--accent); }
.dossier-status { background: rgba(246,255,138,.16); color: var(--accent); }
.dossier-card footer a { color: var(--accent); }
.dossier-card header, .dossier-card footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; }
.dossier-card header { border-bottom: 1px solid var(--line); }
.dossier-card h3 { margin: .15rem 0 0; }
.dossier-label, .dossier-card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--flow); }
.dossier-status { padding: .35rem .65rem; border-radius: var(--r-pill); background: var(--flow-100); color: var(--flow-strong); font-size: .82rem; font-weight: 650; white-space: nowrap; }
.dossier-grid { display: grid; grid-template-columns: 1fr 1fr; }
.dossier-grid > div { min-height: 132px; padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dossier-grid > div:nth-child(2n) { border-right: 0; }
.dossier-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.dossier-grid p { margin: .4rem 0 0; font-size: .93rem; line-height: 1.5; }
.dossier-card footer { font-size: .84rem; color: var(--ink-mute); border-top: 1px solid var(--line); flex-wrap: wrap; }
.dossier-card footer a { margin-left: auto; font-weight: 650; }
@media (max-width: 760px) { .use-case-dossier { grid-template-columns: 1fr; } .dossier-grid { grid-template-columns: 1fr; } .dossier-grid > div { min-height: 0; border-right: 0; } .dossier-grid > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); } .dossier-grid > div:last-child { border-bottom: 0; } .dossier-card footer a { margin-left: 0; } }

/* ---------- Numbered tracks ---------- */
.framework-track, .ari-flow, .oversight-flow, .logic-flow {
    display: grid;
    gap: var(--stack);
    padding: 0;
    margin: 0;
    list-style: none;
}
.ari-flow, .oversight-flow { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.framework-track { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.framework-track li { flex-direction: column; gap: .35rem; }
.framework-track li, .ari-flow li, .oversight-flow li { display: flex; }
.framework-track li p { margin: .35rem 0 0; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); }
.ari-flow li, .oversight-flow li { flex-direction: column; gap: .3rem; }
.ari-flow small { display: block; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); }
.ari-flow p, .oversight-flow p { margin: 0; font-size: .92rem; }
.framework-note { margin-top: 1.25rem; font-size: .94rem; }

.logic-flow { grid-template-columns: 1fr; }
.logic-step { display: flex; gap: 1rem; align-items: center; }
.logic-step div { flex: 1; }
.logic-step p { margin: .3rem 0 0; font-size: .94rem; }
.logic-step b { margin-left: auto; font-weight: 700; color: var(--flow); white-space: nowrap; }

/* callouts – the single permitted tint */
.callout {
    margin-top: var(--stack);
    padding: 1.25rem 1.4rem;
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    gap: .3rem;
    background: var(--flow-100);
}
.callout strong { color: var(--flow-strong); }

/* ---------- Change stage ---------- */
.change-stage-head { max-width: 46rem; margin-bottom: var(--stack-lg); }
.change-principle {
    margin-top: var(--stack);
    padding: 1.2rem 1.4rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--flow);
    border-radius: var(--r);
    font-size: .96rem;
}
.change-principle strong { color: var(--ink); }

/* ---------- Product / feature blocks (all light now) ---------- */
.product-stage, .trusted-stage, .risk-scaling-stage, .culture-gate-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: start;
}
.workflow-stage, .harness-stage { display: block; }

.product-copy .feature-list { margin: 1.4rem 0; padding: 0; list-style: none; }
.product-copy .feature-list li { padding: .8rem 0; border-top: 1px solid var(--line-soft); }
.product-copy .feature-list li:first-child { border-top: 0; }
.product-copy .feature-list strong { display: block; color: var(--ink); }
.product-copy .feature-list span { font-size: .92rem; }

.harness-diagram { display: flex; flex-wrap: wrap; gap: var(--stack); align-items: center; margin-top: var(--stack-lg); }
.harness-node, .harness-branches article, .harness-human {
    padding: 1rem 1.2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.harness-node small, .harness-branches small, .harness-human small { display: block; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--flow); }
.harness-node strong, .harness-human strong { color: var(--ink); }
.harness-node.core { border-color: var(--flow); }
.harness-arrow, .harness-branches span { color: var(--ink-mute); }
.harness-branches { display: grid; gap: .75rem; }
.harness-branches > div { display: flex; align-items: center; gap: .6rem; }
.harness-human { display: flex; align-items: center; gap: .6rem; }

.trusted-stack article span { color: var(--flow); font-weight: 700; font-size: .78rem; }
.trusted-stack article strong { display: block; margin: .35rem 0; color: var(--ink); }
.trusted-stack article p { margin: 0; font-size: .92rem; }

@media (max-width: 860px) {
    .product-stage, .trusted-stage, .risk-scaling-stage, .culture-gate-stage { grid-template-columns: 1fr; }
}

/* gallery */
.visual-story-head { max-width: 44rem; margin-bottom: var(--stack-lg); }
.shot-grid { display: grid; gap: var(--stack); grid-template-columns: 1fr 1fr; }
.shot-grid .product-shot.wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .shot-grid { grid-template-columns: 1fr; } }

/* risk mixer */
.risk-mixer { display: grid; gap: var(--stack); }
.mixer-scale { display: inline-flex; gap: .4rem; margin: .55rem 0; }
.mixer-scale i { width: 2rem; height: 7px; border-radius: var(--r-pill); background: var(--line); display: inline-block; }
.mixer-scale i.active { background: var(--flow); }
.mixer-track small { display: block; font-size: .78rem; color: var(--ink-mute); }

/* culture gate */
.gate-board { padding: clamp(1.5rem, 2.4vw, 1.9rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.gate-status { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.1rem; }
.gate-status span { font-size: .72rem; letter-spacing: .12em; color: var(--flow); }
.gate-status strong { color: var(--ink); }
.gate-signals { gap: 1rem; }
.gate-signals article { padding: 1rem 1.1rem; background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); }
.gate-signals span { color: var(--flow); }
.gate-signals strong { display: block; margin: .25rem 0; color: var(--ink); font-size: .95rem; }
.gate-signals small { color: var(--ink-mute); font-size: .82rem; }

/* separation board */
.separation-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--stack); align-items: center; margin-bottom: var(--stack); }
.separation-board article { padding: clamp(1.4rem, 2.2vw, 1.75rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.separation-board small { font-size: .7rem; letter-spacing: .09em; color: var(--ink-mute); }
.separation-board strong { display: block; margin: .35rem 0; font-size: 1.15rem; color: var(--ink); }
.separation-board p { margin: .25rem 0; }
.separation-mark { font-size: 1.6rem; font-weight: 500; color: var(--ink-mute); text-align: center; }
.ai-act-facts article strong { color: var(--ink); }
@media (max-width: 720px) { .separation-board { grid-template-columns: 1fr; } .separation-mark { transform: rotate(90deg); } }

/* ---------- Knowledge / sources ---------- */
.source-card {
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: var(--stack);
}
.source-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .7rem; }
.source-meta span { font-weight: 700; color: var(--flow); font-size: .85rem; }
.source-meta time { font-size: .82rem; color: var(--ink-mute); }
.source-takeaway {
    margin: 1.1rem 0;
    padding: 1.1rem 1.25rem;
    background: var(--flow-100);
    border-radius: var(--r);
    font-size: .93rem;
}
.source-takeaway strong { color: var(--flow-strong); }
.interpretation-grid article strong { display: block; margin-bottom: .35rem; color: var(--ink); }

/* ---------- Legal pages (Impressum, Datenschutz) ---------- */
.legal-hero { padding-bottom: 0 !important; }
.legal-hero h1 { max-width: 30ch; }
.legal-content { max-width: calc(var(--measure) + 4rem); }
.legal-content h2 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content address { font-style: normal; line-height: 1.65; }
.legal-content ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.legal-content li { margin: .3rem 0; color: var(--ink-soft); }
.legal-note { margin-top: 2.5rem; font-size: .85rem; color: var(--ink-mute); }

/* ---------- Contact band – 30-minute demo request, on every page ---------- */
.contact-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.25rem);
    align-items: start;
}
.contact-intro p { max-width: 36ch; }
.contact-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1.5rem, 2.4vw, 1.9rem);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.contact-field { display: grid; gap: .4rem; }
.contact-field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.contact-field input, .contact-field textarea {
    width: 100%;
    padding: .7rem .85rem;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color .2s var(--ease);
}
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: var(--flow); }
.contact-field textarea { resize: vertical; min-height: 6rem; }
.contact-form .button { justify-self: start; }
.contact-note { margin: 0; font-size: .82rem; color: var(--ink-mute); }
@media (max-width: 900px) {
    .contact-band { grid-template-columns: 1fr; }
}

/* ---------- Closing – the ONE dark block, on every page before the footer ---------- */
.closing-stage {
    text-align: center;
    padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem) !important;
    background: var(--dark);
    border-radius: var(--r-xl);
    color: var(--on-dark-soft);
}
.closing-stage .eyebrow { color: var(--accent); }
.closing-stage h2 { color: var(--on-dark); max-width: 22ch; margin-inline: auto; }
.closing-stage p { color: var(--on-dark-soft); max-width: 54ch; margin-inline: auto; }
.closing-stage .button.secondary,
.closing-stage .button.secondary.dark { background: transparent; color: var(--on-dark); border-color: color-mix(in srgb, #fff 40%, transparent); }
.closing-stage .button.secondary:hover { background: #fff; color: var(--dark); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: var(--section-y);
    background: var(--dark);
    color: var(--on-dark-soft);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem) 2rem;
}
.site-footer-inner {
    max-width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
}
.footer-brand .brand { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; }
.footer-brand .brand-mark {
    width: 46px; height: 40px; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--dark); color: var(--accent);
    font-size: .72rem; font-weight: 750; letter-spacing: -.05em;
}
.footer-brand .brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.footer-brand .brand-lockup strong { color: var(--on-dark); }
.footer-brand .brand-lockup small { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--on-dark-soft); }
.footer-brand p { max-width: 40ch; color: var(--on-dark-soft); }
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { color: var(--accent-300); font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    max-width: var(--container);
    margin: 2.75rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}
.footer-meta { margin: 0; font-size: .82rem; color: var(--ink-mute); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: .82rem; color: var(--on-dark-soft); }
.footer-legal a:hover { color: var(--accent); }
@media (max-width: 720px) { .site-footer-inner { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto; }
}


/* ---------- Product walkthrough video (real screen recording) ---------- */
.demo-video {
    position: relative;
    margin: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--darker);
}
.demo-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--darker);
    cursor: pointer;
}
.demo-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    padding-left: .2rem;
    font-size: 1.3rem;
    color: var(--ink);
    background: var(--accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
    transition: transform .2s var(--ease), background .2s var(--ease);
}
.demo-video-play:hover { transform: scale(1.06); background: #fff; }
.demo-video.is-playing .demo-video-play { display: none; }

/* ---------- People gallery (real photography, 3-up row) ---------- */
.people-grid { display: grid; gap: var(--stack); grid-template-columns: repeat(3, 1fr); }
.people-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}
.people-photo img { width: 100%; height: 100%; object-fit: cover; }
.people-tag {
    position: absolute;
    left: .9rem;
    bottom: .9rem;
    padding: .4rem .8rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--accent);
    border-radius: var(--r-pill);
}
.people-card figcaption { margin-top: .9rem; }
.people-card figcaption span {
    display: block;
    margin-bottom: .3rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--flow);
}
.people-card figcaption strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 550;
    line-height: 1.3;
    color: var(--ink);
}
@media (max-width: 780px) {
    .people-grid { grid-template-columns: 1fr; }
}

/* ---------- Scrollytelling: sticky visual beside scrolling chapters ---------- */
.scrolly-stage {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: start;
}
.scrolly-track { display: flex; flex-direction: column; gap: clamp(3.5rem, 9vw, 7rem); min-width: 0; }
.scrolly-chapter { min-width: 0; }

.scrolly-visual {
    position: sticky;
    top: 6.5rem;
    aspect-ratio: 4 / 5;
    max-height: 34rem;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--darker);
}
.scrolly-panel {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity .6s var(--ease);
}
.scrolly-panel.is-active { opacity: 1; }
.scrolly-panel img { width: 100%; height: 100%; object-fit: cover; }
.scrolly-panel figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.25rem 1.4rem;
    font-size: .92rem;
    color: var(--on-dark);
    background: linear-gradient(180deg, transparent, rgba(15,15,10,.72) 70%);
}

@media (max-width: 900px) {
    .scrolly-stage { grid-template-columns: 1fr; }
    .scrolly-visual {
        position: static;
        order: -1;
        aspect-ratio: 16 / 10;
        max-height: none;
        margin-bottom: .5rem;
    }
    .scrolly-panel { opacity: 1; }
}
