/* Complex Plane Technologies — site styles (v2: ink hero, alternating bands) */

@font-face {
  font-family: "Complex Font";
  src: url("fonts/ComplexFont-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101418;
  --paper: #F7F6F2;
  --tint: #EDEBE4;
  --accent: #FF4B2B;

  --muted: #5F625F;          /* secondary text on paper */
  --muted-tint: #565957;     /* secondary text on tint */
  --on-ink: #F7F6F2;
  --on-ink-muted: #B9BAB5;

  --rule: rgba(16, 20, 24, 0.14);
  --rule-strong: rgba(16, 20, 24, 0.3);
  --rule-ink: rgba(247, 246, 242, 0.16);
  --rule-ink-strong: rgba(247, 246, 242, 0.5);

  --font-display: "Complex Font", "Complex Font SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Complex Font SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-latin: "Complex Font", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --band: clamp(72px, 9vw, 128px);
  color-scheme: light;
}

*, *::before, *::after { 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(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:hover { color: var(--accent); }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.page { background: var(--paper); overflow-x: clip; }

.wrap {
  max-width: calc(1312px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  z-index: 100;
}
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
.label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 7.6vw, 120px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 16em;
  margin-bottom: clamp(40px, 5vw, 72px);
  text-wrap: balance;
}

.statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.008em;
  max-width: 21em;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 16px;
  border-bottom: 1px solid currentColor;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- bands ---------- */
.section { padding: var(--band) 0; }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--tint { background: var(--tint); }
.section--ruled { border-top: 1px solid var(--rule); }

.section--ink .label,
.footer .label,
.hero .label { color: var(--on-ink-muted); }
.section--ink .lede,
.footer .lede,
.hero .lede { color: var(--on-ink-muted); }
.section--tint .label { color: var(--muted-tint); }

/* ---------- nav ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 40px;
  min-height: 84px;
  padding: 12px 0;
}
.nav--paper { border-bottom: 1px solid var(--rule); }
.nav__brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.nav__brand:hover { color: inherit; }
.lockup { display: block; height: 28px; width: auto; }
.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
  font-size: 15px;
  color: var(--muted);
}
.hero .nav__links { color: var(--on-ink-muted); }
.nav__links a, .nav__links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav__links [aria-current="page"] {
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
}
.nav__contact {
  padding: 0 18px;
  border: 1px solid rgba(16, 20, 24, 0.4);
  border-radius: 999px;
  color: var(--ink);
}
.hero .nav__contact { border-color: rgba(247, 246, 242, 0.4); color: var(--on-ink); }
.nav__contact:hover { border-color: var(--accent); }

/* ---------- hero (home) ---------- */
.hero { background: var(--ink); color: var(--on-ink); }
.hero__body { padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.hero__eyebrow { margin-bottom: 28px; font-size: 15px; color: var(--on-ink-muted); }
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  margin-top: clamp(32px, 4vw, 56px);
}
.hero__row .lede { flex: 1 1 420px; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero__actions .link-line { min-height: 52px; border-bottom-color: rgba(247, 246, 242, 0.5); }

.strip {
  display: block;
  width: 100%;
  height: clamp(240px, 27.8vw, 560px);
  touch-action: pan-y;
  cursor: crosshair;
}
.strip text { font-family: var(--font-latin); }
.strip .t-num { font-size: 13px; fill: var(--on-ink-muted); text-anchor: middle; }
.strip .t-axis { font-size: 16px; fill: var(--on-ink); }
.strip .t-proj { font-size: 13px; fill: var(--on-ink-muted); }
.strip .t-z { font-size: 20px; fill: var(--on-ink); }

/* ---------- principles ---------- */
.tri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0 48px;
  margin-top: clamp(56px, 7vw, 96px);
}
.tri__item { border-top: 1.5px solid var(--ink); padding: 32px 0 40px; }
.tri__sym {
  font-family: var(--font-latin);
  font-size: 76px;
  line-height: 1;
  margin-bottom: 36px;
}
.tri__sym--z { font-style: italic; color: var(--accent); }
.tri__item .h3 { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
.tri__item > p:not(.tri__sym) { color: var(--muted); margin-bottom: 28px; }
.tri__list { font-size: 16px; }
.tri__list li { padding: 14px 0; border-top: 1px solid var(--rule); }

/* ---------- product band ---------- */
.product-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 64px;
  padding: clamp(36px, 4.5vw, 64px) 0;
  border-top: 1px solid var(--rule-ink-strong);
  border-bottom: 1px solid var(--rule-ink);
}
.product-band__name { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.product-band__icon {
  display: block;
  flex: none;
  width: clamp(64px, 8vw, 108px);
  height: clamp(64px, 8vw, 108px);
}
.product-band h2 {
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 136px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.product-band__status {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.1;
}
.product-band__status::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- what we do ---------- */
.rows { border-top: 1.5px solid var(--ink); }
.rows__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.rows__row .h3 { flex: 1 1 360px; min-width: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.rows__row p { flex: 1.3 1 420px; min-width: 0; color: var(--muted); }

/* ---------- beliefs ---------- */
.beliefs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 0 64px;
}
.beliefs li { border-top: 1px solid var(--rule-strong); padding: 30px 0 44px; }
.beliefs .h3 { font-size: clamp(24px, 2.3vw, 32px); margin-bottom: 10px; }
.beliefs p { max-width: 30em; color: var(--muted-tint); }

/* ---------- company strip (home) ---------- */
.section--slim { padding: clamp(56px, 6vw, 88px) 0; }
.company-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 64px;
}
.company-strip .label { margin-bottom: 20px; }
.company-strip__line {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  max-width: 24em;
  text-wrap: balance;
}

/* ---------- split (label column + content) ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 96px; }
.split__aside { flex: 1 1 380px; min-width: 0; }
.split__main { flex: 1.5 1 520px; min-width: 0; }
.split__aside .h2 { font-size: clamp(32px, 3.6vw, 52px); max-width: 11em; margin-bottom: 20px; }
.split__aside > p { max-width: 26em; color: var(--muted); margin-bottom: 32px; }

.facts { border-top: 1.5px solid var(--ink); }
.facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt { flex: 1 1 180px; font-size: 15px; color: var(--muted); }
.facts dd { flex: 2 1 300px; }
.facts dd a { border-bottom: 1px solid var(--ink); }

/* ---------- about page ---------- */
.about-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 48px 80px;
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 120px);
}
.about-head__text { flex: 1.5 1 520px; min-width: 0; }
.about-head h1 {
  font-size: clamp(40px, 5.8vw, 88px);
  line-height: 1.04;
  max-width: 11em;
  text-wrap: balance;
}
.about-head .lede { margin-top: clamp(28px, 3.5vw, 48px); max-width: 33em; }
.about-head__plane { flex: 1 1 340px; min-width: 0; max-width: 460px; }
.about-head__plane svg { display: block; width: 100%; height: auto; }
.about-head__plane text { font-family: var(--font-latin); }

.why__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 24px 64px;
  max-width: 1040px;
  margin-top: clamp(40px, 5vw, 72px);
}
.why__cols p { padding-top: 24px; border-top: 1.5px solid var(--ink); color: var(--muted); }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 0 64px;
}
.team__person {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  border-top: 1px solid var(--rule-ink-strong);
  padding: 36px 0 44px;
}
.team__mono {
  flex: none;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 246, 242, 0.4);
  border-radius: 50%;
  font-family: var(--font-latin);
  font-size: 36px;
}
.team__text { flex: 1 1 240px; min-width: 0; }
.team__text .h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; margin-bottom: 4px; }
.team__text p { font-size: 16px; color: var(--on-ink-muted); max-width: 26em; }
.team__role { margin-bottom: 14px; }

