/* Tool landing pages (scripts/pages/product.mjs). Builds on home.css: h-section, h-head, h-control, h-karaoke, keyframes. */

/* Hero */
.t-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0 40px;
}
.t-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 62% 45%, #000, #0000);
  pointer-events: none;
}
.t-hero h1 {
  margin-top: 24px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 650;
  animation: h-in 0.9s var(--ease) 0.08s both;
}
.t-hero .h-lede {
  max-width: 560px;
}
.t-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.t-meta .h-plan {
  align-self: center;
}
.t-meta > span:not(.h-plan) + span::before,
.t-meta > span + a::before {
  content: '·';
  margin-right: 14px;
  color: #55575a;
}
.t-meta a {
  color: var(--accent);
  font-weight: 550;
}
.t-meta a:hover {
  text-decoration: underline;
}

/* Stage: everything inside scales with the stage width (container units). */
.t-stage {
  position: relative;
  aspect-ratio: 20 / 19;
  container-type: inline-size;
  font-size: clamp(9px, 2.05cqw, 13px);
  line-height: 1.35;
}
.t-win,
.t-card {
  position: absolute;
  padding: 2cqw;
  border: 1px solid var(--line);
  border-radius: 3.2cqw;
  background: #18191af2;
  box-shadow: 0 20px 40px #0007;
}
.t-win {
}
.t-card {
  z-index: 3;
}
.t-stage .h-chrome {
  font-size: 0.9em;
  padding-bottom: 1.6cqw;
}
.t-stage .h-chrome span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.t-stage .h-chrome b {
  flex: none;
}
.t-stage .h-modes {
  gap: 0.6em;
}
.t-stage .h-modes span {
  padding: 0.4em 0.85em;
  font-size: 0.92em;
}
.t-stage .h-track {
  height: 8cqw;
  margin-top: 1.6cqw;
}
.t-presets {
  margin-top: 1.6cqw;
}
.t-phone {
  position: absolute;
  z-index: 2;
  aspect-ratio: 9 / 16;
  border-radius: 4cqw;
  overflow: hidden;
  border: 0.7cqw solid #2a2b2d;
  background: #1c1d1e;
  box-shadow: 0 15px 30px #000a;
  --r: 4deg;
  animation:
    h-rise 1.1s var(--ease) 0.5s both;
}
.t-phone > .h-photo,
.t-layer,
.t-layer .h-photo {
  position: absolute;
  inset: 0;
}
.t-phone-a {
  right: 0;
  bottom: 0;
  width: 33%;
}
.t-phone-b {
  right: 2%;
  bottom: 2%;
  width: 27%;
  --r: -4deg;
}
.t-phone-xl {
  left: 0;
  top: 0;
  width: 50%;
  --r: -3deg;
}
.t-stage .h-chip {
  left: 1.6cqw;
  top: 1.6cqw;
  font-size: 0.78em;
  z-index: 2;
}
.t-stage .h-karaoke {
  font-size: 1.15em;
  left: 1.4cqw;
  right: 1.4cqw;
  z-index: 2;
}
.t-plabel {
  display: flex;
  justify-content: space-between;
  margin: 1.8cqw 0 0.9cqw;
  font-size: 0.8em;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8f89;
}
.t-plabel:first-child {
  margin-top: 0;
}
.t-plabel small {
  font-size: 1em;
  color: var(--accent);
}
.t-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.t-pills span {
  padding: 0.35em 0.8em;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9em;
  color: var(--muted);
}
.t-costline {
  display: flex;
  justify-content: space-between;
  margin-top: 2cqw;
  padding-top: 1.6cqw;
  border-top: 1px solid var(--line);
  font-size: 0.92em;
  color: var(--muted);
}
.t-costline b {
  color: var(--accent);
}
/* Three states taking turns over 9 s (t-n1, t-n2, t-n3). */
.t-cycle {
  display: inline-grid;
}
.t-cycle b {
  grid-area: 1 / 1;
  font-weight: 600;
  color: var(--c, var(--text));
  opacity: 0;
  animation: t-show 9s infinite;
}
.t-cycle .t-n1 { opacity: 1; }
.t-cycle .t-n2 { animation-delay: 3s; }
.t-cycle .t-n3 { animation-delay: 6s; }
.t-status {
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: #ffffff0d;
  font-size: 0.9em;
}

