/* FUNCTION AT SCALE, v5 layer. Loads after v4.css. Keynote hero, product shot, velocity band. */

/* Header: one surface with the page, no line on scroll */
.site-head, .site-head.scrolled { background: var(--paper); border-bottom-color: transparent; }

/* Hero: the headline owns the full width */
.hero { padding-block: clamp(44px, 6vw, 96px) 0; }
.hero-v5 .eyebrow { margin-bottom: clamp(18px, 2.4vw, 30px); }
.hero-v5 h1 { font-size: clamp(3.1rem, 8.4vw, 9.25rem); line-height: .94; letter-spacing: -0.032em; max-width: none; }
.hero-v5 h1 .h1-line { display: block; }
.hero-v5 h1 .h1-line + .h1-line { padding-left: clamp(0px, 9vw, 150px); }
.hero-sub { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(28px, 4vw, 52px); align-items: end; }
.hero-sub .lede { grid-column: 1 / span 6; color: var(--ink); max-width: 32ch; margin: 0; }
.hero-sub .cta-row { grid-column: 8 / span 5; justify-content: flex-end; margin-top: 0; }
@media (max-width: 899px) {
  .hero-sub .lede, .hero-sub .cta-row { grid-column: 1 / -1; justify-content: flex-start; }
  .hero-v5 h1 .h1-line + .h1-line { padding-left: 0; }
}

/* Product shot: what week two looks like */
.shot { margin-top: clamp(44px, 6vw, 84px); background: var(--dark); color: var(--paper); position: relative; padding: clamp(18px, 2.4vw, 34px); }
.shot::before { content: ""; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 22px 22px 0; border-color: transparent var(--red) transparent transparent; }
.shot-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--paper-rule); }
.shot-bar .mono { color: var(--paper-70); }
.shot-title { display: flex; align-items: center; gap: 14px; font-size: 1.25rem; }
.shot-dots { display: inline-flex; gap: 6px; }
.shot-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.shot-dots i:nth-child(1) { background: var(--red); } .shot-dots i:nth-child(2) { background: var(--yellow); } .shot-dots i:nth-child(3) { background: var(--blue); }
.shot-grid { display: grid; grid-template-columns: 1.55fr 1fr 1.1fr; gap: clamp(18px, 2.4vw, 36px); margin-top: 18px; }
.shot-h { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-70); font-weight: 400; margin: 0 0 6px; }
.pri li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--paper-rule); font-size: 1.08rem; line-height: 1.3; }
.owner { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-70); border: 1px solid var(--paper-35); padding: 3px 7px; white-space: nowrap; }
.pill { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; white-space: nowrap; }
.pill.ok { background: var(--blue); color: var(--paper); }
.pill.risk { background: var(--red); color: var(--paper); }
.pill.done { background: var(--yellow); color: var(--ink); }
.pill.prog { border: 1px solid var(--paper-35); color: var(--paper); }
.kpi { padding: 10px 0 14px; border-bottom: 1px solid var(--paper-rule); }
.kpi-n { font-size: clamp(2.3rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-n small { font-size: .38em; letter-spacing: 0; color: var(--paper-70); margin-left: 8px; }
.kpi p { margin-top: 6px; color: var(--paper-70); font-size: .98rem; line-height: 1.35; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 10px; }
.spark i { flex: 1; height: var(--h); background: var(--paper-35); }
.spark i:last-child { background: var(--yellow); }
.dlog li { padding: 10px 0; border-bottom: 1px solid var(--paper-rule); font-size: 1.02rem; line-height: 1.35; }
.dlog .mono { display: block; color: var(--paper-70); margin-bottom: 3px; }
.shot-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--ink-70); }
.shot-cap p:first-child { font-size: 1.05rem; max-width: 60ch; }
.js .shot .anim { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
.shot.in-view .anim { opacity: 1; transform: none; }
@media (max-width: 1099px) { .shot-grid { grid-template-columns: 1fr 1fr; } .shot-col-pri { grid-column: 1 / -1; } }
@media (max-width: 640px) { .shot-grid { grid-template-columns: 1fr; } .pri li { grid-template-columns: 1fr auto; } .pri .owner { grid-column: 1; justify-self: start; } .shot-cap { flex-direction: column; } }

/* Velocity band */
.stats-v5 .stat-n { color: var(--ink); }
.stats-v5 .stat-n em { font-style: italic; }
.cred-live { display: flex; flex-wrap: wrap; gap: 8px 0; }
