:root {
  --paper: #f7f4ed;
  --ink: #18221e;
  --moss: #4b5a4b;
  --lime: #d9ed8a;
  --line: #d7d9cb;
  --panel: #fcfaf5;
  --error: #a13e2b;
  --wrap: 1152px;
  --serif: "Noto Serif SC", "Songti SC", STSong, "Noto Serif CJK SC", SimSun, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #657c2e; outline-offset: 4px; }
section[id] { scroll-margin-top: 32px; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.mono { font-family: var(--mono); font-weight: 600; letter-spacing: .08em; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 5; padding: 8px 16px; background: var(--lime); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--ink); color: var(--lime); font: 700 23px/1 var(--serif); }
.brand-text { display: grid; gap: 4px; line-height: 1; }
.brand-text strong { font-size: 18px; letter-spacing: .06em; }
.brand-text small { font: 600 8px/1.2 var(--mono); letter-spacing: .14em; color: var(--moss); }
nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
nav > a:hover, .text-link:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { padding: 8px 16px; border: 1px solid var(--ink); font-weight: 700; }
.nav-contact span, .text-link span { margin-left: 4px; }

.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: center; padding-block: 88px 80px; }
.hero-copy { grid-column: 1 / span 7; padding-right: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--moss); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.dot { width: 8px; height: 8px; background: #6c8036; transform: rotate(45deg); }
.eyebrow-divider { height: 12px; border-left: 1px solid var(--line); margin-inline: 4px; }
h1, h2 { font-family: var(--serif); font-weight: 750; letter-spacing: -.045em; }
h1 { margin-block: 20px; font-size: clamp(52px, 5.6vw, 84px); line-height: 1.12; }
.hero-intro { max-width: 32em; color: var(--moss); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; font-weight: 700; transition: background .18s, color .18s, border-color .18s; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.button[disabled] { cursor: wait; opacity: .65; }
.text-link { font-size: 14px; font-weight: 700; }
.hero-note { margin-top: 12px; color: var(--moss); font-size: 13px; }

.workflow { grid-column: 8 / -1; align-self: center; color: var(--paper); background-color: var(--ink); background-image: radial-gradient(#344038 1px, transparent 1px); background-size: 16px 16px; position: relative; }
.workflow::before { content: ""; position: absolute; top: -12px; right: 0; width: 72px; height: 4px; background: var(--lime); }
.workflow-head, .workflow-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 22px; font-size: 11px; color: #c2cdba; }
.workflow-head { border-bottom: 1px solid #465349; }
.workflow-foot { border-top: 1px solid #465349; }
.signal { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--lime); }
.workflow-body { padding: 26px 22px; }
.workflow-step { display: flex; gap: 14px; align-items: center; min-height: 68px; padding: 10px 12px; border: 1px solid #556257; background: #24312a; }
.workflow-step strong, .workflow-step small { display: block; }
.workflow-step strong { font-size: 16px; letter-spacing: .03em; }
.workflow-step small { color: #d0d7c9; font-size: 11px; }
.step-number { color: var(--lime); font-size: 12px; align-self: flex-start; padding-top: 4px; }
.highlighted { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.highlighted small, .highlighted .step-number { color: #334324; }
.connector { display: block; height: 16px; margin-left: 20px; border-left: 1px dashed #9da994; }

.services { border-top: 1px solid var(--line); padding-block: 64px 80px; }
.section-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; }
.section-lead .eyebrow { grid-column: 1 / -1; }
h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.16; }
.section-lead h2 { grid-column: 1 / span 7; }
.section-lead > p:last-child { grid-column: 9 / -1; color: var(--moss); padding-bottom: 4px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.service-block { min-height: 220px; padding: 22px 28px 26px; border: 1px solid var(--line); background: var(--panel); }
.service-block:nth-child(2) { background: #e9ecdc; }
.service-top { display: flex; align-items: center; justify-content: space-between; color: var(--moss); font-size: 11px; }
.service-top > span:last-child { font-size: 24px; line-height: 1; }
.service-block h3 { margin-block: 12px 8px; font: 750 34px/1.2 var(--serif); }
.service-block p { max-width: 31em; color: var(--moss); }

.scene-section { background: #eaece1; border-block: 1px solid var(--line); }
.scene-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding-block: 64px; }
.scene-copy { grid-column: 1 / span 5; }
.scene-copy h2 { margin-block: 12px 16px; }
.scene-copy > p:last-child { max-width: 24em; color: var(--moss); }
.scene-list { grid-column: 7 / -1; }
.scene-list article { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid #c4c9b8; }
.scene-list article:last-child { border-bottom: 1px solid #c4c9b8; }
.scene-index { flex: 0 0 32px; padding-top: 4px; color: var(--moss); font-size: 12px; }
.scene-list h3 { font-size: 20px; margin-bottom: 4px; }
.scene-list p { color: var(--moss); }

.contact-section { background: var(--ink); color: var(--paper); }
.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 16px; padding-block: 72px; }
.contact-copy { grid-column: 1 / span 5; padding-top: 16px; }
.contact-copy h2 { margin-block: 12px 16px; font-size: clamp(44px, 5.2vw, 72px); }
.contact-copy .eyebrow { color: var(--lime); }
.contact-copy > p:last-child { max-width: 26em; color: #d3dbcf; }
.contact-form { grid-column: 7 / -1; padding: 24px 28px; background: var(--panel); color: var(--ink); }
.contact-form h3 { font: 750 27px/1.3 var(--serif); }
.form-intro, .form-note { color: var(--moss); font-size: 13px; }
.form-intro { margin: 4px 0 16px; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea { min-height: 44px; width: 100%; border: 1px solid #b3bdab; border-radius: 0; padding: 8px 10px; color: var(--ink); background: #fffefa; line-height: 1.5; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #677367; }
.field [aria-invalid="true"] { border-color: var(--error); }
.submit { width: 100%; margin-top: 12px; justify-content: space-between; }
.form-status { margin-top: 8px; font-size: 14px; font-weight: 600; }
.form-status:empty { margin: 0; }
.form-status.error { color: var(--error); }
.form-status.success { color: #365b2a; }
.form-status.duplicate { color: #6a501b; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 64px; padding-block: 12px; font-size: 13px; color: var(--moss); }
.footer-inner strong { color: var(--ink); }
.footer-inner a { margin-left: auto; }
.site-icp { padding: 0 16px 16px; text-align: center; font-size: 13px; color: var(--moss); }
.site-icp a { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .hero { padding-block: 64px; }
  .hero-copy { grid-column: 1 / span 7; padding-right: 8px; }
  .workflow { grid-column: 8 / -1; }
  .workflow-head, .workflow-foot, .workflow-body { padding-inline: 14px; }
  .section-lead > p:last-child { grid-column: 8 / -1; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 8px; }
  nav { gap: 8px; }
  nav > a:not(.nav-contact) { display: none; }
  .nav-contact { font-size: 13px; padding-inline: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero, .section-lead, .scene-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-copy, .workflow, .section-lead h2, .section-lead > p:last-child, .scene-copy, .scene-list, .contact-copy, .contact-form { grid-column: 1; }
  .hero, .services, .scene-layout, .contact-layout { padding-block: 44px; }
  .hero { gap: 32px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(42px, 10.3vw, 68px); margin-block: 12px 16px; }
  .hero-intro { font-size: 16px; }
  .hero-actions { gap: 12px 16px; margin-top: 20px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .service-block { min-height: unset; padding: 16px 20px; }
  .scene-list, .contact-form { margin-top: 8px; }
  .contact-copy { padding: 0; }
  .contact-form { padding: 20px; }
}

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