/* Homepage. Shared header, buttons, FAQ, closing and footer come from site.css. */
.h-home {
  overflow-x: clip;
}
/* iOS lets the viewport pan sideways unless the root clips too. */
html:has(> .h-home) {
  overflow-x: clip;
}
.h-home main {
  position: relative;
}
.h-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.h-photo-credits {
  margin-top: 48px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.h-dim {
  color: #6f716c;
}
.h-pulse {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
/* The ring scales on the compositor instead of repainting a growing box-shadow. */
.h-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #d2f88b80;
  animation: h-ping 1.8s infinite;
}
.h-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0000 55%, #0009);
  pointer-events: none;
}
.h-plan {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.h-plan.plus {
  border-color: #d2f88b55;
  color: var(--accent);
  background: #d2f88b0d;
}

/* Scroll reveal: only hidden when home.js is running. Hover properties keep their own timing. */
.h-js [data-reveal] {
  --d: calc(var(--i, 0) * 90ms);
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 0.8s var(--ease) var(--d),
    transform 0.9s var(--ease-out) var(--d),
    translate 0.45s var(--ease-out),
    border-color 0.3s;
}
.h-js [data-reveal].in {
  opacity: 1;
  transform: none;
}
.h-hero h1 {
  animation: h-in 0.9s var(--ease) 0.08s both;
}
.h-hero-copy > [data-reveal]:nth-child(2) { --i: 1; }
.h-hero-copy > [data-reveal]:nth-child(3) { --i: 2; }
.h-hero-copy > [data-reveal]:nth-child(4) { --i: 3; }
.h-hero-copy > [data-reveal]:nth-child(5) { --i: 4; }
.h-js [data-reveal]:not(.in) *,
.h-js [data-reveal]:not(.in) *::before,
.h-js [data-reveal]:not(.in) *::after,
.h-off *,
.h-off *::before,
.h-off *::after {
  animation-play-state: paused;
}

/* Hero */
.h-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 48px;
  align-items: center;
  min-height: 720px;
  padding: 70px 0 60px;
}
.h-hero-glow {
  position: absolute;
  z-index: -1;
  inset: -120px -200px auto auto;
  width: 900px;
  height: 760px;
  background:
    radial-gradient(closest-side at 35% 45%, #d2f88b26, #0000),
    radial-gradient(closest-side at 70% 60%, #c4b2fa1f, #0000),
    radial-gradient(closest-side at 55% 25%, #f7a06c14, #0000);
  pointer-events: none;
}
.h-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -50vw;
  background-image:
    linear-gradient(#ffffff08 1px, #0000 1px),
    linear-gradient(90deg, #ffffff08 1px, #0000 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 55% 70% at 60% 40%, #000, #0000);
  pointer-events: none;
}
.h-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #191a1bf2;
  box-shadow: var(--edge), var(--shadow-card);
  font-size: 13px;
  color: #cfd0c9;
}
.h-hero h1 {
  margin-top: 26px;
  font-size: clamp(50px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 650;
}
.h-hero h1:first-child {
  margin-top: 0;
}
.h-lede {
  margin-top: 26px;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.6;
}
.h-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}
.h-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
}
.h-ghost span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #454649;
  font-size: 11px;
  transition: border-color 0.2s, color 0.2s;
}
.h-ghost:hover span {
  border-color: var(--accent);
  color: var(--accent);
}
.h-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.h-proof li::before {
  content: '✓';
  margin-right: 7px;
  color: var(--accent);
}

.h-stage {
  position: relative;
  height: 580px;
}
.h-source {
  position: absolute;
  left: 0;
  top: 30px;
  width: 80%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #18191af2;
  box-shadow: 0 20px 40px #0007;
}
.h-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 12px;
  font-size: 12px;
  color: var(--muted);
}
.h-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3b3d;
}
.h-chrome span {
  margin-left: 10px;
}
.h-chrome b {
  margin-left: auto;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.h-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #222;
}
.h-player .h-photo {
  object-position: center 30%;
}
.h-scanline {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: linear-gradient(90deg, #0000, #d2f88b2e, #0000);
  border-right: 1px solid #d2f88b99;
  animation: h-scan 4s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
.h-status {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #101011cc;
  font-size: 12px;
  font-weight: 550;
}
.h-track {
  position: relative;
  height: 56px;
  margin-top: 12px;
  padding: 0 4px;
  border-radius: 10px;
  background: #121313;
  overflow: hidden;
}
.h-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 100%;
}
.h-wave i {
  flex: 1;
  height: var(--h);
  min-width: 2px;
  border-radius: 2px;
  background: #4a4c4f;
}
.h-hit {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border-radius: 7px;
  border: 1.5px solid var(--accent);
  background: #d2f88b1a;
  opacity: 0;
  animation: h-hit 6s var(--ease) infinite;
}
.h-hit-1 { left: 9%; width: 14%; animation-delay: 0.6s; }
.h-hit-2 { left: 41%; width: 11%; animation-delay: 2.4s; border-color: var(--orange); background: #f7a06c1a; }
.h-hit-3 { left: 70%; width: 16%; animation-delay: 4.1s; border-color: var(--violet); background: #c4b2fa1a; }
/* Full-width layer whose left edge draws the line, so h-playhead can move it with a transform. */
.h-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 100%;
  background: linear-gradient(90deg, #0000, #fff3 7px, var(--text) 9px 11px, #fff3 13px, #0000 22px) 0 0 / 22px 100% no-repeat;
  pointer-events: none;
  animation: h-playhead 6s linear infinite;
}

.h-phones {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 360px;
}
.h-phone {
  position: absolute;
  bottom: 0;
  width: 30%;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 4px solid #2a2b2d;
  background: #222;
  box-shadow: 0 15px 30px #000a;
  animation:
    h-rise 1.1s var(--ease) both,
    h-float 5.4s ease-in-out infinite,
    h-phone-glow 4.5s ease-in-out infinite;
  transition: scale 0.35s var(--ease);
}
.h-phone-1 { right: 68%; bottom: 10px; transform: rotate(-3deg); --r: -3deg; animation-delay: 0.5s, 1.6s, 1.6s; }
.h-phone-2 { right: 34%; bottom: 25px; z-index: 2; --r: 0deg; animation-delay: 0.75s, 1.85s, 3.1s; }
.h-phone-3 { right: 0; bottom: 0; transform: rotate(3deg); --r: 3deg; animation-delay: 1s, 2.1s, 4.6s; animation-duration: 1.1s, 6s, 4.5s; }
.h-phone:hover { z-index: 3; scale: 1.05; }
/* Slow push-in on the footage, a glass sheen and a clip progress bar the caption swap restarts (home.js). */
.h-phone > .h-photo { animation: h-push 9s ease-in-out infinite alternate; }
.h-phone-2 > .h-photo { animation-delay: -3s; }
.h-phone-3 > .h-photo { animation-delay: -6s; }
.h-phone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #0000 40%, #fff2 50%, #0000 60%);
  translate: -120% 0;
  animation: h-sheen 6s ease-in-out infinite;
  animation-delay: inherit;
  pointer-events: none;
}
.h-phone-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  animation: h-progress 4.5s linear infinite;
}
.h-phone .h-chip::before {
  content: '';
  align-self: center;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: #ff4d4d;
  animation: h-rec 1.2s ease-in-out infinite;
}
.h-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #101011cc;
  font-size: 10px;
  font-weight: 600;
}
.h-chip b {
  font-weight: 500;
  color: var(--muted);
}
.h-karaoke {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 18%;
  text-align: center;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 10px #000a;
}
.h-karaoke > span {
  display: inline-block;
  padding: 0 3px;
  border-radius: 5px;
  animation: h-word 4.5s infinite;
  animation-delay: calc(var(--w) * 0.32s);
}
.h-karaoke.style-2 {
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 900;
}
.h-karaoke.style-2 > span { animation-name: h-word-orange; }
.h-karaoke.style-3 {
  font-weight: 600;
  font-size: 13px;
  bottom: 12%;
}
.h-karaoke.style-3 > span { animation-name: h-word-fade; }
/* Hero phones shrink a lot on small screens, so their labels scale with the phone, not the viewport. */
.h-phone {
  container-type: inline-size;
}
.h-phone .h-chip {
  left: clamp(5px, 5cqw, 10px);
  top: clamp(5px, 5cqw, 10px);
  max-width: calc(100% - 2 * clamp(5px, 5cqw, 10px));
  gap: 0.5em;
  padding: 0.35em 0.75em;
  font-size: clamp(7px, 5.6cqw, 10px);
  white-space: nowrap;
  overflow: hidden;
}
.h-phone .h-karaoke {
  left: 7%;
  right: 7%;
  font-size: clamp(8px, 8cqw, 15px);
}
.h-phone .h-karaoke.style-2 { font-size: clamp(8.5px, 9cqw, 17px); }
.h-phone .h-karaoke.style-3 { font-size: clamp(7.5px, 7cqw, 13px); }
.h-phone .h-karaoke > span {
  padding: 0 0.2em;
  border-radius: 0.3em;
}

