/* ==========================================================================
   Inventive Tech Solutions — main stylesheet
   Order: reset -> base type -> layout -> components -> sections -> utilities
   Kept flat and class-based so it ports to a WordPress theme unchanged.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ----------------------------------------------------------- 2. Base type */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.012em; }
h4 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 600; }

p { max-width: var(--measure); }
strong { font-weight: 600; }

.lead { font-size: var(--fs-lead); color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: var(--fs-small); }

/* Monospace annotation layer — used for data, captions and technical keys.
   Never used for body copy. */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0;
  color: var(--ink-muted);
}

a:not([class]) {
  color: var(--brand-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  transition: text-decoration-color var(--t-fast);
}
a:not([class]):hover { text-decoration-color: var(--brand); }

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

::selection { background: var(--brand-tint); color: var(--ink); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: var(--r); font-size: var(--fs-small);
}
.skip-link:focus { top: var(--s-4); }

/* ------------------------------------------------------------- 3. Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--loose { padding-block: var(--section-y-loose); }
.section--alt { background: var(--bg-alt); }
.section--ruled { border-top: var(--hairline); }

/* Section heads sit in the left 7 of 12 columns — asymmetric by default. */
.section-head { max-width: 42rem; margin-bottom: var(--s-6); }
.section-head p { margin-top: var(--s-3); }

.section-key {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--ink-muted);
  display: block;
  margin-bottom: var(--s-2);
}
.section-key::before { content: "/ "; color: var(--brand-text); }

/* --------------------------------------------------------- 4. Components */

/* 4.1 Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  font-size: var(--fs-body); font-weight: 500; letter-spacing: 0.005em;
  padding: 0.6875rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast);
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--secondary { border-color: var(--border-strong); color: var(--ink); background: transparent; }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn--onDark { background: #fff; color: var(--dark); }
.btn--onDark:hover { background: #ECEAE4; }
.btn--ghostDark { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghostDark:hover { border-color: #fff; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* 4.2 Inline text link with a rule rather than an arrow */
.tlink {
  display: inline-block;
  font-size: var(--fs-small); font-weight: 500;
  color: var(--brand-text); text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  transition: border-color var(--t-fast);
}
.tlink:hover { border-bottom-color: var(--brand); }

/* 4.3 Card — bordered on paper, no resting shadow */
.card {
  background: var(--surface);
  border: var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}

