/* Help centre: video library. Uses the tokens from site.css (carbon / paper / signal). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hv-page { --hv-mist: #F5F5F6; --hv-line: #E7E7EA; }

/* ---------- hero ---------- */
.hv-hero { position: relative; overflow: hidden; background: var(--carbon); color: var(--paper); padding: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 0 clamp(3.5rem, 2.5rem + 3vw, 4.5rem); }
.hv-hero-mark { position: absolute; right: -2%; top: 0; height: 100%; width: auto; pointer-events: none; }
.hv-hero-mark .a { fill: #1E1E22; }
.hv-hero-mark .b { fill: #2A0D0C; }
.hv-hero .wrap { position: relative; }
.hv-eyebrow {
  display: flex; align-items: center; gap: .75rem; font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--signal-bright);
}
.hv-eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--signal); }
.hv-hero h1 {
  color: var(--paper); font-family: var(--f-display); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); max-width: 19ch; margin-top: 1.5rem;
}
.hv-lede { margin-top: 1.6rem; font-size: var(--t-md); color: rgba(255,255,255,.72); }

.hv-search { position: relative; display: block; max-width: 47.5rem; margin-top: 1.75rem; }
.hv-search svg { position: absolute; left: 1.15rem; top: 50%; width: 1.15rem; height: 1.15rem; margin-top: -.575rem; fill: none; stroke: var(--ash); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.hv-search input { width: 100%; font-size: var(--t-base); padding: 1rem 1.25rem 1rem 3rem; border: 0; border-radius: 8px; background: var(--paper); color: var(--carbon); }
.hv-search input::placeholder { color: var(--ash); }
.hv-search input:focus { outline: 3px solid var(--signal); outline-offset: 2px; }

.hv-tabs { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hv-tabs button {
  display: inline-flex; align-items: baseline; gap: .55rem; font-size: var(--t-sm); font-weight: 700;
  padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: var(--paper);
}
.hv-tabs button b { color: var(--signal); }
.hv-tabs button small { font-size: var(--t-xs); font-weight: 600; color: rgba(255,255,255,.55); }
.hv-tabs button[aria-selected="true"] { background: var(--paper); border-color: var(--paper); color: var(--carbon); }
.hv-tabs button:hover { border-color: var(--paper); }
.hv-tabs button:focus-visible { outline: 2px solid var(--signal-bright); outline-offset: 2px; }

/* ---------- start here ---------- */
.hv-start { background: var(--hv-mist); border-bottom: 1px solid var(--hv-line); padding: clamp(2.5rem, 2rem + 2vw, 3.75rem) 0; }
.hv-start-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.hv-start-head h2 { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; letter-spacing: -.02em; }
.hv-start-head p { color: var(--ash); font-size: var(--t-sm); }
.hv-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hv-step {
  display: flex; align-items: center; gap: 1.1rem; width: 100%; height: 100%; text-align: left;
  background: var(--paper); border: 1px solid var(--hv-line); border-radius: 14px; padding: 1.25rem 1.25rem 1.25rem 1.1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hv-step:hover { border-color: var(--carbon); box-shadow: 0 10px 24px rgba(10,10,13,.08); }
.hv-step:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.hv-step-n { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 10px; background: var(--carbon); color: var(--paper); font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; }
.hv-step-txt { display: flex; flex-direction: column; gap: .25rem; }
.hv-step-txt strong { font-family: var(--f-display); font-size: var(--t-md); font-weight: 700; letter-spacing: -.01em; }
.hv-step-txt > span { font-size: var(--t-sm); color: var(--ash); line-height: 1.45; }
.hv-step-txt em { display: inline-flex; align-items: center; gap: .4rem; font-style: normal; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--signal-deep); margin-top: .15rem; }
.hv-step-txt em .hv-tri { border-left-color: var(--signal); }

/* ---------- library ---------- */
.hv-lib { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 3rem); padding-top: 3.5rem; padding-bottom: clamp(4rem, 3rem + 3vw, 6rem); }
.hv-main { min-width: 0; }
.hv-side { position: sticky; top: 7rem; align-self: start; }
.hv-side-t { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); padding-left: .75rem; margin-bottom: .9rem; }
.hv-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.hv-side button {
  display: flex; align-items: baseline; gap: .85rem; width: 100%; text-align: left; padding: .6rem .75rem; border-radius: 8px;
  font-size: var(--t-sm); color: var(--carbon);
}
.hv-side button:hover { background: var(--hv-mist); }
.hv-side button.on { background: var(--carbon); color: var(--paper); font-weight: 700; }
.hv-side button:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.hv-n { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--signal); min-width: 1.4rem; }
.hv-dots { color: var(--paper); letter-spacing: .1em; }
.hv-side button:not(.on) .hv-dots { color: var(--carbon); }
.hv-t { flex: 1; }
.hv-c { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ash-soft); font-weight: 400; }
.hv-side button.on .hv-c { color: rgba(255,255,255,.45); }

.hv-none { font-size: var(--t-md); color: var(--ash); padding: 1rem 0; }

.hv-ch + .hv-ch { margin-top: clamp(3rem, 2rem + 2.5vw, 4.5rem); }
.hv-ch-head { display: flex; align-items: center; gap: 1.1rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--hv-line); }
.hv-ch-n {
  font-family: var(--f-display); font-size: clamp(2.8rem, 2.2rem + 2vw, 3.9rem); font-weight: 500; line-height: .85; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px var(--signal);
}
.hv-ch-head h2 { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.hv-ch-head p { color: var(--ash); font-size: var(--t-sm); margin-top: .3rem; }
.hv-ch-head p span { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ash); margin-left: .45rem; white-space: nowrap; }

