/* Applications. Brand tokens and navigation remain shared with the main site. */
html:has(.page-solutions) { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 148px; }
.page-solutions { --cyan: #4fe2ff; }
.page-solutions main { padding-bottom: 0; }
.page-solutions .applications-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px; min-height: calc(100svh - 96px); margin: 0; padding: clamp(24px, 7svh, 64px) 0 clamp(32px, 9svh, 80px); }   /* first scene fills the window: 100svh minus the 96px header space */
.page-solutions h1 span { display: inline-block; }   /* lines break only between phrases */
.page-solutions .app-hero-description { max-width: 40ch; margin-top: 32px; color: var(--mid); font-size: 18px; line-height: 1.5; letter-spacing: -.01em; }   /* body */
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.app-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 15px; font-weight: 500; }
.app-button:hover { background: #252b2a; text-decoration: none; }
.app-text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.app-cast { min-width: 0; }
.app-cast-stage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; padding-top: 20px; isolation: isolate; }
.app-actor { justify-self: center; width: 100%; max-width: 24svh; min-width: 0; margin: 0; }   /* phone height stays at about half the window height, so the scene fits one window */
.app-actor:first-child { margin-top: 4.5svh; }
.app-actor:last-child { margin-top: 8svh; }
/* iPhone 18 Pro, as on the home demo phone: body 71.9×150 mm, screen 1206×2622, equal bezel = 3.74% of the body width,
   body corners 16.4% / 7.87%, screen corners 13.7% / 6.3%, Dynamic Island 125×37pt 11pt from the top, home bar 139×5pt 8pt from the bottom (402×874pt screen).
   Island and bar sizes below are the same numbers as a share of the body box. */