/* ----------------------------------------------------------- 5. Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.site-header.is-stuck { border-bottom-color: var(--border); }

.header-inner {
  display: flex; align-items: center; gap: var(--s-5);
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; letter-spacing: -0.022em; line-height: 1;
  white-space: nowrap; overflow: hidden;
}
.brand__name span { color: var(--ink-muted); font-weight: 600; }

.nav { margin-left: auto; flex: none; }
.nav__list { display: flex; align-items: center; gap: var(--s-5); }
.nav__link {
  font-size: var(--fs-small); text-decoration: none; color: var(--ink);
  padding: var(--s-2) 0; position: relative;
  transition: color var(--t-fast);
}
.nav__link:hover { color: var(--brand-text); }

.header-actions { display: flex; align-items: center; gap: var(--s-4); flex: none; }
.header-actions .btn { padding: 0.5625rem 1rem; font-size: var(--fs-small); }

/* 5.1 Services dropdown */
.has-dropdown { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: var(--s-2) 0; cursor: pointer;
  font-size: var(--fs-small); color: var(--ink);
}
.nav__toggle svg { transition: transform var(--t-fast); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__toggle[aria-expanded="true"] { color: var(--brand-text); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(640px, 80vw);
  background: var(--surface);
  border: var(--hairline); border-radius: var(--r-lg);
  box-shadow: 0 12px 32px rgba(20,20,26,.08);
  padding: var(--s-5);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-5);
}
.dropdown[hidden] { display: none; }
.dropdown__item {
  display: block; text-decoration: none; padding: var(--s-3);
  border-radius: var(--r); border: 1px solid transparent;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.dropdown__item:hover { border-color: var(--border); background: var(--bg); }
.dropdown__item strong { display: block; font-size: var(--fs-small); font-weight: 600; }
.dropdown__item span { display: block; font-size: var(--fs-mono); font-family: var(--font-mono); color: var(--ink-muted); margin-top: 2px; }

/* 5.2 Mobile nav */
.nav-burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border-strong); border-radius: var(--r);
  cursor: pointer;
}
.nav-burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  position: relative; transition: transform var(--t), background-color var(--t);
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform var(--t), top var(--t);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg);
  padding: var(--s-5) var(--gutter) var(--s-8);
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__link {
  display: block; padding: var(--s-4) 0;
  border-bottom: var(--hairline);
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600;
  letter-spacing: -0.02em; text-decoration: none;
}
.mobile-nav__sub { padding: var(--s-2) 0 var(--s-4); }
.mobile-nav__sub a {
  display: block; padding: var(--s-3) 0 var(--s-3) var(--s-4);
  border-left: 2px solid var(--border);
  font-size: var(--fs-small); text-decoration: none; color: var(--ink-muted);
}
.mobile-nav__sub a:hover { color: var(--brand-text); border-left-color: var(--brand); }
.mobile-nav__actions { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.mobile-nav__actions .btn { width: 100%; padding: 1rem; }
body.nav-open { overflow: hidden; }

/* ------------------------------------------------------------- 6. Hero */
.hero { padding-block: clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem) var(--section-y); }
.hero__grid {
  display: grid; gap: clamp(2rem, 0.8rem + 3.6vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
}
.hero h1 { max-width: 16ch; }
.hero__sub { margin-top: var(--s-4); font-size: var(--fs-lead); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* Spec block — reads as a technical key rather than a wrapping row of pills. */
.hero__meta { margin-top: var(--s-6); border-top: var(--hairline); max-width: 34rem; }
.hero__meta li {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s-4);
  padding-block: 0.5rem; border-bottom: var(--hairline);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted);
}
.hero__meta b { color: var(--ink); font-weight: 500; }

/* 6.1 Hero artefact — the signal-flow schematic */
.artefact {
  background: var(--surface);
  border: var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-4) var(--s-3);
}
.artefact__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: var(--hairline);
}
.artefact__bar span { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); }
.artefact__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 6px; }
.artefact svg { width: 100%; height: auto; }
.artefact__note {
  margin-top: var(--s-3); padding-top: var(--s-3); border-top: var(--hairline);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted);
  max-width: none;
}

/* ------------------------------------------------------- 7. Problem list */
.problems { border-top: var(--hairline); }
.problem {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-4) var(--s-7);
  padding-block: var(--s-4);
  border-bottom: var(--hairline);
  align-items: baseline;
}
.problem__q {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4375rem);
  letter-spacing: -0.015em; line-height: 1.25;
}
.problem__a { color: var(--ink-muted); font-size: var(--fs-small); max-width: 54ch; }

/* -------------------------------------------------- 8. The four-stage rail */
.rail { margin-top: var(--s-6); }
.rail__track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  position: relative;
}
.stage { padding: var(--s-4) var(--s-5) var(--s-5) 0; position: relative; }
.stage + .stage { padding-left: var(--s-5); border-left: var(--hairline); }
.stage::before {
  content: ""; position: absolute; top: -6px; left: 0;
  width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--ink);
  border-radius: 50%;
}
.stage + .stage::before { left: calc(var(--s-5) * -0.5 - 5px); }
.stage--live::before { background: var(--brand); border-color: var(--brand); }
.stage__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  letter-spacing: -0.02em;
}
.stage__what { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-text); margin-top: var(--s-2); }
.stage__body { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-muted); }
.rail__foot {
  margin-top: var(--s-4); padding-top: var(--s-4); border-top: var(--hairline);
  font-size: var(--fs-small); color: var(--ink-muted); max-width: 72ch;
}

