/* =============================================================================
   Hawaii Automation — hawaiiautomations.com
   Design tokens, layout primitives and components.
   Single stylesheet: the site is small enough that one cached file beats
   several round-trips.
   ========================================================================== */

/* ---------- 1. tokens ---------------------------------------------------- */
:root {
  /* brand */
  --navy:        #002e46;   /* logo navy — primary */
  --navy-700:    #013a58;
  --navy-500:    #0a5a80;
  --navy-300:    #7fb3cc;
  --navy-900:    #001b2b;   /* site chrome — header, footer, mobile menu */
  --chrome-line: rgba(127, 179, 204, .16);   /* hairlines on the chrome */
  --brand-rule:  linear-gradient(90deg, var(--amber) 0%, #ffb547 35%, var(--teal) 100%);
  --amber:       #e8930c;   /* accent — CTAs, rules, numerals */
  --amber-700:   #c87c06;
  --teal:        #2e8f88;   /* secondary accent — protocols, success */

  /* neutrals */
  --ink:         #15191d;
  --ink-2:       #4d565e;
  --ink-3:       #7b848c;
  --line:        #e4e0d9;
  --line-2:      #f0ece5;
  --paper:       #f5f3ef;   /* page background */
  --surface:     #ffffff;
  --surface-2:   #faf9f6;
  --well:        #eef0f2;   /* image wells behind dark product shots */

  /* type */
  --font-display: 'Archivo', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* fluid type scale (min 360px -> max 1280px) */
  --fs-xs:   0.78rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.05rem, 0.99rem + 0.26vw, 1.2rem);
  --fs-lg:   clamp(1.25rem, 1.12rem + 0.56vw, 1.6rem);
  --fs-xl:   clamp(1.6rem, 1.33rem + 1.18vw, 2.3rem);
  --fs-2xl:  clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --fs-3xl:  clamp(2.6rem, 1.75rem + 3.7vw, 4.6rem);

  /* space — 8px rhythm */
  --s-1: 0.5rem;  --s-2: 0.75rem; --s-3: 1rem;   --s-4: 1.5rem;
  --s-5: 2rem;    --s-6: 3rem;    --s-7: 4rem;   --s-8: 6rem;
  --s-9: 8rem;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(0, 28, 44, .06), 0 2px 8px rgba(0, 28, 44, .05);
  --shadow:    0 4px 12px rgba(0, 28, 44, .07), 0 14px 40px rgba(0, 28, 44, .09);
  --shadow-lg: 0 10px 30px rgba(0, 28, 44, .11), 0 30px 70px rgba(0, 28, 44, .14);

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: var(--s-3); top: var(--s-3);
  transform: translateY(-200%);
  background: var(--navy); color: #fff;
  padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm);
  z-index: 200; font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* ---------- 3. layout primitives ---------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
@media (max-width: 600px) { .wrap, .wrap-narrow { width: calc(100% - 2rem); } }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--dark { background: var(--navy); color: #fff; }
.section--ink { background: var(--ink); color: #fff; }
.section--paper { background: var(--surface); }

.stack > * + * { margin-top: var(--s-3); }
.grid { display: grid; gap: var(--s-4); }

/* ---------- 4. type helpers --------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--s-2);
}
.section--dark .eyebrow, .section--ink .eyebrow { color: var(--amber); }

.h-display { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.03em; }
.h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.028em; }
.h2 { font-size: var(--fs-xl); }
.h3 { font-size: var(--fs-lg); }

.lede {
  font-size: var(--fs-md);
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 62ch;
}
.section--dark .lede, .section--ink .lede { color: #b4cddb; }

.muted { color: var(--ink-3); }
.mono  { font-family: var(--font-mono); font-size: .88em; }

.section-head { max-width: 68ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- 5. buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  padding: .85em 1.6em; border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--amber); color: #1a1205; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--amber-700); box-shadow: var(--shadow); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }

.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.section--paper .btn--ghost:hover,
body > main > .section:not(.section--dark):not(.section--ink) .btn--ghost:hover {
  background: rgba(0, 46, 70, .07);
}

.btn--lg { font-size: var(--fs-base); padding: 1em 1.9em; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.btn .ic { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- 6. header / nav ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* solid --navy-900: the same colour as the footer on every page (a
     see-through bar picked up whatever scrolled under it) */
  background: var(--navy-900);
  border-bottom: 1px solid var(--chrome-line);
  color: #fff;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
/* brand accent: a thin amber→teal rule across the top, shared with the footer */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--brand-rule);
}
/* once the page has scrolled (site.js), lift the bar off the content */
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(0, 12, 20, .38); }
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--s-5);
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 34px; width: auto; }

