/* Portfolio — glass / orange accent / soft depth (reference-inspired) */

:root {
  --orange: #ff5c2b;
  --orange-deep: #e8481a;
  --orange-soft: rgba(255, 92, 43, 0.14);
  --ink: #14121a;
  --ink-soft: #3d3a45;
  --muted: #6b6674;
  --line: rgba(255, 255, 255, 0.55);
  --line-dark: rgba(20, 18, 26, 0.08);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --violet-deep: #1e1a2e;
  --violet-mid: #2d2640;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 24px 80px rgba(20, 18, 40, 0.09), 0 8px 28px rgba(20, 18, 40, 0.05);
  --shadow-lift: 0 32px 100px rgba(255, 92, 43, 0.12), 0 16px 48px rgba(20, 18, 40, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --max: 1120px;
  --read: 40rem;
  --fapis-brand: #777777;
  --miso-brand: #2486ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: fixed radial-gradient(1200px 800px at 85% -10%, rgba(255, 140, 90, 0.18), transparent 55%),
    radial-gradient(900px 700px at -15% 30%, rgba(120, 100, 200, 0.12), transparent 50%),
    linear-gradient(165deg, #eceaf3 0%, #f4f1f8 38%, #faf6f2 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ---------- layout ---------- */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

@media (min-width: 768px) {
  .shell {
    padding: 0 2rem 6rem;
  }
}

/* ---------- nav (glass) ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.65rem 0;
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

@media (min-width: 768px) {
  .site-nav {
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #ff7a4a, var(--orange-deep));
  box-shadow: 0 8px 24px rgba(255, 92, 43, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--ink-soft);
}

.nav-links a {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

/* ---------- hero ---------- */
.hero {
  padding: 3rem 0 3.5rem;
  position: relative;
}

@media (min-width: 900px) {
  .hero {
    padding: 4.5rem 0 4rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.hero__glow {
  position: absolute;
  inset: -20% -30% auto -20%;
  height: min(70vh, 520px);
  background: radial-gradient(closest-side, rgba(255, 92, 43, 0.35), transparent 72%);
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

/* 산세리프만 사용 — 이탤릭·세리프 라벨 제거 */
.hero__kicker {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero__lead {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7a4e, var(--orange-deep));
  box-shadow: 0 12px 36px rgba(255, 92, 43, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 16px 44px rgba(255, 92, 43, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--glass-strong);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.btn--ghost:hover {
  transform: translateY(-1px);
}

/* hero visual — layered glass “folder” */
.hero__visual {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  min-height: 280px;
}

@media (min-width: 900px) {
  .hero__visual {
    margin-top: 0;
    min-height: 340px;
  }
}

.stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.stack__sheet {
  position: absolute;
  width: 78%;
  height: 200px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f3f1f7 100%);
  border: 10px solid #fff;
  box-shadow: 0 20px 50px rgba(20, 18, 40, 0.12);
}

.stack__sheet--1 {
  top: 0;
  left: 4%;
  transform: rotate(-7deg);
  z-index: 1;
}

.stack__sheet--2 {
  top: 18px;
  right: 2%;
  transform: rotate(5deg);
  z-index: 2;
  opacity: 0.92;
}

.stack__sheet--3 {
  top: 42px;
  left: 14%;
  transform: rotate(-2deg);
  z-index: 3;
  opacity: 0.88;
}

.stack__sheet::after {
  content: "";
  position: absolute;
  inset: 28px 22px auto 22px;
  height: 6px;
  border-radius: 3px;
  background: rgba(20, 18, 26, 0.06);
  box-shadow: 0 14px 0 rgba(20, 18, 26, 0.05), 0 28px 0 rgba(20, 18, 26, 0.04);
}

.stack__glass {
  position: relative;
  margin-top: 120px;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  z-index: 5;
}

.stack__glass-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stack__glass-sub {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.stack__badge {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* ---------- sections ---------- */
.section {
  padding: 3rem 0;
}

.section--tight {
  padding-top: 1rem;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.section__label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* dark glass band (purple reference) */
.band-dark {
  margin: 2rem -1.25rem;
  padding: 3rem 1.25rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(35, 28, 55, 0.94), rgba(22, 18, 38, 0.92));
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .band-dark {
    margin: 2rem 0;
    padding: 3rem 2.5rem;
  }
}

.band-dark p {
  margin: 0;
  max-width: 52ch;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.band-dark strong {
  color: #fff;
  font-weight: 650;
}

/* ---------- work grid ---------- */
.work-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  min-height: 220px;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--orange-soft), transparent 65%);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.project-card--soon {
  opacity: 0.72;
  pointer-events: none;
}

.project-card--soon::after {
  content: "준비 중";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(20, 18, 26, 0.06);
  color: var(--muted);
}

.project-card__co {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0 0 0.35rem;
}

.project-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.project-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.project-card__foot {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.project-card__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--ink);
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-card__arrow {
  background: #fff;
  transform: translateX(3px);
}

/* ---------- case study (inner pages) ---------- */
.case-header {
  padding: 2.5rem 0 1.5rem;
}

.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.crumb a {
  border-bottom: 1px solid transparent;
}

.crumb a:hover {
  border-bottom-color: var(--orange);
  color: var(--ink);
}

.case-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.case-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.case-meta .pill {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.case-body {
  max-width: var(--read);
}

.case-panel {
  margin-bottom: 1.15rem;
  padding: 1.75rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 40px rgba(20, 18, 40, 0.05);
}

@media (min-width: 640px) {
  .case-panel {
    padding: 2rem 1.75rem;
  }
}

.case-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-panel h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
}

.case-panel h3:first-of-type {
  margin-top: 0;
}

.case-panel p {
  margin: 0 0 1rem;
  color: var(--ink);
  line-height: 1.75;
}

.case-panel p:last-child {
  margin-bottom: 0;
}

.case-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
}

.case-panel li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
}

.case-step {
  margin-top: 1rem;
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(245, 243, 250, 0.85);
  border: 1px solid rgba(20, 18, 26, 0.06);
}

.case-step:first-of-type {
  margin-top: 0.5rem;
}

.case-step h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.case-step ul {
  padding-left: 1.1rem;
}

.case-step .note {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(20, 18, 26, 0.08);
  font-size: 0.92rem;
}

/* ---------- contact / footer ---------- */
.contact-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card p,
.contact-card a {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-card a:hover {
  color: var(--orange-deep);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(20, 18, 26, 0.06);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* subtle entrance */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy > * {
  animation: rise 0.7s ease both;
}

.hero__copy > *:nth-child(2) {
  animation-delay: 0.06s;
}

.hero__copy > *:nth-child(3) {
  animation-delay: 0.12s;
}

.hero__copy > *:nth-child(4) {
  animation-delay: 0.18s;
}

.hero__visual {
  animation: rise 0.85s ease 0.12s both;
}

/* ---------- 랜딩: 이름 + Fapis.svg / MISO.svg 가로 배치 ---------- */

body.landing-page {
  position: relative;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  font-family: var(--font-sans);
  overflow-x: hidden;
  background: #e8e6e2;
}

/* 구겨진 종이 질감 배경 (고해상도 텍스처) */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #ebe9e5;
  background-image: url("../assets/paper-texture.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.landing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 질감 디테일이 잘 보이도록 오버레이는 최소만 */
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 38%,
    rgba(250, 248, 244, 0.08) 100%
  );
  pointer-events: none;
}

.landing {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: auto;
}

.landing-header {
  text-align: center;
  margin-bottom: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: min(44rem, 100%);
  margin-inline: auto;
}

.landing-hero__art {
  display: block;
  width: min(100%, 708px);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 12px 32px rgba(25, 22, 40, 0.12));
}

@media (prefers-reduced-motion: no-preference) {
  .landing-header .landing-hero__art {
    animation: landing-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-tag {
  margin: 0.45rem 0 0;
  font-size: 0.9375rem;
  font-weight: 550;
  color: rgba(40, 38, 55, 0.62);
  letter-spacing: -0.015em;
}

/* Fapis · MISO: 호버 시 확대 + 브랜드 글로우, 형제는 블러 */
.landing-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  justify-items: center;
  column-gap: clamp(1rem, 4vw, 2.5rem);
  row-gap: 1rem;
  width: 100%;
  max-width: min(960px, 100%);
  margin-inline: auto;
  padding-block: clamp(0.5rem, 2vw, 1rem);
  isolation: isolate;
}

/* 사이드바 등에서 index.html#miso 로 올 때 스크롤 위치 보정 */
#miso {
  scroll-margin-top: 2rem;
}

/* 마우스 환경에서만 형제 폴더 블러 — 터치 기기에서는 적용하지 않음 */
@media (hover: hover) and (pointer: fine) {
  .landing-dock:has(.dock-folder:hover) .dock-folder:not(:hover),
  .landing-dock:has(.dock-folder:focus-visible) .dock-folder:not(:focus-visible) {
    filter: blur(6px) saturate(0.92);
    opacity: 0.88;
    transform: scale(0.96);
  }
}

.dock-folder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(420px, 44vw);
  text-decoration: none;
  color: inherit;
  justify-self: center;
  transform: scale(1);
  transform-origin: 50% 85%;
  opacity: 1;
  filter: none;
  z-index: 1;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dock-folder:hover,
.dock-folder:focus-visible {
  transform: scale(1.1);
  z-index: 2;
  filter: none;
  opacity: 1;
}

.dock-folder:focus-visible {
  outline: 2px solid rgba(36, 134, 255, 0.5);
  outline-offset: 6px;
  border-radius: 4px;
}

.dock-folder::before {
  content: "";
  position: absolute;
  inset: -48%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  filter: blur(28px);
}

.dock-folder--fapis::before {
  background: radial-gradient(ellipse 56% 52% at 50% 54%, rgba(119, 119, 119, 0.38) 0%, rgba(119, 119, 119, 0.08) 52%, transparent 72%);
}

.dock-folder--miso::before {
  background: radial-gradient(ellipse 56% 52% at 50% 54%, rgba(36, 134, 255, 0.36) 0%, rgba(36, 134, 255, 0.09) 52%, transparent 72%);
}

.dock-folder:hover::before,
.dock-folder:focus-visible::before {
  opacity: 1;
}

.dock-folder--static {
  cursor: default;
}

.dock-folder__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
  aspect-ratio: 1198 / 1022;
  object-fit: contain;
  transition: filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.07));
}

.dock-folder__caption {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  max-width: 100%;
  padding-inline: 0.25rem;
  text-align: center;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.dock-folder:hover .dock-folder__caption,
.dock-folder:focus-visible .dock-folder__caption {
  opacity: 1;
  transform: translateY(0);
}

.dock-folder__caption-line {
  display: block;
  letter-spacing: -0.025em;
  line-height: 1.35;
  word-break: keep-all;
}

/* 1 서비스명 */
.dock-folder__caption-line--name {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(18, 16, 28, 0.92);
}

/* 2 서비스 소개 */
.dock-folder__caption-line--desc {
  font-size: 0.8125rem;
  font-weight: 550;
  color: rgba(32, 30, 44, 0.82);
}

/* 3 재직 기간 */
.dock-folder__caption-line--meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(40, 38, 55, 0.58);
}

.dock-folder--fapis:hover .dock-folder__icon--fapis,
.dock-folder--fapis:focus-visible .dock-folder__icon--fapis {
  filter:
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.07))
    drop-shadow(0 16px 36px rgba(119, 119, 119, 0.35))
    drop-shadow(0 32px 64px rgba(119, 119, 119, 0.22))
    drop-shadow(0 0 52px rgba(119, 119, 119, 0.28));
}

.dock-folder--miso:hover .dock-folder__icon--miso,
.dock-folder--miso:focus-visible .dock-folder__icon--miso {
  filter:
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06))
    drop-shadow(0 16px 38px rgba(36, 134, 255, 0.38))
    drop-shadow(0 34px 68px rgba(36, 134, 255, 0.24))
    drop-shadow(0 0 56px rgba(36, 134, 255, 0.3));
}

