/* design/site/home.css
 *
 * Home: its own layer (the plain pages, privacy and not found, are site.css's since 2026-10-15). On top of tokens.css and site/site.css.
 * Home is the copy deck v0.6 (canon, 2026-10-14) built as a product page, phone first, in the pattern of the
 * 16Personalities home by the operator's instruction: the result card in the hero, pale letter tints as grounds,
 * the full-colour drawings and shields as the imagery, one sans for everything on this page, soft card shadows.
 * The eight letter colours are saturated only on shields, tiles and bar fills. No capitals labels.
 */

.home { display: block; overflow-x: clip; font-family: var(--font-display); font-weight: 500; }
.home .em-in { font-family: var(--font-display); }
.hm-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-20); }
.hm-sec { padding: var(--space-56) 0; }
.hm-tint { background: var(--stone); }
.hm-sec-tight { padding-top: var(--space-24); }
.hm-last { padding-bottom: var(--space-64); }
.hm-head { max-width: 640px; }
.hm-h2 { margin: 0; font-weight: 800; font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.hm-sub { margin-top: var(--space-16); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.5; color: var(--ink-dim); text-wrap: pretty; }
.hm-p { margin-top: var(--space-16); max-width: 58ch; font-size: var(--text-body); line-height: 1.55; text-wrap: pretty; }
.hm-dim { color: var(--ink-dim); }
.hm-turn { margin-top: var(--space-24); max-width: 36ch; font-weight: 700; font-size: var(--text-title); line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }
.hm-more { margin-top: var(--space-20); }
.hm-mores { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-28); }
.hm-act { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.hm-act .btn { flex: 1 1 auto; justify-content: center; }
.hm-note { margin-top: var(--space-12); font-size: var(--text-small); color: var(--ink-dim); }

/* 1, the hero: the stakes beside the product */
.hm-hero { position: relative; padding: var(--space-28) 0 var(--space-56); }   /* its fade is now every page's, from the top of the page (site.css body, 2026-10-15) */
.hm-hero-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
.hm-hero-g > * { min-width: 0; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: var(--space-8); margin: 0 0 var(--space-16); padding: var(--space-6) var(--space-14); border-radius: var(--r-pill); background: var(--paper); box-shadow: var(--sh-card); font-weight: 600; font-size: var(--text-small); color: var(--ink); }
.hm-h { margin: 0; font-weight: 800; font-size: clamp(2.125rem, 1rem + 4.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hm-lead { margin-top: var(--space-14); max-width: 34ch; font-size: clamp(1.0625rem, 1rem + .6vw, 1.375rem); line-height: 1.4; color: var(--ink-dim); text-wrap: pretty; }
.hm-lead b { font-weight: 800; color: var(--k, var(--ink)); background: linear-gradient(var(--t, transparent), var(--t, transparent)) 0 92% / 100% .38em no-repeat; }
.hm-hero .hm-act { margin-top: var(--space-24); }
/* the result card */
/* the deck: the sixteen cards stacked, three showing at slight angles; home.js sends the front one to the back */
.hm-deck { position: relative; width: 100%; height: 330px; max-width: 400px; margin: 0 auto; }
.hm-mock { display: flex; flex-direction: column; justify-content: space-between; color: inherit; text-decoration: none; position: absolute; inset: 0; padding: var(--space-16) var(--space-20) var(--space-20); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-panel); overflow: hidden; transform: var(--tf, none); opacity: var(--op, 1); transition: transform 620ms var(--ease-out), opacity 420ms var(--ease-out); will-change: transform; }
.hm-mock.is-0 { --tf: none; z-index: 3; }
.hm-mock.is-1 { --tf: translateY(10px) rotate(2.5deg) scale(.97); z-index: 2; }
.hm-mock.is-2 { --tf: translateY(20px) rotate(-2deg) scale(.94); z-index: 1; }
.hm-mock.is-back { --tf: translateY(26px) scale(.92); --op: 0; z-index: 0; pointer-events: none; }
.hm-mock.is-out { --tf: translateY(-28px) rotate(-7deg) scale(1.02); --op: 0; z-index: 4; }
.hm-mock.no-anim { transition: none; }
.hm-mock::before { content: ""; position: absolute; inset: 40px -10% -10%; z-index: 0; border-radius: var(--r-round); background: radial-gradient(closest-side, var(--t), transparent); pointer-events: none; }
.hm-mock > * { position: relative; z-index: 1; }
.hm-mock-h { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-small); font-weight: 600; color: var(--ink-dim); }
.hm-mock-chip { padding: var(--space-4) var(--space-10); border-radius: var(--r-pill); background: var(--stone); color: var(--ink); font-size: var(--text-micro); }
.hm-mock-top { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-14); align-items: center; margin-top: var(--space-10); min-height: 140px; }
.hm-mock-top > div { min-width: 0; }
.hm-mock-sh { width: 104px; height: auto; filter: var(--drop-shield); }
.hm-mock-n { display: block; font-weight: 800; font-size: var(--text-title); overflow-wrap: anywhere; line-height: 1.05; letter-spacing: -0.03em; }
.hm-tl { display: inline-flex; gap: var(--space-4); margin-top: var(--space-8); }
.hm-tl b { display: grid; place-items: center; width: 26px; height: 30px; border-radius: var(--r-tile-m); background: var(--k); color: var(--on-letter); font: 600 .9375rem/1 var(--font-mono); }
.hm-bars { list-style: none; margin: var(--space-10) 0 0; padding: var(--space-12) 0 0; border-top: var(--hair) solid var(--line); display: grid; gap: var(--space-8); }
.hm-bar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 80px; align-items: center; gap: var(--space-10); font-size: var(--text-micro); font-weight: 600; color: var(--ink-dim); }
.hm-bar-w { text-align: right; color: var(--k); }
.hm-bar-t { position: relative; height: 12px; border-radius: var(--r-pill); background: var(--stone); }
.hm-bar-t i { position: absolute; top: 0; bottom: 0; width: 34%; border-radius: var(--r-pill); background: var(--k); transition: left 360ms var(--ease-out), right 360ms var(--ease-out); }
.hm-bar-a .hm-bar-t i { right: 50%; }
.hm-bar-b .hm-bar-t i { left: 50%; }
.hm-mock:hover .hm-mock:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .hm-hero-t > * { animation: hm-rise 700ms var(--ease-out) both; }
  .hm-hero-t > :nth-child(2) { animation-delay: 80ms; } .hm-hero-t > :nth-child(3) { animation-delay: 160ms; }
  .hm-mock { animation: hm-rise 900ms 200ms var(--ease-out) both; }
}
@keyframes hm-rise { from { translate: 0 16px; } to { translate: 0 0; } }

