:root {
  color-scheme: dark;
  --ink: #070707;
  --ink-raised: #0d0d0d;
  --panel: #121212;
  --panel-soft: #171717;
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.22);
  --paper: #f2efe8;
  --paper-muted: #aaa69f;
  --paper-faint: #716f6b;
  --brand: #d38047;
  --brand-light: #eca56e;
  --brand-dark: #6e3b20;
  --red: #d05a4a;
  --font-display: "Geist", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-heading: "Barlow Condensed", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-hero: "Geist", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-brand: "Geist", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, Consolas, "Source Han Sans SC", "Noto Sans SC", monospace;
  --max: 1240px;
  --reading: 760px;
  --gutter: clamp(20px, 4vw, 54px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 7%, rgba(211, 128, 71, 0.09), transparent 30rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

::selection {
  color: var(--ink);
  background: var(--brand-light);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 10px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

/* Shared site navigation */
.site-header {
  position: fixed;
  top: 14px;
  right: 0;
  left: 0;
  z-index: 100;
  padding-inline: 14px;
  pointer-events: none;
}

.nav-shell {
  width: min(100%, 1180px);
  min-height: 64px;
  margin-inline: auto;
  padding: 8px 10px 8px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(9, 9, 9, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    0 18px 60px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  backdrop-filter: blur(28px) saturate(1.35);
  transition:
    transform 0.45s var(--ease),
    background 0.3s,
    border-color 0.3s;
}

.site-header.scrolled .nav-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015)),
    rgba(9, 9, 9, 0.68);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img,
.footer-brand img {
  display: block;
  flex: 0 0 auto;
  border-radius: 22%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  padding: 10px 12px;
  color: var(--paper-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--paper);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-blog-mobile {
  display: none;
  padding: 8px 4px;
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-blog-mobile[aria-current="page"] {
  color: var(--paper);
}

.language-control {
  height: 40px;
  padding-inline: 11px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--paper-muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.language-control select {
  width: 61px;
  border: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.language-control option {
  color: var(--paper);
  background: #111;
}

.nav-cta {
  min-height: 40px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink) !important;
  background: var(--paper);
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    background 0.2s;
}

.nav-cta:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Blog index */
.eyebrow {
  margin: 0;
  color: var(--brand-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-hero {
  padding: clamp(170px, 18vw, 236px) 0 clamp(82px, 9vw, 126px);
  border-bottom: 1px solid var(--line);
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 2fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: start;
}

.blog-hero-copy {
  min-width: 0;
}

.blog-hero h1,
.article-head h1 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-hero);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.blog-hero h1 {
  max-width: 960px;
  font-size: clamp(54px, 7.2vw, 96px);
  font-weight: 800;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
}

.blog-hero .lede {
  max-width: 690px;
  margin: 32px 0 0;
  color: var(--paper-muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.featured {
  padding: clamp(60px, 8vw, 102px) 0 clamp(100px, 12vw, 168px);
}

.story-list {
  counter-reset: story;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.story-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--ink-raised);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  transition:
    transform 0.35s var(--ease),
    border-color 0.25s,
    box-shadow 0.35s var(--ease);
}

.story-card::before {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
  min-width: 40px;
  padding: 5px 7px;
  counter-increment: story;
  content: "00" counter(story);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--brand-light);
  background: rgba(7, 7, 7, 0.72);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.story-card:first-child {
  grid-column: 1 / -1;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
}

.story-card:hover {
  border-color: rgba(211, 128, 71, 0.54);
  box-shadow: 0 36px 88px rgba(0, 0, 0, 0.27);
  transform: translateY(-5px);
}

.story-image {
  width: 100%;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.88) contrast(1.04);
  transition:
    filter 0.35s,
    transform 0.7s var(--ease);
}

.story-card:not(:first-child) .story-image {
  height: auto !important;
}

.story-card:hover .story-image {
  filter: brightness(0.9) saturate(0.94) contrast(1.04);
  transform: scale(1.018);
}

.story-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(25px, 3vw, 38px);
  display: flex;
  flex: 1;
  flex-direction: column;
}

.story-card:first-child .story-copy {
  padding: clamp(34px, 4vw, 54px);
  border-left: 1px solid var(--line);
}

.story-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--paper-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-meta span:first-child {
  color: var(--brand-light);
}

.story-copy h2 {
  margin: 20px 0 16px;
  font-size: clamp(24px, 2.7vw, 35px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.story-card:first-child h2 {
  font-size: clamp(35px, 4vw, 56px);
}

.story-copy p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 15px;
  line-height: 1.62;
}

.read-more {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
}

.read-more span {
  color: var(--brand-light);
  transition: transform 0.3s var(--ease);
}

.story-card:hover .read-more span {
  transform: translateX(5px);
}

/* Article pages */
.article-head {
  position: relative;
  padding: clamp(168px, 17vw, 228px) 0 58px;
}

.article-head::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line-strong) 18% 82%, transparent);
}

.article-head .head-inner {
  max-width: 1080px;
}

.article-head h1 {
  max-width: 1020px;
  font-size: clamp(44px, 6.5vw, 84px);
}

.article-dek {
  max-width: 790px;
  margin: 30px 0 28px;
  color: var(--paper-muted);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
}

.hero-media {
  width: min(calc(100% - 32px), 1320px);
  margin: 48px auto 82px;
}

.hero-media img,
.article-figure img {
  width: 100%;
  height: auto !important;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.hero-media figcaption,
.article-figure figcaption {
  max-width: 860px;
  margin-top: 13px;
  color: var(--paper-faint);
  font-size: 12px;
  line-height: 1.55;
}

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, var(--reading));
  gap: 64px;
  justify-content: center;
  align-items: start;
}

.toc {
  position: sticky;
  top: 112px;
  padding: 4px 0 4px 18px;
  border-left: 1px solid var(--line-strong);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-light);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--paper-faint);
  font-size: 12px;
  line-height: 1.42;
  text-decoration: none;
  transition:
    color 0.2s,
    transform 0.2s;
}

