:root {
  --beige-1: #f3f2e6;
  --beige-2: #eceada;
  --beige-3: #dbdacf;
  --stone-100: #f6f5ed;
  --stone-300: #e7e5d4;
  --stone-500: #6f6f6f;
  --stone-600: #57514d;
  --stone-800: #292724;
  --stone-900: #1c1917;
  --surface: #fdfdfb;
  --green: #114849;
  --green-deep: #0d1c1b;
  --sand: #e5b580;
  --brown: #896033;
  --magic: #a987cb;
  --serif: "Hedvig Letters Serif", "Noto Serif SC", Georgia, serif;
  --sans: "Lato", "Noto Sans SC", system-ui, sans-serif;
  --accent: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--beige-1);
  color: var(--stone-800);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, .statement p { text-wrap: balance; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; color: var(--stone-900); }

/* announcement */
.announce {
  background: var(--stone-900);
  color: var(--beige-1);
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  padding: 14px var(--gutter);
}
.announce .launch-dot { width: 9px; height: 9px; margin-right: 10px; }
.announce a { color: var(--sand); text-decoration: none; margin-left: 8px; font-weight: 700; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }

.announce b { color: var(--sand); font-weight: 700; }
.launch-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(229, 181, 128, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(229, 181, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 181, 128, 0); } }
.launch-pill {
  display: inline-flex; align-items: center; margin-bottom: 18px;
  padding: 7px 14px; border-radius: 999px;
  font: 600 13px var(--accent); letter-spacing: .02em; color: var(--beige-1);
  background: rgba(28, 25, 23, .55); border: 1px solid rgba(229, 181, 128, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--beige-1) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--accent); font-weight: 600; text-decoration: none; color: var(--stone-900); font-size: 17px; }
.nav-links { display: flex; gap: 4px; background: var(--beige-2); border-radius: 10px; padding: 4px; }
.nav-links a { text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 7px; color: var(--stone-600); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--surface); color: var(--stone-900); }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; font-family: var(--sans); font-weight: 700; border-radius: 10px; padding: 10px 18px; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--beige-3); font-weight: 400; font-size: 13px; padding: 8px 14px; }
.btn-solid { background: var(--green); color: var(--beige-1); }
.btn-solid:hover { background: #0c3a3b; }
.btn-link { color: var(--green); padding-left: 4px; }
.btn-sand { background: var(--sand); color: var(--stone-900); }
.btn-sand:hover { background: #ecc396; }

.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 9px; padding: 3px; cursor: pointer; font: 12px var(--accent); }
.lang span { white-space: nowrap; padding: 4px 8px; border-radius: 6px; color: var(--stone-500); transition: background .15s, color .15s; }
html[lang="en"] .lang [data-l="en"], html[lang="zh-CN"] .lang [data-l="zh"] { background: var(--surface); color: var(--stone-900); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Chinese: CJK glyphs need more leading and no negative tracking */
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { letter-spacing: .01em; }
html[lang="zh-CN"] .hero h1 { line-height: 1.18; }
html[lang="zh-CN"] .statement p { line-height: 1.45; }
html[lang="zh-CN"] body { line-height: 1.75; }

/* hero */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(84vh, 820px);
  margin: 4px var(--gutter) 0; padding: 0 clamp(24px, 4vw, 56px) clamp(32px, 5vw, 56px);
  border-radius: 28px; overflow: hidden; isolation: isolate;
  background: var(--green-deep);
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, center);
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-photos img.is-active { opacity: 1; animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 10, 9, .82) 0%, rgba(12, 10, 9, .35) 42%, rgba(12, 10, 9, 0) 68%),
    linear-gradient(90deg, rgba(12, 10, 9, .45) 0%, rgba(12, 10, 9, 0) 55%);
}
.hero-copy { position: relative; width: 100%; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; color: var(--beige-1); }
.lede { max-width: 30rem; margin-top: 18px; font-size: 18px; color: rgba(243, 242, 230, .82); }
.hero-ctas { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-solid { background: var(--sand); color: var(--stone-900); }
.hero .btn-solid:hover { background: #ecc396; }
.hero .btn-link { color: var(--beige-1); }

.feed {
  list-style: none;
  position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(32px, 5vw, 56px);
  width: min(320px, 36vw);
  display: flex; flex-direction: column; gap: 10px;
}
.bubble {
  background: var(--green); color: var(--beige-1);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.4;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(10px) scale(.98);
  animation: pop .5s cubic-bezier(.2, .8, .2, 1) forwards;
}
.bubble.light { background: rgba(28, 25, 23, .78); margin-right: 36px; }
.bubble:not(.light) { margin-left: 36px; }
.bubble .who { display: block; font-family: var(--accent); font-size: 11px; letter-spacing: .02em; opacity: .65; margin-bottom: 2px; }
.bubble:nth-child(1) { animation-delay: .4s; }
.bubble:nth-child(2) { animation-delay: 1.3s; }
.bubble:nth-child(3) { animation-delay: 2.2s; }
.bubble:nth-child(4) { animation-delay: 3.1s; background: var(--sand); color: var(--stone-900); font-weight: 700; }
.bubble:nth-child(5) { animation-delay: 4s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* strip */
.strip { display: flex; align-items: center; gap: 24px; padding: 22px var(--gutter); border-top: 1px solid var(--beige-3); border-bottom: 1px solid var(--beige-3); }
.strip-label { font-size: 12px; color: var(--stone-500); white-space: nowrap; }
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: scroll 40s linear infinite; font-family: var(--serif); font-size: 22px; color: var(--stone-600); align-items: center; }
.marquee-track i { font-style: normal; color: var(--sand); font-size: 14px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* statement */
.statement { max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 40px; }
.statement p { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; max-width: 52rem; margin-left: auto; text-align: right; color: var(--stone-900); }

/* sections */
.section { max-width: var(--max); margin: 0 auto; padding: 100px var(--gutter) 40px; }
.section h2 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 40px; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--beige-3); font-size: 12px; padding: 4px 10px; border-radius: 4px; color: var(--stone-800); }
.pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--stone-800); }
.pill.small { background: var(--beige-2); border: 1px solid var(--beige-3); }

