/* E&A Tax institutional site.
   Colours come from generated.css (the app's --ea-* tokens). Motion is driven by
   --p, a 0..1 scroll progress the engine writes on [data-scroll] elements; the
   default of 1 is the finished state, so the page is complete without JavaScript. */

:root {
  --navy: var(--ea-navy-900);
  --navy-deep: var(--ea-navy-950);
  --navy-soft: var(--ea-navy-800);
  --blue: var(--ea-blue-600);
  --blue-soft: var(--ea-blue-200);
  --ice: var(--ea-blue-100);
  --mist: var(--ea-canvas);
  --paper: var(--ea-surface);
  --ink: var(--ea-ink);
  --muted: var(--ea-muted);
  --line: var(--ea-border);
  --display: "Sora", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --wrap: 1200px;
  --section: clamp(88px, 12vw, 168px);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(11, 24, 40, 0.05), 0 12px 40px rgba(11, 24, 40, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--ea-blue-500); outline-offset: 3px; border-radius: 4px; }
.band-navy :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
::selection { background: var(--navy); color: #fff; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 18px; background: var(--navy); color: #fff; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 16px; }

.eyebrow { font: 700 12px/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy .eyebrow { color: var(--blue-soft); }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(34px, 5vw, 64px); }
.section-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 46ch; }
.band-navy .section-sub { color: var(--blue-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px;
  font: 600 15px/1.2 var(--body); text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-ghost { border-color: var(--ea-border-strong); color: var(--navy); background: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-quiet { color: var(--navy); }
.btn-quiet:hover { background: var(--ice); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--ice); }
.btn-outline { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.3s, box-shadow 0.3s; }
.site-header.is-stuck, .page-privacy .site-header, .page-terms .site-header, .page-accessibility .site-header, .page-notfound .site-header {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { flex: none; display: block; }
.brand img { height: 52px; width: auto; }
.nav-desktop { display: flex; gap: 6px; margin-left: auto; }
.nav-desktop a { padding: 10px 12px; border-radius: 6px; font: 600 14px/1 var(--body); color: var(--navy); text-decoration: none; }
.nav-desktop a:hover { background: var(--ice); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.7); }
.lang a { display: grid; place-items: center; min-width: 38px; height: 32px; border-radius: 999px; font: 700 12px/1 var(--body); letter-spacing: 0.06em; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--navy); }
.lang a[aria-current] { background: var(--navy); color: #fff; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform 0.3s var(--ease); }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile nav { position: absolute; right: 0; top: 56px; display: grid; min-width: 240px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav-mobile nav a { padding: 14px 12px; border-radius: 6px; font-weight: 600; color: var(--navy); text-decoration: none; }
.nav-mobile nav a:hover { background: var(--ice); }
@media (max-width: 1080px) {
  .nav-desktop, .header-signin { display: none; }
  .header-tools { margin-left: auto; }
  .nav-mobile { display: block; }
}
@media (max-width: 560px) {
  .header-talk { display: none; }
  .header-row { min-height: 68px; gap: 12px; }
  .brand img { height: 48px; }
}

/* 1. Hero: the brand bars as a field that recedes to a horizon, and a small figure who crosses it */
.hero { --p: 0; --mx: 0; --my: 0; position: relative; background: var(--mist); }
.hero-sticky { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
/* The bars hang from the bottom of the hero and fill its last 34vh whatever its height, and the copy
   keeps clear of them with its bottom padding, so on a short window or at 200 percent zoom the hero
   grows instead of the text sitting on the bars. */
.hero-field { position: absolute; inset: auto 0 0; height: 100vh; pointer-events: none; }
.hero-row {
  position: absolute; left: -20%; width: 140%; top: var(--y); height: var(--h);
  transform: translate3d(calc(var(--mx) * var(--z) * -56px), calc(var(--my) * var(--z) * -16px), 0);
  will-change: transform;
}
.hero-row i {
  display: block; height: 100%; width: calc(100% + var(--h) * var(--bars-ratio)); background: var(--c);
  -webkit-mask: url("../brand/bars.svg") 0 0 / auto 100% repeat-x;
  mask: url("../brand/bars.svg") 0 0 / auto 100% repeat-x;
}
.hero-copy { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; padding-top: clamp(132px, 19vh, 200px); padding-bottom: 38vh; }
.hero h1 { display: grid; gap: 0.04em; font-size: clamp(38px, 6.4vw, 92px); letter-spacing: -0.05em; line-height: 1.02; }
.h-light { font-weight: 300; color: var(--navy); }
.h-strong { font-weight: 600; color: var(--blue); }
.lede { max-width: 40ch; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); }
.hero .actions { justify-content: center; margin-top: 8px; }

/* The figure. JavaScript places it with --x and --y (pixels) and sizes it with --s. */
.runner, .goal { display: none; position: absolute; left: 0; top: 0; --x: 0; --y: 0; --z: 1; --s: 1; }
.runner {
  width: 60px; height: 80px; transform-origin: 50% 100%;
  transform: translate3d(calc(var(--x) * 1px - 50% + var(--mx) * var(--z) * -56px), calc(var(--y) * 1px - 100% + var(--my) * var(--z) * -16px), 0) scale(var(--s));
}
.runner svg { overflow: visible; transform-origin: 50% 100%; transform: scale(calc(var(--dir, 1) * (2 - var(--sq, 1))), var(--sq, 1)) rotate(calc(var(--lean, 0) * 1deg)); }
.runner-body, .runner-head { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.runner-folder { fill: var(--blue-soft); stroke: var(--navy); stroke-width: 2.5; }
.runner-scarf { fill: none; stroke: var(--ea-blue-500); stroke-width: 4; stroke-linecap: round; }
.runner-leg { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; transform-origin: 30px 56px; }
.runner-leg-a { transform: rotate(calc(var(--air, 0) * 26deg)); }
.runner-leg-b { transform: rotate(calc(var(--air, 0) * -26deg)); }
.goal { width: 3px; height: 46px; background: var(--navy); border-radius: 2px; transform-origin: 50% 100%;
  transform: translate3d(calc(var(--x) * 1px + var(--mx) * var(--z) * -56px), calc(var(--y) * 1px - 100% + var(--my) * var(--z) * -16px), 0) scale(var(--s)); }
.goal i { position: absolute; left: 3px; top: 0; width: 26px; height: 17px; background: var(--ea-blue-500); border-radius: 0 3px 3px 0; transform-origin: 0 50%; transform: scaleX(0.25); transition: transform 0.5s var(--ease), background-color 0.3s; }
.hero.is-won .goal i { transform: scaleX(1); background: var(--ea-success); }
html.motion .hero.is-ready .runner, html.motion .hero.is-ready .goal { display: block; }

@media (max-width: 640px) {
  .hero-sticky { min-height: 122vh; min-height: 122svh; }
}

/* 2. Pillars: the symbol as architecture */
.pillars { --p: 1; padding-block: var(--section); }
.pillars .wrap { display: grid; gap: clamp(32px, 5vw, 56px); }
.symbol { display: grid; gap: clamp(8px, 1.6vw, 20px); }
.symbol-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 20px); }
.pillar, .symbol-base { background: #fff; color: var(--navy); border-radius: clamp(4px, 0.6vw, 8px); }
.pillar { display: grid; align-content: end; gap: 6px; aspect-ratio: 8 / 3.7125; padding: clamp(14px, 2.4vw, 32px); }
.pillar strong { font: 600 clamp(17px, 4.4vw, 60px)/1 var(--display); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.pillar span { font-size: clamp(12px, 1.3vw, 17px); color: var(--muted); }
.symbol-base { display: grid; place-items: center; min-height: clamp(48px, 7vw, 92px); padding: 12px 20px; text-align: center; transform-origin: 0 50%; }
.symbol-base span { font: 500 clamp(14px, 1.8vw, 22px)/1.2 var(--display); letter-spacing: -0.02em; }
.pillars-lead { max-width: 30ch; font: 300 clamp(24px, 3.4vw, 44px)/1.2 var(--display); letter-spacing: -0.035em; color: #fff; }
@media (max-width: 640px) {
  .pillar { aspect-ratio: auto; min-height: 104px; padding: 12px; }
  .pillar span { display: none; }
}

/* 3. Services */
.services { padding-block: var(--section); background: var(--paper); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; perspective: 1400px; }
.card {
  --rx: 0; --ry: 0;
  grid-column: span 2; display: grid; align-content: start; gap: 12px; min-height: 230px; padding: clamp(22px, 2.6vw, 34px);
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
}
.card-wide { grid-column: span 3; min-height: 300px; }
.card-full { grid-column: 1 / -1; min-height: 0; }
.card-ink { background: var(--navy); border-color: var(--navy); color: #fff; }
.card .icon { width: 30px; height: 30px; color: var(--blue); margin-bottom: 14px; }
.card-ink .icon { color: var(--blue-soft); }
.card h3 { font-size: clamp(22px, 2.2vw, 30px); }
.card p { color: var(--muted); max-width: 34ch; }
.card-ink p { color: var(--blue-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: end; margin-top: 20px; }
.chips li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 13px/1 var(--body); color: var(--navy); font-variant-numeric: tabular-nums; }
.card-ink .chips li { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: #fff; }
@media (max-width: 900px) { .card, .card-wide { grid-column: span 3; min-height: 0; } .card:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .card, .card-wide { grid-column: 1 / -1; } }

/* 4. Portal: a pile of paperwork that sorts itself, then the story */
.portal { background: var(--mist); padding-bottom: var(--section); }
.pile-stage { --p: 1; }
.pile-sticky { position: relative; height: 100vh; min-height: 560px; max-height: 1100px; overflow: hidden; container-type: size; }
.pile-head { position: relative; z-index: 30; display: grid; gap: 16px; justify-items: center; text-align: center; padding-top: clamp(96px, 14vh, 150px); }
.pile-head h2 { font-size: clamp(34px, 5.6vw, 76px); letter-spacing: -0.045em; }
.paper {
  /* --g: how far it has fallen (gravity: slow, then fast). --t: how far it has been sorted. */
  --f: clamp(0, calc((var(--p) - var(--df)) * 4.2), 1);
  --g: calc(var(--f) * var(--f));
  --e: clamp(0, calc((var(--p) - var(--d)) * 4), 1);
  --t: calc(var(--e) * var(--e) * (3 - 2 * var(--e)));
  position: absolute; left: 0; top: 0; width: clamp(64px, 11cqw, 156px); aspect-ratio: 3 / 4;
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  box-shadow: 0 1px 2px rgba(11, 24, 40, 0.06), 0 10px 24px rgba(11, 24, 40, 0.1);
  transform:
    translate(
      calc((var(--x0) + (var(--x1) - var(--x0)) * var(--t)) * 1cqw - 50%),
      calc((var(--y0) - (1 - var(--g)) * (var(--y0) + 34) + (var(--y1) - var(--y0)) * var(--t)) * 1cqh - 50%))
    rotate(calc((var(--r0) + (1 - var(--g)) * var(--spin) + (var(--r1) - var(--r0)) * var(--t)) * 1deg));
  will-change: transform;
}
.paper::before, .paper::after, .paper i { content: ""; position: absolute; display: block; }
/* ruled lines */
.paper::before { inset: 30% 14% 22%; background: repeating-linear-gradient(to bottom, var(--line) 0 9%, transparent 9% 25%); }
.paper-form::after { left: 14%; top: 12%; width: 46%; height: 8%; border-radius: 2px; background: var(--blue); }
.paper-form i { right: 14%; bottom: 9%; width: 9%; aspect-ratio: 1; border: 2px solid var(--ea-border-strong); border-radius: 2px; }
.paper-statement::after { left: 14%; right: 14%; top: 11%; height: 14%; border-radius: 2px; background: var(--ice); }
.paper-statement::before { inset: 34% 14% 12%; background: linear-gradient(to right, var(--blue-soft) 0 16%, transparent 16% 28%, var(--ea-blue-500) 28% 44%, transparent 44% 56%, var(--blue-soft) 56% 72%, transparent 72% 84%, var(--navy) 84% 100%) bottom / 100% 70% no-repeat; }
.paper-invoice::after { left: 0; right: 0; top: 0; height: 16%; border-radius: 4px 4px 0 0; background: var(--navy); }
.paper-invoice i { right: 14%; bottom: 9%; width: 36%; height: 8%; border-radius: 2px; background: var(--ea-success-bg); border: 1px solid var(--ea-success); }
.paper-contract::after { left: 14%; bottom: 14%; width: 44%; height: 0; border-bottom: 3px solid var(--blue); border-radius: 2px; transform: rotate(-4deg); }
.paper-contract i { right: 13%; bottom: 9%; width: 16%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ea-blue-500); }
.paper-receipt { width: clamp(46px, 7cqw, 96px); aspect-ratio: 1 / 2.3; border-radius: 3px; }
.paper-receipt::before { inset: 12% 16% 30%; background: repeating-linear-gradient(to bottom, var(--line) 0 5%, transparent 5% 14%); }
.paper-receipt::after { left: 16%; right: 16%; bottom: 12%; height: 6%; border-radius: 2px; background: var(--navy); }
.paper-note { width: clamp(52px, 8cqw, 110px); aspect-ratio: 1; background: var(--ea-warning-bg); border-color: transparent; border-radius: 3px; }
.paper-note::before { inset: 26% 18% 40%; background: repeating-linear-gradient(to bottom, var(--ea-warning) 0 12%, transparent 12% 44%); opacity: 0.45; }
.paper-letter { aspect-ratio: 3 / 2; background: var(--ice); }
.paper-letter::before { inset: 0; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 58%); }
.paper-letter::after { right: 9%; top: 12%; width: 12%; aspect-ratio: 4 / 5; border-radius: 2px; background: var(--ea-blue-500); }
.paper-card { aspect-ratio: 16 / 10; border-radius: 8px; }
.paper-card::before { inset: 26% 12% 26% 44%; }
.paper-card::after { left: 12%; top: 24%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--blue-soft); }

/* more kinds of paper */
.paper-invoice-blue::after { left: 0; right: 0; top: 0; height: 22%; border-radius: 4px 4px 0 0; background: var(--ea-blue-500); }
.paper-invoice-blue::before { inset: 34% 14% 26%; }
.paper-invoice-blue i { left: 14%; right: 14%; bottom: 9%; height: 9%; border-radius: 2px; background: var(--ice); border: 1px solid var(--blue-soft); }
.paper-invoice-paid::after { left: 14%; top: 11%; width: 34%; height: 9%; border-radius: 2px; background: var(--navy); }
.paper-invoice-paid i { right: 10%; top: 9%; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ea-success); background: var(--ea-success-bg); transform: rotate(-12deg); }
.paper-wage::before { inset: 26% 12% 12%; background:
  linear-gradient(var(--line), var(--line)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--line), var(--line)) 0 33% / 100% 2px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 66% / 100% 2px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 2px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 0 / 2px 100% no-repeat, linear-gradient(var(--line), var(--line)) 50% 0 / 2px 100% no-repeat,
  linear-gradient(var(--line), var(--line)) 100% 0 / 2px 100% no-repeat; }
.paper-wage::after { left: 12%; top: 10%; width: 30%; height: 9%; border-radius: 2px; background: var(--navy); }
.paper-wage i { right: 12%; top: 10%; width: 22%; height: 9%; border-radius: 2px; background: var(--blue-soft); }
.paper-certificate { border: 3px double var(--ea-blue-500); }
.paper-certificate::before { inset: 22% 20% 44%; }
.paper-certificate::after { left: 50%; bottom: 12%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--ea-blue-500); transform: translateX(-50%); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ea-blue-500); }
.paper-contract-two::before { inset: 14% 14% 40%; }
.paper-contract-two::after { left: 14%; bottom: 24%; width: 40%; height: 0; border-bottom: 3px solid var(--blue); transform: rotate(-5deg); }
.paper-contract-two i { left: 14%; right: 14%; bottom: 10%; height: 0; border-bottom: 2px dashed var(--ea-border-strong); }
.paper-receipt, .paper-receipt-short, .paper-slip, .paper-ticket { border-radius: 2px; clip-path: polygon(0 0, 100% 0, 100% 96%, 90% 100%, 80% 96%, 70% 100%, 60% 96%, 50% 100%, 40% 96%, 30% 100%, 20% 96%, 10% 100%, 0 96%); border-bottom: 0; }
.paper-receipt-short { width: clamp(50px, 8cqw, 104px); aspect-ratio: 1 / 1.25; }
.paper-receipt-short::before { inset: 16% 16% 44%; background: repeating-linear-gradient(to bottom, var(--line) 0 9%, transparent 9% 26%); }
.paper-receipt-short::after { left: 16%; right: 16%; bottom: 18%; height: 11%; border-radius: 2px; background: var(--ea-blue-500); }
.paper-slip { width: clamp(46px, 7.5cqw, 100px); aspect-ratio: 1 / 1.8; }
.paper-slip::after { left: 0; right: 0; top: 0; height: 14%; background: var(--ea-blue-500); }
.paper-slip::before { inset: 24% 16% 34%; background: repeating-linear-gradient(to bottom, var(--line) 0 6%, transparent 6% 17%); }
.paper-slip i { left: 16%; right: 16%; bottom: 14%; height: 9%; background: repeating-linear-gradient(to right, var(--navy) 0 6%, transparent 6% 10%, var(--navy) 10% 13%, transparent 13% 20%); }
.paper-ticket { width: clamp(44px, 7cqw, 92px); aspect-ratio: 1 / 1.5; background: var(--ea-warning-bg); border-color: transparent; }
.paper-ticket::before { inset: 16% 18% 46%; background: repeating-linear-gradient(to bottom, var(--ea-warning) 0 8%, transparent 8% 24%); opacity: 0.4; }
.paper-ticket::after { left: 18%; bottom: 20%; width: 42%; height: 9%; border-radius: 2px; background: var(--ea-warning); opacity: 0.7; }

