/* =========================================================
   Machine & Mouse
   Global Design System
   See docs/DESIGN_SYSTEM.md and docs/ANIMATIONS_AND_INTERACTIONS.md
   ========================================================= */

/* ---------------------------------------------------------
   0. Fonts (self-hosted in /fonts, SIL Open Font Licence;
   owner, 2026-11-10). Sora: headings and labels. Inter: body,
   the same family as the business profile.
   --------------------------------------------------------- */

@font-face {
   font-family: "Inter";
   src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
   font-weight: 400;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: "Inter";
   src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
   font-weight: 500;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: "Inter";
   src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
   font-weight: 600;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: "Inter";
   src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
   font-weight: 700;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: "Sora";
   src: url("../fonts/sora-latin-600-normal.woff2") format("woff2");
   font-weight: 600;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: "Sora";
   src: url("../fonts/sora-latin-700-normal.woff2") format("woff2");
   font-weight: 700;
   font-style: normal;
   font-display: swap;
}

/* ---------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------- */

:root {
   /* Brand colours — verified from images/marks and images/mono marks.
      Never change these values without re-checking the logo SVGs. */
   --brand-blue: #1B5FD8;
   --brand-blue-rgb: 27 95 216;
   --brand-navy: #05122A;
   --brand-navy-rgb: 5 18 42;
   --brand-slate: #64748B;
   --brand-mist: #E2E8F0;
   --brand-white: #FFFFFF;

   /* Semantic colours. Values that are not brand colours above are
      supporting neutrals chosen for contrast (see DESIGN_SYSTEM.md §2.2). */
   --color-primary: var(--brand-blue);
   --color-primary-hover: #1650B8;
   --color-primary-on-dark: #6FA7FF;
   --color-primary-tint: #EEF5FF;
   --color-danger: #C62828;
   --color-danger-hover: #8E1C1C;

   --color-background: var(--brand-white);
   --color-surface: var(--brand-white);
   --color-surface-alt: #F5F7FA;
   --color-surface-dark: var(--brand-navy);
   --color-surface-dark-raised: #0B1C3A;

   --color-heading: var(--brand-navy);
   --color-text: #202A35;
   --color-text-muted: #526075;
   --color-text-inverse: var(--brand-white);
   --color-text-on-dark: #C7D3DF;
   --color-text-muted-on-dark: #94A3B8;

   --color-border: var(--brand-mist);
   --color-border-strong: #C7D2E0;
   --color-border-on-dark: rgb(255 255 255 / 0.10);
   --color-border-on-dark-strong: rgb(255 255 255 / 0.24);

   --color-focus: var(--brand-blue);
   --color-focus-on-dark: var(--color-primary-on-dark);

   /* Typography */
   --font-sans:
      "Inter",
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      "Helvetica Neue",
      Arial,
      sans-serif;

   --font-mono:
      ui-monospace,
      "SF Mono",
      "Cascadia Mono",
      "Segoe UI Mono",
      Menlo,
      Consolas,
      "Liberation Mono",
      monospace;

   /* Labels, eyebrows, tags and small caps text: Sora in semibold
      caps, like the headings (owner, 2026-11-10).
      --font-mono stays defined for anything that truly needs it. */
   --font-display: "Sora", var(--font-sans);
   --font-label: var(--font-display);

   --text-xs: 0.8rem;
   --text-eyebrow: 0.96rem;   /* eyebrow labels, 20% over --text-xs (owner, 2026-11-10) */
   --text-sm: 0.94rem;
   --text-base: 1rem;
   --text-md: 1.05rem;
   --text-lg: 1.125rem;
   --text-h3: 1.125rem;
   --text-h2: clamp(2.2rem, 4vw, 3.4rem);
   --text-display: clamp(2.5rem, 5vw, 4.25rem);
   --text-h1: clamp(3rem, 6vw, 5.25rem);

   --leading-tight: 1.05;
   --leading-snug: 1.1;
   --leading-body: 1.7;

   --tracking-tight: -0.03em;
   --tracking-tighter: -0.035em;
   --tracking-label: 0.1em;

   /* Layout */
   --container-width: 1200px;
   --page-padding: 24px;
   --header-height: 68px;

   /* Spacing */
   --space-xs: 8px;
   --space-sm: 12px;
   --space-md: 16px;
   --space-lg: 24px;
   --space-xl: 32px;
   --space-2xl: 48px;
   --space-3xl: 64px;
   --space-4xl: 96px;

   /* Borders */
   --radius-sm: 6px;
   --radius-md: 10px;
   --radius-lg: 14px;

   /* Effects */
   --shadow-sm: 0 2px 8px rgb(var(--brand-navy-rgb) / 0.06);
   --shadow-md: 0 8px 24px rgb(var(--brand-navy-rgb) / 0.08);

   /* Motion */
   --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
   --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
   --dur-1: 120ms;
   --dur-2: 200ms;
   --dur-3: 400ms;
   --dur-4: 700ms;
   --stagger: 70ms;
}


/* ---------------------------------------------------------
   2. Reset
   --------------------------------------------------------- */

* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

html {
   scroll-padding-top: calc(var(--header-height) + var(--space-lg));
}

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

body {
   font-family: var(--font-sans);
   color: var(--color-text);
   background: var(--color-background);
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
}

img {
   display: block;
   max-width: 100%;
}

a {
   color: inherit;
   text-decoration: none;
}

button,
input,
textarea,
select {
   font: inherit;
}


/* ---------------------------------------------------------
   3. Global Layout
   --------------------------------------------------------- */

.container {
   width: min(calc(100% - (var(--page-padding) * 2)),
         var(--container-width));

   margin-inline: auto;
}


/* ---------------------------------------------------------
   4. Typography
   --------------------------------------------------------- */

h1,
h2,
h3,
h4 {
   color: var(--color-heading);
   font-family: var(--font-display);
   line-height: 1.15;
   font-weight: 700;
}

h1 {
   font-size: var(--text-h1);
   letter-spacing: var(--tracking-tighter);
}

h2 {
   font-size: var(--text-h2);
   letter-spacing: var(--tracking-tight);
   text-wrap: balance;   /* no one-word last lines with the wider Sora */
}

h3 {
   font-size: var(--text-h3);
   letter-spacing: -0.01em;
}

p {
   color: var(--color-text-muted);
}


/* ---------------------------------------------------------
   5. Buttons
   --------------------------------------------------------- */

/* Two layers do the drawing so outlined buttons stay see-through:
   ::before = fill (plus the hover sweep), ::after = 1px keyline.
   Variants only set the --btn-* colours; --btn-radius sets the shape. */

.button {
   --btn-radius: var(--radius-sm);
   --btn-fg: var(--color-heading);
   --btn-bg: transparent;
   --btn-line: transparent;
   --btn-sweep: transparent;
   --btn-fg-hover: var(--btn-fg);
   --btn-line-hover: var(--btn-line);

   position: relative;
   isolation: isolate;

   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 10px;

   min-height: 48px;
   padding: 0 22px;

   border: 0;
   border-radius: var(--btn-radius);
   background: none;
   appearance: none;

   color: var(--btn-fg);
   font-weight: 600;
   line-height: 1;
   white-space: nowrap;
   cursor: pointer;

   transition:
      color var(--dur-3) var(--ease-out),
      transform var(--dur-1) var(--ease-out);
}

.button::before,
.button::after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   border-radius: inherit;
   pointer-events: none;
}

.button::before {
   background:
      linear-gradient(var(--btn-sweep) 0 0) no-repeat 0 0 / 0% 100%,
      var(--btn-bg);
   transition: background-size var(--dur-3) var(--ease-out);
}

.button::after {
   border: 1px solid var(--btn-line);
   transition: border-color var(--dur-3) var(--ease-out);
}

/* Hover: the fill sweeps across */

.button:hover {
   color: var(--btn-fg-hover);
}

.button:hover::before {
   background-size: 100% 100%, auto;
}

.button:hover::after {
   border-color: var(--btn-line-hover);
}

.button:active {
   transform: scale(0.97);
}

.button:focus-visible {
   outline-offset: 4px;
}

.button[aria-disabled="true"],
.button:disabled {
   opacity: 0.45;
   cursor: not-allowed;
   transform: none;
   color: var(--btn-fg);
}

.button[aria-disabled="true"]::before,
.button:disabled::before {
   background-size: 0% 100%, auto;
}

.button[aria-disabled="true"]::after,
.button:disabled::after {
   border-color: var(--btn-line);
}

/* Sizes */

.button-sm {
   min-height: 40px;
   padding: 0 16px;
   font-size: var(--text-sm);
}

.button-lg {
   min-height: 52px;
   padding: 0 26px;
}

.button-block {
   width: 100%;
}

/* Variants. Primary: Contact Us, Send, Save, OK */

.button-primary {
   --btn-fg: var(--color-text-inverse);
   --btn-bg: var(--color-primary);
   --btn-line: var(--color-primary);
   --btn-sweep: var(--color-surface-dark);
}

/* Secondary: an alternative action that isn't the main one */

.button-secondary {
   --btn-fg: var(--color-heading);
   --btn-line: var(--color-border-strong);
   --btn-sweep: var(--color-primary-tint);
   --btn-fg-hover: var(--color-primary);
   --btn-line-hover: var(--color-primary);
}

/* Quiet: Cancel, Back, Close */

.button-quiet {
   --btn-fg: var(--color-text-muted);
   --btn-sweep: var(--color-surface-alt);
   --btn-fg-hover: var(--color-heading);
   --btn-line-hover: var(--color-border);
}

/* Danger: Delete, Remove */

.button-danger {
   --btn-fg: var(--color-text-inverse);
   --btn-bg: var(--color-danger);
   --btn-line: var(--color-danger);
   --btn-sweep: var(--color-danger-hover);
}

/* On navy sections the primary sweeps to white */

:is(.site-header, .hero, .why-section, .site-footer, .on-dark) .button-primary {
   --btn-sweep: var(--color-text-inverse);
   --btn-fg-hover: var(--color-surface-dark);
   --btn-line-hover: var(--color-text-inverse);
}

:is(.site-header, .hero, .why-section, .site-footer, .on-dark) .button-secondary {
   --btn-fg: var(--color-text-inverse);
   --btn-line: var(--color-border-on-dark-strong);
   --btn-sweep: rgb(var(--brand-blue-rgb) / 0.22);
   --btn-fg-hover: var(--color-text-inverse);
   --btn-line-hover: var(--color-primary-on-dark);
}

:is(.site-header, .hero, .why-section, .site-footer, .on-dark) .button-quiet {
   --btn-fg: var(--color-text-muted-on-dark);
   --btn-sweep: rgb(255 255 255 / 0.06);
   --btn-fg-hover: var(--color-text-inverse);
   --btn-line-hover: var(--color-border-on-dark);
}

/* Busy (e.g. "Sending…"): a band scans across until it's done */

@keyframes button-scan {
   from {
      background-position: -70% 0, 0 0;
   }

   to {
      background-position: 170% 0, 0 0;
   }
}

.button[aria-busy="true"] {
   cursor: progress;
   pointer-events: none;
   color: var(--btn-fg);
}

.button[aria-busy="true"]::before {
   background:
      linear-gradient(90deg, transparent, var(--btn-sweep), transparent) no-repeat -70% 0 / 40% 100%,
      var(--btn-bg);
   animation: button-scan 1.1s var(--ease-in-out) infinite;
}

@media (prefers-reduced-motion: reduce) {

   .button,
   .button::before,
   .button::after {
      transition: none;
   }

   .button[aria-busy="true"]::before {
      animation: none;
      background-size: 0% 100%, auto;
   }
}

/* Arrow nudge shared by buttons and text links */

.button span[aria-hidden="true"],
.text-link span[aria-hidden="true"] {
   font-size: 1.2rem;
   transition: transform var(--dur-2) var(--ease-out);
}

.button:hover span[aria-hidden="true"] {
   transform: translateX(4px);
}

.text-link:hover span[aria-hidden="true"] {
   transform: translateX(5px);
}


/* ---------------------------------------------------------
   6. Section
   --------------------------------------------------------- */

.section {
   padding: var(--space-4xl) 0;
}


/* ---------------------------------------------------------
   7. Accessibility
   --------------------------------------------------------- */

:focus-visible {
   outline: 2px solid var(--focus-color, var(--color-focus));
   outline-offset: 3px;
}

/* Dark surfaces use the lighter blue for focus rings */

.site-header,
.hero,
.why-section,
.site-footer,
.on-dark {
   --focus-color: var(--color-focus-on-dark);
}


/* ---------------------------------------------------------
   8. Responsive
   --------------------------------------------------------- */

@media (min-width: 768px) {
   :root {
      --page-padding: 40px;
   }
}

@media (min-width: 960px) {
   :root {
      --header-height: 80px;
   }
}

@media (min-width: 1200px) {
   :root {
      --page-padding: 48px;
   }
}

/* =========================================================
   Machine & Mouse
   Homepage
   ========================================================= */


/* =========================================================
   Header & Navigation — Dark Theme (owner, 2026-11-10)
   Navy bar; reversed mark and the light-on-dark wordmark.
   One <nav>: inline on desktop (≥960px), a drop-down panel on
   smaller screens when JS runs, and a plain stacked list without JS.
   ========================================================= */

/* ---------------------------------------------------------
   Skip link
   --------------------------------------------------------- */