/* ----------------------------------------------------------- 9. Services */
.services { border-top: var(--hairline); }
.service {
  display: grid; grid-template-columns: 12rem minmax(0, 1fr);
  gap: var(--s-2) var(--s-6); align-items: start;
  padding-block: var(--s-5);
  border-bottom: var(--hairline);
  transition: background-color var(--t-fast);
}
.service:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.service__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; }
.service__price { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); margin-top: var(--s-2); }
.service__desc { color: var(--ink-muted); font-size: var(--fs-small); }
.service__detail { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: 6px; }
.service__detail li {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  border: var(--hairline); border-radius: var(--r-sm); padding: 2px 8px; color: var(--ink-muted);
  background: var(--surface);
}
.service__go { grid-column: 2; margin-top: var(--s-3); }

/* -------------------------------------------------------------- 10. Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.project { display: flex; flex-direction: column; }
.project__shot {
  aspect-ratio: 16 / 10; width: 100%;
  background: var(--bg-alt); border: var(--hairline); border-radius: var(--r-lg);
  display: grid; place-content: center; text-align: center; padding: var(--s-5);
  color: var(--ink-muted);
}
.project__shot p { font-family: var(--font-mono); font-size: var(--fs-mono); max-width: 30ch; }
.project__body { padding-top: var(--s-3); }
.project__kicker { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); }
.project h3 { margin-top: var(--s-2); }
.project__body p { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-muted); }
.project__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.project__tags li { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); }
.project__tags li + li::before { content: "+ "; color: var(--border-strong); }

.buildnote {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r);
  background: var(--bg-alt);
  padding: var(--s-4);
  font-family: var(--font-mono); font-size: var(--fs-mono);
  color: var(--ink-muted);
  margin-bottom: var(--s-6);
}
.buildnote b { color: var(--warning); }

/* --------------------------------------------------------------- 11. Why */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-8); }
.why__item { padding-block: var(--s-4); border-top: var(--hairline); }
.why__item h3 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.why__item p { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-muted); }

/* ----------------------------------------------------------- 12. Process */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-6); }
.step { border-top: 2px solid var(--ink); padding-top: var(--s-3); }
.step__n { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-text); }
.step h3 { margin-top: var(--s-2); font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.step p { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-muted); }

/* ----------------------------------------------------------- 13. Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.plan__list { margin-top: var(--s-3); }
.plan__row {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding-block: 0.625rem; border-top: var(--hairline);
  font-size: var(--fs-small);
}
.plan__row:last-child { border-bottom: var(--hairline); }
.plan__row b { font-weight: 500; }
.plan__row span { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); white-space: nowrap; }
.plan--featured { border-color: var(--border-strong); position: relative; }
.plan--featured::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px;
  background: var(--brand); border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.plan__tag { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-text); }
.pricing-foot {
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: var(--hairline);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center;
  justify-content: space-between;
}
.pricing-foot p { font-size: var(--fs-small); color: var(--ink-muted); max-width: 62ch; }

/* --------------------------------------------------------------- 14. FAQ */
.faq { border-top: var(--hairline); max-width: 62rem; }
.faq__item { border-bottom: var(--hairline); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s-5); text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: var(--s-4) 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); letter-spacing: -0.01em;
  color: var(--ink);
}
.faq__q:hover { color: var(--brand-text); }
.faq__sign { flex: none; width: 16px; height: 16px; margin-top: 5px; position: relative; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; background: currentColor; border-radius: 1px;
}
.faq__sign::before { inset: 7px 0 auto 0; height: 1.5px; }
.faq__sign::after { inset: 0 7px 0 auto; width: 1.5px; transition: transform var(--t); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: scaleY(0); }
.faq__a { overflow: hidden; }
.faq__a[hidden] { display: none; }
.faq__a p { padding-bottom: var(--s-4); font-size: var(--fs-small); color: var(--ink-muted); }
.faq__a p + p { padding-top: 0; margin-top: calc(var(--s-3) * -1); }

