/* Reuse the showcase's physical card faces; this row stays still for reading. */
.card-directions { padding-bottom: 105px; }
.card-origin { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 8%; padding-block: 25px 100px; }
.card-origin .feature-editorial h2 { font-size: clamp(52px, 5.6vw, 84px); }
.card-origin .feature-editorial > p { max-width: 490px; }
.personalize-button { display: inline-flex; gap: 10px; align-items: center; margin-top: 30px; min-height: 48px; padding: 12px 21px; border: 1px solid #a2c5ef66; border-radius: 999px; background: #a2c5ef0b; color: #dceaff; font: inherit; font-size: 14px; cursor: pointer; }
.personalize-button:hover { background: #a2c5ef1b; }
.personalize-button:focus-visible, .direction-strip:focus-visible { outline: 2px solid #a2c5ef; outline-offset: 5px; }
.card-origin-visual { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.origin-note { width: min(100%, 450px); padding: 25px; border: 1px solid #93bff440; border-radius: 23px; background: linear-gradient(145deg, #234c80, #102643); box-shadow: 8px 16px 0 -8px #0008, 0 28px 45px -22px #000b, inset 0 1px #ffffff24; transform: rotate(3deg); }
.origin-translation { display: flex; justify-content: center; align-items: baseline; gap: 13px; flex-wrap: wrap; margin: 35px 0 28px; color: #ced8e0; font-size: 24px; }
.origin-translation strong { max-width: 100%; overflow-wrap: anywhere; color: #eef2ed; font-size: 58px; font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.origin-translation > span[aria-hidden] { font-size: 20px; opacity: .65; }
.origin-photo-slot { display: grid; place-items: center; aspect-ratio: 1.35; overflow: hidden; border: 1px dashed #b5d0ed44; border-radius: 13px; }
.origin-photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.has-personal-image .origin-photo-slot { border-style: solid; }
.origin-photo-placeholder { display: flex; align-items: center; flex-direction: column; gap: 18px; color: #b4c8e0; font-size: 13px; }
.origin-photo-placeholder svg { width: 45px; height: 45px; fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .65; }
.has-personal-image .origin-photo-placeholder { display: none; }
.origin-note-caption { margin-top: 20px; color: #b8cce5; font-size: 11px; text-align: center; }
.origin-photo-note { color: #8899ad; font-size: 12px; }
.directions-heading { padding-top: 36px; }
.directions-heading h3 { font-size: clamp(45px, 5.7vw, 78px); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.directions-heading > p { margin-top: 24px; color: #a9acb6; font-size: 18px; line-height: 1.65; }
.directions-swipe { display: none; color: #94a9c3; font-size: 12px; margin-top: 25px; }
.direction-strip { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; padding-block: 35px 45px; margin-top: 15px; }
.direction-track { display: flex; width: max-content; }
.direction-example { display: grid; grid-template-columns: 380px minmax(0, 1fr); align-items: center; gap: 80px; padding-inline: max(56px, calc((100vw - 1100px) / 2)); flex: none; width: 100vw; min-width: 0; scroll-snap-align: center; }
.direction-example .language-tile { --rest-angle: 0deg; --rest-y: 0px; --rest-tilt-x: 0deg; --rest-tilt-y: 0deg; width: 100%; height: 490px; min-height: 490px; }

.direction-example .tile-face { padding: 24px; }
.direction-example .tile-meta { gap: 6px; }
.direction-example .tile-meta > span:first-child { font-size: 8px; letter-spacing: .02em; }
.direction-example .tile-kind { padding: 4px 6px; font-size: 8px; }
.direction-example .tile-flip { margin-top: 12px; }
.direction-example .tile-content { gap: 16px; }
.direction-example .tile-content img { min-height: 0; }
.direction-example .tile-content b { font-size: clamp(42px, 4vw, 66px); line-height: 1.15; }
.direction-example .tile-content small { color: var(--tile-muted); font-size: 15px; }
.direction-example .direction-photo { width: 100%; max-height: 300px; object-fit: cover; border-radius: 9px; }
.direction-example .tile-back .direction-photo { max-height: 180px; }
.direction-dog { width: 100%; height: 270px; object-fit: contain; }
.direction-example .tile-back .direction-dog { height: 160px; }
.direction-sentence { font-size: clamp(28px, 3vw, 40px); line-height: 1.45; overflow-wrap: anywhere; }
.direction-example .tile-cloze-blank { width: 1.6em; }
.direction-listen { align-self: center; margin-bottom: 80px; font-size: 29px; }
.direction-audio { position: absolute; top: 53%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 58px; min-height: 58px; padding: 16px; border-radius: 50%; border: 1px solid #ffffff40; background: #ffffff0d; color: inherit; cursor: pointer; }
.direction-audio svg { width: 24px; height: 24px; fill: currentColor; }
.direction-audio:hover, .direction-audio.is-playing { background: #ffffff26; }
.direction-audio:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.direction-copy h4 { color: #e3e7ec; font-size: clamp(36px, 4vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
.direction-copy p { margin-top: 24px; color: #a9acb6; font-size: 21px; line-height: 1.6; }
.direction-copy .direction-training { color: #d6dfeb; }
.direction-copy .direction-route { color: #91abc9; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.directions-close { margin-top: 34px; font-size: 25px; line-height: 1.5; letter-spacing: -.02em; }
.directions-close span { color: #969eaa; font-size: 16px; letter-spacing: 0; }
.article-teaser { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-block: 55px 40px; border-top: 1px solid #ffffff1b; text-decoration: none; }
.article-teaser .feature-eyebrow { margin-bottom: 15px; }
.article-teaser h3 { color: #e7edf4; font-size: clamp(27px, 3vw, 42px); line-height: 1.18; letter-spacing: -.035em; }
.article-teaser p { max-width: 470px; margin-top: 14px; color: #a9acb6; font-size: 15px; line-height: 1.65; }
.article-teaser img { width: 180px; height: 140px; flex: none; transition: transform .3s; }
.article-teaser-link { display: inline-block; margin-top: 18px; color: #b5cff0; font-size: 13px; }
.article-teaser:hover img { transform: rotate(-6deg) scale(1.05); }
.article-teaser:focus-visible { outline: 2px solid #a2c5ef; outline-offset: 5px; }
/* The desktop stage maps normal page scrolling to the native horizontal strip. */
.direction-scroll-hint { color: #94a9c3; font-size: 13px; text-align: center; margin-bottom: 20px; }
.direction-sticky { padding-block: 20px; }
.direction-scroll-stage.is-scroll-guided .direction-sticky { position: sticky; top: 100px; }
.direction-scroll-stage.is-scroll-guided .direction-strip { scroll-snap-type: none; scrollbar-width: none; }
.direction-scroll-stage.is-scroll-guided .direction-sticky { height: min(700px, calc(100svh - 110px)); display: flex; flex-direction: column; justify-content: center; }
.direction-scroll-stage.is-scroll-guided .language-tile { height: min(490px, calc(100svh - 280px)); min-height: min(490px, calc(100svh - 280px)); }
.direction-strip { margin-top: 0; }
@media (max-width: 899px), (max-height: 649px) {
  .direction-track { gap: 32px; padding-inline: max(24px, calc((100vw - 360px) / 2)); }
  .direction-example { display: block; width: min(360px, calc(100vw - 56px)); padding-inline: 0; }
  .direction-example .language-tile { height: 420px; min-height: 420px; }
  .direction-copy h4 { margin-top: 32px; font-size: 32px; }
  .direction-copy p { margin-top: 14px; font-size: 17px; }
  .directions-swipe { display: block; }
  .direction-scroll-hint { display: none; }
}
@media (max-width: 680px) {
  .card-directions { padding-bottom: 65px; }
  .card-origin { grid-template-columns: 1fr; gap: 65px; padding-block: 0 70px; }
  .card-origin .feature-editorial h2 { font-size: clamp(48px, 12.5vw, 65px); }
  .card-origin-visual { gap: 23px; }
  .origin-note { width: min(100%, 350px); padding: 22px; }
  .origin-translation { margin-block: 30px 25px; }
  .directions-heading h3 { font-size: clamp(44px, 12vw, 64px); }
  .directions-heading > p { font-size: 16px; }
  .directions-heading br:not(h3 br) { display: none; }


  .direction-example .language-tile { height: 410px; min-height: 410px; }
  .direction-example .tile-face { padding: 20px; }
  .direction-example .tile-meta > span:first-child, .direction-example .tile-kind { font-size: 10px; }

  .direction-example .direction-photo { max-height: 230px; }

  .directions-close { font-size: 23px; }
  .directions-close span { font-size: 14px; }
  .article-teaser { gap: 14px; padding-block: 35px; }
  .article-teaser img { width: 105px; height: 120px; }
  .article-teaser h3 { font-size: 25px; }
  .article-teaser p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .origin-note { transform: none; } .article-teaser img { transition: none; } .article-teaser:hover img { transform: none; } }

.direction-example .tile-meta > span:first-child, .direction-example .tile-kind { font-size: 10px; }
.direction-example .tile-kind { background: #ffffff08; }

.origin-note { transform: perspective(900px) rotateX(var(--origin-y, 0deg)) rotateY(var(--origin-x, 0deg)) rotate(3deg); transition: transform .25s ease; animation: origin-drift 6s ease-in-out infinite; }
@keyframes origin-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.origin-note .tile-meta { color: #ced8e0; }
.origin-translation strong { font-size: clamp(68px, 7vw, 96px); }
.origin-translation { margin-block: 25px 30px; }
.origin-photo-slot { width: 100%; padding: 0; background: #ffffff06; color: inherit; font: inherit; cursor: pointer; }
.origin-photo-slot:hover, .origin-photo-slot.is-drag-over { background: #ffffff0f; border-color: #b8d2ff; }
.origin-photo-slot:focus-visible { outline: 2px solid #b8d2ff; outline-offset: 5px; }
.card-origin-visual { position: relative; padding-top: 175px; }
.origin-annotation { position: absolute; top: 0; left: 20%; color: #cfe2fc; font: italic 32px/1.2 Georgia, serif; transform: rotate(-8deg); }
.origin-annotation svg { display: block; width: 112px; height: 70px; margin-left: 95px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-origin .feature-editorial .photo-privacy { margin-top: 14px; color: #9caabe; font-size: 12px; }
.photo-remove { margin-left: 8px; padding-inline: 15px; }
.origin-photo-note { text-align: center; line-height: 1.5; }
.direction-example .tile-meta { color: var(--tile-muted); }
.direction-listen { position: absolute; top: 12%; left: 0; right: 0; margin: 0; font-size: 52px; font-weight: 500; letter-spacing: -.04em; }
.direction-audio { top: 57%; min-width: 70px; min-height: 70px; border-color: var(--tile-line); background: #ffffff26; }
.direction-audio svg { width: 36px; height: 36px; fill: none; }
.direction-audio.is-playing .speaker-wave { transform-box: fill-box; transform-origin: left center; animation: direction-speaker 650ms ease-in-out infinite; }
.direction-audio.is-playing .speaker-wave:last-child { animation-delay: 160ms; }
@keyframes direction-speaker { 0%, 100% { opacity: .2; transform: scale(.92); } 45%, 65% { opacity: 1; transform: scale(1); } }
.voice-model-highlight { color: #bed1ff; background: linear-gradient(95deg, #a8caff, #d6b9f6, #f2c9ad); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 500; }
.feature-sampler-mute { width: 70px; height: 70px; }
.feature-sampler-mute svg { width: 34px; height: 34px; }
.feature-sampler-language { font-size: 18px; }
.feature-sampler-text { font-size: clamp(64px, 7.5vw, 106px); }
.feature-voice-sampler:not([data-feature-sample-kind='word']) .feature-sampler-text { font-size: clamp(35px, 4.7vw, 65px); }
.voice-comparison { margin-top: 55px; padding-top: 32px; border-top: 1px solid #ffffff20; }
.voice-comparison h3 { font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.voice-comparison p { color: #a9b6ca; line-height: 1.6; }
.voice-comparison-sentence { margin-block: 22px; font-size: clamp(24px, 3vw, 38px); color: #d8e6fa!important; }
.voice-comparison-buttons { display: flex; gap: 18px; }
.voice-comparison-buttons button { flex: 1; padding: 21px; border: 1px solid #aac5f04d; border-radius: 16px; background: #a5c2ff0b; color: #d9e7fc; font: inherit; font-size: 20px; text-align: left; cursor: pointer; }
.voice-comparison-buttons button:last-child { background: linear-gradient(120deg, #86b4ed25, #c9a3df25); }
.voice-comparison-buttons small { display: block; margin-top: 9px; color: #b0bfd4; font-size: 12px; line-height: 1.5; }
.voice-comparison-buttons button:hover, .voice-comparison-buttons button.is-playing { border-color: #aecfff; background-color: #a5c2ff22; }
.voice-comparison-buttons button:focus-visible { outline: 2px solid #aecfff; outline-offset: 4px; }
.voice-comparison-status { min-height: 24px; margin-top: 12px; font-size: 12px; }
@media (max-width: 680px) {
  .origin-annotation { left: 20%; }
  .voice-comparison-buttons { flex-direction: column; }
  .feature-sampler-text { font-size: 76px; }
  .feature-voice-sampler:not([data-feature-sample-kind='word']) .feature-sampler-text { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { .origin-note { animation: none; transform: none; transition: none; } .direction-audio.is-playing .speaker-wave { animation: none; } }