/* Ticker */
.h-ticker {
  position: relative;
  margin: 10px calc(50% - 50vw) 0;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, #0000, #000 12%, #000 88%, #0000);
}
.h-ticker-track {
  display: flex;
  width: max-content;
  animation: h-marquee 40s linear infinite;
}
.h-ticker-track > div {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: #c9cac4;
}
.h-ticker i {
  font-style: normal;
  color: var(--accent);
  font-size: 12px;
}
.h-ticker:hover .h-ticker-track {
  animation-play-state: paused;
}

/* Sections */
.h-section {
  padding-top: 140px;
}
.h-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.h-head-wide {
  max-width: 900px;
}
.h-head h2 {
  margin-top: 20px;
  font-size: clamp(38px, 4.6vw, 64px);
  letter-spacing: -0.055em;
}
.h-head > p:not(.eyebrow) {
  margin-top: 20px;
  max-width: 620px;
  font-size: 17px;
}

/* Steps */
.h-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.h-steps > li {
  position: relative;
  padding: 16px 16px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
  transition:
    translate 0.45s var(--ease-out),
    border-color 0.3s;
}
.h-steps > li:hover {
  translate: 0 -4px;
  border-color: #46484b;
  box-shadow: var(--edge), var(--shadow-raised);
}
.h-steps > li:nth-child(2) { --i: 1; }
.h-steps > li:nth-child(3) { --i: 2; }
.h-step-art {
  position: relative;
  height: 210px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #ffffff08;
  /* The ratio morph and fill bars re-layout only inside this box. */
  contain: layout paint;
  background: #131414;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.h-num {
  display: block;
  margin: 26px 14px 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.h-steps h3 {
  margin: 0 14px;
  font-size: 26px;
}
.h-steps p {
  margin: 12px 14px 0;
  font-size: 15px;
}
.h-drop {
  width: 78%;
  padding: 22px 18px 18px;
  border: 1.5px dashed #4b4d50;
  border-radius: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.h-drop b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #d2f88b1f;
  color: var(--accent);
  font-size: 18px;
  animation: h-bounce 2.4s var(--ease) infinite;
}
.h-bar {
  display: block;
  height: 5px;
  margin-top: 14px;
  border-radius: 9px;
  background: #2a2b2d;
  overflow: hidden;
}
.h-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  border-radius: inherit;
  animation: h-fill 3.6s var(--ease) infinite;
}
.h-types {
  position: absolute;
  bottom: 14px;
  display: flex;
  gap: 6px;
}
.h-types span,
.h-found span {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.h-strip {
  position: relative;
  display: flex;
  gap: 4px;
  width: 86%;
  height: 92px;
}
.h-strip > span {
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  filter: saturate(0.6) brightness(0.75);
}
.h-strip > span:nth-child(2),
.h-strip > span:nth-child(4) {
  animation: h-pick 4s infinite;
}
.h-strip > span:nth-child(4) { animation-delay: 1.2s; }
.h-beam {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -18px;
  width: 100%;
  background: linear-gradient(90deg, #0000, #d2f88b40 10px, var(--accent) 17px 20px, #d2f88b40 27px, #0000 37px) 0 0 / 37px 100% no-repeat;
  pointer-events: none;
  animation: h-beam 4s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
.h-found {
  position: absolute;
  bottom: 18px;
  display: flex;
  gap: 6px;
}
.h-found span {
  border-color: #d2f88b55;
  color: var(--accent);
  animation: h-pop 4s var(--ease) infinite;
}
.h-found span:nth-child(2) { animation-delay: 0.4s; }
.h-found span:nth-child(3) { animation-delay: 0.8s; }
.h-morph {
  position: relative;
  height: 160px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--accent);
  animation: h-ratio 8s var(--ease) infinite;
}
.h-morph > b {
  position: absolute;
  inset: auto 0 8px;
  display: grid;
  justify-items: center;
}
.h-morph > b > span {
  grid-area: 1 / 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #172011;
  font-size: 11px;
  opacity: 0;
  animation: h-label 8s infinite;
}
.h-morph > b > span:nth-child(2) { animation-delay: 2s; }
.h-morph > b > span:nth-child(3) { animation-delay: 4s; }
.h-morph > b > span:nth-child(4) { animation-delay: 6s; }

/* Bento */
.h-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.h-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
  overflow: hidden;
  transition:
    border-color 0.3s,
    translate 0.45s var(--ease-out);
}
.h-tile::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px circle at 50% 0%, #d2f88b12, #0000 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.h-tile:hover {
  translate: 0 -4px;
  border-color: #4a4c4f;
  box-shadow: var(--edge), var(--shadow-raised);
}
.h-tile:hover::after {
  opacity: 1;
}
.h-tile-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}
.h-tile h3 {
  font-size: 25px;
}
.h-tile p {
  font-size: 14.5px;
  line-height: 1.6;
}
.h-tile > :last-child:not(.h-tile-copy) {
  margin-top: auto;
}
.h-t-discover,
.h-t-editor {
  grid-column: span 2;
}
.h-t-captions {
  grid-row: span 2;
}
.h-bento > :nth-child(3n + 2) { --i: 1; }
.h-bento > :nth-child(3n) { --i: 2; }

.h-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.h-modes span {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  animation: h-mode 10s infinite;
}
.h-modes span:nth-child(2) { animation-delay: 2s; }
.h-modes span:nth-child(3) { animation-delay: 4s; }
.h-modes span:nth-child(4) { animation-delay: 6s; }
.h-modes span:nth-child(5) { animation-delay: 8s; }
/* Tile segmented control: one thumb glides between equal-width options (transform only). */
.h-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #131415, #171819);
  box-shadow: inset 0 0 0 1px #ffffff0f, inset 0 1px 3px #00000059, 0 1px 0 #ffffff08;
  isolation: isolate;
}
.h-seg > :not(.h-seg-thumb) {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  color: #c9cac4;
}
.h-seg-thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--n));
  border-radius: 999px;
  background: linear-gradient(180deg, #d2f88b30, #d2f88b12);
  box-shadow: inset 0 0 0 1px #d2f88b70, inset 0 1px 0 #ffffff26, 0 0 22px -6px #d2f88b66, 0 6px 14px -8px #000000cc;
}
.h-dmodes .h-seg-thumb {
  transform: translateX(calc(var(--preset, 0) * 100%));
  transition: transform 0.65s var(--ease-out);
}

