:root {
  --ink: #211c0b;
  --muted: #77726a;
  --paper: #fbfbfa;
  --panel: #ffbf00;
  --shadow: 34px 66px 48px rgba(7, 17, 4, 0.46), 18px 34px 24px rgba(7, 17, 4, 0.34), 4px 8px 6px rgba(7, 17, 4, 0.22);
  --header-h: 92px;
  --nav-control-h: 42px;
  --cursor-default: url("img/cursors/cursor-rock.png") 13 10, default;
  --cursor-pointer: url("img/cursors/cursor-gem.png") 11 10, pointer;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  cursor: inherit;
}

html {
  min-height: 100%;
  background-color: var(--paper);
  cursor: var(--cursor-default);
  overflow-y: auto;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: transparent;
  cursor: var(--cursor-default);
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  overflow-wrap: break-word;
  word-break: keep-all;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: -1px;
  background: var(--paper) url("img/back_02.jpg") center center / cover no-repeat;
  content: "";
  pointer-events: none;
}

button {
  color: inherit;
  font: inherit;
}

.tab,
.about-link,
.about-panel {
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
}

.about-panel,
.about-panel * {
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: var(--header-h);
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  padding: 22px 32px 14px;
  pointer-events: none;
}

.about-link,
.tab {
  border: 0;
  background: transparent;
  cursor: var(--cursor-pointer);
  pointer-events: auto;
}

.category-tabs {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: clamp(6px, 0.8vw, 12px);
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  height: var(--nav-control-h);
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: var(--panel);
  overflow-x: auto;
  pointer-events: auto;
  scrollbar-width: none;
  transform: translateY(3px);
  white-space: nowrap;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: inline-flex;
  width: auto;
  min-width: max-content;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #843426;
  font-synthesis: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
}

.about-link {
  background: var(--panel);
  color: #843426;
  font-synthesis: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
}

.tab::after {
  content: none;
}

.tab-all {
  min-width: max-content;
}

.tab-word {
  width: max-content;
}

.tab.is-active {
  background: #843426;
  color: var(--panel);
  font-weight: 500;
}

.tab:hover,
.tab:focus-visible,
.about-link:hover,
.about-link:focus-visible {
  background: #843426;
  color: var(--panel);
}

.about-link {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  height: var(--nav-control-h);
  align-items: center;
  padding: 0 12px;
  transform: translateY(-3px);
}

.portfolio-shell {
  width: 100%;
  min-height: 100vh;
  padding: calc(var(--header-h) + 18px) 32px 64px;
}

.project-grid {
  column-count: 4;
  column-gap: clamp(72px, 8.4vw, 158px);
  min-height: calc(100vh - var(--header-h));
  padding: 0 clamp(72px, 7vw, 128px) calc(24vh + 112px);
}

.project-grid.is-list {
  column-count: initial;
  column-gap: normal;
  min-height: 0;
  padding: 0 clamp(28px, 5vw, 82px) 12vh;
}

.project-list {
  width: 100%;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 28px) clamp(16px, 2.4vw, 34px);
  border-top: 1px solid rgba(33, 28, 11, 0.18);
  border-radius: 4px;
  background: rgba(251, 251, 250, 0.86);
  box-shadow: 0 12px 28px rgba(33, 28, 11, 0.06);
  backdrop-filter: blur(2px);
  color: rgba(33, 28, 11, 0.72);
  font-family: "Work Sans", "Noto Sans KR", sans-serif;
  font-size: clamp(12px, 0.94vw, 16px);
  font-weight: 500;
  line-height: 1.28;
}

.project-list-scrollbar {
  display: none;
}

.project-list-viewport {
  width: 100%;
}

.project-list-row {
  display: grid;
  grid-template-columns: minmax(220px, 2.6fr) minmax(72px, 0.58fr) minmax(160px, 1.28fr) minmax(112px, 0.78fr);
  gap: clamp(16px, 2.4vw, 48px);
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(33, 28, 11, 0.12);
}

.project-list-header {
  min-height: 34px;
  color: rgba(33, 28, 11, 0.44);
  font-size: 0.72em;
}

.project-list-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-list-cell:first-child {
  overflow-wrap: normal;
  white-space: nowrap;
}

