/* ==========================================================================
   VANTEX — main stylesheet
   Typefaces, accent and light/dark mode are visitor-selectable (header "Aa"
   menu and the sun/moon button). The defaults for new visitors are set in
   js/theme.js (DEFAULT_FONT, DEFAULT_ACCENT, DEFAULT_THEME).
   All fonts are self-hosted variable files; a browser only downloads the
   ones the current page actually uses.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/assets/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Display";
  src: url("/assets/fonts/funnel-display.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Sans";
  src: url("/assets/fonts/funnel-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/assets/fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("/assets/fonts/crimson-pro.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 72px;
  --container: 1180px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Colour themes ----------
   Dark is the base. js/theme.js sets <html data-theme="light"> for light mode
   (the visitor's choice, or their system setting). The hero always stays dark,
   and so does the header while it sits over the hero: those re-apply the dark
   tokens. Accent colours come in a dark and a light version (see "Accent
   palettes"): the light ones are deep enough to read on a white page.
   RGB triplets are used where a colour is needed with alpha. */
:root,
html[data-theme="light"] .hero,
html[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) {
  color-scheme: dark;
  color: var(--text);
  --bg-rgb: 7, 11, 20;
  --bg-alt: #0a1020;
  --surface: #0e1627;
  --surface-2: #131d33;
  --line-rgb: 148, 170, 214;
  --text: #e6ebf5;
  --text-muted: #9aa6bd;
  --text-dim: #6f7c95;
  --hover: rgba(255, 255, 255, 0.05);
  --on-accent: #050814;            /* text on an accent-coloured button */
  --danger: #f08a8a;
  --danger-text: #f5a3a3;
  --logo-filter: brightness(0) invert(1);   /* partner logos in white */
  --shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  --a1-rgb: var(--a1-d, 226, 232, 240);
  --a2-rgb: var(--a2-d, 148, 163, 184);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg-rgb: 244, 246, 250;
  --bg-alt: #eaeef5;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --line-rgb: 30, 45, 80;
  --text: #0c1324;
  --text-muted: #46526a;
  --text-dim: #5d6880;
  --hover: rgba(30, 45, 80, 0.06);
  --on-accent: #ffffff;
  --danger: #c53030;
  --danger-text: #b42318;
  --logo-filter: brightness(0);             /* partner logos in black */
  --shadow: 0 24px 50px -20px rgba(15, 25, 50, 0.28);
  --shadow-sm: 0 14px 34px -12px rgba(15, 25, 50, 0.25);
  --a1-rgb: var(--a1-l, 51, 65, 85);
  --a2-rgb: var(--a2-l, 100, 116, 139);
}
/* derived tokens, recomputed wherever the base tokens change */
:root,
html[data-theme="light"],
html[data-theme="light"] .hero,
html[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) {
  --bg: rgb(var(--bg-rgb));
  --border: rgba(var(--line-rgb), 0.14);
  --border-strong: rgba(var(--line-rgb), 0.28);
  --accent-1: rgb(var(--a1-rgb));
  --accent-2: rgb(var(--a2-rgb));
}
/* the header switches instantly, so its text never sits on the wrong background */
html[data-theme="light"] .site-header { transition: none; }

/* Typography tokens for Archivo. These are on :root only as a fallback for
   when JavaScript is off; normally js/theme.js sets <html data-font> to the
   visitor's choice or DEFAULT_FONT. Keep this block first: later
   [data-font] blocks must be able to override it. The same tokens are set
   on each .font-option button, so every option in the menu previews itself.
   Other typefaces: see "Typeface options" near the end. */
:root,
[data-font="archivo"] {
  --font-body: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --display-weight: 600;
  --display-stretch: 125%;   /* font-stretch for headings */
  --h3-stretch: 112%;
  --display-track: -0.015em; /* extra letter-spacing for h1/h2 */
}

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

html {
  font-synthesis-weight: none;   /* single-weight fonts (Instrument Serif) never get a fake bold */
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: calc(var(--display-track) - 0.005em); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: var(--display-track); }
h3 { font-size: 1.25rem; font-stretch: var(--h3-stretch); letter-spacing: -0.005em; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
svg { display: block; }

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

::selection { background: rgba(var(--a1-rgb), 0.3); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent-1);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-1);
  color: var(--on-accent);
}
.btn-primary:hover { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.16); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent-1); color: var(--accent-1); }