.skip-link {
   position: absolute;
   top: 8px;
   left: 8px;
   z-index: 1100;

   padding: 10px 16px;

   color: var(--color-text-inverse);
   background: var(--color-primary);
   border-radius: var(--radius-sm);

   font-weight: 600;

   transform: translateY(-150%);
   transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus {
   transform: none;
}

main:focus {
   outline: none;
}


/* ---------------------------------------------------------
   Header bar
   --------------------------------------------------------- */

.header-sentinel {
   position: absolute;
   top: 0;
   left: 0;

   width: 1px;
   height: 8px;

   pointer-events: none;
}

.site-header {
   position: sticky;
   top: 0;
   z-index: 1000;

   --header-bg: var(--color-surface-dark);

   background: var(--header-bg);
   border-bottom: 1px solid var(--color-border-on-dark);

   transition: box-shadow var(--dur-3) var(--ease-out);
}

.site-header.is-scrolled {
   box-shadow: 0 10px 30px rgb(0 0 0 / 0.28);
}


.header-inner {
   position: relative;

   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: var(--space-lg);

   min-height: var(--header-height);
}


/* ---------------------------------------------------------
   Brand: the reversed mark (images/brand/mark-on-navy.svg) beside the
   wordmark (images/brand/machine-and-mouse-wordmark-dark.svg): the
   on-navy lockup's own parts, unaltered, so each can be sized alone.
   --------------------------------------------------------- */

.brand {
   display: inline-flex;
   flex-shrink: 0;
   align-items: center;
   gap: 10px;

   /* 44px touch target without moving anything */
   padding-block: 3px;
   margin-block: -3px;

   border-radius: 2px;
}

/* Mark and wordmark are separate files (official mark, and the
   lockup's own lettering on its own), so each can be sized alone. */
.brand-mark {
   width: auto;
   height: 44px;
}

.brand-wordmark {
   display: block;
   width: auto;
   height: 30px;
}

.brand-mark {
   display: block;
}


/* ---------------------------------------------------------
   Links
   --------------------------------------------------------- */

.nav-list {
   display: flex;
   list-style: none;
}

.nav-list a {
   position: relative;

   display: flex;
   align-items: center;

   min-height: 44px;

   color: var(--color-text-on-dark);

   font-size: var(--text-sm);
   font-weight: 600;

   transition: color var(--dur-2) var(--ease-out);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
   color: var(--color-text-inverse);
}


/* "Contact Us" button (the enquiry route) and the sales email,
   which only shows in the phone menu */

.nav-cta {
   flex-shrink: 0;
   min-height: 44px;
   padding: 0 20px;
   font-size: var(--text-sm);
}

.nav-email {
   display: none;
}

.nav-backdrop {
   display: none;
}


/* ---------------------------------------------------------
   Menu toggle (only shown below 960px when JS runs)
   --------------------------------------------------------- */

.nav-toggle {
   display: none;

   width: 44px;
   height: 44px;

   margin-right: -10px;
   padding: 10px;

   border: 0;
   border-radius: var(--radius-sm);
   background: transparent;

   cursor: pointer;
}

.nav-toggle span {
   display: block;

   width: 100%;
   height: 2px;

   margin: 5px 0;

   background: var(--color-text-inverse);

   transition:
      transform var(--dur-2) var(--ease-out),
      opacity var(--dur-2) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
   transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
   opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
   transform: translateY(-7px) rotate(-45deg);
}

.nav-indicator {
   display: none;
}


/* ---------------------------------------------------------
   Below 960px: stacked menu
   --------------------------------------------------------- */

@media (max-width: 959px) {

   /* Without JS the nav simply wraps onto its own row, and the
      (now tall) header scrolls away instead of sticking */

   html:not(.js) .site-header {
      position: relative;
   }

   .site-nav {
      flex-basis: 100%;
      padding-bottom: var(--space-lg);
   }

   .nav-list {
      flex-direction: column;
   }

   .nav-list a {
      min-height: 52px;

      border-bottom: 1px solid var(--color-border-on-dark);

      font-size: var(--text-base);
   }

   /* Current page marker: the scroll-wheel capsule motif */

   .nav-list a[aria-current="page"]::before {
      content: "";

      width: 4px;
      height: 16px;

      margin-right: 12px;

      background: var(--color-primary-on-dark);
      border-radius: 2px;
   }

   .nav-cta {
      width: 100%;
      min-height: 48px;
      margin-top: var(--space-lg);
      font-size: var(--text-base);
   }

   .nav-email {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      margin-top: var(--space-xs);

      color: var(--color-text-muted-on-dark);
      font-size: var(--text-sm);

      transition: color var(--dur-2) var(--ease-out);
   }

   .nav-email:hover {
      color: var(--color-primary-on-dark);
   }

   /* With JS: toggle + drop-down panel */

   .js .nav-toggle {
      display: block;
   }

   .js .site-nav {
      position: absolute;
      top: 100%;
      left: calc(var(--page-padding) * -1);
      right: calc(var(--page-padding) * -1);

      padding: var(--space-xs) var(--page-padding) var(--space-lg);

      background: var(--header-bg);
      border-top: 1px solid var(--color-border-on-dark);
      border-bottom: 1px solid var(--color-border-on-dark);
      box-shadow: 0 18px 30px rgb(0 0 0 / 0.3);

      /* Short landscape screens: the panel scrolls, not the page */
      max-height: calc(100dvh - var(--header-height));
      overflow-y: auto;
      overscroll-behavior: contain;

      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);

      transition:
         opacity var(--dur-2) var(--ease-out),
         transform var(--dur-2) var(--ease-out),
         visibility 0s linear var(--dur-2);
   }

   .js .site-header.menu-open .site-nav {
      opacity: 1;
      visibility: visible;
      transform: none;

      transition-delay: 0s;
   }

   /* Page behind the open menu: dimmed and held still */

   .js .nav-backdrop {
      position: fixed;
      inset: 0;
      z-index: 999;
      display: block;

      background: rgb(var(--brand-navy-rgb) / 0.6);

      opacity: 0;
      visibility: hidden;

      transition:
         opacity var(--dur-2) var(--ease-out),
         visibility 0s linear var(--dur-2);
   }

   .js .site-header.menu-open + .nav-backdrop {
      opacity: 1;
      visibility: visible;

      transition-delay: 0s;
   }

   html.menu-locked {
      overflow: hidden;
   }
}


/* ---------------------------------------------------------
   960px and up: inline navigation
   --------------------------------------------------------- */

@media (min-width: 960px) {

   .header-inner {
      flex-wrap: nowrap;
   }

   .brand {
      gap: 12px;
   }

   .brand-mark {
      height: 54px;
   }

   .brand-wordmark {
      height: 40px;
   }

   .site-nav {
      display: flex;
      align-items: center;
      gap: var(--space-xl);
   }

   .nav-links {
      position: relative;
   }

   .nav-list {
      gap: 28px;
   }

   /* CSS-only underline; replaced by the gliding indicator when JS runs */

   .nav-list a::after {
      content: "";

      position: absolute;
      left: 0;
      bottom: 4px;

      width: 100%;
      height: 3px;

      background: var(--color-primary-on-dark);
      border-radius: 2px;

      transform: scaleX(0);
      transform-origin: left;

      transition: transform var(--dur-2) var(--ease-out);
   }

   .nav-list a:hover::after,
   .nav-list a[aria-current="page"]::after {
      transform: scaleX(1);
   }

   .site-nav.has-indicator .nav-list a::after {
      display: none;
   }

   .nav-indicator {
      position: absolute;
      left: 0;
      bottom: 4px;

      display: block;

      width: 0;
      height: 3px;

      background: var(--color-primary-on-dark);
      border-radius: 2px;

      opacity: 0;

      pointer-events: none;
   }

   .nav-indicator.is-ready {
      transition:
         transform var(--dur-3) var(--ease-out),
         width var(--dur-3) var(--ease-out),
         opacity var(--dur-2) var(--ease-out);
   }
}

@media (prefers-reduced-motion: reduce) {

   .nav-indicator.is-ready,
   .js .site-nav,
   .js .nav-backdrop {
      transition: none;
   }
}


/* =========================================================
   Hero
   Above the fold, so it animates on load with CSS only (not the
   scroll observer). The static state is the finished design.
   ========================================================= */

.hero {
   position: relative;

   display: flex;
   align-items: center;

   min-height: clamp(640px, calc(100svh - var(--header-height)), 820px);

   overflow: hidden;

   background: var(--color-surface-dark);
}


/* ---------------------------------------------------------
   Subtle Background Grid
   --------------------------------------------------------- */

.hero-grid {
   position: absolute;
   inset: 0;

   pointer-events: none;

   opacity: 0.045;

   background-image:
      linear-gradient(rgb(255 255 255 / 0.8) 1px,
         transparent 1px),
      linear-gradient(90deg,
         rgb(255 255 255 / 0.8) 1px,
         transparent 1px);

   background-size: 64px 64px;

   mask-image: radial-gradient(ellipse 80% 90% at 70% 50%,
         black,
         transparent 75%);

   -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 50%,
         black,
         transparent 75%);
}


/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.hero-container {
   position: relative;
   z-index: 2;

   display: grid;
   grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
   align-items: center;
   gap: var(--space-3xl);

   padding-block: var(--space-4xl);
}


/* ---------------------------------------------------------
   Content
   --------------------------------------------------------- */

.hero-content {
   max-width: 640px;
}

.hero-eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 12px;

   margin-bottom: var(--space-lg);

   color: var(--color-primary-on-dark);

   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: var(--text-eyebrow);
   letter-spacing: 0.08em;
   text-transform: uppercase;
}

.hero-eyebrow::before {
   content: "";

   width: 28px;
   height: 2px;

   background: var(--color-primary);
}

.hero h1 {
   color: var(--color-text-inverse);

   font-size: clamp(2.4rem, 4.2vw, 3.6rem);   /* Sora is wider: each phrase stays on one line */
   line-height: 1.06;
   letter-spacing: var(--tracking-tighter);
}

/* Each line sits in a mask so it can slide up into view.
   The padding/margin pair stops descenders being clipped. */

.hero-line {
   display: block;

   overflow: hidden;

   padding-bottom: 0.08em;
   margin-bottom: -0.08em;
}

.hero-line>span {
   display: block;
}

.hero-line-muted {
   color: var(--color-text-on-dark);
}

.hero-lede {
   max-width: 560px;

   margin-top: var(--space-xl);

   color: var(--color-text-on-dark);

   font-size: var(--text-lg);
   line-height: var(--leading-body);
}


/* ---------------------------------------------------------
   Actions
   --------------------------------------------------------- */

.hero-actions {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: var(--space-md) var(--space-xl);

   margin-top: var(--space-2xl);
}

.hero-link {
   display: inline-flex;
   align-items: center;
   gap: 10px;

   min-height: 48px;

   color: var(--color-text-inverse);

   font-weight: 600;
}

.hero-link-text {
   text-decoration: underline;
   text-decoration-color: rgb(255 255 255 / 0.3);
   text-decoration-thickness: 1px;
   text-underline-offset: 6px;

   transition: text-decoration-color var(--dur-2) var(--ease-out);
}

.hero-link-arrow {
   color: var(--color-primary-on-dark);

   transition: transform var(--dur-2) var(--ease-out);
}

.hero-link:hover .hero-link-text {
   text-decoration-color: var(--color-primary-on-dark);
}

.hero-link:hover .hero-link-arrow {
   transform: translateX(3px);
}


/* ---------------------------------------------------------
   Visual — workstation schematic (decorative SVG)
   --------------------------------------------------------- */

.hero-visual {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: var(--space-sm);
}

.schematic {
   width: 100%;
   max-width: 540px;
   height: auto;

   overflow: visible;
}

.schematic path {
   stroke-width: 1.5;
   vector-effect: non-scaling-stroke;
}

.s-line path {
   stroke: rgb(199 211 223 / 0.7);
}

.s-faint path {
   stroke: rgb(199 211 223 / 0.28);
}

.s-accent path {
   stroke: var(--color-primary-on-dark);
}

/* Component images (images/hero/): fade in, the line art draws in */
/* White, lit screen (owner, 2026-11-10); navy text on it */
.screen-bg {
   fill: var(--brand-white);
}

.screen .s-faint path {
   stroke: rgb(var(--brand-navy-rgb) / 0.14);
}

.s-note path {
   stroke: rgb(var(--brand-blue-rgb) / 0.8);
   stroke-width: 1;
}

.s-label text {
   fill: var(--color-text-muted-on-dark);

   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 12px;
   letter-spacing: 0.06em;
   text-transform: uppercase;
}


/* ---------------------------------------------------------
   Live screen — cycles the supply categories (js/main.js).
   Without JS or with reduced motion it shows the first one.
   --------------------------------------------------------- */

.screen-label,
.screen-count,
.screen-sub {
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 10.5px;
   letter-spacing: 0.08em;
   text-transform: uppercase;
}

.screen-label {
   fill: var(--brand-navy);
}

.screen-count {
   fill: var(--color-primary);
}

.screen-name {
   fill: var(--brand-navy);

   font-family: var(--font-display);
   font-size: 23px;
   font-weight: 700;
   letter-spacing: -0.02em;
}

.screen-sub {
   fill: var(--brand-navy);

   font-size: 10.5px;
   letter-spacing: 0.05em;
}

