/* ============================================================
   TEC-MAG-110 · 코어덤프 · 3DM 3D·인터랙티브 (개발 에이전시 · 기술 매거진)
   ◼ 다크 지면 #111410 (HSL L 7.1%) · 브랜드 라임 #77DE3F (H 99°)
   ── 같은 개발 에이전시 소분류인 021(스택포지)은 BRU·밝은 지면·#E8FF3D(67°).
      110 은 3DM·다크 지면·99° 로 29° 이격, 무드·유형·지면 명도 전부 갈린다.
   ============================================================ */

/* SPEC v1.7 — 암묵 그리드 트랙이 max-content 로 부풀어 페이지를 밀어내는 것을 원천 차단 */
* { grid-auto-columns: minmax(0, 1fr); }
/* 그리드/플렉스 자식이 내재 폭을 주장하지 못하게 한다 (중간 래퍼까지 커버) */
:where([style*="grid"], .grid, [class*="__grid"], [class*="__inner"], [class*="__list"],
       [class*="__row"], [class*="__wrap"], .section, .container, main, body) > * { min-width: 0; }

:root {
  --brand:       #77de3f;
  --brand-ink:   #0b1206;
  --accent:      #e8f2df;
  --accent-ink:  #101507;
  --surface:     #111410;
  --surface-alt: #1b1f1a;

  /* ★v1.2 — 다크 지면이라 중립색 5개를 함께 재정의한다 */
  --ink:         #ebf2e6;   /* 16.2:1 on --surface */
  --ink-2:       #b4c1ac;   /*  9.9:1 on --surface · 8.9:1 on --surface-alt */
  --ink-3:       #8e9a86;   /*  6.3:1 on --surface */
  --line:        #232a20;
  --line-strong: #3a442f;

  --font-display: var(--font-sans);
  --r: var(--r-md);
}

body { background: var(--surface); color: var(--ink); }
::selection { background: var(--brand); color: var(--brand-ink); }
.skip-link { background: var(--ink); color: var(--surface); }

/* ── 스크롤 진행 바 (3DM 인터랙션) ─────────────────────────── */

.prog {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: calc(var(--z-header) + 1);
  background: transparent; pointer-events: none;
}
.prog__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 90ms linear;
}

/* ── 공통 타입 ─────────────────────────────────────────────── */

.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs); letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--brand);
}
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs); letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--ink-3);
}
/* --surface-alt 위에서는 --ink-3 대신 --ink-2 (SPEC v1.6 2번) */
.section--alt .label, .section--alt .muted, .section--alt .post__meta,
.foot .label, .foot .muted { color: var(--ink-2); }

.h2 { font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tighter); line-height: 1.04; }
.h3 { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.h4 { font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.body-lg { font-size: var(--fs-md); color: var(--ink-2); max-width: 46ch; line-height: var(--lh-loose); }
.muted { font-size: var(--fs-sm); color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-base); color: var(--ink-2); }

/* 본문 */
.prose { display: grid; gap: var(--sp-5); max-width: 64ch; }
.prose p { font-size: var(--fs-md); color: var(--ink-2); line-height: var(--lh-loose); }
.prose h3 { margin-top: var(--sp-4); color: var(--ink); }
.prose code {
  font-family: var(--font-mono); font-size: var(--fs-sm);
  background: var(--surface-alt); color: var(--brand);
  padding: 2px 6px; border-radius: var(--r-sm);
}
.prose pre {
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--sp-5);
  overflow-x: auto; min-width: 0;
}
.prose pre code { background: none; padding: 0; color: var(--ink-2); line-height: 1.7; }
.prose blockquote {
  border-left: 3px solid var(--brand);
  padding-left: var(--sp-5);
  color: var(--ink);
  font-size: var(--fs-md);
}

/* ── 버튼 ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: var(--sp-3) var(--sp-5); }
/* 브랜드 배경 위 라벨은 --brand-ink (#77DE3F / #0B1206 = 11.15:1) */
.btn--brand { background: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 34%, transparent); }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--brand); color: var(--brand-ink); }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--brand); color: var(--brand); }