/* feature (case-study style) */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.feature-media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 30% 20%, #1d5a52, var(--green) 55%, var(--green-deep)); }
.play-badge { position: absolute; left: 16px; bottom: 16px; background: rgba(253, 253, 251, .92); color: var(--stone-900); font-size: 12px; padding: 6px 10px; border-radius: 999px; font-family: var(--accent); }
.play-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; background: #e0574b; border-radius: 50%; margin-right: 7px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }


.carousel { isolation: isolate; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide.is-active img { animation: drift 6s ease-out both; }
.slide.portrait { background: var(--green-deep); }
.slide.portrait::before { content: ""; position: absolute; inset: -20px; background: var(--bg) center / cover; filter: blur(22px) brightness(.6); }
.slide.portrait img { position: relative; object-fit: contain; animation: none; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.dots { position: absolute; right: 16px; bottom: 18px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(253, 253, 251, .5); cursor: pointer; transition: width .3s, background .3s; }
.dots button[aria-selected="true"] { width: 22px; background: var(--surface); }
.play-badge { z-index: 2; }

.feature-kicker { font-family: var(--accent); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--stone-900); }
.stats { display: flex; gap: 40px; margin: 18px 0 10px; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--stone-900); }
.stats span { font-size: 13px; color: var(--stone-500); }
.quote-mark { display: block; font-family: var(--serif); color: var(--sand); font-size: 56px; line-height: .8; margin-top: 18px; height: 30px; }
.feature-quote { font-size: 16px; color: var(--stone-800); max-width: 30rem; }
.feature-sig { margin-top: 16px; font-size: 13px; color: var(--stone-500); }
.feature-sig b { color: var(--stone-900); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.card { background: var(--beige-2); border-radius: 22px; padding: 22px; min-height: 170px; transition: transform .25s, background .25s; }
.card:hover { transform: translateY(-3px); background: var(--stone-300); }
.card-step { font-family: var(--accent); font-size: 12px; color: var(--brown); }
.card-stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 10px 0 6px; color: var(--stone-900); }
.card p { font-size: 14px; color: var(--stone-600); }

/* programs timeline */
.timeline { position: relative; margin-top: 50px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--beige-3); }
.row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; margin-bottom: 110px; }
.row::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--green); transform: translate(-50%, -50%); box-shadow: 0 0 0 5px var(--beige-1); }
.row.flip .frame { order: 2; }
.row-copy h3 { font-size: clamp(28px, 3vw, 36px); margin: 14px 0 10px; }
.row-copy p { color: var(--stone-600); max-width: 30rem; }

