/* Legato — trainlegato.com. One stylesheet for every page. No third parties. */

/* Inter Tight, the app's own font, served from this site. */
@font-face { font-family: 'Inter Tight'; src: url('fonts/InterTight_400Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('fonts/InterTight_500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('fonts/InterTight_600SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('fonts/InterTight_700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Cool whites and ice greys, with black as the accent (the app's Mono accent). */
:root {
  --bg: #F4F6F8;
  --white: #FFFFFF;
  --ink: #0F1A22;
  --muted: #5F6E7A;
  --soft: #8A99A6;
  --ice: #E6EDF2;
  --ice-2: #D3DEE7;
  --steel: #9DB3C6;
  --deep: #0E1821;
  --line: #DCE3E9;
  --accent: #0B0D0F;
  --red: #E5332A;
  --sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Small labels and sources use the same font as everything else, like the app. */
  --mono: var(--sans);
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(11,13,15,.1); flex: none; }

/* ── Top bar ─────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(244,246,248,.8); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 17px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; font: 500 14px/1 var(--sans); }
.nav > a, .drop summary { text-decoration: none; padding: 10px 14px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; cursor: pointer; }
.nav > a:hover, .drop summary:hover { color: var(--ink); background: var(--white); }
.nav > a[aria-current="page"], .drop summary.on { color: var(--ink); background: var(--white); box-shadow: 0 1px 0 var(--line); }
.cta-pill { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink); font: 500 14px/1 var(--sans); white-space: nowrap; margin-left: 8px; }

/* Info dropdown: Privacy and Terms. A plain <details>, so no script is needed. */
.drop { position: relative; }
.drop summary { list-style: none; display: flex; align-items: center; gap: 8px; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.drop[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.drop-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--white); border-radius: 18px; padding: 6px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgba(15,26,34,.28); animation: drop .25s var(--ease); }
.drop-menu a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.drop-menu a::after { content: '→'; color: var(--soft); transition: transform .2s var(--ease); }
.drop-menu a:hover, .drop-menu a[aria-current="page"] { background: var(--ice); }
.drop-menu a:hover::after { transform: translateX(3px); color: var(--accent); }

/* ── Phone, drawn in CSS, with a real Legato screen inside ─ */
.phone {
  --pw: 320px;
  position: relative; flex: none; width: var(--pw);
  padding: calc(var(--pw) * .022);
  border-radius: calc(var(--pw) * .158);
  background: #050505;
  box-shadow:
    0 0 0 calc(var(--pw) * .01) #2B2D31,
    0 0 0 calc(var(--pw) * .016) #6B7079,
    0 0 0 calc(var(--pw) * .02) #1D1F23,
    0 50px 80px -30px rgba(14,24,33,.55),
    0 18px 30px -18px rgba(14,24,33,.35);
}
.screen { position: relative; overflow: hidden; aspect-ratio: 402 / 874; border-radius: calc(var(--pw) * .135); background: #D9D9D6; }
/* Live captures from the app at 402×874 pt. The app hides the status bar, so the top is just its own metal. */
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; z-index: 2; top: 1.3%; left: 50%; transform: translateX(-50%); width: 31%; height: 4.2%; background: #000; border-radius: 999px; }

/* ── Hero ────────────────────────────────────────────────── */
/* Full-bleed: the hero fills the screen edge to edge and runs up behind the see-through header. */
.hero { --top: 66px; margin-top: calc(-1 * var(--top)); }
.hero > .wrap { max-width: none; padding: 0; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 0;
  background: #E9EBE9;
  min-height: min(100svh, 56vw); padding: var(--top) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) 0; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
}
/* Desktop: the wide campaign photo fills the hero; the man stands on the right and the left is empty grey for the text.
   The hero is never taller than the photo's own shape (56vw), so a squarish window doesn't crop him off the right. */
.hero picture { display: contents; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; grid-column: 1; grid-row: 1; padding: 40px 0 150px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.soon { margin: 0 0 14px; font: 500 13px/1 var(--sans); letter-spacing: .02em; color: var(--muted); }
.hero h1 { margin: 0 0 22px; font-weight: 600; font-size: clamp(54px, 8.4vw, 118px); line-height: .9; letter-spacing: -.05em; }
.hero .lede { margin: 0 auto 28px; max-width: 34ch; font-size: 18px; line-height: 1.45; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.btn-dark { display: inline-flex; align-items: center; gap: 10px; background: var(--deep); color: #fff; padding: 14px 20px; border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; box-shadow: 0 10px 24px -12px rgba(14,24,33,.6); }
.btn-dark .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); animation: pulse 2.4s ease-in-out infinite; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.signup { display: flex; gap: 6px; width: 100%; max-width: 440px; padding: 6px; background: var(--white); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(14,24,33,.45); }
.signup input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 8px 0 16px; font: 400 16px/1 var(--sans); color: var(--ink); outline: none; }
.signup input::placeholder { color: var(--soft); }
.signup:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 18px 40px -24px rgba(14,24,33,.45); }
.signup button { flex: none; border: 0; cursor: pointer; background: var(--deep); color: #fff; padding: 14px 22px; border-radius: 999px; font: 500 15px/1 var(--sans); }
.signup button:hover { background: #000; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Statement ───────────────────────────────────────────── */
.statement { padding: 64px 0 88px; text-align: center; }
.statement p.big { margin: 0 auto; max-width: 20ch; font-weight: 600; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.statement .small { max-width: 480px; margin: 22px auto 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

/* ── Science: four sourced facts and one wide card about being present ── */
.science { padding: 0 0 112px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { display: flex; flex-direction: column; background: var(--white); border-radius: 22px; box-shadow: 0 0 0 1px var(--line); padding: 26px 24px 22px; }
.fact b { font-weight: 600; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; letter-spacing: -.04em; }
.fact p { margin: 16px 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.fact small, .present small { margin-top: auto; font: 500 12.5px/1.4 var(--sans); color: var(--soft); }
.present { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; margin-top: 14px; background: var(--deep); color: #fff; border-radius: var(--radius); padding: 44px 48px; }
.present b { display: block; font-weight: 600; font-size: clamp(72px, 9vw, 128px); line-height: .9; letter-spacing: -.05em; margin-bottom: 14px; }
.present small { color: #8796A3; }
.present h3 { margin: 0 0 12px; font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
.present p { margin: 0; color: #A9B6C1; font-size: 17px; line-height: 1.7; max-width: 52ch; }

/* ── Tour: four phones, same size, one line ──────────────── */
.tour { padding: 0 0 96px; }
.head { text-align: center; margin-bottom: 48px; }
.head .label { margin: 0 0 14px; font: 600 14px/1 var(--sans); color: var(--muted); }
.head h2 { margin: 0; font-weight: 600; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.03em; }
.head p:not(.label) { margin: 16px auto 0; max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.shots { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.shot { flex: 0 0 260px; scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; align-items: center; }
.shot .phone { --pw: 240px; }
.shot figcaption { margin-top: 28px; width: 100%; max-width: 250px; text-align: center; }
.shot figcaption b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 6px; }
.shot figcaption span { display: block; color: var(--muted); font-size: 15px; line-height: 1.6; }
.car-nav { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.car-btn { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); font: 500 18px/1 var(--sans); cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: background .2s, opacity .2s; }
.car-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-btn[hidden] { display: none; }

/* ── Four numbers under the app screens ───────────────── */

/* ── Footer ──────────────────────────────────────────────── */
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 22px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.foot img { height: 12px; width: auto; opacity: .8; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ── Legal pages ─────────────────────────────────────────── */
.doc-head { padding: 6px 0 0; }
.doc-card { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(160deg, #F9FBFC 0%, #E9EFF4 55%, #D9E3EB 100%); padding: 48px 56px 44px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; }
.doc-card::before { content: ''; position: absolute; inset: 0; background: url('img/streaks.svg') 80% 30% / cover no-repeat; opacity: .7; }
.doc-card > * { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 13px/1 var(--sans); color: var(--muted); }
.doc-card h1 { margin: 0; font-weight: 600; font-size: clamp(44px, 7vw, 92px); line-height: .9; letter-spacing: -.05em; }
.doc-card p.sum { margin: 14px 0 0; color: var(--muted); max-width: 52ch; font-size: 17px; }
.updated { background: rgba(255,255,255,.85); border-radius: 999px; padding: 10px 16px; font: 500 13px/1 var(--sans); color: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.updated b { color: var(--ink); font-weight: 500; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 56px; align-items: start; }

.toc { position: sticky; top: 86px; background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; font-size: 14px; }
.toc summary { list-style: none; padding: 14px 18px; font: 500 13px/1 var(--sans); color: var(--muted); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 6px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; line-height: 1.3; text-decoration: none; transition: background .15s; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--soft); font: 400 12px/1.6 var(--mono); }
.toc a:hover, .toc a:focus-visible { background: var(--ice); outline: none; }

.prose { max-width: 70ch; }
.prose section { scroll-margin-top: 90px; padding: 4px 0 20px; }
.prose section + section { border-top: 1px solid var(--line); padding-top: 24px; }
.prose h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; display: flex; gap: 12px; align-items: baseline; }
.prose h2 .no { font: 500 12px/1 var(--mono); color: var(--accent); }
.prose h3 { font-size: 16px; margin: 16px 0 6px; }
.prose p, .prose li { color: #26343F; }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 10px; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--soft); }
.prose a { text-decoration-color: var(--steel); text-underline-offset: 3px; }
.tldr { background: var(--white); border-radius: 20px; padding: 18px 20px; margin: 0 0 20px; box-shadow: 0 0 0 1px var(--line); }
.tldr p { margin: 0; }
.callout { border-left: 3px solid var(--accent); background: var(--white); padding: 12px 16px; border-radius: 0 14px 14px 0; margin: 10px 0 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 12px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.table th { font: 500 12px/1.2 var(--sans); color: var(--muted); }
.table td:first-child { font-weight: 600; white-space: nowrap; }
.path { font: 500 13px/1.4 var(--mono); background: var(--white); box-shadow: 0 0 0 1px var(--line); padding: 1px 7px; border-radius: 7px; white-space: nowrap; }

/* ── Support ─────────────────────────────────────────────── */
.contact { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--deep); color: #fff; border-radius: 24px; padding: 26px 28px; margin: 24px 0 8px; }
.contact::before { content: ''; position: absolute; inset: 0; background: url('img/streaks.svg') 70% 40% / cover no-repeat; opacity: .12; }
.contact > * { position: relative; }
.contact .k { font: 500 13px/1 var(--sans); color: #A9B6C1; margin: 0 0 10px; }
.contact .v { font: 500 clamp(20px, 3vw, 30px)/1.1 var(--sans); letter-spacing: -.02em; margin: 0; word-break: break-all; }
.contact .v a { text-decoration: none; }
.contact .note { margin: 10px 0 0; font-size: 14px; color: #A9B6C1; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: #fff; color: var(--ink); font: 500 15px/1 var(--sans); padding: 14px 20px; border-radius: 999px; }

.faq { margin: 28px 0 56px; }
.faq h2 { font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; line-height: 1; margin: 0 0 14px; }
.faq details { background: var(--white); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 6px; padding: 18px 20px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .no { font: 500 12px/1 var(--mono); color: var(--soft); }
.faq summary::after { content: '+'; font: 400 22px/1 var(--sans); color: var(--muted); justify-self: end; transition: transform .3s var(--ease), color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq .a { padding: 0 20px 18px 60px; color: #26343F; max-width: 74ch; animation: drop .35s var(--ease); }
.faq .a p { margin: 0 0 8px; }
.faq .a ol, .faq .a ul { margin: 0 0 8px; padding-left: 20px; }

/* ── Motion: calm. Nothing swings or floats. ─────────────── */
.rise { animation: rise .8s var(--ease) both; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .16s; }
.rise.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes breathe { from { opacity: .75; } to { opacity: 1; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }
@keyframes play { from { transform: scaleX(.37); } to { transform: scaleX(1); } }

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

/* ── Smaller screens ─────────────────────────────────────── */
@media (max-width: 1040px) {
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px 12px 10px; }
  /* Tablets and phones: the tall photo sits right under the text and fades in behind it, with no gap. */
  .hero-card { min-height: 0; padding-bottom: 0; background: #EFEFED; }
  .hero-photo { position: relative; inset: auto; order: 2; display: block; width: calc(100% + 2 * var(--gutter)); max-width: none; height: auto; margin: 22px calc(-1 * var(--gutter)) 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%); mask-image: linear-gradient(to bottom, transparent 0, #000 7%); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .toc { position: static; }
  .toc summary { cursor: pointer; }
  .toc summary::after { content: '+'; transition: transform .3s var(--ease); }
  .toc[open] summary::after { transform: rotate(45deg); }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 14px; --radius: 22px; }
  .top .wrap { height: 58px; }
  .hero { --top: 58px; }
  .brand img { height: 13px; }
  .nav { font-size: 13px; gap: 0; }
  .nav > a, .drop summary { padding: 9px 10px; }
  .cta-pill { display: none; }
  .hero-copy { padding: 30px 6px 6px; }
  .hero h1 { font-size: clamp(50px, 15vw, 70px); }
  .hero .lede { font-size: 16.5px; }
  .statement { padding: 28px 0 56px; }
  .statement .small { font-size: 16px; margin-top: 18px; }
  .tour { padding-bottom: 64px; }
  .science { padding-bottom: 72px; }
  .facts { gap: 10px; }
  .fact { padding: 20px 16px 16px; border-radius: 18px; }
  .fact b { font-size: 30px; }
  .fact p { font-size: 14px; margin: 12px 0 16px; }
  .present { grid-template-columns: 1fr; gap: 18px; padding: 30px 22px; }
  .present p { font-size: 16px; }
  .head { margin-bottom: 30px; }
  .head p:not(.label) { font-size: 16px; }
  .shots { gap: 16px; }
  .shot { flex: 0 0 236px; scroll-snap-align: center; }
  .car-nav { margin-top: 18px; }
  .signup input { padding-left: 12px; }
  .signup button { padding: 14px 18px; }
  .shot .phone { --pw: 220px; }
  .doc-card { padding: 34px 22px 28px; }
  .contact { grid-template-columns: 1fr; padding: 22px; }
  .faq summary { font-size: 16px; padding: 16px; grid-template-columns: 28px 1fr 18px; }
  .faq .a { padding: 0 16px 16px 50px; }
  .table td:first-child { white-space: normal; }
}
@media (max-width: 360px) {
  .nav > a, .drop summary { padding: 8px 7px; }
}

/* ── Thanks page: shows the error text when the URL ends in #error ── */
.thanks { display: block; }
.thanks a { color: var(--ink); text-underline-offset: 3px; }
.msg-error { display: none; }
.msg-error:target { display: block; }
.msg-error:target + .msg-ok { display: none; }
.faq-group { margin: 28px 0 12px; font: 600 14px/1 var(--sans); color: var(--muted); }

/* Home: the header starts see-through over the hero and fills in once you scroll (where the browser supports it). */
@supports (animation-timeline: scroll()) {
  .top.over { animation: fill-top linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  @keyframes fill-top { from { background: rgba(244,246,248,0); -webkit-backdrop-filter: none; backdrop-filter: none; } }
}

/* Science cards and app numbers rise in on scroll (only when reveal.js runs). */
.js-reveal .fact, .js-reveal .present { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .fact.in, .js-reveal .present.in { opacity: 1; transform: none; }
.fact b, .present b { font-variant-numeric: tabular-nums; }

/* The hero photo fades into the page colour at the bottom, so there is no hard edge. */
.hero-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(244,246,248,0), var(--bg)); }