/* Long video to Shorts */
.t-v-shorts .t-src {
  left: 0;
  top: 0;
  width: 76%;
}
.t-cands {
  left: 5%;
  bottom: 1%;
  width: 60%;
  display: grid;
  gap: 1.4cqw;
}
.t-cands > div {
  display: grid;
  grid-template-columns: 1fr 22% 2.4em;
  align-items: center;
  gap: 1.4cqw;
  animation: t-slot 9s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.4s);
}
.t-cands span {
  display: grid;
  min-width: 0;
}
.t-cands span b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-cands small {
  font-size: 0.82em;
  color: var(--muted);
}
.t-cands i {
  display: block;
  height: 0.6em;
  border-radius: 9px;
  background: #2a2b2d;
  overflow: hidden;
}
.t-cands i i {
  width: var(--s);
  height: 100%;
  background: linear-gradient(90deg, #94ae65, var(--accent));
  transform-origin: left;
  animation: t-bar 9s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.4s);
}
.t-cands em {
  font-style: normal;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* AI Captions */
.t-v-captions .t-phone-xl .h-photo {
  animation: h-zoom 18s ease-in-out infinite alternate;
}
.t-cap {
  position: absolute;
  left: 1.4cqw;
  right: 1.4cqw;
  bottom: 18%;
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: t-show 9s infinite;
}
.t-stage .t-cap-1 {
  opacity: 1;
  font-size: 1.5em;
}
.t-cap-2 {
  bottom: 30%;
  font-size: 2.3em;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0.12em 0 #000c;
  animation-delay: 3s;
}
.t-cap-2 span {
  display: inline-block;
  animation: t-word-pop 3s var(--ease) infinite;
  animation-delay: calc(var(--w) * 0.45s);
}
.t-cap-3 {
  left: 8%;
  right: 8%;
  padding: 0.5em 0.7em;
  border-radius: 0.5em;
  background: #000a;
  font-size: 1.05em;
  font-weight: 550;
  color: #fff;
  animation-delay: 6s;
}
.t-panel {
  z-index: 3;
  right: 0;
  top: 9%;
  width: 56%;
}
.t-styles span.t-n1,
.t-styles span.t-n2,
.t-styles span.t-n3 {
  animation: t-on 9s infinite;
}
.t-styles span.t-n2 { animation-delay: 3s; }
.t-styles span.t-n3 { animation-delay: 6s; }
.t-swatches {
  display: flex;
  gap: 0.8em;
}
.t-swatches i {
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 0.2em #18191a, 0 0 0 0.3em #0000;
  animation: t-ring 12s infinite;
  animation-delay: calc(var(--i) * 2s);
}
.t-select {
  display: flex;
  justify-content: space-between;
  padding: 0.6em 0.9em;
  border-radius: 0.7em;
  border: 1px solid var(--line);
  background: #131414;
}
.t-select b {
  font-weight: 500;
  color: var(--muted);
}
.t-fmt span:first-child {
  border-color: #d2f88b66;
  color: var(--accent);
}

/* Podcast */
.t-v-podcast .t-src {
  left: 0;
  top: 2%;
  width: 78%;
}
.t-two {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 9;
  border-radius: 2cqw;
  overflow: hidden;
}
.t-two > span {
  position: relative;
  overflow: hidden;
}
.t-two b {
  position: absolute;
  left: 1.2cqw;
  bottom: 1.2cqw;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  background: #101011cc;
  font-size: 0.75em;
  letter-spacing: 0.1em;
}
.t-crop {
  position: absolute;
  top: 3%;
  bottom: 3%;
  left: 12%;
  right: 62%;
  border: 2px solid var(--accent);
  border-radius: 1.2cqw;
  box-shadow: 0 0 0 999px #0009;
  animation: t-crop 9s var(--ease) infinite;
}
.t-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1cqw;
  margin-top: 1.6cqw;
}
.t-shots span {
  display: grid;
  gap: 0.15em;
  padding: 0.7em 0.8em;
  border-radius: 1.4cqw;
  border: 1px solid var(--line);
  font-size: 0.88em;
  color: var(--muted);
  animation: t-on 9s infinite;
}
.t-shots .t-n2 { animation-delay: 3s; }
.t-shots .t-n3 { animation-delay: 6s; }
.t-shots b {
  font-size: 0.85em;
  letter-spacing: 0.08em;
}
.t-shots em {
  justify-self: start;
  padding: 0 0.5em;
  border-radius: 999px;
  background: #f2bb5a24;
  color: #f2bb5a;
  font-style: normal;
  font-size: 0.85em;
}
.t-track {
  height: 6cqw !important;
}
.t-track .h-playhead {
  animation-duration: 9s;
}
.t-layer {
  opacity: 0;
  animation: t-show 9s infinite;
}
.t-layer.t-n1 { opacity: 1; }
.t-layer.t-n2 { animation-delay: 3s; }
.t-layer.t-n3 { animation-delay: 6s; }
.t-layer .h-photo {
  height: 100%;
}
.t-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  background: #0d0d0e;
}
.t-wide > span {
  position: relative;
  aspect-ratio: 8 / 9;
  overflow: hidden;
}
.t-wide .h-photo {
  position: absolute;
  inset: 0;
}
.t-modes3 {
  right: 25%;
  bottom: 4%;
  display: grid;
  gap: 1cqw;
  justify-items: start;
}
.t-modes3 span:first-child {
  background: var(--accent);
  border-color: var(--accent);
  color: #172011;
}
.t-modes3 small {
  font-size: 0.85em;
  color: #56c596;
}

