/* CultivatED — site styles
   Design system after Claude / Anthropic: warm paper, serif display, one clay accent,
   hairline rules, generous whitespace. One focal point per screen.
   Mobile first; desktop rules at the bottom. */

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f3f0e8;
  --ink: #1f1e1d;
  --ink-soft: #3d3a35;
  --muted: #6f6a61;
  --faint: #9b958a;
  --line: #e3ded2;
  --line-strong: #cfc8b8;
  --accent: #c2603c;
  --accent-ink: #8f4425;
  --accent-soft: #f2e6dd;
  --radius: 12px;
  --radius-lg: 18px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Noto Sans CJK SC", "HarmonyOS Sans SC", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------------- header ---------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.015em;
}
.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.lang {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  transition: border-color 0.18s, color 0.18s;
}
.lang:hover { border-color: var(--line-strong); color: var(--ink); }

/* ---------------- hero ---------------- */
.hero {
  padding: 48px 0 0;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: block; }
.hero-copy { max-width: 100%; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero h1 {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 10.5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lead {
  margin: 22px 0 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 28px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn:active { transform: scale(0.99); }
.btn-lime { background: var(--ink); color: var(--bg); }
.btn-lime:hover { background: #000; }
.btn-ghost {
  border-color: transparent;
  color: var(--ink-soft);
  padding-inline: 4px;
}
.btn-ghost:hover { color: var(--accent); }

/* numbers column */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------- marquee → quiet strip ---------------- */
.marquee {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
}
.marquee div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  animation: none;
}
.marquee div span:nth-child(even) { display: none; }

/* ---------------- sections ---------------- */
section { padding: 56px 0; }

.sec-head { margin-bottom: 26px; }
.sec-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.sec-head p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------------- team ---------------- */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  transition: border-color 0.18s, transform 0.18s;
}
.member:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.member b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.member span {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.member i {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------------- timeline ---------------- */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.phase {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.phase .when {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  line-height: 1.4;
}
.phase .when small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.phase h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.phase p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------------- cards ---------------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -24px rgba(31, 30, 29, 0.35);
}
.card .cover {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--faint);
  overflow: hidden;
}
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  flex: 1;
}
.card .foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17.5px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.card p {
  margin: 0;
  flex: 1;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill.done { background: var(--accent-soft); color: var(--accent-ink); }
.pill.wip { background: var(--surface); border-color: var(--line-strong); color: var(--ink-soft); }
.pill.todo { background: transparent; border-color: var(--line); color: var(--faint); }
.pill.gap { background: transparent; border-color: var(--line); color: var(--faint); }

/* ---------------- evidence ---------------- */
.note {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.note b { color: var(--accent-ink); font-weight: 600; }

.rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.row .name { flex: 1; font-size: 14.5px; color: var(--ink); }
.row .meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row .amt {
  font-family: var(--serif);
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

/* total is the focal point of this page */
#transport-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 0;
}
#transport-total b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
#transport-total span { font-size: 12.5px; color: var(--muted); }

.lbl {
  margin: 26px 0 6px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* compare tiles */
.stats#compare {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  gap: 0;
}
#compare .stat { border-bottom: 1px solid var(--line); }
#compare .stat b { font-size: 26px; }
#compare .stat span { font-size: 11.5px; }

/* page head */
.page-head { padding-top: 44px; }
.page-head h1 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 8.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.page-head p {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.page-head .eyebrow { color: var(--accent); }

.ledger-main .lbl { margin-top: 26px; }
.ledger-side { margin-top: 30px; }

/* ---------------- footer ---------------- */
.site-foot {
  margin-top: 24px;
  padding: 48px 0 40px;
  border-top: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 5.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.site-foot p { margin: 0; font-size: 13px; color: var(--muted); }
.site-foot .row-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.site-foot a.chip {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: border-color 0.18s, color 0.18s;
}
.site-foot a.chip:hover { border-color: var(--ink); color: var(--ink); }
.site-foot .fine { font-size: 11.5px; color: var(--faint); }

/* ---------------- motion ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================= tablet ================= */
@media (min-width: 720px) {
  .wrap { padding: 0 36px; }
  section { padding: 72px 0; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 20px 18px 20px 0; border-bottom: none; }
  .team { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero { padding-top: 64px; }
}

/* ================= desktop ================= */
@media (min-width: 1080px) {
  :root { --max: 1200px; }
  body { font-size: 17px; }

  .site-head .wrap { height: 68px; gap: 16px; }
  .brand { font-size: 20px; }
  .nav a { font-size: 14px; padding: 8px 13px; }

  .hero { padding: 88px 0 0; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.72fr);
    gap: 72px;
    align-items: start;
  }
  .hero h1 { font-size: clamp(56px, 4.9vw, 78px); margin-top: 24px; line-height: 1.02; }
  .hero p.lead { font-size: 17.5px; max-width: 34ch; }
  .hero-actions { margin-top: 34px; gap: 12px 22px; }
  .btn { padding: 12px 20px; font-size: 15px; }

  .hero-side { padding-top: 6px; }
  .hero-side .stats {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-top: none;
    border-left: 1px solid var(--line);
  }
  .hero-side .stat {
    padding: 20px 0 22px 26px;
    border-bottom: 1px solid var(--line);
  }
  .hero-side .stat:last-child { border-bottom: none; }
  .hero-side .stat b { font-size: 38px; }
  .hero-side .stat span { font-size: 12px; }

  section { padding: 96px 0; }
  .sec-head { margin-bottom: 34px; }
  .sec-head h2 { font-size: clamp(30px, 2.7vw, 40px); }
  .sec-head p { font-size: 15.5px; }

  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card h3 { font-size: 19px; }
  .card .body { padding: 20px; }

  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 0 36px;
    border-top: 1px solid var(--line);
  }
  .phase {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0 24px;
    border-bottom: none;
    border-top: 1px solid transparent;
  }
  .phase h3 { font-size: 18px; }
  .phase p { font-size: 13.5px; }

  .page-head { padding-top: 76px; }
  .page-head h1 { font-size: clamp(44px, 4vw, 58px); }
  .page-head p { font-size: 16px; }

  .ledger-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    gap: 64px;
    align-items: start;
  }
  .ledger-side { position: sticky; top: 96px; margin-top: 0; }
  #transport-total b { font-size: 54px; }
  #compare .stat b { font-size: 28px; }

  .site-foot { padding: 64px 0 48px; }
  .site-foot .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    column-gap: 64px;
    align-items: start;
  }
  .site-foot h3 { grid-column: 1; }
  .site-foot > .wrap > p { grid-column: 1; }
  .site-foot .row-links { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .site-foot .fine { grid-column: 1; }
}

@media (min-width: 1500px) {
  :root { --max: 1280px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 84px; }
}

/* English headlines run longer than Chinese */
html[lang="en"] .hero h1 { font-size: clamp(36px, 9.6vw, 56px); letter-spacing: -0.02em; }
@media (min-width: 1080px) {
  html[lang="en"] .hero h1 { font-size: clamp(50px, 4.1vw, 68px); line-height: 1.04; }
  html[lang="en"] .hero p.lead { max-width: 32ch; }
  html[lang="en"] .page-head h1 { font-size: clamp(38px, 3.4vw, 52px); }
}

/* ---------------- figures / photos ---------------- */
.figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.figure.tall img { aspect-ratio: 3 / 4; }
.figure.wide img { aspect-ratio: 16 / 9; }
.figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint);
}
.hero-figure { margin-top: 30px; }

/* ---------------- bar chart ---------------- */
.chart { display: grid; gap: 14px; margin-top: 6px; }
.bar-row {
  display: grid;
  grid-template-columns: 1fr 84px;
  grid-template-areas: "label val" "bar bar";
  gap: 6px 10px;
  align-items: center;
}
.bar-label {
  grid-area: label;
  font-size: 13px;
  color: var(--ink-soft);
}
.bar-val {
  grid-area: val;
  text-align: right;
  font-family: var(--serif);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bar {
  grid-area: bar;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ink-soft);
}
.bar.accent i { background: var(--accent); }
.bar.ghost i { background: var(--line-strong); }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--faint);
}
.chart-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  background: var(--ink-soft);
  vertical-align: 0;
}
.chart-legend span.now::before { background: var(--accent); }

