/* ==========================================================================
   Chiefmate — site styles v1
   Layout: 12-column grid, 1200px container, left-aligned, type-led.
   Paper pages; two ink bands (independence statement, contact + footer).
   The yellow square is the only ornament: the eyebrow mark, the end of the
   process track, and the option a visitor chooses in the form.
   Tokens follow "Chiefmate — Brand Guidelines v1", 05 Handoff.
   ========================================================================== */

/* Inter, self-hosted (OFL). No Google Fonts request from the live site:
   German courts have fined sites for sending visitor IPs to Google Fonts. */
@font-face {
  font-family: "InterVariable";
  src: url("assets/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVariable";
  src: url("assets/fonts/InterVariable-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colour */
  --c-ink: #0B0B0B;
  --c-paper: #FFFFFF;
  --c-signal: #F2B100;
  --c-grey-600: #6B6B6B;
  --c-grey-400: #8C8C8C;
  --c-line: #E6E6E6;
  --c-surface: #F5F5F5;
  --c-ink-line: #2B2B2B;   /* hairline on ink */
  --c-ink-hover: #4D4D4D;  /* hover border on ink */

  /* Type */
  --font: "InterVariable", "Inter", Arial, sans-serif;

  /* Space: 8px grid */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;

  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(80px, 10vw, 128px);
  --header-h: 72px;

  color-scheme: light;
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6111; /* 29 / 18 */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paints the phone status-bar band above the sticky header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--c-paper);
  z-index: 60;
}

[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, figure, fieldset, legend { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 600; color: var(--c-ink); }

:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
}
.band--ink :focus-visible { outline-color: var(--c-signal); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 100;
  padding: var(--s1) var(--s2);
  background: var(--c-ink);
  color: var(--c-paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-block: var(--section-y); }
.section--ruled { padding-top: 0; }
.section--ruled .section__inner {
  border-top: 1px solid var(--c-line);
  padding-top: var(--section-y);
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s5);
}
.split__head {
  grid-column: 1 / span 5;
  display: grid;
  gap: var(--s3);
  align-content: start;
  min-width: 0;
}
.split__body {
  grid-column: 7 / span 6;
  display: grid;
  gap: var(--s4);
  align-content: start;
  min-width: 0;
}

@media (max-width: 960px) {
  .split__head,
  .split__body { grid-column: 1 / -1; }
}

/* ---------- Type ---------- */

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-grey-600);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--c-signal);
}

.h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.h-large {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.107;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.333;
  font-weight: 600;
}

.label {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.prose {
  font-size: clamp(17px, 1.5vw, 18px);
  line-height: 1.6111;
  color: var(--c-grey-600);
  max-width: 34em;
}

/* ---------- Buttons and links ---------- */

.arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 150ms ease-out;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 0;
  border-radius: 0;
  background: var(--c-ink);
  color: var(--c-paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.btn .arrow { color: var(--c-signal); }
.btn:hover .arrow,
.btn:focus-visible .arrow { transform: translateX(4px); }

.btn--sm {
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 20px;
}

.btn--on-ink {
  background: var(--c-paper);
  color: var(--c-ink);
}
.btn--on-ink .arrow { color: var(--c-ink); }

.btn:disabled {
  background: var(--c-grey-400);
  cursor: not-allowed;
}
.btn:disabled .arrow { display: none; }

.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  justify-self: start;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link:hover .arrow,
.link:focus-visible .arrow { transform: translateX(4px); }

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

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: var(--header-h);
}

.brand { flex: none; display: block; }
.brand img { width: 160px; height: auto; } /* below 160px the yellow dot drops out on white */

.nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav__list a {
  position: relative;
  display: block;
  padding-block: var(--s1);
  font-size: 15px;
  line-height: 24px;
  color: var(--c-grey-600);
  text-decoration: none;
  transition: color 150ms ease-out;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--c-ink); }

/* Current page: 4px ink bar on the header's bottom edge */
.nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 4px;
  background: var(--c-ink);
}

/* Mobile menu: native <details>, no script needed */
.menu { display: none; }

.menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--s1) 0;
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }

.menu__bars {
  position: relative;
  width: 18px;
  height: 10px;
  border-top: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
}
.menu[open] .menu__bars {
  border: 0;
  height: 18px;
}
.menu[open] .menu__bars::before,
.menu[open] .menu__bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  background: var(--c-ink);
  transform: rotate(45deg);
}
.menu[open] .menu__bars::after { transform: rotate(-45deg); }

.menu__label-close { display: none; }
.menu[open] .menu__label-open { display: none; }
.menu[open] .menu__label-close { display: inline; }

.menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  padding-top: var(--s1);
  padding-bottom: var(--s4);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.menu__panel ul { margin-bottom: var(--s4); }

.menu__panel li a {
  display: block;
  padding-block: 14px;
  border-bottom: 1px solid var(--c-line);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
}

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

.hero {
  padding-top: clamp(80px, 11vw, 152px);
  padding-bottom: var(--section-y);
}

.hero__title {
  margin-top: var(--s4);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.0556; /* 76 / 72 */
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__title span { display: block; }

.hero__body {
  display: grid;
  gap: var(--s2);
  max-width: 640px;
  margin-top: var(--s5);
}

.hero__lead,
.hero__stance {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
}
.hero__lead { color: var(--c-grey-600); }
.hero__stance { font-weight: 600; }

.hero__actions { margin-top: var(--s5); }

/* ---------- Situations ---------- */

.section-title { max-width: 32ch; }

.symptoms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s6);
}

.symptoms li {
  padding-top: var(--s3);
  border-top: 1px solid var(--c-ink);
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); }
}
@media (max-width: 560px) {
  .symptoms { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); margin-top: var(--s5); }
  .symptoms li { font-size: 18px; line-height: 28px; }
}

/* ---------- Discovery: the report ---------- */

.report { border-top: 2px solid var(--c-ink); }

.report li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s2);
  align-items: baseline;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--c-line);
}

.report__n { color: var(--c-grey-400); }

.note { color: var(--c-grey-600); }

/* ---------- Ink band ---------- */

.band--ink {
  background: var(--c-ink);
  color: var(--c-paper);
}

/* ---------- Independence ---------- */

.indep {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s4);
  align-items: end;
}
.indep__title { grid-column: 1 / span 7; }
.indep__body {
  grid-column: 8 / span 5;
  display: grid;
  gap: var(--s2);
  min-width: 0;
}
.indep__body p:first-child {
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
}
.indep__body p + p { color: var(--c-grey-400); }

@media (max-width: 960px) {
  .indep__title,
  .indep__body { grid-column: 1 / -1; }
}

/* ---------- How we work: the track ---------- */

.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--s4);
  margin-top: var(--s6);
  border-top: 1px solid var(--c-ink);
}

/* End mark: the process has a planned end */
.track::after {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--c-signal);
}

.track li {
  position: relative;
  display: grid;
  gap: var(--s1);
  align-content: start;
  padding-top: var(--s4);
  min-width: 0;
}
.track li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 12px;
  background: var(--c-ink);
}

.track__n { color: var(--c-grey-400); }
.track__name { margin-top: var(--s1); }
.track p {
  font-size: 17px;
  line-height: 26px;
  color: var(--c-grey-600);
}

@media (max-width: 900px) {
  .track {
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--s5);
    padding-bottom: var(--s4);
    border-top: 0;
    border-left: 1px solid var(--c-ink);
  }
  .track::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: -8px;
  }
  .track li {
    padding: 0 0 var(--s4) var(--s4);
  }
  .track li::before {
    top: 8px;
    width: 12px;
    height: 1px;
  }
  .track__name { margin-top: 0; }
}

/* ---------- Experts: the case, drawn to scale ---------- */

.case {
  display: grid;
  gap: var(--s4);
}

.case__chart {
  display: grid;
  gap: var(--s3);
  padding-top: var(--s4);
  border-top: 1px solid var(--c-line);
}

.case__row {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  row-gap: var(--s1);
  align-items: baseline;
}

.case__key { color: var(--c-grey-600); }

.case__val {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.case__track {
  position: relative;
  grid-column: 1 / -1;
  height: 16px;
  background: var(--c-surface);
}

.case__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
}
.case__bar--before { background: var(--c-grey-400); }
.case__bar--after { background: var(--c-ink); }

