:root {
  --bg: #050609;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.68);
  --dim: rgba(244, 246, 251, 0.48);
  --accent: #d7ff58;
  --cyan: #72e8ff;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--text);
  background: #050609;
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

.grainient-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: #050609;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 9, 0.14), rgba(5, 6, 9, 0.52) 62%, rgba(5, 6, 9, 0.8)),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.split-parent {
  display: inline-block;
  overflow: hidden;
  white-space: normal;
}

.split-line {
  display: block;
  overflow: hidden;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.72em);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--split-index, 0) * 28ms);
  will-change: transform, opacity;
}

.split-text.is-visible .split-char {
  opacity: 1;
  transform: translateY(0);
}

.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 32;
  --color-sensitivity: 52;
  --border-radius: 8px;
  --glow-padding: 34px;
  --cone-spread: 24;
  --fill-opacity: 0.34;
  --card-bg: rgba(9, 12, 16, 0.72);
  --glow-color: hsl(72deg 100% 68% / 82%);
  --glow-color-60: hsl(72deg 100% 68% / 52%);
  --glow-color-50: hsl(184deg 100% 72% / 42%);
  --glow-color-40: hsl(72deg 100% 68% / 34%);
  --glow-color-30: hsl(184deg 100% 72% / 26%);
  --glow-color-20: hsl(72deg 100% 68% / 18%);
  --glow-color-10: hsl(184deg 100% 72% / 10%);
  --gradient-one: radial-gradient(at 80% 55%, rgba(215, 255, 88, 0.9) 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, rgba(114, 232, 255, 0.78) 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, rgba(255, 255, 255, 0.58) 0px, transparent 48%);
  --gradient-four: radial-gradient(at 41% 38%, rgba(128, 255, 212, 0.5) 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, rgba(110, 123, 255, 0.42) 0px, transparent 48%);
  --gradient-six: radial-gradient(at 82% 18%, rgba(215, 255, 88, 0.58) 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, rgba(114, 232, 255, 0.45) 0px, transparent 50%);
  --gradient-base: linear-gradient(rgba(215, 255, 88, 0.3) 0 100%);
  position: relative;
  isolation: isolate;
  overflow: visible;
  transform: translate3d(0, 0, 0.01px);
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 250ms ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 750ms ease-in-out;
}

.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add, add, add, add, add;
}

.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  z-index: 2;
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black 2.5%,
      transparent 10%,
      transparent 90%,
      black 97.5%
    );
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60),
    inset 0 0 4px 0 var(--glow-color-50),
    inset 0 0 9px 0 var(--glow-color-40),
    inset 0 0 18px 0 var(--glow-color-30),
    inset 0 0 34px 2px var(--glow-color-20),
    0 0 1px 0 var(--glow-color-60),
    0 0 8px 0 var(--glow-color-40),
    0 0 28px 2px var(--glow-color-20),
    0 0 58px 2px var(--glow-color-10);
}

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

img,
video {
  display: block;
  width: 100%;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  width: 100%;
  padding: 24px 40px;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, rgba(5, 6, 9, 0.78), rgba(5, 6, 9, 0));
  backdrop-filter: blur(10px);
}

.brand {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 800;
}

.site-nav nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 14px;
  color: var(--muted);
}

.site-nav nav a,
.nav-contact {
  transition: color 180ms ease;
}

.site-nav nav a:hover,
.nav-contact:hover {
  color: var(--accent);
}

.nav-contact {
  justify-self: end;
  font-size: 14px;
}

.section-screen {
  position: relative;
  min-height: 100vh;
  aspect-ratio: 16 / 9;
  padding: 120px clamp(32px, 5vw, 80px);
}

.hero {
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.9) 0%, rgba(5, 6, 9, 0.54) 48%, rgba(5, 6, 9, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 6, 9, 0.06), rgba(5, 6, 9, 0.78)),
    radial-gradient(circle at 72% 24%, rgba(114, 232, 255, 0.18), transparent 30%),
    radial-gradient(circle at 20% 76%, rgba(215, 255, 88, 0.1), transparent 32%),
    url("./web-assets/images/作品集封面.jpg") center / cover;
  filter: saturate(0.78) contrast(1.06) brightness(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.92) 0%, rgba(5, 6, 9, 0.62) 42%, rgba(5, 6, 9, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 6, 9, 0.04) 0%, rgba(5, 6, 9, 0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(1480px, calc(100vw - 128px));
  padding-top: 40px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 28px;
  font-size: clamp(60px, 7.4vw, 132px);
  line-height: 0.92;
  font-weight: 900;
}

.hero-title {
  white-space: nowrap;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 88px);
  line-height: 1.03;
  font-weight: 900;
}

h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.hero-copy,
.about-main p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 42px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.primary-btn {
  color: #050609;
  background: var(--accent);
  border-color: var(--accent);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.06);
}