/* ---------------- missions ---------------- */
.missions {
  display: grid;
  border-top: 1px solid var(--line-strong);
  margin-top: 4px;
}
.mission { padding: 20px 0; border-bottom: 1px solid var(--line); }
.mission-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mission .code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.mission h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.mission .what { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.mission .gap { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.mission .who {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}

/* ---------------- entry cards (home) ---------------- */
.entries { display: grid; gap: 12px; margin-top: 4px; }
.entry {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.18s, transform 0.18s;
}
.entry:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.entry .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.entry h3 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.entry p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.entry .go {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
}

@media (min-width: 720px) {
  .hero-figure { margin-top: 0; }
  .bar-row { grid-template-columns: 200px 1fr 88px; grid-template-areas: "label bar val"; }
  .entries { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .missions { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
  .mission { padding: 22px 0; }
}
@media (min-width: 1080px) {
  .entries { gap: 18px; }
  .entry { padding: 26px; }
  .entry h3 { font-size: 24px; }
  .hero-grid .hero-figure { margin-top: 56px; }
}

/* hero numbers strip */
.hero > .wrap > .stats { margin-top: 40px; }
@media (min-width: 1080px) {
  .hero > .wrap > .stats { margin-top: 52px; }
  .hero > .wrap > .stats .stat { padding: 22px 24px 24px 0; }
}