.case__axis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  font-size: 12px;
  line-height: 16px;
  color: var(--c-grey-400);
  font-variant-numeric: tabular-nums;
}
.case__axis span:nth-child(2) { text-align: center; }
.case__axis span:nth-child(3) { text-align: right; }

/* ---------- Provider accountability: founder ---------- */

.founder {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: var(--s4);
  align-items: end;
}

/* Portrait: grayscale, 4:5, highlights capped at the surface tone */
.portrait {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--c-surface);
}

.founder__text {
  display: grid;
  gap: var(--s2);
  color: var(--c-grey-600);
}

@media (max-width: 480px) {
  .founder { grid-template-columns: 120px minmax(0, 1fr); gap: var(--s3); }
}

/* ==========================================================================
   Technical Discovery page
   ========================================================================== */

.band--surface { background: var(--c-surface); }

/* Placeholder for numbers still to be confirmed */
.tbd {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--c-grey-400);
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* What you get: the report, drawn as a page */
.sheet {
  display: grid;
  gap: var(--s4);
  padding: clamp(24px, 4vw, 48px);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-ink);
}

.sheet li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: var(--s2);
  row-gap: 12px;
  align-items: baseline;
}

.sheet__n { color: var(--c-grey-400); }

.sheet__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.sheet__lines {
  grid-column: 2;
  display: grid;
  gap: var(--s1);
}
.sheet__lines span {
  display: block;
  width: var(--w, 100%);
  height: 8px;
  background: var(--c-line);
}

/* How it runs: the track, read top to bottom */
.track--vertical {
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--s6);
  padding-bottom: var(--s5);
  border-top: 0;
  border-left: 1px solid var(--c-ink);
}
.track--vertical::after {
  top: auto;
  right: auto;
  bottom: 0;
  left: -8px;
}
.track--vertical li {
  grid-template-columns: 40px minmax(0, 280px) minmax(0, 1fr);
  column-gap: var(--s4);
  align-items: baseline;
  padding: var(--s3) 0 var(--s3) var(--s4);
}
.track--vertical li::before {
  top: 40px;
  width: 12px;
  height: 1px;
}
.track--vertical .track__name { margin-top: 0; }

.from-you {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s2);
  margin-top: var(--s5);
  color: var(--c-grey-600);
}
.from-you .label { color: var(--c-ink); }

@media (max-width: 900px) {
  .track--vertical { margin-top: var(--s5); }
  .track--vertical li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--s1);
    padding: 0 0 var(--s4) var(--s4);
  }
  .track--vertical li::before { top: 8px; }
}

/* Any outcome: six options, none chosen in advance */
.outcomes-intro {
  margin-top: var(--s5);
  color: var(--c-grey-400);
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--s3);
}

.outcomes li {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  margin: -1px 0 0 -1px;
  padding: 20px 24px;
  border: 1px solid var(--c-ink-line);
  font-size: 18px;
  line-height: 28px;
}
.outcomes li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border: 1px solid var(--c-grey-400);
}

.outcomes-close {
  display: grid;
  gap: var(--s1);
  max-width: 640px;
  margin-top: var(--s5);
}
.outcomes-close p:first-child {
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
}
.outcomes-close p + p { color: var(--c-grey-400); }

@media (max-width: 960px) {
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .outcomes { grid-template-columns: minmax(0, 1fr); }
}

/* What Discovery is not */
.nots li {
  position: relative;
  padding: 20px 0 20px var(--s4);
  border-bottom: 1px solid var(--c-line);
  font-size: 18px;
  line-height: 28px;
}
.nots li:first-child { border-top: 1px solid var(--c-ink); }
.nots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 33px;
  width: 12px;
  height: 2px;
  background: var(--c-ink);
}

/* Who leads it: two seats */
.seats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
  max-width: 480px;
}

.seat {
  display: grid;
  gap: var(--s2);
  align-content: start;
}

.seat__slot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  background: var(--c-surface);
}
.seat__slot::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1px solid var(--c-grey-400);
}

.seat figcaption {
  font-size: 15px;
  line-height: 24px;
  color: var(--c-grey-600);
}
.seat figcaption strong { display: block; }

