/* ToolBridge, landingspagina.
   Handgeschreven, zonder framework of JavaScript. Wit-eerst: veel lucht, haarfijne randen,
   één accentkleur en diepte alleen waar iets echt "zweeft" (de productimpressie). */

/* ───────────── Lettertype (self-hosted, SIL OFL; zie fonts/LICENSE.txt) ───────────── */
@font-face {
    font-family: "Inter";
    src: url("fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ───────────── Tokens ───────────── */
:root {
    --bg: #ffffff;
    --surface: #f8f9fb;
    --surface-2: #f2f4f7;
    --ink: #0b0d12;
    --ink-2: #2c313c;
    --muted: #5f6676;
    --subtle: #8a91a0;
    --line: #eceef2;
    --line-2: #e1e4ea;

    --accent: #5146e5;
    --accent-2: #8b3dff;
    --accent-ink: #3b30c4;
    --accent-soft: #f1f0ff;
    --ok: #0f9f6e;
    --ok-soft: #e9f8f2;
    --danger: #c8322b;
    --danger-soft: #fdf0ef;

    --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shadow-float: 0 1px 2px rgb(16 24 40 / 4%), 0 12px 32px -8px rgb(16 24 40 / 10%), 0 40px 80px -24px rgb(81 70 229 / 14%);
    --shadow-btn: 0 1px 2px rgb(16 24 40 / 10%), inset 0 1px 0 rgb(255 255 255 / 18%);

    --container: 1160px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-y: clamp(88px, 12vw, 160px);

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

    color-scheme: light;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px; /* sticky header */
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    font-feature-settings: "cv11", "ss01", "ss03"; /* Inter: rustigere a, rechte l, open cijfers */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, svg { display: block; }
code { font-family: var(--mono); font-size: 0.9em; }
::selection { background: color-mix(in srgb, var(--accent) 18%, transparent); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

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

.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    padding: 10px 16px; border-radius: var(--r-sm);
    background: var(--ink); color: #fff; text-decoration: none;
    transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ───────────── Knoppen & velden ───────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px;
    border: 1px solid transparent; border-radius: 999px;
    font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .2s, box-shadow .2s, transform .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

.btn-primary {
    background: var(--accent); color: #fff; box-shadow: var(--shadow-btn);
    background-image: linear-gradient(180deg, rgb(255 255 255 / 10%), transparent);
}
.btn-primary:hover { background-color: var(--accent-ink); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-btn); }
.btn-dark:hover { background: #262a33; color: #fff; }

.btn-arrow { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.input {
    width: 100%; height: 48px; padding: 0 18px;
    border: 1px solid var(--line-2); border-radius: 999px;
    background: #fff; color: var(--ink);
    font: inherit; font-size: 16px; /* ≥16px: geen auto-zoom op iOS */
    transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--subtle); }
.input:hover { border-color: #cfd3db; }
.input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.input.invalid { border-color: var(--danger); }
.input-sm { height: 44px; margin-top: 10px; font-size: 15px; }

/* ───────────── Header ───────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 255 255 / 78%);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgb(225 228 234 / 60%);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; }
.logo-text { font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }

.header-nav { display: flex; gap: 4px; margin-left: auto; }
.header-nav a {
    padding: 8px 14px; border-radius: 999px;
    color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none;
    transition: color .2s, background-color .2s;
}
.header-nav a:hover { color: var(--ink); background: var(--surface-2); }

@media (max-width: 820px) {
    .header-nav { display: none; }
    .site-header .btn { margin-left: auto; }
}

/* ───────────── Typografie ───────────── */
.display {
    font-size: clamp(42px, 7.4vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 680;
}
.grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.lead {
    max-width: 640px;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.55;
    color: var(--muted);
}
.lead-sm { max-width: 620px; font-size: 18px; color: var(--muted); }

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent-ink);
    font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

h2 {
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 660;
}
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 620; }

/* ───────────── Hero ───────────── */
.hero { position: relative; padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(56px, 8vw, 96px); isolation: isolate; }

.hero-glow {
    position: absolute; inset: -120px 0 auto; height: 820px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(40% 50% at 30% 30%, rgb(81 70 229 / 10%), transparent 70%),
        radial-gradient(35% 45% at 72% 22%, rgb(139 61 255 / 9%), transparent 70%),
        radial-gradient(30% 35% at 55% 60%, rgb(56 189 248 / 7%), transparent 70%);
    filter: blur(8px);
}
/* Fijn puntraster dat naar de randen vervaagt: diepte zonder kleur toe te voegen. */
.hero-glow::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgb(11 13 18 / 9%) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(60% 55% at 50% 35%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(60% 55% at 50% 35%, #000 20%, transparent 75%);
}

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero-inner .lead { margin-inline: auto; }

.badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--line-2); border-radius: 999px;
    background: rgb(255 255 255 / 70%);
    color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none;
    box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
    transition: border-color .2s;
}
.badge:hover { color: var(--ink); border-color: #cfd3db; }
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px var(--ok-soft);
}

.hero-form { width: 100%; max-width: 540px; margin-top: 8px; }
.fineprint { margin-top: 14px; color: var(--subtle); font-size: 14px; }

/* ───────────── Aanmeldformulier ───────────── */
.signup { display: flex; flex-direction: column; text-align: left; }

/* Eén "pil" met het veld en de knop erin; valt onder 520px uiteen in twee regels. */
.signup-row {
    display: flex; gap: 6px; padding: 6px;
    border: 1px solid var(--line-2); border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 8px 24px -12px rgb(16 24 40 / 12%);
    transition: border-color .2s, box-shadow .2s;
}
.signup-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), 0 8px 24px -12px rgb(16 24 40 / 12%);
}
.signup-row:has(.input.invalid) { border-color: var(--danger); }
.signup-row .input { height: 46px; border: 0; box-shadow: none; background: transparent; }
.signup-row .input:focus { box-shadow: none; }
.signup-row .btn { height: 46px; }

@media (max-width: 520px) {
    .signup-row { flex-direction: column; border-radius: var(--r); }
    .signup-row .btn { width: 100%; }
}

.consent {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 14px;
    color: var(--muted); font-size: 14px; line-height: 1.5;
    cursor: pointer;
}
.consent input {
    flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0;
    accent-color: var(--accent); cursor: pointer;
}

.field-error, .validation-message {
    margin: 8px 0 0 18px;
    color: var(--danger); font-size: 14px;
}
.form-error {
    margin-top: 14px; padding: 12px 16px;
    border-radius: var(--r-sm);
    background: var(--danger-soft); color: var(--danger);
    font-size: 14px;
}

/* Honeypot: buiten beeld voor mensen (niet display:none, sommige bots slaan dat over). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.signup-success {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    border: 1px solid color-mix(in srgb, var(--ok) 22%, transparent);
    border-radius: var(--r);
    background: var(--ok-soft);
    text-align: left;
}
.success-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--ok); color: #fff;
}
.success-icon svg { width: 22px; height: 22px; }
.success-title { font-weight: 620; color: var(--ink); }
.signup-success .muted { font-size: 15px; }

/* ───────────── Productimpressie ───────────── */
.showcase {
    max-width: 920px; margin: clamp(56px, 8vw, 88px) auto 0;
    border: 1px solid var(--line-2); border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.window-bar {
    display: flex; align-items: center; gap: 7px;
    height: 46px; padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.window-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #e3e5ea; }
.window-title { margin-inline: auto; padding-right: 50px; color: var(--subtle); font-size: 13px; font-weight: 500; }

.chat { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 4vw, 40px); }

.msg { max-width: 560px; font-size: 16px; line-height: 1.55; }
.msg-user {
    align-self: flex-end;
    padding: 14px 18px;
    border-radius: 20px 20px 6px 20px;
    background: var(--surface-2); color: var(--ink-2);
}
.msg-ai { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ai-avatar {
    flex-shrink: 0; width: 30px; height: 30px; margin-top: -2px; border-radius: 9px;
    background: var(--grad);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%);
}

.tool-call {
    align-self: flex-start; width: min(100%, 460px);
    margin-left: 42px;
    border: 1px solid var(--line-2); border-radius: var(--r);
    background: #fff;
    font-size: 14px;
}
.tool-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
    padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.tool-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-ink);
    font-family: var(--mono); font-size: 13px; font-weight: 500;
}
.tool-chip .icon { width: 15px; height: 15px; }
.tool-meta { color: var(--subtle); font-size: 13px; }
.tool-meta code { color: var(--muted); }

