:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #171313;
  --muted: #6c5d5f;
  --line: #eadedd;
  --pink: #d72a7d;
  --pink-soft: #f6d5dc;
  --rose: #f29aa0;
  --shadow: 0 18px 54px rgba(78, 37, 43, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button,
a.button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(18px, env(safe-area-inset-left)) 12px max(18px, env(safe-area-inset-left));
  background: rgba(255, 250, 249, 0.9);
  border-bottom: 1px solid rgba(234, 222, 221, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 1px;
  min-width: 74px;
  line-height: 1;
}

.brand span {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.08em;
}

.brand strong {
  font-size: 18px;
  font-weight: 650;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-header nav::-webkit-scrollbar {
  display: none;
}

.site-header nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

.site-header nav a:focus-visible,
.button:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.hero {
  display: grid;
  min-height: calc(100svh - 64px);
}

.hero-media {
  min-height: 42svh;
  background: #f3d2cc;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 42svh;
  object-fit: cover;
  object-position: 56% center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 34px 22px 42px;
}

.project-name {
  margin: 0;
  color: var(--pink);
  font-size: 15px;
  font-weight: 650;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 11vw, 72px);
  line-height: 0.95;
  font-weight: 620;
}

.hero-subtitle {
  margin-bottom: 0;
  color: #2a2424;
  font-size: clamp(18px, 5vw, 30px);
  line-height: 1.28;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.hero-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 620;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:active {
  transform: translateY(1px);
}

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

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 22px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-index {
  display: block;
  margin-bottom: 12px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 760;
}

.section h2 {
  margin-bottom: 14px;
  font-size: clamp(29px, 6.5vw, 46px);
  line-height: 1.08;
  font-weight: 610;
}

.section-heading p,
.research-text p,
.project-card p,
.child-caption p,
.share-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.86;
  overflow-wrap: anywhere;
}

.children-section {
  padding-top: 64px;
}

.children-grid {
  display: grid;
  gap: 16px;
}

.project-card,
.child-work,
.research-aside,
.share-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(112px, 34%) 1fr;
  align-items: stretch;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--pink-soft);
}

.project-card div {
  padding: 18px 18px 18px 16px;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 720;
}

.project-card h3,
.child-caption h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.22;
}

.child-work {
  background: #fff;
}

.child-work img {
  width: 100%;
  background: #fff;
}

.child-caption {
  padding: 18px;
}

.child-caption p:last-child,
.project-card p:last-child,
.research-text p:last-child,
.share-copy p:last-child {
  margin-bottom: 0;
}

.research-layout {
  display: grid;
  gap: 22px;
}

.research-text {
  max-width: 780px;
}

.research-text p {
  margin-bottom: 20px;
  color: #4c4244;
}

.research-aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: none;
}

.research-aside div {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
}

.research-aside div:last-child {
  border-right: 0;
}

.research-aside span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.research-aside strong {
  display: block;
  font-size: 17px;
  font-weight: 650;
}

.works-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 30%);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--pink-soft) transparent;
}

.work-card {
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
}

.work-card button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 620;
}

.theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.theme-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #5c4d50;
  font-size: 13px;
}

.collections-section {
  padding-top: 42px;
}

.collections-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.collections-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #453b3d;
  font-size: 16px;
  line-height: 1.45;
}

.share-section {
  display: grid;
  gap: 22px;
  padding-bottom: 92px;
}