@media (prefers-reduced-motion: reduce) {
  @media (hover: hover) and (pointer: fine) {
    .landing-dock:has(.dock-folder:hover) .dock-folder:not(:hover),
    .landing-dock:has(.dock-folder:focus-visible) .dock-folder:not(:focus-visible) {
      filter: blur(3px);
      opacity: 0.94;
      transform: scale(0.99);
    }
  }

  .dock-folder:hover,
  .dock-folder:focus-visible {
    transform: scale(1.04);
  }

  .dock-folder,
  .dock-folder__icon,
  .dock-folder__caption {
    transition-duration: 0.01ms;
  }
}

.landing-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  text-align: center;
}

.landing-mail,
.landing-tel {
  font-size: 0.875rem;
  font-weight: 550;
  color: rgba(45, 42, 58, 0.55);
  text-decoration: none;
}

button.landing-mail,
button.landing-tel {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}

button.landing-mail:focus-visible,
button.landing-tel:focus-visible {
  outline: 2px solid rgba(36, 134, 255, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.landing-mail:hover,
.landing-tel:hover {
  color: rgba(45, 42, 58, 0.78);
}

body.landing-page .landing-mail,
body.landing-page .landing-tel {
  color: rgba(32, 30, 40, 0.72);
}

body.landing-page .landing-mail:hover,
body.landing-page .landing-tel:hover {
  color: rgba(22, 20, 28, 0.9);
}

/* 랜딩 푸터: 연락처 SVG (본문 텍스트와 비슷한 스케일) */
.landing-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0;
  line-height: 0;
  font-size: 0.875rem;
}

.landing-contact-btn__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 1.2em;
  height: auto;
  margin-inline: auto;
}

