:root {
  --ink: #20272a;
  --ink-soft: #4f595c;
  --paper: #f7f6f1;
  --white: #ffffff;
  --mist: #e9ece7;
  --teal: #2b746d;
  --teal-dark: #173f3b;
  --amber: #d7a642;
  --amber-light: #f3d996;
  --line: #cfd4ce;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

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

.shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 0 max(32px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.site-header.scrolled,
.site-header.menu-open {
  border-color: rgba(32, 39, 42, 0.14);
  background: rgba(247, 246, 241, 0.98);
  color: var(--ink);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
  font: 800 13px/1 "Segoe UI", sans-serif;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav > a:not(.nav-action) {
  position: relative;
  padding: 8px 0;
}

.site-nav > a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--amber);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

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

.nav-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid currentColor;
}

.nav-action:hover,
.nav-action:focus-visible {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.hero {
  position: relative;
  display: flex;
  height: 90svh;
  min-height: min(660px, 90svh);
  max-height: 920px;
  align-items: center;
  overflow: hidden;
  background: var(--ink) url("assets/consulting-team.jpg") center 45% / cover no-repeat;
  color: var(--white);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(22, 29, 31, 0.62);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 118px 0 128px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--amber-light);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: 0;
}

.hero-statement {
  margin: 22px 0 0;
  color: #ffe3a8;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-copy {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 38px;
  margin-top: 28px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.hero-index {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  width: min(700px, 62vw);
  min-height: 70px;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
}

.hero-index span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.hero-index b {
  color: var(--teal);
  font-size: 10px;
}

.section {
  padding: 116px 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 96px;
}

.about-copy h2,
.section-head h2,
.method-intro h2,
.principles h2 {
  margin: 0;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: 0;
}

.about-copy .lead {
  margin: 32px 0 18px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.75;
}

.about-copy > p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.about-image {
  position: relative;
  margin: 0;
}

.about-image::before {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 44%;
  height: 44%;
  border-top: 4px solid var(--amber);
  border-right: 4px solid var(--amber);
  content: "";
}

.about-image img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-image figcaption {
  position: absolute;
  bottom: -24px;
  left: -30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 270px;
  background: var(--teal-dark);
  color: var(--white);
}

.about-image figcaption span {
  padding: 15px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.about-image figcaption span:last-child {
  border-right: 0;
}

.focus {
  background: var(--mist);
}

.section-head {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 72px;
  margin-bottom: 64px;
}

.section-head > p {
  margin: 0;
  color: var(--ink-soft);
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #bfc7c0;
  border-left: 1px solid #bfc7c0;
}

.focus-list article {
  min-height: 250px;
  padding: 30px 34px;
  border-right: 1px solid #bfc7c0;
  border-bottom: 1px solid #bfc7c0;
}

.focus-list span,
.method-steps > li > span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.focus-list h3 {
  margin: 62px 0 12px;
  font-size: 22px;
}

.focus-list p {
  max-width: 440px;
  margin: 0;
  color: var(--ink-soft);
}

.method {
  background: var(--ink);
  color: var(--white);
}

.method-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 100px;
}

.method-intro {
  align-self: start;
  position: sticky;
  top: 126px;
}

.method-intro .section-label {
  color: var(--amber-light);
}

.method-intro p:last-child {
  max-width: 430px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.method-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  min-height: 150px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.method-steps > li > span {
  color: var(--amber-light);
}

.method-steps h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.method-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.principles {
  padding: 92px 0;
  background: var(--amber);
  color: var(--ink);
}

.principles .section-label {
  color: #5e4614;
}

.principles-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 96px;
}

.principles dl {
  margin: 0;
  border-top: 1px solid rgba(32, 39, 42, 0.4);
}

.principles dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(32, 39, 42, 0.4);
}

.principles dt {
  font-weight: 800;
}

.principles dd {
  margin: 0;
  color: rgba(32, 39, 42, 0.72);
}

.site-footer {
  padding: 42px 0;
  background: #151b1d;
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand > div {
  display: grid;
  gap: 2px;
}

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

.footer-brand span:last-child,
.footer-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.footer-meta {
  display: flex;
  gap: 32px;
}

:focus-visible {
  outline: 3px solid var(--amber-light);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .site-header {
    padding: 0 24px;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.menu-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: calc(100svh - 80px);
    overflow: auto;
    padding: 16px 24px 26px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-130%);
    transition: transform 180ms ease;
  }

  .site-header.menu-open .site-nav {
    transform: translateY(0);
  }

  .site-nav > a:not(.nav-action) {
    padding: 16px 2px;
    border-bottom: 1px solid var(--line);
  }

  .nav-action {
    margin-top: 18px;
    justify-content: space-between;
  }

  .about-layout {
    gap: 58px;
  }

  .about-copy h2,
  .section-head h2,
  .method-intro h2,
  .principles h2 {
    font-size: 39px;
  }

  .method-layout {
    gap: 58px;
  }

  .principles-inner {
    gap: 56px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  .shell,
  .hero-inner {
    width: min(100% - 36px, 1180px);
  }

  .site-header {
    min-height: 72px;
    padding: 0 18px;
  }

  .brand {
    gap: 10px;
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 12px;
  }

  .site-nav {
    top: 72px;
    max-height: calc(100svh - 72px);
  }

  .hero {
    height: 90svh;
    min-height: min(600px, 90svh);
    max-height: 760px;
    background-position: 58% center;
  }

  .hero-shade {
    background: rgba(22, 29, 31, 0.7);
  }

  .hero-inner {
    padding: 100px 0 112px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.17;
  }

  .hero-statement {
    margin-top: 16px;
    font-size: 23px;
  }

  .hero-copy {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
  }

  .text-link {
    min-height: 44px;
    margin-top: 20px;
  }

  .hero-index {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-height: 54px;
  }

  .hero-index span {
    display: grid;
    gap: 1px;
    padding: 0 6px;
    font-size: 11px;
    text-align: center;
  }

  .section {
    padding: 80px 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .about-copy h2,
  .section-head h2,
  .method-intro h2,
  .principles h2 {
    font-size: 33px;
  }

  .about-copy .lead {
    margin-top: 24px;
    font-size: 18px;
  }

  .about-image {
    width: calc(100% - 18px);
  }

  .about-image::before {
    top: -14px;
    right: -18px;
  }

  .about-image img {
    aspect-ratio: 4 / 3;
  }

  .about-image figcaption {
    bottom: -22px;
    left: 14px;
    min-width: 250px;
  }

  .about-image figcaption span {
    padding: 12px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 42px;
  }

  .focus-list {
    grid-template-columns: 1fr;
  }

  .focus-list article {
    min-height: 210px;
    padding: 24px;
  }

  .focus-list h3 {
    margin-top: 42px;
  }

  .method-layout,
  .principles-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .method-intro {
    position: static;
  }

  .method-steps li {
    grid-template-columns: 42px 1fr;
    min-height: 132px;
  }

  .principles {
    padding: 72px 0;
  }

  .principles dl div {
    grid-template-columns: 62px 1fr;
  }

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

  .footer-inner {
    gap: 28px;
  }

  .footer-meta {
    gap: 4px;
  }
}

@media (max-width: 390px) {
  .brand > span:last-child {
    max-width: 188px;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    font-size: 37px;
  }

  .about-copy h2,
  .section-head h2,
  .method-intro h2,
  .principles h2 {
    font-size: 30px;
  }
}

@media (max-height: 700px) {
  .hero-inner {
    padding-top: 84px;
    padding-bottom: 82px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-statement {
    margin-top: 10px;
    font-size: 21px;
  }

  .hero-copy {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  .text-link {
    min-height: 40px;
    margin-top: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