.share-panel {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.share-panel .qr {
  width: 126px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.share-panel .poster {
  width: 100%;
  border-radius: var(--radius);
}

.work-dialog {
  width: min(94vw, 920px);
  max-height: 92svh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.26);
}

.work-dialog::backdrop {
  background: rgba(24, 18, 18, 0.58);
}

.work-dialog img {
  width: 100%;
  max-height: 76svh;
  object-fit: contain;
  background: #fff;
}

.work-dialog p {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(23, 19, 19, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

@media (min-width: 760px) {
  .site-header {
    padding-right: 30px;
    padding-left: 30px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    min-height: calc(100svh - 64px);
  }

  .hero-media {
    min-height: calc(100svh - 64px);
  }

  .hero-media img {
    min-height: calc(100svh - 64px);
  }

  .hero-copy {
    padding: 56px 54px;
  }

  .children-grid {
    grid-template-columns: 0.86fr 1.14fr;
    align-items: start;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card img {
    aspect-ratio: 0.76;
  }

  .research-layout,
  .share-section {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 10px;
  }

  .site-header nav a {
    padding: 0 8px;
    font-size: 12px;
  }

  .hero-copy {
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .project-card {
    grid-template-columns: 110px 1fr;
  }

  .project-card div,
  .child-caption {
    padding: 15px;
  }

  .research-aside {
    grid-template-columns: 1fr;
  }

  .research-aside div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .research-aside div:last-child {
    border-bottom: 0;
  }

  .works-track {
    grid-auto-columns: minmax(226px, 78%);
  }

  .share-panel {
    grid-template-columns: 1fr;
  }

  .share-panel .qr {
    margin: 0 auto;
  }
}

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

  .button {
    transition: none;
  }

  .hero-media img {
    animation: none;
  }
}

.hero {
  position: relative;
  display: block;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 0;
  background:
    radial-gradient(circle at 78% 48%, rgba(247, 169, 190, 0.22), transparent 33%),
    radial-gradient(circle at 18% 12%, rgba(252, 224, 231, 0.44), transparent 38%);
}

.hero::after {
  z-index: 2;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.96) 16%, rgba(255, 255, 255, 0) 46%);
}

.hero-media {
  position: relative;
  z-index: 1;
  width: calc(100% + 52px);
  min-height: 0;
  height: clamp(142px, 18svh, 168px);
  margin: 10px -26px 0;
  background: transparent;
  overflow: clip;
  contain: paint;
  pointer-events: none;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-media::before {
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 12%, rgba(255, 255, 255, 0) 36%);
}

.hero-media::after {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, #fff 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(255, 248, 250, 0.82) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 60%;
  opacity: 0.82;
  filter: saturate(1.03) contrast(0.98) brightness(1.04);
  animation: hero-breathe 14s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-height: calc(100svh - 64px);
  justify-content: flex-start;
  padding: 40px 26px max(28px, env(safe-area-inset-bottom));
}

.project-name,
h1,
.hero-subtitle,
.hero-text,
.hero-actions {
  position: relative;
  z-index: 3;
}

.project-name {
  color: #242020;
  font-size: 13px;
  font-weight: 540;
  letter-spacing: 0.08em;
}

h1 {
  margin-top: 18px;
  white-space: nowrap;
  font-size: clamp(55px, 15.2vw, 104px);
  font-weight: 590;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin-top: 18px;
  color: #2b2729;
  font-size: clamp(34px, 9.2vw, 72px);
  line-height: 1.18;
  font-weight: 430;
  letter-spacing: 0;
}

.hero-text {
  max-width: 520px;
  margin-top: auto;
  margin-bottom: 0;
  color: rgba(87, 77, 81, 0.68);
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  position: relative;
  z-index: 4;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 12px;
}

.hero-actions .button {
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
  border-radius: 999px;
  padding: 0 30px;
  border-color: rgba(30, 22, 25, 0.12);
  box-shadow: 0 10px 26px rgba(34, 21, 26, 0.08);
  font-size: 22px;
  font-weight: 650;
}

.hero-actions .button::after {
  content: "\2192";
  font-size: 28px;
  line-height: 1;
}

.hero-actions .button.primary {
  border-color: transparent;
  background: #1d1217;
}

.hero-actions .button.ghost {
  background: rgba(255, 255, 255, 0.96);
}

.section h2 {
  font-weight: 580;
}

.children-track,
.works-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(286px, 82vw);
  gap: 16px;
  margin-right: -22px;
  margin-left: -22px;
  padding: 6px 22px 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.children-track::-webkit-scrollbar,
.works-track::-webkit-scrollbar {
  display: none;
}

.gallery-card,
.work-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  scroll-snap-align: center;
  cursor: pointer;
}

.gallery-card img,
.work-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.18;
  object-fit: contain;
  background: transparent;
  border-radius: inherit;
  transition: transform 420ms ease;
}

