:root {
  --paper: oklch(0.965 0.008 85);
  --ink: oklch(0.17 0.008 60);
  --ink-soft: oklch(0.35 0.01 60);
  --ink-mute: oklch(0.45 0.01 60);
  --ink-40: oklch(0.4 0.01 60);
  --ink-30: oklch(0.3 0.01 60);
  --rule: oklch(0.82 0.01 80);
  --rule-stripe: oklch(0.88 0.01 80);
  --accent-fill: oklch(0.76 0.16 68);
  --accent-text: oklch(0.62 0.17 62);
  --accent-label: oklch(0.55 0.15 60);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-label); text-decoration: none; transition: background-color 120ms ease, color 120ms ease; }
a:hover { color: var(--ink); }
p, h1, h2, ul, figure, blockquote { margin: 0; }
img { max-width: 100%; }

.page {
  font-family: var(--sans);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) 48px;
  text-wrap: pretty;
}
section[id] { scroll-margin-top: 24px; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent-text); }

/* Masthead */
.masthead {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
}
.masthead strong { color: var(--ink); font-weight: 500; }
.masthead nav { display: flex; gap: 20px; flex-wrap: wrap; }
.masthead nav a { color: var(--ink); }
.masthead nav a:hover { color: var(--accent-label); }

/* Buttons */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; }
.btn { color: var(--ink); padding: 12px 18px; border: 1px solid var(--ink); }
.btn--primary { background: var(--accent-fill); border-color: transparent; }
.btn:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end;
  padding: clamp(24px, 5vh, 64px) 0 clamp(24px, 4vh, 40px);
}
.hero__text { flex: 1 1 380px; min-width: 0; }
.hero h1 {
  font-weight: 700; font-variation-settings: 'wdth' 80;
  /* Scales with viewport height too, so masthead → proof strip fits above the fold */
  font-size: clamp(40px, min(6.5vw, 9vh), 96px); line-height: 0.92; letter-spacing: -0.03em;
  text-transform: uppercase; max-width: 20ch;
}
.hero__sub {
  margin-top: clamp(16px, 2.5vh, 28px); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5;
  max-width: 56ch; color: var(--ink-soft);
}
.hero .buttons { margin-top: clamp(20px, 3vh, 32px); }
.hero__photo { position: relative; flex: 0 1 clamp(220px, 34vh, 300px); min-width: 200px; margin-left: auto; }
.hero__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 12%;
  filter: grayscale(1) contrast(1.08);
}
.tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--accent-fill); color: var(--ink);
  font-family: var(--mono); font-size: 11px; padding: 6px 10px;
}

/* Metrics */
.metric {
  font-weight: 700; font-variation-settings: 'wdth' 78;
  font-size: clamp(56px, min(7vw, 10vh), 104px); line-height: 0.95; letter-spacing: -0.03em;
}
.metric small { font-size: 0.35em; font-weight: 500; letter-spacing: 0; color: var(--ink-mute); }
.caption { margin-top: 12px; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--ink-mute); }