.toc a:hover {
  color: var(--paper);
  transform: translateX(3px);
}

.article-body {
  min-width: 0;
  padding-bottom: 130px;
}

.article-body > p:first-child {
  margin-top: 0;
  color: #d7d3cc;
  font-size: 21px;
}

.article-body h2 {
  scroll-margin-top: 112px;
  margin: 82px 0 22px;
  color: var(--paper);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.036em;
  text-wrap: balance;
}

.article-body h2::before {
  display: block;
  width: 38px;
  height: 2px;
  margin-bottom: 18px;
  content: "";
  background: var(--brand);
}

.article-body h3 {
  margin: 42px 0 14px;
  color: var(--paper);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-body p,
.article-body li {
  color: #b8b4ad;
  font-size: 18px;
  line-height: 1.82;
}

.article-body p {
  margin: 0 0 23px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 28px;
  padding-left: 24px;
}

.article-body li + li {
  margin-top: 9px;
}

.article-body strong {
  color: var(--paper);
}

.article-body a {
  color: var(--brand-light);
  text-underline-offset: 4px;
}

.story-quote {
  margin: 46px 0;
  padding: 5px 0 5px 26px;
  border-left: 2px solid var(--brand-light);
  color: var(--paper);
  font-size: clamp(25px, 3.3vw, 36px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.028em;
}

.story-quote p {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.article-figure {
  margin: 48px 0;
}

.tip {
  margin: 38px 0;
  padding: 22px 24px;
  border: 1px solid rgba(211, 128, 71, 0.4);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(211, 128, 71, 0.09), transparent 52%),
    var(--ink-raised);
}

.tip p {
  margin: 0;
  color: #d6d2ca;
}

.comparison-grid,
.scene-grid {
  margin: 34px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.software-card,
.scene-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 44%),
    var(--ink-raised);
}

.software-card h3,
.scene-card h3 {
  margin: 8px 0 14px;
}

.software-card p,
.scene-card p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.65;
}

.software-card p:last-child,
.scene-card p:last-child {
  margin-bottom: 0;
}