.project-list-cell:not(:first-child) {
  font-weight: 400;
}

.project-list-note-row {
  min-height: 0;
  padding: 12px 0 0;
  border-bottom: 0;
}

.project-list-note-cell {
  grid-column: 1 / -1;
  color: rgba(33, 28, 11, 0.52);
  font-size: 0.85em;
  font-weight: 300;
  text-align: left;
  white-space: normal;
}

.project-list-sort {
  display: inline-flex;
  gap: 0.36em;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: var(--cursor-pointer);
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.project-list-sort::after {
  width: 0.42em;
  height: 0.42em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  opacity: 0.72;
  transform: translateY(-0.08em) rotate(45deg);
  transform-origin: center;
}

.project-list-sort[data-sort-direction="asc"]::after {
  transform: translateY(0.08em) rotate(225deg);
}

.project-list-sort:hover,
.project-list-sort:focus-visible,
.project-list-sort.is-active {
  color: #211c0b;
}

.project-list-cell a {
  color: inherit;
  text-decoration: none;
}

.project-list-cell a:hover,
.project-list-cell a:focus-visible {
  color: #211c0b;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.project-card {
  position: relative;
  display: block;
  width: min(100%, 248px);
  margin: -24px auto calc(clamp(48px, 7vh, 88px) + var(--stagger-gap-extra, 0px));
  padding: 52px 0;
  border: 0;
  background: transparent;
  cursor: var(--cursor-pointer);
  break-inside: avoid;
  opacity: 1;
  transform: translateX(var(--stagger-x, 0)) rotate(var(--tilt)) scale(var(--card-scale, 1));
  transform-origin: center 86%;
  backface-visibility: hidden;
  overflow: visible;
  will-change: transform;
}

.project-grid:not(.is-ready) .project-card {
  opacity: 0;
}

.project-grid.is-ready .project-card {
  animation: card-settle 1480ms cubic-bezier(0.16, 0.76, 0.22, 1) both;
  animation-delay: var(--entry-delay, 0ms);
}

.project-card:hover,
.project-card:focus-visible {
  z-index: 2;
}

.project-card-motion {
  position: relative;
  z-index: 0;
  display: block;
  aspect-ratio: var(--front-ratio, 1 / 1.25);
  transform: translateY(var(--parallax-y, 0px));
  transform-origin: center 86%;
  will-change: transform;
}

.project-card-motion::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  box-shadow: var(--shadow);
  content: "";
  pointer-events: none;
  transition: box-shadow 220ms ease;
}

.project-card.is-loaded:hover .project-card-motion,
.project-card.is-loaded:focus-visible .project-card-motion {
  animation-duration: var(--wiggle-duration, 880ms);
  animation-delay: 0ms;
  animation-fill-mode: none;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.project-card.is-loaded.is-wiggle-1:hover .project-card-motion,
.project-card.is-loaded.is-wiggle-1:focus-visible .project-card-motion {
  animation-name: card-bum-wiggle;
}

.project-card.is-loaded.is-wiggle-2:hover .project-card-motion,
.project-card.is-loaded.is-wiggle-2:focus-visible .project-card-motion {
  animation-name: card-shy-hop;
}

.project-card.is-loaded.is-wiggle-3:hover .project-card-motion,
.project-card.is-loaded.is-wiggle-3:focus-visible .project-card-motion {
  animation-name: card-peek-sway;
}

.project-card img,
.detail-front img,
.back-media-list img,
.back-media-list video {
  display: block;
  width: 100%;
  height: auto;
}

.project-card img {
  aspect-ratio: inherit;
  opacity: 0;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transform: translateZ(0);
  transition: opacity 420ms ease, filter 220ms ease;
  backface-visibility: hidden;
  will-change: filter;
}

.project-card.is-loaded img {
  opacity: 1;
}

.project-card.is-loaded:hover img {
  filter: saturate(1.1) brightness(1.035);
}

.project-card.is-loaded:hover .project-card-motion::before,
.project-card.is-loaded:focus-visible .project-card-motion::before {
  box-shadow: 44px 82px 58px rgba(7, 17, 4, 0.52), 24px 46px 30px rgba(7, 17, 4, 0.38), 5px 10px 7px rgba(7, 17, 4, 0.26);
}

.detail-view {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 20px) 24px 104px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1680ms ease;
}

