/* =========================================================
   Editorial Portfolio — style.css
   ========================================================= */
:root {
  --safe-top: env(safe-area-inset-top, 0px);       /* 노치·상태 표시줄 영역 (화면 끝까지 채울 때) */
  --safe-bottom: env(safe-area-inset-bottom, 0px); /* 아래 홈 막대 영역 */
  --bg: #121212;
  --fg: #f2f2f0;
  --muted: #8a8a88;
  --accent: #FFD400;      /* 개나리 노랑 */
  --accent-2: #FF2D95;    /* 형광 분홍 — 섹션 큰 제목 */
  --accent-3: #00B2FF;    /* 형광 파랑 — 로고·메일 주소 */
  --accent-4: #B6FF00;    /* 형광 연두 — 섹션 소제목 */
  --accent-5: #FF6A00;    /* 형광 주황 — 메뉴 마우스 오버 */
  --line: rgba(255, 255, 255, 0.14);
  --ph: #3a3a3a;          /* 이미지 자리 회색 음영 */
  --ph-2: #4a4a4a;
  --radius: 6px;
  --radius-btn: 4px;      /* 버튼: 사각형 + 살짝 모따기 */
  --pad: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
section { padding: clamp(80px, 12vw, 180px) var(--pad); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-4);
}
/* 연두색 소제목 앞뒤에 [ ] 괄호 — 화면 읽기 프로그램은 읽지 않음 */
.eyebrow::before { content: "[ "; content: "[ " / ""; }
.eyebrow::after  { content: " ]"; content: " ]" / ""; }

/* 섹션 큰 제목 — 형광 분홍 */
.statement-text,
.works-title,
.about-title { color: var(--accent-2); }
.contact-mail { color: var(--accent-3); }

/* ---------- Image placeholder (회색 음영) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--ph) 0%, var(--ph-2) 50%, var(--ph) 100%);
}
.media::after {                    /* 경로 라벨 */
  content: attr(data-label);
  position: absolute;
  left: 12px; bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, Menlo, monospace;
}
.media.is-loaded::after { display: none; }
.media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.media--hero      { aspect-ratio: 16 / 9; }
.media--landscape { aspect-ratio: 4 / 3; }
.media--portrait  { aspect-ratio: 3 / 4; }
.media--square    { aspect-ratio: 1 / 1; }
.media--tall      { aspect-ratio: 2 / 3; }
.media--thumb     { width: 48px; height: 48px; flex: none; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(18px + var(--safe-top)) var(--pad) 18px;   /* 앱 모드: 상태 표시줄 아래로 */
  /* 스크롤 시 아래 내용 위에서도 로고가 읽히도록 은은한 어둠 */
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0));
  transition: background 0.4s;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo { white-space: nowrap; color: var(--accent-3); }
.logo-sub { font-weight: 500; letter-spacing: 0; }
.menu-btn {
  position: relative;
  font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 14px;
  border: 1px solid currentColor;
  border-radius: var(--radius-btn);
  transition: background 0.3s, color 0.3s;
}
.menu-btn:hover { background: var(--fg); color: var(--bg); }
/* 보이는 크기는 그대로, 손가락으로 누르는 영역만 44px 이상으로 */
.menu-btn::after,
.filter::after { content: ""; position: absolute; inset: -8px -4px; }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(120px + var(--safe-top)) var(--pad) calc(32px + var(--safe-bottom));
  background: var(--fg); color: var(--bg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-list a {
  display: inline-block;
  font-size: clamp(44px, 9vw, 140px);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.04em; text-transform: uppercase;
  transition: color 0.3s;
}
.menu-list a em { font-style: normal; font-size: 0.25em; vertical-align: super; letter-spacing: 0; }
.menu-list a:hover,
.menu-list a:focus-visible { color: var(--accent-5); outline: none; }
.menu-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 6px 24px;   /* 좁은 화면에서 줄이 바뀌어도 메일 주소와 글이 붙지 않게 */
  font-size: 14px;
}
body.menu-open .site-header { background: transparent; color: var(--bg); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(72px + var(--safe-top)); padding-bottom: 0; }
/* 한 줄 맞춤 제목 — JS(initFitText)가 요소 폭에 꽉 차게 글자 크기를 계산 */
[data-fit-line] { white-space: nowrap; }
.fit-text { display: inline-block; }
/* 휴대폰에서는 .fit-seg 마다 줄을 나눠(아래 미디어쿼리) 더 크게 보이게 한다.
   .fit-text 폭 = 가장 긴 줄 폭이 되므로 JS 계산은 그대로 동작한다. */