/* ── 헤더 ──────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 3px 0 auto 0; z-index: var(--z-header);
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  padding-block: var(--sp-3);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.nav__logo {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: var(--ls-base);
}
.nav__logo i { font-style: normal; color: var(--brand); }
.nav__mark {
  width: 12px; height: 12px; flex: none;
  border: 2px solid var(--brand);
  transform: rotate(45deg);
}
.nav__menu {
  display: flex; order: 3; width: 100%;
  gap: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav__menu::-webkit-scrollbar { display: none; }
.nav__menu a {
  font-family: var(--font-mono);
  font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
}
.nav__menu a:hover { color: var(--brand); }
.nav__menu a[aria-current="page"] { color: var(--brand); }
@media (min-width: 1024px) {
  .nav__inner { flex-wrap: nowrap; padding-block: var(--sp-4); }
  .nav__menu { order: 0; width: auto; padding-top: 0; border-top: 0; overflow: visible; }
}

/* ── 히어로 (3D 레이어) ────────────────────────────────────── */

.hero {
  --header-h: 108px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  perspective: 900px;
}
.hero__media { grid-area: 1 / 1 / 2 / 2; position: absolute; inset: 0; z-index: 0; }
.hero__media .img-slot { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
/* 다크 지면 스크림 — 원본이 순백이어도 상단 합성 밝기가 유지되도록 역산했다.
   텍스트가 끝나는 74% 아래로 급격히 떨어뜨려 사진을 살린다. (SPEC v1.6) */
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--surface) 90%, transparent) 0%,
    color-mix(in oklab, var(--surface) 88%, transparent) 54%,
    color-mix(in oklab, var(--surface) 58%, transparent) 74%,
    color-mix(in oklab, var(--surface) 16%, transparent) 100%);
}
/* 3DM — 글로우 레이어. 부모에 overflow:hidden 이 있어 뷰포트를 넘지 않는다.
   ★v1.8 #361 — 글로우는 반드시 스크림 "아래"에 와야 한다 (사진 → 글로우 → 스크림 → 텍스트).
   .hero::before 로 두면 .hero__media 의 스택 컨텍스트 밖이라 스크림 위에 얹혀
   헤드라인 뒤 지면이 다시 밝아진다. 그래서 미디어 안쪽 ::before 로 옮겨
   img-slot(0) → 글로우(2) → 스크림(3) 순서를 못박는다. */
.hero__media::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 80%; z-index: 2;
  background: radial-gradient(ellipse 42% 56% at 22% 34%, color-mix(in oklab, var(--brand) 24%, transparent), transparent 68%);
  pointer-events: none;
}
.hero__text {
  grid-area: 1 / 1 / 2 / 2;
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--sp-5);
  padding-inline: var(--gutter);
  padding-block: var(--sp-6) var(--sp-9);
}
.hero__issue {
  align-self: start;
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--brand);
  border-radius: var(--r);
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide); color: var(--brand);
}
.hero__title { font-size: var(--fs-4xl); font-weight: var(--fw-semibold); line-height: .98; letter-spacing: var(--ls-tighter); }
/* ★ background-clip:text 는 자동 검수기가 1.00:1 로 읽는다(SPEC v1.7).
     지면 #111410 대비 스톱을 개별 실측했다 — #77DE3F 10.9:1 · #C6F58F 15.6:1 · #E8F2DF 16.1:1.
     가장 어두운(지면과 가까운) 스톱도 4.5:1 을 크게 넘는다. */
.hero__title em {
  font-style: normal;
  background-image: linear-gradient(96deg, #77de3f 0%, #c6f58f 56%, #e8f2df 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title em { color: var(--brand); -webkit-text-fill-color: currentColor; }
}
.hero__lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 34ch; line-height: var(--lh-loose); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2);
}

@media (min-width: 1024px) {
  .hero { --header-h: 74px; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); padding-top: 0; }
  .hero__text  { grid-area: 1 / 1 / 2 / 2; }
  .hero__media { grid-area: 1 / 2 / 2 / 3; position: relative; }
  .hero__media::after { display: none; }
  .hero__text {
    padding-block: calc(var(--header-h) + var(--sp-9)) var(--sp-8);
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
    padding-right: var(--sp-8);
  }
}

/* ── 페이지 헤더 ───────────────────────────────────────────── */