.app-actor-screen { position: relative; aspect-ratio: 71.9 / 150; padding: 3.74%; border-radius: 16.4% / 7.87%; background: var(--ink); box-shadow: 0 24px 36px -28px rgb(18 23 22 / .65); }
.app-actor-screen::after { content: ""; position: absolute; top: 3.01%; left: 50%; width: 28.77%; height: 4.08%; border-radius: 999px; transform: translateX(-50%); background: #000; pointer-events: none; }
.app-actor-screen::before { content: ""; position: absolute; z-index: 1; bottom: 2.68%; left: 50%; width: 32.01%; height: .55%; border-radius: 999px; transform: translateX(-50%); background: rgb(0 0 0 / .55); pointer-events: none; }
.app-actor video { display: block; width: 100%; height: 100%; border-radius: 13.7% / 6.3%; object-fit: contain; }
.page-solutions .app-actor figcaption { display: grid; gap: 2px; margin-top: 16px; text-align: center; color: var(--ink); font-size: 15px; }
.app-actor figcaption strong { font-weight: 500; }
.app-actor figcaption span { color: var(--mid); font-size: 13px; line-height: 1.5; }
.app-actor-picker { display: none; }
.page-solutions .app-recording-note { margin-top: 8px; text-align: center; color: var(--mid); font-size: 13px; }
.app-play, .app-sound { display: grid; place-items: center; position: absolute; z-index: 3; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgb(247 250 249 / .94); color: var(--ink); cursor: pointer; }
.app-play { right: 12px; bottom: 10%; }   /* sound | pause in a row at the lower right, just above the recordings' own caption line (the lowest 8% of the screen) */
.app-sound { right: 60px; bottom: 10%; }
.app-play svg, .app-sound svg { width: 20px; height: 20px; }
.app-play .pause-symbol, .app-sound .sound-symbol { display: none; }
.app-play[data-playing] .play-symbol, .app-sound[aria-pressed="true"] .muted-symbol { display: none; }
.app-play[data-playing] .pause-symbol, .app-sound[aria-pressed="true"] .sound-symbol { display: block; }
.page-solutions .app-play:focus-visible, .page-solutions .app-sound:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.applications-intro { margin-top: 80px; padding-top: 64px; }
.applications-intro h2 { max-width: 24ch; font-size: clamp(32px, 3.4vw, 52px); font-weight: 500; line-height: 1.25; letter-spacing: -.045em; text-wrap: balance; }
.applications-intro p { margin-top: 20px; color: var(--mid); font-size: 18px; }
.applications-index { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; position: sticky; top: 80px; z-index: 10; margin: 32px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) 0; background: var(--bg); }   /* window-wide surface; no room under the current item's bar */
.applications-index::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 80px; background: inherit; }   /* the same surface up to the top of the window (behind the menu bar) while the row is stuck */
.applications-intro { position: relative; z-index: 11; }   /* in front of that surface until it has scrolled away */
.applications-index a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; border-bottom: 2px solid transparent; color: var(--mid); font-size: 16px; text-decoration: none; }
.applications-index a:hover, .applications-index a[aria-current="location"] { color: var(--ink); border-bottom-color: var(--ink); }
.page-solutions .app-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; min-height: calc(100svh - 148px); margin-top: 0; padding: clamp(56px, 8svh, 96px) 0; scroll-snap-align: start; scroll-snap-stop: always; }
.app-story-copy { min-width: 0; }
.page-solutions .app-category { margin: 0 0 20px; color: var(--mid); font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.page-solutions .app-story .app-story-headline { margin: 0; font-size: clamp(30px, 3.1vw, 46px); font-weight: 500; line-height: 1.3; letter-spacing: -.045em; text-wrap: initial; }
.page-solutions .app-story-description { max-width: 38ch; margin-top: 24px; font-size: 18px; line-height: 1.8; color: var(--mid); }
.page-solutions .app-use-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.page-solutions .app-use-examples li { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--mid); font-size: 13px; line-height: 1.5; }
.app-story-vtuber .app-story-copy, .app-story-game .app-story-copy, .app-story-education .app-story-copy { grid-column: 2; grid-row: 1; }
.app-story-vtuber .app-scene, .app-story-game .app-scene, .app-story-education .app-scene { grid-column: 1; grid-row: 1; }
.app-scene { position: relative; min-width: 0; margin: 0; }
.app-scene-art { position: relative; height: min(clamp(380px, 37vw, 540px), calc(100svh - 320px)); overflow: hidden; isolation: isolate; border-radius: 4px; background: var(--bg); }   /* page grey, no coloured shapes; the device drawings come from applications.css */
.app-scene .application-avatar video { opacity: 1; }   /* this page shows the poster inside the video element */
.app-scene-game .application-avatar { inset: 0; }   /* a phone recording with its own background: fills the screen as it is */
.app-scene-game .application-avatar video { transform: none; }
.app-scene-vtuber .application-avatar video, .app-scene-education .application-avatar video { object-position: 50% 12%; }
.app-scene video { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-solutions .app-platforms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; margin-top: 0; padding-block: 112px; }
.app-platforms h2 { max-width: 17ch; font-size: clamp(32px, 3.4vw, 52px); font-weight: 500; line-height: 1.25; letter-spacing: -.045em; }
.app-platforms p { max-width: 42ch; margin-top: 24px; color: var(--mid); font-size: 18px; }
.app-platforms .app-text-link { margin-top: 20px; }
.page-solutions .app-platforms ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.page-solutions .app-platforms li { display: grid; gap: 16px; margin: 0; padding-top: 0; font-size: 18px; }
.app-platforms svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1024px) and (max-width: 1250px) {
  .app-cast-stage { gap: 10px; }
  .app-actor figcaption span { font-size: 12px; }
  .page-solutions .applications-hero { gap: 32px; }
}
@media (max-width: 1023px) {
  html:has(.page-solutions) { scroll-padding-top: 96px; }
  .page-solutions .applications-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: calc(100svh - 80px); padding-block: 48px 64px; }
  .applications-hero-copy { max-width: 600px; }
  .app-cast { width: 100%; }
  .app-cast-stage { display: block; min-height: 0; max-width: 400px; margin: 0 auto; padding: 0 48px; }
  .app-actor { max-width: 280px; margin: 0 auto !important; }
  .app-actor:not([data-active]) { display: none; }
  .app-actor figcaption { display: none !important; }
  .app-actor-picker { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
  .app-actor-picker button { min-height: 44px; min-width: 80px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--mid); font: inherit; font-size: 15px; cursor: pointer; }
  .app-actor-picker button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
  .page-solutions .app-recording-note { margin-top: 16px; }
  .applications-index { position: relative; top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin-inline: 0; padding: 12px 0; }
  .applications-index::before { display: none; }
  .applications-index a { justify-content: center; font-size: 15px; text-align: center; }
  .page-solutions .app-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; padding-block: 72px; min-height: calc(100svh - 96px); }
  .page-solutions .app-story .app-story-headline { font-size: 32px; }
  .page-solutions .app-story-description { font-size: 16px; }
  .app-scene-art { height: 400px; }
  .page-solutions .app-platforms { gap: 40px; }
}
@media (max-width: 640px) {
  .page-solutions .applications-hero { gap: 24px; padding-top: 32px; }
  .applications-hero-copy { display: contents; }
  .page-solutions .eyebrow { grid-row: 1; margin-bottom: 0; }
  .page-solutions h1 { grid-row: 2; }
  .page-solutions .app-hero-description { grid-row: 3; margin-top: 0; font-size: 16px; }
  .applications-hero .app-cast { grid-row: 4; }
  .applications-hero .app-actions { grid-row: 5; margin-top: 8px; }
  .app-cast-stage { max-width: 340px; padding-inline: 34px; }
  .app-actor { width: 100%; max-width: 272px; }
  .app-play, .app-sound { width: 44px; height: 44px; }
  .app-sound { right: 64px; }
  .applications-intro { margin-top: 32px; padding-top: 48px; }
  .applications-intro h2 { font-size: 32px; }
  .applications-intro p { font-size: 16px; }
  .applications-index { margin-top: 24px; gap: 4px 12px; }
  .applications-index a { font-size: 15px; }
  .page-solutions .app-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 56px; }
  .app-story-copy { display: contents; }
  .page-solutions .app-category { grid-column: 1; grid-row: 1; margin: 0; font-size: 15px; }
  .page-solutions .app-story .app-story-headline { grid-column: 1; grid-row: 2; font-size: clamp(28px, 7.3vw, 36px); }
  .app-story .app-scene { grid-column: 1; grid-row: 3; margin-top: 8px; }
  .page-solutions .app-story-description { grid-column: 1; grid-row: 4; margin-top: 4px; }
  .page-solutions .app-use-examples { grid-column: 1; grid-row: 5; margin-top: 0; }
  .app-scene-art { height: 400px; }
  .page-solutions .app-platforms { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 64px; }
  .app-platforms h2 { font-size: 32px; }
  .app-platforms p { font-size: 16px; }
  .page-solutions .app-platforms ul { gap: 24px 16px; }
  .page-solutions .app-platforms li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.page-solutions) { scroll-behavior: auto; scroll-snap-type: none; }
}

.page-solutions .app-faq { padding: 48px 0 96px; }
.page-solutions .app-faq h2 { margin-bottom: 28px; font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }
.page-solutions .app-faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.page-solutions .app-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.page-solutions .app-faq summary { cursor: pointer; font-size: 18px; font-weight: 500; line-height: 1.5; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-solutions .app-faq summary::-webkit-details-marker { display: none; }
.page-solutions .app-faq summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--mid); flex: none; }
.page-solutions .app-faq details[open] summary::after { content: "−"; }
.page-solutions .app-faq details p { margin-top: 14px; max-width: 68ch; color: var(--mid); font-size: 16px; line-height: 1.7; }
