:root {
  --paper: #f7fbff;
  --ink: #20324a;
  --muted: #6e7f93;
  --line: #dbeaf5;
  --blue: #28a9e8;
  --red: #ee5d5b;
  --navy: #102a43;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(28, 72, 116, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(40, 169, 232, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(40, 169, 232, .08) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .44) 48%, rgba(40, 169, 232, .12)),
    radial-gradient(circle at 8% 12%, rgba(238, 93, 91, .12), transparent 28%);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

#mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .45;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 68px);
  border-bottom: 1px solid rgba(219, 234, 245, .72);
  background: rgba(247, 251, 255, .78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 13px);
  grid-template-rows: repeat(2, 13px);
  gap: 4px;
}

.brand-mark i {
  display: block;
  background: var(--blue);
}

.brand-mark i:first-child,
.brand-mark i:last-child {
  background: var(--red);
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 9px 13px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.nav a:hover {
  color: var(--blue);
  background: rgba(40, 169, 232, .08);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 46px;
  min-height: calc(100svh - 74px);
  padding-top: 44px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(42px, 7vw, 88px);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: 0;
}

.lead,
.section-head p,
.showreel-copy p,
.service-item p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.lead {
  max-width: 620px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.filters button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
}

.primary-btn {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(40, 169, 232, .28);
}

.ghost-btn {
  color: var(--navy);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .76);
}

.hero-visual {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(219, 234, 245, .9);
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 42%;
  height: 42%;
  content: "";
  border-right: 10px solid var(--red);
  border-bottom: 10px solid var(--blue);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.stats-strip div {
  min-height: 126px;
  padding: 24px;
  background: rgba(255, 255, 255, .82);
}

.stats-strip strong {
  display: block;
  color: var(--red);
  font-size: 32px;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.value-strip div {
  min-height: 148px;
}

.value-strip strong {
  font-size: 26px;
  letter-spacing: 0;
}

.value-strip span {
  max-width: 220px;
  font-size: 15px;
  line-height: 1.65;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.material-layout {
  display: grid;
  gap: 28px;
}

.material-group {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 50px rgba(28, 72, 116, .08);
}

.material-group-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.material-group-head > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  background: var(--red);
}

.material-group-head h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 28px;
}

.material-group-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.flat-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flat-gallery article {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .84);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.flat-gallery article:hover,
.video-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.flat-gallery article:focus-visible,
.video-category:focus-visible {
  outline: 3px solid rgba(40, 169, 232, .45);
  outline-offset: 4px;
}

.flat-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--white);
}

.flat-gallery span {
  display: block;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.45;
}

.video-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-category,
.about-facts article {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8);
}

.video-category {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  color: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}

.video-category::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 22, 38, .04), rgba(7, 22, 38, .3) 42%, rgba(7, 22, 38, .9)),
    linear-gradient(135deg, rgba(40, 169, 232, .18), rgba(238, 93, 91, .12));
}

.video-category > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, opacity .25s ease;
}

.video-category:hover > img {
  transform: scale(1.05);
  opacity: .86;
}

.video-category h3,
.video-category p,
.video-category span {
  position: relative;
  z-index: 2;
}

.video-category h3 {
  color: var(--white);
}

.video-category h3,
.about-facts h3 {
  color: var(--navy);
}

.material-group .video-category h3 {
  color: var(--white);
}

.about-copy p,
.about-facts p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.video-category p {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.65;
}

.video-category span {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 6px 10px;
  color: #b7e8ff;
  font-size: 13px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}

.service-item {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-item:hover {
  transform: translateY(-8px);
  border-color: rgba(40, 169, 232, .5);
  box-shadow: var(--shadow);
}

.service-item span {
  display: block;
  margin-bottom: 38px;
  color: var(--red);
  font-weight: 700;
}

.showreel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 40px;
}

.video-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.video-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .88;
  transition: transform .6s ease, opacity .25s ease;
}

.video-panel:hover img {
  transform: scale(1.04);
  opacity: .74;
}

.play-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.play-ring b {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--white);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filters button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
}

.filters button.active,
.filters button:hover {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.case-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: transform .28s ease, opacity .24s ease;
}

.case-card:focus-visible {
  outline: 3px solid rgba(40, 169, 232, .45);
  outline-offset: 4px;
}

.case-card.is-hidden {
  display: none;
}

.case-card:hover {
  transform: translateY(-6px);
}