.detail-view.is-open {
  opacity: 1;
  pointer-events: auto;
}

.detail-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(252, 252, 250, 0.84);
  backdrop-filter: blur(2px);
  cursor: var(--cursor-default);
}

.detail-card {
  position: relative;
  width: fit-content;
  max-width: min(72vw, 620px);
  max-height: min(74vh, 780px);
  perspective: 1600px;
  opacity: 0;
  transform: translateY(34px) scale(0.82) rotate(-5deg);
  transform-origin: 50% 72%;
}

.detail-view.is-open .detail-card {
  animation: place-card 1180ms cubic-bezier(0.18, 0.88, 0.22, 1) forwards;
}

.detail-inner {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 2560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: #fffef9;
  backface-visibility: hidden;
  box-shadow: 0 22px 42px rgba(33, 28, 11, 0.2);
}

.detail-front {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.detail-front img {
  width: auto;
  max-width: min(72vw, 620px);
  max-height: min(74vh, 780px);
  object-fit: contain;
  margin: 0 auto;
}

.detail-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotateY(180deg);
}

.back-scroll {
  --back-pad: clamp(15px, 2vw, 25px);
  height: 100%;
  width: 100%;
  overflow: auto;
  padding: var(--back-pad);
  background: #fffef9;
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  font-weight: 400;
  scrollbar-width: none;
}

.back-scroll::-webkit-scrollbar {
  display: none;
}

.back-scrollbar {
  position: absolute;
  top: 0;
  right: -24px;
  width: 20px;
  height: 100%;
  background: #fffef9;
}

.back-scrollbar[hidden] {
  display: none;
}

.back-scrollbar::before,
.back-scrollbar::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 19px;
  background: #fffef9;
  content: "";
}

.back-scrollbar::before {
  top: 0;
}

.back-scrollbar::after {
  bottom: 0;
}

.back-scrollbar-thumb {
  position: absolute;
  top: 20px;
  right: 3px;
  left: 3px;
  min-height: 72px;
  background: var(--scrollbar-color, #111);
  border-radius: 0;
}

.back-scroll h2 {
  margin: 0 0 22px;
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  font-size: clamp(15.3px, 2.16vw, 26.1px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: pre-line;
}

.detail-title-line {
  display: block;
}

.detail-title-line-subtitle {
  font-size: 0.7em;
  font-weight: 300;
}

.detail-title-line-fit {
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
}

.back-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin: 0 0 24px;
}

.back-tags[hidden] {
  display: none;
}

.back-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  padding: 4px 10px 3px;
  background: #000;
  color: #fffef9;
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  font-size: clamp(9px, 0.84vw, 11px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.back-tag-year {
  background: transparent;
  color: #000;
}

.back-scroll p {
  margin: 0 0 24px;
  color: #4e4835;
  font-size: clamp(12px, 1.19vw, 15px);
  font-weight: 400;
  line-height: 1.58;
}

.back-scroll [data-detail-copy] {
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  font-weight: 400;
  white-space: pre-line;
}

.back-scroll [data-detail-copy] a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.back-scroll h2 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.back-media-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.back-media-list[hidden] {
  display: none;
}

.back-media-list img,
.back-media-list video {
  box-shadow: 0 10px 20px rgba(33, 28, 11, 0.11);
  background: #fff;
}

.back-media-video-frame {
  display: grid;
  gap: 8px;
  width: 100%;
}

.back-media-video-frame-small {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
}

.back-media-list .back-media-video-small {
  justify-self: center;
  width: auto !important;
  max-width: 100%;
  height: var(--detail-card-media-height, min(34vh, 320px)) !important;
  max-height: min(68vh, 680px) !important;
  object-fit: contain;
}

.back-media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}

.back-media-video-paired {
  width: 100%;
}

.video-sound-toggle {
  justify-self: center;
  min-height: 30px;
  border: 1px solid rgba(33, 28, 11, 0.26);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(251, 251, 250, 0.92);
  color: var(--ink);
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  cursor: var(--cursor-pointer);
}

.video-sound-toggle:hover,
.video-sound-toggle:focus-visible {
  background: rgba(251, 251, 250, 0.95);
}

.detail-actions {
  position: fixed;
  z-index: 55;
  bottom: 24px;
  left: 50%;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 1680ms ease 820ms, transform 1680ms ease 820ms;
}

.detail-view.is-open .detail-actions {
  opacity: 1;
  transform: translateX(-50%);
}

@keyframes place-card {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.56) rotate(-10deg);
  }

  48% {
    opacity: 1;
    transform: translateY(-18px) scale(1.03) rotate(2deg);
  }

  76% {
    opacity: 1;
    transform: translateY(7px) scale(0.992) rotate(-0.7deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes card-settle {
  0% {
    opacity: 0;
    transform: translateX(var(--stagger-x, 0)) translateY(34px) rotate(calc(var(--tilt) * 0.22)) scale(calc(var(--card-scale, 1) * 0.94));
  }

  34% {
    opacity: 0.72;
  }

  68% {
    opacity: 1;
    transform: translateX(var(--stagger-x, 0)) translateY(-4px) rotate(calc(var(--tilt) * 1.04)) scale(calc(var(--card-scale, 1) * 1.006));
  }

  100% {
    opacity: 1;
    transform: translateX(var(--stagger-x, 0)) translateY(0) rotate(var(--tilt)) scale(var(--card-scale, 1));
  }
}

@keyframes card-bum-wiggle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) skewX(0deg);
  }
  18% {
    transform: translateY(-3px) rotate(-1.3deg) skewX(-0.8deg);
  }
  36% {
    transform: translateY(1px) rotate(1.4deg) skewX(0.9deg);
  }
  54% {
    transform: translateY(-2px) rotate(-1deg) skewX(-0.5deg);
  }
  72% {
    transform: translateY(0) rotate(0.7deg) skewX(0.4deg);
  }
}