/* 2, the gains: a drawing on its tint beside each */
.hm-gains { list-style: none; margin: var(--space-24) 0 0; padding: 0; display: grid; gap: var(--space-12); }
.hm-gain { display: grid; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--paper); box-shadow: var(--sh-card); }
.hm-gain-art { display: grid; place-items: center; min-height: 132px; padding: var(--space-14); background: var(--t); }
.hm-gain-art img { width: 130px; height: auto; }
.hm-gain-t { padding: var(--space-20) var(--space-24) var(--space-24); }
.hm-gain h3 { margin: 0; font-weight: 800; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.hm-gain p { margin-top: var(--space-10); max-width: 46ch; font-size: var(--text-body); line-height: 1.5; color: var(--ink-dim); text-wrap: pretty; }

.hm-head .hm-p { margin-top: var(--space-12); max-width: 54ch; }
.hm-next { margin-top: var(--space-20); max-width: 54ch; }

/* 2b, what your result tells you: four screenshots of the Steward's page as a slider (2026-10-15). The frames lie
   tilted and dimmed, and straighten as they come into focus; tabs above, arrows below, swipe on a phone */
.hm-shots { margin-top: var(--space-24); }
.hm-tabs { display: flex; gap: var(--space-8); overflow-x: auto; scrollbar-width: none; padding: var(--space-2) var(--space-2) var(--space-6); }
.hm-tabs::-webkit-scrollbar { display: none; }
.hm-tab { flex: none; display: inline-flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-14) var(--space-8) var(--space-8); border: 0; border-radius: var(--r-pill); background: var(--stone); color: var(--ink-dim); font: inherit; font-size: var(--text-small); font-weight: 700; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.hm-tab-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-round); background: var(--paper); font-size: var(--text-micro); color: var(--ink); }
.hm-tab:hover { color: var(--ink); }
.hm-tab.is-on { background: var(--ink); color: var(--paper); }
.hm-tab.is-on .hm-tab-n { background: var(--letter-v); color: var(--paper); }
.hm-tab:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.hm-track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: var(--space-20); align-items: start; margin: var(--space-14) calc(-1 * var(--space-20)) 0; padding: var(--space-20) var(--space-20) var(--space-28); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hm-track::-webkit-scrollbar { display: none; }
.hm-track:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.hm-shot { margin: 0; scroll-snap-align: center; }
.hm-shot-f { overflow: hidden; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-panel); transform: rotate(-2.2deg) scale(.93); opacity: .55; transition: transform 520ms var(--ease-out), opacity 420ms var(--ease-out); }
.hm-shot:nth-child(even) .hm-shot-f { transform: rotate(2deg) scale(.93); }
.hm-shot.is-on .hm-shot-f, .hm-shot:nth-child(even).is-on .hm-shot-f { transform: none; opacity: 1; }
.hm-shot-bar { display: flex; gap: var(--space-6); align-items: center; height: 28px; padding: 0 var(--space-12); background: var(--stone); }
.hm-shot-bar i { width: 9px; height: 9px; border-radius: var(--r-round); background: var(--paper); }
.hm-shot-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.hm-shot-cap { margin-top: var(--space-12); font-weight: 700; font-size: var(--text-small); color: var(--ink-dim); text-align: center; opacity: 0; transition: opacity 420ms var(--ease-out); }
.hm-shot.is-on .hm-shot-cap { opacity: 1; }
.hm-shots-nav { display: flex; justify-content: center; gap: var(--space-10); }
.hm-shots-b { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-round); background: var(--stone); color: var(--ink); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.hm-shots-b:hover { background: var(--ink); color: var(--paper); }
.hm-shots-b:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.hm-shots-b[disabled] { opacity: .35; cursor: default; }
.hm-flip { transform: scaleX(-1); }
@media (min-width: 720px) { .hm-track { grid-auto-columns: 74%; gap: var(--space-28); } }
@media (min-width: 1100px) { .hm-track { grid-auto-columns: 66%; margin: var(--space-14) 0 0; padding: var(--space-24) 0 var(--space-32); scroll-padding: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-shot-f, .hm-shot-cap { transition: none; } }

/* 3, why nobody taught you: the slogans named in one card, then the pivot */
.hm-vs-a { margin-top: var(--space-24); padding: var(--space-24) var(--space-24) var(--space-24); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-card); }
.hm-vs-k { margin: 0 0 var(--space-10); font-weight: 800; font-size: var(--text-headline); line-height: 1.1; letter-spacing: -0.025em; }
.hm-slogans { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.hm-slogans li { font-weight: 700; font-size: var(--text-title); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink-dim); }
.hm-vs-x { margin: var(--space-16) 0 0; max-width: 54ch; font-size: var(--text-body); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.hm-vs-x b { font-weight: 800; }
.hm-vs-turn { margin-top: var(--space-24); max-width: 44ch; }

/* 4, the sixteen: four family rows */
.hm-fams { display: grid; gap: var(--space-12); margin-top: var(--space-24); }
.hm-fam { position: relative; overflow: hidden; padding: var(--space-24) var(--space-20) var(--space-14); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-card); }
.hm-fam::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--ca2) 0 50%, var(--cb2) 50% 100%); }
.hm-fam-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4) var(--space-10); align-items: center; }
.hm-fam-h .tiles { grid-row: 1 / span 2; }
.hm-fam h3 { margin: 0; font-weight: 800; font-size: var(--text-title); line-height: 1.1; letter-spacing: -0.02em; }
.hm-fam h3 a { color: inherit; text-decoration: none; }
.hm-fam h3 a:hover, .hm-fam h3 a:focus-visible { text-decoration: underline; text-underline-offset: .12em; }
.hm-fam-h p { margin: 0; font-size: var(--text-small); color: var(--ink-dim); }
.hm-fam-h p::first-letter { text-transform: uppercase; }
.hm-tys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-12); }
.hm-ty { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; gap: var(--space-4); padding: var(--space-8) 0 var(--space-6); border-radius: var(--r-md); color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out); }
.hm-ty img { width: min(100%, 76px); height: auto; filter: var(--drop-shield); }
.hm-ty span { font-size: var(--text-micro); font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; letter-spacing: -0.01em; }
.hm-ty:hover, .hm-ty:focus-visible { background: var(--stone); translate: 0 -2px; }
.hm-fit { font-weight: 600; font-size: var(--text-body); line-height: 1.45; max-width: 44ch; margin-top: var(--space-12); }
.hm-act-mid { margin-top: var(--space-20); }
.hm-act-mid + .hm-p { margin-top: var(--space-20); }
.hm-one { font-size: var(--text-title); }
.hm-fit b { font-weight: 800; }