.hero-contact {
  position: absolute;
  right: 40px;
  bottom: 34px;
  z-index: 1;
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.about {
  max-width: var(--max);
  margin: 0 auto;
}

.about.section-screen {
  padding-top: 96px;
  padding-bottom: 48px;
}

.about .section-kicker {
  margin-bottom: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 0.9fr) 390px;
  grid-template-rows: minmax(0, 1fr) 80px 122px;
  gap: 16px;
  align-items: stretch;
  height: min(520px, calc(100vh - 210px));
  min-height: 500px;
}

.portrait-wrap,
.timeline-panel,
.skills-panel,
.advantage-panel,
.stat-grid > div {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.portrait-wrap {
  grid-column: 1;
  grid-row: 1 / 3;
  overflow: hidden;
  border-radius: 8px;
}

.portrait-wrap img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.06);
}

.about-main {
  grid-column: 2;
  grid-row: 1;
  padding: 8px 0 12px 12px;
}

.about-main h2 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(64px, 6vw, 96px);
}

.profile-name {
  letter-spacing: 0;
}

.about-main p {
  font-size: 13px;
  line-height: 1.6;
}

.contact-line {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 14px;
}

.timeline-panel {
  grid-column: 3;
  grid-row: 1 / 4;
  padding: 24px 28px;
  border-radius: 8px;
}

.timeline-panel h3 {
  margin-bottom: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: block;
  padding-left: 18px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(215, 255, 88, 0.58);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 20px;
  bottom: -16px;
  width: 1px;
  background: linear-gradient(rgba(215, 255, 88, 0.36), transparent);
}

.timeline li:last-child::after {
  display: none;
}

.timeline time {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.timeline strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}

.stat-grid {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-grid > div {
  min-height: 0;
  padding: 13px;
  border-radius: 8px;
}

.stat-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1;
}

.stat-grid span {
  color: var(--muted);
  font-size: 12px;
}

.skills-panel,
.advantage-panel {
  padding: 18px;
  border-radius: 8px;
}

.skills-panel {
  grid-column: 2;
  grid-row: 3;
  overflow: hidden;
}

.advantage-panel {
  grid-column: 1;
  grid-row: 3;
  overflow: hidden;
}

.skills-panel h3,
.advantage-panel h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-cloud span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.advantage-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.catalog {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max);
  margin: 0 auto;
}

.catalog.section-screen {
  padding-top: 92px;
  padding-bottom: 52px;
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 42px;
  padding: 0 clamp(32px, 5vw, 80px);
}

.catalog .section-heading {
  width: 100%;
  padding: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.catalog-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11141a;
}

.catalog-card img,
.catalog-card video {
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: blur(4px) saturate(0.78) brightness(0.62);
  transform: scale(1.04);
  transition: transform 500ms ease, opacity 500ms ease, filter 500ms ease;
}

.catalog-card:hover img,
.catalog-card:hover video {
  transform: scale(1.08);
  opacity: 1;
  filter: blur(2px) saturate(0.92) brightness(0.72);
}

.catalog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.88)),
    linear-gradient(90deg, rgba(2, 4, 8, 0.74), rgba(2, 4, 8, 0.28));
}

.catalog-card .meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}

.catalog-card b {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 0.9;
  color: var(--accent);
}

.catalog-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.projects {
  padding: 120px 0 40px;
}

.sticky-heading {
  position: relative;
  z-index: 1;
}

.project-chapter {
  max-width: var(--max);
  margin: 0 auto 88px;
  padding: 0 clamp(32px, 5vw, 80px);
  scroll-margin-top: 96px;
}

.chapter-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 3;
  max-height: 260px;
  min-height: 0;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10131a;
}

.chapter-preview-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px;
  padding: 6px;
  opacity: 0.54;
  filter: blur(10px) saturate(0.9) brightness(0.78);
  transform: scale(1.045);
}

.preview-tile {
  overflow: hidden;
  min-height: 0;
  background: #0e1118;
}

.preview-tile.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.preview-tile img,
.preview-tile video {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08);
}

.chapter-preview-grid[style*="4"] {
  grid-template-columns: repeat(4, 1fr);
}

.chapter-preview-grid[style*="5"] {
  grid-template-columns: repeat(5, 1fr);
}

.chapter-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.92), rgba(5, 6, 9, 0.48) 56%, rgba(5, 6, 9, 0.78)),
    radial-gradient(circle at 78% 24%, rgba(215, 255, 88, 0.16), transparent 34%);
}

.chapter-copy {
  position: absolute;
  left: clamp(26px, 5vw, 70px);
  top: 50%;
  bottom: auto;
  z-index: 1;
  max-width: 760px;
  transform: translateY(-50%);
}

.chapter-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 64px);
  line-height: 1;
}

