:root {
  color-scheme: light;
  --ink: #101010;
  --muted: #66686c;
  --soft: #f1f1f1;
  --paper: #ffffff;
  --line: #d8d8d8;
  --rail: #090909;
  --rail-muted: #8d8d8d;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

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

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

.side-rail {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: 156px;
  flex-direction: column;
  padding: 32px 30px;
  color: #fff;
  background: var(--rail);
}

.mark {
  width: fit-content;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.side-rail nav {
  display: grid;
  gap: 22px;
  margin-top: 76px;
  color: var(--rail-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.side-rail nav a.is-active,
.side-rail nav a:hover {
  color: #fff;
}

.rail-note {
  margin: auto 0 0;
  color: var(--rail-muted);
  font-size: 11px;
  line-height: 1.7;
}

.mobile-header,
.mobile-nav {
  display: none;
}

.page-shell {
  margin-left: 156px;
}

.hero {
  position: relative;
  min-height: 66vh;
  overflow: hidden;
  background: #111;
}

.hero-video {
  position: absolute;
  inset: 0;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 118vh);
  height: max(100%, 66vw);
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sound-toggle {
  position: absolute;
  z-index: 4;
  right: clamp(22px, 4vw, 54px);
  bottom: 32px;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0 18px 0 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.sound-toggle[aria-pressed="true"] {
  color: #111;
  background: rgba(255, 255, 255, 0.9);
}

.sound-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
}

.sound-text {
  white-space: nowrap;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(48px, 7vw, 96px);
  bottom: clamp(70px, 10vw, 120px);
  display: grid;
  grid-template-columns: 1px minmax(0, 760px);
  gap: 22px;
  align-items: center;
  color: #fff;
}

.copy-rule {
  width: 1px;
  height: 220px;
  background: rgba(255, 255, 255, 0.78);
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.76);
}

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

h1 {
  margin-bottom: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(45px, 5.6vw, 80px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 40px 0;
  background: var(--paper);
}

.section-intro {
  display: flex;
  flex-direction: column;
  padding: 54px 8px 0;
}

.section-kicker {
  line-height: 1.35;
}

.short-rule {
  width: 30px;
  height: 1px;
  margin: 24px 0;
  background: var(--ink);
}

.section-intro p {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.section-intro a {
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro a span {
  margin-left: 8px;
}

.image-grid {
  display: grid;
  grid-template-columns: 1.12fr 1.42fr 1fr;
  grid-auto-flow: dense;
  gap: 12px;
}

.image-grid figure {
  min-height: 245px;
  overflow: hidden;
  background: var(--soft);
}

.image-grid img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 450ms ease;
}

.image-grid figure:hover img {
  transform: scale(1.035);
}

.tile-large {
  grid-row: span 2;
  min-height: 502px;
}

.tile-vertical {
  grid-row: span 2;
  min-height: 502px;
}

.tile-wide {
  grid-column: span 2;
  min-height: 245px;
}

.text-band {
  display: grid;
  grid-template-columns: 170px minmax(0, 720px);
  gap: 28px;
  padding: 88px 40px;
  background: var(--paper);
}

.text-band h2 {
  margin-bottom: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.text-band p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.archive-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 40px 40px;
}

.archive-strip img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 40px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer p {
  margin: 0;
}

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

  .mobile-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    color: #fff;
    transition: background 180ms ease, color 180ms ease;
  }

  .mobile-header.is-scrolled,
  .mobile-header.is-open {
    color: var(--ink);
    background: #fff;
  }

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 3px 0;
    background: currentColor;
  }

  .mobile-nav {
    position: fixed;
    z-index: 45;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .page-shell {
    margin-left: 0;
  }

  .hero {
    min-height: 70vh;
  }

  .portfolio-section,
  .text-band {
    grid-template-columns: 1fr;
    padding-right: 24px;
    padding-left: 24px;
  }

  .section-intro {
    padding-top: 44px;
  }

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

  .tile-large,
  .tile-vertical {
    grid-row: span 1;
    min-height: 280px;
  }

  .tile-wide {
    grid-column: span 2;
  }

  .archive-strip {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 640px) {
  .mobile-header {
    padding: 14px 18px;
  }

  .mark {
    font-size: 32px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    bottom: 84px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .copy-rule {
    width: 70px;
    height: 1px;
  }

  .hero-copy p:last-child {
    font-size: 12px;
  }

  .sound-toggle {
    right: 18px;
    bottom: 22px;
    min-height: 42px;
    padding-right: 14px;
    padding-left: 12px;
  }

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

  .tile-wide {
    grid-column: span 1;
  }

  .image-grid figure,
  .tile-large,
  .tile-vertical,
  .tile-wide {
    min-height: 240px;
  }

  .text-band {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .footer {
    flex-direction: column;
    padding-right: 24px;
    padding-left: 24px;
  }
}