/* 4b, go deeper */
.hm-deeps { list-style: none; margin: var(--space-24) 0 0; padding: 0; display: grid; gap: var(--space-10); align-items: stretch; }
.hm-deeps li { display: grid; }
.hm-deep { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-2) var(--space-14); align-items: center; padding: var(--space-16) var(--space-20); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-card); color: var(--ink); text-decoration: none; transition: translate var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.hm-deep-art { grid-row: 1 / span 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); place-items: center; gap: var(--space-2); width: 56px; height: 56px; }
.hm-deep-art img { max-width: 100%; max-height: 56px; width: auto; height: auto; }
.hm-deep b { font-weight: 700; font-size: var(--text-title); line-height: 1.2; letter-spacing: -0.02em; }
.hm-deep > span:last-child { font-size: var(--text-small); color: var(--ink-dim); }
.hm-deep:hover, .hm-deep:focus-visible { translate: 0 -2px; box-shadow: var(--sh-panel); }

/* 5, three steps */
.hm-steps { list-style: none; margin: var(--space-24) 0 0; padding: 0; display: grid; gap: var(--space-12); align-items: start; }
.hm-step { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-24) var(--space-24) var(--space-24); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-card); }
.hm-step p { align-self: stretch; }
.hm-step-act { align-self: stretch; }
.hm-step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-round); background: var(--ink); color: var(--white); font-size: var(--text-small); font-weight: 800; }
.hm-step h3 { margin: var(--space-14) 0 0; font-weight: 700; font-size: var(--text-title); line-height: 1.2; letter-spacing: -0.02em; }
.hm-step p { margin-top: var(--space-8); max-width: 48ch; font-size: var(--text-body); line-height: 1.5; color: var(--ink-dim); }
.hm-step-act { margin-top: var(--space-16); min-width: 0; }
.hm-step-act .signup, .hm-step-act .signup-form { gap: var(--space-8); min-width: 0; max-width: none; }
.hm-step-act .em-row { flex-wrap: wrap; }
.hm-step-act .em-in, .hm-step-act .em-go { flex: 1 1 100%; }
.hm-step-more { margin-top: var(--space-10); }
.hm-step-later { background: transparent; box-shadow: none; border: var(--rule) solid var(--line-strong); }
.hm-step-later .hm-step-n { background: var(--line-strong); color: var(--ink); }

