:root {
  --color-background: #f7f4ec;
  --color-ink: #17243d;
  --color-primary: #2a6f6a;
  --color-accent: #d96c4a;
  --color-line: #d9d4c8;
  --color-muted: #68717e;
  --color-primary-tint: #e1ece9;
  --color-accent-tint: #f4e2d9;

  color: var(--color-ink);
  background: var(--color-background);
  font-family: "Manrope", Arial, "Microsoft YaHei", "Source Han Sans SC",
    "PingFang SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--color-background);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-background);
}

a {
  color: inherit;
}

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

.section-nav {
  position: fixed;
  top: 50%;
  left: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-50%);
}

.section-nav__item {
  display: flex;
  min-width: 48px;
  min-height: 24px;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
  text-decoration: none;
}

.section-nav__dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  background: var(--color-background);
  transition: width 240ms ease-out, height 240ms ease-out, background 240ms ease-out;
}

.section-nav__label {
  opacity: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transform: translateX(-8px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

.section-nav__item:hover .section-nav__label,
.section-nav__item:focus-visible .section-nav__label,
.section-nav__item.is-active .section-nav__label {
  opacity: 1;
  transform: translateX(0);
}

.section-nav__item.is-active {
  color: var(--color-ink);
}

.section-nav__item.is-active .section-nav__dot {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
}

.section-nav__item:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

@media (max-width: 1359px) {
  .section-nav {
    display: none;
  }
}

.page-shell {
  width: min(100%, 1328px);
  margin-inline: auto;
  padding-inline-start: max(64px, env(safe-area-inset-left));
  padding-inline-end: max(64px, env(safe-area-inset-right));
}

.hero {
  display: flex;
  min-height: clamp(720px, 100svh, 880px);
  align-items: center;
  padding-block: max(96px, env(safe-area-inset-top))
    max(96px, env(safe-area-inset-bottom));
}

.hero__content {
  width: 100%;
  max-width: 680px;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: 48px;
  align-items: center;
}

.is-ready .hero__title,
.is-ready .hero__tag,
.is-ready .hero__identity,
.is-ready .hero__statement,
.is-ready .hero__brand,
.is-ready .primary-action {
  animation: hero-sequence 800ms ease-out var(--hero-delay) both;
}

.is-ready .hero__title {
  --hero-delay: 120ms;
}

.is-ready .hero__tag {
  --hero-delay: 280ms;
}

.is-ready .hero__identity {
  --hero-delay: 440ms;
}

.is-ready .hero__statement {
  --hero-delay: 600ms;
}

.is-ready .hero__brand {
  --hero-delay: 760ms;
}

.is-ready .primary-action {
  --hero-delay: 920ms;
}

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

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

.hero-path {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: var(--color-primary-tint);
}

.hero-path::after {
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(42, 111, 106, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-path__eyebrow,
.hero-path__caption {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero-path__eyebrow {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-path__graphic {
  width: 100%;
  margin-top: 16px;
}

.hero-path__route,
.hero-path__branch {
  fill: none;
  stroke: var(--color-primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.is-ready .hero-path__route,
.is-ready .hero-path__branch {
  animation: draw-path 1200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-ready .hero-path__branch {
  animation-delay: 320ms;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-path__node,
.hero-path__gate {
  opacity: 0;
  transform: translateY(16px);
  transform-box: fill-box;
  transform-origin: center;
}

.is-ready .hero-path__node,
.is-ready .hero-path__gate {
  animation: path-node-enter 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-ready .hero-path__node--one {
  animation-delay: 160ms;
}

.is-ready .hero-path__node--two {
  animation-delay: 320ms;
}

.is-ready .hero-path__node--three {
  animation-delay: 480ms;
}

.is-ready .hero-path__gate {
  animation-delay: 640ms;
}

@keyframes path-node-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-path__node circle,
.hero-path__node rect {
  fill: var(--color-background);
  stroke: var(--color-primary);
  stroke-width: 3;
}

.hero-path__node--three circle {
  fill: var(--color-primary);
}

.hero-path__node text,
.hero-path__gate text {
  fill: var(--color-ink);
  font-family: "Microsoft YaHei", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.hero-path__node--three > text:not(.hero-path__note) {
  fill: var(--color-background);
}

.hero-path__node .hero-path__note {
  fill: var(--color-muted);
  font-size: 14px;
  font-weight: 400;
}

.hero-path__gate rect {
  fill: var(--color-accent-tint);
  stroke: var(--color-accent);
  stroke-width: 2;
}

.hero-path__gate text {
  fill: var(--color-accent);
  font-size: 14px;
}

.hero-path__caption {
  max-width: 320px;
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.6;
}

.hero__title,
.hero__tag,
.hero__identity,
.hero__statement,
.hero__brand {
  margin: 0;
}

.hero__title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero__tag {
  width: fit-content;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.hero__identity {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
}

.hero__statement {
  max-width: 680px;
  margin-top: 24px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.hero__brand {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.primary-action {
  display: inline-flex;
  min-width: 48px;
  min-height: 52px;
  margin-top: 32px;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
  border-radius: 12px;
  color: var(--color-background);
  background: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: filter 160ms ease-out;
}

.primary-action:hover {
  filter: brightness(0.94);
}

.primary-action:active {
  filter: brightness(0.88);
}

.primary-action:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.about {
  padding-block: 128px;
  scroll-margin-top: 24px;
}

.has-reveal-motion .about .section-title,
.has-reveal-motion .about__item {
  opacity: 0;
  transform: translateY(40px);
}

.has-reveal-motion .about.is-visible .section-title,
.has-reveal-motion .about.is-visible .about__item {
  animation: section-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.has-reveal-motion .about.is-visible .about__item:nth-child(1) {
  animation-delay: 150ms;
}

.has-reveal-motion .about.is-visible .about__item:nth-child(2) {
  animation-delay: 300ms;
}

.has-reveal-motion .about.is-visible .about__item:nth-child(3) {
  animation-delay: 450ms;
}

@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.about__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

.section-title,
.about__label,
.about__text {
  margin: 0;
}

.section-title {
  grid-column: 1 / 4;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.about__content {
  grid-column: 5 / 13;
}

.about__path {
  position: relative;
}

.about__path::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: 2px;
  background: var(--color-primary);
  content: "";
}

.about__item {
  position: relative;
  padding-block: 32px;
  border-top: 1px solid var(--color-line);
}

.about__path .about__item {
  padding: 0 0 32px 48px;
  border-top: 0;
}

.about__node {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--color-background);
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.about__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.about__item:last-child {
  padding-bottom: 0;
}

.about__label {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.about__text {
  max-width: 720px;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
}

.work {
  padding-block: 128px;
  scroll-margin-top: 24px;
}

.has-reveal-motion .work .section-title,
.has-reveal-motion .project-card {
  opacity: 0;
  transform: translateY(40px);
}

.has-reveal-motion .work.is-visible .section-title,
.has-reveal-motion .work.is-visible .project-card {
  animation: section-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.has-reveal-motion .work.is-visible .project-card:nth-child(1) {
  animation-delay: 150ms;
}

.has-reveal-motion .work.is-visible .project-card:nth-child(2) {
  animation-delay: 300ms;
}

.has-reveal-motion .work.is-visible .project-card:nth-child(3) {
  animation-delay: 450ms;
}

.section-title--standalone {
  max-width: 720px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  min-height: 420px;
  padding: 32px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-background);
}

.project-card__number,
.project-card__title,
.project-card__text {
  margin: 0;
}

.project-card__number {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.project-card__title {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.project-card__text {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
}

.workflow-card__steps {
  display: grid;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-card__steps li {
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 24px;
}

.workflow-card__steps li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  content: "";
}

.workflow-card__steps li:not(:last-child)::after {
  position: absolute;
  top: 20px;
  bottom: -20px;
  left: 3px;
  width: 2px;
  background: var(--color-line);
  content: "";
}

.workflow-card__steps strong {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.workflow-card__steps span {
  font-size: 16px;
  line-height: 1.7;
}

.practice,
.contact {
  padding-block: 128px;
  scroll-margin-top: 24px;
}

.has-reveal-motion .practice .section-title,
.has-reveal-motion .practice-card,
.has-reveal-motion .contact__copy,
.has-reveal-motion .contact__media {
  opacity: 0;
  transform: translateY(40px);
}

.has-reveal-motion .practice.is-visible .section-title,
.has-reveal-motion .practice.is-visible .practice-card,
.has-reveal-motion .contact.is-visible .contact__copy,
.has-reveal-motion .contact.is-visible .contact__media {
  animation: section-reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.has-reveal-motion .practice.is-visible .practice-card:nth-child(1),
.has-reveal-motion .contact.is-visible .contact__media {
  animation-delay: 150ms;
}

.has-reveal-motion .practice.is-visible .practice-card:nth-child(2) {
  animation-delay: 300ms;
}

.has-reveal-motion .practice.is-visible .practice-card:nth-child(3) {
  animation-delay: 450ms;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.practice-card {
  min-height: 360px;
  padding: 32px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-primary-tint);
}

.evidence-tag {
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--color-background);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.practice-card__title {
  margin: 24px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.artifact-flow {
  display: flex;
  margin-top: 32px;
  align-items: center;
  gap: 8px;
}

.artifact-flow span {
  flex: 0 1 auto;
  padding: 8px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  background: var(--color-background);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.artifact-flow i {
  flex: 1 1 16px;
  height: 2px;
  background: var(--color-primary);
}

.practice-card__status {
  margin: 32px 0 0;
  font-size: 16px;
  line-height: 1.75;
}

.contact__panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: 64px;
  border-radius: 32px;
  background: var(--color-primary-tint);
}

.contact__copy {
  grid-column: 1 / 6;
}

.contact__copy .section-title {
  margin: 24px 0 0;
}

.contact__lead {
  max-width: 440px;
  margin: 32px 0 0;
  font-size: 24px;
  line-height: 1.55;
}

.contact__note {
  margin: 24px 0 0;
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.7;
}

.contact__media {
  grid-column: 7 / 13;
  margin: 0;
}

.contact__media img {
  width: min(100%, 560px);
  height: auto;
  margin-inline: auto;
  border: 1px solid rgba(42, 111, 106, 0.16);
  border-radius: 16px;
}

.site-signature {
  margin: 32px 0 0;
  color: var(--color-ink);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.error-page {
  overflow-x: hidden;
}

.error-page__main {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding-block: 64px;
}

.error-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: 64px;
  border: 1px solid var(--color-line);
  border-radius: 32px;
  background: var(--color-primary-tint);
}

.error-card__copy {
  grid-column: 1 / 7;
}

.error-card__title {
  margin: 32px 0 0;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.error-card__text {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.75;
}

.error-card__graphic {
  grid-column: 8 / 13;
  width: 100%;
}

@media (min-width: 1024px) {
  html {
    scroll-snap-type: y mandatory;
  }

  .hero,
  .about,
  .work,
  .practice,
  .contact {
    display: flex;
    min-height: 100svh;
    align-items: center;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (max-width: 1023px) {
  .section-nav {
    display: none;
  }

  .page-shell {
    padding-inline-start: max(48px, env(safe-area-inset-left));
    padding-inline-end: max(48px, env(safe-area-inset-right));
  }

  .hero {
    padding-block: max(96px, env(safe-area-inset-top))
      max(96px, env(safe-area-inset-bottom));
  }

  .hero__content {
    width: min(100%, 760px);
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-path {
    width: min(100%, 640px);
  }

  .about {
    padding-block: 96px;
  }

  .about__layout {
    display: block;
  }

  .about__content {
    margin-top: 48px;
  }

  .work {
    padding-block: 96px;
  }

  .practice,
  .contact {
    padding-block: 96px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    min-height: 0;
    padding: 24px;
  }

  .practice-card {
    min-height: 0;
    padding: 24px;
  }

  .contact__panel {
    display: block;
    padding: 48px;
  }

  .contact__media {
    width: min(100%, 640px);
    margin-top: 48px;
  }

  .error-card {
    display: block;
    padding: 48px;
  }

  .error-card__graphic {
    width: min(100%, 560px);
    margin-top: 48px;
  }
}

@media (max-width: 767px) {
  .page-shell {
    padding-inline-start: max(24px, env(safe-area-inset-left));
    padding-inline-end: max(24px, env(safe-area-inset-right));
  }

  .hero {
    min-height: 640px;
    padding-block: max(64px, env(safe-area-inset-top))
      max(64px, env(safe-area-inset-bottom));
  }

  .hero__layout {
    gap: 32px;
  }

  .hero-path {
    padding: 24px;
    border-radius: 16px;
  }

  .hero__title {
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  .hero__statement {
    font-size: 20px;
    line-height: 1.55;
  }

  .about {
    padding-block: 64px;
  }

  .work {
    padding-block: 64px;
  }

  .practice,
  .contact {
    padding-block: 64px;
  }

  .section-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .about__content {
    margin-top: 32px;
  }

  .about__text {
    font-size: 16px;
    line-height: 1.75;
  }

  .project-grid {
    margin-top: 32px;
  }

  .practice-grid {
    margin-top: 32px;
  }

  .project-card__title {
    font-size: 20px;
    line-height: 1.4;
  }

  .project-card__text {
    font-size: 16px;
    line-height: 1.75;
  }

  .workflow-card__steps span,
  .practice-card__status {
    font-size: 16px;
  }

  .practice-card__title {
    font-size: 20px;
    line-height: 1.4;
  }

  .artifact-flow {
    gap: 4px;
  }

  .artifact-flow span {
    flex: 1 1 0;
    padding: 8px 4px;
  }

  .artifact-flow i {
    flex-basis: 8px;
  }

  .contact__panel {
    padding: 24px;
    border-radius: 24px;
  }

  .contact__lead {
    margin-top: 24px;
    font-size: 20px;
  }

  .contact__media {
    margin-top: 32px;
  }

  .error-page__main {
    padding-block: 24px;
  }

  .error-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .error-card__title {
    margin-top: 24px;
    font-size: 40px;
  }

  .error-card__text {
    font-size: 16px;
  }

  .error-card__graphic {
    margin-top: 32px;
  }

  .primary-action {
    min-height: 48px;
  }
}

@media (max-width: 359px) {
  .hero__line-break {
    display: none;
  }
}

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

  .is-ready .hero__title,
  .is-ready .hero__tag,
  .is-ready .hero__identity,
  .is-ready .hero__statement,
  .is-ready .hero__brand,
  .is-ready .primary-action {
    animation: none;
  }

  .has-reveal-motion .about .section-title,
  .has-reveal-motion .about__item {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .has-reveal-motion .work .section-title,
  .has-reveal-motion .project-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .has-reveal-motion .practice .section-title,
  .has-reveal-motion .practice-card,
  .has-reveal-motion .contact__copy,
  .has-reveal-motion .contact__media {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .is-ready .hero-path__route,
  .is-ready .hero-path__branch {
    stroke-dashoffset: 0;
    animation: none;
  }

  .is-ready .hero-path__node,
  .is-ready .hero-path__gate {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .primary-action {
    transition: none;
  }
}