.proof {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.proof > div { padding: clamp(18px, 3vh, 28px) 24px; }
.proof > div:first-child { padding-left: 0; }
.proof > div:last-child { padding-right: 0; }
.proof > div + div { border-left: 1px solid var(--rule); }

/* Labels */
.label { font-family: var(--mono); font-size: 12px; color: var(--accent-label); }
.label span { color: var(--ink-mute); }

/* The T */
.t { padding: clamp(56px, 8vw, 112px) 0; }
.t .label { margin-bottom: 24px; }
.t__bar {
  background: var(--ink); color: var(--paper);
  padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.02em;
}
.t__bar .sep { color: var(--accent-fill); }
.t__body { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: center; align-items: flex-start; }
.t__stem {
  flex: 0 1 420px; min-width: min(100%, 280px);
  display: flex; flex-direction: column; background: var(--accent-fill);
}
.t__stem a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 22px; color: var(--ink);
  font-weight: 700; font-variation-settings: 'wdth' 82; font-size: 30px;
  text-transform: uppercase; letter-spacing: -0.02em;
}
.t__stem a + a { border-top: 1px solid oklch(0.17 0.008 60 / 0.25); }
.t__stem a:hover { background: var(--ink); color: var(--paper); }
.t__stem a span { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.t__caption { flex: 1 1 280px; max-width: 40ch; padding-top: 32px; }

.pull { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: var(--ink-30); }

/* Depth sections */
.depth { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--ink); }
.depth__row { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.depth__label { flex: 0 0 200px; line-height: 1.7; }
.depth__content { flex: 1 1 420px; min-width: 0; }
.depth h2 {
  font-weight: 700; font-variation-settings: 'wdth' 82;
  font-size: clamp(30px, 3.8vw, 52px); line-height: 0.98; letter-spacing: -0.025em;
  text-transform: uppercase; max-width: 20ch;
}
.lede { margin-top: 20px; font-size: 17px; line-height: 1.6; max-width: 62ch; color: var(--ink-soft); }

.submetrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0 32px; margin-top: 40px; border-top: 1px solid var(--rule);
}
.submetrics > div { padding: 20px 0; }
.submetrics .metric { font-size: clamp(36px, 4.2vw, 56px); line-height: 1; }

.list {
  list-style: none; margin-top: 36px; padding: 0; max-width: 66ch;
  font-size: 17px; line-height: 1.55; color: var(--ink-soft);
}
.list li { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list li > span:first-child { font-family: var(--mono); font-size: 11px; color: var(--accent-label); padding-top: 5px; }
.list strong { font-weight: 700; }
.list--after-hero { margin-top: 0; }
.list--after-hero li:first-child { border-top: 0; }

.cro-hero {
  margin-top: 36px; padding: 24px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline;
}
.cro-hero .metric { font-size: clamp(44px, 5.5vw, 96px); white-space: nowrap; }
.cro-hero .caption { margin-top: 0; flex: 1 1 240px; max-width: 38ch; }

/* Journey */
.journey .label { margin-bottom: 32px; }
.journey__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 24px 0; list-style: none; margin: 0; padding: 0;
}
.stage { border-top: 2px solid var(--ink); padding: 14px 20px 0 0; }
.stage__num { font-family: var(--mono); font-size: 11px; color: var(--accent-label); }
.stage__name {
  font-weight: 700; font-variation-settings: 'wdth' 82; font-size: 24px; line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase; margin-top: 10px;
}
.stage__name small { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.stage p { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-40); }
.stage--final { border-top-color: var(--accent-fill); }
.stage--final .stage__name { color: var(--accent-text); }
.journey .pull { margin-top: 48px; max-width: 44ch; }

/* Career */
.career-row { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 14px 0; border-top: 1px solid var(--rule); }
.career-row:last-of-type { border-bottom: 1px solid var(--rule); }
.career-row__date { flex: 0 0 120px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); padding-top: 3px; }
.career-row__text { flex: 1 1 260px; font-size: 18px; line-height: 1.4; }
.career-row__text strong { font-weight: 700; }
.career-row__text span { color: var(--ink-mute); }
.career-note { margin-top: 20px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-mute); }

/* Contact */
.contact { padding: clamp(40px, 6vw, 80px) 0 0; border-top: 1px solid var(--ink); }
.testimonial { margin: 0 0 clamp(48px, 7vw, 88px); max-width: 62ch; }
.testimonial blockquote {
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3;
}
.testimonial figcaption { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 28px 40px; padding: 32px 0 36px; border-top: 1px solid var(--ink);
}
.cta h2 {
  font-weight: 700; font-variation-settings: 'wdth' 80;
  font-size: clamp(40px, 6vw, 88px); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase;
}
/* No testimonial above: the section's own top rule is enough */
.cta:first-child { border-top: 0; padding-top: 0; }
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 16px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
}

/* Stack the proof strip in one go rather than a lopsided 2+1 */
@media (max-width: 880px) {
  .proof { grid-template-columns: 1fr; }
  .proof > div { padding-left: 0; padding-right: 0; }
  .proof > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}