/* Questions */
.faq { border-top: 1px solid var(--c-ink); }

.faq__item {
  display: grid;
  gap: var(--s1);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--c-line);
}
.faq__item dt {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}
.faq__item dd {
  margin: 0;
  color: var(--c-grey-600);
}

/* ==========================================================================
   How we work page
   ========================================================================== */

/* Anchored sections clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + var(--s3)); }

/* Choosing the lead: six checks */
.checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s5);
  margin-top: var(--s6);
}

.checks li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: var(--s2);
  row-gap: var(--s1);
  align-content: start;
  padding-top: var(--s3);
  border-top: 1px solid var(--c-ink);
}

.checks__mark {
  width: 16px;
  height: 16px;
  margin-top: 6px;
  color: var(--c-ink);
}

.checks__name {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.checks__detail {
  grid-column: 2;
  color: var(--c-grey-600);
}

@media (max-width: 960px) {
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .checks { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); margin-top: var(--s5); }
}

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

/* Independence on paper */
.indep--light .indep__body p + p { color: var(--c-grey-600); }

/* ---------- Contact ---------- */

.contact { padding-block: var(--section-y); scroll-margin-top: var(--header-h); }

.contact__sub {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--c-grey-400);
}

.brief {
  display: grid;
  gap: var(--s5);
}

.field {
  min-width: 0;
  padding: 0;
  border: 0;
}
.field__legend {
  padding: 0;
  color: var(--c-grey-400);
}
.field__options { margin-top: var(--s2); }

.choices { display: grid; }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: -1px;
  padding: 15px 20px;
  border: 1px solid var(--c-ink-line);
  font-size: 17px;
  line-height: 24px;
  cursor: pointer;
  transition: border-color 150ms ease-out;
}
.choice:first-child { margin-top: 0; }
.choice:hover { z-index: 1; border-color: var(--c-ink-hover); }

.choice input,
.segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.choice__box {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--c-grey-400);
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.choice:has(input:checked) { z-index: 2; border-color: var(--c-paper); }
.choice input:checked + .choice__box {
  background: var(--c-signal);
  border-color: var(--c-signal);
}

.segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segment {
  position: relative;
  display: flex;
  justify-content: center;
  margin-left: -1px;
  padding: 13px 12px;
  border: 1px solid var(--c-ink-line);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
  color: var(--c-grey-400);
  cursor: pointer;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.segment:first-child { margin-left: 0; }
.segment:hover { z-index: 1; color: var(--c-paper); border-color: var(--c-ink-hover); }
.segment:has(input:checked) {
  z-index: 2;
  background: var(--c-paper);
  border-color: var(--c-paper);
  color: var(--c-ink);
}

.choice:has(input:focus-visible),
.segment:has(input:focus-visible) {
  z-index: 3;
  outline: 2px solid var(--c-signal);
  outline-offset: 3px;
}

.form-error {
  margin-top: calc(-1 * var(--s3));
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  color: var(--c-signal); /* signal on ink: 10.4:1 */
}

.brief .btn { justify-self: start; }

.booking {
  display: grid;
  gap: var(--s3);
}
.booking:focus { outline: none; }
.booking__summary { color: var(--c-grey-400); }
.booking__embed {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px dashed var(--c-ink-line);
  color: var(--c-grey-400);
}

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

.site-footer {
  background: var(--c-ink);
  color: var(--c-grey-400);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s6);
  padding-block: var(--s5);
  border-top: 1px solid var(--c-ink-line);
  font-size: 15px;
  line-height: 24px;
}

.site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}
.site-footer__brand img { width: 160px; height: auto; }

.site-footer__places {
  display: flex;
  gap: var(--s3);
}