/* The in-menu CTA is for the mobile drawer only. */
.nav__cta-mobile { display: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s-1); list-style: none; padding: 0; }
.nav__link {
  position: relative; display: block; text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  color: #c4d7e3; padding: .55em .95em; border-radius: 999px;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(127, 179, 204, .12); }
/* current page: white text and a short amber bar, not a grey pill */
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: .15em; width: 18px; height: 2px; margin-left: -9px;
  border-radius: 2px; background: var(--amber);
}
.nav__link:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.header-cta { flex: none; }

/* small laptops / landscape tablets: seven links + the CTA must stay on one line */
.nav__link { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) {
  .site-header__inner { gap: var(--s-3); }
  .nav__list { gap: 0; }
  .nav__link { padding: .55em .62em; }
  .header-cta { padding-inline: 1.05em; }
}

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  align-items: center; justify-content: center; border-radius: var(--radius-sm);
  color: #fff;
}
.nav-toggle:hover { background: rgba(127, 179, 204, .12); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.nav-toggle[aria-expanded="true"] .ic-menu { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav__cta-mobile { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--navy-900); border-bottom: 1px solid var(--chrome-line);
    padding: var(--s-3) 0 var(--s-5);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px;
    width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
  .nav__link { padding: .8em 1em; font-size: var(--fs-md); }
  .nav__link[aria-current="page"] { background: rgba(127, 179, 204, .1); }
  .nav__link[aria-current="page"]::after { left: 0; top: 25%; bottom: auto; width: 3px; height: 50%; margin-left: 0; }
  .nav__list .btn { margin-top: var(--s-3); justify-content: center; }
}

/* ---------- 7. hero ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem) clamp(3rem, 1.5rem + 6vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(10, 90, 128, .55), transparent 60%),
    radial-gradient(40rem 24rem at 5% 110%, rgba(232, 147, 12, .14), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4.5rem); }
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; }
}
.hero h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.033em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lede { font-size: var(--fs-md); color: #b4cddb; max-width: 50ch; margin-top: var(--s-4); }
.hero .btn-row { margin-top: var(--s-5); }

/* Stacked plate composition — three wide panels, slightly offset. The product
   shots are 2.8:1, so one alone reads as a thin strip in the hero column. */
.hero__media { position: relative; display: flex; flex-direction: column; gap: clamp(.9rem, .4rem + 1.4vw, 1.6rem); }
.hero__plate {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .09);
}
.hero__plate img { width: 100%; display: block; }
.hero__plate:nth-child(1) { margin-right: clamp(0px, 4vw, 3rem); }
.hero__plate:nth-child(2) { margin-left: clamp(0px, 4vw, 3rem); }
.hero__plate:nth-child(3) { margin-right: clamp(0px, 2vw, 1.5rem); }

