/* GEO — AI visibility diagnostics: measurement first, growth second. Prefix: geo-. */

/* ── hero: braided channels = answers flowing between platforms ── */

.geo-hero .page-hero__plate {
  object-position: 50% 50%;
}

/* the aerial plate is texture edge to edge, so the copy gets a full veil */
.geo-hero::before {
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--bg-deep) 94%, transparent) 0%, color-mix(in oklab, var(--bg-deep) 82%, transparent) 38%, color-mix(in oklab, var(--bg-deep) 30%, transparent) 64%, transparent 86%),
    linear-gradient(to top, color-mix(in oklab, var(--bg-deep) 70%, transparent), transparent 50%);
}

[data-theme="dark"] .geo-hero .page-hero__plate {
  filter: brightness(0.45) saturate(0.85);
}

[data-theme="dark"] .geo-hero::before {
  background:
    linear-gradient(90deg, rgb(5 17 25 / 0.94) 0%, rgb(5 17 25 / 0.8) 40%, rgb(5 17 25 / 0.3) 70%, transparent 90%),
    linear-gradient(to top, rgb(5 17 25 / 0.7), transparent 50%);
}

.geo-hero .page-hero__inner {
  align-items: center;
}

.geo-hero__title {
  max-width: 13ch;
}

.geo-hero__pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 4px 14px 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--line) 70%, transparent) inset;
}

/* a four-point spark, drawn rather than borrowed from an icon font */
.geo-hero__spark {
  width: 12px;
  height: 12px;
  background: var(--current);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.geo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 540;
  color: var(--ink-2);
}

.geo-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.geo-trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.geo-readout {
  width: min(300px, 100%);
  padding: 18px 20px 16px;
  border-radius: 22px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in oklab, var(--line) 60%, transparent) inset;
}

.geo-readout__title {
  font-size: 0.875rem;
  font-weight: 640;
  color: var(--ink-2);
}

.geo-readout__rows {
  display: grid;
  margin: 8px 0 14px;
}

.geo-readout__rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

.geo-readout__rows dt {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.geo-readout__rows dd {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 440;
  font-stretch: 86%;
  letter-spacing: -0.03em;
  line-height: 1;
}

.geo-readout__bar {
  display: flex;
  gap: 3px;
  height: 8px;
}

.geo-readout__bar i {
  flex: var(--w) 1 0;
  border-radius: 3px;
  background: var(--current);
}

.geo-readout__bar i + i {
  background: var(--lilac);
}

.geo-readout__legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.geo-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: lining-nums proportional-nums;
}

.geo-key::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--current);
}

.geo-key--app::before {
  background: var(--lilac);
}

@media (max-width: 900px) {
  .geo-readout {
    display: none;
  }
}

/* ── how it works ──────────────────────────── */

.geo-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.geo-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--line-strong);
}

.geo-step {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding-right: 24px;
}

.geo-step__n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  font-size: 0.8125rem;
  font-weight: 640;
}

.geo-step:last-child .geo-step__n {
  background: var(--ink);
  color: var(--ink-inverse);
  box-shadow: none;
}

.geo-step__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--current);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}

.geo-step p {
  color: var(--ink-2);
  max-width: 34ch;
}

@media (max-width: 900px) {
  .geo-steps {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 52px;
  }

  .geo-steps::before {
    top: 16px;
    bottom: 16px;
    left: 16px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .geo-step__n {
    position: absolute;
    left: -52px;
    top: 0;
    margin: 0;
  }
}

/* ── pricing: its own slab ─────────────────── */

.geo-pricing {
  margin: 0 var(--tank-inset);
  padding-block: var(--section);
  border-radius: var(--r-tank);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.geo-plans {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
}

.geo-plan {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-panel);
  background: var(--bg);
}

.geo-plan--main {
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, color-mix(in oklab, var(--held-soft) 90%, transparent), transparent 70%),
    var(--bg);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--held) 30%, transparent) inset;
}

.geo-plan__body {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.geo-plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 10px 0 4px;
}

.geo-plan__amount {
  font-size: clamp(2.6rem, 4.6vw, 3.75rem);
  line-height: 0.95;
  font-weight: 380;
  font-stretch: 86%;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.geo-plan__unit {
  font-size: 0.9375rem;
  font-weight: 560;
  color: var(--ink-2);
}

.geo-plan__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.geo-plan__meta li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line) inset;
}

/* 40 × 3 × 30 = 3,600 — the published figures, shown as the product they are */
.geo-units {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.geo-units__term {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}

.geo-units__term--sum {
  background: var(--held-soft);
  color: color-mix(in oklab, var(--held) 75%, var(--ink));
  box-shadow: none;
}

.geo-units__op {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-3);
}

.geo-plan__policy {
  margin-top: 6px;
  padding: 12px 14px;
  border-left: 2px solid var(--held);
  border-radius: 0 10px 10px 0;
  font-size: 0.875rem;
  color: var(--ink-2);
  background: color-mix(in oklab, var(--held-soft) 60%, transparent);
}

