/* Asterisk 2026 — editorial layer. Loaded last so it sets the canvas,
   type, and work surfaces without rewriting the archive/detail behavior. */

:root {
  --bg: #050505;
  --bg-deep: #050505;
  --content-width: 1480px;
  --header-offset: 84px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --ink: #f4f2ee;
  --ink-muted: #c8c3ba;
  --ink-faint: #8d887f;
}

body {
  background-color: #050505;
  background-image: none;
}

body::before,
.hero-section::before,
.hero-section::after,
.featured-section::before,
.site-footer::before,
.capability-grid::before,
.capability-card::before,
.capability-card::after,
.about-portrait::after,
.archive-card .media-fallback::after,
.archive-featured-card .media-fallback::after {
  content: none;
  display: none;
}

/* 모든 섹션이 같은 좌우선을 쓴다: 여백은 --gutter 한 값만 바꾼다. */
.page-shell {
  width: min(var(--content-width), calc(100vw - 2 * var(--gutter)));
  padding-top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 64px;
  margin-bottom: 0;
  padding: 16px 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(244, 242, 238, 0.1);
  border-radius: 0;
  background: rgba(5, 5, 5, 0.84);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.brand-mark {
  font-size: 1.85rem;
  line-height: 0.7;
}

.brand-lockup strong {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}

.site-nav {
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 28px);
}

.nav-link {
  min-height: 44px;
  color: rgba(244, 242, 238, 0.72);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--ink);
  background: transparent;
}

/* 주황은 현재 위치 표시에만 쓴다 (별표, 현재 메뉴, 문의 버튼 외에는 쓰지 않는다) */
.nav-link.is-active {
  color: var(--accent);
  background: transparent;
}

.header-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.header-cta-more {
  margin-right: 0.3em;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--accent-text);
  background: var(--accent);
}

.hero-kicker,
.work-kicker,
.work-index {
  font-family: "42dot Sans", "Pretendard", sans-serif;
}

/* 아카이브 제목 옆 개수 표시 (renderMeta가 채운다) */
.header-meta {
  min-width: 0;
  padding-bottom: 0.45em;
  color: var(--ink-faint);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: left;
}

.section-shell {
  padding: clamp(28px, 4.2vw, 52px) 0;
}

.section-header,
.work-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  padding-left: 0;
  border-left: 0;
}