/* ---------------------------------------------------------- 15. Final CTA */
.cta-final { background: var(--dark); color: #fff; }
.cta-final .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5) var(--s-8); align-items: start; }
.cta-final h2 { color: #fff; max-width: 14ch; }
.cta-final p { margin-top: 0; color: rgba(255,255,255,.7); font-size: var(--fs-lead); max-width: 48ch; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.cta-final__meta {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: rgba(255,255,255,.55);
}

/* ------------------------------------------------------------- 16. Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding-block: var(--s-7) var(--s-5); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-7) var(--s-6);
  padding-bottom: var(--s-6); border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer h2 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: var(--s-4); }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; font-size: var(--fs-small); }
.site-footer a:hover { color: #fff; }
.footer-list li + li { margin-top: 0.625rem; }
.footer-about p { font-size: var(--fs-small); margin-top: var(--s-4); max-width: 36ch; }
.footer-bottom {
  padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--fs-mono); color: rgba(255,255,255,.5);
}
.footer-bottom ul { display: flex; gap: var(--s-4); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name span { color: rgba(255,255,255,.55); }

/* ---------------------------------------------------------- 17. Motion */
/* One orchestrated reveal for the hero only. Sections do not each fade in. */
.hero__grid > * { opacity: 0; animation: rise 320ms cubic-bezier(.2,.6,.3,1) forwards; }
/* NOTE: duration is literal, not var(--t-slow). The motion tokens bundle a duration
   AND a timing function, which is valid in the `transition` shorthand but produces an
   invalid `animation` shorthand — the animation is then dropped and opacity stays 0. */
.hero__grid > *:nth-child(2) { animation-delay: 90ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__grid > * { opacity: 1; animation: none; }
}

/* ------------------------------------------------------ 18. Responsive */
@media (max-width: 1080px) {
  .service { grid-template-columns: 10.5rem minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .nav, .header-actions { display: none; }
  .nav-burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  /* Artefact moves below the CTAs on mobile so the action stays near the fold */
  .hero__art { order: 2; }
  .hero h1 { max-width: 20ch; }
  .rail__track { grid-template-columns: repeat(2, 1fr); }
  .stage:nth-child(3) { border-left: 0; padding-left: 0; }
  .stage:nth-child(3)::before { left: 0; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-final .container { grid-template-columns: 1fr; gap: var(--s-4); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .problem { grid-template-columns: 1fr; gap: var(--s-2); }
  .work-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: var(--s-3); }
  .service__go { grid-column: 1; margin-top: var(--s-2); }
  /* Spec blocks stack label over value on narrow screens rather than
     wrapping a two-word label across two lines. */
  .hero__meta li, .page-hero__facts li { grid-template-columns: 1fr; gap: 2px; }
  .hero__meta li, .page-hero__facts li { padding-block: 0.4375rem; }
  .service__name { font-size: 1.25rem; }
}

/* Below 360px the full wordmark pushes the menu button past the viewport.
   At 390 there is room, so the full name stays. */
@media (max-width: 360px) {
  .brand__name span { display: none; }
}

@media (max-width: 560px) {
  .rail__track { grid-template-columns: 1fr; border-top: 0; }
  .stage { border-left: 2px solid var(--border); padding: 0 0 var(--s-5) var(--s-5); }
  .stage + .stage { border-left: 2px solid var(--border); padding-left: var(--s-5); }
  .stage::before, .stage + .stage::before { top: 2px; left: -6px; }
  .stage:last-child { border-left-color: transparent; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------- 19. Utilities */
.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.flow > * + * { margin-top: var(--s-4); }

/* ==========================================================================
   20. Service page components (Phase 3B)
   Reuses the homepage system. Nothing here overrides a token.
   ========================================================================== */

/* 20.1 Breadcrumb */
.breadcrumb { padding-top: var(--s-5); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.breadcrumb li { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--border-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-text); }
.breadcrumb [aria-current] { color: var(--ink); }

/* 20.2 Page hero — narrower than the homepage hero, no artefact */
.page-hero { padding-block: var(--s-6) var(--section-y); border-bottom: var(--hairline); }
.page-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-5) var(--s-8); align-items: end;
}
.page-hero h1 { max-width: 18ch; }
.page-hero__sub { margin-top: var(--s-4); font-size: var(--fs-lead); max-width: 52ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.page-hero__facts { border-top: var(--hairline); }
.page-hero__facts li {
  display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--s-4);
  padding-block: 0.5rem; border-bottom: var(--hairline);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted);
}
.page-hero__facts b { color: var(--ink); font-weight: 500; }

/* 20.3 Prose blocks */
.prose { max-width: 64ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h3 { margin-top: var(--s-6); }
.prose ul { margin-top: var(--s-4); }

/* 20.4 Checklist — deliverables, inclusions */
.checklist { display: grid; gap: 0; border-top: var(--hairline); }
.checklist li {
  display: grid; grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--s-3); align-items: start;
  padding-block: var(--s-3); border-bottom: var(--hairline);
  font-size: var(--fs-small);
}
.checklist li::before {
  content: ""; width: 9px; height: 9px; margin-top: 0.45rem;
  border: 1px solid var(--brand); border-radius: 2px; background: var(--brand-tint);
}
.checklist b { font-weight: 600; display: block; }
.checklist span { color: var(--ink-muted); }
.checklist--plain li::before { border-color: var(--border-strong); background: transparent; }

/* 20.5 Two-column split (fit / not a fit, setup / management) */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.split__col { border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.split__col--muted { border-top-color: var(--border-strong); }
.split__col h3 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; }
.split__col ul { margin-top: var(--s-3); }
.split__col li { padding-block: var(--s-2); font-size: var(--fs-small); color: var(--ink-muted); border-bottom: var(--hairline); }

/* 20.6 Technical exhibit — the unique section on each service page */
.exhibit {
  background: var(--surface); border: var(--hairline); border-radius: var(--r-lg);
  padding: var(--s-5);
}
.exhibit__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-bottom: var(--s-3); margin-bottom: var(--s-4); border-bottom: var(--hairline);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted);
}
.exhibit__note {
  margin-top: var(--s-4); padding-top: var(--s-3); border-top: var(--hairline);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); max-width: none;
}
.exhibit table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.exhibit th, .exhibit td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: var(--hairline); vertical-align: top; }
.exhibit th { font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500; color: var(--ink-muted); }
.exhibit td code, .code {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  background: var(--bg-alt); border: var(--hairline); border-radius: var(--r-sm); padding: 1px 5px;
}