.phead { position: relative; padding-top: calc(108px + var(--sp-8)); padding-bottom: var(--sp-7); border-bottom: 1px solid var(--line); overflow: hidden; }
.phead::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 92%;
  background: radial-gradient(ellipse 44% 58% at 26% 40%, color-mix(in oklab, var(--brand) 20%, transparent), transparent 68%);
  pointer-events: none;
}
.phead__inner { position: relative; display: grid; gap: var(--sp-5); }
.phead h1 { font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: 1.04; letter-spacing: var(--ls-tighter); }
@media (min-width: 1024px) {
  .phead { padding-top: calc(74px + var(--sp-9)); }
  .phead__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--sp-8); align-items: end; }
}

/* ── 티커 ──────────────────────────────────────────────────── */

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface-alt); padding-block: var(--sp-3); }
.ticker__track { display: flex; align-items: center; gap: var(--sp-5); width: max-content; animation: tick 36s linear infinite; }
.ticker__track span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); color: var(--ink-2); white-space: nowrap; }
.ticker__track i { width: 6px; height: 6px; background: var(--brand); flex: none; transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── 3D 카드 그리드 ────────────────────────────────────────── */

.posts { display: grid; gap: var(--sp-6); perspective: 1200px; }
.post {
  display: grid; gap: var(--sp-4); align-content: start;
  padding: var(--sp-5);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-width: 0;
  transform-style: preserve-3d;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post:hover {
  transform: translateZ(28px) rotateX(3deg);
  border-color: var(--brand);
  box-shadow: 0 22px 44px rgba(0,0,0,.55), 0 0 0 1px color-mix(in oklab, var(--brand) 28%, transparent);
}
.post__media { border-radius: var(--r); }
/* v1.8 #308 — 뒤에 오는 `.post p` 에 색이 덮이지 않도록 복합 선택자로 올린다. */
.post p.post__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.post__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.post h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1.3; }
.post p { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose); }
.post__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.post__tags span {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  padding: 2px var(--sp-3);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--ink-2);
}
.post--lead { grid-column: 1 / -1; }
.post--lead h3 { font-size: var(--fs-2xl); letter-spacing: var(--ls-tight); }
@media (min-width: 768px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .post:hover { transform: none; } }

/* ── 아카이브 목록 ─────────────────────────────────────────── */

.list { border-top: 1px solid var(--line); }
.list__row {
  display: grid; gap: var(--sp-2);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.list__row:hover { background: var(--surface-alt); padding-left: var(--sp-4); }
.list__no { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brand); }
.list__title { font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); }
.list__tag { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); }
.list__date { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); }
@media (min-width: 768px) {
  .list__row {
    grid-template-columns: minmax(0, 60px) minmax(0, 1fr) minmax(0, 180px) minmax(0, 110px);
    gap: var(--sp-5); align-items: baseline;
  }
  .list__date { text-align: right; }
}

/* ── 지표 ──────────────────────────────────────────────────── */

.figs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fig { padding-block: var(--sp-6); border-bottom: 1px solid var(--line); display: grid; gap: var(--sp-2); }
.fig dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--ink-3); }
.fig dd { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: 1; color: var(--brand); }
.fig dd span { font-size: var(--fs-sm); font-weight: var(--fw-normal); color: var(--ink-2); margin-left: 4px; }
@media (min-width: 768px) { .figs { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--sp-6); } }

/* ── 풀블리드 + 겹침 카드 ──────────────────────────────────── */

