:root {
  --ink: #17202a;
  --muted: #657080;
  --line: rgba(23, 32, 42, 0.1);
  --paper: #fffdf8;
  --pink: #ff6fae;
  --coral: #ff8b6a;
  --mint: #49d5b7;
  --cyan: #50b8ff;
  --lemon: #ffe66d;
  --violet: #a777ff;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 24px 80px rgba(58, 38, 87, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 111, 174, 0.28), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(80, 184, 255, 0.24), transparent 28%),
    radial-gradient(circle at 78% 42%, rgba(255, 230, 109, 0.32), transparent 24%),
    linear-gradient(135deg, #fff8fb 0%, #fffdf4 42%, #f3fbff 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 32, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 42, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 28px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 50px rgba(80, 70, 120, 0.12);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--violet) 55%, var(--cyan));
  box-shadow: 0 10px 26px rgba(167, 119, 255, 0.32);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  padding: 11px 15px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 24px rgba(80, 70, 120, 0.1);
}

.section {
  position: relative;
  padding: 86px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) 430px;
  align-items: center;
  min-height: calc(100vh - 104px);
  gap: 54px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 34px -40px auto auto;
  width: 280px;
  height: 280px;
  border-radius: 42% 58% 55% 45%;
  background: linear-gradient(135deg, rgba(255, 230, 109, 0.8), rgba(73, 213, 183, 0.38));
  filter: blur(2px);
  z-index: -1;
  animation: floaty 7s ease-in-out infinite;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #7c4dff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  display: inline-flex;
  margin: 24px 0 0;
  padding: 12px 18px;
  color: #6c2f5d;
  border: 1px solid rgba(255, 111, 174, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
  box-shadow: 0 12px 38px rgba(255, 111, 174, 0.12);
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: #3c4653;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
  font-weight: 500;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff579d, #ff8b6a 48%, #a777ff);
  box-shadow: 0 18px 38px rgba(255, 111, 174, 0.32);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 32, 42, 0.09);
  box-shadow: 0 14px 34px rgba(80, 70, 120, 0.1);
}

.hero-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(255, 111, 174, 0.1), rgba(80, 184, 255, 0.12));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.portrait-wrap {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #fff;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge-row span,
.capability-list span {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.hero-card p {
  margin: 18px 4px 4px;
  color: #3f4956;
  line-height: 1.75;
  font-weight: 600;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
}

.metric-card {
  min-height: 172px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(80, 70, 120, 0.1);
}

.metric-card:nth-child(1) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 111, 174, 0.18));
}

.metric-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(73, 213, 183, 0.2));
}

.metric-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(80, 184, 255, 0.2));
}

.metric-card:nth-child(4) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 230, 109, 0.32));
}

.metric-card span {
  display: block;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  font-weight: 900;
}

.metric-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 700;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 34px;
}

.section-title.compact {
  display: block;
  max-width: 820px;
}

.section-title h2,
.case-header h2,
.capability-panel h2,
.contact h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-title p,
.case-header p,
.capability-copy p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 600;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-item,
.service-card,
.project-card,
.contact-card,
.capability-panel,
.capability-copy {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(80, 70, 120, 0.1);
  backdrop-filter: blur(20px);
}

.timeline-item {
  min-height: 270px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.timeline-item span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #7c4dff;
  background: rgba(167, 119, 255, 0.12);
  font-weight: 900;
}

.timeline-item h3,
.service-card h3,
.project-card h3 {
  margin: 22px 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.timeline-item p,
.service-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 600;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.service-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent, rgba(255, 111, 174, 0.3));
}

.service-card:nth-child(1) {
  --accent: rgba(255, 111, 174, 0.26);
}

.service-card:nth-child(2) {
  --accent: rgba(255, 139, 106, 0.26);
}

.service-card:nth-child(3) {
  --accent: rgba(80, 184, 255, 0.24);
}

.service-card:nth-child(4) {
  --accent: rgba(73, 213, 183, 0.28);
}

.service-letter {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  font-size: 24px;
  font-weight: 900;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
}

.case-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.case-header div {
  max-width: 900px;
}

.case-header p {
  margin-top: 18px;
}

.case-header h2 {
  max-width: 900px;
  font-size: clamp(32px, 4.4vw, 56px);
  text-wrap: balance;
}

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

.case-card,
.sample-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 18px 46px rgba(80, 70, 120, 0.13);
  cursor: zoom-in;
}

.case-card.wide {
  grid-column: span 2;
}

.case-card img,
.sample-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.case-card span,
.sample-card span {
  display: block;
  min-height: 58px;
  padding: 16px 16px 8px;
  text-align: left;
  font-weight: 900;
  line-height: 1.35;
}

.case-card p {
  margin: 0;
  min-height: 92px;
  padding: 0 16px 18px;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
}

.sample-card span {
  padding-bottom: 16px;
}

.case-card:hover img,
.sample-card:hover img {
  transform: scale(1.04);
}

.sample-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
}

.sample-card {
  scroll-snap-align: start;
}

.capabilities {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
  align-items: stretch;
}

.capability-panel,
.capability-copy {
  border-radius: var(--radius-lg);
  padding: 32px;
}

.capability-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 111, 174, 0.16)),
    #fff;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.capability-copy {
  display: flex;
  align-items: center;
}

.contact {
  padding-bottom: 110px;
}

.contact-card {
  overflow: hidden;
  position: relative;
  padding: clamp(34px, 7vw, 78px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 230, 109, 0.42), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(80, 184, 255, 0.3), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 237, 246, 0.82));
}

.contact-card h2 {
  max-width: 820px;
}

.contact-card p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 20px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(17, 22, 30, 0.72);
  backdrop-filter: blur(14px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 86vh;
  width: min(1200px, 92vw);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

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

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

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(18px) rotate(8deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav {
    justify-content: flex-end;
  }

  .hero,
  .section-title,
  .capabilities {
    grid-template-columns: 1fr;
  }

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

  .metrics,
  .timeline,
  .service-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    position: relative;
    top: 0;
    display: block;
  }

  .brand {
    margin-bottom: 10px;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .section {
    padding: 58px 0;
  }

  .hero h1 {
    font-size: clamp(48px, 18vw, 76px);
  }

  .hero-subtitle {
    border-radius: 20px;
  }

  .metrics,
  .timeline,
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .case-card.wide {
    grid-column: auto;
  }

  .case-header {
    display: block;
  }

  .case-header .button {
    margin-top: 20px;
  }

  .sample-rail {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .lightbox {
    padding: 14px;
  }
}