.screen-item {
   transition:
      opacity 180ms var(--ease-out),
      transform 180ms var(--ease-out);
}

.screen-item.is-out {
   opacity: 0;
   transform: translateY(-6px);
}

.screen-item.is-entering {
   opacity: 0;
   transform: translateY(6px);
   transition: none;
}

.screen-progress {
   fill: var(--color-primary);

   transform-box: fill-box;
   transform-origin: left center;
}


/* Mini cursor on the drawn screen mirrors the visitor's pointer */

.screen-cursor {
   opacity: 0;

   transition: opacity var(--dur-3) var(--ease-out);
}

.screen-cursor.is-active {
   opacity: 1;
}

.screen-cursor path {
   fill: var(--brand-navy);
   stroke: var(--brand-white);
   stroke-width: 1;
}

.screen-click {
   fill: none;
   stroke: var(--color-primary);
   stroke-width: 1.5;

   opacity: 0;

   transform-box: fill-box;
   transform-origin: center;
}


/* Mouse: press layers light up on click, the wheel layer flashes on scroll */

.mouse-btn,
.s-wheel {
   opacity: 0;

   transition: opacity 160ms var(--ease-out);
}

.mouse-btn.is-pressed {
   opacity: 1;

   transition-duration: 40ms;
}


/* Pause / play control for the cycling screen */

.screen-toggle {
   position: relative;

   display: inline-flex;
   align-items: center;
   gap: 8px;

   min-height: 32px;
   padding: 4px 12px;

   color: var(--color-text-muted-on-dark);
   background: transparent;
   border: 1px solid var(--color-border-on-dark);
   border-radius: 999px;

   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.7rem;
   letter-spacing: 0.08em;
   text-transform: uppercase;

   cursor: pointer;

   transition:
      color var(--dur-2) var(--ease-out),
      border-color var(--dur-2) var(--ease-out);
}

/* Extends the hit area to 44px without enlarging the pill
   (offsets are from the padding box, inside the 1px border) */

.screen-toggle::after {
   content: "";
   position: absolute;
   inset: -7px -1px;
}

.screen-toggle[hidden] {
   display: none;
}

.screen-toggle:hover {
   color: var(--color-text-inverse);
   border-color: var(--color-border-on-dark-strong);
}

/* Pause icon (two bars); becomes a play triangle when paused */

.screen-toggle-icon {
   width: 8px;
   height: 9px;

   border-inline: 2.5px solid currentColor;
}

.screen-toggle.is-paused .screen-toggle-icon {
   border: 0;
   background: currentColor;
   clip-path: polygon(0 0, 100% 50%, 0 100%);
}


/* ---------------------------------------------------------
   Scroll cue — the scroll-wheel motif. Decorative; plays 3
   times (under 5s) then rests; hides once the page scrolls.
   --------------------------------------------------------- */

.scroll-cue {
   position: absolute;
   left: 50%;
   bottom: 24px;
   z-index: 2;

   display: none;
   flex-direction: column;
   align-items: center;
   gap: 8px;

   color: var(--color-text-muted-on-dark);

   transform: translateX(-50%);
   transition: opacity var(--dur-3) var(--ease-out);
}

@media (min-width: 960px) and (min-height: 700px) {
   .scroll-cue {
      display: flex;
   }
}

.has-scrolled .scroll-cue {
   opacity: 0;
   pointer-events: none;
}

.scroll-cue-mouse {
   position: relative;

   width: 22px;
   height: 34px;

   border: 1.5px solid rgb(199 211 223 / 0.5);
   border-radius: 11px;

   transition: border-color var(--dur-2) var(--ease-out);
}

.scroll-cue:hover .scroll-cue-mouse {
   border-color: var(--color-primary-on-dark);
}

.scroll-cue-wheel {
   position: absolute;
   top: 7px;
   left: 50%;

   width: 4px;
   height: 8px;
   margin-left: -2px;

   background: var(--color-primary-on-dark);
   border-radius: 2px;
}

.scroll-cue-label {
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.66rem;
   letter-spacing: 0.14em;
   text-transform: uppercase;
}


/* ---------------------------------------------------------
   Load sequence (≈1.2s total; copy is readable within ~0.6s)
   --------------------------------------------------------- */

@keyframes hero-rise {
   from {
      opacity: 0;
      transform: translateY(16px);
   }
}

@keyframes hero-line-up {
   from {
      transform: translateY(105%);
   }
}

@keyframes hero-fade {
   from {
      opacity: 0;
   }
}

@keyframes schematic-draw {
   to {
      stroke-dashoffset: 0;
   }
}

@keyframes scroll-cue-roll {
   0% {
      opacity: 1;
      transform: none;
   }

   70% {
      opacity: 0;
      transform: translateY(9px);
   }

   100% {
      opacity: 0;
      transform: none;
   }
}

@media (prefers-reduced-motion: no-preference) {

   .hero-eyebrow {
      animation: hero-rise var(--dur-4) var(--ease-out) 60ms backwards;
   }

   .hero-line>span {
      animation: hero-line-up 800ms var(--ease-out) backwards;
   }

   .hero-line:nth-child(1)>span {
      animation-delay: 120ms;
   }

   .hero-line:nth-child(2)>span {
      animation-delay: 200ms;
   }

   .hero-line:nth-child(3)>span {
      animation-delay: 280ms;
   }

   .hero-lede {
      animation: hero-rise var(--dur-4) var(--ease-out) 320ms backwards;
   }

   .hero-actions {
      animation: hero-rise var(--dur-4) var(--ease-out) 400ms backwards;
   }

   /* Only the line-art paths draw in (they carry pathLength="1") */

   .schematic path[pathLength] {
      stroke-dasharray: 1;
      stroke-dashoffset: 1;

      animation: schematic-draw 1100ms var(--ease-in-out) forwards;
      animation-delay: var(--d, 0ms);
   }

   .s-img {
      animation: hero-fade var(--dur-4) var(--ease-out) backwards;
      animation-delay: var(--d, 0ms);
   }

   .s-label,
   .screen-ui {
      animation: hero-fade var(--dur-4) var(--ease-out) 1100ms backwards;
   }

   .scroll-cue {
      animation: hero-fade var(--dur-4) var(--ease-out) 1200ms backwards;
   }

   .scroll-cue-wheel {
      animation: scroll-cue-roll 1600ms var(--ease-in-out) 1400ms 3;
   }
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 959px) {

   .hero {
      min-height: auto;
   }

   .hero-container {
      grid-template-columns: 1fr;
      gap: var(--space-3xl);

      padding-block: 72px 64px;
   }

   .hero-visual {
      align-items: center;
   }

   .schematic {
      max-width: 460px;
   }
}

@media (max-width: 600px) {

   /* Sized so each headline phrase stays on one line on phones */

   .hero h1 {
      font-size: clamp(1.6rem, 8vw, 2.6rem);   /* "the way you work." fits 320px+ (2026-11-13) */
   }

   .hero-lede {
      font-size: var(--text-base);
   }

   /* Labels would be too small to read at this width */

   .s-note,
   .s-label {
      display: none;
   }
}


/* =========================================================
   Scroll Reveal Animations
   Content is only hidden when JS is running (html.js) and the
   visitor has not asked for reduced motion. Entrances use
   keyframes so they never fight a component's own transitions.
   ========================================================= */

@keyframes reveal-rise {
   from {
      opacity: 0;
      transform: translateY(var(--reveal-distance, 32px));
   }

   to {
      opacity: 1;
      transform: none;
   }
}

@media (prefers-reduced-motion: no-preference) {

   .js .reveal:not(.is-visible),
   .js .reveal-stagger:not(.is-visible)>* {
      opacity: 0;
   }

   .js .reveal.is-visible {
      animation: reveal-rise var(--dur-4) var(--ease-out) backwards;
      animation-delay: var(--reveal-delay, 0ms);
   }

   .js .reveal-stagger.is-visible>* {
      --reveal-distance: 24px;

      animation: reveal-rise var(--dur-4) var(--ease-out) backwards;
      animation-delay: calc(var(--i, 0) * var(--stagger));
   }
}


/* ========================================
   Shared section heading
   ======================================== */

/* Same label style and blue bar as the page-intro eyebrows
   (Sora SemiBold; owner, 2026-11-16) */
.section-eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 12px;
   margin-bottom: var(--space-md);
   color: var(--color-primary);
   font-family: var(--font-label);
   font-size: var(--text-eyebrow);
   font-weight: 600;
   letter-spacing: 0.08em;
   text-transform: uppercase;
}

.section-eyebrow::before,
.cta-eyebrow::before {
   content: "";
   flex: none;
   width: 28px;
   height: 2px;
   background: var(--color-primary);
}

.section-heading {
   max-width: 760px;
   margin-bottom: var(--space-3xl);
}

.section-heading h2 {
   margin-bottom: var(--space-md);
   line-height: var(--leading-snug);
}

.section-heading p {
   max-width: 620px;
   font-size: var(--text-md);
   line-height: var(--leading-body);
}


/* ========================================
   SUPPLY TAGS
   Small mono pills listing examples; used on the What We
   Supply cards and the Services rows. (The home page supply
   grid was removed 2026-10-22; the range lives on /supply.)
   ======================================== */

.supply-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   margin-top: 16px;
   padding: 0;

   color: var(--color-text-muted);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.72rem;
   letter-spacing: var(--tracking-label);
   text-transform: uppercase;
   list-style: none;
}

.supply-tags li {
   padding: 3px 8px;
   border: 1px solid var(--color-border);
   border-radius: 999px;
}


/* ========================================
   HOW IT WORKS (Section 4b)
   Light band. A blueprint line joins three round nodes;
   js/main.js draws it with scroll via --progress (0–1).
   ======================================== */

.process-section {
   --progress: 1;
   --node: 56px;

   position: relative;
   overflow: hidden;

   background: var(--color-surface);
}

.process-grid {
   position: absolute;
   inset: 0;
   pointer-events: none;
   opacity: 0.06;

   background-image:
      linear-gradient(rgb(var(--brand-navy-rgb) / 0.8) 1px, transparent 1px),
      linear-gradient(90deg, rgb(var(--brand-navy-rgb) / 0.8) 1px, transparent 1px);
   background-size: 64px 64px;

   mask-image: radial-gradient(ellipse 70% 80% at 30% 60%, black, transparent 75%);
   -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 60%, black, transparent 75%);
}

.process-section .container {
   position: relative;
}

.process-section .section-heading {
   max-width: 860px;
}

.process-section .section-eyebrow {
   color: var(--color-primary);
}

.process-section h2 {
   color: var(--color-heading);
}

.process-section .section-heading p {
   color: var(--color-text-muted);
}

/* Steps: vertical on phones, the line runs down the left */

.process-steps {
   position: relative;
   display: grid;
   gap: 40px;
   margin: 0;
   padding: 0;
   list-style: none;
}

/* Track (faint, dashed) and drawn line (blue) from the first node's
   centre to the last; js/main.js measures that distance as --span */
.process-steps::before,
.process-steps::after {
   content: "";
   position: absolute;
   top: calc(var(--node) / 2);
   left: calc(var(--node) / 2);
   width: 1.5px;
   height: var(--span, 0px);
   translate: -50% 0;
}

.process-steps::before {
   background-image: repeating-linear-gradient(to bottom,
         rgb(var(--brand-navy-rgb) / 0.22) 0 6px,
         transparent 6px 12px);
}

.process-steps::after {
   height: calc(var(--span, 0px) * var(--progress));
   background: var(--color-primary);
}

.process-step {
   position: relative;
   z-index: 1;
   display: grid;
   grid-template-columns: var(--node) 1fr;
   column-gap: 24px;
   align-items: start;
}

.process-step h3,
.process-step p {
   grid-column: 2;
}

.process-step h3 {
   margin: 14px 0 8px;
   color: var(--color-heading);
}

.process-step p {
   max-width: 340px;
   color: var(--color-text-muted);
   font-size: var(--text-sm);
   line-height: 1.65;
}

/* Node: circle, step number in mono (steps keep their numbers) */
.process-node {
   grid-row: span 2;
   display: grid;
   place-items: center;
   width: var(--node);
   height: var(--node);

   color: var(--color-primary);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: var(--text-xs);
   letter-spacing: var(--tracking-label);

   background: var(--color-surface);
   box-shadow: inset 0 0 0 1.5px rgb(var(--brand-blue-rgb) / 0.6);
   border-radius: 50%;

   transition:
      background-color var(--dur-3) var(--ease-out),
      color var(--dur-3) var(--ease-out);
}

.process-step.is-reached .process-node {
   color: var(--color-text-inverse);
   background: var(--color-primary);
}

/* Desktop and tablet: horizontal, the line runs across the node row */

@media (min-width: 768px) {
   .process-steps {
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
   }

   .process-steps::before,
   .process-steps::after {
      width: var(--span, 0px);
      height: 1.5px;
      translate: 0 -50%;
   }

   .process-steps::before {
      background-image: repeating-linear-gradient(to right,
            rgb(var(--brand-navy-rgb) / 0.22) 0 6px,
            transparent 6px 12px);
   }

   .process-steps::after {
      width: calc(var(--span, 0px) * var(--progress));
   }

   .process-step {
      grid-template-columns: 1fr;
   }

   .process-step h3,
   .process-step p {
      grid-column: 1;
   }

   .process-step h3 {
      margin-top: 28px;
   }

   .process-node {
      grid-row: auto;
   }
}

