:root {
  color-scheme: light;
  --portal-ink: #192d47;
  --portal-muted: #52677f;
  --product-surface: #fdfefe;
  --portal-line: #dbe5ef;
  --portal-blue: #275b92;
  --glass-fill: var(--action-glass-fill);
  --glass-edge: rgba(255,255,255,.92);
  --glass-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px #53667529, 0 0 0 1px #52687929, 0 5px 15px -9px #344c6273;
  --portal-gutter: max(5vw, calc((100% - 1400px) / 2));
  --portal-header-height: 70px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--portal-ink); background: var(--site-ground);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html { scroll-padding-top: 86px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #487eae; outline-offset: 3px; }

.portal-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--portal-header-height); padding: 9px var(--portal-gutter); background: var(--site-ground);
  border-bottom: 1px solid #bac5d09c; box-shadow: inset 0 1px #fff, inset 0 -1px #ffffffd6, 0 5px 18px -14px #344b6178;
}
.portal-header .brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.portal-header .brand img { display: block; width: 132px; height: auto; }
.portal-nav { display: flex; align-items: center; justify-content: center; gap: clamp(4px,1.2vw,22px); }
.portal-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 13px; border-radius: 99px; font-size: .94rem; font-weight: 530; line-height: 1.25; }
.portal-nav a { color: #344456; white-space: nowrap; }
.portal-nav .nav-short { display: none; }
.portal-nav [aria-current] { color: #152e48; box-shadow: inset 0 0 0 1px #becbd6; }
.action-link, [data-portal-language], .glass-arrow {
  border: 1px solid var(--glass-edge); background: var(--glass-fill); box-shadow: var(--glass-shadow);
}
.action-link, [data-portal-language] {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 46px; padding: 9px 20px; border-radius: 99px; cursor: pointer;
  color: var(--action-glass-ink); font-size: .92rem; line-height: 1.35; font-weight: 620; text-align: center;
}
[data-portal-language] { min-height: 44px; min-width: 48px; padding: 6px 12px; font-size: .81rem; letter-spacing: .02em; }
.action-link[hidden] { display: none; }
.action-link:active, [data-portal-language]:active, .portal-nav a:active { background: #dfe7ee; box-shadow: inset 0 1px 3px #52647b38; }
@supports (backdrop-filter: blur(1px)) {
  .portal-header { background: rgba(245,248,252,.78); backdrop-filter: blur(20px) saturate(145%); }
  .action-link, [data-portal-language] { backdrop-filter: blur(14px) saturate(140%); }
}
.portal-skip { position: absolute; left: 12px; top: -100px; padding: 12px 18px; z-index: 40; background: white; border-radius: 8px; }
.portal-skip:focus { top: 10px; }
.portal-home main:focus, #products:focus { outline: none; }
.portal-home #products { scroll-margin-top: calc(var(--portal-anchor-header,var(--portal-header-height)) - 86px); }
@media (max-width:600px) { .portal-home #products { scroll-margin-top: -14px; } }

.company-hero {
  --screen-header: var(--portal-header-height);
  position: relative; isolation: isolate; display: grid; grid-template: minmax(0,1fr) auto / minmax(0,1fr);
  height: calc(100vh - var(--screen-header)); height: calc(100dvh - var(--screen-header));
  color: #192d3e; background: var(--site-ground);
}
.film-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-screen {
  grid-area: 1 / 1; position: relative; min-width: 0; min-height: 0; overflow: hidden;
  background: var(--site-ground); pointer-events: none;
}
.hero-screen :is(img,video,canvas) { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-screen :is(img,video) { object-fit: contain; }
.hero-screen :is(video,canvas) { opacity: 0; }
.hero-story.has-stage .hero-screen canvas { opacity: 1; }
.hero-story.has-stage .hero-screen picture { visibility: hidden; }
.hero-story.has-frame video { opacity: 1; }
.film-line p { margin: 0; }
.film-deck {
  display: grid; grid-template: "controls status next" auto / minmax(410px,1.55fr) minmax(0,.98fr) auto;
  align-items: center; column-gap: clamp(22px,2.55vw,55px); min-height: 78px;
  padding: 13px max(var(--portal-gutter),184px) 13px var(--portal-gutter);
  border-top: 1px solid #ffffffdf; box-shadow: 0 -1px 0 #72869627; background: var(--site-ground);
}
.film-line { grid-area: status; min-width: 0; }
.film-chapter { color: #385a71; font-size: .85rem; line-height: 1.35; font-weight: 650; }
.film-line .film-scene { margin-top: 4px; font-size: clamp(15px,1.08vw,19px); line-height: 1.4; text-wrap: pretty; }
.film-line.is-typing .film-scene::after { content: ""; display: inline-block; height: .86em; margin-left: 3px; border-right: 2px solid #477996; vertical-align: -.06em; }
.hero-action { grid-area: next; justify-self: end; gap: 10px; white-space: nowrap; }
.film-controls { grid-area: controls; display: flex; align-items: center; gap: clamp(12px,1.35vw,23px); min-width: 0; }
.film-controls[hidden], .film-step .step-short { display: none; }
.film-chapters { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(7px,1vw,17px); }
.film-step { display: grid; align-content: center; gap: 7px; min-width: 0; min-height: 44px; padding: 3px 0; border: 0; border-radius: 3px; background: transparent; color: #52677a; font-size: .86rem; line-height: 1.2; text-align: start; cursor: pointer; white-space: nowrap; }
.film-step::after { content: ""; height: 2px; background: #b9c8d4; border-radius: 4px; }
.film-step[aria-current] { color: #214c67; font-weight: 650; }
.film-step[aria-current]::after { background: linear-gradient(to right,#426d8a var(--played,0%),#a7bac8 var(--played,0%)); }
.film-step.is-past::after { background: #7191a7; }
.film-toggle {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--glass-edge); background: var(--glass-fill); box-shadow: var(--glass-shadow); color: #344e63;
}
.film-toggle .pause-symbol, .film-toggle.is-playing .play-symbol { display: none; }
.film-toggle.is-playing .pause-symbol { display: inline; }
.film-toggle:active { background: #dfe7ee; box-shadow: inset 0 1px 3px #52647b38; }
.glyph { display: inline-block; position: relative; width: 14px; height: 12px; flex: none; color: currentColor; }
.glyph::before, .glyph::after { content: ""; position: absolute; }
.glyph::before { top: 5px; left: 0; width: 13px; border-top: 1.5px solid; }
.glyph::after { top: 2px; right: 1px; width: 7.5px; height: 7.5px; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); }
.glyph-down { transform: rotate(90deg); }
.outbound { transform: rotate(-45deg); }

.portal-home {
  --section-edge-space: clamp(28px,3.1vw,50px);
  --home-heading: #293b54;
  --home-description: #536b86;
}
.portal-home .research-section { padding-block: var(--section-edge-space); }
.portal-home .about-story { padding-block-start: var(--section-edge-space); }
.offerings { background: var(--site-wash); color: var(--home-heading); }
.offerings-inner { margin-inline: var(--portal-gutter); padding-block: clamp(17px,1.8vw,30px) var(--section-edge-space); }
.offering-group > h2, .card-caption h3, .platform-copy h3, .about-copy h2 { margin: 0; line-height: 1.15; }
.offering-group > h2, .about-copy h2 { font-size: clamp(32px,3.65vw,58px); letter-spacing: -.055em; font-weight: 655; }
.offering-group > h2 { font-size: clamp(30px,3.15vw,50px); margin-bottom: clamp(18px,1.8vw,28px); }
#platform-title { text-wrap: balance; }
.portal-home:lang(zh) .offering-group > h2 { letter-spacing: -.026em; font-weight: 650; }
.portal-home:lang(zh) .solution-card h3 { letter-spacing: -.012em; }
.portal-home .solution-card h3 { line-height: 1.28; }
.offering-group + .offering-group { border-top: 1px solid #c5ced5; margin-top: clamp(32px,3.2vw,52px); padding-top: clamp(26px,2.75vw,44px); }
.product-row, .solution-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(14px,1.45vw,23px); }
.solution-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.product-card, .platform-feature, .research-collaboration {
  min-width: 0; border: 1px solid #ffffffeb; border-radius: clamp(19px,1.75vw,29px); background: var(--product-surface);
  box-shadow: 0 0 0 1px #314a6020, 0 11px 28px -24px #354c646b;
}
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card.pointer-return:focus-visible { outline: none; }
.product-card > img, .solution-stage img { display: block; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-row .product-card { display: grid; grid-template-rows: auto 1fr; }
.product-card > img { width: 106%; max-width: none; height: auto; aspect-ratio: 1.72; justify-self: center; margin-top: clamp(10px,1.1vw,17px); }
.commercial-solution > img { width: 100%; aspect-ratio: 1.72; margin: 0; object-fit: cover; mix-blend-mode: normal; }
.commercial-solution .card-caption { padding-top: clamp(17px,1.8vw,28px); }
.product-row .card-caption { align-items: flex-start; }
.product-row .glass-arrow { align-self: center; }
.card-caption { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 14px; padding: 15px clamp(17px,1.8vw,31px) clamp(18px,1.9vw,31px); }
.card-caption h3 { font-size: clamp(21px,1.67vw,27px); letter-spacing: -.035em; font-weight: 615; overflow-wrap: break-word; }
.card-caption p, .platform-copy p, .about-copy p { line-height: 1.65; }
.card-caption p, .platform-copy p { color: var(--home-description); }
.about-copy p { color: #4e606d; }
.card-caption p { margin: 5px 0 0; font-size: clamp(14px,1.02vw,16px); }
.glass-arrow { flex: none; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; color: #364f62; }
.solution-stage { display: flex; align-items: center; justify-content: center; min-width: 0; height: clamp(155px,14.4vw,238px); margin: 12px 12px 0; }
.solution-stage img { height: 100%; }
.solution-photo { margin: 0; box-sizing: content-box; padding-top: 12px; }
.solution-photo img { width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: normal; scale: 1.07; }
.solution-card h3 { font-size: clamp(20px,1.6vw,26px); }
.platform-feature { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); overflow: hidden; }
.platform-copy, .about-copy { align-self: center; padding: clamp(24px,3.3vw,52px); }
.platform-copy h3 { font-size: clamp(32px,3vw,48px); font-weight: 630; letter-spacing: -.045em; }
.platform-copy p, .about-copy p { max-width: 36em; margin: 15px 0 23px; font-size: clamp(15px,1.1vw,17px); }
.platform-feature > img, .about-layout > img { width: 100%; height: 100%; max-height: 400px; object-fit: cover; display: block; }
.platform-feature > img { align-self: stretch; max-height: none; aspect-ratio: 1.85; object-position: 62% 55%; }
.platform-copy p { max-width: 31em; text-wrap: pretty; }
.platform-copy .action-link { font-size: .9375rem; font-weight: 600; white-space: nowrap; }
@media (min-width:1100px) {
  .solution-card { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); grid-template-areas: "caption image"; min-height: clamp(220px,18vw,280px); }
  .solution-card .card-caption { grid-area: caption; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: clamp(22px,2.1vw,34px); }
  .solution-card h3 { text-wrap: balance; }
  .solution-stage { grid-area: image; align-self: stretch; height: auto; margin: 0; min-width: 0; padding: 14px 0; box-sizing: border-box; }
  .solution-stage img { width: 86%; height: 100%; max-height: calc(clamp(220px,18vw,280px) - 28px); object-fit: contain; }
  .solution-photo { padding-inline: 8px; }
  .solution-photo img { width: 100%; }
}
.story-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.home-section { padding: clamp(42px,5vw,84px) var(--portal-gutter); }
.about-story, .catalog-page { background: var(--site-wash); }
.catalog-page { min-height: 100vh; }
.portal-home .portal-footer { background: var(--site-ground); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 24px; background: var(--site-light); border: 1px solid var(--portal-line); }
.about-layout > img { min-height: 260px; }
.portal-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 16px max(var(--portal-gutter),176px) 16px var(--portal-gutter); color: #576a7a; font-size: .8rem; line-height: 1.5; border-top: 1px solid #d3dce3; }
.footer-toplink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: auto; }

@media (hover:hover) {
  .film-step:hover { color: #163b56; }
  .film-step:hover::after { box-shadow: 0 1px 0 #8099ab; }
  .portal-nav a:hover { background: #e3eaf0; color: #172d41; }
  .action-link:hover, .film-toggle:hover, [data-portal-language]:hover, .product-card:hover .glass-arrow { background: #e4ecf2; color: #183b56; box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px #667f9238, 0 0 0 1px #90a6b880, 0 6px 14px -8px #546a7d73; }
  .product-card:hover { box-shadow: 0 0 0 1px #a3b4c1, 0 13px 28px -20px #40536870; }
  .portal-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) {
  .product-card img, .glass-arrow, .action-link { transition: transform .22s ease; }
  .product-card:hover img { transform: scale(1.025); }
  .product-card:hover .glass-arrow { transform: translateX(2px); }
  .action-link:active { transform: translateY(1px); }
}
@media(max-width:900px) {
  :root { --portal-gutter: 4vw; --portal-header-height: 64px; }
  .portal-header { gap: 10px; }
  .portal-nav { gap: 1px; }
  .portal-nav a { padding-inline: 10px; font-size: .86rem; }
  .product-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .card-caption { gap: 9px; }
}
@media(max-width:830px) {
  .portal-nav .nav-short { display: inline; }
  .portal-nav .nav-full { display: none; }
}
@media(min-width:831px) and (max-width:1050px) {
  html:lang(en) .portal-nav .nav-short { display: inline; }
  html:lang(en) .portal-nav .nav-full { display: none; }
}
@media(max-width:720px) {
  .portal-header { padding-inline: 18px; }
  .portal-nav a { padding-inline: 8px; }
  .platform-copy h3 { font-size: 1.625rem; }
  .portal-header .brand img { width: 110px; }
  .solution-stage { height: 150px; }
  .product-card > img { margin-top: 7px; }
  .card-caption { padding: 12px 14px 18px; }
  .glass-arrow { width: 31px; height: 31px; }
}
@media(max-width:1100px) {
  .film-deck { grid-template: "status next" auto "controls controls" auto / minmax(0,1fr) auto; min-height: 0; gap: 7px 12px; padding: 8px var(--portal-gutter) 8px; }
  .film-controls { min-height: 46px; width: min(730px,calc(100% - 144px)); }
  .film-line .film-scene { min-height: 1.4em; }
  .hero-action { padding: 8px 15px; font-size: .86rem; }
}
@media(max-width:600px) {
  .film-deck { row-gap: 6px; padding-block: 8px max(9px,env(safe-area-inset-bottom)); }
  .film-chapter { font-size: .78rem; }
  .film-line .film-scene { margin-top: 2px; font-size: .89rem; }
  .film-controls { min-height: 44px; width: calc(100% - 54px); gap: 8px; }
  .film-chapters { gap: 6px; }
  .film-step { font-size: .82rem; }
  .film-step .step-full { display: none; }
  .film-step .step-short { display: inline; }
  .hero-action { gap: 7px; min-height: 44px; padding: 7px 12px; font-size: .8rem; }
}
@media(max-width:600px) {
  :root { --portal-gutter: 20px; }
  .portal-home { --portal-header-height: 94px; }
  html { scroll-padding-top: 14px; }
  .portal-header { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0; padding: 5px var(--portal-gutter) 0; }
  .portal-header .brand { width: fit-content; }
  .portal-nav { order: 1; grid-column: 1/-1; margin: 0 -7px; justify-content: space-between; gap: 0; }
  .portal-nav a { min-height: 44px; padding: 6px clamp(3px,1.15vw,7px); font-size: .8rem; }
  [data-portal-language] { min-height: 44px; font-size: .78rem; }
  .offerings-inner { padding-block-start: 16px; }
  .offering-group > h2 { margin-bottom: 16px; }
  .product-row, .solution-row, .platform-feature, .about-layout { grid-template-columns: 1fr; }
  .product-row, .solution-row { gap: 15px; }
  .product-row .product-card { grid-template: auto / 44% minmax(0,1fr); align-items: center; min-height: clamp(110px,29vw,150px); }
  .product-card > img { width: 100%; height: clamp(84px,24vw,126px); aspect-ratio: auto; object-fit: cover; margin: 0; }
  .commercial-solution > img { height: auto; aspect-ratio: 1.72; }
  .solution-stage { height: clamp(155px,40vw,200px); }
  .card-caption { padding: 10px 20px 21px; }
  .product-row .card-caption { align-items: center; gap: 7px; padding: 14px 14px 14px 3px; }
  .product-row .card-caption h3 { font-size: clamp(19px,4.5vw,23px); }
  .product-row .card-caption p { line-height: 1.45; }
  .product-row .glass-arrow { width: 20px; height: 28px; border: 0; box-shadow: none; background: transparent; }
  .glass-arrow { width: 36px; height: 36px; }
  .platform-feature > img, .about-layout > img { min-height: 0; height: auto; max-height: 290px; }
  .platform-feature > img { aspect-ratio: 1.85; order: -1; }
  .platform-copy, .about-copy { padding: 24px 20px; }
  .platform-copy .story-actions { gap: 8px; }
  .platform-copy .action-link, .research-collaboration .action-link { padding-inline: 14px; gap: 8px; }
  .about-copy h2 { font-size: 30px; }
  .portal-footer { padding: 16px var(--portal-gutter) 78px; }
  .footer-toplink { margin-left: 0; }
}
@media (min-width:601px) and (orientation:landscape) and (max-height:550px) {
  .film-deck { min-height: 62px; gap: 12px; grid-template: "status controls next" auto / minmax(0,.9fr) minmax(224px,1.25fr) auto; padding: 5px 142px 5px var(--portal-gutter); }
  .film-controls { min-height: 44px; width: auto; gap: 8px; }
  .film-chapters { gap: 5px; }
  .film-step { font-size: .78rem; }
  .film-step .step-full { display: none; }
  .film-step .step-short { display: inline; }
  .film-chapter { font-size: .73rem; }
  .film-line .film-scene { font-size: .80rem; margin-top: 1px; }
  .hero-action { min-height: 44px; padding: 6px 9px; font-size: .76rem; }
}
@media(max-width:360px) {
  :root { --portal-gutter: 14px; }
  .portal-nav a { font-size: .76rem; padding-inline: 3px; }
  .product-row .product-card { grid-template-columns: 40% minmax(0,1fr); }
  .product-row .product-card > img { object-fit: contain; }
}
@media (min-width:901px) and (max-width:1180px), (max-width:360px) {
  .product-row .card-caption {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    gap: 5px 6px; align-content: start; align-items: center;
  }
  .product-row .card-caption > div { display: contents; }
  .product-row .card-caption h3 { grid-column: 1 / -1; text-wrap: balance; }
  .product-row .card-caption p { margin: 0; text-wrap: pretty; }
}
@media(prefers-reduced-transparency:reduce) {
  :root { --glass-fill: #f7f9fb; }
  .portal-header, .action-link, [data-portal-language] { background: #f7f9fb; backdrop-filter: none; }
}

/* The scene, its brief and the playback controls share the first viewport. */
.company-hero:has(.case-rail:not(:empty)) {grid-template-rows:minmax(0,1fr) auto auto;}
.case-rail {position:relative;grid-column:1;display:flex;gap:clamp(5px,.8vw,15px);margin:0 var(--portal-gutter);padding:3px 2px 7px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain;overflow-anchor:none;}
.case-rail:empty,.case-choice[hidden],.film-greet[hidden] {display:none;}
.case-choice {appearance:none;display:grid;align-content:start;justify-items:start;flex:1 0 0;min-width:0;min-height:44px;padding:9px 12px;border:1px solid transparent;border-radius:14px;text-align:left;color:#3c5365;background:transparent;cursor:pointer;font:inherit;}
.case-choice img,.case-request {display:none;}
.case-choice strong {font-size:clamp(15px,1.12vw,18px);line-height:1.38;font-weight:560;}
.case-choice[aria-pressed=true] {color:#1d435b;background:#e8eff5;border-color:#c6d5e0;box-shadow:inset 0 1px 0 #ffffffbf;}
.case-choice[aria-pressed=true] strong {font-weight:630;}
.case-choice:focus-visible,.film-greet:focus-visible {outline:2px solid #46768e;outline-offset:1px;}
.hero-story[data-chapter="0"] .case-choice {grid-template-rows:clamp(48px,6.7vh,76px) auto 1fr;row-gap:4px;}
.hero-story[data-chapter="0"] .case-choice img {display:block;width:100%;height:100%;object-fit:contain;object-position:left center;mix-blend-mode:multiply;}
.hero-story[data-chapter="0"] .case-request {display:block;min-height:2.8em;font-size:clamp(14px,.98vw,16px);line-height:1.42;font-weight:400;color:#465b6b;text-wrap:pretty;}
.case-choice[aria-pressed=true] .typing::after {content:"";display:inline-block;height:.88em;vertical-align:-.1em;border-right:1px solid currentColor;margin-left:2px;}
.hero-story:not([data-chapter="0"]) .case-rail {justify-content:center;}
.hero-story:not([data-chapter="0"]) .case-choice {flex:0 0 auto;align-content:center;}
.film-greet {grid-area:1/1;align-self:end;justify-self:center;z-index:2;margin:0 0 12px;min-height:42px;cursor:pointer;font:inherit;font-size:15px;font-weight:570;}
.film-line .film-chapter {font-size:clamp(16px,1.30vw,21px);line-height:1.32;font-weight:610;color:#223c4e;}
.film-line .film-scene {font-size:clamp(14px,1.05vw,17px);line-height:1.46;font-weight:420;color:#4b6374;}
.film-step {font-size:clamp(14px,.98vw,16px);font-weight:460;}
.film-step[aria-current] {font-weight:620;}
.hero-story[data-chapter="0"] .film-line {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
@media(min-width:1101px){
  .hero-story[data-chapter="0"] .film-controls {grid-column:1/3;width:min(750px,100%);}
}
@media(hover:hover){.case-choice:hover {background:#eaf0f5;color:#213f54;}}
@media(max-width:1100px){
  .case-rail {margin:0;padding:3px var(--portal-gutter) 7px;scroll-padding-inline:var(--portal-gutter);scrollbar-width:none;}
  .case-choice {flex:0 0 clamp(146px,22vw,180px);}
  .hero-story:not([data-chapter="0"]) .case-rail {justify-content:flex-start;}
  .hero-story:not([data-chapter="0"]) .case-choice {padding:6px 12px;}
  .hero-story[data-chapter="0"] .film-deck {grid-template:"controls next" auto/minmax(0,1fr) auto;padding-right:max(153px,var(--portal-gutter));gap:14px;}
  .hero-story[data-chapter="0"] .film-controls {width:100%;}
}
@media(max-width:650px){
  .case-rail {gap:5px;}
  .case-choice {padding:7px 10px;flex-basis:145px;border-radius:12px;}
  .hero-story[data-chapter="0"] .case-choice {grid-template-rows:44px auto 1fr;row-gap:3px;}
  .hero-story[data-chapter="0"] .case-request {font-size:13px;line-height:1.43;}
  .film-line .film-chapter {font-size:16px;}
  .film-line .film-scene {font-size:14px;}
  .film-step {font-size:13px;}
  .hero-story .hero-action {position:absolute;z-index:2;top:12px;right:var(--portal-gutter);min-height:44px;padding:8px 12px;font-size:13px;}
  .hero-story .film-deck, .hero-story[data-chapter="0"] .film-deck {
    grid-template:"status" auto "controls" auto / minmax(0,1fr);gap:4px;padding:7px var(--portal-gutter) max(8px,env(safe-area-inset-bottom));
  }
  .hero-story[data-chapter="0"] .film-deck {grid-template:"controls" auto / minmax(0,1fr);}
  .hero-story .film-controls, .hero-story[data-chapter="0"] .film-controls {width:calc(100% - 52px);gap:7px;}
  .film-chapters {gap:4px;}
}
.hero-story[data-chapter="4"] .case-choice[data-case=desk] {order:-1;}
@media(max-width:370px) {
  .hero-story .film-deck,.hero-story[data-chapter="0"] .film-deck {
    grid-template:"play status" auto "ticks ticks" auto / 44px minmax(0,1fr);gap:2px 8px;padding:3px var(--portal-gutter) 6px;
  }
  .hero-story .film-controls {display:contents;}
  .film-toggle {grid-area:play;}
  .film-chapters {grid-area:ticks;width:calc(100% - 48px);gap:3px;}
  .film-step {text-align:center;}
  .film-line .film-chapter {font-size:15px;}
  .film-line .film-scene {font-size:13px;}
  .hero-story[data-chapter="0"] .hero-action {position:static;grid-area:status;justify-self:end;}
}
@media(max-height:540px) and (min-aspect-ratio:1/1){
  .hero-story[data-chapter="0"] .case-choice {grid-template-rows:auto 1fr;}
  .hero-story[data-chapter="0"] .case-choice img {display:none;}
   .hero-story[data-chapter="0"] .film-deck {grid-template:"controls next" auto/minmax(0,1fr) auto;padding-right:142px;}
  .hero-story .hero-action {position:static;}
  .hero-story[data-chapter="0"] .case-request {min-height:1.4em;}
}

