:root {
  --navy: #0b2d4d;
  --blue: #2f6f97;
  --green: #548739;
  --gold: #f0bf2d;
  --ink: #172331;
  --muted: #5f6973;
  --cloud: #f4f6f4;
  --line: #dbe0dd;
  --white: #ffffff;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; font-weight: 700; }
h2 { margin-bottom: 1.5rem; color: var(--navy); font-size: clamp(2.15rem, 4vw, 4.3rem); letter-spacing: -0.035em; }
h3 { color: var(--navy); font-size: clamp(1.4rem, 2.2vw, 2.1rem); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; color: white; background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 96px; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(11,45,77,.08); transition: box-shadow .25s ease, height .25s ease; }
.site-header.is-scrolled { height: 84px; box-shadow: 0 8px 28px rgba(11,45,77,.11); }
.nav-shell { width: min(calc(100% - 48px), 1380px); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; width: min(390px, 31vw); min-width: 270px; height: 82px; overflow: hidden; transition: height .25s ease; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: center; transform: scale(1.65); transform-origin: center; }
.site-header.is-scrolled .brand { height: 72px; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 30px); }
.primary-nav a { position: relative; color: var(--navy); text-decoration: none; text-transform: uppercase; font-size: .76rem; font-weight: 800; letter-spacing: .095em; white-space: nowrap; }
.primary-nav a:not(.language-link)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--gold); transition: right .25s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a.is-active::after { right: 0; }
.primary-nav .language-link { margin-left: 6px; padding: 10px 13px; color: var(--navy); background: var(--gold); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy); }

.hero { position: relative; min-height: 820px; height: 100svh; overflow: hidden; display: grid; place-items: center; color: white; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; z-index: -3; background-position: center; background-size: cover; opacity: 0; transform: scale(1.04); animation: crossfade 24s infinite; }
.hero-water { background-image: url("assets/water-well.jpg"); animation-delay: 0s; }
.hero-education { background-image: url("assets/education-lab.jpg"); animation-delay: 8s; }
.hero-farm { background-image: url("assets/eden-farm.jpg"); animation-delay: 16s; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,26,44,.88) 0%, rgba(5,26,44,.58) 48%, rgba(5,26,44,.3) 100%); }
.hero-content { width: min(calc(100% - 48px), var(--max)); margin-top: 70px; }
.hero-content h1 { max-width: 900px; margin: .55rem 0 2rem; font-size: clamp(3rem, 6.5vw, 6.6rem); letter-spacing: -.045em; text-wrap: balance; }
.eyebrow { margin-bottom: .8rem; color: var(--green); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .2em; }
.eyebrow.light { color: var(--gold); }
.hero-pillars { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: .08em; }
.hero-pillars span { padding: 0 .4em; color: var(--gold); }
.scroll-cue { position: absolute; left: 50%; bottom: 32px; width: 34px; height: 52px; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 12px; left: 50%; width: 4px; height: 8px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); animation: scrollCue 2s infinite; }
@keyframes crossfade { 0% { opacity: 0; transform: scale(1.04); } 4%, 29% { opacity: 1; } 33%, 100% { opacity: 0; transform: scale(1.1); } }
@keyframes scrollCue { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,17px); } }

