.hero {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(ellipse at 65% 30%, #142b25 0, transparent 55%),
        linear-gradient(145deg, #0b1217, #0c1519 76%, #0a0f14);
}
.hero-grid { min-height: 573px; display: grid; grid-template-columns: .97fr 1.03fr; gap: clamp(27px, 5vw, 73px); align-items: center; padding-block: 50px; }
.hero-copy { position: relative; }
.signal { display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #7debba84; }
.hero h1 { margin-top: 18px; font-size: clamp(2.75rem, 6.15vw, 5.4rem); line-height: 1.12; font-weight: 780; letter-spacing: -.075em; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 410px; margin: 22px 0 25px; color: var(--muted); font-size: 1rem; line-height: 1.78; }
.hero .button { min-height: 44px; }
.hero-asset { isolation: isolate; border: 1px solid #38594e; border-radius: 13px; overflow: hidden; background: #0b171a; box-shadow: 0 24px 65px #060a0da0; }
.hero-asset img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.asset-bar, .hero-asset figcaption { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 11px 15px; font: .73rem var(--mono); color: var(--muted); }
.asset-bar span:first-child { color: var(--text); font-size: .81rem; }
.asset-bar i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--accent); border-radius: 50%; }
.hero-asset figcaption { border-top: 1px solid #263e35; }
.lab-section { padding-top: 64px; scroll-margin-top: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2, .lesson h2 { font-size: clamp(1.58rem, 3vw, 2.48rem); margin-top: 5px; }
.section-head > p { color: var(--muted); font-size: .9rem; }
.lens-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
.lens-source { overflow: hidden; }
.canvas-wrap { position: relative; }
#image-canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; cursor: crosshair; }
#pixel-pointer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 15px; height: 15px; border: 1px solid #fff; box-shadow: 0 0 0 1px #000; pointer-events: none; }
.lens-inspector { display: flex; flex-direction: column; align-items: stretch; }
#zoom-canvas { display: block; margin: 16px auto; width: min(100% - 32px, 280px); height: auto; border: 1px solid var(--line); }
.lens-inspector .channel-buttons { margin-inline: 16px; justify-content: center; }
.bits { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); background: #0b1318; border-radius: 9px; margin: 16px 16px 8px; padding: 9px 12px; }
.bits > div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; }
.bits code { display: block; color: var(--text); font: .94rem var(--mono); }
.bits code strong { color: var(--accent); }
.swatch { width: 30px; height: 30px; border: 1px solid #45545a; border-radius: 5px; }
#pixel-delta { margin: 0 16px 15px; font-size: .83rem; text-align: center; }
.lesson { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 34px; }
.lesson p:not(.eyebrow) { color: var(--muted); margin: 12px 0 17px; }
.lesson-facts { display: grid; gap: 8px; margin-bottom: 16px; }
.lesson-facts div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; font-size: .9rem; }
.lesson-facts dt { color: var(--text); font-weight: 670; }
.lesson-facts dd { color: var(--muted); }
.video-panel { overflow: hidden; }
.video-panel video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0d1a20; }
@media (max-width: 820px) {
    .hero-grid { min-height: 0; gap: 24px; padding-block: 40px; }
    .hero h1 { font-size: clamp(2.45rem, 7.5vw, 4rem); }
    .lesson { gap: 25px; }
}
@media (max-width: 650px) {
    .hero-grid, .lens-layout, .lesson { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { padding-block: 33px; }
    .hero h1 { font-size: clamp(2.8rem, 10vw, 4.45rem); }
    .hero-description { margin: 14px 0 18px; }
    .lab-section { padding-top: 39px; }
    .section-head { display: grid; gap: 8px; }
    .video-panel { order: 2; }
}