.story { position: relative; padding-bottom: var(--section-y); }
.story__media { border-radius: 0; aspect-ratio: 4 / 5; }
.story__card {
  position: relative; margin-top: calc(var(--sp-8) * -1);
  padding: var(--sp-6);
  background: var(--surface-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  display: grid; gap: var(--sp-4);
  box-shadow: 0 26px 60px rgba(0,0,0,.6);
}
@media (min-width: 768px) {
  .story__media { aspect-ratio: 21 / 9; }
  .story__card { margin-top: calc(var(--sp-10) * -1); margin-right: auto; max-width: 640px; padding: var(--sp-8); }
}

/* ── 풀블리드 배너 ─────────────────────────────────────────── */

.band { position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.band .img-slot { aspect-ratio: 3 / 2; border-radius: 0; }
.band__cap {
  position: absolute; inset: auto 0 0 0; z-index: 4;
  padding: var(--sp-6) var(--gutter);
  /* 원본이 순백이어도 합성 밝기가 유지되도록 지면 톤 스크림을 아래에서 올린다 */
  background: linear-gradient(to top,
    color-mix(in oklab, var(--surface) 92%, transparent) 0%,
    color-mix(in oklab, var(--surface) 82%, transparent) 60%,
    transparent 100%);
  text-align: center;
}
.band__cap b { display: block; font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); color: var(--ink); }
.band__cap span { display: block; margin-top: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); }
@media (min-width: 768px) { .band .img-slot { aspect-ratio: 21 / 7; } }

/* ── 인용 ──────────────────────────────────────────────────── */

.pull { position: relative; background: var(--surface-alt); border-block: 1px solid var(--line); overflow: hidden; }
.pull::before {
  content: ""; position: absolute; inset: -30% -10%;
  background: radial-gradient(ellipse 40% 60% at 76% 34%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 68%);
  pointer-events: none;
}
.pull blockquote { position: relative; display: grid; gap: var(--sp-5); }
.pull p { font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 1.4; letter-spacing: var(--ls-tight); }
.pull footer { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink-2); }

/* ── 비대칭 2단 ────────────────────────────────────────────── */

.split { display: grid; gap: var(--sp-6); align-items: center; }
.split__body { display: grid; gap: var(--sp-4); justify-items: start; }
.split .img-slot { border-radius: var(--r); }
@media (min-width: 768px) {
  .split { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--sp-8); }
  .split--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
  .split--rev .split__media { order: 2; }
}

/* ── 기사 상세 ─────────────────────────────────────────────── */

.article__hero { border-bottom: 1px solid var(--line); }
.article__hero .img-slot { aspect-ratio: 16 / 10; border-radius: 0; }
.article__meta { display: grid; gap: var(--sp-4); padding-block: var(--sp-6); border-bottom: 1px solid var(--line); }
.article__meta div { display: grid; gap: var(--sp-1); }
.article__meta dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--ink-3); }
.article__meta dd { font-size: var(--fs-sm); }
@media (min-width: 768px) {
  .article__hero .img-slot { aspect-ratio: 21 / 9; }
  .article__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
}

.pair { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); } }

/* ── 구독 폼 ───────────────────────────────────────────────── */

.subs { display: grid; gap: var(--sp-4); max-width: 560px; }
.subs__row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.subs input {
  flex: 1 1 240px; min-width: 0;
  padding: var(--sp-4);
  background: var(--surface-alt); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  font-size: var(--fs-sm);
}
.subs input::placeholder { color: var(--ink-3); }
.subs input:focus-visible { border-color: var(--brand); }

/* ── CTA ───────────────────────────────────────────────────── */

.cta { position: relative; overflow: hidden; padding-block: var(--section-y); border-top: 1px solid var(--line); }
.cta::before {
  content: ""; position: absolute; inset: -30% -10%;
  background: radial-gradient(ellipse 46% 62% at 20% 44%, color-mix(in oklab, var(--brand) 26%, transparent), transparent 68%);
  pointer-events: none;
}
.cta .container { position: relative; }
.cta__title { font-size: var(--fs-3xl); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tighter); line-height: 1.02; margin-block: var(--sp-4); }
.cta__lead { color: var(--ink-2); font-size: var(--fs-md); max-width: 46ch; line-height: var(--lh-loose); }
@media (min-width: 768px) { .cta__title { font-size: var(--fs-4xl); } }

/* ── 푸터 ──────────────────────────────────────────────────── */

.foot { padding-block: var(--sp-8) var(--sp-6); border-top: 1px solid var(--line); }
.foot__inner { display: grid; gap: var(--sp-5); }
.foot__brand { display: inline-flex; align-items: center; gap: var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-md); font-weight: var(--fw-bold); }
.foot__brand i { font-style: normal; color: var(--brand); }
.foot__addr { font-style: normal; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.9; }
.foot__nav { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); }
.foot__nav a { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--ink-2); }
.foot__nav a:hover { color: var(--brand); }
.foot__copy { grid-column: 1 / -1; padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-2); }
@media (min-width: 768px) { .foot__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7); } }


