/* ==========================================================================
   eCommWiz — the one stylesheet.
   Order: fonts → tokens → reset → layout escape → primitives → header → footer → motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — self-hosted, Latin subset, WOFF2 only.
   No Google CDN. Five faces, 45.7KB total.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "EW Display";
  src: url("fonts/ew-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EW Display";
  src: url("fonts/ew-display-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EW Sans";
  src: url("fonts/ew-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EW Sans";
  src: url("fonts/ew-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EW Mono";
  src: url("fonts/ew-mono-500.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --void:      oklch(0.134 0.045 260);
  --ink:       oklch(0.174 0.046 273);
  --raise:     oklch(0.227 0.049 273);
  --line:      oklch(0.320 0.058 275);
  --mute:      oklch(0.722 0 0);
  --paper:     oklch(0.943 0 0);
  --violet:    oklch(0.579 0.184 287);
  --violet-hi: oklch(0.698 0.187 302);
  --blue:      oklch(0.634 0.196 253);

  /* Roles. violet-hi carries text and fills because plain violet is 4.36:1
     on void -- fine for large type and UI, short of AA for body copy. */
  --accent:    var(--violet-hi);
  --accent-2:  var(--blue);
  --accent-dp: var(--violet);

  --f-display: "EW Display", "Helvetica Neue", Arial, sans-serif;
  --f-body: "EW Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "EW Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --gut: min(var(--pad), 5vw);
  --wrap: 84rem;
  --read: 44rem;

  --s1: clamp(1rem, 2vw, 1.5rem);
  --s2: clamp(2rem, 4vw, 3rem);
  --s3: clamp(3.5rem, 7vw, 6rem);
  --s4: clamp(5rem, 11vw, 9rem);

  --head-h: 4.5rem;

  /* Derived, not chosen. The sigil's hat edge runs dx=12 over dy=-30, which
     is 21.8deg off vertical. Every diagonal on this site uses that angle. */
  --hat: 21.8deg;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, svg, canvas { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: inherit; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--paper); color: var(--void);
  padding: 0.75rem 1rem; z-index: 200; border-radius: 4px;
}
.skip:focus { left: 1rem; top: 1rem; }

.mono { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--mute); }

/* --------------------------------------------------------------------------
   3. Layout escape
   WordPress wraps post content in a constrained layout that caps every child
   at contentSize. Percentage break-outs compute to zero against it, so the
   wrapper is unconstrained here and each section declares its own width.
   -------------------------------------------------------------------------- */
.site-main,
.site-main > .entry-content,
.wp-site-blocks > .site-main {
  max-width: none;
  padding-inline: 0;
  margin-inline: 0;
}

.site-main > * { max-width: none; }

/* The article template keeps a reading measure. */
.article .wp-block-post-content > * { max-width: var(--read); margin-inline: auto; }
.article .wp-block-post-content > .alignwide { max-width: var(--wrap); }
.article .wp-block-post-content > .alignfull { max-width: none; }

/* --------------------------------------------------------------------------
   4. Section primitives
   -------------------------------------------------------------------------- */
.sec {
  position: relative;
  padding: var(--s4) var(--pad);
}
.sec__in { max-width: var(--wrap); margin-inline: auto; }
.sec--mid { min-height: 60vh; display: grid; align-content: center; max-width: var(--wrap); margin-inline: auto; }
.sec--tight { padding-block: var(--s3); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: var(--s1);
}

.sec__num {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.d-1 { font-size: clamp(2.75rem, 9vw, 7rem); }
.d-2 { font-size: clamp(2.25rem, 6vw, 4.5rem); }
.lede { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.375rem); color: color-mix(in oklch, var(--paper) 78%, transparent); max-width: 46ch; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* --------------------------------------------------------------------------
   5. CTA
   -------------------------------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--void);
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.cta:hover { background: transparent; color: var(--accent); }
.cta--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.cta--ghost:hover { background: var(--paper); color: var(--void); border-color: var(--paper); }
.cta--sm { padding: 0.6rem 1rem; font-size: 0.8125rem; }
.cta__arrow { transition: transform 0.25s var(--ease); }
.cta:hover .cta__arrow { transform: translateX(0.25rem); }

.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--s2); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--void) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
}

.site-head__in {
  max-width: var(--wrap);
  margin-inline: auto;
  min-height: var(--head-h);
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 2.1rem; height: 2.1rem; flex: none; color: var(--accent); }
.brand__mark svg { width: 100%; height: 100%; display: block; }