.site-footer a {
  color: var(--c-paper);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Inline links in running text */
.track p a,
.prose a {
  color: var(--c-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Fractional CTO page
   ========================================================================== */

/* When it fits / when it isn't: two lists, tops aligned */
.fit {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s5);
}
.fit__h { align-self: end; }
.fit__h--yes    { grid-column: 1 / span 5; grid-row: 1; }
.fit__list--yes { grid-column: 1 / span 5; grid-row: 2; }
.fit__h--no     { grid-column: 7 / span 6; grid-row: 1; }
.fit__list--no  { grid-column: 7 / span 6; grid-row: 2; }

@media (max-width: 960px) {
  .fit__h--yes, .fit__list--yes, .fit__h--no, .fit__list--no {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .fit__h--no { margin-top: var(--s5); }
}

.ticks li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: var(--s2);
  align-items: start;
  padding-block: 20px;
  border-bottom: 1px solid var(--c-line);
  font-size: 18px;
  line-height: 28px;
}
.ticks li:first-child { border-top: 1px solid var(--c-ink); }
.ticks svg {
  width: 16px;
  height: 16px;
  margin-top: 6px;
  color: var(--c-ink);
}

/* What your fractional CTO leads */
.domains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s4);
  margin-top: var(--s6);
}
.domains li {
  padding-top: var(--s3);
  border-top: 1px solid var(--c-ink);
}

@media (max-width: 640px) {
  .domains { grid-template-columns: minmax(0, 1fr); row-gap: var(--s3); margin-top: var(--s5); }
}

/* Mandate: an example term sheet */
.mandate {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-ink);
}
.mandate__head {
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-grey-600);
}
.mandate__row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: var(--s2);
  row-gap: var(--s1);
  align-items: baseline;
  padding: 20px var(--s3);
  border-bottom: 1px solid var(--c-line);
}
.mandate__row:last-child { border-bottom: 0; }
.mandate__row dt { color: var(--c-grey-600); }
.mandate__row dd {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-ink);
}

/* The mandate's last term carries the end mark */
.mandate__row--end dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}
.mandate__row--end dd::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--c-signal);
}

@media (max-width: 560px) {
  .mandate__row { grid-template-columns: minmax(0, 1fr); }
}

/* How we compare */
.compare-wrap {
  margin-top: var(--s6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 24px;
}

.compare th,
.compare td {
  padding: 20px var(--s2);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}

.compare thead th {
  padding-block: var(--s2);
  border-bottom: 1px solid var(--c-ink);
  font-weight: 600;
  white-space: nowrap;
}

.compare tbody th {
  width: 28%;
  font-weight: 600;
}

.compare td { color: var(--c-grey-600); }

.compare .is-us {
  background: var(--c-surface);
  color: var(--c-ink);
  font-weight: 600;
}
.compare thead .is-us {
  background: var(--c-ink);
  color: var(--c-paper);
}

/* Keep the row names in view while the table scrolls on phones */
.compare thead th:first-child,
.compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--c-paper);
}

/* Handover statement on ink */
.indep__body--plain p:first-child { font-weight: 400; }

/* Comparison: align the row names with the text edge, equal option columns */
.compare tbody th,
.compare thead th:first-child { padding-left: 0; }
.compare thead th:not(:first-child) { width: 18%; }

/* Phones: one block per criterion, every option labelled, no sideways scroll */
@media (max-width: 640px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .compare tbody,
  .compare tr,
  .compare tbody th,
  .compare td { display: block; width: auto; }
  .compare tr {
    padding-block: 20px;
    border-bottom: 1px solid var(--c-line);
  }
  .compare tbody tr:first-child { border-top: 1px solid var(--c-ink); }
  .compare tbody th {
    position: static;
    padding: 0 0 12px;
    border: 0;
    font-size: 18px;
    line-height: 28px;
  }
  .compare td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s2);
    padding: 8px 12px;
    border: 0;
  }
  .compare td::before {
    content: attr(data-label);
    color: var(--c-grey-600);
    font-weight: 400;
  }
}

/* Email: second route next to the form, and in the footer */
.contact__mail {
  display: grid;
  gap: var(--s1);
  margin-top: var(--s3);
}
.contact__mail .label { color: var(--c-grey-400); }
.contact__mail a {
  justify-self: start;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  font-weight: 600;
  color: var(--c-paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--c-grey-600);
  overflow-wrap: anywhere;
  transition: text-decoration-color 150ms ease-out;
}
.contact__mail a:hover { text-decoration-color: var(--c-paper); }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
}