@keyframes hero-breathe {
  0%,
  100% {
    transform: scale(1.01) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.04) translate3d(0, -8px, 0);
  }
}

.gallery-card:active img,
.work-card:active img {
  transform: scale(1.018);
}

.child-gallery-card img {
  aspect-ratio: 1.18;
}

.work-card button {
  display: none;
}

.work-dialog {
  border-radius: 28px;
  overflow: hidden;
}

.dialog-close {
  border-radius: 999px;
}

@media (min-width: 900px) {
  .site-header {
    background: rgba(255, 255, 255, 0.88);
  }

  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero::before {
    background:
      radial-gradient(circle at 79% 55%, rgba(247, 169, 190, 0.18), transparent 28%),
      radial-gradient(circle at 13% 14%, rgba(252, 224, 231, 0.28), transparent 32%);
  }

  .hero::after {
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.98) 35%, rgba(255, 255, 255, 0) 62%);
  }

  .hero-copy {
    display: grid;
    grid-template-columns: minmax(420px, 43vw) minmax(420px, 1fr);
    grid-template-rows: auto auto auto minmax(40px, 1fr) auto;
    column-gap: clamp(46px, 6vw, 112px);
    max-width: none;
    min-height: calc(100svh - 64px);
    padding: clamp(52px, 5vw, 78px) clamp(48px, 5vw, 86px) clamp(38px, 4vw, 66px);
  }

  .project-name,
  h1,
  .hero-subtitle,
  .hero-text,
  .hero-actions {
    grid-column: 1;
  }

  .project-name {
    font-size: clamp(14px, 1vw, 18px);
  }

  h1 {
    margin-top: clamp(30px, 4vh, 48px);
    font-size: clamp(66px, 5.4vw, 110px);
    line-height: 0.98;
  }

  .hero-subtitle {
    max-width: 8.8em;
    margin-top: clamp(28px, 4vh, 52px);
    font-size: clamp(42px, 4vw, 76px);
    line-height: 1.14;
  }

  .hero-text {
    align-self: end;
    max-width: 480px;
    margin-top: clamp(34px, 5vh, 72px);
    font-size: clamp(16px, 1.18vw, 20px);
    line-height: 1.78;
  }

  .hero-actions {
    width: min(100%, 520px);
    margin-top: clamp(22px, 3vh, 38px);
  }

  .hero-actions .button {
    min-height: 64px;
    padding-right: 36px;
    padding-left: 36px;
    font-size: clamp(20px, 1.5vw, 26px);
  }

  .hero-media {
    position: absolute;
    inset: auto 0 0 auto;
    width: min(54vw, 860px);
    height: min(78vh, 760px);
    margin: 0;
  }

  .hero-media::before {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.74) 9%, rgba(255, 255, 255, 0) 25%);
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.78) 8%, rgba(255, 255, 255, 0) 22%),
      linear-gradient(180deg, rgba(255, 255, 255, 0) 76%, #fff 100%);
  }

  .hero-media img {
    object-position: 52% 58%;
    opacity: 0.86;
  }

  .children-track,
  .works-track {
    grid-auto-columns: minmax(340px, 34%);
  }
}

@media (min-width: 1280px) {
  .hero-copy {
    grid-template-columns: minmax(500px, 39vw) minmax(520px, 1fr);
  }

  .hero-media {
    width: min(56vw, 940px);
    height: min(80vh, 800px);
  }
}

@media (max-width: 430px) {
  .children-track,
  .works-track {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .gallery-card img,
  .work-card img {
    animation: none;
    transition: none;
  }
}
