/* ==========================================================================
   PJC 2027 layer
   --------------------------------------------------------------------------
   New page components for the 2027 rebuild. Built on the tokens in
   tokens.css and the base rules in styles.css: serif headings, sentence-case
   labels, mono only for numerals and field names, no uppercase eyebrows. Every class here starts with x- so it
   cannot collide with the older components it sits beside.
   ========================================================================== */

.x-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
}
@media (max-width: 1023px) {
  .x-wrap { padding: 0 24px; }
}
@media (max-width: 480px) {
  .x-wrap { padding: 0 18px; }
}

.x-section { padding: clamp(72px, 9vw, 128px) 0; }
.x-section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.x-section--paper { background: var(--color-paper); }
.x-section--canvas { background: var(--color-canvas); }
.x-section--white { background: var(--color-white); }
.x-section--ink { background: var(--color-ink); color: var(--color-text-on-ink); }
.x-section--ink h2, .x-section--ink h3, .x-section--ink h4 { color: var(--color-white); }

.x-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.x-head h2 { color: var(--color-ink); margin-bottom: 18px; }
.x-head .lead { max-width: 640px; }
.x-section--ink .x-head .lead { color: var(--color-text-on-ink); }

/* ==========================================================================
   Home hero
   ========================================================================== */
.x-hero {
  position: relative;
  padding: calc(var(--nav-h, 88px) + clamp(40px, 6vw, 88px)) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(1200px 520px at 85% -10%, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--color-paper), var(--color-canvas));
  overflow: hidden;
}
.x-hero h1 {
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--color-ink);
  margin-bottom: 28px;
  max-width: 15ch;
}
.x-hero h1 em { font-style: italic; color: var(--color-accent); }
.x-hero .lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 600px; margin-bottom: 36px; }

/* ---------- Facts row (numbers) ---------- */
.x-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--color-line-strong);
}
.x-facts > div { padding: 22px 20px 0 0; }
.x-facts > div + div { padding-left: 22px; border-left: 1px solid var(--color-line); }
.x-facts b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  text-wrap: balance; /* worded stats ("Built for them") wrap rather than run into the next column */
}
/* One column per stat, so a row of three spreads across the width instead of leaving a gap (Peter, 06/11/2026). */
@media (min-width: 768px) { .x-facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.x-facts span { display: block; margin-top: 10px; font-size: var(--fs-body-sm); color: var(--color-muted); }
.x-section--ink .x-facts { border-color: var(--color-line-on-ink); }
.x-section--ink .x-facts > div + div { border-color: var(--color-line-on-ink); }
.x-section--ink .x-facts b { color: var(--color-white); }
.x-section--ink .x-facts span { color: color-mix(in srgb, var(--color-white) 60%, transparent); }
@media (max-width: 767px) {
  .x-facts { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .x-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

.x-checks { display: grid; gap: 0; border-top: 1px solid var(--color-line); }

.x-checks li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border: 1.5px solid var(--color-accent);
  border-radius: 4px;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) center / 6px 6px no-repeat;
}
/* ==========================================================================
   The stack: five rounded planes in 3D, data at the bottom, people on top
   ========================================================================== */

.s3__scene { position: relative; aspect-ratio: 1 / 1.28; perspective: 2400px; }
.s3__float { position: absolute; inset: 0; transform-style: preserve-3d; animation: s3-float 8s ease-in-out infinite; }
@keyframes s3-float { 50% { transform: translateY(-10px); } }
.s3__layer {
  position: absolute;
  left: 36%;
  top: 50%;
  width: 50%;
  aspect-ratio: 1 / 1;
  margin: -25% 0 0 -25%;
  --lift: 0px;
  --out: 0%;
  --grow: 1;
  --gap: 44%;
  transform: translateX(var(--out)) translateY(calc((2 - var(--i)) * var(--gap) + var(--lift))) rotateX(57deg) rotateZ(calc(-45deg + var(--spin, 0deg))) scale(var(--grow));
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-out), opacity 0.7s var(--ease-out);
}
.s3__plane {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22%;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--color-white) 70%, transparent),
    -6px 6.7px 0 -1px var(--edge, var(--art-slab-edge)),
    -40px 45px 70px -34px color-mix(in srgb, var(--color-ink) 42%, transparent);
}

.s3__layer--1 .s3__plane { background: linear-gradient(140deg, var(--color-white) 0%, var(--art-slab-1) 100%); --edge: var(--art-slab-1-edge); }
.s3__layer--2 .s3__plane { background: linear-gradient(140deg, var(--art-slab-2) 0%, var(--color-ink) 100%); --edge: var(--art-slab-2-edge); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 14%, transparent), -6px 6.7px 0 -1px var(--art-slab-2-edge), -40px 45px 70px -34px color-mix(in srgb, var(--color-ink) 50%, transparent); }
.s3__layer--3 .s3__plane { background: linear-gradient(140deg, var(--art-slab-3) 0%, var(--art-slab-3-end) 100%); --edge: var(--art-slab-3-edge); }
.s3__layer--4 .s3__plane { background: radial-gradient(120% 120% at 25% 15%, var(--art-slab-4) 0%, var(--art-slab-4-mid) 45%, var(--art-slab-4-end) 100%); --edge: var(--color-accent-deep); }
.s3__layer--5 .s3__plane {
  background: linear-gradient(140deg, color-mix(in srgb, var(--color-white) 86%, transparent), color-mix(in srgb, var(--color-white) 55%, transparent));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--color-white) 90%, transparent);
  --edge: color-mix(in srgb, var(--art-slab-shadow) 85%, transparent);
}
.s3__layer--4 .s3__plane::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--art-slab-glow) 35%, transparent), transparent 60%);
  z-index: -1;
}

.s3__label {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(50% + (2 - var(--li)) * var(--lgap, 17.2%));
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: baseline;
  padding-left: 14px;
  border-left: 1.5px solid var(--color-line-strong);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), border-color 0.4s;
}
.s3__label--1 { --li: 0; } .s3__label--2 { --li: 1; } .s3__label--3 { --li: 2; } .s3__label--4 { --li: 3; } .s3__label--5 { --li: 4; }
.s3__label b { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); color: var(--color-ink); line-height: 1.1; }
.s3__label small { grid-column: 2; font-size: 13px; color: var(--color-muted); line-height: 1.35; }
.x-section--ink .s3__label b { color: var(--color-white); }
.x-section--ink .s3__label { border-color: var(--color-line-on-ink); }
.x-section--ink .s3__label small { color: color-mix(in srgb, var(--color-white) 60%, transparent); }
.s3--nolabels .s3__layer { left: 50%; }

/* Focus one layer (service pages): the rest step back and sink slightly. */

.s3--focus-1 .s3__layer--1, .s3--focus-2 .s3__layer--2, .s3--focus-3 .s3__layer--3, .s3--focus-4 .s3__layer--4, .s3--focus-5 .s3__layer--5,
.s3--focus-1 .s3__label--1, .s3--focus-2 .s3__label--2, .s3--focus-3 .s3__label--3, .s3--focus-4 .s3__label--4, .s3--focus-5 .s3__label--5 { opacity: 1; }

/* ==========================================================================
   Closing band
   ========================================================================== */
.x-close {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-text-on-ink);
  padding: clamp(80px, 11vw, 160px) 0;
}
.x-close::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 62%);
  pointer-events: none;
}
.x-close .x-wrap { position: relative; z-index: 1; }
.x-close h2 { color: var(--color-white); font-size: clamp(42px, 5vw, 72px); line-height: 1; letter-spacing: -0.025em; max-width: 13ch; margin-bottom: 26px; }

.x-close .lead { color: var(--color-text-on-ink); margin-bottom: 36px; }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.x-page-hero {
  padding: calc(var(--nav-h, 88px) + clamp(36px, 5vw, 72px)) 0 clamp(48px, 6vw, 88px);
  background:
    radial-gradient(1000px 420px at 90% -20%, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--color-paper), var(--color-canvas));
  border-bottom: 1px solid var(--color-line);
}
.x-page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.x-page-hero--solo .x-page-hero__grid { grid-template-columns: minmax(0, 1fr); }
/* Index pages with no picture (Work, FAQ, Contact): headline left, lead right on its baseline, so the right half isn't empty and the content starts on the first screen (Peter, 05/11/2026). */
@media (min-width: 1024px) {
  .x-page-hero--split { padding-bottom: clamp(40px, 4.5vw, 64px); }
  .x-page-hero--split .x-page-hero__grid > div { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: clamp(40px, 5vw, 96px); align-items: end; }
  .x-page-hero--split .x-crumbs { grid-column: 1 / -1; }
  .x-page-hero--split h1 { margin-bottom: 0; }
  .x-page-hero--split .lead { margin-bottom: 0.35em; }
}
.x-crumbs { font-size: var(--fs-body-sm); color: var(--color-muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.x-crumbs a { color: var(--color-muted); border-bottom: 1px solid transparent; padding: 6px 0; margin: -6px 0; }   /* a 36px tap target without moving the row */
.x-crumbs a:hover { color: var(--color-ink); border-color: var(--color-accent); }
.x-crumbs span[aria-hidden] { color: var(--color-line-strong); }
.x-page-hero h1 { font-size: clamp(40px, 5.8vw, 80px); line-height: 1.02; letter-spacing: -0.024em; color: var(--color-ink); margin-bottom: 24px; max-width: 16ch; }
.x-page-hero h1 em { font-style: italic; color: var(--color-accent); }
.x-page-hero .lead { font-size: clamp(18px, 1.5vw, 20px); max-width: 640px; margin-bottom: 32px; }
/* Page heroes size and space the stack exactly like the home hero (.e-hero__stack), shrinking on shorter screens so the bottom tile stays on the first screen. */
.x-page-hero .s3 { max-width: max(320px, min(400px, calc((100svh - 330px) / 1.28))); margin-left: auto; translate: 0 -32px; } /* a touch smaller and higher than the home hero, which has no text column competing (Peter, 05/11/2026) */
.x-page-hero .s3 .s3__layer { width: 50%; margin: -25% 0 0 -25%; left: 34%; --gap: 44%; }

@media (max-width: 1023px) {
  .x-page-hero__grid { grid-template-columns: 1fr; }
  .x-page-hero .s3 { max-width: 420px; margin: 0; translate: none; }
}

/* ==========================================================================
   Long-form body (services, case studies, guides)
   ========================================================================== */
.x-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.x-body--solo { grid-template-columns: minmax(0, 760px); justify-content: start; }
.x-prose { min-width: 0; max-width: 760px; }
/* Spacing between blocks. The fold that phones collapse (.p-fold, a <details>
   round the long prose on service pages) counts as part of the prose, so its
   contents are spaced the same; its summary is hidden on desktop. */
:is(.x-prose, .x-prose > .p-fold) > * + * { margin-top: 1.1em; }
.x-prose h2 { font-size: clamp(28px, 3vw, 40px); color: var(--color-ink); margin-top: 2.2em; margin-bottom: 0.2em; }
.x-prose h2:first-child, .x-prose > .p-fold > summary + h2 { margin-top: 0; }
.x-prose h3 { font-size: clamp(21px, 1.8vw, 25px); color: var(--color-ink); margin-top: 1.8em; }
.x-prose p { margin-bottom: 0; }
.x-prose a { color: var(--color-ink); border-bottom: 1px solid var(--color-accent); font-weight: var(--fw-medium); }
.x-prose a:hover { color: var(--color-accent-hover); }
.x-prose ul, .x-prose ol { display: grid; gap: 10px; padding-left: 0; }
.x-prose ul > li { position: relative; padding-left: 24px; }
.x-prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }

.x-prose strong { color: var(--color-ink); font-weight: var(--fw-strong); }
.x-prose blockquote { font-family: var(--font-display); font-size: clamp(21px, 2vw, 27px); line-height: 1.35; color: var(--color-ink); padding-left: 0; border-left: 0; margin-bottom: clamp(28px, 3vw, 40px); }
/* No bar: Ember quote marks carry it, and the credit gets room. (Peter, 13/11/2026) */
/* The same Ember quote mark as the big testimonials, scaled for body text. */
.x-prose blockquote::before { content: ""; display: block; width: clamp(34px, 2.8vw, 46px); aspect-ratio: 72 / 56; margin-bottom: clamp(20px, 2vw, 28px); background: var(--color-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56'%3E%3Cpath stroke='%23000' stroke-width='4' stroke-linejoin='round' d='M4 52V32C4 16 12 6 28 3v10c-8 2-12 8-12 15h12v24zM42 52V32c0-16 8-26 24-29v10c-8 2-12 8-12 15h12v24z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56'%3E%3Cpath stroke='%23000' stroke-width='4' stroke-linejoin='round' d='M4 52V32C4 16 12 6 28 3v10c-8 2-12 8-12 15h12v24zM42 52V32c0-16 8-26 24-29v10c-8 2-12 8-12 15h12v24z'/%3E%3C/svg%3E") no-repeat center / contain; }
.x-prose .x-table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-sm); }
.x-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-sm); min-width: 520px; }
.x-prose th, .x-prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.x-prose th { background: var(--color-canvas); color: var(--color-ink); font-weight: var(--fw-strong); }
.x-prose tr:last-child td { border-bottom: 0; }

.x-callout {
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-text-on-ink);
}
.x-callout strong, .x-callout b { color: var(--color-white); }
.x-callout--accent { background: var(--color-accent-soft); color: var(--color-text); }
.x-callout--accent strong { color: var(--color-ink); }

.x-aside { position: sticky; top: calc(var(--nav-h, 88px) + 24px); display: grid; gap: 18px; }
.x-aside__box { padding: 24px; border-radius: var(--radius-card); background: var(--color-white); border: 1px solid var(--color-line); }
.x-aside__box h3 { font-size: 21px; color: var(--color-ink); margin-bottom: 10px; }
.x-aside__box p { font-size: var(--fs-body-sm); margin-bottom: 16px; }

.x-aside__box--ink h3 { color: var(--color-white); }
.x-dl { display: grid; gap: 0; }
.x-dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.x-dl > div:first-child { padding-top: 0; }
.x-dl dt { font-size: var(--fs-body-xs); font-weight: var(--fw-strong); color: var(--color-muted); }
.x-dl dd { font-size: var(--fs-body-sm); color: var(--color-ink); font-weight: var(--fw-medium); }
@media (max-width: 1023px) {
  .x-body { grid-template-columns: 1fr; }
  .x-aside { position: static; }
}

.x-outcome b { display: block; color: var(--color-ink); font-weight: var(--fw-strong); margin-bottom: 6px; }
.x-outcome span { font-size: var(--fs-body-sm); }
/* ==========================================================================
   FAQ (native details, keyboard accessible without script)
   ========================================================================== */
.x-faq { border-top: 1px solid var(--color-line-strong); max-width: 900px; }
.x-faq details { border-bottom: 1px solid var(--color-line); }
.x-faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: var(--fw-display-sm);
  color: var(--color-ink);
  line-height: 1.25;
}
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background:
    linear-gradient(var(--color-ink), var(--color-ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--color-ink), var(--color-ink)) center / 1.5px 10px no-repeat;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.x-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--color-accent-soft); }
.x-faq summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.x-faq .x-faq__a { padding: 0 44px 24px 0; max-width: 720px; }
.x-faq .x-faq__a p + p { margin-top: 0.8em; }

/* ==========================================================================
   Draft banner (unapproved client content, never indexed)
   ========================================================================== */