/* Before reaching a node, its text waits slightly dimmed */

@media (prefers-reduced-motion: no-preference) {
   .js .process-step h3,
   .js .process-step p {
      transition:
         opacity var(--dur-3) var(--ease-out),
         transform var(--dur-3) var(--ease-out);
   }

   .js .process-section.is-tracking .process-step:not(.is-reached) h3,
   .js .process-section.is-tracking .process-step:not(.is-reached) p {
      opacity: 0.35;
      transform: translateY(6px);
   }
}


/* ========================================
   WHY MACHINE & MOUSE (Section 5)
   Intro on the left (sticky on desktop), four rounded
   tiles in a 2×2 grid on the right, matching What We Supply.
   ======================================== */

.why-section {
   background: var(--color-surface-dark);
}

.why-section .section-eyebrow,
.why-section .text-link {
   color: var(--color-primary-on-dark);
}

.why-intro h2 {
   color: var(--color-text-inverse);
}

.why-intro p {
   color: var(--color-text-on-dark);
}

.why-layout {
   display: grid;
   grid-template-columns: 1fr;
   gap: var(--space-3xl);
}

.why-intro {
   max-width: 520px;
}

.why-intro h2 {
   margin-bottom: var(--space-lg);
   line-height: 1.08;
   letter-spacing: -0.045em;
}

.why-intro p {
   margin-bottom: var(--space-xl);
   font-size: var(--text-md);
   line-height: 1.7;
}

.text-link {
   display: inline-flex;
   align-items: center;
   gap: 10px;

   /* 44px touch target without moving anything */
   padding-block: 7px;
   margin-block: -7px;
   color: var(--color-primary);
   font-size: 0.95rem;
   font-weight: 700;
}

.why-points {
   display: grid;
   grid-template-columns: 1fr;
   gap: 16px;
}

/* Rounded tile, raised on navy */
.why-point {

   position: relative;
   overflow: hidden;
   padding: 26px 26px 28px;

   background: var(--color-surface-dark-raised);
   border: 1px solid var(--color-border-on-dark);
   border-radius: var(--radius-md);

   transition:
      transform var(--dur-2) var(--ease-out),
      border-color var(--dur-2) var(--ease-out);
}


.why-point h3 {
   margin-bottom: 8px;
   color: var(--color-text-inverse);
}

.why-point p {
   color: var(--color-text-on-dark);
   font-size: var(--text-sm);
   line-height: 1.65;
}

@media (hover: hover) {
   .why-point:hover {
      transform: translateY(-2px);
      border-color: rgb(var(--brand-blue-rgb) / 0.6);
   }

   .why-point:hover::after {
      background: rgb(var(--brand-blue-rgb) / 0.6);
   }
}

@media (min-width: 601px) {
   .why-points {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (min-width: 1000px) {
   .why-layout {
      grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
      gap: var(--space-4xl);
      align-items: start;
   }

   .why-intro {
      position: sticky;
      top: calc(var(--header-height) + 40px);
   }
}

/* ========================================
   CTA SECTION (Section 6)
   Copy on the left; on wider screens a drawn enquiry
   list on the right (blueprint style, decorative).
   ======================================== */

.cta-section {
   position: relative;
   overflow: hidden;
   padding: 110px 0;
   background: var(--color-surface);
}

.cta-layout {
   display: grid;
   grid-template-columns: 1fr;
   gap: var(--space-3xl);
   align-items: center;
}

.cta-content {
   position: relative;
   z-index: 2;
   max-width: 640px;
}

.cta-eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 12px;
   margin-bottom: var(--space-lg);
   color: var(--color-primary);
   font-family: var(--font-label);
   font-size: var(--text-eyebrow);
   font-weight: 600;
   letter-spacing: 0.08em;
   text-transform: uppercase;
}

.cta-content h2 {
   margin-bottom: var(--space-lg);
   color: var(--color-heading);
   font-size: var(--text-display);
   line-height: var(--leading-tight);
   letter-spacing: var(--tracking-tighter);
   text-wrap: balance;
}

.cta-content p {
   max-width: 540px;
   text-wrap: pretty;
   margin-bottom: var(--space-2xl);
   color: var(--color-text);
   font-size: var(--text-md);
   line-height: var(--leading-body);
}

/* Enquiry sheet (hidden on small screens) */

.cta-visual {
   display: none;
}

.cta-sheet {
   display: block;
   width: 100%;
   max-width: 340px;
   height: auto;
   margin-left: auto;
}

.cta-sheet [pathLength] {
   stroke-width: 1.2;
}

.cta-sheet .c-main {
   stroke: rgb(var(--brand-navy-rgb) / 0.45);
}

.cta-sheet .c-faint {
   stroke: rgb(var(--brand-navy-rgb) / 0.14);
}

.cta-sheet .c-accent {
   stroke: var(--color-primary);
}

.cta-sheet text {
   fill: var(--color-text);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 12px;
   letter-spacing: 0.08em;
}

.cta-sheet .c-head {
   fill: var(--color-text-muted);
   font-size: 10px;
   letter-spacing: 0.14em;
}

.cta-sheet .c-send {
   fill: var(--color-primary);
}

@media (min-width: 900px) {
   .cta-layout {
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
   }

   .cta-visual {
      display: block;
   }
}

@media (max-width: 600px) {
   .cta-section {
      padding: 80px 0;
   }

   .cta-content h2 {
      font-size: clamp(2.4rem, 11vw, 3.5rem);
   }

   .cta-content .button {
      width: 100%;
   }
}

/* The sheet draws in, then the rows "write" one by one */

@keyframes cta-fade {
   from {
      opacity: 0;
   }
}

@media (prefers-reduced-motion: no-preference) {
   .js .cta-sheet [pathLength] {
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
   }

   .js .cta-sheet text {
      opacity: 0;
   }

   .js .cta-visual.is-visible .cta-sheet [pathLength] {
      animation: schematic-draw 1000ms var(--ease-in-out) 200ms forwards;
   }

   .js .cta-visual.is-visible .cta-sheet .c-head {
      animation: cta-fade var(--dur-3) var(--ease-out) 700ms backwards;
      opacity: 1;
   }

   .js .cta-visual.is-visible .cta-sheet .c-rows text {
      animation: cta-fade var(--dur-2) var(--ease-out) backwards;
      animation-delay: calc(900ms + var(--r) * 220ms);
      opacity: 1;
   }

   .js .cta-visual.is-visible .cta-sheet .c-accent {
      animation-delay: 2000ms;
   }

   .js .cta-visual.is-visible .cta-sheet .c-send {
      animation: cta-fade var(--dur-3) var(--ease-out) 2300ms backwards;
      opacity: 1;
   }
}


/* =========================================================
   Inner pages: navy intro band (Contact, later About/Services)
   ========================================================= */

.page-hero {
   position: relative;
   overflow: hidden;

   padding: var(--space-4xl) 0 var(--space-3xl);

   background: var(--color-surface-dark);
}

.page-hero-grid {
   position: absolute;
   inset: 0;
   pointer-events: none;
   opacity: 0.045;

   background-image:
      linear-gradient(rgb(255 255 255 / 0.8) 1px, transparent 1px),
      linear-gradient(90deg, rgb(255 255 255 / 0.8) 1px, transparent 1px);
   background-size: 64px 64px;

   mask-image: radial-gradient(ellipse 80% 90% at 20% 40%, black, transparent 75%);
   -webkit-mask-image: radial-gradient(ellipse 80% 90% at 20% 40%, black, transparent 75%);
}

.page-hero-inner {
   position: relative;
}

.page-eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 12px;

   margin-bottom: var(--space-lg);

   color: var(--color-primary-on-dark);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: var(--text-eyebrow);
   letter-spacing: 0.08em;
   text-transform: uppercase;
}

.page-eyebrow::before {
   content: "";
   width: 28px;
   height: 2px;
   background: var(--color-primary);
}

.page-hero h1 {
   max-width: 760px;
   color: var(--color-text-inverse);
   font-size: var(--text-display);
   line-height: var(--leading-tight);
   letter-spacing: var(--tracking-tighter);
   text-wrap: balance;
}

.page-lede {
   max-width: 560px;
   margin-top: var(--space-lg);
   color: var(--color-text-on-dark);
   font-size: var(--text-md);
   line-height: var(--leading-body);
   text-wrap: pretty;
}

@media (prefers-reduced-motion: no-preference) {

   .page-hero-inner > * {
      animation: reveal-rise var(--dur-4) var(--ease-out) backwards;
   }

   .page-hero-inner > :nth-child(2) {
      animation-delay: 80ms;
   }

   .page-hero-inner > :nth-child(3) {
      animation-delay: 160ms;
   }
}


/* =========================================================
   Contact page: details on the left, enquiry form on the right
   ========================================================= */

.contact-section {
   padding: var(--space-3xl) 0 var(--space-4xl);
   background: var(--color-surface);
}

.contact-layout {
   display: grid;
   gap: var(--space-2xl);
   align-items: start;
}

.contact-details h2 {
   margin-bottom: var(--space-lg);
   font-size: clamp(1.6rem, 2.4vw, 2rem);
   line-height: var(--leading-snug);
}

.contact-list {
   display: grid;
   gap: var(--space-md);
}

.contact-list div {
   padding-bottom: var(--space-md);
   border-bottom: 1px solid var(--color-border-strong);
}

.contact-list dt {
   margin-bottom: 4px;
   color: var(--color-text-muted);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.72rem;
   letter-spacing: var(--tracking-label);
   text-transform: uppercase;
}

.contact-list dd {
   color: var(--color-heading);
   font-size: var(--text-md);
   font-weight: 600;
   overflow-wrap: anywhere;
}

.contact-list a {
   text-decoration: underline;
   text-decoration-color: rgb(var(--brand-blue-rgb) / 0.35);
   text-underline-offset: 4px;
   transition: color var(--dur-2) var(--ease-out), text-decoration-color var(--dur-2) var(--ease-out);
}

.contact-list a:hover {
   color: var(--color-primary);
   text-decoration-color: var(--color-primary);
}

/* The form sits on a white sheet with a mono header bar */

.enquiry {
   background: var(--color-surface);
   border: 1px solid var(--color-border);
   box-shadow: var(--shadow-sm);
}

.enquiry-form,
.enquiry-done {
   padding: var(--space-lg);
}

.enquiry-head {
   display: flex;
   justify-content: space-between;
   gap: var(--space-md);

   margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-lg);
   padding: 14px var(--space-lg);

   border-bottom: 1px solid var(--color-border);

   color: var(--color-text-muted);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.72rem;
   letter-spacing: var(--tracking-label);
   text-transform: uppercase;
}

.enquiry-count {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   transition: color var(--dur-2) var(--ease-out);
}

.enquiry-count::before {
   content: "";
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--color-border-strong);
   transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.enquiry-form.is-ready .enquiry-count {
   color: var(--color-primary);
}

.enquiry-form.is-ready .enquiry-count::before {
   background: var(--color-primary);
   box-shadow: 0 0 6px 1px rgb(var(--brand-blue-rgb) / 0.5);
}

.form-grid {
   display: grid;
   gap: var(--space-lg);
}

.field {
   display: grid;
   gap: 8px;
   align-content: start;
}

.field label {
   display: flex;
   align-items: baseline;
   gap: 6px;

   color: var(--color-heading);
   font-size: var(--text-sm);
   font-weight: 600;
}


.field-req {
   color: var(--color-primary);
}

.field-opt {
   color: var(--color-text-muted);
   font-weight: 400;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
   width: 100%;
   min-height: 48px;
   padding: 12px 14px;

   color: var(--color-text);
   background: var(--color-surface);
   border: 1px solid var(--color-border-strong);
   border-radius: var(--radius-sm);

   transition:
      border-color var(--dur-2) var(--ease-out),
      box-shadow var(--dur-2) var(--ease-out);
}

.field textarea {
   min-height: 150px;
   line-height: 1.6;
   resize: vertical;
}

.field ::placeholder {
   color: #8A97A8;
}

.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover {
   border-color: var(--color-text-muted);
}

.field input:not([type="checkbox"]):focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
   outline: none;
   border-color: var(--color-primary);
   box-shadow: 0 0 0 3px rgb(var(--brand-blue-rgb) / 0.22);
}

.field [aria-invalid="true"] {
   border-color: var(--color-danger) !important;
}

.field [aria-invalid="true"]:focus-visible {
   box-shadow: 0 0 0 3px rgb(198 40 40 / 0.18) !important;
}

.field-error {
   color: var(--color-danger);
   font-size: var(--text-sm);
}

/* Consent tick box */

.field-check {
   grid-template-columns: auto 1fr;
   column-gap: 12px;
   align-items: start;
}

.field-check input {
   width: 20px;
   height: 20px;
   margin-top: 2px;
   accent-color: var(--color-primary);
   cursor: pointer;
}

.field-check label {
   display: block;
   color: var(--color-text-muted);
   font-weight: 400;
   line-height: 1.55;
   cursor: pointer;
}

.field-check .field-error {
   grid-column: 2;
}

.form-alert {
   margin-bottom: var(--space-lg);
   padding: 14px 16px;

   color: var(--color-heading);
   background: rgb(198 40 40 / 0.06);
   border: 1px solid rgb(198 40 40 / 0.35);
   border-radius: var(--radius-sm);

   font-size: var(--text-sm);
   line-height: 1.6;
}

