/* Allo prototype (ideas/allo-font-v2, 16 Nov 2026): Allo by Josh Puckett replaces Inter Tight and Noto Sans site-wide.
   Font files: /fonts/allo/, unmodified from npm allo-font@1.0.0, SIL Open Font License 1.1 (/fonts/allo/OFL.txt).
   Axes (read from the file with fontTools): opsz 9–32 (follows the font size: font-optical-sizing auto), wght 100–900,
   ROND 0–100. ROND has no CSS property, so it rides on --allo-rond: body 35, headlines 75; /allo/allo.js moves it
   (the hero name, and headings near the scroll-buddy dog). Monospace labels and code keep their own stack. */

@font-face { font-family: 'Allo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/allo/AlloVariable.woff2') format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 100; font-display: swap; src: url('/fonts/allo/Allo-ThinOblique.woff2') format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 200; font-display: swap; src: url('/fonts/allo/Allo-ExtraLightOblique.woff2') format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 300; font-display: swap; src: url('/fonts/allo/Allo-LightOblique.woff2') format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/allo/Allo-Oblique.woff2') format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/allo/Allo-MediumOblique.woff2') format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 600; font-display: swap; src: url('/fonts/allo/Allo-SemiBoldOblique.woff2') format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 700; font-display: swap; src: url('/fonts/allo/Allo-BoldOblique.woff2') format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 800; font-display: swap; src: url('/fonts/allo/Allo-ExtraBoldOblique.woff2') format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 900; font-display: swap; src: url('/fonts/allo/Allo-BlackOblique.woff2') format('woff2'); }

:root { --allo-font: 'Allo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; }

/* body: ROND 35, wght 400; contextual alternates on (-> becomes →), even where letter-spacing would turn them off */
html:root body { font-optical-sizing: auto; font-feature-settings: 'calt' 1; }
html:root body * { font-variation-settings: 'ROND' var(--allo-rond, 35); }

/* headlines: rounder and heavier (ROND 75, wght 700). Visually hidden headings and the small caps heads stay as they are. */
html:root :is(h1, h2, h3, .pf-h1, .pf-h2, .hd__who b, .nx b):not(.sr, .cap, .eyebrow) { --allo-rond: 75; font-weight: 700; }
/* the home's first line is the letter's lead-in at body size: round like a headline, a step lighter */
html:root .fg .in h1 { font-weight: 600; }

/* stats: tabular figures */
html:root :is(.stats__num, .stats__n, .u-stat, .mo__count, .ix__yr, time) { font-variant-numeric: tabular-nums; }

/* the hero name, split into letters by allo.js (the whole name stays readable as one string for assistive tech) */
.allo-name { white-space: nowrap; }
.allo-ch { display: inline; font-weight: var(--allo-w, 700); }
.allo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the Work list: a row's title gets heavier on hover and on keyboard focus (the weight axis eases, it does not jump) */
html:root .ix__n { transition: font-weight 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.14s; }
html:root .ix__row a:hover .ix__n, html:root .ix__row a:focus-visible .ix__n { font-weight: 650; }
html:root .ix__row--f a:hover .ix__n, html:root .ix__row--f a:focus-visible .ix__n { font-weight: 720; }

/* the Playground cards' titles: bolder at rest, and heavier still on hover and on keyboard focus (the same easing as the Work list) */
html:root .pg__t { font-weight: 600; transition: font-weight 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.14s; }
html:root .pg__a:hover .pg__t, html:root .pg__a:focus-visible .pg__t { font-weight: 780; }

/* the menu (Home, About): the same heavier weight on hover and on keyboard focus */
html:root .hd__nav a { transition: font-weight 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.14s; }
html:root .hd__nav a:hover, html:root .hd__nav a:focus-visible { font-weight: 650; }

/* links inside a sentence (the home's letter, About and case-study copy): the link swells on hover with a springy
   ease that overshoots, so the words after it are pushed along and the whole line wiggles before it settles.
   Under reduced motion the weight still changes, at once, with no spring. */
html:root :is(.in p a, .pf-copy a, a.pf-link) { transition: font-weight 0.5s cubic-bezier(0.3, 1.9, 0.45, 1), color 0.14s, text-decoration-color 0.14s; }
html:root :is(.in p a, .pf-copy a, a.pf-link):is(:hover, :focus-visible) { font-weight: 720; }
@media (prefers-reduced-motion: reduce) { html:root :is(.in p a, .pf-copy a, a.pf-link, .hd__nav a, .ix__n, .pg__t) { transition: color 0.14s; } }

/* buttons: a wave of weight runs through the label on hover and on keyboard focus (letters split by allo.js).
   Each letter keeps its resting width, so the button does not move. Off under reduced motion and when motion is paused. */
.allo-wave { white-space: nowrap; }
.allo-wv { display: inline-block; text-align: center; }
@keyframes allo-wave { 45% { font-weight: 720; } }
@media (prefers-reduced-motion: no-preference) {
  a:hover > .allo-wave .allo-wv, a:focus-visible > .allo-wave .allo-wv { animation: allo-wave 0.95s cubic-bezier(0.35, 0, 0.35, 1) both; animation-delay: calc(var(--i, 0) * 52ms); }
  #fg:not([data-motion="on"]) .allo-wv, html[data-motion="paused"] .allo-wv { animation: none !important; }
}
