/* Home, site v4, second direction (2026-11-11). Five parts: first screen, what I do, the work, about, start.
   Rule for every picture on this page: shown whole, at its own shape. Nothing is cropped and no words sit on a picture. */

/* ---------- 1. first screen: styled by v4/home/first/section.css (its own session) ---------- */
/* until its section arrives the slot keeps one full screen, so "What I do" is never drawn at the top and then pushed away
   (a slow phone showed a layout shift of 1.0). Only with scripts on (hm-pre); home.js drops it if the section fails. */
.hm-pre .hm-first:empty { min-height: 100vh; min-height: 100svh; }

/* ---------- 2. three answers: words beside one real picture, shown whole; then three steps set large ---------- */
.hm-ans-list { display: grid; gap: clamp(64px, 9vw, 128px); }
.hm-ans-row { display: grid; gap: 22px; align-items: center; }
.hm-ans-say { display: grid; gap: 16px; align-content: center; }
.hm-ans-say p { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; color: var(--soft); max-width: 27em; }
.hm-ans-pic { display: grid; place-items: center; }
.hm-ans-pic video, .hm-ans-pic img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(72svh, 640px); object-fit: contain; border-radius: 2px; background: var(--ink2); }
.hm-ans-pic video { aspect-ratio: 390 / 844; height: min(72svh, 640px); }
.hm-how { gap: clamp(24px, 3vw, 40px); }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 32px); counter-reset: st; }
.hm-steps li { counter-increment: st; display: grid; grid-template-columns: 1.6em minmax(0, 1fr); column-gap: .5em; font-family: var(--disp); font-weight: 800; letter-spacing: -.018em; line-height: 1.12; font-size: clamp(1.45rem, 3.4vw, 2.6rem); max-width: 24em; }
.hm-steps li::before { content: counter(st); color: var(--signal); }
@media (min-width: 900px) {
  .hm-ans-row:not(.hm-how) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 112px); }
}

/* ---------- 3. the work: styled by v4/home/work/section.css (its own session) ---------- */

/* ---------- 4. about ---------- */
.hm-about-in { display: grid; gap: 22px; }
.hm-about-say { display: grid; gap: 18px; }
.hm-big { font-weight: 500; letter-spacing: -.008em; line-height: 1.4; font-size: clamp(1.25rem, 4.6vw, 1.5rem); max-width: 30em; text-wrap: pretty; }
.hm-about-say p:not(.hm-big) { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--soft); }
@media (min-width: 900px) { .hm-about-in { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); } .hm-big { font-size: clamp(1.5rem, 1.9vw, 1.95rem); } }

/* ---------- 5. start ---------- */
.hm-start-in { display: grid; gap: clamp(32px, 5vw, 80px); }
.hm-start-say { display: grid; gap: 18px; align-content: start; }
.hm-start-say h2 { max-width: 15em; }
.hm-form { display: grid; gap: 18px; max-width: 640px; }
.hm-form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.hm-form input, .hm-form textarea { width: 100%; background: var(--ink2); border: 0; border-bottom: 1.5px solid var(--rule2); border-radius: 2px 2px 0 0; padding: 14px; font-weight: 400; font-size: 17px; color: var(--paper); resize: vertical; }
.hm-form input::placeholder, .hm-form textarea::placeholder { color: var(--quiet); }
.hm-form input:focus-visible, .hm-form textarea:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-bottom-color: var(--paper); }
.hm-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 6px; }
.hm-sent { font-weight: 500; min-height: 1.5em; }
.hm-after { color: var(--soft); font-size: 15px; line-height: 1.45; max-width: 34em; }
@media (min-width: 900px) { .hm-start-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* ---------- reduced motion: nothing grows or turns; every client shown at full size ---------- */
@media (prefers-reduced-motion: reduce) {
}

/* ---------- seams between sections (the assembler's) ---------- */
/* two light sections in a row get a hairline between them, so each still reads as its own part */
.paper[data-sec] + .paper[data-sec] { box-shadow: inset 0 1px 0 rgba(12, 13, 16, .14); }
/* and two dark ones (About, then Start since Brian chose its dark form at 23:1x) a light hairline */
[data-sec="about"]:not(.paper) + [data-sec="start"]:not(.paper) { box-shadow: inset 0 1px 0 rgba(244, 240, 232, .14); }

/* ---------- the score: hand-over 2, the wall zooms into its open page (only with .is-score; see home.js) ---------- */
/* the wall is held for one stretch of scroll while it grows; a spacer, not padding, gives it room to travel */
.is-score .hm-first::after { content: ""; display: block; height: var(--hm-pass, 130svh); }
.is-score .hm-first .hf-wallsec { position: sticky; top: 0; height: 100svh; background: var(--ink); overflow: hidden; overflow: clip; }   /* the page grows inside its own screen, never past it */
.hd { transition: background .4s, border-color .4s, transform .45s var(--ease); }
.is-score .hd.hm-away { transform: translateY(-101%); }

/* ---------- the score: hand-over 4, About slides up over the work's last stop (creative director 00:3x; layout only) ----------
   Only when the work holds its stops one screen at a time (data-run="s"): the section gets one more screen, so the last stop
   stays held while About, on Paper, comes up over it. Above the stops' own shade (z 7) and dots (z 8). No added length:
   the extra screen is taken back by About's negative margin. */
.is-score .hm-work[data-run="s"]::after { content: ""; display: block; height: 100svh; }
.is-score .hm-work[data-run="s"] + [data-sec="about"] { position: relative; z-index: 10; margin-top: -100svh; }

/* hand-over 2: once the zoomed page fills the screen, its name and Pause sit on the restaurant's own footer row;
   a small Ink plate keeps them readable. Pause stays: the page plays a moving reel. */
.is-score .hm-first[data-phase="open"] .hf-now { background: rgba(12, 13, 16, .82); padding: 6px 16px; border-radius: 2px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* hand-over 4: the work's sticky stop dots can reach past the work; Start sits on the same layer as About so they never show on it */
.is-score .hm-work[data-run="s"] ~ [data-sec="start"] { position: relative; z-index: 10; }