.milestones { border-top: 1.5px solid var(--ink); }
.milestones li { padding: 24px 0 28px; border-bottom: 1px solid var(--rule); }
.milestones__when { font-family: var(--font-display); font-size: 26px; line-height: 1.2; margin-bottom: 6px; }
.milestones p:last-child { color: var(--muted); }

/* ---------- contact + footer ---------- */
.footer { background: var(--ink); color: var(--on-ink); padding-top: var(--band); }
.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.contact__row .lede { flex: 1 1 360px; max-width: 30em; }
.contact__email {
  font-family: var(--font-latin);
  font-size: clamp(18px, 5.4vw, 44px);
  line-height: 1.3;
  border-bottom: 2px solid var(--accent);
  overflow-wrap: anywhere;
}

/* One grid, one row height: every link and every address line sits on the same 32px step,
   so the first lines of all four columns share a baseline. */
.footer__cols {
  --row: 32px;
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: 44px clamp(24px, 3.4vw, 56px);
  align-items: start;
  margin-top: var(--band);
  padding: 56px 0 52px;
  border-top: 1px solid var(--rule-ink);
  font-size: 15px;
}
.footer__brand { min-width: 0; }
.footer__mark { display: block; width: 40px; height: 40px; margin-bottom: 22px; color: var(--on-ink); }
.footer__brand p {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.3;
  max-width: 13em;
  color: var(--on-ink);
  text-wrap: balance;
}
.footer__col, .footer__addr { display: flex; flex-direction: column; min-width: 0; }
.footer__col > p:first-child,
.footer__addr > p:first-child {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: var(--on-ink-muted);
}
.footer__col a,
.footer__col span {
  display: flex;
  align-items: center;
  min-height: var(--row);
  white-space: nowrap;
}
/* a product that is not out yet: its name, then a small status line under it */
.footer__col .footer__note {
  min-height: 20px;
  margin-top: -3px;
  font-size: 13px;
  color: var(--on-ink-muted);
}
.footer__note::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.footer__addr p:last-child { line-height: var(--row); }

