/* ---------- Tokens (lifted from kami / luo for Tang brand consistency) ---------- */

:root {
  --parchment:    #f5f4ed;
  --ivory:        #faf9f5;
  --warm-sand:    #e8e6dc;

  --brand:        #1B365D;
  --brand-light:  #2D5A8A;
  --brand-tint:   #EEF2F7;

  --near-black:   #141413;
  --dark-warm:    #3d3d3a;
  --olive:        #504e49;
  --stone:        #6b6a64;

  --border:       #e8e6dc;
  --border-soft:  #e5e3d8;
  --line:         #d8d5c8;

  --serif: Charter, Georgia, "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", Palatino, serif;
  --sans: var(--serif);
  --mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, Monaco, monospace;
  --poem-serif: var(--serif);

  /* Dark surface for product screenshots, matches the macOS app chrome */
  --shot-bg: #141318;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--parchment);
  color: var(--near-black);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="zh-CN"] {
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "PingFang SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
  --poem-serif: "Kaiti SC", STKaiti, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", serif;
}
html[lang="zh-CN"] body {
  font-family: var(--serif);
}
html[lang="zh-CN"] .gallery-caption .line,
html[lang="zh-CN"] .planets .name small {
  font-family: var(--poem-serif);
  font-style: normal;
}
html[lang="zh-CN"] .foot .colophon .ethos,
html[lang="zh-CN"] .help-shot figcaption {
  font-style: normal;
}
html[lang="zh-CN"] .btn-primary,
html[lang="zh-CN"] .btn-ghost {
  font-family: Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "PingFang SC", serif;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--brand-light); }

.lang-switch {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 20;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--parchment) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(20, 19, 19, 0.08);
}
.lang-switch a {
  min-width: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
  color: var(--stone);
  text-align: center;
}
.lang-switch a:hover {
  color: var(--brand);
}
.lang-switch a.active {
  color: var(--ivory);
  background: var(--brand);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 64px 120px;
  animation: fadeIn 0.4s ease-out;
}

/* ---------- Hero ---------- */

.hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 80px;
}

.eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 22px;
}
.hero-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-links a {
  color: var(--stone);
  display: flex;
  align-items: center;
}
.hero-links a:hover { color: var(--dark-warm); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 96px;
  line-height: 1.02;
  letter-spacing: -1.4px;
  margin: 0 0 18px;
  color: var(--near-black);
}
.hero h1 .cn {
  display: inline-block;
  margin-left: 18px;
  letter-spacing: 0;
  color: var(--brand);
  font-weight: 400;
}

.hero .tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.4;
  color: var(--olive);
  margin: 0 0 28px;
  max-width: 820px;
}

.section-versus {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--stone);
  margin: 14px 0 0;
  letter-spacing: 0.1px;
  line-height: 1.6;
}
.section-versus b {
  color: var(--brand);
  font-weight: 500;
}

.hero-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
}
.hero-tokens span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.hero-tokens b {
  color: var(--dark-warm);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
  min-width: 158px;
}
.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--ivory);
  transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform 0.18s; }
.btn-primary:hover .arrow { transform: scale(1.08); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--brand);
  background: transparent;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  transition: background 0.15s, color 0.15s, transform 0.15s;
  cursor: pointer;
  min-width: 158px;
}
.btn-ghost:hover {
  background: var(--brand-tint);
  color: var(--brand);
  transform: translateY(-1px);
}

/* ---------- Section primitives ---------- */

section { margin-bottom: 96px; }
.section-head { margin-bottom: 36px; }
.section-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.4px;
  margin: 0 0 6px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--near-black);
  margin: 0;
  letter-spacing: -0.3px;
}
.section-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--olive);
  margin: 14px 0 0;
}

/* ---------- Product gallery (centerpiece) ---------- */

.gallery {
  --enter-from-x: 44px;
  --exit-to-x: -34px;
  --sweep-angle: 100deg;
  --sweep-from: -45%;
  --sweep-to: 65%;
  --caption-shift: -2px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: baseline;
  margin: 0;
  padding: 0;
}
.gallery[data-direction="prev"] {
  --enter-from-x: -44px;
  --exit-to-x: 34px;
  --sweep-angle: 260deg;
  --sweep-from: 65%;
  --sweep-to: -45%;
  --caption-shift: 2px;
}