.hero-title {
  font-size: 7vw;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--accent);
  margin-bottom: clamp(16px, 2vw, 28px);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }
/* 대표사진 슬라이더 */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;
}
.hero-track {
  display: flex;
  transition: transform 1s var(--ease);
  will-change: transform;
}
.hero-slide { flex: 0 0 100%; }
.hero-slide .media { border-radius: 0; }
.hero-slide .media img { transform: scale(1.06); transition: transform 6s linear; }
.hero-slide.is-active .media img { transform: scale(1); }     /* 천천히 줌아웃 */
/* 이미지가 없을 때도 넘어가는 게 보이도록 슬라이드별 회색 톤 차이 */
.hero-slide:nth-child(2) .media { --ph: #333; --ph-2: #555; }
.hero-slide:nth-child(3) .media { --ph: #404040; --ph-2: #3a3a3a; }
.hero-slide:nth-child(4) .media { --ph: #2f2f2f; --ph-2: #484848; }

/* 점: 오른쪽 아래 구석 */
.hero-dots {
  position: absolute; right: clamp(6px, 1.2vw, 18px); bottom: clamp(2px, 0.8vw, 12px);
  display: flex;
}
/* 버튼은 44px(누르기 쉬운 크기), 보이는 점은 12px */
.hero-dot {
  display: grid; place-items: center;
  width: 32px; height: 44px; padding: 0;   /* 점 간격 20px, 누르는 높이 44px */
}
.hero-dot::before {
  content: "";
  width: 12px; height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.hero-dot:hover::before { transform: scale(1.2); }
.hero-dot.is-active::before { background: var(--accent); border-color: var(--accent); }
.hero-dot:focus-visible { outline: none; }
.hero-dot:focus-visible::before { outline: 2px solid var(--accent); outline-offset: 3px; }


/* ---------- Statement ---------- */
.statement { max-width: 1400px; margin-inline: auto; padding-top: clamp(40px, 5vw, 80px); }   /* 대표사진과 가깝게, 화면 가운데 */
.statement > .eyebrow { text-align: center; }
.statement-text {
  margin-top: 24px;
  text-align: center;
  text-wrap: balance;               /* 줄 길이를 고르게 */
  font-size: clamp(28px, 4.4vw, 72px);
  font-weight: 620; line-height: 1.12;
  letter-spacing: -0.03em;
}

.statement-text .ph { white-space: nowrap; }   /* 구절 중간에서는 줄을 바꾸지 않음 */

.statement-sub {
  margin-top: clamp(28px, 3vw, 48px);
  font-size: 17px; line-height: 1.75;
  color: #cfcfcd;
  text-align: center;                 /* 위 영어 문장과 같은 가운데 정렬 */
  word-break: keep-all;               /* 좁은 화면에서도 단어 중간에서 끊지 않음 */
}
/* 넓은 화면: "적어 둔 문장들." 에서만 줄을 바꿔 정확히 두 줄 */
@media (min-width: 1100px) {
  .statement-sub .sub-line { white-space: nowrap; }
}
.statement-sub em { font-style: normal; color: var(--fg); }

/* ---------- 바로가기 버튼 (작가 노트 아래) ---------- */
.jump-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: clamp(32px, 4vw, 56px);
}
.jump-link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 22px;
  border: 2px solid var(--fg); border-radius: var(--radius-btn);      /* 굵은 선 */
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em;  /* 굵은 글자 */
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.jump-link:hover, .jump-link:focus-visible {
  background: var(--accent-5); border-color: var(--accent-5); color: var(--bg); outline: none;
}

/* ---------- 서랍 섹션 (Practice · Works · Store) ----------
   평소엔 큰 제목 줄만 보이고, 누르면 내용이 펼쳐진다. */
.drawer-section {
  padding-block: 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;               /* 고정 헤더 아래로 맞춰 이동 */
}
.section-toggle {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  width: 100%;
  padding: clamp(22px, 2.6vw, 40px) 0;
  text-align: left;
  color: var(--fg);
  transition: color 0.3s;
}
.section-toggle-label {
  font-size: clamp(32px, 5vw, 80px);
  font-weight: 800; line-height: 1; letter-spacing: -0.04em;
}
.section-toggle-meta {
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
}
.section-toggle .drawer-icon {
  margin-left: auto;
  font-size: clamp(28px, 3vw, 44px); font-weight: 300; line-height: 1;
  transition: transform 0.4s var(--ease);
}
.section-toggle:hover, .section-toggle:focus-visible { color: var(--accent-5); outline: none; }
.drawer-section.is-open .section-toggle .drawer-icon { transform: rotate(45deg); }

.section-body {
  display: grid; grid-template-rows: 0fr;          /* 접힘 */
  transition: grid-template-rows 0.6s var(--ease);
}
.drawer-section.is-open .section-body { grid-template-rows: 1fr; }   /* 펼침 */
.drawer-section.is-jumping .section-body { transition: none; }      /* 링크로 열 때는 즉시 */
.section-inner { min-height: 0; overflow: hidden; }
.section-content { padding-bottom: clamp(60px, 8vw, 120px); }

/* ---------- Practice (capabilities) ---------- */
.section-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pad);
}
.cap-no { margin-top: 14px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cap h3 { margin-top: 2px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: -0.01em; }
.cap p:last-child { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.cap:hover .media img { transform: scale(1.05); }
.big-link {
  display: block; width: fit-content;
  margin: clamp(60px, 8vw, 120px) auto 0;
  font-size: clamp(24px, 3.4vw, 52px);
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--muted);
  transition: color 0.3s;
}
.big-link span { display: inline-block; transition: transform 0.4s var(--ease); }
.big-link:hover { color: var(--fg); }
.big-link:hover span { transform: translateX(10px); }

/* ---------- Works (staggered editorial grid) ---------- */
.works-title {
  font-size: 4.4vw;
  font-weight: 650; line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(48px, 7vw, 100px); }
.filter {
  position: relative;
  font-size: 11px; letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--muted);
  transition: all 0.3s;
}
.filter:hover, .filter.is-active { color: var(--bg); background: var(--fg); border-color: var(--fg); }

/* 메이슨리(핀터레스트형) — 사진 비율대로 높이가 정해지고 빈칸 없이 채움.
   JS(main.js initMasonry)가 각 카드 높이만큼 grid-row span을 계산한다. */
.work-grid {
  --cols: 3;
  --row-gap: 40px;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--pad);
  row-gap: var(--row-gap);             /* JS 없을 때의 기본 간격 */
  align-items: start;
}
.work-grid.is-masonry {
  grid-auto-rows: 1px;                 /* 1px 단위로 높이 맞춤 */
  row-gap: 0;
}
.work {
  display: block;
  transition: opacity 0.4s;
}
/* 실제 사진이 들어오면 원본 비율 그대로 */
.media[data-fit="natural"].is-loaded { aspect-ratio: auto; }
.media[data-fit="natural"].is-loaded img { position: static; height: auto; }
.work.is-hidden { display: none; }
.work .tag {
  position: absolute; top: 10px; left: 12px; z-index: 1;
  font-size: 10px; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
/* 글쓰기 카드 — 이미지 대신 인용문 */
.text-card {
  position: relative;
  padding: clamp(48px, 4vw, 64px) clamp(20px, 2vw, 32px) clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #1b1b1b;
  transition: border-color 0.3s;
}
.text-card blockquote {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500; line-height: 1.45; letter-spacing: -0.02em;
  word-break: keep-all;
}
.text-card--light { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.text-card--light .tag { color: var(--fg); }
.work--text:hover .text-card { border-color: var(--muted); }

.work .meta { margin-top: 14px; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.work h3 { margin-top: 6px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; line-height: 1.35; }
.work:hover .media img { transform: scale(1.04); }


/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);   /* 한 줄 제목이 칸을 밀어내지 않도록 */
  gap: clamp(32px, 6vw, 120px);
  border-top: 1px solid var(--line);
}
/* 프로필 사진: 오른쪽 글 칸과 위아래 길이를 맞춤 (원본 비율 유지 안 함) */
.about-media { display: flex; }
.about-media .drawer-body,
.about-media .drawer-inner { display: flex; flex: 1; }
.about-media .media { flex: 1; aspect-ratio: auto; }

/* 서랍탭 버튼: 데스크톱에서는 숨김 */
.drawer-toggle { display: none; }

.about-title {
  margin-top: 16px;
  font-size: 4.2vw;
  font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
}
.about-text { margin-top: 28px; max-width: none; font-size: 17px; color: #cfcfcd; }
/* 지정한 줄바꿈은 한 줄이 다 들어가는 넓은 화면에서만 (좁으면 자연스럽게 흐름) */
@media (max-width: 1279px) { .about-text br { display: none; } }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.facts > div { padding-top: 16px; }
.facts dt { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin-top: 6px; font-size: clamp(22px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.lists { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; margin-top: 56px; }
.list ul { margin-top: 14px; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li span { display: inline-block; width: 52px; color: var(--muted); }

/* ---------- Store ---------- */
.badge {
  font-size: 10px; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: var(--radius-btn);
  border: 1px solid var(--muted); color: var(--muted);
}
.store-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); }
.product .media { opacity: 0.7; }
.product-kind { margin-top: 12px; font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.product-name { margin-top: 2px; font-size: 14px; }
.product-price { font-size: 13px; color: var(--muted); }

/* ---------- Contact ---------- */
/* 연락처 — 프로필 내용 바로 아래 */
.about-contact {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;   /* 메뉴에서 눌렀을 때 고정 머리말에 가리지 않게 */
}
.contact-mail {
  display: inline-block; margin-top: 12px;
  font-size: clamp(20px, 3.4vw, 52px);   /* 프로필 칸 폭 안에 한 줄로 들어오게 */
  font-weight: 700; letter-spacing: -0.04em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.contact-mail:hover { background-size: 100% 2px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px var(--pad) calc(28px + var(--safe-bottom));
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.foot-social { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--fg); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; right: var(--pad); bottom: calc(var(--pad) + var(--safe-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 12px;
  width: 260px; padding: 8px 44px 8px 8px;
  border-radius: 10px;
  background: rgba(40, 40, 40, 0.8);
  backdrop-filter: blur(14px);
  /* 숨김: 아래 여백까지 포함해 화면 밖으로 완전히 내리고, 다 내려간 뒤 숨긴다 */
  transform: translateY(calc(100% + var(--pad) + 16px));
  visibility: hidden;
  transition: transform 0.7s var(--ease), visibility 0s linear 0.7s;
}
.toast.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.7s var(--ease), visibility 0s;
}
.toast-body { display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; }
.toast-body span { color: var(--muted); font-size: 11px; }
.toast-close {
  position: absolute; top: 0; right: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px;                /* 누르기 쉬운 크기 */
  font-size: 18px; color: var(--muted);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .section-body, .section-toggle .drawer-icon { transition: none; }
  .reveal, .hero-title .line > span { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-track, .hero-slide .media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { --cols: 2; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-media .media { aspect-ratio: 3 / 4; }   /* 한 칸으로 쌓일 땐 높이 기준이 없으니 3:4 */

  /* 프로필 사진: "작업실 사진 보기" 서랍탭으로 접기 */
  .about-media { display: block; }
  .drawer-toggle {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; min-height: 48px; padding: 0 2px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-size: 14px; letter-spacing: 0.02em; color: var(--fg);
  }
  .drawer-icon { font-size: 20px; line-height: 1; transition: transform 0.4s var(--ease); }
  .about-media.is-open .drawer-icon { transform: rotate(45deg); }
  .drawer-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .about-media .drawer-body {
    display: grid; grid-template-rows: 0fr;          /* 접힘 */
    transition: grid-template-rows 0.5s var(--ease);
  }
  .about-media.is-open .drawer-body { grid-template-rows: 1fr; }   /* 펼침 */
  .about-media .drawer-inner { display: block; min-height: 0; overflow: hidden; }
  .about-media.is-open .drawer-inner { padding-top: 16px; }
  .lists { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  /* 헤더: 로고가 두 줄이라 높아짐 → 뒤 내용이 비치지 않게 더 진한 배경 */
  .site-header {
    padding-top: calc(14px + var(--safe-top)); padding-bottom: 14px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .logo { line-height: 1.1; }
  .logo-sub { display: block; margin-top: 2px; font-size: 10px; letter-spacing: 0.06em; }
  .hero { padding-top: calc(80px + var(--safe-top)); }

  /* 큰 제목: 한 줄 대신 두 줄로 나눠 더 크게 */
  .fit-seg { display: block; }
  .drawer-section { scroll-margin-top: 80px; }
  .section-toggle-meta { display: none; }   /* 휴대폰은 제목만 */
  .drawer-section#store .section-toggle-meta { display: inline; }
  .br-wide { display: none; }      /* 휴대폰은 정해 둔 줄바꿈 대신 폭에 맞춰 고르게 */
  .hero-title { line-height: 0.92; }
  .works-title, .about-title { line-height: 1.08; }

  /* 대표사진 점: 휴대폰에서는 작게, 오른쪽 아래 구석에 (넘기기는 스와이프로) */
  .hero-dots { right: 6px; bottom: 2px; }
  .hero-dot { width: 14px; height: 22px; }
  .hero-dot::before { width: 6px; height: 6px; border-width: 1px; }

  /* 작업 목록: 핀터레스트 앱처럼 2열 */
  .work-grid { --cols: 2; --row-gap: 28px; column-gap: 10px; }
  .work .tag { top: 6px; left: 6px; font-size: 9px; padding: 2px 6px; }
  .work .meta { margin-top: 8px; font-size: 9px; letter-spacing: 0.04em; }
  .work h3 { margin-top: 3px; font-size: 13px; line-height: 1.35; }
  .text-card { padding: 34px 12px 16px; }
  .text-card blockquote { font-size: 15px; line-height: 1.5; }
  .work .media::after { font-size: 9px; left: 6px; bottom: 6px; right: 6px; word-break: break-all; }

  /* 푸터 링크: 누르기 쉬운 높이 */
  .site-footer { flex-direction: column; align-items: flex-start; }
  .foot-social a { display: inline-block; padding: 13px 0; }

  .toast { left: var(--pad); width: auto; }
}

/* ---------- 휴대폰 첫 입장 화면 (ENTER 버튼) ----------
   html.intro-seen 이 없을 때(휴대폰 + 이 창에서 처음)만 보인다. */
.intro { display: none; }
@media (max-width: 560px) {
  html:not(.intro-seen) .intro {
    display: block;
    position: fixed; inset: 0; z-index: 100;
    background: var(--bg);
    transition: opacity 0.6s var(--ease);
  }
  html:not(.intro-seen) body { overflow: hidden; }
  /* 입장 전에는 노란 제목 등장 동작을 멈춰 두었다가, 들어오는 순간 재생 */
  html:not(.intro-seen) .hero-title .line > span { animation-play-state: paused; }
}
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro-media { position: absolute; inset: 0; border-radius: 0; }
.intro-media::before {             /* 아래쪽 글자가 읽히도록 어둡게 */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 45%);
}
.intro-content {
  position: absolute; left: var(--pad); right: var(--pad); z-index: 2;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.intro-name {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--accent-3);
}
.intro-name span {
  display: block; margin-top: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--fg);
}
.intro-enter {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px 0 calc(18px + 0.2em);   /* 오른쪽 자간만큼 왼쪽 보정 → 글자 가운데 */
  border: 2px solid var(--fg); border-radius: var(--radius-btn);
  background: rgba(18, 18, 18, 0.12);
  color: var(--fg); font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
/* 주황 강조: 누르는 순간·키보드 이동 때만. 마우스 올림은 마우스가 있는 기기에서만 */
.intro-enter:focus-visible, .intro-enter:active {
  background: var(--accent-5); border-color: var(--accent-5); color: var(--bg); outline: none;
}
@media (hover: hover) {
  .intro-enter:hover { background: var(--accent-5); border-color: var(--accent-5); color: var(--bg); }
}
