:root {
  color-scheme: dark;
  --canvas: #071522;
  --canvas-deep: #050f19;
  --surface: #0d2132;
  --surface-strong: #112b40;
  --text: #edf3f5;
  --muted: #a4b5bf;
  --line: rgb(189 215 226 / 18%);
  --accent: #d9784c;
  --accent-hover: #ed8b60;
  --accent-ink: #1e0d07;
  --shadow: 0 26px 68px rgb(1 10 18 / 38%);
  --radius: 18px;
  --page-width: min(1180px, calc(100% - 48px));
  --fast: 180ms;
  --normal: 360ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #e7eef3;
    --canvas-deep: #dce6ed;
    --surface: #f4f8fa;
    --surface-strong: #dfeaf0;
    --text: #142634;
    --muted: #4b6170;
    --line: rgb(25 60 80 / 18%);
    --accent: #a74720;
    --accent-hover: #823614;
    --accent-ink: #fff4ee;
    --shadow: 0 26px 68px rgb(28 57 74 / 18%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -12%, rgb(69 111 138 / 20%), transparent 34rem),
    linear-gradient(135deg, var(--canvas) 0%, var(--canvas-deep) 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif,
    system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 4;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 0.9rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform var(--fast) var(--ease-out);
}

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

.page-shell,
.nav-shell,
.footer-shell {
  width: var(--page-width);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1.5rem;
}

.wordmark {
  display: grid;
  gap: 0.16rem;
  width: max-content;
  line-height: 1;
}

.wordmark-cn {
  font-size: 1.05rem;
  font-weight: 740;
  letter-spacing: 0.08em;
}

.wordmark-en {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.18em;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.94rem;
}

nav a {
  position: relative;
  padding-block: 0.4rem;
  color: var(--muted);
  transition: color var(--fast) var(--ease-out);
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity var(--fast) var(--ease-out),
    transform var(--fast) var(--ease-out);
}

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

nav a[aria-current="page"]::after,
nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.88fr);
  align-items: center;
  min-height: calc(100dvh - 69px);
  padding-block: clamp(2.25rem, 5vw, 4.75rem);
  gap: clamp(2.5rem, 7vw, 7rem);
}

.hero-copy {
  max-width: 35rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 720;
  letter-spacing: 0.13em;
}

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

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 8.8em;
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 3.9vw, 3.9rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 0.99;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.lede,
.manifesto p,
.focus p,
.about-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.82;
}

.lede {
  max-width: 29rem;
  margin-bottom: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding-inline: 1.25rem;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 750;
  white-space: nowrap;
  transition:
    background var(--fast) var(--ease-out),
    border-color var(--fast) var(--ease-out),
    transform var(--fast) var(--ease-out);
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.hero-art,
.studio-art {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-art {
  justify-self: end;
  width: min(100%, 31rem);
  aspect-ratio: 4 / 5;
}

.hero-art::after,
.studio-art::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-art img,
.studio-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manifesto {
  padding-block: clamp(5.5rem, 11vw, 10rem);
  border-bottom: 1px solid var(--line);
}

.manifesto h2 {
  max-width: 8.3em;
  margin-bottom: 1.25rem;
}

.manifesto p {
  max-width: 28rem;
  margin: 0;
}

.focus {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 1rem;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.focus-primary,
.focus-secondary {
  min-height: 23rem;
  padding: clamp(1.6rem, 4vw, 3.5rem);
  border-radius: var(--radius);
}

.focus-primary {
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: var(--text);
  background:
    linear-gradient(135deg, rgb(45 79 102 / 28%), transparent 58%),
    var(--surface-strong);
  border: 1px solid var(--line);
}

.focus-primary h2 {
  max-width: 11.5em;
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.focus-primary p:last-child {
  max-width: 30rem;
  margin-bottom: 0;
}

.focus-secondary {
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.large-copy {
  max-width: 12em;
  margin-bottom: 0;
  color: var(--text) !important;
  font-size: clamp(1.4rem, 2vw, 2rem) !important;
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 1.35 !important;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: min(38rem, calc(78dvh - 69px));
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  gap: clamp(2.5rem, 8vw, 9rem);
}

.about-intro h1 {
  max-width: 8.5em;
  font-size: clamp(3rem, 5.3vw, 6rem);
}

.studio-art {
  max-width: 900px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}

.about-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(250px, 0.65fr);
  align-items: start;
  gap: clamp(2.5rem, 9vw, 10rem);
  padding-block: clamp(4.5rem, 10vw, 9rem);
}

.about-copy-main h2 {
  max-width: 7.1em;
}

.about-copy-main p {
  max-width: 27rem;
  margin-bottom: 0;
}

.about-copy-side {
  padding-top: 0.4rem;
}

.about-copy-side p {
  margin-bottom: 1.2rem;
}

.about-copy-side p:last-child {
  margin-bottom: 0;
}

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

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 8rem;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-shell > p {
  margin: 0;
  color: var(--text);
  font-weight: 680;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 1rem 1.5rem;
}

.footer-meta a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgb(217 120 76 / 55%);
  text-underline-offset: 0.22em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-art {
    animation: enter 720ms var(--ease-out) both;
  }

  .hero-art {
    animation-delay: 100ms;
  }

  .hero-art img,
  .studio-art img {
    transition: transform var(--normal) var(--ease-out);
  }

  .hero-art:hover img,
  .studio-art:hover img {
    transform: scale(1.025);
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 760px) {
  :root {
    --page-width: min(100% - 32px, 1180px);
  }

  .nav-shell {
    min-height: 64px;
    gap: 0.8rem;
  }

  .wordmark-cn {
    font-size: 0.96rem;
  }

  .wordmark-en {
    font-size: 0.49rem;
  }

  nav {
    gap: 0.9rem;
    font-size: 0.88rem;
  }

  .hero,
  .about-intro,
  .focus,
  .about-copy {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 3.2rem 4rem;
    gap: 2.6rem;
  }

  h1 {
    max-width: 9em;
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-art {
    justify-self: stretch;
    width: 100%;
    max-width: 31rem;
  }

  .manifesto {
    align-items: start;
    gap: 1.5rem;
  }

  .focus-primary,
  .focus-secondary {
    min-height: 18rem;
  }

  .about-intro {
    min-height: auto;
    padding-block: 4.2rem 3.8rem;
    gap: 3rem;
  }

  .about-intro h1 {
    font-size: clamp(2.9rem, 14vw, 4.4rem);
  }

  .about-copy {
    gap: 2rem;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 10rem;
    padding-block: 1.5rem;
  }

  .footer-meta {
    justify-content: start;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--canvas);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
