/* ===========================================================
   Tom Foxley — Mental Fitness Coaching
   Premium editorial landing page — "Quiet strength" visual system.
   Bone surface, Ink text, Pine primary, Clay accent (sparing), Stone support.
   Spacing on an 8pt grid. Fraunces display / Inter body.
   =========================================================== */

:root {
  /* Palette */
  --bone: #f4efe6;        /* Surface: dominant background */
  --bone-alt: #ece5d7;    /* alternating surface (a touch deeper) */
  --ink: #1b1a16;         /* Text: headlines + body on light */
  --ink-soft: #57534a;    /* quiet secondary body */
  --ink-faint: #8b8479;   /* Stone: captions, labels, dividers */
  --line: rgba(27, 26, 22, 0.14);
  --accent: #243a31;      /* Pine: structure, CTAs, dark sections */
  --accent-deep: #1b2c24; /* Pine hover */
  --clay: #c0744a;        /* Clay: sparing warmth — eyebrows, rules, mark dot */
  --on-accent: #f4efe6;   /* Bone on Pine */

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* 8pt spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;
  --s9: 160px;

  --measure: 740px;
  --maxw: 1160px;
  --nav-h: 72px;
  --radius: 4px;

  /* Motion tokens (one system, reused everywhere) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* calm ease-out */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.18s;
  --dur-mid: 0.3s;
  --dur-slow: 0.7s;
  --stagger: 90ms;
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s3);
}

.measure {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: var(--s8) 0;
  scroll-margin-top: var(--nav-h);
}

.section--alt {
  background: var(--bone-alt);
}

/* shared editorial bits */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 var(--s2);
}

/* Signature thin Clay rule — used sparingly, never repeated within a view */
.rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--clay);
  border: 0;
  margin: 0 0 var(--s3);
}

.section__header {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: var(--s5);
  max-width: 24ch;
}

.lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--s4);
  max-width: 38ch;
}

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244, 241, 233, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  height: var(--nav-h);
}

/* Brand lockup: still-point mark + serif wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: block;
}

.brand__mark .m-ring,
.brand__mark .m-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.brand__mark .m-dot { fill: var(--clay); }

.brand__word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

/* On Pine / Ink surfaces */
.brand--invert { color: var(--bone); }
.brand--invert .m-ring,
.brand--invert .m-line { stroke: var(--bone); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-left: var(--s4);
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: var(--s1) 0;
  position: relative;
  transition: color 0.18s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--clay);
  transition: width var(--dur-mid) var(--ease);
}

.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { width: 100%; }

.nav__mobile-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
}

.nav__group { position: relative; }

.nav__trigger {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  padding: var(--s1) var(--s2);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.18s ease;
}

.nav__trigger:hover,
.nav__group:hover .nav__trigger,
.nav__trigger[aria-expanded="true"] {
  color: var(--accent);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 18px 48px rgba(23, 21, 15, 0.1);
}

.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown,
.nav__group.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
  padding: var(--s1) var(--s2);
  border-radius: var(--radius);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav__dropdown a:hover {
  background: var(--bone-alt);
  color: var(--accent);
}

.btn--nav { margin-left: auto; }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav__burger span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  border-top: 1px solid var(--line);
  background: var(--bone);
  padding: var(--s3);
}

.nav__mobile-group {
  display: flex;
  flex-direction: column;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
}

.nav__mobile-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s1);
}

.nav__mobile-group a {
  text-decoration: none;
  color: var(--ink);
  padding: var(--s1) 0;
  font-size: 17px;
}

.nav__mobile .btn { margin-top: var(--s3); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  padding: 16px 34px;
  border-radius: var(--radius);
  transition: background-color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
}

.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--nav { padding: 11px 22px; font-size: 14px; }
.btn--block { display: block; text-align: center; }

/* Secondary / ghost CTA */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bone);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.cta-wrap { margin-top: var(--s5); }
.cta-wrap--inline { margin-top: var(--s5); }

.cta-note {
  margin: var(--s2) 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ----- Trust row (avatar circles) ----- */
.trust {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s4);
}

.trust__faces {
  display: flex;
}

.face {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bone-alt);
  border: 2px solid var(--bone);
  box-shadow: inset 0 0 0 1px var(--line);
  background-size: cover;
  background-position: center;
  margin-left: -12px;
}

