/* Home (/) styles, from the lab mock (website-lab/site/_home-mock/home-mock.css, 2026-11-13). Layout uses container queries on .hm-frame. */
:root {
  --hm-card: #120B33;      /* opaque card block, a step darker than navy */
  --hm-card2: #221659;     /* V2/V3 card, a step lighter than navy */
  --hm-fill: #7040F4;      /* hover accent (Vivid violet: white text passes contrast; Lavender does not) */
  --hm-ivory: #fff;
}
html { scroll-behavior: smooth; }
body { background: #0d0826; }
.hm-frame { container-type: inline-size; background: var(--ink); margin: 0 auto; transition: max-width .3s var(--ease); max-width: 100%; }
/* phone preview: the closed menu sits just right of the 390px frame (translateX 100%), so hide it until opened */
main.hm { padding-top: 0; }
.hm section { padding: 0; }
.hm-eyebrow { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; }

/* 1 Hero */
.hm-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 40px !important; position: relative; }
.hm-display { font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: .96; font-size: clamp(44px, 8.6cqw, 136px); max-width: 15ch; }
.hm-display em { font-style: normal; color: var(--accent); }
.hm-display-sm { font-size: clamp(40px, 6cqw, 96px); }
/* scroll cue removed 2026-11-13 (user) */

/* Hero art concepts (hero-art.js) */
.hm-hero { overflow: hidden; }
.hm-hero > *:not(.hm-hero-art) { position: relative; z-index: 1; }
.hm-hero-art { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
.hm-hero { background: #09080e; }
/* Star: object on the right, headline left */
body[data-hero="star"] .hm-hero .hm-display { max-width: 12ch; font-size: clamp(44px, 7cqw, 112px); }
@container (max-width: 640px) {
  body[data-hero="star"] .hm-hero-art { opacity: .9; }
  body[data-hero="star"] .hm-hero { justify-content: flex-start; padding-top: 110px !important; }   /* headline up, star below it */
  body .hm-hero .hm-display { font-size: 12.4cqw; }
}

/* Tone: Neutral (picked) = near-black + graphite; lavender stays as the one accent */
body.neutral { --ink: #0A0910; --line: #2A2833; --muted: #A9A7B3; --hm-card: #0E0D14; --hm-card2: #18171F; background: #050408; }
body.neutral .hm-statement, body.neutral .hm-playbooks, body.neutral .hm-cta { border-top-color: rgba(255,255,255,.08); }
body.neutral .v4:hover::before, body.neutral .v4:focus-visible::before { background: rgba(24,23,31,.3); }

/* 2–3 Statements */
.hm-statement { padding: 140px var(--gutter) !important; border-top: 1px solid rgba(74,40,158,.6); }
.hm-statement-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px var(--gutter); align-items: end; }
.hm-statement h2 { font-size: clamp(36px, 4.6cqw, 72px); max-width: 14ch; }
.hm-body { font-size: clamp(19px, 1.6cqw, 24px); line-height: 1.55; color: var(--muted); max-width: 34ch; }
/* Our technology: centred statement (trial 2026-11-13), breaks the grid rhythm of Why now / Why us */
.hm-statement--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hm-statement--center h2 { max-width: 18ch; margin: 0 auto 40px; }
.hm-statement--center .hm-body { max-width: 44ch; margin: 0 auto; text-wrap: pretty; }
.hm-statement--center .hm-body em { font-style: normal; color: var(--accent); white-space: nowrap; }
/* cards sit right under Our technology (user 2026-11-13): shorter gap, no divider */
.hm-statement--center { padding-bottom: 72px !important; }

/* 4 Playbooks */
.hm-playbooks { padding: 0 var(--gutter) 120px !important; border-top: 0; }
/* screen-reader-only heading (Playbooks, 2026-11-13) */
.hm-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hm-playbooks-h { font-size: clamp(36px, 4.6cqw, 72px); margin-bottom: 64px; }
.hm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.hm-card { position: relative; display: flex; flex-direction: column; color: var(--hm-ivory); border: 0; overflow: hidden; isolation: isolate; }
.hm-card:hover { border: 0; }
/* V4 card (user 2026-11-13; from _home-mock-options): High Alpha size, name + arrow + question, art reveal on hover */
.v4 { background: var(--hm-card); border-radius: 6px; padding: 32px; min-height: 20rem; justify-content: flex-end; }
.v4::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hm-card2); transition: background-color .45s; }
.v4:hover::before, .v4:focus-visible::before { background: rgba(34,22,89,.3); }
.v4 .hm-art { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; z-index: -2; }
.v4:hover .v2-arrow { transform: rotate(-45deg); background: var(--paper); color: var(--ink); border-color: var(--paper); }
.v4 .v2-arrow { transition: transform .45s, background-color .45s, color .45s; }
.v2-title { display: flex; align-items: center; gap: .75rem; font-size: 36px; font-weight: 400; line-height: 1.1; }
.v2-arrow { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; }
.v2-arrow svg { width: 14px; height: 14px; }
.v2-line { margin-top: 10px; font-size: 18px; line-height: 1.45; color: rgba(255,255,255,.76); max-width: 22rem; }

