/* Homepage layout (Nov 2026). Loaded after site.css on index.html only.
   Goal: one large thing per view, a real change of scale between sections,
   the full twelve-column width, Fig. 01 as the showpiece.
   Tokens only. Bump the ?v= tag on the link in index.html with every change. */

/* ---------- Sections: label row on top, content on the full grid ---------- */
.hs { padding-block: var(--space-8); }
.hs .wrap > * + * { margin-top: var(--space-7); }
.hs__label {
  display: flex; gap: var(--space-3);
  border-top: var(--hairline) solid var(--rule-strong); padding-top: var(--space-4);
}
.hs__label span { color: var(--text-2); }
.hs .wrap > .hs__label + * { margin-top: var(--space-6); }
.hs-wide { max-width: 22ch; }
.hs-gap { margin-top: var(--space-8) !important; }

/* Title left, words right */
.hs-split { display: grid; gap: var(--space-5) var(--grid-gap); align-items: end; }
.hs-split .title { max-width: 16ch; }

/* ---------- 01 The Standard: a 2 x 2 grid of commitments ---------- */
.hs-intro { display: grid; gap: var(--space-5) var(--grid-gap); align-items: end; }
.commit { display: grid; border-top: var(--hairline) solid var(--rule); }
.commit > li { display: grid; gap: var(--space-4); align-content: start; padding-block: var(--space-6); border-bottom: var(--hairline) solid var(--rule); }
.commit p {
  font-family: var(--font-sans); font-weight: 300; font-size: var(--step-5); line-height: 1.2;
  letter-spacing: -0.015em; color: var(--text); text-wrap: balance; max-width: 22ch;
}

/* The Briefing as a quiet strip that closes the section, not a box in its middle */
.strip { display: grid; gap: var(--space-5) var(--grid-gap); border-top: var(--hairline) solid var(--rule); padding-top: var(--space-5); }
.strip__text { display: grid; gap: var(--space-2); align-content: start; }
.strip__line { color: var(--text-2); max-width: 26rem; }
.strip .form { max-width: none; }

/* ---------- 02 The Problem: two blocks, then one statement alone ---------- */
.modes { display: grid; border-top: var(--hairline) solid var(--rule); }
.modes > li { display: grid; gap: var(--space-4); align-content: start; padding-block: var(--space-6); border-bottom: var(--hairline) solid var(--rule); }
.modes h3 { font-weight: 300; font-size: var(--step-6); line-height: 1.08; letter-spacing: -0.025em; color: var(--text); }
.statement {
  font-family: var(--font-sans); font-weight: 300; font-size: var(--step-7); line-height: 1.02;
  letter-spacing: -0.03em; color: var(--text); text-wrap: balance; max-width: 16ch;
  padding-block: var(--space-9) var(--space-6);
}

/* ---------- 03 The Approach: Fig. 01 given the full width ---------- */
.figure--show { background: var(--bg-raised); }
.figure--show .figure__body { padding-block: var(--space-4); }
.figure--show .fig--wide { width: 100%; max-width: 880px; }
.index--circles { max-width: 60rem; margin-left: auto; }

/* ---------- 04 The Architecture: figure beside its table ---------- */
.stack-pair { display: grid; gap: var(--space-7) var(--grid-gap); align-items: start; }
.figure--plain { border: 0; padding-inline: 0; }
.figure--plain .figure__head { padding-inline: 0; }
.hs-more { margin-top: var(--space-6) !important; }

/* ---------- 05 Pathways: three columns, one row ---------- */
.paths { display: grid; border-top: var(--hairline) solid var(--rule-strong); }
.paths > li { display: grid; gap: var(--space-3); align-content: start; padding-block: var(--space-6); border-bottom: var(--hairline) solid var(--rule); }
.paths .clause { font-weight: 300; font-size: var(--step-5); line-height: 1.2; letter-spacing: -0.015em; }
.paths .prose { max-width: 26rem; }
.paths .link-strong { justify-self: start; }

/* ---------- The Architect: the founder credit, black and white ---------- */
.founder { display: grid; gap: var(--space-5) var(--grid-gap); align-items: start; }
.founder__photo { width: 160px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.founder__who { display: grid; gap: var(--space-2); justify-items: start; }

/* ---------- 06 Closing band ---------- */
.hs--band { background: var(--bg-raised); padding-block: var(--space-8); margin-top: var(--space-8); }
.hs--band .field input { background: var(--bg); }
.closing { display: grid; gap: var(--space-7) var(--grid-gap); align-items: end; }
.closing .title { max-width: 14ch; }
.closing .form { max-width: none; }

/* ---------- Phone ---------- */
@media (max-width: 47.99em) {
  .strip .form .btn, .closing .form .btn { width: 100%; }
}

/* ---------- Tablet and up ---------- */
@media (min-width: 48em) {
  .commit { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  .commit > li { padding-right: var(--space-6); }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: var(--hairline) solid var(--rule); }
  .modes > li { border-bottom: 0; padding-right: var(--space-7); }
  .modes > li + li { border-left: var(--hairline) solid var(--rule); padding-left: var(--space-7); }
  .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  .paths > li { grid-template-rows: auto auto 1fr auto; }
  .founder { grid-template-columns: 200px minmax(0, 1fr); }
  .founder__photo { width: 200px; grid-row: span 2; }
  .founder__text { grid-column: 2; }
}

/* ---------- Desktop: the twelve-column grid ---------- */
@media (min-width: 60em) {
  .hs { padding-block: var(--space-10); }
  .hs .wrap > .hs__label + * { margin-top: var(--space-7); }
  .hs-split, .hs-intro, .closing { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hs-split > :first-child, .hs-intro > :first-child { grid-column: 1 / span 6; }
  .hs-split > :last-child, .hs-intro > :last-child { grid-column: 8 / span 5; }

  .commit p { font-size: var(--step-6); line-height: 1.12; letter-spacing: -0.025em; }
  .commit > li { padding-block: var(--space-7); }

  .strip { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: var(--space-9) !important; }
  .strip__text { grid-column: 1 / span 4; }
  .strip__form { grid-column: 5 / -1; }
  .strip .form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .strip .form__consent { grid-column: 1 / -1; }

  .modes h3 { font-size: var(--step-7); line-height: 1; letter-spacing: -0.03em; }
  .modes > li { padding-block: var(--space-8); }
  .statement { padding-block: var(--space-11) 0; }

  .figure--show { padding: var(--space-8) var(--space-7) var(--space-7); margin-top: var(--space-8) !important; }

  .stack-pair { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: var(--space-8) !important; }
  .stack-pair > .figure { grid-column: 1 / span 4; position: sticky; top: 96px; }
  .stack-pair > .index { grid-column: 6 / -1; }

  .founder { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .founder__photo { grid-column: 1 / span 3; grid-row: 1 / span 2; width: 100%; max-width: 240px; }
  .founder__who { grid-column: 4 / span 4; }
  .founder__text { grid-column: 8 / -1; grid-row: 1 / span 2; }

  .hs--band { padding-block: var(--space-10); }
  .closing__head { grid-column: 1 / span 6; }
  .closing__form { grid-column: 7 / -1; }
}

@media (min-width: 75em) {
  .closing__form .form__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
