/* Home, option A ("Tightened"): the current page, evolved.
   Rhythm: 8px base; sections 96px apart on desktop, 64px on phones.
   Type: h1 50px Newsreader, h2 site scale, h3 panel 30px, body 16, lede 18, figures in Geist Mono. */

/* ── Hero: two lines of headline, the lede, the actions; the drawing on the right ── */
.hero-a { border-bottom: 0; }
.hero-a > .inner {
  grid-template-columns: minmax(0, 1fr) clamp(240px, 26.25vw, 336px);
  gap: clamp(48px, 5.6vw, 72px);
  padding-top: 88px;
  padding-bottom: 72px;
}
.hero-a h1 { font-size: min(50px, calc(4.6vw - 7px)); line-height: 1.08; text-wrap: wrap; }
.hero-a .h1-line { display: block; text-wrap: balance; }
.hero-a .h1-line--2 { color: var(--text-2); }
.hero-a .lede { margin-top: 24px; max-width: 33em; }
.hero-a .actions { margin-top: 32px; }
.hero-a .hero-art { gap: 14px; }
.hero-a .digits { font-size: 14px; }

@media (max-width: 960px) {
  .hero-a > .inner { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 72px; padding-bottom: 64px; }
  .hero-a h1 { font-size: clamp(34px, 5.6vw, 52px); }
  .hero-a .hero-art { max-width: 336px; }
}
@media (max-width: 640px) {
  .hero-a > .inner { gap: 40px; padding-top: 44px; padding-bottom: 48px; }
  .hero-a h1 { font-size: clamp(30px, 8.8vw, 34px); line-height: 1.1; }
  .hero-a .lede { margin-top: 18px; font-size: 17px; }
  .hero-a .actions { margin-top: 24px; gap: 8px 24px; }
  .hero-a .hero-art { max-width: 260px; }
}

/* ── Specialisms: one hairline, three plain statements ── */
.spec-a { padding-bottom: 96px; }
.spec-list {
  list-style: none; margin: 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 48px;
  font-size: 15px; line-height: 1.55; color: var(--text-2);
}
.spec-list strong { font-weight: 600; color: var(--text); }
.spec-a + .band { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .spec-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 640px) { .spec-a { padding-bottom: 64px; } }

/* Phones: sections breathe at 64px */
@media (max-width: 640px) { .band { padding: 64px 0; } }