.frame {
  border-radius: 22px; padding: 30px;
  background:
    radial-gradient(80% 60% at 50% 110%, rgba(229, 181, 128, .18), transparent 70%),
    radial-gradient(120% 120% at 0% 0%, #1d3a40, var(--green-deep) 70%);
  box-shadow: 0 30px 60px -30px rgba(13, 28, 27, .55);
}
.window { background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.win-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--stone-800); }
.win-bar span { width: 7px; height: 7px; border-radius: 50%; background: #6a7a6b; }
.win-bar em { font-style: normal; color: var(--beige-3); font-size: 11px; margin-left: 8px; font-family: var(--accent); }
.win-body { padding: 16px; }
.win-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.win-head b { font-family: var(--serif); font-weight: 400; font-size: 17px; display: block; color: var(--stone-900); }
.win-head small { color: var(--stone-500); font-size: 11px; }
.tag { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; font-weight: 700; }
.tag.ok { background: #cef5ca; color: #114e0b; }
.tag.magic { background: #efe6f8; color: #5e3b86; }
.tag.warn { background: #f5ecc2; color: #5e5515; }
.win-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-500); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.chips span { background: var(--stone-100); border: 1px solid var(--stone-300); padding: 3px 8px; border-radius: 999px; font-size: 10.5px; color: var(--stone-600); }
.list { display: flex; flex-direction: column; gap: 6px; }
.li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--stone-300); border-radius: 9px; padding: 8px 10px; }
.li > div { flex: 1; }
.li b { display: block; font-size: 12px; }
.li small { color: var(--stone-500); font-size: 11px; }
.ico { width: 26px; height: 26px; border-radius: 7px; background: var(--stone-100); display: grid; place-items: center; font-size: 13px; }
.mini-btn { font-size: 10.5px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--stone-300); }
.mini-btn.dark { background: var(--green); color: var(--beige-1); border-color: var(--green); }
.chart, .map { width: 100%; height: auto; display: block; margin-bottom: 12px; }

/* faq */
.faq-list { display: grid; gap: 10px; max-width: 52rem; }
details { background: var(--beige-2); border-radius: 14px; padding: 18px 22px; }
summary { cursor: pointer; font-family: var(--serif); font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--stone-900); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); color: var(--brown); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; color: var(--stone-600); max-width: 44rem; }

/* cta */
.cta { padding: 100px var(--gutter); }
.cta-inner {
  max-width: var(--max); margin: 0 auto; border-radius: 28px; padding: clamp(36px, 6vw, 80px);
  color: var(--beige-1);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(229, 181, 128, .22), transparent 60%),
    radial-gradient(120% 120% at 0% 100%, #1d5a52, var(--green) 50%, var(--green-deep));
}
.cta h2 { color: var(--beige-1); font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; max-width: 40rem; }
.cta p { margin-top: 14px; opacity: .8; max-width: 32rem; }
.cta-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.cta-form input, .cta-form select { font: inherit; font-size: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(243, 242, 230, .25); background: rgba(243, 242, 230, .08); color: var(--beige-1); min-width: 0; }
.cta-form .btn { padding: 12px 18px; }
.cta-form .cta-details { grid-column: 1 / -1; }
.cta-form [aria-invalid="true"] { border-color: var(--sand); box-shadow: 0 0 0 1px var(--sand); }
.cta-status { grid-column: 1 / -1; min-height: 1.4em; font-size: 14px; color: var(--sand); }
.cta-form.is-done input, .cta-form.is-done select, .cta-form.is-done button { opacity: .5; pointer-events: none; }
.cta-form input::placeholder { color: rgba(243, 242, 230, .6); }
.cta-form select option { color: var(--stone-900); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 30px var(--gutter) 40px; font-size: 13px; color: var(--stone-500); border-top: 1px solid var(--beige-3); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bubble, .reveal { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 960px) {
  .feature, .row { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .frame { order: 0; }
  .timeline::before, .row::after { display: none; }
  .row { margin-bottom: 70px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cta-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .announce { font-size: 14px; padding: 12px var(--gutter); }
  .nav-right .btn-ghost { display: none; }
  .hero { min-height: 640px; margin-top: 0; border-radius: 22px; padding: 0 20px 28px; }
  .feed { width: auto; left: 16px; right: 16px; top: 16px; bottom: auto; gap: 6px; }
  .feed .bubble:nth-child(n+3) { display: none; }
  .bubble { font-size: 12px; padding: 8px 11px; }
  .statement { padding-top: 70px; }
  .statement p { text-align: left; }
  .stats { gap: 24px; }
  .cards { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  .cta-form .btn { order: 1; }
  .cta-status { order: 2; }
  .frame { padding: 16px; }
  .strip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .marquee { width: 100%; }
}
