@charset "UTF-8";
/* =============================================================
   akeweb.com — 공통 스타일
   참고 화면(템플릿 목록형 레이아웃)의 치수를 그대로 옮겼습니다.
     · 컨테이너 1400px 중앙 정렬
     · 카드 4열, 가로 간격 24px, 카드 비율 5:6
     · 카드 아래 제목 18px 띄움, 행 간격 64px
     · 섹션 제목 24px, 제목과 그리드 사이 26px
     · 섹션 사이 1px 구분선 + 위아래 70px
   색 / 간격 / 글자 크기는 아래 변수에서 관리합니다.
   기본은 라이트이고, 다크는 오른쪽 위 버튼을 눌렀을 때만 켜집니다.
   ============================================================= */

/* -------------------------------------------------------------
   1. 글꼴
   ------------------------------------------------------------- */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* -------------------------------------------------------------
   2. 디자인 토큰 — 라이트(기본)
   ------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* 색 */
  --c-bg:            #FFFFFF;
  --c-surface:       #F8F9FA;   /* 아래쪽 안내 영역 배경 */
  --c-surface-2:     #F1F3F5;   /* 태그 배경 */
  --c-text:          #131517;
  --c-text-sub:      #6B7280;
  --c-text-mute:     #9AA1AC;
  --c-tag-fg:        #4F5661;
  --c-border:        #E5E7EA;
  --c-border-strong: #D3D7DC;
  --c-accent:        #00B050;   /* 강조(작은 머리말) */
  --c-link:          #2E6FF2;
  --c-pill:          #131517;   /* 선택된 필터 버튼 배경 */
  --c-on-pill:       #FFFFFF;
  --c-ink:           #131517;   /* 진한 버튼 */
  --c-on-ink:        #FFFFFF;
  --c-tag-accent-bg: #FCE7F3;
  --c-tag-accent-fg: #B32E74;
  --c-shadow:        0 1px 2px rgb(19 21 23 / 5%);

  /* 글꼴 */
  --font-sans:
    'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;

  /* 글자 크기 */
  --fs-hero:       clamp(1.875rem, 1.05rem + 2.9vw, 3rem); /* 30 → 48px */
  --fs-hero-sub:   clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --fs-eyebrow:    1.375rem;  /* 22px */
  --fs-section:    1.5rem;    /* 24px — 분류 제목 */
  --fs-body:       1rem;      /* 16px */
  --fs-meta:       0.875rem;  /* 14px */
  --fs-card-title: 1.25rem;   /* 20px */
  --fs-tag:        0.8125rem; /* 13px */
  --lh-body:       1.7;

  /* 간격 단위 */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 40px;  --sp-8: 48px;
  --sp-9: 64px;  --sp-10: 80px; --sp-11: 96px; --sp-12: 120px;

  /* 레이아웃 — 모바일(~479px) 기준. 아래 미디어쿼리에서 단계별로 바뀝니다. */
  --content-max:    1400px;
  --detail-max:     1000px;
  --pad:            16px;
  --footer-pad:     16px;
  --cols:           1;
  --gap-x:          16px;
  --gap-y:          40px;
  --header-h:       56px;
  --hero-pt:        48px;
  --hero-pb:        40px;    /* 소개 글 → 필터 */
  --filter-gap:     28px;    /* 필터 → 첫 분류 제목 */
  --section-split:  48px;    /* 분류 사이 여백(구분선 위아래) */
  --title-gap:      20px;    /* 분류 제목 → 그리드 */
  --card-text-gap:  14px;    /* 썸네일 → 제목 */
  --promo-pad:      40px;

  /* 모양 */
  --radius-card:   8px;
  --radius-pill:   8px;
  --radius-btn:    6px;
  --radius-tag:    6px;

  /* 본문 폭 */
  --prose-max:        720px;
  --prose-max-detail: 720px;

  /* 움직임 */
  --t-fast: 150ms;
  --t-base: 200ms;
  --ease:   cubic-bezier(0.2, 0, 0.2, 1);
}

@media (min-width: 480px) {
  :root {
    --pad: 24px;
    --footer-pad: 24px;
    --gap-x: 20px;
    --gap-y: 44px;
  }
}