.btn-sm { padding: 11px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(var(--bg-rgb), 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: var(--display-stretch);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 32px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-nav a:not(.btn) {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: var(--text); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 100px;
  overflow: hidden;
  isolation: isolate;

  /* Star-field photo under the network canvas, with a scrim that is darkest
     behind the text. Smaller file on narrower screens (see media query). */
  --hero-img: image-set(
    url("/assets/images/hero-stars-2560.webp") type("image/webp"),
    url("/assets/images/hero-stars-2560.jpg") type("image/jpeg"));
  --hero-scrim: linear-gradient(90deg, rgba(7, 11, 20, 0.86) 0%, rgba(7, 11, 20, 0.62) 50%, rgba(7, 11, 20, 0.38) 100%);
  background:
    var(--hero-scrim),
    var(--hero-img) center / cover no-repeat,
    var(--bg);
}
@media (max-width: 1024px) {
  .hero {
    --hero-img: image-set(
      url("/assets/images/hero-stars-1920.webp") type("image/webp"),
      url("/assets/images/hero-stars-1920.jpg") type("image/jpeg"));
  }
}
@media (max-width: 640px) {
  /* text spans the full width on phones, so darken evenly */
  .hero { --hero-scrim: linear-gradient(rgba(7, 11, 20, 0.72), rgba(7, 11, 20, 0.72)); }
}
.hero::before {
  /* soft glow */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(var(--a2-rgb), 0.22), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  /* fade into next section */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.75;
}
.hero-inner { max-width: 1000px; margin-left: max(0px, calc((100vw - var(--container)) / 2)); }
.hero h1 { max-width: 15ch; margin-bottom: 0.5em; }
.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 36em;
  margin-bottom: 2.2em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 128px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 44rem; margin-bottom: 56px; }
.section-sub { color: var(--text-muted); font-size: 1.125rem; max-width: 38em; }
.section-head .section-sub { margin-bottom: 0; }

/* ---------- Services: the system stack ----------
   Security (.shield) is a frame around the three delivery layers;
   research and consulting (.foundation) is the hatched base underneath. */
.stack { display: grid; gap: 10px; }

.row {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr) minmax(13rem, 17rem);
  gap: 16px 40px;
  align-items: baseline;
  padding: 30px 28px;
}
.row h3 { margin: 0; }
.row p  { margin: 0; color: var(--text-muted); max-width: 34em; }
.row ul { font-size: 0.94rem; line-height: 1.5; }
.row li + li { margin-top: 6px; }

.shield {
  padding: 0 10px 10px;
  border: 1px solid rgba(var(--a1-rgb), 0.5);
  border-radius: var(--radius);
  background: rgba(var(--a1-rgb), 0.035);
}
.shield-head { padding-block: 26px 28px; }
.shield-head h3 { color: var(--accent-1); }
.shield-head li { color: var(--text); }

.layers { display: grid; gap: 4px; }
.layer {
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.foundation {
  /* align text with the layers inside the frame (frame border + padding) */
  padding-inline: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(-45deg, rgba(var(--line-rgb), 0.07) 0 1px, transparent 1px 10px),
    var(--bg);
}

.stack-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 48px;
}
.stack-note p { margin: 0; color: var(--text-muted); max-width: 36em; }

/* ---------- Approach (a real sequence, so it is numbered) ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 72px;
  align-items: start;
}
.approach-head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  margin-bottom: 0;
}

.steps { border-bottom: 1px solid var(--border); }
.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.step-num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 300;
  font-stretch: var(--display-stretch);
  line-height: 0.9;
  color: var(--accent-1);
  font-variant-numeric: lining-nums tabular-nums;
}
.step h3 { margin-bottom: 0.35em; }
.step p  { margin: 0; color: var(--text-muted); max-width: 34em; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px 80px;
  align-items: start;
}
.about-text p { color: var(--text-muted); font-size: 1.0625rem; max-width: 36em; }

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 36px;
  padding-top: 8px;
}
.principle {
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}
.principle h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; margin-bottom: 0.4em; }
.principle p  { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Partners ----------
   Logos are shown as single-colour marks so mixed brand colours sit calmly
   on the dark background. Use transparent SVG or PNG files. */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);         /* shows through the gaps as grid lines */
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.partner {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 28px 32px;
  background: var(--bg-alt);
}
.partner img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 44px;
  filter: var(--logo-filter);        /* every logo in one colour: white, or black in light mode */
  opacity: 0.72;
}
.partner a { display: block; transition: opacity 0.2s; }
.partner a:hover img { opacity: 1; }

/* ---------- Packages ----------
   Packages sit on plain top rules, like the principles. The highlighted one
   (.is-active) sits in a soft, hazy accent glow. With JavaScript running there
   is one glow (.packages-highlight, added by js/main.js) that glides from
   package to package like a menu cursor in a game: js/main.js sets its
   position and size (--hl-x, --hl-y, --hl-w, --hl-h) on click, tap or focus.
   Without JavaScript the same glow is drawn on the active package (::before). */
.packages {
  --pkg-move: 0.62s;                            /* glide time */
  --pkg-ease: cubic-bezier(0.3, 1.18, 0.4, 1);  /* slight overshoot as it lands */
  --pkg-out: 0.2s;                              /* old package's price/button dim */
  --pkg-in: 0.3s;                               /* new package's light up */
  --pkg-gap: 0.28s;                             /* ...once the glow has nearly arrived */
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
  align-items: stretch;
}
.package {
  position: relative;
  z-index: 1;                       /* above the glow */
  display: flex;
  flex-direction: column;
  padding: 30px 28px 34px;
  border-top: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color 0.3s;
}
.package.is-active { cursor: default; border-top-color: transparent; }
.package:not(.is-active):hover { border-top-color: rgba(var(--a1-rgb), 0.6); }

/* the glow: a blurred halo (::before) under a faint tinted panel (::after) */
.packages-highlight::before,
.packages-highlight::after,
.packages:not(.has-highlight) .package.is-active::before,
.packages:not(.has-highlight) .package.is-active::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.packages-highlight::before,
.packages:not(.has-highlight) .package.is-active::before {
  inset: -14px;
  border-radius: 26px;
  background: rgba(var(--a1-rgb), 0.11);
  filter: blur(28px);
}
.packages-highlight::after,
.packages:not(.has-highlight) .package.is-active::after {
  inset: 0;
  border-radius: var(--radius);
  background: rgba(var(--a1-rgb), 0.06);
  box-shadow: inset 0 0 0 1px rgba(var(--a1-rgb), 0.14);
}
html[data-theme="light"] .packages-highlight::before,
html[data-theme="light"] .packages:not(.has-highlight) .package.is-active::before {
  background: rgba(var(--a1-rgb), 0.16);
}
html[data-theme="light"] .packages-highlight::after,
html[data-theme="light"] .packages:not(.has-highlight) .package.is-active::after {
  background: var(--surface);
}

