/* Fonts are self-hosted so the site never depends on Google (also loads in China) */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(/assets/fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(/assets/fonts/public-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --paper: #f6f1e6;
  --paper-2: #ece6d6;
  --green: #1e5631;
  --green-deep: #153f24;
  --ink: #1d2620;
  --muted: #59625a;
  --line: #d8cfbb;
  --on-green: #f1ede2;
  --on-green-muted: #b9c6b4;

  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ui: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --body: var(--ui);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}
:lang(zh) {
  --head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ui: "Public Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.65;
}
body:lang(zh) { font-size: 1.0625rem; line-height: 1.85; }

img { max-width: 100%; display: block; }
a { color: var(--green); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.contact a:focus-visible { outline-color: var(--on-green); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2 { font-family: var(--head); font-weight: 700; color: var(--green); line-height: 1.05; margin: 0; }
:lang(zh) h1, :lang(zh) h2 { font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; }
p { margin: 0 0 1em; max-width: 62ch; }
:lang(zh) p { max-width: 34em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--on-green); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 230, 0.95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { height: 36px; width: auto; }
.brand span {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; font-size: 1.35rem;
  color: var(--green); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-family: var(--head); font-size: 1.05rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
:lang(zh) .nav a { font-size: 0.95rem; }
.nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.nav .lang { color: var(--green); font-weight: 600; }
.nav a.btn-solid, .nav a.btn-solid:hover { color: var(--on-green); text-decoration: none; }
@media (max-width: 720px) { .nav .section-link { display: none; } .brand span { font-size: 1.1rem; } }
@media (max-width: 420px) { .brand img { height: 30px; } .brand span { font-size: 1rem; } .nav { gap: 12px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  font-family: var(--head); font-weight: 600; font-size: 1.15rem; text-decoration: none; white-space: nowrap;
  border-radius: 3px; border: 2px solid var(--green); transition: background-color .15s, color .15s;
}
:lang(zh) .btn { font-size: 1rem; }
.btn-solid { background: var(--green); color: var(--on-green); }
.btn-solid:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-line { color: var(--green); background: transparent; }
.btn-line:hover { background: var(--green); color: var(--on-green); }
.head-call { min-height: 40px; padding: 0 14px; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Photos */
.photo { margin: 0; overflow: hidden; background: var(--paper-2); border-radius: 3px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Hero: text in the page column, photo bleeding to the right edge */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  min-height: min(calc(100vh - 64px), 780px);
}
.hero-text {
  align-self: center;
  padding: 56px clamp(24px, 4vw, 56px) 56px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); text-transform: uppercase; margin-bottom: 20px; }
:lang(zh) .hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: none; }
.hero .lede { font-size: 1.3rem; margin-bottom: 4px; }
:lang(zh) .hero .lede { font-size: 1.15rem; }
.hero .creds { color: var(--muted); margin-bottom: 28px; }
.hero .photo { border-radius: 0; height: 100%; }
.hero .photo img { object-position: 50% 35%; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .photo { order: -1; height: 56vh; max-height: 460px; }
  .hero-text { padding: 32px var(--gutter) 44px; }
}

/* Principles: text beside a modest photo, alternating sides */
.principles { padding: clamp(24px, 4vw, 48px) 0; }
.principle {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding: clamp(32px, 4.5vw, 56px) 0;
}
.principle + .principle { border-top: 1px solid var(--line); }
.principle:nth-child(even) .media { order: 2; }
.principle h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); text-transform: uppercase; margin-bottom: 10px; }
:lang(zh) .principle h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); text-transform: none; }
.kicker { font-family: var(--head); font-size: 1.35rem; font-weight: 500; line-height: 1.3; margin-bottom: 14px; }
:lang(zh) .kicker { font-size: 1.12rem; }
.principle p:last-child { margin-bottom: 0; }
.media .photo { aspect-ratio: 4 / 3; }
.media.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media.pair .photo { aspect-ratio: 3 / 4; }
.pos-left { object-position: 25% 50%; }
.pos-climber { object-position: 42% 50%; }
@media (max-width: 760px) {
  .principle { grid-template-columns: 1fr; gap: 18px; }
  .principle:nth-child(even) .media { order: 0; }
  .media .photo { aspect-ratio: 3 / 2; }
  .media.pair .photo { aspect-ratio: 1 / 1; }
}