.x-draft {
  position: relative;
  z-index: 5;
  margin-top: var(--nav-h, 88px);
  background: var(--color-notice-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
  color: var(--color-notice-text);
  font-size: var(--fs-body-sm);
  padding: 10px 0;
}
.x-draft + .x-page-hero { padding-top: clamp(36px, 5vw, 72px); }

@media (prefers-reduced-motion: reduce) {
  .s3__layer, .s3__label { transition: none !important; }
  .s3__float { animation: none; }
  
}

/* ---------- Footer additions ---------- */
:root { --nav-h: var(--nav-space, 84px); }
.x-footer { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.x-footer__badge { width: 64px; height: 64px; margin-top: 22px; }
@media (max-width: 1023px) { .x-footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .x-footer { grid-template-columns: 1fr; } }

/* ==========================================================================
   Feel: bezels, light, motion
   --------------------------------------------------------------------------
   Everything here is enhancement. Without JavaScript, or with reduced motion,
   content is fully visible and still. site.js adds .x-motion to <html> and
   sets --mx / --my on hoverable surfaces for the cursor light.
   ========================================================================== */

/* Double bezel: a soft outer ring around rounded surfaces. */
.x-aside__box, .x-outcome {
  position: relative;
  isolation: isolate;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--color-white) 55%, transparent),
    0 0 0 7px var(--color-line),
    0 1px 2px color-mix(in srgb, var(--color-ink) 4%, transparent),
    0 24px 48px -32px color-mix(in srgb, var(--color-ink) 30%, transparent);
}
.x-aside__box--ink { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-text-on-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-ink) 6%, transparent),
    0 0 0 7px color-mix(in srgb, var(--color-ink) 14%, transparent),
    0 30px 60px -30px color-mix(in srgb, var(--color-ink) 55%, transparent); }

/* Gold arrow nudge on every "go" affordance. */

/* Primary button: a light sweep and lift. */
.btn--primary { position: relative; overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.2s; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--color-accent) 75%, transparent); }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--color-white) 45%, transparent), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--color-accent) 85%, transparent); }
.btn--primary:hover::after { left: 130%; }
.btn--primary:active { transform: translateY(0); }

/* Scroll progress hairline. */

/* Entrances. Only when site.js has set .x-motion; otherwise everything shows. */
.x-motion [data-x-in] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--x-d, 0) * 90ms);
}
.x-motion [data-x-in].is-in { opacity: 1; transform: none; }

/* Hero load sequence. */
@keyframes x-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes x-zoom { from { opacity: 0; transform: scale(0.94) translateY(20px); } to { opacity: 1; transform: none; } }
.x-motion .x-hero h1,
.x-motion .x-hero .lead,
.x-motion .x-page-hero .x-crumbs,
.x-motion .x-page-hero h1,
.x-motion .x-page-hero .lead { animation: x-rise 1s var(--ease-out) both; }
.x-motion .x-hero h1, .x-motion .x-page-hero h1 { animation-delay: 0.08s; }
.x-motion .x-hero .lead, .x-motion .x-page-hero .lead { animation-delay: 0.2s; }
.x-motion .x-page-hero .s3 { animation: x-zoom 1.2s var(--ease-out) 0.15s both; }

/* Generous rhythm on large screens. */
@media (min-width: 1200px) {
  .x-section { padding: 112px 0; }
  .x-head { margin-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .x-motion [data-x-in] { opacity: 1; transform: none; transition: none; }
  .x-motion .x-hero *, .x-motion .x-page-hero * { animation: none !important; }
  .btn--primary, .btn--primary::after { transition: none; }
  .x-progress { display: none; }
}

/* ==========================================================================
   Mega menu (desktop) and mobile sub-links
   ========================================================================== */
.x-mega { position: static; display: flex; align-items: center; }
.x-mega__trigger { display: inline-flex; align-items: center; gap: 5px; }
.x-mega__chev { width: 12px; height: 12px; transition: transform 0.3s var(--ease-out); }
.x-mega__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(1080px, calc(100vw - 48px));
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s linear 0.3s;
  z-index: 1001;
}
.x-mega__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.x-mega:hover .x-mega__panel, .x-mega:focus-within .x-mega__panel, .x-mega.is-open .x-mega__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s;
}
.x-mega:hover .x-mega__chev, .x-mega.is-open .x-mega__chev { transform: rotate(180deg); }
.x-mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.1fr;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-panel-lg);
  background: color-mix(in srgb, var(--color-paper-warm) 97%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--color-ink) 8%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-white) 50%, transparent), 0 40px 90px -30px color-mix(in srgb, var(--color-ink) 35%, transparent);
}
.x-mega__col { display: grid; align-content: start; gap: 2px; padding: 10px 6px; }
.x-mega__label { font-size: 12px; font-weight: var(--fw-strong); color: var(--color-muted); padding: 4px 12px 8px; margin: 0; }
.x-mega__col a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-item); transition: background-color 0.2s; }
.x-mega__col a:hover, .x-mega__col a:focus-visible { background: var(--color-white); outline: none; box-shadow: 0 0 0 1px var(--color-line); }
.x-mega__col b { font-weight: var(--fw-strong); font-size: 15px; color: var(--color-ink); }
.x-mega__col span { font-size: 13px; color: var(--color-muted); line-height: 1.4; }
.x-mega__feature {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--color-accent) 35%, transparent), transparent 55%), var(--color-ink);
  color: color-mix(in srgb, var(--color-white) 72%, transparent);
  min-height: 240px;
  transition: transform 0.35s var(--ease-out);
}
.x-mega__feature:hover { transform: translateY(-2px); }
.x-mega__feature .x-mega__label { padding: 0; color: var(--color-accent); }
.x-mega__feature b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; color: var(--color-white); }
.x-mega__feature span { font-size: 14px; line-height: 1.45; }
.x-mobile-sub { display: grid; gap: 4px; margin: -6px 0 10px 14px; padding-left: 14px; border-left: 1px solid color-mix(in srgb, var(--color-white) 15%, transparent); }

@media (max-width: 1100px) { .x-mega__grid { grid-template-columns: 1fr 1fr 1fr; } .x-mega__feature { grid-column: 1 / -1; min-height: 0; } }

/* ==========================================================================
   Editorial system (e-)
   --------------------------------------------------------------------------
   Large type, hairlines and space. No eyebrows, no numbering, no chips, no
   checkbox bullets, no arrow links, no glow blobs. Sequence and hierarchy
   come from layout and type alone.
   ========================================================================== */
.e-section { padding: clamp(96px, 12vw, 176px) 0; background: var(--color-white); }
.e-section--canvas { background: var(--color-canvas); }
.e-section--paper { background: var(--color-paper); }
.e-section--ink { background: var(--color-ink); color: color-mix(in srgb, var(--color-white) 70%, transparent); }

.e-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 9.2vw, 150px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  max-width: 11.5ch;
  text-wrap: balance;
}
.e-display em, .e-h2 em { font-style: italic; color: var(--color-accent); }
.e-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--color-ink);
  text-wrap: balance;
  max-width: 17ch;
}
.e-h2--wide { max-width: 20ch; margin-bottom: clamp(48px, 6vw, 96px); }
.e-section--ink .e-h2 { color: var(--color-white); }
.e-h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  text-wrap: balance;
}
.e-lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--color-text); max-width: 38em; }
.e-section--ink .e-lede { color: color-mix(in srgb, var(--color-white) 72%, transparent); }
.e-small { font-size: 14px; line-height: 1.6; color: var(--color-muted); max-width: 46em; }

/* Links: Ink words with an Ember underline. */
.e-link {
  display: inline;
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-md);
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color 0.2s;
}
.e-link:hover { color: var(--color-accent-text); }
.e-link:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.e-section--ink .e-link { color: var(--color-white); }
.e-section--ink .e-link:hover { color: var(--color-ink); }
.e-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin: 40px 0 36px; }
.e-after { margin-top: 48px; }

/* Hero */

.e-hero__portrait { margin: 0; position: relative; }
.e-hero__portrait--about { max-width: 420px; margin-left: auto; }
.x-aside__cta { margin: 16px 0 0; }
.e-quote.e-quote--flush { margin-bottom: 0; }
.e-hero__portrait picture img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-media);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--color-white) 85%, transparent), 0 0 0 11px var(--color-line), 0 50px 90px -50px color-mix(in srgb, var(--color-ink) 55%, transparent);
}
.e-hero__portrait figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-muted);
}
.e-hero__portrait figcaption img { width: 96px; height: auto; flex: none; }
@media (max-width: 1023px) {
  .e-hero__portrait { max-width: 340px; }
}

/* Clients */
.e-clients { background: var(--color-paper); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.e-clients__row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 64px; padding-block: 34px; }   /* block only: .x-wrap owns the side gutter */
.e-clients__row img { height: 22px; width: auto; filter: grayscale(1) contrast(1.1); opacity: 0.72; }
/* Heights balance visual weight: Zing365 is a small wordmark beside its icon,
   Keyless is solid full-height capitals. */
.e-clients__row .e-clients__zing { height: 36px; }
.e-clients__row .e-clients__keyless, .e-clients__row .e-clients__noco { height: 17px; }
.e-clients__row .e-clients__label { margin: 0 -32px 0 0; max-width: none; font-size: 14px; font-weight: 500; color: var(--color-ink); }
.e-clients__row p { margin: 0; max-width: 44em; font-size: 14px; color: var(--color-muted); }
/* The label and the three logos on one line, the sentence under them, aligned
   with the page's left edge (phones centre all of it, in phone.css). */
.e-clients__row .e-clients__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(32px, 4vw, 64px); }
.e-clients__row p:not(.e-clients__label) { flex-basis: 100%; max-width: none; padding-right: max(0px, 100% - 44em); }   /* own line at any width; text still capped at 44em */
/* Wide desktop: all on one line, the sentence in a narrow column on the right
   behind a hairline, so the band stays one short row. Narrower screens keep
   the sentence on its own line under the logos. */
@media (min-width: 1200px) {
  .e-clients__row { flex-wrap: nowrap; gap: 40px; }
  .e-clients__row .e-clients__label { flex: none; margin-right: -12px; }
  .e-clients__row .e-clients__logos { flex: none; flex-wrap: nowrap; gap: clamp(28px, 2.6vw, 48px); }
  .e-clients__row img { height: 19px; }
  .e-clients__row .e-clients__zing { height: 31px; }
  .e-clients__row .e-clients__keyless, .e-clients__row .e-clients__noco { height: 15px; }
  .e-clients__row p:not(.e-clients__label) { flex: 1 1 0; min-width: 0; max-width: 32em; margin-left: auto; padding: 2px 0 2px 28px; border-left: 1px solid var(--color-line); font-size: 13px; line-height: 1.5; }
}
/* Tablet: the four logos on one row under the label, spread to the page width so NOCO never drops to a second line (11/11/2026). */
@media (min-width: 768px) and (max-width: 1023px) {
  .e-clients__row .e-clients__label { flex-basis: 100%; }
  .e-clients__row .e-clients__logos { flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; gap: 24px; }
  .e-clients__row img { height: 19px; }
  .e-clients__row .e-clients__zing { height: 31px; }
  .e-clients__row .e-clients__keyless, .e-clients__row .e-clients__noco { height: 15px; }
}

/* Two-column split on hairlines */
.e-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--color-line-strong); }
.e-split__col { display: grid; align-content: start; gap: 22px; padding: 44px clamp(24px, 4vw, 72px) 0 0; }
.e-split__col + .e-split__col { padding-left: clamp(24px, 4vw, 72px); padding-right: 0; border-left: 1px solid var(--color-line); }
.e-split__col p { margin: 0; max-width: 34em; }
.e-split__col .e-link { justify-self: start; margin-top: 8px; }
/* .e-split--align: headline, intro and list share rows across the two columns, so the intros start on the same line. */
@media (min-width: 1024px) {
  .e-split--align { grid-template-rows: auto auto 1fr; }
  .e-split--align .e-split__col { grid-row: span 3; grid-template-rows: subgrid; row-gap: 22px; }
}
@media (max-width: 1023px) {
  .e-split { grid-template-columns: 1fr; }
  .e-split__col + .e-split__col { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-line); margin-top: 44px; }
}

.e-intro { margin-bottom: clamp(56px, 7vw, 104px); display: grid; gap: 28px; max-width: 1100px; }
.e-intro--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; max-width: none; }

/* Work tiles with cover art */
.e-work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.e-tile { grid-column: span 4; display: grid; align-content: start; gap: 14px; color: inherit; }
.e-tile--lg { grid-column: span 12; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.e-tile--lg .x-art { grid-row: span 2; aspect-ratio: 16 / 10; }
.e-tile h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.18; letter-spacing: -0.012em; color: var(--color-ink); margin-top: 10px; transition: color 0.25s; }
.e-tile--lg h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; margin: 0; }
.e-tile p { margin: 0; font-size: var(--fs-body-md); color: var(--color-muted); max-width: 34em; }
.e-tile:hover h3 { color: var(--color-accent-deep); }
@media (max-width: 1023px) { .e-tile { grid-column: span 6; } .e-tile--lg { grid-template-columns: 1fr; } .e-tile--lg .x-art { grid-row: auto; } }
@media (max-width: 767px) { .e-tile, .e-tile--lg { grid-column: span 12; } }

.x-art {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  perspective: 1600px;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-white) 70%, transparent), 0 0 0 9px var(--color-line);
  transition: box-shadow 0.4s var(--ease-out);
}

.x-art__plane {
  width: 42%;
  aspect-ratio: 1;
  transform: rotateX(57deg) rotateZ(-45deg);
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out);
}
.e-tile--lg .x-art__plane { width: 30%; }
.e-tile:hover .x-art__plane, .e-tile:focus-visible .x-art__plane { transform: translateY(-18px) rotateX(57deg) rotateZ(-45deg); }
.e-tile:hover .x-art { box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-white) 90%, transparent), 0 0 0 9px color-mix(in srgb, var(--color-accent) 50%, transparent); }
.e-tile:focus-visible { outline: none; }
.e-tile:focus-visible .x-art { box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-white) 90%, transparent), 0 0 0 11px var(--color-accent); }

/* Build section */
.e-build { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.e-build__copy { display: grid; gap: 32px; }
.e-defs { display: grid; border-top: 1px solid var(--color-line-on-ink); }
.e-defs > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--color-line-on-ink); }
.e-defs dt { font-family: var(--font-display); font-size: 21px; color: var(--color-white); }
.e-defs dd { font-size: var(--fs-body-md); }
.e-build .e-link { justify-self: start; }
.e-build__shots { position: relative; padding-bottom: 14%; }
.e-build__shots img { border-radius: var(--radius-panel); background: var(--color-white); box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-white) 6%, transparent), 0 0 0 9px color-mix(in srgb, var(--color-white) 12%, transparent), 0 60px 100px -40px color-mix(in srgb, var(--color-shadow) 70%, transparent); }
.e-build__shots img + img { position: absolute; width: 60%; right: -3%; bottom: 0; }
@media (max-width: 1023px) { .e-build { grid-template-columns: 1fr; } .e-defs > div { grid-template-columns: 1fr; gap: 6px; } }

/* Index rows (range) */
.e-index { border-top: 1px solid var(--color-line-strong); }
.e-index__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 24px clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--color-line);
  transition: padding 0.4s var(--ease-out);
}
.e-index__row h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); color: var(--color-ink); letter-spacing: -0.015em; line-height: 1.15; }
.e-index__row p { margin: 0; }
.e-index__row span { font-size: 14px; color: var(--color-muted); }
.e-index__row:hover { padding-left: 16px; }
@media (max-width: 1023px) { .e-index__row { grid-template-columns: 1fr; gap: 10px; } }

/* Quotes */

.e-quote blockquote { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.25; max-width: 32em; letter-spacing: -0.02em; color: var(--color-ink); text-wrap: pretty; }

/* Person */
.e-person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.e-person__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-media); box-shadow: 0 0 0 10px color-mix(in srgb, var(--color-white) 85%, transparent), 0 0 0 11px var(--color-line), 0 50px 90px -50px color-mix(in srgb, var(--color-ink) 50%, transparent); }
.e-person .e-lede { margin-top: 24px; }
.e-person .x-facts { margin-top: 48px; }
@media (max-width: 1023px) { .e-person { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; } }

/* Editorial list (guides, related) */
.e-list { border-top: 1px solid var(--color-line-strong); }
.e-list__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px clamp(24px, 5vw, 80px); padding: 32px 0; border-bottom: 1px solid var(--color-line); color: inherit; transition: padding 0.4s var(--ease-out); }
.e-list__row h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.18; color: var(--color-ink); letter-spacing: -0.012em; transition: color 0.25s; }
.e-list__row p { margin: 0; color: var(--color-muted); }
.e-list__row:hover { padding-left: 16px; }
.e-list__row:hover h3 { color: var(--color-accent-deep); }
.e-list__row:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
@media (max-width: 1023px) { .e-list__row { grid-template-columns: 1fr; } }

