/* Hardware pages (ShadowVox, ShadowVox Go!, projects). Builds on overtoon.css patterns. */
.hw-hero .ot-hero__title { font-size: clamp(var(--page-title-size-min), 11vw, 120px); }
.hw-hero__photo { width: min(860px, 100%); margin: 0 auto; border: var(--border-width-default) solid var(--border-ink); box-shadow: var(--shadow-offset-8); background: #fff; line-height: 0; }
.hw-hero__photo img { width: 100%; height: auto; display: block; }

.hw-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); text-align: left; }
.hw-steps li { position: relative; background: var(--surface-card); border: var(--border-width-default) solid var(--border-ink); box-shadow: var(--shadow-offset-5); padding: 26px 20px 22px; }
.hw-step__n { position: absolute; top: -18px; left: 16px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--color-yellow); border: 3px solid var(--border-ink); font-family: var(--font-family-display); font-size: 24px; transform: rotate(-6deg); }
.hw-steps h3 { font-weight: var(--font-weight-extrabold); font-size: 20px; margin: 8px 0 6px; }
.hw-steps p { font-weight: var(--font-weight-medium); font-size: var(--font-size-sm); line-height: 1.5; }

.hw-fig { margin: 0; }
.hw-fig a { display: block; line-height: 0; border: var(--border-width-default) solid var(--border-ink); box-shadow: var(--shadow-offset-5); background: #111; }
.hw-fig img { width: 100%; height: auto; display: block; }
.hw-fig figcaption { margin-top: 12px; font-weight: var(--font-weight-medium); font-size: var(--font-size-sm); line-height: 1.45; color: var(--text-muted); }
.hw-split { padding: 40px 0 30px; }
.hw-fig--wide { max-width: 980px; margin-inline: auto; text-align: center; }

.hw-gallery h2, .hw-build h2, .hw-dev h2 { font-family: var(--font-family-display); font-weight: 400; font-size: clamp(30px, 4vw, 48px); color: var(--color-navy); text-align: center; margin: 0 0 28px; }
.hw-gallery { padding: 56px 0 30px; }
.hw-gallery__grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.hw-build { padding: 56px 0 40px; background: var(--surface-paper-alt); }
.hw-build__lead { text-align: center; max-width: 60ch; margin: -10px auto 34px; font-weight: var(--font-weight-medium); line-height: 1.55; }
.hw-build__grid { column-count: 1; column-gap: 24px; }
.hw-build__grid .hw-fig { break-inside: avoid; margin-bottom: 28px; }
@media (min-width: 700px) { .hw-build__grid { column-count: 2; } }
@media (min-width: 1100px) { .hw-build__grid { column-count: 3; } }

.hw-dev { padding: 60px 0 70px; }
.hw-dev__row { display: grid; gap: 34px 56px; align-items: start; }
@media (min-width: 900px) { .hw-dev__row { grid-template-columns: 1.2fr 1fr; } .hw-dev h2 { text-align: left; } }
.hw-dev p { font-weight: var(--font-weight-medium); line-height: 1.6; margin-bottom: 14px; }
.hw-dev code { background: var(--color-yellow); padding: 1px 6px; border: 2px solid var(--border-ink); font-size: .9em; }
.hw-specs { background: var(--surface-card); border: var(--border-width-default) solid var(--border-ink); box-shadow: var(--shadow-offset-6); padding: 22px 22px 24px; }
.hw-specs h3 { font-family: var(--font-family-display); font-weight: 400; font-size: 30px; color: var(--color-royal); margin-bottom: 12px; }
.hw-specs ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.hw-specs li { position: relative; padding-left: 24px; font-weight: var(--font-weight-bold); font-size: var(--font-size-sm); }
.hw-specs li::before { content: ""; position: absolute; left: 0; top: .4em; width: 11px; height: 11px; background: var(--color-yellow); border: 2px solid var(--border-ink); transform: rotate(8deg); }

.hw-cta { background: var(--color-royal); padding: 70px 0 80px; }
.hw-cta::before { background: none; }
.hw-intro .hw-steps { margin-top: 44px; }
@media (min-width: 960px) { .hw-cards li:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
.hw-cta { padding: 64px 0 56px; }
.hw-cta .ot-get__note { margin-bottom: 0; }

/* ---- hero with looping video + dot-matrix filter ---- */
.hw-hero--video { background: #06050b; }
.hw-hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hw-hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(1.2); }
.hw-hero__dots { position: absolute; inset: 0; background:
    radial-gradient(circle at center, transparent 0 1.15px, rgba(4,3,10,.94) 1.85px) 0 0 / 5px 5px,
    linear-gradient(180deg, rgba(6,5,11,.55), rgba(6,5,11,0) 30%, rgba(6,5,11,0) 70%, rgba(6,5,11,.85)); }
.hw-hero .wrap { position: relative; z-index: 1; }
.hw-logo { margin: 18px auto 6px; width: min(720px, 86%); line-height: 0; filter: drop-shadow(0 6px 0 rgba(0,0,0,.55)); }
.hw-logo img { width: 100%; height: auto; display: block; }
.hw-back { display: inline-flex; gap: 8px; align-items: center; font-weight: var(--font-weight-bold); color: var(--text-highlight); text-decoration: none; }
.hw-back::before { content: "\2190"; font-size: 1.25em; line-height: 1; }
.hw-back:hover { text-decoration: underline; }

/* ---- thumbnail galleries + lightbox ---- */
.hw-grid { list-style: none; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.hw-thumb { display: block; text-decoration: none; color: inherit; }
.hw-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--border-width-default) solid var(--border-ink); box-shadow: var(--shadow-offset-5); background: #111; transition: transform var(--motion-fast, .15s) ease; }
.hw-thumb:hover img, .hw-thumb:focus-visible img { transform: translate(-2px, -2px); }
.hw-thumb:focus-visible { outline: 3px solid var(--color-royal); outline-offset: 6px; }
.hw-thumb__cap { display: block; margin-top: 12px; font-weight: var(--font-weight-medium); font-size: var(--font-size-sm); line-height: 1.45; color: var(--text-muted); }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(6,5,11,.92); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 8px; }
.lb[hidden] { display: none; }
.lb__f { margin: 0; text-align: center; max-height: 100%; min-width: 0; }
.lb__f img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border: 3px solid #fff; background: #111; }
.lb__f figcaption { color: #fff; font-weight: var(--font-weight-medium); margin-top: 12px; padding: 0 8px; }
.lb button { background: var(--color-yellow); color: #000; border: 3px solid var(--border-ink); font: 700 30px/1 var(--font-family-body); width: 48px; height: 48px; cursor: pointer; }
.lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb__x { position: absolute; top: 14px; right: 14px; }
.lb__n { justify-self: center; }
.lb--single .lb__n { visibility: hidden; }
html.lb-open { overflow: hidden; }
@media (max-width: 600px) { .lb { grid-template-columns: 44px 1fr 44px; } .lb button { width: 40px; height: 40px; font-size: 26px; } }

/* ---- Lab landing + stubs ---- */
.lab-grid { list-style: none; padding: 0; display: grid; gap: 34px 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lab-card { background: var(--surface-card); border: var(--border-width-default) solid var(--border-ink); box-shadow: var(--shadow-offset-8); display: flex; flex-direction: column; }
.lab-card__media { display: block; line-height: 0; border-bottom: var(--border-width-default) solid var(--border-ink); aspect-ratio: 4 / 3; overflow: hidden; }
.lab-card__media > img, .lab-card__media > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.lab-card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.lab-card__tag { font: var(--font-weight-extrabold) 12px/1 var(--font-family-body); letter-spacing: .08em; text-transform: uppercase; background: var(--color-yellow); border: 2px solid var(--border-ink); padding: 5px 8px; }
.lab-card h2 { font-family: var(--font-family-display); font-weight: 400; font-size: clamp(28px, 3vw, 38px); color: var(--color-navy); line-height: 1.05; }
.lab-card p { font-weight: var(--font-weight-medium); line-height: 1.5; flex: 1; }
.lab-stub { text-align: center; display: grid; gap: 22px; justify-items: center; }
.lab-stub p { font-weight: var(--font-weight-medium); }
.lb__f img { margin-inline: auto; display: block; }

/* ---- ShadowVox: logo-only hero over a bigger video; console photo faded behind Up close ---- */
.hw-hero--video { min-height: min(86vh, 760px); display: flex; align-items: center; padding: 70px 0 130px; }
.hw-hero--video .wrap { width: min(var(--layout-content-width), 100% - 2 * var(--layout-gutter)); }
.hw-hero--video .hw-back { margin-bottom: 8px; }
.hw-hero--video .hw-logo { width: min(860px, 90%); margin: 26px auto 10px; }
.hw-hero--video .ot-hero__tag { font-size: clamp(20px, 2.6vw, 30px); margin-bottom: 14px; }
.hw-hero__sub { font-size: var(--font-size-base); color: #fff; opacity: .85; margin: 0 0 30px; }
.hw-hero--video .hw-hero__bg video { opacity: .6; }
.hw-gallery--bg { position: relative; isolation: isolate; overflow: hidden; }
.hw-gallery--bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/sv-hero.webp") center 40% / cover no-repeat; opacity: .22;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%); }
@media (max-width: 700px) { .hw-hero--video { min-height: 0; padding: 40px 0 100px; } }

/* ---- bigger ShadowVox hero ---- */
.hw-hero--video { min-height: min(100vh, 980px); padding: 150px 0 210px; }
.hw-hero--video .hw-logo { width: min(980px, 92%); margin: 40px auto 18px; }
.hw-hero--video .ot-hero__tag { font-size: clamp(24px, 3.2vw, 38px); margin-bottom: 20px; }
.hw-hero__sub { font-size: clamp(16px, 1.6vw, 20px); margin-bottom: 42px; }
@media (max-width: 700px) { .hw-hero--video { padding: 80px 0 130px; } }

/* ---- watch section ---- */
.hw-watch { padding: 60px 0 40px; text-align: center; }
.hw-watch h2 { font-family: var(--font-family-display); font-weight: 400; font-size: clamp(30px, 4vw, 48px); color: var(--color-navy); margin-bottom: 8px; }
.hw-watch__lead { font-weight: var(--font-weight-medium); margin-bottom: 26px; }
.hw-watch__player { width: min(960px, 100%); margin-inline: auto; border: var(--border-width-default) solid var(--border-ink); box-shadow: var(--shadow-offset-8); background: #000; line-height: 0; }
.hw-watch__player video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }

/* ---- big-image carousels ---- */
.hw-car { position: relative; width: min(960px, 100%); margin-inline: auto; }
.hw-car__track { list-style: none; padding: 0; margin: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: var(--border-width-default) solid var(--border-ink); box-shadow: var(--shadow-offset-8); background: #0b0a12; }
.hw-car__track::-webkit-scrollbar { display: none; }
.hw-car__track:focus-visible { outline: 3px solid var(--color-royal); outline-offset: 4px; }
.hw-slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.hw-slide figure { margin: 0; }
.hw-slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #0b0a12; }
.hw-slide figcaption { background: var(--surface-card); border-top: var(--border-width-default) solid var(--border-ink); padding: 14px 18px; font-weight: var(--font-weight-bold); font-size: var(--font-size-sm); line-height: 1.4; min-height: 3.6em; }
.hw-car__btn { position: absolute; top: calc(50% - 40px); width: 52px; height: 52px; background: var(--color-yellow); color: #000; border: 3px solid var(--border-ink); box-shadow: var(--shadow-offset-4); font: 700 34px/1 var(--font-family-body); cursor: pointer; z-index: 2; }
.hw-car__btn:hover { background: #fff; }
.hw-car__btn:focus-visible { outline: 3px solid var(--color-royal); outline-offset: 3px; }
.hw-car__btn--p { left: -26px; }
.hw-car__btn--n { right: -26px; }
.hw-car__count { text-align: center; margin-top: 18px; font-weight: var(--font-weight-bold); font-size: var(--font-size-sm); color: var(--text-muted); }
@media (max-width: 1060px) { .hw-car__btn--p { left: 8px; } .hw-car__btn--n { right: 8px; } }
@media (max-width: 600px) { .hw-car__btn { width: 42px; height: 42px; font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .hw-car__track { scroll-behavior: auto; } }