.trays { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.tray {
  position: absolute; left: calc(var(--x) * 1cqw); top: calc(var(--tray-y) * 1cqh + clamp(43px, 7.4cqw, 104px) + 18px);
  transform: translateX(-50%); display: grid; justify-items: center; gap: 10px;
  font: 600 clamp(11px, 1.2vw, 15px)/1 var(--body); letter-spacing: 0.02em; color: var(--navy); white-space: nowrap;
}
.tray::before { content: ""; width: clamp(72px, 13cqw, 190px); height: 6px; border-radius: 3px; background: var(--navy); }

.story { display: grid; gap: 40px; margin-top: clamp(56px, 8vw, 120px); }
.beat { display: grid; gap: 12px; align-content: center; }
.beat-n { font: 600 13px/1 var(--body); letter-spacing: 0.14em; color: var(--blue); }
.beat h3 { font-size: clamp(28px, 3.6vw, 48px); }
.beat p { max-width: 36ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.beat .beat-extra { color: var(--navy); font-weight: 600; }
.beat-shot { margin-top: 16px; }
.story-stage { display: none; }
.sample { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.browser { overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(11, 24, 40, 0.05), 0 30px 80px rgba(11, 24, 40, 0.16); }
.browser-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--mist); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-soft); }
.browser-view { position: relative; aspect-ratio: 1440 / 900; }
.story-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.02); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.story[data-active="0"] .story-shot-0, .story[data-active="1"] .story-shot-1,
.story[data-active="2"] .story-shot-2, .story[data-active="3"] .story-shot-3 { opacity: 1; transform: none; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
  .beat { min-height: 72vh; padding-left: 24px; border-left: 3px solid transparent; transition: border-color 0.4s; }
  .beat-shot { display: none; }
  .story-stage { display: grid; position: sticky; top: 0; height: 100vh; align-self: start; align-content: center; }
  /* The current beat is marked by a rule beside it, not by fading the others: they stay readable. */
  .story[data-active="0"] .beat[data-beat="0"], .story[data-active="1"] .beat[data-beat="1"],
  .story[data-active="2"] .beat[data-beat="2"], .story[data-active="3"] .beat[data-beat="3"] { border-left-color: var(--navy); }
}
/* The interactive portal demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; margin-top: clamp(72px, 10vw, 150px); }
@media (min-width: 900px) { .demo { grid-template-columns: minmax(0, 1fr) auto; } }
.demo-copy { display: grid; gap: 16px; justify-items: start; }
.demo-copy h3 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.045em; }
.demo-nav { display: grid; gap: 10px; width: 100%; max-width: 520px; margin-top: 14px; }
.demo-nav label { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; row-gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s var(--ease); }
.demo-nav label:hover { border-color: var(--ea-border-strong); transform: translateX(4px); }
.demo-nav .icon { grid-row: span 2; align-self: center; color: var(--blue); }
.demo-nav strong { font: 500 18px/1.25 var(--display); letter-spacing: -0.02em; color: var(--navy); }
.demo-nav span { font-size: 15px; color: var(--muted); }
.demo .sample { text-align: left; }
.demo-device { position: relative; justify-self: center; padding: clamp(20px, 4vw, 56px); }
.demo-device::before { content: ""; position: absolute; inset: 8% 0; border-radius: 28px; background: var(--ice); }
.phone { position: relative; width: min(100%, clamp(280px, 26vw, 330px)); padding: 10px; border-radius: 44px; background: var(--navy); box-shadow: 0 2px 4px rgba(11, 24, 40, 0.2), 0 40px 80px rgba(11, 24, 40, 0.28); }
.demo-screen { position: relative; display: grid; grid-template-rows: 1fr auto; height: clamp(560px, 52vw, 640px); max-height: 78vh; overflow: hidden; border-radius: 34px; background: var(--mist); font-size: 14px; line-height: 1.45; color: var(--ink); }
.demo-badge { position: absolute; top: 10px; right: 14px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: var(--ice); color: var(--navy); font: 700 10.5px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; }
.demo-radio { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.demo-views { position: relative; overflow: hidden; }
.demo-view { position: absolute; inset: 0; display: grid; align-content: start; gap: 12px; padding: 34px 16px 16px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s 0.35s; }
.demo:has(#demo-tab-home:checked) .demo-view-home, .demo:has(#demo-tab-docs:checked) .demo-view-docs,
.demo:has(#demo-tab-chat:checked) .demo-view-chat, .demo:has(#demo-tab-pay:checked) .demo-view-pay { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.demo:has(#demo-tab-home:checked) .demo-tab-home, .demo:has(#demo-tab-docs:checked) .demo-tab-docs,
.demo:has(#demo-tab-chat:checked) .demo-tab-chat, .demo:has(#demo-tab-pay:checked) .demo-tab-pay { color: var(--navy); background: var(--ice); }
.demo:has(#demo-tab-home:checked) .demo-nav-home label, .demo:has(#demo-tab-docs:checked) .demo-nav-docs label,
.demo:has(#demo-tab-chat:checked) .demo-nav-chat label, .demo:has(#demo-tab-pay:checked) .demo-nav-pay label { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--navy), var(--shadow); }
.demo:has(#demo-tab-home:focus-visible) .demo-tab-home, .demo:has(#demo-tab-docs:focus-visible) .demo-tab-docs,
.demo:has(#demo-tab-chat:focus-visible) .demo-tab-chat, .demo:has(#demo-tab-pay:focus-visible) .demo-tab-pay { outline: 3px solid var(--ea-blue-500); outline-offset: -3px; }
.demo-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 8px 8px 12px; background: #fff; border-top: 1px solid var(--line); }
.demo-tab { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 12px; font: 600 10.5px/1.1 var(--body); color: var(--muted); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.demo-tab .icon { width: 20px; height: 20px; }
@media (max-width: 400px) {
  .demo-device { padding-inline: 0; }
  .demo-tabs { gap: 0; padding-inline: 4px; }
  .demo-tab { font-size: 10px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
}
.demo-hello { font: 500 26px/1.1 var(--display); letter-spacing: -0.04em; color: var(--navy); }
.demo-heading { font: 500 20px/1.2 var(--display); letter-spacing: -0.03em; color: var(--navy); }
.demo-label { font: 700 10.5px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.demo-strong { font: 600 16px/1.3 var(--body); }
.demo-card { display: grid; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.demo-card-ink { background: var(--navy); border-color: var(--navy); color: #fff; }
.demo-card-ink .demo-label { color: var(--blue-soft); }
.demo-btn { justify-self: start; min-height: 40px; padding: 8px 14px; border: 1px solid var(--ea-border-strong); border-radius: 8px; background: #fff; color: var(--navy); font: 600 13px/1 var(--body); cursor: pointer; transition: background-color 0.2s, transform 0.2s var(--ease); }
.demo-btn:hover { background: var(--ice); }
.demo-btn:active { transform: scale(0.96); }
.demo-btn[aria-disabled="true"] { cursor: default; opacity: 0.7; }
.demo-btn-light { border-color: #fff; }
.demo-btn-ink { justify-self: stretch; min-height: 46px; background: var(--navy); border-color: var(--navy); color: #fff; font-size: 14px; }
.demo-btn-ink:hover { background: var(--blue); }
.demo-stages { display: grid; gap: 10px; }
.demo-stages li { display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: 10px; color: var(--muted); }
.demo-stages li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ea-border-strong); }
.demo-stages .is-past::before { background: var(--ea-success); border-color: var(--ea-success); }
.demo-stages .is-now { color: var(--navy); font-weight: 600; }
.demo-stages .is-now::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px var(--ice); }
.demo-count { color: var(--muted); }
.demo-count b { color: var(--navy); }
.demo-meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.demo-meter i { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--ea-success); transform-origin: 0 50%; transform: scaleX(0.3333); transition: transform 0.7s var(--ease); }
.demo-docs { display: grid; gap: 8px; }
.demo-docs li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.3s, background-color 0.3s; }
.demo-doc-icon { width: 30px; height: 36px; border-radius: 4px; background: var(--ice); border: 1px solid var(--line); }
.demo-doc-name { font-weight: 600; }
.demo-done, .demo-docs .is-done .demo-btn { justify-self: end; padding: 6px 10px; border: 0; border-radius: 999px; background: var(--ea-success-bg); color: var(--ea-success); font: 700 12px/1 var(--body); opacity: 1; min-height: 0; }
.demo-docs .is-done { border-color: var(--ea-success-bg); }
.demo-docs .is-done .demo-doc-icon { background: var(--ea-success-bg); border-color: var(--ea-success); }
.demo-docs .is-sending .demo-doc-icon { animation: lift 0.55s var(--ease) infinite alternate; }
.demo-thread { display: grid; gap: 8px; align-content: start; }
.bubble { justify-self: start; max-width: 86%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); }
.bubble-me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--navy); border-color: var(--navy); color: #fff; }
.bubble-typing { display: flex; gap: 4px; padding: 14px; }
.bubble-typing[hidden] { display: none; }
.bubble-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ea-border-strong); animation: blink 1s infinite; }
.bubble-typing i:nth-child(3) { animation-delay: 0.15s; }
.bubble-typing i:nth-child(4) { animation-delay: 0.3s; }
.demo-asks { display: grid; gap: 6px; justify-items: end; margin-top: 4px; }
.demo-chip { padding: 9px 13px; border: 1px solid var(--blue); border-radius: 999px; background: transparent; color: var(--blue); font: 600 13px/1.2 var(--body); cursor: pointer; text-align: right; transition: background-color 0.2s, color 0.2s; }
.demo-chip:hover { background: var(--blue); color: #fff; }
.demo-amount { font: 600 38px/1 var(--display); letter-spacing: -0.04em; color: var(--navy); font-variant-numeric: tabular-nums; }
.demo-due { color: var(--muted); }
.demo-paid { display: none; justify-items: center; gap: 6px; padding-top: 6px; text-align: center; }
.demo-check { width: 46px; height: 46px; border-radius: 50%; background: var(--ea-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") 50% / 26px no-repeat; }
.demo.is-paid .demo-paid { display: grid; animation: pop 0.5s var(--ease); }
.demo.is-paid [data-pay] { display: none; }
@keyframes lift { to { transform: translateY(-5px); } }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); } 60% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }

/* 5. Steps */
.steps-section { padding-block: var(--section); background: var(--paper); }
.steps { --p: 1; --g: clamp(16px, 3vw, 40px); position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); }
.steps::before, .steps::after { content: ""; position: absolute; left: 22px; right: calc((100% - var(--g) * 3) / 4 - 24px); top: 22px; height: 2px; background: var(--line); }
.steps::after { background: var(--navy); transform-origin: 0 50%; transform: scaleX(clamp(0, calc((var(--p) - 0.16) * 3.2), 1)); }
.step { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; }
.step-dot { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 16px/1 var(--display); box-shadow: 0 0 0 8px var(--paper); }
.step h3 { font-size: clamp(20px, 2vw, 26px); }
.step p { color: var(--muted); max-width: 26ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; padding-left: 4px; }
  .steps::before, .steps::after { left: 26px; right: auto; top: 22px; bottom: 60px; width: 2px; height: auto; }
  .steps::after { transform-origin: 50% 0; transform: scaleY(clamp(0, calc((var(--p) - 0.16) * 2.4), 1)); }
  .step { grid-template-columns: 46px 1fr; column-gap: 20px; }
  .step-dot { grid-row: span 2; margin: 0; }
}