.packages-highlight {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: var(--hl-w, 0px);
  height: var(--hl-h, 0px);
  transform: translate(var(--hl-x, 0px), var(--hl-y, 0px));
  pointer-events: none;
}
.packages.is-ready .packages-highlight {
  transition:
    transform var(--pkg-move) var(--pkg-ease),
    width var(--pkg-move) var(--pkg-ease),
    height var(--pkg-move) var(--pkg-ease);
}

.package h3 { margin-bottom: 10px; }
.package-for { margin: 0 0 22px; color: var(--text-muted); font-size: 0.94rem; max-width: 30em; }
/* package pictures (night-sky names): all the same height, so the names line up */
.package-art { display: block; width: auto; max-width: 100%; height: 120px; object-fit: contain; object-position: left center; margin-bottom: 22px; }
.package-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}
.package-amount {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-size: clamp(2.4rem, 3.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: var(--display-track);
  font-variant-numeric: lining-nums;
  transition: color var(--pkg-out) ease;
}
.package.is-active .package-amount {
  color: var(--accent-1);
  transition: color var(--pkg-in) ease var(--pkg-gap);
}
.package-period { color: var(--text-muted); font-size: 1rem; }
.package-setup { margin: 8px 0 24px; color: var(--text-dim); font-size: 0.9rem; }

.package-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.package-actions .btn { flex: 1 1 auto; }
/* "Get Started" is outlined, and fills with the accent in the highlighted package */
.package-cta {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  transition: background-color var(--pkg-out) ease, border-color var(--pkg-out) ease, color var(--pkg-out) ease, box-shadow 0.2s;
}
.package-cta:hover { border-color: var(--accent-1); color: var(--accent-1); }
.package.is-active .package-cta {
  background: var(--accent-1);
  border-color: transparent;
  color: var(--on-accent);
  transition: background-color var(--pkg-in) ease var(--pkg-gap), border-color var(--pkg-in) ease var(--pkg-gap), color var(--pkg-in) ease var(--pkg-gap), box-shadow 0.2s;
}
.package.is-active .package-cta:hover { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.16); }

.package-features { display: grid; gap: 10px; font-size: 0.94rem; line-height: 1.45; color: var(--text-muted); }
.package-features li { position: relative; padding-left: 26px; }
/* a small tick drawn with borders, so no image is needed */
.package-features li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.28em;
  width: 5px;
  height: 10px;
  border: solid var(--accent-1);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.package-features .package-includes { padding-left: 0; color: var(--text); font-weight: 600; }
.package-features .package-includes::before { display: none; }

.packages-note {
  position: relative;
  z-index: 1;                       /* stays above the glow as it passes */
  grid-column: 1 / -1;
  margin: 22px 0 0;
  max-width: 62em;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Single page: one wide row under the three packages */
.package-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 56px;
  margin-top: 64px;
}
.package-wide .package-actions { margin-bottom: 0; }
/* two columns that fill top to bottom, so a long item never leaves a gap */
.package-wide .package-features { display: block; columns: 2; column-gap: 32px; padding-top: 6px; }
.package-wide .package-features li { break-inside: avoid; margin-bottom: 10px; }

/* Build your own: the price picker under the packages (js/main.js, initPicker).
   Options on the left in plain rows; the estimate sits on the right in the same hazy
   accent panel as the highlighted package, and stays in view while scrolling. */
.picker { margin-top: 112px; }
.picker[hidden] { display: none; }
.picker-head { max-width: 44rem; margin-bottom: 40px; }
.picker-head h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 0.4em; }
.picker-head p { margin: 0; color: var(--text-muted); }
.picker-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: 32px 72px;
  align-items: start;
}
.picker-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
  align-items: start;
}
.picker-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.picker-group legend,
.picker-included-title {
  float: left;                      /* lets the rule below sit under it */
  width: 100%;
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border-strong);
  font-weight: 600;
  color: var(--text);
}
.picker-group legend + *,
.picker-included-title + * { clear: both; }
.picker-included { grid-column: 1 / -1; }
.picker-included .package-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; padding-top: 16px; }

.picker-option {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s;
}
.picker-option input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2em 0 0;                /* level with the first line of the name */
  align-self: start;
  accent-color: var(--accent-1);
  cursor: pointer;
}
.picker-option-name { color: var(--text-muted); transition: color 0.15s; }
.picker-option:hover .picker-option-name,
.picker-option input:checked ~ .picker-option-name { color: var(--text); }
.picker-option-price { color: var(--text-dim); font-size: 0.875rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.picker-option-price span { display: block; }
.picker-option input:checked ~ .picker-option-price { color: var(--accent-1); }
.picker-option input:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 3px; }