.landing-contact-btn:hover .landing-contact-btn__img {
  opacity: 0.88;
}

button.landing-contact-btn:focus-visible {
  border-radius: 6px;
}

.landing-foot__flash {
  color: rgba(45, 42, 58, 0.92) !important;
}

/* ---------- 패피스 프로젝트 창 (window_01 / window_02 SVG) ---------- */
body.pappys-solo {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 3rem);
  box-sizing: border-box;
}

.pappys-window--solo {
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* macOS Finder 라이트 (Sequoia/Sonoma 계열) — 응용 프로그램 창 */
.finder.finder--light {
  --f-text: #1d1d1f;
  --f-muted: #6e6e73;
  --f-border: rgba(0, 0, 0, 0.09);
  --f-toolbar: #f5f5f7;
  --f-sidebar: rgba(255, 255, 255, 0.72);
  --f-select: rgba(0, 122, 255, 0.14);
  --f-hover: rgba(0, 0, 0, 0.045);
  --f-window-edge: rgba(0, 0, 0, 0.18);

  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 52px minmax(500px, min(80vh, 820px));
  width: 100%;
  max-width: 1360px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--f-border);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 28px 90px rgba(0, 0, 0, 0.14);
  color: var(--f-text);
  font-size: 13px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

.finder__traffic-cell {
  display: flex;
  align-items: center;
  padding: 0 12px 0 14px;
  background: rgba(245, 245, 247, 0.95);
  border-bottom: 1px solid var(--f-border);
  border-right: 1px solid var(--f-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.finder__traffic {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 트래픽 라이트: Notes 기획서 상세(.notes-case__dot)와 동일한 평면 스타일 */
.finder__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.finder__dot--close {
  background: #ff5f57;
}

.finder__dot--min {
  background: #febc2e;
}

.finder__dot--zoom {
  background: #28c840;
}

a.finder__dot {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

a.finder__dot:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.55);
  outline-offset: 3px;
}

a.finder__dot--close:hover {
  filter: brightness(0.9);
}

.finder__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 6px;
  min-height: 52px;
  background: var(--f-toolbar);
  border-bottom: 1px solid var(--f-border);
}

.finder__toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.finder__nav {
  display: flex;
  gap: 2px;
}

.finder__nav-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #c7c7cc;
  cursor: default;
}

.finder__nav-btn:not(:disabled) {
  color: #3a3a3c;
  cursor: pointer;
}

.finder__nav-btn:not(:disabled):hover {
  background: rgba(0, 0, 0, 0.05);
}

.finder__toolbar-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--f-text);
}