/* 6. Trust */
.trust { padding-block: var(--section); }
.seals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-bottom: 16px; }
.seal { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); padding: clamp(22px, 3vw, 40px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); background: var(--navy-soft); }
.seal-badge { flex: none; display: grid; place-items: center; width: clamp(84px, 9vw, 120px); aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; font: 600 clamp(20px, 2.4vw, 30px)/1 var(--display); letter-spacing: -0.02em; }
.seal h3 { font-size: clamp(20px, 2.1vw, 28px); }
.seal p { margin-top: 6px; color: var(--blue-soft); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.facts li { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.4vw, 30px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); }
.facts .icon { width: 26px; height: 26px; margin-bottom: 12px; color: var(--blue-soft); }
.facts h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
.facts p { font-size: 15px; color: var(--blue-soft); }

/* 7. Where: the country in blocks */
.where { padding-block: var(--section); background: var(--mist); }
.where-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .where-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.where .section-head { margin-bottom: 32px; }
.where-cards { display: grid; gap: 12px; }
.where-cards li { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; row-gap: 2px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.where-cards .icon { grid-row: span 3; color: var(--blue); margin-top: 2px; }
.where-cards h3 { font-size: 19px; letter-spacing: -0.02em; }
.where-cards p { grid-column: 2; color: var(--muted); }
.tiles { --p: 1; display: grid; grid-template-columns: repeat(11, 1fr); gap: clamp(3px, 0.6vw, 8px); }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: clamp(2px, 0.4vw, 5px); background: #fff; border: 1px solid var(--line); font: 700 clamp(8px, 1vw, 12px)/1 var(--body); color: var(--muted); }
.tiles-wave .tile:not(.tile-home) {
  --on: clamp(0, calc((var(--p) * 2.1 - var(--d) - 0.42) * 5), 1);
  color: color-mix(in srgb, var(--navy) calc(var(--on) * 100%), var(--muted));
  background: color-mix(in srgb, var(--blue-soft) calc(var(--on) * 100%), #fff);
  border-color: color-mix(in srgb, var(--blue-soft) calc(var(--on) * 100%), var(--line));
}
.tile-home { background: var(--navy); border-color: var(--navy); color: #fff; z-index: 1; }
.tile-pin { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 6px 10px; border-radius: 6px; background: var(--navy); color: #fff; font: 600 clamp(11px, 1.1vw, 13px)/1 var(--body); white-space: nowrap; }
.tile-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 8px; background: var(--navy); transform: translateX(-50%); }

/* 8. Languages */
.languages { --p: 0.5; padding-block: var(--section); background: var(--paper); overflow: hidden; }
.lang-words { display: grid; gap: 0; justify-items: center; }
.lang-word { font: 600 clamp(52px, 13vw, 200px)/1 var(--display); letter-spacing: -0.06em; text-decoration: none; color: transparent; -webkit-text-stroke: 1.5px var(--ea-border-strong); transition: color 0.3s, -webkit-text-stroke-color 0.3s; white-space: nowrap; }
.lang-word[aria-current], .lang-word:hover { color: var(--navy); -webkit-text-stroke-color: var(--navy); }
.lang-word-1 { transform: translateX(calc((var(--p) - 0.5) * -24vw)); }
.lang-word-2 { transform: translateX(calc((var(--p) - 0.5) * 24vw)); }
.lang-word-3 { transform: translateX(calc((var(--p) - 0.5) * -16vw)); }
.lang-team { margin-top: 40px; text-align: center; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }

/* 9. Questions */
.faq { padding-block: var(--section); background: var(--mist); }
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.faq-list { display: grid; gap: 10px; align-content: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font: 500 clamp(17px, 1.6vw, 20px)/1.3 var(--display); letter-spacing: -0.02em; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--navy), var(--navy)) 50% / 100% 2px no-repeat, linear-gradient(var(--navy), var(--navy)) 50% / 2px 100% no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); max-width: 56ch; }

