:root {
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --bg-dark: #222222;
  --text-main: #161618;
  --text-muted: #71717a;
  --text-light: #a1a1aa;
  --border-light: #e5e5e7;
  --pill-dark: #18181b;
  --green-dot: #22c55e;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background: #bfc0c2;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

body {
  position: relative;
  isolation: isolate;
}

/* Soft cloudy studio backdrop visible around the hero panel. */
body::before {
  content: "";
  position: fixed;
  inset: -14%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 21%, rgba(255, 255, 255, 0.28) 0 11%, transparent 30%),
    radial-gradient(ellipse at 83% 18%, rgba(255, 255, 255, 0.22) 0 12%, transparent 32%),
    radial-gradient(ellipse at 74% 78%, rgba(255, 255, 255, 0.18) 0 13%, transparent 34%),
    radial-gradient(ellipse at 27% 83%, rgba(139, 140, 143, 0.22) 0 15%, transparent 36%),
    linear-gradient(145deg, #c6c7c9 0%, #aeb0b3 48%, #c4c5c7 100%);
}

/* Main Scroll Container ??full viewport */
.scroll-view {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  position: fixed;
  top: 0;
  left: 0;
  padding: 0;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.scroll-view::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* ==================== LIQUID GLASS UI ==================== */
/* Shared glass base */
.glass {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

/* Reusable Pills & Buttons */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: #27272a;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-dot);
  box-shadow: 0 0 0 2.5px rgba(34, 197, 94, 0.25);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: min(100%, 220px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #080808;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  box-shadow:
    0 5px 22px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn-dark:hover {
  background: #181818;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-dark:active {
  transform: translateY(0);
}

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  max-width: min(100%, 220px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.36)
  );
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.btn-light:active {
  transform: translateY(0);
}

/* ==================== SVG LIQUID GLASS SURFACES ====================
   The SVG displacement filter adds the subtle refraction from the reference
   implementation. CSS gradients, highlights, and blur remain as a fallback
   where SVG filters in backdrop-filter are unavailable. */
.liquid-glass-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.status-pill,
.btn-dark,
.btn-light,
.social-pill,
.tag-pill,
.filter-tab,
.page-dot,
.work-card,
.thumb-badge,
.social-icon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: url(#liquid-glass-filter) blur(16px) saturate(1.5);
  -webkit-backdrop-filter: url(#liquid-glass-filter) blur(16px) saturate(1.5);
}

.status-pill::before,
.btn-dark::before,
.btn-light::before,
.social-pill::before,
.tag-pill::before,
.filter-tab::before,
.work-card::before,
.thumb-badge::before,
.social-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 38%),
    radial-gradient(circle at 78% 115%, rgba(255, 255, 255, 0.22), transparent 48%);
  opacity: 0.78;
}

.btn-dark::before {
  opacity: 0.2;
}

.btn-dark::after,
.btn-light::after,
.social-pill::after,
.status-pill::after,
.filter-tab::after,
.work-card::after,
.thumb-badge::after,
.social-icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
  mask-image: linear-gradient(145deg, #000 0 34%, transparent 62%);
  -webkit-mask-image: linear-gradient(145deg, #000 0 34%, transparent 62%);
}

.status-pill > *,
.btn-dark > *,
.btn-light > *,
.social-pill > *,
.tag-pill > *,
.filter-tab > *,
.work-card > *,
.thumb-badge > *,
.social-icon > * {
  position: relative;
  z-index: 1;
}

.social-pill:hover,
.btn-dark:hover,
.btn-light:hover,
.filter-tab:hover,
.work-card:hover {
  backdrop-filter: url(#liquid-glass-filter) blur(20px) saturate(1.65);
  -webkit-backdrop-filter: url(#liquid-glass-filter) blur(20px) saturate(1.65);
}

/* ==================== 1. HERO SECTION ==================== */
.hero-section {
  --hero-gutter: clamp(24px, 3vw, 48px);
  --hero-portrait-gap: 32px;
  position: relative;
  width: 100%;
  max-width: 1366px;
  height: 100vh;
  min-height: 560px;
  margin: 0 auto;
  padding: 0 var(--hero-gutter);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* Navbar ??fixed height row */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  gap: 12px;
  opacity: 0;
  transform: translateY(-12px);
  animation: fadeDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: #27272a;
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #000;
}
.nav-links a span {
  color: #a1a1aa;
  font-weight: 400;
  font-size: 11px;
  margin-left: 2px;
}

/* Giant Headline */
.hero-title-wrap {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  padding-top: clamp(45px, 10vh, 110px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-title {
  font-size: clamp(42px, 10.5vw, 143.43px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hero-title .outlined {
  color: #fff;
  -webkit-text-stroke: 7px #1a1a1d;
  paint-order: stroke fill;
  font-weight: 800;
}
.hero-title .solid {
  color: #18181b;
  font-weight: 800;
}

/* Bottom area: left info + portrait */
.hero-bottom {
  position: relative;
  flex: 1;
  width: calc(100% + var(--hero-gutter) * 2);
  margin-top: var(--hero-portrait-gap);
  margin-left: calc(var(--hero-gutter) * -1);
  pointer-events: none;
  z-index: 6;
  min-height: 0;
}

.hero-left {
  position: absolute;
  left: 5.5%;
  bottom: 14.5%;
  width: 260px;
  pointer-events: auto;
  z-index: 7;
  padding-bottom: 4px;
  padding-left: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.hero-left h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-left p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 260px;
  margin-bottom: 20px;
}

/* Anchor the portrait to the title's next row, keeping their gap constant. */
.portrait-stage {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(58vw, 792.28px);
  height: 100%;
  pointer-events: auto;
  z-index: 5;
  cursor: none;
  opacity: 0;
  animation: portraitEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.portrait-image {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: contain;
  object-position: center top;
  user-select: none;
}

.portrait-gray {
  filter: grayscale(100%) contrast(1.04);
}

.portrait-color {
  clip-path: circle(0px at 50% 50%);
  will-change: clip-path;
}

.portrait-pointer {
  position: absolute;
  top: 37%;
  left: calc(50% + min(29vw, 396.14px, 24vh) - 115px);
  width: clamp(25px, 2.6vw, 36px);
  height: auto;
  z-index: 9;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
  transform: rotate(-10deg);
  animation: portraitPointerMove 2.4s ease-in-out infinite;
  transition: opacity 0.2s ease;
}

.portrait-stage.portrait-interacted .portrait-pointer {
  opacity: 0;
}

@keyframes portraitPointerMove {
  0%, 100% { transform: translateX(0) rotate(-10deg); }
  50% { transform: translateX(55px) rotate(-10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-pointer { animation: none; }
}

.spotlight-cursor {
  left: 50%;
  top: 50%;
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

/* Right Social Stack */
.hero-right {
  position: absolute;
  right: 5.3%;
  bottom: 3%;
  pointer-events: auto;
  z-index: 7;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.4vh, 19px);
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  text-decoration: none;
  color: #27272a;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.social-pill:hover {
  background: rgba(255, 255, 255, 0.68);
  transform: translateX(-3px);
}
.social-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #18181b;
  flex-shrink: 0;
}

/* ==================== 2. SELECTED WORK SECTION ==================== */
.work-section {
  position: relative;
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  padding: clamp(44px, 6vh, 72px) clamp(28px, 5vw, 80px);
  background: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-watermark-center {
  position: relative;
  text-align: center;
  margin-bottom: 26px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watermark-text {
  position: absolute;
  font-size: clamp(64px, 9.5vw, 114px);
  font-weight: 800;
  color: rgba(0, 0, 0, 0.035);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.portfolio-heading {
  color: #111113;
}

.section-title {
  position: relative;
  z-index: 2;
  font-size: 27px;
  font-weight: 500;
  color: #111113;
  letter-spacing: -0.01em;
  margin-top: 16px;
}

.work-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: #8e8e93;
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 999px;
  position: relative;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.filter-tab.active {
  color: #18181b;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* 2x2 Project Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.work-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 12px 12px 16px;
  overflow: visible;
  backdrop-filter: blur(8px) saturate(1.5);
  -webkit-backdrop-filter: blur(8px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.025);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  backdrop-filter: blur(8px) saturate(1.5);
  -webkit-backdrop-filter: blur(8px) saturate(1.5);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

.work-card-interactive {
  position: relative;
}

.work-card > .work-card-trigger {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.work-card-trigger:focus-visible {
  outline: 3px solid #16834a;
  outline-offset: 3px;
}

.deck-dialog {
  position: fixed;
  inset: 0;
  width: min(1400px, calc(100% - 24px));
  height: min(1000px, calc(100% - 24px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f1f1f1;
  overflow: hidden;
}
.deck-dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.deck-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}
.deck-header h2 { font-size: 15px; }
.deck-actions { display: flex; align-items: center; gap: 8px; }
.deck-actions button, .deck-navigation button {
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  background: #18181b;
  color: #fff;
  cursor: pointer;
}
#deck-close { font-size: 24px; line-height: 1; padding: 4px 10px; }
#urine-close { font-size: 24px; line-height: 1; padding: 4px 10px; }
#hosting-close { font-size: 24px; line-height: 1; padding: 4px 10px; }
.hosting-frame { display: block; width: 100%; height: calc(100% - 56px); border: 0; background: #fff; }
.coupang-dialog { width: min(620px, calc(100% - 24px)); height: min(900px, calc(100% - 24px)); background: #f2f4f6; }
.coupang-frame { background: #f2f4f6; }
#coupang-close { font-size: 24px; line-height: 1; padding: 4px 10px; }
@media (max-width: 600px) {
  .coupang-dialog { width: calc(100% - 16px); height: calc(100% - 16px); }
}
.document-toolbar { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: #fff; border-top: 1px solid #e5e5e7; }
.document-tabs { display: flex; gap: 4px; }
.document-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; background: transparent; color: #62626a; cursor: pointer; font: inherit; font-size: 14px; }
.document-tabs button[aria-selected="true"] { color: #18181b; border-bottom-color: #18181b; font-weight: 700; }
.document-toolbar a { font-size: 12px; color: #52525b; white-space: nowrap; }
.document-panel { height: calc(100% - 104px); }
.document-panel iframe { display: block; width: 100%; height: 100%; border: 0; }
.deck-content {
  height: calc(100% - 56px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
}
.deck-slide { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 auto 16px; background: #fff; }
.deck-slide img { display: block; width: 100%; height: 100%; }
.deck-slide video { position: absolute; object-fit: contain; background: #000; }
.deck-video-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.deck-video-play[hidden] { display: none; }
.deck-navigation { height: 56px; display: flex; align-items: center; justify-content: center; gap: 20px; background: #fff; }
.deck-navigation[hidden] { display: none; }
.deck-dialog.is-slideshow .deck-content { height: calc(100% - 112px); display: flex; align-items: center; }
.deck-dialog.is-slideshow .deck-slide { display: none; max-width: min(100%, calc((100vh - 160px) * 16 / 9)); margin: auto; }
.deck-dialog.is-slideshow .deck-slide.is-current { display: block; }
@media (max-width: 600px) {
  .deck-dialog { width: calc(100% - 16px); height: calc(100% - 16px); }
  .deck-content { padding: 8px; }
  .deck-header h2 { font-size: 13px; }
}

.work-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  overflow: hidden;
  background: #141416;
  margin-bottom: 13px;
}

.work-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(6px);
  color: #18181b;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.work-card h3 {
  font-size: 14.5px;
  font-weight: 500;
  color: #18181b;
  line-height: 1.38;
  margin-bottom: 12px;
  padding: 0 4px;
  max-width: 90%;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px;
}

.tag-pill {
  font-size: 10.5px;
  color: #52525b;
  background: #fafafa;
  border: 1px solid #eaeaea;
  padding: 4px 11px;
  border-radius: 999px;
}

/* ==================== 3. CTA FOOTER SECTION ==================== */
.cta-section {
  position: relative;
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) clamp(28px, 5vw, 80px);
  text-align: center;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.9),
      rgba(244, 244, 246, 0.4) 60%
    ),
    linear-gradient(180deg, #f3f4f6 0%, #fafafa 45%, #f0f1f4 100%);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 80%,
      rgba(225, 227, 232, 0.55) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 25%,
      rgba(230, 232, 236, 0.6) 0%,
      transparent 45%
    );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 600;
  color: #141416;
  letter-spacing: -0.01em;
  margin: 18px 0 12px;
  text-transform: uppercase;
}

.cta-sub {
  font-size: 11.5px;
  line-height: 1.65;
  color: #6e6e77;
  max-width: 440px;
  margin-bottom: 24px;
}

/* ==================== PAGE DOT INDICATOR ==================== */
.page-dots {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: url(#liquid-glass-filter) blur(8px) saturate(1.5);
  -webkit-backdrop-filter: url(#liquid-glass-filter) blur(8px) saturate(1.5);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}
.page-dot.active {
  background: rgba(24, 24, 27, 0.78);
  border-color: rgba(255, 255, 255, 0.72);
  transform: scale(1.35);
}
.page-dot.light {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
}
.page-dot.light.active {
  background: rgba(255, 255, 255, 0.95);
}

/* Keyframes */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes portraitEnter {
  from {
    opacity: 0;
    transform: translate(-50%, 32px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==================== SCROLL REVEAL ==================== */
/* Elements start hidden; JS adds .is-visible to trigger animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}
/* Stagger children: each .reveal inside .reveal-stagger delays by index */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.is-visible > *:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.reveal-stagger.is-visible > *:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}
.reveal-stagger.is-visible > *:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.16s;
}
.reveal-stagger.is-visible > *:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.24s;
}
.reveal-stagger.is-visible > *:nth-child(n + 5) {
  opacity: 1;
  transform: none;
}

/* ==================== PC ONLY ??NO RESPONSIVE ==================== */

/* Maintain the same inner gutter once the content reaches 1366px. */
@media (min-width: 1366px) {
  .hero-section {
    --hero-gutter: 40.98px;
    padding-left: 40.98px;
    padding-right: 40.98px;
  }
  .work-section,
  .cta-section {
    padding-left: 68.3px;
    padding-right: 68.3px;
  }
}

@media (max-width: 900px) {
  .scroll-view {
    padding: 0;
  }

  .hero-section {
    --hero-gutter: 24px;
    width: 100%;
    height: auto;
    min-height: 100svh;
    margin: 0;
    margin-bottom: 0;
    border-radius: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-links {
    gap: 12px;
  }

  .hero-title-wrap {
    padding-top: 54px;
  }

  .hero-title {
    font-size: clamp(29px, 8.4vw, 76px);
    letter-spacing: 0;
  }

  .hero-title .outlined {
    -webkit-text-stroke-width: clamp(2px, 0.52vw, 5px);
  }

  /* Show one portfolio item per row on mobile. */
  .work-section {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .section-watermark-center {
    height: 64px;
    margin-bottom: 18px;
  }

  .work-filter-bar {
    margin-bottom: 20px;
  }

  .filter-tabs {
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

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

  .filter-tab {
    flex: 0 0 auto;
  }

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

  .work-card {
    width: 100%;
  }

  .hero-bottom {
    flex: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
    padding-bottom: 32px;
  }

  .hero-left {
    position: relative;
    grid-row: 2;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 0 var(--hero-gutter);
    padding: 0;
  }

  .hero-left p {
    max-width: 340px;
  }

  .hero-right {
    position: relative;
    grid-row: 3;
    right: auto;
    bottom: auto;
    justify-self: start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 var(--hero-gutter);
    padding: 0;
  }

  .social-pill {
    padding-right: 10px;
  }

  .portrait-stage {
    position: relative;
    grid-row: 1;
    left: 50%;
    width: min(75vw, 390px);
    height: auto;
    aspect-ratio: 398 / 530;
    cursor: auto;
  }

  .portrait-pointer {
    left: calc(50% + min(37.5vw, 195px, 22.5vh) - 115px);
  }
}

@media (max-width: 480px) {
  .hero-section {
    --hero-gutter: 16px;
    padding-left: var(--hero-gutter);
    padding-right: var(--hero-gutter);
  }

  .navbar {
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .navbar .status-pill {
    margin-right: auto;
    padding: 7px 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .navbar .btn-dark {
    padding: 9px 12px;
    font-size: 11px;
  }

  .hero-title-wrap {
    padding-top: 32px;
  }
}

/* Mobile keeps the reference portrait still and lets native touch scrolling run freely. */
@media (max-width: 900px) {
  .portrait-pointer,
  .spotlight-cursor {
    display: none !important;
  }

  /* 모바일: 흑백 사진만 표시, 컬러 오버레이 완전히 숨김 */
  .portrait-color {
    clip-path: circle(0px at 50% 50%) !important;
    will-change: auto;
    pointer-events: none;
  }

  /* 모바일 스크롤 성능 최적화: backdrop-filter 비활성화 */
  .status-pill, .btn-dark, .btn-light, .social-pill, .tag-pill,
  .filter-tab, .page-dot, .work-card, .thumb-badge, .social-icon {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* 모바일 page-dots 숨김 (흰 점 제거) */
  .page-dots {
    display: none !important;
  }

  /* scroll-view 모바일 성능 최적화 */
  .scroll-view {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
  }

  /* 애니메이션이 있는 요소들의 will-change 제거로 메모리 절약 */
  .portrait-stage {
    will-change: auto;
  }

  .work-card {
    transform: none !important;
    transition: none !important;
  }

  .work-card:hover {
    transform: none !important;
  }
}