.geo-growth-head {
  display: grid;
  gap: 8px;
  margin: clamp(48px, 6vw, 80px) 0 20px;
  max-width: 70ch;
}

.geo-growth-head .t-body {
  max-width: 64ch;
}

/* the table scrolls inside itself; the option name stays pinned */
.geo-table {
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
  overscroll-behavior-inline: contain;
}

.geo-table:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.geo-table table {
  min-width: 1220px;
  font-size: 0.8125rem;
}

.geo-table th,
.geo-table td {
  padding: 12px 10px;
}

.geo-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  font-size: 0.75rem;
  white-space: normal;
  vertical-align: bottom;
  min-width: 72px;
  line-height: 1.3;
}

.geo-table th[scope="row"],
.geo-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
  box-shadow: 1px 0 0 var(--line-soft);
}

.geo-table th[scope="row"] {
  min-width: 168px;
  font-weight: 640;
  color: var(--ink);
  white-space: nowrap;
}

.geo-table td {
  color: var(--ink-2);
  vertical-align: middle;
}

.geo-table td:nth-child(2),
.geo-table td:nth-child(7) {
  white-space: nowrap;
}

.geo-table tbody tr:hover th[scope="row"] {
  background: color-mix(in oklab, var(--surface-2) 60%, var(--bg));
}

.geo-row--first th,
.geo-row--first td {
  border-top: 1px solid var(--line-strong);
}

.geo-money {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.geo-term {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 8px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 620;
  background: var(--surface-2);
  color: var(--ink-2);
}

.geo-term--year {
  background: var(--held-soft);
  color: color-mix(in oklab, var(--held) 75%, var(--ink));
}

.geo-cap {
  display: grid;
  gap: 3px;
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--ink-3);
}

.geo-cap .is-on {
  color: var(--ink);
  font-weight: 560;
}

.geo-target {
  font-weight: 620;
  color: var(--ink);
  white-space: nowrap;
}

.geo-table__hint {
  margin-top: 10px;
}

.geo-table__hint[hidden] {
  display: none;
}

.geo-notes {
  display: grid;
  gap: 8px;
  max-width: 80ch;
  margin: 22px 0 28px;
  padding: 16px 18px;
  border-left: 2px solid var(--held);
  border-radius: 0 12px 12px 0;
  background: color-mix(in oklab, var(--held-soft) 50%, transparent);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.geo-notes b {
  color: var(--ink);
}

@media (max-width: 900px) {
  .geo-plans {
    grid-template-columns: 1fr;
  }
}

/* ── platform coverage ─────────────────────── */

.geo-brands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.geo-brand {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 150px;
  padding: 24px 22px 22px;
  background: var(--bg);
  transition: background-color var(--t-med);
}

.geo-brand:hover {
  background: var(--surface);
}

.geo-brand__logo {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
}

.geo-brand__name {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  font-weight: 680;
  font-stretch: 84%;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.geo-brand__ports {
  display: flex;
  gap: 6px;
}

.geo-port {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding-inline: 9px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 620;
  color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line) inset;
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in oklab, var(--line) 50%, transparent) 4px 5px);
}

.geo-port.is-on {
  color: color-mix(in oklab, var(--current) 80%, var(--ink));
  background: var(--held-soft);
  box-shadow: none;
}

.geo-port.is-on::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--current);
}

@media (max-width: 900px) {
  .geo-brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── sample report ─────────────────────────── */

.geo-report {
  padding-top: 0;
}

.geo-report__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.geo-report__copy .t-lede {
  margin: 20px 0 26px;
}

.geo-checks {
  display: grid;
  gap: 12px;
}

.geo-checks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}

.geo-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--held-soft);
}

.geo-checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.2em + 5px);
  width: 6px;
  height: 4px;
  border-left: 1.6px solid var(--held);
  border-bottom: 1.6px solid var(--held);
  transform: rotate(-45deg);
}

.geo-sample {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line-soft) inset;
}

.geo-sample__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.geo-sample__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.geo-gauge {
  position: relative;
  width: 196px;
  aspect-ratio: 1;
}

.geo-gauge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.geo-gauge__ticks line {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.geo-gauge__track,
.geo-gauge__value {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(135deg);
  transform-origin: 110px 110px;
}

.geo-gauge__track {
  stroke: var(--surface-2);
  stroke-dasharray: 75 100;
}

.geo-gauge__value {
  stroke: var(--current);
  stroke-dasharray: calc(var(--v) * 0.75 * var(--fill, 1)) 100;
  transition: stroke-dasharray 1.4s var(--ease-out);
}

.geo-sample.is-pending .geo-gauge__value {
  --fill: 0;
}

.geo-gauge__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 14px;
  font-size: 3.6rem;
  font-weight: 330;
  font-stretch: 86%;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.geo-gauge__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
}

.geo-grade .status {
  height: auto;
  min-height: 28px;
  padding-block: 4px;
  white-space: normal;
}

.geo-bars {
  display: grid;
  gap: 14px;
}

.geo-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: baseline;
}