.hv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2.5rem; }
.hv-row { display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; border-radius: 10px; padding: 0; }
.hv-row:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.hv-thumb {
  position: relative; flex: none; width: 9.5rem; aspect-ratio: 152 / 86; overflow: hidden; border-radius: 8px;
  background: linear-gradient(150deg, #1C1C21, var(--carbon) 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hv-slash { position: absolute; right: .55rem; bottom: .2rem; width: 3.3rem; }
.hv-slash path:first-child { fill: #3A3A40; }
.hv-slash path:last-child { fill: #5A1310; }
.hv-code { position: absolute; left: .6rem; top: .5rem; font-family: var(--f-mono); font-size: .68rem; color: rgba(255,255,255,.62); }
.hv-dur {
  position: absolute; left: .5rem; bottom: .55rem; display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 700; color: var(--paper); background: var(--signal); padding: .2rem .5rem .2rem .45rem; border-radius: 999px;
}
.hv-tri { width: 0; height: 0; border-style: solid; border-width: .25rem 0 .25rem .38rem; border-color: transparent transparent transparent var(--paper); }
.hv-ttl { font-size: var(--t-base); font-weight: 700; line-height: 1.3; }
.hv-mb { display: block; font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 400; color: var(--ash); margin-top: .2rem; }
.hv-row:hover .hv-thumb { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10,10,13,.25); }
.hv-row:hover .hv-slash path:last-child { fill: var(--signal); }
.hv-row:hover .hv-ttl { color: var(--signal-deep); }

/* ---------- marketing (coming soon) ---------- */
.hv-empty { padding: clamp(4rem, 3rem + 5vw, 7rem) 0; text-align: center; }
.hv-empty .hv-slash { position: static; width: 4.5rem; margin: 0 auto 1.5rem; }
.hv-empty .hv-slash path:first-child { fill: var(--carbon); }
.hv-empty .hv-slash path:last-child { fill: var(--signal); }
.hv-empty h2 { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 700; letter-spacing: -.03em; }
.hv-empty p { color: var(--ash); margin: 1rem auto 0; max-width: 40ch; }
.hv-empty a { color: var(--signal-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- still stuck ---------- */
.hv-stuck { background: var(--carbon); color: var(--paper); padding: 2.25rem 0; }
.hv-stuck .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.hv-stuck p { color: rgba(255,255,255,.72); font-size: var(--t-sm); }
.hv-stuck-btn { background: var(--signal); color: var(--paper); font-weight: 700; font-size: var(--t-sm); padding: .75rem 1.3rem; border-radius: 999px; }
.hv-stuck-btn:hover { background: var(--signal-deep); }

/* ---------- the player ---------- */
.hv-player {
  width: min(1100px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 16px;
  background: var(--carbon); color: var(--paper); overflow: auto;
}
.hv-player::backdrop { background: rgba(10,10,13,.82); backdrop-filter: blur(4px); }
.hv-p-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem 1rem; }
.hv-p-code { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--signal-bright); }
.hv-p-top h2 { color: var(--paper); font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; letter-spacing: -.02em; margin-top: .2rem; }
.hv-p-x { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.6rem; line-height: 1; color: var(--paper); background: rgba(255,255,255,.1); }
.hv-p-x:hover { background: var(--signal); }
.hv-player video { width: 100%; max-height: calc(100vh - 14rem); background: #000; display: block; }
.hv-p-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding: 1rem 1.5rem 1.4rem; }
.hv-p-foot p { color: rgba(255,255,255,.7); font-size: var(--t-sm); max-width: 50ch; }
.hv-p-nav { display: flex; gap: .6rem; flex-wrap: wrap; }
.hv-p-nav button { font-size: var(--t-sm); font-weight: 600; padding: .65rem 1.1rem; border-radius: 999px; border: 1px solid var(--hair-on-dark); color: var(--paper); }
.hv-p-nav button:hover { border-color: var(--paper); }
.hv-p-nav .hv-p-next { background: var(--signal); border-color: var(--signal); }
.hv-p-nav .hv-p-next:hover { background: var(--signal-deep); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .hv-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .hv-hero-mark { opacity: .55; }
  .hv-steps { grid-template-columns: minmax(0, 1fr); }
  .hv-lib { grid-template-columns: minmax(0, 1fr); padding-top: 1.5rem; }
  .hv-side { top: 4.6rem; z-index: 4; min-width: 0; background: var(--paper); margin: 0 calc(var(--gutter) * -1); padding: .6rem var(--gutter); border-bottom: 1px solid var(--hv-line); }
  .hv-side-t { display: none; }
  .hv-side ul { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .hv-side ul::-webkit-scrollbar { display: none; }
  .hv-side li { flex: none; }
  .hv-side button { width: auto; white-space: nowrap; border: 1px solid var(--hv-line); border-radius: 999px; padding: .45rem .85rem; gap: .5rem; }
  .hv-side button.on { border-color: var(--carbon); }
}
@media (max-width: 560px) {
  .hv-thumb { width: 8rem; }
  .hv-ttl { font-size: var(--t-sm); }
  .hv-ch-head { gap: .8rem; align-items: flex-start; }
  .hv-p-top { padding: 1rem 1rem .75rem; }
  .hv-p-foot { padding: .9rem 1rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-thumb, .hv-step { transition: none; }
}