@media (min-width: 768px) {
  :root {
    --pad: 32px;
    --footer-pad: 32px;
    --cols: 2;
    --gap-x: 24px;
    --gap-y: 52px;
    --header-h: 64px;
    --hero-pt: 64px;
    --hero-pb: 60px;
    --filter-gap: 32px;
    --section-split: 60px;
    --title-gap: 24px;
    --card-text-gap: 16px;
    --promo-pad: 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad: 40px;
    --footer-pad: 48px;
    --cols: 3;
    --gap-y: 60px;
    --hero-pt: 56px;
    --hero-pb: 80px;
    --filter-gap: 26px;
    --section-split: 70px;
    --title-gap: 16px;
    --card-text-gap: 18px;
    --promo-pad: 40px;
  }
}

@media (min-width: 1280px) {
  :root {
    --cols: 4;
    --gap-y: 64px;
    --footer-pad: 80px;
  }
}

/* -------------------------------------------------------------
   3. 다크 모드 — 오른쪽 위 버튼으로 켰을 때만
   (운영체제 설정은 따르지 않습니다. 기본은 항상 흰 화면입니다.)
   ------------------------------------------------------------- */
:root[data-theme='dark'] {
  color-scheme: dark;

  /* 매트릭스 다크 — 첫 화면(landing.css)과 같은 검정 · 초록 */
  --c-bg:            #030907;
  --c-surface:       #071510;
  --c-surface-2:     #0C2018;
  --c-text:          #EEF8F0;
  --c-text-sub:      rgb(238 248 240 / 64%);
  --c-text-mute:     rgb(238 248 240 / 42%);
  --c-tag-fg:        #C8FFC2;
  --c-border:        rgb(74 229 72 / 16%);
  --c-border-strong: rgb(74 229 72 / 32%);
  --c-accent:        #4AE548;
  --c-link:          #4AE548;
  --c-pill:          #4AE548;
  --c-on-pill:       #04210A;
  --c-ink:           #4AE548;
  --c-on-ink:        #04210A;
  --c-tag-accent-bg: rgb(74 229 72 / 14%);
  --c-tag-accent-fg: #4AE548;
  --c-shadow:        none;
}
/* 바탕 — 은은한 초록 빛과 격자 */
:root[data-theme='dark'] body {
  background:
    radial-gradient(90% 60% at 80% 0%, rgb(74 229 72 / 8%), transparent 60%),
    linear-gradient(180deg, #030907 0%, #061210 100%) fixed;
}
/* 테마는 하나뿐이라 전환 버튼은 숨깁니다. */
.theme-toggle { display: none !important; }

/* -------------------------------------------------------------
   4. 기본값 정리
   ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-5));
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--c-link);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 화면에는 안 보이고 보조기기에만 읽히는 텍스트 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px; left: var(--sp-3);
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-ink);
  color: var(--c-on-ink);
  border-radius: var(--radius-btn);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus-visible { top: var(--sp-3); }

/* -------------------------------------------------------------
   5. 공통 틀
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container--detail {
  width: 100%;
  max-width: calc(var(--detail-max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.prose { max-width: var(--prose-max); }
.prose--detail { max-width: var(--prose-max-detail); }

/* 작은 머리말 */
.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-accent);
  letter-spacing: -0.01em;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 40px;
  padding-inline: var(--sp-4);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--c-ink);
  color: var(--c-on-ink);
}
.btn--primary:hover { opacity: 0.86; }

.btn--ghost {
  background: var(--c-bg);
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn--ghost:hover { background: var(--c-surface-2); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* -------------------------------------------------------------
   6. 헤더
   ------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--c-border); }

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
  max-width: none;            /* 헤더는 화면 폭 전체를 씁니다 */
  padding-inline: var(--footer-pad);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.wordmark__img {
  width: auto;
  height: 20px;
}
@media (min-width: 768px) {
  .wordmark__img { height: 24px; }
}
.wordmark__img--dark { display: none; }
:root[data-theme='dark'] .wordmark__img--light { display: none; }
:root[data-theme='dark'] .wordmark__img--dark { display: block; }

.header__right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}

/* 로고 옆 주요 메뉴 */
.nav {
  display: none;
  align-items: center;
  gap: var(--sp-5);
}
@media (min-width: 900px) {
  .nav { display: flex; }
}

.nav__link {
  font-size: 0.9375rem;      /* 15px */
  font-weight: 600;
  color: var(--c-text);
  padding-block: var(--sp-2);
  transition: color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--c-text-sub); }
.nav__link[aria-current='page'] { color: var(--c-text); }

