/* Overview: numbered sequence 01-04 (Faster / Smarter / Bigger / Better) */

.page-overview .page-hero__bg { object-position: 50% 35%; }

/* Sequence index strip, directly under the hero */
.seq { background: var(--ink); color: var(--text-inv); border-bottom: 1px solid #000; }
.seq ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.seq li + li { border-left: 1px solid var(--line-inv); }
.seq a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding: 22px 22px 24px; text-decoration: none; transition: background .2s; }
.seq a:hover { background: rgba(255, 255, 255, .04); }
.seq a:hover .seq__title { text-decoration: underline; text-underline-offset: 3px; }
.seq__no { grid-row: span 2; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; color: var(--cad-cyan); }
.seq__title { font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 115; letter-spacing: .02em; transition: color .2s; }
.seq__text { font-size: .85rem; color: var(--text-inv-2); line-height: 1.35; }
@media (max-width: 900px) {
  .seq ul { grid-template-columns: repeat(2, 1fr); }
  .seq li { border-top: 1px solid var(--line-inv); }
  .seq li:nth-child(-n+2) { border-top: 0; }
  .seq li + li { border-left: 0; }
  .seq li:nth-child(even) { border-left: 1px solid var(--line-inv); }
}
@media (max-width: 460px) {
  .seq a { grid-template-columns: 1fr; padding: 16px 16px 18px; }
  .seq__no { grid-row: auto; }
}

/* Spec block: title-block style key / value rows */
.spec { margin: 36px 0 0; border-top: 1.5px solid var(--text); }
.spec > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); align-self: center; }
.spec dd { margin: 0; font-weight: 700; font-variation-settings: "wdth" 108; }

/* Chapter: numbered section opener */
.chapter { padding-top: clamp(56px, 7vw, 100px); }
.chapter__rule { display: flex; align-items: flex-end; gap: 20px; margin-bottom: clamp(28px, 4vw, 52px); }
.chapter__no {
  font-size: clamp(5rem, 13vw, 11rem); font-weight: 800; line-height: .78; letter-spacing: -.02em;
  font-variation-settings: "wdth" 125; font-variant-numeric: lining-nums;
  color: transparent; -webkit-text-stroke: 1.5px var(--crimson);
}
.on-dark .chapter__no { -webkit-text-stroke-color: var(--crimson-hi); }
.chapter__line { flex: 1; height: 1px; margin-bottom: 4px; background: var(--line-strong); position: relative; }
.chapter__line::after { content: ""; position: absolute; right: 0; top: -4px; width: 1px; height: 9px; background: currentColor; }
.chapter__of { margin-bottom: -2px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--text-2); }
.on-dark .chapter__line { background: var(--line-inv-strong); }
.on-dark .chapter__of { color: var(--cad-cyan); }
.chapter .split { align-items: start; }
.chapter .split__text .h-display { margin-bottom: 22px; }
.chapter .split__media { align-self: start; }

/* Ticked list: each fact on its own ruled row */
.ticks { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 56ch; }
.ticks li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.5; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: calc(13px + .75em); width: 14px; height: 1px; background: var(--crimson); }
.ticks li::after { content: ""; position: absolute; left: 14px; top: calc(13px + .75em - 3px); width: 1px; height: 7px; background: var(--crimson); }
.ticks strong { color: var(--text); }
.on-dark .ticks { border-color: var(--line-inv); }
.on-dark .ticks li { border-color: var(--line-inv); color: var(--text-inv-2); }
.on-dark .ticks li::before, .on-dark .ticks li::after { background: var(--crimson-hi); }
.on-dark .ticks strong { color: var(--text-inv); }
.chapter .link-arrow { margin-top: 28px; }
.chapter .btn-row { margin-top: 32px; }

@media (max-width: 900px) {
  .chapter__no { font-size: clamp(4.5rem, 24vw, 7rem); }
}
@media (max-width: 480px) {
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Dark chapters: lift annotation colours for contrast on navy/ink */
.chapter.on-dark .eyebrow { color: #fff; }
.chapter.on-dark .eyebrow::before { background: var(--crimson-hi); }
.chapter.on-dark .figure-caption b { color: var(--cad-cyan); }

/* Trim the Windows taskbar off the Huntenpop screenshot */
.page-overview .window img[src$="Huntenpop-demo.webp"] { aspect-ratio: 1920 / 1034; object-fit: cover; object-position: top; }

.page-hero .eyebrow::before { background: var(--crimson-hi); }
