/*
Theme Name: Low Altitude Analytics
Description: Custom theme for Low Altitude Analytics. Direction A "Altimeter": slate and amber. Business details and the contact form live in the Low Altitude Analytics Tools plugin.
Version: 0.4.3
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: low-altitude-analytics
*/

/* Tokens: see BRANDING.md in the repo. */
:root {
  --panel: #12161c;
  --card: #1b212a;
  --card-2: #222a35;
  --line: #2a323d;
  --field-line: #707b8b; /* form field borders only: 3.77:1 on Card, 4.23:1 on Panel (WCAG 1.4.11 needs 3:1) */
  --text: #e7ebf0;
  --muted: #98a3b2;
  --amber: #f2a93b;
  --amber-ink: #1a1205;
  --online: #5cc28a;
  --danger: #ff8a80;
  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Jump links clear the sticky header, plus the admin bar when signed in (it scrolls away at 600px and below).
   :root outranks the admin bar's own html rule. */
:root { scroll-padding-top: calc(90px + var(--wp-admin--admin-bar--height, 0px)); }
@media screen and (max-width: 600px) { :root { scroll-padding-top: 90px; } }
body {
  margin: 0;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffc56e; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin: .25em 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--amber-ink); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 12px; top: 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }

.button, .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--amber-ink); border: 0; border-radius: 7px;
  padding: 12px 20px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.button:hover, .wp-block-button__link:hover { background: #ffbb57; color: var(--amber-ink); }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--muted); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 22, 28, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
/* Signed in: sit below the admin bar while it's fixed. */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span { font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a:not(.button) { display: block; color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 500; }
.site-nav a:not(.button):hover, .site-nav a:not(.button)[aria-current="page"] { color: var(--text); background: var(--card); }
.site-nav .button { margin-left: 8px; padding: 10px 16px; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 9px 12px; font: 500 .95rem var(--font-body); cursor: pointer; }
@media (max-width: 860px) {
  /* Real padding on the row, so opening the menu doesn't move the button. */
  .site-header .wrap { min-height: 0; padding-top: 16px; padding-bottom: 16px; }
  /* The menu is a full-width list under the logo: always without JavaScript, and when opened with it. */
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .js .site-nav { display: none; }
  .js .site-header.nav-open .site-nav { display: flex; }
  /* On a short screen (or zoomed in) the open menu scrolls inside the header and leaves a strip of the page in view. */
  .js .site-header.nav-open {
    max-height: calc(100vh - 40px - var(--wp-admin--admin-bar--height, 0px));
    max-height: calc(100dvh - 40px - var(--wp-admin--admin-bar--height, 0px));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav .button { margin: 10px 0 0; width: 100%; justify-content: center; }
  .brand span { font-size: .9rem; }
}
/* column-gap only: the space between the logo row and the open menu stays 18px. */
@media (max-width: 380px) { .site-header .wrap { column-gap: 10px; } .brand span { font-size: .8rem; letter-spacing: .06em; } .brand svg { width: 30px; height: 30px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 8px; max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 18px; }

/* Chat demo */
.chat-demo { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.chat-demo__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.chat-demo__who { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); display: inline-block; flex: none; }
.chat-demo__tag { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* Added by chat-demo.js while the example plays. aria-pressed="true" means paused. */
.chat-demo__toggle {
  min-height: 26px; padding: 3px 10px; border: 1px solid var(--field-line); border-radius: 6px; background: transparent; color: var(--text);
  font: 500 .7rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.chat-demo__toggle:hover { border-color: var(--muted); }
.chat-demo__toggle[aria-pressed="true"] { color: var(--amber); border-color: rgba(242,169,59,.6); background: rgba(242,169,59,.1); }
.chat-demo__toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.chat-demo__toggle[hidden] { display: none; }
.chat-demo__body { padding: 18px; display: grid; gap: 11px; align-content: start; font-size: .94rem; }
.bub { padding: 10px 13px; border-radius: 9px; max-width: 86%; line-height: 1.45; }
.bub.v { background: #2a3442; justify-self: end; }
.bub.b { background: var(--card-2); border: 1px solid var(--line); }
.bub.a { background: rgba(242,169,59,.12); border: 1px solid rgba(242,169,59,.35); }
.bub .name { display: block; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); margin-bottom: 3px; }
.sys { font-family: var(--font-mono); font-size: .74rem; color: var(--amber); text-align: center; letter-spacing: .04em; padding: 5px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.chat-demo__portal { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 11px 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.chat-demo__body.live > * { animation: laa-pop .35s ease both; }
.chat-demo__body.fading > * { opacity: 0; transition: opacity .45s ease; }
@keyframes laa-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; width: max-content; }
.typing.agent { background: rgba(242,169,59,.12); border-color: rgba(242,169,59,.35); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: laa-blink 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes laa-blink { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--panel); padding: 26px 24px; display: grid; gap: 8px; align-content: start; }
.tile .k { font-family: var(--font-mono); font-size: .72rem; color: var(--amber); letter-spacing: .1em; }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }
.tile a.more { margin-top: 6px; font-weight: 500; text-decoration: none; }
.tile a.more:hover { text-decoration: underline; }

/* Work cards */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; } }
.work-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
.work-card .client { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.work-card h3 { margin: 0; font-size: 1.5rem; }
.work-card ul { margin: 0; padding-left: 1.1em; color: var(--text); }
.work-card ul li::marker { color: var(--amber); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; margin: 0; border-top: 2px solid var(--amber); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: "0" counter(step); font-family: var(--font-mono); color: var(--amber); font-size: .8rem; letter-spacing: .1em; }
.steps h3 { margin: 0; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* CTA band */
.cta-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.page-head h1 { margin: 0; }
.page-head .lede { margin-top: 14px; }
.entry { padding-bottom: clamp(56px, 8vw, 96px); }
.entry > .wrap > *:first-child { margin-top: 32px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.service-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; padding: 44px 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; padding-top: 12px; }
@media (max-width: 820px) { .service-block { grid-template-columns: 1fr; } }
.service-block h2 { margin-bottom: 12px; }
.service-block ul { margin: 0; }
.service-block li::marker { color: var(--amber); }
.service-block .example { margin-top: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; color: var(--muted); }
.service-block .example b { color: var(--text); font-weight: 600; }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.laa-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.laa-form .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .laa-form { grid-template-columns: 1fr; } }
.laa-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.laa-form input[type="text"], .laa-form input[type="email"], .laa-form input[type="tel"], .laa-form select, .laa-form textarea {
  width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--field-line); border-radius: 7px;
  padding: 11px 12px; font: 400 16px/1.4 var(--font-body);
}
.laa-form ::placeholder { color: var(--muted); opacity: 1; } /* 7.1:1 on Panel; browser default is below 4.5:1 */
.laa-form textarea { min-height: 140px; resize: vertical; }
.laa-form input:focus, .laa-form select:focus, .laa-form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.laa-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.laa-form .consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--amber); flex: none; }
.laa-form .fineprint { color: var(--muted); font-size: .88rem; margin: 0; }
.laa-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.local-notice, .form-notice { grid-column: 1 / -1; border-radius: 7px; padding: 11px 14px; font-size: .93rem; }
.local-notice { background: rgba(242,169,59,.1); border: 1px dashed rgba(242,169,59,.5); color: var(--text); }
.form-notice { background: rgba(92,194,138,.12); border: 1px solid rgba(92,194,138,.45); color: var(--text); margin-bottom: 16px; }
.laa-form .form-notice { margin-bottom: 0; } /* inside the form, the grid gap already spaces it */
.contact-aside { display: grid; gap: 18px; }
.contact-aside .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-aside h2 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-details { display: grid; gap: 6px; }
.contact-details a { font-weight: 500; }
.contact-details-empty { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; }

/* ---------- Work overview and case studies (content/work*.html) ---------- */
/* Breadcrumb on child pages (page.php), in the eyebrow's place and style. */
.crumbs { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs a { color: var(--amber); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Our work: one card per case study, with a screenshot on top. */
.work-card > img, .work-card__img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); }
.work-card h2 { margin: 0; font-size: 1.5rem; }
.work-card p { margin: 0; }
.work-card .summary { color: var(--muted); }
.work-card a.more { font-weight: 600; text-decoration: none; }
.work-card a.more:hover { text-decoration: underline; }
.work-intro { max-width: 72ch; }
.work-notes { max-width: 72ch; margin-top: clamp(40px, 6vw, 64px); }

/* A case study: intro and lists at reading width; each step's text beside its screenshots on wide screens.
   Classic themes render a group's blocks inside .wp-block-group__inner-container, so match both ways. */
.case-study > :is(p, ul, h2), .case-study > .wp-block-group__inner-container > :is(p, ul, h2) { max-width: 72ch; }
.case-study > h2, .case-study > .wp-block-group__inner-container > h2 { margin-top: 1.6em; }
.case-study > ul li::marker, .case-study > .wp-block-group__inner-container > ul li::marker { color: var(--amber); }
.cs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 28px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 640px) { .cs-facts { grid-template-columns: 1fr; } }
.cs-facts div { background: var(--card); padding: 14px 18px; }
.cs-facts dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-facts dd { margin: 4px 0 0; }
.cs-demo-note { color: var(--muted); font-size: .95rem; }

.cs-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 760px; padding: 36px 0 40px; border-top: 1px solid var(--line); }
.cs-step:last-of-type { border-bottom: 1px solid var(--line); }
.cs-step h3 { font-size: 1.5rem; margin: 0 0 .55em; }
.cs-step__num { display: block; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.cs-who { font-size: .95rem; color: var(--muted); margin: 0 0 .8em; }
.cs-who b { color: var(--text); font-weight: 600; }
.cs-step__text > ul { margin: 0; padding-left: 1.15em; }
.cs-step__text li::marker { color: var(--amber); }
.cs-auto { margin-top: 18px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 8px; font-size: .97rem; }
.cs-auto h4 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 0 0 6px; line-height: 1.4; }
.cs-auto ul { margin: 0; padding-left: 1.1em; }