.tool-args {
    display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px;
    margin: 0; padding: 14px;
    font-family: var(--mono); font-size: 13px;
}
.tool-args dt { color: var(--subtle); }
.tool-args dd { margin: 0; color: var(--ink-2); }

.tool-status {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-top: 1px solid var(--line);
    color: var(--ok); font-size: 13px; font-weight: 550;
}
.tool-status .icon { width: 16px; height: 16px; }

@media (max-width: 560px) {
    .tool-call { margin-left: 0; }
    .window-title { padding-right: 0; }
}

.principles {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
    margin: 48px 0 0; padding: 0; list-style: none;
    color: var(--muted); font-size: 15px; font-weight: 500;
}
.principles li { display: inline-flex; align-items: center; gap: 8px; }
.principles .icon { color: var(--accent); }

/* ───────────── Secties ───────────── */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: clamp(48px, 6vw, 72px); text-align: center; }
.section-head .eyebrow { margin-bottom: -4px; }
.section-head-left { align-items: flex-start; text-align: left; }

/* Hoe het werkt */
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin: 0; padding: 0; list-style: none;
}
.step {
    position: relative;
    padding: 32px 28px 30px;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: #fff;
    transition: border-color .25s, transform .25s;
}
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step h3 { margin: 22px 0 10px; }
.step p { color: var(--muted); font-size: 16px; }
.step-num {
    position: absolute; top: 28px; right: 28px;
    color: var(--line-2); font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.step-icon, .tile-icon {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent);
}
.step-icon .icon, .tile-icon .icon { width: 22px; height: 22px; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Functies: bento-raster */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
    display: flex; flex-direction: column; gap: 12px;
    padding: 30px 28px;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
}
.tile:hover { border-color: var(--line-2); box-shadow: 0 12px 32px -16px rgb(16 24 40 / 12%); }
.tile h3 { margin-top: 10px; }
.tile p { color: var(--muted); font-size: 16px; }
.tile-wide { grid-column: span 2; grid-row: span 2; }