.finder__toolbar-mid {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.finder__view-modes {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  gap: 1px;
}

.finder__seg {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #6e6e73;
  cursor: default;
}

.finder__seg:hover {
  color: var(--f-text);
  background: rgba(0, 0, 0, 0.06);
}

.finder__seg--on {
  color: var(--f-text);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.finder__toolbar-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.finder__tool-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #6e6e73;
  cursor: default;
}

.finder__tool-btn:hover {
  color: var(--f-text);
  background: rgba(0, 0, 0, 0.06);
}

.finder__tool-btn--search {
  margin-left: 4px;
}

.finder__sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--f-border);
  background: var(--f-sidebar);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
}

.finder__side-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px 14px;
}

.finder__side-heading {
  margin: 10px 8px 4px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--f-muted);
}

.finder__side-list {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.finder__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  margin: 1px 0;
  border-radius: 6px;
  color: var(--f-text);
  cursor: default;
}

.finder__row:hover {
  background: var(--f-hover);
}

.finder__row--selected {
  background: var(--f-select);
  font-weight: 500;
}

a.finder__row {
  text-decoration: none;
  color: inherit;
}

a.finder__row:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 1px;
}

button.finder__row {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

button.finder__row:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 1px;
}

.finder__row--copied {
  background: var(--f-select);
}

.finder__row--contacts {
  align-items: flex-start;
  padding-top: 6px;
  padding-bottom: 6px;
}

.finder__row--contacts > .finder__ico {
  margin-top: 2px;
}

.finder__row-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.finder__row-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--f-muted);
}

.finder__row-value {
  font-size: 12px;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.28;
  word-break: break-all;
}

/* 연락처 라벨·값: 사이드바 다른 행(Main Page 등)과 동일 13px */
.finder__row--contacts .finder__row-kicker {
  font-size: inherit;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--f-text);
}