.picker-total {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: rgba(var(--a1-rgb), 0.06);
  box-shadow: inset 0 0 0 1px rgba(var(--a1-rgb), 0.14), 0 0 48px rgba(var(--a1-rgb), 0.08);
}
html[data-theme="light"] .picker-total { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--a1-rgb), 0.18), 0 0 48px rgba(var(--a1-rgb), 0.14); }
.picker-total-title { margin: 0 0 14px; font-weight: 600; }
.picker-total .package-amount { color: var(--accent-1); }
.picker-total .package-setup { margin-bottom: 6px; }
.picker-total-note { margin: 0 0 22px; color: var(--text-dim); font-size: 0.85rem; }
.picker-total .btn { width: 100%; }
.picker + .packages-note { margin-top: 40px; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact .container {
  padding-top: 112px;
}
.contact .section-sub { margin-bottom: 2.5em; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px 80px;
  align-items: start;
}

/* Enquiry form */
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.9rem; color: var(--text-muted); }
.field .optional { color: var(--text-dim); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s, background-color 0.15s;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(var(--a1-rgb), 0.45); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  background-color: var(--surface-2);   /* not "background": that would remove the select's arrow */
  box-shadow: 0 0 0 3px rgba(var(--a1-rgb), 0.18);
}
/* only flag fields as invalid after the visitor has typed in them */
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--danger); }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa6bd' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field select option { background: var(--surface-2); color: var(--text); }

/* spam trap: off-screen for people, still in the form for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* website picks carried over from "Build your own" */
.form-picks {
  padding: 18px 20px 20px;
  border-radius: var(--radius-sm);
  background: rgba(var(--a1-rgb), 0.06);
  box-shadow: inset 0 0 0 1px rgba(var(--a1-rgb), 0.18);
}
html[data-theme="light"] .form-picks { background: var(--surface); }
.form-picks[hidden] { display: none; }
.form-picks-head { display: flex; align-items: baseline; gap: 18px; }
.form-picks-title { margin: 0 auto 0 0; font-family: var(--font-body); font-size: 1rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; }
.form-picks-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.form-picks-link:hover { color: var(--accent-1); }
.form-picks-total { margin: 6px 0 10px; color: var(--accent-1); font-weight: 600; }
.form-picks-list { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: var(--text-muted); font-size: 0.9rem; }
.form-picks-list li:not(:last-child)::after { content: ","; margin-right: 0.4em; }

.form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 4px; }
.form-note { margin: 0; max-width: 34ch; font-size: 0.875rem; color: var(--text-dim); }
.form-status { margin: 0; color: var(--text-muted); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger-text); }
.form-status a { color: var(--text); text-decoration: underline; text-underline-offset: 0.18em; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }

/* replaces the form after a successful send */
.form-done { padding: 28px 0; }
.form-done h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.4em; }
.form-done p { color: var(--text-muted); margin: 0; }

/* Email alternative next to the form */
.contact-aside { padding-top: 30px; }
.contact-aside-label { margin: 0 0 6px; font-size: 0.9rem; color: var(--text-dim); }
.contact-email {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: var(--display-stretch);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--accent-1);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: rgba(var(--a1-rgb), 0.35);
  transition: text-decoration-color 0.2s;
}
.contact-email:hover { text-decoration-color: var(--accent-1); }

/* What happens next: a real sequence, so numbered like the Approach steps */
.next-steps {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border-strong);
}
.next-steps h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; margin-bottom: 18px; }
.next-steps ol { display: grid; gap: 16px; counter-reset: next-step; }
.next-steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 8px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
  counter-increment: next-step;
}
.next-steps li::before {
  content: counter(next-step);
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-size: 1.35rem;
  line-height: 1.05;
  color: var(--accent-1);
  font-variant-numeric: lining-nums tabular-nums;
}
.next-steps-note { margin: 20px 0 0; color: var(--text-dim); font-size: 0.875rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  margin-top: 40px;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand { max-width: 22rem; }
.footer-brand p { color: var(--text-dim); margin: 14px 0 0; font-size: 0.94rem; }
.footer-email { color: var(--text-muted); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--border-strong); transition: color 0.2s; }
.footer-email:hover { color: var(--text); }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 32px 64px; }
.footer-title { margin: 0 0 14px; font-weight: 600; font-size: 0.94rem; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--text); }
.footer-legal { max-width: 52em; }

/* ---------- Text links inside running text ---------- */
.section-sub a,
.approach-aside a,
.hero-alt a,
.faq a,
.prose a,
.form-note a,
.row-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(var(--a1-rgb), 0.5);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.section-sub a:hover,
.approach-aside a:hover,
.hero-alt a:hover,
.faq a:hover,
.prose a:hover,
.form-note a:hover,
.row-link:hover { color: var(--accent-1); text-decoration-color: var(--accent-1); }

/* homepage hero: the second route, for website visitors */
.hero-alt { margin: 28px 0 0; color: var(--text-muted); font-size: 0.98rem; }

/* services stack: description plus a link to the area's own page */
.row-link { display: inline-block; margin-top: 12px; font-size: 0.94rem; }

/* Websites: a separate offer, so it sits outside the stack in its own frame */
.websites-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 56px;
  align-items: center;
  margin-top: 72px;
  padding: 34px 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.websites-strip h3 { margin-bottom: 0.4em; }
.websites-strip p { margin: 0; color: var(--text-muted); max-width: 40em; }
.websites-strip-action { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 16px 28px; }
.websites-strip .websites-strip-price { color: var(--text-muted); white-space: nowrap; }
.websites-strip-price strong {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-size: 1.6rem;
  color: var(--accent-1);
}