.face:first-child { margin-left: 0; }

.section--alt .face { border-color: var(--bone-alt); background: var(--bone); }

.trust__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ===================== 1. HERO ===================== */
.section--hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* nav sits above the hero in flow, so subtract it to keep nav + hero on
     one screen — the props bar then lands at the bottom of the viewport */
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

/* Hero copy: vertically centred between nav and the props bar */
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 940px;
  padding-top: var(--s5);
  padding-bottom: var(--s5);
}

/* Three value props pinned across the bottom of the hero */
.hero__props {
  position: relative;
  z-index: 1;
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: saturate(140%) blur(6px);
  border-top: 1px solid var(--line);
}

.hprops {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hprops li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s4) var(--s2);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(15px, 1.7vw, 20px);
}

.hprops li + li { border-left: 1px solid var(--line); }

.hprops svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--clay);
}

/* Hero background photo with a light Bone wash for legibility */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scaleX(-1); /* Tom sits opposite the left-aligned copy */
  /* Light warm grade so imagery sits on the Bone surface */
  filter: saturate(0.9) contrast(0.96) brightness(1.03) sepia(0.06);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bone);
  opacity: 0.5;
}

.section--hero > .container {
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: var(--s5);
  max-width: 18ch;
}

.hero__sub {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--s4);
}

.hero__support {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  margin-bottom: 0;
}

/* ===================== 2. PROOF BAR ===================== */
.proofbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  text-align: center;
}

