:root {
  --bg: #f7f6f2;
  --paper: #fffefa;
  --ink: #111111;
  --muted: #6f6f68;
  --line: #d8d6cf;
  --accent: #0ea5a4;
  --cyan: #00d7ff;
  --red: #ff3157;
  --dark: #0b0b0b;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Microsoft YaHei UI", system-ui, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  gap: 18px;
  background: var(--ink);
  color: var(--paper);
  transition: clip-path 1.1s var(--ease), visibility 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}

.page-loader span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-loader strong {
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-loader.is-hidden {
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

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

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

.cursor-dot {
  position: fixed;
  z-index: 100;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, width 0.35s var(--ease), height 0.35s var(--ease);
  mix-blend-mode: difference;
}

.cursor-dot.is-active {
  opacity: 0.75;
}

.cursor-dot.is-hovering {
  width: 44px;
  height: 44px;
  border-color: #ffffff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  border-bottom: 1px solid rgba(216, 214, 207, 0.72);
  background: rgba(247, 246, 242, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  font-weight: 700;
}

.nav a {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero,
.section,
.case-hero,
.case-showcase,
.footer,
.intro-strip {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-right: var(--pad);
  padding-left: var(--pad);
}

.hero {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  padding-top: 118px;
  padding-bottom: 72px;
}

.hero [data-reveal],
.site-header[data-reveal] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero-copy,
.section-copy,
.case-meta,
.next-panel {
  min-width: 0;
  overflow-wrap: anywhere;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 11vw, 168px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  font-size: clamp(38px, 6vw, 92px);
}

[data-magnetic-text] {
  position: relative;
  width: max-content;
  max-width: 100%;
  cursor: none;
}

[data-magnetic-text]::after {
  position: absolute;
  right: 0;
  bottom: -18px;
  width: min(48vw, 420px);
  height: 1px;
  background: var(--ink);
  content: "";
  transform-origin: left;
}

.hero-intro {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.85;
  overflow-wrap: break-word;
}

.hero-actions,
.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.button:hover {
  transform: translateY(-3px);
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

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

.hero-visual {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--dark);
  box-shadow: 0 36px 80px rgba(17, 17, 17, 0.18);
}

.hero-visual img,
.wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
}

.hero-visual:hover img,
.wide-image:hover img {
  filter: contrast(1.06);
  transform: scale(1.035);
}

.hero-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.motion-marquee {
  display: flex;
  overflow: hidden;
  width: min(100%, var(--max));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.motion-marquee div {
  display: flex;
  min-width: max-content;
  animation: marquee 28s linear infinite;
}

.motion-marquee span {
  padding: 18px 28px;
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: clamp(18px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.intro-strip div {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}

.intro-strip div::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.intro-strip div:hover {
  background: rgba(255, 254, 250, 0.76);
  transform: translateY(-4px);
}

.intro-strip div:hover::before {
  transform: scaleX(1);
}

.intro-strip div:last-child {
  border-right: 0;
}

.intro-strip span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro-strip p {
  margin: 18px 0 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
}

.section {
  padding-top: clamp(88px, 11vw, 160px);
  padding-bottom: clamp(88px, 11vw, 160px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.about-grid .section-copy {
  max-width: 920px;
  margin-left: 0;
}

.about-grid .section-copy h2 {
  max-width: 840px;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.08;
}

.section-copy h2,
.section-heading h2,
.next-panel h2,
.footer h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(36px, 5.8vw, 86px);
  font-weight: 720;
  line-height: 1.08;
}

.section-copy p {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.86;
  text-wrap: pretty;
}

.section-copy p + p {
  margin-top: 14px;
}

.capability-list {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  grid-column: 1;
  max-width: 640px;
  gap: 10px;
  margin-top: -8px;
  margin-left: 0;
}

.capability-list span {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 8px 10px;
  background:
    linear-gradient(var(--ink), var(--ink)) left bottom / 100% 0% no-repeat,
    rgba(255, 254, 250, 0.54);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  transition: border-color 0.35s var(--ease), background-size 0.42s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.capability-list span::after {
  display: none;
}

.capability-list span:hover {
  background-size: 100% 100%, auto;
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 36px;
  margin-bottom: 56px;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-item {
  border-bottom: 1px solid var(--line);
}

.work-link {
  display: grid;
  min-height: 128px;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

.work-index {
  color: var(--muted);
  font-size: 14px;
}

.work-item h3 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 54px);
  font-weight: 640;
  line-height: 1.16;
}

.work-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.work-status {
  border: 1px solid var(--line);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-item.is-featured .work-status {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.work-item {
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}

.work-item:hover {
  background: rgba(255, 254, 250, 0.72);
  padding-right: 18px;
  padding-left: 18px;
}

.works-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.works-copy h2 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 84px);
  font-weight: 780;
  line-height: 1.06;
  text-wrap: balance;
}

.works-copy p:not(.section-kicker) {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.82;
  text-wrap: pretty;
}

.works-copy .button {
  margin-top: 34px;
}

/* ==========================================================================
   韩国作品集式编年项目索引
   ========================================================================== */

.project-index {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(88px, 10vw, 140px) var(--pad) clamp(64px, 8vw, 120px);
}

.project-index-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 20px;
}

.project-index-header h2 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.project-index-list {
  display: grid;
  gap: 0;
}

.project-index-item {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 0.42fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: clamp(140px, 18vw, 220px);
  padding: clamp(28px, 3.5vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.45s var(--ease), background 0.45s var(--ease);
}

.project-index-item:first-child {
  border-top: 1px solid var(--line);
}

.project-index-item:hover {
  padding-left: clamp(12px, 2vw, 28px);
  background: rgba(255, 254, 250, 0.6);
}

.project-index-text {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  gap: 0 clamp(16px, 2vw, 28px);
  align-items: start;
}

.project-index-num {
  grid-row: 1 / -1;
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.project-index-info {
  min-width: 0;
}

.project-index-info h3 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  transition: transform 0.4s var(--ease);
}

.project-index-item:hover .project-index-info h3 {
  transform: translateX(6px);
}

.project-index-info p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
}

.project-index-tags {
  grid-column: 2;
  display: block;
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.7;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.project-index-item:hover .project-index-tags {
  opacity: 1;
  color: var(--ink);
}

.project-index-thumb {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--dark);
}

.project-index-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.04);
  transform: scale(1.06);
  transition: transform 1s var(--ease), filter 0.8s var(--ease);
}

.project-index-item:hover .project-index-thumb img {
  transform: scale(1);
  filter: grayscale(0) contrast(1.06);
}

.project-index-thumb::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 14px;
  content: "";
  pointer-events: none;
}

/* 韩国作品集式排版增强: 更大的标题对比度 */
.section-copy h2,
.section-heading h2,
.next-panel h2,
.footer h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(38px, 5.8vw, 90px);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.project-accordion {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  height: min(42vw, 540px);
  min-height: 430px;
  overflow: hidden;
}

.accordion-panel {
  position: relative;
  flex: 0.48;
  min-width: 0;
  overflow: hidden;
  background: var(--dark);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  transition: flex 0.85s var(--ease), filter 0.85s var(--ease);
}

.accordion-panel.is-active {
  flex: 3.9;
}

.accordion-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  transform: scale(1.08);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}

.accordion-panel.is-active img {
  filter: grayscale(0) contrast(1);
  transform: scale(1);
}

.accordion-panel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.64) 100%);
  content: "";
}