/* How we work: what each step hands over */
.step > :not(.step-num) { grid-column: 2; }
.step .step-out { margin-top: 10px; color: var(--text); font-size: 0.94rem; }
.step-out span { color: var(--accent-1); font-weight: 600; }
.approach-aside { margin: 20px 0 0; color: var(--text-dim); font-size: 0.94rem; }
.approach-grid > .ph { grid-column: 2; margin: 0; }

/* About: company facts (placeholders until supplied) */
.about-facts { margin: 28px 0 0; }
html[data-comments] .about-facts.ph { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
html[data-comments] .about-facts.ph::before { grid-column: 1 / -1; justify-self: start; }
.about-facts dt { font-size: 0.875rem; color: var(--text-dim); }
.about-facts dd { margin: 0; }

/* FAQ: native disclosure, so it works without JavaScript */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 72px;
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }
.faq { border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 44px 22px 0;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: solid var(--accent-1);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--accent-1); }
.faq details > p { margin: -6px 0 22px; color: var(--text-muted); max-width: 40em; }
.faq details > p + p { margin-top: -10px; }

/* ---------- Inner pages ----------
   The page header re-uses the dark hero (star field, stays dark in light mode),
   shorter. The breadcrumb names the section the page belongs to. */
.page-hero { min-height: 0; padding: calc(var(--header-h) + 88px) 0 96px; }
.page-hero-solo { min-height: 72vh; min-height: 72svh; }
.page-hero .page-hero-inner h1 { max-width: 20ch; font-size: clamp(2.3rem, 4.6vw, 3.75rem); line-height: 1.06; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .hero-cta { margin-top: 2.2em; }
.page-path { margin-bottom: 18px; font-size: 0.95rem; }
.page-path a { color: var(--text-muted); transition: color 0.2s; }
.page-path a:hover { color: var(--text); }
.page-path a::after { content: "/"; margin-left: 0.6em; color: var(--text-dim); }
.page-hero + .section { padding-top: 64px; }

/* Service pages: text on the left, a short "talk to us" and the other areas on the right */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: 48px 96px;
  align-items: start;
}
.service-main h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 80px 0 22px; }
.service-main h2:first-child { margin-top: 0; }
.service-why { margin: 0; color: var(--text-muted); font-size: 1.125rem; max-width: 38em; }
.service-deliver { margin: 0; border-bottom: 1px solid var(--border); }
.service-deliver > div {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: 6px 40px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.service-deliver dt { font-weight: 600; }
.service-deliver dd { margin: 0; color: var(--text-muted); max-width: 36em; }
.service-list { border-bottom: 1px solid var(--border); }
.service-list li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.45em;
  width: 12px;
  height: 1.5px;
  background: var(--accent-1);
}
.service-main > .ph { margin-top: 40px; }
.service-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.service-aside p { color: var(--text-muted); font-size: 0.94rem; }
.service-aside .service-aside-title { margin: 0 0 10px; color: var(--text); font-weight: 600; font-size: 1rem; }
.service-aside .btn { width: 100%; }
.service-aside .btn + .service-aside-title { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border-strong); }
.service-others a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color 0.2s;
}
.service-others a:hover { color: var(--accent-1); }

/* Legal pages: one readable column */
.prose > * { max-width: 42rem; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 56px 0 14px; }
.prose > h2:first-child, .prose > .ph:first-child + h2 { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { display: grid; gap: 8px; margin: 0 0 1em; }
.prose li { position: relative; padding-left: 24px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 10px;
  height: 1.5px;
  background: var(--accent-1);
}

/* ---------- Placeholders ----------
   Text that still needs a real fact (class="ph") is hidden from visitors. Opening
   any page with ?comments=on shows it, outlined and tagged, for the rest of the
   visit (js/theme.js sets <html data-comments>); ?comments=off hides it again.
   List them all with: python tools/sync.py --placeholders */
.ph { display: none !important; }
html[data-comments] .ph {
  display: revert !important;
  outline: 1px dashed rgba(var(--a1-rgb), 0.8);
  outline-offset: 3px;
  border-radius: 2px;
  background-image: repeating-linear-gradient(-45deg, rgba(var(--a1-rgb), 0.09) 0 6px, transparent 6px 12px);
}
html[data-comments] .ph::before,
html[data-comments] details.ph > summary::before,
html[data-comments] li.ph > a::before {
  content: "Placeholder";
  display: inline-block;
  margin-right: 0.5em;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent-1);
  color: var(--on-accent);
  font: 600 0.72rem/1.5 var(--font-body);
  font-stretch: 100%;
  letter-spacing: 0.02em;
  vertical-align: 0.12em;
}
html[data-comments] details.ph::before,
html[data-comments] li.ph::before { content: none; }
html[data-comments] span.ph { white-space: nowrap; }

/* ---------- Display settings menu (header) ---------- */
.prefs { position: relative; }
html:not(.js) .prefs { display: none; }  /* needs JS to work */
.prefs[hidden], .theme-toggle[hidden] { display: none; }   /* hidden while the look is locked */

.prefs-toggle,
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.prefs-toggle:hover,
.prefs-toggle[aria-expanded="true"],
.theme-toggle:hover { border-color: var(--accent-1); color: var(--accent-1); }