/* 10. Closing band */
.cta { --p: 0.5; position: relative; overflow: hidden; padding-block: clamp(104px, 15vw, 208px); }
.cta-field { position: absolute; inset: 0; pointer-events: none; }
.cta-field i {
  position: absolute; left: -10%; width: 120%; background: var(--ea-navy-950);
  -webkit-mask: url("../brand/bars.svg") 0 0 / auto 100% repeat-x; mask: url("../brand/bars.svg") 0 0 / auto 100% repeat-x;
}
.cta-field i:nth-child(1) { top: 8%; height: 9vh; transform: translateX(calc((var(--p) - 0.5) * -12vw)); }
.cta-field i:nth-child(2) { top: 40%; height: 16vh; transform: translateX(calc((var(--p) - 0.5) * 18vw)); }
.cta-field i:nth-child(3) { top: 80%; height: 26vh; transform: translateX(calc((var(--p) - 0.5) * -26vw)); }
.cta-copy { position: relative; display: grid; gap: 22px; justify-items: center; text-align: center; }
.cta h2 { font-size: clamp(38px, 6.4vw, 92px); letter-spacing: -0.05em; max-width: 14ch; }
.cta .actions { justify-content: center; margin-top: 14px; }
.cta-meta { margin-top: 10px; font-size: 15px; color: var(--blue-soft); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #fff; padding-block: 64px 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px; align-items: start; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 20px; }
.footer-tagline { font: 500 15px/1.4 var(--display); }
.footer-base { font-size: 14px; color: var(--blue-soft); }
.footer-contact, .footer-legal { display: grid; gap: 4px; justify-items: start; font-size: 15px; }
.footer-contact a, .footer-legal a { display: inline-flex; align-items: center; min-height: 36px; color: #fff; text-decoration: none; }
.footer-contact a:hover, .footer-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact span { color: var(--blue-soft); }
.footer-lang .lang { display: inline-flex; border-color: rgba(255, 255, 255, 0.22); background: transparent; }
.footer-lang .lang a { color: var(--blue-soft); }
.footer-lang .lang a[aria-current] { background: #fff; color: var(--navy); }
.footer-fine { display: grid; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: var(--blue-soft); }
.footer-fine p { max-width: 90ch; }

/* Legal pages */
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--doc, 0)); }
.legal { display: grid; gap: 40px; padding-block: 152px var(--section); }
.legal-head { display: grid; gap: 14px; }
.back { justify-self: start; font: 600 14px/1 var(--body); color: var(--blue); text-decoration: none; padding-block: 12px; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.05em; color: var(--navy); }
.legal-meta, .legal-note { font-size: 14px; color: var(--muted); }
.legal-toc p { font: 700 12px/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.legal-toc ol { display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 7px 0; font-size: 15px; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--navy); }
.legal-body { display: grid; gap: 44px; max-width: 68ch; }
.legal-body h2 { font-size: clamp(22px, 2.4vw, 30px); color: var(--navy); margin-bottom: 14px; scroll-margin-top: 110px; }
.legal-body section { scroll-margin-top: 110px; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 14px; }
.legal-body ul { display: grid; gap: 8px; padding-left: 22px; list-style: none; }
.legal-body li { position: relative; }
.legal-body li::before { content: ""; position: absolute; left: -20px; top: 0.62em; width: 10px; height: 4px; border-radius: 1px; background: var(--blue); }
.legal-summary { padding: clamp(22px, 3vw, 34px); background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 960px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); column-gap: 72px; }
  .legal-head { grid-column: 1 / -1; }
  .legal-toc { position: sticky; top: 112px; align-self: start; }
}
.notfound { display: grid; gap: 22px; justify-items: start; padding-block: 200px var(--section); min-height: 80vh; align-content: center; }
.notfound h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.05em; color: var(--navy); }

