:root {
  --ink: #20211e;
  --ink-soft: #34362f;
  --paper: #f4f0e9;
  --paper-deep: #e8e1d6;
  --sage: #aeb89a;
  --moss: #566044;
  --clay: #9b765f;
  --cream: #fffaf3;
  --line: rgba(32, 33, 30, .22);
  --line-light: rgba(255, 250, 243, .24);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  --brand-font: "Segoe Print", "Bradley Hand", "Lucida Handwriting", cursive;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: 82px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::selection { color: var(--cream); background: var(--moss); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.shell {
  width: min(calc(100% - 64px), 1320px);
  margin-inline: auto;
}

main { min-height: calc(100vh - 200px); }

/* Header */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 82px;
  color: var(--ink);
  background: rgba(244, 240, 233, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: height .35s var(--ease), background .35s ease, transform .45s var(--ease);
}

.topbar.scrolled { height: 68px; background: rgba(244, 240, 233, .98); }
.topbar.header-hidden { transform: translateY(-105%); }
.topbar.menu-open { height: auto; transform: none; }

.nav {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
}

.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: block; }
.brand-name { font-family: var(--brand-font); font-size: 18px; letter-spacing: -.04em; }
.brand-her { color: var(--moss); }
.brand-tagline { display: none; }

.nav-location {
  justify-self: center;
  color: rgba(32, 33, 30, .68);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav-links { display: flex; justify-self: end; align-items: center; gap: 24px; }
.nav-links a {
  position: relative;
  padding: 8px 0;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px 6px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 1px; margin: 6px 0; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Type and common controls */
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(4rem, 9vw, 9.2rem); line-height: .88; letter-spacing: -.055em; }
h2 { font-size: clamp(3rem, 6vw, 6.7rem); line-height: .94; letter-spacing: -.045em; }
h3 { font-size: clamp(1.8rem, 2.6vw, 3rem); line-height: 1.02; letter-spacing: -.025em; }
p { color: rgba(32, 33, 30, .72); }
.eyebrow, .kicker, .section-index { font-size: .68rem; font-weight: 500; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; }
.gold { color: var(--moss); font-style: italic; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--cream);
  background: var(--ink);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s ease, background .3s ease, transform .3s var(--ease);
}
.button:hover { color: var(--ink); background: transparent; transform: translateY(-2px); }
.button.ghost { color: var(--ink); background: transparent; }
.button.ghost:hover { color: var(--cream); background: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.text-link::after { content: "↗"; font-size: 1rem; }

/* Home */
.home-hero { color: var(--cream); background: var(--ink); }
.home-hero-inner { padding: 22px 0 34px; }
.hero-meta { display: flex; justify-content: space-between; gap: 24px; padding: 0 0 20px; border-bottom: 1px solid var(--line-light); color: rgba(255, 250, 243, .62); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, .66fr); gap: clamp(36px, 6vw, 90px); align-items: center; min-height: calc(100vh - 138px); padding: 54px 0 36px; }
.home-hero-copy { padding-bottom: 7vh; }
.home-hero-copy .kicker { color: var(--sage); margin-bottom: 28px; }
.home-hero-copy h1 { max-width: 850px; margin-bottom: 34px; }
.home-hero-copy h1 em { color: var(--sage); font-weight: 400; }
.home-hero-copy .hero-lead { max-width: 610px; color: rgba(255, 250, 243, .7); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.75; }
.home-hero-copy .actions { margin-top: 42px; }
.home-hero-copy .button { color: var(--ink); border-color: var(--cream); background: var(--cream); }
.home-hero-copy .button:hover { color: var(--cream); background: transparent; }
.home-hero-copy .button.ghost { color: var(--cream); background: transparent; }
.home-hero-copy .button.ghost:hover { color: var(--ink); background: var(--cream); }
.home-hero-media { align-self: stretch; min-height: 620px; margin: 0; display: grid; grid-template-rows: 1fr auto; }
.home-hero-media img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: center; filter: saturate(.76) contrast(1.05); }
.home-hero-media figcaption { display: flex; justify-content: space-between; gap: 18px; padding-top: 14px; color: rgba(255, 250, 243, .58); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }

.home-manifesto { padding: clamp(100px, 14vw, 220px) 0; background: var(--paper); }
.manifesto-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(260px, 360px); gap: clamp(30px, 6vw, 100px); align-items: start; }
.manifesto-grid blockquote { margin: 0; max-width: 790px; font-size: clamp(2.9rem, 6vw, 6.4rem); line-height: .98; letter-spacing: -.045em; }
.manifesto-copy { padding-top: 10px; }
.manifesto-copy p { margin-bottom: 24px; line-height: 1.8; }

.home-offers { padding: clamp(90px, 11vw, 170px) 0; }
.section-heading { display: grid; grid-template-columns: 150px 1fr; gap: clamp(30px, 6vw, 100px); align-items: end; margin-bottom: 70px; }
.section-heading h2 { max-width: 900px; margin-bottom: 0; }
.offer-list { counter-reset: offers; border-top: 1px solid var(--line); }
.offer-row { counter-increment: offers; display: grid; grid-template-columns: 80px minmax(230px, .72fr) 1fr 50px; gap: 28px; align-items: center; min-height: 150px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), color .25s ease; }
.offer-row::before { content: "0" counter(offers); font-size: .68rem; letter-spacing: .16em; }
.offer-row:hover { padding-inline: 18px; color: var(--moss); }
.offer-row h3 { margin: 0; }
.offer-row p { max-width: 550px; margin: 0; font-size: .93rem; line-height: 1.7; }
.offer-arrow { justify-self: end; font-family: var(--serif); font-size: 2rem; }

.home-story { color: var(--cream); background: var(--ink); }
.home-story-grid { display: grid; grid-template-columns: minmax(320px, .85fr) 1.15fr; gap: clamp(48px, 8vw, 120px); align-items: center; padding: clamp(90px, 10vw, 150px) 0; }
.story-image { min-height: 680px; margin: 0; background: url("../images/about-shuntian-daily-life.png") center 42% / cover no-repeat; filter: saturate(.72) contrast(1.03); }
.story-copy .section-index { color: var(--sage); margin-bottom: 32px; }
.story-copy h2 { max-width: 720px; margin-bottom: 36px; }
.story-copy p { max-width: 560px; color: rgba(255, 250, 243, .68); font-size: 1.05rem; }
.story-copy .text-link { margin-top: 24px; }

.closing-call { padding: clamp(110px, 15vw, 220px) 0; text-align: center; background: var(--sage); }
.closing-call .kicker { margin-bottom: 30px; }
.closing-call h2 { max-width: 1000px; margin: 0 auto 42px; }

/* Interior page intro */
.page-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: start; padding: clamp(90px, 10vw, 150px) 0 84px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { padding-top: 18px; }
.page-hero h1 { max-width: 1050px; margin-bottom: 0; }
.page-hero > p { grid-column: 2; max-width: 760px; margin: -38px 0 0; font-size: 1.05rem; line-height: 1.8; }

/* Services hub */
.services-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; padding: 90px 0 140px; counter-reset: service-card; }
.service-card { counter-increment: service-card; grid-column: span 4; display: flex; flex-direction: column; min-height: 610px; color: var(--cream); background: var(--ink); overflow: hidden; }
.service-card:nth-child(1) { grid-column: span 8; }
.service-card:nth-child(1) { flex-direction: row; }
.service-card:nth-child(1) .service-card-art { width: 56%; min-height: 650px; }
.service-card:nth-child(1) .service-card-body { width: 44%; }
.service-card:nth-child(6) { grid-column: span 12; min-height: 540px; flex-direction: row; }
.service-card:nth-child(6) .service-card-art { width: 56%; min-height: 540px; }
.service-card:nth-child(6) .service-card-body { width: 44%; }
.service-card-art { min-height: 340px; overflow: hidden; }
.service-card-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.04); transition: transform .7s var(--ease), filter .5s ease; }
.service-card:hover .service-card-art img { transform: scale(1.035); filter: saturate(.9); }
.service-card-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 34px; }
.service-card-body::before { content: "0" counter(service-card); position: absolute; top: 34px; right: 34px; color: rgba(255, 250, 243, .46); font-size: .66rem; letter-spacing: .18em; }
.service-card-body .eyebrow { color: var(--sage); padding-right: 48px; }
.service-card-body h3 { max-width: 420px; margin: 28px 0 18px; }
.service-card-body p { color: rgba(255, 250, 243, .64); font-size: .92rem; line-height: 1.75; }
.service-card-body .button { align-self: flex-start; margin-top: auto; padding: 0 0 6px; min-height: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--cream); background: transparent; }

