:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #68645f;
  --paper: #f7f4ee;
  --paper-strong: #fffdf8;
  --line: #d9d2c7;
  --red: #c94b3d;
  --blue: #38566f;
  --green: #61725a;
  --charcoal: #202020;
  --shadow: 0 20px 55px rgba(20, 20, 20, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  min-width: 42px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.42) 44%, rgba(10, 10, 10, 0.08)),
    linear-gradient(0deg, rgba(10, 10, 10, 0.54), rgba(10, 10, 10, 0.03) 48%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 84px) clamp(52px, 9vw, 96px);
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd3cb;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.68;
}

.hero-actions,
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 800;
}

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

.button.secondary {
  color: #fff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.metrics div {
  min-height: 132px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 84px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.intro-grid p,
.section-heading p,
.method-copy p,
.contact-panel p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.78;
}

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

.section-heading p {
  max-width: 410px;
  margin-bottom: 8px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.program-card {
  min-height: 520px;
  padding: clamp(26px, 4vw, 42px);
  border-right: 1px solid var(--line);
  background: #fffdf8;
}

.program-card:last-child {
  border-right: 0;
}

.program-card span,
.case-type,
.insight-list span {
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.program-card h3 {
  margin: 96px 0 22px;
}

.program-card p,
.program-card li,
.case-grid p,
.timeline span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.program-card ul {
  margin: 28px 0 0;
  padding-left: 18px;
}

.program-card.dark {
  background: var(--charcoal);
  color: #fff;
}

.program-card.dark p,
.program-card.dark li {
  color: rgba(255, 255, 255, 0.72);
}

.program-card.accent {
  background: #e7ece8;
}

.method-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(36px, 7vw, 110px);
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 84px);
  background: var(--charcoal);
  color: #fff;
}

.method-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline strong {
  color: #fff;
  font-size: 22px;
}

.timeline span {
  color: rgba(255, 255, 255, 0.72);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.case-grid article {
  min-height: 310px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper-strong);
}

.case-type {
  margin-bottom: 70px;
}

.insight-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 100px);
  padding: clamp(72px, 10vw, 118px) clamp(18px, 6vw, 84px);
  background: #e6ddd0;
}

.insight-list {
  border-top: 1px solid rgba(20, 20, 20, 0.18);
}

.insight-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.18);
}

.insight-list strong {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.22;
}

.contact {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 84px);
  background: var(--blue);
  color: #fff;
}

.contact-panel {
  max-width: 920px;
  flex-direction: column;
  align-items: flex-start;
}

.contact-panel h2 {
  margin-bottom: 24px;
}

.contact-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 6vw, 84px);
  background: #101010;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid rgba(20, 20, 20, 0.12);
    background: var(--paper-strong);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.34)),
      linear-gradient(0deg, rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.1) 55%);
  }

  .metrics,
  .intro-grid,
  .section-heading,
  .program-grid,
  .method-band,
  .case-grid,
  .insight-band {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .metrics div,
  .program-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .program-card {
    min-height: auto;
  }

  .program-card h3,
  .case-type {
    margin-top: 56px;
    margin-bottom: 18px;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 160px;
    line-height: 1.2;
  }

  .hero-content {
    margin-bottom: 42px;
  }

  .button {
    width: 100%;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .insight-list a {
    grid-template-columns: 40px 1fr;
  }
}
