@import "normalize.css";
@import "fonts.css";

/* Landing page in the platform look: ink frame, light sheet, Inter, ink buttons, product trust chips. */
:root {
    --ink: #18181B;
    --sheet: #FBFBFC;
    --text: #18181B;
    --body: #686878;
    --body-2: #4C4B5A;
    --label: #6E6E80;
    --line: #E6E6EC;
    --chip: #F0F0F4;
    --chip-border: #E1E1E8;
    --on-ink: #FFFFFF;
    --on-ink-2: #B0B0B7;
    --on-ink-3: #9A9AAB;
    --on-ink-line: rgba(255, 255, 255, .24);
    --brand-x: #9D5CFE;
    --peri: 112, 122, 255;
    --slate: 79, 109, 134;
    --on-hold: #B21A1F;
    --low: #A33A1E;
    --low-bg: rgba(224, 84, 51, .12);
    --caution: #7A5300;
    --caution-bg: rgba(217, 153, 13, .16);
    --strong: #1C6B62;
    --strong-bg: rgba(41, 153, 140, .12);
    --verified: #17693C;
    --verified-bg: rgba(31, 148, 84, .12);
    --scroll-thumb: #3F3F46;
    --scroll-thumb-hover: #5A5A66;
    --container: min(1200px, calc(100% - 80px));
    --hero-side: max(48px, 8.333vw);   /* the first screen spans the window, not the column */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--ink); }
@supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: var(--ink); }
    ::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid var(--ink); border-radius: 10px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
}
body { background: var(--ink); color: var(--text); font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--brand-x); outline-offset: 3px; border-radius: 4px; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo span { font-size: 21px; font-weight: 600; letter-spacing: .02em; }
.logo b { font-weight: 700; color: var(--brand-x); }
/* Brand names carry a violet X: the logo violet on ink, the deeper platform violet on the light sheet. */
.bx { color: var(--brand-x); }
.sheet .bx { color: #6C31FF; }
/* Brand names: TRUSTX is the company's wordmark image (white on ink, dark on the light sheet); INDAGOX is
   set like the logo's wordmark. The image is cap height, sitting on the text's baseline. */
.wm-tx { white-space: nowrap; }
.wm-tx img { display: inline; height: .72em; width: auto; vertical-align: baseline; }
.wm-tx .wm-tx__d, .sheet .wm-tx .wm-tx__l, .stack__product .wm-tx .wm-tx__d { display: none; }
.sheet .wm-tx .wm-tx__d, .stack__product .wm-tx .wm-tx__l { display: inline; }
.wm { font-weight: 700; letter-spacing: .02em; }
.eb .wm-tx img { height: 1em; vertical-align: -.1em; }
.stack__product .wm-tx img { height: 15px; }
.sheet .stack__product .wm-tx .wm-tx__d { display: none; }
.sheet .stack__product .wm-tx .wm-tx__l { display: inline; }
.h2 .wm { color: var(--text); }
h1 .reg, h2 .reg, .h2 .reg { font-size: .32em; }
/* TrustX is a registered trademark: a small ® after every mention, in the text's own colour. */
.reg { font-size: .5em; font-weight: 500; line-height: 0; vertical-align: super; margin-left: .06em; letter-spacing: 0; }

.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; white-space: nowrap; }
.btn--on-ink { background: #fff; color: var(--ink); }
.btn--outline-on-ink { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--on-ink-line); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Hero ---------- */
/* The first screen is always exactly the window: content scales with its height. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: var(--on-ink); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(24,24,27,.95) 0%, rgba(24,24,27,.82) 36%, rgba(24,24,27,0) 58%); }

.site-nav { position: fixed; top: 0; left: 0; right: 0; height: 80px; z-index: 20; transition: height .25s ease, background-color .25s ease, box-shadow .25s ease; }
/* Past the first screen the menu stays on top as an ink bar, so Book a demo is always one click away. */
.site-nav.is-stuck { height: 64px; background: rgba(24,24,27,.88); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-nav__inner { width: var(--container); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.site-nav__links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; color: var(--on-ink-2); }
.site-nav__links a:hover, .site-nav__actions > a:not(.btn):hover { color: #fff; }
.site-nav__actions { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; color: var(--on-ink-2); }
.site-nav__menu { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.site-nav__menu i { display: block; width: 18px; height: 2px; background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; }
.site-nav__panel { display: none; position: absolute; top: calc(100% + 4px); right: 20px; left: 20px; padding: 8px; border-radius: 12px; background: #232329; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 48px -16px rgba(0,0,0,.6); }
.site-nav__panel a { display: block; padding: 14px 16px; border-radius: 8px; font-size: 16px; font-weight: 500; color: #fff; }
.site-nav__panel a:hover { background: rgba(255,255,255,.06); }
.site-nav.is-open .site-nav__panel { display: block; }

.hero__copy { position: absolute; left: var(--hero-side); top: 80px; bottom: 0; width: clamp(560px, 45.8vw, 940px); z-index: 2; display: flex; flex-direction: column; justify-content: safe center; }
.hero h1 { margin-top: 0; font-weight: 600; font-size: clamp(52px, min(6.4vw, 9.4vh), 128px); line-height: .98; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero__sub { margin-top: clamp(16px, 3.5vh, 32px); font-size: clamp(19px, 1.32vw, 24px); line-height: 1.55; color: var(--on-ink-2); max-width: 30em; }
.hero__ctas { display: flex; align-items: center; gap: 28px; margin-top: clamp(20px, 4vh, 36px); }
.hero__link { font-size: 16px; font-weight: 600; color: #fff; }
.hero__for { margin-top: clamp(14px, 3vh, 28px); font-size: 15px; color: var(--on-ink-3); }

/* Before the script runs (and without JS) the page shows its final, readable state. */
.js #hero-line1, .js .hero__line2, .js .hero__after { opacity: 0; }

/* ---------- Sheet and sections ---------- */
.sheet { position: relative; margin: 0 8px; border-radius: 16px; background: var(--sheet); overflow: hidden; }
.sheet__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 420px at 100% 0%, rgba(var(--peri), .065), rgba(var(--peri), 0)); }
.w { width: var(--container); margin: 0 auto; }
.sec { padding: 128px 0; }
.eb { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.h2 { font-weight: 600; font-size: 56px; line-height: 1.04; letter-spacing: -.04em; margin-top: 18px; max-width: 900px; }
.h2 span { color: var(--label); }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
/* Trust level badges, as in the product (Platform Figma "Trust Level Badge"): shield + glyph + word, one colour on an 11% tint. */
.chip { --c: 140,140,158; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 6px; border-radius: 6px; background: rgba(var(--c), .11); color: rgb(var(--c)); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.chip svg .chip__tint { fill: currentColor; fill-opacity: .16; stroke: none; }
.chip--verified { --c: 13,153,102; }
.chip--strong { --c: 41,153,140; }
.chip--caution { --c: 184,122,8; }
.chip--low { --c: 217,51,51; }
.chip--on-hold { --c: 217,51,51; box-shadow: inset 0 0 0 1px rgb(var(--c)); }
.chip--on-hold svg { width: 17px; height: 17px; }
.q--custom { background: transparent; border-style: dashed; color: var(--label); }
.q { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--chip); border: 1px solid var(--chip-border); font-size: 15px; font-weight: 500; color: var(--body-2); }

.why3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.why3 .tile { padding: 32px 32px 36px; }
.why3 svg { display: block; margin-bottom: 24px; }
.why3 h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.why3 p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--body); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.two .tile { padding: 36px 36px 40px; }
.two h3 { font-size: 28px; font-weight: 600; letter-spacing: -.025em; margin: 14px 0 24px; }
.qs { display: flex; flex-wrap: wrap; gap: 8px; }
.note { margin-top: 24px; font-size: 15px; line-height: 1.55; color: var(--body); }
.vs { display: grid; grid-template-columns: 1fr 36px 1fr; align-items: center; }
.quote { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.quote .quote__kind { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.quote p:not(.quote__kind) { margin-top: 8px; font-size: 17px; line-height: 1.4; color: var(--body-2); }
.quote b { color: var(--caution); font-weight: 700; }
.ne { text-align: center; font-size: 26px; font-weight: 600; color: var(--caution); }

.kinds { display: flex; flex-wrap: wrap; margin-top: 48px; font-size: 52px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
.kinds span { white-space: nowrap; }
.kinds b { color: #D2D2DA; padding: 0 16px; font-weight: 500; }
.kinds i { font-style: normal; color: var(--label); }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.fields .tile { padding: 32px; }
.fields h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 14px 0 10px; line-height: 1.2; }
.fields p:not(.eb) { font-size: 16px; line-height: 1.55; color: var(--body); }
.setup { display: flex; align-items: center; justify-content: space-between; gap: 48px; margin-top: 24px; padding: 36px 40px; border-radius: 16px; background: var(--ink); color: #fff; }
.setup h3 { font-size: 28px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.setup p { font-size: 16px; line-height: 1.55; color: var(--on-ink-2); max-width: 30em; }

.get { display: grid; grid-template-columns: 560px 1fr; gap: 64px; margin-top: 64px; align-items: start; }
.doc__head { position: relative; padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: radial-gradient(420px 120px at 0% 0%, rgba(var(--slate), .093), rgba(var(--slate), 0)); }
.doc__meta { font-size: 12px; font-weight: 500; color: var(--label); }
.doc__body { padding: 22px 24px 26px; }
.doc__body h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.doc__by { font-size: 13px; color: var(--label); margin-top: 6px; }
.doc__body p { font-size: 16px; line-height: 1.6; color: var(--body-2); margin-top: 12px; }
/* Flagged passages: an underline in the level's colour that draws in when the example is read. */
.mark-caution, .mark-low { background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px; padding-bottom: 3px; }
.mark-caution { background-image: linear-gradient(#D9990D, #D9990D); }
.mark-low { background-image: linear-gradient(#E05433, #E05433); }
.first__brand { display: block; height: 14px; width: auto; margin: 3px 0 10px; }
.first { display: flex; gap: 14px; align-items: flex-start; }
.first__mark { flex: none; margin-top: 2px; }
/* Under the two trust tiles: the scoring model behind them. */
.powered { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 40px; }
.powered__logo { height: 24px; width: auto; }
.powered__mark { display: inline-flex; align-items: flex-start; color: var(--text); }
.powered__mark .reg { font-size: 12px; line-height: 1; vertical-align: 0; margin: 1px 0 0 2px; }
.powered p { font-size: 15px; color: var(--body); }
.powered i { font-style: italic; color: var(--body-2); }
.stack__label { padding: 0 6px 2px; }
.answer__top { display: flex; align-items: center; gap: 12px; }
.answer__verdict { font-size: 15px; font-weight: 600; color: var(--body-2); }
.reasons { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.reasons li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--body-2); align-items: center; }
.reasons li span { font-size: 12px; font-weight: 600; color: var(--label); }
.first { margin-top: 24px; padding: 20px 24px; border-radius: 12px; background: var(--chip); border: 1px solid var(--chip-border); }
.first p:not(.eb) { margin-top: 6px; font-size: 17px; font-weight: 500; }
.caption { margin-top: 14px; font-size: 13px; color: var(--label); }
.scale { display: flex; align-items: center; gap: 8px; margin-top: 64px; }
.scale .eb { margin-right: 16px; }
.scale__tail { margin-left: auto; font-size: 15px; color: var(--body); }

.plat { display: grid; grid-template-columns: 620px 1fr; gap: 80px; margin-top: 72px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack__top { display: grid; grid-template-columns: 1fr; gap: 10px; }
.stack__product { height: 76px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 22px; }
.stack__product b { font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.stack__product b em { font-style: normal; color: var(--brand-x); }
.stack__product small { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--on-ink-3); }
.stack__base { border-radius: 12px; border: 1px dashed #CBCBD5; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--body); }
.stack__base { height: 56px; }
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-radius: 16px; background: #F3F3F6; border: 1px solid var(--line); }
.layers .eb { grid-column: 1 / -1; padding: 4px 6px 2px; }
/* Trust services: the layer between TrustX and the platform, lit with the periwinkle kind light. */
.layers--services { grid-template-columns: repeat(3, 1fr); background: radial-gradient(520px 200px at 0% 0%, rgba(var(--peri), .10), rgba(var(--peri), 0)), #F3F3F6; }
.layers--services .layer h3::before { background: rgb(var(--peri)); }
.layer { padding: 18px 18px 20px; }
.layer h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.layer h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.layer p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--body); }
.plat__text { font-size: 26px; line-height: 1.4; letter-spacing: -.02em; color: var(--body-2); }
.plat__text b { color: var(--text); font-weight: 600; }

.founder { padding: 136px 0; color: #fff; }
.founder__grid { display: grid; grid-template-columns: 340px 1fr; gap: 96px; }
.founder .eb { color: var(--on-ink-3); }
.founder h2 { font-size: 44px; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin-top: 18px; }
.founder__year { margin-top: 48px; font-size: 120px; font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.founder__year small { display: block; margin-top: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-3); }
.letter { max-width: 700px; }
.letter__pull { font-size: 34px; line-height: 1.3; letter-spacing: -.025em; font-weight: 500; margin-bottom: 36px; }
.letter > p:not(.letter__pull) { font-size: 19px; line-height: 1.65; color: var(--on-ink-2); margin-bottom: 22px; }
.letter__sign { margin-top: 40px; }
.xp { margin-top: 120px; }
.xp .letter > p.xp__lead { font-size: 24px; line-height: 1.45; letter-spacing: -.015em; font-weight: 500; color: #fff; }
.xp .letter > p.xp__h { margin: 32px 0 12px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-3); }
.xp__stats .founder__year + .founder__year { margin-top: 40px; }
@media (max-width: 1023px) { .xp__stats { display: flex; flex-wrap: wrap; gap: 0 56px; } .xp__stats .founder__year + .founder__year { margin-top: 24px; } }
.xp__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.xp__tags li { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); font-size: 15px; color: #fff; }
@media (max-width: 1023px) { .xp { margin-top: 72px; } .xp .letter > p.xp__lead { font-size: 21px; } }
@media (max-width: 767px) { .xp { margin-top: 56px; } .xp .letter > p.xp__lead { font-size: 19px; } }
.letter__name { font-size: 20px; font-weight: 600; }
.letter__role { margin-top: 4px; font-size: 15px; color: var(--on-ink-3); }

/* Trust in AI: standards and alliances, inside the ink About band. */
.proof { margin-top: 160px; }
.proof__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: end; }
.proof__head h3 { margin-top: 18px; max-width: 14em; font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.proof__head > p { font-size: 18px; line-height: 1.6; color: var(--on-ink-2); }
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.proof__item { display: flex; flex-direction: column; padding: 28px; border-radius: 16px; background: #1F1F24; border: 1px solid #2E2E35; }
.proof__logo { height: 18px; width: auto; margin-bottom: 20px; opacity: .92; }
.proof__kicker { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-3); }
.proof__item h4 { margin-top: 10px; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.proof__item p:not(.proof__kicker) { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--on-ink-2); }
.proof__layer { margin-top: 48px; max-width: 46em; font-size: 24px; line-height: 1.45; letter-spacing: -.02em; color: var(--on-ink-2); }
.proof__layer b { color: #fff; font-weight: 600; }

.cta { position: relative; width: var(--container); margin: 0 auto; padding: 112px 0; }
.cta h2 { font-size: 64px; font-weight: 600; letter-spacing: -.045em; line-height: 1.02; max-width: 760px; }
.cta p { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--body); max-width: 600px; }
.cta .btn { margin-top: 36px; }

.site-footer { width: var(--container); margin: 0 auto; padding: 48px 0 56px; display: flex; justify-content: space-between; align-items: center; color: var(--on-ink-3); font-size: 14px; }
.site-footer .logo span { font-size: 19px; }
.site-footer__links { display: flex; gap: 28px; align-items: center; }
.site-footer__links a:hover { color: #fff; }
.site-footer__partners { color: #fff; }
.site-footer__partners a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Scroll reveals ---------- */
/* Without JS, and in screenshot mode (?t=), everything shows in its final state. */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform 1s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* The example is read in order: the passages are underlined, the level appears, then the reasons. */
.js .get .mark-caution, .js .get .mark-low { background-size: 0 2px; transition: background-size .8s cubic-bezier(.4,0,.2,1) .2s; }
.js .get .mark-low { transition-delay: .55s; }
.js .get .doc .chip, .js .answer > :not(.reasons), .js .reasons li { opacity: 0; transform: translateY(10px); transition: opacity .6s ease var(--d, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js .get .doc .chip { transform: scale(.7); --d: .9s; }
.js .answer__top { --d: 1.1s; }
.js .reasons li:nth-child(1) { --d: 1.25s; }
.js .reasons li:nth-child(2) { --d: 1.37s; }
.js .reasons li:nth-child(3) { --d: 1.49s; }
.js .first { --d: 1.7s; }
.js .caption { --d: 1.85s; }
.get.play .mark-caution, .get.play .mark-low { background-size: 100% 2px; }
.get.play .doc .chip, .get.play .answer > :not(.reasons), .get.play .reasons li { opacity: 1; transform: none; }
.rv-off *, .rv-off *::before { transition: none !important; }

/* The noise drawings move for three rounds, then rest: dots appear, copies ripple, one checker hops from dot to dot. */
.why3 svg * { transform-box: fill-box; transform-origin: center; }
.g-pop circle { animation: g-pop 3.6s cubic-bezier(.2,.7,.2,1) 3 both; animation-delay: calc(var(--i) * .33s); }
.g-echo circle { animation: g-echo 2.6s ease-in-out 4; animation-delay: calc(var(--i) * .14s); }
.g-hop { animation: g-hop 9s cubic-bezier(.5,0,.2,1) 2; }
.why3 .tile:not(.in) svg * { animation-play-state: paused; }
@keyframes g-pop { 0%, 55% { transform: scale(1); opacity: 1; } 70%, 74% { transform: scale(0); opacity: 0; } 82% { transform: scale(1.3); opacity: 1; } 88%, 100% { transform: scale(1); opacity: 1; } }
@keyframes g-echo { 0%, 50%, 100% { transform: none; } 18% { transform: translateY(-6px); } }
@keyframes g-hop { 0%, 14% { transform: translate(0, 0); } 17%, 31% { transform: translate(20px, 0); } 34%, 48% { transform: translate(40px, 0); } 51%, 65% { transform: translate(40px, 20px); } 68%, 82% { transform: translate(20px, 20px); } 85%, 97% { transform: translate(0, 20px); } 100% { transform: translate(0, 0); } }

/* Beside the closing call to action: noise on the left settles into rows on the right. */
.cta__dots { position: absolute; top: 0; right: 0; bottom: 0; width: 40%; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 22%), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
.cta__dots canvas { display: block; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
    .js .rv { transform: none; transition: opacity .4s ease; }
    .why3 svg * { animation: none !important; }
    .js .get *, .js .get .doc .chip { transition-duration: .01s !important; transition-delay: 0s !important; transform: none !important; }
}

/* ---------- Inner pages (privacy) ---------- */
.page-head { padding: 176px 0 80px; color: #fff; }
.page-head .eb { color: var(--on-ink-3); }
.page-head h1 { margin-top: 18px; font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.page-head__lead { margin-top: 24px; max-width: 38em; font-size: 19px; line-height: 1.6; color: var(--on-ink-2); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.legal { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 96px; padding: 96px 0 128px; }
.legal__toc { position: sticky; top: 104px; align-self: start; }
.legal__toc ol { list-style: none; margin-top: 16px; border-left: 1px solid var(--line); }
.legal__toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--body); }
.legal__toc a:hover { color: var(--text); }
.legal__toc a.is-current { border-left-color: var(--ink); color: var(--text); font-weight: 500; }
.legal__body section { scroll-margin-top: 96px; }
.legal__body section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal__body h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.legal__body p, .legal__body li { font-size: 17px; line-height: 1.7; color: var(--body-2); }
.legal__body p { margin-top: 14px; }
.legal__body ul { list-style: none; margin-top: 14px; }
.legal__body li { position: relative; padding-left: 22px; }
.legal__body li + li { margin-top: 6px; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: #C4C4CF; }
.legal__body a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__links a[aria-current] { color: #fff; }

/* ---------- Book a demo ---------- */
/* Shorter head than the privacy page, so the form starts on the first screen. */
.page-head--demo { padding: 136px 0 56px; }
.page-head--demo h1 { max-width: 15em; font-size: 60px; }
.page-head--demo .page-head__lead { margin-top: 20px; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px); gap: 96px; padding: 64px 0 128px; align-items: start; }
.demo__side { position: sticky; top: 104px; }
.steps { list-style: none; margin-top: 20px; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 52px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 4px; width: 1px; background: var(--line); }
.steps h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.steps p { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--body); }
.demo__levels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }

.demo-card { padding: 40px; }
.demo-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 14px; font-weight: 500; color: var(--body-2); }
.field__optional { margin-left: 4px; font-weight: 400; color: var(--label); }
.field__control { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--chip-border); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.field__control::placeholder { color: #A3A3B2; }
.field__control:hover { border-color: #CBCBD5; }
.field__control:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24,24,27,.08); }
.field__control[aria-invalid="true"] { border-color: var(--on-hold); box-shadow: 0 0 0 3px rgba(178,26,31,.08); }
.field__control--area { height: 112px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field__error { font-size: 14px; color: var(--on-hold); }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; border: 1px dashed #CBCBD5; border-radius: 12px; background: var(--sheet); text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.dropzone:hover, .dropzone--active { border-color: var(--ink); background: #F3F3F6; }
.dropzone:focus-within { outline: 2px solid var(--brand-x); outline-offset: 3px; }
.dropzone[aria-invalid="true"] { border-color: var(--on-hold); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__icon { color: var(--body); }
.dropzone__title { font-size: 15px; font-weight: 500; color: var(--text); }
.dropzone__title span { text-decoration: underline; text-underline-offset: 3px; }
.dropzone__hint { font-size: 13px; color: var(--label); }
.file-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.file-list__item { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
.file-list__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.file-list__size { color: var(--label); }
.file-list__remove { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--body); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.file-list__remove:hover { background: var(--chip); color: var(--text); }

.demo-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.demo-form__foot { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.demo-form__submit { gap: 10px; border: 0; cursor: pointer; font-family: inherit; }
.demo-form__submit:hover { background: #2A2A30; }
.demo-form__submit:disabled { opacity: .7; cursor: progress; }
.demo-form__loader { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-form__note { font-size: 14px; color: var(--label); }
.demo-form__status { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--low-bg); color: var(--low); font-size: 14px; font-weight: 500; }
.demo-success { padding: 24px 0 8px; }
.demo-success h2 { margin-top: 20px; font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.demo-success p { margin-top: 12px; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--body); }
.demo-success .btn { margin-top: 28px; }

/* ---------- Tablet hero (and small laptops) ---------- */
@media (max-width: 1279px) {
    .site-nav__links, .site-nav__actions > a:not(.btn) { display: none; }
    .site-nav__menu { display: inline-flex; }
    .site-nav__actions { gap: 12px; }
    .hero__fade { background: linear-gradient(180deg, rgba(24,24,27,.92) 0%, rgba(24,24,27,.80) 40%, rgba(24,24,27,0) 47%, rgba(24,24,27,0) 69%, rgba(24,24,27,.86) 75%, rgba(24,24,27,.95) 100%); }
    :root { --hero-side: 48px; }
    .hero__copy { left: 48px; right: 48px; top: 128px; bottom: 56px; width: auto; display: flex; flex-direction: column; justify-content: space-between; }
    .hero h1 { font-size: clamp(44px, min(8.8vw, 6.8vh), 68px); }
    .hero__sub { margin-top: 0; }
}

/* ---------- Tablet page ---------- */
@media (max-width: 1023px) {
    .sec { padding: 96px 0; }
    .h2 { font-size: 44px; }
    .why3 { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
    .why3 .tile { display: grid; grid-template-columns: 140px 1fr; align-items: center; padding: 28px; }
    .why3 svg { margin: 0; grid-row: span 2; }
    .why3 h3 { align-self: end; }
    .two { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
    .kinds { font-size: 40px; margin-top: 36px; }
    .fields { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
    .fields .tile:last-child { grid-column: 1 / -1; }
    .setup { flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; }
    .setup h3 { white-space: normal; }
    .get { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
    .scale { flex-wrap: wrap; row-gap: 12px; }
    .scale__tail { margin-left: 0; width: 100%; }
    .plat { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
    .founder { padding: 96px 0; }
    .founder__grid { grid-template-columns: 1fr; gap: 40px; }
    .proof { margin-top: 112px; }
    .proof__head { grid-template-columns: 1fr; gap: 20px; }
    .proof__head h3 { font-size: 34px; }
    .proof__grid { grid-template-columns: 1fr; }
    .proof__layer { font-size: 21px; }
    .founder__year { margin-top: 24px; font-size: 88px; }
    .letter__pull { font-size: 28px; }
    .cta { padding: 72px 0; }
    .cta h2 { font-size: 48px; }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 24px; padding: 40px 0; }
    .site-footer__links { flex-wrap: wrap; gap: 16px 24px; }
    .cta__dots { display: none; }
    .page-head { padding: 144px 0 64px; }
    .page-head h1 { font-size: 56px; }
    .legal { grid-template-columns: 1fr; gap: 0; padding: 72px 0 96px; }
    .legal__toc { display: none; }
    .demo { grid-template-columns: 1fr; gap: 48px; padding: 72px 0 96px; }
    .demo__side { position: static; }
    .demo-card { order: -1; }   /* the form first on small screens; how it works follows */
    .page-head--demo { padding: 120px 0 48px; }
    .page-head--demo h1 { font-size: 48px; }
}

/* Small laptops and tablets held sideways: the platform text goes under the stack, not into a narrow column. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .plat { grid-template-columns: 1fr; gap: 40px; }
}

/* Near-square tablet screens: a larger headline and a wider intro line, so the first screen is not a half-filled column. */
@media (min-width: 880px) and (max-width: 1279px) {
    .hero h1 { font-size: clamp(56px, min(8vw, 8.6vh), 80px); }
    .hero__sub { font-size: 20px; max-width: 36em; }
}

/* Unfolded foldables and small tablets (Galaxy Z Fold 7 open is 984px): keep the desktop grids, not one column. */
@media (min-width: 880px) and (max-width: 1023px) {
    .why3 { grid-template-columns: repeat(3, 1fr); }
    .why3 .tile { display: block; padding: 28px 24px 32px; }
    .why3 svg { margin: 0 0 20px; }
    .two { grid-template-columns: 1fr 1fr; }
    .two .tile { padding: 28px 28px 32px; }
    .two h3 { font-size: 24px; }
    .fields { grid-template-columns: repeat(3, 1fr); }
    .fields .tile:last-child { grid-column: auto; }
    .fields .tile { padding: 28px 24px; }
    .fields h3 { font-size: 22px; }
    .founder__grid { grid-template-columns: 220px 1fr; gap: 56px; }
    .founder__year { font-size: 80px; }
    .proof__grid { grid-template-columns: repeat(3, 1fr); }
    .proof__item { padding: 24px; }
    .proof__head > p, .proof__layer { max-width: 36em; }
    .setup { flex-direction: row; align-items: center; gap: 32px; padding: 32px 36px; }
    .setup h3 { white-space: nowrap; }
    .cta__dots { display: block; }
    .site-footer { flex-direction: row; align-items: center; gap: 24px; padding: 48px 0; }
    /* No one-word last lines at this width. */
    .h2, .cta h2, .why3 h3, .fields h3, .proof__head h3 { text-wrap: balance; }
    .hero__sub, .why3 p, .fields p, .proof__layer, .cta p { text-wrap: pretty; }
}

/* Short laptop screens: tighter type and spacing so the hero still fits one screen. */
@media (min-width: 1280px) and (max-height: 800px) {
    .hero__copy { top: 80px; bottom: 0; }
    .hero__sub { font-size: 17px; line-height: 1.5; }
    .hero__ctas { margin-top: 20px; }
    .hero__for { margin-top: 14px; font-size: 14px; }
}

/* Short phones: drop the audience line so the hero still fits one screen. */
@media (max-width: 767px) and (max-height: 700px) {
    .hero__for { display: none; }
    .hero__sub { font-size: 16px; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    :root { --container: calc(100% - 40px); --hero-side: 20px; }
    .site-nav { height: 68px; }
    .site-nav__actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }
    .hero__fade { background: linear-gradient(180deg, rgba(24,24,27,.92) 0%, rgba(24,24,27,.80) 44%, rgba(24,24,27,0) 49%, rgba(24,24,27,0) 63%, rgba(24,24,27,.86) 67%, rgba(24,24,27,.95) 100%); }
    .hero__copy { left: 20px; right: 20px; top: 104px; bottom: 32px; }
    .hero h1 { font-size: clamp(34px, min(11.7vw, 5.6vh), 44px); line-height: 1; letter-spacing: -.04em; }
    .hero__sub { font-size: 17px; }
    .hero__ctas { margin-top: 24px; gap: 20px; }
    .hero__link { font-size: 15px; }
    /* Phone: one text block at the top, the noise and the cards in a stage below it (never between the lines). */
    .hero { min-height: 520px; }
    .hero__copy { top: 92px; bottom: auto; justify-content: flex-start; }
    .hero__after { margin-top: 20px; }
    .hero__for { display: none; }
    .sheet { margin: 0 6px; }
    .sec { padding: 72px 0; }
    .h2 { font-size: 34px; line-height: 1.08; }
    .note { font-size: 15px; }
    .why3 .tile { grid-template-columns: 1fr; padding: 24px; }
    .why3 svg { margin-bottom: 20px; grid-row: auto; }
    .two .tile { padding: 24px; }
    .two h3 { font-size: 22px; }
    .vs { grid-template-columns: 1fr; gap: 8px; }
    .kinds { font-size: 28px; line-height: 1.3; }
    .kinds b { padding: 0 10px; }
    .fields { grid-template-columns: 1fr; }
    .setup { padding: 24px; }
    .setup h3 { font-size: 24px; }
    .doc__head, .doc__body { padding-left: 18px; padding-right: 18px; }
    .reasons li { grid-template-columns: 1fr; gap: 4px; }
    .layers, .layers--services { grid-template-columns: 1fr; }
    .plat__text { font-size: 21px; }
    .founder { padding: 72px 0; }
    .founder__year { font-size: 72px; }
    .letter__pull { font-size: 24px; }
    .proof__head h3 { font-size: 28px; }
    .proof__item { padding: 24px; }
    .proof__layer { font-size: 19px; }
    .letter > p:not(.letter__pull) { font-size: 17px; }
    .cta { padding: 56px 0; }
    .cta h2 { font-size: 34px; }
    .cta p { font-size: 17px; }
    .site-footer { padding: 32px 0; }
    .site-nav.is-stuck { height: 60px; }
    .page-head { padding: 112px 0 44px; }
    .page-head h1 { font-size: 42px; }
    .page-head__lead { font-size: 17px; }
    .legal { padding: 48px 0 72px; }
    .legal__body section + section { margin-top: 36px; padding-top: 36px; }
    .legal__body h2 { font-size: 21px; }
    .legal__body p, .legal__body li { font-size: 16px; }
    .demo { padding: 20px 0 72px; gap: 40px; }
    .page-head--demo { padding: 100px 0 32px; }
    .page-head--demo h1 { font-size: 36px; }
    .demo-card { padding: 24px 20px; }
    .demo-form__grid { grid-template-columns: 1fr; gap: 18px; }
    .demo-form__foot { flex-direction: column; align-items: stretch; gap: 12px; }
    .demo-form__submit { justify-content: center; }
    .demo-success h2 { font-size: 26px; }
}

/* ---------- How TrustX works: a full-screen ink chapter, pinned while its six steps scroll past ---------- */
/* Shared bits. A trust service's name carries the periwinkle kind light, here and in the platform stack. */
.svc { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.svc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--peri)); flex: none; }
.svc--plat::before { background: var(--brand-x); }
.svc--plain::before { background: #8C8C9E; }
.layers--services { grid-template-columns: 1fr 1fr; }
@media (max-width: 767px) { .layers--services { grid-template-columns: 1fr; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Status marks: a ring with a glyph, so a state never rests on colour alone. */
.mk { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-style: normal; }
.mk svg { width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mk--caution { color: #B87A08; } .mk--low { color: #D93333; } .mk--strong { color: #1F8A7D; } .mk--muted { color: #8C8C9E; } .mk--peri { color: #5B62E8; }

/* ----- The chapter: one pinned screen on the site's ink, a periwinkle light behind the window and the dot grid. ----- */
.chapter { position: relative; color: #fff; scroll-margin-top: -72px; }
.chapter__pin { position: relative; overflow: hidden; background:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.3px) 0 0 / 24px 24px,
    radial-gradient(1000px 640px at 66% 58%, rgba(var(--peri), .16), rgba(var(--peri), 0) 70%),
    var(--ink); }
.chapter__pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 85% at 62% 55%, rgba(24,24,27,0) 45%, rgba(24,24,27,.9) 100%); }
/* Grid: the headline across the top; below it the step column and the window, centred on each other. */
.chapter__inner { position: relative; width: min(1600px, calc(100% - 96px)); margin: 0 auto; padding: 120px 0 80px; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 64px; row-gap: 32px; align-items: start; }
.chapter__head { grid-column: 1 / -1; display: flex; justify-content: center; }
.chapter__title { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 20px; font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.chapter__title > span:first-child { color: #A9A9C2; }
.chapter__title .wm-tx img { height: .74em; }
.chapter__title .reg { font-size: .3em; }
.chapter__copy { grid-column: 1; grid-row: 2; align-self: start; }
.chapter__scene { grid-column: 2; grid-row: 2; align-self: start; justify-self: end; width: 100%; }
.chapter__stage { container-type: inline-size; width: 100%; }
.chapter__steps { list-style: none; }
.chapter__steps > li + li { margin-top: 48px; }
.chapter__steps .svc { color: #fff; }
.chapter__steps .svc + h3 { margin-top: 12px; }
.chapter__steps h3 { font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.chapter__steps h3 + p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--on-ink-2); }
.chapter__steps .wm-tx img { height: .72em; }
.chapter__bar { display: none; }
/* The active step's segment is longer and fills as the visitor scrolls through the step. */
.chapter__bar i { --p: 0; width: 3px; height: 24px; border-radius: 2px; background: linear-gradient(var(--bar-dir, 180deg), rgb(var(--peri)) calc(var(--p) * 100%), rgba(255,255,255,.16) 0); transition: height .3s ease, width .3s ease; }
.chapter__bar i.done { background: rgba(var(--peri), .45); }
.chapter__bar i.on { height: 48px; }
.chapter__count { display: none; }

/* A step's output panel: what the named service gives you, under its words. */
.cp { margin-top: 24px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.cp__h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-3); }
.cp__h + ul { margin-top: 12px; }
ul + .cp__h, .cp__fix + .cp__h { margin-top: 16px; }
.cp__h + .cp__fix { margin-top: 4px; }
.cp__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cp__chips li { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(var(--peri), .14); border: 1px solid rgba(var(--peri), .4); font-size: 14px; font-weight: 500; color: #DADCFF; }
.cp__chips--models li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: #fff; }
.cp__chips--models .cp__own { background: none; border-style: dashed; color: var(--on-ink-2); }
.cp__own::before { content: "+"; margin-right: 6px; font-weight: 600; color: rgb(var(--peri)); }
.cp .chip { height: 28px; padding: 0 10px 0 8px; gap: 6px; font-size: 14px; }
.cp .chip svg { width: 16px; height: 16px; }
.chip--ink.chip--caution { --c: 232,176,74; }
.chip--ink.chip--strong { --c: 79,194,179; }
.cp__lvl { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--on-ink-2); }
.cp__lvl span, .cp__lift small { white-space: nowrap; }
.cp__rows + .cp__lvl { margin-top: 16px; }
.cp__rows { list-style: none; }
.cp__rows li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; line-height: 1.4; color: #fff; }
.cp__rows li + li { border-top: 1px solid rgba(255,255,255,.08); }
.cp__ways li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--peri)); }
/* The method behind every view: a footnote inside the white workspace box, bottom right. The box's content sits
   a little high to leave it room. */
.rd .ap__sheet { align-items: start; padding-top: calc(var(--u) * 8); }
.chapter__note { position: absolute; right: calc(var(--u) * 16); bottom: calc(var(--u) * 7); z-index: 2; white-space: nowrap; font-size: max(10px, calc(var(--u) * 12.5)); font-weight: 500; letter-spacing: .01em; color: var(--body-2); }
.chapter__note b { font-weight: 700; color: var(--text); }
.chapter__note .reg { font-size: .75em; line-height: 1; vertical-align: .3em; margin: 0 1px 0 0; }
/* Names the light area while pieces arrive: they are coming into a workspace. */
.rd__ws { position: absolute; top: calc(var(--u) * 18); left: calc(var(--u) * 22); z-index: 1; font-size: max(10px, calc(var(--u) * 11 * var(--k))); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); transition: opacity .3s ease; }
.rd.page .rd__ws { opacity: 0; }
@container (max-width: 300px) { .rd__ws { display: none; } }
.cp--score .cp__rows li + li { border-top: 0; }
.cp .mk--caution { color: #E8B04A; } .cp .mk--low { color: #F07B6B; } .cp .mk--strong { color: #4FC2B3; } .cp .mk--muted { color: #9A9AAB; }
.cp__fix { font-size: 17px; font-weight: 500; line-height: 1.45; color: #fff; }
.cp__lift { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--on-ink-3); }
.cp__lift small { margin-left: 4px; font-size: 13px; }

/* Pinned (scripts on): the track gives the scroll distance; the pin holds one screen; one step shows at a time. */
/* One screen of scroll for the opening (the headline alone), then one for each of the six steps. */
.js .chapter__track { height: 940vh; height: 940svh; }
.js .chapter__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
/* The window rests on the foot of the screen; the headline is centred in all the space between the menu bar and it. */
.js .chapter__inner { height: 100%; padding: 64px 0 72px; grid-template-rows: minmax(0, 1fr) auto; row-gap: 0; }
.js .chapter__head { align-self: center; }
/* The opening: the headline alone, larger, centred on the screen. Scrolling on, it first rises to its place (--intro,
   0 to 1, set by the script), then the steps, the window and the indicator come in (--enter). */
.js .chapter__head { transform: translateY(calc(var(--head-dy, 0px) * (1 - var(--intro, 1)))) scale(calc(1 + var(--intro-k, .3) * (1 - var(--intro, 1)))); }
.js .chapter__copy, .js .chapter__scene { opacity: var(--enter, 1); transform: translateY(calc(64px * (1 - var(--enter, 1)))); }
.js .chapter__bar { opacity: var(--enter, 1); }
/* The light sheet comes in after the frame, so it never shows as a grey slab mid-fade. */
.js .chapter__scene .ap__sheet { opacity: clamp(0, calc(var(--enter, 1) * 2 - 1), 1); }
.js .chapter__steps { display: grid; }
.js .chapter__steps > li { grid-area: 1 / 1; align-self: start; margin: 0; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .3s ease; pointer-events: none; }
/* Only the shown step takes height (a leaving one still paints while it fades), so the column never pushes the window. */
.js .chapter:not(.is-measuring) .chapter__steps > li:not(.on) { max-height: 0; }
/* The outgoing step fades first, then the incoming one rises in, so two steps never print over each other. */
.js .chapter__steps > li.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .4s ease .18s, transform .55s cubic-bezier(.2,.7,.2,1) .18s; }
.js .chapter__scene { width: min(100%, calc((100svh - 270px) * 960 / 620)); }
/* Step indicator: a quiet vertical rail at the screen's right edge. */
.js .chapter__bar { display: flex; position: absolute; z-index: 3; right: 20px; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 6px; }
/* Findings tick in as the scan reads each claim; the level waits for the end of the reading. */
.js .chapter:not(.is-measuring) .cp--score:not(:has(li.is-read)) { display: none; }
.js .chapter:not(.is-measuring) .cp--score li[data-c]:not(.is-read) { display: none; }
.js .cp--score li[data-c].is-read { animation: cp-in .35s ease; }
.js .chapter:not(.is-measuring) .cp--score:not(.done) .cp__lvl { display: none; }
.js .cp--score.done .cp__lvl { animation: cp-in .4s ease; }
@keyframes cp-in { from { opacity: 0; transform: translateY(6px); } }

/* ----- The app window (illustrative): an ink frame with a TrustX header and a collection sidebar around a light
   sheet. Drawn on a 960 x 620 grid: --u is one unit, --k scales the text, --aw/--ah size the article area. ----- */
.rd { --u: calc(100cqw / 960); --k: 1; --aw: 700; --ah: 506; --scan: 0; position: relative; width: 100%; aspect-ratio: 960 / 620; display: grid; grid-template-rows: calc(var(--u) * 68) minmax(0, 1fr); border-radius: calc(var(--u) * 20); overflow: hidden; background: #222228; color: #fff;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 calc(var(--u) * 40) calc(var(--u) * 120) rgba(0,0,0,.6), 0 0 calc(var(--u) * 160) rgba(var(--peri), .14); }
.rd * { transition: opacity .45s ease, transform .7s cubic-bezier(.2,.7,.2,1), background-color .4s ease, color .3s ease; }
.rd svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rd .mk { width: calc(var(--u) * 18 * var(--k)); height: calc(var(--u) * 18 * var(--k)); background: #fff; }
.rd .mk svg { stroke-width: 2.6; }
.rd .chip { height: calc(var(--u) * 22 * var(--k)); padding: 0 calc(var(--u) * 8) 0 calc(var(--u) * 6); gap: calc(var(--u) * 4); border-radius: calc(var(--u) * 6); font-size: max(11px, calc(var(--u) * 12 * var(--k))); }
.rd .chip svg { width: calc(var(--u) * 13 * var(--k)); height: calc(var(--u) * 13 * var(--k)); stroke-width: 2.3; }
.rd .chip svg .chip__tint { fill: currentColor; fill-opacity: .16; stroke: none; }
/* Header */
.ap__head { display: flex; align-items: center; gap: calc(var(--u) * 20); padding: 0 calc(var(--u) * 24); min-width: 0; }
.ap__brand { display: inline-flex; align-items: center; gap: calc(var(--u) * 10); flex: none; }
.ap__brand > img { width: calc(var(--u) * 26); height: calc(var(--u) * 26); }
.ap__brand .wm-tx img { height: calc(var(--u) * 18); }
.ap__brand .reg { font-size: calc(var(--u) * 9); }
.ap__title { display: grid; gap: calc(var(--u) * 2); min-width: 0; padding-left: calc(var(--u) * 20); border-left: 1px solid rgba(255,255,255,.12); }
.ap__title b { font-size: calc(var(--u) * 15 * var(--k)); font-weight: 600; white-space: nowrap; }
.ap__title small { font-size: max(11px, calc(var(--u) * 12 * var(--k))); color: var(--on-ink-3); }
.ap__title .n3 { display: none; }
.rd__status { margin-left: auto; display: inline-flex; align-items: center; gap: calc(var(--u) * 6); height: calc(var(--u) * 30); padding: 0 calc(var(--u) * 14); border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: max(11px, calc(var(--u) * 12 * var(--k))); color: var(--on-ink-2); white-space: nowrap; }
.rd__status i { width: calc(var(--u) * 7); height: calc(var(--u) * 7); border-radius: 50%; background: #6E6E80; }
.rd__status b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.rd__pct:not(:empty)::before { content: "· "; font-weight: 400; color: var(--on-ink-3); }
/* Sidebar: the collection. Only the open piece is selected; levels appear as the pieces are read. */
.ap__body { display: grid; grid-template-columns: calc(var(--u) * 196) minmax(0, 1fr); min-height: 0; padding: 0 calc(var(--u) * 10) calc(var(--u) * 10) 0; }
.ap__side { padding: calc(var(--u) * 6) calc(var(--u) * 12) 0 calc(var(--u) * 14); }
.ap__label { padding: 0 calc(var(--u) * 10); font-size: max(11px, calc(var(--u) * 11 * var(--k))); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-3); }
.ap__list { list-style: none; display: flex; flex-direction: column; gap: calc(var(--u) * 4); margin-top: calc(var(--u) * 10); }
.ap__item { position: relative; display: flex; align-items: center; gap: calc(var(--u) * 10); max-height: calc(var(--u) * 64); padding: calc(var(--u) * 9) calc(var(--u) * 10); border-radius: calc(var(--u) * 10); color: var(--on-ink-2); opacity: 0; transform: translateX(calc(var(--u) * -16));
    transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1), max-height .5s ease .15s, padding .5s ease .15s, background-color .4s ease; }
.ap__item > svg { width: calc(var(--u) * 16); height: calc(var(--u) * 16); flex: none; }
.ap__item > span:not(.ap__lv) { display: grid; flex: 1; min-width: 0; }
.ap__item b { font-size: calc(var(--u) * 13 * var(--k)); font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap__item small { font-size: max(11px, calc(var(--u) * 11 * var(--k))); color: var(--on-ink-3); }
.ap__item--2 { transition-delay: .1s; } .ap__item--3 { transition-delay: .2s; } .ap__item--4 { transition-delay: .3s; }
.ap__item::before { content: ""; position: absolute; left: 0; top: 28%; height: 44%; width: calc(var(--u) * 3); border-radius: 2px; background: rgb(var(--peri)); opacity: 0; }
.ap__lv { display: grid; flex: none; }
.ap__lv .chip { grid-area: 1 / 1; opacity: 0; transform: scale(.6); }
.chip--dot { width: calc(var(--u) * 24); height: calc(var(--u) * 24) !important; padding: 0 !important; justify-content: center; gap: 0 !important; font-size: 0 !important; }
.chip--dot svg { width: calc(var(--u) * 15) !important; height: calc(var(--u) * 15) !important; }
.ap__lv .chip--caution { --c: 232,176,74; } .ap__lv .chip--strong { --c: 79,194,179; } .ap__lv .chip--verified { --c: 96,200,140; } .ap__lv .chip--low { --c: 240,123,107; }
.chip--verified.chip--dot svg .chip__tint { fill-opacity: 1; }
.chip--verified.chip--dot svg path:last-child { stroke: #222228; }
/* Sheet and article */
.ap__sheet { position: relative; min-height: 0; border-radius: calc(var(--u) * 14); background: #EFEFF3; overflow: hidden; display: grid; place-items: center; color: var(--text); }
.rd__area { position: relative; overflow: hidden; width: calc(var(--u) * var(--aw)); height: calc(var(--u) * var(--ah)); }
.rd__files { position: absolute; inset: 0; list-style: none; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * 12); padding: 0 calc(var(--u) * 96); }
.rd__file { display: flex; align-items: center; gap: calc(var(--u) * 14); padding: calc(var(--u) * 14) calc(var(--u) * 18); border-radius: calc(var(--u) * 12); background: #fff; border: 1px solid var(--line); opacity: 0; transform: translateX(calc(var(--u) * -40)); }
.rd__file > svg { width: calc(var(--u) * 20); height: calc(var(--u) * 20); color: var(--label); }
.rd__file span { display: grid; gap: calc(var(--u) * 3); min-width: 0; }
.rd__file b { font-size: calc(var(--u) * 14 * var(--k)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd__file small { font-size: max(11px, calc(var(--u) * 12 * var(--k))); color: var(--label); }
.rd__page { position: absolute; left: 0; top: 0; width: calc(var(--u) * var(--aw)); height: calc(var(--u) * var(--ah)); display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--u) * 196); gap: calc(var(--u) * 28); padding: calc(var(--u) * 32) calc(var(--u) * 20) 0 calc(var(--u) * 40); border-radius: calc(var(--u) * 12); background: #fff; border: 1px solid var(--line); overflow: hidden; transform-origin: 0 0; opacity: 0; transform: translateY(calc(var(--u) * 16)); }
.rd__meta { display: flex; align-items: center; gap: calc(var(--u) * 6); font-size: max(11px, calc(var(--u) * 12 * var(--k))); color: var(--label); }
.rd__meta svg, .rd__mhead small svg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); flex: none; }
.rd__col h4 { margin-top: calc(var(--u) * 12); font-size: calc(var(--u) * 20 * var(--k)); font-weight: 600; line-height: 1.22; letter-spacing: -.02em; }
.rd__col p:not(.rd__meta) { margin-top: calc(var(--u) * 14); font-size: calc(var(--u) * 15 * var(--k)); line-height: 1.65; color: var(--body-2); }
mark.rd__c { position: relative; background: transparent; color: inherit; border-radius: calc(var(--u) * 3); padding: calc(var(--u) * 1) 0; }
.rd__c--1.is-read { background: rgba(217,153,13,.16); box-shadow: inset 0 calc(var(--u) * -2) 0 #D9990D; }
.rd__c--2.is-read { background: rgba(224,84,51,.12); box-shadow: inset 0 calc(var(--u) * -2) 0 #E05433; }
.rd__c--3.is-read { background: rgba(41,153,140,.12); box-shadow: inset 0 calc(var(--u) * -2) 0 #29998C; }
.rd__fx s { text-decoration: none; }
.rd__fx ins { display: none; text-decoration: none; }
.rd__fig { margin-top: calc(var(--u) * 16); padding: calc(var(--u) * 14) calc(var(--u) * 16) calc(var(--u) * 10); border-radius: calc(var(--u) * 8); background: #F7F7FA; }
.rd__bars { display: flex; align-items: flex-end; gap: calc(var(--u) * 10); height: calc(var(--u) * 64); border-bottom: 1px solid #D8D8E0; }
.rd__bars i { flex: 1; border-radius: calc(var(--u) * 3) calc(var(--u) * 3) 0 0; background: #C9CCF5; }
.rd__fig figcaption { margin-top: calc(var(--u) * 6); font-size: max(11px, calc(var(--u) * 11 * var(--k))); color: var(--label); }
/* Margin notes beside each claim (top set by the script): TrustBroker's question, the finding, the fix, the result. */
.rd__notes { position: relative; }
.rd__nh { position: relative; height: calc(var(--u) * 16); font-size: max(11px, calc(var(--u) * 11 * var(--k))); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.rd__nh span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
.rd__note { position: absolute; left: 0; right: 0; font-size: max(12px, calc(var(--u) * 12 * var(--k))); font-weight: 600; line-height: 1.35; color: var(--text); }
.rd__note > span { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: calc(var(--u) * 8); opacity: 0; transform: translateX(calc(var(--u) * -8)); }
.rd__note > span::before { content: ""; position: absolute; left: calc(var(--u) * -30); top: calc(var(--u) * 9 * var(--k)); width: calc(var(--u) * 22); border-top: 1px dashed #B9B9C6; }
.rd__note b { font-weight: 600; padding-top: calc(var(--u) * 1); }
/* The scan: a soft band over the article column; its lower edge is the reading position. */
.rd__scan { position: absolute; top: 0; left: calc(var(--u) * 32); width: calc(var(--u) * (var(--aw) - 256)); height: calc(var(--u) * 26); margin-top: calc(var(--u) * -26); background: linear-gradient(rgba(var(--peri), 0), rgba(var(--peri), .26)); mix-blend-mode: multiply; opacity: 0; transform: translateY(calc(var(--u) * var(--ah) * var(--scan))); transition: opacity .3s ease; }
.rd__scan i { position: absolute; left: calc(var(--u) * -10); bottom: calc(var(--u) * -4); width: calc(var(--u) * 8); height: calc(var(--u) * 8); border-radius: 50%; background: rgb(var(--peri)); }
/* The collection: the article shrinks into the first of four places and the other pieces join it. */
.rd__mini { position: absolute; width: calc(var(--u) * (var(--aw) - 16) / 2); height: calc(var(--u) * (var(--ah) - 16) / 2); padding: calc(var(--u) * 18) calc(var(--u) * 20); border-radius: calc(var(--u) * 10); background: #fff; border: 1px solid var(--line); overflow: hidden; opacity: 0; transform: scale(.94); color: var(--label); }
.rd__mini--2 { left: calc(var(--u) * (var(--aw) + 16) / 2); top: 0; }
.rd__mini--3 { left: 0; top: calc(var(--u) * (var(--ah) + 16) / 2); }
.rd__mini--4 { left: calc(var(--u) * (var(--aw) + 16) / 2); top: calc(var(--u) * (var(--ah) + 16) / 2); }
.rd__mhead { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 8); }
.rd__mhead small { display: flex; align-items: center; gap: calc(var(--u) * 6); flex: 1; min-width: 0; font-size: max(11px, calc(var(--u) * 11 * var(--k))); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd__mini h6 { margin-top: calc(var(--u) * 14); font-size: calc(var(--u) * 15 * var(--k)); font-weight: 600; line-height: 1.3; color: var(--text); }
.rd__mini p { margin-top: calc(var(--u) * 8); font-size: calc(var(--u) * 13 * var(--k)); line-height: 1.6; color: var(--body-2); }
.rd__mini mark { color: inherit; border-radius: calc(var(--u) * 2); }
.rd__mini--2 mark, .rd__mini--4 mark { background: rgba(41,153,140,.12); box-shadow: inset 0 calc(var(--u) * -2) 0 #29998C; }
.rd__mini--3 mark { background: rgba(224,84,51,.12); box-shadow: inset 0 calc(var(--u) * -2) 0 #E05433; }
.ap__sheet .chip--verified { --c: 8,122,82; } .ap__sheet .chip--low { --c: 180,35,35; } .ap__sheet .chip--strong { --c: 28,107,98; } .ap__sheet .chip--caution { --c: 138,92,0; }
.rd__pb { position: absolute; z-index: 2; top: calc(var(--u) * 14); left: calc(var(--u) * ((var(--aw) - 16) / 2 - 14)); transform: translateX(-100%); opacity: 0; }
.rd__ln { position: absolute; z-index: 2; opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.rd__ln .mk { width: calc(var(--u) * 26); height: calc(var(--u) * 26); box-shadow: 0 0 0 calc(var(--u) * 5) #EFEFF3; }
.rd__ln--ne { left: calc(var(--u) * var(--aw) / 2); top: calc(var(--u) * 96); }
.rd__ln--x { left: calc(var(--u) * 120); top: calc(var(--u) * var(--ah) / 2); }
.rd__ln--ok { left: calc(var(--u) * var(--aw) / 2); top: calc(var(--u) * var(--ah) / 2); }

/* ----- States, set from the scroll position. Each part has its own beat (.in), so a few notches of scroll always
   change something, and the text column and the window change on the same beats. ----- */
.rd__file.in { opacity: 1; transform: none; }
.rd.page .rd__file { opacity: 0; transform: scale(.96); }
.rd.page .ap__item { opacity: 1; transform: none; }
.rd.page .ap__item--1 { background: rgba(255,255,255,.07); }
.rd.page .ap__item--1::before { opacity: 1; }
.rd.page .rd__page { opacity: 1; transform: none; }
.rd.st-q .nh-q, .rd.st-a .nh-a { opacity: 1; }
.rd__note[data-s="q"] .nq, .rd__note[data-s="a"] .na, .rd__note[data-s="b"] .nb, .rd__note[data-s="c"] .nc { opacity: 1; transform: none; }
.rd.scanning .rd__scan { opacity: 1; }
.rd.scanning .rd__status i { background: rgb(var(--peri)); box-shadow: 0 0 0 calc(var(--u) * 3) rgba(var(--peri), .25); }
.rd.lv1 .ap__item--1 .chip--caution, .ap__item.lv .chip { opacity: 1; transform: none; }
.rd.coll .rd__page { transform: scale(calc((var(--aw) - 16) / 2 / var(--aw))); }
.rd.coll .rd__mini.in, .rd.coll .rd__pb { opacity: 1; transform: none; }
.rd.coll .rd__pb { transform: translateX(-100%); }
.rd.coll .rd__note > span, .rd.coll .rd__nh span { opacity: 0 !important; }
.rd.coll .rd__ln.in { opacity: 1; transform: translate(-50%, -50%); }
/* A fix: first suggested (grey strike, teal insert, the claim mark set aside), then applied, then read again (teal). */
.fx .rd__fx s { text-decoration: line-through; text-decoration-color: #8C8C9E; color: #5D5D6E; }
.fx .rd__fx ins { display: inline; margin-left: calc(var(--u) * 4); padding: 0 calc(var(--u) * 2); border-radius: calc(var(--u) * 2); background: rgba(41,153,140,.16); color: #12584F; }
.rd__c.fx { background: none !important; box-shadow: none !important; }
.rd__c.fx.ok { background: rgba(41,153,140,.12) !important; box-shadow: inset 0 calc(var(--u) * -2) 0 #29998C !important; }
.rd.s6 .rd__fx s { display: none; }
.rd.s6 .rd__fx ins { margin-left: 0; }
.rd.s6 .ok .rd__fx ins { padding: 0; background: none; color: inherit; }
.rd.lv-final .ap__item--1 .chip--caution { opacity: 0; transform: scale(.6); }
.rd.lv-final .ap__item--1 .chip--strong { opacity: 1; transform: none; }
.rd.lv-final .rd__status i { background: #4FC2B3; }
/* Then the withdrawn study leaves the collection: the three pieces that remain are all green. */
.rd.gone .ap__item--3 { opacity: 0; transform: translateX(calc(var(--u) * -16)); max-height: 0; padding-top: 0; padding-bottom: 0; }
.rd.gone .ap__title .n4 { display: none; }
.rd.gone .ap__title .n3 { display: inline; }
/* The text column's parts fade in on the beat of the window part they describe; they keep their space. */
/* The text column's parts arrive on the beat of the window part they describe. A panel shows with its first part and
   grows with the rest, so no empty frame waits on screen. */
.js .chapter:not(.is-measuring) .chapter__steps .bt:not(.in), .js .chapter:not(.is-measuring) .chapter__steps .cp:has(.bt):not(:has(.bt.in)) { display: none; }
.js .chapter__steps .bt.in { animation: cp-in .35s ease; }
/* Look at first: the claims it names stay bright, the rest of the article steps back. */
.rd.focus .rd__fig, .rd.focus .rd__last, .rd.focus .rd__col p:has(.rd__c--3), .rd.focus .rd__note--3 { opacity: .3; }

/* ----- Breakpoints ----- */
@media (max-width: 1279px) {
    .chapter__inner { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 48px; }
    .chapter__steps h3 { font-size: 32px; }
}
/* Laptop heights: a smaller headline; the step column drops its body line where a panel says it. */
@media (min-width: 1100px) and (max-height: 820px), (min-width: 900px) and (min-aspect-ratio: 1301/1000) and (max-height: 820px) {
    .chapter__title { font-size: 44px; }
    .chapter__inner { row-gap: 24px; }
    .js .chapter__inner { row-gap: 0; padding-bottom: 56px; }
    .js .chapter__scene { width: min(100%, calc((100svh - 220px) * 960 / 620)); }
    .chapter__steps h3 { font-size: 30px; }
    .chapter__steps h3 + p { font-size: 15px; margin-top: 8px; }
    .cp { margin-top: 16px; padding: 14px 16px; }
    .cp__chips { gap: 6px; }
    .cp__chips li { height: 26px; padding: 0 10px; font-size: 12.5px; }
    ul + .cp__h, .cp__fix + .cp__h { margin-top: 12px; }
    .cp__rows li { padding: 6px 0; font-size: 14px; }
}
/* Tablets held sideways: the narrow step column keeps room for its tallest step, so the window never moves. */
@media (min-width: 900px) and (max-width: 1099px) and (min-aspect-ratio: 1301/1000) {
    .js .chapter__steps { min-height: var(--steps-h, 0px); }
    .js .chapter__scene { align-self: center; }
}
/* Short sideways tablets: the narrow step column keeps only the panel where it says what the body line says. */
@media (min-width: 900px) and (max-width: 1099px) and (min-aspect-ratio: 1301/1000) and (max-height: 820px) {
    .chapter__steps li:has(.cp) > h3 + p { display: none; }
    .chapter__steps h3 { font-size: 26px; }
}
/* Below desktop: headline, then the step, then the window, stacked in the one pinned screen. A clearly wide screen
   from 900px (a tablet held sideways) keeps the side-by-side layout, which gives the window more room there. */
@media (max-width: 899px), (max-width: 1099px) and (max-aspect-ratio: 13/10) {
    .chapter__inner { display: flex; flex-direction: column; gap: 24px; }
    .chapter__title { font-size: 40px; }
    .chapter__scene { width: min(100%, 760px); align-self: center; }
    .js .chapter__inner { padding-top: 88px; padding-bottom: 16px; gap: 0; }
    .js .chapter__head { margin-bottom: 16px; }
    .js .chapter__copy { align-self: stretch; }
    .js .chapter__steps > li { align-self: start; }
    /* The text keeps room for its tallest step (measured by the script); the window fills what is left, so it never
       moves and never meets the text. */
    .js .chapter__steps { min-height: var(--steps-h, 0px); }
    .js .chapter__scene { flex: 1; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: center; width: 100%; padding: 24px 0 56px; }
    .js .chapter__stage { width: min(100cqw, 760px, calc(100cqh * 960 / 620)); }
    .js .chapter__bar { right: auto; left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); flex-direction: row; gap: 4px; }
    .chapter__bar i { --bar-dir: 90deg; width: 20px; height: 3px; }
    .chapter__bar i.on { width: 40px; height: 3px; }
    .chapter__steps h3 { font-size: 28px; }
    .chapter__steps h3 + p { font-size: 16px; }
    .cp { margin-top: 16px; padding: 16px; }
    .cp__rows li { padding: 6px 0; font-size: 14px; }
    /* Wide stacked screens (foldables, tablets): the step text keeps a readable line length, centred over the window. */
    .js .chapter__copy { align-self: center; width: min(100%, 720px); }
}
/* Near-square screens (an open foldable): the step's words and its panel sit side by side above the window, so the
   window gets the full width instead of half the screen. */
@media (min-width: 880px) and (max-width: 1099px) and (max-aspect-ratio: 13/10) {
    .js .chapter__copy { width: min(100%, 960px); }
    .js .chapter__steps > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto 1fr; column-gap: 40px; }
    .chapter__steps > li > * { grid-column: 1; }
    .chapter__steps > li > .cp { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
    .js .chapter__scene { padding: 16px 0 36px; }
    .js .chapter__stage { width: min(100cqw, 960px, calc(100cqh * 960 / 620)); }
    /* Compact words and panels, so the height goes to the window. */
    .chapter__title { font-size: 30px; }
    .js .chapter__inner { padding-top: 76px; }
    .js .chapter__head { margin-bottom: 8px; }
    .js .chapter__steps > li { align-self: center; }
    .chapter__steps h3 { font-size: 26px; }
    .chapter__steps h3 + p { font-size: 15px; margin-top: 8px; }
    .cp { padding: 12px 16px; }
    .cp__h + ul { margin-top: 8px; }
    ul + .cp__h, .cp__fix + .cp__h { margin-top: 10px; }
    .cp__chips { gap: 6px; }
    .cp__chips li { height: 26px; padding: 0 10px; font-size: 12.5px; }
    .cp__chips--models { gap: 0; }
    .cp__chips--models li, .cp__chips--models .cp__own { height: auto; padding: 0; border: 0; background: none; font-size: 13px; color: var(--on-ink-2); white-space: nowrap; }
    .cp__chips--models li:not(:last-child)::after { content: "·"; margin: 0 6px; color: var(--on-ink-3); }
    .cp__chips--models .cp__own::before { content: "+"; margin: 0 4px 0 0; }
    .cp__rows li { padding: 4px 0; font-size: 13.5px; }
    .cp__fix { font-size: 15px; }
    .cp__lift, .cp__lvl { margin-top: 8px; }
}
/* Phone: a narrower window grid with larger text; the sidebar folds and the pieces land in the sheet. */
@media (max-width: 767px) {
    .chapter__inner { width: var(--container); }
    .chapter__title { font-size: 28px; gap: 2px 12px; }
    .js .chapter__inner { padding-top: 80px; }
    .js .chapter__head { margin-bottom: 14px; --intro-k: .1; }
    .js .chapter__stage { width: min(100cqw, calc(100cqh * 420 / 430)); }
    .chapter__steps h3 { font-size: 21px; }
    .chapter__steps h3 + p { font-size: 15px; margin-top: 6px; }
    .chapter__steps .svc + h3 { margin-top: 8px; }
    .chapter__steps li:has(.cp) > h3 + p { display: none; }
    .cp { margin-top: 12px; padding: 12px 14px; border-radius: 12px; }
    .cp__h + ul { margin-top: 8px; }
    ul + .cp__h, .cp__fix + .cp__h { margin-top: 12px; }
    .cp__chips { gap: 6px; }
    .cp__chips li { height: 26px; padding: 0 10px; font-size: 12.5px; }
    .cp__chips--models { gap: 0; }
    .cp__chips--models li, .cp__chips--models .cp__own { height: auto; padding: 0; border: 0; background: none; font-size: 13px; color: var(--on-ink-2); white-space: nowrap; }
    .cp__chips--models li + li::before { content: "·"; margin: 0 6px; color: var(--on-ink-3); }
    .cp__chips--models .cp__own::before { content: "· +"; margin: 0 4px 0 6px; }
    .cp__rows li { padding: 4px 0; font-size: 13.5px; gap: 10px; }
    .cp__fix { font-size: 15px; }
    .cp__lift { margin-top: 10px; }
    .rd { --u: calc(100cqw / 420); --k: 1.1; --aw: 380; --ah: 346; aspect-ratio: 420 / 430; grid-template-rows: calc(var(--u) * 52) minmax(0, 1fr); border-radius: calc(var(--u) * 16); }
    .ap__head { gap: calc(var(--u) * 12); padding: 0 calc(var(--u) * 14); }
    .ap__brand > img { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
    .ap__brand .wm-tx img { height: calc(var(--u) * 14); }
    .ap__title, .ap__side, .rd__notes, .rd__fig, .rd__last, .rd__pb { display: none; }
    .ap__body { grid-template-columns: 1fr; padding: 0 calc(var(--u) * 8) calc(var(--u) * 8); }
    .rd__files { padding: calc(var(--u) * 36) calc(var(--u) * 12) 0; }
    .rd__page { grid-template-columns: minmax(0, 1fr); gap: 0; padding: calc(var(--u) * 18) calc(var(--u) * 12) 0 calc(var(--u) * 18); }
    .rd__page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u) * 48); background: linear-gradient(rgba(255,255,255,0), #fff); }
    .rd__note > span::before { display: none; }
    .rd__scan { left: calc(var(--u) * 12); width: calc(var(--u) * (var(--aw) - 50)); }
    .rd__mini { padding: calc(var(--u) * 12); }
    .rd__mini p { display: none; }
    .rd__mhead { flex-wrap: wrap; }
    .rd__mhead small { flex-basis: 100%; }
    .rd__pb { top: calc(var(--u) * 8); }
    .rd__ln--ne { top: calc(var(--u) * 60); }
    .rd .ap__sheet { padding-top: calc(var(--u) * 2); }
    .chapter__note { right: calc(var(--u) * 10); bottom: calc(var(--u) * 5); }
}
@media (prefers-reduced-motion: reduce) { .rd *, .js .chapter__steps > li { transition: none !important; animation: none !important; } }