.h-dmodes > button {
  appearance: none;
  border: 0;
  border-radius: inherit;
  background: none;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
}
.h-dmodes > button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.h-dmodes > button[aria-pressed="true"] {
  color: var(--text);
}
.h-scores {
  display: grid;
  padding: 4px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1d1e20, #161718);
  box-shadow: inset 0 0 0 1px #ffffff0f, inset 0 1px 0 #ffffff0d, 0 18px 34px -22px #000000e6;
}
.h-scores > div {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr 36px;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 13px;
}
.h-scores > div + div {
  border-top: 1px solid #ffffff0a;
}
.h-scores span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cfd0c9;
}
.h-score-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 9px;
  background: #252628;
  box-shadow: inset 0 1px 2px #00000080, 0 1px 0 #ffffff08;
}
/* The clip keeps the rounded end; the fill slides in instead of growing in width. */
.h-score-fill {
  position: relative;
  display: block;
  width: 100%;
  transform: translateX(calc(var(--s) - 100%));
  transition: transform 0.65s var(--ease-out);
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
.h-score-fill > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f4637, #7f8c68);
  box-shadow: inset 0 1px 0 #ffffff33;
  transform: translateX(-101%);
  transition: transform 1.4s var(--ease-out) calc(0.3s + var(--i) * 0.15s);
}
.h-scores > div:first-child .h-score-fill > i {
  background: linear-gradient(90deg, #7d9256, #b8d97a 65%, var(--accent));
  box-shadow: inset 0 1px 0 #ffffff66, 0 0 12px #d2f88b40;
}
.h-scores > div:first-child .h-score-fill::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, #fff0, #ffffff73, #fff0);
  transform: translateX(-100%);
}
.in .h-score-fill > i,
html:not(.h-js) .h-score-fill > i {
  transform: none;
}
.h-scores b {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #e6e7e1;
}
.h-scores > div:first-child b {
  color: var(--accent);
}

.h-cap-stage {
  position: relative;
  flex: 1;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
}
.h-cap-stage .h-photo {
  position: absolute;
  inset: 0;
  object-position: 40% 40%;
  animation: h-zoom 18s ease-in-out infinite alternate;
}
.h-cap-styles {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
}
.h-cap-styles span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #101011b3;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  animation: h-mode 9s infinite;
}
.h-cap-styles span:nth-child(2) { animation-delay: 3s; }
.h-cap-styles span:nth-child(3) { animation-delay: 6s; }
.h-cap-stage:has(.h-caption-gif) {
  min-height: 420px;
  background:
    radial-gradient(120% 60% at 50% 0%, #26272a, #0000 70%),
    radial-gradient(90% 50% at 50% 100%, #d2f88b0d, #0000 70%),
    #101011;
  box-shadow: 0 18px 40px -26px #000000f2;
}
.h-cap-stage .h-caption-gif {
  object-fit: contain;
  object-position: center;
  animation: none;
}
.h-t-captions .h-cap-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff12, inset 0 1px 0 #ffffff14, inset 0 -70px 60px -50px #000000b3;
  pointer-events: none;
}
.h-cap-chip {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: #121314d9;
  box-shadow: 0 0 0 1px #ffffff17, inset 0 1px 0 #ffffff12, 0 8px 18px -8px #000000d9;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}
.h-cap-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px #d2f88b99;
  animation: h-blink 2.4s ease-in-out infinite;
}
.h-cap-line {
  font-size: 26px;
  bottom: 14%;
}

.h-speakers {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #101011;
  box-shadow: 0 0 0 1px #ffffff12, 0 18px 34px -22px #000000f2;
}
.h-speakers > span {
  position: relative;
  overflow: hidden;
}
.h-speakers > span + span {
  box-shadow: inset 1px 0 0 #00000080;
}
/* The quiet speaker dims; only opacity changes. */
.h-speakers > span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0b0b0c66, #0b0b0ce6);
  opacity: 0;
  animation: h-pod-dim 6s var(--ease) infinite;
  pointer-events: none;
}
.h-speakers > span + span::after {
  opacity: 0.7;
  animation-name: h-pod-dim-alt;
}
.h-speakers b {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #121314d9;
  box-shadow: 0 0 0 1px #ffffff14, 0 4px 12px -4px #000000cc;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transform: translateX(-50%);
}
/* The rail spans the whole stage, so translateX(50%) moves the frame by half the stage. */
.h-pod-rail {
  position: absolute;
  z-index: 2;
  inset: 0;
  animation: h-pod-rail 6s var(--ease) infinite;
  pointer-events: none;
}
.h-pod-frame {
  --c: var(--accent);
  position: absolute;
  top: 8px;
  bottom: 32px;
  left: 25%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  transform: translateX(-50%);
  background:
    linear-gradient(var(--c), var(--c)) left top / 14px 2px,
    linear-gradient(var(--c), var(--c)) left top / 2px 14px,
    linear-gradient(var(--c), var(--c)) right top / 14px 2px,
    linear-gradient(var(--c), var(--c)) right top / 2px 14px,
    linear-gradient(var(--c), var(--c)) left bottom / 14px 2px,
    linear-gradient(var(--c), var(--c)) left bottom / 2px 14px,
    linear-gradient(var(--c), var(--c)) right bottom / 14px 2px,
    linear-gradient(var(--c), var(--c)) right bottom / 2px 14px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px #d2f88b4d, 0 0 0 1px #00000059, 0 0 26px -6px #d2f88b4d;
}
.h-pod-frame em {
  position: absolute;
  top: 7px;
  left: 50%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 3px 7px 3px 6px;
  border-radius: 999px;
  background: #121314e6;
  box-shadow: 0 0 0 1px #ffffff17;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}
.h-pod-frame em i {
  width: 2px;
  height: 8px;
  border-radius: 1px;
  background: var(--accent);
  transform-origin: bottom;
  animation: h-eq 0.8s ease-in-out infinite alternate;
}
.h-pod-frame em i:nth-child(2) { animation-delay: -0.3s; }
.h-pod-frame em i:nth-child(3) {
  margin-right: 3px;
  animation-delay: -0.55s;
}
.h-crop {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 14%;
  aspect-ratio: 9 / 16;
  border: 2px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 0 999px #0009;
  animation: h-crop 6s var(--ease) infinite;
}

.h-game {
  position: relative;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
}
.h-cam {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--violet);
  animation: h-cam 9s var(--ease) infinite;
}
.h-layouts {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 5px;
}
.h-layouts span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #101011b3;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  animation: h-mode 9s infinite;
}
.h-layouts span:nth-child(2) { animation-delay: 3s; }
.h-layouts span:nth-child(3) { animation-delay: 6s; }

/* Webcam tile: three stacked layout states crossfade (opacity + scale), the thumb glides with them. */
.h-wc {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #101011;
  box-shadow: 0 0 0 1px #ffffff12, 0 18px 34px -22px #000000f2;
}
.h-wc::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff0f, inset 0 1px 0 #ffffff14;
  pointer-events: none;
}
.h-wc-state {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  animation: h-wc-state 9s var(--ease-out) infinite;
}
.h-wc-split {
  inset: 50% 0 0;
  box-shadow: 0 -1px 0 #c4b2fa80, 0 -14px 24px -10px #000000b3;
}
.h-wc-small {
  right: 10px;
  bottom: 10px;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--violet), 0 0 0 5px #c4b2fa26, 0 12px 22px -8px #000000e6;
  opacity: 1;
  animation-delay: -6s;
}
.h-wc-blur {
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 80% at 50% 50%, #10101166, #101011d9),
    #10101199;
  animation-delay: -3s;
}
.h-wc-portrait {
  height: calc(100% - 20px);
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ffffff2e, 0 14px 28px -10px #000000f2;
}
.h-wc-seg {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  padding: 3px;
  background: #121314d1;
  box-shadow: 0 0 0 1px #ffffff17, inset 0 1px 0 #ffffff0f, 0 8px 18px -8px #000000d9;
}
.h-wc-seg > :not(.h-seg-thumb) {
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
}
.h-wc-seg .h-seg-thumb {
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  transform: translateX(100%);
  animation: h-seg-3 9s var(--ease-out) infinite;
}

