/* Aptus IQ: one stylesheet for every page.
   Layout: sections divided by a hairline rule, their content centred down the
   page. One typeface, Inter, served from this site, so the site makes no
   requests to anyone else. White and black: light by default, dark from the
   header toggle. */

/* Inter (SIL Open Font License, assets/fonts/OFL.txt), served from this
   site: Latin subset, variable weight and optical size, so large headings
   get Inter's Display cut automatically. @fontsource-variable/inter 5.2.8. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #3c3c40;   /* body copy */
  --ink-3: #6b6b72;   /* labels, captions */
  --rule: #e3e3e6;    /* hairlines */
  --wash: #f5f5f6;    /* the one tinted surface: notices */
  --ink-hover: #2c2c31;
  --glass: rgba(255, 255, 255, 0.82);
  --film-bar: #1c1c20;
  --film-edge: rgba(255, 255, 255, 0.08);
  --film-dot: #3d3d44;
  --film-field: rgba(255, 255, 255, 0.07);
  --film-text: rgba(255, 255, 255, 0.62);
  --stock: #ffffff;    /* paper stock: stays white even inside the dark band */
  --stock-ink: #0b0b0c;
  --stock-ink-2: #4a4a50;
  --shade-1: rgba(11, 11, 12, 0.05);
  --shade-2: rgba(11, 11, 12, 0.18);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Only inside the sample stationery: the product's world, not the UI. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.2rem + 2.8vw, 3.125rem);
  --step-4: clamp(2.5rem, 1.2rem + 5.4vw, 4.875rem);

  --measure: 64ch;
  --wrap: 72rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  color-scheme: light;
}

/* Dark mode, when the visitor turns it on with the header toggle
   (assets/theme.js sets data-theme). Light is the default whatever the
   device says. Still strictly black and white: the same tokens, inverted. */
:root[data-theme="dark"] {
    --paper: #0b0b0c;
    --ink: #f4f4f5;
    --ink-2: #b6b6bd;
    --ink-3: #8c8c94;
    --rule: #27272c;
    --wash: #17171a;
    --ink-hover: #d6d6da;
    --glass: rgba(11, 11, 12, 0.78);
    --shade-1: rgba(0, 0, 0, 0.5);
    --shade-2: rgba(0, 0, 0, 0.85);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

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

a {
  color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  transition: color 160ms ease, text-underline-offset 160ms ease, border-color 160ms ease;
}
a:hover { text-underline-offset: 0.32em; }
.arrow { display: inline-block; transition: transform 200ms cubic-bezier(.2, .7, .2, 1); }
a:hover .arrow { transform: translate(2px, -2px); }
.more:hover .arrow { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 1px; }

.skip {
  position: absolute; left: var(--gutter); top: -3rem;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem;
  font-size: var(--step--1); z-index: 20;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }

.wrap {
  max-width: calc(var(--wrap) + 2 * 16px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---- header ---- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--paper);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.75rem;
}
[id] { scroll-margin-top: 6rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* The Aptus IQ wordmark, drawn in the ink of whatever it sits on. */
.logo { display: block; height: 1.875rem; width: auto; aspect-ratio: 835.74 / 184.2; flex: none; overflow: visible; }
.brand .logo { transform: translateY(0.16rem); }  /* optical: centre the letters, not the p's descender */
.site-header .wrap { justify-content: flex-start; }
.site-nav { display: flex; gap: 1.5rem; font-size: var(--step--1); margin-left: auto; }
/* The light/dark switch: a half-filled circle that turns over. */
.theme-toggle {
  flex: none; display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem; margin-right: -0.5rem; padding: 0;
  background: none; border: 0; border-radius: 50%; color: var(--ink-2); cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--ink); background: var(--wash); }
.theme-toggle svg { width: 1.125rem; height: 1.125rem; transition: rotate 500ms cubic-bezier(.2, .7, .2, 1); }
:root[data-theme="dark"] .theme-toggle svg { rotate: 180deg; }
@media (max-width: 30rem) { .site-header .wrap { gap: 0.6rem; } .site-nav { gap: 0.85rem; } .logo { height: 1.5rem; } .theme-toggle { margin-right: -0.4rem; } }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---- type ---- */
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }

.label {
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---- hero ---- */
.hero {
  /* Nearly the whole first screen, content centred in it. */
  position: relative; overflow-x: clip;
  display: grid; align-items: center;
  min-height: max(36rem, calc(94svh - 4.75rem));
  padding-block: clamp(4rem, 6vw, 4.5rem);
}
.hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { min-width: 0; text-align: center; }
/* Centred hero: each block sits in the middle of the page. */
.hero h1 { margin-inline: auto; }
.hero .hero-actions { justify-content: center; }


/* "Makers of" and the two product wordmarks, quiet until hovered.
   Two halves of the same width either side of the rule, each wordmark
   centred in its half, so the rule sits on the page's centre line.
   The wordmarks are sized by their capital letters (--cap), not their
   boxes: MEMAURA's capitals are 102 of its 167.74 units tall, AMOURA's
   136.5 of 214.357. Amoura's are drawn 6% taller, as its strokes are much
   finer and would otherwise read a size smaller. */
.hero-products {
  --cap: 1.05rem;
  display: grid; grid-template-columns: minmax(0, 10rem) 1px minmax(0, 10rem);
  justify-content: center; align-items: center;
  gap: 0.9rem 1.5rem; margin-top: clamp(2.75rem, 5vw, 3.5rem);
}
@media (max-width: 30rem) {
  .hero-products { --cap: 0.9rem; grid-template-columns: minmax(0, 8.5rem) 1px minmax(0, 8.5rem); column-gap: 1.1rem; }
}
.strip-label {
  grid-column: 1 / -1;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.strip-link { display: block; justify-self: center; color: var(--ink-3); text-decoration: none; transition: color 200ms ease; }
.strip-link:hover { color: var(--ink); }
.strip-mark { display: block; width: auto; max-width: 100%; overflow: visible; }
.strip-memaura { height: calc(var(--cap) * 167.74 / 102); aspect-ratio: 814.47 / 167.74; }
.strip-amoura  { height: calc(var(--cap) * 1.06 * 214.357 / 136.5); aspect-ratio: 741.7 / 214.357; }
.strip-rule { width: 1px; height: calc(var(--cap) * 1.8); background: color-mix(in srgb, var(--ink-3) 45%, transparent); }

.hero h1 {
  font-size: clamp(3rem, 0.6rem + 7.6vw, 6.75rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.042em;
  max-width: 13ch;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: clamp(2rem, 4vw, 2.75rem); }

.button {
  display: inline-flex; align-items: center; min-height: 2.875rem;
  padding: 0 1.4rem; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.button:hover { background: var(--ink-hover); }
.button:active { transform: translateY(1px); }
.text-link { font-weight: 600; font-size: 0.9375rem; }



@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---- sections: a rule, then the content, from the left edge ---- */
.section { border-top: 1px solid var(--ink); }
.section > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.section-body { min-width: 0; display: grid; gap: 1.5rem; }
/* The landing page is centred down its length, like the hero: headings,
   ledes, the About facts and Contact sit in the middle. The product tiles and
   the Engine's copy-beside-film rows keep their own left-aligned insides. */
.section-body { justify-items: center; text-align: center; }
.section h2, .section .intro, .engine-lede { margin-inline: auto; }
.section-body > .products, .section-body > .engine-row { justify-self: stretch; text-align: left; }
.section .facts { width: 100%; }
.section .facts div { justify-items: center; }
.section .facts dd { margin-inline: auto; }
.section .email-row { justify-self: center; }
.section h2 {
  font-size: var(--step-3);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.032em;
  line-height: 1.05;
  max-width: 20ch;
}
/* On desktop the headings run the full width, so a line like "For occasions
   that have to be right." sits on one line. */
@media (min-width: 60rem) { .section h2 { max-width: none; } }
.section .intro { max-width: var(--measure); color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }

/* One inverted band. Every component reads the tokens, so redefining them
   here turns the section black without any component knowing. */
.section-dark {
  --paper: #0b0b0c; --ink: #f7f7f8; --ink-2: #b9b9c0; --ink-3: #85858d; --rule: #2b2b30;
  background: var(--paper); color: var(--ink); border-top-color: var(--paper);
}
/* In dark mode the page is already black, so the band lifts a shade to
   still read as its own room. */
:root[data-theme="dark"] .section-dark { --paper: #151518; --rule: #2d2d33; border-top-color: var(--rule); }

/* The engine: a heading and lede, then two rows, each a short piece of copy
   beside a small film of the editor (design, then print), on alternating
   sides from 960px; on phones each film sits under its copy. */
.engine { grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 6vw, 4.5rem); }
.engine > h2 + .engine-lede { margin-top: calc(-1 * clamp(2rem, 4.5vw, 3.25rem)); }
.engine-lede { max-width: var(--measure); }
.engine-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 60rem) {
  .engine-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(3rem, 5vw, 4.5rem); }
  .engine-row-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .engine-row-flip .film { order: -1; }
}
.engine-copy { display: grid; gap: 0.75rem; min-width: 0; max-width: 34rem; }
.engine-copy h3 { margin: 0; font-size: var(--step-2); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.engine-copy p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }

/* The film sits in a drawn browser window, as on the product sites, but
   in black and white. */
.film { margin: 0; min-width: 0; }
.film-window {
  overflow: hidden; border-radius: 12px; background: var(--film-bar);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--film-edge);
}
.film-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; background: var(--film-bar); }
.film-dots { display: flex; gap: 0.4rem; flex: none; width: 3.4rem; }
.film-dots span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--film-dot); }
.film-address {
  margin-inline: auto; padding: 0.2rem 1rem; border-radius: 6px; min-width: 0;
  background: var(--film-field); color: var(--film-text); font-size: 0.8125rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.film-end { flex: none; width: 3.4rem; display: flex; justify-content: flex-end; }
/* Pause / play: a small round button where the window's right-hand space was. */
.film-toggle {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0;
  border: 0; border-radius: 50%; background: var(--film-field); color: var(--film-text); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.film-toggle[hidden] { display: none; }
.film-toggle:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.film-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.film-toggle svg { width: 0.8rem; height: 0.8rem; fill: currentColor; }
.film-toggle[data-state="playing"] .i-play,
.film-toggle[data-state="paused"] .i-pause { display: none; }
.film-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #f3eee4; }
.film-video.film-square { aspect-ratio: 1; background: #1b2a3a; }
/* A moving picture, not a player: on a touch screen a tap passes through. */
@media (pointer: coarse) { .film-video { pointer-events: none; -webkit-touch-callout: none; user-select: none; } }
@media (max-width: 30rem) { .film-dots, .film-end { width: 2.4rem; } .film-dots span { width: 0.55rem; height: 0.55rem; } }

/* ---- products ---- */
.products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}
@media (min-width: 44rem) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
.product {
  /* A product tile: the logo large on a grey stage, then a white body with
     the sentence, the points and the site link pinned to the foot. */
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 16px;
  color: inherit; text-decoration: none; min-width: 0;
  transition: transform 260ms cubic-bezier(.2, .7, .2, 1), box-shadow 260ms ease, border-color 260ms ease;
}
.product-stage {
  display: grid; place-items: center; height: clamp(9rem, 15vw, 12rem);
  background: var(--wash); border-bottom: 1px solid var(--rule);
}
.product-stage h3 { margin: 0; }
.product-body {
  display: flex; flex-direction: column; gap: 1rem; flex: 1;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.25rem);
}
@media (min-width: 64rem) { .product-body .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1.5rem; } }
.product { position: relative; }
/* The website link covers the whole card, so the card clicks anywhere.
   (A second link could sit above it with position: relative; z-index: 1.) */
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:focus-visible { outline: none; }
.product:has(.card-link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 16px; }
.product:hover { transform: translateY(-3px); border-color: var(--rule); box-shadow: 0 24px 48px -30px var(--shade-2); }
.product:has(.card-link:active) { transform: translateY(-1px); }
.product .product-links { margin-top: auto; padding-top: 0.5rem; gap: 0.75rem 1.75rem; justify-content: space-between; }
.product .price { margin: 0; font-size: var(--step--1); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.product .ticks { margin-bottom: 0.5rem; }

.product h3 { font-size: var(--step-2); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
/* Each product's own wordmark, in ink. Sized so the two sets of capitals
   stand the same height. */
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; flex-wrap: wrap; min-height: 1.6rem; }
.product-mark { display: block; width: auto; max-width: 100%; color: var(--ink); overflow: visible; }
.product-mark-memaura { height: 3.6rem; aspect-ratio: 814.47 / 167.74; }
.product-mark-amoura  { height: 3.9rem; aspect-ratio: 741.7 / 214.357; }   /* a narrower, lighter mark: a touch larger to look the same size */
@media (max-width: 30rem) { .product-mark-memaura { height: 2.9rem; } .product-mark-amoura { height: 3.15rem; } }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.product p:not(.label) { color: var(--ink); font-size: 1.0625rem; line-height: 1.55; max-width: 44ch; }
/* Side by side, each description gets two lines of room, so the two lists line up. */
@media (min-width: 44rem) { .product-body > p { min-height: 3.2em; } }
.ticks { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.45rem; color: var(--ink-2); font-size: 0.9375rem; }
.ticks li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: 0.5rem; }
.ticks li::before { content: ""; width: 0.5rem; height: 1px; background: var(--ink); margin-top: 0.8em; }
.product-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; margin-top: 0.5rem; }
.visit {
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 0.15rem;
}
.small-links { font-size: var(--step--1); color: var(--ink-3); display: flex; gap: 1rem; }
.small-links a { color: var(--ink-3); }
.small-links a:hover { color: var(--ink); }