/* Gaming / webcam */
.t-v-webcam .t-src {
  left: 0;
  top: 0;
  width: 76%;
}
.t-zone {
  position: absolute;
  border-radius: 1cqw;
}
.t-zone em {
  position: absolute;
  left: 0.6em;
  top: 0.5em;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  background: #101011cc;
  font-size: 0.75em;
  font-style: normal;
  font-weight: 600;
}
.t-zone-game {
  inset: 4% 4% 4% 4%;
  border: 2px dashed #d2f88baa;
  animation: t-dash 3s ease-in-out infinite alternate;
}
.t-zone-game em {
  color: var(--accent);
}
.t-zone-cam {
  right: 6%;
  bottom: 8%;
  width: 24%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--violet);
}
.t-zone-cam em {
  top: auto;
  bottom: 0.4em;
  color: var(--violet);
}
.t-frames {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1cqw;
  margin-top: 1.6cqw;
}
.t-frames span {
  aspect-ratio: 16 / 9;
  border-radius: 1cqw;
  overflow: hidden;
  outline: 2px solid #0000;
  outline-offset: -2px;
  animation: t-pick 8s infinite;
  animation-delay: calc(var(--i) * 2s);
}
.t-frames .h-photo {
  object-position: var(--x) 50%;
}
.t-lay > span {
  position: absolute;
  overflow: hidden;
}
.t-lay .h-photo {
  position: absolute;
  inset: 0;
}
.t-lay-bg {
  inset: 0;
}
.t-lay-bg .h-photo {
  filter: blur(8px) brightness(0.6);
  transform: scale(1.2);
}
.t-lay-game {
  left: 0;
  width: 100%;
  top: 50%;
  height: 50%;
  animation: t-game 9s var(--ease) infinite;
}
.t-lay-cam {
  left: 0;
  top: 0;
  width: 100%;
  height: 50%;
  border: 2px solid var(--violet);
  animation: t-camlay 9s var(--ease) infinite;
}
.t-v-webcam .h-chip .t-cycle b {
  color: var(--text);
}
.t-v-webcam .t-phone .h-karaoke {
  bottom: 54%;
}