.x-checks li { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--color-line); font-size: var(--fs-body-md); }
.x-checks li::before { display: none; }
.x-close::after { display: none; }
@media (max-width: 767px) { .x-close { background: linear-gradient(180deg, var(--pjc-ink) 0%, var(--pjc-ink) 52%, transparent 80%), var(--pjc-texture); } }
.x-page-hero, .x-hero { background: var(--color-paper); }

.x-prose ol { counter-reset: none; }
.x-prose ol > li { position: relative; padding-left: 0; counter-increment: x-ol; }
.x-prose ol > li::before { content: counter(x-ol, decimal-leading-zero); position: absolute; left: 0; top: 0.15em; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--color-accent); display: none; }
.x-prose ol > li + li { border-top: 1px solid var(--color-line); padding-top: 14px; }
.x-prose ul > li::before { width: 5px; height: 5px; top: 0.75em; background: var(--color-muted); opacity: 0.6; }
.x-answer { max-width: 760px; margin-top: 8px; padding: 0; border-left: 3px solid var(--color-accent); background: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--fs-lead); border: 0; line-height: 1.6; color: var(--color-ink); font-family: var(--font-body); margin-bottom: clamp(24px, 3vw, 40px); } /* intro size, so the first heading leads (Peter, 13/11/2026) */

/* Hero, single screen: headline, intro and action left, portrait right. */
.e-hero__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3.6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.e-hero .e-display { font-size: clamp(52px, 7.4vw, 124px); max-width: 12ch; }
.e-hero .e-lede { margin-top: clamp(28px, 3vw, 44px); max-width: 34em; }

.e-hero { padding: calc(var(--nav-h, 84px) + clamp(56px, 8vw, 120px)) 0 clamp(72px, 9vw, 128px); background: var(--color-paper); padding-bottom: clamp(64px, 8vw, 112px); }
@media (max-width: 1023px) { .e-hero__grid { grid-template-columns: 1fr; } .e-hero__portrait { max-width: 300px; } }
.e-hero__portrait picture img, .e-person__photo img, .x-art img { height: auto; }
.s3__label { display: block; }
.s3__label b { display: block; }
.s3__label small { display: block; margin-top: 2px; }

/* ==========================================================================
   Character pass: cool grounds, ink weight, upright emphasis
   --------------------------------------------------------------------------
   Grounds stay cool and clean, ink carries the weight, and emphasis is
   upright colour, never italics. Colours come from the brand tokens.
   ========================================================================== */
.e-section--canvas, .x-section--canvas, .x-page-hero, .x-hero, .e-section--paper, .x-section--paper { background: var(--color-paper); }
.e-clients { background: var(--color-white); }
.e-display em, .e-h2 em, .x-page-hero h1 em, .x-close h2 em, .x-hero h1 em { font-style: normal; color: var(--color-accent); }

/* Smaller stack, and never taller than the screen once the nav and panel fit. */
.e-hero__stack .s3 { max-width: max(380px, min(520px, calc((100svh - 290px) / 1.28))); margin-left: auto; }
@media (max-width: 1023px) {
  .e-hero--feature .e-hero__grid { grid-template-columns: 1fr; }
  .e-hero__stack .s3 { max-width: 420px; margin: 0 auto; }
}

.e-hero__stack .s3__layer { width: 50%; margin: -25% 0 0 -25%; left: 34%; }

/* ==========================================================================
   Diagnose: pick symptoms, the stack shows where to start
   ========================================================================== */
.e-diag__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.e-diag .e-lede { margin-top: 24px; }
.e-diag__options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.e-diag__opt {
  font: 500 15px/1.2 var(--font-body);
  color: color-mix(in srgb, var(--color-white) 82%, transparent);
  background: color-mix(in srgb, var(--color-white) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-white) 16%, transparent);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}
.e-diag__opt:hover { border-color: color-mix(in srgb, var(--color-white) 40%, transparent); transform: translateY(-1px); }

.e-diag__opt:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.e-diag__result { margin-top: 36px; min-height: 140px; }
.e-diag__answer { font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.25; color: var(--color-white); max-width: 26em; }
.e-diag__answer b { color: var(--color-accent); font-weight: 400; }
.e-diag__case { margin-top: 16px; }
.e-diag__case .e-link { color: var(--color-white); }
.e-diag .e-actions { margin-top: 24px; }
.e-diag__stack .s3__label b { color: var(--color-white); }
.e-diag__stack .s3__label small { color: color-mix(in srgb, var(--color-white) 55%, transparent); }
.e-diag__stack .s3__label { border-color: color-mix(in srgb, var(--color-white) 16%, transparent); }
.e-diag__stack .s3__layer, .e-diag__stack .s3__label { transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out); }
.e-diag__stack.is-focused .s3__layer, .e-diag__stack.is-focused .s3__label { opacity: 0.18; }
.e-diag__stack.is-focused .s3__layer.is-on { opacity: 1; --lift: -26px; }
.e-diag__stack.is-focused .s3__label.is-on { opacity: 1; border-color: var(--color-accent); }
@media (max-width: 767px) { .e-diag__grid { grid-template-columns: 1fr; } .e-diag__stack { max-width: 420px; } }
/* Tablets keep the desktop layout: chips left, stack right. */
@media (min-width: 768px) and (max-width: 1023px) { .e-diag__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } .e-diag__opt { font-size: 14px; padding: 9px 14px; } }

/* ==========================================================================
   Before and after: records sort themselves as you scroll
   ========================================================================== */
.e-order { position: relative; height: 260vh; background: var(--color-ink-deeper); }
.e-order__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: flex-end; }
.e-order__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.e-order__copy { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vh, 96px); width: 100%; }
.e-order__copy::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160%; background: linear-gradient(transparent, color-mix(in srgb, var(--color-ink-deeper) 92%, transparent) 55%); z-index: -1; }
.e-order .e-h2 { color: var(--color-white); position: relative; display: grid; }
.e-order .e-h2 span { grid-area: 1 / 1; transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); }
.e-order__b { opacity: 0; transform: translateY(14px); }
.e-order.is-after .e-order__a { opacity: 0; transform: translateY(-14px); }
.e-order.is-after .e-order__b { opacity: 1; transform: none; }
.e-order .e-lede { color: color-mix(in srgb, var(--color-white) 70%, transparent); margin-top: 22px; }
@media (prefers-reduced-motion: reduce) {
  .e-order { height: auto; }
  .e-order__sticky { position: relative; height: 90vh; }
  .e-order__a { display: none; }
  .e-order__b { opacity: 1; transform: none; }
}

.e-order { background: radial-gradient(90% 70% at 70% 10%, color-mix(in srgb, var(--art-teal) 22%, transparent), transparent 60%), radial-gradient(70% 60% at 15% 90%, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 60%), var(--color-ink-deeper); }

/* Light colour grounds for cover art */

/* ==========================================================================
   Navigation: glass that adapts, a gliding highlight, hides on the way down
   ========================================================================== */

.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }

.x-nav-pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 38px;
  width: 0;
  transform: translate(var(--px, 0), -50%);
  border-radius: var(--radius-item);
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out), opacity 0.25s;
}
.nav__links.has-pill .x-nav-pill { opacity: 1; }
.nav__link, .x-mega__trigger { position: relative; z-index: 1; padding: 9px 12px; border-radius: var(--radius-item); }
.nav__links { position: relative; gap: 6px !important; }
.nav__link::before { display: none !important; }

.nav.is-dark { background: color-mix(in srgb, var(--color-ink-deep) 55%, transparent); border-color: color-mix(in srgb, var(--color-white) 10%, transparent); box-shadow: 0 14px 50px color-mix(in srgb, var(--color-shadow) 25%, transparent); }
.nav.is-dark .nav__link, .nav.is-dark .x-mega__trigger { color: color-mix(in srgb, var(--color-white) 86%, transparent); }
.nav.is-dark .x-nav-pill { background: color-mix(in srgb, var(--color-white) 10%, transparent); }
.nav.is-dark .nav__hamburger span { background: var(--color-white); }
@media (prefers-reduced-motion: reduce) { .nav.is-hidden { transform: none; } .x-nav-pill { transition: none; } }
.nav.is-dark .nav__cta { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-ink); }
/* Default tile size for a stack with side labels (page headers, the diagnosis).
   Spread out, a tile's diamond is about 1.4 times its width: at 44% it ends
   near 63% of the stack, clear of the labels at 70%. The home hero sets its
   own size. */
.s3__layer { left: 33%; width: 44%; margin: -22% 0 0 -22%; --gap: 50%; } /* 50% of a 44% tile = the labels' 17.2% spacing, so tiles and labels line up */
.s3__labels { position: absolute; top: 0; right: 0; bottom: 0; width: 29%; pointer-events: none; }

/* Editorial asides: hairlines, not cards. */

.x-aside__box h3, .x-aside__box--ink h3 { color: var(--color-ink); font-size: 19px; }
.x-aside__box .x-checks, .x-aside__box--ink .x-checks { border-top: 0; }
.x-aside__box--ink .x-checks li, .x-aside__box .x-checks li { color: var(--color-text); border-color: var(--color-line); font-size: 15px; padding: 9px 0; }
.x-outcome { padding: 16px 0 0; border-radius: 0; background: transparent; border: 0; box-shadow: none; border-top: 1px solid var(--color-line-strong); }

@keyframes da-flow { to { stroke-dashoffset: -18; } }
.e-picked { padding: 14px 16px; border-left: 3px solid var(--color-accent); background: var(--color-paper); font-size: 15px; color: var(--color-ink); }
.e-picked span { font-weight: 600; }
.e-scale { margin-top: clamp(56px, 7vw, 96px); }
.e-scale b { font-size: clamp(32px, 3.4vw, 48px); }

/* ---------- Audit fixes: contrast, focus, menus ---------- */
.e-section:not(.e-section--ink) .e-h2 em, .x-page-hero h1 em { color: var(--color-accent-text-large); }
.x-case__go, .e-tile:hover h3, .e-list__row:hover h3 { color: var(--color-accent-text); }
.e-diag .e-h2 em, .x-close h2 em, .e-order .e-h2 em, .e-section--ink .e-h2 em { color: var(--color-accent); }
/* Mega menu opens on hover or via the chevron button, never on focus alone. */
.x-mega:focus-within .x-mega__panel { opacity: 0; visibility: hidden; pointer-events: none; }
.x-mega:hover .x-mega__panel, .x-mega.is-open .x-mega__panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.x-mega__toggle { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; border: 0; background: transparent; color: inherit; border-radius: var(--radius-sm); cursor: pointer; position: relative; z-index: 1; }
.x-mega__toggle:focus-visible, .x-mega__col a:focus-visible, .x-mega__feature:focus-visible, .nav__link:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.x-mega.is-open .x-mega__chev, .x-mega:hover .x-mega__chev { transform: rotate(180deg); }
.nav.is-dark .x-mega__toggle { color: color-mix(in srgb, var(--color-white) 86%, transparent); }
/* A single remaining tile (drafts hidden) runs full width. */
/* A last row of two on desktop (five tiles, as on the live Work page while drafts are hidden) fills the width rather than leaving a gap. */
@media (min-width: 1024px) { .e-work > .e-tile:nth-last-child(2):nth-child(3n+1), .e-work > .e-tile:nth-last-child(2):nth-child(3n+1) + .e-tile { grid-column: span 6; } }
/* Two-up rows: half-width cards at 4:3 ran to 700px tall on a laptop. Shorter card, smaller slab. (Peter, 11/11/2026) */
@media (min-width: 1024px) {
  .e-work > .e-tile:nth-last-child(2):nth-child(3n+1) .x-art, .e-work > .e-tile:nth-last-child(2):nth-child(3n+1) + .e-tile .x-art { aspect-ratio: 2 / 1; }
  .e-work > .e-tile:nth-last-child(2):nth-child(3n+1) .x-art__plane, .e-work > .e-tile:nth-last-child(2):nth-child(3n+1) + .e-tile .x-art__plane { width: 26%; }
}
.e-work > .e-tile:only-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.e-work > .e-tile:only-child .x-art { grid-row: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 1023px) { .e-work > .e-tile:only-child { grid-template-columns: 1fr; } }

.x-static .e-order { height: auto; }
.x-static .e-order__sticky { position: relative; height: 640px; }
@media (max-width: 767px) {
  .x-static .e-order__sticky { height: 520px; }
  .e-order { height: 200vh; }
}

/* Stack on phones: planes centred and larger, labels become a row underneath. */
@media (max-width: 767px) {
  .s3 .s3__layer, .e-hero__stack .s3 .s3__layer { left: 50%; width: 50%; margin: -25% 0 0 -25%; }
  .s3__scene { aspect-ratio: 1 / 1.3; }
  .s3__labels { position: static; width: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 8px; }
  .s3__label { position: static; transform: none !important; border: 0; padding: 0; }
  .s3__label small { display: none; }
  .s3__label b { font-size: 15px; }
  .e-hero__stack .s3 { max-width: 340px; }
}
@media (max-width: 767px) {
  .s3__label--1 { order: 1; } .s3__label--2 { order: 2; } .s3__label--3 { order: 3; } .s3__label--4 { order: 4; } .s3__label--5 { order: 5; }
  .s3__label b { font-size: 14px; }
}
@media (max-width: 767px) {
  .e-order { height: 170vh; }
  .e-order .e-h2 { font-size: 30px; }
  .e-order .e-lede { font-size: 15px; margin-top: 14px; }
  .e-order__copy { padding-bottom: 34px; }
}

/* ==========================================================================
   Phone test fixes (round 1)
   ========================================================================== */
/* Mobile menu: above the header, scrollable, left aligned, big tap targets. */
.nav__mobile-overlay { z-index: 1300; overflow-y: auto; -webkit-overflow-scrolling: touch; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 88px 28px 40px; }
.nav__mobile-overlay a { display: block; padding: 12px 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: -0.02em; }
.nav__mobile-overlay .x-mobile-sub { margin: 0 0 12px; padding-left: 16px; }
.nav__mobile-overlay .x-mobile-sub a { font-size: 17px !important; opacity: 0.75; font-family: var(--font-body); padding: 10px 0; }
.nav__mobile-overlay .btn { margin-top: 20px; }

.nav__hamburger { width: 48px; height: 48px; padding: 12px; justify-content: center; align-items: center; border-radius: var(--radius-item); }
html.x-menu-open, html.x-menu-open body { overflow: hidden; }
/* Embedded viewers: the menu opens at the top of the page, where the button is. */
.x-static .nav__mobile-overlay { position: absolute; height: auto; min-height: 820px; }

/* Final call to action: text link must read on Ink. */
.x-close .e-link { color: var(--color-white); }
.x-close .e-link:hover { color: var(--color-ink); }

/* Bigger tap targets for text links and footer links. */
.e-link { display: inline-block; padding: 10px 0 6px; background-position: left calc(100% - 4px); }
.footer__link { display: inline-block; padding: 8px 0; }
.footer__links a[href^="mailto"] { overflow-wrap: normal; word-break: normal; font-size: 14px; }

/* Diagnosis on phones: the answer sits above the options, so it is seen. */
@media (max-width: 767px) {
  .e-diag__grid > div:first-child { display: flex; flex-direction: column; }
  .e-diag__result { order: 3; margin-top: 24px; min-height: 0; }
  .e-diag__options { order: 4; margin-top: 20px; }
  .e-diag__answer { font-size: 21px; }
}

