:root {
  --bg: #f4ecdf;
  --bg-deep: #11362e;
  --surface: rgba(255, 249, 240, 0.78);
  --surface-strong: #fffaf2;
  --surface-dark: rgba(17, 54, 46, 0.88);
  --text: #17362d;
  --muted: #5c6d65;
  --line: rgba(23, 54, 45, 0.14);
  --accent: #af6f3f;
  --accent-strong: #8a4f26;
  --accent-soft: rgba(175, 111, 63, 0.12);
  --glow: rgba(26, 90, 75, 0.18);
  --shadow: 0 24px 70px rgba(17, 54, 46, 0.13);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --heading-font: "Cormorant Garamond", "Noto Serif SC", "STSong", serif;
  --body-font: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(175, 111, 63, 0.22), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(17, 54, 46, 0.16), transparent 22%),
    linear-gradient(160deg, #f9f2e9 0%, #f2e6d8 48%, #efe2d2 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 24px,
      rgba(255, 255, 255, 0.12) 24px,
      rgba(255, 255, 255, 0.12) 25px
    );
  pointer-events: none;
  z-index: -1;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding-bottom: 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(32, 56, 47, 0.08);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(17, 54, 46, 0.94), rgba(37, 92, 79, 0.86));
  color: #fff4ea;
  font-family: var(--heading-font);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong,
