:root {
  --color-bg: #f7f3ea;
  --color-surface: #fffaf2;
  --color-surface-strong: #ffffff;
  --color-primary: #2d8d8a;
  --color-primary-dark: #146561;
  --color-secondary: #f29b78;
  --color-accent: #e6f2ee;
  --color-text: #173332;
  --color-muted: #607978;
  --color-border: rgba(45, 141, 138, 0.18);
  --shadow-soft: 0 18px 50px rgba(31, 90, 86, 0.13);
  --shadow-card: 0 14px 36px rgba(31, 90, 86, 0.1);
  --radius-large: 34px;
  --radius-medium: 22px;
  --radius-small: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(99, 186, 176, 0.28), transparent 32rem),
    linear-gradient(180deg, #fbf7ef 0%, #f7f3ea 48%, #eef6f3 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(242, 155, 120, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary-dark);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(45, 141, 138, 0.12);
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 16px 0;
}

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

.brand-mark {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #7dbfb2);
  box-shadow: 0 10px 24px rgba(20, 101, 97, 0.22);
  font-weight: 800;
  font-size: 14px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--color-primary-dark);
  background: rgba(45, 141, 138, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-strong);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--color-primary-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 88px 0;
  scroll-margin-top: 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 79px);
  padding-top: 64px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 76px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--color-muted);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 14px 28px rgba(20, 101, 97, 0.24);
}

.button-secondary {
  color: var(--color-primary-dark);
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.72);
}

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

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.62);
}

.hero-stats dt {
  color: var(--color-primary-dark);
  font-weight: 900;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.hero-media,
.split-media,
.image-panel,
.image-band {
  position: relative;
}

.hero-media::before,
.split-media::before,
.image-band::before {
  position: absolute;
  inset: 8% -5% -5% 8%;
  z-index: -1;
  border-radius: var(--radius-large);
  background: rgba(242, 155, 120, 0.16);
  content: "";
}

.hero-media img,
.split-media img,
.image-band img,
.image-panel img {
  width: 100%;
  border: 10px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
}

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

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

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

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
}

.about-card,
.work-card,
.outcome-panel,
.contact-card {
  border: 1px solid var(--color-border);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--shadow-card);
}

.about-card {
  border-radius: var(--radius-large);
  padding: 34px;
}

.about-card p {
  color: var(--color-muted);
  font-size: 18px;
}

.about-card-main p:last-child,
.quote-card p:last-child {
  margin-bottom: 0;
}

.legal-note {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-primary-dark) !important;
  background: rgba(45, 141, 138, 0.1);
  font-size: 14px !important;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(45, 141, 138, 0.12), rgba(242, 155, 120, 0.14));
}

.quote-card span {
  color: var(--color-secondary);
  font-family: Georgia, serif;
  font-size: 82px;
  line-height: 0.8;
}

.quote-card p {
  color: var(--color-text);
  font-weight: 800;
}

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

.work-card {
  min-height: 238px;
  padding: 28px;
  border-radius: var(--radius-medium);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.work-card p,
.split-content p,
.image-band p,
.outcome-panel p,
.contact-card p {
  color: var(--color-muted);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 16px;
  color: var(--color-primary-dark);
  background: var(--color-accent);
  font-weight: 900;
}

.featured-card {
  grid-column: span 3;
  min-height: auto;
  background: linear-gradient(135deg, rgba(45, 141, 138, 0.15), rgba(255, 250, 242, 0.92));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--color-text);
}

.check-list li::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary);
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-card);
}

.image-band::before {
  inset: auto auto -20px -20px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(45, 141, 138, 0.12);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.1fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.outcome-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 30px;
  border-radius: var(--radius-medium);
}

.image-panel {
  padding: 0;
  overflow: hidden;
}

.image-panel img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.text-link {
  width: fit-content;
  margin-top: 12px;
  color: var(--color-primary-dark);
  font-weight: 900;
  border-bottom: 2px solid rgba(45, 141, 138, 0.35);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 42px;
  border-radius: var(--radius-large);
  background:
    linear-gradient(135deg, rgba(45, 141, 138, 0.13), rgba(255, 250, 242, 0.88)),
    var(--color-surface);
}

.contact-list {
  display: grid;
  gap: 14px;
  font-style: normal;
}

.contact-list div {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.62);
}

.contact-list span,
.contact-list strong {
  display: block;
}

.contact-list span {
  margin-bottom: 5px;
  color: var(--color-muted);
  font-size: 13px;
}

.contact-list a {
  color: var(--color-primary-dark);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.site-footer strong {
  color: var(--color-text);
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary-dark);
  box-shadow: 0 12px 24px rgba(20, 101, 97, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .image-band,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .featured-card {
    grid-column: span 2;
  }

  .image-panel {
    order: -1;
  }
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 28px, var(--max-width));
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: rgba(255, 250, 242, 0.98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 12px 14px;
  }

  .section {
    width: min(100% - 28px, var(--max-width));
    padding: 62px 0;
    scroll-margin-top: 86px;
  }

  .hero {
    gap: 34px;
    padding-top: 42px;
  }

  .hero-stats,
  .about-grid,
  .work-grid,
  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-column: auto;
  }

  .about-card,
  .work-card,
  .outcome-panel,
  .contact-card,
  .image-band {
    padding: 24px;
    border-radius: 24px;
  }

  .image-panel {
    padding: 0;
  }

  .image-panel img {
    min-height: 260px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    width: min(100% - 28px, var(--max-width));
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 13px;
    font-size: 12px;
  }

  .brand strong {
    max-width: 210px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-lead,
  .section-heading p:not(.eyebrow),
  .about-card p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }
}

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

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