:root {
  --ink: #0d1b2a;
  --ink-soft: #24364a;
  --paper: #f7f1e6;
  --paper-deep: #efe3d1;
  --surface: rgba(255, 252, 244, 0.82);
  --line: rgba(13, 27, 42, 0.14);
  --jade: #1f7a68;
  --jade-dark: #0f5f52;
  --gold: #d5962d;
  --coral: #d95d39;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(13, 27, 42, 0.16);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1160px;
  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 93, 57, 0.2), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(31, 122, 104, 0.24), transparent 34rem),
    linear-gradient(135deg, #fbf6ed 0%, #f2eadc 50%, #e8dbc9 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(13, 27, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 42, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

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

p {
  line-height: 1.8;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 40px), calc(var(--max) + 48px));
  max-width: calc(var(--max) + 48px);
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(247, 241, 230, 0.74);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(255, 252, 244, 0.92);
  border-color: rgba(13, 27, 42, 0.08);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent),
    var(--ink);
  box-shadow: inset 0 -5px 0 rgba(255, 255, 255, 0.08);
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(13, 27, 42, 0.58);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(13, 27, 42, 0.72);
  font-size: 14px;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(13, 27, 42, 0.08);
}

.site-nav .nav-cta {
  color: var(--paper);
  background: var(--jade);
  box-shadow: 0 10px 24px rgba(31, 122, 104, 0.26);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--paper);
  background: var(--jade-dark);
}

.nav-toggle {
  display: none;
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(13, 27, 42, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.nav-toggle em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.74fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 82px 0 58px;
}

.hero-copy {
  min-width: 0;
}

.hero-bg {
  position: absolute;
  inset: 56px -70px auto auto;
  width: 56%;
  height: 76%;
  z-index: -1;
  border-radius: 48px;
  background:
    linear-gradient(135deg, rgba(13, 27, 42, 0.04), transparent 45%),
    repeating-linear-gradient(-35deg, rgba(31, 122, 104, 0.13) 0 2px, transparent 2px 18px);
  transform: rotate(-2deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro-strip h2,
.about-card h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1 span {
  display: inline;
}

.hero-lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(13, 27, 42, 0.72);
  font-size: 18px;
  overflow-wrap: anywhere;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 18px 34px rgba(13, 27, 42, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(13, 27, 42, 0.16);
  background: rgba(255, 252, 244, 0.72);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 44px 0 0;
}

.hero-metrics div {
  min-height: 112px;
  padding: 20px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 24px;
  background: rgba(255, 252, 244, 0.58);
}

.hero-metrics dt {
  margin-bottom: 18px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(13, 27, 42, 0.74);
  font-weight: 700;
}

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(150deg, rgba(255, 252, 244, 0.9), rgba(239, 227, 209, 0.72)),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(31, 122, 104, 0.18);
}

.panel-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(13, 27, 42, 0.72);
}

.panel-header strong {
  color: var(--ink);
}

.panel-header small {
  margin-left: auto;
  color: rgba(13, 27, 42, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 7px rgba(31, 122, 104, 0.13);
  animation: pulse 1.8s ease-in-out infinite;
}

.audit-card {
  position: relative;
  margin-top: 26px;
  padding: 26px;
  border-radius: 28px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(213, 150, 45, 0.2), transparent),
    var(--ink);
}

.audit-label {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.audit-card b {
  display: block;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 34px;
}

.audit-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.check-list {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(13, 27, 42, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.check-list span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(31, 122, 104, 0.13);
}

.check-list span::before {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--jade);
  border-bottom: 2px solid var(--jade);
  transform: rotate(-45deg) translate(1px, -1px);
}

.intro-strip {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 32px;
  align-items: end;
  margin-top: -8px;
  padding: 34px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.74), rgba(239, 227, 209, 0.84)),
    var(--surface);
  box-shadow: 0 18px 60px rgba(13, 27, 42, 0.08);
}