/* 20.7 Price band */
.priceband {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  border: var(--hairline); border-radius: var(--r-lg); background: var(--surface);
  padding: var(--s-4) var(--s-5);
}
.priceband__figures { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.priceband__figures div { min-width: 10rem; }
.priceband__figures b { display: block; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; }
.priceband__figures span { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); }

/* 20.8 Related services */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.related a {
  display: block; text-decoration: none;
  border: var(--hairline); border-radius: var(--r-lg); background: var(--surface);
  padding: var(--s-4);
  transition: border-color var(--t-fast);
}
.related a:hover { border-color: var(--brand); }
.related b { display: block; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.012em; }
.related span { display: block; margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-muted); }

/* 20.9 Service hub cards */
.hub { border-top: var(--hairline); }
.hub__row {
  display: grid; grid-template-columns: 3rem 14rem minmax(0, 1fr);
  gap: var(--s-2) var(--s-5); align-items: start;
  padding-block: var(--s-5); border-bottom: var(--hairline);
}
.hub__n { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-text); padding-top: 0.35rem; }
.hub__row h2 { font-size: var(--fs-h3); }
.hub__price { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); margin-top: var(--s-2); }
.hub__row p { font-size: var(--fs-small); color: var(--ink-muted); }
.hub__row .tlink { margin-top: var(--s-3); }

@media (max-width: 960px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .hub__row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .hub__row > div:last-child { grid-column: 2; }
}
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: var(--s-5); }
  .page-hero__facts li { grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-3); }
  .exhibit { padding: var(--s-4); }
  .exhibit table, .exhibit thead, .exhibit tbody, .exhibit tr, .exhibit th, .exhibit td { display: block; }
  .exhibit thead { display: none; }
  .exhibit tr { padding-block: var(--s-3); border-bottom: var(--hairline); }
  .exhibit td { border: 0; padding: 0 0 0.25rem 0; }
  .exhibit td:first-child { font-weight: 600; }
}

/* ==========================================================================
   21. Work + case study components (Phase 3C)
   ========================================================================== */

.case-label {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  color: var(--ink-muted); margin-bottom: var(--s-3);
}
.case-label::before { content: "/ "; color: var(--brand-text); }