/* Wordmark. The W is the beard silhouette, so it sits on its own baseline
   nudge rather than inheriting the font's. */
.brand__word {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 1.25rem;
  display: flex;
  align-items: baseline;
  color: var(--paper);
}
.brand__word .lo { color: var(--mute); }
.brand__word .w {
  display: inline-block;
  width: 0.92em;
  height: 0.73em;
  margin: 0 0.02em;
  transform: translateY(0.06em);
  color: var(--accent);
}
.brand__word .w svg { width: 100%; height: 100%; display: block; }

.nav { display: none; gap: 1.5rem; }
.nav a { font-size: 0.9375rem; text-decoration: none; color: color-mix(in oklch, var(--paper) 80%, transparent); }
.nav a:hover { color: var(--paper); }

.site-head .cta--sm { display: none; }

.burger {
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 2.75rem; height: 2.5rem;
  display: grid; align-content: center; justify-items: center; gap: 0.35rem;
  cursor: pointer;
}
.burger span { display: block; width: 1.1rem; height: 1.5px; background: var(--paper); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(0.425rem) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-0.425rem) rotate(-45deg); }

.m-nav {
  display: grid;
  gap: 0.25rem;
  padding: var(--s1) var(--gut) var(--s2);
  border-top: 1px solid var(--line);
}
.m-nav[hidden] { display: none; }
.m-nav a { font-family: var(--f-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; padding-block: 0.35rem; }
.m-nav .cta { font-family: var(--f-mono); font-size: 0.875rem; font-weight: 400; justify-self: start; margin-top: var(--s1); }

@media (min-width: 60rem) {
  .nav { display: flex; }
  .site-head .cta--sm { display: inline-flex; }
  .burger, .m-nav { display: none !important; }
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); background: var(--ink); }
.site-foot__in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--s3) var(--gut);
  display: grid;
  gap: var(--s2);
}
.site-foot__line { max-width: 32ch; color: var(--mute); margin: 0.5rem 0 0; }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-foot__nav a { font-size: 0.9375rem; text-decoration: none; color: color-mix(in oklch, var(--paper) 78%, transparent); }
.site-foot__nav a:hover { color: var(--paper); }
.site-foot__legal { margin: 0; }

