/* Best & Fast Inc · v0.2 minimal
   White / black stage, giant type, the brand colours as small accents.
   Accent hex is a GUESS until sampled from the real logo (also in src/home/palette.js). */
:root {
  --ink: #111111;
  --white: #ffffff;
  --surface: #f4f4f3;
  --grey: #bdbdbd;         /* second tone of headings on white */
  --grey-dark: #575757;    /* second tone of headings on black */
  --muted: rgba(17, 17, 17, .62);
  --line: rgba(17, 17, 17, .12);
  --giant: #efefee;
  --green: var(--c-14724a);
  --green-light: var(--c-39b77a);
  --orange: var(--c-ff6a13);
  --yellow: var(--c-ffc21a);
  --head: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(16px, 3.4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* no browser scrollbar on any page (the page still scrolls; the home has its own progress bar) */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
/* phones: the page scrolls inside #scroller (js/common.js), the document never moves, so the browser's bars stay put */
html.has-scroller, html.has-scroller body { height: 100%; overflow: hidden; overscroll-behavior: none; }
/* 1 px shorter than the screen on purpose (owner, 1 Dec, Android): Chrome promotes a scrolling box that exactly
   fills the screen to the page's own scroller ("implicit root scroller") and then hides its address bar on its
   scroll again, resizing the visible area; a box 1 px short of the screen is not promoted, so the bar stays */
#scroller { position: fixed; top: 0; left: 0; right: 0; bottom: 1px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: none; scrollbar-width: none; }   /* none: no rubber band past the footer (owner, 1 Dec: the truck showed under it) */
#scroller::-webkit-scrollbar { display: none; width: 0; height: 0; }
.menu-open #scroller { overflow: hidden; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--head); font-weight: 700; font-stretch: 112.5%; text-transform: uppercase;
  line-height: .95; letter-spacing: -.005em; margin: 0;
}
h1 { font-size: clamp(46px, 7.4vw, 124px); }
h2 { font-size: clamp(34px, 5vw, 84px); }
h3 { font-size: clamp(15px, 1.15vw, 19px); line-height: 1.1; }
p { margin: 0 0 1em; }
.grey { color: var(--grey); }

.mono, .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.kicker { color: var(--muted); margin-bottom: 22px; }

.wrap { width: 100%; padding: 0 var(--pad); margin: 0 auto; max-width: 1680px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
/* owner, 1 Dec: on phones a tap painted the FAQ questions and the menu button in the browser's turquoise
   tap colour; every control here has its own pressed look */
html { -webkit-tap-highlight-color: transparent; }

/* ---------------- logo (assets/bf-mark.svg; a text fallback if the file fails to load) */
/* the logo is a round badge (700x589), so it needs more height than a wordmark to stay readable */
.logo { display: inline-flex; align-items: center; height: 58px; }

@media (max-width: 768px) { .site-header .logo { height: 48px; } }
.logo img { height: 100%; width: auto; }
.logo-fallback { display: none; }
.logo.nologo img { display: none; }
.logo.nologo .logo-fallback {
  display: inline-flex; flex-direction: column; font-family: var(--head); font-weight: 800; font-stretch: 125%;
  font-size: 21px; line-height: .85; letter-spacing: .01em;
}
.logo.nologo .logo-fallback b { font-family: var(--mono); font-weight: 500; font-size: 8.5px; letter-spacing: .42em; margin-top: 5px; color: var(--green); }
.logo-lg { height: 70px; }
.logo-lg.nologo .logo-fallback { font-size: 46px; }
.logo-lg.nologo .logo-fallback b { font-size: 13px; }

/* ---------------- header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 36px;
  padding: 26px var(--pad);
}
.site-header .logo { margin-right: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav-phone { display: none; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; padding: 0; }
.burger span { display: block; width: 16px; height: 2px; background: #fff; margin: 4px auto; transition: transform .3s; }
/* 2 px on a whole pixel (owner, 1 Dec: 1.5 px came out as one thick and one thin line on a phone) */
.menu-open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* fixed compact header (desktop, every page): js/common.js adds .hdr-fixed once the top of the page is gone */
@media (min-width: 769px) {
  .hdr-fixed .site-header { position: fixed; top: 0; z-index: 40; padding-top: 14px; padding-bottom: 14px; align-items: center; animation: hdr-in .55s cubic-bezier(.2, .8, .2, 1) both; }
  .hdr-fixed .site-header .logo { height: 52px; }
  .theme-day.hdr-fixed .site-header { background: color-mix(in srgb, var(--c-f7f2e8) 95%, transparent); border-bottom: 1px solid var(--line); }
}
@keyframes hdr-in { from { transform: translateY(-105%); } to { transform: none; } }

/* ---------------- custom cursor (desktop), driven by js/common.js. The ring is also the scroll
   indicator (faint track + bold arc from 12 o'clock). Client, 29 Nov: on hover a small truck instead of
   the orange blob; over [data-cursor="cta"] a bigger truck with the label on its trailer. */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 210; pointer-events: none; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .3s;
}
.cursor i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; background: #fff; border-radius: 50%; transition: opacity .2s; }
.cursor.on { opacity: 1; }
.cursor.cur-now, .cursor.cur-now * { transition: none !important; }
.cur-prog { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.cur-trk, .cur-arc { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; }
.cur-trk { stroke-width: 1; stroke-opacity: .22; }
.cur-arc { stroke-width: 2.2; stroke-dasharray: 0 100; }
/* the system pointer is hidden wherever our cursor runs (js/common.js adds .has-cursor) */
.has-cursor, .has-cursor * { cursor: none !important; }
/* the truck: hidden in the ring state, it rolls in over links (small), call blocks (big, label on the
   trailer) and phone / email (Copy, Copied) */
.cursor.hover, .cursor.call, .cursor.copy { mix-blend-mode: normal; }
.cursor.hover .cur-prog, .cursor.hover i, .cursor.call .cur-prog, .cursor.call i, .cursor.copy .cur-prog, .cursor.copy i { opacity: 0; }
.cursor.hover .cur-prog, .cursor.call .cur-prog, .cursor.copy .cur-prog { transform: rotate(-90deg) scale(.4); }
.cur-tk { position: absolute; left: 50%; top: 50%; width: 160px; height: 60px; margin: -30px 0 0 -80px; opacity: 0; transform: scale(.25); transform-origin: 50% 50%;
  transition: transform .5s cubic-bezier(.2, .9, .25, 1.15), opacity .2s; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--c-04150e) 28%, transparent)); }
