:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-soft: #e8f2ff;
  --green: #2f6b4f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 12%, rgba(0, 113, 227, 0.12), transparent 28rem),
    radial-gradient(circle at 8% 30%, rgba(130, 180, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 46%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.58;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1d1d1f, #606067);
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.nav a {
  border-radius: 999px;
  padding: 7px 12px;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.055);
}

.hero {
  display: grid;
  min-height: calc(100vh - 59px);
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 6vw, 84px) 76px;
}

.hero-copy {
  max-width: 910px;
}

.eyebrow,
.case-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 840px;
  font-size: clamp(48px, 8vw, 102px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 740;
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.24;
}

.hero-lede {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.14);
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.ghost {
  color: var(--blue);
  border-color: rgba(0, 113, 227, 0.18);
  background: rgba(255, 255, 255, 0.64);
}

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

.metric {
  min-height: 158px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.section {
  padding: 96px clamp(20px, 6vw, 84px);
}

.section.compact {
  padding-top: 82px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.22fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 42px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: stretch;
}

.bio,
.contact,
.skills-grid article,
.sop-grid article,
.video-card,
.script-card,
.process-gallery figure {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
}

.bio {
  display: grid;
  align-content: end;
  min-height: 320px;
  padding: 30px;
}

.bio p:last-child,
.contact p:last-of-type {
  margin-bottom: 0;
}

.skills-grid,
.sop-grid,
.video-grid,
.process-gallery {
  display: grid;
  gap: 18px;
}

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

.sop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-grid,
.process-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skills-grid article,
.sop-grid article {
  min-height: 240px;
  padding: 26px;
  transition: transform 260ms ease, background 260ms ease;
}

.skills-grid article:hover,
.sop-grid article:hover {
  transform: translateY(-4px);
  background: var(--surface-strong);
}

.skills-grid span,
.sop-grid span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.skills-grid p,
.sop-grid p,
.video-card p,
.script-content p,
.script-content li,
.contact p,
.bio p {
  color: var(--muted);
}

.process-gallery figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.process-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.process-gallery figure:hover img {
  transform: scale(1.035);
}

.video-card {
  overflow: hidden;
  background: #fff;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.13);
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  background: #000;
}

.video-card div {
  padding: 22px;
}

.script-library {
  display: grid;
  gap: 14px;
}

.script-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  transition: background 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.script-card[open] {
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.1);
}

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

.script-card summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

.script-card summary::-webkit-details-marker {
  display: none;
}

.script-card summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 22px;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease;
}

.script-card[open] summary::after {
  transform: rotate(45deg);
  background: #d6eaff;
}

.script-card summary span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.script-card summary strong {
  font-size: 20px;
  line-height: 1.22;
}

.script-card summary em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

.script-content {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px clamp(22px, 4vw, 46px) 36px;
}

.script-content h4 {
  margin: 8px 0 -8px;
  color: var(--ink);
  font-size: 18px;
}

.script-meta {
  display: grid;
  gap: 10px;
  border-left: 3px solid var(--blue);
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--blue-soft);
}

.script-meta p,
.script-content p:last-child {
  margin-bottom: 0;
}

.contact {
  margin: 40px clamp(20px, 6vw, 84px) 84px;
  padding: clamp(36px, 7vw, 84px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(232, 242, 255, 0.72)),
    rgba(255, 255, 255, 0.88);
}

.contact p {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 740ms ease, transform 740ms ease;
}

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

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

@media (max-width: 1080px) {
  .sop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .hero,
  .about-layout,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .video-grid,
  .process-gallery {
    grid-template-columns: 1fr;
  }

  .video-card {
    display: grid;
    grid-template-columns: 170px 1fr;
  }

  .video-card video {
    height: 100%;
    aspect-ratio: auto;
  }

  .script-card summary {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .script-card summary em {
    grid-column: 2;
    white-space: normal;
  }

  .script-card summary::after {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-panel,
  .skills-grid,
  .sop-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 126px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

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

  .video-card video {
    aspect-ratio: 9 / 12;
  }
}
