:root {
  color-scheme: light dark;
  --page: #edf0ec;
  --surface: #f7f8f5;
  --surface-strong: #e1e7e1;
  --ink: #15211c;
  --muted: #53635b;
  --line: rgba(21, 33, 28, 0.14);
  --accent: #326c55;
  --accent-strong: #24513f;
  --accent-soft: #c9dbd1;
  --dark-panel: #17241e;
  --dark-panel-ink: #f0f4ef;
  --header: rgba(237, 240, 236, 0.82);
  --radius: 18px;
  --shell: min(1180px, calc(100vw - 48px));
  --shadow: 0 24px 70px rgba(32, 57, 45, 0.13);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111714;
    --surface: #18201c;
    --surface-strong: #202c26;
    --ink: #eef3ef;
    --muted: #aab8b0;
    --line: rgba(238, 243, 239, 0.14);
    --accent: #7fb79d;
    --accent-strong: #9cccb5;
    --accent-soft: #2c4b3c;
    --dark-panel: #dce8e0;
    --dark-panel-ink: #15211c;
    --header: rgba(17, 23, 20, 0.82);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-color: var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 15px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

nav a {
  transition: color 160ms ease;
}

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

.hero {
  position: relative;
  min-height: min(820px, 100dvh);
  overflow: hidden;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(237, 240, 236, 0.98) 0%, rgba(237, 240, 236, 0.93) 34%, rgba(237, 240, 236, 0.26) 68%, rgba(237, 240, 236, 0.08) 100%);
}

.hero-grid {
  min-height: min(820px, 100dvh);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  padding-top: 72px;
}

.hero-copy {
  max-width: 650px;
  padding: 72px 0 52px;
}

.hero-label {
  margin: 0 0 24px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 690px;
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 760;
}

.hero-intro {
  max-width: 470px;
  margin: 28px 0 34px;
  color: #43534b;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.primary-link {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #f4f8f5;
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--ink);
  transform: translateY(-2px);
}

.primary-link:active {
  transform: translateY(1px);
}

.section {
  padding: clamp(84px, 11vw, 148px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 58px;
}

.section-heading h2,
.practice-copy h2 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 720;
}

.section-heading p,
.practice-copy > p {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.direction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  grid-template-rows: repeat(2, minmax(220px, auto));
  gap: 18px;
}

.direction {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.direction h3 {
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 710;
}

.direction p {
  max-width: 520px;
  margin: 14px 0 0;
  font-size: 16px;
}

.direction-feature {
  grid-row: 1 / 3;
  min-height: 458px;
  background: var(--accent-soft);
}

.direction-light {
  background: var(--surface);
}

.direction-dark {
  background: var(--dark-panel);
  color: var(--dark-panel-ink);
}

.direction-index {
  font-size: 13px;
  font-weight: 760;
  opacity: 0.58;
}

.voice-field {
  min-height: 205px;
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.1vw, 14px);
  padding: 28px 6px;
}

.voice-field span {
  width: clamp(8px, 1.4vw, 16px);
  height: var(--h);
  min-height: 26px;
  border-radius: 999px;
  background: var(--accent-strong);
  opacity: 0.76;
  transform-origin: center;
}

.practice {
  border-block: 1px solid var(--line);
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(52px, 9vw, 130px);
  align-items: start;
}

.practice-copy {
  position: sticky;
  top: 126px;
}

.practice-map {
  display: grid;
  gap: 42px;
}

.practice-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 24px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.practice-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.practice-item span {
  grid-row: 1 / 3;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 760;
}

.practice-item h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 680;
}

.practice-item p {
  max-width: 530px;
  margin: 13px 0 0;
  color: var(--muted);
}

.about {
  padding-bottom: clamp(92px, 13vw, 170px);
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 48px;
  align-items: end;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.about-panel h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 720;
}

.about-panel p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.about-panel .about-note {
  margin: 0;
  font-size: 14px;
}

.site-footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

.filing-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.filing-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.reveal {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 34px, 720px);
  }

  .hero {
    min-height: 760px;
  }

  .hero-grid {
    min-height: 760px;
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-visual img {
    object-position: 66% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(237, 240, 236, 0.32) 0%, rgba(237, 240, 236, 0.42) 34%, rgba(237, 240, 236, 0.96) 76%, rgba(237, 240, 236, 1) 100%);
  }

  .hero-copy {
    max-width: 610px;
    padding: 80px 0 58px;
  }

  .direction-grid,
  .practice-layout,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .direction-grid {
    grid-template-rows: none;
  }

  .direction-feature {
    grid-row: auto;
  }

  .practice-copy {
    position: static;
  }

  .about-panel {
    align-items: start;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 28px);
    --radius: 15px;
  }

  .nav-shell {
    min-height: 64px;
  }

  nav {
    gap: 16px;
    font-size: 13px;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .brand span:last-child {
    font-size: 14px;
  }

  .hero,
  .hero-grid {
    min-height: 720px;
  }

  .hero-grid {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hero-intro {
    max-width: 19em;
    margin-top: 22px;
    font-size: 17px;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading p,
  .practice-copy > p {
    font-size: 16px;
  }

  .direction {
    min-height: 210px;
    padding: 24px;
  }

  .direction-feature {
    min-height: 400px;
  }

  .voice-field {
    min-height: 185px;
    gap: 8px;
  }

  .practice-map {
    gap: 32px;
  }

  .practice-item {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 14px;
    padding-bottom: 32px;
  }

}

@media (prefers-color-scheme: dark) {
  .hero-shade {
    background: linear-gradient(90deg, rgba(17, 23, 20, 0.98) 0%, rgba(17, 23, 20, 0.92) 34%, rgba(17, 23, 20, 0.34) 70%, rgba(17, 23, 20, 0.14) 100%);
  }

  .hero-intro {
    color: #c5d1ca;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 860px) {
  .hero-shade {
    background: linear-gradient(180deg, rgba(17, 23, 20, 0.3) 0%, rgba(17, 23, 20, 0.46) 36%, rgba(17, 23, 20, 0.96) 77%, rgba(17, 23, 20, 1) 100%);
  }
}

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

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

}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-enter 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes hero-enter {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

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

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--page);
    backdrop-filter: none;
  }
}
