/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --paper:      #152318;
  --ink:        #F0EDE6;
  --terra:      #F85028;
  --moss:       #5A9068;
  --stone:      #C4BDB0;
  --dust:       rgba(240, 237, 230, 0.18);
  --warm-white: #1C3020;
  --border:     rgba(240, 237, 230, 0.1);
  --border-mid: rgba(240, 237, 230, 0.22);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #0A1D10; }

body {
  font-family: 'Noto Serif SC', 'Cormorant Garamond', Georgia, serif;
  background:
    radial-gradient(ellipse 38% 38% at 10% 18%, rgba(90, 175, 115, 0.22) 0%, transparent 75%),
    radial-gradient(ellipse 35% 28% at 86% 70%, rgba(70, 150, 95, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 88% 8%,  rgba(4, 12, 6, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 8%  92%, rgba(4, 12, 6, 0.60) 0%, transparent 70%),
    #0A1D10;
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.42' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.032;
  pointer-events: none;
  z-index: 9990;
}

/* ─── Language display ────────────────────────────────── */
body.en [data-zh] { display: none; }
body.zh [data-en] { display: none; }

/* ─── Custom Cursor ──────────────────────────────────── */
.cursor {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--terra);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  width: 30px; height: 30px;
  border: 1px solid rgba(248, 80, 40, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
}

/* ─── Language Toggle ─────────────────────────────────── */
.lang-toggle {
  position: fixed;
  top: 28px; right: 36px;
  z-index: 200;
  display: flex;
}
.lang-btn {
  padding: 6px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  cursor: none;
  border: 0.5px solid var(--border-mid);
  background: transparent;
  color: var(--stone);
  transition: all 0.25s ease;
}
.lang-btn:first-child { border-right: none; }
.lang-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ─── Reveal animation ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 64px 80px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 28px 10px;
  animation: fadeUp 0.9s ease 0.1s both;
}

.hero-eyebrow[data-en] {
  margin-bottom: 10px;
}

.hero-name-block {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 48px;
  animation: fadeUp 0.9s ease 0.25s both;
}

.hero-name {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(110px, 17.5vw, 220px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 0.12em 0 0.06em;
  background: linear-gradient(140deg,
    #FFFFFF 0%,
    #F0EDE6 28%,
    #FDFCFA 52%,
    #E6E0D8 78%,
    #F5F2EC 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-name-en-side { display: none; }

/* Vertical spine text — two columns */
.hero-name-vertical {
  position: absolute;
  right: 420px;
  top: auto;
  bottom: 118px;
  display: flex;
  flex-direction: row-reverse; /* right column "Gong Shijie" read first */
  gap: 18px;
  overflow: hidden;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  font-style: italic;
  color: var(--stone);
  opacity: 0.38;
  animation: fadeUp 0.9s ease 0.3s both;
}
.hero-name-vertical span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}


.hero-rule {
  width: 100%;
  height: 0.5px;
  background: var(--border-mid);
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease 0.4s both;
}

.hero-stmt {
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 10px;
  margin-left: 10px;
  animation: fadeUp 0.9s ease 0.5s both;
}

/* Statements: anchored bottom, right edge flush with spine left */
.hero-stmt[data-zh],
.hero-stmt[data-en] {
  position: absolute;
  right: 484px;
  bottom: 118px;
  margin: 0;
  text-align: right;
}

.hero-stmt-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-style: italic;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.75;
  max-width: 640px;
  margin-left: 10px;
  opacity: 0.7;
  animation: fadeUp 0.9s ease 0.58s both;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.9s ease 1s both;
  cursor: none;
  font-size: 0;
}
.hero-scroll::after {
  content: '';
  width: 0.5px;
  height: 52px;
  background: linear-gradient(to bottom, var(--terra), transparent);
}


/* ─── Section header ──────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}
.section-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-style: italic;
  color: var(--stone);
  opacity: 0.6;
}
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: var(--stone);
  opacity: 0.5;
}

/* ─── WORKS ───────────────────────────────────────────── */
.works {
  position: relative;
  z-index: 2;
  padding: 80px 64px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Featured: 问宫师姐 ─────────────────────────────── */
.work-featured {
  max-width: 680px;
  margin: 0 auto 100px;
  padding-top: 0;
}
.work-featured-inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  text-decoration: none;
  color: inherit;
  cursor: none;
}
.work-featured-img {
  order: 2;
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  background-color: transparent;
  border-left: 0.5px solid var(--border);
}

.work-featured-body {
  order: 1;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: 0.5px solid var(--border);
  border-right: none;
}

.work-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 12px;
}
.work-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--terra);
  animation: live-pulse 2.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.work-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 14px;
}