/* Editor */
.t-ed {
  left: 0;
  top: 0;
  width: 92%;
}
.t-ed-body {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 2cqw;
}
.t-ed-prev {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 2cqw;
  overflow: hidden;
}
.t-ed-prev .h-photo {
  position: absolute;
  inset: 0;
}
.t-ed-prev .h-karaoke {
  font-size: 0.9em;
}
.t-ed-side {
  display: grid;
  align-content: start;
  gap: 2cqw;
}
.t-ed-text {
  font-size: 1.55em;
  line-height: 1.45;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: #d9dad3;
}
.t-ed-text mark {
  padding: 0 0.2em;
  border-radius: 0.25em;
  background: #d2f88b26;
  color: var(--accent);
}
.t-ed-text del {
  color: #6f716c;
  text-decoration-color: #f06a6a;
  text-decoration-thickness: 2px;
  animation: h-strike 6s infinite;
}
.t-ed-text u {
  text-decoration: none;
  color: var(--violet);
  border-bottom: 2px dotted var(--violet);
}
.t-ed-tl {
  margin-top: 2cqw;
  padding: 1.4cqw;
  border-radius: 1.6cqw;
  background: #121313;
}
.t-ruler {
  display: flex;
  justify-content: space-between;
  font-size: 0.75em;
  color: #6f716c;
  font-variant-numeric: tabular-nums;
}
.t-segs {
  position: relative;
  overflow-x: clip;
  display: flex;
  gap: 0.4cqw;
  height: 4.6cqw;
  margin-top: 0.8cqw;
}
.t-segs span {
  flex: 3;
  border-radius: 0.8cqw;
  background: linear-gradient(90deg, #2f3a26, #3c4a2e);
  border: 1px solid #d2f88b44;
}
.t-segs span:first-child {
  border-left: 0.5cqw solid var(--accent);
}
.t-segs span:last-of-type {
  flex: 2;
  border-right: 0.5cqw solid var(--accent);
}
.t-segs del {
  flex: 1.4;
  border-radius: 0.8cqw;
  background: repeating-linear-gradient(45deg, #f06a6a22 0 6px, #0000 6px 12px);
  border: 1px dashed #f06a6a88;
  animation: h-collapse 6s var(--ease) infinite;
}
.t-segs u {
  flex: 1.6;
  display: grid;
  place-items: center;
  border-radius: 0.8cqw;
  border: 1px solid #c4b2fa66;
  background: repeating-linear-gradient(-45deg, #c4b2fa1f 0 5px, #0000 5px 10px);
  font-size: 0.72em;
  text-decoration: none;
  color: var(--violet);
}
.t-segs .h-playhead {
  animation-duration: 6s;
}
.t-ed-wave {
  height: 3.6cqw;
  margin-top: 0.8cqw;
}
.t-ed-wave .h-wave i {
  background: #3a3c3f;
}
.t-ed-exp {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.6cqw;
  font-size: 0.9em;
}
.t-ed-exp > span {
  padding: 0.35em 0.8em;
  border-radius: 0.6em;
  border: 1px solid var(--line);
  color: var(--muted);
}
.t-ed-exp .t-status {
  margin-left: auto;
}
.t-keys {
  position: absolute;
  right: 0;
  bottom: 3%;
  z-index: 3;
  display: flex;
  gap: 0.6em;
}
.t-keys kbd {
  min-width: 2.6em;
  padding: 0.6em 0.8em;
  border-radius: 0.6em;
  border: 1px solid #454649;
  border-bottom-width: 0.3em;
  background: var(--raised);
  font: 600 1em Inter, sans-serif;
  text-align: center;
  box-shadow: 0 10px 20px #0008;
  animation: t-key 3s infinite;
}
.t-keys kbd:nth-child(2) { animation-delay: 0.08s; }
.t-keys kbd:nth-child(3) { animation-delay: 0.16s; }

/* Remove Pauses */
.t-pz {
  left: 0;
  top: 0;
  width: 70%;
}
.t-pace span {
  animation: t-on 9s infinite;
}
.t-pace span:nth-child(2) { animation-delay: 3s; }
.t-pace span:nth-child(3) { animation-delay: 6s; }
.t-pzwave {
  display: flex;
  align-items: center;
  height: 13cqw;
  margin-top: 2cqw;
  padding: 0 1.4cqw;
  border-radius: 1.6cqw;
  background: #131414;
}
.t-pzwave .h-wave {
  flex: 1;
  height: 62%;
}
.t-pzwave .h-wave i {
  background: #8d9a77;
}
.t-gapx {
  display: grid;
  place-items: center;
  flex: none;
  width: 11cqw;
  height: 6cqw;
  margin: 0 0.6cqw;
  border-radius: 1cqw;
  border: 1px dashed #f2bb5a88;
  font-size: 0.8em;
  font-weight: 600;
  color: #f2bb5a;
  overflow: hidden;
  white-space: nowrap;
  animation: t-gap 9s var(--ease) infinite;
}
.t-gapx:nth-of-type(3) {
  animation-name: t-gap-long;
}
.t-sliders {
  display: grid;
  gap: 0.7cqw;
  margin-top: 2cqw;
}
.t-sliders p {
  font-size: 0.88em;
}
.t-sliders p b {
  color: var(--text);
}
.t-slider {
  position: relative;
  height: 0.5em;
  margin-bottom: 0.8cqw;
  border-radius: 9px;
  background: #2e2f31;
}
.t-slider i {
  position: absolute;
  top: 50%;
  left: var(--v);
  width: 1.3em;
  height: 1.3em;
  margin: -0.65em 0 0 -0.65em;
  border-radius: 50%;
  background: var(--text);
  border: 0.3em solid var(--accent);
  animation: t-slide 9s var(--ease) infinite;
}
.t-slider::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: inherit;
  background: var(--accent);
  animation: t-slide-fill 9s var(--ease) infinite;
}
.t-cuts {
  display: grid;
  gap: 0.6cqw;
  margin: 1.2cqw 0 0;
  padding: 0;
  list-style: none;
}
.t-cuts li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.5em 0.7em;
  border-radius: 0.8em;
  background: #131414;
  font-size: 0.9em;
  color: var(--muted);
  animation: t-slot 9s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.3s);
}
.t-cuts li > span {
  padding: 0 0.5em;
  border-radius: 999px;
  background: #f2bb5a24;
  color: #f2bb5a;
  font-size: 0.85em;
}
.t-cuts li > span.filler {
  background: #c4b2fa24;
  color: var(--violet);
}
.t-cuts b {
  font-weight: 500;
}
.t-cuts em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.t-cuts em.t-restore {
  color: var(--text);
}

