:root {
  --paper: #f4f4f1;
  --white: #ffffff;
  --ink: #080808;
  --muted: #686864;
  --soft: #eeeeea;
  --line: #d7d7d1;
  --accent: #2b2b28;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 52px;
  border-bottom: 1px solid rgba(8, 8, 8, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-elevated {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.brand-main {
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #242424;
  font-size: 13px;
}

.nav-links a {
  border-bottom: 1px solid transparent;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92svh;
  overflow: hidden;
  padding: 124px 56px 58px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 8, 8, 0.025) 1px, transparent 1px),
    var(--white);
  background-size: 120px 120px, 120px 120px, auto;
}

.hero::after {
  position: absolute;
  right: 56px;
  bottom: 38px;
  left: 56px;
  height: 1px;
  content: "";
  background: rgba(8, 8, 8, 0.24);
}

.gallery-wall {
  position: absolute;
  inset: 96px 52px 78px 42%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  grid-template-rows: repeat(7, minmax(46px, 1fr));
  gap: 18px;
  pointer-events: none;
}

.wall-work {
  margin: 0;
  align-self: center;
  justify-self: center;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(8, 8, 8, 0.18);
  background: var(--white);
  box-shadow: var(--shadow);
}

.wall-work img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

.wall-work-a {
  grid-column: 8 / span 3;
  grid-row: 1 / span 5;
  max-width: 330px;
  aspect-ratio: 3 / 5;
}

.wall-work-b {
  grid-column: 12 / span 2;
  grid-row: 2 / span 4;
  max-width: 220px;
  aspect-ratio: 2 / 5;
}

.wall-work-c {
  grid-column: 7 / span 2;
  grid-row: 2 / span 2;
  max-width: 250px;
  aspect-ratio: 5 / 3;
  opacity: 0.92;
}

.wall-work-d {
  grid-column: 10 / span 2;
  grid-row: 5 / span 2;
  max-width: 240px;
  aspect-ratio: 1 / 1;
}

.wall-work-e {
  grid-column: 13 / span 2;
  grid-row: 5 / span 3;
  max-width: 210px;
  aspect-ratio: 2 / 5;
  opacity: 0.86;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 660px;
}

.eyebrow,
.section-label,
.detail-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  font-size: 92px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin: 30px 0 0;
  color: #303030;
  font-size: 19px;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 15px;
}

.text-link-strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-meta {
  position: absolute;
  z-index: 3;
  right: 56px;
  bottom: 58px;
  display: grid;
  gap: 16px;
  min-width: 260px;
  margin: 0;
  padding: 0;
}

.hero-meta div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  border-top: 1px solid rgba(8, 8, 8, 0.3);
  padding-top: 12px;
}

.hero-meta dt {
  color: var(--muted);
  font-size: 13px;
}

.hero-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.intro-band,
.works-section,
.visit-section {
  padding-right: 56px;
  padding-left: 56px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(320px, 1.35fr) minmax(280px, 0.9fr);
  gap: 56px;
  align-items: start;
  padding-top: 68px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.intro-copy h2,
.section-heading h2,
.visit-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-copy p,
.section-heading > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(8, 8, 8, 0.75);
  padding-top: 0;
}

.intro-stats div {
  display: grid;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding: 18px 18px 0 0;
}

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

.intro-stats strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.intro-stats span {
  color: var(--muted);
  font-size: 13px;
}

.works-section {
  padding-top: 86px;
  padding-bottom: 96px;
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.72fr);
  gap: 68px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 48px;
  align-items: start;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

.work-card {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0 18px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.work-card.is-active {
  border-color: var(--ink);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border: 1px solid rgba(8, 8, 8, 0.14);
  padding: 12px;
  background: var(--white);
  transition: filter 160ms ease, border-color 160ms ease;
}

.work-card:hover img,
.work-card:focus-visible img,
.work-card.is-active img {
  border-color: rgba(8, 8, 8, 0.42);
  filter: contrast(1.03) saturate(0.92);
}

.work-card span {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.work-detail {
  position: sticky;
  top: 96px;
  border-top: 2px solid var(--ink);
  padding: 26px 0 0;
}

.work-detail h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: 0;
}

.detail-artist {
  margin: 18px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.detail-medium {
  margin: 2px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.work-detail p:last-child {
  margin: 0;
  color: #3c3c39;
  font-size: 16px;
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1fr);
  gap: 56px;
  padding-top: 86px;
  padding-bottom: 86px;
  border-top: 0;
  border-bottom: 0;
  background: var(--ink);
  color: var(--white);
}

.visit-section .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.visit-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
}

.visit-grid div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 18px 0;
}

.visit-grid span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.visit-grid strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 56px;
  color: var(--muted);
  font-size: 14px;
  background: var(--white);
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 72px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .gallery-wall {
    opacity: 0.82;
  }

  .hero-meta {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .hero {
    display: block;
  }

  .intro-band,
  .section-heading,
  .work-layout,
  .visit-section {
    grid-template-columns: 1fr;
  }

  .intro-stats {
    max-width: 480px;
  }

  .work-detail {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding: 0 20px;
  }

  .brand {
    gap: 8px;
  }

  .brand-main {
    font-size: 20px;
  }

  .brand-sub {
    display: none;
  }

  .nav-links {
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 88px 20px 42px;
  }

  .hero::after {
    right: 20px;
    bottom: 24px;
    left: 20px;
  }

  .gallery-wall {
    position: relative;
    inset: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(5, 58px);
    gap: 12px;
    height: 342px;
    margin-bottom: 34px;
    opacity: 1;
  }

  .wall-work {
    padding: 7px;
  }

  .wall-work-a {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
  }

  .wall-work-b {
    grid-column: 4 / span 2;
    grid-row: 1 / span 3;
  }

  .wall-work-c {
    grid-column: 1 / span 2;
    grid-row: 4 / span 2;
  }

  .wall-work-d {
    grid-column: 3 / span 3;
    grid-row: 4 / span 2;
  }

  .wall-work-e {
    display: none;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-meta {
    min-width: 0;
  }

  .intro-band,
  .works-section,
  .visit-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .intro-band {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .intro-copy h2,
  .section-heading h2,
  .visit-section h2 {
    font-size: 32px;
  }

  .intro-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .works-section {
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .work-card {
    padding: 9px;
  }

  .work-detail h3 {
    font-size: 30px;
  }

  .visit-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .visit-grid div {
    grid-template-columns: 64px 1fr;
    gap: 18px;
  }

  .site-footer {
    padding: 24px 20px;
  }
}

@media (max-width: 440px) {
  .nav-links {
    gap: 12px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions {
    gap: 8px 18px;
  }

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

  .intro-stats strong {
    font-size: 30px;
  }
}
