@font-face {
  font-family: "Tunan Display";
  src: url("/assets/tunan-display.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f4f4f0;
  --paper-deep: #e9e9e2;
  --ink: #11110f;
  --muted: #5c5c55;
  --line: #c9c9c0;
  --blue: #2447c7;
  --white: #ffffff;
  --display: "Tunan Display", "Songti SC", "SimSun", serif;
  --body: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --page-pad: clamp(1.25rem, 3.2vw, 3.75rem);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

p {
  line-height: 1.75;
}

::selection {
  color: var(--white);
  background: var(--blue);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 3px solid var(--paper);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 6rem;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.65rem;
  width: fit-content;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-symbol {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--blue);
}

.brand-latin {
  padding-left: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  font-size: 0.82rem;
}

.site-nav a,
.text-link,
.text-button {
  position: relative;
}

.site-nav a::after,
.text-link::after,
.text-button::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover::after,
.text-link:hover::after,
.text-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--white);
  background: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 250ms ease, background 250ms ease;
}

.button:hover {
  color: var(--ink);
  background: transparent;
}

.button--small {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  justify-self: end;
  font-size: 0.75rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr auto;
  gap: 1rem;
  min-height: 100svh;
  padding: clamp(8rem, 16vh, 11rem) var(--page-pad) 2.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-meta {
  grid-column: 1 / 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

.hero-title {
  position: relative;
  z-index: 1;
  grid-column: 1 / 9;
  grid-row: 1 / 3;
  align-self: end;
  display: flex;
  align-items: baseline;
  margin-left: -0.06em;
  font-family: var(--display);
  font-size: clamp(7rem, 18vw, 17rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.hero-character {
  display: inline-block;
  animation: title-reveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-character:nth-child(2) {
  animation-delay: 100ms;
}

.hero-stop {
  color: var(--blue);
  font-family: var(--body);
  font-size: 0.45em;
  font-weight: 300;
}

.hero-copy {
  z-index: 2;
  grid-column: 9 / 13;
  grid-row: 1 / 3;
  align-self: end;
  max-width: 25rem;
  padding-bottom: 1.25rem;
}

.hero-statement {
  margin-bottom: 2rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.25vw, 3.75rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-intro {
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.text-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.82rem;
}

.link-arrow {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.hero-direction {
  position: absolute;
  top: 21%;
  left: 51%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--blue);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.direction-word {
  margin-bottom: 0.75rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
}

.direction-line {
  width: 1px;
  height: clamp(4rem, 10vh, 7rem);
  background: var(--blue);
}

.direction-point {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: -1px;
  background: var(--blue);
  transform: rotate(45deg);
}

.scroll-cue {
  grid-column: 11 / 13;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  display: none;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.collection {
  padding: clamp(6rem, 12vw, 11rem) var(--page-pad);
}

.section-heading {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.section-heading h2,
.manifesto h2,
.account h2 {
  max-width: 14em;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading p {
  justify-self: end;
  max-width: 25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.exhibitions {
  border-top: 1px solid var(--ink);
}

.exhibition {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(18rem, 7fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  min-height: 40rem;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.exhibition-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.exhibition-number {
  margin-bottom: clamp(2.5rem, 6vw, 6rem);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.exhibition h3 {
  margin-bottom: 1.75rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.exhibition-info p {
  max-width: 28rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.status::before {
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--ink);
  content: "";
}

.status--active::before {
  border-color: var(--blue);
  background: var(--blue);
}

.poster {
  position: relative;
  justify-self: end;
  width: min(100%, 35rem);
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.exhibition:hover .poster {
  transform: translateY(-0.5rem);
}

.poster-word {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.poster-character {
  position: absolute;
  top: 48%;
  left: 50%;
  font-family: var(--display);
  font-size: clamp(10rem, 20vw, 19rem);
  line-height: 1;
  transform: translate(-50%, -50%);
}

.poster-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  font-size: 0.6875rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.poster--center {
  color: var(--white);
  background: var(--blue);
}

.poster--center .poster-character {
  top: 47%;
  font-size: clamp(12rem, 22vw, 21rem);
}

.poster-corner {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--white);
}

.poster--space {
  color: var(--ink);
  background: var(--paper-deep);
}

.poster--space .poster-character {
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

.space-frame {
  position: absolute;
  top: 18%;
  right: 13%;
  bottom: 18%;
  left: 13%;
  border: 1px solid var(--ink);
}

.space-frame::before,
.space-frame::after {
  position: absolute;
  background: var(--ink);
  content: "";
}

.space-frame::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.space-frame::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.poster--painting {
  color: var(--white);
  background: var(--ink);
}

.poster--painting .poster-character {
  left: 46%;
}

.painting-mark {
  position: absolute;
  top: 18%;
  right: 13%;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--blue);
}

.prototype-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 10rem);
  padding: clamp(6rem, 11vw, 11rem) var(--page-pad);
  color: var(--paper);
  background: var(--ink);
}

.manifesto h2 {
  color: var(--white);
}

.manifesto-content > p {
  max-width: 31rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  color: #c8c8c0;
  font-size: 0.95rem;
}

.journey {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #4b4b46;
}

.journey li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #4b4b46;
}

.journey span {
  color: #a9a9a1;
  font-size: 0.7rem;
}

.journey strong {
  font-size: 0.85rem;
  font-weight: 400;
}

.download {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85svh;
  padding: 7rem var(--page-pad);
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
  text-align: center;
}

.download h2 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin-bottom: 1.75rem;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.download > p:not(.action-note) {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  color: #e4e9ff;
  font-size: 0.9rem;
}

.download-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: transparent;
  font-family: var(--display);
  font-size: min(68vw, 52rem);
  line-height: 1;
  -webkit-text-stroke: 1px rgb(255 255 255 / 22%);
  transform: translate(-50%, -50%);
}

.button--light {
  z-index: 1;
  border-color: var(--white);
  color: var(--blue);
  background: var(--white);
}

.button--light:hover {
  color: var(--white);
  background: transparent;
}

.action-note {
  z-index: 1;
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
}

.download .action-note {
  color: var(--white);
}

.account {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 10rem);
  padding: clamp(6rem, 11vw, 10rem) var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.account-actions {
  align-self: end;
}

.account-actions > p:first-child {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-actions > div {
  display: flex;
  gap: 2rem;
}

.text-button {
  padding: 0 0 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-size: 0.9rem;
  cursor: pointer;
}

.account .action-note {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 9rem;
  padding: 2rem var(--page-pad);
  font-size: 0.68rem;
}

.site-footer p {
  color: var(--muted);
}

.site-footer p:last-child {
  justify-self: end;
}

.footer-account {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  scroll-margin-top: 5rem;
}

.footer-account > span {
  color: var(--muted);
}

.footer-account .text-button {
  font-size: 0.75rem;
}

.footer-account .action-note {
  flex-basis: 100%;
  margin-top: 0;
}

.brand--footer {
  font-size: 0.9rem;
}

@keyframes title-reveal {
  from {
    opacity: 0.01;
    transform: translateY(0.18em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vision {
  padding: clamp(6rem, 12vw, 11rem) var(--page-pad) 0;
}

.vision-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(3rem, 8vw, 10rem);
  align-items: start;
}

.vision-lead {
  max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.5vw, 2.6rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.vision-story {
  max-width: 36rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ink);
}

.vision-story > p {
  color: var(--muted);
  font-size: 0.95rem;
}

.vision-story .vision-future {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.center-link {
  margin-top: 2rem;
}

@media (max-width: 760px) {
  .vision-body {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .vision-lead {
    max-width: 100%;
    font-size: 1.8rem;
  }

  .vision-story > p {
    font-size: 1rem;
  }

  .vision-story .vision-future {
    font-size: 0.95rem;
  }
}

@media (min-width: 1500px) {
  .scroll-cue {
    display: flex;
  }
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .hero-title {
    grid-column: 1 / 8;
    font-size: clamp(6rem, 16vw, 11rem);
  }

  .hero-copy {
    grid-column: 8 / 13;
  }

  .hero-direction {
    left: 46%;
  }

  .exhibition {
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 4.5rem;
  }

  .site-header {
    position: absolute;
    grid-template-columns: 1fr auto;
    min-height: 4.75rem;
  }

  .brand-latin,
  .header-download {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.75rem;
    cursor: pointer;
  }

  .menu-lines,
  .menu-lines::before {
    display: block;
    width: 1.2rem;
    height: 1px;
    background: var(--ink);
    content: "";
    transition: transform 250ms ease;
  }

  .menu-lines::before {
    transform: translateY(5px);
  }

  .menu-toggle[aria-expanded="true"] .menu-lines {
    transform: rotate(45deg) translateY(2px);
  }

  .menu-toggle[aria-expanded="true"] .menu-lines::before {
    transform: rotate(-90deg) translateX(-5px);
  }

  .site-nav {
    position: fixed;
    z-index: -1;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 6rem var(--page-pad);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: opacity 250ms ease, transform 250ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    font-family: var(--display);
    font-size: 2.8rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .hero-meta {
    position: absolute;
    top: 7rem;
    left: var(--page-pad);
  }

  .hero-title {
    order: 1;
    margin-bottom: 3.5rem;
    font-size: clamp(6.2rem, 31vw, 10rem);
    line-height: 0.9;
  }

  .hero-copy {
    order: 2;
    max-width: 100%;
    padding-bottom: 0;
  }

  .hero-statement {
    margin-bottom: 1.25rem;
    font-size: 2.1rem;
  }

  .hero-intro {
    margin-bottom: 1.75rem;
    font-size: 1rem;
  }

  .section-heading p,
  .exhibition-info p,
  .manifesto-content > p,
  .account-actions > p:first-child {
    font-size: 1rem;
  }

  .direction-list strong {
    font-size: 1rem;
  }

  .direction-list p,
  .journey strong {
    font-size: 0.95rem;
  }

  .direction-list span,
  .status,
  .prototype-note,
  .commission-note {
    font-size: 0.8rem;
  }

  .menu-toggle,
  .text-button,
  .hero-actions .text-link,
  .center-link {
    min-height: 2.75rem;
  }

  .text-button {
    min-width: 2.75rem;
  }

  .site-footer {
    font-size: 0.75rem;
  }

  .hero-direction {
    top: 18%;
    right: var(--page-pad);
    left: auto;
  }

  .direction-line {
    height: 4rem;
  }

  .section-heading,
  .manifesto,
  .account {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1.75rem;
    margin-bottom: 3.5rem;
  }

  .section-heading h2 {
    font-size: clamp(2.4rem, 11.8vw, 2.9rem);
  }

  .manifesto h2 {
    font-size: clamp(2.35rem, 10vw, 2.9rem);
  }

  .section-heading p {
    justify-self: start;
  }

  .exhibition {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    min-height: 0;
    padding: 3rem 0;
  }

  .exhibition-number {
    margin-bottom: 2.5rem;
  }

  .exhibition h3 {
    margin-bottom: 1.25rem;
    font-size: 3rem;
  }

  .poster {
    align-self: center;
    width: 100%;
    max-width: 30rem;
  }

  .poster-character {
    font-size: 58vw;
  }

  .poster--center .poster-character {
    font-size: 64vw;
  }

  .manifesto,
  .account {
    gap: 3.5rem;
  }

  .download {
    min-height: 75svh;
  }

  .download h2 {
    font-size: 3.4rem;
  }

  .download-mark {
    font-size: 110vw;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1.5rem;
    min-height: 8rem;
  }

  .site-footer > p:first-of-type {
    display: none;
  }

  .site-footer > p:last-child {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-account {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 1.5rem;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 29vw;
  }

  .hero-actions {
    gap: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (max-width: 350px) {
  .download h2 {
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
