/* The marketing site's shell, shared by its pages (site.html, vision.html):
   the page, the nav, section heads, the closing band and the footer, set in
   the keyframe system. Everything names tokens from tokens.css; the night
   bands are the same system, nested, following the page's mode like the rest. */

/* Light mode, a little older: warm paper instead of cool cement. */
[data-system='keyframe'][data-mode='light'] {
  --background: #ece7dc;
  --card: #f6f2e9;
  --card-2: #e5dfd2;
  --popover: #faf7f0;
  --stage: #dfd9cb;
}
/* A word missing in this language hides its element. */
[data-i18n]:empty {
  display: none;
}
/* Chinese display lines in the brand's wide Song (幻灯's voice). */
:lang(zh) .h-en {
  font-family: var(--font-display-cjk);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

body[data-system] {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-ui);
  overflow-x: hidden;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}
.band {
  padding-block: clamp(64px, 9vw, 128px);
}
.band--alt {
  background: var(--card-2);
}
.night {
  background: var(--background);
  color: var(--foreground);
}
/* Labels say AI as AI: the words are written in the case they are read in. */
.lt-label {
  text-transform: none;
}
.h-en {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-variation-settings: 'wdth' 125;
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-wrap: balance;
}
.lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--muted-foreground);
}
.sec-head {
  display: grid;
  gap: var(--space-3);
  max-width: 860px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-head .h-en {
  font-size: clamp(34px, 5.6vw, 72px);
}
/* Something that is coming, not here yet. */
.soon {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  border: var(--outline-w) dashed var(--outline-color);
  font: 500 var(--text-caption) / 1 var(--font-mono);
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in oklab, var(--background) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: var(--outline-w) solid var(--outline-color);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 64px;
}
.nav__links {
  display: flex;
  gap: var(--space-1);
  margin-left: var(--space-4);
}
/* Light and dark: a pill of two, the page's mode pressed. */
.modes {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: var(--outline-w) solid var(--outline-color);
  border-radius: 999px;
}
.modes button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted-foreground);
  cursor: pointer;
}
.modes button[aria-pressed='true'] {
  background: color-mix(in oklab, var(--foreground) 12%, transparent);
  color: var(--foreground);
}
.modes svg,
.lang-switch svg {
  width: 18px;
  height: 18px;
}
.lang-switch {
  text-decoration: none;
}
/* A phone has no room for the call in the nav; the hero has it. */
@media (max-width: 519.98px) {
  .nav .lt-btn--lamp,
  .nav .modes {
    display: none;
  }
}
@media (max-width: 999.98px) {
  .nav__links,
  .nav__login {
    display: none;
  }
}
/* The brand's mark: the line lamp, its heartbeat (lamp.js). */
.brand-lamp {
  display: inline-flex;
  align-items: flex-end;
  margin-right: 0.28em;
}
.brand-lamp > svg {
  display: block;
}

/* --- A track of moments: the story, what comes next --- */
.track {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.track::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 0;
  top: 8px;
  height: var(--kf-line);
  background: linear-gradient(90deg, var(--kf-off) 60%, var(--lamp));
}
.track--ahead::before {
  background: linear-gradient(90deg, var(--lamp), var(--kf-off) 40%);
}
.era {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: 40px var(--space-5) 0 0;
}
.era::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: var(--kf-line) solid var(--foreground);
  background: var(--background);
}
.era.is-now::before {
  width: 18px;
  height: 18px;
  top: -2px;
  background: var(--lamp);
  border-color: var(--lamp);
  box-shadow: var(--lamp-glow);
}
.era.is-ahead::before {
  border-style: dashed;
  border-color: var(--muted-foreground);
}
.era__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.03em;
}
:lang(zh) .era__year {
  letter-spacing: 0;
}
.era__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.era p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted-foreground);
}
@media (max-width: 899.98px) {
  .track {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    padding-left: 36px;
  }
  .track::before {
    left: 7px;
    right: auto;
    top: 8px;
    bottom: 0;
    width: var(--kf-line);
    height: auto;
    background: linear-gradient(180deg, var(--kf-off) 60%, var(--lamp));
  }
  .track--ahead::before {
    background: linear-gradient(180deg, var(--lamp), var(--kf-off) 40%);
  }
  .era {
    padding: 0;
  }
  .era::before {
    left: -36px;
  }
}

/* --- Closing --- */
.close {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}
.close .h-en {
  font-size: clamp(36px, 7vw, 96px);
}
.foot {
  border-top: var(--outline-w) solid var(--outline-color);
  padding-block: var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