/* Work index rows — editorial list, not a gallery */
.worklist { border-top: var(--hairline); }
.workrow {
  display: grid; grid-template-columns: 16rem minmax(0, 1fr);
  gap: var(--s-3) var(--s-6); align-items: start;
  padding-block: var(--s-5); border-bottom: var(--hairline);
}
.workrow h3 { font-size: var(--fs-h3); }
.workrow__meta { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted); margin-top: var(--s-2); }
.workrow p { font-size: var(--fs-small); color: var(--ink-muted); }
.workrow .service__detail { margin-top: var(--s-3); }
.workrow .tlink { margin-top: var(--s-3); }

/* Numbered approach list */
.numbered { border-top: var(--hairline); max-width: 68ch; }
.numbered li {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--s-4);
  padding-block: var(--s-4); border-bottom: var(--hairline); align-items: start;
}
.numbered__n { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-text); padding-top: 0.2rem; }
.numbered p { font-size: var(--fs-small); color: var(--ink-muted); }

/* Screenshot figure — used for real, permitted assets only */
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto;
  border: var(--hairline); border-radius: var(--r-lg); background: var(--bg-alt);
}
.shot figcaption {
  margin-top: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted);
}

@media (max-width: 720px) {
  .workrow { grid-template-columns: 1fr; gap: var(--s-2); }
  .numbered li { grid-template-columns: 2rem minmax(0, 1fr); gap: var(--s-3); }
}

/* ==========================================================================
   22. Pricing specification, About photo, Contact form (Phase 3D)
   ========================================================================== */

/* 22.1 Pricing spec rows */
.spec { border-top: var(--hairline); }
.spec__item {
  display: grid; grid-template-columns: 16rem minmax(0, 1fr);
  gap: var(--s-3) var(--s-6);
  padding-block: var(--s-5); border-bottom: var(--hairline);
  align-items: start;
}
.spec__head h3 { font-size: var(--fs-h3); }
.spec__price {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  color: var(--ink); margin-top: var(--s-2);
}
.spec__note {
  display: inline-block; margin-top: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-text);
  border: 1px solid var(--brand-tint); background: var(--brand-tint);
  border-radius: var(--r-sm); padding: 2px 7px;
}
.spec__suits { font-size: var(--fs-small); color: var(--ink-muted); }
.spec__suits b { color: var(--ink); font-weight: 600; }
.spec__body .checklist { margin-top: var(--s-4); }

/* 22.2 About photo */
.portrait { max-width: 28rem; }
.portrait img {
  width: 100%; height: auto; border: var(--hairline); border-radius: var(--r-lg);
}
.portrait figcaption {
  margin-top: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-muted);
}