/* 아이콘 버튼(테마 · 메뉴) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  padding: 0;
  background: transparent;
  color: var(--c-text);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.icon-btn:hover {
  background: var(--c-surface-2);
}
.icon-btn svg { width: 20px; height: 20px; }


/* 테마 버튼 — 오른쪽 위. 지금 테마에 맞는 아이콘 하나만 보입니다. */
.theme-toggle { border-color: var(--c-border); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: none; }

/* 헤더 오른쪽 버튼 — 좁은 화면에서는 메뉴 안으로 들어갑니다. */
.header__cta { display: none; }
@media (min-width: 900px) {
  .header__cta { display: inline-flex; }
}

.menu-btn { display: inline-flex; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
}

/* 모바일 메뉴 */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--c-bg);
  overflow-y: auto;
  padding-bottom: var(--sp-8);
}
.mobile-menu[data-open='true'] { display: block; }
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: none;
  padding-inline: var(--footer-pad);
}

.mobile-menu__list {
  display: grid;
  gap: var(--sp-1);
  padding-top: var(--sp-5);
}
.mobile-menu__link {
  display: block;
  padding-block: var(--sp-3);
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--c-border);
}

.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-7);
  font-size: var(--fs-meta);
  color: var(--c-text-sub);
}
.mobile-menu__foot a { color: var(--c-text-sub); }
.mobile-menu__foot a:hover { color: var(--c-text); }

body.is-locked { overflow: hidden; }

/* -------------------------------------------------------------
   7. 첫 화면 소개 — 가운데 정렬
   ------------------------------------------------------------- */
.hero {
  padding-top: var(--hero-pt);
  padding-bottom: var(--hero-pb);
  text-align: center;
}

.hero__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero__desc {
  margin-top: var(--sp-5);
  font-size: var(--fs-hero-sub);
  color: var(--c-text-sub);
  line-height: 1.6;
}

.hero__actions {
  justify-content: center;
  margin-top: var(--sp-6);
}

/* 교체용 샘플 표시 */
.sample-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed var(--c-border-strong);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text-mute);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   8. 필터 (가로 스크롤 가능한 알약 버튼)
   ------------------------------------------------------------- */
.filter {
  margin-bottom: var(--filter-gap);
}

.filter__list {
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter__list::-webkit-scrollbar { display: none; }

.filter__btn {
  flex: none;
  height: 40px;
  padding-inline: var(--sp-4);
  background: transparent;
  color: var(--c-text-sub);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filter__btn:hover { background: var(--c-surface-2); color: var(--c-text); }
.filter__btn[aria-pressed='true'] {
  background: var(--c-pill);
  color: var(--c-on-pill);
}
.filter__btn[aria-pressed='true']:hover { background: var(--c-pill); color: var(--c-on-pill); }

/* 개수 표시는 참고 화면에 없어 숨겨 둡니다(읽기용으로만 남김). */
.filter__count { display: none; }

.work__head { display: none; }

/* -------------------------------------------------------------
   9. 분류별 섹션 + 카드 그리드
   ------------------------------------------------------------- */
.work-section + .work-section {
  margin-top: var(--section-split);
  padding-top: var(--section-split);
  border-top: 1px solid var(--c-border);
}
.work-section[hidden] { display: none; }

.work-section__title {
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: var(--title-gap);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
}

.grid__item[hidden] { display: none; }

/* 결과 없음 안내 */
.empty {
  padding: var(--sp-10) 0;
  text-align: center;
  color: var(--c-text-sub);
}
.empty[hidden] { display: none; }
.empty__title { font-size: 1.125rem; font-weight: 700; color: var(--c-text); }
.empty__desc { margin-top: var(--sp-2); font-size: var(--fs-meta); }
.empty .btn { margin-top: var(--sp-5); }

/* -------------------------------------------------------------
   10. 카드 — 테두리 상자 + 아래에 제목과 태그
   ------------------------------------------------------------- */
.card {
  display: block;
}

.card__media {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: var(--fit, cover);
  object-position: var(--pos, 50% 0%);
  transition: transform var(--t-base) var(--ease);
}
.card__media picture { height: 100%; }

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media {
    border-color: var(--c-border-strong);
    box-shadow: 0 6px 20px rgb(19 21 23 / 8%);
  }
  .card:hover .card__img { transform: scale(1.02); }
}

.card:focus-visible { outline: none; }
.card:focus-visible .card__media {
  outline: 2px solid var(--c-link);
  outline-offset: 2px;
}

.card__body {
  padding-top: var(--card-text-gap);
}

.card__title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* 참고 화면의 카드에는 설명 문장이 없습니다. 상세 페이지에서 읽도록 둡니다. */
.card__desc { display: none; }

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: var(--sp-2);
  background: var(--c-surface-2);
  color: var(--c-tag-fg);
  border-radius: var(--radius-tag);
  font-size: var(--fs-tag);
  font-weight: 600;
  line-height: 1;
}