/* Work tiles on phones: shorter art. */
@media (max-width: 767px) {
  .x-art, .e-tile--lg .x-art, .e-work > .e-tile:only-child .x-art { aspect-ratio: 16 / 10; }
  .x-facts { gap: 0; }
  .x-facts > div { padding-right: 10px; }
  .x-facts b { font-size: 34px; }
}
/* ---------- Phone test fixes (round 2) ---------- */
/* Legal page: old centred legal styles off, prose on. */
.x-prose.legal { text-align: left; max-width: 760px; margin: 0; }
.x-prose.legal h2 { text-align: left; }
.x-prose a[href^="mailto"] { overflow-wrap: anywhere; }
/* Tables on phones: fit the screen and wrap. */
@media (max-width: 767px) {
  .x-prose table, .article table, .legal table { min-width: 0 !important; width: 100%; table-layout: auto; font-size: 13.5px; }
  .x-prose th, .x-prose td, .article th, .article td { padding: 9px 10px; overflow-wrap: break-word; hyphens: manual; }
  .x-table-wrap { overflow-x: visible; }
  /* Three or more columns: each row's label goes full width above its values,
     so the label column never squeezes to a letter wide. */
  .x-prose table:has(tr > :nth-child(3)), .x-prose table:has(tr > :nth-child(3)) > thead, .x-prose table:has(tr > :nth-child(3)) > tbody { display: block; }
  .x-prose tr:has(> :nth-child(3)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--color-line); }
  .x-prose tr:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-prose tbody tr:last-child { border-bottom: 0; }
  .x-prose tr:has(> :nth-child(3)) > * { border-bottom: 0; }
  .x-prose tr:has(> :nth-child(3)) > td:first-child { grid-column: 1 / -1; padding-bottom: 0; color: var(--color-ink); font-weight: var(--fw-strong); }
  .x-prose tr:has(> :nth-child(3)) > th:first-child:empty { display: none; }
  .x-prose tr:has(> :nth-child(3)) > th:first-child:not(:empty) { grid-column: 1 / -1; }
  .x-prose tr:not(:has(> :nth-child(3))) > :first-child { min-width: 5em; }
}
/* Small phones: wider text column. */
@media (max-width: 380px) {
  .x-wrap { padding: 0 16px; }
  .e-split__col { padding-right: 0; }
}
.x-page-hero .btn, .e-actions .btn { white-space: nowrap; }
/* HubSpot form on the contact page, in the site's style. */
#hubspot-form .hs-form-field { margin-bottom: 18px; }
#hubspot-form label { display: block; font: 600 14px/1.4 var(--font-body); color: var(--color-ink); margin-bottom: 6px; }
#hubspot-form input[type="text"], #hubspot-form input[type="email"], #hubspot-form input[type="tel"], #hubspot-form select, #hubspot-form textarea { width: 100% !important; max-width: 100%; box-sizing: border-box; padding: 13px 14px; font: 400 16px/1.4 var(--font-body); color: var(--color-ink); background: var(--color-white); border: 1px solid var(--color-line-strong); border-radius: var(--radius-item); }
#hubspot-form input:focus, #hubspot-form textarea:focus, #hubspot-form select:focus { outline: 3px solid color-mix(in srgb, var(--color-accent) 45%, transparent); border-color: var(--color-accent); }
#hubspot-form fieldset { max-width: 100% !important; }
#hubspot-form .hs-button { font: 600 15px/1 var(--font-body); color: var(--color-ink); background: var(--color-accent); border: 0; border-radius: var(--radius-button); padding: 16px 28px; cursor: pointer; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--color-accent) 75%, transparent); }
#hubspot-form .hs-error-msg { color: var(--color-danger); font-size: 13px; }
/* Footer on phones. */
@media (max-width: 767px) { .footer__grid { text-align: left; } .footer__logo { margin-left: 0; } }

/* Model scene: captions on top, the CRM below. */
.e-order--model { height: 620vh; }
.e-order--model .e-order__sticky { display: grid; grid-template-rows: auto 1fr auto; align-items: stretch; padding-top: calc(var(--nav-h, 84px) + 8px); }
.e-order--model .e-order__canvas { position: relative; inset: auto; width: 100%; height: 100%; min-height: 0; }
.e-model__caps { position: relative; min-height: clamp(120px, 15vh, 170px); }
.e-model__cap { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.18s ease, transform 0.18s ease; padding: 0 inherit; }
.e-model__cap.is-on { opacity: 1; transform: none; transition: opacity 0.45s var(--ease-out) 0.18s, transform 0.5s var(--ease-out) 0.18s; }
.e-model__cap .e-h2 { color: var(--color-white); font-size: clamp(28px, 3.2vw, 48px); max-width: 24ch; }
.e-model__cap .e-h2 em { color: var(--color-accent); }
.e-model__cap p { margin-top: 10px; color: color-mix(in srgb, var(--color-white) 72%, transparent); max-width: 46em; font-size: clamp(15px, 1.2vw, 18px); }
.e-model__note { font-size: 12px; color: color-mix(in srgb, var(--color-white) 40%, transparent); padding-bottom: 14px; }
.x-static .e-order--model { height: auto; }
.x-static .e-order--model .e-order__sticky { position: relative; height: 820px; }
@media (max-width: 767px) {
  .e-order--model { height: 440vh; }
  .e-model__caps { min-height: 150px; }
  .e-model__cap .e-h2 { font-size: 26px; }
  .e-model__cap p { font-size: 14px; }
  .e-order--model .e-order__sticky { padding-top: 70px; }
  .x-static .e-order--model .e-order__sticky { height: 720px; }
}
.e-order--model .e-model__caps, .e-order--model .e-model__note { width: 100%; box-sizing: border-box; }

/* ---------- Phone test fixes (round 3) ---------- */
@media (max-width: 1023px) { .x-wrap, .footer__grid, .footer__bar { max-width: none; } }
@media (max-width: 767px) {
  /* Header flush to the top on phones: no gap for page text to show through. */
  .nav { top: 0; margin: 0 auto -72px; width: 100%; border-radius: 0 0 var(--radius-panel) var(--radius-panel); border-top: 0; }
  .nav.is-scrolled { top: 0; width: 100%; margin-bottom: -62px; }
  .e-section { padding: 72px 0; }
  .x-section { padding: 64px 0; }
  .x-draft { font-size: 12px; padding: 8px 0; }
  .x-draft .x-wrap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .x-crumbs a, .x-crumbs span { padding: 8px 0; display: inline-block; }
  .e-quote blockquote { font-size: 24px; }
}
@media (max-width: 380px) {
  .x-facts { grid-template-columns: 1fr; row-gap: 18px; }
  .x-facts > div, .x-facts > div + div { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .x-facts b { font-size: 30px; overflow-wrap: anywhere; }
  .btn { font-size: 14px; }
  .e-actions .btn, .x-page-hero .btn { white-space: normal; text-align: left; }
}
.x-facts > div { min-width: 0; }
/* Service page stacks: other layers step back, not vanish. */

@media (max-width: 767px) {
  .e-order { height: 150vh; }
  .e-order--model { height: 330vh; }
}
/* Scenes on phones: words above, picture below, never on top of each other. */
@media (max-width: 767px) {
  .e-order:not(.e-order--model) .e-order__sticky { display: grid; grid-template-rows: auto 1fr; align-items: stretch; padding-top: 74px; }
  .e-order:not(.e-order--model) .e-order__copy { order: -1; padding-bottom: 8px; }
  .e-order:not(.e-order--model) .e-order__copy::before { display: none; }
  .e-order:not(.e-order--model) .e-order__canvas { position: relative; inset: auto; height: 100%; min-height: 0; }
  .e-order .e-order__copy .e-h2 { font-size: 27px; }
  .e-order .e-order__copy .e-lede { font-size: 14px; line-height: 1.5; margin-top: 10px; }
}

/* Home rework (01/11): process list on a light ground
   and no stuck hover fill on touch screens (iOS keeps :hover after a tap). */
/* Home: the three ways in, as white cards across the full width under the photo and headline (11/11/2026). */
.e-steps { list-style: none; margin: clamp(56px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.e-steps li { padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius-card); background: var(--color-white); box-shadow: var(--shadow-card); }
.e-steps h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--color-ink); }
.e-steps p { margin: 0; font-size: var(--fs-body-md); color: var(--color-muted); }
.e-steps__actions { margin: 40px 0 0; }
@media (hover: none) {
  .e-link:hover { color: var(--color-accent-text); }
  .e-section--ink .e-link:hover, .x-close .e-link:hover { color: var(--color-white); }
}
/* Anything a link can jump to lands below the fixed nav, not under it. */
[id] { scroll-margin-top: 88px; }

/* Inspect: pull a layer out of the stack like a drawer. The layers above it
   lift to open a gap, the rest dim, and the panel says what the layer covers. */
.s3[data-inspect] .s3__labels { pointer-events: auto; }
.s3[data-inspect] .s3__layer { cursor: pointer; }
.s3__pick { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.s3__pick:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 4px; }
.s3__pick b, .s3__pick small { display: block; }
.s3__label { transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s; }
.s3[data-inspect] .s3__label:hover { border-color: var(--color-accent); }
.s3.is-inspect .s3__layer { opacity: 0.55; filter: saturate(0.5); }
.s3.is-inspect .s3__layer.is-out { opacity: 1; filter: none; --out: -15%; --lift: 6px; --grow: 1.07; }
.s3.is-inspect .s3__layer.is-above { --lift: -64px; }
.s3.is-inspect .s3__label { opacity: 0.4; }
.s3.is-inspect .s3__label.is-on { opacity: 1; border-color: var(--color-accent); transform: translate(-6px, -50%); }
.s3__panel { position: relative; min-height: 132px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--color-line); }
.s3__hint { margin: 0; font-size: 14px; color: var(--color-muted); }
.s3__hint--touch { display: none; }
@media (hover: none) { .s3__hint--mouse { display: none; } .s3__hint--touch { display: inline; } }
.s3.is-inspect .s3__hint { display: none; }
.s3__more { animation: s3-more 0.45s var(--ease-out) both; }
.s3__more p { margin: 0 0 8px; font-size: var(--fs-body-md); color: var(--color-muted); line-height: 1.5; max-width: 46ch; }
.s3__more .s3__more-name { font-family: var(--font-display); font-size: 24px; color: var(--color-ink); margin-bottom: 4px; }
@keyframes s3-more { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 767px) {
  .s3.is-inspect .s3__layer.is-out { --out: 0%; --grow: 1.05; }
  .s3.is-inspect .s3__layer.is-above { --lift: -44px; }
  .s3.is-inspect .s3__label.is-on { transform: none; }
  .s3__pick small { display: none; }
  .s3[data-inspect] .s3__label { padding: 6px 4px; }
  .s3__panel { text-align: left; }
}
/* Side labels line up with the layers, not with the stack plus the panel. */
@media (min-width: 768px) {
  .s3__panel { box-sizing: border-box; height: 176px; min-height: 0; }
  .s3[data-inspect] .s3__labels { bottom: 188px; }
}
@media (prefers-reduced-motion: reduce) { .s3__more { animation: none; } }

/* ==========================================================================
   Stack intro: the five layers arrive packed into one card, rise in, then
   explode apart with a little overshoot. A pulse of light then climbs the
   stack from data to people. Only with JS (html.x-js); otherwise open.
   ========================================================================== */
.s3--intro .s3__scene { transition: opacity 0.8s var(--ease-out), translate 1s var(--ease-out), scale 1s var(--ease-out); }
.x-js .s3--intro:not(.is-in) .s3__scene { opacity: 0; translate: 0 70px; scale: 0.9; }
.x-js .s3--intro:not(.is-open) .s3__layer { --gap: 2.6%; }

.s3--intro .s3__label { transition: opacity 0.6s var(--ease-out) calc(0.25s + var(--li) * 0.08s), translate 0.8s var(--ease-out) calc(0.25s + var(--li) * 0.08s), transform 0.6s var(--ease-out), border-color 0.3s; }
.x-js .s3--intro:not(.is-open) .s3__label { opacity: 0; translate: 16px 0; }
.s3--intro .s3__panel { transition: opacity 0.8s var(--ease-out) 0.7s; }
.x-js .s3--intro:not(.is-open) .s3__panel { opacity: 0; }
.s3--intro .s3__scene::after {
  content: ""; position: absolute; left: 4%; width: 60%; bottom: 0; height: 16%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--art-glow-blue) 55%, transparent), transparent 70%);
  filter: blur(18px); opacity: 0; transition: opacity 1.4s var(--ease-out) 0.4s; pointer-events: none;
}
.s3--intro.is-open .s3__scene::after { opacity: 1; }
.s3--intro.is-done .s3__plane::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--art-glow-ring) 90%, transparent), 0 0 36px 4px color-mix(in srgb, var(--art-glow-halo) 55%, transparent);
  opacity: 0; animation: s3-pulse 7s ease-in-out infinite; animation-delay: calc(var(--i) * 0.2s);
}
@keyframes s3-pulse { 0%, 13%, 100% { opacity: 0; } 5% { opacity: 1; } }
@media (max-width: 767px) { .s3--intro .s3__scene::after { left: 15%; width: 70%; } }
@media (prefers-reduced-motion: reduce) {
  .x-js .s3--intro .s3__scene, .x-js .s3--intro .s3__layer, .x-js .s3--intro .s3__label, .x-js .s3--intro .s3__panel { transition: none; }
  .s3--intro.is-done .s3__plane::before { animation: none; }
}
/* The hero stack opens wider than the others; labels follow the spacing. */
@media (min-width: 768px) {
  .s3--intro { --lgap: 17.2%; }
  .s3--intro.is-open .s3__layer, .x-js .s3--intro.is-open .s3__layer { --gap: 44%; }
}

/* ==========================================================================
   Tiles (shared .x-art cover): softer tinted shadows instead of the white
   ring, a light from the top left, a floor shadow that shrinks as the layer
   lifts on hover, and a slow idle float. Same family on every page.
   ========================================================================== */
.x-art {
  isolation: isolate;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 85%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-ink) 7%, transparent), 0 30px 60px -34px color-mix(in srgb, var(--art-ink-haze) 38%, transparent);
  transition: box-shadow 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.x-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 85% at 18% 0%, color-mix(in srgb, var(--color-white) 70%, transparent), transparent 55%), radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--color-accent) 14%, transparent), transparent 60%);
}
.x-art--ink::before { background: radial-gradient(120% 85% at 18% 0%, color-mix(in srgb, var(--art-ink-sheen) 22%, transparent), transparent 55%), radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 60%); }

.x-art::after {
  content: ""; position: absolute; left: 50%; top: 64%; width: 44%; height: 13%; z-index: -1; pointer-events: none;
  translate: -50% 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--art-ink-haze) 30%, transparent), transparent 70%);
  filter: blur(6px); transition: scale 0.9s var(--ease-out), opacity 0.9s var(--ease-out);
}
.x-art--ink::after { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--color-shadow) 50%, transparent), transparent 70%); }
.x-art__plane { animation: x-art-bob 7s ease-in-out infinite alternate; }
@keyframes x-art-bob { from { translate: 0 4px; } to { translate: 0 -6px; } }
.e-tile:hover .x-art, .e-tile:focus-visible .x-art { transform: translateY(-4px); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 90%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-accent) 45%, transparent), 0 44px 70px -34px color-mix(in srgb, var(--art-ink-haze) 45%, transparent); }
.e-tile:focus-visible .x-art { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 90%, transparent), 0 0 0 3px var(--color-accent), 0 44px 70px -34px color-mix(in srgb, var(--art-ink-haze) 45%, transparent); }
.e-tile:hover .x-art::after, .e-tile:focus-visible .x-art::after { scale: 0.75; opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .x-art__plane { animation: none; } .e-tile:hover .x-art { transform: none; } }

/* ==========================================================================
   You are here. The current section gets a tinted pill in the nav, and on
   service and case pages the page's own layer is pulled out of the stack
   with a gold edge while the rest step back.
   ========================================================================== */
.nav__link.is-active { color: var(--color-ink); background: color-mix(in srgb, var(--color-ink) 6%, transparent); font-weight: var(--fw-strong); }

.nav.is-dark .nav__link.is-active { background: color-mix(in srgb, var(--color-white) 14%, transparent); color: var(--color-white); }
.s3--focus .s3__layer { opacity: 0.32; filter: saturate(0.4); }
.s3--focus .s3__label { opacity: 0.35; }
.s3--focus-1 .s3__layer--1, .s3--focus-2 .s3__layer--2, .s3--focus-3 .s3__layer--3, .s3--focus-4 .s3__layer--4, .s3--focus-5 .s3__layer--5 { opacity: 1; filter: none; --out: -10%; --grow: 1.06; }
.s3--focus-1 .s3__layer:not(.s3__layer--1),
.s3--focus-2 :is(.s3__layer--3, .s3__layer--4, .s3__layer--5),
.s3--focus-3 :is(.s3__layer--4, .s3__layer--5),
.s3--focus-4 .s3__layer--5 { --lift: -36px; }
/* Their labels lift with them, so each label stays level with its layer. */
.s3--focus-1 .s3__label:not(.s3__label--1),
.s3--focus-2 :is(.s3__label--3, .s3__label--4, .s3__label--5),
.s3--focus-3 :is(.s3__label--4, .s3__label--5),
.s3--focus-4 .s3__label--5 { margin-top: -36px; }