/* V1: PSL-measured question card; division art revealed behind the block on hover */
.v1 { height: 38cqw; min-height: 480px; max-height: 600px; justify-content: space-between; padding: 2em 2.5em 3em; }
.v1 .hm-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.v1::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hm-card); transition: background-color .45s; }
.v1:hover::before, .v1:focus-visible::before { background: rgba(18,11,51,.35); }
.hm-label { font-size: 21px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hm-q { display: block; text-wrap: balance; font-size: clamp(28px, 2.3cqw, 36px); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 40px; }
.hm-btn { display: inline-block; align-self: flex-start; border: 1px solid var(--muted); border-radius: 42px; padding: 21px 40px; white-space: nowrap; font-size: 18px; line-height: 1; background: transparent; transition: background-color .45s, color .45s, border-color .45s; }
.hm-card:hover .hm-btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Card text (V4): name + round arrow + one line */

/* V4: V2 size + text, V1 art reveal (art in the right part of the card, behind a block that fades on hover) */

/* 5 CTA */
.hm-cta { padding: 160px var(--gutter) !important; text-align: center; display: flex; flex-direction: column; align-items: center; border-top: 1px solid rgba(74,40,158,.6); }
.hm-cta .hm-display { max-width: 16ch; }
.hm-cta-btn { margin-top: 48px; border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); padding: 20px 56px; font-size: 18px; transition: background-color .25s var(--ease), color .25s var(--ease); }
.hm-cta-btn:hover { background: var(--paper); }

/* 6 Footer: About block removed 2026-11-13 (user); division links + email */
footer { border-top: 1px solid rgba(255,255,255,.08); }
.hm-foot-grid { grid-template-columns: 2fr 1fr; align-items: start; }



/* Footer inside the frame: mirror style.css phone rule by container */
@container (max-width: 767px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* 3 cards need ~1100px; below that, stack them */
@container (max-width: 1099px) {
  .hm-cards { grid-template-columns: 1fr; gap: 12px; }
  .v1 { height: auto; min-height: 360px; max-height: none; }
}

/* Tablet */
@container (max-width: 1023px) {
  .v1 { height: auto; min-height: 360px; max-height: none; padding: 2em 12% 3em 2.5em; }
  .hm-q { font-size: 40px; }
}

/* Phone */
@container (max-width: 640px) {
  .hm-hero { padding: 100px 16px 40px !important; }
  .hm-display { font-size: 12.4cqw; }
  .hm-display-sm { font-size: 11cqw; }
  .hm-statement, .hm-playbooks, .hm-cta { padding: 88px 16px !important; }
  .hm-statement--center { padding-bottom: 48px !important; }
  .hm-playbooks { padding-top: 0 !important; }
  .hm-statement-grid { grid-template-columns: 1fr; gap: 24px; }
  .hm-statement h2, .hm-playbooks-h { font-size: 38px; }
  .hm-body { font-size: 19px; }
  .hm-playbooks-h { margin-bottom: 40px; }
  .hm-cards { grid-template-columns: 1fr; gap: 12px; }
  .v1 { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 5; padding: 24px 24px 32px; }
  .hm-label { font-size: 17px; }
  .hm-q { font-size: 32px; margin-bottom: 28px; }
  .hm-btn { padding: 16px 36px; font-size: 16px; }
  /* phone: no hover, so V1 art shows by default (dimmed) and runs while the card is on screen */
  .v1::before { background: rgba(18,11,51,.55); }
  .v4 { min-height: 17rem; padding: 24px; }
  .v4 .hm-art { width: 100%; }
  .v4::before { background: rgba(34,22,89,.55); }
  .v2-title { font-size: 30px; }
  .v2-line { font-size: 17px; }
  .hm-foot-grid { grid-template-columns: 1fr; gap: 40px; }
  footer .wrap { padding: 0 16px; }
  .foot-links { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .v1::before, .v4::before, .v2-arrow, .hm-btn { transition-duration: .01s; }
}