.section-title {
  max-width: none;
  margin: 0;
  font-family: "Pretendard", sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-section {
  width: 100%;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
  margin: 0;
  padding: clamp(40px, 8vh, 96px) 0 clamp(20px, 3.4vh, 36px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero-copy {
  display: grid;
  align-content: end;
  gap: 18px;
  min-width: 0;
}

.hero-aside {
  display: grid;
  align-content: end;
  gap: 14px;
  min-width: 0;
  max-width: 34rem;
  padding-bottom: 0.4rem;
}

.hero-kicker {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.hero-title {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", sans-serif;
  font-size: clamp(4.6rem, 10.4vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  white-space: nowrap;
  word-break: keep-all;
}

.hero-title .hero-asterisk {
  display: inline;
  position: static;
  top: auto;
  right: auto;
  margin-left: 0.04em;
  color: var(--accent);
  font-family: "42dot Sans", "Pretendard", sans-serif;
  font-size: 0.72em;
  font-weight: 800;
  line-height: 0;
  transform: none;
}

.hero-role,
.section-copy,
.hero-career,
.contact-text,
.career-detail {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-role {
  max-width: 24em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  font-weight: 500;
  line-height: 1.65;
}

/* 숫자와 라벨은 한 줄에 나란히: 위계를 한 단계 줄인다 */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(244, 242, 238, 0.14);
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.hero-facts strong {
  color: var(--ink);
  font-family: "42dot Sans", "Pretendard", sans-serif;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-facts span,
.hero-career {
  color: var(--ink-faint);
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.45;
}

.hero-career {
  margin: 0;
}

.about-portrait {
  display: block;
  margin: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.about-portrait img {
  width: 100%;
  height: min(70vh, 620px);
  min-height: 280px;
  object-fit: cover;
  object-position: center 42%;
  filter: none;
}

/* 영문 이름은 글자 수가 많아 한글보다 한 단계 작게 */
html[lang="en"] .hero-title {
  font-size: clamp(3.6rem, 8vw, 8rem);
}

/* 쇼릴은 콘텐츠 폭 그대로 16:9. 라벨 열이 없어서 히어로와 좌우선이 같다. */
.showreel-band {
  display: block;
  padding-top: 0;
  padding-bottom: clamp(20px, 3vw, 40px);
  border-top: 0;
}

.showreel-band .hero-showreel {
  position: relative;
  inset: auto;
  z-index: auto;
}

.showreel-band .showreel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  background: #0a0a0a;
  overflow: hidden;
}

.showreel-band .showreel-frame::after {
  display: none;
}

.showreel-band .showreel-frame > video,
.showreel-band .showreel-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-view .featured-section {
  padding-top: clamp(42px, 6vw, 80px);
  overflow: visible;
}

.home-view .featured-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 18px;
  width: 100%;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
  cursor: auto;
}

.home-view .featured-lead,
.home-view .featured-support-card,
.archive-card,
.archive-featured-card,
.capability-card,
.career-panel,
.preview-card,
.contact-mail {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-view .featured-lead,
.home-view .featured-support-card {
  flex: none;
  width: auto;
  max-width: none;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  color: inherit;
  text-align: left;
  scroll-snap-align: none;
}

.home-view .featured-lead {
  grid-column: 1 / -1;
  position: relative;
}

.home-view .featured-lead:hover,
.home-view .featured-support-card:hover,
.archive-card:hover,
.archive-featured-card:hover,
.preview-card:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
}

.home-view .featured-lead-media,
.home-view .featured-support-media,
.archive-card-media,
.archive-featured-media {
  background: #101010;
}

.home-view .featured-lead-media {
  height: min(52vh, 540px);
  min-height: 320px;
  aspect-ratio: auto;
}

.home-view .featured-lead-media::after,
.home-view .featured-support-media::after {
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.72));
}

.home-view .featured-support-media {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.home-view .featured-lead-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  gap: 8px;
  padding: clamp(20px, 3vw, 36px);
  border: 0;
  background: transparent;
}

.home-view .featured-support-body,
.archive-card-body,
.archive-featured-body {
  gap: 6px;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
}

.work-kicker {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.work-index,
.home-view .featured-mosaic .work-index,
.home-view .featured-lead .work-index {
  top: 14px;
  left: 14px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(244, 242, 238, 0.92);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.home-view .featured-lead-title {
  max-width: 16ch;
  font-family: "Pretendard", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3.3rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.home-view .featured-support-title,
.card-title {
  display: block;
  min-height: 0;
  font-family: "Pretendard", sans-serif;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.3;
  -webkit-line-clamp: 2;
}

.featured-scrollbar {
  display: none;
}

.client-row {
  display: block;
}

.brand-marquee-section {
  padding-top: 12px;
  padding-bottom: 8px;
}

.brand-marquee {
  overflow: visible;
  padding: 0;
  background: transparent;
}

.brand-marquee-track {
  display: block;
  width: 100%;
  animation: none;
}

.brand-marquee-group[aria-hidden="true"] {
  display: none;
}

.brand-marquee-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
  width: 100%;
  padding: 0;
}

.brand-logo {
  min-height: 42px;
}

.brand-logo-image {
  max-width: 148px;
  max-height: 34px;
  opacity: 0.82;
}

.about-profile-section {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: end;
  gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(28px, 4vh, 48px);
}

.about-profile-copy {
  gap: 16px;
}

.about-profile-copy .section-title {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.career-panel {
  padding: 8px 0 0;
  background: transparent;
}

.career-summary-list {
  gap: 0;
  margin-top: 8px;
}

.career-summary-item {
  padding: 14px 0;
  border-top: 1px solid rgba(244, 242, 238, 0.12);
}

.career-period {
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.career-detail {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* 만드는 방식: 번호 · 제목 · 설명이 한 줄에 놓이는 괘선 목록 (위 경력 목록과 같은 결) */
.capability-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(244, 242, 238, 0.16);
}

.capability-card {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: baseline;
  column-gap: clamp(16px, 3vw, 40px);
  min-height: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(244, 242, 238, 0.16);
  background: transparent;
}

.capability-card-index {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1;
}

.capability-card h3 {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.capability-card p,
.proof-pill {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink-muted);
  background: transparent;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
}

.work-terms {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 22px;
}

.archive-intro {
  padding-bottom: 8px;
}

.archive-toolbar {
  top: var(--header-offset);
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 242, 238, 0.1);
  background: rgba(5, 5, 5, 0.92);
}

.search-field {
  gap: 4px;
}

.search {
  min-height: 44px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(244, 242, 238, 0.28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.search:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.chips {
  gap: 4px 16px;
}

.chip {
  min-height: 44px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  color: rgba(244, 242, 238, 0.58);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 650;
}

.chip:hover {
  transform: none;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.chip.active {
  transform: none;
  border: 0;
  color: var(--accent);
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--accent);
}

.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 22px;
  padding-top: 26px;
}

.archive-card {
  background: transparent;
}

.archive-card-media {
  aspect-ratio: 16 / 10;
}

.archive-card .media-fallback,
.archive-featured-card .media-fallback,
.media-fallback {
  place-items: end start;
  padding: 16px;
  color: var(--ink);
  background: #121212;
}

.archive-card .media-fallback span,
.archive-featured-card .media-fallback span,
.media-fallback span {
  display: block;
  color: var(--ink);
  font-family: "Pretendard", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.meta-chip,
.resource-chip {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink-muted);
  background: transparent;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.card-foot {
  min-height: 0;
  padding-top: 0;
  border-top: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.card-open {
  display: none;
}

.load-more {
  min-width: 0;
  min-height: 44px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(244, 242, 238, 0.4);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.load-more:hover {
  transform: none;
  border-bottom-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.detail-shell,
.detail-resource {
  border-radius: 0;
  background: #0c0c0c;
}

.site-footer {
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(244, 242, 238, 0.12);
}

.contact-status {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink-muted);
  background: transparent;
  letter-spacing: 0.08em;
}

.contact-status-dot {
  display: none;
}

.contact-title {
  font-family: "Pretendard", sans-serif;
  letter-spacing: -0.04em;
}

.contact-mail {
  gap: 10px;
  padding: 0;
  background: transparent;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  transform: none;
  background: transparent;
}

.contact-mail-address {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.contact-copy-inline {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-copy-inline:hover,
.contact-copy-inline:focus-visible {
  transform: none;
  color: var(--ink);
  background: transparent;
}

.contact-meta {
  grid-column: 1 / -1;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* Work: 큰 제목 + 연도별 묶음. 타일은 썸네일 · 제목 · 브랜드/유형 한 줄, 누르면 영상 */
.work-intro {
  padding-top: clamp(40px, 8vh, 96px);
}

.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(244, 242, 238, 0.14);
}

.work-title {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", sans-serif;
  font-size: clamp(4.2rem, 10vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

/* 히어로 이름의 별표와 같은 처리 */
.work-title-mark {
  margin-left: 0.04em;
  color: var(--accent);
  font-family: "42dot Sans", "Pretendard", sans-serif;
  font-size: 0.72em;
  font-weight: 800;
  line-height: 0;
}

.work-head-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  padding-bottom: 0.4rem;
  text-align: right;
}

.work-head-count {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.work-head-hint {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* 대표작 표시: 브랜드 별표를 작게 */
.work-star {
  margin-left: 0.2em;
  color: var(--accent);
  font-family: "42dot Sans", "Pretendard", sans-serif;
  font-weight: 800;
}

.work-head-hint .work-star {
  margin: 0 0.15em 0 0;
}

.work-year {
  display: grid;
  grid-template-columns: minmax(120px, 0.2fr) minmax(0, 1fr);
  gap: 0 clamp(24px, 3vw, 48px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(244, 242, 238, 0.1);
}

/* 연도는 왼쪽에 붙어서 스크롤을 따라온다 */
.work-year-label {
  position: sticky;
  top: calc(var(--header-offset) + 24px);
  align-self: start;
  display: grid;
  gap: 6px;
}

.work-year-number {
  margin: 0;
  color: var(--ink);
  font-family: "42dot Sans", "Pretendard", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.work-year-count {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 600;
}

.work-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 36px) clamp(12px, 1.4vw, 20px);
}

.work-tile {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.work-tile-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.work-tile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.work-tile-fallback {
  display: grid;
  place-items: center;
  color: rgba(244, 242, 238, 0.18);
  background: #141414;
  font-family: "42dot Sans", "Pretendard", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
}

.work-tile:hover .work-tile-image,
.work-tile:focus-visible .work-tile-image {
  transform: scale(1.03);
}

.work-tile-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(5, 5, 5, 0.62);
  font-size: 0.95rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 200ms ease, transform 200ms ease;
}

.work-tile:hover .work-tile-badge,
.work-tile:focus-visible .work-tile-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 터치 기기는 호버가 없으니 작은 재생 표시를 항상 둔다 */
@media (hover: none) {
  .work-tile-badge {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: auto;
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
    opacity: 0.9;
    transform: none;
  }
}

.work-tile-caption {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.work-tile-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-tile:hover .work-tile-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-tile-meta {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 550;
}

/* 재생 버튼은 누를 대상이라 호버 때만 주황으로 */
.work-tile:hover .work-tile-badge {
  color: var(--accent-text);
  background: var(--accent);
}

/* 하나에 올리면 나머지는 한 발 물러난다 */
@media (hover: hover) {
  .work-tile {
    transition: opacity 240ms ease;
  }

  .work-list:has(.work-tile:hover) .work-tile:not(:hover) {
    opacity: 0.42;
  }
}

/* 연도 묶음이 화면에 들어오면 타일이 차례로 올라온다 (backwards라 끝난 뒤엔 호버 투명도를 막지 않는다) */
.work-year[data-reveal].is-visible .work-tile {
  animation: work-tile-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(min(var(--i, 0), 11) * 40ms + 80ms);
}

@keyframes work-tile-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-year .work-tile {
    animation: none;
  }
}

.work-empty {
  grid-column: 1 / -1;
  color: var(--ink-faint);
}

.work-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.work-more-link:hover {
  color: var(--ink);
}

/* 영상 팝업 */
.video-dialog {
  width: min(1200px, calc(100vw - 2 * var(--gutter)), calc((100svh - 120px) * 16 / 9));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.86);
}

.video-dialog-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-dialog-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-dialog-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.video-dialog-note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 16px 20px;
  color: var(--ink);
  font-size: 0.95rem;
}

.video-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.video-dialog-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.video-dialog-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.video-dialog-meta {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.video-dialog-close {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(244, 242, 238, 0.3);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.video-dialog-close:hover {
  border-color: var(--ink);
}

@media (max-width: 1080px) {
  .hero-section,
  .page-shell .hero-section,
  .about-profile-section {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    max-width: 40rem;
  }

  .work-year {
    grid-template-columns: 1fr;
  }

  .work-year-label {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
  }

  .about-portrait img {
    height: min(48vh, 420px);
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-view .featured-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .home-view .featured-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --header-offset: 92px;
  }

  /* 모바일 헤더는 한 줄: 로고 · 메뉴 · 문의 */
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    padding: 8px 0;
    background: rgba(5, 5, 5, 0.9);
  }

  .site-nav {
    gap: 12px;
  }

  .nav-link {
    min-height: 40px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  /* 아랑곳 페이지(언어 토글 있음)는 브랜드명이 길어 한 줄에 다 안 들어간다: 메뉴를 둘째 줄로 */
  .site-header:has(.lang-toggle) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand action"
      "nav nav";
    gap: 0 10px;
  }

  .site-header:has(.lang-toggle) .brand-lockup {
    grid-area: brand;
  }

  .site-header:has(.lang-toggle) .site-nav {
    grid-area: nav;
    justify-content: space-between;
  }

  .site-header:has(.lang-toggle) .header-action {
    grid-area: action;
  }

  .header-cta {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .header-cta .header-cta-more {
    display: none;
  }

  .hero-section,
  .page-shell .hero-section {
    width: 100%;
    aspect-ratio: auto;
    align-items: start;
    gap: 22px;
    padding: 28px 0 16px;
  }

  .hero-title {
    font-size: clamp(4rem, 22vw, 5.6rem);
    white-space: normal;
  }

  .hero-role {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .about-portrait img {
    height: 62vw;
    min-height: 210px;
  }

  .showreel-band {
    padding-bottom: 20px;
  }

  .work-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .work-head-meta {
    justify-items: start;
    text-align: left;
  }

  .work-title {
    font-size: clamp(3.6rem, 20vw, 5rem);
  }

  .work-year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .work-tile-title {
    font-size: 0.84rem;
  }

  .home-view .featured-mosaic,
  .archive-grid,
  .work-terms {
    grid-template-columns: 1fr;
  }

  .home-view .featured-lead,
  .home-view .featured-support-card {
    flex-basis: auto;
    max-width: none;
    min-height: 0;
  }

  .home-view .featured-lead-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .home-view .featured-lead-body {
    position: absolute;
  }

  .home-view .featured-support-card {
    grid-template-columns: 1fr;
  }

  .archive-toolbar,
  .contact-section,
  .about-profile-section {
    grid-template-columns: 1fr;
  }

  .archive-toolbar {
    top: var(--header-offset);
    position: sticky;
    background: rgba(5, 5, 5, 0.96);
  }

  .archive-card .card-hit {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .archive-card-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .archive-card-body {
    padding: 12px 0 0;
  }

  .capability-card {
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 18px 0;
  }

  .capability-card-index {
    grid-row: auto;
    font-size: 0.78rem;
  }

  .capability-card h3,
  .capability-card p {
    grid-column: auto;
  }

  .contact-mail {
    padding: 0;
  }

  .contact-meta {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }
}