/* Brand v1: the highlighted layer is marked by its Ember slab alone, as in the
   hero. No ring or glow. */
:is(.s3--focus-1 .s3__layer--1, .s3--focus-2 .s3__layer--2, .s3--focus-3 .s3__layer--3, .s3--focus-4 .s3__layer--4, .s3--focus-5 .s3__layer--5) .s3__plane::before { content: none; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-accent) 95%, transparent), 0 0 44px 2px color-mix(in srgb, var(--color-accent) 40%, transparent); }
.s3--focus-1 .s3__label--1, .s3--focus-2 .s3__label--2, .s3--focus-3 .s3__label--3, .s3--focus-4 .s3__label--4, .s3--focus-5 .s3__label--5 { border-color: var(--color-accent); opacity: 1; border-left-width: 3px; translate: -8px 0; }
:is(.s3--focus-1 .s3__label--1, .s3--focus-2 .s3__label--2, .s3--focus-3 .s3__label--3, .s3--focus-4 .s3__label--4, .s3--focus-5 .s3__label--5) b { color: var(--color-accent-text); }
@media (max-width: 767px) {
  .s3--focus-1 .s3__layer--1, .s3--focus-2 .s3__layer--2, .s3--focus-3 .s3__layer--3, .s3--focus-4 .s3__layer--4, .s3--focus-5 .s3__layer--5 { --out: 0%; }
  .s3--focus .s3__label { translate: none; }
}

/* Background motion stops while its section is off screen (site.js). */
.x-paused, .x-paused *, .x-paused::before, .x-paused::after { animation-play-state: paused !important; }

/* Diagnose fits one laptop screen, answer included: tighter type and chips,
   and a stack sized to the screen height. */
@media (min-width: 1024px) {
  .e-diag { padding-block: clamp(48px, 7svh, 96px); }
  .e-diag .e-h2 { font-size: clamp(40px, 4.2vw, 62px); max-width: none; }
  .e-diag .e-lede { margin-top: 14px; font-size: clamp(17px, 1.2vw, 19px); max-width: 40em; }
  .e-diag__options { margin-top: 26px; gap: 8px; }
  .e-diag__opt { padding: 10px 18px; font-size: 15px; }
  .e-diag__result { margin-top: 22px; min-height: 104px; }
  .e-diag__answer { font-size: clamp(19px, 1.5vw, 24px); }
  .e-diag .e-actions { margin: 16px 0 0; }
  .e-diag__stack .s3 { max-width: min(460px, calc((100svh - 150px) / 1.28)); margin-left: auto; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .e-diag { padding-block: 36px; }
  .e-diag .e-h2 { font-size: clamp(36px, 3.6vw, 52px); }
  .e-diag__options { margin-top: 20px; }
  .e-diag__opt { padding: 9px 16px; font-size: 14px; }
}

/* ==========================================================================
   Hero, take two. Fits one screen: the headline is capped by screen height,
   the stack is sized to the height left under the nav (with room for the
   hover lift), and all words live on the left on solid ink. Beside the
   stack only single words, which rise with the layers and fade back.
   ========================================================================== */
.e-hero--feature { min-height: 100svh; box-sizing: border-box; display: grid; align-content: center; padding: calc(var(--nav-h, 84px) + 16px) 0 28px; }
.e-hero--feature .e-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 4vw, 72px); }

.e-hero--feature .e-display em { display: block; }
.e-hero .e-actions { margin-bottom: 0; margin: clamp(22px, 4svh, 40px) 0 0; }
.e-hero__stack { padding: 40px 0 30px; }
.e-hero__stack .s3 { max-width: min(470px, calc((100svh - 400px) * 1.21)); margin: 0 auto; } /* 520 felt enormous on a 1920 screen (Peter, 11/11/2026) */
.e-hero__stack .s3[data-inspect] .s3__labels { bottom: 0; }

/* The one-line summary shows only under the label being inspected, hung
   below the word so the word itself never moves. */
.e-hero__stack .s3__pick { position: relative; }
.e-hero__stack .s3__label small { position: absolute; top: 100%; left: 0; width: 12em; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--color-muted); opacity: 0; transform: translateY(-4px); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); pointer-events: none; }
.e-hero__stack .s3__label.is-on small { opacity: 1; transform: none; }
.e-hero__stack .s3__label b, .e-hero__stack .s3__pick b { font-size: clamp(18px, 1.35vw, 24px); color: var(--color-grey); }
/* The words: hidden until their layer settles, lit Ember as they arrive,
   then faint. Hover, tap or keyboard brings one back to full. */
.x-js .e-hero__stack .s3--intro .s3__label { opacity: 0; transform: translate(10px, -50%); transition: opacity 0.9s var(--ease-out), transform 0.7s var(--ease-out); }
.x-js .e-hero__stack .s3--intro .s3__label.is-lit { opacity: 1; transform: translate(0, -50%); }
.x-js .e-hero__stack .s3--intro .s3__label.is-lit b { color: var(--color-accent); }
.x-js .e-hero__stack .s3--intro .s3__label.is-dim { opacity: 0.24; transform: translate(0, -50%); }
.x-js .e-hero__stack .s3--intro .s3__label.is-soft { opacity: 0.6; }
.x-js .e-hero__stack .s3--intro.has-hot .s3__label { opacity: 0.24; }
.x-js .e-hero__stack .s3--intro .s3__label.is-on { opacity: 1; transform: translate(0, -50%); }
.x-js .e-hero__stack .s3--intro .s3__label.is-on b { color: var(--color-accent); }
.x-js .e-hero__stack .s3--intro .s3__pick:focus-visible { opacity: 1; }
/* The detail line under the buttons. */
:is(.e-hero__copy, .x-page-hero__copy) .s3__panel { margin-top: clamp(14px, 2.4svh, 24px); padding-top: 14px; border-top: 1px solid var(--color-line); height: auto; min-height: 58px; max-width: 34em; font-size: clamp(15px, min(1.15vw, 2.1svh), 18px); line-height: 1.5; color: color-mix(in srgb, var(--color-white) 78%, transparent); }
:is(.e-hero__copy, .x-page-hero__copy) .s3__hint { margin: 0; font-size: 14px; color: var(--color-muted); }
:is(.e-hero__copy, .x-page-hero__copy) .s3__more p { display: inline; margin: 0; color: var(--color-text); font-size: inherit; }
:is(.e-hero__copy, .x-page-hero__copy) .s3__more .s3__more-name { font-family: var(--font-body); font-size: inherit; font-weight: 600; color: var(--color-ink); margin-right: 6px; }
:is(.e-hero__copy, .x-page-hero__copy) .s3__more .s3__more-name::after { content: "."; }
:is(.e-hero__copy, .x-page-hero__copy) .s3__more .e-link { display: table; margin-top: 10px; white-space: nowrap; color: var(--color-ink); }
:is(.e-hero__copy, .x-page-hero__copy) .s3__more .e-link:hover { color: var(--color-ink); }
@media (prefers-reduced-motion: reduce) {
  .x-js .e-hero__stack .s3--intro .s3__label { opacity: 1; transform: translate(0, -50%); transition: none; }
}
/* Phones: headline, buttons, stack with its row of words, then the detail. */
@media (max-width: 1023px) {
  .e-hero--feature { min-height: 0; display: block; padding-top: calc(var(--nav-h, 84px) + 48px); padding-bottom: 48px; }
  .e-hero--feature .e-hero__grid { grid-template-columns: 1fr; display: grid; }
  .e-hero__copy { display: contents; }
  .e-hero__copy > .e-display { order: 0; }
  .e-hero__copy > .e-actions { order: 1; margin-bottom: 0; }
  .e-hero__stack { order: 2; padding: 8px 0 0; }
  .e-hero__copy > .s3__panel { order: 3; margin-top: 8px; }
  .x-js .e-hero__stack .s3--intro .s3__label, .x-js .e-hero__stack .s3--intro.has-hot .s3__label { opacity: 1; transform: none; }
  .x-js .e-hero__stack .s3--intro .s3__label.is-on b { color: var(--color-accent); }
  .e-hero__stack .s3__label b, .e-hero__stack .s3__pick b { text-shadow: none; }
}
@media (min-width: 1024px) and (max-height: 800px) { .e-hero__stack { padding: 24px 0 12px; } .e-hero--feature { padding-top: calc(var(--nav-h, 84px) + 8px); padding-bottom: 16px; } }
.s3__panel.is-on .s3__hint { display: none; }
@media (max-width: 1023px) {
  /* The words sit on one line under the stack, wider than the stack itself. */
  .e-hero .e-hero__stack .s3__labels { position: relative; left: 50%; right: auto; translate: -50% 0; width: max-content; max-width: calc(100vw - 32px); display: flex; flex-wrap: nowrap; justify-content: center; gap: clamp(10px, 3vw, 22px); margin-top: 12px; }
  .e-hero__stack .s3__label { position: static; padding: 0; transform: none !important; }
  .e-hero__stack .s3__label b { font-size: clamp(14px, 3.6vw, 20px); white-space: nowrap; }
  /* No hover here to bring the words back, so they stay readable after the intro. */
  .x-js .e-hero__stack .s3--intro .s3__label.is-dim { opacity: 1; }
  /* Read in build order, Data to AI, as on phones. */
  .e-hero__stack .s3__label--1 { order: 1; } .e-hero__stack .s3__label--2 { order: 2; } .e-hero__stack .s3__label--3 { order: 3; } .e-hero__stack .s3__label--4 { order: 4; } .e-hero__stack .s3__label--5 { order: 5; }
}
/* Tablets in one column: the stack at a size that leaves the headline and
   buttons on the first screen. */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet hero, as on phones but roomier: the headline across the top, then
     the buttons with the layer detail under them on the left and the stack on
     the right. Its row of words is left out; tapping a layer names it in the
     detail panel. */
  .e-hero--feature .e-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); column-gap: clamp(24px, 5vw, 56px); align-items: center; }
  .e-hero__copy > .e-display { grid-column: 1 / -1; grid-row: 1; }
  .e-hero__copy > .e-actions { grid-column: 1; grid-row: 2; align-self: end; }
  .e-hero__copy > .s3__panel { grid-column: 1; grid-row: 3; align-self: start; }
  .e-hero__stack { grid-column: 2; grid-row: 2 / span 2; padding: 0; }
  .e-hero__stack .s3 { max-width: 300px; margin: 0 auto; }
  .e-hero .e-hero__stack .s3__labels { display: none; }
  /* Page headers go to one column here, so their stack would sit full size
     under the text; it is decoration, hidden as on phones. */
  .x-page-hero .s3, .x-page-hero .s3__panel, .x-page-hero__grid > :has(> .s3) { display: none; }
}
/* Tall portrait screens (iPad and similar): the hero hugs its content rather
   than filling the screen height and centring, which left a gap above the
   headline. */
@media (min-width: 1024px) and (orientation: portrait) {
  .e-hero--feature { min-height: 0; align-content: start; padding-bottom: 56px; }
}

/* Hero polish (03/11). Words never break mid-word; the detail line under the
   buttons keeps one fixed height so the headline never moves on hover; and
   the opening: the packed card rises, pivots to catch the eye, then turns a
   quarter in its own plane while it explodes apart. */
.e-hero__stack .s3__label b { white-space: nowrap; }
.e-hero__stack .s3__labels { width: auto; left: calc(77% + 10px); right: auto; }
/* All entries share one grid cell, so the line is always as tall as the
   longest one at any width: nothing below it moves and nothing is clipped. */
:is(.e-hero__copy, .x-page-hero__copy) .s3__panel { display: grid; height: auto; min-height: 0; }
:is(.e-hero__copy, .x-page-hero__copy) .s3__panel > * { grid-area: 1 / 1; }
:is(.e-hero__copy, .x-page-hero__copy) .s3__panel .s3__more[hidden] { display: block; visibility: hidden; }
:is(.e-hero__copy, .x-page-hero__copy) .s3__panel.is-on .s3__hint { display: block; visibility: hidden; }
:is(.e-hero__copy, .x-page-hero__copy) .s3__more .e-link { display: table; padding: 0; }
.s3--intro.is-open:not(.is-done) .s3__layer { transition: transform 1.4s cubic-bezier(0.2, 1.15, 0.35, 1) calc(var(--i) * 45ms), opacity 0.7s var(--ease-out); }
/* Before it opens, the closed stack turns a little left, then right, and
   settles, flat on its own plane. It starts square on: turned a quarter, or
   tipped towards the viewer, the tiles' side edges draw the wrong way. */
@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.s3--intro.is-pivot:not(.is-open) .s3__layer { animation: s3-turn 1.2s cubic-bezier(0.45, 0, 0.25, 1) both; }
@keyframes s3-turn {
  0% { --spin: 0deg; }
  30% { --spin: -16deg; }
  62% { --spin: 11deg; }
  84% { --spin: -4deg; }
  100% { --spin: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .s3--intro.is-pivot .s3__layer { animation: none; }
}
.e-hero__stack .s3__label { border: 0; padding-left: 16px; right: auto; width: max-content; }
@media (max-width: 1023px) { .e-hero__stack .s3__label { width: auto; } }

/* The nav keeps its size when the page scrolls. The old style shrank it at
   32px, so a trackpad nudge while hovering the hero made everything jump. */
@media (min-width: 768px) {
  .nav.is-scrolled { top: 12px; width: min(1320px, calc(100% - 32px)); height: 72px; margin-bottom: -84px; }
}

/* ==========================================================================
   Brand v1 (November 2026)
   --------------------------------------------------------------------------
   Applies the PJC brand pack (~/Developer/pjc/brand/peter-jones-brand,
   HANDOVER-WEBSITE.md and the 16-page guidelines). Colour, type, radius and
   shadow values arrive through css/tokens.css; this layer holds the rules a
   token cannot carry. Clean, white, Apple-quiet, with one hot spark:
   - Ghost White grounds, Ink type and dark panels, Ember for one accent.
   - Inter only, Medium headlines; the second line of a headline is Grey,
     never italic, never a second typeface.
   - Pill buttons: Ember primary with white text, Ink secondary, outline
     tertiary. White cards on Ghost White, 22px radius, blue-grey shadow.
   - Reeded-glass texture (--pjc-texture) on one panel per page only: the
     closing call to action.
   ========================================================================== */

/* ---------- Type ---------- */
html, body { background: var(--color-canvas); }
body { color: var(--color-text); font-family: var(--font-body); line-height: var(--lh-body); }
h1, h2, h3, h4, h5, h6, .e-display, .e-h2, .e-h3 { font-family: var(--font-display); font-weight: var(--fw-display); color: var(--color-ink); font-style: normal; }
h1, .e-display { letter-spacing: var(--tr-h1); }
h2, .e-h2 { letter-spacing: var(--tr-h2); }
h3, .e-h3 { letter-spacing: var(--tr-h3); }
/* No italics anywhere. Emphasis inside a headline is the grey second line;
   inside body copy it is a step of weight. */
em, i, cite, dfn, address, blockquote { font-style: normal; }
:is(h1, h2, .e-display, .e-h2, .x-page-hero h1, .x-hero h1, .x-close h2) em { color: var(--color-grey); font-style: normal; }
:is(.e-section--ink, .x-section--ink, .e-order, .x-close, .footer) :is(h1, h2, .e-display, .e-h2) em { color: var(--color-grey-on-ink); }
:is(p, li, td, blockquote) em { font-weight: var(--fw-medium); color: inherit; }
/* Numerals that used to sit in a mono face stay aligned with tabular figures. */
.x-facts b, .e-num, [class*="__num"], [class*="__step"], .s3__label b { font-variant-numeric: tabular-nums; }
::selection { background: color-mix(in srgb, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline-color: var(--color-accent); }

/* ---------- Buttons: pills, no icons ---------- */
.btn,
.btn--primary, .btn--primary:hover,
.btn--outline, .btn--outline:hover,
.btn--secondary, .btn--secondary:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: var(--radius-button);
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  line-height: 1.2;
  box-shadow: none;
  transform: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn__icon, .btn--primary::after { display: none !important; }
/* Primary: Ember with white text (Peter's choice; labels kept at 16px). */
.btn--primary { background: var(--color-accent); color: var(--color-white); border: 1.5px solid var(--color-accent); }
.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-white); }
/* Secondary: Ink. */
.btn--outline, .btn--secondary { background: var(--color-ink); color: var(--color-white); border: 1.5px solid var(--color-ink); }
.btn--outline:hover, .btn--secondary:hover { background: var(--color-ink-soft); border-color: var(--color-ink-soft); color: var(--color-white); }
/* Tertiary: outline. The nav's Book a Call is the page's quiet repeat of the
   primary action, so it takes the outline style and leaves Ember to the page. */