@media (min-width: 60rem) {
  .site-foot__in { grid-template-columns: 1fr auto; align-items: start; }
  .site-foot__legal { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   8. Motion
   Scroll-driven where supported, no library. Headless Chromium defaults to
   prefers-reduced-motion: reduce, so motion tests must pass no-preference.
   -------------------------------------------------------------------------- */
.rv { opacity: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv {
      animation: rv-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}

@keyframes rv-in {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   9. Home page
   Sections declare their own width. Nothing here relies on .entry-content.
   ========================================================================== */

/* ---- 9.1 Hero -----------------------------------------------------------
   Radial glow sits behind everything at low opacity. It is a background,
   not an element, so it cannot trap pointer events.
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(34rem, 88svh, 54rem);
  display: grid;
  align-content: center;
  padding: calc(var(--head-h) + var(--s3)) var(--pad) var(--s3);
  overflow: clip;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(58% 46% at 50% 78%, color-mix(in oklch, var(--violet) 46%, transparent), transparent 72%),
    radial-gradient(38% 32% at 22% 42%, color-mix(in oklch, var(--blue) 22%, transparent), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero__in {
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
/* Scrim. The circuit art is busy right where the CTAs sit, and a ghost
   button over glowing traces is unreadable. This keeps the art visible
   and the buttons legible. */
.hero__in::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  z-index: -1;
  background: radial-gradient(58% 52% at 50% 46%,
    color-mix(in oklch, var(--void) 88%, transparent) 0 46%,
    transparent 100%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.6vw, 4.75rem);
  line-height: 1.02;
  margin-bottom: var(--s1);
  text-wrap: balance;
}
.hero h1 .rot { margin-top: 0.08em; }

/* ---- 9.2 Rotating word --------------------------------------------------
   Height is locked to one line so the headline never reflows as words swap.
   The list is duplicated into the DOM and only one item is visible at a time.
   ------------------------------------------------------------------------ */
.rot {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.06em;
  /* Centred, because the width is locked to the widest word and the headline
     is centred -- left-aligning it parks every short word off-axis. */
  text-align: center;
  justify-items: center;
}
.rot > b {
  grid-area: 1 / 1;
  font-weight: inherit;
  color: var(--accent);
  opacity: 0;
  transform: translateY(0.42em);
  transition: opacity .34s var(--ease), transform .34s var(--ease);
  white-space: nowrap;
}
.rot > b.is-on { opacity: 1; transform: none; }
.rot > b.is-out { opacity: 0; transform: translateY(-0.42em); transition-duration: .28s; }

@media (prefers-reduced-motion: reduce) {
  .rot > b { transition: none; }
}

.hero__lede {
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  color: color-mix(in oklch, var(--paper) 76%, transparent);
  max-width: 40ch;
  margin-inline: auto;
}
.hero .ctas { justify-content: center; }

.hero__cue {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin-top: var(--s3);
}

/* ---- 9.3 Marquee band --------------------------------------------------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  padding-block: 1.15rem;
  user-select: none;
}
.strip__track { display: flex; width: max-content; animation: strip 42s linear infinite; }
.strip__track span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  letter-spacing: -0.02em;
  color: color-mix(in oklch, var(--paper) 26%, transparent);
  padding-right: 1.25rem;
  white-space: nowrap;
}
.strip__track b { color: var(--accent); font-weight: 700; }
.strip__track i { color: var(--violet); font-style: normal; padding-inline: 0.5rem; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* ---- 9.4 Section head + ghost word -------------------------------------- */
.sec__head { display: grid; gap: var(--s1); margin-bottom: var(--s3); }
@media (min-width: 60rem) {
  .sec__head { grid-template-columns: 13rem 1fr; gap: var(--s2); align-items: start; }
}

.ghost { position: relative; overflow: clip; }
.ghost__word {
  position: absolute;
  top: 3%;
  right: clamp(0.5rem, 3vw, 3rem);
  z-index: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in oklch, var(--line) 78%, transparent);
  pointer-events: none;
  margin: 0;
}
.ghost > .sec__in { position: relative; z-index: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ghost__word { animation: drift linear both; animation-timeline: view(); animation-range: entry cover; }
  }
}
@keyframes drift { from { transform: translateX(4%); } to { transform: translateX(-6%); } }

/* ---- 9.5 Bucket columns ------------------------------------------------- */
.buckets { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 56rem) { .buckets { grid-template-columns: repeat(3, 1fr); } }

.bucket { background: var(--void); padding: var(--s2) clamp(1.25rem, 3vw, 2.25rem) var(--s3); display: grid; gap: 0.85rem; align-content: start; }
.bucket__k { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--accent); }
.bucket h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.bucket p { color: var(--mute); margin: 0; }
.bucket ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.bucket li { font-size: 0.9375rem; color: color-mix(in oklch, var(--paper) 72%, transparent); padding-left: 1.1rem; position: relative; }
.bucket li::before { content: "/"; position: absolute; left: 0; color: var(--violet); font-family: var(--f-mono); }

/* ---- 9.6 Stat strip ----------------------------------------------------- */
.stats { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 46rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ink); padding: var(--s2) clamp(1.25rem, 3vw, 2rem); display: grid; gap: 0.35rem; }
.stat__n { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--paper); font-variant-numeric: tabular-nums; }
.stat__n small { font-size: 0.42em; color: var(--accent); margin-left: 0.2em; letter-spacing: 0; }
.stat__l { font-size: 0.875rem; color: var(--mute); margin: 0; max-width: 26ch; }

/* ---- 9.7 Work cards ----------------------------------------------------- */
.work { display: grid; gap: var(--s3); }
.workcard { display: grid; gap: var(--s2); align-items: center; }
@media (min-width: 62rem) {
  .workcard { grid-template-columns: 1.35fr 1fr; }
  .workcard--flip .workcard__media { order: 2; }
}

.workcard__media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 70px -30px color-mix(in oklch, var(--violet) 55%, transparent);
}
.workcard__media img { width: 100%; height: auto; display: block; }
.workcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 62%, color-mix(in oklch, var(--void) 92%, transparent));
  pointer-events: none;
}

.workcard__k { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--accent); }
.workcard h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0.5rem 0 0.75rem; }
.workcard p { color: var(--mute); }
.workcard__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s1); }
.workcard__meta span {
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em;
  border: 1px solid var(--line); border-radius: 2px; padding: 0.35rem 0.55rem; color: var(--mute);
}

.roster { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: var(--s2); }
.roster span { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--mute); }
.roster span::after { content: " /"; color: var(--violet); }
.roster span:last-child::after { content: ""; }

/* ---- 9.8 Contrast flip: pricing ----------------------------------------
   The one inverted section on the page. Publishing prices is the argument,
   so it gets the visual break that makes you stop scrolling.
   ------------------------------------------------------------------------ */
