:root {
  --bg: #F7F6F3;
  --text: #161616;
  --border: #D9D9D9;
  --orange: #FF7A18;
  --white: #FFFFFF;
  --max: 1280px;
  --space-x-desktop: 40px;
  --space-x-tablet: 28px;
  --space-x-mobile: 16px;
  --section-y: 96px;
  --section-y-compact: 72px;
  --header-h: 72px;
  --font-sans: Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;
  --h1: clamp(48px, 6vw, 88px);
  --h2: clamp(34px, 4vw, 56px);
  --h3: 24px;
  --body: 16px;
  --small: 12px;
  --lh-tight: 1.05;
  --lh-title: 1.16;
  --lh-body: 1.72;
  --ease: linear;
  --duration: 160ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: var(--lh-body);
  letter-spacing: 0;
}

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

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

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

h1,
h2,
h3 {
  color: inherit;
  font-weight: 760;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: var(--h1);
  line-height: var(--lh-tight);
}

h2 {
  max-width: 820px;
  font-size: var(--h2);
  line-height: var(--lh-title);
}

h3 {
  font-size: var(--h3);
  line-height: var(--lh-title);
}

p,
.section-copy,
.hero-copy,
.text-stack {
  max-width: 720px;
  font-size: var(--body);
  line-height: var(--lh-body);
}