.nav__cta, .nav__cta:hover { background: transparent; color: var(--color-ink); border: 1.5px solid var(--color-line-strong); padding: 10px 20px; font-size: 15px; }
.nav__cta:hover { border-color: var(--color-ink); }
.nav.is-dark .nav__cta, .nav.is-dark .nav__cta:hover { background: transparent; color: var(--color-white); border-color: color-mix(in srgb, var(--color-white) 40%, transparent); }
/* Text links: Ink with an Ember underline. */
.e-section--ink .e-link, .x-section--ink .e-link, .e-order .e-link, .x-close .e-link { color: var(--color-white); }
.e-section--ink .e-link:hover, .x-section--ink .e-link:hover, .e-order .e-link:hover, .x-close .e-link:hover { color: var(--color-white); text-decoration-color: var(--color-white); }

/* ---------- Grounds and sections ---------- */
.e-section, .e-section--paper, .e-section--canvas, .x-section--paper, .x-section--canvas, .x-section--white,
.x-page-hero, .x-hero, .e-hero, .e-clients { background: var(--color-canvas); }
.e-clients { border-color: var(--color-line); }
/* Dark sections are flat Ink panels: no glows, no gradients. */
.e-section--ink, .x-section--ink, .e-order { background: var(--color-ink); color: var(--color-text-on-ink); }
.e-section--ink :is(h2, h3, h4, .e-h2, .e-h3), .x-section--ink :is(h2, h3, h4), .e-order :is(h2, h3, .e-h2) { color: var(--color-white); }
.e-order { background-image: none; }
.x-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: var(--color-accent); z-index: 2000; pointer-events: none; }

/* ---------- Cards: white on Ghost White, 22px, blue-grey shadow ---------- */
.e-diag__opt {
  background: var(--color-white);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.x-case__go { font-weight: var(--fw-strong); font-size: var(--fs-body-sm); color: var(--color-accent-text); display: inline-block; transition: transform 0.35s var(--ease-out); }
/* Diagnosis options read as quiet pills on the Ink panel. */
.e-diag__opt { background: color-mix(in srgb, var(--color-white) 6%, transparent); box-shadow: none; border: 1px solid color-mix(in srgb, var(--color-white) 14%, transparent); color: var(--color-white); border-radius: var(--radius-button); }
.e-diag__opt[aria-pressed="true"] { background: var(--color-white); border-color: var(--color-white); color: var(--color-ink); }
/* Asides stay editorial: a hairline, not a card. */
.x-aside__box, .x-aside__box--ink { background: transparent; border: 0; border-top: 2px solid var(--color-ink); border-radius: 0; box-shadow: none; padding: 18px 0 8px; color: var(--color-text); border-top-color: var(--color-ink); }

/* ---------- Photography: black and white, cool ---------- */
.e-hero__portrait img, .e-person__photo img, .x-portrait img { filter: grayscale(1) contrast(1.04); }
/* The partner badge under the portrait keeps its colours. */
.e-hero__portrait figcaption img { filter: none; }
.e-hero__portrait picture img, .e-person__photo img { border-radius: var(--radius-media); }

/* ---------- Navigation ---------- */
.nav { transition: width 0.35s ease, height 0.35s ease, margin-bottom 0.35s ease, top 0.35s ease, box-shadow 0.35s ease, transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s; background: color-mix(in srgb, var(--color-nav) 86%, transparent); border-color: var(--color-line); box-shadow: var(--shadow-card); border-radius: var(--radius-panel); }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.x-logo { display: block; height: 34px; width: auto; }
.nav__mobile-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 34px; color: var(--color-white); background: color-mix(in srgb, var(--color-white) 8%, transparent); border: 0; border-radius: var(--radius-card); cursor: pointer; font-family: var(--font-body); }
.x-logo--dark { display: none; }
.nav.is-dark .x-logo--light { display: none; }
.nav.is-dark .x-logo--dark { display: block; }
.nav__link, .x-mega__trigger { color: var(--color-ink); font-weight: var(--fw-medium); }
.nav__link.is-active::after { content: ""; position: absolute; left: 50%; right: auto; bottom: -1px; height: 5px; background: var(--color-accent); border-radius: 50%; width: 5px; translate: -50% 0; }
.nav.is-dark { background: color-mix(in srgb, var(--color-ink) 88%, transparent); border-color: color-mix(in srgb, var(--color-white) 10%, transparent); }
.x-mega__grid { background: var(--color-white); border: 0; border-radius: var(--radius-panel-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 767px) { .x-logo { height: 28px; } }

/* ---------- Footer: an Ink panel ---------- */
.footer { background: var(--color-footer); }
.footer::before { display: none; }
.footer__logo { width: 168px; height: auto; }
.footer__col-label { font-family: var(--font-body); font-size: var(--fs-label); font-weight: var(--fw-medium); letter-spacing: var(--tr-label-tight); text-transform: uppercase; color: var(--color-grey-on-ink); }
.footer__link, .footer__tagline, .footer__bar { color: var(--color-text-on-ink); }
.footer__link:hover { color: var(--color-white); }

/* ---------- Home hero: Ghost White does the work ---------- */
.e-hero--feature { background: var(--color-canvas); color: var(--color-text); }
.e-hero--feature .e-display { font-size: clamp(44px, min(4.9vw, 9.5svh), 80px); max-width: none; color: var(--color-ink); }
.e-hero--feature .e-lede, .e-hero--feature .s3__hint, .e-hero--feature .s3__more p { color: var(--color-text); }
.e-hero--feature .s3__panel { border-top-color: var(--color-line); }

/* ---------- The layer stack: the brand's icon tiles ----------
   White slabs with cool grey sides, Integrate in Ink, and one slab in Ember:
   AI by default, or whichever layer is being explained (focused on a service
   page, picked in the hero, or lit by the diagnosis). Labels grey, the active
   one Ember. No glows behind it. */
.s3__plane {
  --g-fg: var(--color-ink); --g-bg: var(--color-white); --g-soft: var(--color-text); --g-spark: var(--color-accent);
  background: linear-gradient(180deg, var(--art-slab-top), var(--color-white));
  border: 0;
  border-radius: 14%;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    inset 0 0 0 1.5px var(--color-white),
    var(--drop-x) var(--drop-y) 60px -30px color-mix(in srgb, var(--color-shadow) 30%, transparent);
}
.s3__layer--4 .s3__plane::after { display: none; }
.s3__layer--2 .s3__plane {
  --g-fg: var(--color-white); --g-bg: var(--color-ink); --g-soft: color-mix(in srgb, var(--color-white) 55%, transparent); --g-spark: var(--color-accent);
  background: linear-gradient(180deg, var(--art-ink-top), var(--art-ink-top-end));
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--color-white) 12%, transparent),
    var(--drop-x) var(--drop-y) 60px -30px color-mix(in srgb, var(--color-shadow) 40%, transparent);
}
.s3:not(.s3--focus):not(.has-hot):not(.is-focused) .s3__layer--5 .s3__plane,
.s3.has-hot .s3__layer.is-out .s3__plane,
.s3.is-focused .s3__layer.is-on .s3__plane,
.s3--focus-1 .s3__layer--1 .s3__plane, .s3--focus-2 .s3__layer--2 .s3__plane, .s3--focus-3 .s3__layer--3 .s3__plane,
.s3--focus-4 .s3__layer--4 .s3__plane, .s3--focus-5 .s3__layer--5 .s3__plane,
.x-art--accent .x-art__plane .s3__plane {
  --g-fg: var(--color-white); --g-bg: var(--color-accent); --g-soft: color-mix(in srgb, var(--color-white) 60%, transparent); --g-spark: var(--color-ink);
  background: var(--color-accent);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--color-white) 18%, transparent),
    var(--drop-x) var(--drop-y) 60px -30px color-mix(in srgb, var(--color-shadow) 34%, transparent);
}
.s3__glyph { width: 56%; height: 56%; }
.s3__label { border-left-color: transparent; }
.s3__label b { font-family: var(--font-body); font-weight: var(--fw-medium); color: var(--color-grey); letter-spacing: -0.01em; }
.s3__label small { color: var(--color-muted); }
.s3:not(.s3--focus):not(.has-hot):not(.is-focused) .s3__label--5 b,
.s3.has-hot .s3__label.is-on b, .s3.is-focused .s3__label.is-on b,
.s3--focus-1 .s3__label--1 b, .s3--focus-2 .s3__label--2 b, .s3--focus-3 .s3__label--3 b, .s3--focus-4 .s3__label--4 b, .s3--focus-5 .s3__label--5 b { color: var(--color-accent-text-large); }
.e-section--ink .s3__label b, .x-section--ink .s3__label b { color: var(--color-grey-on-ink); }
.e-section--ink .s3__label small, .x-section--ink .s3__label small { color: color-mix(in srgb, var(--color-white) 50%, transparent); }
.e-section--ink .s3.is-focused .s3__label.is-on b { color: var(--color-accent-on-ink); }
/* Focused stacks fade the rest rather than tint them. */
.s3--focus .s3__layer, .s3--focus .s3__label { opacity: 0.35; }
.s3--focus-1 :is(.s3__layer--1, .s3__label--1), .s3--focus-2 :is(.s3__layer--2, .s3__label--2), .s3--focus-3 :is(.s3__layer--3, .s3__label--3),
.s3--focus-4 :is(.s3__layer--4, .s3__label--4), .s3--focus-5 :is(.s3__layer--5, .s3__label--5) { opacity: 1; }

/* ---------- Cover art: flat grounds, one slab ---------- */
.x-art { box-shadow: var(--shadow-card); border-radius: var(--radius-card); }
.x-art--paper { background: var(--color-white); }
.x-art--canvas { background: var(--color-canvas); }
.x-art--ink { background: var(--color-ink); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 12%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-ink) 20%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--color-ink) 55%, transparent); }
.x-art--accent { background: var(--color-white); }
.x-art::before, .x-art::after { display: none; }
.e-tile:hover .x-art, .e-tile:focus-visible .x-art { box-shadow: var(--shadow-lg); }
.e-tile:focus-visible .x-art { outline: 3px solid var(--color-accent); outline-offset: 4px; }

/* ---------- Closing call to action: the page's one textured panel ---------- */
.x-close {
  /* Never behind body text: the copy sits on flat Ink, the reeds and the glow
     show to one side of it. */
  background: linear-gradient(90deg, var(--pjc-ink) 0%, var(--pjc-ink) 40%, transparent 64%), var(--pjc-texture);
  color: var(--color-text-on-ink);
  margin: clamp(16px, 3vw, 40px);
  border-radius: var(--radius-media);
  padding: clamp(64px, 9vw, 128px) 0;
}
.x-close::after { display: none; }
.x-close h2 { color: var(--color-white); font-weight: var(--fw-display); letter-spacing: var(--tr-h1); }
.x-close h2 em { color: var(--color-grey-on-ink); }
.x-close .lead { color: var(--color-text-on-ink); }
/* On the texture the primary action is a white pill (guidelines, page 11). */
.x-close .btn--primary, .x-close .btn--primary:hover { background: var(--color-white); border-color: var(--color-white); color: var(--color-ink); }
.x-close .btn--primary:hover { background: var(--pjc-mist); border-color: var(--pjc-mist); }

/* ---------- Draft banner ---------- */
.x-draft { background: var(--color-notice-bg); color: var(--color-notice-text); border-bottom-color: var(--color-line-strong); }
/* Mobile menu: Book a Call is the menu's one primary action. */
.nav__mobile-overlay a.btn, .nav__mobile-overlay a.btn:hover { display: inline-flex; padding: 15px 28px; font-family: var(--font-body); font-size: 16px; font-weight: var(--fw-medium); letter-spacing: 0; background: var(--color-accent); border: 1.5px solid var(--color-accent); color: var(--color-white); }
.nav__mobile-overlay a { font-weight: var(--fw-medium); }

/* ---------- Testimonial: Ember quote mark, client icon beside the name ---------- */
.e-quote { margin: 0 0 clamp(64px, 8vw, 120px); max-width: 1100px; position: relative; margin-bottom: clamp(56px, 6vw, 88px); }
.e-quote blockquote { margin: 0; }
/* A long testimonial: the lead line at quote size, the rest at reading size. (Peter, 13/11/2026) */
.e-quote blockquote p { margin: 0; }
.e-quote blockquote .e-quote__more { margin-top: clamp(16px, 1.6vw, 24px); max-width: 40em; font-family: var(--font-body); font-size: var(--fs-lead); line-height: 1.55; letter-spacing: 0; color: var(--color-muted); }
.e-quote blockquote::before { content: ""; display: block; width: clamp(40px, 3.4vw, 56px); aspect-ratio: 72 / 56; margin-bottom: clamp(20px, 2vw, 28px); background: var(--color-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56'%3E%3Cpath stroke='%23000' stroke-width='4' stroke-linejoin='round' d='M4 52V32C4 16 12 6 28 3v10c-8 2-12 8-12 15h12v24zM42 52V32c0-16 8-26 24-29v10c-8 2-12 8-12 15h12v24z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56'%3E%3Cpath stroke='%23000' stroke-width='4' stroke-linejoin='round' d='M4 52V32C4 16 12 6 28 3v10c-8 2-12 8-12 15h12v24zM42 52V32c0-16 8-26 24-29v10c-8 2-12 8-12 15h12v24z'/%3E%3C/svg%3E") no-repeat center / contain; }
.e-quote figcaption { margin-top: 32px; font-size: 14px; color: var(--color-muted); display: flex; align-items: center; gap: 14px; line-height: 1.4; }
.e-quote figcaption b { display: block; font-size: 16px; font-weight: 600; color: var(--color-ink); }
.e-quote__logo { width: 52px; height: 52px; padding: 10px; box-sizing: border-box; border-radius: 50%; background: var(--color-white); box-shadow: var(--shadow-card); object-fit: contain; }

/* ---------- Section rhythm ----------
   Every ground is now Ghost White, so two plain sections side by side used to
   stack both paddings into one long empty gap. Keep one padding between them. */
.e-section { padding: clamp(72px, 8vw, 120px) 0; }
:is(.e-section, .x-section):not(.e-section--ink, .x-section--ink) + :is(.e-section, .x-section):not(.e-section--ink, .x-section--ink) { padding-top: 0; }

/* ---------- Footer credential: badge large enough to read, named beside it ---------- */
.x-footer__cred { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--color-white); }
.x-footer__cred .x-footer__badge { width: 112px; height: auto; margin: 0; }

/* ---------- App carousel: real screens in white slabs, facing the visitor ----------
   The slab has the same thickness and blue-grey underside as the layer tiles,
   seen straight on. Screens of any shape sit centred in one fixed frame, so
   every slide is the same size. */
.x-apps { margin: 32px 0 48px; max-width: 760px; }
.x-apps__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 2px 30px; scrollbar-width: none; overscroll-behavior-x: contain; }
.x-apps__track::-webkit-scrollbar { display: none; }
.x-apps__track:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: var(--radius-card); }
.x-apps__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.x-apps__tile { padding: clamp(10px, 1.6vw, 18px); border-radius: var(--radius-card); background: var(--color-white); box-shadow: 0 1px 0 var(--art-slab-edge, var(--color-white)) inset, 0 10px 0 -1px var(--art-slab-side), 0 22px 30px -8px color-mix(in srgb, var(--color-shadow) 22%, transparent), 0 2px 4px color-mix(in srgb, var(--color-shadow) 6%, transparent); }
.x-apps__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--radius-card) - 10px); background: var(--color-paper); }
.x-apps__screen img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--color-shadow) 10%, transparent)); }
.x-apps figcaption { display: grid; gap: 4px; margin-top: 22px; max-width: 46em; }
.x-apps figcaption b { font-weight: 500; font-size: 20px; color: var(--color-ink); letter-spacing: -0.01em; }
.x-apps figcaption span { color: var(--color-text); line-height: 1.5; }
.x-apps figcaption small { font-size: 14px; color: var(--color-muted); }
.x-apps__nav { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.x-apps__nav[hidden] { display: none; }
.x-apps__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-line-strong); border-radius: 50%; background: var(--color-white); color: var(--color-ink); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.x-apps__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.x-apps__btn:hover { border-color: var(--color-ink); }
.x-apps__btn:disabled { opacity: 0.35; cursor: default; border-color: var(--color-line-strong); }
.x-apps__btn:focus-visible, .x-apps__dot:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.x-apps__dots { display: flex; flex-wrap: wrap; gap: 4px; }
.x-apps__dot { width: 32px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.x-apps__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-line-strong); transition: background 0.2s, transform 0.2s; }
.x-apps__dot[aria-current="true"]::before { background: var(--color-accent); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .x-apps__track { scroll-behavior: auto; } }
@media (max-width: 767px) { .x-apps__screen { aspect-ratio: 4 / 3.4; } .x-apps__screen img { inset: 3%; width: 94%; height: 94%; } }

