:root {
  --bg: #f7f3e8;
  --bg-soft: #f0ead9;
  --paper: rgba(255, 252, 245, 0.88);
  --paper-strong: #fffdf7;
  --ink: #183227;
  --ink-soft: #425649;
  --line: rgba(24, 50, 39, 0.12);
  --brand: #0f6a3b;
  --brand-deep: #0a4e2b;
  --gold: #c9b02d;
  --gold-soft: #f0e16a;
  --shadow: 0 24px 60px rgba(15, 64, 34, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1160px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 225, 106, 0.24), transparent 28%),
    radial-gradient(circle at right 12%, rgba(15, 106, 59, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f4ea 0%, #f6f1e6 44%, #f1ebdd 100%);
  line-height: 1.7;
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 28rem;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.5;
}

.page-glow-left {
  top: -10rem;
  left: -8rem;
  background: rgba(240, 225, 106, 0.42);
}

.page-glow-right {
  top: 22rem;
  right: -10rem;
  background: rgba(15, 106, 59, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 232, 0.72);
  border-bottom: 1px solid rgba(24, 50, 39, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

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

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 106, 59, 0.14);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong,
.hero h1,
.section h2,
.service-card h3,
.story-copy h3,
.hero-card h2 {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.brand strong {
  font-size: 1.05rem;
}

.brand em {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
}

.hero {
  padding: 72px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.9fr);
  gap: 30px;
  align-items: stretch;
}

.eyebrow,
.section-kicker,
.mini-label,
.badge {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow,
.section-kicker,
.mini-label {
  color: var(--brand);
  font-weight: 700;
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.06;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.04rem;
  color: var(--ink-soft);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #12834a 100%);
  color: white;
  box-shadow: 0 18px 34px rgba(15, 106, 59, 0.18);
}

.button-secondary {
  border-color: rgba(15, 106, 59, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-deep);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 0;
}

.hero-stats div,
.hero-card,
.service-card,
.story-card,
.credential-shot,
.credential-stamp,
.contact-card {
  border: 1px solid rgba(24, 50, 39, 0.08);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.hero-stats dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 242, 229, 0.92)),
    var(--paper);
  padding: 28px;
}

.hero-card-main::after {
  content: "";
  position: absolute;
  inset: auto -15% -45% auto;
  width: 260px;
  height: 260px;
  border-radius: 46px;
  background: linear-gradient(135deg, rgba(240, 225, 106, 0.4), rgba(15, 106, 59, 0.18));
  transform: rotate(28deg);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: white;
  background: var(--brand-deep);
}

.hero-card h2 {
  position: relative;
  z-index: 1;
  margin: 18px 0 10px;
  font-size: 1.9rem;
  line-height: 1.2;
}

.hero-card p,
.summary-list {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
}

.hero-card-media {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 22px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-card-media img {
  width: min(100%, 360px);
  border-radius: 18px;
}

.summary-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.trust-strip {
  padding: 18px 0 6px;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-strip-inner p {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(24, 50, 39, 0.08);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
}

.section {
  padding: 86px 0;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.4)),
    rgba(240, 234, 217, 0.56);
}

.section-deep {
  background:
    radial-gradient(circle at top right, rgba(240, 225, 106, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(14, 88, 49, 0.98), rgba(10, 62, 35, 0.98));
  color: #f7f4e8;
}

.section-contact {
  padding-top: 32px;
}

.two-column,
.credential-layout,
.contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.section h2 {
  margin: 12px 0 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.18;
}

.section-copy p,
.section-note {
  color: var(--ink-soft);
}

.section-head {
  max-width: 820px;
}

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

.service-card {
  min-height: 230px;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.story-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(24, 50, 39, 0.08);
  background: rgba(255, 255, 255, 0.78);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(240, 225, 106, 0.56), rgba(15, 106, 59, 0.52)) border-box;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.story-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.story-card:hover,
.story-card:focus-within {
  transform: translateY(-12px);
  border-color: rgba(15, 106, 59, 0.2);
  box-shadow: 0 34px 72px rgba(12, 46, 27, 0.2);
}

.story-card:hover::after,
.story-card:focus-within::after {
  opacity: 1;
}

.story-trigger:focus-visible {
  outline: none;
}

.story-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  background: #151515;
  transition:
    transform 320ms ease,
    filter 320ms ease;
}

.story-card:hover img,
.story-card:focus-within img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.story-copy {
  padding: 20px 22px 24px;
  transition: background-color 260ms ease;
}

.story-card:hover .story-copy,
.story-card:focus-within .story-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 232, 0.96));
}

