/* ==========================================================================
   看山七问 · 七折屏首页
   Seven vertical painting panels, anchored to a shared floor line.
   ========================================================================== */

.fold-page {
  min-height: 100svh;
  background: #15140f;
}

.fold-page .site-footer {
  display: none;
}

.fold-page .nav-wrap {
  background: rgba(15, 14, 10, 0.66);
  border: 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fold-page .nav-wrap.is-scrolled {
  background: rgba(15, 14, 10, 0.92);
}

.fold {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 34fr) minmax(0, 66fr);
  min-height: 100svh;
  padding: 0 3vw;
  overflow: hidden;
  background: #15140f;
  isolation: isolate;
}

/* Left: the wall text ------------------------------------------------------ */
.fold__copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.6rem;
  min-width: 0;
  padding: 6rem 2vw 4rem 1vw;
}

.fold__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.fold__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--cinnabar);
}

.fold__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.fold__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 0.4rem;
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  flex: 0 0 auto;
}

.fold__title {
  margin: 0;
  display: block;
  white-space: normal;
  writing-mode: horizontal-tb;
  font-family: var(--serif);
  font-family: "STKaiti", "KaiTi", "Kaiti SC", var(--serif);
  font-size: clamp(2.6rem, 3.8vw, 3.65rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.fold__title em {
  font-style: normal;
  color: var(--cinnabar);
}

.fold__title-line {
  display: block;
}

.fold__title-line--accent {
  color: var(--ink);
  white-space: nowrap;
}

.fold__lede {
  margin: 0;
  max-width: 370px;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

.fold__actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.fold__enter {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}

.fold__enter i {
  font-style: normal;
  transition: transform 450ms var(--ease);
}

.fold__enter:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.fold__enter:hover i {
  transform: translateX(5px);
}

.fold__note {
  margin: 0;
  max-width: 280px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

/* Right: the seven panels ------------------------------------------------ */
.fold__stage {
  position: relative;
  min-width: 0;
  align-self: stretch;
}

.fold__rail {
  position: absolute;
  right: 0;
  bottom: 6.4rem;
  left: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 78vh;
  min-height: 420px;
  z-index: 2;
}

.fold__panel {
  position: relative;
  display: block;
  height: var(--h, 62%);
  min-height: 220px;
  overflow: visible;
  background: #0e0d09;
  color: var(--ink);
  transition: height 520ms var(--ease);
  outline: none;
}

.fold__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(12, 11, 8, 0.12);
  pointer-events: none;
  transition: background 450ms var(--ease);
}

.fold__panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  filter: none;
}

.fold__panel:hover,
.fold__panel:focus-visible {
  height: calc(var(--h, 62%) + 48px);
  z-index: 5;
}

.fold__panel:hover::after,
.fold__panel:focus-visible::after {
  background: rgba(12, 11, 8, 0);
}

.fold__label {
  position: absolute;
  bottom: calc(100% + 0.8rem);
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  opacity: 0;
  transform: translateY(0.45rem);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  pointer-events: none;
  white-space: nowrap;
}

.fold__panel:hover .fold__label,
.fold__panel:focus-visible .fold__label,
.fold__panel--first .fold__label {
  opacity: 1;
  transform: translateY(0);
}

.fold__rail:hover .fold__panel--first:not(:hover) .fold__label {
  opacity: 0;
  transform: translateY(0.45rem);
}

.fold__no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cinnabar);
}

.fold__name {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.2;
  color: var(--ink);
}

.fold__work {
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Timeline ---------------------------------------------------------------- */
.fold__timeline {
  position: absolute;
  right: 0;
  bottom: 2.7rem;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.fold__tick {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 220ms var(--ease);
}

.fold__tick::before {
  content: "";
  position: absolute;
  top: -0.7rem;
  left: 0;
  width: 1px;
  height: 0.5rem;
  background: var(--line-strong);
}

.fold__tick:hover {
  color: var(--ink);
}

.fold__tick em {
  font-style: normal;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Tablet ----------------------------------------------------------------- */
@media (max-width: 1100px) {
  .fold {
    grid-template-columns: minmax(300px, 34fr) minmax(0, 66fr);
    padding: 0 2.2vw;
  }

  .fold__copy {
    padding-left: 0;
    gap: 1.5rem;
  }

  .fold__title-wrap {
    position: relative;
    display: block;
    width: 100%;
  }

  .fold__seal {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    margin: 0;
    font-size: 10px;
  }

  .fold__title {
    font-size: clamp(2rem, 3.8vw, 3rem);
  }

  .fold__lede {
    max-width: min(440px, 100%);
  }

  .fold__rail {
    height: 72vh;
    gap: 6px;
  }

  .fold__timeline {
    gap: 6px;
  }
}

/* Mobile: horizontal seven-panel rail ------------------------------------- */
@media (max-width: 760px) {
  .fold {
    display: block;
    min-height: 100svh;
    padding: 0;
    overflow: visible;
  }

  .fold__copy {
    padding: 5.6rem 1.4rem 1.5rem;
    gap: 1rem;
  }

  .fold__seal {
    width: 32px;
    height: 32px;
    margin-top: 0.25rem;
  }

  .fold__title {
    writing-mode: horizontal-tb;
    font-size: clamp(2rem, 10.2vw, 3.15rem);
    line-height: 1.08;
  }

  .fold__title-line {
    display: block;
  }

  .fold__lede {
    max-width: min(440px, 100%);
    font-size: clamp(0.95rem, 3.4vw, 1.1rem);
    line-height: 1.75;
  }

  .fold__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .fold__note {
    display: block;
    max-width: min(440px, 100%);
    font-size: 10px;
    line-height: 1.7;
  }

  .fold__timeline {
    display: none;
  }

  .fold__stage {
    padding-bottom: 1.6rem;
  }

  .fold__rail {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 48vh;
    min-height: 330px;
    padding: 1.2rem 1.4rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .fold__rail::-webkit-scrollbar {
    display: none;
  }

  .fold__panel {
    flex: 0 0 42vw;
    height: 100%;
    min-height: 0;
    scroll-snap-align: start;
    overflow: hidden;
  }

  .fold__panel:hover,
  .fold__panel:focus-visible {
    height: 100%;
  }

  .fold__panel--first .fold__label,
  .fold__panel .fold__label {
    opacity: 1;
    transform: none;
    position: absolute;
    inset: auto 0 0;
    padding: 0.55rem 0.5rem 0.6rem;
    white-space: normal;
  }

  .fold__label {
    background: rgba(15, 14, 10, 0.82);
    backdrop-filter: blur(5px);
  }

  .fold__name {
    font-size: 14px;
  }

  .fold__work {
    font-size: 9px;
  }

  .fold__timeline {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0 1.4rem;
    grid-template-columns: repeat(7, 42vw);
    gap: 7px;
    padding-top: 0.65rem;
    overflow: hidden;
  }

  .fold__tick {
    min-width: 0;
  }

  .fold__tick em {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fold__panel,
  .fold__label,
  .fold__enter,
  .fold__enter i {
    transition: none !important;
  }

  .fold__panel:hover,
  .fold__panel:focus-visible {
    height: var(--h, 62%);
  }

  .fold__panel .fold__label {
    opacity: 1;
    transform: none;
  }
}
