.hmi-page {
  --hmi-bg: #0b1020;
  --hmi-purple: #181432;
  --hmi-text: #f3f2f8;
  --hmi-muted: #aab2c8;
  --hmi-accent: #c3b4ee;
  --hmi-line: #30384d;
  background: var(--hmi-bg);
  color: var(--hmi-text);
  font-family: "Inter", var(--font-sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.hmi-page figure { margin: 0; }
.hmi-page button { cursor: pointer; }
.hmi-page :is(a, button):focus-visible { outline: 2px solid var(--hmi-accent); outline-offset: 6px; }
.hmi-page .site-header { top: 23px; }
.hmi-page nav a { transition: opacity .2s ease; }
.hmi-page nav a:hover { opacity: .7; text-decoration: none; }
.hmi-container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.section-purple { background: var(--hmi-purple); }
.hmi-page h2 { font-size: 46px; line-height: 60px; font-weight: 400; }
.hmi-page h3 { font-size: 24px; line-height: 36px; font-weight: 400; }
.hmi-page p { color: var(--hmi-muted); font-size: 18px; line-height: 30px; }
.hmi-page .eyebrow { color: var(--hmi-accent); font-family: "Inter", sans-serif; font-size: 12px; line-height: 20px; font-weight: 400; }
.hmi-page .small { font-size: 14px; line-height: 22px; }
.screen-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }

/* The scene retains the source frame's geometry; its copy stays real HTML. */
.hmi-hero { position: relative; aspect-ratio: 1440 / 832; overflow: hidden; background: #4e439c; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; overflow: hidden; }
.hero-atmosphere { position: absolute; width: 124.5833%; height: 120.3125%; left: -11.25%; top: -5.4087%; object-fit: cover; }
.hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.hero-copy { position: absolute; top: 22.35%; left: 0; width: 100%; padding: 0; text-align: center; }
.hmi-hero h1 { color: #fff; font-family: "Inter", sans-serif; font-size: clamp(48px, 6.94444vw, 130px); line-height: 1.21; font-weight: 200; letter-spacing: 0; transform: translateX(1.875vw); text-shadow: 0 4px 5px #2e1c1c40; }
.hero-tags { display: block; margin-top: 7px; text-align: center; white-space: pre; }
.hmi-page .hero-tags { color: #fff; font-size: clamp(12px, 1.25vw, 22px); line-height: 1.25; }
.hero-instrument, .hero-console { position: absolute; overflow: hidden; padding: .28%; background: #212121; border-radius: 4px; }
.hero-instrument { left: 15%; top: 56.61%; width: 18.82%; height: 12.86%; }
.hero-console { left: 38.06%; top: 58.17%; width: 26.25%; height: 25.96%; }
.hero-instrument img, .hero-console img { width: 100%; height: 100%; object-fit: fill; }
.hero-instrument .instrument-base { position: absolute; width: 98%; height: 94%; }
.hero-instrument img:last-child { position: relative; }

.experience { margin-top: -1px; padding: 108px 0 90px; }
.experience-top { display: grid; grid-template-columns: 1fr 351px; align-items: end; gap: 80px; padding-bottom: 24px; border-bottom: 1px solid var(--hmi-line); }
.experience h2 { margin-top: 13px; line-height: 76px; }
.experience-summary { width: 368px; max-width: calc(100% + 17px); padding-bottom: 16px; }
.experience-summary .small { margin-top: 24px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 351px)); justify-content: space-between; gap: 32px; margin-top: 44px; }
.principle-card { min-height: 171px; margin-top: 8px; padding: 21px 26px 26px; border-radius: 20px 10px 0 10px; background: linear-gradient(118.44deg, #804293a8 14%, #181432a8); transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease; }
.principle-card p { max-width: 266px; margin-top: 16px; color: #aab3c9; line-height: 29px; }


.case-section { padding: 117px 0 100px; }
.hmi-page .section-heading { padding: 0; text-align: center; }
.hmi-page .section-heading h2 { color: var(--hmi-text); font-size: 46px; font-weight: 400; line-height: 60px; }
.hmi-page .section-heading p { max-width: 680px; margin: 24px auto 0; color: var(--hmi-muted); font-size: 22px; font-weight: 400; line-height: 30px; }
.car-figure { margin-top: 48px !important; }
.car-section { padding-bottom: 100px; }
.film-trigger { position: relative; display: block; overflow: hidden; color: white; background: #080b15; text-decoration: none; }
.film-trigger > img { transition: filter .6s ease; }
.watch-film { position: absolute; right: 24px; bottom: 24px; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #ffffff40; border-radius: 50%; background: #14141aa8; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 4px 20px #0002; transition: transform .3s ease, background .3s ease; }
.expand-symbol { font: 30px/1 Arial, sans-serif; }
.car-figure .watch-film { top: auto; left: 7%; right: auto; bottom: 12%; width: 70px; height: 70px; border: 0; background: none; backdrop-filter: none; box-shadow: none; }
.car-figure .watch-film img { width: 100%; height: auto; }
.inline-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #080b15; }
.motion-gallery .watch-film { z-index: 1; }
.motion-toggle { position: absolute; z-index: 2; bottom: 24px; left: 24px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #ffffff40; border-radius: 50%; color: #fff; background: #14141aa8; backdrop-filter: blur(20px); font-size: 16px; }
.car-caption { padding: 43px 24px 41px; background: var(--hmi-purple); }
.car-caption p { margin-top: 8px; }
.workspace-layout { display: grid; grid-template-columns: minmax(0, 840px) minmax(0, 312px); align-items: center; gap: 42px; margin-top: 51px; }
.workspace-note > p { margin-top: 24px; }
.ratio-note { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hmi-line); }
.ratio-note > span { font: 400 52px/64px "Inter", sans-serif; color: var(--hmi-accent); }
.ratio-note p { margin-top: 24px; }
.workspace-comparisons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--hmi-line); }
.workspace-comparisons figcaption { margin-top: 29px; }
.apps-grid figcaption { margin-top: 27px; }
.workspace-comparisons figure:first-child p { margin-top: 16px; }
.workspace-comparisons figure:last-child figcaption { padding-left: 10px; }
.workspace-comparisons p, .apps-grid p { margin-top: 8px; }
.multitask-section { padding-top: 127px; padding-bottom: 127px; }
.multitask-section .section-heading p { margin-top: 19px; }

.wallpaper-gallery { position: relative; margin-top: 57px !important; }
.media-stage { position: relative; background: #080b15; touch-action: pan-y pinch-zoom; }
.swatch-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 120px; padding: 24px 40px; background: var(--hmi-purple); }
.swatch-list { display: flex; align-items: center; gap: 24px; }
.swatch { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 7px; border: 1px solid transparent; border-radius: 50%; background: transparent; transition: border-color .25s ease, transform .25s ease; }
.swatch img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; }
.swatch[aria-pressed="true"] { border-color: #ddd; }
.wallpaper-name { color: var(--hmi-muted); font-size: 18px; line-height: 22px; white-space: nowrap; }
.motion-gallery { margin-top: 96px !important; }
.theme-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.theme-thumbnail { position: relative; min-width: 0; align-self: start; padding: 7px 9px; border: 0; background: var(--hmi-purple); transition: background .25s ease; }
.theme-thumbnail[aria-pressed="true"] { background: #2a254b; }
.thumb-crop { position: relative; display: block; width: 100%; aspect-ratio: 270 / 180; overflow: hidden; }
.thumb-crop img { position: absolute; max-width: none; width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: opacity .35s ease; }
.art-1 .thumb-crop img { width: 280.85%; height: 235.13%; left: -.7407%; top: -35%; }
.art-2 .thumb-crop { aspect-ratio: 270 / 179.45; }
.art-2 .thumb-crop img { width: 301.03%; height: 252.80%; left: -149.5915%; top: -85.6923%; }
.art-3 .thumb-crop, .art-4 .thumb-crop { aspect-ratio: 270 / 172.975; }
.art-3 .thumb-crop img { width: 269.97%; height: 235.20%; left: -127.1919%; top: -97.0768%; }
.art-4 .thumb-crop img { width: 157.51%; height: 137.23%; left: -31.1879%; top: -13.652%; }
.theme-thumbnail[aria-pressed="true"] img { opacity: 1; }
.thumb-label { position: absolute; inset: auto 9px 7px; padding: 30px 8px 10px; color: var(--hmi-muted); background: linear-gradient(transparent, #0b102099); font-size: 18px; line-height: 1.25; text-align: center; opacity: 0; transition: opacity .3s ease; }
.theme-thumbnail[aria-pressed="true"] .thumb-label, .theme-thumbnail:focus-visible .thumb-label { opacity: 1; }
.gallery-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gallery-status.has-error { position: static; width: auto; height: auto; padding: 12px 0; clip-path: none; white-space: normal; color: #f2b9b9; font-size: 14px; }
.media-stage[aria-busy="true"]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--hmi-accent); animation: loading-line 1s ease-in-out infinite; }
.atmosphere-section { padding-bottom: 119px; }
.atmosphere-section .section-heading h2 { color: #fff; font-weight: 500; }
.atmosphere-section .section-heading p { max-width: 642px; margin-top: 27px; color: #fff; }

.driving-section .section-heading p { margin-top: 22px; }
.driving-overview { margin-top: 59px !important; }
.driving-overview figcaption { margin-top: 49px; }
.driving-overview p { max-width: 1080px; margin-top: 13px; }
.cluster-gallery { display: grid; grid-template-columns: minmax(0, 809fr) minmax(0, 362fr); align-items: start; gap: 29px; margin-top: 41px; padding-top: 59px; border-top: 1px solid var(--hmi-line); }
.cluster-gallery img { width: 100%; height: auto; aspect-ratio: 1200 / 451; object-fit: contain; }
.cluster-gallery figcaption { margin-top: 12px; color: var(--hmi-muted); font-size: 14px; line-height: 22px; }
.cluster-primary figcaption { margin-top: 25px; }
.cluster-alternatives { display: grid; gap: 5px; }
.cluster-alternatives figure:first-child figcaption { margin-top: 5px; }
.driving-section { padding-bottom: 117px; }
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 48px; }
.apps-section { padding-bottom: 122px; }
.apps-section .section-heading p { max-width: 706px; margin-top: 18px; }
.apps-grid h3 { font-weight: 500; }
.hmi-footer { padding: 80px 0 74px; background: linear-gradient(180deg, #3134a4, #b05d98 103.94%); color: white; }
.hmi-footer h2 { margin-top: 24px; color: white; font-size: 64px; line-height: 76px; font-weight: 400; }
.hmi-footer .eyebrow { font-weight: 500; }
.footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 33px; }
.hmi-footer .footer-actions p { color: white; font-size: 18px; line-height: 28px; }
.back-top { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 0; color: white; font-size: 18px; line-height: 28px; text-decoration: none; }
.footer-baseline { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 33px; padding-top: 23px; border-top: 1px solid #58335d; color: #dbdbdb; font-size: 14px; line-height: 22px; }
.footer-baseline span:last-child { font-size: 14px; }

/* Same framing and controls as the HOME showreel, scoped to HMI. */
.hmi-page .film-dialog { width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 0; overflow: hidden; color: white; background: #000; }
.film-dialog[open] { animation: cinema-in 240ms cubic-bezier(.22,1,.36,1); }
.film-dialog::backdrop { background: rgb(0 0 0 / 80%); }
.film-dialog .dialog-dismiss { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; opacity: 1; transition: opacity 200ms ease; }
.film-dialog.controls-hidden .dialog-dismiss { opacity: 0; pointer-events: none; }
.film-dialog .dialog-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 48%); cursor: pointer; transition: opacity 180ms ease; }
.film-dialog .dialog-close img { width: 24px; height: 24px; pointer-events: none; }
.film-dialog .dialog-close:hover { opacity: .7; }
.film-dialog .showreel-video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 32px); object-fit: contain; background: #000; }
.film-error { position: absolute; inset: auto 16px 64px; padding: 16px; background: #111e; text-align: center; }
.hmi-page .film-error p, .film-error a { font-size: 14px; line-height: 24px; }
.film-error a { text-decoration: underline; }
html.film-is-open { overflow: hidden; }
[data-reveal] { transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal-pending { opacity: 0; transform: translateY(24px); }
@keyframes cinema-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes media-in { from { opacity: .3; } to { opacity: 1; } }
@keyframes loading-line { 50% { opacity: .3; } }
@media (hover: hover) {
  .principle-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px #07061522; }
  .film-trigger:hover .watch-film { transform: translateY(-3px); background: #292930e6; }
  .film-trigger:hover > img { filter: brightness(1.035); }
  .swatch:hover { border-color: #999; transform: scale(1.07); }
  .theme-thumbnail:hover img, .theme-thumbnail:hover .thumb-label { opacity: 1; }
  .car-figure .film-trigger:hover .watch-film { transform: translate(-50%, -50%) scale(1.04); background: none; }
}
@media (min-width: 1600px) { .cluster-alternatives { gap: 8px; } .hmi-container { width: min(1360px, calc(100% - 160px)); } .principles { grid-template-columns: repeat(3, 1fr); gap: 64px; } }
@media (max-width: 1100px) {
  .hmi-container { width: calc(100% - 64px); }
  .hmi-page .site-header { width: calc(100% - 64px); }
  .hmi-page nav { gap: 32px; }
  .experience { padding-block: 80px; }
  .experience-top { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .experience-summary br { display: none; }
  .principles { gap: 24px; }
  .principle-card { padding: 22px 20px; }
  .principle-card br { display: none; }
  .principle-card p { font-size: 16px; line-height: 28px; }
  .case-section { padding-block: 88px; }
  .workspace-layout { grid-template-columns: 2.4fr 1fr; gap: 28px; }
  .workspace-note h3 { font-size: 22px; }
  .workspace-note p { font-size: 16px; line-height: 28px; }
  .ratio-note { margin-top: 18px; padding-top: 18px; }
  .ratio-note > span { font-size: 42px; line-height: 50px; }
  .ratio-note p { margin-top: 12px; font-size: 13px; line-height: 21px; }
  .workspace-comparisons, .apps-grid { gap: 28px; }
  .swatch-list { gap: 18px; }
  .swatch-bar { min-height: 100px; padding: 20px 28px; }
  .wallpaper-name { font-size: 18px; }
  .theme-thumbnails { gap: 10px; }
  .theme-thumbnail { padding: 6px; }
  .thumb-label { inset-inline: 6px; bottom: 6px; padding-bottom: 10px; }
  .cluster-gallery { grid-template-columns: 1fr; gap: 28px; }
  .cluster-alternatives { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cluster-alternatives figure:first-child figcaption { margin-top: 12px; }
  .hmi-footer h2 { font-size: 52px; line-height: 1.3; }
}
@media (max-width: 700px) {
  .hmi-container { width: calc(100% - 40px); }
  .hmi-page .site-header { top: 12px; width: calc(100% - 40px); flex-wrap: wrap; gap: 2px; }
  .hmi-page nav { width: 100%; justify-content: space-between; gap: 8px; }
  .hmi-page nav a { font-size: 13px; }
  .hmi-hero { aspect-ratio: auto; height: clamp(520px, 130vw, 680px); }
  .hero-scene { inset: auto auto 0 50%; width: max(790px, 170%); height: auto; aspect-ratio: 1440 / 832; transform: translateX(-50%); }
  .hmi-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#4146a1, #6a619c 60%); }
  .hero-copy { top: 30%; padding-inline: 16px; }
  .hmi-hero h1 { font-size: clamp(42px, 10.8vw, 70px); letter-spacing: 0; transform: none; }
  .hmi-page .hero-tags { gap: 22px; margin-top: 16px; font-size: 12px; }
  html[lang="en"] .hmi-page .hero-tags { max-width: 320px; margin-inline: auto; white-space: normal; line-height: 1.5; }
  .experience { padding: 64px 0; }
  .experience-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
  .hmi-page h2, .hmi-page .section-heading h2 { font-size: clamp(28px, 6.8vw, 38px); line-height: 1.4; }
  .experience h2 { font-size: 36px; line-height: 1.6; }
  .hmi-page p { font-size: 16px; line-height: 28px; }
  .experience-summary { width: auto; max-width: 100%; padding: 0; }
  .experience-summary .small { margin-top: 16px; }
  .principles { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .principle-card { min-height: 0; padding: 24px; }
  .principle-card p { margin-top: 10px; }
  .hmi-page h3 { font-size: 22px; line-height: 32px; }
  .case-section { padding-block: 64px; }
  .hmi-page .section-heading p { max-width: 520px; margin-top: 18px; font-size: 16px; line-height: 28px; }
  .car-figure, .wallpaper-gallery, .workspace-layout, .driving-overview { margin-top: 32px !important; }
  .car-caption { padding: 24px; }
  .watch-film { right: 12px; bottom: 12px; width: 44px; height: 44px; }
  .car-figure .watch-film { left: 8%; bottom: 9%; width: 44px; height: 44px; }
  .motion-toggle { bottom: 12px; left: 12px; }
  .workspace-layout { grid-template-columns: 1fr; gap: 28px; }
  .workspace-note { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: start; }
  .workspace-note h3 { grid-column: 1 / -1; }
  .workspace-note > p { margin-top: 0; font-size: 14px; line-height: 26px; }
  .ratio-note { margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid var(--hmi-line); }
  .ratio-note > span { font-size: 34px; line-height: 40px; }
  .ratio-note p { font-size: 12px; line-height: 20px; }
  .ratio-note br { display: none; }
  .workspace-comparisons, .apps-grid { grid-template-columns: 1fr; gap: 40px; }
  .workspace-comparisons { margin-top: 32px; padding-top: 32px; }
  .workspace-comparisons figcaption, .apps-grid figcaption { margin-top: 20px; padding-left: 0 !important; }
  .swatch-bar { min-height: 86px; padding: 16px 12px; gap: 10px; }
  .swatch-list { gap: 0; }
  .swatch { width: 40px; min-height: 44px; padding: 6px; }
  .swatch img { width: 26px; height: 26px; }
  .wallpaper-name { font-size: 16px; }
  .motion-gallery { margin-top: 48px !important; }
  .theme-thumbnails { gap: 6px; }
  .theme-thumbnail { padding: 4px; min-height: 60px; }
  .thumb-label { inset-inline: 0; bottom: 4px; padding: 15px 0 5px; font-size: clamp(10px, 2.6vw, 15px); }
  .driving-overview figcaption { margin-top: 24px; }
  .cluster-gallery { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; margin-top: 32px; }
  .cluster-alternatives { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cluster-gallery figcaption { font-size: 12px; line-height: 20px; }
  .apps-grid { margin-top: 32px; }
  .hmi-footer { padding: 64px 0 40px; }
  .hmi-footer h2 { max-width: 460px; margin-top: 24px; font-size: clamp(32px, 8vw, 46px); line-height: 1.5; text-wrap: balance; }
  .footer-baseline { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 32px; margin-top: 40px; }
  .footer-baseline span:last-child { font-size: 12px; }
  .footer-actions { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 24px; }
  .hmi-footer .footer-actions p { font-size: 16px; line-height: 28px; }
  .back-top { font-size: 16px; }
}
@media (max-width: 360px) {
  .hmi-container { width: calc(100% - 32px); }
  .swatch-bar { flex-wrap: wrap; justify-content: center; }
  .wallpaper-name { width: 100%; text-align: center; }
  .cluster-alternatives { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hmi-page *, .hmi-page *::before, .hmi-page *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