.hero__caption {
  display: flex; align-items: baseline; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--navy-300);
  margin-top: var(--s-1);
}
.hero__caption b { font-family: var(--font-display); color: #fff; font-size: var(--fs-sm); }

/* ---------- 7b. home hero ("living glass") ------------------------------
   Scoped to .hero--home so the Design Studio's centred hero is untouched.
   Layers, back to front: aurora blobs → fine grid → Zigbee mesh → product
   stack → floating status cards. Motion is transform/opacity only; site.js
   sets --mx/--my (unitless, -1…1) for the pointer tilt and adds .is-paused
   while the hero is off-screen. Everything stops under reduced motion. */
.hero--home {
  --mx: 0; --my: 0;
  background: radial-gradient(120% 90% at 70% 0%, #04496d 0%, var(--navy) 46%, #001d2e 100%);
  padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) clamp(4rem, 2rem + 5vw, 6rem);
  isolation: isolate;
}
.hero--home::before { display: none; }

/* aurora: three soft blobs drifting slowly */
.hero__aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: .85; pointer-events: none; }
.hero__aurora span { position: absolute; border-radius: 50%; will-change: transform; }
.hero__aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: 2%; background: rgba(10, 110, 158, .55); animation: hero-drift-a 22s var(--ease) infinite alternate; }
.hero__aurora span:nth-child(2) { width: 34vw; height: 34vw; left: 4%; top: 58%; background: rgba(232, 147, 12, .22); animation: hero-drift-b 26s var(--ease) infinite alternate; }
.hero__aurora span:nth-child(3) { width: 28vw; height: 28vw; left: 70%; top: 60%; background: rgba(46, 143, 136, .28); animation: hero-drift-c 30s var(--ease) infinite alternate; }
@keyframes hero-drift-a { to { transform: translate(-12%, 10%) scale(1.12); } }
@keyframes hero-drift-b { to { transform: translate(18%, -14%) scale(.9); } }
@keyframes hero-drift-c { to { transform: translate(-20%, -8%) scale(1.15); } }

/* fine engineering grid, faded at the edges */
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 65% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 65% 40%, #000 0%, transparent 75%);
}

.hero--home .hero__inner { align-items: center; }
@media (min-width: 960px) {
  .hero--home .hero__inner { grid-template-columns: 1fr 1.05fr; }
}

/* copy */
.hero__pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase;
  color: #ffd79a; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3fd3a2; flex: none; }