@keyframes card-shy-hop {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scaleX(1) scaleY(1);
  }
  20% {
    transform: translateY(-5px) rotate(0.9deg) scaleX(0.995) scaleY(1.014);
  }
  38% {
    transform: translateY(1px) rotate(-1.1deg) scaleX(1.01) scaleY(0.992);
  }
  58% {
    transform: translateY(-2px) rotate(0.6deg) scaleX(0.998) scaleY(1.007);
  }
  78% {
    transform: translateY(0) rotate(-0.4deg);
  }
}

@keyframes card-peek-sway {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  16% {
    transform: translateX(-2px) translateY(-2px) rotate(-0.6deg);
  }
  32% {
    transform: translateX(2px) translateY(-4px) rotate(1.6deg);
  }
  48% {
    transform: translateX(-1px) translateY(-1px) rotate(-1.2deg);
  }
  66% {
    transform: translateX(1px) translateY(-2px) rotate(0.8deg);
  }
  84% {
    transform: translateX(0) translateY(1px) rotate(-0.5deg);
  }
}

.action-btn {
  display: inline-flex;
  width: 41px;
  height: 41px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(33, 28, 11, 0.06);
  cursor: var(--cursor-pointer);
  padding: 7px;
}

.action-btn img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.about-panel {
  --about-text-size: clamp(14px, 0.95vw, 16px);
  --about-line-height: 1.85;
  --about-scrollbar-color: #843426;
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: clamp(620px, 46vw, 820px);
  max-width: 94vw;
  height: 100vh;
  padding: 40px clamp(34px, 3.2vw, 54px) 60px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--panel);
  box-shadow: -20px 0 38px rgba(33, 28, 11, 0.22);
  font-weight: 400;
  scrollbar-color: var(--about-scrollbar-color) var(--panel);
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  transform: translateX(105%);
  transition: transform 320ms ease;
}

.about-panel::-webkit-scrollbar {
  width: 20px;
}

.about-panel::-webkit-scrollbar-track {
  background: var(--panel);
}

.about-panel::-webkit-scrollbar-thumb {
  border: 6px solid var(--panel);
  border-radius: 0;
  background: var(--about-scrollbar-color);
}

.about-panel.is-open {
  transform: translateX(0);
}

.about-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 36px;
  margin: 0 64px 44px 0;
}