.proof {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.proof__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.proof__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ===================== 4. PAIN ===================== */
/* Centre the body in short conviction sections so it sits under the header.
   All children share one measure so the block reads as a tidy centred column. */
.split__main--center { text-align: center; }
.split__main--center > * {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.split__main--center .lead { max-width: 540px; }

.painlist {
  list-style: none;
  counter-reset: pain;
  margin: var(--s5) auto;
  padding: 0;
  max-width: 540px;
}

.painlist li {
  counter-increment: pain;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.45;
}

.painlist li:last-child { border-bottom: 0; }

.painlist li::before {
  content: counter(pain, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  color: var(--clay);
}

.turn {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  margin-top: var(--s5);
}

/* ===================== 6. MECHANISM DIAGRAM ===================== */
.diagram {
  margin: var(--s6) 0;
  text-align: center;
}

.diagram svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.diagram .d-solid {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.diagram .d-dash {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 7;
}

.diagram .d-accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram figcaption {
  margin-top: var(--s3);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ===================== 7. FOUNDER ===================== */
.founder__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bone-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s3);
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: var(--s5);
}

.section--alt .founder__photo { background: var(--bone); }

/* ===================== 8. REFRAME ===================== */
.pull {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-top: var(--s5);
}

/* ===================== 9. TILES ===================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin: var(--s6) 0 var(--s4);
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--bone-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
}

.tile__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s3);
}

.tile__quote {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.32;
  margin: 0 0 var(--s3);
}

.tile__context {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: var(--s3);
}

.tile__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
}

.tile__link:hover { text-decoration: underline; }

.disclaimer {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: var(--s4);
}

/* ===================== 12. PHASES ===================== */
.phases {
  list-style: none;
  margin: 0 0 var(--s5);
  padding: 0;
}

.phase {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}

.phase:last-child { border-bottom: 0; }

.phase__num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  flex: 0 0 auto;
  width: 2.5ch;
}

.phase__title {
  font-size: 24px;
  margin-bottom: var(--s1);
}

.method__note {
  color: var(--ink-soft);
  font-size: 17px;
}

.textlink {
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.textlink:hover { text-decoration: underline; }

/* ===================== 13. CLOSE ===================== */
.section--close {
  background: var(--accent); /* Pine carries dark sections */
  color: var(--bone);
}

.close__promise {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
}

.close__sub {
  color: rgba(244, 241, 233, 0.72);
  font-size: 19px;
}

.section--close .btn {
  background: var(--bone);
  color: var(--ink);
}

.section--close .btn:hover { background: #fff; }

.changelist {
  list-style: none;
  margin: var(--s6) 0 0;
  padding: 0;
}

.changelist li {
  position: relative;
  padding: var(--s2) 0 var(--s2) var(--s4);
  border-top: 1px solid rgba(244, 241, 233, 0.16);
  color: rgba(244, 241, 233, 0.88);
  font-size: 17px;
}

.changelist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 14px;
  height: 1px;
  background: var(--bone);
}

/* ===================== 14. FOOTER ===================== */
.footer {
  background: var(--bone-alt);
  border-top: 1px solid var(--line);
  padding: var(--s7) 0 var(--s4);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: var(--s6);
}

.footer__blurb {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: var(--s2);
  max-width: 24ch;
}

.footer__cred {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer__heading {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s1);
}

.footer__col a {
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__col a:hover { color: var(--accent); }

.footer__base {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===================== VALUE CROSSHEAD ===================== */
.section--cross {
  padding-top: var(--s7);
  padding-bottom: var(--s7);
}

/* ===========================================================
   Editorial content rhythm (everything after the hero)
   One calm column: header -> prose at a readable measure,
   with components widening into "feature" moments. All blocks
   share a single left edge inside a centred content column.
   =========================================================== */
:root { --content: 980px; --read: 680px; }

/* Section header: centred for balance and clear hierarchy */
.split__aside,
.band-head {
  max-width: 680px;
  margin: 0 auto var(--s6);
  text-align: center;
}

/* Subtle mountain outline behind the Plan section */
#plan { position: relative; overflow: hidden; }
#plan > .container { position: relative; z-index: 1; }
.plan__bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 340px;
  z-index: 0;
  pointer-events: none;
  color: var(--accent);
}
.plan__bg .ridge { fill: none; stroke: currentColor; stroke-linejoin: round; }
.plan__bg .ridge--back { opacity: 0.07; stroke-width: 1.25; }
.plan__bg .ridge--front { opacity: 0.13; stroke-width: 1.5; }

.split__aside .rule,
.band-head .rule { margin-left: auto; margin-right: auto; }

.split__aside .section__header,
.band-head .section__header { margin-left: auto; margin-right: auto; }

.split__aside .lead { margin-left: auto; margin-right: auto; }

/* Body prose: a centred column with equal gutters, text left-aligned */
.split,
.split__main {
  max-width: var(--read);
  margin-left: auto;
  margin-right: auto;
}

.split__main > * + * { margin-top: var(--s3); }

.band-cta { margin-top: var(--s6); text-align: center; }

/* Feature components: centred, a touch wider than the prose column */
.ba,
.quote-cards,
.plan-cards,
.leadgen {
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}

/* ----- Value crosshead cards ----- */
.vcards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.vcard {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
}

.vcard__rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--clay);
  margin-bottom: var(--s3);
}

.vcard__title {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: var(--s2);
}

.vcard p { color: var(--ink-soft); margin: 0; }

/* ----- Generic card ----- */
.card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
}

/* ----- Trust bullets grid ----- */
.bullets {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}

.bullet {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  font-size: 16px;
}

/* ----- Testimonial cards ----- */
.quote-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s6);
}

.quote-card {
  position: relative;
  margin: 0;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4) var(--s4);
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--clay);
}

.quote-card p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 var(--s3);
}

.quote-card cite {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ----- Plan cards ----- */
.plan-cards {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.plan-card {
  background: var(--bone-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  text-align: center;
  transition: transform var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 58, 49, 0.4);
}

.plan-card__icon {
  width: 32px;
  height: 32px;
  color: var(--clay);
  display: block;
  margin: 0 auto var(--s2);
}

.plan-card__num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--clay);
  display: block;
  margin-bottom: var(--s2);
}

.plan-card__title { font-size: 22px; margin-bottom: var(--s2); }
.plan-card p { color: var(--ink-soft); margin: 0; }

/* ===================== SUBHEAD ===================== */
.subhead {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: var(--s6) 0 var(--s3);
}

.quotes { margin-top: var(--s6); }

/* ===================== READ MORE ===================== */
.readmore { margin-top: var(--s2); }

.readmore__toggle {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  padding: var(--s1) 0;
}

.readmore__toggle::-webkit-details-marker { display: none; }
.readmore__toggle::after { content: " \2193"; }
.readmore[open] .readmore__toggle { color: var(--ink-faint); }
.readmore[open] .readmore__toggle::after { content: " \2191"; }
.readmore__body { margin-top: var(--s3); }