/* Highlight Reel */
.t-rl {
  left: 0;
  top: 0;
  width: 88%;
}
.t-target {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1cqw 1.6cqw;
}
.t-target small {
  font-size: 0.85em;
  color: var(--muted);
}
.t-target .h-modes span {
  animation-duration: 8s;
}
.t-clips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4cqw;
  margin-top: 2cqw;
}
.t-clip {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: 1.6cqw;
  overflow: hidden;
  border: 2px solid #2a2b2d;
}
.t-clip .h-photo {
  position: absolute;
  inset: 0;
}
.t-clip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0000 45%, #000c);
}
.t-clip b {
  position: absolute;
  left: 0.6em;
  top: 0.6em;
  z-index: 1;
  padding: 0.05em 0.55em;
  border-radius: 999px;
  background: #101011cc;
  font-size: 0.8em;
}
.t-clip small {
  position: absolute;
  left: 0.7em;
  right: 0.7em;
  bottom: 0.6em;
  z-index: 1;
  display: grid;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.t-clip em {
  font-style: normal;
  font-weight: 500;
  color: #ffffffaa;
}
.t-clip-2 {
  animation: t-swap-r 8s var(--ease) infinite;
  border-color: var(--accent);
}
.t-clip-3 {
  animation: t-swap-l 8s var(--ease) infinite;
}
.t-total {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4cqw;
  margin-top: 2cqw;
  font-size: 0.92em;
  color: var(--muted);
}
.t-total i {
  display: block;
  height: 0.6em;
  border-radius: 9px;
  background: #2a2b2d;
  overflow: hidden;
}
.t-total i i {
  width: 69%;
  height: 100%;
  background: linear-gradient(90deg, #94ae65, var(--accent));
  transform-origin: left;
  animation: t-bar 8s var(--ease) infinite;
}
.t-total b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.t-strip {
  position: absolute;
  right: 0;
  bottom: 4%;
  z-index: 3;
  display: flex;
  gap: 1.6cqw;
  width: 62%;
  height: 17cqw;
  padding: 1.4cqw;
  border-radius: 2.6cqw;
  border: 1px solid var(--line);
  background: #18191ae6;
  box-shadow: 0 15px 30px #000a;
  animation: h-join 5s var(--ease) infinite;
}
.t-strip span {
  position: relative;
  flex: 1;
  border-radius: 1.2cqw;
  overflow: hidden;
  border: 2px solid #2a2b2d;
  animation: h-reel-item 5s var(--ease) infinite;
}
.t-strip .h-photo {
  position: absolute;
  inset: 0;
}
.t-strip b {
  position: absolute;
  left: 50%;
  bottom: -1.2em;
  transform: translateX(-50%);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  background: var(--accent);
  color: #172011;
  font-size: 0.85em;
  white-space: nowrap;
}

/* Translate */
.t-v-translate .t-phone-xl .h-photo {
  animation: h-zoom 18s ease-in-out infinite alternate;
}
.t-tlines {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 16%;
  z-index: 2;
  height: 4.4em;
  overflow: hidden;
  border-radius: 0.8em;
  background: #000a;
}
.t-tlines span {
  display: grid;
  place-items: center;
  align-content: center;
  height: 4.4em;
  padding: 0 0.8em;
  text-align: center;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  animation: t-lines 12s steps(6) infinite;
}
.t-tlines span b {
  font-size: 0.7em;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.t-tr {
  top: 6%;
}
.t-codes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5em;
}
.t-codes b {
  padding: 0.3em 0;
  border-radius: 0.5em;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--muted);
}
.t-codes .t-k {
  animation: t-tick 12s infinite;
  animation-delay: calc(var(--k) * 2s);
}
.t-keep span {
  border-style: dashed;
  color: var(--text);
}
.t-flag {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 1.6cqw;
  padding: 0.6em 0.8em;
  border-radius: 0.8em;
  background: #f2bb5a14;
  border: 1px solid #f2bb5a44;
  font-size: 0.9em;
  color: #e9d4ad;
}
.t-flag b {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: #f2bb5a;
  color: #2a1e05;
  font-size: 0.85em;
}
.t-files {
  display: flex;
  gap: 0.6em;
  margin-top: 1.6cqw;
}
.t-files span {
  padding: 0.4em 0.9em;
  border-radius: 0.6em;
  background: #d2f88b1f;
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 600;
  animation: h-pop 6s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.4s);
}