.chapter-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.masonry-wall {
  column-count: 3;
  column-gap: 14px;
  padding: 2px 0;
}

.masonry-wall.count-4,
.masonry-wall.count-5 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  column-count: initial;
}

.work-card {
  display: inline-block;
  width: 100%;
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  opacity: 0;
  break-inside: avoid;
  transform: translateY(28px);
  animation: cardEnter 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--item-index, 0) * 55ms);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.work-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 255, 88, 0.42);
  background: var(--panel-strong);
}

.work-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  appearance: none;
}

.work-card img,
.work-card video {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.work-card video {
  background: #0e1118;
}

.masonry-wall.count-4 .work-card,
.masonry-wall.count-5 .work-card {
  display: block;
  margin: 0;
}

.masonry-wall.count-4 .work-card img,
.masonry-wall.count-4 .work-card video,
.masonry-wall.count-5 .work-card img,
.masonry-wall.count-5 .work-card video {
  height: clamp(260px, 24vw, 430px);
  object-fit: cover;
}

.masonry-wall.chapter-08 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.masonry-wall.chapter-08 .work-card img,
.masonry-wall.chapter-08 .work-card video {
  height: clamp(420px, 42vw, 680px);
  object-fit: cover;
  object-position: top center;
}

.masonry-wall.chapter-08 .work-card:first-child {
  grid-column: auto;
}

.media-type {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 6, 9, 0.62);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-caption {
  padding: 9px 11px 11px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.45;
}

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 72px 40px 34px;
  background: rgba(3, 4, 6, 0.92);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  grid-column: 2;
  display: grid;
  place-items: center;
  min-height: 0;
}

.lightbox-stage img,
.lightbox-stage video {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #080a0e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.lightbox-caption {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: rgba(215, 255, 88, 0.58);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.11);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.lightbox-nav {
  align-self: center;
  width: 52px;
  height: 78px;
  border-radius: 999px;
  font-size: 44px;
  line-height: 1;
}

.lightbox-prev {
  grid-column: 1;
}

.lightbox-next {
  grid-column: 3;
}

.finale {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: rgba(3, 4, 6, 0.18);
}

.finale::before {
  display: none;
}

.finale::after {
  content: "";
  position: absolute;
  inset: -34px;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(2, 3, 6, 0.9), rgba(2, 3, 6, 0.52) 58%, rgba(2, 3, 6, 0.78)),
    linear-gradient(180deg, rgba(2, 3, 6, 0.18), rgba(2, 3, 6, 0.88)),
    radial-gradient(circle at 22% 36%, rgba(114, 232, 255, 0.12), transparent 32%),
    radial-gradient(circle at 78% 62%, rgba(215, 255, 88, 0.1), transparent 30%),
    url("./web-assets/images/作品集封面.jpg") center / cover;
  filter: saturate(0.76) contrast(1.04) brightness(0.82);
}

.finale > * {
  position: relative;
  z-index: 2;
}

.finale h2 {
  max-width: 980px;
}

.finale-contact {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  min-width: 320px;
  color: var(--muted);
  font-size: 18px;
}

.finale-contact a:first-child {
  color: var(--accent);
}

@media (max-width: 1180px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-main {
    grid-column: auto;
  }

  .timeline-panel {
    grid-row: auto;
  }

  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .catalog-card {
    min-height: 0;
  }

  .masonry-wall {
    column-count: 2;
  }

  .masonry-wall.chapter-08 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav {
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .site-nav nav {
    justify-content: end;
    gap: 16px;
  }

  .nav-contact {
    display: none;
  }

  .section-screen {
    padding: 96px 20px;
  }

  .hero-contact,
  .contact-line,
  .finale {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-contact {
    left: 20px;
    right: 20px;
    gap: 8px;
  }

  .about-grid,
  .catalog-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .section-screen {
    aspect-ratio: auto;
  }

  .portrait-wrap {
    min-height: 360px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .chapter-hero {
    aspect-ratio: 16 / 7;
  }

  .chapter-copy {
    left: 22px;
    right: 22px;
  }

  .masonry-wall {
    column-count: 1;
  }

  .masonry-wall.count-4,
  .masonry-wall.count-5,
  .masonry-wall.chapter-08 {
    grid-template-columns: 1fr;
  }

  .masonry-wall.chapter-08 .work-card:first-child {
    grid-column: auto;
  }

  .masonry-wall.count-4 .work-card img,
  .masonry-wall.count-4 .work-card video,
  .masonry-wall.count-5 .work-card img,
  .masonry-wall.count-5 .work-card video,
  .masonry-wall.chapter-08 .work-card img,
  .masonry-wall.chapter-08 .work-card video {
    height: auto;
    object-fit: contain;
  }

  .lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 70px 14px 24px;
  }

  .lightbox-nav {
    width: 40px;
    height: 58px;
  }
}