.tag--accent {
  background: var(--c-tag-accent-bg);
  color: var(--c-tag-accent-fg);
}

/* -------------------------------------------------------------
   11. 아래쪽 안내 묶음 (회색 배경 · 흰 상자 3개)
   ------------------------------------------------------------- */
.promo {
  padding-block: var(--sp-9);
  background: var(--c-surface);
}

.promo__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (min-width: 768px) {
  .promo__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.promo__card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: var(--promo-pad);
  background: var(--c-bg);
  border-radius: var(--radius-card);
}

.promo__icon {
  width: 48px; height: 48px;
  margin-bottom: var(--sp-5);
}
.promo__icon svg { width: 100%; height: 100%; }

.promo__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.promo__body {
  margin-top: var(--sp-3);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-text-sub);
}

.promo__link {
  margin-top: auto;
  padding-top: var(--sp-5);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--c-link);
}
.promo__link:hover { text-decoration: underline; }

/* -------------------------------------------------------------
   12. 일반 섹션 (소개 · 연락)
   ------------------------------------------------------------- */
.section {
  padding-block: var(--section-split);
  border-top: 1px solid var(--c-border);
}

.section__head { margin-bottom: var(--title-gap); }

.section__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-section);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__desc {
  margin-top: var(--sp-3);
  color: var(--c-text-sub);
  font-size: 0.9375rem;
  max-width: var(--prose-max);
}

.about__layout {
  display: grid;
  gap: var(--sp-8);
}
@media (min-width: 1024px) {
  .about__layout {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: var(--sp-9);
  }
}

.about__text {
  color: var(--c-text-sub);
  font-size: 0.9375rem;
  max-width: var(--prose-max);
}
.about__text p + p { margin-top: var(--sp-4); }

.about__grid {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 640px) {
  .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.feature {
  padding: var(--sp-6);
  background: var(--c-surface);
  border-radius: var(--radius-card);
}
.feature__title { font-size: 1.0625rem; font-weight: 700; }
.feature__body {
  margin-top: var(--sp-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-text-sub);
}

/* 연락 */
.contact__box {
  padding: var(--sp-8);
  background: var(--c-surface);
  border-radius: var(--radius-card);
}
.contact__mail {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.contact__mail:hover { color: var(--c-link); }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.contact__note {
  margin-top: var(--sp-5);
  font-size: var(--fs-meta);
  color: var(--c-text-sub);
}

/* -------------------------------------------------------------
   13. 푸터 — 화면 폭을 쓰는 여러 열
   ------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-9) var(--footer-pad) var(--sp-7);
  background: var(--c-bg);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  align-items: flex-start;
  max-width: none;
  padding-inline: 0;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-7) var(--sp-5);
  flex: 1 1 auto;
}
@media (min-width: 640px) {
  .footer__cols { grid-template-columns: repeat(3, 170px); }
}
@media (min-width: 1024px) {
  .footer__cols { grid-template-columns: repeat(5, 170px); }
}

.footer__col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-text);
}

.footer__col ul { margin-top: var(--sp-4); }
.footer__col li + li { margin-top: var(--sp-3); }
.footer__col a {
  font-size: var(--fs-meta);
  color: var(--c-text-sub);
}
.footer__col a:hover { color: var(--c-text); text-decoration: underline; }

.footer__social {
  display: flex;
  gap: var(--sp-3);
  margin-left: auto;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  color: var(--c-text-sub);
  border-radius: 50%;
}
.footer__social a:hover { color: var(--c-text); background: var(--c-surface-2); }
.footer__social svg { width: 20px; height: 20px; }

.footer__legal {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--c-text-mute);
}
.footer__legal a { color: var(--c-text-sub); }
.footer__legal a:hover { text-decoration: underline; }

/* 예전 마크업 호환 */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-meta);
  color: var(--c-text-sub);
}
.footer__links a:hover { color: var(--c-text); }