/* 메일·전화 값: 동일 크기, 사이드바 폭에 맞게 축소 */
.finder__row--contacts .finder__row-value {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.32;
  word-break: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* 마우스 환경: 기본은 e-mail / Phone 만, 호버·키보드 포커스 시 주소·번호 노출 */
@media (hover: hover) and (pointer: fine) {
  .finder__row--contacts .finder__row-col {
    gap: 0;
  }

  .finder__row--contacts .finder__row-value {
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      max-height 0.22s ease,
      opacity 0.16s ease,
      margin-top 0.16s ease;
  }

  .finder__row--contacts:hover .finder__row-value,
  .finder__row--contacts:focus-visible .finder__row-value {
    max-height: 5rem;
    opacity: 1;
    margin-top: 3px;
  }
}

.finder__toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  background: rgba(28, 28, 30, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
  pointer-events: none;
}

.finder__toast--show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.finder__ico-img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

/* 랜딩 도크와 동일 에셋 — 가로형 로고가 잘 보이도록 살짝 크게 */
.finder__ico-img--brand {
  width: 20px;
  height: 17px;
}

.finder__row--selected .finder__ico-img {
  opacity: 1;
}

.finder__ico {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.88;
}

.finder__row--selected .finder__ico {
  opacity: 1;
}

/* 방문자용: 메인 / 메일 / 전화 */
.finder__ico--desk {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2.5' y='3' width='11' height='8' rx='1' stroke='%236e6e73' stroke-width='1.2'/%3E%3Cpath d='M5 13h6M8 11v2' stroke='%236e6e73' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.finder__ico--mail {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2' y='4' width='12' height='9' rx='1' stroke='%236e6e73' stroke-width='1.2'/%3E%3Cpath d='M2 5l6 4 6-4' stroke='%236e6e73' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.finder__ico--phone {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M10.2 1H5.8a.8.8 0 00-.8.8v12.4a.8.8 0 00.8.8h4.4a.8.8 0 00.8-.8V1.8a.8.8 0 00-.8-.8z' stroke='%236e6e73' stroke-width='1.2'/%3E%3Ccircle cx='8' cy='13' r='.55' fill='%236e6e73'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.finder__stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
  overflow: auto;
}

.finder__icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 24px 28px 36px;
  align-content: start;
}

.finder__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px 10px;
  border-radius: 8px;
  color: var(--f-text);
  text-align: center;
  transition: background 0.12s ease;
}

.finder__item:hover {
  background: rgba(0, 122, 255, 0.09);
}

.finder__item:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 1px;
}

/* 상세 페이지 없음: 폴더만 표시 (링크 아님) */
.finder__item--folder-only {
  cursor: default;
}

.finder__folder-ic {
  display: block;
  width: 100%;
  max-width: 112px;
  aspect-ratio: 1;
  margin-bottom: 10px;
}

.finder__folder-ic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

.finder__item-name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.3;
  max-width: 128px;
  word-break: keep-all;
  color: var(--f-text);
}

@media (max-width: 767px) {
  .finder.finder--light {
    display: flex;
    flex-direction: column;
    max-height: none;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
  }

  .finder__traffic-cell {
    order: 1;
    border-right: none;
  }

  .finder__toolbar {
    order: 2;
    flex-wrap: wrap;
    padding: 10px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
    gap: 6px 8px;
  }

  .finder__toolbar-title {
    font-size: 15px;
  }

  .finder__toolbar-mid {
    order: 4;
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }

  .finder__stage {
    order: 3;
    flex: 1;
    min-height: min(52vh, 420px);
    border-top: 1px solid var(--f-border);
  }

  .finder__icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left));
    justify-items: center;
  }

  .finder__folder-ic {
    max-width: 96px;
    margin-bottom: 8px;
  }

  .finder__item-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 11rem;
  }

  .finder__item {
    padding: 12px 8px 14px;
    min-height: 44px;
  }

  .finder__sidebar {
    order: 5;
    max-height: min(36vh, 300px);
    min-height: 160px;
    border-right: none;
    border-top: 1px solid var(--f-border);
  }

  .finder__side-scroll {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .finder__row {
    padding: 8px 10px;
    min-height: 44px;
  }

  .finder__row-value {
    font-size: 12px;
  }
}