/* Scheduler */
.t-sch {
  left: 0;
  top: 0;
  width: 86%;
}
.t-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.8cqw;
}
.t-week > div {
  display: grid;
  align-content: start;
  gap: 0.4em;
  min-height: 30cqw;
  padding: 0.7em 0.5em;
  border-radius: 1.4cqw;
  background: #131414;
}
.t-week small {
  font-size: 0.72em;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.t-week strong {
  font-size: 1.3em;
  font-weight: 650;
}
.t-week span {
  display: grid;
  margin-top: 0.4em;
  padding: 0.4em;
  border-radius: 0.6em;
  background: #d2f88b1f;
  font-size: 0.78em;
  color: var(--muted);
  animation: h-pop 8s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.6s);
}
.t-week span b {
  color: var(--accent);
  font-weight: 650;
}
.t-accts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 1.6cqw;
}
.t-accts span {
  display: inline-flex;
  gap: 0.6em;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85em;
}
.t-accts b {
  font-weight: 550;
  color: #56c596;
}
.t-accts b.warn {
  color: #f2bb5a;
}
.t-post {
  right: 0;
  bottom: 2%;
  width: 52%;
  display: grid;
  gap: 1.4cqw;
}
.t-post-head {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
}
.t-post-head > span:last-child {
  display: grid;
}
.t-post-head small {
  font-size: 0.82em;
  color: var(--muted);
}
.t-post-media {
  position: relative;
  flex: none;
  width: 9cqw;
  aspect-ratio: 9 / 16;
  border-radius: 1cqw;
  overflow: hidden;
}
.t-post-media .h-photo {
  position: absolute;
  inset: 0;
}
.t-opts {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9em;
}
.t-opts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45em 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.t-opts li span {
  color: var(--text);
}
.t-tog {
  position: relative;
  width: 2.4em;
  height: 1.3em;
  border-radius: 999px;
  background: #3a3b3d;
}
.t-tog::after {
  content: '';
  position: absolute;
  top: 0.2em;
  left: 0.2em;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: var(--text);
}
.t-tog.on {
  background: var(--accent);
}
.t-tog.on::after {
  left: auto;
  right: 0.2em;
  background: #172011;
}
.t-post .t-status {
  justify-self: start;
}