.form-alert a {
   color: var(--color-primary);
   text-decoration: underline;
   text-underline-offset: 3px;
}

.form-alert:focus {
   outline: none;
}

/* Hidden from people, still in the form for bots */

.form-trap {
   position: absolute;
   width: 1px;
   height: 1px;
   overflow: hidden;
   clip-path: inset(50%);
   white-space: nowrap;
}

.form-actions {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: var(--space-md) var(--space-lg);

   margin-top: var(--space-xl);
}

.form-hint {
   max-width: 280px;
   font-size: 0.82rem;
   line-height: 1.5;
}

/* Sent */

.enquiry-done {
   display: grid;
   justify-items: start;
   gap: var(--space-md);
   padding-block: var(--space-3xl);
}

.enquiry-done:focus {
   outline: none;
}

.enquiry-done[hidden] {
   display: none;
}

.enquiry-done-mark {
   stroke: var(--color-primary);
   stroke-width: 1.5;
   stroke-linecap: round;
   stroke-linejoin: round;
}

.enquiry-done h2 {
   font-size: clamp(1.8rem, 3vw, 2.4rem);
   line-height: var(--leading-snug);
}

@media (prefers-reduced-motion: no-preference) {

   .enquiry-done:not([hidden]) .enquiry-done-mark path {
      stroke-dasharray: 40;
      animation: enquiry-tick 500ms var(--ease-out) 150ms backwards;
   }
}

@keyframes enquiry-tick {
   from {
      stroke-dashoffset: 40;
   }
}

/* Without JavaScript, contact.php sends people back to #enquiry-sent
   or #send-error, so :target shows the right message */

.enquiry-done:target {
   display: grid;
}

.form-alert:target {
   display: block;
}

.enquiry:has(.enquiry-done:target) .enquiry-form {
   display: none;
}

@media (min-width: 601px) {

   .enquiry-form,
   .enquiry-done {
      padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
   }

   .enquiry-done {
      padding-block: var(--space-4xl);
   }

   .enquiry-head {
      margin: calc(var(--space-xl) * -1) calc(var(--space-2xl) * -1) var(--space-xl);
      padding-inline: var(--space-2xl);
   }

   .form-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--space-lg) var(--space-lg);
   }

   .field-wide {
      grid-column: 1 / -1;
   }
}

@media (min-width: 960px) {

   .contact-section {
      padding-top: var(--space-4xl);
   }

   .contact-layout {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
      gap: var(--space-3xl);
   }

   .contact-details {
      position: sticky;
      top: calc(var(--header-height) + var(--space-xl));
   }
}

@media (max-width: 600px) {

   .page-hero {
      padding: var(--space-3xl) 0 var(--space-2xl);
   }

   .form-actions .button {
      width: 100%;
   }
}


/* =========================================================
   About page: story on the left, a "company file" spec
   sheet on the right (verified facts only)
   ========================================================= */

.about-section {
   background: var(--color-surface);
}

.about-layout {
   display: grid;
   grid-template-columns: 1fr;
   gap: var(--space-3xl);
}

.about-story {
   max-width: 620px;
}

.about-story h2 {
   margin-bottom: var(--space-lg);
   line-height: var(--leading-snug);
   text-wrap: balance;
}

.about-story p {
   font-size: var(--text-md);
   line-height: var(--leading-body);
   text-wrap: pretty;
}

.about-story p + p {
   margin-top: var(--space-md);
}

.about-subhead {
   margin-top: var(--space-2xl);
   margin-bottom: var(--space-md);
   font-size: var(--text-h3);
}

/* Commitments: one row each, label above text, hairline between */
.about-commit {
   list-style: none;
   margin: 0;
   padding: 0;
}

.about-commit li {
   padding: var(--space-sm) 0;
   border-top: 1px solid var(--color-border);
   color: var(--color-text-muted);
   line-height: var(--leading-body);
}

.about-commit li:last-child {
   border-bottom: 1px solid var(--color-border);
}

.about-commit strong {
   display: block;
   color: var(--color-heading);
   font-weight: 600;
}

.about-story .about-close {
   margin-top: var(--space-xl);
   font-weight: 600;
   color: var(--color-heading);
}

/* Same rounded sheet as the Why tiles, with a mono header bar */
.company-file {

   position: relative;
   overflow: hidden;
   align-self: start;

   background: var(--color-surface-alt);
   border: 1px solid var(--color-border);
   border-radius: var(--radius-md);
}


.company-file-head {
   display: flex;
   justify-content: space-between;
   gap: var(--space-md);

   padding: 14px var(--space-lg);

   border-bottom: 1px solid var(--color-border);

   color: var(--color-text-muted);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.72rem;
   letter-spacing: var(--tracking-label);
   text-transform: uppercase;
}

.company-file-head span:first-child {
   color: var(--color-primary);
}

.company-file-list {
   margin: 0;
   padding: var(--space-xs) var(--space-lg) var(--space-md);
}

.company-file-list div {
   display: grid;
   grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
   gap: var(--space-md);
   align-items: baseline;

   padding: 14px 0;
}

.company-file-list div + div {
   border-top: 1px dashed var(--color-border-strong);
}

.company-file-list dt {
   color: var(--color-text-muted);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.72rem;
   letter-spacing: var(--tracking-label);
   text-transform: uppercase;
}

.company-file-list dd {
   margin: 0;
   color: var(--color-heading);
   font-size: var(--text-sm);
   font-weight: 600;
   overflow-wrap: anywhere;
}

@media (max-width: 420px) {
   .company-file-list div {
      grid-template-columns: 1fr;
      gap: 4px;
   }
}

@media (min-width: 1000px) {
   .about-layout {
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
      gap: var(--space-4xl);
      align-items: start;
   }

   .about-aside {
      position: sticky;
      top: calc(var(--header-height) + var(--space-xl));
   }
}

/* About page CTA has no drawing, so it needs less height */
.about-section + .cta-section {
   padding: var(--space-4xl) 0;
}


/* =========================================================
   Services page: intro on the left (sticky on desktop), a
   numbered service list on the right, then two audience
   cards.
   ========================================================= */

.services-section {
   background: var(--color-surface);
}

.services-layout {
   display: grid;
   grid-template-columns: 1fr;
   gap: var(--space-3xl);
}

.services-intro {
   max-width: 520px;
}

.services-intro h2 {
   margin-bottom: var(--space-lg);
   line-height: var(--leading-snug);
   text-wrap: balance;
}

.services-intro p {
   margin-bottom: var(--space-xl);
   font-size: var(--text-md);
   line-height: var(--leading-body);
   text-wrap: pretty;
}

.service-list {
   padding: 0;
   list-style: none;
   border-bottom: 1px solid var(--color-border);
}

.service-row {
   position: relative;
   display: grid;
   grid-template-columns: minmax(0, 1fr);

   padding: var(--space-xl) 0;
   border-top: 1px solid var(--color-border);
}

/* Blue tick on the top rule, grows on hover */
.service-row::before {
   content: "";
   position: absolute;
   top: -1px;
   left: 0;
   width: 32px;
   height: 2px;

   background: var(--color-primary);
   transition: width var(--dur-3) var(--ease-out);
}


.service-body h3 {
   margin-bottom: 8px;
   font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.service-body p {
   max-width: 560px;
   font-size: var(--text-sm);
   line-height: 1.7;
   text-wrap: pretty;
}

@media (hover: hover) {
   .service-row:hover::before {
      width: 100%;
   }
}

@media (min-width: 1000px) {
   .services-layout {
      grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
      gap: var(--space-4xl);
      align-items: start;
   }

   .services-intro {
      position: sticky;
      top: calc(var(--header-height) + 40px);
   }
}

/* Audience cards: rounded sheets (same corners as the Why tiles) */

.audience-section {
   background: var(--color-surface);
}

.audience-grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 16px;
}

.audience-card {

   position: relative;
   overflow: hidden;
   padding: 28px 28px 32px;

   background: var(--color-surface);
   border: 1px solid var(--color-border);
   border-radius: var(--radius-md);

   transition:
      transform var(--dur-2) var(--ease-out),
      border-color var(--dur-2) var(--ease-out);
}


.audience-art {
   display: block;
   width: 100%;
   max-width: 260px;
   height: auto;
   margin-bottom: var(--space-xl);

   stroke-width: 1.5;
   stroke-linecap: round;
   stroke-linejoin: round;
}

.audience-art .a-main {
   stroke: rgb(var(--brand-navy-rgb) / 0.6);
}

.audience-art .a-faint {
   stroke: rgb(var(--brand-navy-rgb) / 0.22);
}

.audience-art .a-accent {
   stroke: var(--color-primary);
}

.audience-label {
   margin-bottom: var(--space-sm);
   color: var(--color-primary);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: var(--text-xs);
   letter-spacing: var(--tracking-label);
   text-transform: uppercase;
}