.about-panel p,
.about-body {
  margin: 0 0 28px;
  font-size: var(--about-text-size);
  line-height: var(--about-line-height);
}

.about-body {
  white-space: pre-wrap;
}

.about-body {
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  font-weight: 400;
}

.about-inline-link {
  display: inline-flex;
  box-sizing: border-box;
  height: 1.55em;
  align-items: center;
  padding: 0 0.55em;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.about-linked-phrase {
  white-space: nowrap;
}

.about-inline-button {
  appearance: none;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: var(--cursor-pointer);
}

.about-language-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.about-language-button {
  min-width: 52px;
  height: 29px;
  border: 1px solid rgba(33, 28, 11, 0.18);
  border-radius: 999px;
  background: #843426;
  color: #fff4b8;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  cursor: var(--cursor-pointer);
}

.about-language-button:hover {
  background: #9a4433;
}

.about-language-button.is-active {
  background: transparent;
  color: #843426;
}

.about-panel .about-name {
  margin-bottom: 18px;
  font-weight: 400;
}

.about-meta {
  font-size: var(--about-text-size);
  line-height: var(--about-line-height);
  margin: 56px 0 42px;
}

.about-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(33, 28, 11, 0.62);
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

.about-contact-row + .about-contact-row {
  margin-top: 6px;
}

.about-contact-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.about-contact-icon * {
  vector-effect: non-scaling-stroke;
}

.about-contact-icon-youtube,
.about-contact-icon-instagram,
.about-contact-row:not(a) .about-contact-icon {
  transform: scale(1.16);
  transform-origin: center;
}

.about-list-title,
.about-panel li {
  color: rgba(33, 28, 11, 0.62);
  font-size: inherit;
  line-height: inherit;
}

.about-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-close {
  position: absolute;
  top: 40px;
  right: 42px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: var(--cursor-pointer);
}

.about-close::before,
.about-close::after {
  position: absolute;
  top: 17px;
  left: 3px;
  width: 30px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.about-close::before {
  transform: rotate(45deg);
}

.about-close::after {
  transform: rotate(-45deg);
}

.about-dim {
  position: fixed;
  z-index: 70;
  inset: 0;
  border: 0;
  background: rgba(33, 28, 11, 0.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

body.about-open .about-dim {
  opacity: 1;
  pointer-events: auto;
}

.flourish-popup {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.flourish-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.flourish-popup-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(33, 28, 11, 0.32);
  backdrop-filter: blur(7px);
}

.flourish-card {
  --flourish-navy: #011936;
  position: relative;
  width: min(680px, 92vw);
  max-height: min(78vh, 760px);
  overflow: auto;
  padding: clamp(16px, 2.5vw, 27px);
  padding-bottom: clamp(48px, 7.5vw, 81px);
  border: 1px solid rgba(33, 28, 11, 0.2);
  border-radius: 0;
  background-color: #fbfbfa;
  background-image: url("img/back_01.jpg");
  background-position: center;
  background-repeat: repeat;
  background-size: 320px auto;
  box-shadow: 18px 28px 48px rgba(33, 28, 11, 0.22);
  color: var(--ink);
  scrollbar-width: thin;
}

.flourish-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: var(--cursor-pointer);
}

.flourish-close::before,
.flourish-close::after {
  position: absolute;
  top: 14px;
  left: 4px;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  content: "";
}

.flourish-close::before {
  transform: rotate(45deg);
}

.flourish-close::after {
  transform: rotate(-45deg);
}

.flourish-card-body {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.72;
}

.flourish-card-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.flourish-card-logo {
  display: block;
  width: min(78px, 21vw);
  height: auto;
  margin: 0 0 clamp(12px, 2vw, 18px);
}

.flourish-intro-box {
  margin: 0 0 clamp(38px, 5.2vw, 58px);
  padding: clamp(10px, 1.5vw, 15px);
  background: var(--flourish-navy);
  color: #fff;
  line-height: 1.72;
}

.flourish-intro-box .flourish-card-text {
  margin-bottom: 1em;
}

.flourish-intro-box .flourish-card-text:last-child {
  margin-bottom: 0;
}

.flourish-section {
  margin: 0;
}

.flourish-section + .flourish-section {
  margin-top: clamp(38px, 5.2vw, 58px);
}

.flourish-section-title {
  display: inline-flex;
  align-items: center;
  min-height: 2.2em;
  margin: 0 0 1.25em;
  padding: 0.22em 0.7em;
  border: 1px solid var(--flourish-navy);
  border-radius: 0;
  color: var(--flourish-navy);
  font-size: 1em;
  font-weight: 500;
  line-height: 1.3;
}

.flourish-card-text {
  margin: 0 0 0.58em;
}

.flourish-card-bullet {
  display: flex;
  gap: 0.72em;
  align-items: flex-start;
  margin: 0 0 0.31em;
}

.flourish-card-bullet::before {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 1.05em;
  align-items: center;
  justify-content: center;
  margin-top: 0.35em;
  border: 1px solid var(--flourish-navy);
  color: var(--flourish-navy);
  content: "✓";
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1;
}

.flourish-card-bullet + .flourish-card-text {
  margin-top: 0.6em;
}

.flourish-signup-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7em;
  margin-top: 1.6em;
  margin-left: auto;
  padding: 0.28em 1.35em;
  border: 1px solid var(--flourish-navy);
  border-radius: 0;
  background: var(--flourish-navy);
  color: #fff;
  line-height: 1.35;
  text-decoration: none;
  cursor: var(--cursor-pointer);
}

.about-motion-layer {
  position: fixed;
  z-index: 75;
  inset: 0;
  overflow: hidden;
  contain: paint;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  transform: translateZ(0);
}

body.about-open .about-motion-layer {
  opacity: 1;
}

.about-ball {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: clamp(27px, 2.56vw, 45px);
  height: clamp(27px, 2.56vw, 45px);
  backface-visibility: hidden;
  opacity: 0.88;
  will-change: transform;
}

.about-time-button {
  position: fixed;
  z-index: 90;
  top: 36px;
  left: 34px;
  display: inline-flex;
  min-width: 64px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(33, 28, 11, 0.22);
  border-radius: 22px;
  background: var(--panel);
  backface-visibility: hidden;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(33, 28, 11, 0.12);
  font-family: "Work Sans", "Noto Sans CJK KR", "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  cursor: var(--cursor-pointer);
  transition: opacity 220ms ease, transform 220ms ease;
  transform: translate3d(0, -8px, 0);
  will-change: opacity, transform;
}

.about-time-button::after {
  position: absolute;
  bottom: -6px;
  left: 19px;
  z-index: -1;
  width: 12px;
  height: 12px;
  background: var(--panel);
  border-right: 1px solid rgba(33, 28, 11, 0.22);
  border-bottom: 1px solid rgba(33, 28, 11, 0.22);
  content: "";
  transform: rotate(45deg);
}

body.about-open .about-time-button {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

body.detail-open,
body.about-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  :root {
    --header-h: 150px;
  }

  .portfolio-shell {
    padding-top: calc(var(--header-h) + 16px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-content: start;
    row-gap: 6px;
    padding: 18px;
  }

  .category-tabs {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    gap: clamp(6px, 1.8vw, 10px);
    height: var(--nav-control-h);
    padding: 0 8px;
    max-width: calc(100vw - 36px);
  }

  .about-link {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    font-size: 18px;
  }

  .tab {
    height: 36px;
    font-size: 18px;
  }

  .project-grid {
    column-count: 2;
    column-gap: 38px;
    padding: 0 14px calc(18vh + 112px);
  }

  .project-grid.is-list {
    padding: 0 0 96px;
    overflow: visible;
  }

  .project-list-viewport {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .project-list-viewport::-webkit-scrollbar {
    display: none;
  }

  .project-list-scrollbar {
    --project-list-scrollbar-color: #b7ad21;
    position: sticky;
    left: 0;
    z-index: 4;
    display: block;
    width: 100%;
    height: 20px;
    flex: 0 0 auto;
    margin: 0 0 14px;
    background: rgba(35, 21, 13, 0.5);
  }

  .project-list-scrollbar[data-list-category="3"] {
    --project-list-scrollbar-color: #c8ba1f;
  }

  .project-list-scrollbar[data-list-category="4"] {
    --project-list-scrollbar-color: #98a460;
  }

  .project-list-scrollbar[data-list-category="5"] {
    --project-list-scrollbar-color: #6f8a5d;
  }

  .project-list-scrollbar[hidden] {
    display: none;
  }

  .project-list-scrollbar::before,
  .project-list-scrollbar::after {
    position: absolute;
    top: 0;
    width: 19px;
    height: 18px;
    background: rgba(35, 21, 13, 0.5);
    content: "";
  }

  .project-list-scrollbar::before {
    left: 0;
  }

  .project-list-scrollbar::after {
    right: 0;
  }

  .project-list-scrollbar-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 20px;
    min-width: 72px;
    background: var(--project-list-scrollbar-color);
    border-radius: 0;
  }

  .project-list {
    min-width: 800px;
    border-radius: 0;
    font-size: 12px;
  }

  .project-list-row {
    grid-template-columns: 300px 72px 190px 130px;
    min-height: 38px;
    padding: 7px 0;
    gap: 24px;
  }

  .project-card {
    width: min(100%, 202px);
    margin-bottom: calc(clamp(44px, 7vh, 78px) + var(--stagger-gap-extra, 0px) * 0.5);
  }

  .detail-view {
    grid-template-rows: minmax(0, auto) auto;
    align-content: center;
    justify-items: center;
    row-gap: 16px;
    padding: 24px 20px max(20px, env(safe-area-inset-bottom));
  }

  .detail-card {
    max-width: min(86vw, 460px);
    max-height: calc(100dvh - 105px);
  }

  .detail-front img {
    max-width: min(86vw, 460px);
    max-height: calc(100dvh - 105px);
  }

  .detail-actions {
    position: relative;
    z-index: 55;
    bottom: auto;
    left: auto;
    grid-row: 2;
    transform: translateY(14px);
  }

  .detail-view.is-open .detail-actions {
    transform: translateY(0);
  }

  .about-panel {
    --about-text-size: 14px;
    width: min(92vw, 640px);
    padding: 34px 30px 48px;
  }

  .about-panel-header {
    margin-right: 56px;
    margin-bottom: 36px;
  }

  .about-language-buttons {
    gap: 6px;
  }

  .about-language-button {
    min-width: 48px;
    height: 29px;
    font-size: 12px;
  }

  .about-close {
    top: 34px;
    right: 30px;
  }

  .about-time-button {
    top: 28px;
    left: 28px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 178px;
  }

  .site-header {
    row-gap: 18px;
  }

  .portfolio-shell {
    padding-top: calc(var(--header-h) + 8px);
    padding-right: 18px;
    padding-left: 18px;
  }

  .category-tabs {
    width: 100%;
    gap: clamp(6px, 2vw, 10px);
    justify-content: space-between;
    height: var(--nav-control-h);
    padding: 0 6px;
  }

  .project-grid {
    column-count: 2;
    column-gap: 28px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .project-grid.is-list {
    padding-right: 0;
    padding-left: 0;
  }

  .project-card {
    margin-bottom: calc(clamp(34px, 6vh, 56px) + var(--stagger-gap-extra, 0px) * 0.42);
  }

  .project-list-cell:first-child {
    overflow-wrap: anywhere;
    line-height: 1.62;
    white-space: pre-line;
  }

  .tab {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    height: 32px;
    padding: 0 7px;
    font-size: clamp(12px, 3.5vw, 15px);
  }

  .tab-all {
    min-width: 0;
  }

  .tab-word {
    width: auto;
    font-size: clamp(12px, 3.5vw, 15px);
  }

  .about-link {
    width: 34px;
    height: 74px;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: clamp(12px, 3.5vw, 15px);
    transform: translateY(0);
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .about-panel {
    --about-text-size: 13.5px;
    width: min(94vw, 520px);
    padding: 30px 24px 44px;
  }

  .about-panel-header {
    margin-right: 50px;
    margin-bottom: 34px;
  }

  .about-language-buttons {
    justify-content: flex-start;
  }

  .about-close {
    top: 30px;
    right: 24px;
  }

  .about-time-button {
    top: 24px;
    left: 20px;
    min-width: 58px;
    min-height: 34px;
    font-size: 13px;
  }
}