/* -------------------------------------------------------------
   14. 상세 페이지
   ------------------------------------------------------------- */
.detail__top { padding-top: var(--sp-6); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--c-text-sub);
}
.back-link:hover { color: var(--c-text); }
.back-link svg { width: 16px; height: 16px; }

.detail__header { padding-block: var(--sp-7) var(--sp-6); }

.detail__title {
  margin-top: var(--sp-3);
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.detail__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-hero-sub);
  color: var(--c-text-sub);
  max-width: var(--prose-max-detail);
}

.meta {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}
@media (min-width: 480px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.meta__term {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}
.meta__desc {
  margin-top: var(--sp-2);
  font-size: 0.9375rem;
  font-weight: 600;
}
.meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

.figure { margin: 0; }
.figure__frame {
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  background: var(--c-surface);
}
.figure__frame img { width: 100%; height: auto; }
/* 대표 이미지가 아직 없을 때의 안내 */
.figure__pending {
  padding: var(--sp-6);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-card);
  background: var(--c-surface);
  font-size: var(--fs-meta);
  color: var(--c-text-sub);
  line-height: 1.7;
}
.figure__pending code {
  font-size: 0.8125rem;
  color: var(--c-text);
  word-break: break-all;
}

.figure__caption {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--c-text-mute);
}

.detail__hero { margin-top: 0; }

.detail__body { padding-top: var(--sp-9); }

.detail__section { padding-bottom: var(--sp-9); }
.detail__section > * + * { margin-top: var(--title-gap); }
.detail__section .prose--detail p + p { margin-top: var(--sp-4); }

.bullets {
  display: grid;
  gap: var(--sp-3);
  max-width: var(--prose-max-detail);
}
.bullets li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: 0.9375rem;
  color: var(--c-text-sub);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.steps {
  display: grid;
  gap: var(--sp-6);
  counter-reset: step;
  max-width: var(--prose-max-detail);
}
.steps > li { counter-increment: step; }
.steps__title {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  font-size: 1.0625rem;
  font-weight: 700;
}
.steps__title::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.8125rem;
  color: var(--c-text-mute);
}
.steps__body {
  margin-top: var(--sp-2);
  padding-left: calc(var(--sp-3) + 1.4em);
  font-size: 0.9375rem;
  color: var(--c-text-sub);
}