/* ---- Motion. Everything below only applies when the visitor has not asked for less of it. ---- */
html.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.motion [data-reveal="1"] { transition-delay: 0.09s; }
html.motion [data-reveal="2"] { transition-delay: 0.18s; }
html.motion [data-reveal].in { opacity: 1; transform: none; }

html.motion .hero-row-0 i, html.motion .hero-row-1 i, html.motion .hero-row-2 i, html.motion .hero-row-3 i { animation: drift var(--drift) linear infinite; }
html.motion .hero-row-1 i, html.motion .hero-row-3 i { animation-direction: reverse; }
html.motion .hero.is-won .runner svg { animation: cheer 0.5s var(--ease) 2 alternate; }
html.motion .demo-pulse { animation: nudge 2s infinite; }
@keyframes cheer { to { transform: translateY(-14px) scale(var(--dir, 1), 1); } }
html.motion .hero-field { animation: field-in 1.6s var(--ease) both; }
html.motion .hero-copy > * { animation: rise 1s var(--ease) both; }
html.motion .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
html.motion .hero-copy > :nth-child(3) { animation-delay: 0.22s; }
html.motion .hero-copy > :nth-child(4) { animation-delay: 0.32s; }
@keyframes drift { to { transform: translateX(calc(var(--h) * var(--bars-ratio) * -1)); } }
@keyframes field-in { from { opacity: 0; transform: translateY(14vh); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

html.motion .pillar { --t: clamp(0, calc((var(--p) - var(--at)) * 6), 1); opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 72px)); }
html.motion .pillar-1 { --at: 0.14; }
html.motion .pillar-2 { --at: 0.2; }
html.motion .pillar-3 { --at: 0.26; }
html.motion .symbol-base { transform: scaleX(clamp(0, calc((var(--p) - 0.3) * 6), 1)); }
html.motion .symbol-base span { opacity: clamp(0, calc((var(--p) - 0.42) * 8), 1); }
html.motion .pillars-lead { opacity: clamp(0, calc((var(--p) - 0.4) * 6), 1); }

