:root {
  --paper: #f2efe8;
  --surface: #faf8f3;
  --ink: #1f2421;
  --muted: #696b66;
  --line: #cbc5b9;
  --accent: #a84428;
  --dark: #202522;
  --dark-line: #4a4f4b;
  --light-text: #f4f0e8;
  --content: min(1240px, calc(100vw - 64px));
  color-scheme: light;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.nav-shell {
  width: var(--content);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding-left: 13px;
  border-left: 4px solid var(--accent);
}

.brand-name {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.brand-suffix {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  color: #3e433f;
  font-size: 14px;
}

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

.menu-toggle {
  display: none;
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-shell {
  width: var(--content);
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  padding: 76px 0;
}

.company-line {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #525651;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.company-line::before {
  width: 26px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 5.7vw, 82px);
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 1.11;
}

.hero-lead {
  max-width: 640px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 39px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.primary-link span {
  font-size: 17px;
}

.primary-link:hover {
  background: #8f351e;
}

.plain-link {
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.project-scope {
  position: relative;
  min-height: 560px;
  padding: 38px 40px 31px;
  overflow: hidden;
  background: var(--dark);
  color: var(--light-text);
}

.project-scope::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  background: var(--accent);
  content: "";
}

.scope-head {
  display: flex;
  justify-content: space-between;
  padding-right: 65px;
  color: #c7c9c5;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.scope-list {
  margin: 59px 0 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  min-height: 91px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--dark-line);
}

.scope-list li:last-child {
  border-bottom: 1px solid var(--dark-line);
}

.scope-list li > span {
  color: #d26949;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.scope-list div {
  display: grid;
  gap: 5px;
}

.scope-list strong {
  font-size: 16px;
  font-weight: 600;
}

.scope-list p {
  margin: 0;
  color: #b9bcb8;
  font-size: 12px;
  line-height: 1.6;
}

.scope-foot {
  margin-top: 27px;
  color: #969b97;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.section {
  padding: 118px 0;
}

.section-shell,
.footer-shell {
  width: var(--content);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
  margin-bottom: 72px;
}

.section-number,
.service-index {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.section-number {
  padding-top: 13px;
}

.section-heading h2,
.about-heading h2 {
  margin: 0;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.section-heading p {
  max-width: 560px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.service-list {
  border-bottom: 1px solid var(--line);
}

.service-row {
  min-height: 180px;
  display: grid;
  grid-template-columns: 105px 310px minmax(280px, 1fr) 245px;
  gap: 25px;
  align-items: start;
  padding: 37px 0;
  border-top: 1px solid var(--line);
}

.service-index {
  padding-top: 7px;
}

.service-row h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 630;
  line-height: 1.45;
}

.service-row > p {
  margin: 2px 0 0;
  color: #555a55;
  font-size: 14px;
  line-height: 1.85;
}

.service-row ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-row li {
  position: relative;
  padding: 4px 0 4px 15px;
  color: #686b66;
  font-size: 12px;
  line-height: 1.6;
}

.service-row li::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  content: "";
}

.process {
  background: var(--dark);
  color: var(--light-text);
}

.section-heading-light {
  margin-bottom: 62px;
}

.section-heading-light p {
  color: #b9bcb8;
}

.process-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  list-style: none;
}

.process-list li {
  min-height: 245px;
  padding: 31px 28px 30px;
  border-right: 1px solid var(--dark-line);
}

.process-list li:first-child {
  padding-left: 0;
}

.process-list li:last-child {
  border-right: 0;
}

.process-list li > span {
  color: #d26949;
  font-size: 11px;
}

.process-list h3 {
  margin: 52px 0 14px;
  font-size: 21px;
  font-weight: 600;
}

.process-list p {
  margin: 0;
  color: #b9bcb8;
  font-size: 13px;
  line-height: 1.75;
}

.about {
  padding-bottom: 135px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 10vw, 150px);
}

.about-heading {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 22px;
  align-content: start;
}

.about-heading .section-number {
  padding-top: 10px;
}

.about-heading h2 {
  font-size: clamp(38px, 3.8vw, 55px);
}

.about-content {
  padding-top: 2px;
}

.about-content > p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.about-content .about-lead {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.75;
}

.working-notes {
  margin: 60px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.working-notes > div {
  min-height: 135px;
  padding: 25px 22px 20px 0;
  border-right: 1px solid var(--line);
}

.working-notes > div:not(:first-child) {
  padding-left: 22px;
}

.working-notes > div:last-child {
  border-right: 0;
}

.working-notes dt {
  font-size: 14px;
  font-weight: 650;
}

.working-notes dd {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.site-footer {
  background: var(--dark);
  color: var(--light-text);
}

.footer-shell {
  padding: 52px 0 26px;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  display: grid;
  gap: 9px;
}

.footer-brand strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.footer-brand span {
  color: #aeb2ae;
  font-size: 11px;
}

.footer-nav {
  display: flex;
  gap: 30px;
}

.footer-nav a,
.back-top {
  padding: 4px 0 6px;
  border-bottom: 1px solid transparent;
  color: #d6d8d5;
  font-size: 12px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.back-top:hover,
.back-top:focus-visible {
  border-color: currentColor;
}

.footer-bottom {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--dark-line);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #aeb2ae;
  font-size: 11px;
}

.icp-link {
  padding: 4px 0;
  border-bottom: 1px solid #7d837e;
  color: #d6d8d5;
}

.icp-link:hover,
.icp-link:focus-visible {
  border-color: currentColor;
  color: var(--light-text);
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1080px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(52px, 6.2vw, 68px);
  }

  .service-row {
    grid-template-columns: 70px 260px minmax(250px, 1fr) 210px;
    gap: 20px;
  }

  .section-heading {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --content: min(760px, calc(100vw - 48px));
  }

  .hero-shell {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 62px;
    padding: 88px 0 72px;
  }

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

  .project-scope {
    min-height: 0;
  }

  .service-row {
    grid-template-columns: 55px minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  }

  .service-row ul {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 4px;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list li:nth-child(2) {
    border-right: 0;
  }

  .process-list li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dark-line);
  }

  .process-list li:nth-child(3) {
    padding-left: 0;
  }

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

  .about-heading h2 br {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --content: calc(100vw - 32px);
  }

  html {
    scroll-padding-top: 66px;
  }

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

  .brand-name {
    font-size: 18px;
  }

  .brand-suffix {
    font-size: 10px;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    width: 17px;
    height: 1px;
    background: var(--ink);
  }

  .menu-toggle span:first-child {
    transform: translateY(-3px);
  }

  .menu-toggle span:last-child {
    transform: translateY(3px);
  }

  .menu-toggle[aria-expanded="true"] {
    border-color: var(--light-text);
  }

  .menu-toggle[aria-expanded="true"] span {
    background: var(--light-text);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 84px 28px;
    background: var(--dark);
    color: var(--light-text);
  }

  .site-nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--dark-line);
    color: inherit;
    font-size: 28px;
    font-weight: 550;
  }

  .hero-shell {
    gap: 51px;
    padding: 64px 0 52px;
  }

  .company-line {
    margin-bottom: 23px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.4vw, 56px);
    letter-spacing: -0.055em;
    line-height: 1.12;
  }

  .hero-lead {
    margin-top: 26px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 31px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .project-scope {
    padding: 29px 22px 25px;
  }

  .project-scope::before {
    width: 38px;
    height: 38px;
  }

  .scope-head {
    padding-right: 46px;
    font-size: 10px;
  }

  .scope-list {
    margin-top: 39px;
  }

  .scope-list li {
    min-height: 85px;
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }

  .scope-list strong {
    font-size: 15px;
  }

  .scope-list p {
    font-size: 11px;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 43px;
  }

  .section-number {
    padding-top: 0;
  }

  .section-heading h2,
  .about-heading h2 {
    font-size: 38px;
    line-height: 1.2;
  }

  .section-heading p {
    margin-top: 14px;
    font-size: 14px;
  }

  .service-row {
    min-height: 0;
    display: block;
    padding: 30px 0 31px;
  }

  .service-row h3 {
    margin-top: 17px;
    font-size: 22px;
  }

  .service-row > p {
    margin-top: 13px;
    font-size: 13px;
  }

  .service-row ul {
    display: grid;
    grid-column: auto;
    gap: 1px;
    margin-top: 17px;
  }

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

  .process-list li,
  .process-list li:first-child,
  .process-list li:nth-child(3) {
    min-height: 175px;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);
  }

  .process-list li:last-child {
    border-bottom: 0;
  }

  .process-list h3 {
    margin-top: 28px;
  }

  .about {
    padding-bottom: 90px;
  }

  .about-grid {
    gap: 47px;
  }

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

  .about-heading h2 br {
    display: block;
  }

  .about-content .about-lead {
    font-size: 18px;
  }

  .working-notes {
    margin-top: 42px;
    grid-template-columns: 1fr;
  }

  .working-notes > div,
  .working-notes > div:not(:first-child) {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .working-notes > div:last-child {
    border-bottom: 0;
  }

  .footer-shell {
    padding: 43px 0 23px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 29px;
  }

  .footer-nav {
    width: 100%;
    gap: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-line);
  }

  .footer-bottom {
    margin-top: 32px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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