/* ---------- Inspect: each label owns its slice of the column ----------
   A label is as tall as the gap between layers and centred on its word, so
   the hover target runs halfway to the next word and the switch happens at
   the midpoint, as it does over the tiles. */
@media (min-width: 768px) {
  .s3[data-inspect] .s3__label { height: var(--lgap, 17.2%); display: flex; align-items: stretch; }
  .s3[data-inspect] .s3__pick { height: 100%; display: flex; flex-direction: column; justify-content: center; }
  .e-hero__stack .s3__label small { top: 50%; margin-top: 0.95em; }
}

/* Diagnosis actions stay hidden until a symptom is picked (.e-actions sets display). */
.e-actions[hidden] { display: none; }

/* ---------- Chunky slabs: real thickness, lit and shaded sides ----------
   Matches the brand motion tiles (05-Motion-Library): a true 45 degree
   isometric block lit from the upper left. Two walls sit under each top face.
   Each is the slab's outline repeated twelve times straight down the screen
   (in the plane's own coordinates that is down and to the left), which builds
   a solid side that follows the rounded corners. The shaded wall is clipped to
   the half beyond the slab's front corner, so the left face reads lit and the
   right face shaded. --u sets the thickness. */
.s3 { position: relative; width: 100%; --u: clamp(1.5px, 0.17vw, 2.4px); }
.x-art { --u: 1.7px; }
/* Turning a tile (--spin) turns its plane, and with it everything drawn in
   the plane's coordinates. The side's thickness and the drop shadow's offset
   are turned back by the same angle, so the side stays straight down the
   screen and the shadow keeps falling the same way, as a real slab's would.
   The lit and shaded split is a corner of the slab, so it turns with it (see
   .s3__wall--shade). At no spin these are the plain values: side (-1, 1),
   shadow (-31, 34). */
.s3__layer, .x-art__plane {
  --c: cos(var(--spin, 0deg));
  --s: sin(var(--spin, 0deg));
  --wx: calc(var(--u) * (var(--s) - var(--c)));
  --wy: calc(var(--u) * (var(--s) + var(--c)));
  --drop-x: calc(-31px * var(--c) + 34px * var(--s));
  --drop-y: calc(31px * var(--s) + 34px * var(--c));
}
.s3__wall {
  --wall: var(--w-lit, var(--art-slab-side));
  position: absolute; inset: 0; border-radius: 14%; pointer-events: none;
  background: var(--wall);
  box-shadow: calc(var(--wx) * 1) calc(var(--wy) * 1) 0 0 var(--wall), calc(var(--wx) * 2) calc(var(--wy) * 2) 0 0 var(--wall), calc(var(--wx) * 3) calc(var(--wy) * 3) 0 0 var(--wall), calc(var(--wx) * 4) calc(var(--wy) * 4) 0 0 var(--wall), calc(var(--wx) * 5) calc(var(--wy) * 5) 0 0 var(--wall), calc(var(--wx) * 6) calc(var(--wy) * 6) 0 0 var(--wall), calc(var(--wx) * 7) calc(var(--wy) * 7) 0 0 var(--wall), calc(var(--wx) * 8) calc(var(--wy) * 8) 0 0 var(--wall), calc(var(--wx) * 9) calc(var(--wy) * 9) 0 0 var(--wall), calc(var(--wx) * 10) calc(var(--wy) * 10) 0 0 var(--wall), calc(var(--wx) * 11) calc(var(--wy) * 11) 0 0 var(--wall), calc(var(--wx) * 12) calc(var(--wy) * 12) 0 0 var(--wall);
}
/* The shaded wall is the half beyond the slab's front corner. The corner is
   part of the slab, so the split turns with it: it stays on the anti-diagonal
   in the plane's own coordinates, whatever --spin is. */
.s3__wall--shade { --wall: var(--w-shade, var(--art-slab-side-dark)); clip-path: polygon(200% -100%, 300% 300%, -100% 200%); }
.s3__plane { transform: translateZ(1px); }
.s3__layer--2 { --w-lit: var(--art-ink-side-lit); --w-shade: var(--art-ink-side); }
.s3:not(.s3--focus):not(.has-hot):not(.is-focused) .s3__layer--5,
.s3.has-hot .s3__layer.is-out,
.s3.is-focused .s3__layer.is-on,
.s3--focus-1 .s3__layer--1, .s3--focus-2 .s3__layer--2, .s3--focus-3 .s3__layer--3,
.s3--focus-4 .s3__layer--4, .s3--focus-5 .s3__layer--5,
.x-art--accent .x-art__plane { --w-lit: var(--art-ember-side-lit); --w-shade: var(--art-ember-side); }

/* ---------- Reeded glass that follows the pointer (motion library C01) ----------
   site.js adds a canvas that redraws the Ember glow through 15px reeds, so the
   glow follows the pointer and drifts when idle. The copy still sits on flat
   Ink: the fade layer covers the text side. Without JS, or with reduced
   motion, the static texture above stays. */
.x-close { position: relative; overflow: hidden; isolation: isolate; }
.x-close.has-glass { background: var(--pjc-ink); }
.x-close__glass, .x-close__reeds, .x-close__fade { position: absolute; inset: 0; pointer-events: none; }
.x-close__glass { width: 100%; height: 100%; display: block; z-index: 0; }
.x-close__reeds { z-index: 1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0, rgba(255,255,255,.03) 2px, rgba(255,255,255,0) 6px, color-mix(in srgb, var(--pjc-ink) 10%, transparent) 9px, color-mix(in srgb, var(--pjc-ink) 38%, transparent) 13.5px, rgba(255,255,255,.06) 15px); }
.x-close__fade { z-index: 2; background: linear-gradient(90deg, var(--pjc-ink) 0%, var(--pjc-ink) 40%, transparent 64%); }
@media (max-width: 767px) { .x-close__fade { background: linear-gradient(180deg, var(--pjc-ink) 0%, var(--pjc-ink) 52%, transparent 80%); } }
.x-close > .x-wrap { position: relative; z-index: 3; }

/* ---------- Magnetic buttons (motion library C09) ----------
   Near the pointer a button leans toward it and springs back; on hover one
   band of light sweeps across. White light on Ember, Ember light on Ink and
   on the white pill. site.js drives the pull; touch and reduced motion get
   neither. */
.btn { position: relative; overflow: hidden; isolation: isolate; --sheen: rgba(255,255,255,.38); will-change: transform; }
.btn--outline, .btn--secondary, .x-close .btn--primary { --sheen: color-mix(in srgb, var(--color-accent) 45%, transparent); }
.btn::before { content: ""; position: absolute; inset: -2px auto -2px 0; width: 55%; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 0%, var(--sheen) 50%, transparent 100%); transform: translateX(-130%) skewX(-18deg); opacity: 0; }
.btn.is-sweep::before { animation: btn-sweep .85s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes btn-sweep { 0% { transform: translateX(-130%) skewX(-18deg); opacity: 1; } 100% { transform: translateX(260%) skewX(-18deg); opacity: 1; } }
.btn__label { display: inline-block; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .btn::before { display: none; } }

/* ---------- Counting figures ----------
   The real figure is in the HTML; site.js counts up to it once, the first
   time the row is on screen. Tabular figures so the width doesn't jitter. */
.x-facts b { font-variant-numeric: tabular-nums; }

/* ---------- AI readiness slider (motion library C06) ---------- */
.ar { margin: 48px 0; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius-card); background: var(--color-white); box-shadow: var(--shadow-card); }
.ar > h2 { margin-top: 0; }
.ar__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 24px; }
.ar__field { position: relative; width: 100%; aspect-ratio: 12 / 8; }
.ar__rec { position: absolute; left: 0; top: 0; width: var(--cell); height: var(--cell); border-radius: 28%; background: var(--color-ink); will-change: transform, opacity; transition: background-color .3s ease, box-shadow .3s ease; }
.ar__rec.is-missing { background: transparent; box-shadow: inset 0 0 0 1.5px var(--color-grey); }
.ar__rec.is-conflict { background: transparent; box-shadow: inset 0 0 0 1.75px var(--color-accent); }
.ar__rec.is-dup { background: var(--color-grey); }
.ar__rec.is-ember { background: var(--color-accent); }
.ar__ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.ar__ctl label { font-size: 15px; font-weight: var(--fw-medium); color: var(--color-ink); white-space: nowrap; }
.ar__val { font-size: 15px; font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; color: var(--color-muted); }
.ar__range { --f: 10%; flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; height: 44px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; }
.ar__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--color-ink) var(--f), var(--pjc-mist) var(--f)); }
.ar__range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--color-ink) var(--f), var(--pjc-mist) var(--f)); }
.ar__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--color-white); box-shadow: 0 0 0 1.5px var(--color-ink), 0 4px 10px color-mix(in srgb, var(--color-shadow) 16%, transparent); }
.ar__range::-moz-range-thumb { width: 24px; height: 24px; border: 1.5px solid var(--color-ink); border-radius: 50%; background: var(--color-white); }
.ar__range:focus-visible { outline: none; }
.ar__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--color-ink), 0 0 0 5px var(--color-white), 0 0 0 7px var(--color-accent); }
.ar__range:focus-visible::-moz-range-thumb { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.ar__ask { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--color-line); font-size: 15px; color: var(--color-muted); }
.ar__ask b { display: block; margin-top: 4px; font-size: 20px; font-weight: var(--fw-medium); color: var(--color-ink); letter-spacing: -0.015em; }
.ar__fig { margin: 0; font-size: clamp(40px, 4.4vw, 60px); font-weight: var(--fw-medium); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.ar__sent { margin: 8px 0 18px; color: var(--color-text); }
.ar__conf { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 14px; font-weight: var(--fw-medium); color: var(--color-ink); }
.ar__bar { flex: 1; max-width: 200px; height: 4px; border-radius: 4px; background: var(--pjc-mist); overflow: hidden; }
.ar__bar i { display: block; height: 100%; background: var(--color-ink); transform-origin: left; transform: scaleX(.2); }
.ar__conf b { font-weight: var(--fw-medium); min-width: 4.5em; }
.ar__notes { list-style: none; margin: 0; padding: 0; min-height: 96px; }
.ar__notes li { display: flex; align-items: center; gap: 10px; padding: 3px 0; max-height: 32px; overflow: hidden; font-size: 15px; color: var(--color-text); transition: opacity .35s ease, transform .45s var(--ease-out), max-height .45s var(--ease-out), padding .45s; }
.ar__notes li.is-ok { color: var(--color-ink); }
.ar__notes li.is-gone { opacity: 0; transform: translateX(-8px); max-height: 0; padding: 0; }
.ar__fine { margin: 12px 0 0; font-size: 12px; color: var(--color-muted); }
@media (max-width: 1023px) { .ar__body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { .ar { padding: 18px; margin-left: -4px; margin-right: -4px; } .ar__ctl { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .ar__rec, .ar__notes li { transition: none; } }
.ar__notes li::before { content: none !important; display: none !important; }
.ar .ar__notes li { padding-left: 0; margin: 0; }

/* Two-line card headings: the second line takes the accent, as on section headings. */
.e-h3 em { display: block; font-style: normal; color: var(--color-accent-text-large); }

/* Services hub: the layer detail sits under the buttons, as on the home page,
   so the stack keeps its own column and never runs past the hero. */
.x-page-hero__copy .s3__panel { min-height: 0; }
.x-page-hero__copy .s3__panel:not(.is-on) { border-top-color: transparent; }
/* Service pages: the testimonial sits in the layer-detail space under the
   buttons and steps aside while a layer is picked. Below 1024px the panel is
   hidden, so the quote section further down shows instead. (Peter, 13/11/2026) */
.x-page-hero__copy .s3__panel:has(.s3__quote) { border-top-color: var(--color-line); }
.s3__quote { margin: 0; max-width: 34em; }
.s3__quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; letter-spacing: -0.01em; color: var(--color-ink); }
.s3__quote blockquote::before { content: "\201C"; margin-right: 2px; color: var(--color-accent); }
.s3__quote blockquote::after { content: "\201D"; color: var(--color-accent); }
.s3__quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--color-muted); }
.s3__quote figcaption img { flex: none; width: auto; height: 18px; filter: grayscale(1); opacity: 0.8; }
.s3__quote figcaption b { font-weight: 500; color: var(--color-ink); }
.s3__panel.is-on .s3__quote { visibility: hidden; }
@media (min-width: 1024px) { .x-quote-low { display: none; } }
.x-page-hero .s3[data-inspect] .s3__labels { bottom: 0; }
/* Page-header stacks: the label column is only about 90 to 130px wide, too
   narrow for each layer's line, so the labels are names only; the panel
   under the buttons explains whichever layer is hovered or tapped. */
.x-page-hero .s3__label small { display: none; }
.x-page-hero .s3__label b { white-space: nowrap; }

/* Connected HubSpot data story (src/_includes/data-story.njk, drawn by site.js).
   Captions scroll on the left; the diagram stays put on the right. Without JS
   the captions are plain text and the stage is hidden. */
