main.dj > section.how-tv {
  --cream: #f4f1ea;
  --red: #ff594b;
  --display: var(--f-display);
  --body: var(--f-body);
  --mono: var(--f-mono);
  color: var(--cream);
  background: radial-gradient(ellipse at 21% 24%, #241e1a 0%, #181513 49%, #161311 100%);
  padding: 0 0 clamp(2rem, 4vw, 4rem);
}
.htv-inner { width: min(100% - clamp(2.5rem, 9vw, 10rem), 73rem); margin: 0 auto; }
.htv-title {
  margin: 0;
  padding: clamp(2.625rem, 6vw, 5.25rem) 0 clamp(2rem, 5vw, 4.375rem);
  border-bottom: 1px solid #ffffff16;
  font: 400 clamp(2.9rem, 7.7vw, 7rem)/.96 var(--display);
  text-transform: uppercase;
  text-align: center;
}
.htv-title span, .htv-step h3 span { color: var(--red); }

.htv-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.htv-stage-column { min-width: 0; }
.htv-sticky-stage {
  position: sticky;
  top: clamp(5.5rem, 13svh, 7rem);
  display: grid;
  align-items: center;
  padding: clamp(.75rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4rem) 0 0;
}
.htv-tv {
  position: relative;
  isolation: isolate;
  width: min(100%, 32rem, 83svh);
  aspect-ratio: 1346 / 1168;
  margin: 0 auto;
}
.htv-tv::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 4%;
  right: 4%;
  bottom: -4%;
  height: 12%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 19% at 50% 40%, #000d 12%, transparent 100%),
    radial-gradient(ellipse 50% 47% at 50% 52%, #000b, transparent 100%);
  filter: blur(clamp(3px, .52vw, 8px));
}
.htv-cabinet {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 24px #0006);
}
.htv-screen {
  position: absolute;
  top: 14.4%;
  left: 15.1%;
  width: 69.8%;
  height: 58.35%;
  overflow: hidden;
  clip-path: polygon(3.5% 3%, 10% 1%, 50% 0, 90% 1%, 96.5% 3%, 99% 10%, 100% 50%, 99% 90%, 96.5% 97%, 90% 99%, 50% 100%, 10% 99%, 3.5% 97%, 1% 90%, 0 50%, 1% 10%);
  background: #181513;
  color: var(--cream);
}
.htv-screen::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, #0002 0 1px, transparent 1px 4px);
}
.htv-tuning-band {
  position: absolute;
  z-index: 3;
  top: -19%;
  left: 0;
  width: 100%;
  height: 19%;
  pointer-events: none;
  opacity: .52;
  background: linear-gradient(to bottom, transparent 0%, #f4c9ac26 35%, #ffdac46b 55%, #fce6d428 62%, transparent 100%);
  mix-blend-mode: screen;
  animation: htv-crt-sweep 5.4s linear infinite;
}
@keyframes htv-crt-sweep {
  from { transform: translateY(0); }
  to { transform: translateY(630%); }
}
.htv-glass {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(124deg, #eee5d127, transparent 21%);
  box-shadow: inset 0 0 18px 4px #0006, inset 0 0 2px 1px #f4f1ea45;
}
.htv-scenes, .htv-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.htv-scene { opacity: 0; transition: opacity 300ms ease; }
.htv-scene.is-active { opacity: 1; }
.htv-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.htv-scene text { font-family: var(--body); fill: var(--cream); }
.htv-scene .heading { font-family: var(--display); font-size: 30px; font-weight: 400; letter-spacing: .015em; }
.htv-scene .label { font-family: var(--mono); font-size: 17px; font-weight: 400; letter-spacing: .035em; fill: #d4c9be; }
.htv-scene .body { font-size: 21px; font-weight: 500; }
.htv-scene .stat { font-size: 23px; font-weight: 680; font-variant-numeric: tabular-nums; }
.htv-scene .status { font-size: 19px; font-weight: 600; }
.htv-scene .accent { fill: #ff6859; }
.htv-scene .panel { fill: #292523; stroke: #514a45; stroke-width: 1.5; }
.htv-scene .line { stroke: #514a45; stroke-width: 1.5; }
.htv-scene .pill { fill: #43221d; stroke: #d85748; stroke-width: 1.5; }
.htv-scene .check { fill: none; stroke: #ff7464; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.htv-scene .panel-text { fill: #e9e0d8; }

.htv-screen.is-playing .htv-scene.is-active .rise { animation: htv-rise 580ms cubic-bezier(.2,.7,.2,1) var(--delay, 0ms) both; }
.htv-screen.is-playing .htv-scene.is-active .tick { animation: htv-check-in 420ms cubic-bezier(.2,.7,.2,1) var(--delay, 0ms) both; transform-box: fill-box; transform-origin: center; }
.htv-screen.is-playing .htv-scene.is-active .scan { animation: htv-draw 690ms cubic-bezier(.2,.7,.2,1) var(--delay, 0ms) both; }
.htv-screen.is-playing .htv-scene.is-active .winner { animation: htv-copy-winner 880ms cubic-bezier(.22,.75,.22,1) 930ms both; }
@keyframes htv-rise { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes htv-check-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes htv-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes htv-copy-winner {
  from { opacity: .15; transform: translate(-153px, -18px) scale(.78); }
  34% { opacity: 1; }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

.htv-steps {
  margin: 0;
  padding: 0 0 22svh;
  list-style: none;
  border-left: 1px solid #ffffff1f;
}
.htv-step {
  min-height: clamp(17rem, 44svh, 26rem);
  padding: clamp(1.5rem, 4.5vh, 3.5rem) 0 2.5rem clamp(2rem, 6vw, 5rem);
}
.htv-step:last-child { min-height: max(15rem, 44svh); }
.htv-step-key {
  margin: 0 0 .8rem;
  color: #dfd5ca;
  font: 400 .875rem/1.3 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.htv-step h3 {
  max-width: 15ch;
  margin: 0 0 .85rem;
  font: 400 clamp(2rem, 3.6vw, 3.7rem)/1.01 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
.how-tv--creator .htv-step:first-child h3 span { display: block; }
.htv-step-copy { max-width: 34ch; margin: 0; color: #e0d7cf; font: 400 1rem/1.6 var(--body); }

@media (max-width: 740px) {
  .htv-inner { width: 100%; }
  .htv-title { margin: 0 1.25rem; padding-bottom: 1.7rem; }
  .htv-layout { display: block; }
  .htv-stage-column {
    position: sticky;
    z-index: 3;
    top: 4rem;
    padding: .65rem 1rem 1.05rem;
    background: linear-gradient(#1b1714 91%, transparent);
    pointer-events: none;
  }
  .htv-sticky-stage { position: static; padding: 0; }
  .htv-tv { width: min(100%, 23rem, 45svh); }
  .htv-steps { margin: 0 1.25rem; border-left: 0; padding-bottom: 26svh; }
  .htv-step {
    min-height: clamp(13rem, 41svh, 20rem);
    padding: 1.25rem .2rem 2.3rem;
    border-bottom: 1px solid #ffffff18;
  }
  .htv-step:last-child { min-height: max(13rem, 34svh); border: 0; }
  .htv-step h3 { font-size: clamp(2rem, 8.4vw, 3.15rem); }
}

@media (prefers-reduced-motion: reduce) {
  .htv-scene { transition: none; }
  .htv-tuning-band { display: none; animation: none; }
  .htv-scene * { animation: none !important; }
}