/* ===================== LEAD GENERATOR ===================== */
/* Keep the embedded calendar responsive (its inline min-width can overflow
   narrow phones, which shifts every centred element sideways) */
.calendly-inline-widget {
  min-width: 0 !important;
  width: 100%;
}

/* Full-width green band (the section provides the background) */
.section--pine {
  background: var(--accent);
  color: var(--bone);
}

.leadgen {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Guide: photo + authority */
.media {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: var(--content);
  margin: 0 auto;
}

.media__img { margin: 0; }

.media__img img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.media__body > * + * { margin-top: var(--s3); }
.media__body .subhead { margin-top: 0; }

.band-cta--left { text-align: left; }

.leadgen .eyebrow { color: var(--clay); }

.leadgen__title {
  font-size: clamp(26px, 3.4vw, 40px);
  margin-bottom: var(--s3);
}

.leadgen__sub {
  color: rgba(244, 239, 230, 0.82);
  margin: 0 0 var(--s5);
}

.leadgen__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leadgen__list li {
  display: flex;
  gap: var(--s2);
  align-items: baseline;
  padding: var(--s3) 0;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
  color: rgba(244, 239, 230, 0.92);
  font-size: 16px;
}

.leadgen__list li:last-child { border-bottom: 1px solid rgba(244, 239, 230, 0.18); }

.leadgen__list span {
  font-family: var(--serif);
  color: var(--clay);
  font-size: 15px;
}

.btn--onpine { background: var(--bone); color: var(--ink); }
.btn--onpine:hover { background: #ffffff; }

/* ===================== MODAL ===================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 26, 22, 0.55);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 80px rgba(27, 26, 22, 0.3);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
}

.modal__heading { font-size: 26px; margin-bottom: var(--s2); }
.modal__sub { color: var(--ink-soft); margin-bottom: var(--s4); }
.modal__form { display: flex; flex-direction: column; gap: var(--s3); }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field input {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bone-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-transform: none;
  letter-spacing: normal;
}

.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.modal__note {
  font-size: 13px;
  color: var(--ink-faint);
  margin: var(--s3) 0 0;
  text-align: center;
}

/* ===================== DIAGNOSTIC POPUP (iframe) ===================== */
.modal--diagnostic { padding: clamp(12px, 3vw, 32px); }

.modal__frame-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bone);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(27, 26, 22, 0.4);
}

.modal__frame {
  width: 100%;
  height: 480px; /* initial; resized to content via postMessage */
  border: 0;
  display: block;
}

.modal--diagnostic .modal__close {
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bone);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(27, 26, 22, 0.12);
}

/* ===================== DIAGNOSTIC PAGE ===================== */
.dx-body { background: var(--bone); }

/* Embedded in the homepage popup: drop the page chrome */
.dx-embed .dx-header { display: none; }
.dx-embed .dx-wrap {
  max-width: none;        /* fill the modal width */
  padding-top: var(--s5);
  padding-bottom: var(--s5);
}
.dx-embed .dx-form { max-width: none; }   /* fields fill the modal */

.dx-header {
  border-bottom: 1px solid var(--line);
  background: var(--bone);
}

.dx-bar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--s3);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dx-exit {
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-faint);
}

.dx-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--s3) var(--s8);
}

.dx-title { font-size: clamp(30px, 5vw, 46px); margin-bottom: var(--s3); }
.dx-lead { font-size: 19px; color: var(--ink-soft); margin-bottom: var(--s5); }

.dx-form { display: flex; flex-direction: column; gap: var(--s3); max-width: 420px; }
.dx-note { font-size: 13px; color: var(--ink-faint); margin-top: var(--s3); }
.dx-error { color: var(--accent-3, #b23b22); font-size: 14px; margin: 0; }

/* progress + question */
.dx-progress {
  height: 3px;
  background: var(--bone-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--s2);
}
.dx-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width var(--dur-mid) var(--ease);
}

.dx-counter {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--s5);
}

.dx-q {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.25;
  margin-bottom: var(--s5);
  min-height: 2.2em;
}

.dx-options { display: flex; flex-direction: column; gap: var(--s2); }