.ds { --ds-text: var(--art-ds-text); --ds-line: var(--art-ds-line); --ds-line-strong: var(--art-ds-line-strong); padding: clamp(72px, 8vw, 120px) 0 0; color: var(--ds-text); }
.ds h2, .ds h3, .ds p { margin: 0; }
.ds__intro h2 { max-width: 15em; font-weight: 500; font-size: clamp(36px, 4.2vw, 62px); line-height: 1.04; letter-spacing: -0.03em; color: var(--pjc-ink); }
.ds__intro h2 span, .ds__step h3 span { display: block; color: var(--pjc-grey); }
.ds__intro p { max-width: 34em; margin-top: 20px; font-size: 19px; line-height: 1.55; }
.ds__story { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); gap: 32px; }
.ds__steps { padding: 18vh 0 30vh; }
.ds__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
.x-js .ds__step { opacity: 0.28; transition: opacity 0.5s ease; }
.x-js .ds__step.is-on { opacity: 1; }
.ds__step h3 { font-weight: 500; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; color: var(--pjc-ink); }
.ds__step p { margin-top: 16px; max-width: 26em; font-size: 18px; line-height: 1.55; }
.ds__stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding: calc(var(--nav-h, 84px) + 24px) 0 24px; } /* top-aligned, stats clear of the bottom edge (Peter, 11/11/2026) */
.ds__map { display: block; width: 100%; height: auto; max-height: calc(100vh - var(--nav-h, 84px) - 250px); overflow: visible; }
.ds__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--ds-line); opacity: 0; transition: opacity 0.6s ease; }
.ds__stats.is-on { opacity: 1; }
.ds__stats b { display: block; font-weight: 500; font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.02em; color: var(--pjc-ink); font-variant-numeric: tabular-nums; }
.ds__stats span { font-size: 14px; color: var(--ds-text); }
.ds__bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--pjc-mist); overflow: hidden; }
.ds__bar i { display: block; height: 100%; width: 0; background: var(--pjc-ink); border-radius: 2px; transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.ds__note { margin-top: 14px; font-size: 13px; color: var(--pjc-grey); }
html:not(.x-js) .ds__story { display: block; }
html:not(.x-js) .ds__steps { padding: 40px 0 0; }
html:not(.x-js) .ds__step { min-height: 0; padding: 20px 0; }
html:not(.x-js) .ds__stage { display: none; }

.ds .node { opacity: 0; transform: translateY(10px); transform-box: fill-box; transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.ds .node.is-on { opacity: 1; transform: none; }
.ds .node.is-dim { opacity: 0.22; }
.ds .card rect.face { fill: var(--color-white); stroke: var(--pjc-mist); stroke-width: 1; }
.ds .card .label { font: 500 20px var(--pjc-font); fill: var(--pjc-ink); letter-spacing: -0.01em; }
.ds .card .count { font: 400 16px var(--pjc-font); fill: var(--ds-text); font-variant-numeric: tabular-nums; }
.ds .card .kind { font: 600 12px var(--pjc-font); fill: var(--pjc-grey); letter-spacing: 0.08em; }
.ds .card.is-hot rect.face { stroke: var(--pjc-ember); stroke-width: 1.5; }
.ds .pill rect { fill: var(--color-white); stroke: var(--ds-line); stroke-width: 1; transition: stroke 0.4s; }
.ds .pill text { font: 500 16px var(--pjc-font); fill: var(--pjc-ink); }
.ds .pill.is-hot rect { stroke: var(--pjc-ember); stroke-width: 1.5; }
.ds .link { fill: none; stroke: var(--ds-line-strong); stroke-width: 1.25; opacity: 0; transition: opacity 0.6s ease, stroke 0.4s; }
.ds .link.is-on { opacity: 1; }
.ds .link.is-hot { stroke: var(--pjc-ember); stroke-opacity: 0.55; }
.ds .link.is-dim { opacity: 0.12; }
.ds .pulse { pointer-events: none; }
.ds .tag rect { fill: var(--pjc-mist); }
.ds .tag text { font: 500 14px var(--pjc-font); fill: var(--pjc-ink); letter-spacing: 0.04em; }
.ds .note rect { fill: var(--color-white); stroke: var(--ds-line); }
.ds .note text { font: 400 15px var(--pjc-font); fill: var(--ds-text); }
.ds .note .strong { font-weight: 500; fill: var(--pjc-ink); }
.ds .note--ink rect { fill: var(--pjc-ink); stroke: var(--pjc-ink); }
.ds .note--ink text, .ds .note--ink .strong { fill: var(--color-white); }
.ds .dupe { transition: transform 1.3s cubic-bezier(.3, .6, .2, 1), opacity 0.8s ease; }

/* Phones: diagram pinned at the top, captions scroll beneath it on cards. */
@media (max-width: 1023px) {
  .ds__story { display: flex; flex-direction: column; gap: 0; }
  .ds__stage { order: -1; top: 0; height: 60vh; z-index: 3; padding: calc(var(--nav-h, 84px) + 4px) 0 8px; background: var(--pjc-ghost); box-shadow: 0 12px 16px -12px rgba(40, 45, 90, .12); }
  .ds__map { max-height: calc(60vh - var(--nav-h, 84px) - 96px); }
  .ds__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding-top: 10px; }
  .ds__stats b { font-size: 18px; }
  .ds__stats span { font-size: 12px; }
  .ds__note { margin-top: 6px; font-size: 12px; }
  .ds__steps { position: relative; z-index: 1; padding: 0 0 20vh; }
  .x-js .ds__step { min-height: 60vh; justify-content: flex-end; opacity: 1; }
  .ds__step > div { padding: 22px; border-radius: var(--pjc-radius-card); background: var(--color-white); box-shadow: var(--pjc-shadow); }
  .ds__step h3 { font-size: 24px; }
  .ds__step p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds .node, .ds .link, .ds__stats, .ds__step, .ds__bar i, .ds .dupe { transition: none; }
}
.ds .card .icon { fill: none; stroke: var(--pjc-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ds .card.is-hot .icon { stroke: var(--pjc-ember); }
.ds .frame > rect:first-child { fill: rgba(255, 255, 255, 0.5); stroke: var(--pjc-ember); stroke-opacity: 0.45; stroke-width: 1.25; stroke-dasharray: 5 5; }
.ds .frame__tag { fill: var(--pjc-ember); }
.ds .frame text { font: 600 15px var(--pjc-font); fill: var(--color-white); letter-spacing: 0.01em; }

/* ==========================================================================
   Motion library pieces, opt-in (brand pack 05-Motion-Library, REGISTER.md).
   Each is an include that no page uses yet: hero tile (M01 to M05, via
   heroTile in service front matter), logo build (C02, logo-build.njk), logo
   play (C03, logo-play.njk), tile hover (C08, tile-hover.njk). Scripts are in
   js/site.js under the same names; phones and reduced motion get the still
   state (css/phone.css).
   ========================================================================== */

/* Hero tile: display at 185px or less to stay sharp on retina. */
.x-hero-tile { display: grid; place-items: center; }
.x-hero-tile img { display: block; width: 185px; height: auto; }

/* Logo build: the inline SVG takes the img's size; slats hidden only once the
   script has claimed the logo. */
.x-logo-build { display: inline-block; line-height: 0; }
.x-logo-build img, .x-logo-build svg { display: block; width: 100%; height: auto; }
.x-logo-build svg path, .x-logo-build svg .lb-w1, .x-logo-build svg .lb-w2 { transform-box: fill-box; transform-origin: 50% 100%; }
.lb-armed :is(.lb-s1, .lb-s2, .lb-s3, .lb-s4, .lb-s4i, .lb-w1, .lb-w2) { opacity: 0; }

/* Logo play */
.x-logo-play { display: grid; place-items: center; padding: 24px; touch-action: pan-y; outline: none; }
.x-logo-play__mark { width: min(40vw, 180px); aspect-ratio: 1; touch-action: pan-y; }
.x-logo-play__mark img, .x-logo-play__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.x-logo-play__mark path { transform-box: fill-box; transform-origin: 50% 100%; will-change: transform; }
.x-logo-play:focus-visible .x-logo-play__mark { outline: 2px solid var(--color-ink); outline-offset: 16px; border-radius: 12px; }

/* Tile hover */
.x-th .e-h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.x-th__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 20px); list-style: none; margin: 0; padding: 0; }
.x-th__grid li { perspective: 900px; }
.x-th__card { --mx: 50%; --my: 40%; position: relative; display: block; height: 100%; padding: 18px 18px 26px; border-radius: var(--radius-card); color: inherit; text-decoration: none; transform-style: preserve-3d; outline: none; -webkit-tap-highlight-color: transparent; }
.x-th__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--color-white); box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .45s cubic-bezier(.22, 1, .36, 1); }
.x-th__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--color-accent) 7%, transparent), transparent 70%); }
.x-th__card:hover::before, .x-th__card.is-up::before, .x-th__card:focus-visible::before { opacity: 1; }
.x-th__card.is-up::after { opacity: 1; }
.x-th__card:focus-visible { box-shadow: 0 0 0 2px var(--color-canvas), 0 0 0 4px var(--color-ink); }
.x-th__art { position: relative; display: block; transform-style: preserve-3d; margin: 0 0 14px; }
.x-th__tile { position: relative; display: block; width: 100%; aspect-ratio: 320 / 260; transform: translateZ(0); transition: transform .6s cubic-bezier(.22, 1, .36, 1); z-index: 1; }
/* The tile's own contact shadow is clipped off and replaced by .x-th__shadow, so it can spread as the tile rises. */
.x-th__tile img { display: block; width: 100%; height: 100%; clip-path: polygon(0 0, 100% 0, 100% 52.2%, 50% 77.5%, 0 52.2%); user-select: none; -webkit-user-drag: none; }
.x-th__shadow { position: absolute; left: 17%; right: 17%; top: 79%; height: 17%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--color-shadow) 22%, transparent), color-mix(in srgb, var(--color-shadow) 8%, transparent) 60%, transparent); transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .6s; }
.x-th__card:hover .x-th__tile, .x-th__card.is-up .x-th__tile, .x-th__card:focus-visible .x-th__tile { transform: translateZ(36px) translateY(-14px); }
.x-th__card:hover .x-th__shadow, .x-th__card.is-up .x-th__shadow, .x-th__card:focus-visible .x-th__shadow { transform: translateY(6px) scale(1.28, 1.45); opacity: .6; }
.x-th__txt { position: relative; z-index: 1; display: block; padding: 0 8px; transform: translateZ(14px); }
.x-th__name { display: block; font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 6px; color: var(--color-ink); }
.x-th__s { display: block; font-size: 15px; line-height: 1.45; color: var(--color-text); }
@media (max-width: 1023px) { .x-th__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .x-th__tile, .x-th__shadow { transition: none; }
  .x-th__card:hover .x-th__tile, .x-th__card.is-up .x-th__tile, .x-th__card:focus-visible .x-th__tile { transform: translateY(-8px); }
}

/* Inline links inside running text that isn't .x-prose: underlined so they
   read as links, in the text's own colour with an Ember underline. */
.x-inline, .x-faq__a a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.x-inline:hover, .x-faq__a a:hover { color: var(--color-ink); }

/* ==========================================================================
   Brand asset trial (06/11/2026, branch site-2027-assets). Each block is one
   proposal for Peter to keep, steer or drop.
   ========================================================================== */
/* 1. Slat hero panel: the quiet Ghost White corner background fills the right of the index-page heroes (Work, FAQ, Contact). Desktop only, never behind the text. */
@media (min-width: 1024px) {
  .x-page-hero--split { background: var(--color-paper) url("/assets/brand/backgrounds/PJC-bg-ghost-quiet-corner.svg") right bottom / cover no-repeat; }
  /* The slats take the right side, so the text goes back to one column on the left, clear of them. */
  .x-page-hero--split .x-page-hero__grid > div { display: block; max-width: 56%; }
  .x-page-hero--split h1 { margin-bottom: 24px; }
  .x-page-hero--split .lead { margin-bottom: 0; }
}
/* 2. Case study heroes carry their own service tile instead of the stack. Hidden below desktop, like the stack. */
.x-case-tile { display: block; width: 100%; max-width: 400px; height: auto; margin-left: auto; filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--color-ink) 10%, transparent)); }
@media (max-width: 1023px) { .x-page-hero__grid > :has(> .x-case-tile) { display: none; } }
/* 3. Services hub: each service row carries its tile, and the tools section is a grid of tile cards so it no longer repeats the "larger teams" list above it. */
.e-list--tiles .e-list__row { grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 20px; }
.e-list--tiles .e-list__row p { grid-column: 2; }
.e-list__tile { grid-row: span 2; width: 64px; height: auto; }
.e-toolcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.e-toolcard { background: var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px; }
.e-toolcard img { width: 96px; height: auto; margin: -8px 0 12px -6px; }
.e-toolcard h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--color-ink); margin: 0 0 8px; }
.e-toolcard p { margin: 0; color: var(--color-muted); font-size: var(--fs-body-sm); }
@media (max-width: 1023px) { .e-toolcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .e-list__tile { display: none; } .e-list--tiles .e-list__row { grid-template-columns: 1fr; } .e-list--tiles .e-list__row p { grid-column: 1; } .e-toolcards { grid-template-columns: 1fr; } }
/* 4. "How working with me works": the four-step progress shape marks each step; step four lights Ember. */
.e-step { display: inline-block; width: 26px; height: auto; margin: 0 14px 0 0; vertical-align: -4px; }
/* 5. Slat bullets: "What was built" and "What you get" lists use the brand's slat marker instead of plain rows. */
.x-aside__box .x-checks li { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.x-aside__box .x-checks li::before { display: block; content: ""; width: 8px; height: 14px; margin-top: 5px; border: 0; border-radius: 0; background: url("/assets/brand/shapes/PJC-bullet-ink.svg") center / contain no-repeat; }
/* 6. The short Ember rule under a case study's figures. */
.x-rule { display: block; width: 48px; height: 3px; margin-top: clamp(28px, 3vw, 40px); }
/* 7. The mark on a slab (the brand's app icon) as a personal moment: About, where the independent story starts, and the 404 page. */
.e-slabmark { display: block; width: 72px; height: auto; margin-bottom: 20px; border-radius: 18px; box-shadow: var(--shadow-card); }
.e-slabmark--lg { width: min(280px, 60%); margin: 0 auto; border-radius: 22%; }
@media (max-width: 1023px) { .e-slabmark--lg { display: none; } }
/* 8. One quiet Ink slat background, as a trial on the dark "What sounds familiar?" section. Desktop only. */
@media (min-width: 1024px) {
  .e-diag { background: var(--color-ink) url("/assets/brand/backgrounds/PJC-bg-ink-quiet-corner.svg") right bottom / cover no-repeat; }
}

/* The symptom picker needs the stack beside the chips. Phones hide it with
   .p-hide; phones turned sideways (short screens) hide it too. Tablets keep
   it, laid out like desktop (Peter, 06/11/2026). */
@media (max-width: 1023px) and (max-height: 600px) { .e-diag { display: none; } }

/* Client wordmark beside a quote's name (Keyless, Marshmallow Laser Feast). */
.e-quote__mark { height: 17px; width: auto; padding-left: 16px; border-left: 1px solid var(--color-line); box-sizing: content-box; filter: grayscale(1) contrast(1.1); opacity: 0.8; }
.e-quote__mark--mlf { height: 20px; }
.x-prose .x-quote-by { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; color: var(--color-muted); }
.x-prose .x-quote-by b { font-weight: 500; color: var(--color-ink); }
@media (min-width: 768px) { .x-prose .x-quote-by { flex-wrap: nowrap; } .x-prose .x-quote-by span { min-width: 0; } }
@media (max-width: 767px) { .e-quote figcaption:has(.e-quote__mark), .x-prose .x-quote-by { flex-direction: column; align-items: flex-start; } .e-quote__mark { padding: 0; border: 0; } }

/* Phones turned sideways: wide enough for the tablet layout but only about
   400px tall, so the first screen showed a big nav and half a headline.
   A slimmer nav, and the home hero side by side, headline and buttons left,
   stack right. A height condition on the tablet tier (06/11/2026). */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  :root { --nav-space: 60px; }
  .nav, .nav.is-scrolled { top: 6px; width: calc(100% - 24px); height: 50px; margin: 6px auto -56px; }
  .e-hero--feature { padding-top: calc(var(--nav-h, 60px) + 20px); padding-bottom: 28px; }
  .e-hero--feature .e-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .e-hero__copy > .e-display { grid-column: 1; grid-row: 1; align-self: end; font-size: clamp(30px, 9svh, 42px); }
  .e-hero__copy > .e-actions { grid-column: 1; grid-row: 2; align-self: start; margin-top: 20px; }
  .e-hero__copy > .s3__panel { display: none; }
  .e-hero__stack { grid-column: 2; grid-row: 1 / span 2; padding: 0; }
  .e-hero__stack .s3 { max-width: min(220px, 52svh); margin: 0 auto; }
  .e-hero .e-hero__stack .s3__labels { display: none; }
  .x-page-hero { padding-top: calc(var(--nav-h, 60px) + 24px); padding-bottom: 32px; }
  .x-page-hero h1 { font-size: clamp(30px, 9svh, 42px); }
}

/* A quote that follows a list inside the same section (Contact, NOCO Hair). */
.e-index + .e-quote { margin: clamp(56px, 6vw, 88px) 0 0; }
/* A logo before the name: the divider moves to its right. */
.e-quote__mark--lead { padding: 0 16px 0 0; border-left: 0; border-right: 1px solid var(--color-line); }
@media (max-width: 767px) { .e-quote__mark--lead { padding: 0; border: 0; } }

/* A section straight after a hero that already ends in the stack's layer-panel space (services, 11/11/2026):
   less padding either side of the hero's bottom line, and no second rule on the split underneath it. */
.x-page-hero:has(+ .e-section--after-hero) { padding-bottom: clamp(16px, 2vw, 32px); }
.e-section.e-section--after-hero { padding-top: clamp(40px, 5vw, 72px); }
.e-section--after-hero .e-split { border-top: 0; }
/* Page headers hide the stack below 1024px, so hide its panel and hint too
   (a later rule re-shows the panel; without this the hint points at nothing). */
@media (max-width: 1023px) { .x-page-hero .x-page-hero__copy .s3__panel { display: none; } }