.brand-text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text strong {
  font-size: 0.96rem;
  font-weight: 700;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(175, 111, 63, 0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

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

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: rgba(17, 54, 46, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

.section {
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  padding-top: 88px;
}

.hero-copy,
.hero-aside,
.about-card,
.service-card,
.approach-card,
.sector-card,
.contact-card {
  position: relative;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.hero-aside-primary h2,
.contact-card h2 {
  margin: 0;
  font-family: var(--heading-font);
  line-height: 0.98;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  max-width: 8.8ch;
}

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

.hero h1,
.section-heading h2,
.hero-aside-primary h2,
.contact-card h2,
.about-card h3,
.service-card h3,
.approach-card h3,
.sector-card h3 {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero-name {
  margin: 24px 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-name-en {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.hero-lead {
  max-width: 62ch;
  margin: 26px 0 0;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--muted);
}

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

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

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff7ef;
  box-shadow: 0 16px 32px rgba(138, 79, 38, 0.2);
}

.button-secondary {
  border: 1px solid rgba(17, 54, 46, 0.14);
  background: rgba(255, 250, 242, 0.72);
  color: var(--text);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 10px 14px;
  border: 1px solid rgba(17, 54, 46, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.56);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-aside {
  display: grid;
  gap: 18px;
  align-self: stretch;
}

.hero-aside-card {
  padding: 28px;
  border: 1px solid rgba(17, 54, 46, 0.1);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-aside-primary {
  position: relative;
  min-height: 340px;
  background:
    linear-gradient(150deg, rgba(17, 54, 46, 0.94), rgba(34, 88, 75, 0.88));
  color: #f8eee2;
}

.hero-aside-primary::after {
  content: "";
  position: absolute;
  inset: auto -12% -18% auto;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

.hero-aside-kicker {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-aside-primary .hero-aside-kicker,
.hero-aside-secondary .hero-aside-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
}

.hero-aside-primary .hero-aside-kicker {
  background: rgba(255, 255, 255, 0.1);
  color: #f7dfc6;
}

.hero-aside-secondary .hero-aside-kicker {
  background: rgba(175, 111, 63, 0.1);
  color: var(--accent-strong);
}

.hero-aside-primary h2 {
  margin-top: 22px;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1.04;
  max-width: 10ch;
}

.hero-aside-summary {
  position: relative;
  z-index: 1;
  max-width: 34ch;
  margin: 18px 0 0;
  line-height: 1.85;
  color: rgba(248, 238, 226, 0.82);
}

.hero-badges {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-badge {
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-badge strong {
  display: block;
  font-family: var(--heading-font);
  font-size: clamp(1.02rem, 1.3vw, 1.4rem);
  line-height: 1.15;
  text-wrap: balance;
}

.hero-badge span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(248, 238, 226, 0.74);
}

.hero-aside-secondary {
  background: rgba(255, 250, 242, 0.78);
  backdrop-filter: blur(12px);
}

.hero-service-list {
  display: grid;
  gap: 2px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-service-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 54, 46, 0.08);
}

.hero-service-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-service-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(17, 54, 46, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.hero-service-list strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}

.hero-service-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.65;
}

.service-index,
.approach-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-card h3,
.service-card h3,
.approach-card h3,
.sector-card h3 {
  margin: 18px 0 0;
  font-family: var(--heading-font);
  font-size: 1.55rem;
  line-height: 1.1;
}

.about-card p,
.service-card p,
.approach-card p,
.sector-card p,
.contact-card p {
  margin: 14px 0 0;
  line-height: 1.85;
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

#approach .section-heading {
  max-width: 100%;
}

#approach .section-heading h2 {
  font-size: clamp(2.6rem, 4.2vw, 4.4rem);
  max-width: 12ch;
  line-height: 1.04;
}

.about-grid,
.services-grid,
.approach-grid,
.sector-grid {
  display: grid;
  gap: 18px;
}

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

.about-card,
.service-card,
.approach-card,
.sector-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.about-card {
  padding: 28px;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -34% auto;
  width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), rgba(175, 111, 63, 0));
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px) rotate(-0.3deg);
  border-color: rgba(175, 111, 63, 0.36);
  box-shadow: 0 32px 60px rgba(17, 54, 46, 0.16);
}

.service-index {
  min-width: 58px;
  width: fit-content;
  padding: 8px 12px;
  background: rgba(17, 54, 46, 0.08);
  color: var(--accent);
}

.section-emphasis {
  position: relative;
}

.section-emphasis::before {
  content: "";
  position: absolute;
  inset: 60px -20px;
  border-radius: 40px;
  background:
    radial-gradient(circle at top right, rgba(175, 111, 63, 0.15), rgba(175, 111, 63, 0)),
    linear-gradient(145deg, rgba(17, 54, 46, 0.92), rgba(20, 49, 42, 0.95));
  z-index: -1;
}

.section-emphasis .eyebrow,
.section-emphasis .section-heading h2,
.section-emphasis .approach-card h3,
.section-emphasis .approach-card p,
.section-emphasis .approach-card span {
  color: #f8eee2;
}

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

.approach-card {
  padding: 28px;
  background: rgba(255, 250, 242, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.approach-card span {
  min-width: 78px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.sector-card {
  padding: 28px;
}

.contact-section {
  padding-bottom: 56px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: end;
  gap: 28px;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(255, 244, 229, 0.84));
}

.contact-card h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
}

.contact-card > .button {
  grid-column: 1 / -1;
  justify-self: flex-start;
}

.contact-copy {
  max-width: 62ch;
}

.contact-note {
  max-width: 62ch;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 420px;
}

.contact-item {
  padding: 18px;
  border: 1px solid rgba(17, 54, 46, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 246, 0.88);
}

.contact-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-item strong {
  display: block;
  margin-top: 10px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}

.contact-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-details {
    max-width: none;
  }

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

  .hero h1 {
    max-width: 11ch;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--container));
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 26px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
  }

  .topbar.nav-open .nav {
    display: flex;
  }

  .topbar.nav-open .nav-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .topbar.nav-open .nav-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .brand {
    width: calc(100% - 72px);
  }

  .sector-grid,
  .services-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 74px 0;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .topbar {
    top: 10px;
    padding: 14px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.1rem;
  }

  .hero h1 {
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-aside-card {
    padding: 22px;
  }

  .about-card,
  .service-card,
  .approach-card,
  .sector-card,
  .contact-card {
    padding: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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