/* ---- facts: label/value pairs ---- */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem 2.5rem;
  margin: 0;
}
@media (min-width: 44rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .facts:not(.facts-2) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts div {
  display: grid; gap: 0.4rem; align-content: start; min-width: 0;
  padding-top: 1rem; border-top: 1px solid var(--rule);
}
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); max-width: 46ch; }
.more { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 0.15rem; }

/* ---- contact ---- */
.email {
  font-size: var(--step-3); font-weight: 650; letter-spacing: -0.025em; line-height: 1.15;
  text-decoration: none; border-bottom: 2px solid var(--ink);
  overflow-wrap: anywhere; justify-self: start; padding-bottom: 0.1rem;
}
.email:hover { border-bottom-color: var(--ink-3); }
/* The address, with its Copy button underneath. */
.email-row { display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 0; }
.copy-email {
  min-height: 2.25rem; padding: 0 1rem;
  font: 500 var(--step--1)/1 var(--sans); color: var(--ink-2);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.copy-email[hidden] { display: none; }
.copy-email:hover { color: var(--ink); border-color: var(--ink); }
address { font-style: normal; }

/* ---- legal pages ---- */
.doc-head {
  padding-block: clamp(3rem, 9vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  display: grid; gap: 1rem;
  animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both;
}
@media (prefers-reduced-motion: reduce) { .doc-head { animation: none; } }
.doc-head h1 { font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4rem); font-weight: 650; letter-spacing: -0.038em; line-height: 1.02; max-width: 14ch; }
.doc-head .meta { color: var(--ink-3); font-size: var(--step--1); }
.notice {
  display: flex; gap: 0.75rem; align-items: baseline;
  background: var(--wash); padding: 0.85rem 1rem;
  font-size: 0.9375rem; color: var(--ink-2); max-width: var(--measure);
}
.notice .tag {
  flex: none; font: 600 0.625rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 0.35rem 0.45rem; transform: translateY(-0.1em);
}
.notice strong { color: var(--ink); }


.doc { border-top: 1px solid var(--ink); }
.doc > .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 9vw, 6rem);
}
@media (min-width: 52rem) {
  .doc > .wrap { grid-template-columns: 12rem minmax(0, 1fr); gap: 3rem; }
  .toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 6.5rem); align-self: start; }
}
.toc ol { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.15rem; font-size: var(--step--1); }
.toc a {
  display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); align-items: baseline; padding: 0.3rem 0;
  color: var(--ink-2); text-decoration: none;
}
.toc a:hover { color: var(--ink); }
/* The section being read (page.js) */
.toc a[aria-current="true"], .toc a[aria-current="true"] .num { color: var(--ink); }
.toc a[aria-current="true"] span:last-child { font-weight: 600; }
.toc a:hover span:last-child { text-decoration: underline; text-underline-offset: 0.25em; }
.toc .num { font: 500 0.75rem/1.6 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 51.99rem) { .toc { display: none; } }