.gallery-frame {
  grid-column: 1 / -1;
  position: relative;
  background: var(--shot-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 19, 19, 0.10);
  cursor: ew-resize;
}
.gallery-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    var(--sweep-angle),
    rgba(245, 244, 237, 0) 32%,
    rgba(245, 244, 237, 0.16) 50%,
    rgba(245, 244, 237, 0) 68%
  );
  opacity: 0;
  transform: translate3d(var(--sweep-from), 0, 0);
  transition:
    opacity 540ms ease,
    transform 920ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery.is-switching .gallery-frame::after {
  opacity: 1;
  transform: translate3d(var(--sweep-to), 0, 0);
}
.gallery-panel {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transform: translate3d(var(--enter-from-x), 0, 0) scale(0.985);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 880ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 620ms;
  will-change: opacity, transform;
}
.gallery-panel.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
  transform: translate3d(0, 0, 0) scale(1);
}
.gallery-panel.was-active {
  opacity: 0;
  visibility: visible;
  position: absolute;
  inset: 0;
  z-index: 3;
  transform: translate3d(var(--exit-to-x), 0, 0) scale(0.985);
  pointer-events: none;
}
.gallery-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  grid-column: 1;
  grid-row: 2;
  min-height: 48px;
  padding: 12px 2px 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery.is-switching .gallery-caption {
  opacity: 0.72;
  transform: translate3d(var(--caption-shift), 0, 0);
}
.gallery-caption .title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--near-black);
  margin: 0;
  letter-spacing: 0.1px;
  flex: 0 0 auto;
}
.gallery-caption .line {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--olive);
  margin: 0;
  font-style: italic;
}
.gallery-tabs {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: flex-end;
}
.gallery-tabs button {
  appearance: none;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.gallery-tabs button:hover {
  color: var(--brand);
  border-color: var(--line);
}
.gallery-tabs button.is-active {
  color: var(--brand);
  background: var(--brand-tint);
  border-color: var(--line);
}

/* ---------- Planets (the five tools manifesto) ---------- */

.planets {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-soft);
}
.planets li {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}
.planets .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--brand);
  margin: 0;
  line-height: 1.2;
}
.planets .name small {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--olive);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0;
}
.planets .what {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-warm);
  margin: 0;
}

/* ---------- Principles ---------- */

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-soft);
}
.principles li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  padding: 22px 28px 22px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}
.principles li:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--border-soft);
}
.principles li:nth-child(even) { padding-left: 32px; }
/* Odd-count overflow: a lone last item spans both columns instead of half-filling
   the grid. Drops the right border (no neighbour to separate from) and the
   right padding (no second column to balance). */
.principles li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
  padding-right: 0;
}
.principles .n {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--brand);
  line-height: 1;
}
.principles .body {
  display: block;
}
.principles .body b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--near-black);
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}
.principles .body span {
  font-size: 13px;
  color: var(--olive);
  line-height: 1.5;
  font-weight: 400;
}

/* ---------- Pricing ---------- */

/* Price section: hairline top + bottom borders frame an editorial spread.
   Five atoms only: heading (above) + $9 + value-contrast + Buy + terms.
   Each fact (lifetime / 2 Macs / 14-day refund / payment methods) appears
   exactly once, in the .price-terms line. */
.price-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 32px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.price-amount {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 112px;
  line-height: 1;
  color: var(--near-black);
  margin: 0 0 24px;
  letter-spacing: -2.8px;
}
.price-vs {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--dark-warm);
  margin: 0 0 40px;
  line-height: 1.45;
  max-width: 580px;
}
.price-vs s {
  color: var(--stone);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--stone);
  margin: 0 2px;
}
.price-vs .price-highlight {
  color: var(--brand);
  font-weight: 500;
}
.price-card .btn-primary {
  min-width: 280px;
  padding: 15px 28px;
  font-size: 15.5px;
  justify-content: center;
}
.price-trial {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--stone);
  margin: 16px 0 0;
}
.price-trial a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.price-trial a:hover { color: var(--brand-light); }
.price-terms {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--olive);
  margin: 28px 0 0;
  max-width: 640px;
  line-height: 1.7;
  text-align: center;
}
.price-terms .sep {
  color: var(--line);
  margin: 0 4px;
}

/* ---------- FAQ ---------- */

.faq dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--near-black);
  margin: 28px 0 6px;
  letter-spacing: 0.1px;
}
.faq dt:first-of-type { margin-top: 0; }
.faq dd {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--olive);
  margin: 0 0 0;
}
.faq-tail {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
  margin: 28px 0 0;
}
.faq-tail a {
  color: var(--brand);
}
.faq-tail code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 1px 6px;
  border-radius: 3px;
}

.report-tree dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--near-black);
  margin: 24px 0 6px;
  letter-spacing: 0.1px;
}
.report-tree dt:first-of-type { margin-top: 0; }
.report-tree dd {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--olive);
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--border-soft);
  max-width: 820px;
}

/* ---------- Footer (kami pattern) ---------- */

footer.foot {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
}
.foot .mark {
  display: grid;
  grid-template-columns: 64px auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: start;
}
.foot .mark svg,
.foot .mark img {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-top: -8px;
  border-radius: 13px;
  object-fit: cover;
}
.foot .mark .wm-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.05;
  color: var(--near-black);
  margin: 0;
  letter-spacing: -0.2px;
}
.foot .mark .wm-sub {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--olive);
  margin: 3px 0 0;
}
.foot .colophon {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.65;
  max-width: 580px;
  text-align: right;
}
.foot .colophon .links a {
  color: var(--olive);
  text-decoration: none;
}
.foot .colophon .links a:hover {
  color: var(--brand);
}
.foot .colophon .ethos {
  margin-top: 13px;
  color: var(--olive);
  font-style: italic;
}
.foot .colophon .ethos a {
  color: var(--brand);
  text-decoration: none;
}
.foot .colophon .ethos a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Legal pages (Terms / Privacy / Refund) ---------- */

