:root {
  --bg: #020617;
  --panel: #191d28;
  --intro-bg: #111827;
  --text: rgb(255 255 255 / 80%);
  --text-strong: #ffffff;
  --label: #333333;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Heiti SC", SimHei, Arial, sans-serif;
  color-scheme: dark;
  font-family: var(--font-sans);
}

* { box-sizing: border-box; font-family: inherit; letter-spacing: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font-sans); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
a[href]:not(:has(img)), .brand span { transition: opacity 220ms ease; }
a[href]:not(:has(img)):hover, .brand:hover span { opacity: .7; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid white; outline-offset: 6px; }
.skip-link { position: absolute; z-index: 40; top: 8px; left: 16px; padding: 12px; background: var(--bg); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  inset: 23px 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1322px, calc(100% - 118px));
  min-height: 44px;
  margin-inline: auto;
}
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; min-height: 44px; color: var(--text-strong); font-size: .75rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 62px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-strong); font-size: .75rem; text-decoration: none; white-space: nowrap; }
nav a.is-active { color: rgb(255 255 255 / 60%); }

.home-page { background: var(--intro-bg); }
.hero { position: relative; height: max(700px, 43.75rem); overflow: hidden; background: var(--intro-bg); }
.hero-bg { position: absolute; top: -94px; left: -1.25%; width: 101.611%; height: calc(100% + 117px); object-fit: cover; }
.hero-copy { position: relative; z-index: 1; padding: 166px 24px 0; text-align: center; }
.hero h1 { color: var(--text-strong); font-size: 4.375rem; font-weight: 400; line-height: 1.214286; overflow-wrap: anywhere; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin-top: 39px; color: var(--text-strong); font-size: 1.125rem; line-height: 1.222222; }