.work-title-large {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}
.work-title-large-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}

.work-desc-main {
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
  margin-bottom: 6px;
}
.work-sub-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-style: italic;
  color: var(--stone);
  opacity: 0.7;
  line-height: 1.65;
}

.work-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--terra);
  margin-top: 24px;
  display: inline-block;
  transition: letter-spacing 0.3s ease;
}
.work-featured-inner:hover .work-link { letter-spacing: 0.18em; }

/* ── Works rows ───────────────────────────────────────── */
.works-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  padding-top: 100px;
  margin-bottom: 100px;
}

.work-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: none;
}

.work-card-img-wrap {
  overflow: hidden;
  background: transparent;
  margin-bottom: 20px;
}

.work-card-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.work-card:hover .work-card-img { transform: scale(1.02); }

.work-card-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Universal card frame (Style C: double rule) ────────── */
.works-row .work-card {
  position: relative;
  padding: 30px;
  border: 0.5px solid rgba(196, 189, 176, 0.28);
}
.works-row .work-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 0.5px solid rgba(196, 189, 176, 0.13);
  pointer-events: none;
}

/* ── Per-row card layouts ─────────────────────────────── */

/* Podcasts: flex row with space-between so cards are content-width only */
.works-row--podcasts {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 160px;
}
.works-row--podcasts .work-card {
  flex: 0 1 471px;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 12px;
}
.works-row--podcasts .work-card-img-wrap {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  margin-bottom: 0;
  overflow: hidden;
}
.works-row--podcasts .work-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.works-row--podcasts .work-card-body {
  min-width: 0;
  flex: 1;
}
.works-row--podcasts .work-card:first-child {
  gap: 28px;
}

/* WeChat body: text left, QR right */
.works-row--wechat .work-card-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.work-card-body-text {
  flex: 1;
  min-width: 0;
}
.work-card-qr--corner {
  width: 54px;
  height: 54px;
  max-width: 54px;
  max-height: 54px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border: 0.5px solid var(--dust);
  margin-right: 4px;
}

/* WeChat: centered flex, cards constrained width */
.works-row--wechat {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 220px;
}
.works-row--wechat .work-card {
  flex: 0 1 388px;
}
.works-row--wechat .work-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
}

/* Books: image left, text right */
.works-row--books {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 130px;
}
.works-row--books .work-card {
  flex: 0 1 483px;
  align-self: flex-start;
  height: fit-content;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.works-row--books .work-card-img-wrap {
  width: 108px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.works-row--books .work-card-img {
  width: 108px;
  height: 144px;
  object-fit: contain;
  object-position: center;
}
.works-row--books .work-card-body {
  min-width: 0;
}

.work-card-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
}

.work-card-title {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.work-card-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 2vw, 26px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}

.work-card-desc {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--stone);
  flex: 1;
}

.work-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  margin-top: 12px;
}
.work-card-foot-txt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.work-card-arrow {
  font-size: 14px;
  color: var(--terra);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.work-card:hover .work-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.work-card-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 0;
  margin-top: 12px;
}
.work-card-qr img {
  width: 44px; height: 44px;
  border-radius: 2px;
  border: 0.5px solid var(--dust);
  flex-shrink: 0;
}
.work-card-qr-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 3px;
}
.work-card-qr-txt {
  font-size: 10px;
  color: var(--stone);
}

/* Book cards */
.work-card--book .work-card-img { height: 160px; }

/* ── Horizon: Coming soon ─────────────────────────────── */
.work-horizon {
  border-top: 0.5px solid var(--border-mid);
  padding-top: 100px;
  text-align: center;
}
.work-horizon-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}
.work-horizon-title {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
  opacity: 0.3;
}
.work-horizon-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 4vw, 52px);
  font-style: italic;
  color: var(--ink);
  opacity: 0.3;
  margin-bottom: 16px;
}
.work-horizon-desc {
  font-size: 12px;
  color: var(--stone);
  opacity: 0.6;
}