.code {
    margin: auto 0 0; padding: 20px 22px;
    border: 1px solid var(--line); border-radius: var(--r);
    background: var(--surface);
    font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: var(--ink-2);
    overflow-x: auto;
}
.code .k { color: var(--accent-ink); font-weight: 600; }
.code .p { color: #b4236c; }

@media (max-width: 980px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .tile-wide { grid-column: span 2; grid-row: auto; }
    .tile-wide .code { margin-top: 12px; }
}
@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; }
    .tile-wide { grid-column: auto; }
}

/* Integraties */
.integrations {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin: 0; padding: 0; list-style: none;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden;
}
.integrations li {
    display: flex; flex-direction: column; gap: 4px;
    padding: 30px 28px;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    transition: background-color .2s;
}
.integrations li:hover { background: var(--surface); }
.integrations li:nth-child(3n) { border-right: 0; }
.integrations li:nth-last-child(-n + 3) { border-bottom: 0; }
.integrations strong { font-size: 18px; font-weight: 620; letter-spacing: -0.015em; }
.integrations span { color: var(--subtle); font-size: 15px; }

@media (max-width: 760px) {
    .integrations { grid-template-columns: 1fr 1fr; }
    .integrations li:nth-child(3n) { border-right: 1px solid var(--line); }
    .integrations li:nth-child(2n) { border-right: 0; }
    .integrations li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
    .integrations li:nth-last-child(-n + 2) { border-bottom: 0; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 108px; margin-bottom: 0; }

.faq { 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: 24px;
    padding: 24px 0;
    font-size: 18px; font-weight: 580; letter-spacing: -0.01em;
    list-style: none; cursor: pointer;
    transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq-icon { width: 20px; height: 20px; color: var(--subtle); transition: transform .25s, color .2s; }
.faq details[open] .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); font-size: 16px; }

/* Open/dicht vloeiend animeren waar de browser het kan (Chromium 131+); elders gewoon direct. */
@supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content {
        height: 0; overflow: clip;
        transition: height .3s ease, content-visibility .3s allow-discrete;
    }
    .faq details[open]::details-content { height: auto; }
}

@media (max-width: 900px) {
    .faq-grid { grid-template-columns: 1fr; }
    .faq-grid .section-head { position: static; }
}

/* Slot-CTA */
.section-cta { padding-top: 0; }
.cta-panel {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    padding: clamp(56px, 8vw, 96px) var(--gutter);
    border: 1px solid var(--line); border-radius: var(--r-xl);
    background: var(--surface);
    text-align: center;
}
.cta-panel .eyebrow { margin-bottom: -4px; }
.cta-panel .lead-sm { margin-bottom: 14px; }
.cta-panel .signup, .cta-panel .signup-success { width: 100%; max-width: 540px; }
.cta-glow {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(45% 60% at 15% 0%, rgb(81 70 229 / 9%), transparent 70%),
        radial-gradient(40% 60% at 90% 100%, rgb(139 61 255 / 8%), transparent 70%);
}

/* ───────────── Footer ───────────── */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer-brand .muted { font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-content: flex-start; }
.footer-nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
    color: var(--subtle); font-size: 13px;
}

/* ───────────── Inhoudspagina's (privacy, 404) ───────────── */
.prose { max-width: calc(720px + var(--gutter) * 2); padding-block: clamp(64px, 9vw, 112px); }
.prose h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.08; font-weight: 680; margin-bottom: 18px; }
.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.link-arrow { display: inline-block; margin-top: 48px; font-weight: 550; text-decoration: none; }

.status-page {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    padding-block: clamp(96px, 16vw, 200px); text-align: center;
}
.status-page h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 680; }
.status-page .btn { margin-top: 12px; }

/* ───────────── Beweging ─────────────
   Scroll-reveal puur in CSS (scroll-driven animations). Browsers zonder ondersteuning, en
   bezoekers die minder beweging willen, zien alles gewoon direct. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .reveal {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }

    .hero-inner > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
    .hero-inner > :nth-child(2) { animation-delay: .06s; }
    .hero-inner > :nth-child(3) { animation-delay: .12s; }
    .hero-inner > :nth-child(4) { animation-delay: .18s; }
}

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

@keyframes reveal {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