.cs-shots { display: flex; flex-wrap: wrap; gap: 24px 20px; align-items: flex-start; min-width: 0; }
.cs-shot { margin: 0; flex: 1 1 100%; min-width: 0; max-width: 760px; }
.cs-shot--phone { flex: 0 1 300px; max-width: 300px; }
.cs-shot--panel { flex: 0 1 380px; max-width: 380px; }
.cs-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #f6f6f2; }
.cs-shot figcaption { margin-top: 10px; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.cs-shot figcaption .demo { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
.cs-clip-toggle {
  margin-top: 10px; min-height: 32px; padding: 5px 12px; border: 1px solid var(--field-line); border-radius: 6px; background: transparent; color: var(--text);
  font: 500 .74rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.cs-clip-toggle:hover { border-color: var(--muted); }
.cs-clip-toggle[aria-pressed="true"] { color: var(--amber); border-color: rgba(242,169,59,.6); background: rgba(242,169,59,.1); }
.cs-clip-toggle[hidden] { display: none; }
.cs-next { margin-top: 2em; }

@media (min-width: 1100px) {
  .cs-step { max-width: none; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0 48px; }
  .cs-shot { max-width: none; }
}
/* Keep a step's text in view beside tall screenshots, where the screen is tall enough for it. */
@media (min-width: 1100px) and (min-height: 760px) {
  .cs-step__text { position: sticky; top: calc(100px + var(--wp-admin--admin-bar--height, 0px)); align-self: start; }
}

/* WordPress basics */
.alignwide { max-width: var(--wrap); }
.wp-block-image img { border-radius: 8px; }

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

/* Without JavaScript the phone menu is always open, so a sticky header would cover most of the screen. */
@media (max-width: 860px) { html:not(.js) .site-header { position: static; } }