.audience-card h3 {
   margin-bottom: 8px;
   font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.audience-card p:not(.audience-label) {
   max-width: 480px;
   font-size: var(--text-sm);
   line-height: 1.7;
}

@media (hover: hover) {
   .audience-card:hover {
      transform: translateY(-2px);
      border-color: rgb(var(--brand-blue-rgb) / 0.45);
   }

   .audience-card:hover::after {
      background: rgb(var(--brand-blue-rgb) / 0.45);
   }
}

@media (min-width: 768px) {
   .audience-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (prefers-reduced-motion: no-preference) {
   .js .audience-art [pathLength] {
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
   }

   .js .audience-grid.is-visible .audience-art [pathLength] {
      animation: schematic-draw 1100ms var(--ease-in-out) forwards;
      animation-delay: calc(var(--i, 0) * var(--stagger) + 250ms);
   }
}

/* Services CTA has no drawing, like About */
.audience-section + .cta-section {
   padding: var(--space-4xl) 0;
}


/* =========================================================
   PHOTOS (owner-supplied images in images/photos/)
   Same rounded corners as the tiles and cards.
   ========================================================= */

.about-photo,
.services-photo,
.process-photo,
.why-photo,
.contact-photo {

   margin: 0;
   overflow: hidden;
   border-radius: var(--radius-md);
}

.about-photo img,
.services-photo img,
.process-photo img,
.why-photo img,
.contact-photo img {
   display: block;
   width: 100%;
   height: auto;
   aspect-ratio: 16 / 10;
   object-fit: cover;
}

.about-photo {
   margin-top: var(--space-lg);
}

.services-photo {
   margin-top: var(--space-xl);
}

/* Home: How it works heading sits beside a photo on wide screens */
.process-head {
   display: grid;
   gap: var(--space-xl);
   margin-bottom: var(--space-3xl);
}

.process-head .section-heading {
   margin-bottom: 0;
}

@media (min-width: 1000px) {
   .process-head {
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
      gap: var(--space-4xl);
      align-items: end;
   }
}

/* Home: Why photo under the four cards (owner, 2026-11-10), as wide
   as the card grid; a wider crop on desktop so the two columns
   come out about level */
.why-photo {
   margin-top: 16px;
}

@media (min-width: 1000px) {
   .why-photo img {
      aspect-ratio: 21 / 9;
   }
}


/* =========================================================
   WHAT WE SUPPLY PAGE (supply.html)
   One card per category. Closed: just the name and +/−. Open: a
   photo, a one-line summary, a quote link and the brand logos
   slide out. "Click a category…" sits under the section heading.
   "Not listed?" closes the grid.
   ========================================================= */

.range-section {
   background: var(--color-surface);
}

/* Category shortcuts under the page intro (open the card on arrival) */

.range-jump {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   max-width: 640px;
   margin-top: var(--space-xl);
}

.range-jump a {
   display: inline-flex;
   align-items: center;
   min-height: 36px;
   padding: 0 14px;

   color: var(--color-heading);
   font-size: var(--text-sm);
   font-weight: 600;

   background: var(--brand-white);
   border: 1px solid var(--color-border);
   border-radius: 999px;

   transition: color var(--dur-2) var(--ease-out),
      border-color var(--dur-2) var(--ease-out),
      background-color var(--dur-2) var(--ease-out);
}

.range-jump a:hover {
   color: var(--color-primary);
   background: var(--color-primary-tint);
   border-color: var(--color-primary);
}

.range-grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 16px;
}

.range-card {
   display: flex;
   flex-direction: column;
   overflow: hidden;
   scroll-margin-top: calc(var(--header-height) + var(--space-lg));

   background: var(--color-surface);
   border: 1px solid var(--color-border);
   border-radius: var(--radius-md);

   transition: transform var(--dur-2) var(--ease-out),
      border-color var(--dur-2) var(--ease-out),
      box-shadow var(--dur-3) var(--ease-out);
}

/* Linked from the home page or a shortcut: a blue edge on arrival */
.range-card:target {
   border-color: var(--color-primary);
}

.range-intro {
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding: 22px 28px;
}

.range-card .range-head {
   margin: 0;
}

.range-toggle {
   display: grid;
   grid-template-columns: minmax(0, 1fr) auto;
   align-items: center;
   column-gap: 16px;
   width: 100%;
   padding: 0;

   color: inherit;
   font: inherit;
   text-align: left;

   background: none;
   border: 0;
}

.range-name {
   font-family: var(--font-display);
   font-size: var(--text-h3);
   font-weight: 700;
   line-height: 1.3;
   letter-spacing: -0.02em;
}

.range-summary {
   font-size: var(--text-sm);
   line-height: 1.6;
}

.range-icon {
   display: none;
}

.range-photo {
   display: block;
   width: 100%;
   height: auto;
   aspect-ratio: 16 / 10;
   object-fit: cover;
}

.range-body {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 14px;
   padding: 20px 28px 24px;
}

/* Brands: official logos in a white strip at the foot of each card,
   always visible. Files are used as supplied, never recoloured;
   each sits centred in one of three equal slots (two rows), so the
   strips line up from card to card. Heights are set per logo so
   they read at a similar size. Apple appears only as its Authorised
   Reseller badge, in Compute (owner, 2026-11-10). */

.range-logos {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   align-content: center;
   align-items: center;
   gap: 14px 12px;
   min-height: 124px;
   margin-top: auto;
   padding: 16px 20px;

   background: var(--brand-white);
   border-top: 1px solid var(--color-border);
}

.range-logos img {
   display: block;
   flex: 0 0 calc((100% - 24px) / 3);
   width: calc((100% - 24px) / 3);
   max-height: 36px;
   object-fit: contain;
}

/* ---- With JS: cards start closed and open with a smooth slide ---- */

.js .range-grid {
   align-items: start;
}

.js .range-card:not(.range-card-ask) {
   cursor: pointer;
}

.js .range-toggle:focus-visible {
   outline-offset: 6px;
}

/* Plus sign that turns into a minus when open */
.js .range-icon {
   position: relative;
   display: block;
   grid-column: 2;
   grid-row: 1;

   width: 32px;
   height: 32px;

   border: 1px solid currentColor;
   border-radius: 50%;
   opacity: 0.55;

   transition: opacity var(--dur-2) var(--ease-out),
      rotate var(--dur-3) var(--ease-out),
      background-color var(--dur-2) var(--ease-out),
      border-color var(--dur-2) var(--ease-out);
}

.js .range-icon::before,
.js .range-icon::after {
   content: "";
   position: absolute;
   top: 50%;
   left: 50%;
   width: 12px;
   height: 1.5px;
   background: currentColor;
   translate: -50% -50%;
   transition: rotate var(--dur-3) var(--ease-out);
}

.js .range-icon::after {
   rotate: 90deg;
}

.js .range-card.is-open .range-icon {
   rotate: 180deg;
}

.js .range-card.is-open .range-icon::after {
   rotate: 0deg;
}

/* Instruction under the section heading: "Click a category…",
   "Tap" on touch screens. Shown only with JS (cards open then). */
.range-instruction {
   display: none;
}

.js .range-instruction {
   display: flex;
   align-items: center;
   gap: 0.3em;
   flex-wrap: wrap;
   margin-top: var(--space-md);

   color: var(--color-primary);
   font-family: var(--font-label);
   font-size: var(--text-xs);
   font-weight: 600;
   letter-spacing: var(--tracking-label);
   text-transform: uppercase;
}

.hint-tap {
   display: none;
}

@media (hover: none) {
   .hint-click {
      display: none;
   }

   .hint-tap {
      display: inline;
   }
}

/* The slide: the details row grows from 0fr to 1fr, so the card
   opens to its real height with no measuring; the contents fade
   and rise a little behind it. Closed details are inert (js/main.js)
   so their links can't be tabbed to. */
.js .range-details {
   display: grid;
   grid-template-rows: 0fr;
   transition: grid-template-rows 520ms var(--ease-out);
}

.js .range-card.is-open .range-details {
   grid-template-rows: 1fr;
}

.js .range-details-inner {
   min-height: 0;
   overflow: hidden;
}

.js .range-details-inner > * {
   opacity: 0;
   transform: translateY(-12px);
   transition: opacity 260ms ease, transform 520ms var(--ease-out);
}

.js .range-card.is-open .range-details-inner > * {
   opacity: 1;
   transform: none;
   transition: opacity 380ms ease 120ms, transform 520ms var(--ease-out) 60ms;
}

.js .range-card.is-open .range-details-inner > .range-body {
   transition-delay: 200ms, 140ms;
}

.js .range-card.is-open .range-details-inner > .range-logos {
   transition-delay: 280ms, 200ms;
}

@media (prefers-reduced-motion: reduce) {
   .js .range-details,
   .js .range-details-inner > *,
   .js .range-card.is-open .range-details-inner > *,
   .js .range-icon,
   .js .range-icon::after {
      transition: none;
   }
}

@media (hover: hover) {
   .range-card:not(.range-card-ask):hover {
      transform: translateY(-3px);
      border-color: rgb(var(--brand-blue-rgb) / 0.45);
      box-shadow: 0 14px 30px -18px rgb(0 0 0 / 0.55);
   }

   .js .range-card:hover .range-icon {
      opacity: 1;
   }
}

/* "Not listed?": text with the button and email beside it */

.range-card-ask {
   gap: var(--space-lg);
   padding: 28px;

   background: var(--color-primary);
   border-color: var(--color-primary);
}

.range-card-ask .range-label {
   display: block;
   margin-bottom: 10px;

   color: rgb(255 255 255 / 0.85);
   font-family: var(--font-label);
   font-weight: 600;
   font-size: var(--text-xs);
   letter-spacing: var(--tracking-label);
}

.range-card-ask h3 {
   margin-bottom: 8px;
   color: var(--color-text-inverse);
}

.range-card-ask p {
   max-width: 420px;
   color: rgb(255 255 255 / 0.85);
   font-size: var(--text-sm);
   line-height: 1.65;
}

.range-ask-actions {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 14px;
}

.range-ask-button {
   --btn-fg: var(--color-primary);
   --btn-bg: var(--brand-white);
   --btn-line: var(--brand-white);
   --btn-sweep: var(--color-surface-dark);
   --btn-fg-hover: var(--color-text-inverse);
   --btn-line-hover: var(--color-surface-dark);
}

.range-ask-email {
   color: var(--color-text-inverse);
   font-size: var(--text-sm);
   font-weight: 600;
   text-decoration: underline;
   text-decoration-color: rgb(255 255 255 / 0.4);
   text-underline-offset: 4px;
   overflow-wrap: anywhere;
}

.range-ask-email:hover {
   text-decoration-color: currentColor;
}

/* "Not listed?" matches a closed tile: label and heading on the
   left, the button on the right (owner, 2026-11-10) */
.range-card.range-card-ask {
   flex-direction: row;
   align-items: center;
   justify-content: space-between;
   gap: var(--space-md);
   padding: 12px 20px 12px 28px;
}

/* Phones: the heading wraps, so drop the small label to keep the
   card the height of a closed tile */
@media (max-width: 600px) {
   .range-card-ask .range-label {
      display: none;
   }

   .range-card.range-card-ask {
      min-height: 78px;
   }

   .range-ask-button {
      min-height: 44px;
      padding: 0 16px;
   }
}

.range-card-ask .range-label {
   margin-bottom: 4px;
}

.range-card-ask h3 {
   margin-bottom: 0;
   font-size: var(--text-h3);
   line-height: 1.3;
}

.range-ask-actions {
   flex-shrink: 0;
}

@media (min-width: 601px) {
   .range-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }

   /* Closed cards are all the same height: room for a two-line
      name, centred */
   .js .range-intro {
      min-height: 6rem;
   }

   /* "Not listed?" is the same height as a closed tile: label and
      heading on the left, the button on the right (owner, 2026-11-10) */
   .range-card-ask {
      min-height: calc(6rem + 2px);
      padding: 12px 28px;
   }
}

/* Desktop: three across; "Not listed?" fills the last two slots,
   text on the left and the actions on the right */
@media (min-width: 1000px) {
   .range-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
   }

   .range-card-ask {
      grid-column: span 2;
   }

   .range-ask-actions {
      flex-shrink: 0;
      align-items: center;
   }
}


.range-section + .cta-section {
   padding: var(--space-4xl) 0;
}


/* =========================================================
   BRANDED BACKDROP (inner pages)
   The blue mono mark (images/brand/mark-blue.svg, an unaltered
   copy) large and faded on the right, with orbit rings around
   it, as in marketing/backdrops/. Navy intro bands and the
   light "Get in touch" band on About, Services and What We
   Supply. The mark sits on ::before so only it is faded.
   ========================================================= */