.accordion-panel div {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  color: #ffffff;
}

.accordion-panel span {
  display: block;
  margin-bottom: 14px;
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.accordion-panel h3 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 58px);
  line-height: 0.96;
  white-space: nowrap;
}

.accordion-panel p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  line-height: 1.45;
}

.accordion-panel:not(.is-active) div {
  right: auto;
  bottom: 34px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center;
}

.accordion-panel:not(.is-active) h3 {
  font-size: clamp(18px, 1.6vw, 28px);
}

.accordion-panel:not(.is-active) p {
  display: none;
}

.case-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 6vw, 88px);
  padding-top: clamp(88px, 12vw, 170px);
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
}

.case-title h2 {
  margin: 0;
  font-size: clamp(56px, 9vw, 138px);
  font-weight: 780;
  line-height: 0.98;
}

.case-meta p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.8;
}

.case-meta dl {
  margin: 46px 0 0;
  border-top: 1px solid var(--line);
}

.case-meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.case-meta dt {
  color: var(--muted);
}

.case-meta dd {
  margin: 0;
}

.case-showcase {
  padding-bottom: clamp(88px, 11vw, 160px);
}

.wide-image {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 8.2;
  background: var(--dark);
}

.case-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
}

.case-process article {
  min-height: 300px;
  padding: 28px;
  background: var(--paper);
}

.case-process span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-process h3 {
  margin: 46px 0 0;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.22;
}

.case-process p {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 56px;
}

.image-grid img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  background: var(--dark);
}

.image-grid img:nth-child(1),
.image-grid img:nth-child(4) {
  grid-column: span 3;
}

.image-grid img:nth-child(2),
.image-grid img:nth-child(3),
.image-grid img:nth-child(5) {
  grid-column: span 2;
}

.experiments {
  border-top: 1px solid var(--line);
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.experiment-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.72);
}

.experiment-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.experiment-grid h3,
.experiment-grid p {
  margin-right: 18px;
  margin-left: 18px;
}

.experiment-grid h3 {
  margin-top: 20px;
  font-size: 22px;
}

.experiment-grid p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.75;
}

.next-projects {
  padding-top: 0;
}

.next-panel {
  padding: clamp(28px, 5vw, 72px);
  background: var(--dark);
  color: var(--paper);
}

.next-panel h2 {
  max-width: 1080px;
}

.next-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 54px;
  background: rgba(255, 255, 255, 0.18);
}

