:root {
  --ink: #1f2825;
  --muted: #66706c;
  --paper: #fffdf9;
  --white: #ffffff;
  --coral: #d85c48;
  --coral-dark: #a43b2f;
  --mustard: #e9b949;
  --forest: #244c3c;
  --mint: #dfece5;
  --line: #d9dfdb;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; line-height: 1.6; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }

.site-header { height: 68px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; gap: 36px; background: rgba(255,253,249,.96); border-bottom: 1px solid rgba(31,40,37,.1); position: sticky; top: 0; z-index: 50; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 750; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--coral); font-family: Georgia, serif; }
.brand-dot { color: var(--coral); }
.desktop-nav { display: flex; gap: 30px; margin-left: auto; }
.desktop-nav a { color: #4d5753; font-size: 14px; text-decoration: none; }
.desktop-nav a:hover { color: var(--coral-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-switch, .icon-button { min-width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.language-switch { font-size: 12px; font-weight: 750; }
.header-contact { height: 40px; padding: 0 18px; color: white; border: 0; background: var(--ink); cursor: pointer; }
.header-contact:hover { background: var(--forest); }
.menu-button { display: none; font-size: 22px; }
.mobile-nav { display: none; position: fixed; inset: 68px 0 auto; z-index: 45; padding: 18px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }

.hero { min-height: min(690px, 82svh); position: relative; overflow: hidden; display: flex; align-items: flex-end; color: white; }
.hero-photo { position: absolute; inset: 0; background: #6f9cac url("assets/lily-profile-river-wide.jpg") center center / cover no-repeat; transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 27, 25, .78) 0%, rgba(13, 27, 25, .54) 43%, rgba(13, 27, 25, .16) 75%, rgba(13, 27, 25, .08) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 32%; background: rgba(15, 25, 22, .3); }
.hero-content { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 100px 0 58px; position: relative; z-index: 2; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.hero .eyebrow { color: #ffd790; }
.hero h1 { max-width: 590px; margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(42px, 4.8vw, 62px); line-height: 1.12; font-weight: 600; letter-spacing: 0; }
.hero-copy { max-width: 550px; margin: 24px 0 0; font-size: 18px; line-height: 1.8; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; padding: 0 20px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 22px; text-decoration: none; cursor: pointer; font-weight: 700; }
.button-primary { color: white; background: var(--coral); }
.button-primary:hover { background: var(--coral-dark); }
.button-quiet { color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); backdrop-filter: blur(8px); }
.button-quiet:hover { background: rgba(255,255,255,.22); }
.hero-proof { display: flex; gap: 42px; margin-top: 40px; }
.hero-proof span { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 8px; }
.hero-proof strong { font-family: Georgia, "Noto Serif SC", serif; font-size: 21px; white-space: nowrap; }
.hero-proof small { color: rgba(255,255,255,.75); }
.hero-next { position: absolute; right: max(24px, calc((100vw - var(--max))/2)); bottom: 30px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); color: white; text-decoration: none; font-size: 24px; }

.section-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.band { padding: 94px 0; }
.statement-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 10%; align-items: start; }
h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.25; font-weight: 600; letter-spacing: 0; }
.statement-copy > p { margin: 32px 0; color: var(--muted); font-size: 18px; }
.expertise-list { display: flex; flex-wrap: wrap; gap: 8px; }
.expertise-list span { padding: 8px 11px; border: 1px solid var(--line); color: var(--forest); font-size: 12px; font-weight: 700; }

.jobs-section, .insights-section { padding-top: 96px; padding-bottom: 105px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.job-toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) 190px 190px; gap: 10px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.job-toolbar label { position: relative; }
.search-field span { position: absolute; top: 10px; left: 13px; font-size: 19px; }
.job-toolbar input, .job-toolbar select { width: 100%; height: 44px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 0; outline: none; }
.job-toolbar input { padding: 0 14px 0 42px; }
.job-toolbar select { padding: 0 32px 0 12px; }
.job-toolbar input:focus, .job-toolbar select:focus { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(216,92,72,.12); }
.job-count { margin: 20px 0 12px; color: var(--muted); font-size: 13px; }
.job-count span:first-child { color: var(--ink); font-weight: 800; }
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.pagination:empty { display: none; }
.pagination button { min-width: 38px; height: 38px; padding: 0 10px; color: var(--ink); background: white; border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 700; }
.pagination button:hover:not(:disabled):not(.active) { color: var(--coral-dark); border-color: var(--coral); }
.pagination button.active { color: white; background: var(--ink); border-color: var(--ink); }
.pagination button:disabled { color: var(--muted); background: #f3f5f3; cursor: not-allowed; }
.page-status { margin-left: 8px; color: var(--muted); font-size: 12px; }
.job-card { min-height: 276px; padding: 24px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.job-card:hover { transform: translateY(-3px); border-color: var(--coral); box-shadow: 0 12px 30px rgba(31,40,37,.08); }
.job-card-top { display: flex; justify-content: space-between; gap: 10px; }
.job-card-label { color: var(--coral-dark); font-size: 11px; font-weight: 800; }
.job-card h3 { margin: 24px 0 8px; font-size: 22px; line-height: 1.35; }
.job-company { margin: 0; color: var(--muted); font-size: 14px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 24px; }
.job-tags span { padding: 5px 8px; color: var(--forest); background: var(--mint); font-size: 11px; }
.job-arrow { font-size: 20px; }
.empty-state { padding: 70px 20px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }

.service-band { padding: 100px 0; color: white; background: var(--forest); }
.section-heading.light .section-kicker { color: #ffd790; }
.section-heading.light h2 { max-width: 800px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.35); }
.service-column { padding: 42px 8% 8px 0; }
.service-column + .service-column { padding-left: 8%; border-left: 1px solid rgba(255,255,255,.35); }
.service-index { color: #ffd790; font: 20px Georgia, serif; }
.service-column h3 { margin: 18px 0 12px; font-size: 26px; }
.service-column p { max-width: 480px; color: rgba(255,255,255,.72); }
.service-column ul { margin: 24px 0 32px; padding: 0; list-style: none; }
.service-column li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.service-column li::before { content: "+"; margin-right: 10px; color: #ffd790; }
.text-button { padding: 0; border: 0; background: none; cursor: pointer; font-weight: 750; }
.light-link { color: white; }

.insight-list { border-top: 1px solid var(--ink); }
.insight-item { display: grid; grid-template-columns: 160px 1fr 40px; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.insight-meta { color: var(--coral-dark); font-size: 12px; font-weight: 750; }
.insight-item h3 { margin: 0 0 8px; font-size: 21px; }
.insight-item p { margin: 0; color: var(--muted); }
.insight-content { margin-top: 24px; color: var(--muted); }
.insight-content h3 { margin: 26px 0 8px; color: var(--ink); font-size: 17px; }
.insight-content p { margin: 0; line-height: 1.8; }
.insight-arrow { font-size: 22px; text-align: right; }

.about-band { padding: 100px 0; background: #edf1ee; }
.about-grid { display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: 10%; align-items: center; }
.about-image-wrap { position: relative; max-width: 390px; overflow: hidden; border: 0; background: #dfece5; box-shadow: 0 10px 28px rgba(31,40,37,.08); }
.about-image { width: 100%; height: 100%; min-height: 430px; display: block; object-fit: cover; object-position: center 18%; filter: saturate(.88) contrast(.98); }
.photo-caption { position: absolute; left: 0; bottom: 0; padding: 8px 12px; color: white; background: var(--forest); font-size: 11px; }
.about-copy h2 { font-size: clamp(32px, 4vw, 48px); }
.about-copy > p:not(.section-kicker) { color: var(--muted); font-size: 16px; }
.about-copy > p:nth-of-type(2) { margin-top: 28px; }
.social-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.social-links a { color: var(--coral-dark); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

.contact-band { padding: 84px 0; color: white; background: var(--ink); }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.contact-inner .section-kicker { color: #ffd790; }
.contact-inner h2 { max-width: 800px; font-size: clamp(30px, 4vw, 48px); }

footer { padding: 34px max(24px, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; background: white; border-top: 1px solid var(--line); }
.footer-brand { font-size: 24px; font-weight: 800; }
footer p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
.footer-meta a, .footer-meta button, .privacy-link { padding: 0; color: var(--muted); border: 0; background: transparent; text-decoration: underline; cursor: pointer; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15,25,22,.68); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(680px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; position: relative; padding: 38px; background: var(--paper); border-radius: 8px; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; font-size: 28px; }
.modal h2 { padding-right: 40px; font-size: 34px; }
.modal-intro { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.form-field { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.form-field.full { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 0; outline: none; }
.form-field textarea { min-height: 108px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--coral); }
.consent-field { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.6; }
.consent-field input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--coral); }
.privacy-link { justify-self: start; font-size: 12px; }
.privacy-content { color: var(--muted); }
.privacy-content h3 { margin: 24px 0 6px; color: var(--ink); font-size: 16px; }
.privacy-content p { margin: 0; }
.form-error { min-height: 18px; margin: 0; color: #a33f32; font-size: 12px; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.button-secondary { background: white; border-color: var(--line); }
.job-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.job-detail-meta span { padding: 6px 9px; background: var(--mint); font-size: 12px; }
.job-detail-section { margin-top: 24px; }
.job-detail-section h3 { margin-bottom: 8px; font-size: 16px; }
.job-detail-section ul { padding-left: 20px; color: var(--muted); }
.wechat-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: center; }
.wechat-layout img { width: 100%; display: block; border: 1px solid var(--line); }
.contact-options { display: grid; gap: 10px; }
.contact-options a { padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.submission-success { text-align: center; }
.submission-success h2 { padding-right: 0; }
.submission-success > p:not(.section-kicker) { max-width: 480px; margin: 12px auto; color: var(--muted); line-height: 1.7; }
.submission-success img { width: min(220px, 70%); margin: 22px auto 6px; border: 1px solid var(--line); }
.admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.metric { padding: 14px; background: #edf1ee; }
.metric strong { display: block; font-size: 25px; }
.admin-list { margin: 20px 0; border-top: 1px solid var(--ink); }
.admin-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-row small { color: var(--muted); }
.admin-row button { border: 0; color: var(--coral-dark); background: transparent; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 150; max-width: calc(100% - 32px); padding: 12px 18px; color: white; background: var(--ink); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .desktop-nav, .header-contact { display: none; }
  .header-actions { margin-left: auto; }
  .menu-button { display: block; }
  .hero { min-height: 82svh; }
  .hero-photo { background-image: url("assets/lily-profile-river-portrait-a.jpg"); background-position: 58% center; background-size: cover; }
  .hero-content { padding-bottom: 44px; }
  .hero h1 { max-width: 680px; }
  .hero-copy { max-width: 560px; }
  .hero-next { display: none; }
  .statement-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .statement-copy > p { margin-top: 0; }
  .job-grid { grid-template-columns: 1fr 1fr; }
  .job-toolbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .contact-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  .site-header { height: 60px; padding: 0 16px; }
  .mobile-nav { top: 60px; }
  .hero { min-height: 82svh; }
  .hero-photo { background-position: 58% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(13,27,25,.18) 0%, rgba(13,27,25,.48) 37%, rgba(13,27,25,.78) 100%); }
  .hero-content, .section-inner { width: min(100% - 32px, var(--max)); }
  .hero-content { padding: 84px 0 34px; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; line-height: 1.7; }
  .hero-actions .button { flex: 1 1 160px; }
  .hero-proof { gap: 20px; justify-content: space-between; }
  .hero-proof { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-proof span { display: block; min-width: 0; }
  .hero-proof strong, .hero-proof small { display: block; }
  .hero-proof strong { font-size: 15px; white-space: normal; line-height: 1.3; }
  .hero-proof small { font-size: 10px; }
  .band, .jobs-section, .insights-section, .service-band, .about-band { padding-top: 70px; padding-bottom: 74px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 28px; }
  .section-heading > p { text-align: left; }
  .job-toolbar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .job-grid, .service-grid { grid-template-columns: 1fr; }
  .service-column { padding: 32px 0; }
  .service-column + .service-column { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.35); }
  .insight-item { grid-template-columns: 1fr 28px; gap: 12px; }
  .insight-meta { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr; gap: 10px; }
  .footer-meta { justify-content: space-between; }
  .modal { padding: 28px 20px; }
  .modal h2 { font-size: 29px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full, .form-actions { grid-column: auto; }
  .wechat-layout { grid-template-columns: 1fr; }
  .wechat-layout img { max-width: 240px; margin: 0 auto; }
  .admin-metrics { grid-template-columns: 1fr; }
}