.dx-opt {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.dx-opt:hover { border-color: rgba(36, 58, 49, 0.5); transform: translateX(2px); }
.dx-opt.is-selected { border-color: var(--accent); background: var(--bone-alt); }

.dx-opt__num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-faint);
}

.dx-opt.is-selected .dx-opt__num {
  background: var(--accent);
  color: var(--bone);
  border-color: var(--accent);
}

.dx-back {
  margin-top: var(--s4);
  background: none;
  border: 0;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
  padding: var(--s1) 0;
}

.dx-hint { font-size: 13px; color: var(--ink-faint); margin-top: var(--s2); }

/* results */
.dx-bars { margin: var(--s6) 0; display: flex; flex-direction: column; gap: var(--s4); }

.dx-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s1);
}
.dx-bar__name { font-family: var(--serif); font-size: 20px; }
.dx-bar__band { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }

.dx-bar__track {
  height: 8px;
  background: var(--bone-alt);
  border-radius: 5px;
  overflow: hidden;
}
.dx-bar__track span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}
.dx-bar.is-bottleneck .dx-bar__track span { background: var(--clay); }
.dx-bar.is-bottleneck .dx-bar__name { color: var(--clay); }
.dx-bar__meaning { font-size: 14px; color: var(--ink-soft); margin: var(--s1) 0 0; }

.dx-verdict {
  background: var(--bone-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  margin-bottom: var(--s5);
}
.dx-verdict__h { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 var(--s2); }
.dx-verdict p + p { margin-top: var(--s3); }

.dx-cta { text-align: center; }
.dx-cta .dx-note { text-align: center; max-width: 44ch; margin: var(--s3) auto 0; }

/* ===================== PROOF (testimonials) ===================== */
/* Masonry columns so long and short testimonials pack tightly */
.proof-grid {
  column-count: 3;
  column-gap: var(--s3);
  max-width: var(--content);
  margin: 0 auto;
}

.proof-card {
  break-inside: avoid;
  margin: 0 0 var(--s3);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
}

/* Dominant objection-handling pull quote as the header */
.proof-card__pull {
  position: relative;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.32;
  margin: 0 0 var(--s3);
  padding-top: var(--s4);
}

.proof-card__pull::before {
  content: "\201C";
  position: absolute;
  top: 0;
  left: -2px;
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 1;
  color: var(--clay);
}

.proof-card blockquote {
  margin: 0 0 var(--s4);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.proof-card__by {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.proof-card__avatar {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bone-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.proof-card__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-card__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.proof-card__meta strong { font-weight: 600; font-size: 15px; }
.proof-card__meta span { font-size: 13px; color: var(--ink-faint); }

/* ===================== BEFORE / AFTER ===================== */
.ba {
  margin-top: var(--s5);
  border-top: 1px solid var(--line);
}

.ba__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ba__cell {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.4;
}

/* the single clay line that divides who you are from who you could be */
.ba__cell--now {
  color: var(--ink-soft);
  border-right: 1px solid rgba(192, 116, 74, 0.45);
}

.ba__cell--after {
  color: var(--ink);
  font-family: var(--serif);
}

.ba__head .ba__cell {
  padding-top: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}

.ba__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ba__head .ba__cell--now .ba__label { color: var(--ink-faint); }
.ba__head .ba__cell--after .ba__label { color: var(--clay); }

/* ===================== BLOG ===================== */
.btn--sm { padding: 10px 20px; font-size: 14px; }

.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s6);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}

.post-card:hover { transform: translateY(-3px); border-color: rgba(36, 58, 49, 0.4); }

.post-card__date {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s2);
}

.post-card__title { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: var(--s2); }
.post-card__excerpt { color: var(--ink-soft); margin: 0 0 var(--s3); }
.post-card__more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }

.crumbs { font-size: 13px; color: var(--ink-faint); margin-bottom: var(--s4); }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.article__title { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; margin-bottom: var(--s3); }
.article__meta { font-size: 14px; color: var(--ink-faint); margin-bottom: var(--s6); }

.prose > * + * { margin-top: var(--s3); }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: var(--s6); }
.prose h3 { font-size: 20px; margin-top: var(--s5); }
.prose p { font-size: 18px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.4em 0; }
.prose blockquote {
  margin: var(--s4) 0;
  padding-left: var(--s3);
  border-left: 2px solid var(--clay);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}