/* Light/dark button: shows the current mode (moon = dark, sun = light) */
html:not(.js) .theme-toggle { display: none; }  /* needs JS to work */
html:not(.js) a[href="#build"] { display: none; }  /* the price picker needs JS */
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun,
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.prefs-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 110;
  width: 440px;
  max-height: calc(100vh - var(--header-h) - 24px);
  max-height: calc(100dvh - var(--header-h) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.prefs-panel[hidden] { display: none; }

.prefs-label { margin: 0 0 8px; padding-inline: 4px; font-size: 0.875rem; color: var(--text-dim); }
.prefs-group + .prefs-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

.font-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.font-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-display);       /* each button carries its own data-font tokens */
  font-stretch: var(--display-stretch);
  font-weight: var(--display-weight);
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
/* even out the optical size of each name */
.font-option[data-font="shoulders"]  { font-size: 1.4rem; line-height: 1; }
.font-option[data-font="newsreader"] { font-size: 1.25rem; line-height: 1.1; }
.font-option[data-font="unbounded"]  { font-size: 0.95rem; }
.font-option[data-font="martian"]    { font-size: 0.9rem; }
.font-option[data-font="instrument"] { font-size: 1.4rem; line-height: 1; }
.font-option[data-font="spectral"],
.font-option[data-font="literata"],
.font-option[data-font="sourceserif"] { font-size: 1.15rem; }
.font-option[data-font="crimson"]    { font-size: 1.35rem; line-height: 1.05; }
.font-option { min-height: 44px; }
.font-option:hover { background: var(--hover); }
.font-option[aria-pressed="true"] {
  border-color: rgba(var(--a1-rgb), 0.5);
  background: rgba(var(--a1-rgb), 0.07);
}
.font-option[aria-pressed="true"]::after {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
}

.swatches { display: flex; gap: 10px; padding: 4px; }
.swatch {
  width: 26px; height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--a1-rgb)), rgb(var(--a2-rgb)));
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px rgb(var(--a1-rgb)); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.94rem;
  box-shadow: var(--shadow-sm);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hero entrance (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Scroll transitions (below the hero) ----------
   Blocks rise and fade in as they enter from the bottom of the screen, and
   fade out as they leave under the header. Tied to scroll position (CSS
   scroll-driven animations), so they play backwards when scrolling up.
   Browsers without support (currently Firefox) show the content static. */
@keyframes vx-scroll-in {
  from { opacity: 0; transform: translateY(32px); }
}
@keyframes vx-scroll-out {
  to { opacity: 0; transform: translateY(-20px); }
}
@supports (animation-timeline: view()) {
  .section-head,
  .stack .row,
  .stack-note,
  .step,
  .about-text,
  .principle,
  .partners-grid,
  .picker-head,
  .picker-group,
  .websites-strip,
  .faq details,
  .service-main > *,
  .contact .container > :not(.contact-grid) {
    animation: vx-scroll-in linear both, vx-scroll-out linear both;
    /* the top inset makes "leaving" start at the header's bottom edge, not behind it */
    animation-timeline: view(var(--header-h) 0px), view(var(--header-h) 0px);
    animation-range: entry 0% entry 90%, exit 10% exit 100%;
  }
  /* the packages rise in as one block, so the glow moves with them; the contact form
     too (it is taller than a phone screen, so it must never be half-faded while in use) */
  .packages,
  .contact-grid {
    animation: vx-scroll-in linear both;
    animation-timeline: view();
    animation-range: entry 0px entry 280px;
  }
  /* sticky blocks stay put while the content passes them, so they only fade in */
  .approach-head,
  .service-aside {
    animation: vx-scroll-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .row { grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr) minmax(12rem, 15rem); gap: 16px 28px; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-head { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .packages { grid-template-columns: 1fr; max-width: 34rem; gap: 12px; }
  .packages-note { margin-top: 10px; }
  .package-wide { grid-template-columns: 1fr; margin-top: 52px; }
  .picker { margin-top: 88px; }
  .picker-body { gap: 32px 40px; }
  .picker-options { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .approach-grid > .ph { grid-column: auto; }
  .service-grid { grid-template-columns: 1fr; }
  .service-aside { position: static; max-width: 34rem; }
  .site-nav ul { gap: 24px; }
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { padding-top: 32px; border-top: 1px solid var(--border); }
  .next-steps { margin-top: 36px; }
  .row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 20px;
  }
  .row ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 6px;
  }
  .row li + li { margin-top: 0; }
  .shield { padding: 0 6px 6px; }
  .shield-head { padding-block: 22px; }
  .foundation { padding-inline: 26px; }
  .stack-note { flex-direction: column; align-items: flex-start; }
  .websites-strip { grid-template-columns: 1fr; padding: 28px 24px; }
  .websites-strip-action { justify-content: flex-start; }
  .footer-cols { grid-template-columns: repeat(2, auto); }
  /* the estimate becomes a bar that stays at the bottom of the screen while picking */
  .picker-body { grid-template-columns: 1fr; }
  .picker-total {
    top: auto;
    bottom: 12px;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 16px;
    padding: 14px 16px 14px 20px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px rgba(var(--a1-rgb), 0.3), inset 0 0 0 999px rgba(var(--a1-rgb), 0.06), 0 10px 32px rgba(0, 0, 0, 0.35);
  }
  html[data-theme="light"] .picker-total { box-shadow: inset 0 0 0 1px rgba(var(--a1-rgb), 0.3), 0 10px 32px rgba(20, 30, 60, 0.16); }
  .picker-total-title, .picker-total-note { display: none; }
  .picker-total .package-amount { font-size: 2rem; }
  .picker-total .package-setup { margin: 4px 0 0; }
  .picker-total .btn { width: auto; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(var(--bg-rgb), 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 28px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) {
    display: block;
    padding: 16px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 20px; width: 100%; padding: 14px; }

  .header-actions { margin-left: auto; }
  .prefs-panel {
    position: fixed;
    top: calc(var(--header-h) - 4px);
    left: 16px;
    right: 16px;
    width: auto;
  }

  /* when the menu is open, keep the header opaque */
  .site-header.menu-open { background: rgba(var(--bg-rgb), 0.97); border-bottom-color: var(--border); }

  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .contact { padding-top: 0; }
  .contact .container { padding-top: 80px; }
}

@media (max-width: 640px) {
  h3 { font-size: 1.15rem; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .package { padding: 26px 20px 30px; }
  .package-wide .package-features { columns: 1; }
  .picker-included .package-features { grid-template-columns: 1fr; }
  .picker-total { padding-left: 16px; }
  .picker-total .btn { padding-inline: 14px; }
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner { min-height: 104px; padding: 22px 20px; }
  .partner img { max-height: 36px; }
  .hero { padding-bottom: 72px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .step { grid-template-columns: 3.25rem minmax(0, 1fr); padding: 24px 0; }
  .step-num { font-size: 2.25rem; }
  .contact-email { font-stretch: 105%; font-size: clamp(1.5rem, 7vw, 2rem); }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .service-deliver > div { grid-template-columns: 1fr; }
  html[data-comments] .about-facts.ph { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--header-h) + 56px) 0 72px; }
}

/* ---------- Typeface options ----------
   Applied to <html data-font="..."> by js/theme.js, and to each .font-option
   button. Keep names in sync with the buttons in index.html and the file
   list in js/theme.js. Element rules are scoped to html[...] so they only
   change the page, not the menu buttons. */

/* Big Shoulders: tall condensed headings, Instrument Sans for text */
[data-font="shoulders"] {
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --display-weight: 800;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: 0.005em;
}
html[data-font="shoulders"] h1 { font-size: clamp(3rem, 7.4vw, 6.5rem); line-height: 0.95; }
html[data-font="shoulders"] .hero h1 { max-width: 14ch; }
html[data-font="shoulders"] h2 { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1; }
html[data-font="shoulders"] h3 { font-family: var(--font-body); font-weight: 600; }
html[data-font="shoulders"] .step-num { font-weight: 700; font-size: 3.25rem; }
html[data-font="shoulders"] .brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.12em; }
html[data-font="shoulders"] .contact-email { font-weight: 700; letter-spacing: 0.01em; font-size: clamp(1.8rem, 2.8vw, 2.5rem); }

/* Bricolage Grotesque: one family, optical sizes adjust automatically */
[data-font="bricolage"] {
  --font-body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-body);
  --display-weight: 650;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.03em;
}
html[data-font="bricolage"] .hero h1 { max-width: 14ch; }
html[data-font="bricolage"] .brand-name { letter-spacing: 0.14em; }

/* Newsreader: serif headings, Instrument Sans for text */
[data-font="newsreader"] {
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, serif;
  --display-weight: 500;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.02em;
}
html[data-font="newsreader"] h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1.02; }
html[data-font="newsreader"] h3 { font-weight: 600; letter-spacing: 0; }
html[data-font="newsreader"] .brand-name { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.2em; }
html[data-font="newsreader"] .contact-email { font-weight: 400; }