/* 6, the letter */
.hm-letter { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 var(--space-16); align-items: center; max-width: 720px; }
.hm-por-f { margin: 0; align-self: start; }
.hm-por { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-round); }
.hm-letter .hm-h2 { margin-top: 0; align-self: center; }
.hm-letter-t > *:not(.hm-h2) { grid-column: 1 / -1; }
.hm-letter-t { display: contents; }
.hm-letter-t > p { margin-top: var(--space-16); max-width: 60ch; font-size: var(--text-body); line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.hm-letter-t > .hm-h2 + p { margin-top: var(--space-20); font-weight: 600; font-size: var(--text-title); line-height: 1.4; color: var(--ink); }
.hm-pull { margin: var(--space-24) 0 var(--space-8); padding: var(--space-20) var(--space-24); border-radius: var(--r-xl); background: var(--tint-m-fix); }
.hm-pull p { margin: 0; font-weight: 800; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.625rem); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.hm-sig-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-10) var(--space-20); margin-top: var(--space-28); }
.hm-sig { margin: 0; font-weight: 800; font-size: var(--text-headline); letter-spacing: -0.03em; }
.hm-li { display: inline-flex; align-items: center; gap: var(--space-8); height: 40px; padding: 0 var(--space-16) 0 var(--space-12); border-radius: var(--r-pill); background: var(--stone); color: var(--ink); font-weight: 600; font-size: var(--text-small); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out); }
.hm-li:hover, .hm-li:focus-visible { background: var(--line); }
.hm-li .ic { width: 20px; height: 20px; }