html.motion .card { transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg)); transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s; }
html.motion .card:hover { box-shadow: var(--shadow); }
html.motion .card[data-reveal]:not(.in) { transform: translateY(26px); }

/* The pinned intro needs a window tall enough to hold the whole of it; a shorter one gets it at rest. */
@media (min-height: 600px) {
  html.motion .pile-stage { height: 300vh; }
  html.motion .pile-sticky { position: sticky; top: 0; }
  html.motion .pile-head { opacity: clamp(0, calc((var(--p) - 0.84) * 9), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p) - 0.84) * 9), 1)) * 28px)); }
  html.motion .tray { opacity: clamp(0, calc((var(--p) - 0.5) * 6), 1); }
}

html.motion .step { --t: clamp(0.25, calc((var(--p) - var(--at)) * 8), 1); opacity: var(--t); }
html.motion .step-1 { --at: 0.12; }
html.motion .step-2 { --at: 0.2; }
html.motion .step-3 { --at: 0.28; }
html.motion .step-4 { --at: 0.36; }

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

/* High contrast (forced colours): system colours take over, so what colour and shadow said must be said
   with borders and outlines, and the logos get a plate of their own to stay seen. */
@media (forced-colors: active) {
  .brand img { forced-color-adjust: none; background: #fff; padding: 4px; border-radius: 6px; }
  .footer-brand img { forced-color-adjust: none; background: var(--navy); padding: 6px; border-radius: 6px; }
  .btn { border-color: ButtonText; }
  .lang a[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; }
  .demo-tab { border: 2px solid Canvas; }
  .demo:has(#demo-tab-home:checked) .demo-tab-home, .demo:has(#demo-tab-docs:checked) .demo-tab-docs,
  .demo:has(#demo-tab-chat:checked) .demo-tab-chat, .demo:has(#demo-tab-pay:checked) .demo-tab-pay { outline: 2px solid Highlight; outline-offset: -2px; }
  .demo:has(#demo-tab-home:checked) .demo-nav-home label, .demo:has(#demo-tab-docs:checked) .demo-nav-docs label,
  .demo:has(#demo-tab-chat:checked) .demo-nav-chat label, .demo:has(#demo-tab-pay:checked) .demo-nav-pay label { border-width: 4px; border-color: Highlight; }
  .demo-stages .is-past::before, .demo-stages .is-now::before, .demo-meter i, .demo-check { background-color: Highlight; border-color: Highlight; forced-color-adjust: none; }
  .story .beat { border-left-width: 3px; }
  .story[data-active="0"] .beat[data-beat="0"], .story[data-active="1"] .beat[data-beat="1"],
  .story[data-active="2"] .beat[data-beat="2"], .story[data-active="3"] .beat[data-beat="3"] { border-left-color: Highlight; }
}
