/* AmpleSign public site (/ = Arabic, /en/ = English). One stylesheet for both directions: logical properties only.
   No script on these pages: the door-sign switcher is radio inputs + :has(), entrances are CSS scroll timelines.
   The one motif is the logo's corner brackets: they frame every real capture, the hero and the footer mark. */

@font-face { font-family: "Plex Site"; font-weight: 400; font-display: swap; src: url("fonts/plex-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Site"; font-weight: 600; font-display: swap; src: url("fonts/plex-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Site"; font-weight: 700; font-display: swap; src: url("fonts/plex-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Site"; font-weight: 400; font-display: swap; src: url("fonts/plex-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Site"; font-weight: 600; font-display: swap; src: url("fonts/plex-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Site"; font-weight: 700; font-display: swap; src: url("fonts/plex-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --ground: #f1f2f6;
  --sheet: #fff;
  --ink: #14133b;
  --muted: #4d5170;
  --navy: #14133b;
  --on-navy: #fff;
  --on-navy-2: #c9cbe0;
  --teal: #0b7a5f; /* primary on light, white text */
  --teal-bright: #1fdcab; /* primary on navy, dark text */
  --teal-ink: #0b1512;
  /* door states, the boards' own light-theme status colours (board/themes.js) */
  --st-free: #0f6b39;
  --st-busy: #ad231a;
  --st-soon: #8a4f00;
  --st-focus: #244fae;

  --m: clamp(20px, 4.4vw, 64px); /* the page's one outer margin */
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(88px, 11vw, 168px);
  --font: "Plex Site", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: clamp(2.6rem, 6.3vw, 5.75rem);
  --title: clamp(2rem, 3.9vw, 3.5rem);
  --sub: clamp(1.6rem, 2.5vw, 2.25rem);
  --lead: clamp(1.15rem, 1.55vw, 1.4rem);
  --body: 1.0625rem;
  --note: 0.9375rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* brackets: stroke, arm, colour */
  --bw: clamp(4px, 0.5vw, 7px);
  --ba: clamp(20px, 3vw, 44px);
  --bc: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: 24px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--body) / 1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
img, svg { display: block; max-inline-size: 100%; }
img { block-size: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-inline-size: 0; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; }
::selection { background: var(--teal-bright); color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.navy :focus-visible, .foot :focus-visible { outline-color: var(--teal-bright); }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--display); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--title); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: var(--lead); line-height: 1.3; font-weight: 600; }
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; } /* Arabic is never tracked */
:lang(ar) h1 { line-height: 1.3; }
:lang(ar) h2 { line-height: 1.35; }
:lang(ar) h3 { line-height: 1.5; }
.lead { font-size: var(--lead); line-height: 1.5; max-inline-size: 34em; text-wrap: pretty; }
:lang(ar) .lead { line-height: 1.75; }
p { text-wrap: pretty; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
section { padding-block: calc(var(--section) / 2); }
.navy { background: var(--navy); color: var(--on-navy); --bc: #fff; }
.navy p, .navy li { color: var(--on-navy-2); }
.navy .lead { color: var(--on-navy); }
.sheet { background: var(--sheet); }

/* ---------- buttons, links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 52px; padding: 0 26px; background: var(--teal); color: #fff; font-weight: 600; font-size: var(--body); text-decoration: none; transition: background-color 140ms var(--ease), transform 140ms var(--ease); }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn.sm { min-block-size: 44px; padding: 0 18px; }
.link { font-weight: 600; text-decoration: underline; }
.link:hover { color: var(--teal); }
.navy .link:hover, .foot a:hover { color: var(--teal-bright); }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); padding: 22px var(--m); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: var(--lead); letter-spacing: -0.01em; margin-inline-end: auto; direction: ltr; }
.brand img { inline-size: 40px; block-size: 40px; }
.brand b { font-weight: 600; }
.nav a:not(.btn, .brand) { text-decoration: none; font-weight: 600; padding-block: 10px; }
.nav a:not(.btn, .brand):hover { color: var(--teal); }
.nav .sec { display: none; }

/* ---------- brackets around a capture ---------- */
.shot { position: relative; padding: calc(var(--bw) * 2.6); }
.shot-in { display: grid; position: relative; background: #121211; }
.shot img { inline-size: 100%; grid-area: 1 / 1; }
.shot::before, .shot::after, .shot-in::before, .shot-in::after { content: ""; position: absolute; inline-size: var(--ba); block-size: var(--ba); border: 0 solid var(--bc); pointer-events: none; transition: border-color 300ms var(--ease); }
.shot::before { inset-block-start: 0; inset-inline-start: 0; border-block-start-width: var(--bw); border-inline-start-width: var(--bw); --lx: -1; --ly: -1; }
.shot::after { inset-block-start: 0; inset-inline-end: 0; border-block-start-width: var(--bw); border-inline-end-width: var(--bw); --lx: 1; --ly: -1; }
.shot-in::before { inset-block-end: calc(var(--bw) * -2.6); inset-inline-start: calc(var(--bw) * -2.6); border-block-end-width: var(--bw); border-inline-start-width: var(--bw); --lx: -1; --ly: 1; }
.shot-in::after { inset-block-end: calc(var(--bw) * -2.6); inset-inline-end: calc(var(--bw) * -2.6); border-block-end-width: var(--bw); border-inline-end-width: var(--bw); --lx: 1; --ly: 1; }
.shot.sm { --bw: 4px; --ba: clamp(14px, 1.6vw, 22px); }
figcaption { font-size: var(--note); line-height: 1.5; color: var(--muted); margin-block-start: 14px; }
.shot figcaption { margin-block-start: calc(var(--bw) * 2.6 + 10px); }
.navy figcaption { color: var(--on-navy-2); }

/* ---------- hero: the mark at giant scale. One corner bracket holds the real capture and runs off the page ---------- */
.hero { padding-block: clamp(20px, 3vw, 44px) 0; }
.hero h1 { grid-column: 1 / -1; max-inline-size: 11em; }
.hero-text { grid-column: 1 / -1; padding-block: clamp(20px, 2.4vw, 36px) clamp(36px, 5vw, 64px); }
.hero-text .lead { margin-block-end: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.stage { grid-column: 1 / -1; margin-inline-end: calc(var(--m) * -1); border: 0 solid var(--navy); border-block-start-width: clamp(18px, 2.6vw, 40px); border-inline-start-width: clamp(18px, 2.6vw, 40px); padding: clamp(14px, 2.2vw, 34px); padding-block-end: 0; padding-inline-end: 0; }
.stage img { inline-size: 100%; }
.stage figcaption { padding-inline-end: var(--m); padding-block-end: 4px; }

/* ---------- door signs: the live thing ---------- */
.doors h2 { grid-column: 1 / -1; max-inline-size: 14em; }
.doors .lead { grid-column: 1 / -1; margin-block: 20px clamp(32px, 4vw, 56px); }
.door-demo { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 24px; --bc: var(--st-free); }
.door-shot { grid-column: 1 / -1; }
.door-shot img { opacity: 0; transition: opacity 300ms var(--ease); }
.door-shot img:first-child { opacity: 1; }
.states { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.states label { display: flex; align-items: center; gap: 12px; min-block-size: 52px; padding-inline: 14px; background: var(--sheet); color: var(--muted); font-weight: 600; cursor: pointer; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.states label::before { content: ""; flex: none; inline-size: 14px; block-size: 14px; background: var(--dot); }
.states label:hover { color: var(--ink); }
.states label:has(:checked) { background: var(--ink); color: #fff; }
.states label:has(:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.states .a { --dot: var(--st-free); }
.states .b { --dot: var(--st-busy); }
.states .s { --dot: var(--st-soon); }
.states .f { --dot: var(--st-focus); }
.states label:has(:checked).a { --dot: #5cd68e; }
.states label:has(:checked).b { --dot: #ff7b67; }
.states label:has(:checked).s { --dot: #f4b844; }
.states label:has(:checked).f { --dot: #92b2ff; }
.fact { grid-column: 1 / -1; grid-row: 3; display: none; font-size: var(--lead); line-height: 1.5; min-block-size: 4.5em; }
:lang(ar) .fact { line-height: 1.75; min-block-size: 5.25em; }
.fact.a { display: block; }
.door-demo:has([value="b"]:checked) { --bc: var(--st-busy); }
.door-demo:has([value="s"]:checked) { --bc: var(--st-soon); }
.door-demo:has([value="f"]:checked) { --bc: var(--st-focus); }
.door-demo:has([value="b"]:checked) .door-shot img.b,
.door-demo:has([value="s"]:checked) .door-shot img.s,
.door-demo:has([value="f"]:checked) .door-shot img.f { opacity: 1; }
.door-demo:has([value="b"]:checked, [value="s"]:checked, [value="f"]:checked) .fact.a { display: none; }
.door-demo:has([value="b"]:checked) .fact.b,
.door-demo:has([value="s"]:checked) .fact.s,
.door-demo:has([value="f"]:checked) .fact.f { display: block; }

/* lists of capabilities: a small filled square from the mark's screen where a bullet would be */
.points { display: grid; gap: 28px var(--gap); }
.points li { padding-inline-start: 30px; position: relative; }
.points li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.55em; inline-size: 14px; block-size: 10px; background: var(--teal); }
:lang(ar) .points li::before { inset-block-start: 0.8em; }
.navy .points li::before { background: var(--teal-bright); }
.points h3 { margin-block-end: 4px; }
.doors .points { grid-column: 1 / -1; margin-block-start: clamp(40px, 5vw, 72px); }

/* ---------- content ---------- */
.content h2 { grid-column: 1 / -1; max-inline-size: 13em; margin-block-end: clamp(28px, 3.4vw, 48px); }
.content .points { grid-column: 1 / -1; }
.pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); margin-block-end: 44px; }
.pair .shot { align-self: start; }
.pair .shot:nth-child(1) { grid-column: 1 / span 7; grid-row: 1; }
.pair .shot:nth-child(2) { grid-column: 3 / -1; grid-row: 1; margin-block-start: 39%; }
.pair figcaption { grid-column: 1 / -1; }

/* ---------- control: the wall ---------- */
.control h2 { grid-column: 1 / -1; max-inline-size: 13em; }
.control .lead { grid-column: 1 / -1; margin-block: 20px clamp(32px, 4vw, 56px); }
.wall { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.wall figcaption { display: flex; align-items: center; gap: 8px; }
.wall figcaption::before { content: ""; inline-size: 8px; block-size: 8px; background: var(--teal-bright); flex: none; }
.cast { grid-column: 1 / -1; margin-block-start: clamp(48px, 6vw, 88px); --bc: #ff7b67; }
.control .points { grid-column: 1 / -1; margin-block-start: 40px; }
.control h3 { color: var(--on-navy); }

/* ---------- how it works ---------- */
.how h2 { grid-column: 1 / -1; max-inline-size: 12em; }
.code { grid-column: 1 / -1; margin-block: clamp(28px, 4vw, 48px); max-inline-size: 30rem; }
.code .shot-in { background: var(--navy); color: #fff; padding: clamp(22px, 3vw, 40px) clamp(16px, 2.4vw, 32px); text-align: center; }
.code b { display: block; direction: ltr; font-size: var(--title); font-weight: 700; line-height: 1.1; letter-spacing: 0.14em; margin-inline-end: -0.14em; font-variant-numeric: tabular-nums; color: var(--teal-bright); }
.code span { display: block; font-size: var(--note); margin-block-start: 10px; color: var(--on-navy-2); }
.steps { grid-column: 1 / -1; display: grid; gap: 30px; }
.steps h3 { font-size: var(--sub); font-weight: 700; line-height: 1.15; margin-block-end: 6px; }
:lang(ar) .steps h3 { line-height: 1.4; }
.steps p { max-inline-size: 30em; }
.runs { grid-column: 1 / -1; margin-block-start: 36px; font-size: var(--lead); max-inline-size: 30em; }

/* ---------- calendars ---------- */
.cal h2 { grid-column: 1 / -1; max-inline-size: 12em; margin-block-end: clamp(28px, 3.4vw, 48px); }
.cal .shot { grid-column: 1 / -1; margin-block-end: 40px; }
.cals { grid-column: 1 / -1; display: grid; gap: 30px; }
.cals h3 { font-size: var(--sub); font-weight: 700; margin-block-end: 6px; }
.cals h3 span { font-weight: 400; color: var(--muted); }
.cals p + p { margin-block-start: 0.7em; }

/* ---------- Saudi ---------- */
.ksa { padding-block: 0; }
.panel { margin-inline: calc(var(--m) / 2); padding: clamp(40px, 6vw, 96px) calc(var(--m) / 2); }
.panel h2 { grid-column: 1 / -1; max-inline-size: 12em; }
.both { grid-column: 1 / -1; display: grid; gap: 22px var(--gap); margin-block: clamp(32px, 4vw, 56px); }
.panel .points { grid-column: 1 / -1; }
.panel h3 { color: var(--on-navy); }

/* ---------- call to action: the whole band is the link ---------- */
.cta { display: grid; grid-template-columns: auto 1fr; align-content: space-between; align-items: end; gap: 24px clamp(16px, 3vw, 48px); min-block-size: clamp(340px, 46vw, 620px); margin-block-start: calc(var(--section) / 2); padding: clamp(24px, 3vw, 44px) var(--m) clamp(8px, 1.4vw, 24px); background: var(--teal); color: #fff; text-decoration: none; overflow: clip; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.cta:hover, .cta:focus-visible { background: var(--teal-bright); color: var(--teal-ink); }
.cta:focus-visible { outline-offset: -8px; outline-color: var(--navy); }
.say { grid-column: 1 / -1; align-self: start; }
.cta p { font-size: var(--sub); line-height: 1.25; font-weight: 600; }
:lang(ar) .cta p { line-height: 1.55; }
.say span { display: block; font-size: var(--lead); margin-block-start: 10px; }
.cta svg { inline-size: clamp(36px, 9vw, 150px); block-size: auto; margin-block-end: clamp(14px, 3.4vw, 60px); transition: transform 300ms var(--ease); }
[dir="rtl"] .cta svg { transform: scaleX(-1); }
.cta:hover svg { transform: translate(6px, -6px); }
[dir="rtl"] .cta:hover svg { transform: scaleX(-1) translate(6px, -6px); }
.cta strong { font-weight: 700; font-size: var(--word); line-height: 0.9; letter-spacing: -0.045em; white-space: nowrap; }
:lang(en) .cta strong { --word: clamp(4.4rem, 18.5vw, 19rem); }
:lang(ar) .cta strong { --word: clamp(5.5rem, 25vw, 24rem); letter-spacing: 0; line-height: 1.15; }

/* ---------- footer: the mark, built large ---------- */
.foot { background: var(--navy); color: var(--on-navy-2); padding: clamp(48px, 7vw, 104px) var(--m) 36px; }
.foot .mark { grid-column: 1 / -1; inline-size: min(100%, 520px); margin-block-end: 48px; }
.foot .mark svg { inline-size: 100%; block-size: auto; }
.k1 { --lx: -1; --ly: -1; } .k2 { --lx: 1; --ly: -1; } .k3 { --lx: 1; --ly: 1; } .k4 { --lx: -1; --ly: 1; }
.foot nav { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--gap); margin-block-end: 40px; }
.foot nav a { color: #fff; text-decoration: none; font-weight: 600; padding-block: 9px; }
.foot .legal { grid-column: 1 / -1; font-size: var(--note); line-height: 1.7; }
.foot .legal a { color: #fff; }

/* ---------- from 760px: two columns ---------- */
@media (min-width: 760px) {
  .states { grid-template-columns: repeat(4, auto); justify-content: start; }
  .points { grid-template-columns: 1fr 1fr; }
  .wall { grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
  .both { grid-template-columns: 1fr 1fr; }
  .foot nav { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 40px; }
}

/* ---------- from 1000px: the composed page ---------- */
@media (min-width: 1000px) {
  .nav .sec { display: inline-flex; }
  .hero { padding-block-start: clamp(28px, 3.6vw, 56px); }
  .hero h1 { grid-column: 1 / span 10; }
  .hero-text { grid-column: 1 / span 4; grid-row: 2; padding-block: 56px 72px; }
  .stage { grid-column: 5 / -1; grid-row: 2; margin-block-start: 40px; }

  .doors .lead { grid-column: 1 / span 8; }
  .door-demo { grid-template-rows: auto 1fr; align-items: start; }
  .door-shot { grid-column: 1 / span 8; grid-row: 1 / span 2; }
  .states { grid-column: 9 / -1; grid-row: 1; grid-template-columns: 1fr; gap: 6px; padding-block-start: calc(var(--bw) * 2.6); }
  .states label { background: none; min-block-size: 0; padding: 6px 0; font-size: var(--sub); font-weight: 700; line-height: 1.2; }
  :lang(ar) .states label { line-height: 1.45; }
  .states label:has(:checked) { background: none; color: var(--ink); }
  .states label::before { inline-size: 18px; block-size: 18px; opacity: 0; transition: opacity 140ms var(--ease); }
  .states label:has(:checked)::before { opacity: 1; }
  .states label:has(:checked).a { --dot: var(--st-free); }
  .states label:has(:checked).b { --dot: var(--st-busy); }
  .states label:has(:checked).s { --dot: var(--st-soon); }
  .states label:has(:checked).f { --dot: var(--st-focus); }
  .fact { grid-column: 9 / -1; grid-row: 2; min-block-size: 0; align-self: end; padding-block-end: calc(var(--bw) * 2.6); font-size: var(--body); }
  :lang(ar) .fact { min-block-size: 0; }
  .doors .points { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }

  .content h2 { grid-column: 1 / span 5; grid-row: 1; align-self: start; }
  .content .points { grid-column: 1 / span 5; grid-row: 2; grid-template-columns: 1fr; align-self: start; }
  .pair { grid-column: 7 / -1; grid-row: 1 / span 2; margin-block-end: 0; align-self: start; }

  .control .lead { grid-column: 1 / span 8; }
  .cast { grid-column: 1 / span 6; }
  .control .points { grid-column: 8 / -1; grid-template-columns: 1fr; align-self: center; margin-block-start: clamp(48px, 6vw, 88px); }

  .how h2 { grid-column: 1 / span 5; grid-row: 1; }
  .code { grid-column: 1 / span 5; grid-row: 2; align-self: start; margin-block-end: 0; }
  .steps { grid-column: 7 / -1; grid-row: 1 / span 3; gap: 44px; }
  .runs { grid-column: 1 / span 5; grid-row: 3; margin-block-start: 28px; font-size: var(--body); }

  .cal h2 { grid-column: 1 / span 5; grid-row: 1; }
  .cals { grid-column: 1 / span 5; grid-row: 2; align-self: start; }
  .cal .shot { grid-column: 7 / -1; grid-row: 1 / span 2; margin-block-end: 0; margin-inline-end: calc(var(--m) * -0.5); align-self: center; }

  .panel .points { grid-template-columns: repeat(4, 1fr); }
  .foot .mark { grid-column: 1 / span 5; grid-row: 1 / span 2; margin-block-end: 0; }
  .foot nav { grid-column: 7 / -1; grid-template-columns: 1fr 1fr; align-self: start; }
  .foot .legal { grid-column: 7 / -1; align-self: end; }
}

/* ---------- motion. Content is visible by default; these only add travel. ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* on load: the headline rises, then the capture opens like a shutter while the giant bracket slides in */
  .hero h1, .hero-text > * { animation: rise 700ms var(--ease) both; }
  .hero-text > :nth-child(1) { animation-delay: 90ms; }
  .hero-text > :nth-child(2) { animation-delay: 180ms; }
  .stage { animation: lock-stage 900ms 150ms var(--ease) both; }
  .stage img { animation: shutter 1100ms 300ms var(--ease) both; }
  .stage figcaption { animation: rise 700ms 900ms var(--ease) both; }

  /* on scroll: the brackets close in on each capture, the logo's own "frame lock". Text stays put. */
  @supports (animation-timeline: view()) {
    .shot:not(.stage *)::before, .shot:not(.stage *)::after, .shot:not(.stage *) > .shot-in::before, .shot:not(.stage *) > .shot-in::after {
      animation: lock linear both; animation-timeline: view(); animation-range: entry 10% cover 34%;
    }
    .cta strong { animation: word linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .foot .mark [class^="k"] { animation: mark linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes lock-stage { from { opacity: 0; transform: translate(0, 28px); } }
@keyframes lock { from { transform: translate(calc(var(--lx) * var(--dir, 1) * 18px), calc(var(--ly) * 18px)); opacity: 0; } }
[dir="rtl"] { --dir: -1; } /* translate is physical; the corners are logical */
@keyframes word { from { transform: translateY(18%); } }
@keyframes mark { from { transform: translate(calc(var(--lx) * 5px), calc(var(--ly) * 5px)); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