.case-card.wide {
  grid-column: span 2;
  min-height: 280px;
}

.case-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .6s ease;
}

.case-card:hover img {
  transform: scale(1.05);
}

.case-card div {
  position: absolute;
  inset: auto 14px 14px 14px;
  padding: 16px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(16, 42, 67, .86), rgba(16, 42, 67, .52));
  backdrop-filter: blur(10px);
}

.case-card span {
  display: block;
  margin-bottom: 6px;
  color: #b7e8ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-card h3 {
  margin: 0;
  color: var(--white);
}

.case-card em {
  display: inline-flex;
  margin-top: 10px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-style: normal;
}

.qr-card img {
  padding: 42px;
  object-fit: contain;
  background: var(--white);
}

.qr-wall {
  padding-top: 40px;
}

.qr-track {
  display: grid;
  grid-template-columns: repeat(9, minmax(110px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.qr-track img {
  width: 100%;
  min-width: 110px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact {
  padding-bottom: 110px;
}

.about {
  padding-top: 42px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 26px;
}

.about-copy {
  padding: clamp(26px, 4vw, 42px);
  border-left: 6px solid var(--blue);
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-facts {
  display: grid;
  gap: 14px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 42px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(239, 248, 255, .9)),
    url("/ai-case-assets/image44.jpeg") center / cover;
  box-shadow: var(--shadow);
}

dl {
  display: grid;
  gap: 14px;
  margin: 28px 0 28px;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 18px;
}

dd a {
  color: var(--blue);
  text-decoration: none;
}

figure {
  margin: 0;
  align-self: center;
  padding: 18px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--white);
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 22px;
}

.asset-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 22px;
}

.asset-modal.is-open {
  display: grid;
}

.asset-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 44px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #071626;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.asset-dialog h3 {
  margin: 0;
  padding: 16px 64px 16px 20px;
  color: var(--white);
  font-size: 18px;
  background: rgba(255, 255, 255, .06);
}

.asset-dialog .modal-close {
  right: 12px;
  top: 10px;
}

.asset-body {
  padding: 20px;
  overflow-x: hidden;
}

.asset-body img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: var(--white);
}

.asset-body p {
  color: rgba(255, 255, 255, .78);
  line-height: 1.8;
}

.asset-intro {
  margin-bottom: 14px;
}

.asset-intro h4,
.video-list-title {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.25;
}

.asset-intro p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.75;
}

.image-preview-layout {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.image-preview-layout img {
  border: 1px solid rgba(255, 255, 255, .12);
}

.asset-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #000;
}

.video-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.video-player-pane,
.video-list-pane {
  min-width: 0;
}

.video-list-pane {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
}

.asset-file-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.asset-file-list li {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  font-size: 14px;
  line-height: 1.45;
}

.asset-file-list button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.asset-file-list button:hover,
.asset-file-list button.active {
  color: var(--white);
  background: rgba(40, 169, 232, .32);
}

.video-modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 22, 38, .72);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  background: #071626;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.modal-dialog h3 {
  margin: 0;
  padding: 16px 20px;
  color: var(--white);
  font-size: 18px;
  background: rgba(255, 255, 255, .06);
}

.modal-dialog video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #071626;
}

.external-preview {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #071626;
}

.external-preview[hidden] {
  display: none;
}

.external-preview iframe {
  width: 100%;
  height: min(70vh, 680px);
  border: 0;
  background: var(--white);
}

.external-preview .primary-btn {
  justify-self: start;
}

.modal-close {
  position: absolute;
  right: -12px;
  top: -12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: var(--navy);
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .showreel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .flat-gallery,
  .video-category-grid,
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .material-group-head {
    grid-template-columns: auto 1fr;
  }

  .material-group-head .ghost-btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: 44px;
  }

  .service-grid,
  .flat-gallery,
  .video-category-grid,
  .stats-strip,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card,
  .case-card.wide {
    grid-column: auto;
    min-height: 310px;
  }

  .contact-panel {
    padding: 24px;
  }

  .material-group-head {
    grid-template-columns: 1fr;
  }

  .material-group-head > span,
  .material-group-head .ghost-btn {
    grid-column: auto;
  }

  .asset-file-list {
    grid-template-columns: 1fr;
  }

  .video-preview-layout {
    grid-template-columns: 1fr;
  }

  .video-list-pane {
    max-height: none;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