.gallery {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pager {
  display: grid;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
}
@media (min-width: 768px) {
  .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pager__link {
  display: block;
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pager__link:hover { border-color: var(--c-border-strong); background: var(--c-surface); }
.pager__link--next { text-align: left; }
@media (min-width: 768px) {
  .pager__link--next { text-align: right; }
}

.pager__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}
.pager__title {
  display: block;
  margin-top: var(--sp-2);
  font-size: 1.0625rem;
  font-weight: 700;
}
.pager__empty {
  padding: var(--sp-5);
  font-size: var(--fs-meta);
  color: var(--c-text-mute);
}

.ext-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* -------------------------------------------------------------
   15. 손가락으로 누르는 화면 — 버튼을 44×44 이상으로
   (마지막에 두어 앞의 높이 선언을 덮어씁니다)
   ------------------------------------------------------------- */
@media (max-width: 767px), (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .filter__btn { height: 44px; }
  .btn { height: 44px; }
}

/* -------------------------------------------------------------
   매트릭스 전환 — 다른 페이지에서 넘어온 순간 걷히기 전까지 검게 덮음 (src/js/nav-glitch.js)
   ------------------------------------------------------------- */
html.glitch-in body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  /* 걷히기 전 아주 잠깐도 멈춰 보이지 않게 초록 줄이 흘러내림 */
  background:
    repeating-linear-gradient(to bottom, rgb(74 229 72 / 10%) 0 2px, transparent 2px 18px),
    #010504;
  animation: glitch-in-flow 0.6s linear infinite;
}
@keyframes glitch-in-flow { to { background-position: 0 18px, 0 0; } }

/* -------------------------------------------------------------
   마우스 커서 — 매트릭스 초록. 누를 수 있는 곳은 채워진 초록 화살표.
   마우스를 쓰는 기기에서만(터치 화면은 그대로).
   ------------------------------------------------------------- */
@media (pointer: fine) {
  html, body { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2728%27%20height%3D%2728%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cpath%20d%3D%27M3%202%20L3%2022%20L8.5%2016.8%20L12.2%2025%20L15.6%2023.5%20L12%2015.6%20L19.5%2015.6%20Z%27%20fill%3D%27%2304210A%27%20stroke%3D%27%234AE548%27%20stroke-width%3D%271.6%27%20stroke-linejoin%3D%27round%27/%3E%3Ccircle%20cx%3D%2722.5%27%20cy%3D%2722.5%27%20r%3D%272%27%20fill%3D%27%234AE548%27/%3E%3C/svg%3E") 3 2, auto; }
  a, button, [role='button'], label, summary, select, .lp-nav a, .card { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2728%27%20height%3D%2728%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cpath%20d%3D%27M3%202%20L3%2022%20L8.5%2016.8%20L12.2%2025%20L15.6%2023.5%20L12%2015.6%20L19.5%2015.6%20Z%27%20fill%3D%27%234AE548%27%20stroke%3D%27%23C8FFC2%27%20stroke-width%3D%271.6%27%20stroke-linejoin%3D%27round%27/%3E%3Ccircle%20cx%3D%2722.5%27%20cy%3D%2722.5%27%20r%3D%273%27%20fill%3D%27none%27%20stroke%3D%27%23C8FFC2%27%20stroke-width%3D%271.4%27/%3E%3C/svg%3E") 3 2, pointer !important; }
  .pf-viewport.is-dragging { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2728%27%20height%3D%2728%27%20viewBox%3D%270%200%2028%2028%27%3E%3Cpath%20d%3D%27M3%202%20L3%2022%20L8.5%2016.8%20L12.2%2025%20L15.6%2023.5%20L12%2015.6%20L19.5%2015.6%20Z%27%20fill%3D%27%234AE548%27%20stroke%3D%27%23C8FFC2%27%20stroke-width%3D%271.6%27%20stroke-linejoin%3D%27round%27/%3E%3Ccircle%20cx%3D%2722.5%27%20cy%3D%2722.5%27%20r%3D%273%27%20fill%3D%27none%27%20stroke%3D%27%23C8FFC2%27%20stroke-width%3D%271.4%27/%3E%3C/svg%3E") 3 2, grabbing !important; }
  input, textarea { cursor: text; }
}
/* 커서를 따라오는 빛 고리(app.js) */
.cursor-ring {
  position: fixed;
  left: 0; top: 0;
  z-index: 300;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px solid rgb(74 229 72 / 55%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgb(74 229 72 / 35%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms, width 180ms, height 180ms, margin 180ms, background-color 180ms;
}
.cursor-ring.is-on { opacity: 1; }
.cursor-ring.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgb(74 229 72 / 8%); }
.cursor-ring.is-down { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* -------------------------------------------------------------
   버튼 호버 — 올리는 순간 한 번 살짝 지직, 그 뒤로는 깔끔하게 초록색으로 고정
   (src/js/nav-glitch.js 가 fx-glitch 를 잠깐 붙임)
   ------------------------------------------------------------- */
.lp-nav a:hover, .co-col a:hover, .co-social a:hover, .footer a:hover,
.mobile-menu__link:hover, .back-link:hover, .nav__link:hover {
  color: #4AE548 !important;
}
.lp-cta:hover, .lp-sound:hover, .lp-upload:hover, .btn--ghost:hover, .sc-more:hover, .lp-menu-btn:hover {
  color: #4AE548 !important;
  border-color: #4AE548 !important;
}
.fx-glitch { animation: fx-glitch 180ms steps(1, end) 1; }
@keyframes fx-glitch {
  0%   { transform: translateX(-1px); text-shadow: 1px 0 rgb(74 229 72 / 70%); }
  35%  { transform: translateX(1px); text-shadow: -1px 0 rgb(74 229 72 / 70%); }
  70%  { transform: none; text-shadow: none; }
  100% { transform: none; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-glitch { animation: none; }
}
/* 소리가 아직 잠겨 있을 때 — 소리 버튼이 맥동하며 눌러 달라고 알림 */
.lp-sound[data-hint] {
  border-color: #4AE548;
  color: #4AE548;
  animation: sound-hint 1.6s ease-in-out infinite;
}
@keyframes sound-hint {
  0%, 100% { box-shadow: 0 0 0 0 rgb(74 229 72 / 0%); }
  50% { box-shadow: 0 0 0 6px rgb(74 229 72 / 18%), 0 0 18px rgb(74 229 72 / 40%); }
}