.accent,
.section-kicker,
.mono-label {
  color: var(--orange);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-shell,
.section-shell,
.cta-shell,
.footer-shell {
  width: min(100% - (var(--space-x-desktop) * 2), var(--max));
  margin-inline: auto;
}

.nav-shell {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 260px 1fr 140px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name,
.brand-sub,
.nav-links,
.language-switch,
.menu-button,
.button,
.mono-label,
.section-kicker,
.tag,
.footer-shell {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: 13px;
  font-weight: 760;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: var(--small);
  line-height: 1;
}

.nav-links a,
.language-switch {
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-links a {
  padding: 10px 0;
  opacity: 0.72;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--orange);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.language-switch {
  border: 0;
  color: var(--text);
  font-size: var(--small);
  padding: 0;
}

.language-switch:hover {
  color: var(--orange);
}

.nav-actions .button {
  display: none;
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: var(--small);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--text);
  font-size: var(--small);
  line-height: 1;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.button::before {
  display: none;
}

.button:hover {
  transform: translateY(2px);
}

.button.primary {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

.button.primary:hover {
  border-color: var(--orange);
}

.button.secondary,
.button.dark {
  background: var(--white);
  color: var(--text);
  border-color: var(--text);
}

.button.secondary:hover,
.button.dark:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.signal-triangle {
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero,
.page-hero,
.section.dark,
.cta-section,
.site-footer {
  background: var(--bg);
  color: var(--text);
}

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

.hero-shell {
  width: min(100% - (var(--space-x-desktop) * 2), var(--max));
  min-height: calc(100vh - var(--header-h));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
  padding-block: var(--section-y);
}

.hero-shell > div:first-child {
  grid-column: span 7;
}

.hero-capability-panel {
  grid-column: 8 / span 5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: inherit;
  opacity: 0.72;
  font-family: var(--font-mono);
  font-size: var(--small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--orange);
}

.hero-copy {
  margin-top: 28px;
  opacity: 0.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.proof-item {
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

.mono-label,
.section-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: var(--small);
  line-height: 1.2;
}

.hero-capability-panel {
  display: grid;
  align-content: start;
  min-height: 520px;
  border: 1px solid var(--border);
}

.hero-capability-item {
  padding: 28px;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.hero-capability-item:last-child {
  border-bottom: 0;
}

.hero-capability-item:hover {
  border-color: var(--orange);
  background: var(--white);
  transform: translateY(2px);
}

.hero-capability-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: var(--h3);
  line-height: var(--lh-title);
}

.hero-capability-item span {
  display: block;
  max-width: 360px;
  opacity: 0.78;
}

.section {
  padding-block: var(--section-y);
}

.section.compact {
  padding-block: var(--section-y-compact);
}

.section.dark {
  border-block: 1px solid var(--border);
}

.section-head,
.split,
.service-grid,
.capability-band,
.process-grid,
.contact-grid,
.cta-shell {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
}

.section-head {
  align-items: end;
  row-gap: 24px;
  margin-bottom: 48px;
}

.section-head > :first-child {
  grid-column: span 7;
}

.section-head > :last-child {
  grid-column: 9 / span 4;
}

.section-copy,
.text-stack,
.service-card p,
.service-list li,
.detail-block p,
.contact-cell p,
.contact-cell a,
.cta-shell p {
  opacity: 0.78;
}

.service-grid {
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.service-card {
  grid-column: span 6;
  min-height: 328px;
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.service-card::after {
  display: none;
}

.service-card:hover,
.capability:hover,
.contact-cell:hover,
.detail-block:hover {
  border-color: var(--orange);
  background: var(--white);
  transform: translateY(2px);
}

.service-card h3 {
  margin: 28px 0 14px;
}

.service-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 16px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 7px;
  height: 1px;
  background: var(--orange);
}

.capability-band {
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.capability {
  grid-column: span 3;
  min-height: 176px;
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.capability strong {
  display: block;
  margin-bottom: 16px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 36px;
  line-height: 1;
}

.process-grid {
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.process-step {
  grid-column: span 12;
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  opacity: 1;
  transform: none;
  transition: opacity var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.process-step:hover {
  border-color: var(--orange);
  transform: translateY(2px);
}

.process-step::after {
  display: none;
}

.process-step h3 {
  margin: 18px 0 12px;
}

@media (min-width: 981px) {
  .process-step {
    grid-column: span 2;
  }

  .process-step:first-child,
  .process-step:last-child {
    grid-column: span 2;
  }
}

.split > :first-child {
  grid-column: span 6;
}

.split > :last-child {
  grid-column: 8 / span 5;
}

.text-stack {
  display: grid;
  gap: 18px;
}

.quote-panel,
.info-panel {
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.quote-panel h3,
.info-panel h3 {
  margin-bottom: 18px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 8px 10px;
  border: 1px solid var(--border);
  font-size: 11px;
}

.page-hero {
  padding-block: var(--section-y);
}

.page-hero p {
  margin-top: 24px;
  opacity: 0.78;
}

.service-detail {
  display: block;
}

.detail-block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.detail-block:first-child {
  border-top: 1px solid var(--border);
}

.detail-block > :first-child {
  grid-column: span 3;
}

.detail-block > :last-child {
  grid-column: 4 / span 9;
}

.detail-block .service-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.contact-cell {
  grid-column: span 4;
  min-height: 184px;
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.contact-cell h3 {
  margin: 18px 0 14px;
}

.cta-section {
  padding-block: var(--section-y);
}

.cta-section::before {
  display: none;
}

.cta-shell {
  align-items: end;
}

.cta-shell > :first-child {
  grid-column: span 8;
}

.cta-shell > .button {
  grid-column: 10 / span 3;
  justify-self: end;
}

.cta-shell h2 {
  margin-top: 18px;
}

.cta-shell p {
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
}

.footer-shell {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 32px;
  align-items: start;
  font-size: var(--small);
  line-height: 1.5;
}

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

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

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

.footer-contact {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  opacity: 0.78;
}

@media (max-width: 980px) {
  :root {
    --section-y: 80px;
    --section-y-compact: 64px;
  }

  .nav-shell,
  .section-shell,
  .hero-shell,
  .cta-shell,
  .footer-shell {
    width: min(100% - (var(--space-x-tablet) * 2), var(--max));
  }

  .nav-shell {
    grid-template-columns: 220px 1fr 110px;
  }

  .hero-shell > div:first-child,
  .hero-capability-panel,
  .section-head > :first-child,
  .section-head > :last-child,
  .split > :first-child,
  .split > :last-child,
  .cta-shell > :first-child,
  .cta-shell > .button {
    grid-column: 1 / -1;
  }

  .hero-capability-panel {
    min-height: 420px;
  }

  .capability,
  .contact-cell {
    grid-column: span 6;
  }

  .process-step {
    grid-column: span 6;
  }

  .detail-block > :first-child,
  .detail-block > :last-child {
    grid-column: 1 / -1;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  :root {
    --section-y: 64px;
    --section-y-compact: 52px;
    --header-h: 64px;
    --h1: clamp(38px, 11vw, 52px);
    --h2: clamp(30px, 8vw, 42px);
    --h3: 22px;
  }

  .nav-shell,
  .section-shell,
  .hero-shell,
  .cta-shell,
  .footer-shell {
    width: min(100% - (var(--space-x-mobile) * 2), var(--max));
  }

  .nav-shell {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .brand img,
  .footer-brand img {
    width: 36px;
    height: 36px;
  }

  .brand-sub {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: var(--space-x-mobile);
    right: var(--space-x-mobile);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-proof,
  .detail-block .service-list {
    grid-template-columns: 1fr;
  }

  .hero-capability-panel {
    min-height: 320px;
  }

  .service-card,
  .capability,
  .process-step,
  .contact-cell {
    grid-column: 1 / -1;
  }

  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}