.page-hero {
   background:
      radial-gradient(circle at calc(100% - 170px) 50%,
         transparent 429px,
         rgb(111 167 255 / 0.12) 430px 431.5px,
         transparent 432.5px),
      radial-gradient(circle at calc(100% - 170px) 50%,
         transparent 529px,
         rgb(111 167 255 / 0.07) 530px 531.5px,
         transparent 532.5px),
      radial-gradient(ellipse 45% 85% at 88% 50%, #0E2247, transparent 70%),
      var(--color-surface-dark);
}

.page-hero::before,
:is(.about-section, .audience-section, .range-section) + .cta-section::before {
   content: "";
   position: absolute;
   inset: 0;
   pointer-events: none;
}

.page-hero::before {
   opacity: 0.13;
   background:
      url("../images/brand/mark-blue.svg") right -150px center / 640px no-repeat,
      url("../images/brand/mark-blue.svg") calc(100% - 640px) calc(100% - 28px) / 40px no-repeat;
}

:is(.about-section, .audience-section, .range-section) + .cta-section {
   background:
      radial-gradient(circle at calc(100% - 140px) 50%,
         transparent 379px,
         rgb(var(--brand-blue-rgb) / 0.12) 380px 381.5px,
         transparent 382.5px),
      radial-gradient(circle at calc(100% - 140px) 50%,
         transparent 469px,
         rgb(var(--brand-blue-rgb) / 0.07) 470px 471.5px,
         transparent 472.5px),
      var(--color-surface);
}

:is(.about-section, .audience-section, .range-section) + .cta-section::before {
   opacity: 0.07;
   background: url("../images/brand/mark-blue.svg") right -140px center / 560px no-repeat;
}

/* Smaller screens: a smaller mark tucked further right, no small mark */

@media (max-width: 999px) {
   .page-hero {
      background:
         radial-gradient(circle at calc(100% - 40px) 50%,
            transparent 284px,
            rgb(111 167 255 / 0.12) 285px 286.5px,
            transparent 287.5px),
         var(--color-surface-dark);
   }

   .page-hero::before {
      opacity: 0.09;
      background: url("../images/brand/mark-blue.svg") right -170px center / 420px no-repeat;
   }

   :is(.about-section, .audience-section, .range-section) + .cta-section {
      background:
         radial-gradient(circle at calc(100% - 40px) 50%,
            transparent 284px,
            rgb(var(--brand-blue-rgb) / 0.12) 285px 286.5px,
            transparent 287.5px),
         var(--color-surface);
   }

   :is(.about-section, .audience-section, .range-section) + .cta-section::before {
      opacity: 0.05;
      background: url("../images/brand/mark-blue.svg") right -170px center / 420px no-repeat;
   }
}


/* =========================================================
   INVERTED PAGES (About, What We Supply)
   Light intro, navy content, so moving between pages feels
   different from Home. Order: pale blue header, white intro
   (light backdrop), navy content, light blue CTA, navy footer.
   ========================================================= */

.page-hero.page-hero-light {
   border-bottom: 1px solid var(--color-border);
   background:
      radial-gradient(circle at calc(100% - 170px) 50%,
         transparent 429px,
         rgb(var(--brand-blue-rgb) / 0.12) 430px 431.5px,
         transparent 432.5px),
      radial-gradient(circle at calc(100% - 170px) 50%,
         transparent 529px,
         rgb(var(--brand-blue-rgb) / 0.07) 530px 531.5px,
         transparent 532.5px),
      var(--color-surface);
   --focus-color: var(--color-focus);
}

.page-hero-light::before {
   opacity: 0.07;
}

.page-hero-light .page-hero-grid {
   background-image:
      linear-gradient(rgb(var(--brand-navy-rgb) / 0.8) 1px, transparent 1px),
      linear-gradient(90deg, rgb(var(--brand-navy-rgb) / 0.8) 1px, transparent 1px);
}

.page-hero-light .page-eyebrow {
   color: var(--color-primary);
}

.page-hero-light h1 {
   color: var(--color-heading);
}

.page-hero-light .page-lede {
   color: var(--color-text);
}

@media (max-width: 999px) {
   .page-hero.page-hero-light {
      background:
         radial-gradient(circle at calc(100% - 40px) 50%,
            transparent 284px,
            rgb(var(--brand-blue-rgb) / 0.12) 285px 286.5px,
            transparent 287.5px),
         var(--color-surface);
   }

   .page-hero-light::before {
      opacity: 0.05;
   }
}

/* Navy content sections */

.about-section.on-dark,
.audience-section.on-dark,
.range-section.on-dark {
   background: var(--color-surface-dark);
}

.on-dark .section-eyebrow {
   color: var(--color-primary-on-dark);
}

.on-dark h2,
.on-dark h3 {
   color: var(--color-text-inverse);
}

.on-dark p {
   color: var(--color-text-on-dark);
}

/* About: story and company file */

.on-dark .about-commit li {
   border-color: var(--color-border-on-dark);
   color: var(--color-text-on-dark);
}

.on-dark .about-commit strong,
.on-dark .about-story .about-close {
   color: var(--color-text-inverse);
}

.on-dark .company-file {
   background: var(--color-surface-dark-raised);
   border-color: var(--color-border-on-dark);
}

.on-dark .company-file::after,
.on-dark .company-file-head {
   border-color: var(--color-border-on-dark);
}

.on-dark .company-file::after {
   background: var(--color-border-on-dark);
}

.on-dark .company-file-head {
   color: var(--color-text-muted-on-dark);
}

.on-dark .company-file-head span:first-child {
   color: var(--color-primary-on-dark);
}

.on-dark .company-file-list div + div {
   border-top-color: rgb(255 255 255 / 0.16);
}

.on-dark .company-file-list dt {
   color: var(--color-text-muted-on-dark);
}

.on-dark .company-file-list dd {
   color: var(--color-text-inverse);
}

/* Services: "Who we work with" cards raised on navy (owner,
   2026-11-10), drawings in light lines */

.on-dark .audience-card {
   background: var(--color-surface-dark-raised);
   border-color: var(--color-border-on-dark);
}

.on-dark .audience-art .a-main {
   stroke: rgb(255 255 255 / 0.7);
}

.on-dark .audience-art .a-faint {
   stroke: rgb(255 255 255 / 0.22);
}

.on-dark .audience-art .a-accent {
   stroke: var(--color-primary-on-dark);
}

.on-dark .audience-label {
   color: var(--color-primary-on-dark);
}

@media (hover: hover) {
   .on-dark .audience-card:hover {
      border-color: rgb(111 167 255 / 0.5);
   }
}


/* What We Supply: cards raised on navy, "Not listed?" in brand blue */

.on-dark .range-card {
   background: var(--color-surface-dark-raised);
   border-color: var(--color-border-on-dark);
}

.on-dark .range-name {
   color: var(--color-text-inverse);
}

.on-dark .range-summary {
   color: var(--color-text-on-dark);
}

.on-dark .range-instruction,
.on-dark .range-quote {
   color: var(--color-primary-on-dark);
}

.on-dark .range-label {
   color: var(--color-primary-on-dark);
}

.on-dark .supply-tags {
   color: var(--color-text-muted-on-dark);
}

.on-dark .supply-tags li {
   border-color: var(--color-border-on-dark-strong);
}

.on-dark .range-card:target {
   border-color: var(--color-primary-on-dark);
}

.on-dark .range-card-ask {
   background: var(--color-primary);
   border-color: var(--color-primary);
}

.on-dark .range-card-ask .range-label,
.on-dark .range-card-ask p {
   color: rgb(255 255 255 / 0.85);
}

@media (hover: hover) {
   .on-dark .range-card:not(.range-card-ask):hover {
      border-color: rgb(111 167 255 / 0.5);
   }
}


/* =========================================================
   404 page: the page intro on its own, with a way home
   ========================================================= */

.error-hero {
   display: flex;
   flex-direction: column;
   justify-content: center;
   min-height: 60vh;
}

.error-actions {
   margin-top: var(--space-xl);
}

@media (prefers-reduced-motion: no-preference) {

   .page-hero-inner > :nth-child(4) {
      animation-delay: 240ms;
   }
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
   position: relative;
   overflow: hidden;

   padding: var(--space-3xl) 0 var(--space-lg);

   background: var(--color-surface-dark);
   border-top: 1px solid var(--color-border-on-dark);
}

.footer-top {
   display: grid;
   gap: var(--space-2xl);
}

.footer-logo {
   display: inline-block;
}

.footer-logo img {
   display: block;
   width: 200px;
   height: auto;
}

.footer-brand p {
   max-width: 300px;
   margin-top: var(--space-md);
   color: var(--color-text-muted-on-dark);
   font-size: var(--text-sm);
   line-height: var(--leading-body);
}

/* B-BBEE Level 1 ribbon badge (with the SA flag), sized to read at a glance */
.footer-creds {
   margin-top: var(--space-md);
}

.footer-badge {
   display: block;
   width: 150px;
   height: auto;
   margin-left: -9px;   /* ribbon tail lines up with the text above */
}

.footer-heading {
   margin-bottom: var(--space-md);
   color: var(--color-text-muted-on-dark);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.72rem;
   letter-spacing: var(--tracking-label);
   text-transform: uppercase;
}

.footer-col ul {
   display: grid;
   gap: var(--space-sm);
   list-style: none;
}

.footer-col li {
   color: var(--color-text-on-dark);
   font-size: var(--text-sm);
}

.footer-col a,
.footer-top-link {
   color: var(--color-text-on-dark);
   text-decoration: underline;
   text-decoration-color: transparent;
   text-underline-offset: 4px;
   transition:
      color var(--dur-2) var(--ease-out),
      text-decoration-color var(--dur-2) var(--ease-out);
}

.footer-col a:hover,
.footer-top-link:hover {
   color: var(--color-text-inverse);
   text-decoration-color: var(--color-primary-on-dark);
}

/* Cable: a line runs across and plugs into a port, then the LED
   lights. Same blueprint strokes as the hero drawing.
   --reach is the distance from the track's left edge to the plug.
   Default (no JS, reduced motion): plugged in, LED on.
   Otherwise js/main.js adds .is-live and a .cable-grip over the plug:
   drag it (mouse or touch) to the port; --reach follows the drag and
   .is-connected is added once the plug reaches the port.
   Sizes: plug 59px wide, port 23px, plug sits 13px into the port. */

.footer-cable {
   --reveal-distance: 0px;

   display: flex;
   align-items: center;

   margin: var(--space-3xl) 0 var(--space-xl);
}

.cable-track {
   --reach: calc(100% - 69px);

   position: relative;
   flex: 1;
   height: 31px;
}

.cable-line {
   position: absolute;
   top: 50%;
   left: 0;

   width: calc(var(--reach) + 3px);
   height: 1px;

   background: rgb(255 255 255 / 0.28);
   transform-origin: left center;
}

.cable-plug,
.cable-port {
   position: absolute;
   top: 0;
   overflow: visible;
   stroke-width: 1;
   stroke-linejoin: round;
}

.cable-plug {
   left: var(--reach);
}

.cable-port {
   right: 0;
}

.footer-cable .c-main {
   stroke: rgb(255 255 255 / 0.55);
}

.footer-cable .c-faint {
   stroke: rgb(255 255 255 / 0.22);
}

.footer-cable .c-accent {
   stroke: var(--color-primary-on-dark);
}

.cable-status {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   min-width: 8.5em;
   margin-left: var(--space-md);

   color: var(--color-text-muted-on-dark);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.68rem;
   letter-spacing: var(--tracking-label);
   text-transform: uppercase;
}

.cable-led {
   flex: none;
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--color-primary-on-dark);
   box-shadow: 0 0 8px 2px rgb(var(--brand-blue-rgb) / 0.8);
   transition:
      background-color var(--dur-2) var(--ease-out),
      box-shadow var(--dur-2) var(--ease-out);
}

/* Live (drag to connect) and not yet in the port: LED off */

.footer-cable.is-live:not(.is-connected) .cable-led {
   background: rgb(255 255 255 / 0.25);
   box-shadow: none;
}

/* Fixed width for the longest label, so the track doesn't change
   length (and unplug the plug) when the label switches */

.footer-cable.is-live .cable-status {
   min-width: 15.5em;
}

/* Grab area over the plug (added by JS): bigger than the plug for touch */

.cable-grip {
   position: absolute;
   z-index: 1;
   top: 50%;
   left: calc(var(--reach) - 10px);

   width: 79px;
   height: 48px;

   cursor: grab;
   touch-action: none;
   -webkit-tap-highlight-color: transparent;
   transform: translateY(-50%);
}

.footer-cable.is-dragging .cable-grip {
   cursor: grabbing;
}

.cable-plug .c-main {
   transition: stroke var(--dur-2) var(--ease-out);
}

.cable-grip:hover + .cable-plug .c-main,
.footer-cable.is-dragging .cable-plug .c-main {
   stroke: rgb(255 255 255 / 0.9);
}

.footer-cable.is-live.is-connected .cable-port .c-main {
   stroke: var(--color-primary-on-dark);
}

@keyframes cable-draw {
   from {
      transform: scaleX(0);
   }
}

@keyframes cable-plug-in {
   from {
      transform: translateX(-12px);
   }
}

@keyframes cable-led-on {
   from {
      background: rgb(255 255 255 / 0.25);
      box-shadow: none;
   }
}

@keyframes cable-fade {
   from {
      opacity: 0;
   }
}

@media (prefers-reduced-motion: no-preference) {

   .js .footer-cable:not(.is-visible) .cable-line {
      transform: scaleX(0);
   }

   .js .footer-cable.is-visible .cable-line {
      animation: cable-draw 900ms var(--ease-out) backwards;
   }

   .js .footer-cable.is-visible .cable-status {
      animation: cable-fade var(--dur-3) var(--ease-out) 1100ms backwards;
   }

   /* No JS: the plug clicks in by itself after the line draws */

   .js .footer-cable.is-visible:not(.is-live) .plug {
      animation: cable-plug-in 260ms cubic-bezier(0.34, 1.56, 0.64, 1) 820ms backwards;
   }

   .js .footer-cable.is-visible:not(.is-live) .cable-led {
      animation: cable-led-on 200ms var(--ease-out) 1100ms backwards;
   }
}

@media (prefers-reduced-motion: reduce) {

   .cable-led {
      transition: none;
   }
}

.footer-bottom {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: var(--space-sm) var(--space-lg);

   padding-top: var(--space-lg);
   border-top: 1px solid var(--color-border-on-dark);
}

.footer-bottom p {
   color: var(--color-text-muted-on-dark);
   font-family: var(--font-label);
   font-weight: 600;
   font-variant-numeric: tabular-nums;
   font-size: 0.72rem;
   letter-spacing: 0.06em;
   text-transform: uppercase;
}

.footer-nowrap {
   white-space: nowrap;
}

.footer-top-link {
   display: inline-flex;
   align-items: center;
   gap: 6px;

   /* 44px touch target without moving anything */
   padding-block: 10px;
   margin-block: -10px;
   font-size: var(--text-sm);
}

.footer-top-link span {
   transition: transform var(--dur-2) var(--ease-out);
}

.footer-top-link:hover span {
   transform: translateY(-3px);
}

@media (min-width: 601px) {
   .footer-top {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }

   .footer-brand {
      grid-column: 1 / -1;
   }
}

@media (min-width: 900px) {
   .footer-top {
      grid-template-columns: 2fr 1fr 1fr;
   }

   .footer-brand {
      grid-column: auto;
   }
}

@media (prefers-reduced-motion: reduce) {

   .footer-top-link span {
      transition: none;
   }
}

/* =========================================================
   HOME HERO BACKDROP (owner, 2026-11-10)
   The same branded backdrop as the inner page intros: orbit rings,
   a soft glow and the faded blue mono mark behind the schematic
   on the right (a touch fainter, and no small mark, which would
   clash with the scroll cue). Mark is an unaltered copy on ::before.
   ========================================================= */

.hero {
   background:
      radial-gradient(circle at calc(100% - 170px) 50%,
         transparent 429px,
         rgb(111 167 255 / 0.12) 430px 431.5px,
         transparent 432.5px),
      radial-gradient(circle at calc(100% - 170px) 50%,
         transparent 529px,
         rgb(111 167 255 / 0.07) 530px 531.5px,
         transparent 532.5px),
      radial-gradient(ellipse 45% 85% at 88% 50%, #0E2247, transparent 70%),
      var(--color-surface-dark);
}

.hero::before {
   content: "";
   position: absolute;
   inset: 0;
   pointer-events: none;
   opacity: 0.1;
   background: url("../images/brand/mark-blue.svg") right -150px center / 640px no-repeat;
}

@media (max-width: 999px) {
   .hero {
      background:
         radial-gradient(circle at calc(100% - 40px) 50%,
            transparent 284px,
            rgb(111 167 255 / 0.12) 285px 286.5px,
            transparent 287.5px),
         var(--color-surface-dark);
   }

   .hero::before {
      opacity: 0.09;
      background: url("../images/brand/mark-blue.svg") right -170px center / 420px no-repeat;
   }
}


/* About: the primary mark, large, in orbit rings, beside the story
   (owner, 2026-11-10; replaces the photo and company file).
   Unaltered copy of images/marks/machine-and-mouse-primary-mark.svg.
   Desktop only: on phones the text reads on its own. */

.about-emblem {
   display: none;
}

@media (min-width: 1000px) {
   .about-emblem {
      display: grid;
      place-items: center;
      aspect-ratio: 1;
      width: 100%;
      max-width: 340px;
      margin-inline: auto;

      background:
         radial-gradient(circle, transparent 59%,
            rgb(var(--brand-blue-rgb) / 0.14) 59.2% 59.6%,
            transparent 59.8%),
         radial-gradient(circle, transparent 69.4%,
            rgb(var(--brand-blue-rgb) / 0.08) 69.6% 70%,
            transparent 70.2%);
   }

   .about-emblem img {
      width: 64%;
      height: auto;
   }
}


/* Circuit lines from the business profile (owner kept them,
   2026-11-10), small, entering the navy page intros from the left
   along the bottom edge, below the text and opposite the big M.
   images/brand/circuit-corner.svg. Desktop only. */

@media (min-width: 1000px) {
   .page-hero:not(.page-hero-light)::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 4px;
      width: 180px;
      aspect-ratio: 90 / 34;
      pointer-events: none;
      background: url("../images/brand/circuit-corner.svg") left bottom / contain no-repeat;
   }
}