/* ===== 획일성 제거 — 3DM 무드 어휘 =====================================
   160작품이 레퍼런스의 밑줄 draw·카드 리프트·대문자 킥커를 그대로 복사해
   같은 사이트 리스킨으로 보였다. 반응 방식을 무드에 맞게 갈아끼운다.
   ==================================================================== */
/* 세로 카덴스를 작품마다 다르게 — 전부 같은 --section-y 를 쓰는 게 구조적 tell 이었다 */
:root { --section-y: clamp(4.31rem, 2.6822rem + 6.9970vw, 8.63rem); }

/* 3D·인터랙티브 — 원근으로 살짝 눕는다. */
.nav__menu a::after { display: none !important; }
.nav__menu a { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.nav__menu a:hover { transform: translateY(-2px); }

.card:hover { transform: perspective(900px) rotateX(3deg) translateY(-4px); }



/* ===== 마무리 — 마크·아이콘·인터랙션 ==============================
   담당 에이전트가 한도 초과로 착수하지 못한 작품. 직접 채웠다.
   ================================================================ */

.ico { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.nav__mark { flex: none; color: var(--brand); transition: transform var(--dur) var(--ease-out); }
.nav__logo:hover .nav__mark { transform: translateX(3px) skewX(-6deg); }

/* 3DM — 층이 어긋나고 깊이가 생긴다 */
@keyframes cdShift { 0%,100% { transform: translateX(0) } 50% { transform: translateX(3px) } }
@keyframes cdFade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes cdScan { from { background-position: 0 -100% } to { background-position: 0 200% } }

.btn__arrow { font-size: 1.25em; transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn { transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease); }
.btn:hover { box-shadow: 0 0 0 1px color-mix(in oklab, var(--brand) 60%, transparent), 0 0 22px color-mix(in oklab, var(--brand) 26%, transparent); }
.btn:active { transform: translateY(1px); }

.img-slot img { transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) var(--ease); }
figure:hover img, article:hover .img-slot img, li:hover .img-slot img { transform: scale(1.05); filter: saturate(1.15); }

summary { transition: color var(--dur) var(--ease), letter-spacing var(--dur) var(--ease); }
summary:hover { color: var(--brand); }
details[open] > *:not(summary) { animation: cdFade var(--dur) var(--ease-out) both; }

input, textarea, select { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
input:hover, textarea:hover, select:hover { border-color: var(--brand); }
input:focus, textarea:focus { box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 22%, transparent); }

table tr { transition: background var(--dur) var(--ease); }
table tbody tr:hover { background: color-mix(in oklab, var(--brand) 10%, transparent); }

.ico { transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease); }
a:hover > .ico, li:hover > .ico { transform: translateX(2px); color: var(--brand); }
time:hover .ico { animation: cdShift 1.8s var(--ease) infinite; }
blockquote:hover { border-color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .ico, .btn__arrow, .img-slot img { transition: none !important; animation: none !important; } }

/* 아이콘 배치 정렬 — dt·주소는 글자와 baseline 이 아니라 중앙을 맞춰야 안정적이다 */
dt { display: flex; align-items: center; gap: var(--sp-2); }
dt .ico { color: var(--brand); }
address span { display: flex; align-items: center; gap: var(--sp-3); }
address .ico { color: var(--ink-3); font-size: var(--fs-lg); transition: color var(--dur) var(--ease); }
address span:hover .ico { color: var(--brand); }
address { display: grid; gap: var(--sp-3); }
figure { transition: opacity var(--dur) var(--ease); }
nav a { transition: color var(--dur) var(--ease); }
label { transition: color var(--dur) var(--ease); }
label:hover { color: var(--brand); }

/* webit-touch */
@media (max-width: 767px) {
  .nav__inner { flex-wrap: wrap; overflow: visible; }
  .hero__actions, .hero__acts { flex-wrap: wrap; }
}
html.tier-premium .img-slot { transform-style: preserve-3d; }
html.tier-premium .hero__title { text-wrap: balance; }