/* ========== macOS Notes 스타일 케이스 (work/pappys-offplatform.html) ========== */
body.notes-case-page {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background: #ececec;
  /* 리포트 가독성 · 레퍼런스(여백·단색 액센트) */
  --report-bg: #f4f5f7;
  --report-card: #ffffff;
  --report-border: #e8eaed;
  --report-accent: #2563eb;
  --report-accent-soft: #eff6ff;
  --report-success: #059669;
  --report-success-soft: #ecfdf5;
  --report-text: #111827;
  --report-muted: #6b7280;
  /* SF Pro 등과 한글이 글자 단위로 섞이면 자모·크기가 들쭉날쭉해짐 → 한글 우선 스택 */
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.notes-case-page *,
body.notes-case-page *::before,
body.notes-case-page *::after {
  box-sizing: border-box;
}

.notes-case {
  height: 100%;
  max-height: 100%;
  padding: clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.notes-case__window {
  flex: 1;
  min-height: 0;
  display: flex;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.notes-case__sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #f7f7f7;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.notes-case__chrome {
  height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0;
}

.notes-case__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

a.notes-case__dot {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}

a.notes-case__dot:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.55);
  outline-offset: 3px;
}

a.notes-case__dot--close:hover {
  filter: brightness(0.9);
}

.notes-case__dot--close {
  background: #ff5f57;
}

.notes-case__dot--min {
  background: #febc2e;
}

.notes-case__dot--zoom {
  background: #28c840;
}

.notes-case__sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.notes-case__section {
  margin-bottom: 20px;
}

.notes-case__section-label {
  margin: 0 16px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notes-case__folder-list {
  list-style: none;
  margin: 0;
  padding: 0 8px;
}

.notes-case__folder,
a.notes-case__folder {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #1d1d1f;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.3;
}

a.notes-case__folder {
  cursor: pointer;
}

a.notes-case__folder:hover {
  background: #e8e8e8;
}

a.notes-case__folder:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: 1px;
}

.notes-case__folder--active {
  background: #e3e3e5;
  font-weight: 500;
  color: #000;
}

.notes-case__folder--pending {
  color: #86868b;
  cursor: default;
}

.notes-case__folder--pending .notes-case__folder-ic {
  color: #aeaeb2;
}

.notes-case__folder-ic {
  flex-shrink: 0;
  color: #6e6e73;
}

.notes-case__list {
  width: 300px;
  flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.notes-case__list-toolbar {
  height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  gap: 2px;
  flex-shrink: 0;
}

.notes-case__tb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #1d1d1f;
  opacity: 0.88;
}

.notes-case__list-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.notes-case__note {
  width: 100%;
  display: block;
  text-align: left;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}

.notes-case__note:hover {
  background: #f0f0f0;
}

.notes-case__note--active,
.notes-case__note[aria-selected="true"] {
  background: rgba(0, 122, 255, 0.11);
  box-shadow: inset 3px 0 0 #007aff;
}

.notes-case__note--active:hover,
.notes-case__note[aria-selected="true"]:hover {
  background: rgba(0, 122, 255, 0.15);
}

.notes-case__note--active .notes-case__note-title,
.notes-case__note[aria-selected="true"] .notes-case__note-title {
  font-weight: 700;
  color: #000;
}

.notes-case__note--active .notes-case__note-preview,
.notes-case__note[aria-selected="true"] .notes-case__note-preview {
  color: #48484a;
}

.notes-case__note:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: -2px;
}

.notes-case__note-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.notes-case__note-title {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: 0;
  line-height: 1.35;
  text-rendering: geometricPrecision;
}

.notes-case__note-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.35;
}

.notes-case__reader {
  flex: 1;
  min-width: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.notes-case__reader-chrome {
  height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.notes-case__reader-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  position: relative;
  scroll-behavior: smooth;
  background: var(--report-bg);
}

@media (prefers-reduced-motion: reduce) {
  .notes-case__reader-scroll {
    scroll-behavior: auto;
  }
}

.notes-case__panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px clamp(0.75rem, 2.25vw, 1.35rem) 56px;
  scroll-margin-top: 20px;
}

.notes-case__reader-scroll .notes-case__panel + .notes-case__panel {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 52px;
  margin-top: 0;
}

.notes-case__reader-scroll .notes-case__panel:last-child {
  /* 마지막 섹션: 제목을 읽기 영역 최상단까지 올릴 수 있도록 스크롤 여유(뷰포트가 클 때도 상한 완화) */
  padding-bottom: max(65vh, min(85dvh, 1400px), 480px);
}

.notes-case__meta {
  margin: 0 0 12px;
  font-size: 12px;
  color: #8e8e93;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.notes-case__pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #3a3a3c;
  font-weight: 550;
  font-size: 11px;
}

.notes-case__meta-sep {
  opacity: 0.5;
}

