@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap");

:root {
  --paper: #fbf8f1;
  --paper-soft: #f6efe6;
  --paper-rose: #f1e1df;
  --ink: #171511;
  --muted: #6e675d;
  --quiet: #9a8b7d;
  --line: rgba(42, 35, 27, 0.13);
  --line-strong: rgba(42, 35, 27, 0.23);
  --gold: #ad8550;
  --gold-dark: #78552e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfaf5 0%, var(--paper) 48%, var(--paper-rose) 100%);
  font-family: "Inter", "Noto Sans SC", Arial, sans-serif;
  text-rendering: geometricPrecision;
}

body[data-lang="zh"] {
  font-family: "Noto Sans SC", "Inter", Arial, sans-serif;
}

a { color: inherit; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 24px 42px;
  background: rgba(252, 250, 245, 0.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  justify-self: start;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
  transition: color 180ms ease;
}

nav a:hover { color: var(--ink); }

.language-toggle {
  justify-self: end;
  min-width: 68px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(252, 250, 245, 0.5);
  cursor: pointer;
}

.language-prompt {
  position: fixed;
  right: 26px;
  top: 88px;
  z-index: 50;
  width: 268px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(252, 250, 245, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(57, 42, 24, 0.14);
}

.language-prompt.hidden { display: none; }
.language-prompt p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.prompt-actions { display: flex; gap: 8px; }
.prompt-actions button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.prompt-actions button:first-child {
  color: #fffaf2;
  background: var(--gold);
  border-color: var(--gold);
}

main,
.site-footer {
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
}

.intro-section {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 92px 0 76px;
}

.small-index {
  margin: 0 0 24px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1180px;
  margin-bottom: 34px;
  font-size: 82px;
  line-height: 1.12;
  font-weight: 300;
}

.typed-words {
  display: inline-block;
  min-width: 3.4em;
  color: var(--gold-dark);
  white-space: nowrap;
  vertical-align: baseline;
}

.typed-words::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-left: 5px;
  background: currentColor;
  transform: translateY(0.12em);
  animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink { 50% { opacity: 0; } }

.intro-copy {
  max-width: 850px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.72;
  font-weight: 300;
}

.quiet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.quiet-actions a,
.extra-post {
  color: var(--gold-dark);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.product-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 30px 0 96px;
  border-top: 1px solid var(--line);
}

.product-notes article {
  padding-top: 28px;
}

.product-notes span {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 300;
}

.product-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.report-section,
.about-section,
.work-section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.report-heading,
.work-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

h2 {
  margin-bottom: 20px;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 300;
}

.report-heading p:not(.small-index),
.work-heading p:not(.small-index),
.about-copy p,
.project-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
  font-weight: 300;
}

.report-canvas {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #f7efe7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.report-canvas iframe {
  display: block;
  width: 100%;
  height: 1180px;
  border: 0;
  background: #fffaf4;
}

.report-mobile-preview {
  display: none;
}

.report-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #fffaf2;
  background: var(--gold);
  text-decoration: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 96px;
  align-items: start;
}

.about-grid h2 {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", Arial, sans-serif;
  font-size: 82px;
  line-height: 0.98;
  font-weight: 600;
}

.about-copy p {
  margin-bottom: 24px;
}

.work-list {
  display: grid;
  gap: 138px;
}

.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.68fr);
  gap: 70px;
  align-items: center;
}

.project-entry:nth-child(even) {
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.12fr);
}

.project-entry:nth-child(even) .project-image-link {
  order: 2;
}

.project-image-link {
  display: block;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  text-decoration: none;
}

.project-image-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 900ms ease, filter 900ms ease;
}

.project-image-link:hover img {
  transform: scale(1.018);
  filter: saturate(1.03) contrast(1.02);
}

.project-number {
  display: block;
  margin-bottom: 20px;
  color: var(--quiet);
  font-size: 13px;
}

.project-note h3 {
  margin-bottom: 18px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 300;
}

.project-copy {
  margin-bottom: 24px;
}

body[data-lang="zh"] .project-copy {
  max-width: 360px;
  color: var(--quiet);
  font-size: 15px;
  line-height: 1.75;
}

