/* ============================================================
   FRA·ME brand system v4
   GRID   12 columns · rail = col 1–4 (labels) · main = col 5–12 (content)
   full-width modules: 4 × 3 cols or 3 × 4 cols
   RHYTHM 8px base: 8 · 16 · 24 · 32 · 48 · 64 · 128
   COLOR  black & white · mustard only as highlight
   TYPE   Inter (UI/headlines) · Instrument Serif italic (accent) · JetBrains Mono (labels)
   ============================================================ */
:root {
  --bg: #0d0d0c;
  --bg-2: #141412;
  --line: #2a2925;
  --fg: #f2efe8;
  --fg-2: #cfcbc2;
  --mute: #9a958b;   /* 6.5:1 on --bg (WCAG AA for body text) */
  --accent: #d4a72c;
  --sans: Inter,system-ui,sans-serif;
  --serif: "Instrument Serif",Georgia,serif;
  --mono: "JetBrains Mono",ui-monospace,monospace;
  --pad: clamp(20px,4vw,56px);
  --gap: clamp(16px,2vw,32px);
  --max: 1280px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 48px;
  --s8: 64px;
  --s16: 128px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* clip instead of hidden: no scroll container, sticky keeps working */
}
body {
  font-kerning: normal;
  font-feature-settings: "kern" 1,"liga" 1,"calt" 1;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
.mono {
  font-feature-settings: "kern" 1,"liga" 0,"calt" 0;
}
/* no code ligatures in the mono labels */
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* ---------- Grid ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.g {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  column-gap: var(--gap);
}
.rail {
  grid-column: 1/5;
}
.main {
  grid-column: 5/13;
}
.full {
  grid-column: 1/-1;
}
.g8 {
  display: grid;
  grid-template-columns: repeat(8,minmax(0,1fr));
  column-gap: var(--gap);
}
/* nested in .main, aligns to the 12-col grid */
.span4 {
  grid-column: span 4;
}
.span3 {
  grid-column: span 3;
}
@media(max-width:900px) {
  .g {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .rail,.main,.full {
    grid-column: 1/-1;
  }
  .g8 {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .span4,.span3 {
    grid-column: span 4;
  }
}
@media(min-width:601px) and (max-width:900px) {
  .span3 {
    grid-column: span 2;
  }
}

/* ---------- Type ---------- */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
  font-size: 1.07em;
}
/* x-height match: Inter 0.546 / Instrument Serif 0.510 */
.mono {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.mono b {
  color: var(--accent);
  font-weight: 500;
}
h2 {
  font-size: clamp(2.4rem,5vw,4.6rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}
h2 em {
  font-size: 1.07em;
}
.intro {
  color: var(--fg-2);
  font-size: 1.12rem;
  max-width: 58ch;
  margin-top: var(--s3);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .3s,border-color .3s;
}
.nav.solid {
  background: rgba(13,13,12,.9);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}
.nav .g {
  height: 64px;
  align-items: center;
}
.brand {
  grid-column: 1/5;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--fg);
}
.brand i {
  font-style: normal;
  font-weight: 400;
  color: var(--mute);
  margin: 0 .08em;
}
.nav ul {
  grid-column: 5/13;
  display: flex;
  gap: var(--s4);
  list-style: none;
  align-items: center;
  justify-content: space-between;
}
.nav ul a {
  font-size: .85rem;
  color: var(--fg-2);
}
.nav ul a:hover {
  color: var(--fg);
}
/* Nav links are orientation, like the section labels: mono caps. The CTA stays a button in Inter. */
.nav ul a:not(.cta) {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-feature-settings: "kern" 1,"liga" 0,"calt" 0;
  transition: color .25s;
}
.cta {
  white-space: nowrap;
  border: 1px solid var(--fg);
  padding: var(--s1) 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: .25s;
}
.cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg)!important;
}
@media(max-width:900px) {
  .brand {
    grid-column: 1/4;
    font-size: .85rem;
  }
  .nav ul {
    grid-column: 4/5;
    justify-content: flex-end;
  }
  .nav ul li:not(:last-child) {
    display: none;
  }
  .cta {
    padding: 6px 14px;
    font-size: .78rem;
  }
}
@media(max-width:600px) {
  .stats .span3 {
    grid-column: span 2;
  }
  .hero .g {
    row-gap: var(--s2);
  }
}

/* ---------- Sections ---------- */
.sec {
  padding: var(--s16) 0;
  border-top: 1px solid var(--line);
}
.head {
  row-gap: var(--s3);
  margin-bottom: var(--s8);
}
.head .mono {
  padding-top: .9em;
}

/* ---------- Hero (typographic) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s16) 0 var(--s8);
}
.hero>.wrap {
  width: 100%;
}
/* fix: in a flex column the centered wrap shrank to its content and broke the grid */
.hero h1 {
  grid-column: 1/-1;
  font-size: clamp(3.6rem,13.2vw,11.6rem);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.05em;
  text-transform: uppercase;
  margin-bottom: var(--s6);
  white-space: nowrap;
}
.hero h1 .l {
  display: block;
}
.hero h1 {
  text-shadow: 0 1px 0 var(--fg),0 -1px 0 var(--fg);
}
/* filled letters: +1px only at top and bottom, so cap height and baseline match the outlined letters without making them bolder */
/* manual kerning: two straight stems (M|E) read wider than the other pairs, tighten just this pair */
.hero h1 .kern-me {
  letter-spacing: -.085em;
}
.hero h1 .kern-fr {
  letter-spacing: -.052em;
}
/* measured from the font outlines: end of the F top bar to the R stem = M to E gap (0.024em) */
/* Outline via layered shadows instead of text-stroke: avoids the overlapping-contour artifacts of variable fonts (the "M" bug) */
.hero h1 .o {
  color: var(--bg);
  text-shadow: 1px 0 0 var(--fg),-1px 0 0 var(--fg),0 1px 0 var(--fg),0 -1px 0 var(--fg),1px 1px 0 var(--fg),-1px -1px 0 var(--fg),1px -1px 0 var(--fg),-1px 1px 0 var(--fg);
}
.hero .rail {
  padding-top: .5em;
}
.hero .lede {
  font-size: clamp(1.25rem,2vw,1.7rem);
  line-height: 1.32;
  font-weight: 300;
  max-width: 30ch;
}
.hero .lede b {
  font-weight: 600;
}
.stats {
  margin-top: var(--s8);
  row-gap: var(--s4);
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}
.stat .n,.fact .n {
  font-size: clamp(2.4rem,4vw,3.6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.stat .n em,.fact .n em {
  font-size: .6em;
  margin-left: .06em;
}
.n em.sp {
  margin-left: .22em;
}
.n em.tight {
  margin-left: 0;
}
.n em.mid {
  margin: 0 .02em 0 .16em;
}
/* Operators (→ +): sans, medium weight, so arrow and plus share one stroke weight; optically spaced and centred on the figures */
.n .op {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  font-size: .6em;
  margin: 0 .16em;
  vertical-align: .18em;
  letter-spacing: 0;
}
.stat p {
  color: var(--mute);
  font-size: .88rem;
  margin-top: var(--s1);
}

/* ---------- Focus fields ----------
   The rail holds a sticky frame: its four sides are the four fields,
   and the side of the field in view lights up while scrolling. */
.fields {
  align-items: start;
}
.indicator {
  position: sticky;
  top: 128px;
}
/* the index uses the rail's 4 grid columns: number in col 1, name starts on col 2 */
.findex {
  list-style: none;
}
.findex a {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  column-gap: var(--gap);
  align-items: baseline;
  padding: 10px 0;
  color: #7a766e;   /* 4.3:1, large bold text (AA ≥ 3:1) */
  transition: color .3s;
}
.findex .num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
}
.findex .num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.findex .nm {
  grid-column: 2/5;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.findex a:hover {
  color: var(--fg-2);
}
.findex a.on {
  color: var(--fg);
}
.findex a.on .num {
  color: var(--accent);
}
.findex a.on .num::after {
  transform: scaleX(1);
}
.field {
  padding: var(--s8) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.field:first-child {
  border-top: 0;
  padding-top: 0;
}
.field .mono {
  display: block;
  margin-bottom: var(--s2);
}
.field h3 {
  font-size: clamp(1.9rem,2.6vw,2.6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.field .claim {
  color: var(--fg-2);
  margin-top: var(--s2);
  max-width: 46ch;
}
@media(max-width:900px) {
  .indicator {
    display: none;
  }
}
.pull {
  grid-column: 1/-1;
  border-left: 2px solid var(--accent);
  padding-left: var(--s3);
  margin-top: var(--s6);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.25;
  color: #e7e3da;
}
.pull cite {
  display: block;
  margin-top: var(--s2);
  font-style: normal;
}

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: var(--s4) 0;
}
.ticker .row {
  display: inline-flex;
  gap: var(--s8);
  padding-right: var(--s8);
  animation: tick 40s linear infinite;
}
.ticker span {
  font-size: clamp(1.6rem,3vw,2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #7a766e;   /* 4.3:1, large bold text (AA ≥ 3:1) */
  transition: color .3s;
}
.ticker span:hover {
  color: var(--fg);
}
.ticker i {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 2rem;
  align-self: center;
}
.ticker.sub {
  border-top: 0;
  padding-top: 0;
}
.ticker.sub .row {
  animation-direction: reverse;
  animation-duration: 30s;
  gap: var(--s6);
  padding-right: var(--s6);
}
.ticker.sub span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(.9rem,1.4vw,1.1rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a958b;   /* 6.5:1, small text (AA ≥ 4.5:1) */
}
.ticker.sub i {
  font-size: 1.2rem;
}
@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}
.ticker:hover .row {
  animation-play-state: paused;
}

/* ---------- Career growth ----------
   "From craft to organization", drawn: the area is team size over time.
   Desktop shows the chart, phones get the same data as bars. */
.growth {
  margin-bottom: var(--s8);
}
.g-chart {
  width: 100%;
  height: 330px;
  display: block;
  overflow: visible;
}
.g-chart .axis {
  stroke: var(--line);
  stroke-width: 1;
}
.g-chart .guide {
  stroke: var(--line);
  stroke-dasharray: 2 4;
}
.g-chart .area {
  fill: rgba(242,239,232,.05);
}
.g-chart .past {
  fill: none;
  stroke: var(--fg-2);
  stroke-width: 1.5;
}
.g-chart .now {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
}
.g-chart text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  fill: var(--mute);
  text-transform: uppercase;
}
.g-chart text.big {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  fill: var(--fg);
  text-transform: none;
}
.g-chart text.acc {
  fill: var(--accent);
}
.g-bars {
  display: none;
  list-style: none;
}
.g-bars li {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2.2rem;
  gap: var(--s2);
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
/* bar widths = people / 25 */
.g-bars .w1 {
  --w: 4%;
}
.g-bars .w5 {
  --w: 20%;
}
.g-bars .w14 {
  --w: 56%;
}
.g-bars .w25 {
  --w: 100%;
}
.g-bars i {
  display: block;
  height: 10px;
  width: var(--w);
  min-width: 4px;
  background: var(--fg-2);
  border-radius: 2px;
}
.g-bars b {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-align: right;
}
.g-bars .now i {
  background: var(--accent);
}
.g-bars .now b,.g-bars .now .mono {
  color: var(--accent);
}
.stations {
  row-gap: var(--s4);
}
.st {
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}
.st.now {
  border-top: 2px solid var(--accent);
}
.st h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: var(--s1) 0 4px;
}
.st .role {
  color: var(--fg-2);
  font-size: .92rem;
}
.st p {
  color: var(--mute);
  font-size: .88rem;
  margin-top: var(--s1);
}
@media(max-width:900px) {
  .g-chart {
    display: none;
  }
  .g-bars {
    display: block;
  }
}
/* each station starts on the grid line of its chart segment */
.st-srh {
  grid-column: 1/2;
}
.st-ag {
  grid-column: 2/7;
}
.st-welt {
  grid-column: 7/11;
}
.st-as {
  grid-column: 11/13;
}
.st-srh h3 {
  overflow-wrap: anywhere;
}
@media(max-width:900px) {
  .st-srh,.st-ag,.st-welt,.st-as {
    grid-column: 1/-1;
  }
}
@media(min-width:601px) and (max-width:900px) {
  .st-srh,.st-ag,.st-welt,.st-as {
    grid-column: span 2;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s2);
}
.chip {
  font-family: var(--mono);
  font-size: .72rem;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 4px;
  color: #d6d2c9;
}

/* ---------- Feedback ---------- */
.themes {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: var(--s3);
  color: var(--fg-2);
  line-height: 2;
}
.themes span {
  white-space: nowrap;
}
.themes i {
  font-style: normal;
  color: var(--accent);
  margin: 0 .9em;
}
.voices {
  row-gap: var(--gap);
}
.voice {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 240px;
}
.voice q {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.24;
  quotes: "“" "”";
  text-indent: -.4em;
}
/* hanging punctuation: the opening quote sits outside the text edge */
.voice q::before {
  color: var(--accent);
}

/* ---------- About ---------- */
.about-photo {
  position: relative;
  margin: 0;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1);
}
.about-top {
  row-gap: var(--s6);
  align-items: stretch;
}
/* Desktop: photo spans exactly from the cap height of "FRA + ME" to the baseline of the last text line */
@media(min-width:901px) {
  .about-top .about-photo img {
    aspect-ratio: auto;
    height: 100%;
  }
  .about-top .main {
    display: flex;
    flex-direction: column;
  }
}
.about-top .eq,.about-top p:last-child {
  text-box: trim-both cap alphabetic;
}
@supports not (text-box:trim-both cap alphabetic) {
  .about-top .eq {
    margin-top: -.09em;
  }
  .about-top p:last-child {
    margin-bottom: -.41em;
  }
}
.eq {
  font-size: clamp(3.4rem,7.4vw,7rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .9;
}
.eq em {
  font-size: 1.05em;
}
.about-top p {
  color: var(--fg-2);
  font-size: 1.15rem;
  max-width: 40ch;
  margin-top: var(--s4);
}
.facts {
  margin-top: var(--s8);
  row-gap: var(--s6);
}
.fact {
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}
.fact h4 {
  font-size: .95rem;
  font-weight: 600;
  margin: var(--s2) 0 var(--s1);
}
.fact p {
  color: var(--mute);
  font-size: .9rem;
}

/* ---------- Contact ---------- */
.contact h2 {
  font-size: clamp(3.4rem,8vw,7.6rem);
  line-height: .92;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s6);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 10px 22px;
  border: 1px solid var(--fg);
  border-radius: 6px;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .01em;
  line-height: 1.4;
  transition: .25s;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn.primary {
  background: var(--fg);
  color: var(--bg);
}
.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
footer {
  border-top: 1px solid var(--line);
  padding: var(--s3) 0;
}
footer .rail,footer .main {
  padding: 0;
}
footer .main {
  text-align: right;
}
@media(max-width:900px) {
  footer .main {
    text-align: left;
    margin-top: var(--s1);
  }
}

/* ---------- Grid overlay (press G) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  display: none;
}
.overlay.on {
  display: block;
}
.overlay .g {
  height: 100%;
}
.overlay .g div {
  background: rgba(212,167,44,.07);
  border-inline: 1px solid rgba(212,167,44,.25);
}

/* ---------- Motion ---------- */
@media (scripting:enabled) {
  .rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1);
  }
  .rv.in {
    opacity: 1;
    transform: none;
  }
}
@media(prefers-reduced-motion:reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker .row {
    animation: none;
  }
}
/* Without JavaScript the drawn chart is empty, so show the bar version everywhere */
@media (scripting:none) {
  .g-chart {
    display: none;
  }
  .g-bars {
    display: block;
  }
}

/* the duplicated half of each ticker row is only there for the seamless loop */
.ticker .dup {
  display: contents;
}

/* ---------- Keyboard focus ----------
   Visible, on-brand focus ring for keyboard users only (mouse clicks don't show it). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.cta:focus-visible,
.btn:focus-visible {
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Name: no visible jump while it is fitted to the grid ----------
   The name stays hidden until site.js has measured it (class "fitted").
   Safety net: if the script never runs, it appears after 1.5s anyway. */
@media (scripting: enabled) {
  #name:not(.fitted) {
    visibility: hidden;
    animation: name-fallback 0s 1.5s forwards;
  }
}
@keyframes name-fallback {
  to { visibility: visible; }
}

/* ---------- Field figures: one lead figure, then small proof points ----------
   The lead carries the claim, the proof row backs it up (2 grid columns each). */
.span2 {
  grid-column: span 2;
}
.lead {
  margin-top: var(--s6);
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}
.lead .n {
  font-size: clamp(4rem, 8.4vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}
.lead .n em {
  font-size: .6em;
  margin-left: .06em;
}
.lead h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-2);
  margin-top: var(--s2);
}
.lead p {
  color: var(--mute);
  font-size: .95rem;
  max-width: 52ch;
}
.proof {
  list-style: none;
  margin-top: var(--s4);
  row-gap: var(--s3);
}
.proof li {
  border-top: 1px solid var(--line);
  padding-top: var(--s2);
}
.proof .n {
  display: block;
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}
.proof .n em {
  font-size: .6em;
  margin-left: .06em;
}
.proof .n em.sp { margin-left: .22em; }
.proof .n em.mid { margin: 0 .02em 0 .16em; }
.proof .pl {
  display: block;
  color: var(--mute);
  font-size: .85rem;
  line-height: 1.4;
  margin-top: var(--s1);
}
.field .pull {
  margin-top: var(--s6);
}
/* Phones: proof points as a calm list (figure left, label right) instead of an uneven 2 + 1 grid */
@media (max-width: 900px) {
  .proof {
    row-gap: 0;
  }
  .proof li {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    align-items: baseline;
    column-gap: var(--s2);
    padding: var(--s2) 0;
  }
  .proof .pl {
    margin-top: 0;
  }
}