/* 7, the close */
.hm-close { display: grid; gap: var(--space-24); padding: var(--space-28) var(--space-24) var(--space-32); border-radius: var(--r-xl); background: var(--tint-c-fix); }
.hm-close .signup { gap: var(--space-10); }
/* the fix tints stay light in the dark theme, for the drawings on the art panels; the pull quote and the close carry
   words in the theme's light ink, so in the dark theme they take the same tint over the dark paper (the launch audit,
   2026-10-15: axe measured 1.25:1) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hm-pull { background: color-mix(in srgb, var(--letter-m) 18%, var(--paper)); }
  :root:not([data-theme="light"]) .hm-close { background: color-mix(in srgb, var(--letter-c) 18%, var(--paper)); }
}
:root[data-theme="dark"] .hm-pull { background: color-mix(in srgb, var(--letter-m) 18%, var(--paper)); }
:root[data-theme="dark"] .hm-close { background: color-mix(in srgb, var(--letter-c) 18%, var(--paper)); }
.hm-or { margin-top: var(--space-12); }
body:has(.hm-last) .foot { margin-top: 0; }

@media (min-width: 760px) {
  .hm-in { padding: 0 var(--space-32); }
  .hm-sec { padding: var(--space-96) 0; }
  .hm-last { padding-bottom: var(--space-96); }
  .hm-hero { padding-top: var(--space-56); }
  .hm-hero-g { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-48); align-items: center; }
  .hm-hero .hm-act .btn, .hm-act-mid .btn { flex: 0 0 auto; }
  .hm-h { max-width: 13ch; }
  .hm-deck { margin: 0 0 0 auto; }
  .hm-gain { grid-template-columns: 300px minmax(0, 1fr); align-items: center; }
  .hm-gain:nth-child(even) { grid-template-columns: minmax(0, 1fr) 300px; }
  .hm-gain:nth-child(even) .hm-gain-art { order: 2; }
  .hm-gain-art { min-height: 260px; align-self: stretch; }
  .hm-gain-art img { width: 210px; }
  .hm-gain-t { padding: var(--space-32) var(--space-36); }
  .hm-vs-a { max-width: 720px; padding: var(--space-28) var(--space-32) var(--space-32); }
  .hm-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
  .hm-ty img { width: min(100%, 92px); }
  .hm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); }
  .hm-deeps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
  .hm-deep { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .hm-deep-art { grid-row: auto; margin-bottom: var(--space-8); }
  .hm-letter { grid-template-columns: 200px minmax(0, 1fr); gap: 0 var(--space-40); align-items: start; max-width: 960px; }
  .hm-por { width: 200px; height: 250px; border-radius: var(--r-lg); }
  .hm-letter-t { display: block; grid-column: 2; }
  .hm-por-f { grid-row: 1 / span 20; }
  .hm-close { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-48); align-items: center; padding: var(--space-40) var(--space-48); }
}
@media (min-width: 1100px) {
  .hm-hero-g { gap: var(--space-72); }
  .hm-deck { max-width: 440px; height: 360px; }
  .hm-mock-top { grid-template-columns: 120px minmax(0, 1fr); min-height: 160px; }
  .hm-mock-sh { width: 120px; }
  .hm-mock-top { grid-template-columns: 160px minmax(0, 1fr); }
  .hm-mock-sh { width: 160px; }
  .hm-bars { gap: var(--space-12); }
  .hm-ty img { width: min(100%, 118px); }
  .hm-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-deeps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* the plain pages */




