/* Editorial caption showcase. Speech languages are not translation targets. */
.subtitle-language-section[hidden] { display: none !important; }
.subtitle-language-section { scroll-margin-top: 28px; }
.subtitle-pro-tag { color: #e8b489; font: 9px/1.5 var(--mono); letter-spacing: .1em; }
.subtitle-language-layout { display: grid; gap: 28px; }
.subtitle-language-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 40px; }
.subtitle-language-copy h2 { margin: 0; font-size: clamp(38px, 4.1vw, 64px); line-height: 1.04; letter-spacing: -.055em; color: #f7ebdc; }
.subtitle-language-copy h2 em { font-style: normal; color: #ffa467; }
.subtitle-language-intro { display: flex; align-items: center; gap: 30px; padding-bottom: 4px; }
.subtitle-language-lead { margin: 0; max-width: 385px; font-size: 14px; line-height: 1.8; color: #baa997; }
.subtitle-language-count { display: grid; flex-shrink: 0; gap: 6px; padding-left: 25px; border-left: 1px solid #70503666; font: 9px/1.6 var(--mono); color: #b69b82; }
.subtitle-language-count b { font: 400 48px/1 var(--mono); letter-spacing: -.07em; color: #f3c39d; }
.subtitle-language-demo { min-width: 0; position: relative; border-block: 1px solid #80604477; background: #090806a6; }
.subtitle-language-demo-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 17px 28px; color: #a98f78; font: 9px/1.6 var(--mono); letter-spacing: .08em; }
.subtitle-language-demo-head > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.subtitle-language-demo-head i { width: 5px; height: 5px; background: #ff9d54; box-shadow: 0 0 12px #ff913e60; }
.subtitle-language-example-note { font: 10px/1.6 var(--sans); letter-spacing: 0; color: #a6937f; }
.subtitle-language-stage { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 390px; padding: 76px 9% 112px; overflow: hidden; background: radial-gradient(ellipse at 50% 74%, #bd652221, transparent 66%), linear-gradient(100deg, #17110955, transparent 36%, transparent 64%, #17110955); }
.subtitle-language-stage::before { content: ''; position: absolute; z-index: -1; left: 15%; right: 15%; bottom: -85px; height: 150px; background: #f38a3533; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.subtitle-language-stage::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, transparent calc(50% - .5px), #cca17808 50%, transparent calc(50% + .5px)); pointer-events: none; }
.subtitle-language-stage-meta { position: absolute; top: 12px; left: 28px; right: 28px; display: flex; justify-content: space-between; color: #90765d; font: 9px/1.5 var(--mono); letter-spacing: .1em; }
.subtitle-language-stage-meta i { margin-inline: 6px; font-style: normal; color: #d69661; }
.subtitle-language-stage-meta b { color: #e4c09e; font-weight: 400; }
.subtitle-stage-mark { position: absolute; top: 43%; color: #a7754355; font: 200 clamp(34px, 4vw, 62px)/1 var(--mono); }
.subtitle-stage-mark--left { left: 4%; }
.subtitle-stage-mark--right { right: 4%; }
.subtitle-example-text { position: relative; width: 100%; max-width: 1120px; text-align: center; font-size: clamp(38px, 4.8vw, 76px); font-weight: 760; letter-spacing: -.045em; line-height: 1.16; color: #fcf2e7; text-shadow: 0 0 26px #fff0de0d, 0 4px 18px #0008; }
.subtitle-example-text p { display: flex; flex-wrap: wrap; justify-content: center; gap: .02em .23em; margin: 0; }
.subtitle-example-text p + p { margin-top: .14em; }
.subtitle-example-text span { position: relative; max-width: 100%; overflow-wrap: anywhere; }
.subtitle-example-accent { color: #ffad70; text-shadow: 0 0 36px #ff913e25, 0 4px 18px #0008; }
.subtitle-example-accent span:last-of-type::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.08em; height: 2px; background: linear-gradient(90deg, #ffae72, #ffae7222); }
.subtitle-example-text.is-changing span { animation: subtitle-word-reveal .55s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--word-delay, 0ms); }
.subtitle-language-timeline { position: absolute; left: 8%; right: 8%; bottom: 66px; display: flex; align-items: center; gap: 22px; color: #997b5e; font: 8px/1.6 var(--mono); letter-spacing: .07em; }
.subtitle-language-wave { position: relative; display: flex; flex: 1; min-width: 0; height: 26px; justify-content: space-between; align-items: center; gap: 4px; }
.subtitle-language-wave i { flex: 1; max-width: 3px; height: var(--bar-height); background: #d7976280; }
.subtitle-language-wave i:nth-child(n+24) { background: #6f503c66; }
.subtitle-language-wave b { position: absolute; left: 56%; top: -7px; bottom: -7px; width: 1px; background: #ffbb86; box-shadow: 0 0 10px #ff913e77; }
.subtitle-language-stage.is-playing .subtitle-language-wave b { animation: subtitle-playhead .95s cubic-bezier(.2, .7, .3, 1) both; }
.subtitle-example-replay { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; min-height: 36px; border: 0; background: transparent; color: #bfa288; font: 10px/1.5 var(--mono); cursor: pointer; white-space: nowrap; }
.subtitle-example-replay[hidden] { display: none; }
.subtitle-example-replay > span { font: 20px/1 var(--sans); color: #f0bb8f; }
.subtitle-example-replay:hover { color: #ffcfaa; }
.subtitle-language-picker { display: flex; align-items: center; gap: 26px; padding: 20px 28px; border-top: 1px solid #80604433; }
.subtitle-language-picker-head { flex: 0 0 220px; }
.subtitle-language-picker-head h3 { margin: 0 0 6px; color: #debea2; font-size: 12px; font-weight: 500; }
.subtitle-language-picker-head > span { color: #95806c; font: 9px/1.6 var(--mono); }
.subtitle-language-picker-head i { color: #d7a474; font-style: normal; }
.subtitle-language-options { display: flex; flex: 1; justify-content: flex-end; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.subtitle-language-options li { min-width: 0; }
.subtitle-language-options button { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 13px; color: #b8a18a; background: transparent; border: 1px solid transparent; border-radius: 3px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.subtitle-language-options button > span { color: #e0b18a; font: 10px/1.5 var(--mono); }
.subtitle-language-options button > b { font: 400 11px/1.5 var(--sans); }
.subtitle-language-options button[aria-pressed="true"] { color: #ffe0c5; background: #e2914817; border-color: #d79b6355; }
.subtitle-language-options button[aria-pressed="true"]::after { content: ''; position: absolute; bottom: 5px; left: 13px; right: 13px; height: 1px; background: #f4b980; }
.subtitle-language-options button:enabled:hover { background: #c28a5012; color: #ffe0c5; }
.subtitle-language-options button:disabled { cursor: default; }
.subtitle-language-bottom { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.subtitle-language-benefits { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 0; padding: 0; }
.subtitle-language-benefits li { display: inline-flex; align-items: center; gap: 8px; color: #bda48b; font-size: 11px; line-height: 1.7; }
.subtitle-language-benefits li > span { color: #daac7f; font: 10px/1.5 var(--mono); }
.subtitle-language-cta { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 25px; min-height: 46px; padding: 11px 17px; border: 1px solid #b9814f80; color: #ffd7b7; background: linear-gradient(110deg, #c8792b15, transparent); font: 10px/1.6 var(--mono); transition: background .2s, border-color .2s; }
.subtitle-language-cta:hover { background: #e291481c; border-color: #e9ad75; }
.subtitle-language-cta:focus-visible, .subtitle-language-options button:focus-visible, .subtitle-example-replay:focus-visible, .subtitle-language-limits summary:focus-visible { outline: 2px solid #ffc18c; outline-offset: 4px; }
.subtitle-language-limits { color: #a18c77; font-size: 11px; line-height: 1.8; }
.subtitle-language-limits summary { display: inline-flex; align-items: center; gap: 15px; cursor: pointer; min-height: 36px; list-style: none; }
.subtitle-language-limits summary::-webkit-details-marker { display: none; }
.subtitle-language-limits summary > span { font: 14px/1 var(--mono); color: #c8a27c; }
.subtitle-language-limits[open] summary > span { transform: rotate(45deg); }
.subtitle-language-limits p { margin: 9px 0 0; max-width: 840px; padding-left: 14px; border-left: 1px solid #85603a55; color: #bda38b; }
@keyframes subtitle-word-reveal { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes subtitle-playhead { from { left: 0; } to { left: 56%; } }
@media (max-width: 1200px) {
  .subtitle-language-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .subtitle-language-count { display: none; }
  .subtitle-language-picker { flex-direction: column; align-items: flex-start; gap: 12px; }
  .subtitle-language-picker-head { flex: auto; display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; }
  .subtitle-language-picker-head h3 { margin: 0; }
  .subtitle-language-options { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .subtitle-language-layout { gap: 22px; }
  .subtitle-language-copy { grid-template-columns: 1fr; gap: 18px; }
  .subtitle-language-copy h2 { font-size: clamp(36px, 6.5vw, 48px); }
  .subtitle-language-lead { max-width: 520px; font-size: 13px; }
  .subtitle-language-demo-head { padding: 14px 18px; }
  .subtitle-language-stage { min-height: 340px; padding: 65px 22px 112px; }
  .subtitle-example-text { font-size: clamp(27px, 5.2vw, 44px); }
  .subtitle-language-stage-meta { left: 18px; right: 18px; top: 7px; }
  .subtitle-stage-mark { display: none; }
  .subtitle-language-timeline { left: 18px; right: 18px; gap: 12px; }
  .subtitle-language-timeline > span { font-size: 7px; }
  .subtitle-language-picker { padding: 18px; }
  .subtitle-language-bottom { align-items: flex-start; flex-direction: column; gap: 20px; }
  .subtitle-language-benefits { gap: 8px 20px; }
  .subtitle-language-cta { min-height: 48px; }
}
@media (max-width: 440px) {
  .subtitle-language-wave { gap: 2px; }
  .subtitle-language-stage { padding-inline: 14px; min-height: 340px; }
  .subtitle-example-text { font-size: 27px; }
  .subtitle-language-demo-head { padding: 14px; font-size: 8px; }
  .subtitle-language-example-note { font-size: 9px; }
  .subtitle-language-picker { padding-inline: 14px; }
  .subtitle-language-options { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .subtitle-language-options button { width: 100%; padding: 9px 3px; gap: 4px; flex-direction: column; }
  .subtitle-language-options button > b { font-size: 10px; }
  .subtitle-language-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .subtitle-example-text.is-changing span, .subtitle-language-stage.is-playing .subtitle-language-wave b { animation: none; }
  .subtitle-language-options button, .subtitle-language-cta { transition: none; }
}

