:root {
  --bg: #f6f8f3;
  --paper: #ffffff;
  --ink: #17231d;
  --muted: #657268;
  --line: #dce4dc;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #dff5ef;
  --warm: #b7791f;
  --warm-soft: #fff1d7;
  --shadow: 0 18px 50px rgba(23, 35, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Hiragino Sans GB",
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 5vw;
  background: rgba(246, 248, 243, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 26px rgba(23, 35, 29, 0.08);
}

.brand,
.nav,
.hero-actions,
.contact-strip,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
}

.nav {
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-strong);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.header-cta {
  color: var(--accent-strong);
  background: #ffffff;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.secondary {
  color: var(--accent-strong);
  background: #ffffff;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  padding: 80px 5vw 70px;
  background:
    linear-gradient(110deg, rgba(246, 248, 243, 0.98) 0%, rgba(246, 248, 243, 0.88) 52%, rgba(223, 245, 239, 0.9) 100%),
    url("./assets/site-growth-dashboard.png") center / cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40vw;
  height: 34vh;
  content: "";
  background: linear-gradient(135deg, rgba(183, 121, 31, 0.14), rgba(15, 118, 110, 0.18));
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
  gap: min(7vw, 80px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(54px, 8vw, 94px);
  line-height: 1;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.35;
}

.hero-subtitle {
  margin-bottom: 20px;
  color: var(--accent-strong);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: #34443a;
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-strip {
  flex-wrap: wrap;
  gap: 10px;
  color: #2d3d33;
}

.contact-strip span {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 228, 220, 0.9);
  border-radius: 8px;
}

.hero-portrait {
  justify-self: end;
  width: min(100%, 315px);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 8px solid #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: 86px 5vw;
  scroll-margin-top: 86px;
}

.section-head {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.impact-band,
.skills-band {
  background: #ffffff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.metric {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric time,
.project-time {
  display: block;
  margin-bottom: 10px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 30px;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 35, 29, 0.09);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: #eef3ef;
}

.project-content {
  padding: clamp(28px, 4vw, 48px);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.project-content p,
.timeline-item p,
.contact-section p,
.skills-layout p {
  color: var(--muted);
}

.project-time {
  margin-top: -4px;
  color: var(--warm);
}

.project-content ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.project-content li {
  position: relative;
  padding-left: 20px;
  font-weight: 700;
}

.project-content li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--warm);
  border-radius: 50%;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.skills-layout article {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding: 24px 28px 24px 34px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-item::before {
  position: absolute;
  top: 30px;
  left: 18px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.timeline-item span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--warm);
  font-size: 14px;
  font-weight: 800;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.96), rgba(23, 35, 29, 0.94)),
    url("./assets/ai-marketing-studio.png") center / cover;
}

.contact-section > div:first-child {
  max-width: 760px;
}

.contact-section .eyebrow,
.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section .button.secondary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 5vw;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-inner,
  .project-card,
  .skills-layout {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    justify-self: start;
    width: min(72vw, 300px);
  }

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

  .project-card img {
    min-height: 280px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    align-self: center;
  }

  .header-cta {
    width: 100%;
  }

  .nav {
    overflow-x: auto;
    justify-content: center;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding: 24px 0 38px;
    background-position: center top;
  }

  .hero::after {
    width: 70vw;
    height: 18vh;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 128px);
    gap: 12px 14px;
    align-items: start;
    width: 100%;
    max-width: none;
    padding: 0 4.5vw;
  }

  .hero-copy {
    display: contents;
    max-width: none;
    text-align: center;
  }

  .hero-copy > .eyebrow,
  .hero-copy > h1,
  .hero-copy > .hero-subtitle,
  .hero-copy > .hero-text {
    grid-column: 1;
    text-align: center;
  }

  .hero-copy > .eyebrow {
    grid-row: 1;
  }

  .hero-copy > h1 {
    grid-row: 2;
  }

  .hero-copy > .hero-subtitle {
    grid-row: 3;
  }

  .hero-copy > .hero-text {
    grid-row: 4;
  }

  .hero-portrait {
    grid-column: 2;
    grid-row: 1 / span 4;
    order: 0;
    justify-self: end;
    align-self: start;
    width: min(32vw, 128px);
    margin-top: 4px;
  }

  .hero-portrait img {
    border-width: 5px;
    box-shadow: 0 12px 30px rgba(23, 35, 29, 0.16);
  }

  .eyebrow {
    margin-bottom: 7px;
    font-size: 10px;
    line-height: 1.35;
  }

  h1 {
    margin-bottom: 7px;
    font-size: clamp(42px, 14vw, 54px);
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(28px, 10vw, 38px);
  }

  .hero-subtitle {
    margin-bottom: 11px;
    font-size: clamp(18px, 5.7vw, 23px);
    line-height: 1.32;
  }

  .hero-text {
    margin-bottom: 16px;
    font-size: 15.5px;
    line-height: 1.58;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions {
    align-items: center;
    grid-column: 1 / -1;
    grid-row: 5;
    margin-bottom: 12px;
  }

  .button {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .contact-strip {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 6;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 13.5px;
    width: 100%;
  }

  .contact-strip span {
    overflow-wrap: anywhere;
    padding: 6px 8px;
    text-align: center;
  }

  .contact-strip span:nth-child(4) {
    grid-column: auto;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric {
    padding: 20px;
  }

  .metric strong {
    font-size: 28px;
  }

  .section {
    padding: 54px 4.5vw;
    scroll-margin-top: 18px;
  }

  .section-head {
    margin-bottom: 26px;
    text-align: left;
  }

  .section-head p:not(.eyebrow) {
    font-size: 16px;
  }

  .project-card {
    border-radius: 8px;
  }

  .project-card img {
    min-height: 210px;
    max-height: 250px;
    object-fit: cover;
  }

  .project-content {
    padding: 22px;
  }

  .tag {
    margin-bottom: 12px;
  }

  .project-time {
    margin-bottom: 8px;
  }
}
