:root {
  --paper: #f2efe7;
  --paper-deep: #e6e0d5;
  --surface: #181818;
  --ink: #151515;
  --muted: #6c685f;
  --primary: #e64b2f;
  --primary-deep: #a52d20;
  --accent: #c9ed38;
  --content-max: 1440px;
  --header-bg: #f2efe7;
  --header-text: #151515;
  --footer-bg: #f2efe7;
  --footer-text: #151515;
  --footer-accent: #a52d20;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  content: "";
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 64px), var(--content-max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 8px 14px;
  color: #fff;
  background: #000;
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--header-text) 28%, transparent);
  color: var(--header-text);
  background: var(--header-bg);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  position: relative;
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--primary);
  font-family: "Songti SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-6deg);
}

.brand-logo.has-image {
  background: transparent;
  transform: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  letter-spacing: 0.14em;
  line-height: 1.15;
}

.brand small {
  margin-top: 5px;
  color: color-mix(in srgb, var(--header-text) 62%, transparent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
}

.header-orbit {
  position: relative;
  width: 116px;
  height: 24px;
}

.header-orbit::before,
.header-orbit::after {
  position: absolute;
  content: "";
}

.header-orbit::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: currentColor;
}

.header-orbit::after {
  top: 5px;
  right: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
}

.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --section-title-size: var(--desktop-title-size, 60px);
  --section-body-size: var(--desktop-body-size, 16px);
  --section-padding: var(--desktop-section-padding, 104px);
  --section-gap: var(--desktop-gap, 64px);
  --section-image-width: var(--desktop-image-width, 420px);
  --section-width: var(--desktop-content-width, var(--content-max));
  text-align: var(--desktop-text-align, left);
}

.section-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 64px), var(--section-width, var(--content-max)));
  margin-inline: auto;
  padding-block: var(--section-padding, 104px);
  gap: var(--section-gap, 64px);
}

.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-background-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
}

.section-background-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, var(--overlay-opacity, 0));
}

.eyebrow,
.section-kicker {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  display: inline-block;
  width: 34px;
  height: 3px;
  margin: 0 12px 3px 0;
  content: "";
  background: currentColor;
}

