/* ==========================================================================
   page-home.css  / (index.html) only. Home composition: grid proportions and sizes that only this page uses.
   Every reusable part (nav dropdown, gate strip, rail, tabs, figure ledger, steps, statement band, split CTA,
   qualify row, studio footer) lives in kd.css since Stage 2; see SYSTEM.md. Loaded after kd.css.
   Sections: hero (headline scale, strip sizing) · services grid + stills sheet · work foot ·
             built for (grid, where list, fit line)
   ========================================================================== */

/* ── hero ──────────────────────────────────────────────────────────────── */
.hm-hero { --fs: clamp(4.5rem, 11vw, 10.25rem); overflow: hidden; padding-bottom: clamp(56px, 7vw, 104px); }
.hm-hero__dateline { color: var(--ink); }
.hm-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(24px, 3.5vw, 56px); margin-top: clamp(24px, 3.2vw, 48px); align-items: start; }
.hm-hero__h { font-size: var(--fs); line-height: 0.9; letter-spacing: -0.006em; text-wrap: wrap; }
.hm-hero__l { display: block; }
.hm-hero__h .kd-mark { --mk-top: 0.5em; --mk-bot: 0.1em; }
.hm-hero__sub { margin-top: clamp(24px, 2.4vw, 36px); max-width: 30rem; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hm-hero__ctas { margin-top: var(--s-5); }
/* the contact strip (kd-strip--gate --bleed): frame size per breakpoint */
.hm-strip { align-self: stretch; }

/* desktop: the copy column is only as wide as the poster headline needs (about 480px at full size), so the
   frames get the rest and run tall enough to end level with the call-to-action. The hero closes near the
   fold of a 1440x900 screen, with the next band's edge just showing. */
@media (min-width: 1100px) {
  .hm-hero { padding-bottom: clamp(36px, 4.2vw, 60px); }
  .hm-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: clamp(20px, 2.2vw, 32px); }
  .hm-strip { --fw: clamp(264px, 24vw, 345px); margin-top: calc(-30px + 0.08 * var(--fs)); }
}
@media (max-width: 1099px) {
  .hm-hero { --fs: clamp(4rem, 10.4vw, 7.25rem); }
  .hm-strip { --fw: 200px; margin-top: 0; }
}
/* phones: DOM order is the reading order (headline, one paragraph, the call, then the strip). The strip
   sits below the button and peeks into the first screen. */
@media (max-width: 719px) {
  .hm-hero { --fs: min(calc((100vw - 2 * var(--gutter)) / 3.95), 6.25rem); padding-top: 4px; padding-bottom: var(--s-8); }
  .hm-hero .kd-dateline { flex-direction: column; gap: 2px; border-bottom: 0; padding-block: 10px 0; }
  .hm-hero .kd-dateline span:last-child { color: var(--ink-2); }
  .hm-hero__grid { grid-template-columns: 1fr; margin-top: 14px; }
  .hm-hero__sub { margin-top: var(--s-4); font-size: 1.0625rem; }
  .hm-hero__ctas { margin-top: var(--s-4); }
  .hm-hero__ctas .kd-btn { flex: 1 1 100%; }
  .hm-strip { --fw: 132px; --fgap: 10px; --pad-l: calc(var(--gutter) - 4px); --pad-t: 26px; margin: var(--s-4) calc(-1 * var(--gutter)) 0; }
}

/* ── services: numbered ledger (kd-steps) + stills sheet ───────────────── */
/* section headlines at the display-2 token, set to a 7.2em measure so they stack as two poster lines */
.hm-services .kd-head > .kd-display-2, .hm-work .kd-head > .kd-display-2 { max-width: 7.2em; }
.hm-services__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 112px); align-items: start; }
.hm-sheet { margin: 0; position: sticky; top: calc(var(--nav-h) + 32px); padding-top: 6px; }
/* the stills are frames 08 to 11 of the hero strip (same films, same numbers) */
.hm-sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; max-width: 470px; margin-left: auto; counter-reset: still 7; }
.hm-sheet__grid li { position: relative; counter-increment: still; aspect-ratio: 9 / 16; background: var(--surface-3); padding-top: 0; outline: 1px solid var(--photo-edge); }
.hm-sheet__grid li:nth-child(even) { transform: translateY(18%); }
.hm-sheet__grid img { width: 100%; height: 100%; object-fit: cover; }
.hm-sheet__grid li::after {
  content: counter(still, decimal-leading-zero); position: absolute; left: 0; top: calc(100% + 8px);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1; color: var(--ink-2);
}
@media (max-width: 959px) {
  .hm-services__grid { grid-template-columns: 1fr; }
  .hm-services__main { display: contents; }
  .hm-services .kd-head { order: 1; }
  .hm-sheet { order: 2; position: static; margin-top: var(--s-6); }
  .hm-sheet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: none; margin-left: 0; }
  .hm-sheet__grid li:nth-child(even) { transform: none; }
  .hm-ledger { order: 3; margin-top: var(--s-8); }
}

/* ── the work ──────────────────────────────────────────────────────────── */
.hm-work__foot { margin-top: var(--s-6); }

/* ── built for: tabs (kd-tabs--display) + results ledger (kd-ledger--fig) ─ */
.hm-built__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 112px); align-items: start; }
.hm-built__pick { display: grid; gap: var(--s-4); }
.hm-built__pick > .kd-label { color: var(--ink); }
.hm-built__results { padding-top: 6px; }
.hm-built__cs { margin-bottom: var(--s-4); }
.hm-built__src { margin-top: var(--s-5); }
.hm-built__lower { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 112px); margin-top: clamp(72px, 9vw, 128px); align-items: start; }
.hm-where { border-top: 1px solid var(--rule-strong); }
.hm-where > div { display: grid; gap: 4px; padding-block: 16px 18px; border-bottom: 1px solid var(--rule); }
.hm-where dd { font-size: 1.125rem; font-weight: 700; }
.hm-fit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-top: clamp(56px, 7vw, 96px); padding-top: var(--s-4); border-top: 1px solid var(--rule-strong); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.hm-fit .kd-btn--text { font-size: 1.125rem; }
.hm-fit .kd-btn--text svg { width: 16px; height: 16px; }
@media (max-width: 959px) {
  .hm-built__grid, .hm-built__lower { grid-template-columns: 1fr; row-gap: var(--s-7); }
}
@media (max-width: 719px) { .hm-fit { font-size: 1.125rem; } }