.story-copy span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.88rem;
}

.story-copy h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.35;
}

.story-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.story-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--brand-deep);
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    transform 220ms ease,
    color 220ms ease;
}

.story-card:hover .story-link,
.story-card:focus-within .story-link {
  color: var(--brand);
  transform: translateX(4px);
}

.section-deep .section-kicker,
.section-deep .credential-note,
.section-deep .credential-list dt {
  color: rgba(247, 244, 232, 0.72);
}

.section-deep p {
  color: rgba(247, 244, 232, 0.88);
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin: 26px 0 0;
}

.credential-list div {
  padding-top: 14px;
  border-top: 1px solid rgba(247, 244, 232, 0.14);
}

.credential-list dt {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.credential-list dd {
  margin: 0;
  font-weight: 700;
}

.credential-media {
  display: grid;
  gap: 18px;
  align-content: start;
}

.credential-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.credential-shot img {
  width: 100%;
}

.credential-shot figcaption {
  padding: 14px 18px 18px;
  color: rgba(247, 244, 232, 0.72);
}

.contact-card {
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 239, 225, 0.92));
}

.contact-meta {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
}

.contact-meta p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.site-footer {
  padding: 28px 0 42px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 21, 0.62);
  backdrop-filter: blur(10px);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 24px));
  height: min(920px, calc(100vh - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(24, 50, 39, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 252, 245, 0.98), rgba(244, 238, 223, 0.96));
  box-shadow: 0 32px 80px rgba(8, 24, 18, 0.28);
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 1px solid rgba(24, 50, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  padding: 10px 16px;
  cursor: pointer;
}

.project-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 0;
  height: 100%;
  min-height: 0;
}

.project-modal-copy {
  padding: 40px 32px 28px;
  overflow: auto;
  min-height: 0;
  border-right: 1px solid rgba(24, 50, 39, 0.08);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.project-modal-tag {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-modal-copy h3 {
  margin: 0 0 14px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 2rem;
  line-height: 1.22;
}

.project-modal-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.project-modal-points {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.project-modal-points li + li {
  margin-top: 10px;
}

.project-modal-media {
  padding: 24px;
  overflow: auto;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(236, 230, 213, 0.78), rgba(250, 247, 239, 0.94));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.project-modal-caption {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.project-modal-media img {
  width: min(100%, 920px);
  margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(12, 28, 21, 0.18);
}

body.modal-open {
  overflow: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

@media (max-width: 1120px) {
  .hero-grid,
  .two-column,
  .credential-layout,
  .contact-card,
  .story-grid,
  .service-grid,
  .trust-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(24, 50, 39, 0.08);
    background: rgba(255, 252, 245, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero-grid,
  .hero-stats,
  .two-column,
  .credential-layout,
  .contact-card,
  .story-grid,
  .service-grid,
  .trust-strip-inner,
  .credential-list {
    grid-template-columns: 1fr;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-card,
  .contact-card {
    padding: 24px;
  }

  .story-card img {
    height: 400px;
  }

  .project-modal-panel {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    border-radius: 24px;
  }

  .project-modal-grid {
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
  }

  .project-modal-copy {
    padding: 56px 20px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(24, 50, 39, 0.08);
  }

  .project-modal-copy h3 {
    font-size: 1.6rem;
  }

  .project-modal-media {
    padding: 14px;
  }

  .project-modal-media img {
    width: 100%;
    margin: 0 auto 16px;
    border-radius: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav a::after {
    transition: none;
  }
}