.hero {
  min-height: calc(100svh - 89px);
  color: var(--ink);
  background-color: var(--paper);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero .section-inner {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  min-height: calc(100svh - 89px);
  align-items: center;
}

.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-title {
  margin: 0;
  font-size: var(--section-title-size, 108px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.91;
}

.hero-title span {
  display: block;
}

.hero-title span:last-child {
  margin: 0.08em 0 0 0.28em;
  color: var(--primary);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.09em;
}

.hero-intro {
  max-width: 620px;
  margin: 48px 0 0;
  font-size: var(--section-body-size, 17px);
  line-height: 1.95;
}

.hero-meta {
  display: flex;
  max-width: 620px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.hero-counter {
  color: var(--primary-deep);
  font-family: "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  width: min(100%, var(--section-image-width, 470px));
  aspect-ratio: 0.78;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 22px 22px 0 var(--primary);
}

.hero-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.hero-visual.has-image::after {
  position: absolute;
  inset: 0;
  content: "";
  mix-blend-mode: screen;
  background: linear-gradient(145deg, transparent 42%, color-mix(in srgb, var(--primary) 36%, transparent));
}

.poster-circle {
  position: absolute;
  top: 10%;
  right: -16%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--primary);
}

.poster-square {
  position: absolute;
  right: 12%;
  bottom: 16%;
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid var(--paper);
  transform: rotate(17deg);
}

.poster-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28%;
  width: 2px;
  background: var(--paper);
  transform: rotate(-13deg) scaleY(1.2);
}

.poster-dot {
  position: absolute;
  bottom: 9%;
  left: 9%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}

.poster-label {
  position: absolute;
  bottom: 5%;
  right: 6%;
  color: var(--paper);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.about {
  color: var(--ink);
  background-color: #fff;
}

.about .section-inner {
  grid-template-columns: minmax(250px, 0.76fr) minmax(0, 1.24fr);
  align-items: start;
}

.about-heading {
  position: sticky;
  top: 120px;
}

.about-number,
.categories-number {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  color: color-mix(in srgb, currentColor 6%, transparent);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(180px, 27vw, 420px);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 0.78;
}

.section-title {
  max-width: 760px;
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: var(--section-title-size, 60px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.14;
}

.about-body {
  max-width: 760px;
  padding-top: 110px;
  font-size: var(--section-body-size, 17px);
}

.about-body p {
  margin: 0 0 28px;
  line-height: 2;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.principle {
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-media {
  grid-column: 1 / -1;
  width: min(100%, var(--section-image-width, 440px));
  aspect-ratio: 1.3;
  margin-top: 6px;
  justify-self: end;
  overflow: hidden;
  background: var(--paper-deep);
}

.about-media:empty {
  display: none;
}

.categories {
  color: var(--paper);
  background-color: var(--surface);
}

.categories::before {
  position: absolute;
  top: -22vw;
  left: -18vw;
  z-index: 0;
  width: 50vw;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  border-radius: 50%;
  content: "";
}

.categories .section-inner {
  display: block;
}

.categories-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 72px;
}

.categories-header .section-intro {
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  font-size: var(--section-body-size, 16px);
  line-height: 1.9;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--section-gap, 22px);
}

.category-card {
  position: relative;
  grid-column: span 4;
  min-height: 520px;
  overflow: hidden;
  color: var(--ink);
  background: var(--card-bg, var(--paper));
}

.category-card:nth-child(2) {
  margin-top: 92px;
}

.category-card:nth-child(3) {
  margin-top: 34px;
}

.category-card.featured {
  color: #fff;
  background: var(--featured-bg, var(--primary));
}

.card-image,
.card-art {
  position: relative;
  width: 100%;
  height: var(--section-image-width, 280px);
  overflow: hidden;
  background: var(--paper-deep);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.65, 0.24, 1);
}

.category-card:hover .card-image img {
  transform: scale(1.04);
}

.card-art {
  background:
    linear-gradient(135deg, transparent 48%, var(--surface) 49% 52%, transparent 53%),
    var(--paper-deep);
}

.card-art::before,
.card-art::after {
  position: absolute;
  content: "";
}

.card-art::before {
  top: 14%;
  left: 14%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--primary);
}

.card-art::after {
  right: 10%;
  bottom: 10%;
  width: 40%;
  height: 62%;
  border: 2px solid var(--surface);
  transform: rotate(12deg);
}

.category-card:nth-child(2) .card-art {
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--paper) 24%, transparent) 18px 19px),
    var(--primary-deep);
}

.category-card:nth-child(2) .card-art::before {
  top: 20%;
  left: 24%;
  width: 54%;
  border-radius: 0;
  background: var(--accent);
  transform: rotate(-15deg);
}

.category-card:nth-child(2) .card-art::after {
  border-color: var(--paper);
}

.category-card:nth-child(3) .card-art {
  background:
    radial-gradient(circle at 65% 38%, var(--accent) 0 17%, transparent 18%),
    linear-gradient(160deg, var(--paper-deep) 0 49%, var(--primary) 50%);
}

.category-card:nth-child(3) .card-art::before {
  border-radius: 0;
  background: var(--surface);
  transform: skew(-17deg);
}

.card-content {
  padding: 30px 30px 34px;
}

.card-index {
  display: block;
  margin-bottom: 30px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.category-card h3 {
  margin: 0 0 18px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.category-card p {
  margin: 0;
  font-size: var(--section-body-size, 16px);
  line-height: 1.85;
}

.statement {
  color: var(--ink);
  background: var(--paper-deep);
}

.statement .section-inner {
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}

.statement-list {
  display: grid;
  gap: 18px;
}

.statement-item {
  padding: 22px 0;
  border-top: 1px solid currentColor;
}

.statement-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.statement-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--footer-text);
  background: var(--footer-bg);
}

.footer-inner {
  width: min(calc(100% - 64px), var(--content-max));
  margin-inline: auto;
  padding: 88px 0 32px;
}

.footer-wordmark {
  margin: 0;
  color: var(--footer-accent);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(76px, 15vw, 218px);
  font-weight: 700;
  letter-spacing: -0.11em;
  line-height: 0.88;
  white-space: nowrap;
}

