/* AB Technology landing page. Direction: night cinematic. Deep navy ground, white type, tangerine light.
   One effect family: things light up, draw in or glow as you reach them. */

@font-face { font-family: "Red Hat Display"; font-weight: 800; font-display: swap; src: url(/assets/fonts/red-hat-display-800.woff2) format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/red-hat-text.woff2) format("woff2"); }
/* Red Hat has no Vietnamese glyphs, so the Vietnamese pages use Be Vietnam Pro for both roles. Only html[lang=vi] loads it. */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-400.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-500.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-800.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --surface: #10182e;
  --surface-2: #16203b;
  --line: rgb(255 255 255 / 0.1);
  --ink: #eef1f7;
  --muted: #98a1ba;
  --dim: rgb(238 241 247 / 0.2);
  --accent: #f7941d;
  --accent-ink: #1f2b4d;
  --paper-ink: #ffffff;

  --font-display: "Red Hat Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Red Hat Text", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --step-display: clamp(2.4rem, 0.5rem + 4.95vw, 5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 12vw, 12rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
:root:lang(vi) { --font-display: "Be Vietnam Pro", "Avenir Next", "Segoe UI", system-ui, sans-serif; --font-text: "Be Vietnam Pro", "Helvetica Neue", Arial, system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Sibling index for staggers, the ring and the card stack. It lives here, not in style="", because the CSP (style-src 'self') drops inline styles. */
:is(.line, [data-reveal], .ring__panel, .project):nth-child(1) { --i: 0; }
:is(.line, [data-reveal], .ring__panel, .project):nth-child(2) { --i: 1; }
:is(.line, [data-reveal], .ring__panel, .project):nth-child(3) { --i: 2; }
:is(.line, [data-reveal], .ring__panel, .project):nth-child(4) { --i: 3; }
:is(.line, [data-reveal], .ring__panel, .project):nth-child(5) { --i: 4; }
:is(.line, [data-reveal], .ring__panel, .project):nth-child(6) { --i: 5; }
:is(.line, [data-reveal], .ring__panel, .project):nth-child(7) { --i: 6; }
:is(.line, [data-reveal], .ring__panel, .project):nth-child(8) { --i: 7; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; top: 0; left: var(--margin); z-index: 20; padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink); }
.skip:not(:focus) { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* Buttons and links: one shape, square corners */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform 140ms var(--ease-out), background-color 180ms ease, box-shadow 300ms ease; }
.button:hover { background: #ffa63b; box-shadow: 0 0 2.5rem rgb(247 148 29 / 0.35); }
.button:active { transform: scale(0.97); }
.button:disabled { opacity: 0.6; cursor: default; }
.button--ink { background: var(--ink); color: var(--bg); }
.button--ink:hover { background: #fff; box-shadow: 0 0 2.5rem rgb(255 255 255 / 0.2); }
.link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; transition: text-decoration-color 180ms ease; }
.link:hover, .nav__links a:hover, .nav__lang:hover, .footer__meta a:hover, .project__name a:hover, .faq summary:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }

/* Nav: frosted glass where the browser can blur, solid elsewhere */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav { background: rgb(10 15 30 / 0.55); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); }
}
.nav__row { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.nav__brand { font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; margin-right: auto; display: flex; align-items: center; }
.nav__brand img { height: 1.75rem; width: auto; filter: brightness(0) invert(1); }
.nav__links { display: none; gap: 1.5rem; list-style: none; }
.nav__links a, .nav__lang { text-decoration: none; font-weight: 500; }
.nav .button { min-height: 2.75rem; padding-inline: 1.25rem; }
@media (min-width: 40em) { .nav__links { display: flex; } }

/* Hero: the statement, the ring, then the bottom row */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; margin-top: -4rem; display: flex; flex-direction: column; padding-top: calc(4rem + clamp(2rem, 6vh, 5rem)); padding-bottom: clamp(2rem, 5vh, 3.5rem); color: var(--paper-ink);
  background: radial-gradient(60% 40% at 50% 72%, rgb(247 148 29 / 0.16), transparent 70%), radial-gradient(90% 60% at 50% 0%, #17244d, transparent 70%), var(--bg); }
.hero__statement { position: relative; z-index: 1; font-size: var(--step-display); letter-spacing: -0.04em; line-height: 0.98; max-width: 100%; }
.hero__statement .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__statement [data-line] { display: block; }
.hero__row { position: relative; z-index: 1; margin-top: auto; padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1.75rem; }
.hero__lead { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

/* The ring: eight panels on a cylinder. form.js spins and tilts it through --ry and --rx;
   without it (or under reduced motion) it holds still and only the front half shows. */
.ring { flex: 1 1 auto; min-height: clamp(17rem, 42svh, 32rem); display: grid; place-items: center; perspective: 1600px; perspective-origin: 50% 30%; pointer-events: none; }
.ring__spin { --w: clamp(7rem, min(15vw, 23svh), 15rem); position: relative; width: var(--w); aspect-ratio: 4 / 5; translate: 0 calc(var(--w) * -0.3); transform-style: preserve-3d; transform: rotateX(var(--rx, -12deg)) rotateY(var(--ry, -20deg)); }
.ring__panel { position: absolute; inset: 0; overflow: hidden; background: var(--surface-2); border: 1px solid rgb(255 255 255 / 0.14); backface-visibility: hidden; transform: rotateY(calc(var(--i) * 45deg)) translateZ(calc(var(--w) * 1.8)); }
.ring.is-live .ring__panel:not(.ring__panel--type) { backface-visibility: visible; }
.ring__panel img { width: 100%; height: 100%; object-fit: cover; }
.ring__panel:first-child img { object-position: 62% 50%; }
.ring__panel--type { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6em; padding: calc(var(--w) * 0.1); background: linear-gradient(165deg, #1d2a52, #0e1530); }
.ring__panel--type strong { font-family: var(--font-display); font-weight: 800; font-size: calc(var(--w) * 0.16); line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.ring__panel--type span { font-size: calc(var(--w) * 0.075); line-height: 1.3; color: var(--ink); }

.strip { padding-block: clamp(2rem, 4vh, 3rem) 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; }
.strip__label { font-size: var(--step-small); color: var(--muted); margin-right: 0.5rem; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; }
.logo { display: inline-flex; align-items: center; height: 2rem; filter: brightness(0) invert(1); opacity: 0.7; transition: opacity 200ms ease; }
.logo:hover { opacity: 1; }
.logo img { height: 100%; width: auto; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; white-space: nowrap; }
@media (min-width: 48em) {
  .hero__statement .line:nth-child(2) { text-align: right; }
  .hero__row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (max-width: 47.99em) {
  .hero__statement { font-size: calc(9.4vw - 3px); }
  .ring { min-height: 14rem; }
  .hero__statement .line, .hero__statement [data-line] { display: inline; overflow: visible; padding: 0; margin: 0; }
}

/* Problems: the poster list; each line lights up as it crosses the middle of the screen */
.problems { padding-block: var(--section) 0; }
.problems h2 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.3; margin-bottom: 2.5rem; color: var(--muted); }
.problems ul { list-style: none; }
.problems li { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); letter-spacing: -0.03em; line-height: 1.08; padding-block: 0.1em; text-wrap: balance; }
@media (max-width: 47.99em) { .problems li { font-size: 1.625rem; } }

/* Cursor glow, shared by service rows and project cards: the light follows the pointer (form.js sets --mx, --my) */
@media (hover: hover) {
  [data-glow]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(26rem circle at var(--mx, 50%) var(--my, 50%), rgb(247 148 29 / 0.13), transparent 65%); opacity: 0; transition: opacity 300ms ease; }
  [data-glow]:hover::after { opacity: 1; }
}

/* Services: a statement cell beside ruled rows */
.services { margin-top: var(--section); display: grid; grid-template-columns: 1fr; border-block: 1px solid var(--line); }
.services__cell { background: var(--surface); padding: clamp(2.5rem, 6vw, 5rem) var(--margin); display: flex; flex-direction: column; min-height: 60svh; }
.services__cell h2 { font-size: clamp(3.5rem, 2rem + 8vw, 9rem); line-height: 0.92; }
.services__cell h2 span { display: block; }
.services__cell h2 span:nth-child(2) { text-align: right; color: var(--accent); }
.services__cell .button { margin-top: 3rem; align-self: flex-start; }
.services__rows { list-style: none; display: grid; }
.services__rows li { position: relative; padding: clamp(1.75rem, 3vw, 2.5rem) var(--margin); display: grid; gap: 0.75rem; align-content: start; border-top: 1px solid var(--line); }
.services__rows li:first-child { border-top: 0; }
.services__rows h3 { font-family: var(--font-text); font-weight: 500; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.25; }
.services__rows p { max-width: 48ch; color: var(--muted); }
@media (min-width: 48em) {
  .services { grid-template-columns: 1fr 1fr; }
  .services__cell { min-height: 90svh; }
  .services__cell .button { margin-top: auto; }
  .services__rows li { grid-template-columns: 5fr 7fr; column-gap: var(--gutter); min-height: 22.5svh; }
}
@media (min-width: 64em) {
  .services__cell h2 { font-size: clamp(5rem, 9.5vw, 11rem); }
}

/* How it works: three steps on a line that draws itself as you scroll */
.how { background: var(--surface); padding-block: var(--section); margin-top: var(--section); border-block: 1px solid var(--line); }
.how h2 { font-size: var(--step-head); grid-column: 1 / -1; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.steps { --dot: 2.75rem; grid-column: 1 / -1; position: relative; list-style: none; counter-reset: step; display: grid; gap: 2rem; }
.steps::before { content: ""; position: absolute; left: calc(var(--dot) / 2); top: calc(var(--dot) / 2); bottom: calc(var(--dot) / 2); width: 1px; background: var(--accent); transform-origin: 50% 0; }
.steps li { position: relative; z-index: 1; counter-increment: step; display: grid; grid-template-columns: var(--dot) 1fr; gap: 1rem; align-items: center; font-size: var(--step-lead); line-height: 1.35; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: var(--dot); height: var(--dot); border-radius: 50%; border: 1px solid var(--accent); background: var(--surface); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.steps li:last-child::before { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 2rem rgb(247 148 29 / 0.45); }
@media (min-width: 48em) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
  .steps::before { bottom: auto; right: calc((100% - 2 * var(--gutter)) / 3 - var(--dot) / 2); width: auto; height: 1px; transform-origin: 0 50%; }
  .steps li { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; padding-right: var(--gutter); }
}

/* Work: four matching cards, stacked on scroll */
.work { padding-block: var(--section) 0; }
.work h2 { font-size: var(--step-head); margin-bottom: clamp(3rem, 6vw, 5rem); }
.work ul { list-style: none; display: grid; gap: 1.5rem; }
.project { position: relative; display: grid; background: var(--surface); border: 1px solid var(--line); }
.project__body { padding: clamp(1.5rem, 3.5vw, 3.5rem); display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.project__img { order: -1; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.project .logo { height: 1.75rem; margin-bottom: 0.5rem; }
.project__name { font-family: var(--font-text); font-weight: 500; font-size: var(--step-body); letter-spacing: 0; line-height: 1.3; }
.project__name a { text-decoration: none; }
.project__sector { font-size: var(--step-small); color: var(--accent); }
.project__headline { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; margin-block: 0.5rem 0.75rem; }
.project__text { max-width: 52ch; color: var(--muted); }
.project__link { margin-top: auto; padding-top: 1rem; font-weight: 500; }
@media (max-width: 47.99em) { .project__headline { font-size: 1.75rem; } }
@media (min-width: 48em) {
  .project { grid-template-columns: 1fr 1fr; }
  .project__img { order: 0; height: 100%; aspect-ratio: auto; }
  .project:nth-child(even) .project__img { order: -1; }
}
/* The stack: each card sticks a little lower than the last, so earlier cards show their top edge.
   Only on screens tall enough to hold a whole card. */
@media (min-width: 48em) and (min-height: 48em) {
  .work ul { gap: clamp(3rem, 8svh, 6rem); }
  .project { position: sticky; top: calc(5.5rem + var(--i) * 1rem); min-height: min(80svh, 46rem); transform-origin: 50% 0; box-shadow: 0 -1.5rem 3rem rgb(0 0 0 / 0.35); }
}

/* About: a wide paragraph beside its heading */
.about { padding-block: var(--section) 0; }
.about h2 { font-size: var(--step-head); grid-column: 1 / -1; margin-bottom: 1.5rem; }
.about p { grid-column: 1 / -1; font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; }
@media (min-width: 48em) {
  .about h2 { grid-column: 1 / 5; margin-bottom: 0; }
  .about p { grid-column: 5 / 13; }
}

/* FAQ: ruled questions that open smoothly where the browser can animate it */
.faq { padding-block: var(--section) 0; }
.faq h2 { font-size: var(--step-head); grid-column: 1 / -1; margin-bottom: 1.5rem; }
.faq__list { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.25rem; }
.faq summary { cursor: pointer; font-weight: 500; font-size: var(--step-lead); line-height: 1.3; list-style: disclosure-closed; }
.faq details[open] summary { list-style: disclosure-open; }
.faq summary::marker { color: var(--accent); }
.faq details p { padding: 0.75rem 0 0 1.1em; max-width: 52ch; color: var(--muted); }
@media (min-width: 48em) {
  .faq h2 { grid-column: 1 / 5; margin-bottom: 0; }
  .faq__list { grid-column: 5 / 13; }
}

/* Contact: a band lit by a slow-moving glow */
.contact { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section); background: var(--surface); border-top: 1px solid var(--line); color: var(--paper-ink); padding-block: var(--section); min-height: 100svh; }
.contact::before { content: ""; position: absolute; inset: -25%; z-index: -1; background: radial-gradient(32% 28% at 28% 78%, rgb(247 148 29 / 0.22), transparent 70%), radial-gradient(30% 26% at 76% 22%, rgb(52 78 160 / 0.35), transparent 70%); }
.contact .grid { grid-template-rows: auto 1fr; }
.contact h2 { font-size: var(--step-head); grid-column: 1 / -1; }
.contact__intro { grid-column: 1 / -1; font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; margin-top: 1rem; margin-bottom: 2.5rem; }
.contact__form { grid-column: 1 / -1; }
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem; background: rgb(255 255 255 / 0.05); color: var(--ink); border: 1px solid rgb(255 255 255 / 0.16); border-radius: 0; transition: border-color 180ms ease, background-color 180ms ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(255 255 255 / 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: rgb(255 255 255 / 0.08); }
.field textarea { min-height: 10rem; resize: vertical; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.field-error { color: var(--accent); font-size: var(--step-small); margin: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot, never visible */
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__foot .button { min-width: 10.5rem; }
.form__note { font-size: var(--step-small); max-width: 36ch; color: var(--muted); }
.notice { display: none; font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; margin-bottom: 2rem; }
.notice:target, .notice.is-shown { display: block; }
@media (min-width: 48em) {
  .contact h2, .contact__intro { grid-column: 1 / 6; }
  .contact__intro { margin-bottom: 0; }
  .contact__form { grid-column: 7 / 13; grid-row: 1 / span 2; }
  .form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* Footer: the name returns at full width, fading into the ground */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; }
.footer__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; font-size: var(--step-small); color: var(--muted); margin-bottom: clamp(4rem, 12vh, 8rem); }
.footer__meta a { text-decoration: none; }
.footer__mark { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.85; font-size: min(11.2vw, 12rem); white-space: nowrap; color: var(--ink); background: linear-gradient(180deg, var(--ink) 25%, rgb(238 241 247 / 0.06)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Privacy page */
.page { padding-block: clamp(3rem, 8vh, 6rem) var(--section); }
.page h1 { font-size: var(--step-head); margin-bottom: 1.5rem; }
.page p { max-width: 60ch; }
.page p + p { margin-top: 1.25rem; }

/* Motion. Off under reduced motion; the scroll-linked parts only where the browser supports scroll timelines. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__statement [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero__row, .js .strip { opacity: 0; animation: fade-up 800ms var(--ease-out) forwards; animation-delay: 520ms; }
  .js .strip { animation-delay: 700ms; }
  .js .ring { opacity: 0; animation: ring-in 1600ms var(--ease-out) forwards; animation-delay: 300ms; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .contact::before { animation: drift 24s ease-in-out infinite alternate; }
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 450ms var(--ease-out), content-visibility 450ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .problems li { animation: lit linear both; animation-timeline: view(); animation-range: cover 20% cover 60%; }
    .about p { animation: lit-soft linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
    .steps { view-timeline: --steps block; }
    .steps::before { animation: draw-y linear both; animation-timeline: --steps; animation-range: entry 60% contain 40%; }
  }
  @media (min-width: 48em) and (prefers-reduced-motion: no-preference) {
    .steps::before { animation-name: draw-x; }
  }
  @media (min-width: 48em) and (min-height: 48em) and (prefers-reduced-motion: no-preference) {
    .work ul { view-timeline: --work block; }
    .project { animation: recede linear both; animation-timeline: --work; animation-range: exit-crossing calc(var(--i) * 25%) exit-crossing calc(var(--i) * 25% + 25%); }
  }
}
@keyframes lit { 0% { color: var(--dim); } 55% { color: var(--accent); } 100% { color: var(--ink); } }
@keyframes lit-soft { from { color: var(--dim); } }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes recede { to { transform: scale(0.94); } }
@keyframes drift { to { transform: translate3d(12%, -8%, 0) rotate(8deg); } }
@keyframes ring-in { from { opacity: 0; transform: translateY(3rem) scale(0.9); } to { opacity: 1; transform: none; } }
@media (max-width: 47.99em) and (prefers-reduced-motion: no-preference) {
  .js .hero__statement [data-line] { transform: none; animation: none; }
  .js .hero__statement { opacity: 0; animation: fade-up 900ms var(--ease-out) forwards; animation-delay: 150ms; }
}
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