/* ---------- Field hierarchy ----------
   Field start  >  title  >  lead figure  >  proof points.
   A bright rule and "1 of 4" mark where a new field begins; more air between fields than inside. */
.field {
  padding: var(--s8) 0 var(--s16);
  border-top: 1px solid rgba(242, 239, 232, .35);
}
.field:first-child {
  border-top: 1px solid rgba(242, 239, 232, .35);
  padding-top: var(--s8);
}
.field:last-child {
  padding-bottom: 0;
}
.fnum {
  display: block;
  margin-bottom: var(--s3);
}
.field h3 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}
.lead {
  margin-top: var(--s6);
  border-top: 0;
  padding-top: 0;
}
.lead .n {
  font-size: clamp(3rem, 5.4vw, 4.6rem);
}

/* ---------- Proof points with context ----------
   One row per proof: figure on the first 2 of 8 columns, title + one sentence on the other 6.
   Same on phones (1 + 3 of 4 columns), so it always reads as a calm list. */
.lead p {
  color: var(--mute);
  font-size: .95rem;
  max-width: 56ch;
  margin-top: var(--s1);
}
.proof {
  row-gap: 0;
}
.proof li {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  padding: var(--s3) 0;
}
.proof .n {
  grid-column: 1 / 3;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}
.proof .pt {
  grid-column: 3 / 9;
}
.proof h5 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.proof .pt p {
  color: var(--mute);
  font-size: .9rem;
  line-height: 1.5;
  margin-top: 4px;
  max-width: 56ch;
}
@media (max-width: 900px) {
  .proof li {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: var(--s3) 0;
  }
  .proof .n { grid-column: 1 / 2; }
  .proof .pt { grid-column: 2 / 5; }
}

/* ---------- Running text on the grid ----------
   Intro and claim lines end on a grid line (6 of 8 content columns) and break at phrase boundaries.
   On phones the manual breaks are ignored and lines are balanced instead. */
.intro,
.field .claim {
  max-width: calc((100% - 7 * var(--gap)) / 8 * 6 + 5 * var(--gap));
}
@media (max-width: 900px) {
  .intro br,
  .field .claim br {
    display: none;
  }
  .intro,
  .field .claim {
    max-width: none;
    text-wrap: pretty;
  }
}