/* =========================================================
   PHOTO FRAME (owner, 2026-11-10)
   One look for the standalone photos (home How it works and Why,
   services): a soft navy-blue grade over the photo and thin blue
   corner brackets, like the blueprint brackets elsewhere. They fade
   in and settle from a slight zoom as they scroll into view
   (.reveal-wipe, observed in js/main.js). Supply tile photos get the grade only.
   ========================================================= */

.photo-frame,
.range-photo-wrap {
   position: relative;
}

.photo-frame::after,
.range-photo-wrap::after {
   content: "";
   position: absolute;
   inset: 0;
   pointer-events: none;
   background: linear-gradient(160deg,
         rgb(var(--brand-blue-rgb) / 0.16),
         rgb(var(--brand-navy-rgb) / 0.32));
   mix-blend-mode: multiply;
}

.photo-frame::before {
   content: "";
   position: absolute;
   inset: 12px;
   z-index: 1;
   pointer-events: none;
   --b: rgb(255 255 255 / 0.85);
   background:
      linear-gradient(var(--b), var(--b)) left top / 20px 2px no-repeat,
      linear-gradient(var(--b), var(--b)) left top / 2px 20px no-repeat,
      linear-gradient(var(--b), var(--b)) right bottom / 20px 2px no-repeat,
      linear-gradient(var(--b), var(--b)) right bottom / 2px 20px no-repeat;
}

/* Entrance: the frame fades and rises while the photo settles from
   a zoom. After that the photo drifts gently with the scroll inside
   its frame (parallax: js/main.js sets --py from -1 to 1) and eases
   in a little on hover. The zoom uses `scale` and the drift uses
   `translate`, so the two never fight. Opacity and transforms only. */
@media (prefers-reduced-motion: no-preference) {
   .js .photo-frame > img {
      scale: 1.1;
      translate: 0 calc(var(--py, 0) * -4%);
      transition: scale 1400ms var(--ease-out);
      will-change: translate;
   }

   .js .reveal-wipe {
      transition: opacity 900ms ease, transform 900ms var(--ease-out);
   }

   .js .reveal-wipe:not(.is-visible) {
      opacity: 0;
      transform: translateY(20px);
   }

   .js .reveal-wipe:not(.is-visible) > img {
      scale: 1.22;
   }

   .js .reveal-wipe::before {
      transition: opacity 500ms ease 700ms;
   }

   .js .reveal-wipe:not(.is-visible)::before {
      opacity: 0;
   }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
   .js .photo-frame:hover > img {
      scale: 1.15;
      transition-duration: 900ms;
   }
}


/* Contact: category dropdown and photo (owner, 2026-11-10) */

.field select {
   padding-right: 40px;
   font: inherit;
   appearance: none;
   cursor: pointer;
   background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B5FD8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat,
      var(--color-surface);
}

.contact-photo {
   margin-top: var(--space-2xl);
}


/* =========================================================
   HOVER EFFECTS (owner, 2026-11-16; replace the cursor follower)
   CSS only: transforms, colour and background-position, so they
   stay smooth in Safari, Chrome and Edge. Mouse devices only; off
   with reduced motion. Headings aren't links, so nothing here
   underlines them or changes the cursor.
   ========================================================= */

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {

   /* Headings: Machine Blue ink sweeps across the text from the
      left (light blue on navy). The text keeps its own colour as
      the base (currentColor); -webkit-text-fill-color lets the
      gradient show through the letters. When JS has split a
      heading into words (.is-split, see "Heading words" below),
      each word sweeps in turn instead. */

   main h2,
   .page-hero h1 {
      --h-fill: var(--color-primary);
   }

   .page-hero h1,
   .why-section h2,
   .on-dark h2 {
      --h-fill: var(--color-primary-on-dark);
   }

   @supports ((-webkit-background-clip: text) or (background-clip: text)) {

      main h2:not(.is-split),
      .page-hero h1:not(.is-split),
      .is-split .hw > span {
         background-image: linear-gradient(90deg,
               var(--h-fill) 0 40%,
               currentColor 60% 100%);   /* soft edge; the 250% size keeps the
                                            resting and hovered ends clean */
         background-size: 250% 100%;
         background-position: 100% 0;
         background-repeat: no-repeat;
         -webkit-background-clip: text;
         background-clip: text;
         -webkit-text-fill-color: transparent;
      }

      main h2:not(.is-split),
      .page-hero h1:not(.is-split) {
         transition: background-position 700ms var(--ease-out);
      }

      :is(main h2, .page-hero h1):hover,
      .section-heading:hover h2,
      .cta-content:hover h2,
      .why-intro:hover h2,
      .page-hero-inner:hover h1,
      :is(main h2, .page-hero h1):hover .hw > span,
      .section-heading:hover .hw > span,
      .cta-content:hover .hw > span,
      .why-intro:hover .hw > span,
      .page-hero-inner:hover .hw > span {
         background-position: 0 0;
      }

      /* Home hero headline: a spotlight (2026-11-17, owner asked
         for something more special). A soft light-blue glow follows
         the mouse through both lines; js/main.js ("Hero spotlight")
         sets --mx/--my per line. The muted second line also
         brightens to white while the headline is hovered. The glow
         grows in on enter and shrinks away on leave (--spot-r). */
      .hero-line > span {
         --h-fill: var(--color-primary-on-dark);

         display: inline-block;

         transition: --spot-r 450ms var(--ease-out),
            color 450ms var(--ease-out);
      }

      /* The text is only clipped to the glow while the mouse is
         over the hero (and while the glow fades out). At rest it is
         plain text: Safari could leave clipped text unpainted until
         hovered (2026-11-17). The radius never reaches 0, which
         Safari treats as an invalid gradient. */
      :is(.hero-content.is-lit, .hero-content.is-fading) .hero-line > span {
         background-image: radial-gradient(circle max(var(--spot-r), 1px) at var(--mx, 50%) var(--my, 50%),
               var(--h-fill) 0 30%,
               currentColor 100%);
         -webkit-background-clip: text;
         background-clip: text;
         -webkit-text-fill-color: transparent;
      }

      .hero-content.is-lit .hero-line > span {
         --spot-r: 260px;
      }

      .hero-content.is-lit .hero-line-muted > span {
         color: var(--color-text-inverse);
      }
   }

   /* Eyebrow labels: the blue bar stretches when the heading
      group is hovered */

   :is(.section-eyebrow, .cta-eyebrow, .page-eyebrow, .hero-eyebrow)::before {
      transition: width var(--dur-3) var(--ease-out);
   }

   :is(.section-heading, .services-intro, .why-intro, .about-story, .cta-content, .page-hero-inner, .hero-content):hover
   :is(.section-eyebrow, .cta-eyebrow, .page-eyebrow, .hero-eyebrow)::before {
      width: 48px;
   }

   /* Card titles turn Machine Blue (light blue on navy) when the
      card is hovered */

   .why-point h3,
   .audience-card h3,
   .service-row h3,
   .range-head {
      transition: color var(--dur-2) var(--ease-out);
   }

   .service-row:hover h3,
   .range-card:not(.range-card-ask):hover .range-head {
      color: var(--color-primary);
   }

   .why-point:hover h3,
   .audience-card:hover h3,
   .on-dark .range-card:not(.range-card-ask):hover .range-head {
      color: var(--color-primary-on-dark);
   }

   /* How it works: the step's node fills blue and grows a little,
      and its title turns blue */

   .process-node {
      transition:
         background-color var(--dur-3) var(--ease-out),
         color var(--dur-3) var(--ease-out),
         transform var(--dur-3) var(--ease-out);
   }

   .process-step h3 {
      transition: color var(--dur-2) var(--ease-out);
   }

   .process-step:hover .process-node {
      color: var(--color-text-inverse);
      background: var(--color-primary);
      transform: scale(1.1);
   }

   .process-step:hover h3 {
      color: var(--color-primary);
   }

   /* Brand logos: lift slightly (never recoloured) */

   .range-logos img {
      transition: transform var(--dur-2) var(--ease-out);
   }

   .range-logos img:hover {
      transform: translateY(-2px) scale(1.06);
   }
}


/* =========================================================
   HEADING WORDS (owner, 2026-11-16)
   js/main.js wraps each word of the section headings and page
   titles in span.hw > span and adds .is-split; .is-in when the
   heading scrolls into view. The words rise out of their own
   line, one after another. Nothing is split with reduced motion.
   ========================================================= */

.hw {
   display: inline-block;
   overflow: hidden;
   vertical-align: top;

   /* room for descenders without moving the line */
   padding-bottom: 0.1em;
   margin-bottom: -0.1em;
}

.hw > span {
   display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {

   /* Safari paints the page before js/main.js splits the
      headings, so they showed in full, vanished and rose again
      ("loading twice", owner 2026-11-17). Keep them hidden until
      they are split; if the split never happens, they appear
      after 2 seconds anyway. */
   .js :is(main h2, .page-hero h1):not(.is-split) {
      opacity: 0;
      animation: hw-failsafe 0s 2s forwards;
   }

   /* Page intro titles: the words rising is their entrance, so
      the block fade-up (PAGE HERO, reveal-rise) is switched off
      once split. Both together restarted the title when the
      split landed, which Safari showed as a second load. */
   .page-hero-inner > h1.is-split {
      animation: none;
   }

   .is-split:not(.is-in) .hw > span {
      transform: translateY(110%);
   }

   .is-split .hw > span {
      transition:
         transform 800ms var(--ease-out) calc(var(--wi, 0) * 55ms + 80ms),
         background-position 650ms var(--ease-out) calc(var(--wi, 0) * 40ms);
   }
}


/* Spotlight radius for the home hero headline (HOVER EFFECTS).
   Registered so it can animate; browsers without @property
   simply show it at full size while hovered. */
@property --spot-r {
   syntax: "<length>";
   inherits: true;
   initial-value: 1px;
}

/* =========================================================
   BRAND LOGO STRIP (home page, owner 2026-11-16)
   Official logo files, never recoloured (heights match the What
   We Supply cards). The track holds the list twice and slides
   by half its width, so the loop is seamless. Pauses on hover
   or with the button; still and wrapped with reduced motion.
   ========================================================= */

.brand-strip {
   margin-bottom: var(--space-3xl);
}

.brand-strip-head {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   margin-bottom: var(--space-lg);
}

.brand-strip-label {
   color: var(--color-text-muted);
   font-family: var(--font-label);
   font-weight: 600;
   font-size: var(--text-xs);
   letter-spacing: 0.08em;
   text-transform: uppercase;
}

/* Pause / play: needs JS, so hidden without it */
.brand-strip-toggle {
   display: none;
}

.js .brand-strip-toggle {
   position: relative;
   display: inline-grid;
   place-items: center;
   width: 28px;
   height: 28px;
   padding: 0;

   color: var(--color-text-muted);
   background: transparent;
   border: 1px solid var(--color-border);
   border-radius: 50%;
   cursor: pointer;

   transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}

/* 44px tap area without a bigger circle */
.js .brand-strip-toggle::after {
   content: "";
   position: absolute;
   inset: -8px;
}

.js .brand-strip-toggle:hover,
.js .brand-strip-toggle:focus-visible {
   color: var(--color-primary);
   border-color: var(--color-primary);
}

/* Pause icon: two bars; play icon (paused): a triangle */
.brand-strip-icon {
   width: 8px;
   height: 9px;
   border-inline: 2.5px solid currentColor;
   box-sizing: border-box;
}

.brand-strip.is-paused .brand-strip-icon {
   width: 0;
   height: 0;
   margin-left: 2px;
   border-inline: 0;
   border-left: 7px solid currentColor;
   border-top: 4.5px solid transparent;
   border-bottom: 4.5px solid transparent;
}

.brand-marquee {
   overflow: hidden;
   -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
   mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-track {
   display: flex;
   width: max-content;
   animation: brand-scroll 70s linear infinite;
   will-change: transform;          /* own layer: smooth in iOS Safari */
   -webkit-backface-visibility: hidden;
   backface-visibility: hidden;
}

.brand-list {
   display: flex;
   flex: none;
   align-items: center;
   margin: 0;
   padding: 0;
   list-style: none;
}

.brand-list li {
   flex: none;
   padding-inline: 28px;
}

.brand-list img {
   display: block;
   width: auto;                     /* width/height attributes in the HTML keep
                                       the track from changing size as logos load */
   max-width: none;
}

/* Hover pause only with a real mouse: on iPhone a tap counts as
   hover and would leave the strip stuck paused. */
@media (hover: hover) and (pointer: fine) {
   .brand-marquee:hover .brand-track {
      animation-play-state: paused;
   }
}

.brand-strip.is-paused .brand-track {
   animation-play-state: paused;
}

@keyframes brand-scroll {
   from {
      transform: translate3d(0, 0, 0);
   }

   to {
      transform: translate3d(-50%, 0, 0);
   }
}

@media (prefers-reduced-motion: reduce) {

   .brand-track {
      width: auto;
      animation: none;
   }

   .brand-list {
      flex-wrap: wrap;
      justify-content: center;
      row-gap: 20px;
   }

   .brand-list[aria-hidden="true"],
   .js .brand-strip-toggle {
      display: none;
   }

   .brand-marquee {
      -webkit-mask-image: none;
      mask-image: none;
   }
}

@keyframes hw-failsafe {
   to {
      opacity: 1;
   }
}