.footer-tagline {
  margin: 30px 0 88px;
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--footer-text) 42%, transparent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-filings {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-filing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-underline-offset: 4px;
}

.footer-filing img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-filing:hover,
.footer-filing:focus-visible {
  color: var(--footer-accent);
}

.load-error {
  max-width: 720px;
  margin: 72px auto;
  padding: 24px;
  border: 1px solid #c92a2a;
  color: #7a1515;
  background: #fff4f4;
}

@media (max-width: 980px) {
  .section {
    --section-title-size: var(--tablet-title-size, var(--desktop-title-size, 52px));
    --section-body-size: var(--tablet-body-size, var(--desktop-body-size, 15px));
    --section-padding: var(--tablet-section-padding, var(--desktop-section-padding, 80px));
    --section-gap: var(--tablet-gap, var(--desktop-gap, 42px));
    --section-image-width: var(--tablet-image-width, var(--desktop-image-width, 360px));
    --section-width: var(--tablet-content-width, var(--desktop-content-width, var(--content-max)));
    text-align: var(--tablet-text-align, var(--desktop-text-align, left));
  }

  .shell,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 48px), var(--section-width, var(--content-max)));
  }

  .hero .section-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.7fr);
  }

  .hero-title {
    font-size: var(--section-title-size, 80px);
  }

  .hero-intro {
    margin-top: 36px;
  }

  .about-body {
    padding-top: 76px;
  }

  .category-card {
    grid-column: span 6;
  }

  .category-card:nth-child(3) {
    grid-column: 4 / span 6;
  }
}

@media (max-width: 720px) {
  .section {
    --section-title-size: var(--mobile-title-size, var(--tablet-title-size, 42px));
    --section-body-size: var(--mobile-body-size, var(--tablet-body-size, 15px));
    --section-padding: var(--mobile-section-padding, var(--tablet-section-padding, 64px));
    --section-gap: var(--mobile-gap, var(--tablet-gap, 32px));
    --section-image-width: var(--mobile-image-width, var(--tablet-image-width, 320px));
    --section-width: var(--mobile-content-width, var(--tablet-content-width, 430px));
    text-align: var(--mobile-text-align, var(--tablet-text-align, left));
  }

  .shell,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 32px), var(--section-width, var(--content-max)));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand {
    gap: 12px;
  }

  .brand-logo {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-orbit {
    width: 48px;
  }

  .header-orbit::after {
    right: 8px;
  }

  .section-inner {
    padding-block: var(--section-padding, 64px);
  }

  .hero {
    min-height: auto;
  }

  .hero .section-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--section-padding, 64px) + 8px);
    padding-bottom: calc(var(--section-padding, 64px) + 24px);
  }

  .hero-title {
    font-size: var(--section-title-size, 58px);
    line-height: 0.95;
  }

  .hero-title span:last-child {
    margin-left: 0.12em;
  }

  .hero-intro {
    margin-top: 32px;
    font-size: var(--section-body-size, 15px);
  }

  .hero-meta {
    margin-top: 36px;
  }

  .hero-visual {
    width: min(88%, var(--section-image-width, 320px));
    justify-self: start;
    margin-left: 5%;
    box-shadow: 14px 14px 0 var(--primary);
  }

  .about .section-inner,
  .statement .section-inner {
    grid-template-columns: 1fr;
  }

  .about-heading {
    position: relative;
    top: auto;
  }

  .about-body {
    padding-top: 0;
  }

  .about-number,
  .categories-number {
    font-size: 180px;
  }

  .section-title {
    font-size: var(--section-title-size, 42px);
  }

  .categories-header {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 46px;
  }

  .category-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card:nth-child(2),
  .category-card:nth-child(3) {
    grid-column: auto;
    min-height: 0;
    margin-top: 0;
  }

  .card-image,
  .card-art {
    height: var(--section-image-width, 240px);
  }

  .footer-inner {
    padding-top: 64px;
  }

  .footer-wordmark {
    font-size: clamp(62px, 24vw, 108px);
  }

  .footer-tagline {
    margin-bottom: 56px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-filings {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