/* Funnel: Funnel Display headings, Funnel Sans for text */
[data-font="funnel"] {
  --font-body: "Funnel Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Funnel Display", "Segoe UI", sans-serif;
  --display-weight: 600;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.025em;
}
html[data-font="funnel"] h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
html[data-font="funnel"] .hero h1 { max-width: 14ch; }

/* IBM Plex Sans: one engineered family for headings and text */
[data-font="plex"] {
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-body);
  --display-weight: 600;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.025em;
}
html[data-font="plex"] .hero h1 { max-width: 14ch; }
html[data-font="plex"] .brand-name { letter-spacing: 0.18em; }

/* Unbounded: extra-wide headings (kept smaller), Instrument Sans for text */
[data-font="unbounded"] {
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --display-weight: 500;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.03em;
}
html[data-font="unbounded"] h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.08; }
html[data-font="unbounded"] .hero h1 { max-width: 17ch; }
html[data-font="unbounded"] h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
html[data-font="unbounded"] h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
html[data-font="unbounded"] .principle h3 { font-size: 1rem; }
html[data-font="unbounded"] .step-num { font-size: 2.25rem; }
html[data-font="unbounded"] .brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.08em; }
html[data-font="unbounded"] .contact-email { font-weight: 400; letter-spacing: -0.04em; font-size: clamp(1.3rem, 2vw, 1.8rem); }

/* Instrument Serif: narrow display serif (one weight), Instrument Sans for text */
[data-font="instrument"] {
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --display-weight: 400;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.01em;
}
html[data-font="instrument"] h1 { font-size: clamp(3rem, 7vw, 6.25rem); line-height: 0.98; }
html[data-font="instrument"] .hero h1 { max-width: 14ch; }
html[data-font="instrument"] h2 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.02; }
html[data-font="instrument"] h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
html[data-font="instrument"] .form-done h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; }
html[data-font="instrument"] .step-num { font-size: 3.25rem; }
html[data-font="instrument"] .brand-name { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.2em; }
html[data-font="instrument"] .contact-email { font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -0.01em; }

