*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--c-white);
  color: var(--c-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--c-red); color: var(--c-white); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.h-display {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(3.2rem, 9vw, 8rem);
}
.h-section {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gray-3);
}

.rule { height: 1px; background: var(--c-gray-2); width: 100%; }
.rule--dark { background: rgba(255,255,255,.18); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .85em 1.6em;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--c-ink);
  background: var(--c-ink);
  color: var(--c-white);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { background: transparent; color: var(--c-ink); }

.btn--red { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.btn--red:hover { background: transparent; color: var(--c-red); }

.btn--on-dark { border-color: #fff; background: #fff; color: var(--c-ink); }
.btn--on-dark:hover { background: transparent; color: #fff; }

/* 滚动容器 */
.scroll-root {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  will-change: transform;
  overflow: hidden;
}
.screen--light { background: var(--c-white); color: var(--c-ink); }
.screen--dark  { background: var(--c-ink); color: var(--c-white); }
.screen--gray  { background: var(--c-gray-1); color: var(--c-ink); }

.screen__inner { width: 100%; position: relative; z-index: 1; }
.hero-title { margin-bottom: 1.4rem; }
.hero-sub { max-width: 46ch; color: var(--c-gray-3); font-size: 1rem; }
.screen--dark .hero-sub { color: rgba(255,255,255,.6); }

/* 顶部固定导航 */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  mix-blend-mode: difference; color: #fff;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  pointer-events: none;
}
.topbar a { pointer-events: auto; }
.topbar__nav { display: flex; gap: 28px; }

/* 右侧进度条 */
.progress {
  position: fixed; top: 0; right: 0; width: 2px; height: 100vh;
  background: var(--c-gray-2); z-index: 60; pointer-events: none;
}
.progress__bar {
  width: 100%; height: 0;
  background: var(--c-red);
  transition: height 80ms linear;
}

/* 项目条目（第二屏） */
.project-row {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: var(--line);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), padding var(--t-base);
}
.project-row:last-child { border-bottom: var(--line); }
.project-row:hover {
  background: var(--c-ink);
  color: var(--c-white);
  padding-left: 1rem;
  padding-right: 1rem;
}
.project-row:hover .project-row__num,
.project-row:hover .project-row__meta { color: rgba(255,255,255,.6); }
.project-row:hover .project-row__arrow { opacity: 1; transform: translateX(0); }

.project-row__num { font-family: var(--font-serif); font-size: 1rem; color: var(--c-gray-3); }
.project-row__title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.project-row__meta { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-gray-3); }
.project-row__arrow { opacity: 0; transform: translateX(-8px); transition: opacity var(--t-fast), transform var(--t-base); color: var(--c-red); }

/* ---- 第一屏 hero ---- */
.hero-block {
  margin-top: 12vh;
  max-width: 100%;
  position: relative;
}

/* 标题容器 */
.hero-title--merge {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
  width: 100%;
  position: relative;
  margin-bottom: 1.6rem;
}

.letter-wrap {
  position: relative;
  display: inline-block;
  will-change: transform, opacity;
}
.letter-wrap .letter-main,
.letter-wrap .letter-trail {
  display: inline-block;
  will-change: transform;
  transform: translateX(0);
}
.letter-wrap .letter-trail {
  position: absolute;
  left: 0; top: 0;
  color: var(--c-red);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}
.letter-wrap .letter-main {
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

/* 第一屏底部红色小方块 + 向下箭头 */
.scroll-hint {
    position: absolute;
    left: 0;
    bottom: -18vh;
    width: 44px;
    height: 44px;
    background: var(--c-red);
    border: 1px solid var(--c-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-base);
    z-index: 5;
  }
  .scroll-hint:hover {
    background: transparent;
    color: var(--c-red);
    border-color: var(--c-red);
    transform: translateY(2px);
  }
  .scroll-hint::after {
    content: "↓";
    font-family: var(--font-sans);
    font-weight: 500;
  }

/* ---- 第三/四/五屏：统一项目展示布局 ---- */
.project-screen__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: center;
}
@media (max-width: 768px) { .project-screen__grid { grid-template-columns: 1fr; } }

/* 第三、四屏：悬浮海报卡片，2:3，留白 + 阴影 + 悬停微放大 */
.project-screen__visual {
    aspect-ratio: 2 / 3;
    background: var(--c-white);
    border: var(--line);
    position: relative;
    overflow: hidden;
    display: block;
  
    /* 缩小 + 留白 */
    width: min(100%, 420px);
    max-height: 72vh;
    margin-inline: auto;
  
    /* 悬浮阴影 */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  
    /* 80ms 风格的过渡，和全站一致 */
    transition: transform 160ms ease-out, box-shadow 160ms ease-out;
    transform: translateZ(0);
  }
  .project-screen__visual:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.1);
  }
  
  .project-screen__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  /* 深色屏上的海报：阴影更浓一点，边框淡一点 */
  .screen--dark .project-screen__visual {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  .screen--dark .project-screen__visual:hover {
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.55), 0 6px 16px rgba(0, 0, 0, 0.35);
  }
  .screen--gray .project-screen__visual {
    background: var(--c-white);
  }
  
  /* 移动端：去掉最大宽度限制，但保留边距 */
  @media (max-width: 768px) {
    .project-screen__visual {
      width: min(100%, 320px);
      max-height: none;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    }
  }

/* 第五屏：与第三、四屏海报卡片同尺寸、同阴影、同悬停，但内容是居中文字 */
.project-screen__visual--text {
    aspect-ratio: 2 / 3;
    background: var(--c-white);
    border: var(--line);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  
    /* 与海报卡片一致的尺寸与留白 */
    width: min(100%, 420px);
    max-height: 72vh;
    margin-inline: auto;
  
    /* 与海报卡片一致的悬浮阴影 */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  
    /* 与海报卡片一致的过渡与悬停 */
    transition: transform 160ms ease-out, box-shadow 160ms ease-out;
    transform: translateZ(0);
  
    /* 文字样式：衬线体，字号放大一倍 */
    color: var(--c-gray-3);
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .project-screen__visual--text:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.1);
  }
  
  .screen--gray .project-screen__visual--text {
    background: var(--c-white);
  }
  
  /* 移动端与海报卡片一致 */
  @media (max-width: 768px) {
    .project-screen__visual--text {
      width: min(100%, 320px);
      max-height: none;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
      font-size: 2.2rem;
    }
  }

/* ---- 备案条 ---- */
.legal-screen {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  overflow: hidden;
  background: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 500ms cubic-bezier(.22,.61,.36,1);
  z-index: 40;
}
.legal-screen.is-open { height: 72px; }
.legal-bar {
  background: var(--c-ink);
  color: rgba(255,255,255,.55);
  font-size: .7rem;
  letter-spacing: .1em;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.legal-bar a { color: rgba(255,255,255,.55); transition: color var(--t-fast); }
.legal-bar a:hover { color: var(--c-red-bright); }

/* 移动端 */
@media (max-width: 768px) {
  .topbar__nav { gap: 16px; }
  .project-row { grid-template-columns: 3rem 1fr; }
  .project-row__meta { display: none; }
  .hero-block { margin-top: 8vh; }
  .scroll-hint { bottom: -14vh; width: 40px; height: 40px; }
  .legal-screen.is-open { height: 84px; }
}