/* Shared design system for John Vickers service pages.
   Mirrors the homepage tokens (index.html) so sub-pages feel native. */
:root {
  --bg: #f6f6f3;
  --paper: #ffffff;
  --ink: #141a24;
  --ink-soft: #303a47;
  --muted: #59636f;
  --faint: #646d79;
  --line: #dcdcd3;
  --line-2: #cdcdc2;
  --accent: oklch(0.46 0.13 258);
  --accent-deep: oklch(0.38 0.13 260);
  --accent-wash: oklch(0.96 0.02 258);
  --serif: "Spectral", Georgia, serif;
  --sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.62; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; white-space: nowrap; text-decoration: none; transition: top .18s ease; }
.skip-link:focus { top: 12px; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.kicker { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-family: var(--mono); font-size: 0.94rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand .sq { width: 12px; height: 12px; background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { text-decoration: none; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; white-space: nowrap; transition: color .18s; }
.nav-links > a:hover, .nav-links > a.active { color: var(--ink); }
.nav-links .btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 2px; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; white-space: nowrap; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: #fff; transition: background .18s, transform .12s; }
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.menu-toggle { display: none; }

/* Breadcrumb */
.crumbs { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--faint); padding: 20px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--accent-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--line-2); }

/* Service hero */
.svc-hero { padding: clamp(26px,4vw,46px) 0 0; }
.svc-hero .inner { padding: clamp(24px,3vw,34px) 0 clamp(40px,5vw,58px); border-bottom: 1px solid var(--ink); }
.svc-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; }
.svc-hero h1 em { font-style: italic; color: var(--accent-deep); }
.svc-hero .lead { font-size: clamp(1.1rem, 1.5vw, 1.26rem); color: var(--ink-soft); max-width: 60ch; margin-top: 22px; }
.svc-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.svc-hero .availability { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-top: 24px; display: flex; align-items: center; gap: 9px; }
.dotg { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.58 0.15 150); flex: none; }

/* Meta strip under hero */
.svc-meta { background: var(--ink); color: #fff; }
.svc-meta .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.svc-meta .cell { padding: 26px 24px; border-left: 1px solid rgba(255,255,255,0.12); }
.svc-meta .cell:first-child { border-left: none; padding-left: 0; }
.svc-meta .l { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.svc-meta .v { font-family: var(--serif); font-size: 1.32rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin-top: 10px; }

/* Generic content section */
.section { padding: clamp(46px,5.5vw,78px) 0; }
.section.paper { background: var(--paper); border-block: 1px solid var(--line-2); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 22px; margin-bottom: 38px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; max-width: 20ch; }
.sec-head h2 em { font-style: italic; color: var(--accent-deep); }
.sec-head .meta { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.06em; }

.prose { max-width: 70ch; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.prose p + p { margin-top: 18px; }
.prose p strong, .prose p b { color: var(--ink); font-weight: 600; }

/* Two column problem / who-for */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(36px,5vw,64px); align-items: start; }
.split .lab { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.split h3 { font-size: 1.5rem; line-height: 1.14; margin-bottom: 14px; }
.split p { color: var(--muted); font-size: 1.02rem; }
.split p + p { margin-top: 14px; }

/* For-list */
.forlist li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.forlist li:first-child { border-top: none; }
.forlist .ix { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-deep); }
.forlist p { color: var(--ink-soft); font-size: 1rem; }

/* Examine grid (areas covered) */
.examine { border-top: 1px solid var(--ink); }
.examine ul { columns: 3; column-gap: 34px; padding-top: 8px; }
.examine li { font-size: 0.96rem; color: var(--ink-soft); padding: 11px 0 11px 18px; position: relative; break-inside: avoid; border-bottom: 1px solid var(--line); }
.examine li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 1px; background: var(--accent); }
@media (max-width: 860px) { .examine ul { columns: 2; } }
@media (max-width: 560px) { .examine ul { columns: 1; } }

/* Deliverables cards */
.deliver { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-2); background: var(--paper); }
.deliver .d { padding: 28px 26px; border-right: 1px solid var(--line-2); }
.deliver .d:last-child { border-right: none; }
.deliver .d .n { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.deliver .d h3 { font-size: 1.16rem; margin-top: 14px; line-height: 1.16; }
.deliver .d p { color: var(--muted); font-size: 0.93rem; margin-top: 10px; }
@media (max-width: 820px) { .deliver { grid-template-columns: 1fr; } .deliver .d { border-right: none; border-bottom: 1px solid var(--line-2); } .deliver .d:last-child { border-bottom: none; } }

/* Evidence panel */
.evidence { border: 1px solid var(--line-2); background: var(--paper); }
.evidence .ehead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 18px 24px; background: var(--ink); color: #fff; }
.evidence .ehead h3 { font-size: 1.34rem; color: #fff; line-height: 1.14; }
.evidence .ehead .et { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.58); }
.evidence .ebody { padding: 26px 24px 28px; }
.evidence .ebody p { color: var(--muted); font-size: 1.04rem; max-width: 74ch; }
.evidence .egrid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; border-top: 1px solid var(--line); }
.evidence .egrid li { font-size: 0.92rem; color: var(--ink-soft); padding: 12px 0 12px 16px; position: relative; border-bottom: 1px solid var(--line); }
.evidence .egrid li::before { content: ""; position: absolute; left: 0; top: 19px; width: 7px; height: 1px; background: var(--accent); }
@media (max-width: 760px) { .evidence .egrid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
.faq .qa { padding: 26px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.4fr); gap: clamp(20px,4vw,56px); }
.faq .qa h3 { font-size: 1.24rem; line-height: 1.2; }
.faq .qa p { color: var(--muted); font-size: 1.02rem; }
@media (max-width: 720px) { .faq .qa { grid-template-columns: 1fr; gap: 12px; } }

/* Related services */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rcard { display: flex; flex-direction: column; border: 1px solid var(--line-2); background: var(--paper); padding: 24px; text-decoration: none; transition: border-color .2s, background .2s; }
.rcard:hover { border-color: var(--accent); background: var(--accent-wash); }
.rcard .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.rcard h3 { font-size: 1.18rem; margin-top: 12px; line-height: 1.16; }
.rcard .go { margin-top: auto; padding-top: 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.rcard[aria-current="page"] { background: var(--ink); border-color: var(--ink); }
.rcard[aria-current="page"] .k { color: oklch(0.72 0.1 258); }
.rcard[aria-current="page"] h3 { color: #fff; }
.rcard[aria-current="page"] .go { color: rgba(255,255,255,0.6); }
@media (max-width: 720px) { .related { grid-template-columns: 1fr; } }

/* Final CTA */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .kicker { color: oklch(0.72 0.1 258); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem,3.2vw,2.7rem); line-height: 1.1; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,0.74); font-size: 1.08rem; margin-top: 18px; max-width: 60ch; }
.cta-band .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-band .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn.ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); }

/* Footer */
.site-footer { border-top: 1px solid var(--line-2); padding: 30px 0; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .svc-meta .wrap { grid-template-columns: 1fr; }
  .svc-meta .cell { border-left: none; padding-left: 0; padding-inline: 0; border-top: 1px solid rgba(255,255,255,0.12); }
  .svc-meta .cell:first-child { border-top: none; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line-2); padding: 8px 24px 18px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links > a { padding: 14px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
  .nav-links > a:first-child { border-top: none; }
  .nav-links .btn { display: inline-flex; margin-top: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--paper); cursor: pointer; }
  .header-cta { display: none; }
}