.flip { background: var(--paper); color: var(--void); }
.flip .eyebrow, .flip .sec__num { color: color-mix(in oklch, var(--void) 62%, transparent); border-color: color-mix(in oklch, var(--void) 18%, transparent); }
.flip .lede { color: color-mix(in oklch, var(--void) 72%, transparent); }
.flip .cta { background: var(--void); border-color: var(--void); color: var(--paper); }
.flip .cta:hover { background: transparent; color: var(--void); }

.price { border-top: 1px solid color-mix(in oklch, var(--void) 16%, transparent); }
.price__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid color-mix(in oklch, var(--void) 12%, transparent);
}
.price__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); letter-spacing: -0.015em; }
.price__n { font-family: var(--f-mono); font-size: clamp(1rem, 1.5vw, 1.25rem); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price__n b { font-weight: 500; }
.price__note { grid-column: 1 / -1; font-size: 0.875rem; color: color-mix(in oklch, var(--void) 58%, transparent); margin: 0; }

/* ---- 9.9 Rules ---------------------------------------------------------- */
.rules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
@media (min-width: 52rem) { .rules { grid-template-columns: repeat(2, 1fr); } }
.rule-i { background: var(--ink); padding: var(--s2) clamp(1.25rem, 3vw, 2rem); display: grid; gap: 0.5rem; align-content: start; }
.rule-i__k { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--accent); }
.rule-i h3 { font-size: 1.25rem; margin: 0; }
.rule-i p { color: var(--mute); margin: 0; font-size: 0.9375rem; }

/* ---- 9.10 Versus rows --------------------------------------------------- */
.vs { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.vs__row { background: var(--void); display: grid; gap: 0.75rem; padding: clamp(1.1rem, 2.4vw, 1.75rem) clamp(0.75rem, 2vw, 1.25rem); transition: background .25s var(--ease); }
.vs__row:hover { background: var(--ink); }
@media (min-width: 56rem) { .vs__row { grid-template-columns: 1fr 1fr; gap: var(--s2); align-items: center; } }
.vs__them, .vs__us { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.9375rem; }
.vs__them { color: var(--mute); }
.vs__us { color: var(--paper); }
.vs__mark { font-family: var(--f-mono); line-height: 1.5; }
.vs__them .vs__mark { color: color-mix(in oklch, var(--mute) 80%, transparent); }
.vs__us .vs__mark { color: var(--accent); }

/* ---- 9.11 Closing CTA --------------------------------------------------- */
.close { text-align: center; position: relative; }
.close h2 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.close .ctas { justify-content: center; }
.close__mark { width: clamp(3rem, 6vw, 4.5rem); margin: 0 auto var(--s2); color: var(--accent); opacity: .9; }
.close__mark svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   10. Blueprint grid + diagonals
   The dashed rules are the visual argument for RULE_001. A site that claims
   it measures things should look measured.
   ========================================================================== */

/* ---- 10.1 Fixed gutter rules -------------------------------------------
   One fixed element, behind everything, that never scrolls or reflows.
   Hidden on narrow screens where the gutters are too tight to read.
   ------------------------------------------------------------------------ */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}
.grid-lines__in {
  max-width: var(--wrap);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.grid-lines__in span {
  border-left: 1px dashed color-mix(in oklch, var(--line) 55%, transparent);
}
.grid-lines__in span:last-child {
  border-right: 1px dashed color-mix(in oklch, var(--line) 55%, transparent);
}

@media (min-width: 64rem) { .grid-lines { display: block; } }

/* The flip section is light, so the rules have to invert with it. */
.flip { position: relative; z-index: 1; }

/* Content sits above the rules without needing a stacking context per section. */
.site-main > * { position: relative; z-index: 1; }
.site-head, .site-foot { position: relative; z-index: 100; }
.site-foot { z-index: 2; }

/* ---- 10.2 Hatched divider ----------------------------------------------
   Cut at --hat. A full-bleed diagonal at 21.8deg off vertical would rise
   3,199px across a 1280px viewport, so the angle lives in a hatch texture
   instead of a section edge.
   ------------------------------------------------------------------------ */
.hatch {
  height: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    calc(90deg - var(--hat)),
    color-mix(in oklch, var(--violet) 26%, transparent) 0 1px,
    transparent 1px 14px
  );
  background-color: var(--ink);
}

/* ---- 10.3 Nav slash prefix ----------------------------------------------
   The slash already separates items in the marquee and the bucket lists.
   Reusing it in the nav makes it a system rather than a flourish.
   ------------------------------------------------------------------------ */