.card-kicker {
  color: var(--brand-light) !important;
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-caveat {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.source-list li {
  overflow-wrap: anywhere;
}

.faq {
  margin-top: 84px;
}

.faq details {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  color: var(--paper);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.faq details p {
  margin: 14px 0 0;
  font-size: 16px;
}

.article-cta {
  position: relative;
  margin-top: 76px;
  padding: clamp(30px, 5vw, 48px);
  overflow: hidden;
  border-block: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 100% 0, rgba(211, 128, 71, 0.18), transparent 42%),
    var(--ink-raised);
}

.article-cta::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  background: var(--brand);
}

.article-cta h2 {
  margin: 0 0 15px;
}

.article-cta h2::before {
  display: none;
}

.article-cta p {
  margin-bottom: 26px;
}

.btn {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink) !important;
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    background 0.2s;
}

.btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  padding-block: 38px 44px;
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand > span {
  display: grid;
  gap: 1px;
}

.footer-brand b {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-brand small {
  color: var(--paper-faint);
  font-size: 9px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 21px;
}

.footer-links a,
.footer-meta {
  color: var(--paper-faint);
  font-size: 10px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--paper);
}

.footer-meta {
  margin: 0;
  text-align: right;
}

/* Entry motion */
@keyframes editorial-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.blog-hero .eyebrow,
.blog-hero-copy,
.article-head .head-inner,
.hero-media,
.story-card {
  animation: editorial-in 0.8s var(--ease) both;
}

.blog-hero-copy,
.hero-media {
  animation-delay: 0.08s;
}

.story-card:nth-child(1) {
  animation-delay: 0.12s;
}

.story-card:nth-child(2) {
  animation-delay: 0.2s;
}

.story-card:nth-child(3) {
  animation-delay: 0.28s;
}

@media (max-width: 1050px) {
  .story-card:first-child {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }
}

@media (max-width: 900px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .story-list {
    grid-template-columns: 1fr;
  }

  .story-card:first-child {
    grid-column: auto;
    min-height: 0;
    display: flex;
  }

  .story-card:first-child .story-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .story-card:first-child h2 {
    font-size: clamp(32px, 6.4vw, 47px);
  }

  .story-card:first-child .story-image {
    height: auto !important;
  }

  .article-layout {
    grid-template-columns: minmax(0, var(--reading));
  }

  .toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .nav-blog-mobile {
    display: inline-flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-meta {
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    top: 8px;
    padding-inline: 8px;
  }

  .nav-shell {
    min-height: 58px;
    border-radius: 15px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand span {
    font-size: 15px;
  }

  .language-control {
    padding-inline: 8px 4px;
  }

  .language-control svg {
    display: none;
  }

  .language-control select {
    width: 54px;
  }

  .nav-cta {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .blog-hero {
    padding: 140px 0 72px;
  }

  .blog-hero h1,
  .article-head h1 {
    line-height: 1;
  }

  .featured {
    padding-top: 48px;
    padding-bottom: 96px;
  }

  .story-list {
    gap: 20px;
  }

  .story-card {
    border-radius: 14px;
  }

  .story-copy,
  .story-card:first-child .story-copy {
    padding: 25px 21px 28px;
  }

  .story-card:first-child h2,
  .story-copy h2 {
    font-size: clamp(27px, 7.2vw, 36px);
  }

  .article-head {
    padding: 140px 0 38px;
  }

  .hero-media {
    width: calc(100% - 16px);
    margin: 30px auto 56px;
  }

  .hero-media img,
  .article-figure img {
    border-radius: 12px;
  }

  .article-body {
    padding-bottom: 90px;
  }

  .article-body h2 {
    margin-top: 64px;
  }

  .article-body p,
  .article-body li {
    font-size: 17px;
    line-height: 1.76;
  }

  .comparison-grid,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .article-figure {
    margin-inline: 0;
  }
}

@media (max-width: 400px) {
  .blog-hero h1 {
    font-size: 46px;
  }
}

@media (max-width: 379px) {
  .brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-shell,
  .story-card::before {
    background: rgba(9, 9, 9, 0.97);
  }
}

#qshot-google-translate,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

body {
  top: 0 !important;
}
