:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #747f8d;
  --line: #edf0f5;
  --card: #ffffff;
  --blue: #3f78f2;
  --purple: #243761;
  --accent: #477cff;
  --shadow: 0 18px 48px rgba(27, 43, 72, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #f5f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #f5f7fb;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 80px rgba(21, 31, 50, 0.12);
}

.hero {
  position: relative;
  min-height: 528px;
  padding: calc(env(safe-area-inset-top, 0px) + 42px) 24px 82px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, #080d19 0%, #182a52 45%, #4179f1 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -12%;
  bottom: -30px;
  left: -12%;
  height: 76px;
  background: #fff;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.avatar-wrap,
.hero h1,
.role,
.company,
.slogan {
  position: relative;
  z-index: 1;
}

.avatar-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 23px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 44px rgba(34, 52, 92, 0.2);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.hero h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 850;
  line-height: 1.08;
  text-shadow: 0 3px 22px rgba(41, 49, 95, 0.18);
}

.role {
  margin: 13px 0 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(41, 49, 95, 0.16);
}

.company {
  width: fit-content;
  max-width: 100%;
  margin: 15px auto 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

.slogan {
  max-width: 342px;
  margin: 19px auto 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.62;
  text-align: left;
}

.capability-strip {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  margin-top: -58px;
  padding: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.capability-strip::-webkit-scrollbar {
  display: none;
}

.capability-card {
  flex: 0 0 154px;
  min-height: 116px;
  padding: 15px 14px 14px;
  border: 1px solid rgba(235, 239, 247, 0.92);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(31, 56, 93, 0.13);
  scroll-snap-align: start;
}

.capability-card:first-child {
  margin-left: 22px;
}

.capability-card:last-child {
  margin-right: 22px;
}

.capability-card span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.capability-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.25;
}

.capability-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.content {
  padding: 30px 22px calc(34px + env(safe-area-inset-bottom, 0px));
}

.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 42px rgba(21, 34, 58, 0.07);
}

.contact-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row:active,
.showcase-media:active,
.primary-action:active {
  transform: scale(0.98);
}

.contact-icon {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  background: #f7f8fb;
}

.contact-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.contact-icon img[src$="logo.png"] {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.contact-row strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.34;
}

.section-block {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 23px;
  line-height: 1.2;
}

.case-group {
  margin-top: 22px;
}

.case-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 13px;
}

.case-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.case-group-head span {
  color: var(--muted);
  font-size: 12px;
}

.case-deck {
  display: flex;
  gap: 0;
  margin-right: -22px;
  padding: 4px 22px 18px 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  perspective: 900px;
}

.case-deck::-webkit-scrollbar {
  display: none;
}

.showcase-card {
  flex: 0 0 calc(100% - 44px);
  overflow: hidden;
  margin-right: -16px;
  border: 1px solid rgba(237, 240, 245, 0.95);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(21, 34, 58, 0.12);
  scroll-snap-align: start;
  transform: rotate(var(--tilt, -1.2deg)) translateY(var(--lift, 0));
  transform-origin: 50% 96%;
}

.showcase-card:nth-child(2n) {
  --tilt: 1.1deg;
  --lift: 5px;
}

.showcase-card:nth-child(3n) {
  --tilt: -0.4deg;
  --lift: 2px;
}

.showcase-card:first-child {
  position: relative;
  z-index: 4;
}

.showcase-card:nth-child(2) {
  z-index: 3;
}

.showcase-card:nth-child(3) {
  z-index: 2;
}

.showcase-card:nth-child(4) {
  z-index: 1;
}

.showcase-card:last-child {
  margin-right: 12px;
}

.showcase-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #111827;
  color: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}

.showcase-media::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  opacity: 0.78;
}

.showcase-media img,
.showcase-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.case-deck:not(.image-deck) .showcase-media video {
  aspect-ratio: 16 / 12;
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 780;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.case-body {
  padding: 17px 18px 19px;
}

.case-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
}

.case-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.28;
}

.case-body p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 12, 24, 0.58);
  backdrop-filter: blur(12px);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(392px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 26px;
  padding: 28px 22px 24px;
  background: #fff;
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.modal-panel h2 {
  margin: 0;
  font-size: 22px;
}

.modal-panel p {
  margin: 10px auto 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #697386;
  background: #f3f5f8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.qr-image {
  display: block;
  width: min(260px, 78vw);
  margin: 0 auto 18px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(21, 34, 58, 0.1);
}

.wide-image {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(21, 34, 58, 0.1);
}

.primary-action {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #6ab8ff, #9b78f2);
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
}

.media-panel {
  padding: 52px 12px 14px;
  background: #0a0f1c;
  color: #fff;
}

.media-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.media-panel .close-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.modal-video {
  display: block;
  width: 100%;
  max-height: 74vh;
  border-radius: 18px;
  background: #000;
}

.modal-image {
  display: block;
  width: 100%;
  max-height: 74vh;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
}

.media-fallback {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 700px) {
  body {
    padding: 28px 0;
  }

  .page-shell {
    min-height: auto;
    border-radius: 34px;
  }

  .modal {
    align-items: center;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .capability-strip {
    padding-left: 0;
  }

  .capability-card {
    flex-basis: 146px;
  }

  .content {
    padding-right: 16px;
    padding-left: 16px;
  }
}