/* Martian Mono: monospace headings (narrowed a little), Instrument Sans for text */
[data-font="martian"] {
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Martian Mono", Consolas, monospace;
  --display-weight: 500;
  --display-stretch: 87.5%;
  --h3-stretch: 87.5%;
  --display-track: -0.04em;
}
html[data-font="martian"] h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.08; }
html[data-font="martian"] .hero h1 { max-width: 16ch; }
html[data-font="martian"] h2 { font-size: clamp(1.75rem, 2.9vw, 2.6rem); }
html[data-font="martian"] h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
html[data-font="martian"] .principle h3 { font-size: 1rem; }
html[data-font="martian"] .brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; }
html[data-font="martian"] .contact-email { font-weight: 400; letter-spacing: -0.05em; font-size: clamp(1.25rem, 1.9vw, 1.7rem); }

/* Literata: a reading serif for headings and text */
[data-font="literata"] {
  --font-body: "Literata", Georgia, serif;
  --font-display: var(--font-body);
  --display-weight: 600;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.025em;
}
html[data-font="literata"] .hero h1 { max-width: 14ch; }
html[data-font="literata"] .brand-name { letter-spacing: 0.14em; }
html[data-font="literata"] .contact-email { font-weight: 400; }

/* Source Serif 4: a sharper serif for headings and text */
[data-font="sourceserif"] {
  --font-body: "Source Serif 4", Georgia, serif;
  --font-display: var(--font-body);
  --display-weight: 600;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.02em;
}
html[data-font="sourceserif"] body { font-size: 1.125rem; }
html[data-font="sourceserif"] .hero h1 { max-width: 14ch; }
html[data-font="sourceserif"] .brand-name { letter-spacing: 0.16em; }
html[data-font="sourceserif"] .contact-email { font-weight: 400; }

/* Spectral: a light, screen-first serif for headings and text */
[data-font="spectral"] {
  --font-body: "Spectral", Georgia, serif;
  --font-display: var(--font-body);
  --display-weight: 500;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.02em;
}
html[data-font="spectral"] body { font-size: 1.125rem; }
html[data-font="spectral"] .hero h1 { max-width: 14ch; }
html[data-font="spectral"] h3 { font-weight: 600; }
html[data-font="spectral"] .brand-name { font-weight: 600; letter-spacing: 0.18em; }
html[data-font="spectral"] .contact-email { font-weight: 400; }

/* Crimson Pro: a classic book serif; small letters, so text is set larger */
[data-font="crimson"] {
  --font-body: "Crimson Pro", Georgia, serif;
  --font-display: var(--font-body);
  --display-weight: 500;
  --display-stretch: 100%;
  --h3-stretch: 100%;
  --display-track: -0.015em;
}
html[data-font="crimson"] body { font-size: 1.1875rem; line-height: 1.55; }
html[data-font="crimson"] h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); line-height: 1; }
html[data-font="crimson"] .hero h1 { max-width: 14ch; }
html[data-font="crimson"] h2 { font-size: clamp(2.2rem, 3.8vw, 3.3rem); }
html[data-font="crimson"] h3 { font-size: 1.4rem; font-weight: 600; }
html[data-font="crimson"] .brand-name { font-weight: 600; font-size: 1.3rem; letter-spacing: 0.16em; }
html[data-font="crimson"] .contact-email { font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }

/* ---------- Accent palettes ----------
   Applied to <html data-accent="..."> by js/theme.js, and to each .swatch button
   (which carries the same attribute) so the swatch previews its own colours.
   -d = on dark backgrounds, -l = on light ones (accent-1 -l is at least 4.5:1
   against the light page, so it works for text and under white button text).
   Keep names in sync with the swatch buttons in index.html. */
[data-accent="electric"] { --a1-d: 61, 224, 255;  --a2-d: 124, 92, 255; --a1-l: 14, 116, 144; --a2-l: 124, 58, 237; }
[data-accent="aurora"]   { --a1-d: 74, 222, 128;  --a2-d: 34, 211, 238; --a1-l: 21, 128, 61;  --a2-l: 14, 116, 144; }
[data-accent="silver"]   { --a1-d: 226, 232, 240; --a2-d: 148, 163, 184; --a1-l: 51, 65, 85; --a2-l: 100, 116, 139; }  /* default */
[data-accent="magenta"]  { --a1-d: 255, 110, 199; --a2-d: 139, 92, 246; --a1-l: 190, 24, 93; --a2-l: 124, 58, 237; }
[data-accent="ember"]    { --a1-d: 255, 179, 71;  --a2-d: 255, 94, 98;  --a1-l: 194, 65, 12; --a2-l: 220, 38, 38; }
[data-accent="gold"]     { --a1-d: 253, 224, 71;  --a2-d: 249, 115, 22; --a1-l: 180, 83, 9;  --a2-l: 234, 88, 12; }

/* swatches recompute the accent from their own data-accent, in the mode around them */
.swatch { --a1-rgb: var(--a1-d); --a2-rgb: var(--a2-d); }
html[data-theme="light"] .swatch { --a1-rgb: var(--a1-l); --a2-rgb: var(--a2-l); }
html[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) .swatch { --a1-rgb: var(--a1-d); --a2-rgb: var(--a2-d); }

/* Logo gradient follows the accent (overrides the SVG stop-color attributes) */
#vx-g stop:first-child { stop-color: var(--accent-1); }
#vx-g stop:last-child  { stop-color: var(--accent-2); }