.faq-block { margin-top: var(--s6); }
.faq-block details { border-top: 1px solid var(--line); }
.faq-block details:last-child { border-bottom: 1px solid var(--line); }
.faq-block summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: var(--s3) 0; list-style: none; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block .faq-block__a { padding: 0 0 var(--s3); color: var(--ink-soft); }

.article__cta {
  margin-top: var(--s7);
  padding: clamp(32px, 5vw, 64px);
  background: var(--accent);
  color: var(--bone);
  border-radius: var(--radius);
  text-align: center;
}
.article__cta h2 { color: var(--bone); font-size: clamp(24px, 3vw, 32px); margin-bottom: var(--s3); }
.article__cta p { color: rgba(244, 239, 230, 0.82); margin: 0 auto var(--s4); max-width: 48ch; }
.article__cta .btn { background: var(--bone); color: var(--ink); }

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* Staggered children (case tiles, method phases, proof bar) */
.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: var(--stagger); }
.stagger.is-visible > *:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
.stagger.is-visible > *:nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
.stagger.is-visible > *:nth-child(5) { transition-delay: calc(var(--stagger) * 4); }
.stagger.is-visible > *:nth-child(6) { transition-delay: calc(var(--stagger) * 5); }
.stagger.is-visible > *:nth-child(7) { transition-delay: calc(var(--stagger) * 6); }
.stagger.is-visible > *:nth-child(8) { transition-delay: calc(var(--stagger) * 7); }

/* Diagram draw-in */
.diagram .d-solid,
.diagram .d-accent {
  transition: stroke-dashoffset var(--dur-slow) var(--ease);
}

.diagram .d-dash {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}

.diagram.is-drawn .d-dash { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stagger > * { opacity: 1; transform: none; transition: none; }
  .diagram .d-dash { opacity: 1; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--s5); }

  .split { grid-template-columns: 1fr; gap: var(--s4); }
  .split__aside { position: static; }
  .vcards { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
  .quote-cards { grid-template-columns: 1fr; }
  .leadgen { grid-template-columns: 1fr; gap: var(--s5); }
  .post-list { grid-template-columns: 1fr; }
  .media { grid-template-columns: 1fr; gap: var(--s4); }
  .media__img img { max-height: 70vh; }
  .proof-grid { column-count: 2; }
}

@media (max-width: 600px) {
  .proof-grid { column-count: 1; }
}

@media (max-width: 560px) {
  .bullets { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  body { font-size: 17px; }

  .section { padding: var(--s7) 0; }

  /* Copy spans more of the image on narrow screens, so wash a touch harder */
  .hero__bg::after { opacity: 0.62; }
  .hero__bg img { object-position: 82% 42%; } /* keep Tom in frame on mobile */
  .hero__inner { padding-top: var(--s4); padding-bottom: var(--s4); }

  /* Tighter hero rhythm on mobile */
  .hero__headline { margin-bottom: var(--s3); }
  .hero__sub { margin-bottom: var(--s3); }
  .cta-wrap { margin-top: var(--s4); }

  .btn--nav { white-space: nowrap; padding: 10px 16px; font-size: 13px; }

  /* Full-width CTAs on mobile (excluding the compact header buttons) */
  .btn:not(.btn--nav):not(.btn--sm) { display: block; width: 100%; text-align: center; }
  .cta-buttons { flex-direction: column; align-items: stretch; }

  /* Props: icon above label, kept as three columns at the bottom */
  .hprops li {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 13px;
    padding: var(--s3) 6px;
  }
  .hprops svg { width: 20px; height: 20px; }

  .tiles { grid-template-columns: 1fr; }

  .ba__cell { padding: var(--s2); font-size: 14px; }

  .proofbar { gap: var(--s3); }

  .footer__cols { grid-template-columns: 1fr 1fr; }

  .footer__base { flex-direction: column; gap: var(--s1); }
}

@media (max-width: 480px) {
  .proofbar { grid-template-columns: 1fr; gap: var(--s5); }
  .brand__word { display: none; } /* mark only, to make room for the CTA */
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
}