/* The one loud moment */
.motto { background: var(--green); color: var(--on-green); padding: clamp(56px, 8vw, 104px) 0; }
.motto .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.motto h2 { color: var(--on-green); font-size: clamp(3.2rem, 9vw, 7rem); text-transform: uppercase; line-height: 0.92; }
:lang(zh) .motto h2 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.2; text-transform: none; }
.motto .kicker { color: var(--on-green); }
.motto p { color: var(--on-green-muted); }
.motto p:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .motto .wrap { grid-template-columns: 1fr; } }

/* Services */
.services { padding: clamp(56px, 8vw, 96px) 0; }
.services .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.section-title { font-size: clamp(2rem, 3.6vw, 2.8rem); text-transform: uppercase; margin-bottom: 6px; }
:lang(zh) .section-title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); text-transform: none; }
.section-sub { color: var(--muted); margin-bottom: 24px; }
.service-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--green); }
.service-list li {
  font-family: var(--head); font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 500;
  padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.2;
}
:lang(zh) .service-list li { font-size: 1.15rem; }
.service-list li small { display: block; font-family: var(--ui); font-size: 0.9rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.services .photo { aspect-ratio: 4 / 3; }
.services .photo img { object-position: 60% 50%; }
@media (max-width: 820px) { .services .wrap { grid-template-columns: 1fr; } .services .photo { aspect-ratio: 3 / 2; } }

/* About */
.about { background: var(--paper-2); padding: clamp(56px, 8vw, 96px) 0; }
.about .wrap { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about .photo { aspect-ratio: 4 / 5; background: var(--paper); }
.about .photo img { object-position: 50% 30%; }
@media (max-width: 760px) {
  .about .wrap { grid-template-columns: 1fr; }
  .about .photo { aspect-ratio: 1 / 1; max-width: 360px; }
}

/* Contact / footer */
.contact { background: var(--green-deep); color: var(--on-green); padding: clamp(56px, 8vw, 88px) 0 32px; }
.contact h2 { color: var(--on-green); font-size: clamp(2.2rem, 4.6vw, 3.4rem); text-transform: uppercase; margin-bottom: 12px; }
:lang(zh) .contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); text-transform: none; }
.contact .intro { color: var(--on-green-muted); margin-bottom: 28px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 44px; }
.contact-grid a { display: block; padding: 22px 22px 20px; background: rgba(255,255,255,0.06); text-decoration: none; color: var(--on-green); transition: background-color .15s; }
.contact-grid a:hover { background: rgba(255,255,255,0.13); }
.contact-grid .label { display: block; font-family: var(--head); font-size: 1rem; color: var(--on-green-muted); margin-bottom: 2px; }
.contact-grid .value { display: block; font-family: var(--head); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; word-break: break-word; }
.contact-grid .value.email { font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.legal { border-top: 1px solid rgba(241, 237, 226, 0.18); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.95rem; color: var(--on-green-muted); }
.legal p { margin: 0; max-width: none; }
.legal a { color: var(--on-green); }
@media (max-width: 820px) { .hero .photo img { object-position: 50% 15%; } }
@media (max-width: 420px) { :lang(zh) .hero h1 { font-size: 1.7rem; } }
.pos-climb { object-position: 50% 88%; }

/* Small text uses the clean sans; only big headings use the condensed face */
.nav a, .btn, .kicker, .service-list li, .contact-grid .label, .contact-grid .value { font-family: var(--ui); }
:lang(zh) .nav a, :lang(zh) .kicker, :lang(zh) .service-list li { font-family: var(--body); }
.nav a { font-size: 0.98rem; }
.btn { font-size: 1rem; }
.kicker { font-size: 1.15rem; font-weight: 600; }
.service-list li { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 400; }
.contact-grid .value { font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