.nav a::before,
.m-nav a:not(.cta)::before {
  content: "/";
  color: var(--violet);
  margin-right: 0.35em;
  font-family: var(--f-mono);
}
.nav a { display: inline-flex; align-items: baseline; }

/* ---- 10.4 Price rows: dashed rules, hover reveal ------------------------ */
.price__row {
  border-bottom-style: dashed;
  padding-inline: clamp(0.5rem, 1.5vw, 1rem);
  transition: background .22s var(--ease);
}
.price__row:hover { background: color-mix(in oklch, var(--void) 5%, transparent); }
.price__row .price__n { transition: transform .22s var(--ease); }
.price__row:hover .price__n { transform: translateX(-0.15rem); }

/* Marker at the row head, in the hat angle. */
.price__row::before {
  content: "";
  grid-row: 1 / span 2;
  width: 3px;
  align-self: stretch;
  margin-right: 0.9rem;
  background: var(--void);
  opacity: 0;
  transform: skewX(calc(-1 * var(--hat)));
  transition: opacity .22s var(--ease);
}
.price__row:hover::before { opacity: .85; }
.price__row { grid-template-columns: auto 1fr auto; }
.price__note { grid-column: 2 / -1; }

/* ---- 10.5 Skewed accents ------------------------------------------------ */
.stat { position: relative; overflow: hidden; }
.stat::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 4.5rem;
  height: 7rem;
  background: color-mix(in oklch, var(--violet) 12%, transparent);
  transform: skewX(calc(-1 * var(--hat)));
  pointer-events: none;
}

/* The flip section is opaque and light; the fixed dark rules would vanish
   behind it. Redraw them inside the section in the inverted color. */
.flip { overflow: hidden; }
.flip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: none;
  background:
    repeating-linear-gradient(to right,
      transparent 0 calc(25% - 1px),
      color-mix(in oklch, var(--void) 12%, transparent) calc(25% - 1px) 25%);
}
@media (min-width: 64rem) { .flip::before { display: block; } }
.flip > .sec__in { position: relative; z-index: 1; }

/* ==========================================================================
   11. Form
   Rendered by the theme, so it inherits the tokens instead of fighting a
   plugin's stylesheet.
   ========================================================================== */
.f { display: grid; gap: var(--s2); max-width: 46rem; }
.f__grid { display: grid; gap: var(--s1); }
@media (min-width: 44rem) { .f__grid { grid-template-columns: 1fr 1fr; } }

.f__field { display: grid; gap: 0.45rem; }
.f__label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.f__label i { font-style: normal; color: var(--violet); text-transform: none; letter-spacing: 0.06em; }

.f input[type="text"],
.f input[type="email"],
.f select,
.f textarea {
  font: inherit;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.85rem 0.95rem;
  width: 100%;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.f textarea { resize: vertical; min-height: 9rem; }
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--raise);
}
.f ::placeholder { color: color-mix(in oklch, var(--mute) 70%, transparent); }

.f select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.f__set { border: 0; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.f__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.f__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f__chip label {
  display: inline-block;
  font-size: 0.875rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  color: var(--mute);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.f__chip label:hover { color: var(--paper); border-color: var(--mute); }
.f__chip input:checked + label {
  color: var(--void);
  background: var(--accent);
  border-color: var(--accent);
}
/* Keyboard users get a ring on the label, since the input itself is offscreen. */
.f__chip input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

.f__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.f__foot { display: grid; gap: 0.9rem; justify-items: start; }
.f__fine { font-size: 0.8125rem; color: var(--mute); margin: 0; }

.f__err { font-size: 0.8125rem; color: oklch(0.72 0.17 25); font-family: var(--f-mono); }
.f input:user-invalid, .f textarea:user-invalid { border-color: oklch(0.62 0.17 25); }

.f__ok {
  border: 1px solid var(--accent);
  border-left-width: 3px;
  border-radius: 3px;
  background: var(--ink);
  padding: var(--s2);
  max-width: 44rem;
  display: grid;
  gap: 0.5rem;
}
.f__ok h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.f__ok p { margin: 0; color: var(--mute); }
.f__ok .mono { margin: 0; }

/* ==========================================================================
   12. Service rows
   The full service list, without twelve tiles. Dashed rules and a hover
   reveal, same system as the price rows.
   ========================================================================== */
.svc { border-top: 1px dashed var(--line); }
.svc__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 1.15rem clamp(0.5rem, 1.5vw, 1rem);
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .2s var(--ease);
}
@media (min-width: 52rem) {
  .svc__row { grid-template-columns: auto 1fr auto auto; align-items: center; }
}
.svc__row:hover { background: var(--ink); }

.svc__k { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--violet); }
.svc__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.125rem, 1.9vw, 1.5rem); letter-spacing: -0.015em; }
.svc__desc { grid-column: 2 / -1; font-size: 0.9375rem; color: var(--mute); margin: 0; }
@media (min-width: 52rem) { .svc__desc { grid-column: auto; text-align: right; max-width: 32ch; justify-self: end; } }
.svc__n { font-family: var(--f-mono); font-size: 0.875rem; color: var(--accent); white-space: nowrap; }
.svc__go { color: var(--accent); opacity: 0; transform: translateX(-0.35rem); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.svc__row:hover .svc__go { opacity: 1; transform: none; }
@media (max-width: 51.99rem) { .svc__go { display: none; } }

/* ==========================================================================
   13. Prose pages (about, long copy)
   ========================================================================== */
.prose { max-width: var(--read); display: grid; gap: 1.1rem; }
.prose h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin: var(--s1) 0 0; }
.prose p { color: color-mix(in oklch, var(--paper) 78%, transparent); margin: 0; }
.prose strong { color: var(--paper); font-weight: 700; }

