:root {
  --bg: #f3efe6;
  --ink: #171715;
  --muted: #6f695f;
  --line: #cec4b5;
  --accent: #1f6b65;
  --warm: #b65b3f;
  --paper: #fffaf0;
  --spot-x: 50%;
  --spot-y: 40%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(31, 107, 101, 0.22), transparent 26rem),
    linear-gradient(135deg, #f8f4ea, var(--bg));
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.6;
  transition: background-position 200ms ease;
}

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

button {
  font: inherit;
}

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

.studio-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
  pointer-events: none;
}

.studio-header a {
  pointer-events: auto;
}

.mark {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.9rem;
}

nav a[aria-current="page"] {
  color: var(--ink);
}

.studio-shell {
  min-height: 100svh;
}

.stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 82px);
  align-items: center;
  padding: clamp(88px, 10vw, 140px) clamp(18px, 5vw, 70px) 140px;
  overflow: hidden;
}

.stage-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--warm);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 0.96;
}

.stage-copy p:last-child {
  max-width: 430px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  word-break: keep-all;
}

.active-work {
  position: relative;
  margin: 0;
  transform: perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transition: transform 180ms ease;
}

.active-work img {
  width: min(58vw, 660px);
  min-width: 280px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--line);
  box-shadow: 0 34px 80px rgba(31, 28, 21, 0.28);
}

.active-work figcaption {
  position: absolute;
  right: clamp(-24px, -2vw, -12px);
  bottom: clamp(18px, 4vw, 48px);
  width: min(330px, 72vw);
  padding: 18px 20px;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(23, 23, 21, 0.12);
  backdrop-filter: blur(18px);
}

.active-work span {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.active-work strong {
  display: block;
  margin-top: 4px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 1.1;
}

.active-work em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.active-work p {
  margin: 12px 0 0;
  color: #4e493f;
  font-size: 0.92rem;
}

.controls {
  position: fixed;
  left: clamp(18px, 5vw, 70px);
  bottom: 28px;
  z-index: 12;
  display: flex;
  gap: 10px;
}

.controls button {
  min-width: 76px;
  min-height: 42px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.controls button:hover,
.controls button:focus-visible {
  background: var(--accent);
}

.thumb-strip {
  position: fixed;
  right: clamp(18px, 4vw, 52px);
  bottom: 26px;
  z-index: 12;
  width: min(48vw, 520px);
}

.thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72px;
  gap: 10px;
  overflow-x: auto;
  padding: 4px;
}

.thumbs button {
  width: 72px;
  height: 92px;
  padding: 0;
  background: var(--paper);
  border: 2px solid transparent;
  cursor: pointer;
}

.thumbs button[aria-selected="true"] {
  border-color: var(--accent);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 880px) {
  .studio-header {
    position: sticky;
    background: rgba(243, 239, 230, 0.9);
    backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  .stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 220px;
  }

  .active-work img {
    width: 100%;
  }

  .active-work figcaption {
    position: static;
    width: 100%;
  }

  .thumb-strip {
    left: 18px;
    right: 18px;
    width: auto;
  }
}

@media (max-width: 560px) {
  .studio-header {
    gap: 18px;
  }

  nav {
    gap: 12px;
  }

  .controls {
    bottom: 132px;
  }
}