/* Keep "This quarter" on one line on narrow phones */
@media (max-width: 420px) {
  .segment {
    padding-inline: 6px;
    font-size: 15px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Experts page
   ========================================================================== */

/* One row per leader: silhouette left, dossier right */
.roster { border-top: 1px solid var(--c-ink); }

.dossier {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s4);
  padding-block: var(--s7);
  border-bottom: 1px solid var(--c-line);
}
.dossier:last-child { border-bottom: 0; }

.dossier__portrait {
  grid-column: 1 / span 4;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.dossier__portrait img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
}
.dossier__portrait figcaption {
  font-size: 14px;
  line-height: 20px;
  color: var(--c-grey-600);
}

.dossier__body {
  grid-column: 6 / span 7;
  display: grid;
  gap: var(--s3);
  align-content: start;
  min-width: 0;
}

.dossier__id { color: var(--c-grey-600); }

.dossier__summary { color: var(--c-grey-600); }

.dossier__fit {
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
}

.dossier__sub {
  margin-top: var(--s2);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

/* Selected results: the number first, then the story */
.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s3);
}
.results li {
  display: grid;
  gap: var(--s1);
  align-content: start;
  padding-top: var(--s2);
  border-top: 1px solid var(--c-ink);
}
.results__metric {
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.results p {
  font-size: 16px;
  line-height: 26px;
  color: var(--c-grey-600);
}

/* Facts: label and value rows */
.facts { margin-top: var(--s2); }
.facts > div {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  column-gap: var(--s2);
  row-gap: 4px;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px solid var(--c-line);
}
.facts > div:first-child { border-top: 1px solid var(--c-line); }
.facts dt { color: var(--c-grey-600); }
.facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

/* Open seat */
.dossier--open .dossier__body { align-content: center; }
.dossier--open .prose { max-width: 32em; }

@media (max-width: 960px) {
  .dossier { padding-block: var(--s6); }
  .dossier__portrait {
    grid-column: 1 / -1;
    max-width: 280px;
  }
  .dossier__body { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .results { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
}

/* How we choose: one sentence and a link */
.choose {
  display: grid;
  gap: var(--s3);
  max-width: 760px;
}
.choose p {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* The roster follows the discretion block directly */
.section--roster { padding-top: 0; }

/* Phones: portrait sits beside the lead label, not a full screen above it */
@media (max-width: 560px) {
  .dossier { padding-block: var(--s5); row-gap: var(--s3); }
  .dossier__portrait { max-width: 200px; }
}

/* ==========================================================================
   About page
   ========================================================================== */

/* Founder: portrait with the bio beside it */
.founder-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s5);
  align-items: end;
}
.founder-row__photo {
  grid-column: 1 / span 5;
  min-width: 0;
}
.founder-row__body {
  grid-column: 7 / span 6;
  display: grid;
  gap: var(--s3);
  align-content: end;
  min-width: 0;
}

@media (max-width: 960px) {
  .founder-row__photo { grid-column: 1 / -1; max-width: 440px; }
  .founder-row__body { grid-column: 1 / -1; }
}

/* Company line */
.company {
  display: grid;
  gap: var(--s3);
}
.company p {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 600;
}

/* Accountability: the last line is the promise, not a footnote */
.indep__body--punch p + p {
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
  color: var(--c-paper);
}

/* ==========================================================================
   Privacy page
   ========================================================================== */

.hero--legal { padding-bottom: var(--s6); }
.legal__date { color: var(--c-grey-600); }

.section--legal { padding-top: 0; }

.legal { border-top: 1px solid var(--c-ink); }

.legal__item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s4);
  row-gap: var(--s2);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--c-line);
}

.legal__title {
  grid-column: 1 / span 4;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: baseline;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.legal__title .label { color: var(--c-grey-400); }

.legal__body {
  grid-column: 6 / span 7;
  display: grid;
  gap: var(--s2);
  max-width: 68ch;
  min-width: 0;
  font-size: 17px;
  line-height: 28px;
}
.legal__body address { font-style: normal; }

.legal__list li {
  position: relative;
  padding-left: var(--s3);
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 2px;
  background: var(--c-ink);
}

/* Footer link to the current page */
.site-footer a[aria-current="page"] { color: var(--c-grey-400); }

@media (max-width: 960px) {
  .legal__title,
  .legal__body { grid-column: 1 / -1; }
}