.hero__live::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #3fd3a2;
  animation: hero-ping 2.2s ease-out infinite;
}
@keyframes hero-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.hero--home .hero__title { margin-top: var(--s-4); font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero__line { display: block; }
.hero__shine {
  font-style: normal;
  background: linear-gradient(100deg, #e8930c 0%, #ffb547 30%, #fff1d6 45%, #ffb547 60%, #e8930c 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--amber);
  animation: hero-shine 6s var(--ease) 1.6s infinite;
}
@keyframes hero-shine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }

.hero--home .hero__lede { color: #b9d3e1; }
.hero__cta { box-shadow: 0 10px 30px rgba(232, 147, 12, .35); }
.hero__cta .ic { transition: transform .25s var(--ease); }
.hero__cta:hover .ic { transform: translateX(4px); }

.hero__proof { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: var(--s-5); padding: 0; list-style: none; }
.hero__proof li { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: #cfe0ea; }
.hero__proof .ic { color: var(--teal); flex: none; filter: brightness(1.5); }

/* staggered entrance (pure CSS; content is visible without it) */
.hero__in { animation: hero-rise .9s var(--ease) both; }
.hero__copy > .hero__in:nth-child(1) { animation-delay: .05s; }
.hero__title .hero__line:nth-child(1) { animation-delay: .15s; }
.hero__title .hero__line:nth-child(2) { animation-delay: .28s; }
.hero__copy > .hero__lede { animation-delay: .42s; }
.hero__copy > .btn-row { animation-delay: .54s; }
.hero__copy > .hero__proof { animation-delay: .66s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* stage: mesh + floating, tilting plates */
.hero__stage { position: relative; perspective: 1400px; padding-block: 1.5rem 0; }
.hero__mesh {
  position: absolute; inset: -12% -8% -6% -10%; width: 118%; height: 118%; z-index: 0; pointer-events: none;
  opacity: .55;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
          mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.mesh__link { stroke: rgba(127, 179, 204, .28); stroke-width: 1.2; fill: none; }
.mesh__flow { stroke: #ffb547; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-dasharray: 6 260; animation: hero-flow 3.6s linear infinite; }
.mesh__flow--1 { stroke: #5fe0c4; animation-duration: 4.4s; animation-delay: -1.2s; }
.mesh__flow--2 { animation-duration: 5.2s; animation-delay: -2.4s; }
.mesh__flow--3 { stroke: #5fe0c4; animation-duration: 3.9s; animation-delay: -.6s; }
@keyframes hero-flow { from { stroke-dashoffset: 266; } to { stroke-dashoffset: 0; } }
.mesh__node { fill: #7fb3cc; }
.mesh__pulse { fill: none; stroke: #7fb3cc; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: hero-node 3s ease-out infinite; }
.mesh__pulse--1 { animation-delay: -1s; }
.mesh__pulse--2 { animation-delay: -2s; }
@keyframes hero-node { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(4); opacity: 0; } }

.hero__stack {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(.9rem, .4rem + 1.4vw, 1.5rem);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--my) * -5deg)) rotateY(calc(var(--mx) * 7deg + -4deg));
  transition: transform .6s var(--ease);
}
.hero--home .hero__plate {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .25);
  animation: hero-plate-in 1.1s var(--ease) both, hero-float 7s ease-in-out infinite;
}
.hero--home .hero__plate img { width: 100%; display: block; }
.hero--home .hero__plate--1 { margin-right: clamp(0px, 5vw, 3.5rem); animation-delay: .25s, 1.4s; }
.hero--home .hero__plate--2 { margin-left: clamp(0px, 5vw, 3.5rem); animation-delay: .4s, 2.6s; }
.hero--home .hero__plate--3 { margin-right: clamp(0px, 2.5vw, 1.8rem); animation-delay: .55s, 3.8s; }
@keyframes hero-plate-in { from { opacity: 0; transform: translate3d(60px, 24px, -80px) rotateY(-14deg); } to { opacity: 1; transform: none; } }
@keyframes hero-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* a sheet of light passing across the glass now and then */
.hero--home .hero__plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 47%, rgba(255, 255, 255, .05) 53%, transparent 62%);
  transform: translateX(-120%);
  animation: hero-sheen 7s var(--ease) infinite;
}
.hero--home .hero__plate--2::after { animation-delay: 1.2s; }
.hero--home .hero__plate--3::after { animation-delay: 2.4s; }
@keyframes hero-sheen { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }

/* floating status cards — a glimpse of the app driving the panels */
.hero__chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem;
  padding: .6rem .8rem .6rem .6rem; border-radius: 14px; min-width: 0;
  background: rgba(10, 42, 61, .62); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  font-size: var(--fs-xs); color: #d7e6ee; white-space: nowrap;
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0);
  transition: transform .6s var(--ease);
  animation: hero-chip-in .8s var(--ease) both;
}
.hero__chip-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(232, 147, 12, .16); color: #ffb547; flex: none; }
.hero__chip-ic--ok { background: rgba(63, 211, 162, .14); color: #3fd3a2; }
.hero__chip-txt { display: flex; flex-direction: column; gap: 2px; }
.hero__chip-txt b { font-family: var(--font-display); font-size: var(--fs-sm); color: #fff; font-weight: 700; }
.hero__chip--a { top: -2%; right: -2%; animation-delay: 1s; }
.hero__chip--b { bottom: 16%; left: -7%; animation-delay: 1.25s; }
.hero__chip--c { bottom: -4%; right: 6%; animation-delay: 1.5s; }
@keyframes hero-chip-in { from { opacity: 0; translate: 0 14px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }

.hero__toggle { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .18); transition: background .35s var(--ease); flex: none; margin-left: .2rem; }
.hero__toggle i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.hero__chip--a.is-on .hero__toggle { background: var(--amber); }
.hero__chip--a.is-on .hero__toggle i { transform: translateX(14px); }
.hero__chip--a.is-on .hero__chip-ic { background: rgba(232, 147, 12, .32); box-shadow: 0 0 18px rgba(255, 181, 71, .55); }

.hero__bar { display: block; width: 92px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 4px; }
.hero__bar i { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #5fe0c4); transform-origin: left; animation: hero-curtain 6s ease-in-out infinite; }
@keyframes hero-curtain { 0%, 100% { transform: scaleX(.25); } 45%, 60% { transform: scaleX(1); } }
.hero__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fd3a2; margin-right: 6px; box-shadow: 0 0 0 3px rgba(63, 211, 162, .18); }

.hero--home .hero__caption { position: relative; z-index: 1; margin-top: var(--s-4); flex-wrap: wrap; row-gap: 2px; max-width: calc(100% - 210px); }

/* scroll cue */
.hero__scroll { position: absolute; left: 50%; bottom: 1.4rem; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .28); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hero-scroll 1.8s ease-in-out infinite; }
.hero__scroll:hover { border-color: var(--amber); }
@keyframes hero-scroll { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* off-screen: stop every hero animation (battery, CPU) */
.hero--home.is-paused *, .hero--home.is-paused *::before, .hero--home.is-paused *::after { animation-play-state: paused !important; }

/* smaller screens: no tilt, cards tucked in */
@media (max-width: 959px) {
  .hero__stage { width: 100%; max-width: 560px; margin-inline: auto; }
  .hero__stack { transform: none; }
  .hero__chip--a { top: -4%; right: 0; }
  .hero__chip--b { left: 0; bottom: 20%; }
  .hero__chip--c { right: 2%; bottom: 2%; }
  .hero__scroll { display: none; }
}
@media (max-width: 600px) {
  .hero__pill { font-size: .66rem; letter-spacing: .04em; padding: .4rem .75rem .4rem .6rem; }
  .hero--home .hero__caption { max-width: none; }
  .hero__chip--c { display: none; }
  .hero__chip--b { display: none; }
  .hero__chip { padding: .45rem .6rem .45rem .45rem; }
  .hero__chip-ic { width: 28px; height: 28px; }
  .hero__mesh { opacity: .35; }
}

/* phones: equal full-width buttons, tighter bottom (no scroll cue), and a
   pill that stays on one line down to 320px */
@media (max-width: 480px) {
  .hero--home { padding-bottom: clamp(2rem, 1rem + 4vw, 3rem); }
  .hero--home .btn-row { flex-direction: column; align-items: stretch; }
  .hero--home .btn-row .btn { justify-content: center; width: 100%; }
  .hero__proof { gap: .55rem; }
}
@media (max-width: 360px) {
  .hero__pill { font-size: .6rem; letter-spacing: .02em; gap: .45rem; padding: .35rem .6rem .35rem .5rem; }
  .hero__chip-txt b { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--home *, .hero--home *::before, .hero--home *::after { animation: none !important; transition: none !important; }
  .hero__stack, .hero__chip { transform: none !important; }
  .hero__shine { background-position: 50% 0; }
}

/* centred hero variant — used by the Design Studio page */
.hero--centered { text-align: center; }
.hero--centered .hero__copy { max-width: 56rem; margin-inline: auto; }
.hero--centered .hero__lede { margin-inline: auto; max-width: 58ch; }
.hero--centered .btn-row { justify-content: center; }
.hero__shot { position: relative; margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem); }

/* ---------- 7b. app screenshot in a browser frame ------------------------ */
.appshot { margin: 0; }
.appshot__bar {
  display: flex; align-items: center; gap: 7px;
  background: #1b2228; border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0;
  border-radius: 12px 12px 0 0; padding: 9px 14px;
}
.appshot__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #39434c; flex: none; }
.appshot__bar .dot:first-child { background: #e05c4e; }
.appshot__bar .dot:nth-child(2) { background: #e3b341; }
.appshot__bar .dot:nth-child(3) { background: #4caf7d; }
.appshot__url {
  margin-left: auto; margin-right: auto;
  font-family: var(--font-mono); font-size: 11px; color: #8b969f;
  background: #11161a; border-radius: 999px; padding: 3px 14px;
}
.appshot > img {
  width: 100%; border-radius: 0 0 12px 12px; display: block;
  border: 1px solid rgba(255, 255, 255, .12); border-top: 0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.appshot figcaption {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: #7e9cad; margin-top: var(--s-3); text-align: center;
}
.section:not(.section--dark):not(.section--ink) .appshot > img { box-shadow: var(--shadow-lg); }
.section:not(.section--dark):not(.section--ink) .appshot figcaption { color: var(--ink-3); }

/* ---------- 7c. stat card (Design Studio) -------------------------------- */
.statcard {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4);
}
.statcard__row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: baseline; }
.statcard__row + .statcard__row { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: var(--s-4); }
.statcard__row b {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg);
  color: var(--amber); letter-spacing: -0.02em; white-space: nowrap;
}
.statcard__row span { font-size: var(--fs-sm); color: #b4cddb; }

/* ---------- 8. trust strip ----------------------------------------------- */
.strip { background: var(--navy-700); color: #fff; padding-block: var(--s-4); }
.strip__list {
  display: grid; gap: var(--s-3) var(--s-5); list-style: none; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.strip__item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
.strip__item svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
.strip__item b { font-weight: 600; }
.strip__item span { color: #9dbccd; }

/* ---------- 9. cards ----------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
a.card, .card--link { text-decoration: none; color: inherit; }
a.card:hover, .card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2ccc2; }

/* Fixed-height wells keep rows of cards aligned even though the product shots
   range from square (2 module) to 2.8:1 (6/8 module). */
.card__media {
  background: var(--well);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-4); height: 200px; overflow: hidden; flex: none;
}
/* Flex (not grid) so that max-height resolves against the fixed track, and
   overflow:hidden as a belt-and-braces guard for the square 2-module shots. */
.card__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.card__media--tall { height: 260px; }

/* icon mosaic, used where a category has no single representative photo */
.card__media--icons {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
  place-items: stretch; padding: var(--s-4) var(--s-5);
}
.card__media--icons span {
  display: grid; place-items: center; color: var(--navy);
  background: var(--surface); border: 1px solid #dde3e7; border-radius: 10px;
}

.card__body { padding: var(--s-4); display: flex; flex-direction: column; flex: 1; gap: var(--s-2); }
.card__title { font-size: var(--fs-md); color: var(--navy); font-family: var(--font-display); font-weight: 700; }
.card__text { font-size: var(--fs-sm); color: var(--ink-2); }
.card__meta {
  margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--amber-700);
}

.cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* spec list inside product cards */
.speclist { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.speclist div { display: flex; justify-content: space-between; gap: var(--s-3); padding: 3px 0; border-bottom: 1px dotted var(--line); }
.speclist dt { color: var(--ink-3); }
.speclist dd { margin: 0; font-weight: 600; font-family: var(--font-mono); font-size: var(--fs-xs); }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); border-radius: 999px; padding: 2px 8px;
}
.tag--teal { color: var(--teal); border-color: #c4e0dd; background: #eef7f6; }

/* ---------- 10. feature / step blocks ------------------------------------ */
.features { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { padding: var(--s-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #e9f1f5; color: var(--navy); margin-bottom: var(--s-3);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--fs-md); color: var(--navy); margin-bottom: var(--s-1); }
.feature p { font-size: var(--fs-sm); color: var(--ink-2); }

.section--dark .feature, .section--ink .feature {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12);
}
.section--dark .feature h3, .section--ink .feature h3 { color: #fff; }
.section--dark .feature p, .section--ink .feature p { color: #adc7d6; }
.section--dark .feature__icon, .section--ink .feature__icon { background: rgba(255, 255, 255, .1); color: var(--amber); }

.steps { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: var(--s-4); border-top: 2px solid var(--line); }
.step__num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--amber); letter-spacing: .12em; }
.step h3 { font-size: var(--fs-md); color: var(--navy); margin: var(--s-2) 0 var(--s-1); }
.step p { font-size: var(--fs-sm); color: var(--ink-2); }
.section--dark .step { border-color: rgba(255, 255, 255, .18); }
.section--dark .step h3 { color: #fff; }
.section--dark .step p { color: #adc7d6; }

/* numbered list used on the Home Assistant page */
.process { display: flex; flex-direction: column; gap: var(--s-5); counter-reset: proc; }
.process__item { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.process__item::before {
  counter-increment: proc; content: counter(proc, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--amber);
  border: 1.5px solid var(--amber); border-radius: 999px;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; flex: none;
}
.process__item h3 { font-size: var(--fs-md); color: var(--navy); margin-bottom: var(--s-1); }
.process__item p { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 11. split media blocks --------------------------------------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: .85fr 1.15fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.section--dark .split__media img, .section--ink .split__media img {
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .1);
}
.split figcaption { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s-2); }
.section--dark .split figcaption, .section--ink .split figcaption { color: #7e9cad; }

.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2); font-size: var(--fs-sm); }
.checklist svg { width: 19px; height: 19px; color: var(--teal); margin-top: 3px; flex: none; }
.section--dark .checklist li, .section--ink .checklist li { color: #c3d8e4; }
.section--dark .checklist svg, .section--ink .checklist svg { color: var(--amber); }

/* split with the columns pinned to the top (the home FAQ beside its intro) */
.split--top { align-items: start; }

/* FAQ — native <details>, so it opens without script and stays crawlable */
.faq { border-top: 1px solid var(--line); }
.faq__title { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--navy); margin: var(--s-4) 0 var(--s-2); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) 0; font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.25rem; line-height: 1; color: var(--amber); flex: none;
  transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 4px; border-radius: 4px; }
.faq__item p { padding: 0 0 var(--s-3); color: var(--ink-2); font-size: var(--fs-sm); max-width: 62ch; }

/* ---------- 12. stats ---------------------------------------------------- */
.stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.03em;
  color: var(--amber); line-height: 1;
}
.stat span { font-size: var(--fs-sm); color: #9dbccd; display: block; margin-top: var(--s-1); }

/* ---------- 13. product filter ------------------------------------------- */
.filterbar {
  display: flex; flex-wrap: wrap; gap: var(--s-1);
  padding-bottom: var(--s-4); margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.filterbar__btn {
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600;
  padding: .55em 1.1em; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink-2); background: var(--surface);
  transition: all .16s var(--ease);
}
.filterbar__btn:hover { border-color: var(--navy-300); color: var(--navy); }
.filterbar__btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.product-group { scroll-margin-top: calc(var(--header-h) + 1rem); }
.product-group + .product-group { margin-top: var(--s-7); }
.product-group__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s-2); margin-bottom: var(--s-4);
  padding-bottom: var(--s-2); border-bottom: 2px solid var(--navy);
}
.product-group__head h2 { font-size: var(--fs-lg); color: var(--navy); }
.product-group__head p { font-size: var(--fs-sm); color: var(--ink-3); font-family: var(--font-mono); }
.product-group[hidden] { display: none; }

/* ---------- 14. catalogue preview ---------------------------------------- */
.pagegrid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pagegrid figure { margin: 0; }
.pagegrid img {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); background: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pagegrid a:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }
.pagegrid figcaption { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s-1); text-align: center; }

.download-card {
  display: grid; gap: var(--s-4); align-items: center;
  grid-template-columns: auto 1fr auto;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: var(--s-4) var(--s-5);
}
.download-card__icon { width: 46px; height: 46px; color: var(--navy); flex: none; }
.download-card h3 { font-size: var(--fs-md); color: var(--navy); }
.download-card p { font-size: var(--fs-sm); color: var(--ink-3); }
@media (max-width: 760px) {
  .download-card { grid-template-columns: 1fr; text-align: left; }
  .download-card .btn { justify-self: start; }
}

/* ---------- 15. CTA band -------------------------------------------------- */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 1rem + 4vw, 4rem); text-align: center; }
.cta-band h2 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.cta-band p { color: #b4cddb; max-width: 52ch; margin: 0 auto var(--s-5); }
.cta-band .btn-row { justify-content: center; }

/* ---------- 16. forms ---------------------------------------------------- */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8em 1em;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: var(--fs-base); transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(10, 90, 128, .14);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field--row { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: #cf4a3d; }
.field__error { font-size: var(--fs-xs); color: #cf4a3d; }

/* honeypot — kept out of the layout and out of the a11y tree */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.form-status[data-state="ok"]   { background: #eaf6f4; border: 1px solid #bfe0db; color: #1d6d66; }
.form-status[data-state="error"]{ background: #fdeeec; border: 1px solid #f3c7c1; color: #a6372b; }
.form-status[hidden] { display: none; }

/* ---------- 17. contact details ------------------------------------------ */
.contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; }
.contact-list svg { width: 22px; height: 22px; color: var(--amber); margin-top: 3px; flex: none; }
.contact-list b { display: block; font-family: var(--font-display); color: var(--navy); font-size: var(--fs-sm); }
.contact-list a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--navy); border-color: var(--navy-300); }
.contact-list span { color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- 18. footer --------------------------------------------------- */
.site-footer {
  position: relative;
  background: radial-gradient(60rem 22rem at 85% 0%, rgba(10, 90, 128, .28), transparent 70%), var(--navy-900);
  color: #93abba; padding-block: var(--s-7) var(--s-5);
}
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--brand-rule); }
.site-footer__top { display: grid; gap: var(--s-6); grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer img { height: 26px; width: auto; margin-bottom: var(--s-3); }
.site-footer p { font-size: var(--fs-sm); max-width: 34ch; }
.site-footer .site-footer__area { margin-top: var(--s-2); color: #6f93a8; font-size: var(--fs-xs); }
.site-footer h4 {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em;
  text-transform: uppercase; color: #6f93a8; font-weight: 500; margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer a { color: #c4d7e3; text-decoration: none; font-size: var(--fs-sm); transition: color .16s var(--ease); }
.site-footer a:hover { color: var(--amber); }
.site-footer__bottom {
  margin-top: var(--s-6); padding-top: var(--s-4);
  border-top: 1px solid var(--chrome-line);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between;
  font-size: var(--fs-xs); color: #6f93a8;
}

/* ---------- 19. breadcrumb / page header --------------------------------- */
.page-header { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.page-header h1 { font-size: var(--fs-2xl); }
.page-header .lede { color: #b4cddb; margin-top: var(--s-3); }
.crumbs { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--navy-300); margin-bottom: var(--s-3); }
.crumbs a { color: var(--navy-300); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- 20. motion --------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal] { transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover { transform: none; }
}
/* no-JS safety: never leave content invisible */
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ---------- 21. print ---------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn, .nav-toggle, .filterbar { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1rem; }
}

/* ---------- 22. live-demo teaser card ------------------------------------ */
.card__media--demo {
  background: linear-gradient(150deg, #002e46 0%, #0a5a80 60%, #13748f 100%);
  position: relative; overflow: hidden;
}
.card__media--demo::before,
.card__media--demo::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,.55), transparent 68%);
}
.card__media--demo::before { width: 190px; height: 190px; top: -46px; right: -42px; }
.card__media--demo::after  { width: 130px; height: 130px; bottom: -40px; left: -30px;
  background: radial-gradient(circle, rgba(46,143,136,.5), transparent 68%); }
.demo-chip {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em;
  text-transform: uppercase; color: #fff;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; padding: 7px 15px; backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .nav__link, .site-footer a { transition: none; }
}