.section { position: relative; padding: clamp(84px, 10vw, 150px) 0; scroll-margin-top: 84px; }
.project-section::before, .farm-section::before, .team-section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(calc(100% - 48px), var(--max)); height: 2px; background: linear-gradient(90deg, transparent, rgba(84,135,57,.26) 24%, var(--gold) 50%, rgba(84,135,57,.26) 76%, transparent); transform: translateX(-50%); }
.section-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(48px, 7vw, 105px); align-items: center; }
.lead { color: #293746; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.65; }
.copy > p:last-child { margin-bottom: 0; }
.about-photo { position: relative; margin-bottom: 0; }
.about-photo::before { content: ""; position: absolute; inset: -20px 22% 20px -20px; z-index: -1; background: var(--gold); }
.about-photo img { width: 100%; height: auto; object-fit: contain; }
.stats-band { margin-top: clamp(72px, 9vw, 130px); color: white; background: var(--navy); }
.stats-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 46px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 46px; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.stat strong { color: var(--gold); font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1; }
.stat span { font-size: .95rem; line-height: 1.4; }
.stat small { display: block; margin-top: 5px; color: #adc1cf; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

.project-section { overflow: hidden; }
.water-section { background: linear-gradient(180deg, #eaf0ec 0, var(--cloud) 150px, var(--cloud) 100%); }
.education-section { background: linear-gradient(180deg, #f0f4f1 0, white 150px, white 100%); }
.split-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(54px, 8vw, 118px); align-items: center; }
.split-grid.reverse { grid-template-columns: .92fr 1.08fr; }
.split-grid.reverse .project-media { order: 2; }
.project-media { position: relative; display: grid; gap: 18px; padding: 0; }
.main-image { width: 100%; height: auto; object-fit: contain; }
.inset-image { position: static; justify-self: end; width: min(84%, 460px); height: auto; object-fit: contain; padding: 9px; border: 1px solid rgba(11,45,77,.09); background: var(--cloud); box-shadow: 0 16px 38px rgba(11,45,77,.1); }
.education-media .inset-image { background: white; }
.project-note { margin-top: 2rem; padding-left: 20px; border-left: 4px solid var(--gold); color: var(--muted); font-size: .95rem; }
.inline-photo { width: 78%; margin: 2rem 0 0; }
.inline-photo img { width: 100%; height: auto; object-fit: contain; }

.farm-section { color: white; background: linear-gradient(180deg, #0b2d4d 0, #0f3329 170px, #0f3329 100%); }
.farm-section::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.18) 24%, var(--gold) 50%, rgba(255,255,255,.18) 76%, transparent); }
.farm-section h2, .farm-section h3 { color: white; }
.farm-section .eyebrow { color: var(--gold); }
.section-heading { max-width: 820px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-heading.center { margin-right: auto; margin-left: auto; text-align: center; }
.farm-now { display: grid; grid-template-columns: .74fr 1.26fr; gap: clamp(36px, 6vw, 78px); align-items: end; }
.farm-copy { padding-bottom: 16px; }
.farm-copy .lead { color: white; }
.status-label { display: inline-block; margin-bottom: 1.4rem; padding: 7px 12px; color: #0f3329; background: var(--gold); font-size: .73rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.status-label.future { color: white; background: var(--green); }
.farm-wide { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; }
.farm-gallery { margin: 50px 0 110px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.farm-gallery figure { margin: 0; overflow: hidden; }
.farm-gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s ease; }
.farm-gallery figure:hover img { transform: scale(1.035); }
.future-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 80px); align-items: start; padding-top: 88px; border-top: 1px solid rgba(255,255,255,.22); }
.future-media { display: grid; gap: 14px; }
.future-image { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.future-photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.future-photo-pair img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.future-grid .copy p { color: #d7e2dc; line-height: 1.62; }
.future-grid .copy .status-label { color: white; }

.team-section { background: linear-gradient(180deg, #eaf0ec 0, #f7f8f6 170px, #f7f8f6 100%); }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; align-items: start; }
.team-member { background: white; border-bottom: 4px solid transparent; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.team-member:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(11,45,77,.09); }
.team-member > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.team-copy { padding: 30px 28px 34px; }
.team-copy h3 { margin-bottom: .3rem; }
.role { margin-bottom: 1.15rem; color: var(--green); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .095em; }
.team-copy p:last-child { margin-bottom: 0; color: var(--muted); font-size: .91rem; line-height: 1.7; }

.site-footer { padding: 72px 0 28px; color: white; background: #071e33; }
.footer-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr auto; gap: 50px; align-items: end; }
.footer-brand img { width: min(360px,100%); height: 100px; padding: 13px; object-fit: contain; object-position: left center; background: white; }
.footer-brand p { margin: 16px 0 0; color: #afc0cc; font-family: var(--serif); letter-spacing: .08em; }
.footer-contact { display: grid; gap: 6px; }
.footer-contact p { margin-bottom: 6px; color: #afc0cc; }
.footer-contact a { color: white; text-decoration-color: rgba(240,191,45,.55); text-underline-offset: 4px; }
.back-top { align-self: start; color: var(--gold); font-size: .78rem; font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; }
.copyright { width: min(calc(100% - 48px), var(--max)); margin: 58px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8297a6; font-size: .75rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.cn-page { font-family: "PingFang SC", "Microsoft YaHei", var(--sans); }
.cn-page h1, .cn-page h2, .cn-page h3, .cn-page .lead, .cn-page .hero-pillars { font-family: "Songti SC", "Noto Serif CJK SC", var(--serif); }
.cn-tagline { margin-bottom: .8rem; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.cn-hero .hero-content h1 { max-width: 1050px; }
.cn-title-sub { margin-left: .15em; }

@media (max-width: 1040px) {
  .brand { width: 300px; min-width: 230px; height: 74px; }
  .site-header.is-scrolled .brand { height: 66px; }
  .primary-nav { gap: 14px; }
  .primary-nav a { font-size: .68rem; }
  .hero { min-height: 720px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-member:last-child { grid-column: 1 / -1; width: calc(50% - 14px); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  .site-header, .site-header.is-scrolled { height: 72px; }
  .nav-shell { width: min(calc(100% - 28px), var(--max)); }
  .brand, .site-header.is-scrolled .brand { width: 260px; min-width: 0; height: 62px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 72px; left: 0; right: 0; padding: 24px; display: grid; gap: 0; background: white; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(11,45,77,.12); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: .2s ease; }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .primary-nav a { padding: 12px 6px; font-size: .78rem; }
  .primary-nav a::after { display: none; }
  .primary-nav .language-link { margin: 10px 0 0; text-align: center; }
  .hero { height: 92svh; min-height: 650px; }
  .hero-content { width: min(calc(100% - 32px), var(--max)); }
  .about-grid, .split-grid, .split-grid.reverse, .farm-now, .future-grid { grid-template-columns: 1fr; }
  .split-grid.reverse .project-media { order: 0; }
  .about-photo img { min-height: 400px; }
  .stats-shell { grid-template-columns: 1fr; gap: 28px; }
  .stat { grid-template-columns: 108px 1fr; }
  .project-media { max-width: 620px; }
  .farm-now { align-items: start; }
  .farm-gallery { grid-template-columns: 1fr 1fr; margin-bottom: 85px; }
  .footer-shell { grid-template-columns: 1fr; align-items: start; }
  .back-top { grid-row: 1; justify-self: end; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .section-shell, .stats-shell, .footer-shell, .copyright { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 82px 0; }
  .hero-content h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-pillars { letter-spacing: .02em; }
  .cn-hero .hero-content h1 { font-size: 2.08rem; letter-spacing: -.02em; }
  .cn-title-main, .cn-title-sub { display: block; }
  .cn-title-sub { margin: .25em 0 0; font-size: .82em; }
  .about-photo::before { inset: -12px 15% 12px -12px; }
  .about-photo img { min-height: 0; }
  .project-media { gap: 12px; }
  .inset-image { width: 92%; padding: 6px; }
  .farm-gallery { gap: 7px; }
  .future-media, .future-photo-pair { gap: 8px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-member:last-child { grid-column: auto; width: auto; }
  .footer-brand img { height: 84px; }
}

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