.prose { min-width: 0; max-width: var(--measure); color: var(--ink-2); }
.prose section { scroll-margin-top: 6.5rem; }
.prose section + section { margin-top: 2.75rem; padding-top: 2.75rem; border-top: 1px solid var(--rule); }
.prose h2 {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: baseline;
  font-size: var(--step-2); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem;
}
.prose h2 .num { font: 500 0.8125rem/1 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.prose h3 { font-size: var(--step-0); font-weight: 650; margin: 1.75rem 0 0.5rem; }
.prose p + p, .prose p + ul, .prose ul + p, .prose table + p, .prose p + table { margin-top: 0.9rem; }
.prose ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.prose li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); }
.prose li::before { content: ""; width: 0.5rem; height: 1px; background: var(--ink); margin-top: 0.8em; }
.ref {
  font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.02em; color: var(--ink-3);
  border: 1px solid var(--rule); padding: 0.2rem 0.35rem; margin-left: 0.3rem;
  white-space: nowrap; vertical-align: 0.1em;
}
.prose strong { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; margin-top: 0.9rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose td a { overflow-wrap: anywhere; }
.prose .table-scroll + p { margin-top: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font: 500 0.6875rem/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--ink); }
.prose td:first-child { color: var(--ink); font-weight: 600; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--ink); font-size: var(--step--1); color: var(--ink-3); }
.footer-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2.5rem;
}
@media (min-width: 52rem) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 0.75rem; align-content: start; }
@media (min-width: 52rem) { .footer-brand { grid-column: auto; } }
.footer-brand .brand { color: var(--ink); justify-self: start; }
.footer-brand p { color: var(--ink-2); max-width: 28ch; }
.footer-grid nav { display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.footer-grid nav .label { margin-bottom: 0.25rem; }
.footer-grid nav a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { padding-block: 1.25rem 0; border-top: 1px solid var(--rule); }
/* The sign-off: the wordmark set across the full width of the page. */
.footer-mark { padding-block: clamp(2.5rem, 7vw, 5rem) calc(clamp(1.5rem, 4vw, 3rem) + env(safe-area-inset-bottom, 0px)); }
.logo-xl { display: block; width: 100%; height: auto; aspect-ratio: 835.74 / 184.2; color: var(--ink); overflow: visible; stroke: transparent; stroke-width: 1.4; }
@keyframes logo-fill { from { color: transparent; stroke: var(--ink-3); } 40% { color: transparent; stroke: var(--ink-3); } }
.footer-base p { max-width: 90ch; line-height: 1.6; }

/* ---- 404 ---- */
.lost { padding-block: clamp(5rem, 16vw, 10rem); display: grid; gap: 1.25rem; }
.lost h1 { font-size: var(--step-4); font-weight: 650; letter-spacing: -0.035em; line-height: 1; }
.lost p { color: var(--ink-2); font-size: var(--step-1); }

/* =====================================================================
   Motion and finishing details. CSS only: the site still runs no script.
   Each effect is off under prefers-reduced-motion, and a browser that
   lacks a feature shows the page as it is at rest.
   ===================================================================== */

/* 1. Page to page: a short crossfade, with the header holding still. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.site-header { view-transition-name: site-header; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* 2. The header is clear at the top of the page and frosts over as you
      scroll. Driven by scroll position, so there is nothing to time. */
@keyframes header-slim { to { min-height: 3.6rem; } }
@keyframes logo-slim { to { height: 1.35rem; } }
@keyframes header-settle {
  from { background-color: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-settle linear both; animation-timeline: scroll(root); animation-range: 0 96px; }
  @media (prefers-reduced-motion: no-preference) {
    /* The header slims as the page scrolls: brand first, then out of the way. */
    .site-header .wrap { animation: header-slim linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
    .brand .logo { animation: logo-slim linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  }
}

/* 3. The opening: the headline's words rise in turn, then the buttons and
      the product strip. */
.hero h1 { text-wrap: wrap; }   /* not balance: it would reshuffle every line as the ending is typed */
/* The headline breaks where it always has; on the smallest phones it wraps freely. */
@media (max-width: 24rem) { .hero h1 br { display: none; } }
.hero h1 .w { display: inline-block; }
/* The typed ending (assets/hero-type.js): while typing, the last words sit
   inline so a long phrase wraps naturally, with a thin cursor after them
   that holds steady while it types and blinks while it waits. */
.hero h1.settled .w { animation: none; opacity: 1; transform: none; }
.hero h1 .w-last { white-space: nowrap; }   /* the ending never wraps: the headline keeps its three lines */
.hero h1 .w-last.typing { display: inline; animation: none; opacity: 1; transform: none; }
.hero h1 .caret { display: none; }
/* Shown from the first frame when scripts run (theme.js marks <html> .js),
   blinking after "matter." until the typing starts. */
.js .hero h1 .caret {
  display: inline-block; width: 0.06em; height: 0.82em; margin-left: 0.05em;
  background: currentColor; vertical-align: -0.04em;
  animation: caret-blink 1.05s steps(1, end) infinite;
  transition: opacity 600ms ease;
}
.hero h1 .w-last.busy .caret { animation: none; opacity: 1; }
.hero h1 .w-last.held .caret { animation: none; opacity: 1; }   /* paused: the cursor holds still */
/* The keyboard way to pause the typing: out of sight until it has focus. */
.type-toggle[hidden] { display: none; }
.type-toggle {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  margin: 0; padding: 0; border: 0;
}
.type-toggle:focus-visible {
  position: static; width: auto; height: auto; overflow: visible; clip: auto;
  display: inline-block; margin-top: 1rem; padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper);
  color: var(--ink-2); font: 500 0.8125rem/1.2 var(--sans); cursor: pointer;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .js .hero h1 .caret { display: none; } }
@keyframes word-rise { from { opacity: 0; transform: translateY(0.38em); } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .w { animation: word-rise 760ms cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 .w:nth-of-type(2) { animation-delay: 45ms; }
  .hero h1 .w:nth-of-type(3) { animation-delay: 90ms; }
  .hero h1 .w:nth-of-type(4) { animation-delay: 135ms; }
  .hero h1 .w:nth-of-type(5) { animation-delay: 180ms; }
  .hero h1 .w:nth-of-type(6) { animation-delay: 225ms; }
  .hero h1 .w:nth-of-type(7) { animation-delay: 270ms; }
  .hero-actions   { animation: rise 700ms 400ms cubic-bezier(.2, .7, .2, 1) both; }
  .hero-products  { animation: rise 700ms 520ms cubic-bezier(.2, .7, .2, 1) both; }
}

/* 5. Sections ease up as they come into view, tied to scroll position. */
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section .section-body > *,
    .prose h2 {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
    /* The legal pages' headings finish the moment they are wholly on
       screen, so none is ever read half-faded (a heading near the end of
       the page can't scroll far enough up to finish the longer range). */
    .prose h2 { animation-range: entry 0% entry 100%; }
    /* The footer wordmark arrives as an outline and fills with ink as it
       comes into view. It is the last thing on the page and can never
       scroll far up, so it finishes the moment it is fully in view. */
    .logo-xl {
      animation: logo-fill linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}

/* 6. Finishing details. */

/* Underlines: a light rule at rest; on hover a full-strength line sweeps
   in from the left. */
.visit, .more, .email, .text-link {
  text-decoration: none; border-bottom: 0; padding-bottom: 0.18em;
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, currentColor 30%, transparent), color-mix(in srgb, currentColor 30%, transparent));
  background-size: 0% 1.5px, 100% 1px;
  transition: background-size 380ms cubic-bezier(.2, .7, .2, 1), color 160ms ease;
}
.email { background-size: 0% 2px, 100% 2px; padding-bottom: 0.12em; }
.visit:hover, .product:hover .visit, .more:hover, .text-link:hover { background-size: 100% 1.5px, 100% 1px; }
.email:hover { background-size: 100% 2px, 100% 2px; border-bottom-color: transparent; }

/* The button's arrow slides in on hover while the label makes room. */
.button { position: relative; padding: 0 1.85rem; overflow: hidden; }
.button > span:first-child { transition: transform 280ms cubic-bezier(.2, .7, .2, 1); }
.button .arrow {
  position: absolute; right: 1.1rem; opacity: 0; transform: translateX(-8px);
  transition: opacity 200ms ease, transform 280ms cubic-bezier(.2, .7, .2, 1);
}
.button:hover > span:first-child, .button:focus-visible > span:first-child { transform: translateX(-0.55rem); }
.button:hover .arrow, .button:focus-visible .arrow { opacity: 1; transform: none; }

/* The hero's pair: a solid primary and an outlined secondary, the same size.
   Both carry a 1px border so their boxes match exactly. */
.button { min-height: 3.125rem; padding: 0 2rem; font-size: 1rem; border: 1px solid var(--ink); }
.button-outline { background: transparent; color: var(--ink); transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.button-outline:hover { background: transparent; color: var(--ink); }   /* stays outlined: only the arrow moves */
.hero-actions { gap: 0.875rem; }
/* Phones: full width and stacked, easier to tap. */
@media (max-width: 30rem) {
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 22rem; margin-inline: auto; }
  .hero-actions .button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .product:hover { transform: none; }
  .visit, .more, .email, .text-link, .button > span:first-child, .button .arrow, .arrow { transition: none; }
}

/* Selected text in the house colours (the dark band flips with its tokens). */
::selection { background: var(--ink); color: var(--paper); }

/* =====================================================================
   Print: mostly for the legal pages. Black on white, no motion, no
   navigation, and every outside link's address written after it.
   ===================================================================== */
@media print {
  .hero { min-height: 0; padding-block: 0 8mm; }
  @page { margin: 18mm 16mm; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  :root, :root[data-theme="dark"] { --ink: #000; --ink-2: #222; --ink-3: #555; --rule: #bbb; --paper: #fff; --wash: #fff; color-scheme: light; }
  body { font-size: 10.5pt; line-height: 1.5; background: #fff; color: #000; }
  body::before, .skip, .site-header, .site-footer, .toc, .hero-actions, .theme-toggle, .hero-products, .film, .sprite { display: none !important; }
  .wrap { max-width: none; padding-left: 0; padding-right: 0; }
  .doc-head { padding-block: 0 8mm; }
  .doc-head h1 { font-size: 26pt; }
  .doc > .wrap { display: block; padding-block: 6mm 0; }
  .prose { max-width: none; }
  .prose section + section { margin-top: 6mm; padding-top: 6mm; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose li, .facts div, .prose tr { break-inside: avoid; }
  .notice { border: 1px solid #000; background: none; }
  .notice .tag { border: 1px solid #000; background: none; color: #000; }
  .section { border-top-color: #000; }
  .section > .wrap { display: block; padding-block: 8mm; }
  .section-dark, :root[data-theme="dark"] .section-dark { --paper: #fff; --ink: #000; --ink-2: #222; --ink-3: #555; --rule: #bbb; background: #fff; color: #000; }
  .product { break-inside: avoid; }
  .email { font-size: 14pt; }
  .copy-email { display: none !important; }
  /* Each legal page's address and the page number at the foot of every
     printed page (browsers without page margin boxes leave them out). */
  .print-terms { page: terms; }
  .print-privacy { page: privacy; }
  @page terms {
    @bottom-left { content: "aptusiq.co.uk/terms/"; font: 8pt Inter, system-ui, sans-serif; color: #555; }
    @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 8pt Inter, system-ui, sans-serif; color: #555; }
  }
  @page privacy {
    @bottom-left { content: "aptusiq.co.uk/privacy/"; font: 8pt Inter, system-ui, sans-serif; color: #555; }
    @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 8pt Inter, system-ui, sans-serif; color: #555; }
  }
  .prose a[href^="http"]::after, .facts a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; overflow-wrap: anywhere; }
}