.h-transcript {
  display: grid;
  gap: 18px;
}
.h-transcript p {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: #d9dad3;
}
.h-transcript mark {
  background: linear-gradient(180deg, #d2f88b30, #d2f88b1a);
  box-shadow: inset 0 0 0 1px #d2f88b59, 0 0 18px -6px #d2f88b59;
  color: var(--accent);
  border-radius: 6px;
  padding: 0 5px;
}
/* The strike is a drawn line (scaleX), the words fade (opacity); nowrap keeps it one box. */
.h-transcript del {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  color: #8b8d87;
  opacity: 0.5;
  animation: h-tile-fade 5s var(--ease) infinite;
}
.h-transcript del::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 54%;
  height: 2px;
  border-radius: 2px;
  background: #f06a6a;
  box-shadow: 0 0 8px #f06a6a80;
  transform-origin: left;
  animation: h-tile-strike 5s var(--ease-out) infinite;
}
.h-transcript p > span {
  color: var(--text);
}
/* Positions are fixed so the cut can collapse and the tail can slide by a known distance (cqw). */
.h-cuts {
  position: relative;
  height: 40px;
  container-type: inline-size;
}
.h-cuts::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9px;
  border: 1px dashed #ffffff1f;
}
.h-cuts span,
.h-cuts del {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 9px;
}
.h-cuts span {
  left: 0;
  width: 36%;
  background:
    repeating-linear-gradient(90deg, #d2f88b3d 0 2px, #0000 2px 6px) center / calc(100% - 16px) 44% no-repeat,
    linear-gradient(180deg, #34402a, #232b1c);
  box-shadow: inset 0 0 0 1px #d2f88b47, inset 0 1px 0 #ffffff17, 0 8px 16px -10px #000000e6;
}
.h-cuts span:last-of-type {
  left: calc(52% + 8px);
  width: calc(48% - 8px);
  animation: h-tile-join 5s var(--ease-out) infinite;
}
.h-cuts del {
  left: calc(36% + 4px);
  width: 16%;
  background: repeating-linear-gradient(45deg, #f06a6a2e 0 6px, #0000 6px 12px), #f06a6a0d;
  box-shadow: inset 0 0 0 1px #f06a6a80;
  animation: h-tile-cut 5s var(--ease-out) infinite;
}
.h-cuts-head {
  position: absolute;
  z-index: 1;
  top: -6px;
  bottom: -6px;
  left: 20%;
  width: 2px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 0 10px #f5f5ef66;
}
.h-cuts-head::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 3px 3px 50% 50%;
  background: var(--text);
}

/* Laid out joined; the clips fan apart with transforms and a lime ring fades in when they meet. */
.h-reel {
  position: relative;
  display: flex;
  justify-content: center;
  height: 140px;
  padding-top: 4px;
}
.h-reel span {
  position: relative;
  width: 74px;
  border-radius: 3px;
  overflow: hidden;
  background: #101011;
  box-shadow: inset 0 0 0 1px #ffffff1f, 0 14px 24px -12px #000000f2;
  animation: h-reel-m 5s var(--ease-out) infinite;
}
.h-reel span:first-child {
  border-radius: 12px 3px 3px 12px;
  animation-name: h-reel-l;
}
.h-reel span:nth-child(3) {
  border-radius: 3px 12px 12px 3px;
  animation-name: h-reel-r;
}
.h-reel span::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff1f, inset 0 1px 0 #ffffff1f;
}
.h-reel b {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #121314d9;
  box-shadow: 0 0 0 1px #ffffff17;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.h-reel-ring {
  position: absolute;
  top: 1px;
  bottom: -3px;
  left: 50%;
  width: 228px;
  margin-left: -114px;
  border-radius: 14px;
  box-shadow: 0 0 0 2px var(--accent), 0 0 26px -4px #d2f88b66;
  animation: h-reel-ring 5s var(--ease-out) infinite;
  pointer-events: none;
}

.h-langs {
  display: grid;
  gap: 16px;
}
.h-lang-codes {
  border-radius: 12px;
}
.h-lang-codes > b {
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.h-lang-codes .h-seg-thumb {
  border-radius: 8px;
  animation: h-seg-7 14s var(--ease-out) infinite;
}
.h-lang-codes .h-lang-more {
  margin: 2px;
  padding: 4px 0;
  border-radius: 8px;
  border: 1px dashed #ffffff2e;
  color: var(--muted);
}
.h-lang-lines {
  position: relative;
  height: 64px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #1b1c1e, #141516);
  box-shadow: inset 0 0 0 1px #ffffff0f, inset 0 1px 0 #ffffff0d, 0 18px 34px -22px #000000e6;
}
.h-lang-lines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #141516b3, #0000 30%, #0000 70%, #141516b3);
  pointer-events: none;
}
/* One track moves (translateY with holds) instead of seven stepping spans. */
.h-lang-track {
  animation: h-lang-track 14s var(--ease-out) infinite;
}
.h-lang-track span {
  display: grid;
  place-items: center;
  height: 64px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Floating schedule cards, slightly fanned; only the platform chips pop in. */
.h-cal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 4px 4px;
}
.h-cal span {
  --c: var(--violet);
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #212224, #18191a);
  box-shadow: 0 0 0 1px #ffffff12, inset 0 1px 0 #ffffff0f, 0 16px 28px -16px #000000f2;
  transform: rotate(-3deg) translateY(4px);
}
.h-cal span:nth-child(2) {
  --c: var(--accent);
  z-index: 1;
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px #d2f88b40, inset 0 1px 0 #ffffff14, 0 22px 34px -16px #000000f2;
}
.h-cal span:nth-child(3) {
  --c: var(--orange);
  transform: rotate(3deg) translateY(4px);
}
.h-cal small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.h-cal b,
.h-cal i {
  display: block;
  font-size: 11px;
  font-style: normal;
}
.h-cal b {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: #121314;
  box-shadow: 0 0 0 1px #ffffff14;
  color: var(--text);
  white-space: nowrap;
  animation: h-cal-pop 6s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * 0.5s);
}
.h-cal b::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}
.h-cal i {
  padding: 0 2px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* AI selection: one recording, an editorial pass, a shortlist. */
.h-ai-intro { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.h-ai-intro h2 { margin-top: 20px; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; }
.h-ai-intro > p:last-child { max-width: 590px; margin: 22px auto 0; }
/* One shared stage keeps the scan, signal bars and shortlist in sequence. */
.h-ai-machine { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(ellipse at 45% 0%, #d2f88b09, transparent 55%), #151617; box-shadow: var(--edge), var(--shadow-card); }
.h-ai-machine-top, .h-ai-source-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .09em; }
.h-ai-machine-top { padding-bottom: 25px; }
.h-ai-machine-top > span:first-child { display: flex; align-items: center; gap: 9px; color: var(--text); }
.h-ai-led { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #d2f88b50; }
.h-ai-console { display: grid; grid-template-columns: 1fr 1.12fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.h-ai-console > div { min-width: 0; padding: 24px; background: #18191a; }
.h-ai-console > div + div { border-left: 1px solid var(--line); }
.h-ai-console > .h-ai-reasoning { background: linear-gradient(160deg, #23271f, #181a18 65%); }
.h-ai-audio { position: relative; height: 70px; margin-top: 30px; overflow: hidden; }
.h-ai-audio .h-wave { height: 100%; gap: 2px; }
.h-ai-audio .h-wave i { flex: 1; min-width: 1px; background: #767c6e; }
.h-ai-region { position: absolute; inset-block: 0; width: 16%; border: 1px solid #d2f88b70; background: #d2f88b15; border-radius: 4px; }
.h-ai-region-one { left: 13%; }.h-ai-region-two { left: 43%; }.h-ai-region-three { left: 75%; }
.h-ai-scan { position: absolute; inset: 0; border-left: 2px solid var(--accent); background: linear-gradient(90deg, #d2f88b25, transparent 25%); opacity: 0; }
.h-ai-machine[data-stage="0"] .h-ai-scan { animation: h-ai-scan 5.4s linear infinite; }
.h-ai-timestamps { display: flex; justify-content: space-between; margin-top: 9px; font: 10px monospace; color: var(--muted); }
.h-ai-transcript { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.h-ai-small { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.h-ai-transcript p { font-size: 16px; line-height: 1.8; margin: 15px 0; color: var(--muted); }
.h-ai-transcript mark { color: var(--text); background: #d2f88b12; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.h-ai-evidence { font-size: 11px; color: var(--accent); }
.h-ai-brief { display: grid; gap: 7px; margin-top: 27px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.h-ai-brief strong { font-size: 14px; font-weight: 500; }.h-ai-brief > span:last-child { color: var(--muted); font-size: 12px; }
.h-ai-live { color: var(--accent); white-space: nowrap; }
.h-ai-brain { display: flex; align-items: center; gap: 20px; margin: 30px 0; }
.h-ai-core { position: relative; flex: none; display: grid; place-items: center; width: 62px; height: 62px; color: var(--accent); border: 1px solid #d2f88b60; border-radius: 17px; background: linear-gradient(145deg, #36432a, #1a1e18); box-shadow: inset 0 1px 0 #e4ffc32b; }
.h-ai-core::before { content: ''; position: absolute; inset: -6px; border: 1px solid #d2f88b25; border-radius: 22px; }
.h-ai-machine[data-stage="1"] .h-ai-core::before { animation: h-ai-think 1.8s ease-out infinite; }
.h-ai-core svg { width: 32px; height: 32px; }
.h-ai-brain h3 { margin-top: 8px; font-size: 23px; line-height: 1.15; letter-spacing: -.04em; }
.h-ai-signals { display: grid; gap: 19px; }
.h-ai-signal > div { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }.h-ai-signal b { font-weight: 500; }.h-ai-signal span { margin-left: auto; font-size: 10px; color: var(--muted); }.h-ai-signal strong { font: 15px monospace; color: var(--accent); }
.h-ai-signal > i { display: block; height: 3px; background: #ffffff0d; margin: 9px 0 7px; overflow: hidden; border-radius: 3px; }
.h-ai-signal > i > i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--score)); transform-origin: left; transition: transform 1.1s var(--ease); transition-delay: calc(var(--signal) * 140ms); }
.h-ai-machine[data-stage="0"] .h-ai-signal > i > i { transform: scaleX(.04); }
.h-ai-signal p { margin: 0; font-size: 11px; line-height: 1.5; }
.h-ai-rule { font-size: 11px; margin-top: 23px; padding-top: 15px; border-top: 1px solid #ffffff12; }
.h-ai-ranking { display: grid; gap: 12px; margin-top: 26px; }
.h-ai-result { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #1e2020; transition: opacity .6s, transform .8s var(--ease), border-color .6s; transition-delay: calc(var(--pick) * 140ms); }
.h-ai-result:first-child { border-color: #d2f88b60; background: linear-gradient(130deg, #2b3223, #1c201a); }
.h-ai-machine[data-stage="0"] .h-ai-result { opacity: .45; transform: translateY(8px); }
.h-ai-machine[data-stage="1"] .h-ai-result { opacity: .65; transform: translateY(4px); }
.h-ai-result-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }.h-ai-result-meta > span { font: 9px monospace; color: var(--muted); }.h-ai-result-meta b { font: 25px monospace; color: var(--accent); }.h-ai-result-meta small { font-size: 10px; color: var(--muted); }
.h-ai-result h3 { max-width: 210px; margin-top: 11px; font-size: 17px; line-height: 1.25; letter-spacing: -.025em; }.h-ai-result p { margin-top: 8px; font-size: 11px; line-height: 1.5; }
.h-ai-mini-wave { height: 15px; margin-top: 13px; overflow: hidden; }.h-ai-mini-wave .h-wave { height: 100%; gap: 3px; }.h-ai-mini-wave .h-wave i { background: #d2f88b60; }
.h-ai-human { display: flex; align-items: center; gap: 13px; margin-top: 20px; font-size: 12px; color: var(--muted); }.h-ai-human > span:first-child { font-size: 26px; color: var(--accent); }.h-ai-human strong { font-weight: 500; color: var(--text); }
.h-ai-transport { display: flex; align-items: center; gap: 22px; margin-top: 23px; }.h-ai-stages { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.h-ai-stages button, .h-ai-pause { position: relative; min-height: 44px; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }.h-ai-stages button { padding: 10px 0 15px; border-bottom: 1px solid var(--line); overflow: hidden; }.h-ai-stages button span { margin-right: 9px; font: 10px monospace; }.h-ai-stages button[aria-pressed="true"] { color: var(--accent); }.h-ai-stages button i { position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }.h-ai-machine[data-running="true"] .h-ai-stages button[aria-pressed="true"] i { animation: h-ai-progress 5.4s linear forwards; }
.h-ai-pause { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }.h-ai-machine button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }.h-ai-machine button:hover { color: var(--text); }
.h-ai-footnote { margin-top: 18px; font-size: 10px; text-align: center; }
.h-ai-machine[data-running="false"] *, .h-ai-machine[data-running="false"] *::before { animation-play-state: paused !important; }
@keyframes h-ai-scan { 0% { transform: translateX(0); opacity: 0; } 5%, 90% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes h-ai-think { from { transform: scale(1); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
@keyframes h-ai-progress { to { transform: scaleX(1); } }
@media (max-width: 1000px) { .h-ai-console > div { padding: 18px; }.h-ai-brain { gap: 12px; }.h-ai-brain h3 { font-size: 19px; }.h-ai-core { width: 46px; height: 46px; }.h-ai-source-label { font-size: 8px; } }
@media (max-width: 760px) { .h-ai-machine { padding: 18px; }.h-ai-console { grid-template-columns: 1fr; }.h-ai-console > div + div { border-left: 0; border-top: 1px solid var(--line); }.h-ai-console > div { padding: 24px; }.h-ai-source-label { font-size: 10px; }.h-ai-transcript p { font-size: 16px; }.h-ai-brief { margin-top: 18px; }.h-ai-ranking { grid-template-columns: 1fr; }.h-ai-result h3 { max-width: none; }.h-ai-mini-wave { display: none; }.h-ai-transport { align-items: stretch; flex-direction: column; gap: 12px; }.h-ai-stages { gap: 12px; }.h-ai-stages button { font-size: 11px; }.h-ai-stages button span { display: block; margin-bottom: 6px; }.h-ai-pause { align-self: center; }.h-ai-machine-top { font-size: 8px; }.h-ai-footnote { line-height: 1.6; } }
@media (prefers-reduced-motion: reduce) { .h-ai-machine[data-stage] .h-ai-signal > i > i { transform: scaleX(var(--score)); }.h-ai-machine[data-stage] .h-ai-result { opacity: 1; transform: none; } }
.h-ai-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 36px; }
.h-ai-benefits article { display: flex; gap: 14px; min-width: 0; }
.h-ai-benefit-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; color: var(--accent); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.h-ai-benefit-icon svg { width: 22px; height: 22px; }
.h-ai-benefits h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.02em; }
.h-ai-benefits p { margin-top: 8px; font-size: 14px; }
@media (max-width: 900px) { .h-ai-benefits { gap: 24px; }.h-ai-benefits article { flex-direction: column; } }
@media (max-width: 640px) { .h-ai-benefits { grid-template-columns: 1fr; gap: 24px; }.h-ai-benefits article { flex-direction: row; } }


/* Control */
.h-control {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  margin-top: 140px;
  padding: 56px;
  border: 1px solid #37422c;
  border-radius: 28px;
  background:
    radial-gradient(600px circle at 0% 0%, #d2f88b14, #0000 60%),
    #151813;
  box-shadow:
    inset 0 1px 0 #d2f88b1a,
    var(--shadow-card);
}
.h-control h2 {
  margin-top: 20px;
  font-size: clamp(36px, 3.8vw, 52px);
}
.h-control > div > p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 16px;
}
.h-control ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.h-control li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 14px;
  padding: 16px 0;
  border-bottom: 1px solid #2c3523;
}
.h-control li:last-child {
  border-bottom: 0;
}
.h-control li::before {
  content: '✓';
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d2f88b1f;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.h-control li b {
  font-weight: 600;
}
.h-control li span {
  color: var(--muted);
  font-size: 14px;
}

/* Pricing */
.h-price-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}
.h-price-grid > :nth-child(2) { --i: 1; }
.h-price-grid > :nth-child(3) { --i: 2; }
.h-calc,
.h-plan-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
}
.h-plan-card {
  transition:
    translate 0.45s var(--ease-out),
    border-color 0.3s;
}
.h-plan-card:hover {
  translate: 0 -4px;
  box-shadow: var(--edge), var(--shadow-raised);
}
.h-calc {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 18px 12px;
}
.h-calc label {
  font-weight: 600;
  align-self: end;
}
.h-calc output {
  font-size: 15px;
  color: var(--muted);
}
.h-calc output b {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.h-calc input {
  grid-column: 1 / -1;
  --fill: 23%;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: 9px;
  appearance: none;
  background: linear-gradient(90deg, var(--accent) var(--fill), #2e2f31 var(--fill));
  cursor: pointer;
}
.h-calc input::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text);
  border: 5px solid var(--accent);
  box-shadow: 0 4px 14px #0008;
  transition: scale 0.25s var(--ease-out);
}
.h-calc input:active::-webkit-slider-thumb {
  scale: 1.12;
}
.h-calc input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 5px solid var(--accent);
}
.h-calc-rows {
  grid-column: 1 / -1;
  display: grid;
}
.h-calc-rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.h-calc-rows span {
  color: var(--muted);
}
.h-calc-rows b {
  font-variant-numeric: tabular-nums;
}
.h-fine {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.6;
}
.h-plan-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.h-plan-card .button {
  margin-top: auto;
}
.h-plan-card p:not(.eyebrow) {
  font-size: 14.5px;
}
.h-plan-card small {
  color: var(--muted);
}
.h-plan-card.featured {
  border-color: #d2f88b66;
  background:
    radial-gradient(500px circle at 100% 0%, #d2f88b17, #0000 60%),
    var(--surface);
  box-shadow:
    inset 0 1px 0 #d2f88b26,
    var(--shadow-card),
    0 30px 70px -40px #d2f88b40;
}
.h-price {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.h-price span {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--muted);
}
.h-more {
  display: inline-block;
  margin-top: 26px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.h-faq {
  margin-top: 140px;
}

/* Keyframes */
@keyframes h-in {
  from { opacity: 0; transform: translateY(28px); }
}
@keyframes h-pulse {
  70% { box-shadow: 0 0 0 9px #d2f88b00; }
  100% { box-shadow: 0 0 0 0 #d2f88b00; }
}
@keyframes h-ping {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(3.6); opacity: 0; }
}
@keyframes h-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}
@keyframes h-playhead {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
@keyframes h-hit {
  0%, 4% { opacity: 0; transform: scaleX(0.4); }
  10%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes h-rise {
  from { opacity: 0; transform: translateY(80px) rotate(var(--r)) scale(0.9); }
  to { opacity: 1; transform: rotate(var(--r)); }
}
@keyframes h-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -12px; rotate: 1.2deg; }
}
@keyframes h-phone-glow {
  0%, 100% { border-color: #2a2b2d; box-shadow: 0 15px 30px #000a; }
  15%, 30% { border-color: var(--accent); box-shadow: 0 15px 30px #000a, 0 0 28px #d2f88b55; }
  45% { border-color: #2a2b2d; box-shadow: 0 15px 30px #000a; }
}
@keyframes h-push {
  from { scale: 1; translate: 0 0; }
  to { scale: 1.12; translate: 0 -3%; }
}
@keyframes h-sheen {
  0%, 60% { translate: -120% 0; }
  85%, 100% { translate: 120% 0; }
}
@keyframes h-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes h-rec {
  50% { opacity: 0.25; scale: 0.7; }
}
@keyframes h-word {
  0%, 2% { background: #0000; color: #fff; }
  6%, 22% { background: var(--accent); color: #172011; }
  28%, 100% { background: #0000; color: #fff; }
}
@keyframes h-word-orange {
  0%, 2% { color: #fff; transform: none; }
  6%, 22% { color: var(--orange); transform: scale(1.12); }
  28%, 100% { color: #fff; transform: none; }
}
@keyframes h-word-fade {
  0%, 2% { opacity: 0.45; }
  6%, 100% { opacity: 1; }
}
@keyframes h-marquee {
  to { transform: translateX(-50%); }
}
@keyframes h-bounce {
  0%, 100% { transform: none; }
  30% { transform: translateY(-6px); }
}
@keyframes h-fill {
  0% { transform: translateX(-100%); }
  70%, 100% { transform: none; }
}
@keyframes h-beam {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@keyframes h-pick {
  0%, 30% { filter: saturate(0.6) brightness(0.75); outline: 0 solid #0000; }
  38%, 100% { filter: none; outline: 2px solid var(--accent); outline-offset: -2px; }
}
@keyframes h-pop {
  0%, 35% { opacity: 0; transform: translateY(8px) scale(0.9); }
  45%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes h-ratio {
  0%, 20% { aspect-ratio: 9 / 16; height: 160px; }
  25%, 45% { aspect-ratio: 1; height: 140px; }
  50%, 70% { aspect-ratio: 16 / 9; height: 112px; }
  75%, 95% { aspect-ratio: 4 / 5; height: 150px; }
  100% { aspect-ratio: 9 / 16; height: 160px; }
}
@keyframes h-label {
  0%, 2% { opacity: 0; }
  5%, 22% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@keyframes h-mode {
  0%, 1% { background: #0000; color: var(--muted); border-color: var(--line); }
  4%, 18% { background: #d2f88b; color: #172011; border-color: #d2f88b; }
  21%, 100% { background: #0000; color: var(--muted); border-color: var(--line); }
}
@keyframes h-zoom {
  to { transform: scale(1.12) translate(-2%, -2%); }
}
@keyframes h-crop {
  0%, 35% { left: 14%; }
  50%, 85% { left: 64%; }
  100% { left: 14%; }
}
@keyframes h-cam {
  0%, 30% { width: 100%; right: 0; bottom: 0; height: 50%; aspect-ratio: auto; border-radius: 0; }
  36%, 63% { width: 26%; right: 10px; bottom: 10px; height: auto; aspect-ratio: 1; border-radius: 10px; }
  70%, 96% { width: 40%; right: 30%; bottom: 20px; height: auto; aspect-ratio: 1; border-radius: 50%; }
  100% { width: 100%; right: 0; bottom: 0; height: 50%; aspect-ratio: auto; border-radius: 0; }
}
@keyframes h-strike {
  0%, 30% { text-decoration-line: none; opacity: 1; }
  40%, 100% { text-decoration-line: line-through; opacity: 0.6; }
}
@keyframes h-collapse {
  0%, 40% { flex-grow: 1.4; opacity: 1; }
  60%, 90% { flex-grow: 0; opacity: 0; margin-inline: -2px; }
  100% { flex-grow: 1.4; opacity: 1; }
}
@keyframes h-join {
  0%, 30% { gap: 14px; }
  50%, 85% { gap: 0; }
  100% { gap: 14px; }
}
@keyframes h-reel-item {
  0%, 30% { border-color: #2a2b2d; border-radius: 10px; }
  50%, 85% { border-color: var(--accent); border-radius: 0; }
  100% { border-color: #2a2b2d; border-radius: 10px; }
}
/* Bento tile keyframes: transform and opacity only. */
@keyframes h-seg-3 {
  0%, 28% { transform: none; }
  33.33%, 61.67% { transform: translateX(100%); }
  66.67%, 95% { transform: translateX(200%); }
  100% { transform: none; }
}
@keyframes h-seg-5 {
  0%, 16% { transform: none; }
  20%, 36% { transform: translateX(100%); }
  40%, 56% { transform: translateX(200%); }
  60%, 76% { transform: translateX(300%); }
  80%, 96% { transform: translateX(400%); }
  100% { transform: none; }
}
@keyframes h-seg-7 {
  0%, 11.8% { transform: none; }
  14.29%, 26.1% { transform: translateX(100%); }
  28.57%, 40.4% { transform: translateX(200%); }
  42.86%, 54.7% { transform: translateX(300%); }
  57.14%, 69% { transform: translateX(400%); }
  71.43%, 83.3% { transform: translateX(500%); }
  85.71%, 97.6% { transform: translateX(600%); }
  100% { transform: none; }
}
@keyframes h-lang-track {
  0%, 11.8% { transform: none; }
  14.29%, 26.1% { transform: translateY(-14.2857%); }
  28.57%, 40.4% { transform: translateY(-28.5714%); }
  42.86%, 54.7% { transform: translateY(-42.8571%); }
  57.14%, 69% { transform: translateY(-57.1429%); }
  71.43%, 83.3% { transform: translateY(-71.4286%); }
  85.71%, 97.6% { transform: translateY(-85.7143%); }
  100% { transform: none; }
}
@keyframes h-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes h-eq {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}
@keyframes h-pod-rail {
  0%, 35% { transform: none; }
  50%, 85% { transform: translateX(50%); }
  100% { transform: none; }
}
@keyframes h-pod-dim {
  0%, 35% { opacity: 0; }
  50%, 85% { opacity: 0.7; }
  100% { opacity: 0; }
}
@keyframes h-pod-dim-alt {
  0%, 35% { opacity: 0.7; }
  50%, 85% { opacity: 0; }
  100% { opacity: 0.7; }
}
@keyframes h-wc-state {
  0%, 28% { opacity: 1; transform: none; }
  33.33%, 95% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: none; }
}
@keyframes h-tile-fade {
  0%, 30% { opacity: 1; }
  40%, 90% { opacity: 0.5; }
  100% { opacity: 1; }
}
@keyframes h-tile-strike {
  0%, 28% { transform: scaleX(0); }
  40%, 90% { transform: none; }
  100% { transform: scaleX(0); }
}
@keyframes h-tile-cut {
  0%, 45% { opacity: 1; transform: none; }
  60%, 90% { opacity: 0; transform: scaleX(0.2); }
  100% { opacity: 1; transform: none; }
}
@keyframes h-tile-join {
  0%, 45% { transform: none; }
  60%, 90% { transform: translateX(calc(-16cqw - 4px)); }
  100% { transform: none; }
}
@keyframes h-reel-l {
  0%, 30% { transform: translateX(-18px) rotate(-5deg); }
  50%, 85% { transform: none; }
  100% { transform: translateX(-18px) rotate(-5deg); }
}
@keyframes h-reel-m {
  0%, 30% { transform: translateY(-6px); }
  50%, 85% { transform: none; }
  100% { transform: translateY(-6px); }
}
@keyframes h-reel-r {
  0%, 30% { transform: translateX(18px) rotate(5deg); }
  50%, 85% { transform: none; }
  100% { transform: translateX(18px) rotate(5deg); }
}
@keyframes h-reel-ring {
  0%, 40% { opacity: 0; transform: scale(1.04); }
  52%, 85% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: scale(1.04); }
}
@keyframes h-cal-pop {
  0%, 35% { opacity: 0; transform: translateY(6px) scale(0.95); }
  45%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.98); }
}

@media (max-width: 1100px) {
  .h-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    min-height: 0;
  }
  .h-stage {
    max-width: 680px;
  }
  .h-bento {
    grid-template-columns: 1fr 1fr;
  }
  .h-t-captions {
    grid-row: auto;
  }
  .h-t-discover,
  .h-t-editor {
    grid-column: 1 / -1;
  }
  .h-price-grid {
    grid-template-columns: 1fr 1fr;
  }
  .h-calc {
    grid-column: 1 / -1;
  }
  .h-control {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}
@media (max-width: 850px) {
  .h-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .h-hero {
    padding-top: 40px;
  }
  .h-hero-glow {
    inset: -60px 0 auto;
    width: auto;
    height: 520px;
  }
  .h-hero::before {
    inset: 0 -18px;
  }
  .h-kicker {
    padding: 6px 12px;
    font-size: 12px;
  }
  .h-hero h1 {
    font-size: clamp(38px, 11.5vw, 46px);
  }
  .h-lede {
    font-size: 16px;
  }
  .h-actions {
    gap: 16px;
  }
  .h-actions .button {
    width: 100%;
  }
  .h-stage {
    height: 430px;
  }
  .h-source {
    width: 100%;
    top: 0;
  }
  .h-phones {
    width: 100%;
    height: 260px;
  }
  .h-phone {
    border-width: 3px;
    border-radius: 14px;
  }
  .h-karaoke {
    font-size: 11px;
  }
  .h-karaoke.style-2 { font-size: 12px; }
  .h-karaoke.style-3 { font-size: 10px; }
  .h-chip {
    font-size: 8px;
  }
  /* 56–64 bars at 2px + 3px gaps are wider than a phone; thinner bars keep the whole track visible. */
  .h-wave {
    gap: 2px;
  }
  .h-wave i {
    min-width: 1px;
  }
  .h-section {
    padding-top: 96px;
  }
  .h-head {
    margin-bottom: 36px;
  }
  .h-bento,
  .h-price-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-tile {
    min-height: 0;
    padding: 22px;
  }
  .h-tile h3 {
    font-size: 22px;
  }
  .h-cap-stage {
    min-height: 320px;
  }
  .h-scores {
    padding: 2px 14px;
  }
  .h-scores > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px;
    gap: 10px;
  }
  /* Five equal segments are narrow on a phone: labels wrap to two lines and the thumb stretches. */
  .h-dmodes {
    border-radius: 16px;
  }
  .h-seg.h-dmodes > button {
    padding: 7px 2px;
    font-size: 11.5px;
    white-space: normal;
  }
  .h-dmodes .h-seg-thumb {
    border-radius: 12px;
  }
  .h-transcript p {
    font-size: 18px;
  }
  .h-control {
    padding: 30px 22px;
    margin-top: 96px;
  }
  .h-calc,
  .h-plan-card {
    padding: 22px;
  }
  .h-faq {
    margin-top: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .h-home *,
  .h-home *::before,
  .h-home *::after {
    animation: none !important;
    transition: none !important;
  }
  .h-score-fill > i {
    transform: none;
  }
}

/* Shared landing-page editor: framed stereo audio, time ruler and playhead. */
.m-timeline { min-width: 0; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #131414; box-shadow: var(--edge); text-align: left; }
.m-header, .m-lane-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-header { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.m-header > span:first-child { display: flex; align-items: center; gap: 7px; }
.m-header i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.m-header > span:last-child { font-size: 8px; }
.m-axis { position: relative; margin-top: 8px; padding-bottom: 10px; overflow: hidden; }
.m-times { position: relative; height: 35px; color: var(--muted); font: 9px/1.4 ui-monospace, monospace; font-variant-numeric: tabular-nums; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 100%) left bottom / 5% 5px repeat-x; }
.m-times span { position: absolute; top: 7px; transform: translateX(-50%); white-space: nowrap; }
.m-times .m-time-0 { transform: none; }
.m-times .m-time-3 { transform: translateX(-100%); }
.m-lane { position: relative; height: 104px; margin-top: 8px; border: 1px solid #d2f88b35; border-radius: 5px; background: #d2f88b0a; overflow: hidden; }
.m-lane-label { height: 26px; padding: 0 8px; border-bottom: 1px solid #d2f88b14; color: var(--muted); font: 8px ui-monospace, monospace; }
.m-lane-label > span:first-child { color: var(--accent); }
.m-lane-label b { margin-left: 5px; color: var(--text); font: 500 10px Inter, sans-serif; }
.m-track { position: absolute; inset: 27px 0 0; background: linear-gradient(#ffffff08, #ffffff08) center / 100% 1px no-repeat; }
.m-track svg { display: block; width: 100%; height: 100%; fill: none; stroke: #b7cc97; stroke-width: 1.1; animation: m-wave-float 4.8s ease-in-out infinite alternate; }
@keyframes m-wave-float { from { transform: translateY(-1.25px); } to { transform: translateY(1.25px); } }
.m-region { position: absolute; inset-block: 0; display: flex; align-items: start; justify-content: center; border-inline: 1px solid #d2f88b88; background: #d2f88b12; overflow: hidden; }
.m-region b { max-width: 100%; padding: 3px; border-radius: 2px; background: #232c1c; color: var(--accent); font: 9px/1.4 ui-monospace, monospace; white-space: nowrap; }
.m-region.m-cut { align-items: center; border-inline: 1px dashed #f7a06c99; background: repeating-linear-gradient(135deg, #f7a06c10 0 2px, transparent 2px 6px), #201b17; }
.m-region.m-cut b { color: var(--orange); background: #292019; }
.m-region.m-muted { border-color: #c4b2fa88; background: #c4b2fa20; }
.m-region.m-muted b { color: var(--violet); background: #252030; }
.m-region.m-keep { align-items: center; border-inline-style: dashed; background: #161d13; }
.m-region.m-selected { border: 1px solid var(--accent); }
.m-playhead { position: absolute; z-index: 2; inset: 27px 0 6px; border-left: 1px solid var(--text); pointer-events: none; animation: m-scrub 6s linear infinite; }
.m-playhead::before { content: ''; position: absolute; top: -1px; left: -4px; width: 7px; height: 8px; background: var(--text); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
@keyframes m-scrub { from { transform: translateX(2%); } to { transform: translateX(98%); } }
.m-compact { padding: 10px; border-radius: 10px; }
.m-compact .m-lane { height: 68px; }
.m-compact .m-lane-label { height: 20px; }
.m-compact .m-track { top: 21px; }
.m-compact .m-times { height: 30px; }
.m-compact .m-playhead { top: 22px; }
.h-source > .m-timeline, .t-src > .m-timeline { margin-top: 12px; }
.h-ai-console .m-timeline { margin-top: 16px; }
.t-stage .m-timeline { padding: 1.5cqw; }
.t-stage .m-timeline .m-lane { height: 10cqw; min-height: 48px; }
.t-stage .m-timeline .m-header { font-size: 8px; }
.t-ed > .m-timeline, .t-pz > .m-timeline { margin-top: 12px; }
.f-pod-side .m-timeline { margin-block: 14px; }
/* Embedded timelines use their parent card instead of a second dark shell. */
:is(.h-tile, .f-art, .t-win, .u-src, .w-screen, .h-ai-console) .m-timeline {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) { .m-track svg { animation: none; transform: none; }.m-playhead { animation: none; transform: translateX(29%); } }

/* Summarizer: the whole source is read, picked sentences light up and join, in order, into one video.
   Rest state = final frame, so reduced motion still shows the result. Motion is opacity/transform only. */
.h-sum { display: grid; gap: 0.85em; padding: 1.35em; border-radius: 16px; background: #131414; box-shadow: inset 0 0 0 1px #ffffff08; font-size: 12px; line-height: 1.3; }
.h-sum-head { display: flex; justify-content: space-between; gap: 1em; color: #8d8f89; font: 600 0.88em/1.3 ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.h-sum-head b { color: var(--text); font-weight: 600; }
.h-sum-src { position: relative; display: flex; gap: 3px; height: 2.9em; padding: 0.5em; border: 1px solid var(--line); border-radius: 10px; background: #18191a; overflow: hidden; }
.h-sum-src i { position: relative; border-radius: 4px; background: #2a2b2d; }
.h-sum-src i.on::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); box-shadow: 0 0 0 1px #d2f88b; animation: h-sum-lit 8s var(--ease) infinite backwards; animation-delay: calc(var(--x) * 3.2s); }
.h-sum-beam { position: absolute; inset: 0; pointer-events: none; opacity: 0; animation: h-sum-beam 8s linear infinite; }
.h-sum-beam::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--text); box-shadow: 0 0 12px #d2f88b99; }
.h-sum-join { display: flex; align-items: center; gap: 0.9em; color: var(--muted); font-size: 0.92em; }
.h-sum-join i { flex: 1; height: 1px; background: var(--line); }
.h-sum-out { display: flex; gap: 2px; height: 3.3em; padding: 0.35em; border: 1px solid #d2f88b55; border-radius: 10px; background: #161d13; }
.h-sum-out b { display: grid; place-items: center; min-width: 0; border-radius: 5px; background: linear-gradient(180deg, #e0ffae, #94ae65); color: #172011; font: 700 0.85em/1 ui-monospace, monospace; transform-origin: left; animation: h-sum-out 8s var(--ease) infinite backwards; animation-delay: calc(3.4s + var(--k) * 0.22s); }
.h-sum-lines { display: grid; gap: 0.5em; margin: 0; padding: 0; list-style: none; font-size: 12px; }
.h-sum-lines li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; align-items: center; gap: 0.8em; padding: 0.6em 0.85em; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.h-sum-lines small { font: 0.88em ui-monospace, monospace; color: #8d8f89; }
.h-sum-lines span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: line-through; text-decoration-color: #f7a06c88; }
.h-sum-lines b { font-size: 0.82em; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.h-sum-lines li.on { border-color: #d2f88b44; background: #161d13; color: var(--text); }
.h-sum-lines li.on span { text-decoration: none; }
.h-sum-lines li.on b { color: var(--accent); }
@keyframes h-sum-beam { 0% { transform: translateX(0); opacity: 0; } 3%, 38% { opacity: 1; } 40% { transform: translateX(100%); opacity: 1; } 44%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes h-sum-lit { 0% { opacity: 0; } 4%, 58% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes h-sum-out { 0% { opacity: 0; transform: scaleX(0.2); } 6%, 42% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; transform: none; } }

/* Homepage tile: full width, copy next to the illustration. */
.h-t-summary { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 22px 44px; min-height: 0; }
.h-t-summary > .h-sum { margin-top: 0; font-size: 13px; }
.h-t-summary .h-tile-copy { gap: 14px; }
.h-sum-len { max-width: 400px; margin-top: 4px; }
.h-sum-len .h-seg-thumb { transform: translateX(100%); }
.h-sum-len > span { display: grid; gap: 2px; }
.h-sum-len small { font-size: 11px; color: var(--muted); }
.h-new { display: inline-flex; padding: 3px 8px; border-radius: 999px; border: 1px solid #c4b2fa66; background: #c4b2fa10; color: var(--violet); font-size: 10px; font-weight: 650; letter-spacing: 0.12em; }
.h-tile-badges { display: flex; gap: 8px; align-items: center; }
@media (max-width: 850px) {
  .h-t-summary { grid-template-columns: minmax(0, 1fr); }
  .h-t-summary > .h-sum { font-size: 12px; }
}