/* At a glance */
.t-glance {
  margin-top: 20px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
}
.t-glance dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
}
.t-glance dl > div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.t-glance dl > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.t-glance dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8d8f89;
}
.t-glance dd {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.t-glance .h-proof {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Controls */
.t-controls {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.t-controls-copy {
  position: sticky;
  top: 120px;
}
.t-controls-copy h2 {
  margin-top: 20px;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.055em;
}
.t-controls-copy > p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 16.5px;
}
.t-points {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: #cfd0c9;
}
.t-points li {
  display: flex;
  gap: 10px;
}
.t-points li::before {
  content: '✓';
  color: var(--accent);
}
.t-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.t-control {
  position: relative;
  padding: 24px;
  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),
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.t-control::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(300px circle at 0% 0%, #d2f88b12, #0000 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.t-control:hover {
  translate: 0 -4px;
  border-color: #4a4c4f;
  box-shadow: var(--edge), var(--shadow-raised);
}
.t-control:hover::after {
  opacity: 1;
}
.t-idx {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.t-control h3 {
  margin-top: 14px;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.t-control p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
}

/* Steps */
.t-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #d2f88b33);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.3s;
}
.h-js .t-steps:not(.in)::before {
  transform: scaleX(0);
}
.t-steps li {
  position: relative;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(0.2s + var(--i) * 0.18s);
}
.h-js .t-steps:not(.in) li {
  opacity: 0;
  transform: translateY(20px);
}
.t-step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #d2f88b66;
  background: #151813;
  font-size: 19px;
  font-weight: 650;
  color: var(--accent);
}
.t-steps h3 {
  margin-top: 24px;
  font-size: 23px;
}
.t-steps p {
  margin-top: 10px;
  font-size: 15px;
}

/* Who */
.t-people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.t-person-media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.t-person-media .h-photo {
  transition: transform 1.2s var(--ease);
}
.t-person:hover .t-person-media .h-photo {
  transform: scale(1.06);
}
.t-person-media .h-karaoke {
  font-size: 22px;
  bottom: 9%;
}
.t-person-media .h-karaoke.style-2 { font-size: 24px; }
.t-person-media .h-karaoke.style-3 { font-size: 19px; }
.t-person h3 {
  margin-top: 20px;
  font-size: 22px;
}
.t-person p {
  margin-top: 8px;
  font-size: 15px;
}

/* Limits (h-control panel) */
.t-limits li {
  grid-template-columns: 32px 1fr;
}
.t-limits li::before {
  content: 'i';
  font-family: Georgia, serif;
  font-style: italic;
}
.t-limits li span {
  grid-row: span 2;
  align-self: center;
  color: #cfd0c9;
  font-size: 15px;
}

/* Related */
.t-rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.t-rel {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
  transition:
    border-color 0.3s,
    translate 0.45s var(--ease-out),
    opacity 0.8s var(--ease),
    transform 0.5s var(--ease);
}
.t-rel:hover {
  translate: 0 -4px;
  border-color: #4a4c4f;
  box-shadow: var(--edge), var(--shadow-raised);
}
.t-rel-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
}
.t-rel-media .h-photo {
  transition: transform 1.2s var(--ease);
}
.t-rel:hover .t-rel-media .h-photo {
  transform: scale(1.07);
}
.t-rel-media .h-plan {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #101011cc;
}
.t-rel-media .h-plan.plus {
  background: #101011cc;
}
.t-rel h3 {
  margin: 22px 10px 0;
  font-size: 24px;
}
.t-rel p {
  margin: 8px 10px 0;
  font-size: 14.5px;
}
.t-rel .text-link {
  margin: auto 10px 0;
  padding-top: 18px;
}