.intro-strip h2,
.section-heading h2,
.about-card h2,
.contact-copy h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.intro-strip p:last-child {
  margin: 0;
  color: rgba(13, 27, 42, 0.68);
}

.services,
.process,
.insights,
.about,
.contact {
  padding: 110px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(13, 27, 42, 0.66);
}

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

.service-card,
.article-card,
.about-card,
.contact-card {
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 244, 0.72);
  box-shadow: 0 18px 50px rgba(13, 27, 42, 0.07);
}

.service-card {
  min-height: 260px;
  padding: 26px;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 252, 244, 0.92);
  box-shadow: 0 30px 70px rgba(13, 27, 42, 0.14);
}

.service-index {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--jade);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  background: rgba(31, 122, 104, 0.12);
}

.service-card h3,
.article-card h3,
.timeline h3 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.service-card p,
.article-card p,
.timeline p,
.about-card p,
.contact-copy p,
.contact-note,
.footer-disclaimer {
  color: rgba(13, 27, 42, 0.67);
}

.service-card-accent {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(31, 122, 104, 0.92), rgba(13, 27, 42, 0.94)),
    var(--ink);
}

.service-card-accent .service-index {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.13);
}

.service-card-accent p {
  color: rgba(255, 252, 244, 0.7);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.timeline li {
  position: relative;
  min-height: 290px;
  padding: 26px;
  border-top: 4px solid var(--jade);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: rgba(255, 252, 244, 0.7);
  overflow: hidden;
}

.timeline li::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(13, 27, 42, 0.1);
}

.timeline span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
}

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

.article-card {
  display: flex;
  min-height: 330px;
  padding: 26px;
  flex-direction: column;
}

.article-kicker {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  background: rgba(217, 93, 57, 0.11);
}

.article-card a {
  margin-top: auto;
  color: var(--jade);
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.about-card {
  padding: 34px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--jade-dark);
  background: rgba(31, 122, 104, 0.12);
  font-weight: 800;
}

.values {
  display: grid;
  gap: 18px;
}

.values div {
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--paper);
  background: var(--ink);
}

.values div:nth-child(2) {
  background: var(--jade);
}

.values div:nth-child(3) {
  background: var(--gold);
}

.values strong {
  font-family: var(--font-display);
  font-size: 42px;
}

.values p {
  margin: 8px 0 0;
  color: rgba(255, 252, 244, 0.78);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.68fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 96px;
}

.contact-copy p {
  max-width: 640px;
}

.contact-card {
  padding: 30px;
}

.contact-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-card div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-card dt {
  margin-bottom: 7px;
  color: rgba(13, 27, 42, 0.52);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.contact-note {
  margin: 20px 0 0;
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-xl);
  color: var(--paper);
  background:
    radial-gradient(circle at 90% 10%, rgba(31, 122, 104, 0.32), transparent 16rem),
    var(--ink);
}

.footer-brand p {
  margin: 4px 0 0;
  color: rgba(255, 252, 244, 0.62);
}

.site-footer .brand-mark {
  color: var(--ink);
  background: var(--paper);
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-records a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 252, 244, 0.82);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-records a:hover,
.footer-records a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.footer-disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 252, 244, 0.56);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 220ms;
}

.delay-3 {
  animation-delay: 320ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 11px rgba(31, 122, 104, 0.06);
  }
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 28px);
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 10px) 0 auto 0;
    display: none;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 252, 244, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 16px;
  }

  .hero,
  .intro-strip,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

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

@media (max-width: 680px) {
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .brand small {
    display: none;
  }

  .site-header {
    width: auto;
    margin: 12px 14px 0;
    padding: 10px 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 34px;
  }

  .hero-bg {
    display: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.8vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .hero h1 span {
    display: block;
  }

  .hero-lead {
    font-size: 16px;
    word-break: break-all;
  }

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

  .hero-metrics div {
    min-height: auto;
  }

  .intro-strip,
  .about-card,
  .contact-card {
    padding: 24px;
  }

  .services,
  .process,
  .insights,
  .about,
  .contact {
    padding-top: 72px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-records {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