/* ─── ABOUT ─────────────────────────────────────────── */
.about {
  position: relative;
  z-index: 2;
  padding: 80px 64px 100px;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 0.5px solid var(--border-mid);
}

.about-inner {
  display: grid;
  grid-template-columns: 3fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.about-text {
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.about-facts { display: flex; flex-direction: column; }

.fact {
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
}
.fact:first-child { border-top: 0.5px solid var(--border); }

.fact-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 3px;
}
.fact-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
}

/* ─── CONTACT ───────────────────────────────────────── */
.contact {
  position: relative;
  z-index: 2;
  padding: 36px 64px 80px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--border-mid);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--stone);
  transition: color 0.25s ease;
  cursor: none;
}
.contact-link:hover { color: var(--terra); }
.contact-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--terra);
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}
.contact-link:hover .contact-dot { opacity: 1; }

.footer-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--stone);
  opacity: 0.55;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  /* Hero: shorter, less top padding, content in normal flow */
  .hero {
    min-height: auto;
    padding: 130px 24px 60px;
    justify-content: flex-start;
  }
  .hero-scroll { display: none; }
  .hero-name-en-side { display: none; }

  /* Spine: reposition to right edge instead of hiding */
  .hero-name-vertical {
    right: 16px;
    bottom: 48px;
    top: auto;
  }

  /* Bring statements back into normal flex flow, right-aligned toward spine */
  .hero-stmt[data-zh],
  .hero-stmt[data-en] {
    position: static;
    text-align: right;
    margin: 20px 60px 0 0;
  }

  .works { padding: 80px 24px 100px; }
  .work-featured { max-width: 100%; }

  /* Featured card: column layout on mobile */
  .work-featured-inner {
    display: flex;
    flex-direction: column;
    position: relative;
    border: 0.5px solid rgba(196, 189, 176, 0.28);
  }
  .work-featured-inner::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 0.5px solid rgba(196, 189, 176, 0.13);
    pointer-events: none;
    z-index: 1;
  }
  .work-featured-img {
    order: 0;
    height: 220px;
    margin: 20px 20px 0;
    background-size: 65%;
    background-position: center center;
    border-left: none;
  }
  .work-featured-body {
    order: 0;
    border: none;
    padding: 24px;
    text-align: center;
  }
  .work-featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }
  .work-featured-meta .work-live { display: flex; margin-bottom: 0; }
  .work-featured-meta .work-tag { margin-bottom: 0; text-align: center; }
  .work-featured-meta .work-link { margin-top: 0; }
  .work-featured-body .work-link { text-align: right; }

  .work-featured { margin-bottom: 72px; }

  /* All rows → single column, consistent 72px spacing */
  .works-row { grid-template-columns: 1fr; gap: 72px; margin-bottom: 72px; padding-top: 0; }

  /* Podcasts: flex → single column, square contain images */
  .works-row--podcasts {
    display: flex;
    flex-direction: column;
    gap: 72px;
    align-items: stretch;
  }
  .works-row--podcasts .work-card {
    flex: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .works-row--podcasts .work-card-img-wrap { width: 120px; height: 120px; background: transparent; margin-bottom: 0; }
  .works-row--podcasts .work-card-img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
  .works-row--podcasts .work-card-body { width: 100%; text-align: left; }

  /* Wechat: flex → single column */
  .works-row--wechat {
    display: flex;
    flex-direction: column;
    gap: 72px;
    align-items: stretch;
  }
  .works-row--wechat .work-card { flex: none; width: 100%; }
  .works-row--wechat .work-card-img { height: 180px; aspect-ratio: auto; }

  /* Books: flex → single column, card back to column layout */
  .works-row--books {
    display: flex;
    flex-direction: column;
    gap: 72px;
    align-items: stretch;
  }
  .works-row--books .work-card {
    flex: none;
    width: 100%;
    flex-direction: column;
  }
  .works-row--books .work-card-img-wrap { width: 100%; margin-bottom: 16px; }
  .works-row--books .work-card-img { width: 100%; height: 180px; object-fit: cover; }

  .about { padding: 60px 24px 80px; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }

  .contact { padding: 32px 24px 60px; flex-wrap: wrap; gap: 14px; }
  .lang-toggle { right: 20px; top: 20px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(80px, 23vw, 112px); }
}