/* Keyframes */
@keyframes t-show {
  0%, 2% { opacity: 0; }
  5%, 31% { opacity: 1; }
  34%, 100% { opacity: 0; }
}
@keyframes t-on {
  0%, 1% { background: #0000; color: var(--muted); border-color: var(--line); }
  4%, 30% { background: #d2f88b; color: #172011; border-color: #d2f88b; }
  33%, 100% { background: #0000; color: var(--muted); border-color: var(--line); }
}
@keyframes t-tick {
  0%, 15.5% { background: #d2f88b; color: #172011; border-color: #d2f88b; }
  16.6%, 100% { background: #0000; color: var(--muted); border-color: var(--line); }
}
@keyframes t-slot {
  0% { opacity: 0; transform: translateX(-14px); }
  8%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes t-bar {
  0%, 4% { transform: scaleX(0); }
  20%, 100% { transform: none; }
}
@keyframes t-word-pop {
  0% { transform: scale(0.6); opacity: 0.2; }
  12% { transform: scale(1.15); opacity: 1; color: var(--accent); }
  30%, 100% { transform: none; opacity: 1; color: #fff; }
}
@keyframes t-ring {
  0%, 1% { box-shadow: 0 0 0 0.2em #18191a, 0 0 0 0.3em #0000; }
  4%, 15% { box-shadow: 0 0 0 0.2em #18191a, 0 0 0 0.35em var(--c); }
  17%, 100% { box-shadow: 0 0 0 0.2em #18191a, 0 0 0 0.3em #0000; }
}
@keyframes t-crop {
  0%, 30% { left: 12%; right: 62%; }
  36%, 63% { left: 62%; right: 12%; }
  69%, 96% { left: 2%; right: 2%; border-color: #f2bb5a; }
  100% { left: 12%; right: 62%; }
}
@keyframes t-dash {
  to { border-color: #d2f88b44; }
}
@keyframes t-pick {
  0%, 2% { outline-color: #0000; filter: brightness(0.7); }
  5%, 23% { outline-color: var(--accent); filter: none; }
  26%, 100% { outline-color: #0000; filter: brightness(0.7); }
}
@keyframes t-game {
  0%, 30% { top: 50%; height: 50%; }
  36%, 63% { top: 0; height: 100%; }
  69%, 96% { top: 33%; height: 34%; }
  100% { top: 50%; height: 50%; }
}
@keyframes t-camlay {
  0%, 30% { top: 0; left: 0; width: 100%; height: 50%; border-radius: 0; }
  36%, 63% { top: 66%; left: 55%; width: 40%; height: 22%; border-radius: 1.4cqw; }
  69%, 96% { top: 7%; left: 28%; width: 44%; height: 22%; border-radius: 1.4cqw; }
  100% { top: 0; left: 0; width: 100%; height: 50%; border-radius: 0; }
}
@keyframes t-key {
  0%, 70%, 100% { transform: none; border-bottom-width: 0.3em; }
  76% { transform: translateY(0.2em); border-bottom-width: 0.1em; }
}
@keyframes t-gap {
  0%, 30% { width: 11cqw; opacity: 1; }
  36%, 63% { width: 5cqw; opacity: 0.7; }
  69%, 96% { width: 1cqw; opacity: 0.35; }
  100% { width: 11cqw; opacity: 1; }
}
@keyframes t-gap-long {
  0%, 30% { width: 11cqw; opacity: 0.7; }
  36%, 63% { width: 3cqw; opacity: 0.5; }
  69%, 96% { width: 1cqw; opacity: 0.35; }
  100% { width: 11cqw; opacity: 0.7; }
}
@keyframes t-slide {
  0%, 30% { left: 30%; }
  36%, 63% { left: var(--v); }
  69%, 96% { left: 6%; }
  100% { left: 30%; }
}
@keyframes t-slide-fill {
  0%, 30% { width: 30%; }
  36%, 63% { width: var(--v); }
  69%, 96% { width: 6%; }
  100% { width: 30%; }
}
@keyframes t-swap-r {
  0%, 25% { transform: none; }
  40%, 85% { transform: translateX(calc(100% + 1.4cqw)); }
  100% { transform: none; }
}
@keyframes t-swap-l {
  0%, 25% { transform: none; }
  40%, 85% { transform: translateX(calc(-100% - 1.4cqw)); }
  100% { transform: none; }
}
@keyframes t-lines {
  to { transform: translateY(-600%); }
}

@media (max-width: 1100px) {
  .t-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .t-stage {
    width: 100%;
    max-width: 680px;
  }
  .t-glance dl {
    grid-template-columns: 1fr 1fr;
  }
  .t-glance dl > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .t-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .t-controls-copy {
    position: static;
  }
  .t-steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .t-steps::before {
    display: none;
  }
}
@media (max-width: 640px) {
  .t-hero {
    padding-top: 28px;
  }
  .t-hero h1 {
    font-size: 40px;
  }
  .t-stage .h-karaoke {
    font-size: 1em;
  }
  /* Small stages keep the main motion and drop secondary details. */
  .t-styles span:nth-child(n + 7),
  .t-v-captions .t-plabel:nth-of-type(4),
  .t-fmt,
  .t-v-translate .t-plabel:nth-of-type(2),
  .t-keep,
  .t-frames,
  .t-sliders,
  .t-opts li:nth-child(n + 3),
  .t-ed-wave,
  .t-keys {
    display: none;
  }
  .t-pz {
    width: 74%;
  }
  .t-glance {
    padding: 22px;
  }
  .t-glance dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .t-glance dl > div {
    padding-left: 0;
    border-left: 0;
  }
  .t-glance dd {
    font-size: 16px;
  }
  .t-grid,
  .t-steps,
  .t-people,
  .t-rel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .t-steps {
    row-gap: 30px;
  }
  .t-control {
    padding: 20px;
  }
  .t-person-media {
    aspect-ratio: 4 / 3.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .t-steps li,
  .t-steps::before {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Summarizer */
.t-sumw {
  left: 0;
  top: 0;
  width: 78%;
}
.t-sumw .h-sum {
  margin-top: 1.6cqw;
  padding: 1.6cqw;
  font-size: 0.95em;
}
.t-sumw .h-modes span {
  animation-duration: 8s;
}
.t-sumlines {
  left: 3%;
  bottom: 1%;
  width: 60%;
  padding: 1.4cqw;
}
.t-sumlines .h-sum-lines {
  gap: 0.9cqw;
  font-size: 0.9em;
}
.t-sumlines .h-sum-lines li {
  animation: t-slot 9s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
@media (max-width: 640px) {
  .t-sumlines li:nth-child(n + 4) {
    display: none;
  }
}