.geo-bar dt {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.geo-bar dd {
  margin: 0;
  font-weight: 640;
  color: var(--ink);
}

.geo-bar__track {
  grid-column: 1 / -1;
  position: relative;
  height: 8px;
  border-radius: var(--r-pill);
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), color-mix(in oklab, var(--line-strong) 80%, transparent) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    var(--surface-2);
  overflow: hidden;
}

.geo-bar__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in oklab, var(--current) 70%, var(--lilac)), var(--current));
  transform-origin: left;
  transform: scaleX(var(--fill, 1));
  transition: transform 1.2s var(--ease-out);
}

.geo-sample.is-pending .geo-bar__track i {
  --fill: 0;
}

.geo-bar:nth-child(2) .geo-bar__track i { transition-delay: 80ms; }
.geo-bar:nth-child(3) .geo-bar__track i { transition-delay: 160ms; }
.geo-bar:nth-child(4) .geo-bar__track i { transition-delay: 240ms; }

.geo-bars__scale {
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
}

@media (max-width: 960px) {
  .geo-report__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .geo-sample__top {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ── why ───────────────────────────────────── */

.geo-why__title {
  max-width: 18ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.geo-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.geo-feat {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}

.geo-feat:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.geo-feat__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--held-soft);
  color: var(--current);
}

.geo-feat p {
  margin-top: 6px;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .geo-feats {
    grid-template-columns: 1fr;
  }

  .geo-feat:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

/* ── the guide ─────────────────────────────── */

.geo-guide__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: var(--s-6) var(--gutter);
  align-items: start;
}

.geo-guide__toc {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.geo-guide__toc .toc {
  position: static;
}

.geo-guide__toc-title {
  font-size: 0.8125rem;
  font-weight: 640;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.geo-guide__label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 620;
  color: var(--current);
}

.prose .geo-guide__title {
  margin-top: 0.4em;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 660;
  font-stretch: 88%;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.geo-guide__intro {
  font-size: 1.25rem;
  color: var(--ink);
}

.geo-guide__zh-note {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 12px 14px;
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--ink-2);
}

.geo-guide__prose h3 {
  font-size: 1.5rem;
  font-weight: 650;
  font-stretch: 92%;
  scroll-margin-top: calc(var(--header-h) + 40px);
}

.geo-guide__prose p,
.geo-guide__prose li {
  color: var(--ink-2);
}

/* the guide is English in both modes, so it keeps its reading voice */
:lang(zh) .geo-guide__prose[lang="en"] {
  font-family: var(--font-read);
  font-size: 1.1875rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .geo-guide__grid {
    grid-template-columns: 1fr;
  }

  .geo-guide__toc {
    display: none;
  }
}

/* ── FAQ, reading, closer ──────────────────── */

.geo-faq__side .t-h2 {
  max-width: 12ch;
  color: var(--ink);
}

.geo-reading__title {
  margin-bottom: 24px;
}

.geo-reading__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.geo-read {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
  padding: 22px 24px 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}

.geo-read:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line) inset;
}

.geo-read__k {
  font-size: 0.8125rem;
  font-weight: 620;
  color: var(--current);
}

.geo-read__t {
  font-size: 1.125rem;
  font-weight: 640;
  line-height: 1.3;
}

.geo-read__b {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .geo-reading__list {
    grid-template-columns: 1fr;
  }
}

.geo-final {
  margin: 0 var(--tank-inset) var(--section-tight);
  border-radius: var(--r-tank);
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 80% at 85% 0%, color-mix(in oklab, var(--held-soft) 90%, transparent), transparent 64%),
    radial-gradient(ellipse 50% 70% at 10% 100%, color-mix(in oklab, var(--lilac) 18%, transparent), transparent 70%),
    var(--surface);
}

.geo-final__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(72px, 10vw, 140px) var(--margin);
  text-align: center;
}

.geo-final__title {
  max-width: 12ch;
}

.geo-final__lede {
  max-width: 48ch;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .geo-gauge__value,
  .geo-bar__track i {
    transition: none;
  }
}

@media (max-width: 640px) {
  .geo-table th[scope="row"] {
    min-width: 128px;
    white-space: normal;
  }
}

/* phones: the copy spans the full width, so the veil does too */
@media (max-width: 640px) {
  .geo-hero::before {
    background: linear-gradient(to bottom, color-mix(in oklab, var(--bg-deep) 74%, transparent) 0%, color-mix(in oklab, var(--bg-deep) 86%, transparent) 40%, color-mix(in oklab, var(--bg-deep) 94%, transparent) 100%);
  }

  [data-theme="dark"] .geo-hero::before {
    background: linear-gradient(to bottom, rgb(5 17 25 / 0.72) 0%, rgb(5 17 25 / 0.86) 40%, rgb(5 17 25 / 0.94) 100%);
  }
}

/* Chinese headings break at phrase boundaries (punctuation, spaces, <wbr>), never inside a
   word; a phrase wider than the line still wraps rather than overflowing. */
:lang(zh) main :is(h1, h2, h3, h4) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

:lang(zh) .geo-hero__title {
  max-width: 10em;
}
