/* How it works: three engines, each shown working on one player rather than
   described. Charts are ink on concrete and slab windows, with a single band in
   slab tone; the drill taken apart uses leader lines like a technical drawing. */

/* ---------- hero ---------- */
.hw-hero { padding: 132px var(--gut) var(--s8); display: flex; flex-direction: column; gap: var(--s8); }
.hw-title {
  font-family: var(--d); font-weight: 820; font-stretch: var(--wide); letter-spacing: -0.035em; line-height: 0.92;
  font-size: clamp(56px, min(8.6vw, 15svh), 140px);
}
.hw-engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.hw-engines a {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: var(--s4);
  padding: var(--s5) var(--s5) var(--s5) 0; text-decoration: none; overflow: hidden;
}
.hw-engines a + a { padding-left: var(--s5); border-left: 1px solid var(--joint); }
.hw-engines .n { font-family: var(--d); font-weight: 800; font-stretch: 104%; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hw-engines .t { font-family: var(--d); font-weight: 790; font-stretch: var(--wide); letter-spacing: -0.03em; font-size: clamp(26px, 3vw, 46px); line-height: 1; }
.hw-engines .ic { width: 22px; height: 22px; align-self: center; transform: rotate(90deg); transition: transform 0.3s var(--out); }
.hw-engines a::after { content: ''; position: absolute; left: 0; right: 0; top: -1.5px; height: 4px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--out); }
@media (hover: hover) {
  .hw-engines a:hover::after { transform: scaleX(1); }
  .hw-engines a:hover .ic { transform: rotate(90deg) translateX(4px); }
}

/* ---------- an engine ---------- */
.hw-eng { padding: var(--s9) var(--gut) var(--s8); border-top: 1px solid var(--joint); scroll-margin-top: 64px; }
.hw-h { display: grid; grid-template-columns: 64px minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s6); align-items: start; }
.hw-n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-top: 6px;
  font-family: var(--d); font-weight: 800; font-size: 18px; background: var(--ink); color: var(--paper);
}
.hw-h h2 { font-family: var(--d); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.035em; line-height: 0.96; font-size: clamp(36px, 4.4vw, 68px); max-width: 13em; }
.hw-l { font-size: 18px; line-height: 1.45; color: var(--ink-2); font-weight: 520; max-width: 44ch; padding-top: 10px; }

/* ---------- 1. level ---------- */
.hw-level { margin-top: var(--s7); display: grid; grid-template-columns: minmax(0, 8fr) minmax(260px, 3fr); gap: var(--s6); align-items: stretch; }
.hw-chart { margin: 0; background: var(--slab); aspect-ratio: 16 / 7; min-height: 300px; position: relative; }
.hw-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lv-grid line { stroke: var(--slab-joint); stroke-width: 1; }
.lv-grid text, .lv-x text { font-family: var(--f); font-size: 12px; font-weight: 640; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.lv-band { fill: var(--ground-deep); }
.lv-band-edge { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.45; }
.lv-line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.lv-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.lv-dot.is-up { fill: var(--ink); }
.lv-dot.is-down { fill: var(--ink-3); stroke: var(--ink); }
.lv-dot.is-first { fill: var(--ground); stroke-dasharray: 2 3; }
.lv-tag rect { fill: var(--ink); }
.lv-tag text { font-family: var(--f); font-size: 13px; font-weight: 680; fill: var(--paper); }
.lv-tag line { stroke: var(--ink); stroke-width: 1.5; }
.hw-side { display: flex; flex-direction: column; gap: var(--s4); padding-top: var(--s2); }
.hw-read { display: flex; align-items: baseline; gap: var(--s3); border-bottom: 1.5px solid var(--ink); padding-bottom: var(--s3); }
.hw-read .k { font-size: 15px; font-weight: 700; }
.hw-read .v { font-family: var(--d); font-weight: 820; font-stretch: 104%; letter-spacing: -0.04em; font-size: 88px; line-height: 0.9; font-variant-numeric: tabular-nums; margin-left: auto; }
.hw-said { font-size: 16px; font-weight: 600; line-height: 1.4; min-height: 4.2em; }
.hw-try { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: auto; }
.hw-try .btn .ic { width: 13px; height: 13px; }
.hw-try .btn-text { padding: 10px 4px; font-size: 14px; }

/* ---------- 2. plan ---------- */
.hw-tabs { position: relative; display: inline-flex; gap: 2px; margin-top: var(--s7); padding: 4px; border-radius: var(--r-ctl); background: var(--slab); }
.hw-tab {
  position: relative; z-index: 1; height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-ctl); background: transparent; cursor: pointer;
  font-weight: 640; font-size: 15px; color: var(--ink-2); transition: color 0.25s var(--out);
}
.hw-tab[aria-selected='true'] { color: var(--paper); }
.hw-tab small { font-weight: 520; opacity: 0.7; margin-left: 6px; font-size: 14px; }
.hw-tab-pill { position: absolute; z-index: 0; top: 4px; left: 0; height: 44px; width: 0; border-radius: var(--r-ctl); background: var(--ink); }
.hw-run { margin-top: var(--s5); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s5) var(--s8); align-items: start; }
/* who they are, one line: three facts with a joint between them */
.hw-who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); padding-bottom: var(--s4); border-bottom: 1.5px solid var(--ink); font-size: 17px; font-weight: 640; }
.hw-who span { display: inline-flex; align-items: center; gap: var(--s5); }
.hw-who span + span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.hw-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.hw-funnel li { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; column-gap: var(--s3); }
.hw-funnel .n { font-family: var(--d); font-weight: 820; font-stretch: 104%; font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: right; line-height: 1; }
.hw-funnel .l { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hw-funnel .bar { grid-column: 2; height: 6px; background: var(--ink); transform-origin: left center; margin-top: 2px; }
.hw-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hw-week li { min-height: 92px; padding: 10px; border: 1px solid var(--joint); display: flex; flex-direction: column; gap: 4px; }
.hw-week .d { font-weight: 720; font-size: 13px; }
.hw-week .f { font-size: 12px; font-weight: 640; line-height: 1.2; }
.hw-week .m { font-size: 12px; color: var(--ink-2); font-weight: 560; margin-top: auto; font-variant-numeric: tabular-nums; }
.hw-week li.is-train { background: var(--paper); }
.hw-week li.is-team .f, .hw-week li.is-rest .f { color: var(--ink-3); font-weight: 560; }
.hw-week li.is-match { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hw-week li.is-match .m { color: color-mix(in oklch, var(--paper) 70%, transparent); }
.hw-checks { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s3); }
.hw-checks li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); font-size: 15px; font-weight: 580; line-height: 1.35; }
.hw-checks .mk { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-top: 1px; }
.hw-checks .mk svg { width: 11px; height: 11px; color: var(--paper); }
.hw-checks li.is-fix .mk { background: var(--paper); border: 1.5px solid var(--ink); }
.hw-checks li.is-fix .mk svg { color: var(--ink); }
.hw-cta { margin-top: var(--s7); }

