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

:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #161616;
  --muted: #6b625c;
  --line: rgba(22, 22, 22, 0.1);
  --accent: #cc5c39;
  --accent-soft: #f2dfd5;
  --shadow: 0 18px 45px rgba(73, 43, 25, 0.12);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

button,
input,
textarea,
[contenteditable="true"] {
  font: inherit;
}

a,
button,
.gi,
.back,
.slider-dot,
.slider-arrow,
.h-name {
  -webkit-tap-highlight-color: transparent;
}

@media (pointer:fine) {
  body { cursor: none; }
}

#cur,
#cur-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

#cur {
  width: 6px;
  height: 6px;
  background: var(--text);
}

#cur-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(22, 22, 22, 0.28);
}

body.hover #cur {
  width: 4px;
  height: 4px;
}

body.hover #cur-ring {
  width: 52px;
  height: 52px;
  opacity: 0.35;
}

body.click #cur {
  width: 30px;
  height: 30px;
  mix-blend-mode: difference;
}

body.click #cur-ring {
  opacity: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  backdrop-filter: blur(18px);
  z-index: 50;
}

.h-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.h-role {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.h-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.h-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
}

.h-links a:hover {
  color: var(--accent);
}

.h-year {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.page {
  display: none;
  padding-top: 86px;
}

.page.active {
  display: block;
}

.work-section {
  padding: 28px 28px 48px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head p {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.section-head span {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  align-items: start;
}

.gi {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #f7f7f7;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.gi::after {
  content: "";
  position: absolute;
  inset: 14px 14px auto 14px;
  height: calc(100% - 84px);
  background: linear-gradient(180deg, transparent 25%, rgba(22, 22, 22, 0.16) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 18px;
}

.gi img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.6s ease, filter 0.45s ease;
}

.gi:hover img {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.gi:hover::after {
  opacity: 1;
}

.gi-copy {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  z-index: 2;
  color: var(--text);
  padding: 16px 6px 4px;
}

.gi-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.gi-meta {
  font-size: 13px;
  margin-top: 6px;
  color: var(--muted);
}

.gi-cta {
  border: 1px solid rgba(22, 22, 22, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.gi.featured {
  grid-column: span 12;
}

.gi.half {
  grid-column: span 6;
}

.back {
  display: inline-block;
  margin: 28px 30px 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}

.back:hover {
  color: var(--text);
}

.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 30px;
}

#d-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

#d-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

#d-headline {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

#d-desc {
  line-height: 1.7;
  color: #3d342e;
  max-width: 34rem;
}

.article-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.article-link:hover {
  opacity: 0.9;
}

.slider-wrap {
  position: relative;
  margin: 0 30px 24px;
}

.slider {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 22, 22, 0.08);
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.slides-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.slide {
  min-width: 100%;
  padding: 10px 14px 14px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  justify-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: 8px 18px 12px;
  min-height: min(78vh, 760px);
}

.slide-media {
  width: min(100%, 1080px);
  aspect-ratio: 17 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.slide-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.slide-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 0 6px;
  font-size: 13px;
  width: min(100%, 1080px);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(22, 22, 22, 0.12);
  cursor: pointer;
  z-index: 3;
}

.slider-arrow.prev {
  left: 18px;
}

.slider-arrow.next {
  right: 18px;
}

.slider-arrow:hover {
  background: var(--surface-strong);
}

.slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 30px 40px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.empty-state {
  margin: 0 30px 40px;
  padding: 28px;
  border-radius: 20px;
  border: 1px dashed rgba(22, 22, 22, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .h-links,
  .h-year {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .section-head,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .detail-top {
    gap: 20px;
  }

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

  .gi.featured,
  .gi.half {
    grid-column: span 2;
  }

  .slide-img {
    max-width: 100%;
    max-height: 100%;
  }

  .slide-card {
    min-height: auto;
    padding: 8px 10px 12px;
  }

  .slide-media,
  .slide-caption {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 120px;
  }

  .work-section,
  .detail-top {
    padding-left: 18px;
    padding-right: 18px;
  }

  .slider-wrap,
  .slider-dots,
  .back,
  .empty-state {
    margin-left: 18px;
    margin-right: 18px;
  }

  .slider-dots {
    padding-left: 18px;
    padding-right: 18px;
  }

  .slider-arrow {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .slider-arrow.prev {
    left: 10px;
  }

  .slider-arrow.next {
    right: 10px;
  }

  .gi-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}