/* 7, the close: the Coming soon banner, the scan centred under it (2026-10-15) */
.hm-last .hm-or { display: flex; justify-content: center; margin-top: var(--space-20); }

/* 6, the two views of a generalist, as a contrast (2026-10-15): the first muted, the second on the Generalists' tint */
.hm-two { margin: var(--space-28) 0 var(--space-12); }
.hm-two-h { margin: 0 0 var(--space-12); font-weight: 800; font-size: var(--text-title); line-height: 1.15; letter-spacing: -0.02em; }
.hm-two-g { display: grid; gap: var(--space-10); align-items: stretch; }
.hm-two-a, .hm-two-b { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-12); align-items: start; padding: var(--space-20) var(--space-20); border-radius: var(--r-xl); font-weight: 700; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }
.hm-two-a span::first-letter, .hm-two-b span::first-letter { text-transform: uppercase; }
.hm-two-a { background: var(--stone); color: var(--ink-dim); }
.hm-two-b { background: var(--tint-w-fix); color: var(--ink); box-shadow: var(--sh-card); }
.hm-two-or { justify-self: center; align-self: center; padding: var(--space-4) var(--space-14); border-radius: var(--r-pill); background: var(--paper); box-shadow: var(--sh-card); font-weight: 800; font-size: var(--text-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); }
@media (min-width: 720px) { .hm-two-g { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hm-two-b { background: color-mix(in srgb, var(--letter-w) 18%, var(--paper)); }
}
:root[data-theme="dark"] .hm-two-b { background: color-mix(in srgb, var(--letter-w) 18%, var(--paper)); }

/* 4, the three steps as the end of the sixteen screen (2026-10-15) */
.hm-steps-h { margin: var(--space-40) 0 0; font-weight: 800; font-size: var(--text-headline); line-height: 1.1; letter-spacing: -0.025em; }
.hm-rocks { margin-top: var(--space-10); }

/* ===== The rebuilt home, a preview (home-preview.html, site_home2.py, 2026-10-15). Its own hv- names; it reuses the
   home's families, slider, letter and contrast as they are. ===== */
.hv-hero { position: relative; overflow: hidden; padding: var(--space-64) var(--space-20) 0; background: var(--stone); text-align: center; }
.hv-hero-in { max-width: 920px; margin: 0 auto; }
.hv-h { margin: 0 auto; font-weight: 800; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem); line-height: 1; letter-spacing: -0.035em; }
.hv-h span { display: block; }
.hv-h span + span { color: var(--action); }
.hv-lede { margin: var(--space-24) auto 0; max-width: 40ch; font-size: var(--text-statement); line-height: 1.45; color: var(--ink-dim); }
.hv-words { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: var(--space-8); margin-top: var(--space-14); }
.hv-words b { padding: var(--space-8) clamp(var(--space-10), 2vw, var(--space-20)) var(--space-10); border-radius: var(--r-pill); background: var(--t); color: var(--k); font-weight: 800; font-size: clamp(0.9375rem, 0.45rem + 2.3vw, 2.25rem); line-height: 1; letter-spacing: -0.025em; white-space: nowrap; }
.hv-words span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hv-q1 { margin: var(--space-32) auto 0; max-width: 760px; padding: var(--space-24) var(--space-20) var(--space-20); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-panel); text-align: center; }
.hv-q1-k { margin: 0; font-weight: 800; font-size: var(--text-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--letter-v); }
.hv-q1-s { margin: var(--space-10) auto 0; max-width: 30ch; font-weight: 700; font-size: clamp(1.1875rem, 1rem + 1vw, 1.777rem); line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.hv-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-20); }
.hv-opt { display: flex; align-items: center; justify-content: center; min-height: 52px; white-space: nowrap; padding: 0 var(--space-12); border-radius: var(--r-pill); background: var(--stone); color: var(--ink); font-weight: 700; font-size: var(--text-body); text-align: center; text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out); }
.hv-all { display: inline-block; margin-top: var(--space-14); font-size: var(--text-small); font-weight: 600; color: var(--ink-dim); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-strong); }
.hv-all:hover { color: var(--ink); }
.hv-land { position: relative; list-style: none; margin: var(--space-48) auto 0; padding: 0 var(--space-24) var(--space-12); max-width: 1240px; display: flex; align-items: flex-end; gap: clamp(var(--space-2), 1vw, var(--space-14)); }
.hv-land::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--line); }
.hv-land::before { content: ""; position: absolute; right: 0; bottom: 0; width: 21%; height: 40px; background: var(--tint-w-fix); border-top-left-radius: var(--r-xl); z-index: 1; }
.hv-land li { position: relative; z-index: 2; flex: var(--w) 1 0; min-width: 0; translate: 0 10px; transition: translate 900ms var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.hv-land.is-in li { translate: 0 0; }
.hv-land img { display: block; width: 100%; height: auto; }
.hv-land .hv-l-w { margin-bottom: var(--space-4); }
.hv-o0:hover, .hv-o1:hover { background: var(--tint-f-fix); translate: 0 -1px; }
.hv-o2:hover, .hv-o3:hover { background: var(--tint-v-fix); translate: 0 -1px; }
.hv-opt:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.hv-opt.is-picked { background: var(--action); color: var(--on-action); }
.hv-note { margin: 0; font-size: var(--text-small); color: var(--ink-dim); }
.hv-sec { padding: var(--space-72) 0; }
.hv-tint { background: var(--stone); }
.hv-head { max-width: 760px; }
.hv-h2 { margin: 0; font-weight: 800; font-size: var(--text-display); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.hv-sub { margin: var(--space-14) 0 0; max-width: 56ch; font-size: var(--text-statement); line-height: 1.45; color: var(--ink-dim); }
.hv-p { margin: var(--space-12) 0 0; max-width: 60ch; font-size: var(--text-body); line-height: 1.55; }
.hv-fit { margin-top: var(--space-36); display: grid; justify-items: center; gap: var(--space-12); text-align: center; }
.hv-one { margin: 0; font-weight: 800; font-size: var(--text-headline); line-height: 1.15; letter-spacing: -0.02em; }
.hv-fit-t { margin: 0 0 var(--space-8); max-width: 46ch; font-size: var(--text-statement); line-height: 1.4; }
.hv-fit-t b { font-weight: 800; }
.hv-gains { list-style: none; margin: var(--space-32) 0 0; padding: 0; display: grid; gap: var(--space-12); }
.hv-gains li { padding: var(--space-24) var(--space-24) var(--space-24); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-card); }
.hv-gain-art { display: grid; place-items: center; width: 76px; height: 76px; border-radius: var(--r-round); background: var(--t); }
.hv-gain-art img { width: 58px; height: auto; }
.hv-gains h3 { margin: var(--space-16) 0 0; font-weight: 800; font-size: var(--text-headline); line-height: 1.1; letter-spacing: -0.02em; }
.hv-gains p { margin: var(--space-8) 0 0; font-size: var(--text-body); line-height: 1.5; color: var(--ink-dim); text-wrap: pretty; }
.hv .hm-shots { margin-top: var(--space-48); }
.hv-after { margin-top: var(--space-4); display: grid; justify-items: start; gap: var(--space-16); }
.hv-why { display: grid; gap: var(--space-40); align-items: center; }
.hv-big { margin: var(--space-20) 0 0; max-width: 34ch; font-size: var(--text-statement); font-weight: 600; line-height: 1.4; }
.hv-strong { font-size: var(--text-headline); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.hv-known { list-style: none; margin: var(--space-16) 0 var(--space-10); padding: 0; display: grid; gap: var(--space-10); }
.hv-known li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-14); align-items: center; }
.hv-known img { width: 56px; height: auto; filter: var(--drop-shield); }
.hv-known p { margin: 0; line-height: 1.4; }
.hv-why .more-link { display: inline-block; margin-top: var(--space-20); }
.hv-grid { list-style: none; margin: 0; padding: var(--space-20); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-12); border-radius: var(--r-xl); background: var(--stone); }
.hv-grid li { display: grid; place-items: center; }
.hv-grid img { width: 100%; max-width: 96px; height: auto; filter: grayscale(1); opacity: .28; }
.hv-grid li.is-lit img { filter: var(--drop-shield); opacity: 1; scale: 1.1; }
.hv .hv-two .hm-two-a { background: var(--paper); }
.hv-faq .hv-h2 { max-width: 840px; }
.hv-qs { margin-top: var(--space-24); max-width: 840px; border-top: 1px solid var(--line); }
.hv-q { border-bottom: 1px solid var(--line); }
.hv-q summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-16); padding: var(--space-20) var(--space-2); cursor: pointer; list-style: none; font-weight: 700; font-size: var(--text-title); line-height: 1.3; }
.hv-q summary::-webkit-details-marker { display: none; }
.hv-q summary:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: var(--r-sm); }
.hv-q-ic { flex: none; width: 26px; height: 26px; color: var(--ink); transition: rotate var(--dur-fast) var(--ease-out); }
.hv-q[open] .hv-q-ic { rotate: 45deg; }
.hv-q p { margin: 0 0 var(--space-20); max-width: 62ch; font-size: var(--text-body); line-height: 1.55; color: var(--ink-dim); }
.hv-close { padding: 0 0 var(--space-72); }
.hv-stage { padding: var(--space-96) var(--space-20); background: var(--charcoal); text-align: center; }
.hv-stage-in { max-width: 720px; margin: 0 auto; display: grid; justify-items: center; gap: var(--space-12); }
.hv-close-h { margin: 0; font-weight: 800; font-size: var(--text-hero); line-height: .95; letter-spacing: -0.035em; text-wrap: balance; color: var(--ink); }
.hv-close-p { margin: var(--space-4) 0 var(--space-20); font-size: var(--text-statement); color: var(--ink-dim); }
.hv-promise { margin-top: var(--space-56); }
@media (min-width: 640px) { .hv-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hv-hero { padding-top: var(--space-96); } }
@media (min-width: 860px) { .hv-gains { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hv-sec { padding: var(--space-96) 0; } }
@media (min-width: 960px) { .hv-why { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-64); } }
@media (prefers-reduced-motion: reduce) { .hv-land li { translate: 0 0; transition: none; } .hv-opt, .hv-q-ic { transition: none; } }
.hv .hv-fit .scan-call, .hv .hv-stage .scan-call { display: grid; justify-items: center; }
.hv .hv-fit .scan-note, .hv .hv-stage .scan-note { text-align: center; }
@media (max-width: 420px) { .hv-words { gap: var(--space-4); } .hv-words b { padding-inline: var(--space-10); } }