/* ---------- 3. a drill taken apart ---------- */
.hw-pick { margin-top: var(--s7); }
.hw-x { position: relative; margin-top: var(--s6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.hw-leads { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hw-leads path { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.hw-leads .ld-stub, .hw-leads .ld-tip { opacity: 0.55; transition: opacity 0.2s var(--out); }
.hw-leads .ld-tip { fill: var(--ink); }
.hw-leads .ld-reach { stroke-width: 1.75; opacity: 0; }
.hw-leads .ld-end { fill: var(--ink); stroke: var(--paper); stroke-width: 2; opacity: 0; transition: opacity 0.2s var(--out) 0.2s; }
.hw-leads .is-on .ld-stub, .hw-leads .is-on .ld-tip, .hw-leads .is-on .ld-reach, .hw-leads .is-on .ld-end { opacity: 1; }
.hw-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.hw-fields-l { text-align: right; }
.hw-field { position: relative; cursor: pointer; padding: 4px 0; border-radius: 4px; outline: none; }
.hw-field .k { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hw-field .v { display: block; margin-top: 2px; font-size: 17px; font-weight: 640; line-height: 1.3; }
.hw-field:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.hw-field.is-on .k { color: var(--ink); }
.hw-field.is-on .v { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.hw-card { margin: 0; position: relative; z-index: 1; }
.hw-win { background: var(--slab); aspect-ratio: 1; }
.hw-win .field { width: 100%; height: 100%; aspect-ratio: auto; }
.hw-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding-top: var(--s3); }
.hw-card-n { font-family: var(--d); font-weight: 780; font-stretch: 106%; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }
.hw-card-c { font-size: 13px; font-weight: 640; color: var(--ink-2); white-space: nowrap; }
.hw-reads { margin-top: var(--s6); min-height: 1.5em; text-align: center; font-size: 17px; font-weight: 640; }

/* ---------- today / later ---------- */
.hw-now { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); padding: var(--s8) var(--gut); border-top: 1px solid var(--joint); }
.hw-now-c { display: grid; grid-template-columns: auto 1fr; gap: var(--s5); align-items: baseline; }
.hw-now-c p:last-child { font-size: 19px; line-height: 1.4; font-weight: 560; max-width: 40ch; }
.hw-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--r-ctl); background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; }
.hw-now-c.is-later .hw-tag { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink); }
.hw-now-c.is-later p:last-child { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hw-h { grid-template-columns: 52px minmax(0, 1fr); }
  .hw-l { grid-column: 2; }
  .hw-level { grid-template-columns: minmax(0, 1fr); }
  .hw-side { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: var(--s6); }
  .hw-side .hw-try { grid-column: 1 / -1; }
  .hw-run { grid-template-columns: minmax(0, 1fr); }
  .hw-x { grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr) minmax(0, 1fr); gap: var(--s6); }
}
@media (max-width: 760px) {
  .hw-hero { padding-top: 104px; min-height: 0; gap: var(--s7); }
  .hw-title { font-size: clamp(44px, 13.4vw, 64px); }
  .hw-engines { grid-template-columns: minmax(0, 1fr); }
  .hw-engines a, .hw-engines a + a { padding: var(--s4) 0; border-left: 0; border-bottom: 1px solid var(--joint); }
  .hw-engines .t { font-size: 30px; }
  .hw-eng { padding: var(--s8) var(--gut) var(--s7); }
  .hw-h { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); }
  .hw-l { grid-column: 1; font-size: 17px; padding-top: 0; }
  .hw-n { width: 36px; height: 36px; font-size: 15px; margin-top: 0; }
  .hw-chart { aspect-ratio: 4 / 3.4; min-height: 0; }
  .hw-side { display: flex; }
  .hw-read .v { font-size: 64px; }
  .hw-tabs { display: flex; width: 100%; }
  .hw-tab { flex: 1; padding: 0 8px; font-size: 14px; }
  .hw-tab small { display: none; }
  .hw-run { grid-template-columns: minmax(0, 1fr); }
  .hw-who { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 16px; }
  .hw-who span + span::before { display: none; }
  .hw-week { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
  .hw-week li { flex: none; width: 96px; }
  .hw-x { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5) var(--s4); }
  .hw-card { grid-column: 1 / -1; grid-row: 1; }
  .hw-fields-l { text-align: left; }
  .hw-leads { display: none; }
  .hw-reads { text-align: left; }
  .hw-now { grid-template-columns: minmax(0, 1fr); }
  .hw-now-c { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
}
