:root {
  --ink: #151515;
  --muted: #60656f;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #ded9cf;
  --green: #31594c;
  --coral: #d7654f;
  --gold: #c89b3c;
  --blue: #315d85;
  --shadow: 0 24px 70px rgba(30, 34, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    scroll-behavior: smooth;
  }
}

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

img {
  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: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
}

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

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current] {
  color: var(--ink);
  font-weight: 800;
}

.hero {
  display: grid;
  min-height: calc(100vh - 64px);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(48px, 9vw, 112px) clamp(20px, 6vw, 80px) 64px;
}

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

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

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

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.hero-lede {
  max-width: 690px;
  color: #373b41;
  font-size: clamp(18px, 2vw, 23px);
}

.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 var(--ink);
  border-radius: 4px;
  padding: 10px 18px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 34, 40, 0.14);
}

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

.button.ghost {
  background: transparent;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.metric {
  min-height: 160px;
  padding: 28px;
  background: var(--surface);
}

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

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

.section {
  padding: 86px clamp(20px, 6vw, 80px);
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.about-layout,
.writing-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: start;
}

.bio,
.case-band,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.bio {
  padding: 30px;
}

.bio p:last-child,
.result-copy:last-child,
.writing-copy p:last-child {
  margin-bottom: 0;
}

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

.skills-grid article,
.playbook article,
.video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.skills-grid article {
  min-height: 210px;
  padding: 26px;
}

.skills-grid span {
  color: var(--gold);
  font-weight: 850;
}

.skills-grid p,
.video-card p,
.playbook p,
.case-band p,
.result-copy,
.writing-copy p,
.writing-copy li,
.contact p {
  color: var(--muted);
}

.case-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 34px;
}

.case-band h3 {
  font-size: clamp(34px, 5vw, 64px);
}

.case-facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.case-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.case-facts dt {
  color: var(--blue);
  font-weight: 800;
}

.case-facts dd {
  margin: 0;
  color: #31353a;
}

.result-copy {
  max-width: 980px;
  margin: 24px 0 0;
  font-size: 19px;
}

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

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

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(30, 34, 40, 0.14);
}

.video-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  background: #ddd;
  transition: transform 700ms ease;
}

.video-card:hover img {
  transform: scale(1.04);
}

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

.writing-copy {
  border-left: 4px solid var(--coral);
  padding: 6px 0 6px 24px;
}

.writing-copy ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  object-fit: cover;
}

.script-library {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.script-intro {
  max-width: 780px;
}

.script-intro p:last-child {
  color: var(--muted);
}

.script-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(30, 34, 40, 0.06);
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.script-card[open] {
  border-color: rgba(215, 101, 79, 0.48);
  box-shadow: var(--shadow);
}

.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: 78px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

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

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

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

.script-card summary span {
  color: var(--gold);
  font-weight: 850;
}

.script-card summary strong {
  font-size: 19px;
  line-height: 1.25;
}

.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(--green);
  font-size: 18px;
}

.script-content p,
.script-content li {
  color: #3d4147;
}

.script-content ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.script-meta {
  display: grid;
  gap: 10px;
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  background: #fbfaf6;
}

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

.script-lines {
  display: grid;
  gap: 10px;
}

.script-lines p {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fbfaf6;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms 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;
  }
}

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

.playbook article {
  min-height: 220px;
  padding: 28px;
}

.playbook article:nth-child(1) {
  border-top: 6px solid var(--green);
}

.playbook article:nth-child(2) {
  border-top: 6px solid var(--gold);
}

.playbook article:nth-child(3) {
  border-top: 6px solid var(--blue);
}

.contact {
  margin: 40px clamp(20px, 6vw, 80px) 80px;
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
}

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

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

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

  .hero,
  .about-layout,
  .case-band,
  .writing-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .video-card img {
    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: 36px;
  }

  h1 {
    font-size: 42px;
  }

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

  .metric {
    min-height: 124px;
  }

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

  .section-heading {
    display: block;
  }

  .case-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

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