:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --white: #fffefa;
  --ink: #21211e;
  --muted: #605e57;
  --accent: #b94323;
  --line: #e5e0d6;
  --shell: 1200px;
  --gutter: clamp(20px, 5.6vw, 80px);
  --radius: 18px;
  --header-height: 74px;
  font-family: "Instrument Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd {
  margin: 0;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

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

.shell {
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  inset: 12px auto auto 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-height) - 1px);
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 11px;
}

.brand img {
  flex: none;
}

.brand-name {
  font-size: 17px;
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: .035em;
}

.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.4vw, 49px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  transition: color .18s, background-color .18s, border-color .18s;
}

.site-nav a:hover,
.text-link:hover,
.footer-legal a:hover {
  color: var(--accent);
}

.site-nav .header-about {
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.site-nav .header-about:hover {
  border-color: #d9aa98;
  background: #f6ede6;
  color: var(--accent);
}

.arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
}

.arrow::before,
.arrow::after {
  position: absolute;
  content: "";
}

.arrow::before {
  inset: 6px 1px auto 1px;
  border-top: 1.5px solid currentColor;
}

.arrow::after {
  top: 3px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 55% 45%;
}

.arrow-out {
  transform: rotate(-45deg);
}

.arrow-down {
  transform: rotate(90deg);
}

.arrow-up {
  transform: rotate(-90deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(30px, 4vw, 64px);
  padding-block: clamp(48px, 4.4vw, 72px) clamp(52px, 5.2vw, 82px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .135em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(50px, 6.05vw, 90px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.065em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-description {
  max-width: 25em;
  margin-top: 25px;
  color: var(--muted);
  font-size: clamp(15px, 1.28vw, 18px);
  line-height: 1.85;
}

.hero-description,
.service-card p,
.process-steps p,
.about-copy p {
  text-wrap: pretty;
}

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

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 12px;
  font-size: 14px;
  font-weight: 650;
  transition: color .18s, background-color .18s;
}

.button {
  padding: 12px 18px;
  border-radius: 8px;
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #363530;
}

.text-link {
  color: var(--ink);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #ded7ca;
  border-radius: var(--radius);
  background: #eee7d9;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

.visual-cross {
  position: absolute;
  width: 11px;
  height: 11px;
  color: #8c7968;
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: .67;
}

.cross-top-left { top: 19px; left: 19px; }
.cross-top-right { top: 19px; right: 19px; }
.cross-bottom-left { bottom: 19px; left: 19px; }
.cross-bottom-right { bottom: 19px; right: 19px; }

.services {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding-block: clamp(48px, 5.45vw, 85px) clamp(54px, 6.1vw, 96px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 36px;
  margin-bottom: 30px;
}

h2 {
  font-size: clamp(32px, 3.55vw, 52px);
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: -.045em;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(17px, 1.95vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf6;
}

.service-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 9px;
  background: #f3e5da;
  color: var(--accent);
}

.service-icon i {
  position: absolute;
}

.icon-app i:first-child {
  width: 21px;
  height: 17px;
  border: 1.5px solid;
  border-radius: 3px;
}

.icon-app i:nth-child(2) {
  top: 19px;
  width: 19px;
  border-top: 1.5px solid;
}

.icon-app i:last-child {
  top: 16px;
  left: 15px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 4px 0 currentColor;
}

.icon-agent::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
}

.icon-agent i {
  width: 7px;
  height: 7px;
  border: 1.5px solid;
  border-radius: 50%;
  background: #f3e5da;
}

.icon-agent i:first-child { left: 10px; }
.icon-agent i:nth-child(2) { top: 10px; right: 10px; }
.icon-agent i:last-child { bottom: 10px; right: 10px; }

.icon-tuning i {
  width: 20px;
  border-top: 1.5px solid;
}

.icon-tuning i:first-child { top: 14px; }
.icon-tuning i:last-child { bottom: 14px; }

.icon-tuning i::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 4px;
  width: 5.5px;
  height: 5.5px;
  border: 1.5px solid;
  border-radius: 50%;
  background: #f3e5da;
}

.icon-tuning i:nth-child(2)::after {
  left: 12px;
}

.icon-training i {
  width: 8px;
  border-radius: 2px 2px 0 0;
  border: 1.5px solid;
  bottom: 12px;
}

.icon-training i:first-child { left: 10px; height: 9px; }
.icon-training i:nth-child(2) { left: 18px; height: 15px; }
.icon-training i:last-child { left: 26px; height: 21px; }

.service-card h3 {
  font-size: clamp(18px, 1.62vw, 23px);
  line-height: 1.35;
  font-weight: 680;
  letter-spacing: -.025em;
}

.service-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.service-card .service-focus {
  margin-top: auto;
  padding-top: 19px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}

.service-focus span {
  margin-inline: 2px;
}

.process-section {
  padding-top: clamp(48px, 5.4vw, 82px);
}

.process-panel {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(28px, 5vw, 74px);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #2c2a25, #20211e 62%);
  color: #f8f5ee;
}

.process-intro .eyebrow {
  color: #f3a184;
}

.process-intro h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.1vw, 46px);
}

.process-intro > p:last-child {
  margin-top: 14px;
  max-width: 19em;
  color: #c7c1b5;
  font-size: 15px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 23px 27px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  border-top: 1px solid #5b564d;
  padding-top: 12px;
}

.step-number {
  color: #f3a184;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
}

.process-steps h3 {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 660;
}

.process-steps p {
  margin-top: 3px;
  color: #c7c1b5;
  font-size: 14px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.3fr);
  gap: 18px 54px;
  padding-block: clamp(58px, 7.1vw, 104px);
}

.about-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(17px, 1.75vw, 24px);
  font-weight: 670;
}

.about-copy p {
  max-width: 37em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.company-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 15px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.company-details dt {
  color: var(--muted);
}

.company-details dd {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f0eee8;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  min-height: 100px;
  padding-block: 16px;
}

.footer-legal {
  display: grid;
  justify-items: center;
  gap: 4px;
  border-top: 1px solid #ddd8ce;
  padding-block: 17px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  gap: 8px;
  transition: color .18s;
}

@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hero h1 {
    font-size: clamp(48px, 10.7vw, 74px);
  }

  .hero-description {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 21px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 24px;
  }

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

@media (max-width: 570px) {
  :root {
    --header-height: 108px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    padding-top: 8px;
  }

  .site-nav {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .site-nav a {
    min-height: 43px;
    padding: 0 3px;
    font-size: 13px;
  }

  .site-nav .header-about {
    gap: 4px;
    border: 0;
    padding-inline: 3px;
    color: var(--muted);
  }

  .site-nav .header-about:hover {
    background: transparent;
  }

  .site-nav .header-about .arrow {
    transform: rotate(-45deg) scale(.8);
  }

  .hero {
    padding-block: 36px 40px;
  }

  .hero h1 {
    margin-top: 15px;
  }
}

@media (max-width: 390px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    gap: 8px 17px;
  }

  .hero-actions .button {
    padding-inline: 12px;
  }
}

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

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