:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --surface: #fffdf7;
  --ink: #182824;
  --muted: #58665e;
  --line: #d8dbcc;
  --orange: #ff8847;
  --copper: #95400e;
  --shell: 1240px;
  --gutter: clamp(22px, 5vw, 84px);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 260px; }
a { color: inherit; text-underline-offset: .26em; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; }
:focus-visible { outline: 3px solid #bc531a; outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: absolute; background: white; color: black; z-index: 5; padding: 8px 16px; top: 0; left: 0; transform: translateY(-120%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 77px; display: flex; align-items: center; gap: clamp(20px, 4.2vw, 74px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; background: var(--ink); color: var(--surface); border-bottom: 4px solid var(--orange); font-size: 21px; font-weight: 850; line-height: 1; }
.brand-name { font-size: 23px; font-weight: 850; letter-spacing: .04em; }
.site-nav { display: flex; flex-wrap: wrap; align-self: stretch; align-items: stretch; gap: clamp(16px, 2.7vw, 40px); margin-left: auto; }
.site-nav a { min-height: 42px; display: inline-flex; align-items: center; position: relative; text-decoration: none; font-size: 14px; font-weight: 650; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--copper); }
.site-nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--orange); }
.header-phone { flex: none; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .02em; text-decoration: none; border-left: 1px solid var(--line); padding-left: clamp(14px, 2.5vw, 34px); }
.header-phone:hover, .section-link:hover, .site-footer a:hover { text-decoration: underline; }
.home-hero, .inner-hero { background: var(--ink); color: var(--surface); }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: stretch; }
.hero-copy { align-self: center; padding: clamp(50px, 6vw, 93px) clamp(30px, 5vw, 76px) clamp(56px, 6.2vw, 98px) 0; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .07em; line-height: 1.5; color: var(--copper); }
.eyebrow::before { content: ""; width: 25px; height: 3px; flex-shrink: 0; background: currentColor; }
.home-hero .eyebrow, .inner-hero .eyebrow { color: #ffae7b; }
.hero-copy h1 { font-size: clamp(45px, 5vw, 78px); line-height: 1.13; font-weight: 850; letter-spacing: -.045em; margin-bottom: 24px; }
.hero-copy h1 span { display: block; }
.hero-desc, .inner-hero .lead { max-width: 40em; color: #dbe5dd; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 24px; margin-top: 33px; }
.btn, .text-link, .section-link { display: inline-flex; gap: 14px; align-items: center; justify-content: center; font-size: 15px; font-weight: 750; text-decoration: none; }
.btn { background: var(--orange); color: var(--ink); border: 1px solid transparent; padding: 11px 20px; min-height: 46px; line-height: 1.45; }
.btn:hover { background: #ff9f69; }
.btn-outline { border-color: currentColor; background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--surface); }
.text-link { color: var(--surface); padding: 9px 0; border-bottom: 1px solid #708078; }
.text-link:hover { color: #ffae7b; }
.hero-photo { position: relative; margin: 28px 0 28px; overflow: hidden; min-height: 340px; background: #34453e; border: 1px solid #52605a; }
.hero-photo img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo figcaption { display: flex; align-items: center; justify-content: space-between; position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(12, 22, 18, .91)); padding: 44px 18px 10px; color: white; font-size: 13px; font-weight: 650; }
.hero-photo figcaption span { font-size: 11px; font-weight: 400; }
.section { padding-block: clamp(44px, 5vw, 77px); }
.section h2, .home-contact h2, .content-flow h2 { font-size: clamp(26px, 2.55vw, 40px); letter-spacing: -.045em; }
.service-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.service-intro .eyebrow { margin-bottom: 10px; }
.section-link { color: var(--copper); padding: 6px 0; flex: none; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--ink); }
.scenario-grid article { padding: 25px clamp(20px, 2.4vw, 40px) 28px; }
.scenario-grid article + article { border-left: 1px solid var(--line); }
.scenario-grid article:first-child { padding-left: 0; }
.scenario-grid article:last-child { padding-right: 0; }
.scenario-grid h3, .card h3 { font-size: 22px; }
.topic-links { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 14px; }
.topic-links a { color: var(--copper); font-size: 14px; font-weight: 650; }
.scenario-grid p, .card p, .contact-grid p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.home-contact { background: #e9ecdf; border-top: 1px solid var(--line); }
.contact-grid { padding-block: clamp(30px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.contact-grid p { max-width: 45em; }
.contact-grid .btn { flex-shrink: 0; }
.site-footer { background: var(--ink); color: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; align-items: center; padding-block: 24px; font-size: 14px; }
.footer-inner strong { font-weight: 650; }
.site-footer a { color: var(--surface); text-decoration: none; }
.inner-hero { padding-block: clamp(44px, 5.6vw, 78px); }
.inner-hero h1 { font-size: clamp(34px, 4.7vw, 69px); font-weight: 800; letter-spacing: -.045em; max-width: 18em; text-wrap: balance; }
.inner-hero .lead { margin-top: 18px; }
.section .lead { font-size: 17px; max-width: 48em; color: var(--muted); margin-top: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 25px; }
.card { padding: clamp(20px, 2.6vw, 36px); border: 1px solid var(--line); border-top: 3px solid var(--copper); background: var(--surface); min-width: 0; }
.card h2 { font-size: clamp(21px, 2vw, 29px); }
.card li + li { margin-top: .35em; }
.content-flow { max-width: 78ch; }
.content-flow > * + * { margin-top: 1em; }
.content-flow h2:not(:first-child) { margin-top: 1.6em; }
.content-flow h3 { font-size: 22px; }
.content-flow li, .table-wrap { line-height: 1.8; }
.table-wrap { overflow-x: auto; max-width: 100%; margin-block: 20px; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: #e9ecdf; }
@media (max-width: 850px) {
  .header-inner { gap: 22px; }
  .site-nav { gap: 20px; }
  .hero-copy { padding-right: 24px; }
  .hero-actions { gap: 12px 18px; }
}
@media (max-width: 700px) {
  .header-inner { min-height: auto; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; }
  .brand { min-height: 56px; gap: 9px; }
  .brand-mark { height: 30px; width: 30px; font-size: 17px; }
  .brand-name { font-size: 20px; }
  .header-phone { grid-column: 2; grid-row: 1; border: 0; padding-left: 0; font-size: 13px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; margin: 0; justify-content: space-between; gap: 8px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 37px 0 27px; }
  .hero-copy h1 { font-size: clamp(40px, 8vw, 52px); margin-bottom: 14px; }
  .hero-copy h1 span { display: inline; }
  .hero-actions { margin-top: 21px; }
  .hero-photo { min-height: 0; aspect-ratio: 16/9; margin: 0 0 22px; }
  .service-intro, .contact-grid { align-items: flex-start; flex-direction: column; gap: 14px; }
  .service-intro { margin-bottom: 16px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-grid article, .scenario-grid article:first-child, .scenario-grid article:last-child { padding: 18px 0; }
  .scenario-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .contact-grid .btn { margin-top: 4px; }
  .section-link { font-size: 14px; }
}
@media (max-width: 520px) {
  .hero-copy h1 span { display: block; }
}
@media (max-width: 390px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}

.home-projects{background:var(--surface);border-top:1px solid var(--line)}
.project-pair{display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,4vw,54px)}
.project-pair>a{display:block;text-decoration:none;border-top:2px solid var(--ink);padding-top:18px}
.project-pair small{color:var(--copper);font-size:14px;font-weight:700}
.project-pair h3{font-size:clamp(20px,2vw,28px);margin:.4em 0}
.project-pair p{color:var(--muted)}
.project-pair a:hover h3{text-decoration:underline}
@media(max-width:700px){.project-pair{grid-template-columns:1fr}}

.home-library{border-top:1px solid var(--line)}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(15px,3vw,36px)}
.library-grid a{display:flex;flex-direction:column;gap:.5rem;padding:1.25rem 0;border-top:2px solid var(--copper);text-decoration:none}
.library-grid small{color:var(--copper);font-weight:700}
.library-grid strong{font-size:clamp(1.1rem,1.5vw,1.45rem);line-height:1.45}
.library-grid span,.case-notes p{color:var(--muted)}
.library-grid a:hover strong,.topic-directory a:hover{text-decoration:underline}
.topic-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.7rem 1.25rem;list-style:none;margin:1rem 0;padding:0}
.topic-directory a{display:block;padding:.65rem 0;border-bottom:1px solid var(--line);color:var(--copper)}
.case-notes{background:var(--surface);border-top:1px solid var(--line)}
@media(max-width:700px){.library-grid{grid-template-columns:1fr;gap:0}.site-nav a{font-size:clamp(12px,3.5vw,14px)}}