.cursor.hover .cur-tk { opacity: 1; transform: scale(.4); } /* client, 1 Dec: the truck was too big and covered the links: ~25% smaller in every state */
/* owner, 29 Nov: over a link the trailer carries its word, so the truck is big enough to read it */
.cursor.hover.lab .cur-tk { transform: scale(.64); }
.cursor.call .cur-tk { opacity: 1; transform: scale(.76); }
.cursor.copy .cur-tk { opacity: 1; transform: scale(.64); }
.cur-tk-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: tk-bob .9s ease-in-out infinite; }
@keyframes tk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
/* the truck (owner, 29 Nov: nicer, about the same size): white trailer with a green stripe, high-roof
   green cab with glass, tank and bumper, five spinning wheels with silver rims, a soft ground shadow */
.tk-shd { fill: color-mix(in srgb, var(--c-04150e) 20%, transparent); }
.tk-trl { fill: url(#tkTrl); stroke: var(--c-0b2a1e); stroke-width: 1.3; }
.tk-strp { fill: var(--c-16714a); }
.tk-seam { stroke: var(--c-0b2a1e); stroke-opacity: .18; stroke-width: 1; fill: none; }
.tk-tail { fill: var(--c-e2552b); }
/* the name on the trailer (owner, 29 Nov); the link word, call and copy labels take its place */
.tk-name { font-family: var(--head); font-weight: 800; font-stretch: 112%; font-size: 17px; letter-spacing: .08em; fill: var(--c-0b2a1e); transition: opacity .15s; }
.cursor.call .tk-name, .cursor.copy .tk-name, .cursor.lab .tk-name { opacity: 0; }
.tk-name.tk-name-long { font-size: 10.5px; letter-spacing: .05em; }   /* BEST & FAST is twice as long as the old name */
.tk-chs, .tk-leg { fill: var(--c-26302c); }
.tk-cab { fill: url(#tkCab); stroke: var(--c-0b2a1e); stroke-width: 1.3; stroke-linejoin: round; }
.tk-gls { fill: var(--c-10302a); }
.tk-hi { stroke: #fff; stroke-opacity: .4; stroke-width: 1; stroke-linecap: round; fill: none; }
.tk-door { stroke: var(--c-0b2a1e); stroke-opacity: .35; stroke-width: .8; fill: none; }
.tk-mir, .tk-arch, .tk-flap, .tk-grl, .tk-icc { fill: var(--c-0b2a1e); }
.tk-pipe { fill: #c9d1cd; stroke: var(--c-0b2a1e); stroke-width: .7; }
.tk-tank { fill: #d3d9d6; stroke: var(--c-0b2a1e); stroke-width: .8; }
.tk-bmp { fill: var(--c-2b332f); }
.tk-lamp { fill: var(--c-fff0bd); }
.tk-tyre { fill: #181b1a; }
.tk-rim { fill: url(#tkRim); }
.tk-hub { fill: var(--c-59625e); }
.tk-sp { stroke: var(--c-6f7974); stroke-width: .9; stroke-linecap: round; fill: none; }
.tk-w { transform-box: view-box; transform-origin: var(--cx) 47px; animation: tk-spin .6s linear infinite; }
@keyframes tk-spin { to { transform: rotate(360deg); } }
.cur-tk-label { position: absolute; left: 1.9%; top: 11.7%; width: 65%; height: 50.5%; display: flex; align-items: center; justify-content: center; gap: 5px;
  color: var(--c-0b2a1e); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor.lab .cur-tk-label, .cursor.copy .cur-tk-label { font-size: 14px; font-weight: 600; letter-spacing: .04em; } /* a touch bigger: the truck is smaller now */
.cursor.lab.lab-long .cur-tk-label { font-size: 11.5px; }
.cursor.call .cur-tk-label { font-size: 12.5px; } /* the call truck is 76% now: its word stays as big as before */
.cursor.call .cur-tk-label, .cursor.copy .cur-tk-label, .cursor.hover.lab .cur-tk-label { opacity: 1; transition: opacity .25s .12s; }
.cur-tk-label svg { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cur-tk-tick, .cursor.copy .cur-tk-arrow, .cursor.lab-faq .cur-tk-arrow { display: none; }
.cursor.copied .cur-tk-tick { display: block; stroke: var(--c-16714a); stroke-width: 2; }
.cursor.media { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) { .cur-tk-svg, .tk-w { animation: none; } }

/* ---------------- loader */
/* Owner, 2 Dec: it must never stutter. Everything here moves by transform and opacity only, so the browser's
   compositor plays it at the screen's rate even while the page's thread builds the 3D scene. The build-up is CSS
   and starts with the first paint; the route and the exit are played from src/home/intro.js (Web Animations). */
#loader {
  position: fixed; inset: 0; z-index: 100; color: var(--c-0b2a1e); overflow: hidden;
  display: grid; place-items: center; pointer-events: none;
}
.ld-bg { position: absolute; inset: 0; background: var(--c-f7f2e8); will-change: opacity; }
.ld-ring, .ld-arc, .ld-dot {
  position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
}
.ld-ring { border: 1px solid color-mix(in srgb, var(--c-0b2a1e) 12%, transparent); border-radius: 50%; animation: ld-ring-in .8s cubic-bezier(.33, 1, .68, 1) both; will-change: transform, opacity; }
.ld-ring:nth-child(3) { animation-delay: .14s; }
.ld-ring:nth-child(4) { animation-delay: .28s; }
@keyframes ld-ring-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.ld-arc, .ld-dot { --d: 54vmin; } /* owner, 1 Dec: rings 34/64/112 -> 29/54/94 vmin, the outer one never leaves the screen */
/* the route: two half circles, each turning inside its own half of the ring's box (right half first, from the top,
   then the left one from the bottom). --p leaves room for the stroke outside the ring's line */
.ld-arc { --p: 4px; }
.ld-half { position: absolute; top: calc(-1 * var(--p)); width: calc(50% + var(--p)); height: calc(100% + 2 * var(--p)); overflow: hidden; }
.ld-h1 { left: 50%; }
.ld-h2 { left: calc(-1 * var(--p)); }
/* Owner, 4 Dec: the line lagged behind the dot and ran outside the ring. Two causes: the turning element was the
   <svg> itself, and the browser does not promise to move an SVG element without the page's thread (the dot, an
   HTML element, kept going while the line waited for the busy page); and the middle ring was still growing from
   90 % when the route set off at full size. Now each half turns an HTML box (.ld-spin) with the picture inside,
   and the route (.ld-route) grows in with the very animation and delay of the middle ring, so it sits on it. */
.ld-route { position: absolute; inset: 0; animation: ld-ring-in .8s cubic-bezier(.33, 1, .68, 1) .14s both; will-change: transform, opacity; }
.ld-spin { position: absolute; top: var(--p); width: var(--d); height: var(--d); transform-origin: 50% 50%; will-change: transform; }
.ld-spin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ld-h1 .ld-spin { left: calc(var(--d) / -2); }
.ld-h2 .ld-spin { left: var(--p); }
/* 0.45 units of the 100-unit box: the stroke the route always had */
.ld-half path { fill: none; stroke: var(--orange); stroke-width: .45; }  /* the arc is r 49.7 in its 100 box (4 Dec): at r 50 half the stroke lay outside the layer and was cut thin at 3, 6 and 9 o'clock */
/* Owner, 4 Dec: the route still lagged. It followed the loading, and the loading is uneven (4 % in four seconds,
   then 87 % at once, then a wait on 97 %), so the line stood, ran and stood again, and every new stretch was a new
   animation started by a busy page. Now the route is one CSS animation from the first paint, at one even pace, on
   the compositor; nothing on the page's thread steers it. Once the ring is closed the dot stops at the top on 100 and
   waits there for the page (owner: laps past the full ring read as a route going over 100 %); src/home/intro.js only
   reads where the route is, for the counter and the exit */
#loader { --draw: 1.8s; }
.ld-cover #loader { --draw: 1.2s; }   /* after a page transition the rings are already there */
.ld-h1 .ld-spin { animation: ld-h1 var(--draw) linear .25s both; }
.ld-h2 .ld-spin { animation: ld-h2 var(--draw) linear .25s both; }
.ld-dot { will-change: transform; animation: ld-lap var(--draw) linear .25s both; }
@keyframes ld-h1 { 0% { transform: rotate(0deg); } 50%, 100% { transform: rotate(180deg); } }
@keyframes ld-h2 { 0%, 50% { transform: rotate(0deg); } 100% { transform: rotate(180deg); } }
@keyframes ld-lap { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ld-dot b { position: absolute; left: 50%; top: calc(var(--d) * .003); width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--orange); }
.ld-mark { position: relative; height: 20vmin; transform-origin: 0 0; will-change: transform, opacity; animation: ld-mark-in .8s cubic-bezier(.33, 1, .68, 1) .2s both; }
@keyframes ld-mark-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ld-mark.nologo .logo-fallback b { color: var(--orange); }
.ld-meta {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; gap: 16px;
  color: color-mix(in srgb, var(--c-0b2a1e) 55%, transparent); animation: ld-fade-in .6s linear .3s both;
}
@keyframes ld-fade-in { from { opacity: 0; } to { opacity: 1; } }
/* reached through the page transition: the closed iris had these very rings, so they stand from the first paint */
.ld-cover .ld-ring, .ld-cover .ld-route { animation: none; }
.ld-cover .ld-mark { animation-duration: .5s; animation-delay: .05s; }
.ld-cover .ld-meta { animation-duration: .4s; animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) { .ld-ring, .ld-route, .ld-mark, .ld-meta { animation: none; } }
.ld-num { display: inline-block; min-width: 3ch; color: var(--c-0b2a1e); }
body:not(.intro-done) .site-header .logo { opacity: 0; }
.no-intro #loader { display: none; }

/* ---------------- scenes */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

.giant {
  position: absolute; z-index: 0; left: 0; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--head); font-weight: 700; font-stretch: 112.5%; text-transform: uppercase; color: var(--giant); line-height: .8;
}

/* hero */

.hero-copy { position: absolute; left: var(--pad); top: 17vh; max-width: 62vw; }
.hero-copy .kicker { margin-bottom: 26px; }
.lines .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.lines .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.loaded .lines .ln > span { transform: none; }
.loaded .lines .ln:nth-child(2) > span { transition-delay: .08s; }
.loaded .lines .ln:nth-child(3) > span { transition-delay: .16s; }

.scroll-hint { position: absolute; left: var(--pad); bottom: calc(13vh + 22px); margin: 0; color: var(--muted); }

/* intro */
.section { position: relative; z-index: 3; padding: clamp(90px, 13vw, 190px) 0; background: var(--white); }

.stats { list-style: none; margin: 0; padding: 0; }
.stats li { display: grid; grid-template-columns: minmax(120px, 1fr) 1.3fr; gap: 24px; align-items: end; padding: 22px 0; border-top: 1px solid var(--line); }
.stats li:last-child { border-bottom: 1px solid var(--line); }
.stats b { font-family: var(--head); font-weight: 700; font-stretch: 112.5%; font-size: clamp(44px, 5vw, 84px); line-height: .85; }
.stats span { color: var(--muted); max-width: 260px; }

/* services */

.svc-track { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: clamp(28px, 3.4vw, 64px); padding: 13vh var(--pad) 0; will-change: transform; }
.svc-head { flex: 0 0 auto; width: min(1100px, 82vw); display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: end; margin-right: 6vw; }
.svc-head h2 { font-size: clamp(30px, 3.9vw, 66px); }
.svc-head h2 span { display: block; }
.svc-head p { color: rgba(255, 255, 255, .62); max-width: 330px; margin: 0; }
.svc { flex: 0 0 auto; width: clamp(220px, 18vw, 290px); padding-top: 8px; }
.svc svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.svc h3 { margin-bottom: 12px; }
.svc p { color: rgba(255, 255, 255, .55); font-size: 14px; margin: 0; }
.svc em { font-style: normal; color: var(--green-light); }

/* road */
.road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }

/* reveal */
.io { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.io.in { opacity: 1; transform: none; }

/* ---------------- inner pages */
.page-hero { position: relative; padding: 210px 0 0; overflow: hidden; }
.page-hero h1 { max-width: 15ch; }

.page-hero .giant { position: relative; display: block; font-size: 19vw; margin: 7vw 0 -2.6vw; padding-left: var(--pad); }

.field label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, .3); border-radius: 0; padding: 10px 0; min-height: 46px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }

.form-status { color: var(--green); margin: 0; }

/* ---------------- responsive */

@media (max-width: 768px) {
  .site-header { padding: 18px var(--pad); }
  .site-header .header-cta { display: none !important; } /* owner, 1 Dec: on inner pages .theme-day .btn showed it again and the menu button covered it */
  /* owner, 1 Dec: the menu button stays on screen while the page scrolls (it went away with the header) */
  .burger { display: block; position: fixed; top: 32px; right: var(--pad); z-index: 60; } /* level with the logo centre, where it stood before */
  .nav {
    position: fixed; inset: 0; z-index: 50; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 0 var(--pad); background: var(--ink); transform: translateY(-100%); transition: transform .5s cubic-bezier(.7, 0, .2, 1);
  }
  .nav a { font-family: var(--head); font-weight: 700; font-stretch: 112.5%; font-size: 44px; letter-spacing: 0; color: #fff; opacity: 1; }
  .nav a[aria-current="page"] { color: var(--green-light); }
  .nav .nav-phone { display: block; font-family: var(--mono); font-size: 13px; margin-top: 24px; color: rgba(255, 255, 255, .6); }
  .menu-open .nav { transform: none; }
  .menu-open .burger { background: #fff; }
  .menu-open .burger span { background: var(--ink); }
  .menu-open { overflow: hidden; }

  h1 { font-size: 10.6vw; }
  .hero-copy { top: 14vh; max-width: none; right: var(--pad); }

  .scroll-hint { display: none; }

  .svc-track { padding-top: 6vh; }
  .svc-head { width: 82vw; grid-template-columns: 1fr; gap: 18px; margin-right: 4vw; }
  .svc-head h2 { font-size: 8.4vw; }
  .svc-head p { font-size: 13px; }
  .svc { width: 66vw; }

  .stats li { grid-template-columns: 1fr; gap: 10px; }

  .page-hero { padding-top: 150px; }
}
@media (hover: none) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .io { opacity: 1; transform: none; }
}

/* ---------------- page transition (all pages): an iris in the loader's ring motif, no emblem.
   Leave: a disc in the colour of the page you are going to closes from the centre, rings breathe in.
   Enter: the next page opens through a hole with three layered edges. Driven by js/common.js;
   .pt-light (on .pt while leaving, on <html> while entering) switches to the light pages' colours. */
@property --pt-r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.pt { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; visibility: hidden; pointer-events: none; }
.pt i { position: absolute; }
.pt-disc { inset: 0; clip-path: circle(0% at 50% 50%); --pt-r: 0%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--pt-r), #000 calc(var(--pt-r) + .15%));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--pt-r), #000 calc(var(--pt-r) + .15%)); }
.pt-disc.d1 { background: var(--c-f7f2e8); z-index: 3; } /* owner, 1 Dec: every page, the home too, has the light paper iris; */
.pt-disc.d2 { background: var(--c-e9dcc6); z-index: 2; } /* the light colours are the default now, so no path can ever show a black one */
.pt-disc.d3 { background: var(--c-ff914e); z-index: 1; }
.pt-ring { z-index: 4; left: 50%; top: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border: 1px solid color-mix(in srgb, var(--c-0b3b2a) 16%, transparent); border-radius: 50%; opacity: 0; transform: scale(.8); }

/* light pages: paper, warm sand and the logo orange; rings in deep green */
.pt.pt-light .pt-disc.d1, .pt-light .pt .pt-disc.d1 { background: var(--c-f7f2e8); }
.pt.pt-light .pt-disc.d2, .pt-light .pt .pt-disc.d2 { background: var(--c-e9dcc6); }
.pt.pt-light .pt-ring, .pt-light .pt .pt-ring { border-color: color-mix(in srgb, var(--c-0b3b2a) 16%, transparent); }
/* leave: the orange edge runs ahead, the main disc follows */
.pt.leave { visibility: visible; pointer-events: auto; }
.pt.leave .pt-disc { animation: pt-close .85s cubic-bezier(.85, 0, .15, 1) forwards; }
.pt.leave .pt-disc.d2 { animation-delay: .04s; } .pt.leave .pt-disc.d1 { animation-delay: .08s; animation-duration: .8s; } .pt.leave .pt-disc.d3 { animation-duration: .72s; }
.pt.leave .pt-ring { animation: pt-ring-in .85s cubic-bezier(.85, 0, .15, 1) .1s forwards; }
/* going to the home (owner, 2 Dec): the iris closes on the home loader's own rings, so the loader takes over from it
   without a seam (it used to open on rings of other sizes: one picture, then another) */
.pt.to-home .pt-ring { border-color: color-mix(in srgb, var(--c-0b2a1e) 12%, transparent); }
.pt.to-home .pt-ring:nth-child(4) { --d: 29vmin !important; }
.pt.to-home .pt-ring:nth-child(5) { --d: 54vmin !important; }
.pt.to-home .pt-ring:nth-child(6) { --d: 94vmin !important; }
@keyframes pt-close { to { clip-path: circle(76% at 50% 50%); } }
@keyframes pt-ring-in { to { opacity: 1; transform: none; } }
/* enter: covered from the first paint (html.pt-enter is set by the inline head script) */
.pt-enter .pt { visibility: visible; }
.pt-enter .pt-disc { clip-path: none; transition: --pt-r .95s cubic-bezier(.85, 0, .15, 1); }
.pt-enter .pt-disc.d2 { transition-delay: .12s; } .pt-enter .pt-disc.d3 { transition-delay: .19s; }
.pt-enter .pt-ring { opacity: 1; transform: none; transition: transform 1s cubic-bezier(.85, 0, .15, 1), opacity .8s ease; }
.pt-enter .pt.open .pt-disc { --pt-r: 100%; }
.pt-enter .pt.open .pt-ring { transform: scale(1.9); opacity: 0; }

/* ---------------- footer: bottom row + the dotted BEST & FAST INC wordmark (js/common.js) */

.footer-dots { --dot: rgba(17, 17, 17, .45); position: relative; padding: clamp(80px, 8vw, 140px) clamp(12px, 1.6vw, 28px) clamp(40px, 3.6vw, 64px); }
/* desktop: the wordmark sits lower, further from the bottom row and closer to the page end (mobile untouched) */
@media (min-width: 901px) { .footer-dots { padding-top: clamp(120px, 11vw, 220px); padding-bottom: clamp(24px, 2.2vw, 44px); } }
/* phones (owner, 1 Dec): ~120 px of paper between the legal links and the dotted wordmark (the links row's 24 px
   foot, this box's 80 px head and the canvas's own room above the letters for the scattering dots, ~0.75 of their
   height); the box now starts 16 px up into the links row's foot (the canvas is see-through and takes no taps; the links' own tap area ends just above it), so
   about 40 px are left */
@media (max-width: 768px) { .footer-dots { padding-top: 0; margin-top: -16px; } }
/* the canvas spills over the padding (see footerDots in js/common.js); it never takes clicks */
.footer-dots canvas { position: relative; display: block; width: 100%; height: 12vw; pointer-events: none; }
/* bottom row: a step larger than the other mono labels, it is the last thing people read */

.home .footer-dots { --dot: color-mix(in srgb, var(--c-eef2ee) 42%, transparent); }
.theme-day .footer-dots { --dot: color-mix(in srgb, var(--c-0b3b2a) 52%, transparent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* headings that wipe in from the left with a soft edge; --p runs 0% .. 130% */
.wipe { -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 24%), transparent var(--p)); mask-image: linear-gradient(90deg, #000 calc(var(--p) - 24%), transparent var(--p)); }
.page-hero h1.wipe { transition: --p 1.5s cubic-bezier(.4, 0, .2, 1) .25s; }
.loaded .page-hero h1.wipe { --p: 130%; }

/* magnetic buttons: js/common.js feeds --mx / --my, `translate` keeps clear of any transform */
.btn { translate: var(--mx, 0px) var(--my, 0px); transition-property: color, background, border-color, translate; }
.btn.mag { transition: color .35s, background .25s, border-color .35s, translate .12s linear; }
.btn:not(.mag) { transition: color .35s, background .25s, border-color .35s, translate .7s cubic-bezier(.2, .8, .2, 1); }

/* inner page extras */

[data-cursor="cta"]:focus:not(:focus-visible) { outline: none; }