.project-link {
  color: var(--gold-dark);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.extra-post {
  display: inline-flex;
  margin-top: 92px;
}

.site-footer {
  padding: 100px 0 64px;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--ink);
  font-size: 54px;
  font-weight: 300;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 18px 22px;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
  }

  main,
  .site-footer {
    width: min(100% - 42px, 1180px);
  }

  h1 { font-size: 60px; }
  h2 { font-size: 42px; }
  .intro-copy { font-size: 19px; }

  .product-notes,
  .about-grid,
  .project-entry,
  .project-entry:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-entry:nth-child(even) .project-image-link {
    order: 0;
  }

  .about-grid h2 {
    font-size: 64px;
  }

  .work-list { gap: 92px; }
  .report-canvas iframe { height: 920px; }
}

@media (max-width: 760px) {
  .report-heading {
    margin-bottom: 34px;
  }

  .report-canvas {
    display: none;
  }

  .report-mobile-preview {
    display: block;
    padding: 34px 0 0;
  }

  .report-open-link {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 15px 16px;
  }

  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .language-prompt {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 14px;
    width: auto;
  }

  .intro-section {
    min-height: auto;
    padding: 70px 0 58px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.12;
  }

  h2 { font-size: 34px; }
  .about-grid h2 { font-size: 48px; }
  .intro-copy,
  .report-heading p:not(.small-index),
  .work-heading p:not(.small-index),
  .about-copy p,
  .project-copy {
    font-size: 16px;
    line-height: 1.72;
  }

  .product-notes {
    padding-bottom: 70px;
  }

  .report-section,
  .about-section,
  .work-section {
    padding: 76px 0;
  }

  .project-note h3 {
    font-size: 28px;
  }

  .site-footer a {
    font-size: 31px;
  }

  .report-canvas iframe { height: 760px; }
}


.compact-report-topline,
.compact-metrics,
.compact-table,
.compact-insights,
.compact-rank {
  display: none;
}

@media (max-width: 760px) {
  .report-mobile-preview.compact-report {
    display: block;
    padding: 2px 0 0;
  }

  .compact-report-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .compact-report .report-open-link {
    width: auto;
    min-height: 34px;
    padding: 0 13px;
    border-color: rgba(139, 96, 48, 0.34);
    color: var(--gold-dark);
    background: transparent;
    font-size: 12px;
    white-space: nowrap;
  }

  .compact-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .compact-metrics div {
    min-width: 0;
    padding: 13px 10px 12px 0;
    animation: mobileLift 720ms ease both;
  }

  .compact-metrics div + div {
    padding-left: 10px;
    border-left: 1px solid var(--line);
  }

  .compact-metrics div:nth-child(2) { animation-delay: 70ms; }
  .compact-metrics div:nth-child(3) { animation-delay: 140ms; }

  .compact-metrics span,
  .compact-row-head span {
    display: block;
    color: var(--quiet);
    font-size: 10px;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .compact-metrics strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    font-weight: 300;
  }

  .compact-table {
    display: grid;
    margin-top: 20px;
    border-top: 1px solid var(--line);
  }

  .compact-row {
    display: grid;
    grid-template-columns: minmax(78px, 1.05fr) 42px 42px minmax(110px, 1.35fr);
    gap: 8px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    animation: mobileLift 720ms ease both;
  }

  .compact-row:nth-child(2) { animation-delay: 120ms; }
  .compact-row:nth-child(3) { animation-delay: 200ms; }

  .compact-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 600;
  }

  .compact-row:not(.compact-row-head) span:nth-child(2),
  .compact-row:not(.compact-row-head) span:nth-child(3) {
    color: var(--gold-dark);
    font-weight: 600;
  }

  .compact-insights,
  .compact-rank {
    display: grid;
    gap: 0;
    margin-top: 26px;
  }

  .compact-insights h3,
  .compact-rank h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 500;
  }

  .compact-insights p {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    animation: mobileLift 720ms ease both;
  }

  .compact-insights p:nth-of-type(2) { animation-delay: 90ms; }
  .compact-insights p:nth-of-type(3) { animation-delay: 180ms; }

  .compact-rank-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    animation: mobileLift 720ms ease both;
  }

  .compact-rank-row:nth-of-type(2) { animation-delay: 100ms; }
  .compact-rank-row:nth-of-type(3) { animation-delay: 200ms; }

  .compact-rank-row > span {
    color: var(--quiet);
    font-size: 12px;
  }

  .compact-rank-row strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .compact-rank-row em {
    color: var(--gold-dark);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
  }

  .compact-rank-row small {
    grid-column: 2 / -1;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

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

@media (max-width: 390px) {
  .compact-row {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
  }

  .compact-row span:last-child {
    grid-column: 1 / -1;
  }

  .compact-rank-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .compact-rank-row em,
  .compact-rank-row small {
    grid-column: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