/* ── Offer: one panel for the triage, the rest as a ruled rate list ── */
.offer-a h2 { margin-bottom: 36px; }
.offer-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.triage-panel {
  padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.triage-panel .ask { font-size: 15px; color: var(--text-2); }
.triage-panel h3 {
  margin-top: 20px;
  font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em;
}
.triage-panel .terms { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.triage-panel .price {
  font-family: var(--mono); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.triage-panel .dur { font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.triage-panel .what { margin-top: 24px; max-width: 30em; font-size: 18px; line-height: 1.5; }
.triage-panel .credit { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.triage-panel .actions { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

.ladder { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ladder li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "desc dur";
  gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.ladder h3 { grid-area: name; font-size: 16px; font-weight: 600; line-height: 1.4; }
.ladder .price { grid-area: price; justify-self: end; font-family: var(--mono); font-weight: 500; font-size: 17px; line-height: 1.4; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder .dur { grid-area: dur; justify-self: end; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--text-2); white-space: nowrap; }
.ladder .desc { grid-area: desc; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.ladder-foot { margin-top: 20px; font-size: 14px; color: var(--text-2); }
.ladder-foot .textlink { margin-top: 4px; color: var(--text); }

@media (max-width: 960px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  .offer-a h2 { margin-bottom: 28px; }
  .triage-panel { padding: 24px 20px; }
  .triage-panel h3 { margin-top: 16px; font-size: 27px; }
  .triage-panel .price { font-size: 38px; }
  .triage-panel .what { font-size: 17px; }
  .triage-panel .actions { margin-top: 24px; padding-top: 20px; }
  .triage-panel .btn { width: 100%; }
  .ladder li { grid-template-areas: "name price" "dur dur" "desc desc"; gap: 2px 16px; padding: 18px 0; }
  .ladder .dur { justify-self: start; line-height: 1.6; }
  .ladder .desc { margin-top: 6px; }
}

/* ── Who does the work: the founder, then the record as one ruled row ── */
.who-text { max-width: 40em; }
.who-text .who-lead { margin-top: 20px; font-size: 20px; line-height: 1.5; }
.who-text .mute { margin-top: 12px; }
.record {
  margin-top: 48px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.org { padding: 24px 0 28px; }
.org + .org { padding-left: 40px; border-left: 1px solid var(--line); }
.org:first-child { padding-right: 40px; }
.org-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 26px; }
.org-head img { width: auto; height: 26px; max-width: 173px; }
.wordmark { font-weight: 600; font-size: 19px; line-height: 26px; letter-spacing: -0.03em; color: var(--text); }
.org-head .role { font-size: 13px; color: var(--text-3); }
.nums { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; }
.nums li { display: flex; flex-direction: column; gap: 6px; }
.nums .n { font-family: var(--mono); font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nums .l { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.record-foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; }
.record-foot p { max-width: 46em; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.record-foot .textlink { flex-shrink: 0; }

@media (max-width: 860px) {
  .record { grid-template-columns: minmax(0, 1fr); }
  .org:first-child { padding-right: 0; }
  .org + .org { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .who-text .who-lead { font-size: 18px; }
  .record { margin-top: 36px; }
  .org { padding: 20px 0 22px; }
  .nums { margin-top: 16px; grid-auto-flow: row; gap: 12px; }
  .nums li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 12px; }
  .nums .n { font-size: 22px; }
  .nums .l { font-size: 14px; }
  .record-foot { margin-top: 16px; }
}

/* No orphaned last words in running text */
.hero-a .lede, .spec-list li, .triage-panel .what, .triage-panel .credit, .ladder .desc, .who-text p, .nums .l, .record-foot p, .stack-head p, .name-text p { text-wrap: pretty; }

/* ── Work: header stacked, cards unchanged ── */
.stack-head { margin-bottom: 36px; }
.stack-head p { margin-top: 14px; max-width: 38em; color: var(--text-2); }
.work .tag { text-transform: none; letter-spacing: 0; font-size: 12px; }
.work .card-logo--qm { text-transform: none; letter-spacing: -0.01em; font-size: 15px; }
.work .caption { font-size: 13px; }

/* ── The name: one compact band ── */
.name-a { padding-top: 72px; padding-bottom: 72px; }
.name-a h2 { max-width: 11em; font-size: clamp(28px, 3vw, 36px); }
.name-text { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; }
.name-text p:first-child { color: var(--text-2); }
@media (max-width: 760px) {
  .name-a { padding-top: 56px; padding-bottom: 56px; }
  .name-text { grid-template-columns: minmax(0, 1fr); }
}

/* ── Marks: where the experience comes from ── */
.marks { padding: 40px 0 44px; border-top: 1px solid var(--line); }
.marks-title { font-size: 14px; color: var(--text-3); }
.marks-row { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.marks-row li { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.marks-row img { height: 26px; width: auto; }
.marks-row .m-ag img { height: 35px; }
.marks-row .m-oxys img { height: 30px; }
.marks-row .wordmark, .about .wordmark { font-weight: 600; font-size: 24px; letter-spacing: -0.035em; }
.marks-row .wordmark--long, .about .wordmark--long { font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.marks-row .qm span { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.marks + .band { border-top: 1px solid var(--line); }
.spec-a { padding-bottom: 64px; }

/* ── About: the founder and what he did before the firm ── */
.about-lead { margin-top: 20px; max-width: 40em; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; margin-top: 44px; }
.about-grid article { padding-top: 22px; border-top: 1px solid var(--line); }
.about-grid h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 32px; font: inherit; }
.about-grid h3 img { height: 28px; width: auto; }
.about-grid .role { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.about-grid ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.about-grid li { font-size: 15px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.about-foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; }
.about-foot p { font-size: 13px; color: var(--text-3); }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .marks-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px; }
  .marks-row .wordmark { font-size: 21px; }
  .marks-row .wordmark--long { font-size: 16px; }
  .marks-row img { height: 22px; }
  .marks-row .m-ag img { height: 30px; }
  .marks-row .m-oxys img { height: 25px; }
}

/* ── Load-in: the hero's parts arrive in sequence, once ── */
.js .hero-a .hero-copy > * { opacity: 0; transform: translateY(12px); animation: rise 640ms var(--ease) forwards; }
.js .hero-a .hero-copy > *:nth-child(1) { animation-delay: 40ms; }
.js .hero-a .hero-copy > *:nth-child(2) { animation-delay: 140ms; }
.js .hero-a .hero-copy > *:nth-child(3) { animation-delay: 240ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .hero-a .hero-copy > * { opacity: 1; transform: none; animation: none; } }
@media print { .js .hero-a .hero-copy > * { opacity: 1; transform: none; animation: none; } }
