@font-face {
  font-family: 'Portfolio Pretendard';
  src: url('assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101113;
  --ink: #f0eeea;
  --point: #7ebeee;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", Inter, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

.fixed-site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 6.25vw;
  min-height: 58px;
  background: #101113;
  color: #7ebeee;
  font-size: clamp(12px, 1.25vw, 24px);
  font-family: 'Portfolio Pretendard', sans-serif;
}
.exact-frame > .fixed-site-header { position: absolute; }
.fixed-site-header nav { position: absolute; left: 25.94%; top: 2.89vw; display: flex; gap: 2.08vw; align-items: center; white-space: nowrap; }
.fixed-site-header a[aria-current="page"] { color: white; font-weight: 700; }
.fixed-brand, .fixed-portfolio { position: absolute; top: 3.02vw; color: #50687b; font-size: clamp(10px, 1.25vw, 24px); }
.fixed-brand { left: 3.85vw; }
.fixed-portfolio { right: 3.85vw; }
.home-profile-flow .exact-frame::after, .standalone-profile .exact-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 6.25vw;
  background: #101113;
}

.exact-page,
.exact-stack,
.project-detail-exact { width: 100%; background: var(--bg); }

.exact-stack { scroll-snap-type: y proximity; }
.exact-stack > .exact-frame { scroll-snap-align: start; }

.exact-frame {
  position: relative;
  width: 100vw;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.profile-stack .exact-frame { aspect-ratio: 16 / 9; }
.exact-frame > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
}

.nav-hotspots {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
}
.nav-hit {
  position: absolute;
  top: 4.2%;
  height: 6.2%;
  border-radius: 8px;
  pointer-events: auto;
}
.nav-0 { left: 25.2%; width: 5.6%; }
.nav-1 { left: 31.4%; width: 6.6%; }
.nav-2 { left: 38.7%; width: 12.5%; }
.nav-3 { left: 52.0%; width: 7.5%; }
.nav-4 { left: 60.2%; width: 6.1%; }
.nav-5 { left: 67.2%; width: 7.9%; }

.back-hotspot,
.work-back-hotspot {
  position: absolute;
  z-index: 15;
  top: 0;
  left: 0;
  width: 14%;
  height: 12%;
}
.top-hotspot { position: absolute; z-index: 20; border: 0; padding: 0; background: transparent; cursor: pointer; }
.top-hotspot:focus-visible { outline: 2px solid #7ebeee; }
.top-left { left: 2.4%; top: 3.7%; width: 5%; height: 5%; }
.top-bottom { left: 47%; top: 91%; width: 6%; height: 6%; }

.project-index-v2 { position: relative; min-height: 120vw; background: #101113; }
.project-title-v2 { position: fixed; z-index: 5; top: 8.75vw; left: 3.85vw; margin: 0; font-size: 2.5vw; line-height: 1.17; }
.project-v2-bg { position: absolute; inset: 0 0 auto; }
.project-cards-v2 { position: absolute; top: 8.75vw; left: 35.104vw; width: 60.99vw; display: grid; gap: 2.604vw; }
.project-card-v2 { display: block; width: 100%; height: 34.375vw; border-radius: 2vw; background-repeat: no-repeat; background-size: 100vw 56.25vw; background-position: -35.104vw -8.75vw; }
.project-card-v2-2 { background-position-y: -17.96875vw; }

.source-viewport { position: absolute; z-index: 12; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; background: #fff; outline: 2px solid #000; outline-offset: -1px; }
.source-viewport::-webkit-scrollbar { display: none; }
.source-viewport:focus-visible { outline: 2px solid #7ebeee; outline-offset: 2px; }
.source-page { position: relative; width: 100%; }
.source-slice { display: block; width: 100%; height: auto; }
.source-overlay { position: absolute; object-fit: fill; }
.source-gif { position: absolute; overflow: hidden; }
.source-gif img { display: block; width: 100%; object-fit: fill; }
.reward-original-gif { position: absolute; overflow: hidden; pointer-events: none; }
.reward-original-gif img { display: block; width: 100%; object-fit: fill; }
.slide-gif { position: absolute; object-fit: fill; }
@property --motion-rotate { syntax: '<number>'; initial-value: 0; inherits: false; }
.reward-patch, .reward-border { position: absolute; pointer-events: none; }
.reward-border {
  --motion-origin-x: 50; --motion-origin-y: 50; --motion-rotate: 0;
  transform: var(--motion-layout-transform, translate(0px)) translate(calc(var(--motion-origin-x, 0) * 1%), calc(var(--motion-origin-y, 0) * 1%)) var(--motion-design-transform-inverse, matrix(1, 0, 0, 1, 0, 0)) rotate(calc(var(--motion-rotate, 0) * 1rad)) var(--motion-design-transform, matrix(1, 0, 0, 1, 0, 0)) translate(calc(var(--motion-origin-x, 0) * -1%), calc(var(--motion-origin-y, 0) * -1%));
  transform-origin: 0 0;
  animation: reward-border-rotate 2s linear infinite;
}
@keyframes reward-border-rotate { 0% { --motion-rotate: 0; } 79.901%, 100% { --motion-rotate: 6.283185; } }

/* Project index: the exported Figma frame is the source of truth. */
.exact-project-index {
  position: relative;
  width: 100vw;
  min-height: 80vw;
  background: var(--bg);
}
.project-index-top { z-index: 1; }
.project-hit {
  position: absolute;
  z-index: 7;
  left: 35.1%;
  width: 61%;
  height: 34.4vw;
  border-radius: 2.2vw;
}
.project-hit-world { top: 8.75vw; }
.project-hit-weekly { top: 45.63vw; }
.weekly-card-exact {
  position: absolute;
  z-index: 2;
  top: 45.63vw;
  left: 35.1%;
  width: 61%;
  height: 34.4vw;
  overflow: hidden;
  border-radius: 2.2vw;
  background: #0b1219;
}
.weekly-card-exact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,8,12,.12), rgba(6,8,12,.62));
}
.weekly-card-exact img { width: 100%; height: 100%; object-fit: cover; }
.weekly-card-exact span {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 7%;
  font-size: clamp(20px, 2vw, 40px);
  font-weight: 700;
}

/* Works list follows the original 1920px grid and keeps the card strip scrollable. */
.works-exact {
  position: relative;
  width: 100vw;
  height: 56.25vw;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg);
}
.works-nav {
  font-family: 'Portfolio Pretendard', sans-serif;
  position: absolute;
  z-index: 20;
  inset: 0;
  font-size: clamp(12px, 1.25vw, 24px);
  color: var(--point);
  pointer-events: none;
}
.works-nav a {
  position: absolute;
  top: 2.89vw;
  white-space: nowrap;
  pointer-events: auto;
}
.works-nav a.active { color: #fff; font-weight: 700; }
.works-nav-0 { left: 25.94%; }
.works-nav-1 { left: 31.98%; }
.works-nav-2 { left: 39.32%; }
.works-nav-3 { left: 52.60%; }
.works-nav-4 { left: 60.73%; }
.works-nav-5 { left: 67.66%; }
.works-brand-left,
.works-brand-right {
  position: absolute;
  top: 3.02vw;
  z-index: 5;
  color: #50687b;
  font-size: clamp(10px, .73vw, 14px);
}
.works-brand-left { left: 3.85vw; }
.works-brand-right { right: 3.85vw; }
.works-title-layer {
  position: absolute;
  top: 8.72vw;
  left: 3.85vw;
  font-size: clamp(30px, 2.2vw, 42px);
  font-weight: 700;
}
.works-track {
  position: absolute;
  top: 13.39vw;
  left: 0;
  right: 0;
  height: 36.46vw;
  display: flex;
  gap: 1.51vw;
  overflow-x: auto;
  padding: 0 3.85vw 1.2vw;
  scrollbar-width: none;
  scroll-padding-inline: 3.85vw;
  scroll-snap-type: none;
}
.works-track::-webkit-scrollbar { display: none; }
.works-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.splash-cover { position: absolute; z-index: 2; left: 0; right: 0; top: 23.5%; height: 60.4%; background: white; }
.splash-track { position: absolute; z-index: 3; left: 0; right: 0; top: 24.35%; height: 58.7%; padding-inline: 6.82%; display: flex; align-items: stretch; gap: 1.19vw; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.splash-track::-webkit-scrollbar { display: none; }
.splash-track img { flex: 0 0 auto; width: auto; height: 100%; border-radius: 2.008vw; user-select: none; -webkit-user-drag: none; }
.splash-track.is-dragging { cursor: grabbing; user-select: none; }
.work-card-exact img { user-select: none; -webkit-user-drag: none; }
.work-card-exact {
  position: relative;
  flex: 0 0 21.875vw;
  height: 36.46vw;
  overflow: hidden;
  border-radius: 2.08vw;
  scroll-snap-align: start;
  background: #191a1e;
}
.work-card-exact::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.68));
}
.work-card-exact img { width: 100%; height: 100%; object-fit: cover; }
.work-card-exact.reward-card { background: transparent; }
.reward-card img { width: 100%; height: 100%; object-fit: fill; }
.work-card-exact.reward-card::after, .reward-card span { display: none; }
.work-card-exact span {
  position: absolute;
  z-index: 2;
  left: 2.6vw;
  bottom: 2.55vw;
  font-size: clamp(19px, 1.72vw, 33px);
  font-weight: 700;
  white-space: nowrap;
}
.works-swipe {
  position: absolute;
  right: 3.23vw;
  bottom: 2.86vw;
  width: 4.583vw;
  height: auto;
}
.copy-toast { position: fixed; z-index: 1000; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 12px 20px; border-radius: 8px; background: #24272b; color: white; font-size: 14px; box-shadow: 0 4px 18px #0003; white-space: nowrap; }

/* Work detail uses the exact Figma frame; only the phone viewport is interactive. */
.work-detail-exact {
  position: relative;
  width: 100vw;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.work-detail-base { width: 100%; height: 100%; object-fit: fill; }
.work-tabs { position: absolute; z-index: 15; left: 61.875%; top: 11.296%; width: 4.948%; height: 12.222%; display: flex; flex-direction: column; justify-content: space-between; }
.work-tabs a { height: 45.455%; }
.phone-content-exact {
  position: absolute;
  z-index: 10;
  left: 39.115%;
  top: 11.111%;
  width: 21.719%;
  height: 77.778%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 1.25vw;
  background: #fff;
  scrollbar-width: none;
}
.phone-content-exact::-webkit-scrollbar { display: none; }
.phone-page { position: relative; width: 100%; }
.phone-page-image { width: 100%; height: auto; display: block; }
.phone-animation { position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; }
.phone-animation img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-page-blackweek .phone-animation { aspect-ratio: 418 / 661; }
.phone-page-overseas .phone-animation { aspect-ratio: 417 / 598; }
.phone-page-overseas-tease .phone-animation { aspect-ratio: 417 / 894; }
.phone-page-live .phone-animation { aspect-ratio: 417.485 / 559.735; }
.phone-page-live .phone-animation img { height: auto; aspect-ratio: 417.485 / 695.809; }
.phone-page-10th .phone-animation { aspect-ratio: 417 / 695; }
.phone-page-marble .phone-animation { aspect-ratio: 418.849 / 775.646; }

.weekly-exact { min-height: 100vh; background: #111214; }
.weekly-back {
  position: fixed;
  z-index: 5;
  top: 24px;
  left: 28px;
  color: #a4a7ab;
  font-size: 13px;
}
.weekly-hero-exact { width: 100%; height: 78vh; overflow: hidden; }
.weekly-hero-exact img { width: 100%; height: 100%; object-fit: cover; }
.weekly-summary { padding: 8vh 8vw 12vh; }
.weekly-summary h1 { margin: 0 0 7vh; font-size: clamp(38px, 5vw, 90px); }
.weekly-summary > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.weekly-summary article { min-height: 28vh; padding: 38px; border: 1px solid #303238; border-radius: 24px; }
.weekly-summary small { color: var(--point); }
.weekly-summary h2 { font-size: clamp(22px, 2vw, 38px); line-height: 1.35; }

.not-found {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
}
.not-found a { color: var(--point); }

@media (max-width: 900px) {
  .exact-frame,
  .work-detail-exact { width: 1000px; max-width: none; }
  .profile-stack .exact-frame { width: 1000px; }
  .exact-page,
  .exact-stack,
  .project-detail-exact,
  .work-detail-exact { overflow-x: auto; }
  .exact-project-index { min-width: 1000px; min-height: 800px; }
  .weekly-summary > div { grid-template-columns: 1fr; }
  .works-exact { min-width: 1000px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reward-border { animation: none; }
}