/* 700px banner - 306px overlap places the desktop player at y = 394px. */
.showreel { position: relative; z-index: 3; display: flex; justify-content: center; margin-top: -306px; padding-bottom: 80px; }
.video-card { position: relative; flex: none; width: min(964px, calc(100% - 48px)); aspect-ratio: 964 / 611; padding: 0; overflow: hidden; border: 2px solid #000; border-radius: 24px; background: #000; cursor: pointer; }
.video-card > img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; top: 50%; left: 50%; width: 16.2863%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.play-icon img { width: 100%; height: 100%; }

.work-section { position: relative; background: var(--bg); scroll-margin-top: 24px; }
.section-heading { padding-inline: 24px; text-align: center; }
.section-heading h2 { color: var(--text); font-size: 3.125rem; font-weight: 400; line-height: 1.22; }
.section-heading p { margin: 14px auto 0; color: var(--text); font-size: 2.25rem; font-weight: 300; line-height: 1.222222; text-wrap: pretty; }
.hmi-section { padding-top: 74px; margin-bottom: 80px; }
.cockpit-stage { display: block; width: 100%; aspect-ratio: 1440 / 697; margin-top: 56px; overflow: hidden; }
.cockpit-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.calorie-section { padding: 66px 0 61px; }
.calorie-grid { display: flex; justify-content: center; align-items: stretch; width: min(1328px, calc(100% - 104px)); margin: 46px auto 0; gap: 34px; }
.phone-card { text-decoration: none; position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 420 / 631; overflow: hidden; border-radius: 26px; background: var(--panel); }
.phone-card img { width: 75%; height: auto; margin: 5% auto 0; }
.phone-card h3 { position: relative; margin: -6.905% 8px 7.143%; color: var(--text); font-size: 2.25rem; font-weight: 300; line-height: 1.222222; text-align: center; }

.aigc-section { padding: 66px 0 70px; background: var(--panel); }
.aigc-grid { display: flex; justify-content: center; width: min(1314px, calc(100% - 104px)); margin: 65px auto 0; gap: 34px; }
.aigc-card { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 640 / 693; overflow: hidden; border-radius: 32px; background: #10131b; }
.aigc-card > img { position: absolute; max-width: none; object-fit: cover; }
/* Preserve each source image's crop inside its Figma mask at every card size. */
.aigc-dabai > img { width: 124.6875%; height: 100.7215%; left: -13.125%; top: -.7215%; }
.aigc-human > img { width: 271.9708%; height: 141.2835%; left: -87.5653%; top: .0415%; }
.aigc-card h3 { position: absolute; inset: auto 0 0; display: grid; place-items: center; min-height: 12.5541%; padding: 10px; background: rgb(255 255 255 / 40%); color: var(--label); font-size: 2.25rem; font-weight: 400; line-height: 1.222222; text-align: center; }
.aigc-pichaiyuan { display: block; }
.aigc-pichaiyuan > img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% center; }

.about-section { padding: 66px 0 164px; }
.about-image { display: block; position: relative; width: 100%; aspect-ratio: 1437 / 565; margin: 49px auto 0; overflow: hidden; }
.about-image img { position: absolute; width: 175.6437%; height: 249.3805%; max-width: none; left: -38.9005%; top: -8.3186%; object-fit: cover; }

.showreel-dialog { width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid #424753; border-radius: 8px; background: var(--intro-bg); color: white; }
.showreel-dialog::backdrop { background: rgb(0 0 0 / 80%); }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 20px; }
.dialog-toolbar h2 { font-size: 1.125rem; font-weight: 500; }
.dialog-close { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.dialog-close:hover { background: var(--panel); }
.dialog-poster, .showreel-video { width: 100%; height: auto; max-height: 70dvh; object-fit: contain; background: black; }
#showreel-status { padding: 16px 20px; color: var(--text); font-size: .875rem; line-height: 1.6; }
html:has(.showreel-dialog[open]) { overflow: hidden; }

.video-card > img, .image-hover > img { transition: transform 420ms ease; }
.play-icon { transition: transform 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  .video-card:hover > img { transform: scale(1.035); }
  .video-card:hover .play-icon { transform: translate(-50%, -50%) scale(1.06); }
  .image-hover:hover > img { transform: scale(1.045); }
}
.about-image:focus-visible > img { transform: scale(1.045); }

@media (max-width: 1199px) {
  .site-header { width: calc(100% - 64px); }
  nav { gap: 36px; }
  .hero h1 { font-size: 3.5rem; }
  .section-heading h2 { font-size: 2.625rem; line-height: 1.3; }
  .section-heading p { font-size: 1.75rem; line-height: 1.5; }
  .calorie-grid, .aigc-grid { width: calc(100% - 64px); gap: 24px; }
  .phone-card h3, .aigc-card h3 { font-size: 1.75rem; line-height: 1.4; }
}

@media (max-width: 900px) {
  .hero h1 { font-size: 2.875rem; }
  .hero-copy { padding-top: 160px; }
  .hero { height: max(580px, 36.25rem); }
  .showreel { margin-top: -220px; padding-bottom: 64px; }
  .hmi-section { padding-top: 64px; margin-bottom: 56px; }
  .cockpit-stage { margin-top: 40px; }
  .calorie-section, .aigc-section, .about-section { padding-block: 56px; }
  .section-heading p { font-size: 1.5rem; }
  .calorie-grid, .aigc-grid { width: calc(100% - 48px); margin-top: 40px; gap: 18px; }
  .phone-card { border-radius: 18px; }
  .phone-card h3 { font-size: 1.25rem; }
  .aigc-card { border-radius: 20px; }
  .aigc-card h3 { font-size: 1.5rem; }
  .about-image { margin-top: 40px; }
}

@media (max-width: 600px) {
  .site-header { top: 16px; width: calc(100% - 40px); flex-wrap: wrap; gap: 8px; }
  .brand { font-size: .875rem; }
  nav { width: 100%; justify-content: space-between; gap: 8px; }
  nav a { font-size: .875rem; }
  .hero { height: max(520px, 32.5rem); }
  .hero-bg { top: -30px; left: 50%; width: 1050px; height: calc(100% + 66px); max-width: none; transform: translateX(-50%); }
  .hero-copy { padding: 163px 20px 0; }
  .hero h1 { font-size: 2.5rem; line-height: 1.3; }
  .hero h1 span { display: block; }
  .hero-tags { margin-top: 24px; gap: 12px 20px; font-size: 1rem; line-height: 1.5; }
  .showreel { margin-top: -160px; padding-bottom: 48px; }
  .video-card { width: calc(100% - 40px); border-radius: 16px; }
  .play-icon { width: 18%; }
  .section-heading { padding-inline: 20px; }
  .section-heading h2 { font-size: 2rem; line-height: 1.35; }
  .section-heading p { max-width: 360px; margin-top: 12px; font-size: 1.125rem; line-height: 1.65; }
  .hmi-section { padding-top: 48px; margin-bottom: 32px; }
  .cockpit-stage { margin-top: 32px; }
  .calorie-section, .aigc-section, .about-section { padding-block: 48px; }
  .calorie-grid, .aigc-grid { width: min(420px, calc(100% - 40px)); flex-direction: column; margin-top: 32px; gap: 24px; }
  .phone-card, .aigc-card { flex: none; width: 100%; }
  .phone-card { border-radius: 26px; }
  .phone-card h3 { font-size: 1.5rem; }
  .aigc-card { border-radius: 24px; }
  .aigc-card h3 { font-size: 1.5rem; }
  .about-image { aspect-ratio: 1.3; margin-top: 32px; }
  .about-image img { width: 260%; height: auto; left: -80%; top: -4%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a[href]:not(:has(img)), .brand span { transition: none; }
  .video-card > img, .image-hover > img, .play-icon { transition: none; }
  .video-card:hover > img, .image-hover:hover > img, .about-image:focus-visible > img { transform: none; }
  .video-card:hover .play-icon { transform: translate(-50%, -50%); }
}