/* Service detail */
.service-back { padding-top: 42px; }
.service-back a { display: inline-flex; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.service-hero { display: grid; grid-template-columns: minmax(380px, .95fr) minmax(0, 1.05fr); gap: clamp(48px, 8vw, 120px); align-items: start; padding: 48px 0 130px; }
.service-hero-image { position: sticky; top: 100px; min-height: 720px; overflow: hidden; background: var(--paper-deep); }
.service-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.02); }
.service-copy { min-width: 0; padding-top: 48px; }
.service-copy .eyebrow { margin-bottom: 38px; color: var(--moss); }
.service-copy h1 { font-size: clamp(4rem, 7vw, 7.8rem); margin-bottom: 48px; }
.service-copy p { max-width: 650px; font-size: 1.02rem; line-height: 1.82; }
.service-copy p[lang="zh-Hans"] { color: rgba(32, 33, 30, .6); }
.service-features { list-style: none; padding: 0; margin: 54px 0 44px; counter-reset: feature; border-top: 1px solid var(--line); }
.service-features li { counter-increment: feature; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); color: rgba(32, 33, 30, .72); line-height: 1.55; }
.service-features li::before { content: "0" counter(feature); padding-top: 2px; color: var(--moss); font-size: .62rem; letter-spacing: .14em; }
.service-boundary { margin: -18px 0 36px; padding-left: 18px; border-left: 1px solid var(--clay); color: rgba(32, 33, 30, .64); font-size: .78rem !important; line-height: 1.7 !important; }
.service-contact-note { margin-top: 22px; font-size: .78rem; }
.service-contact-note a { display: inline-flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.service-contact-note svg { width: 15px; height: 15px; }

/* About */
.about-atmosphere { display: none; }
.about-grid { display: grid; grid-template-columns: minmax(360px, .92fr) 1.08fr; gap: clamp(48px, 9vw, 130px); align-items: start; padding: 90px 0 140px; }
.about-photo { position: sticky; top: 100px; min-height: 760px; background: url("../images/about-shuntian-daily-life.png") center 42% / cover no-repeat; filter: saturate(.72) contrast(1.02); }
.about-copy { padding-top: 80px; }
.about-copy h3 { max-width: 620px; margin-bottom: 36px; font-size: clamp(3rem, 5vw, 5.5rem); }
.about-copy p { max-width: 620px; font-size: 1.04rem; line-height: 1.85; }
.about-copy blockquote { margin: 70px 0; padding: 56px 0; border-block: 1px solid var(--line); font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.06; letter-spacing: -.035em; }
.about-thanks { display: flex; align-items: center; gap: 12px; max-width: 620px; }
.about-thanks p { margin-bottom: 0; }
.linkedin-link { width: 32px; height: 32px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--moss); transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s var(--ease); }
.linkedin-link svg { width: 15px; height: 15px; }
.linkedin-link:hover, .linkedin-link:focus-visible { color: var(--cream); background: var(--moss); border-color: var(--moss); transform: translateY(-2px); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: clamp(50px, 10vw, 150px); padding: 90px 0 150px; }
.contact-grid > div h3 { max-width: 420px; }
.contact-grid > div p { max-width: 400px; }
.hint { margin-top: 36px; font-size: .78rem; }
.panel { padding: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { margin-bottom: 32px; }
label { display: block; margin-bottom: 10px; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
input, textarea, select { width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--ink); background: transparent; }
input:focus, textarea:focus, select:focus { border-bottom-color: var(--ink); }
textarea { min-height: 160px; resize: vertical; }

/* Footer */
footer { color: var(--cream); background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 50px; padding: 70px 0 36px; }
.footer-brand { max-width: 500px; }
.footer-brand-name { display: block; margin-bottom: 24px; font-family: var(--brand-font); font-size: 1.5rem; }
.footer-brand p { color: rgba(255, 250, 243, .58); font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
.footer-column strong { display: block; margin-bottom: 18px; color: var(--sage); font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.footer-column a, .footer-column span { display: block; margin: 8px 0; color: rgba(255, 250, 243, .68); font-size: .82rem; }
.footer-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-light); color: rgba(255, 250, 243, .42); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: min(420px, calc(100% - 48px)); padding: 16px 20px; color: var(--cream); background: var(--ink); border: 1px solid var(--line-light); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-ready.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .shell { width: min(calc(100% - 44px), 1320px); }
  .home-hero-grid { grid-template-columns: 1fr minmax(330px, .62fr); gap: 42px; }
  .manifesto-grid { grid-template-columns: 100px 1fr; }
  .manifesto-copy { grid-column: 2; max-width: 620px; }
  .section-heading { grid-template-columns: 100px 1fr; }
  .offer-row { grid-template-columns: 60px minmax(220px, .8fr) 1fr 36px; }
  .service-card { grid-column: span 6; }
  .service-card:nth-child(1), .service-card:nth-child(6) { grid-column: span 6; flex-direction: column; }
  .service-card:nth-child(1) .service-card-art, .service-card:nth-child(1) .service-card-body,
  .service-card:nth-child(6) .service-card-art, .service-card:nth-child(6) .service-card-body { width: auto; }
  .service-card:nth-child(1) .service-card-art, .service-card:nth-child(6) .service-card-art { min-height: 340px; }
}

@media (max-width: 820px) {
  body { padding-top: 72px; }
  .topbar { height: 72px; }
  .topbar.scrolled { height: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-location { display: none; }
  .nav-toggle { display: block; justify-self: end; }
  .nav-links { position: absolute; inset: 72px 0 auto; display: none; padding: 18px 22px 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: grid; gap: 0; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .home-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .home-hero-copy { padding: 30px 0 10px; }
  .home-hero-media { min-height: 620px; }
  .manifesto-grid, .section-heading, .page-hero { grid-template-columns: 1fr; }
  .manifesto-copy, .page-hero > p { grid-column: auto; }
  .page-hero > p { margin-top: 0; }
  .section-heading { gap: 28px; }
  .offer-row { grid-template-columns: 48px 1fr 36px; gap: 18px; }
  .offer-row p { grid-column: 2; }
  .offer-arrow { grid-column: 3; grid-row: 1; }
  .home-story-grid { grid-template-columns: 1fr; }
  .story-image { min-height: 620px; }
  .service-hero, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-hero-image, .about-photo { position: relative; top: auto; min-height: 660px; }
  .service-copy, .about-copy { padding-top: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 28px); }
  h1 { font-size: clamp(3.55rem, 18vw, 5.6rem); }
  h2 { font-size: clamp(2.8rem, 14vw, 4.7rem); }
  .hero-meta { font-size: .56rem; }
  .home-hero-grid { padding-top: 38px; }
  .home-hero-media, .home-hero-media img { min-height: 500px; }
  .manifesto-grid blockquote { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .offer-row { min-height: 170px; }
  .services-grid { grid-template-columns: 1fr; padding-top: 54px; }
  .service-card, .service-card:nth-child(1), .service-card:nth-child(6) { grid-column: auto; min-height: 570px; }
  .service-card-art, .service-card:nth-child(1) .service-card-art, .service-card:nth-child(6) .service-card-art { min-height: 310px; }
  .service-card-body { padding: 28px; }
  .page-hero { padding-top: 70px; }
  .service-hero { padding-top: 34px; padding-bottom: 90px; }
  .service-hero-image, .about-photo { min-height: 500px; }
  .service-copy h1 { font-size: clamp(3.35rem, 15vw, 5.8rem); overflow-wrap: anywhere; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready { opacity: 1; transform: none; }
}