.next-columns div {
  padding: 28px;
  background: var(--dark);
}

.next-columns span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-columns h3 {
  margin: 22px 0 0;
  font-size: clamp(28px, 3.4vw, 52px);
}

.next-columns p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-top: 90px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line);
}

.footer address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.footer address a {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  overflow: hidden;
  padding: 6px 0;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer address a::before {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.footer address a:hover {
  color: var(--ink);
  transform: translateX(-8px);
}

.footer address a:hover::before {
  transform: scaleX(1);
}

.footer-note {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .cursor-dot {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero,
  .case-hero,
  .works-feature,
  .about-grid,
  .section-heading,
  .footer {
    grid-template-columns: 1fr;
  }

  .project-index-item {
    grid-template-columns: 1fr minmax(140px, 0.38fr);
    gap: clamp(16px, 3vw, 36px);
  }

  .project-index-header {
    grid-template-columns: auto 1fr;
  }

  .hero {
    min-height: auto;
  }

  .about-grid .section-copy {
    margin-left: 0;
  }

  .capability-list {
    grid-column: auto;
    margin-top: 0;
    margin-left: 0;
  }

  .intro-strip,
  .case-process,
  .experiment-grid,
  .next-columns {
    grid-template-columns: 1fr;
  }

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

  .intro-strip div:last-child {
    border-bottom: 0;
  }

  .work-link {
    grid-template-columns: 48px 1fr;
  }

  .project-accordion {
    height: auto;
    min-height: 0;
    flex-direction: column;
  }

  .accordion-panel,
  .accordion-panel.is-active {
    flex: none;
    height: 230px;
  }

  .accordion-panel:not(.is-active) div {
    transform: none;
    right: 24px;
    bottom: 24px;
    left: 24px;
    width: auto;
  }

  .accordion-panel:not(.is-active) p {
    display: block;
  }

  .work-status {
    grid-column: 2;
    width: max-content;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-grid img,
  .image-grid img:nth-child(n) {
    grid-column: auto;
  }

  .footer address {
    text-align: left;
  }

}

@media (max-width: 640px) {
  :root {
    --pad: 18px;
  }

  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    padding-top: 92px;
  }

  .hero h1 {
    font-size: clamp(50px, 18vw, 66px);
  }

  .hero h1 span {
    font-size: clamp(31px, 11vw, 40px);
  }

  .project-index {
    padding: clamp(56px, 10vw, 80px) var(--pad);
  }

  .project-index-item {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 24px 0;
  }

  .project-index-thumb {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }

  .project-index-info h3 {
    font-size: clamp(24px, 6vw, 36px);
  }

  .hero-visual {
    aspect-ratio: 16 / 10;
  }

  .wide-image {
    aspect-ratio: 4 / 3;
  }

  .hero-visual figcaption {
    flex-direction: column;
    gap: 2px;
  }

  .case-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .case-process article {
    min-height: auto;
  }
}

.brand-case {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(88px, 12vw, 170px) var(--pad);
  border-top: 1px solid var(--line);
}

.brand-case-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  margin-bottom: 56px;
}

.brand-case-head h2 {
  margin: 0;
  font-size: clamp(54px, 8vw, 128px);
  font-weight: 780;
  line-height: 0.98;
}

.brand-case-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.8;
}

.brand-case-copy dl {
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.brand-case-copy div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.brand-case-copy dt {
  color: var(--muted);
}

.brand-case-copy dd {
  margin: 0;
}

.patchi-cover {
  overflow: hidden;
  margin: 0;
  background: #f5eee3;
  box-shadow: 0 36px 80px rgba(17, 17, 17, 0.12);
}

.patchi-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.patchi-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
}

.patchi-story article {
  min-height: 270px;
  padding: 28px;
  background: var(--paper);
}

.patchi-story span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.patchi-story h3 {
  margin: 46px 0 0;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.22;
}

.patchi-story p {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.patchi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.patchi-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f5eee3;
}

@media (max-width: 980px) {
  .brand-case-head,
  .patchi-story,
  .patchi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-case-copy div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .patchi-story article {
    min-height: auto;
  }
}
/* ==========================================================================
   Awwwards-Style Motion Setup (Guo Ziheng Portfolio Custom)
   ========================================================================== */

/* Lenis 平滑滚动根节点优化 */
html.lenis, html.lenis body {
  height: auto;
}
.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis-smooth [data-scroll-container] {
  min-height: 100vh;
}

/* 视差图像容器裁剪：防止图片做 Y 轴位移时溢出穿帮 */
[data-parallax] {
  overflow: hidden !important;
  position: relative;
}

/* 让视差大图默认稍微放大一点点(1.15倍)，给 GSAP 的 Y 轴位移留出安全空间 */
[data-parallax] img {
  width: 100%;
  height: 115% !important;
  object-fit: cover;
  will-change: transform;
}

/* 错落浮现组件的初始隐藏状态 */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
}