/* Getting around the landing page: smooth scrolling, a top bar that comes back
   when you scroll up, a progress line, a scroll hint and a back-to-top button
   (navigation.js switches the classes). Chosen by Rob in a trial, 2026-11-20. */

@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* Five links: labels stay on one line (they fit down to 900px, where the links hide). */
.desktop-nav a{white-space:nowrap}

/* The top bar follows you down the page: it slides away while you read on and
   comes back as soon as you scroll up. */
.site-header.is-floating{position:fixed;top:0;left:0;right:0;height:70px;z-index:40;transition:transform .38s cubic-bezier(.2,.7,.2,1)}
.site-header.is-floating::before{content:"";position:absolute;inset:0 calc(50% - 50vw);z-index:-1;background:#1c1e21e6;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid #f4eedc1f;box-shadow:0 10px 30px -18px #000}
.site-header.is-floating .brand{font-size:26px}
.site-header.is-floating.is-tucked{transform:translateY(-115%)}
/* The hero keeps its own layer (isolation), so that layer is lifted while its bar
   floats, or the sections below would be drawn over the bar. */
.hero-backdrop:has(.is-floating){z-index:41}

/* Progress through the page, along the very top. */
.page-progress{position:fixed;left:0;top:0;right:0;height:3px;z-index:60;background:linear-gradient(90deg,var(--amber),#3fbf95);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}

/* A heading you jumped to settles into place. */
.has-arrived{animation:heading-arrive .75s cubic-bezier(.2,.7,.2,1) both}
@keyframes heading-arrive{from{opacity:.25;translate:0 18px}}
h2[tabindex="-1"]:focus{outline:none}

/* Scroll hint on the first screen, centred at the bottom. When the "Made for"
   row is on screen, navigation.js lifts it (--hint-bottom) to sit just above that
   row instead of on top of it. Wide screens only. */
.scroll-hint{position:fixed;left:50%;bottom:var(--hint-bottom,22px);translate:-50% 0;z-index:30;display:none;flex-direction:column;align-items:center;gap:2px;padding:6px 0;color:#f4eedcb3;font:600 11px Kwizzle,Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;transition:opacity .35s,color .2s}
@media(min-width:901px){.scroll-hint{display:flex}}
.scroll-hint:hover{color:var(--cream)}
.scroll-hint svg{width:18px;height:18px;animation:hint-bob 1.8s ease-in-out infinite}
.scroll-hint.is-gone{opacity:0;pointer-events:none}
@keyframes hint-bob{50%{transform:translateY(4px)}}

/* Back to top. */
.back-to-top{position:fixed;right:22px;bottom:22px;z-index:45;display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:var(--cream);color:#17181d;box-shadow:0 8px 24px #0008;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .3s,transform .3s cubic-bezier(.2,.7,.2,1),visibility 0s .3s}
.back-to-top svg{width:20px;height:20px;stroke-width:2.2}
.back-to-top:hover{transform:translateY(-2px)}
.back-to-top.is-on{opacity:1;visibility:visible;transform:none;transition:opacity .3s,transform .3s cubic-bezier(.2,.7,.2,1)}
@media(max-width:700px){.back-to-top{right:16px;bottom:16px;width:44px;height:44px}}

@media(prefers-reduced-motion:reduce){
  .site-header.is-floating,.back-to-top,.scroll-hint{transition:none}
  .has-arrived,.scroll-hint svg{animation:none}
}
