/* Chris Latham: Business Improvement Assessment landing pages
   Shared by /operations/ and /growth/ */

:root {
  --paper: #fff9ec;
  --shadow: #e8e2d4;
  --ink: #1a1710;
  --ink-2: #554e43;
  --magenta: #b60059;
  --magenta-dark: #8f0046;
  --hot: #e8026f;
  --teal: #006876;
  --teal-dark: #00525d;
  --teal-bright: #03919f;
  --crimson: #b0223e;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.75rem, 7.5vw, 6rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1 { font-size: clamp(2.3rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0; max-width: 62ch; }

a { color: var(--teal); text-underline-offset: 3px; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.label {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: var(--teal);
}

.lede { font-size: 1.1875rem; color: var(--ink-2); }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 1.05rem 1.6rem;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn--primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--primary:hover { background: var(--magenta-dark); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { font-size: .9375rem; padding: .75rem 1.1rem; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shadow);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.brand span {
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
  padding-left: .75rem; border-left: 1px solid var(--shadow);
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.nav a:not(.btn):hover { color: var(--magenta); }

@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .brand img { height: 26px; }
  .site-header .btn--small { font-size: .875rem; padding: .65rem .85rem; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-block: 1rem 1.5rem; }
.hero .lede { margin-bottom: 1rem; }
.hero__offer { margin-bottom: 2rem; max-width: 56ch; }
.hero__offer strong { color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.price-tag {
  font-family: var(--f-display);
  display: flex; flex-direction: column; line-height: 1.2;
}
.price-tag b { font-size: 1.5rem; }
.price-tag small { font-size: .875rem; color: var(--ink-2); font-family: var(--f-body); }
.fine { font-size: .875rem; color: var(--ink-2); margin-top: 1.25rem; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- Trace (signature element) ---------- */

.trace {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--shadow), 8px 8px 0 2px var(--ink);
  overflow: hidden;
}
.trace__head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 1.25rem;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono); font-size: .8125rem;
}
.trace__live { display: inline-flex; align-items: center; gap: .5rem; color: #8fe3ea; }
.trace__live::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--teal-bright);
  animation: pulse 1.6s ease-in-out infinite;
}
.trace__list { list-style: none; margin: 0; padding: .5rem 0; position: relative; }
.trace__list::before {
  content: ""; position: absolute; left: 2.15rem; top: 1.4rem; bottom: 1.4rem;
  border-left: 2px dashed var(--shadow);
}
.trace__row {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem 3.5rem 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  font-size: .9375rem;
  opacity: 0;
  animation: row-in .45s ease forwards;
  animation-delay: calc(var(--i) * 0.55s + .3s);
}
.trace__dot {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--teal); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal);
  justify-self: center; z-index: 1;
}
.trace__time { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.trace__what b { display: block; font-weight: 600; line-height: 1.3; }
.trace__what span { font-size: .8125rem; color: var(--ink-2); }
.trace__tool {
  font-family: var(--f-mono); font-size: .75rem;
  padding: .25rem .55rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--shadow); color: var(--ink-2);
  white-space: nowrap;
}
.trace__row--break { background: #fdeef1; }
.trace__row--break .trace__dot { background: var(--crimson); box-shadow: 0 0 0 2px var(--crimson); }
.trace__row--break .trace__time,
.trace__row--break .trace__what b { color: var(--crimson); }
.trace__row--break .trace__tool { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.trace__row--break::after {
  content: ""; position: absolute; inset: 0;
  border-left: 4px solid var(--crimson);
  pointer-events: none;
}
.trace__row--lost { opacity: 0; }
.trace__row--lost .trace__dot { background: #fff; box-shadow: 0 0 0 2px var(--shadow); }
.trace__row--lost .trace__what b,
.trace__row--lost .trace__time { color: #a39b8c; }
.trace__row--lost .trace__tool { border-style: dashed; color: #a39b8c; }
.trace__foot {
  padding: 1rem 1.25rem;
  border-top: 2px dashed var(--shadow);
  font-size: .9375rem;
  opacity: 0;
  animation: row-in .45s ease forwards;
  animation-delay: calc(var(--i) * 0.55s + .3s);
}
.trace__foot b { color: var(--crimson); }

@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 480px) {
  .trace__row { grid-template-columns: 1.5rem 1fr auto; }
  .trace__time { display: none; }
  .trace__list::before { left: 2rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--shadow); }
.section--tint { background: #fbf3e2; border-block: 1px solid var(--shadow); }
.section--dark { background: var(--teal); color: var(--paper); }
.section--dark .label { color: #8fe3ea; }
.section--dark a { color: #fff; }

.section__head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); display: grid; gap: 1rem; }
.section__head .lede { max-width: 58ch; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.inline-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.inline-cta p { color: var(--ink-2); font-size: .9375rem; }

/* ---------- Break finder ---------- */

.pipeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem; position: relative;
}
.pipeline::before {
  content: ""; position: absolute; left: 1.5rem; right: calc(25% - 1.5rem); top: 1.45rem;
  border-top: 2px solid var(--ink);
}
.stage { position: relative; }
.stage__btn {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
  text-align: left;
  font: inherit; color: inherit;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
.stage__node {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink);
  font-family: var(--f-mono); font-size: .875rem; font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  position: relative; z-index: 1;
}
.stage__card {
  flex: 1; width: 100%;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1.25rem;
  background: #fff;
  display: grid; gap: .5rem; align-content: start;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.stage__card .label { color: var(--ink-2); }
.stage__card p { font-size: 1rem; line-height: 1.45; font-weight: 500; }
.stage__toggle {
  margin-top: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--magenta);
  display: inline-flex; align-items: center; gap: .45rem;
}
.stage__toggle::before {
  content: ""; width: 1.05rem; height: 1.05rem; border-radius: 4px;
  border: 2px solid currentColor; display: inline-block;
}
.stage__btn:hover .stage__card { box-shadow: 4px 4px 0 var(--ink); }
.stage__btn[aria-pressed="true"] .stage__node {
  background: var(--crimson); border-color: var(--crimson); color: #fff; transform: scale(1.08);
}
.stage__btn[aria-pressed="true"] .stage__card {
  border-color: var(--crimson); background: #fdeef1; box-shadow: 4px 4px 0 var(--crimson);
}
.stage__btn[aria-pressed="true"] .stage__toggle { color: var(--crimson); }
.stage__btn[aria-pressed="true"] .stage__toggle::before {
  background: var(--crimson) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/80% no-repeat;
}

.verdict {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: var(--ink); color: var(--paper);
  min-height: 5.25rem;
}
.verdict__count { font-family: var(--f-mono); font-size: .875rem; color: #8fe3ea; display: block; margin-bottom: .2rem; }
.verdict__text { font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; max-width: 48ch; }
.verdict .btn { box-shadow: 3px 3px 0 var(--hot); }
.verdict .btn[hidden] { display: none; }

@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline::before { display: none; }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .stage__btn { flex-direction: row; align-items: stretch; }
  .stage__node { flex: none; }
}

/* ---------- Before / after ---------- */

.switch {
  display: inline-flex; padding: 4px; gap: 4px;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  margin-bottom: 1.5rem;
}
.switch button {
  font: 600 1rem var(--f-display);
  border: 0; border-radius: 999px; padding: .65rem 1.4rem;
  background: none; color: var(--ink); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.switch button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.switch button[data-state="after"][aria-selected="true"] { background: var(--teal); }

.state {
  border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 2px solid var(--ink);
  min-height: 15rem;
}
.state[hidden] { display: none; }
.state--before { background: #fff; border-style: dashed; }
.state--after { background: var(--teal); color: var(--paper); border-color: var(--teal); }
.state h3 { margin-bottom: 1rem; }
.state ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.state li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; line-height: 1.45; }
.state--before li::before { content: "?"; font: 700 .875rem var(--f-mono); color: var(--crimson); padding-top: .15rem; }
.state--after li::before { content: "✓"; font-weight: 700; color: #8fe3ea; }
.honest { margin-top: 1.25rem; font-size: .9375rem; color: var(--ink-2); }

/* ---------- Method ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; display: grid; gap: .75rem; align-content: start; }
.steps li::before {
  content: counter(step);
  font: 600 3.5rem/1 var(--f-display);
  color: var(--magenta);
  letter-spacing: -0.04em;
}
.steps p { color: var(--ink-2); }
.path {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  font-family: var(--f-mono); font-size: .75rem;
}
.path span { padding: .25rem .55rem; border-radius: 6px; background: #fff; border: 1px solid var(--shadow); }
.path i { font-style: normal; color: var(--teal-bright); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Offer ---------- */

.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

.price-card {
  background: var(--ink); color: var(--paper);
  border-radius: 16px; padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid; gap: 1.5rem;
  position: sticky; top: 6rem;
}
.price-card__amount { font: 600 clamp(3.5rem, 7vw, 5rem)/1 var(--f-display); letter-spacing: -0.04em; }
.price-card__amount small { font-size: 1rem; letter-spacing: 0; font-weight: 500; color: #cfc8b9; margin-left: .35rem; }
.facts { margin: 0; display: grid; gap: .9rem; }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-top: .9rem; border-top: 1px solid #3a352b; }
.facts dt { font-family: var(--f-mono); font-size: .8125rem; color: #8fe3ea; padding-top: .15rem; }
.facts dd { margin: 0; }
.price-card .btn { box-shadow: 4px 4px 0 var(--hot); }
.price-card .assure { font-size: .875rem; color: #cfc8b9; }
@media (max-width: 860px) { .price-card { position: static; } }

.tabs [role="tablist"] { display: flex; gap: .25rem; border-bottom: 2px solid var(--ink); }
.tabs [role="tab"] {
  font: 600 1rem var(--f-display);
  padding: .8rem 1.25rem; border: 2px solid transparent; border-bottom: 0;
  border-radius: 10px 10px 0 0; background: none; color: var(--ink-2); cursor: pointer;
  margin-bottom: -2px;
}
.tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--ink); border-color: var(--ink); border-bottom: 2px solid #fff; }
.tabs [role="tabpanel"] {
  background: #fff; border: 2px solid var(--ink); border-top: 0;
  border-radius: 0 0 14px 14px; padding: clamp(1.25rem, 3vw, 2rem);
}
.tabs [role="tabpanel"][hidden] { display: none; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: .75rem;
  padding: .95rem 0; border-bottom: 1px solid var(--shadow); line-height: 1.45;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/70% no-repeat;
}
.checklist--no li::before {
  background: var(--shadow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3.5 3.5 5 5m0-5-5 5' fill='none' stroke='%23554e43' stroke-width='1.8'/%3E%3C/svg%3E") center/70% no-repeat;
}
.checklist b { font-weight: 600; }
.tab-note { margin-top: 1rem; font-size: .9375rem; color: var(--ink-2); }

/* ---------- Case study ---------- */

.case {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.case__main { padding: clamp(1.5rem, 3.5vw, 2.75rem); display: grid; gap: 1.5rem; align-content: start; }
.case__who { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.case__who h3 { font-size: 1.6rem; }
.case__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font-family: var(--f-mono); font-size: .75rem;
  padding: .3rem .65rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--shadow); color: var(--ink-2);
}
.chip--flag { background: #fdeef1; border-color: #f2c3cd; color: var(--crimson); }
.case__block h4 { font: 600 1rem var(--f-display); margin: 0 0 .5rem; }
.case__block p { color: var(--ink-2); }
.case__block ol { margin: 0; padding-left: 1.25rem; color: var(--ink-2); display: grid; gap: .35rem; }
.case__block ol li::marker { font-family: var(--f-mono); color: var(--magenta); }
.case__side {
  background: var(--paper); border-left: 2px solid var(--ink);
  padding: clamp(1.5rem, 3.5vw, 2.75rem); display: grid; gap: 1.75rem; align-content: start;
}
.metric { display: grid; gap: .6rem; }
.metric__name { font-weight: 600; line-height: 1.35; }
.metric__note { font-size: .8125rem; color: var(--ink-2); }
.bar { display: grid; grid-template-columns: 3.5rem 1fr 3rem; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .8125rem; }
.bar__track { height: .7rem; border-radius: 999px; background: var(--shadow); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--v); border-radius: inherit; background: #a39b8c; }
.bar--after .bar__fill { background: var(--teal); }
.bar--after b { color: var(--teal); }
.bar--good-down.bar--after .bar__fill { background: var(--teal); }
.case blockquote {
  margin: 0; padding: 1.25rem 0 0; border-top: 2px solid var(--ink);
  font: 500 1.2rem/1.4 var(--f-display); letter-spacing: -0.01em;
}
.case blockquote footer { font: 400 .875rem var(--f-body); color: var(--ink-2); margin-top: .75rem; }
.case__tag { justify-self: start; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case__side { border-left: 0; border-top: 2px solid var(--ink); }
}

/* ---------- Fit ---------- */

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.fit__col { border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.fit__col h3 { margin-bottom: .75rem; }
.fit__col--yes { background: #fff; border: 2px solid var(--teal); }
.fit__col--yes h3 { color: var(--teal); }
.fit__col--no { border: 2px dashed #b9b09f; }
.fit__col--no h3 { color: var(--ink-2); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__photo { position: relative; }
.about__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: 16px; border: 2px solid var(--ink);
}
.about__photo::after {
  content: ""; position: absolute; inset: 0; transform: translate(12px, 12px);
  border-radius: 16px; background: var(--magenta); z-index: -1;
}
.about__body { display: grid; gap: 1.25rem; }
.about__body p { color: var(--ink-2); }
.about__body .label { color: var(--teal); }
.about__body .pull {
  font: 500 clamp(1.3rem, 2.2vw, 1.6rem)/1.3 var(--f-display); color: var(--ink);
  letter-spacing: -0.01em; padding-left: 1.25rem; border-left: 4px solid var(--magenta);
}
.skills { display: flex; flex-wrap: wrap; gap: .5rem; }
.skills .chip { font-size: .8125rem; background: #fff; color: var(--ink); }
.about__photo { isolation: isolate; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 22rem; }
}

/* ---------- Next steps ---------- */

.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
  counter-reset: t;
}
.timeline li { counter-increment: t; position: relative; padding-top: 3.5rem; display: grid; gap: .5rem; align-content: start; }
.timeline li::before {
  content: counter(t);
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1.05rem var(--f-display);
  background: var(--paper); border: 2px solid var(--ink); z-index: 1;
}
.timeline li::after {
  content: ""; position: absolute; top: 1.25rem; left: 2.5rem; right: -1.25rem;
  border-top: 2px dashed #b9b09f;
}
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.timeline p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .timeline li::after { display: none; }
}
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid #cfc6b4; }
.faq details:first-of-type { border-top: 1px solid #cfc6b4; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0;
  font: 600 1.15rem/1.35 var(--f-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center/12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/2px 12px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg); background-color: var(--ink);
  background-image:
    linear-gradient(var(--paper), var(--paper)), linear-gradient(var(--paper), var(--paper));
}
.faq summary:hover { color: var(--magenta); }
.faq details p { padding-bottom: 1.5rem; color: var(--ink-2); }

/* ---------- Request (final CTA + form) ---------- */

.request .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.request h2 { max-width: 16ch; margin-block: 1rem 1.25rem; }
.request .lede { color: #d5ece9; }
.request__promise { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.request__promise li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; }
.request__promise li::before { content: "✓"; color: #8fe3ea; font-weight: 700; }
@media (max-width: 900px) { .request .wrap { grid-template-columns: 1fr; } }

.form-card {
  background: var(--paper); color: var(--ink);
  border-radius: 16px; border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--teal-dark);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.form-progress { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.form-progress .label { color: var(--ink-2); }
.form-progress__bar { flex: 1; max-width: 10rem; height: .4rem; border-radius: 999px; background: var(--shadow); overflow: hidden; }
.form-progress__bar span { display: block; height: 100%; width: 33.33%; background: var(--magenta); transition: width .3s ease; }

.form-step { border: 0; margin: 0; padding: 0; display: grid; gap: 1.1rem; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step legend { font: 600 1.35rem/1.25 var(--f-display); letter-spacing: -0.01em; padding: 0; margin-bottom: 1.1rem; }

.field { display: grid; gap: .4rem; }
.field label, .field .field__label { font-weight: 600; font-size: .9375rem; }
.field label small, .field .field__label small { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%;
  padding: .85rem 1rem;
  background: #fff;
  border: 2px solid #cfc6b4; border-radius: 10px;
  transition: border-color .15s ease;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(3, 145, 159, .25); }
.field [aria-invalid="true"] { border-color: var(--crimson); }
.field__error { font-size: .875rem; color: var(--crimson); min-height: 0; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .6rem 1rem; border-radius: 999px;
  background: #fff; border: 2px solid #cfc6b4; font-weight: 500; font-size: .9375rem;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--hot); outline-offset: 2px; }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .5rem; }
.form-nav .btn--primary { margin-left: auto; }
.link-btn { background: none; border: 0; font: 600 .9375rem var(--f-body); color: var(--ink-2); cursor: pointer; padding: .5rem 0; text-decoration: underline; text-underline-offset: 3px; }
.privacy { font-size: .8125rem; color: var(--ink-2); }
.privacy a { color: var(--teal); }

.form-done { display: grid; gap: 1rem; text-align: left; }
.form-done[hidden] { display: none; }
.form-done:focus, .form-step legend:focus { outline: none; }
.form-done__mark {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 700;
}
.form-done h3 { font-size: 1.6rem; }
.form-done p { color: var(--ink-2); }

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

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #cfc8b9; padding-block: 3.5rem 6rem; font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-end; }
.site-footer img { height: 34px; width: auto; margin-bottom: 1rem; }
.site-footer p { max-width: none; }
.site-footer .motto { font: 500 1.15rem var(--f-display); color: var(--paper); margin-top: .35rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: #cfc8b9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 2px solid var(--ink);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .price-tag b { font-size: 1.2rem; }
.sticky-cta .btn { flex: 1; max-width: 16rem; box-shadow: none; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Marketing & Systems Assessment pages (fix-first / handoffs)
   ========================================================= */

/* Hero audience line */
.hero__for { font-weight: 600; margin-bottom: 1rem; }

/* Trace: steps that depend on the owner */
.trace__row--you { background: #fdeaf3; }
.trace__row--you .trace__dot { background: var(--magenta); box-shadow: 0 0 0 2px var(--magenta); }
.trace__row--you .trace__what b { color: var(--magenta); }
.trace__row--you .trace__tool { background: var(--magenta); border-color: var(--magenta); color: #fff; font-weight: 700; }
.trace__row--you .trace__time { color: var(--magenta); }
.trace__foot em { font-style: normal; color: var(--magenta); font-weight: 600; }

/* Three-card version of the pipeline */
.pipeline--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pipeline--3::before { right: calc(33.333% - 1.5rem); }
@media (max-width: 900px) { .pipeline--3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) and (min-width: 561px) {
  .pipeline--3 .stage__btn { flex-direction: row; align-items: stretch; }
  .pipeline--3 .stage__node { flex: none; }
}
.section__after { margin-top: 2rem; max-width: 60ch; color: var(--ink-2); }
.section__after strong { color: var(--ink); }

/* Plain white panel (used where the old page had tabs) */
.panel {
  background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.panel .tab-note { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--shadow); }

/* Refund promise inside the price card */
.promise {
  border: 1px dashed #5b5547; border-radius: 10px; padding: 1rem 1.1rem;
  display: grid; gap: .35rem;
}
.promise b { font-family: var(--f-display); font-size: 1.05rem; color: #fff; }
.promise span { font-size: .875rem; color: #cfc8b9; }

/* Client work */
.about--top { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.work { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }
.work__card {
  background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 1.25rem; align-content: start;
}
.work__card h3 { font-size: 1.45rem; }
.work__tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.work__tools i { font-style: normal; color: var(--teal-bright); font-family: var(--f-mono); font-size: .8125rem; }
.work__steps { margin: 0; display: grid; gap: 1rem; }
.work__steps div { display: grid; gap: .25rem; padding-top: 1rem; border-top: 1px solid var(--shadow); }
.work__steps dt { font: 600 .9375rem var(--f-display); }
.work__steps dd { margin: 0; color: var(--ink-2); line-height: 1.5; }
.work__steps .work__result dt { color: var(--teal); }
.work__steps .work__result dd strong { color: var(--ink); font-weight: 600; }
.caveat { font-size: .875rem; color: var(--ink-2); margin-top: .35rem; }

/* Next-step services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
.service {
  border: 2px solid var(--ink); border-radius: 14px; background: var(--paper);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex; flex-direction: column; gap: .75rem;
}
.service h3 { font-size: 1.2rem; }
.service p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.service__meta {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline;
  padding-top: .9rem; border-top: 1px solid var(--shadow);
}
.service__meta b { font: 600 1.3rem var(--f-display); letter-spacing: -0.02em; }
.service__meta span { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.illustration {
  border: 1px dashed #b9b09f; border-radius: 10px; padding: .85rem 1rem;
  font-size: .9rem; color: var(--ink-2); line-height: 1.5;
}
.illustration .label { display: block; margin-bottom: .25rem; color: var(--ink-2); }
.terms { margin-top: 1.5rem; max-width: 50rem; }
.terms summary {
  cursor: pointer; font: 600 1rem var(--f-display); color: var(--ink);
  padding: .5rem 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #b9b09f;
}
.terms p { color: var(--ink-2); font-size: .9375rem; margin-top: .75rem; }

/* Fit + FAQ side by side */
.fit-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .fit-faq { grid-template-columns: 1fr; } }
.fit-faq__intro { display: grid; gap: 1.25rem; }
.fit-faq__intro p { color: var(--ink-2); }
.need {
  border-left: 4px solid var(--teal); padding: .25rem 0 .25rem 1.1rem; display: grid; gap: .4rem;
}
.need h3 { font-size: 1.05rem; }
.need p { font-size: 1rem; }

/* Single-step form */
.form-single { display: grid; gap: 1.1rem; }
.form-single .field textarea { min-height: 5.5rem; }
.form-single .btn { width: 100%; }
.request__note { margin-top: 2rem; font-size: .9375rem; color: #d5ece9; max-width: 46ch; }

/* Stacked steps inside a panel */
.steps--stack { grid-template-columns: 1fr; gap: 1.5rem; }
.steps--stack li { grid-template-columns: 2.75rem 1fr; column-gap: 1rem; row-gap: .5rem; }
.steps--stack li::before { font-size: 2.25rem; grid-row: span 3; }
.steps--stack li > * { grid-column: 2; }
.steps--stack li:first-child { border-top: 0; padding-top: 0; }
.service .label { font-size: .8125rem; color: var(--teal); line-height: 1.4; }
.fit-faq__intro .label { color: var(--teal); }
.sticky-cta .price-tag small { white-space: nowrap; }
@media (max-width: 560px) {
  .steps--stack li { grid-template-columns: 1.75rem 1fr; column-gap: .6rem; }
  .steps--stack li::before { font-size: 1.75rem; }
}