@media (max-width: 1040px) {
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 32px;
  padding: 20px 0 36px;
  border-top: 1px solid var(--rule-ink);
  font-size: 14px;
  color: var(--on-ink-muted);
}
.footer__lang { display: flex; gap: 6px; align-items: center; }
.footer__lang button { min-height: 32px; padding: 0 4px; }
.footer__lang button[aria-pressed="true"] { color: var(--on-ink); }

/* ---------- legal pages (privacy, terms) ---------- */
/* Both languages are in the page; only the one matching <html lang> shows. */
html[lang="en"] [data-lang-block="zh"],
html[lang="zh-CN"] [data-lang-block="en"] { display: none; }

.legal-head { padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.legal-head h1 { font-size: clamp(40px, 5.8vw, 88px); line-height: 1.04; }
.legal-head .lede { margin-top: clamp(24px, 3vw, 40px); max-width: 36em; }
.legal-meta { margin-top: 20px; font-size: 15px; color: var(--muted); }

.legal { border-top: 1.5px solid var(--ink); margin-bottom: var(--band); }
.legal__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 64px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.legal__row h2 {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}
.legal__body { flex: 2.2 1 520px; min-width: 0; max-width: 44em; }
.legal__body p + p,
.legal__body p + ul,
.legal__body ul + p { margin-top: 14px; }
.legal__body ul { padding-left: 1.2em; list-style: disc; }
.legal__body li + li { margin-top: 6px; }
.legal__body a { border-bottom: 1px solid currentColor; }
html[lang="zh-CN"] .legal-head h1 { font-size: clamp(36px, 5.2vw, 80px); }
html[lang="zh-CN"] .legal__row h2 { font-weight: 600; }

/* ---------- Chinese ---------- */
html[lang="zh-CN"] {
  --font-display: "Complex Font SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[lang="zh-CN"] .display {
  font-weight: 600;
  font-feature-settings: "ss02";
  letter-spacing: 0;
  line-height: 1.16;
  font-size: clamp(38px, 6.6vw, 104px);
}
html[lang="zh-CN"] .about-head h1 { font-size: clamp(36px, 5.2vw, 80px); max-width: 9em; }
html[lang="zh-CN"] .h2 { font-weight: 600; letter-spacing: 0; line-height: 1.25; }
html[lang="zh-CN"] .statement { font-weight: 500; letter-spacing: 0; line-height: 1.5; text-wrap: balance; }
html[lang="zh-CN"] .h3 { font-weight: 600; }
html[lang="zh-CN"] .product-band__status,
html[lang="zh-CN"] .company-strip__line,
html[lang="zh-CN"] .milestones__when { font-weight: 500; }
