:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #6b6a66;
  --faint: #a7a39b;
  --line: #e9e5de;
  --gold: #b88234;
  --gold-soft: #faf2e5;
  --blue: #286ce5;
  --sidebar-width: 236px;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 14px;
  padding: 8px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.toc {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 38px 25px 30px;
  border-right: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
}

.brand {
  display: grid;
  gap: 0;
  width: max-content;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.brand span:last-child {
  color: var(--gold);
}

.toc-label {
  margin: 78px 0 10px 9px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.toc nav {
  display: grid;
  gap: 2px;
}

.toc nav a {
  position: relative;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  transition: color 180ms ease, background 180ms ease;
}

.toc nav a::before {
  position: absolute;
  top: 50%;
  left: -1px;
  width: 2px;
  height: 0;
  content: "";
  background: var(--gold);
  transform: translateY(-50%);
  transition: height 180ms ease;
}

.toc nav a:hover {
  color: var(--ink);
  background: #fffdf9;
}

.toc nav a:hover::before {
  height: 62%;
}

.toc-footer {
  margin: auto 0 0 9px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.mobile-toc {
  display: none;
}

main {
  width: min(100%, 1290px);
  margin: 0 auto;
  padding: 82px clamp(32px, 5.2vw, 88px) 60px;
  overflow: hidden;
}

section {
  position: relative;
  padding: 98px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 30px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(56px, 7.3vw, 104px);
}

h1 em {
  color: var(--gold);
  font-style: normal;
}

h2 {
  font-size: clamp(34px, 4.15vw, 57px);
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

.hero {
  padding-top: 0;
  border-top: 0;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 20px;
  right: -13%;
  width: 59%;
  height: 310px;
  content: "";
  opacity: 0.65;
  background: repeating-linear-gradient(90deg, transparent 0 22px, #eee8dd 22px 33px, transparent 33px 55px);
  clip-path: polygon(0 0, 100% 22%, 94% 100%, 2% 72%);
  transform: rotate(-5deg);
}

.hero-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(230px, 0.55fr);
  gap: 48px;
  align-items: end;
}

.hero-heading > p {
  max-width: 22em;
  margin-bottom: 9px;
  color: #46433e;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.9;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 26px;
  margin: 36px 0 38px;
}

.hero-notes span {
  color: #6d6251;
  font-size: 13px;
  font-weight: 700;
}

.hero-notes b {
  margin-right: 6px;
  color: var(--gold);
  font-size: 11px;
}

figure {
  min-width: 0;
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  border: 1px solid #e8e2d8;
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(46, 38, 23, 0.1);
}

figcaption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

figcaption span {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-figure {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 26px 66px rgba(46, 38, 23, 0.08);
}

.hero-figure img {
  max-height: 690px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  object-fit: cover;
  object-position: top;
}

.hero-figure figcaption {
  padding: 4px 5px 0;
}

.section-intro {
  max-width: 800px;
}

.section-intro > p:not(.eyebrow) {
  max-width: 53em;
  margin: 28px 0 0;
  color: #5b5751;
}

.workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 48px 0 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.workflow li {
  position: relative;
  min-height: 214px;
  padding: 29px 28px 25px;
}

.workflow li + li {
  border-left: 1px solid var(--line);
}

.workflow li::after {
  position: absolute;
  top: 42px;
  right: -5px;
  z-index: 1;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--paper);
  border: 1px solid #d8c29b;
  border-radius: 50%;
}

.workflow li:last-child::after {
  display: none;
}

.workflow b,
.workflow strong,
.workflow span {
  display: block;
}

.workflow b {
  color: var(--gold);
  font-size: 12px;
}

.workflow strong {
  margin: 32px 0 7px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.workflow span {
  max-width: 17em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.feature {
  display: grid;
  grid-template-columns: minmax(235px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(35px, 6vw, 94px);
  align-items: start;
}

.feature.reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(235px, 0.72fr);
}

.feature.reverse .feature-copy {
  order: 2;
}

.feature-copy {
  padding-top: 17px;
}

.feature-copy h2 {
  margin-bottom: 27px;
}

.feature-copy > p:not(.eyebrow) {
  color: #504d47;
}

.feature figure img {
  max-height: 760px;
  object-fit: cover;
  object-position: top;
}

.check-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 19px;
  color: #5d5952;
  font-size: 14px;
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.check-list.compact {
  margin-top: 27px;
}

.fact-pair {
  display: flex;
  gap: 34px;
  margin-top: 34px;
}

.fact-pair span {
  display: grid;
  gap: 1px;
}

.fact-pair b {
  font-size: 26px;
  letter-spacing: -0.05em;
}

.fact-pair small {
  color: var(--muted);
  font-size: 12px;
}

blockquote {
  margin: 32px 0 0;
  padding: 4px 0 4px 18px;
  color: #4e463a;
  border-left: 3px solid var(--gold);
  font-size: 15px;
  line-height: 1.9;
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(35px, 6vw, 92px);
}

.studio-heading p:not(.eyebrow) {
  margin: 28px 0 0;
  color: #59554f;
}

.studio-section figure {
  align-self: start;
}

.studio-section figure img {
  max-height: 680px;
  object-fit: cover;
  object-position: top;
}

.principle {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 28px 0 0;
  color: #2f2a22;
  border-top: 1px solid var(--line);
  font-size: clamp(25px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.25;
}

.asset-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 31px;
}

.asset-counts span {
  color: var(--muted);
  font-size: 12px;
}

.asset-counts b {
  margin-right: 4px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.05em;
}

.exports-section {
  padding-bottom: 84px;
}

.export-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: start;
  margin-top: 45px;
}

.export-grid figure {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.export-grid figure img {
  max-height: 720px;
  border: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: top;
}

.export-grid figcaption {
  padding: 3px 3px 0;
}

footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 58px 0 3px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 35px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.28;
}

footer a {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  transition: color 180ms ease, border-color 180ms ease;
}

footer a:hover {
  color: var(--ink);
  border-color: #c7bcae;
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 204px;
  }

  .toc {
    padding-right: 18px;
    padding-left: 18px;
  }

  main {
    padding-right: clamp(26px, 4vw, 48px);
    padding-left: clamp(26px, 4vw, 48px);
  }

  .feature,
  .feature.reverse,
  .studio-section {
    gap: 45px;
  }
}

@media (max-width: 860px) {
  .page-shell {
    display: block;
  }

  .toc {
    display: none;
  }

  .mobile-toc {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    gap: 19px;
    align-items: center;
    min-height: 58px;
    padding: 0 20px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 250, 247, 0.94);
    backdrop-filter: blur(12px);
  }

  .mobile-toc > a {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.045em;
  }

  .mobile-toc nav {
    display: flex;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
  }

  .mobile-toc nav a {
    flex: 0 0 auto;
  }

  main {
    padding-top: 59px;
  }

  section {
    padding: 76px 0;
  }

  .hero {
    padding-top: 0;
  }

  .hero-heading,
  .feature,
  .feature.reverse,
  .studio-section,
  .export-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature.reverse .feature-copy {
    order: 0;
  }

  .feature-copy {
    padding-top: 0;
  }

  .workflow {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .workflow li {
    min-height: 0;
  }

  .workflow li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .workflow li::after {
    top: -5px;
    right: auto;
    left: 38px;
  }

  .workflow li:first-child::after {
    display: none;
  }

  .workflow li:last-child::after {
    display: block;
  }

  .studio-section figure {
    grid-row: 2;
  }

  .principle {
    grid-column: auto;
  }

  .feature figure img,
  .studio-section figure img,
  .export-grid figure img {
    max-height: none;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 44px 18px 42px;
  }

  section {
    padding: 57px 0;
  }

  .hero-heading {
    gap: 21px;
  }

  h1 {
    font-size: clamp(50px, 17vw, 73px);
  }

  h2 {
    font-size: clamp(31px, 10.1vw, 45px);
  }

  .hero-notes {
    gap: 7px 14px;
    margin: 30px 0 27px;
  }

  .hero-figure {
    padding: 7px;
    border-radius: 13px;
  }

  .hero-figure img {
    max-height: none;
    border-radius: 9px;
  }

  figcaption {
    display: block;
    font-size: 12px;
  }

  figcaption span {
    display: block;
    margin-bottom: 2px;
  }

  .workflow li {
    padding: 22px;
  }

  .workflow strong {
    margin-top: 21px;
  }

  .fact-pair {
    gap: 24px;
  }

  .asset-counts {
    gap: 7px 14px;
  }

  .export-grid {
    margin-top: 30px;
  }

  footer {
    display: block;
    padding-top: 42px;
  }

  footer a {
    display: inline-block;
    margin-top: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