.notes-case__title {
  margin: 0 0 1.25rem;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--report-text);
  line-height: 1.35;
  text-rendering: geometricPrecision;
}

.notes-case__subtitle {
  margin: 0 0 1.5rem;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  color: var(--report-text);
  line-height: 1.35;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

#panel-background .notes-case__meta {
  margin-bottom: 18px;
}

#panel-background .notes-case__title {
  margin-bottom: 1.1rem;
}

/* 「사거래 방지 기획」 아래 선 → 「배경」: 패널 구분선과 동일하게 40px */
#panel-background .notes-case__subtitle {
  margin-top: 0;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.notes-case__body {
  font-size: 15px;
  line-height: 1.78;
  color: var(--report-text);
}

.notes-case__body > p {
  max-width: 42rem;
}

.notes-case__body p {
  margin: 0 0 1.15em;
}

.notes-case__body p:last-child {
  margin-bottom: 0;
}

.notes-case__result-line {
  display: block;
}

.notes-case__body ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.notes-case__body li {
  margin-bottom: 0.55em;
}

.notes-case__body h3 {
  margin: 1.5em 0 0.75em;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
}

.notes-case__body h3:first-child {
  margin-top: 0;
}

.notes-case__step {
  margin-bottom: 1.75rem;
}

/* 실행 섹션: 단계 사이 간격 약간 조정 */
.notes-case__panel#panel-action .notes-case__step {
  margin-bottom: 1.75rem;
}

.notes-case__panel#panel-action .notes-case__step:last-child {
  margin-bottom: 0;
}

.notes-case__panel#panel-action .notes-case__step > p {
  margin: 0 0 0.65em;
}

.notes-case__panel#panel-action .notes-case__step > ul {
  margin: 0 0 0.9em;
}

.notes-case__step:last-child {
  margin-bottom: 0;
}

.notes-case__step h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 14px;
}

.notes-case__step > ul {
  margin-top: 0.15em;
}

.notes-case__callout {
  margin: 0.75em 0 0;
  padding: 10px 12px;
  background: rgba(0, 122, 255, 0.08);
  border-radius: 8px;
  font-size: 14px;
}

.notes-case__lead {
  margin: 0 0 1.25em;
  font-size: 16px;
  line-height: 1.6;
  color: #48484a;
}

.notes-case__figure {
  margin: 0 0 1.5em;
}

.notes-case__figcaption {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6e6e73;
}

.notes-case__flow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  padding: 14px 12px;
  background: linear-gradient(180deg, #f8f9fb 0%, #f2f3f5 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.notes-case__flow-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.notes-case__flow-node--muted {
  font-weight: 550;
  color: #636366;
  background: rgba(255, 255, 255, 0.85);
}

.notes-case__flow-node--risk {
  background: rgba(255, 59, 48, 0.1);
  color: #c41e12;
  border-color: rgba(255, 59, 48, 0.28);
}

.notes-case__flow-arrow {
  color: #aeaeb2;
  font-size: 13px;
  padding: 0 2px;
  user-select: none;
}

.notes-case__stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 본문 ul 기본 padding-left 때문에 박스가 제목보다 안쪽으로 들어가지 않도록 */
.notes-case__body ul.notes-case__stack-list {
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
}

.notes-case__stack-list > li {
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 1px solid var(--report-border);
  border-radius: 14px;
  background: var(--report-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-size: 15px;
  line-height: 1.68;
  color: var(--report-text);
}

.notes-case__stack-list > li:last-child {
  margin-bottom: 0;
}

.notes-case__list-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--report-accent);
}

#panel-problem .notes-case__problem-lead {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--report-text);
}

.notes-case__stack-list--problem .notes-case__problem-row {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--report-text);
}

.notes-case__stack-list--problem .notes-case__problem-row:first-of-type {
  margin-top: 4px;
}

.notes-case__stack-list--problem .notes-case__problem-label {
  display: inline-block;
  min-width: 3.25em;
  margin-right: 6px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--report-muted);
  vertical-align: top;
}

.notes-case__stack-list--problem .notes-case__problem-label--risk {
  font-weight: 700;
  color: var(--report-text);
}

.notes-case__grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 0 0 1em;
}

.notes-case__card {
  margin: 0;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
}

.notes-case__card-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007aff;
}

.notes-case__card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3a3a3c;
}

/* 결과 KPI: 실행 섹션과 동일한 step 안에서만 2열 배치 (추가 카드 박스 없음) */
.notes-case__kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}

.notes-case__kpi-img {
  display: block;
  width: 100%;
  height: auto;
}