/* 22.3 Contact layout */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s-8);
  align-items: start;
}
.contact-aside .section-head { margin-bottom: var(--s-4); }
.contact-direct { margin-top: var(--s-6); padding-top: var(--s-5); border-top: var(--hairline); }
.contact-direct h3 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-3); }
.contact-direct a { color: var(--brand-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.contact-direct a:hover { border-bottom-color: var(--brand); }

/* 22.4 Form controls */
.field { margin-bottom: var(--s-5); border: 0; padding: 0; }
.field label, .field legend {
  display: block; font-size: var(--fs-small); font-weight: 600; color: var(--ink);
  margin-bottom: var(--s-2); padding: 0;
}
.field__opt { font-weight: 400; color: var(--ink-muted); }
.field__hint { font-size: var(--fs-mono); font-family: var(--font-mono); color: var(--ink-muted); margin-top: var(--s-2); }
.field__error { font-size: var(--fs-small); color: var(--error); margin-top: var(--s-2); }

.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: 0.6875rem 0.875rem;
  font-size: 1rem;              /* 16px — prevents iOS zoom on focus */
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235C5C66' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center;
  padding-right: 2.25rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field .is-invalid { border-color: var(--error); }
.field--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.field .choice {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-small); font-weight: 400; color: var(--ink);
  border: var(--hairline); border-radius: var(--r); background: var(--surface);
  padding: 0.625rem 0.75rem; margin: 0;
  min-height: 44px;             /* touch target */
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.field .choice { margin-bottom: 0; font-weight: 400; }
.choice:hover { border-color: var(--border-strong); }
.choice input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }

#enquirySubmit { margin-top: var(--s-2); }
#enquirySubmit:disabled { opacity: .5; pointer-events: none; }

.form-status {
  margin-top: var(--s-4); padding: var(--s-3) var(--s-4);
  border-radius: var(--r); font-size: var(--fs-small);
  border: 1px solid var(--border-strong); background: var(--surface);
}
.form-status--success { border-color: var(--success); color: var(--success); }
.form-status--error   { border-color: var(--error);   color: var(--error); }
.form-status--pending { color: var(--ink-muted); }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .spec__item { grid-template-columns: 12rem minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .spec__item { grid-template-columns: 1fr; gap: var(--s-3); }
  .choices { grid-template-columns: 1fr; }
  .field--pair { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* Current-page state in navigation. Not colour alone — a rule underneath it. */
.nav__link.is-current, .nav__toggle.is-current { color: var(--ink); font-weight: 600; }
.nav__link.is-current::after, .nav__toggle.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand);
}
.nav__toggle.is-current { position: relative; }
.nav__toggle.is-current::after { right: 16px; }
.mobile-nav__link.is-current { color: var(--brand-text); }
.mobile-nav__sub a.is-current { color: var(--ink); border-left-color: var(--brand); font-weight: 600; }
.dropdown__item.is-current { border-color: var(--brand); background: var(--brand-tint); }


/* ==========================================================================
   23. Polish pass — rhythm variation, utilities, focus and density
   ========================================================================== */

/* Supporting sections sit closer to what they support, so the page has a
   rhythm rather than one repeated gap. */
.section--tight { padding-block: var(--s-6); }
.section:has(> .container > .related) { padding-block: var(--s-6); }

/* Spacing utilities, replacing one-off inline styles */
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }

/* Hero eyebrow — names the audience above the headline */
.hero__eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  color: var(--ink-muted); margin-bottom: var(--s-4);
  padding-bottom: var(--s-3); border-bottom: var(--hairline);
  max-width: 34rem;
}
.hero__eyebrow b { color: var(--ink); font-weight: 500; }

/* Checkbox rows get a real focus ring, not just the browser default */
.field .choice:has(input:focus-visible) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

/* Exhibit tables: slightly denser rows, and long code strings wrap rather
   than forcing a scroll at narrow widths */
.exhibit th, .exhibit td { padding: 0.4375rem 0.75rem 0.4375rem 0; }
.exhibit td code { overflow-wrap: anywhere; }

/* Case study and service page heroes: pull the facts key in line with the
   supporting copy rather than floating it low */
.page-hero__grid { align-items: end; }
.page-hero { padding-block: var(--s-5) var(--section-y); }

/* Tap targets: text links in dense lists need real height on touch devices.
   WCAG 2.2 target size — footer, breadcrumb and inline list links. */
@media (max-width: 960px) {
  .site-footer .footer-list a,
  .footer-bottom a { display: inline-block; padding-block: 0.4375rem; }
  .breadcrumb li { padding-block: 0.25rem; }
  .breadcrumb a { display: inline-block; padding-block: 0.25rem; }
  .contact-direct a { display: inline-block; padding-block: 0.25rem; }
  .rail__foot a { padding-block: 0.25rem; display: inline-block; }
}

/* Stacked exhibit tables carry their column name on mobile, so a bare value
   like "Yes" still has a question attached to it. */
@media (max-width: 720px) {
  .exhibit td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono); font-size: var(--fs-mono);
    color: var(--ink-muted);
    margin-bottom: 1px;
  }
  .exhibit td:first-child::before { content: none; }
  .exhibit td + td { margin-top: var(--s-3); }
}


/* 320px: the spec label columns collapse rather than wrapping mid-phrase. */
@media (max-width: 560px) {
  .spec__item, .workrow, .hub__row { gap: var(--s-2); }
}

/* Honeypot field — present for bots, removed from the accessibility tree
   and from view for everyone else. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