.split { display: grid; gap: var(--s2); }
@media (min-width: 62rem) { .split { grid-template-columns: 1.2fr 1fr; gap: var(--s3); align-items: start; } }
.aside { border: 1px solid var(--line); border-radius: 4px; background: var(--ink); padding: var(--s2); display: grid; gap: 0.75rem; align-content: start; }
.aside h3 { margin: 0; font-size: 1.125rem; }
.aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.aside li { font-size: 0.9375rem; color: var(--mute); padding-left: 1.1rem; position: relative; }
.aside li::before { content: "/"; position: absolute; left: 0; color: var(--violet); font-family: var(--f-mono); }

/* Interior heroes: shorter than the home page, same glow. */
.hero--sm {
  min-height: auto;
  padding-block: calc(var(--head-h) + var(--s3)) var(--s3);
}
.hero--sm h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
.hero--sm::before { height: 100%; inset: -10% -10% auto; }

/* ==========================================================================
   14. Money-page components
   ========================================================================== */

/* ---- 14.1 Numbered steps ------------------------------------------------ */
.steps { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--void);
  padding: var(--s2) clamp(1.25rem, 2.5vw, 1.75rem) var(--s3);
  display: grid;
  gap: 0.6rem;
  align-content: start;
  position: relative;
}
.step__n {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 0.3rem;
}
.step h3 { font-size: 1.1875rem; margin: 0; }
.step p { margin: 0; color: var(--mute); font-size: 0.9375rem; }

/* ---- 14.2 Deliverables list --------------------------------------------- */
.deliv { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
@media (min-width: 48rem) { .deliv { grid-template-columns: repeat(2, 1fr); } }
.deliv__i { background: var(--ink); padding: 1.25rem 1.4rem; display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.85rem; align-items: start; }
.deliv__i span:first-child { color: var(--accent); font-family: var(--f-mono); font-size: 0.875rem; line-height: 1.5; }
.deliv__i b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: 0.15rem; }
.deliv__i p { margin: 0; font-size: 0.9375rem; color: var(--mute); }

/* ---- 14.3 Price callout ------------------------------------------------- */
.pcall {
  border: 1px solid var(--accent);
  border-left-width: 3px;
  border-radius: 3px;
  background: var(--ink);
  padding: var(--s2);
  display: grid;
  gap: 0.6rem;
  max-width: 42rem;
}
.pcall__n { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.03em; line-height: 1; }
.pcall__n small { font-size: 0.36em; color: var(--accent); letter-spacing: 0; margin-left: 0.3em; }
.pcall p { margin: 0; color: var(--mute); }