.notes-case__callout--thesis {
  margin: 0 0 1.25em;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.55;
  background: rgba(0, 122, 255, 0.09);
  border-left: 4px solid #007aff;
  border-radius: 0 10px 10px 0;
}

.notes-case__body .notes-case__grid-2:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .notes-case__window {
    flex-direction: column;
    min-height: auto;
  }

  .notes-case__sidebar {
    width: 100%;
    border-right: none;
    max-height: 200px;
  }

  .notes-case__list {
    width: 100%;
    border-right: none;
    max-height: 240px;
  }

  .notes-case__list-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .notes-case__note {
    flex: 0 0 min(280px, 85vw);
    scroll-snap-align: start;
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* ---------- 모바일 전용: 가독성·터치 (데스크톱 스타일 유지) ---------- */

@media (max-width: 767px) {
  body.landing-page {
    padding: max(1.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    justify-content: flex-start;
    padding-top: max(2rem, env(safe-area-inset-top));
  }

  .landing-header {
    margin-bottom: 2rem;
  }

  .landing-hero__art {
    width: 100%;
    filter: drop-shadow(0 8px 24px rgba(25, 22, 40, 0.1));
  }

  .landing-tag {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* 호버 없이도 폴더 설명 항상 표시 */
  .dock-folder__caption {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 0.65rem;
    padding-bottom: 0.25rem;
  }

  .dock-folder__caption-line--name {
    font-size: 0.9375rem;
  }

  .dock-folder__caption-line--desc {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .dock-folder__caption-line--meta {
    font-size: 0.8125rem;
  }

  .landing-dock {
    row-gap: 1.75rem;
    column-gap: 1.25rem;
  }

  .dock-folder {
    max-width: min(100%, 360px);
    padding: 0.35rem 0;
    min-height: 48px;
  }

  .landing-foot {
    margin-top: 2rem;
    gap: 1.05rem;
  }

  .landing-mail,
  .landing-tel,
  button.landing-mail,
  button.landing-tel {
    font-size: 0.9375rem;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
  }

  button.landing-contact-btn {
    font-size: 0.9375rem;
    min-height: 44px;
    padding: 0.25rem 0.75rem;
  }

  /* Notes 케이스: 좁은 화면은 가로 캐러셀 대신 세로 목록이 읽기 쉬움 */
  .notes-case {
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
  }

  .notes-case__window {
    border-radius: 10px;
  }

  .notes-case__sidebar {
    max-height: min(32vh, 240px);
    min-height: 140px;
  }

  .notes-case__folder,
  a.notes-case__folder {
    font-size: 14px;
    padding: 10px 10px;
    min-height: 44px;
  }

  .notes-case__list {
    flex: 0 0 auto;
    max-height: min(38vh, 300px);
  }

  .notes-case__list-scroll {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
  }

  .notes-case__note {
    flex: none;
    width: 100%;
    box-sizing: border-box;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
    min-height: 48px;
  }

  .notes-case__note-title {
    font-size: 16px;
    line-height: 1.4;
  }

  .notes-case__note-preview {
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 4;
    color: #636366;
  }

  .notes-case__reader-scroll .notes-case__panel:last-child {
    padding-bottom: max(55vh, min(75dvh, 900px), 320px);
  }

  .notes-case__panel {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .notes-case__body {
    font-size: 16px;
    line-height: 1.75;
  }

  .notes-case__body > p {
    max-width: none;
  }

  .notes-case__title,
  .notes-case__subtitle {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    line-height: 1.35;
  }

  .notes-case__meta {
    font-size: 13px;
  }

  .notes-case__pill {
    font-size: 12px;
  }

  .notes-case__stack-list > li {
    padding: 17px 18px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.68;
  }

  .notes-case__stack-list--problem .notes-case__problem-row {
    font-size: 15px;
    line-height: 1.65;
  }

  .notes-case__list-kicker {
    font-size: 13px;
  }

  body.pappys-solo {
    padding: max(0.65rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left));
    align-items: flex-start;
  }
}

/* 태블릿 폭(768px–960px): Notes는 가로 탭 유지, 본문만 살짝 키움 */
@media (min-width: 768px) and (max-width: 960px) {
  .notes-case__note-preview {
    -webkit-line-clamp: 3;
    font-size: 13px;
    line-height: 1.45;
  }

  .notes-case__note {
    flex: 0 0 min(300px, 78vw);
  }

  .notes-case__body {
    font-size: 16px;
  }

  .notes-case__panel {
    padding-left: max(1.1rem, env(safe-area-inset-left));
    padding-right: max(1.1rem, env(safe-area-inset-right));
  }
}