.legal {
  max-width: 720px;
}
#page-releases {
  max-width: none;
}
#page-releases h2 .meta {
  font-size: 13px;
  color: var(--stone);
  font-weight: 400;
  letter-spacing: 0.4px;
  margin-left: 10px;
}
#page-releases hr {
  border: none;
  border-top: 1px solid rgba(109,108,102,0.12);
  margin: 32px 0;
}
.legal .back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.4px;
}
.legal .back-link:hover { color: var(--brand); }
.legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  margin: 0 0 6px;
  color: var(--near-black);
  letter-spacing: -0.4px;
}
.legal .meta {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.4px;
  margin: 0 0 32px;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--brand);
  margin: 32px 0 8px;
  letter-spacing: 0.1px;
}
.legal h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--near-black);
  margin: 28px 0 6px;
  letter-spacing: 0.1px;
}
.legal h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--brand);
  margin: 22px 0 6px;
  letter-spacing: 0;
}
.legal p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark-warm);
  margin: 0 0 12px;
}
.legal code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 1px 6px;
  border-radius: 3px;
}
.ui-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.88em;
  line-height: 1.25;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 6px;
  font-style: normal;
  white-space: nowrap;
}
.help-steps {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-warm);
  margin: 0 0 18px;
  padding-left: 22px;
}
.help-steps li {
  margin-bottom: 6px;
}
.help-shot {
  margin: 18px 0 24px;
  padding: 0;
}
.help-shot img {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(20, 19, 19, 0.08);
}
.help-shot figcaption {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--stone);
  margin-top: 8px;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .lang-switch {
    top: 14px;
    right: 16px;
  }
  .page {
    padding: 56px 28px 88px;
  }
  .hero { margin-bottom: 56px; padding-bottom: 32px; }
  .hero h1 {
    font-size: 64px;
    letter-spacing: -1px;
  }
  .hero h1 .cn { margin-left: 12px; }
  .hero .tagline { font-size: 18px; }

  section { margin-bottom: 64px; }
  .section-title { font-size: 26px; }

  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery-caption,
  .gallery-tabs {
    grid-column: 1;
    grid-row: auto;
  }
  .gallery-tabs { gap: 6px; justify-content: flex-start; }
  .gallery-tabs button { padding: 8px 10px; }

  .planets li {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 22px 0;
  }
  .planets .name { margin-top: 4px; }

  .principles {
    grid-template-columns: 1fr;
  }
  .principles li:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }
  .principles li:nth-child(even) { padding-left: 0; }

  .price-card {
    padding: 48px 16px 40px;
  }
  .price-amount { font-size: 72px; letter-spacing: -1.8px; margin-bottom: 18px; }
  .price-vs { font-size: 16px; margin-bottom: 32px; }
  .price-card .btn-primary { min-width: 240px; }
  .price-terms { font-size: 12.5px; line-height: 1.75; margin-top: 24px; }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-top: 32px;
    margin-top: 64px;
  }
  .foot .colophon {
    text-align: left;
    max-width: 100%;
  }
  .foot .mark {
    grid-template-columns: 64px auto;
  }
  .foot .mark svg,
  .foot .mark img {
    width: 64px;
    height: 64px;
  }
  .foot .mark .wm-name { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 56px; }
  .hero .tagline { font-size: 17px; }
  .hero-cta { flex-direction: row; align-items: center; gap: 12px; }
  .btn-primary,
  .btn-ghost { min-width: 0; flex: 1; padding: 13px 16px; justify-content: center; }
  .gallery-caption {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-frame::after {
    display: none;
  }
  .gallery-panel,
  .gallery-caption {
    transition: none;
    transform: none;
  }
}

/* ============================================================== */
/* Hero glyph load + orbit. Gallery motion is handled above by    */
/* the product-stage horizontal transition.                       */
/* ============================================================== */

.hero h1 {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  animation: hero-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}
@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.cn-orbit {
  position: relative;
  display: inline-block;
}
.cn-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
  animation: cn-orbit 14s linear infinite;
  pointer-events: none;
}
@keyframes cn-orbit {
  from { transform: rotate(0deg)   translateX(64px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(64px) rotate(-360deg); }
}

@media (max-width: 880px) {
  .cn-orbit::after { animation-name: cn-orbit-sm; }
  @keyframes cn-orbit-sm {
    from { transform: rotate(0deg)   translateX(40px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .cn-orbit::after {
    animation: none;
    opacity: 0;
  }
}