/* ---- 14.4 Related links ------------------------------------------------- */
.rel { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rel a {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.6rem 0.85rem;
  color: var(--mute);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.rel a::before { content: "/ "; color: var(--violet); }
.rel a:hover { color: var(--paper); border-color: var(--accent); background: var(--ink); }

/* ---- 14.5 Breadcrumb ---------------------------------------------------- */
.crumb { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--mute); margin-bottom: var(--s1); }
.crumb a { color: var(--mute); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb span { color: var(--violet); padding-inline: 0.4rem; }

/* ==========================================================================
   15. Photography
   ========================================================================== */
.shot { margin: 0 0 var(--s2); max-width: 30rem; }
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  /* Feathered rather than a hard rectangle. */
  mask-image: radial-gradient(120% 110% at 50% 40%, #000 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 110% at 50% 40%, #000 62%, transparent 100%);
}
.shot figcaption {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--mute);
  margin-top: 0.75rem;
}

/* Hero backdrop art. Sits under the CSS glow, above nothing. Decorative, so
   it is a background layer rather than an <img> that assistive tech reads. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 78%;
  z-index: -2;
  background: url("ecommwiz-arcane-circuit-hero-backdrop.webp") center bottom / cover no-repeat;
  opacity: .42;
  pointer-events: none;
}
.hero--sm::after { height: 100%; opacity: .3; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero::after { animation: heroDrift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes heroDrift { from { transform: translateY(0) scale(1.02); } to { transform: translateY(-4%) scale(1.08); } }

/* ==========================================================================
   16. Hero video
   Never render-blocking: preload="none", poster carries first paint, and the
   whole element is removed from the flow under reduced-motion.
   ========================================================================== */
.hero--video .hero__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  z-index: -2;
  opacity: .55;
  pointer-events: none;
  /* Feathered so the 16:9 clip never reads as a rectangle in a taller hero. */
  mask-image: radial-gradient(130% 105% at 50% 72%, #000 46%, transparent 100%);
  -webkit-mask-image: radial-gradient(130% 105% at 50% 72%, #000 46%, transparent 100%);
}

/* With video present the still backdrop would double up. */
.hero--video::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero--video .hero__vid { display: none; }
  .hero--video::after { display: block; }
}

/* ==========================================================================
   17. Bucket icons
   ========================================================================== */
.bucket__ic {
  width: clamp(2.75rem, 5vw, 3.5rem);
  height: auto;
  margin-bottom: 0.35rem;
  opacity: .9;
}

/* ==========================================================================
   18. Illustrated section bands
   ========================================================================== */
.sec--band { position: relative; overflow: clip; }
.sec--band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Anchored right and height-fitted, so the art never stretches across the
     column the section head occupies. */
  background: var(--band-art) right center / auto 100% no-repeat;
  opacity: .55;
  pointer-events: none;
  /* Second falloff on top of the one baked into the file, because the head
     text sits over the left half and has to stay readable. */
  mask-image: linear-gradient(to right, transparent 0 48%, #000 88%);
  -webkit-mask-image: linear-gradient(to right, transparent 0 48%, #000 88%);
}
.sec--band > .sec__in { position: relative; z-index: 1; }
@media (max-width: 55.99rem) { .sec--band::before { opacity: .22; } }

/* ==========================================================================
   19. Notes: index, cards, article
   ========================================================================== */
.postlist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
@media (min-width: 52rem) { .postlist .wp-block-post-template { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); } }
.postlist .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); }
.postlist .wp-block-post-template > li { background: var(--void); }

.postcard { padding: var(--s2) clamp(1.25rem, 3vw, 1.9rem) var(--s3); display: grid; gap: 0.6rem; align-content: start; }
.postcard__date { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--accent); margin: 0; }
.postcard__title { font-size: clamp(1.25rem, 2.2vw, 1.625rem); margin: 0; }
.postcard__title a { text-decoration: none; }
.postcard__title a:hover { color: var(--accent); }
.postcard__ex { color: var(--mute); font-size: 0.9375rem; margin: 0; }
.postcard__ex .wp-block-post-excerpt__more-link { color: var(--accent); }

.pager { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: var(--s2); font-family: var(--f-mono); font-size: 0.875rem; }
.pager a, .pager .page-numbers { text-decoration: none; color: var(--mute); border: 1px solid var(--line); border-radius: 2px; padding: 0.45rem 0.7rem; }
.pager a:hover { color: var(--paper); border-color: var(--accent); }
.pager .current { color: var(--void); background: var(--accent); border-color: var(--accent); }

/* ---- Article body ------------------------------------------------------- */
.hero--post .hero__in { text-align: left; max-width: var(--read); margin-inline: 0; }
.hero--post h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }

.article .wp-block-post-content { font-size: 1.0625rem; }
.article .wp-block-post-content > * + * { margin-top: 1.15em; }
.article .wp-block-post-content h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-top: 2em; }
.article .wp-block-post-content h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1.6em; }
.article .wp-block-post-content p { color: color-mix(in oklch, var(--paper) 80%, transparent); }
.article .wp-block-post-content a { color: var(--accent); }
.article .wp-block-post-content ul,
.article .wp-block-post-content ol { padding-left: 1.3rem; color: color-mix(in oklch, var(--paper) 80%, transparent); }
.article .wp-block-post-content li + li { margin-top: 0.45em; }
.article .wp-block-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
  margin-inline: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.article .wp-block-post-content code {
  font-family: var(--f-mono);
  font-size: 0.875em;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.15em 0.4em;
}
.article .wp-block-post-content pre {
  font-family: var(--f-mono);
  font-size: 0.875rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.1rem;
  overflow-x: auto;
}
.article .wp-block-post-content pre code { background: none; border: 0; padding: 0; }
.article .wp-block-post-content img { border-radius: 4px; border: 1px solid var(--line); }
.article .wp-block-post-content hr { border: 0; border-top: 1px dashed var(--line); margin-block: 2em; }

/* ==========================================================================
   20. Sticky contact dock
   Replaces mystickyelements-pro: one plugin's stylesheet, script and icon
   font, for a fixed list of four links.
   ========================================================================== */
.dock {
  position: fixed;
  right: clamp(0.85rem, 2vw, 1.5rem);
  bottom: clamp(0.85rem, 2vw, 1.5rem);
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: 0.6rem;
}

.dock__toggle {
  order: 2;
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--void);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px color-mix(in oklch, var(--violet) 70%, transparent);
  transition: transform .28s var(--ease), background .28s var(--ease), color .28s var(--ease);
}
.dock__toggle:hover { transform: translateY(-2px); }
.dock__mark { width: 2rem; height: 2rem; display: block; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.dock__mark svg { width: 100%; height: 100%; display: block; }

/* The close mark is drawn, not an icon font. */
.dock__x { position: absolute; width: 1.1rem; height: 1.1rem; opacity: 0; transform: rotate(-90deg); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.dock__x::before, .dock__x::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px;
  background: currentColor; border-radius: 2px;
}
.dock__x::before { transform: rotate(45deg); }
.dock__x::after  { transform: rotate(-45deg); }

.dock__toggle[aria-expanded="true"] { background: var(--void); color: var(--accent); }
.dock__toggle[aria-expanded="true"] .dock__mark { opacity: 0; transform: scale(.6); }
.dock__toggle[aria-expanded="true"] .dock__x { opacity: 1; transform: rotate(0); }

.dock__list { order: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; justify-items: end; }
.dock__list[hidden] { display: none; }

.dock__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: color-mix(in oklch, var(--ink) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem 0.55rem 0.6rem;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.dock__item:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-2px); }
.dock__item.is-primary { background: var(--accent); color: var(--void); border-color: var(--accent); }
.dock__item.is-primary:hover { background: var(--violet); border-color: var(--violet); color: var(--void); }

.dock__ic { width: 1.35rem; height: 1.35rem; flex: none; }
.dock__ic svg { width: 100%; height: 100%; display: block; }

/* Staggered entry. Each item is delayed by its index, set inline by app.js. */
.dock__list li {
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
  transition-delay: var(--d, 0ms);
}
.dock.is-open .dock__list li { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .dock__list li, .dock__item, .dock__toggle, .dock__mark, .dock__x { transition: none; }
}

/* Keep the dock clear of the footer CTA on small screens. */
@media (max-width: 30rem) {
  .dock__item { font-size: 0.75rem; padding-right: 0.8rem; }
  .dock__toggle { width: 3.1rem; height: 3.1rem; }
}

/* ==========================================================================
   21. FAQ
   Native <details>, so it works with JavaScript disabled and is announced
   correctly by screen readers without any ARIA of our own.
   ========================================================================== */
.faq__list { border-top: 1px dashed var(--line); }
.faq__i { border-bottom: 1px dashed var(--line); }
.faq__i summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.15rem clamp(0.5rem, 1.5vw, 1rem);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  letter-spacing: -0.015em;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary:hover { background: var(--ink); }
.faq__i[open] summary { color: var(--accent); }

.faq__mk { position: relative; width: 0.95rem; height: 0.95rem; flex: none; }
.faq__mk::before, .faq__mk::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px;
  background: currentColor; border-radius: 2px; transition: transform .22s var(--ease);
}
.faq__mk::after { transform: rotate(90deg); }
.faq__i[open] .faq__mk::after { transform: rotate(0); }

.faq__a { padding: 0 clamp(0.5rem, 1.5vw, 1rem) 1.4rem; }
.faq__a p { margin: 0; color: var(--mute); max-width: 68ch; font-size: 0.9375rem; }
