/* ==========================================================================
   붕빵 사업계획 웹페이지 · style.css
   - 팔레트: 붕빵 로고 최종안(브라운·오렌지·크림) + 사업계획 덱(민트)
   - 모바일 우선. 넓은 화면은 아래 미디어쿼리에서 확장
   - 움직임은 transform/opacity(개별 속성 translate·scale 포함)만 사용 → GPU 합성
   ========================================================================== */

:root {
  /* 색 */
  --cream: #FAF6EE;
  --cream-2: #F2EADB;
  --card: #FFFCF6;
  --line: #E2D6C3;
  --line-2: #D5C6AE;
  --ink: #2A1F1A;
  --ink-2: #5E5049;
  --ink-3: #66574D;
  --brown: #8A4A16;
  --brown-2: #9A4F14;
  --caramel: #C98A4B;
  --sand: #E8C9A0;
  --gold: #E8A15A;
  --mint: #17705D;
  --mint-hi: #7FD8BE;
  --mint-bg: #DDF3EA;
  --mint-soft: #EAF8F2;
  --mint-2: #CBEBDF;
  --choco: #2A1F1A;
  --red: #A63A2E;
  --dash: #C9B79E;
  /* 글꼴 */
  --font-display: "Gowun Batang", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Georgia, serif;
  --font-body: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* 레이아웃 */
  --wrap: 72rem;
  --gutter: 1.25rem;
  --r: 1rem;
  --r-lg: 1.5rem;
  --topbar: 3.5rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 2rem; } }

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.toc-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .6rem 1rem; border-radius: .6rem; background: var(--choco); color: var(--cream); text-decoration: none; font-weight: 700; }
.skip:focus { top: calc(env(safe-area-inset-top) + .75rem); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.ico { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 버튼·칩·태그 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .55rem 1.35rem; border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; touch-action: manipulation; transition: background-color .2s, color .2s;
}
.btn--primary { background: var(--brown); color: var(--cream); }
.btn--primary:hover { background: #763E12; }
.btn--ghost { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn--ghost:hover { background: rgba(138, 74, 22, .08); }
.btn--light { background: var(--cream); color: var(--choco); }
.btn .ico { width: 1.1rem; height: 1.1rem; stroke-width: 2.2; }

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .35rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-weight: 700; font-size: .875rem; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: background-color .25s, color .25s;
}
.chip--dark { background: rgba(250, 246, 238, .95); border-color: transparent; color: var(--choco); }
.chip[aria-pressed="true"] { background: var(--mint-hi); color: var(--choco); }

.pill { display: inline-flex; align-items: center; padding: .4rem 1rem; border-radius: 999px; font-weight: 700; font-size: .875rem; letter-spacing: .04em; }
.pill--mint { background: var(--mint-hi); color: var(--choco); }

.tag { display: inline-flex; align-items: center; padding: .35rem .9rem; border-radius: 999px; background: var(--mint-bg); color: var(--mint); font-weight: 700; font-size: .8125rem; letter-spacing: .06em; }
.tag--glass { background: rgba(250, 246, 238, .94); }

.label { font-weight: 700; font-size: .875rem; color: var(--brown-2); letter-spacing: .02em; }
.label--mint { color: var(--mint); }

/* ==========================================================================
   상단 바 · 목차
   ========================================================================== */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(250, 246, 238, .96);
  border-bottom: 1px solid rgba(213, 198, 174, .7);
  transition: translate .38s var(--ease);
}
.topbar.is-hidden { translate: 0 -105%; }
.topbar__in { height: var(--topbar); display: flex; align-items: center; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex: none; }
.brand__mark { width: 2.5rem; height: auto; }
.brand__word { font: 700 1.3rem/1 var(--font-display); color: var(--brown); }
.topbar__part {
  flex: 1; min-width: 0; font-size: .75rem; line-height: 1.35; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.toc-btn {
  flex: none; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .3rem 1rem .3rem .8rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: .875rem; cursor: pointer; touch-action: manipulation;
}
.toc-btn__bars { display: grid; gap: 3px; }
.toc-btn__bars i { display: block; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.toc-btn__bars i:nth-child(2) { width: 10px; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--mint)); transform-origin: 0 50%; scale: 0 1; }

.toc { position: fixed; inset: 0; z-index: 120; }
.toc[hidden] { display: none; }
.toc__backdrop { position: absolute; inset: 0; background: rgba(42, 31, 26, .5); opacity: 0; transition: opacity .3s; }
.toc__sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--cream); border-radius: 1.5rem 1.5rem 0 0;
  padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  translate: 0 100%; transition: translate .42s var(--ease);
}
.toc.is-open .toc__backdrop { opacity: 1; }
.toc.is-open .toc__sheet { translate: 0 0; }
.toc__head { position: sticky; top: -1rem; display: flex; align-items: center; justify-content: space-between; padding: 1rem 0 .75rem; background: var(--cream); z-index: 1; }
.toc__title { font: 700 1.5rem/1 var(--font-display); color: var(--brown); }
.toc__close { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.toc__parts { list-style: none; display: grid; gap: 1.25rem; }
.toc__part { display: flex; flex-direction: column; gap: .15rem; font-weight: 700; font-size: .9375rem; color: var(--ink); padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.toc__part span { font-size: .6875rem; letter-spacing: .2em; color: var(--mint); }
.toc__items { list-style: none; display: grid; gap: .15rem; margin-top: .4rem; }
.toc__items a { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .4rem .5rem; border-radius: .6rem; text-decoration: none; }
.toc__items a span { min-width: 1.75rem; font-weight: 700; font-size: .8125rem; color: var(--brown-2); font-variant-numeric: tabular-nums; }
.toc__items a:hover { background: var(--cream-2); }
.toc__items a.is-here { background: var(--mint-bg); color: var(--mint); font-weight: 700; }
@media (min-width: 900px) {
  .toc__sheet { left: auto; top: 0; width: 26rem; max-height: none; border-radius: 1.5rem 0 0 1.5rem; translate: 100% 0; padding-top: calc(1rem + env(safe-area-inset-top)); }
}

/* ==========================================================================
   01 표지 (히어로)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--topbar) + env(safe-area-inset-top) + 1.75rem) 0 4.5rem;
  background:
    radial-gradient(80% 50% at 90% 6%, #FFF0D6 0%, rgba(255, 240, 214, 0) 70%),
    radial-gradient(60% 40% at 0% 100%, #F4E7D1 0%, rgba(244, 231, 209, 0) 70%),
    var(--cream);
}
.hero__grid { display: grid; gap: 2.25rem; }
.hero__brand { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; }
.hero__mark { width: 5.5rem; height: auto; flex: none; }
.hero__mark .pop { transform-box: fill-box; transform-origin: 50% 50%; animation: pop .95s var(--ease) both; animation-delay: calc(var(--i) * .09s + .2s); }
@keyframes pop {
  0% { transform: scale(0) rotate(-16deg); }
  52% { transform: scale(1.2, .82); }
  70% { transform: scale(.9, 1.1); }
  86% { transform: scale(1.04, .97); }
  100% { transform: none; }
}
.hero__word { font: 700 2.9rem/1 var(--font-display); color: var(--brown); letter-spacing: -.02em; }
.hero__roman { margin-top: .45rem; font-size: .6875rem; font-weight: 700; letter-spacing: .34em; color: var(--brown-2); }
.hero__title { margin-top: 1.4rem; font: 700 clamp(2.6rem, 1.5rem + 5.6vw, 6rem)/1.12 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.rule { display: block; width: 6rem; height: 4px; border-radius: 2px; background: var(--mint); margin: 1.5rem 0 1.4rem; }
.hero__sub { font-size: clamp(1.125rem, 1rem + .8vw, 1.55rem); line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.hero__lede { margin-top: 1.1rem; max-width: 36rem; line-height: 1.8; color: var(--ink-2); }
.hero__meta { margin-top: 1.1rem; font-size: .875rem; color: var(--ink-3); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.hero__media {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--cream-2); box-shadow: 0 30px 60px -30px rgba(42, 31, 26, .45);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.steam { position: absolute; left: 14%; right: 14%; top: 0; height: 62%; pointer-events: none; }
.steam i {
  position: absolute; bottom: 0; width: 26%; height: 72%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0));
  opacity: 0; animation: steam 5.6s ease-in-out infinite;
}
.steam i:nth-child(1) { left: 6%; }
.steam i:nth-child(2) { left: 38%; animation-delay: 1.9s; }
.steam i:nth-child(3) { left: 68%; animation-delay: 3.7s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(35%) scale(.55, .7); }
  30% { opacity: .85; }
  100% { opacity: 0; transform: translateY(-55%) scale(1.25, 1.1); }
}
.is-paused .steam i, .is-paused .hero__mark .pop { animation-play-state: paused; }
@media (min-width: 960px) {
  .hero { padding-bottom: 6rem; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 3.5rem; min-height: calc(100svh - var(--topbar) - 7rem); }
  .hero__mark { width: 7rem; }
  .hero__word { font-size: 3.6rem; }
}

/* ==========================================================================
   파트 구분 패널 (+ 전환 1: 반죽 멜팅)
   ========================================================================== */
.part { position: relative; overflow: hidden; isolation: isolate; background: var(--choco); color: var(--cream); padding: 4.75rem 0 3.5rem; }
#part-1 { padding-top: 10rem; }
.part--short { padding: 3.75rem 0 2.75rem; }
.part__in { position: relative; display: grid; gap: .55rem; }
.part__no {
  position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); top: -2.25rem; z-index: -1;
  font: 700 clamp(9rem, 5rem + 22vw, 17rem)/.8 var(--font-display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(232, 161, 90, .42); pointer-events: none;
}
.part__eyebrow { font-weight: 700; font-size: .8125rem; letter-spacing: .26em; color: var(--mint-hi); }
.part__title { font: 700 clamp(1.85rem, 1.2rem + 3.4vw, 3.6rem)/1.25 var(--font-display); text-wrap: balance; max-width: 22ch; }
.part__links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.part__links a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .35rem .95rem; border-radius: 999px;
  border: 1px solid rgba(250, 246, 238, .22); text-decoration: none; font-size: .875rem; transition: background-color .2s;
}
.part__links a:hover { background: rgba(250, 246, 238, .08); }
.part__links span { font-weight: 700; font-size: .75rem; color: var(--gold); font-variant-numeric: tabular-nums; }

.melt { position: absolute; inset: 0 0 auto; height: 15rem; pointer-events: none; z-index: 0; }
.melt__band { position: absolute; left: 0; top: 0; width: 100%; height: 2.75rem; }
.drip { position: absolute; top: 1.4rem; left: var(--x); width: var(--w); height: var(--h); translate: -50% 0; }
.drip__body {
  position: absolute; inset: 0; border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #BD7A3B 0%, #EBAE63 34%, #F8CF8F 50%, #E59F57 68%, #B5733A 100%);
  transform-origin: 50% 0; scale: 1 .3; will-change: scale;
}
.drip__bead {
  position: absolute; left: 50%; top: 0;
  width: calc(var(--w) * 1.32); height: calc(var(--w) * 1.32);
  margin-left: calc(var(--w) * -.66); margin-top: calc(var(--w) * -.95);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFF4DB 0 14%, #F4BE76 30%, #DA934B 70%, #B6733A 100%);
  translate: 0 calc(var(--h) * .3); will-change: translate;
}

/* ==========================================================================
   섹션(슬라이드) 공통
   ========================================================================== */
.slide { position: relative; padding: 4.5rem 0 4rem; }
/* 화면에서 먼 장은 배치·그리기를 건너뜀 → 긴 페이지의 첫 로딩과 스크롤 부담을 줄임 (auto: 한 번 그린 높이를 기억) */
@supports (content-visibility: auto) {
  .part { content-visibility: auto; contain-intrinsic-size: auto 520px; }
  .slide { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
  .slide--dive { contain-intrinsic-size: auto 3600px; }
}
.slide--alt { background: var(--cream-2); }
.slide__head { display: grid; gap: .85rem; margin-bottom: 2rem; max-width: 56rem; }
.slide__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.slide__no { font-weight: 700; font-size: .875rem; color: var(--brown-2); letter-spacing: .04em; padding-right: .7rem; border-right: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.slide__title { font: 700 clamp(1.75rem, 1.1rem + 3vw, 3.4rem)/1.25 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.slide__sub { font-size: .9375rem; color: var(--ink-3); }
.slide__lede { font-size: 1.0625rem; line-height: 1.8; color: var(--ink-2); max-width: 46rem; }
.slide__foot { margin-top: 2rem; font-size: .8125rem; line-height: 1.65; color: var(--ink-3); }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem; }
.card--hl { background: var(--mint-soft); border: 2px solid var(--mint); }
.card--table { padding: .35rem 1.1rem; }
.card__text { margin-top: .5rem; line-height: 1.7; color: var(--ink-2); }
.card__text--lg { font-size: 1.0625rem; color: var(--ink); }

.grid { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 880px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.split { display: grid; gap: 1.25rem; align-items: start; }
.split__main, .split__side { display: grid; gap: 1rem; min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem; }
  .split--wide { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
}
.pair { display: grid; gap: 1.25rem; }
@media (min-width: 880px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.pair__title { font-weight: 700; font-size: 1.125rem; margin-bottom: .75rem; }

.note { margin-top: 1rem; font-size: .9375rem; line-height: 1.7; color: var(--ink-2); }
.band { margin-top: 1.25rem; padding: 1.1rem 1.35rem; border-radius: var(--r); background: var(--choco); color: var(--cream); }
.band p { font-size: 1.0625rem; line-height: 1.7; }
.band__key { color: var(--mint-hi); font-weight: 700; }
.band__sep { color: rgba(250, 246, 238, .45); padding: 0 .25rem; }
.band--mint { background: var(--mint-bg); color: var(--ink); }
.band--mint .band__key { color: var(--mint); }
.pullquote { margin-top: 1.75rem; max-width: 46rem; padding-left: 1rem; border-left: 4px solid var(--gold); font: 700 clamp(1.15rem, 1rem + .8vw, 1.5rem)/1.65 var(--font-display); color: var(--brown); }
.callout { margin-top: 1.5rem; display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--r); border: 1px dashed var(--dash); background: var(--card); color: var(--ink-2); line-height: 1.65; }
.callout .ico { color: var(--red); margin-top: .15rem; }

.dots { list-style: none; display: grid; gap: .45rem; margin-top: .85rem; }
.dots li { position: relative; padding-left: 1rem; line-height: 1.65; color: var(--ink-2); }
.dots li::before { content: ""; position: absolute; left: 0; top: .66em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold); }
.checks { list-style: none; display: grid; gap: .55rem; margin-top: .6rem; }
.checks li { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.6; }
.checks .ico { color: var(--mint); margin-top: .15rem; stroke-width: 2.4; }

/* ==========================================================================
   표 (넓은 화면은 표, 모바일은 카드)
   ========================================================================== */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; line-height: 1.55; }
.tbl th, .tbl td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--mint-bg); border-bottom: 0; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.tbl thead th:first-child { border-radius: .65rem 0 0 .65rem; }
.tbl thead th:last-child { border-radius: 0 .65rem .65rem 0; }
.tbl tbody th { font-weight: 700; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.metric { color: var(--mint); font-weight: 700; }
.tbl .idx { display: inline-block; min-width: 2rem; font-family: var(--font-display); color: var(--gold); }
.tbl .ico { display: inline-block; vertical-align: -.2em; margin-right: .4rem; color: var(--red); }
.rt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .35rem; }

/* 키-값 표 (사업 개요) */
.kv th[scope="row"] { width: 9.5rem; white-space: nowrap; }
.kv tr.is-goal > * { background: var(--mint-2); }
.kv tr.is-goal th { border-radius: .65rem 0 0 .65rem; }
.kv tr.is-goal td { border-radius: 0 .65rem .65rem 0; }

/* 메뉴 표 */
.rt--menu tbody tr[data-menu] { cursor: pointer; }
.rt--menu tbody tr[data-menu]:hover > * { background: rgba(232, 161, 90, .1); }
.rt--menu tbody tr.is-picked > * { background: #F6E5CC; }
.rt--menu tbody tr.is-picked th { box-shadow: inset 4px 0 0 var(--brown); }

/* 값 막대 (마케팅 예산·인테리어 예산) */
.tbl td.v::after, .tbl td.bud::after {
  content: ""; display: block; height: 5px; margin-top: .4rem; margin-left: auto; border-radius: 3px; background: var(--gold);
}
.tbl td.v::after { width: calc(var(--v) / 20 * 100%); max-width: 100%; }
.tbl td.bud::after { width: calc(var(--v) / 150 * 100%); max-width: 100%; background: var(--caramel); }
.rt--budget td.bud { min-width: 6.5rem; }
.rt--budget tr.is-total > * { background: var(--cream-2); font-weight: 700; }

.rt--pnl tr.is-sub > * { background: var(--cream-2); font-weight: 700; }
.rt--pnl tr.is-total > * { background: var(--mint-2); font-weight: 700; }
.rt--pnl .pct { color: var(--ink-3); }
.rt--scn tbody tr { cursor: pointer; }
.rt--scn tbody tr.is-picked > * { background: var(--mint-2); }
.rt--time tr.is-open > * { background: var(--mint-2); font-weight: 700; }
.rt--dong td.rank { font-weight: 700; color: var(--brown); white-space: nowrap; }

@media (max-width: 719.98px) {
  .tbl { font-size: .9375rem; }
  /* 공통: 행 → 카드 */
  .rt { background: none; border: 0; padding: 0; border-radius: 0; }
  .rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rt, .rt tbody, .rt tr, .rt th, .rt td { display: block; }
  .rt tbody { display: grid; gap: .65rem; }
  .rt tbody tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
  .rt th, .rt td { padding: 0; border: 0; text-align: left; }
  .rt tbody th { font-size: 1.0625rem; line-height: 1.45; }
  .rt td { margin-top: .55rem; }
  .rt td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .1rem; font-size: .75rem; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
  .rt .num { text-align: left; }
  .rt tbody tr.is-picked > *, .rt tbody tr:hover > * { background: none; }
  .rt tbody tr.is-picked th { box-shadow: none; }

  /* 키-값 표 */
  .kv thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .kv, .kv tbody, .kv tr, .kv th, .kv td { display: block; }
  .kv tr { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .kv tr:last-child { border-bottom: 0; }
  .kv th[scope="row"], .kv td { padding: 0; border: 0; width: auto; }
  .kv th[scope="row"] { font-size: .8125rem; color: var(--mint); margin-bottom: .15rem; }
  .kv td { font-size: 1rem; }
  .kv tr.is-goal { margin: .35rem -.6rem .45rem; padding: .85rem .6rem; border-radius: .8rem; background: var(--mint-2); }
  .kv tr.is-goal > * { background: none; border-radius: 0; }

  /* 차별화 */
  .rt--diff td.metric { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin-top: .8rem; padding: .3rem .75rem; border-radius: 999px; background: var(--mint-bg); font-size: .875rem; }
  .rt--diff td.metric::before { display: inline; margin: 0; color: var(--mint); opacity: .75; }

  /* 메뉴: 이름·판매 시기 / 판매가·원가·원가율 */
  .rt--menu tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "n n w" "p c r"; gap: .55rem .75rem; align-items: start; }
  .rt--menu th { grid-area: n; }
  .rt--menu td { margin: 0; }
  .rt--menu td:nth-of-type(1) { grid-area: p; }
  .rt--menu td:nth-of-type(2) { grid-area: c; }
  .rt--menu td:nth-of-type(3) { grid-area: r; }
  .rt--menu td.when { grid-area: w; justify-self: end; align-self: center; padding: .2rem .65rem; border-radius: 999px; background: var(--mint-bg); color: var(--mint); font-size: .75rem; font-weight: 700; white-space: nowrap; }
  .rt--menu td.when::before { display: none; }
  .rt--menu tbody tr.is-picked { border-color: var(--brown); box-shadow: inset 4px 0 0 var(--brown); }

  /* 행정동 */
  .rt--dong tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .75rem; }
  .rt--dong th { grid-column: 1; grid-row: 1; }
  .rt--dong td { grid-column: 1 / -1; margin: 0; }
  .rt--dong td.rank { grid-column: 2; grid-row: 1; align-self: center; text-align: right; padding: .2rem .7rem; border-radius: 999px; background: var(--cream-2); font-size: .875rem; }
  .rt--dong td.rank::before { display: inline; margin-right: .35rem; font-size: .6875rem; }

  /* 마케팅: 시즌 3칸 */
  .rt--mkt tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .75rem; }
  .rt--mkt th, .rt--mkt td.metric { grid-column: 1 / -1; }
  .rt--mkt td { margin: 0; }
  .rt--mkt td.metric { justify-self: start; display: inline-flex; gap: .4rem; align-items: baseline; padding: .25rem .7rem; border-radius: 999px; background: var(--mint-bg); font-size: .875rem; }
  .rt--mkt td.metric::before { display: inline; margin: 0; color: var(--mint); opacity: .75; }
  .tbl td.v::after { margin-left: 0; }

  /* 인테리어 예산 */
  .rt--budget tbody { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .25rem 1rem; }
  .rt--budget tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: .1rem .75rem; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .8rem 0; }
  .rt--budget tbody tr:last-child { border-bottom: 0; }
  .rt--budget th { grid-column: 1; grid-row: 1; font-size: 1rem; }
  .rt--budget td { margin: 0; }
  .rt--budget td:not(.num) { grid-column: 1; grid-row: 2; font-size: .875rem; color: var(--ink-2); }
  .rt--budget td:not(.num)::before { display: none; }
  .rt--budget td.num { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: 1.125rem; font-weight: 700; }
  .rt--budget td.num::before { display: none; }
  .rt--budget td.bud { min-width: 0; }
  .rt--budget tr.is-total { margin: .2rem -.6rem 0; padding: .8rem .6rem; border-radius: .7rem; background: var(--cream-2); }
  .rt--budget tr.is-total > * { background: none; }

  /* 손익 표: 항목 / 기본·보수 2열 (아래 줄은 매출 대비) */
  .rt--pnl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .35rem 0; }
  .rt--pnl thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: block; }
  .rt--pnl tbody { display: block; }
  .rt--pnl thead tr, .rt--pnl tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) 5.6rem 5.6rem;
    grid-template-areas: "k b c" "k bp cp"; column-gap: .75rem; row-gap: .05rem; align-items: center;
    padding: .7rem 1rem; background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line);
  }
  .rt--pnl thead tr { margin: 0 .35rem; border-radius: .65rem; border: 0; background: var(--mint-bg); }
  .rt--pnl tbody tr:last-child { border-bottom: 0; }
  .rt--pnl thead th { background: none; border-radius: 0; padding: 0; font-size: .75rem; line-height: 1.3; white-space: normal; }
  .rt--pnl tr > :nth-child(1) { grid-area: k; }
  .rt--pnl tr > :nth-child(2) { grid-area: b; }
  .rt--pnl tr > :nth-child(3) { grid-area: bp; }
  .rt--pnl tr > :nth-child(4) { grid-area: c; }
  .rt--pnl tr > :nth-child(5) { grid-area: cp; }
  .rt--pnl td { margin: 0; }
  .rt--pnl .num { text-align: right; }
  .rt--pnl tbody th { font-size: .9375rem; }
  .rt--pnl tbody td.num:not(.pct) { font-weight: 700; }
  .rt--pnl .pct, .rt--pnl thead th:nth-child(3), .rt--pnl thead th:nth-child(5) { font-size: .75rem; color: var(--ink-3); font-weight: 500; }
  .rt--pnl tr.is-sub, .rt--pnl tr.is-total { margin: .2rem .35rem; border-radius: .65rem; border: 0; }
  .rt--pnl tr.is-sub { background: var(--cream-2); }
  .rt--pnl tr.is-total { background: var(--mint-2); }
  .rt--pnl tr.is-sub > *, .rt--pnl tr.is-total > * { background: none; }

  /* 시나리오 표 */
  .rt--scn tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem .75rem; }
  .rt--scn th { grid-column: 1 / -1; }
  .rt--scn td { margin: 0; font-weight: 700; }
  .rt--scn td::before { font-weight: 700; }
  .rt--scn tbody tr.is-picked { border-color: var(--mint); background: var(--mint-soft); }

  /* 일정 표: 타임라인 */
  .rt--time { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .25rem 1rem; }
  .rt--time tbody { gap: 0; }
  .rt--time tbody tr { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: .75rem; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .8rem 0; }
  .rt--time tbody tr:last-child { border-bottom: 0; }
  .rt--time th { font-size: .875rem; color: var(--brown-2); }
  .rt--time td { margin: 0; }
  .rt--time tr.is-open { margin: .2rem -.6rem 0; padding: .8rem .6rem; border-radius: .7rem; background: var(--mint-2); }
  .rt--time tr.is-open > * { background: none; }

  /* 리스크 */
  .rt--risk tbody th { display: flex; align-items: center; }
}

/* ==========================================================================
   03 핵심 숫자
   ========================================================================== */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.kpi { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.kpi--hl { background: var(--mint-soft); border: 2px solid var(--mint); }
.kpi__label { font-weight: 700; font-size: .875rem; color: var(--brown-2); }
.kpi--hl .kpi__label { color: var(--mint); }
.kpi__value { font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; }
.kpi__value span { font-variant-numeric: tabular-nums; }
.kpi--hl .kpi__value { color: var(--mint); }
.kpi__note { font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 960px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } .kpi { padding: 1.5rem; } }

/* 04 시장 */
.stat { display: grid; gap: .4rem; align-content: start; }
.stat__ico { width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: .8rem; background: var(--mint-bg); color: var(--mint); stroke-width: 1.7; margin-bottom: .35rem; }
.stat__big { margin-top: .1rem; font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.3; letter-spacing: -.015em; }
.stat__text { line-height: 1.7; color: var(--ink-2); }

/* ==========================================================================
   06 메뉴 운영: 계절 달력
   ========================================================================== */
.season { padding: 1rem .9rem; margin-bottom: .25rem; }
.season__grid {
  display: grid;
  grid-template-columns: 2.5rem repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(12, 2.2rem);
  column-gap: .4rem;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(2.2rem - 1px), var(--line) calc(2.2rem - 1px) 2.2rem) 0 2.6rem / 100% calc(100% - 2.6rem) no-repeat;
}
.s-month { grid-column: 1; grid-row: var(--a); display: flex; align-items: center; font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.s-label { grid-row: 1; grid-column: var(--b); align-self: end; padding: 0 0 .6rem; text-align: center; font-weight: 700; font-size: .8125rem; line-height: 1.3; }
.s-bar { grid-column: var(--b); grid-row: var(--a) / var(--z); margin: .2rem 0; padding: .55rem .5rem; border-radius: .7rem; font-size: .8125rem; line-height: 1.45; }
.s-bar--bread { background: var(--brown); color: var(--cream); }
.s-bar--tako { background: var(--caramel); color: var(--choco); }
.s-bar--ice { background: var(--mint); color: var(--cream); }
@media (min-width: 860px) {
  .season { padding: 1.4rem 1.5rem; }
  .season__grid { grid-template-columns: 7.5rem repeat(12, minmax(0, 1fr)); grid-template-rows: auto repeat(3, 3.6rem); row-gap: .7rem; column-gap: 0; background: none; }
  .s-month { grid-row: 1; grid-column: var(--a); justify-content: center; padding-bottom: .4rem; }
  .s-label { grid-column: 1; grid-row: var(--b); align-self: center; text-align: left; padding: 0; font-size: 1rem; }
  .s-bar { grid-row: var(--b); grid-column: var(--a) / var(--z); margin: 0 .15rem; padding: 0 1rem; display: flex; align-items: center; font-size: .9375rem; }
}

/* ==========================================================================
   07 메뉴와 가격: 3D 붕어빵 전개도 (전환 2)
   ========================================================================== */
.fishlab { display: grid; gap: 1rem; margin-bottom: 1.75rem; --fill: #5B2A22; }
.fishlab__stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 34rem;
  border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 85% at 50% 30%, #5B412D 0%, #34261C 50%, #1D1510 100%);
  user-select: none; -webkit-user-select: none;
}
@media (min-width: 600px) { .fishlab__stage { aspect-ratio: 5 / 4; } }
.fishlab__poster { position: absolute; left: 12%; top: 31%; width: 76%; height: auto; transition: opacity .6s; }
.fishlab__peek { fill: var(--fill); opacity: 0; transition: fill .4s; }
.fishlab.is-fallback .fishlab__peek { opacity: .95; }
.fishlab__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; touch-action: pan-y; cursor: grab; }
.fishlab__canvas:active { cursor: grabbing; }
.fishlab.is-ready .fishlab__canvas { opacity: 1; }
.fishlab.is-ready .fishlab__poster { opacity: 0; }
.fishlab__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.flabel { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .3s; will-change: transform; }
.flabel.is-on { opacity: 1; }
.flabel::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-hi); box-shadow: 0 0 0 3px rgba(127, 216, 190, .28); }
.flabel::after { content: ""; position: absolute; left: -.5px; top: -.95rem; width: 1px; height: .7rem; background: rgba(250, 246, 238, .75); }
.flabel span { position: absolute; top: -2.3rem; left: var(--dx, -2.5rem); white-space: nowrap; padding: .25rem .65rem; border-radius: 999px; background: rgba(250, 246, 238, .95); color: var(--choco); font-size: .75rem; font-weight: 700; line-height: 1.3; }
.fishlab__badge { position: absolute; left: .8rem; top: .8rem; display: flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(15, 10, 7, .42); color: var(--cream); font-size: .75rem; font-weight: 700; pointer-events: none; }
.fishlab__badge b { color: var(--mint-hi); font-variant-numeric: tabular-nums; min-width: 2.4em; text-align: right; }
.fishlab__hint { position: absolute; right: .9rem; top: .95rem; font-size: .75rem; color: rgba(250, 246, 238, .7); pointer-events: none; }
.fishlab__controls { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; display: flex; align-items: center; gap: .6rem; }
.fishlab__range { flex: 1; display: flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; background: rgba(15, 10, 7, .42); }
.fishlab__range input { width: 100%; margin: 0; accent-color: var(--mint-hi); }

.fishlab__tabs {
  position: relative; display: flex; gap: .5rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: .2rem var(--gutter) .5rem;
}
.fishlab__tabs::-webkit-scrollbar { display: none; }
.ftab {
  flex: none; scroll-snap-align: center; display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3.25rem; padding: .45rem 1.1rem .45rem .7rem; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; font-size: .9375rem; white-space: nowrap;
  cursor: pointer; touch-action: manipulation; transition: background-color .25s, border-color .25s, color .25s;
}
.ftab__icon { width: 2.4rem; height: auto; }
.ftab__crust { fill: #DE9A48; }
.ftab__fill { fill: var(--fill); stroke: rgba(42, 31, 26, .3); stroke-width: 2; }
.ftab[aria-selected="true"] { background: var(--choco); border-color: var(--choco); color: var(--cream); }

.fishlab__panel { padding: 1.25rem 1.35rem 1.1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); }
.fishlab__season { display: inline-flex; padding: .25rem .75rem; border-radius: 999px; background: var(--mint-bg); color: var(--mint); font-weight: 700; font-size: .8125rem; }
.fishlab__name { margin-top: .55rem; font: 700 clamp(1.55rem, 1.25rem + 1.4vw, 2.25rem)/1.25 var(--font-display); }
.fishlab__facts { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; margin-top: 1rem; }
.fishlab__facts dt { font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.fishlab__facts dd { margin-top: .15rem; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.ratiobar { position: relative; height: .6rem; margin: 1.8rem 0 .3rem; border-radius: 999px; background: var(--cream-2); }
.ratiobar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--brown)); transition: width .6s var(--ease); }
.ratiobar__fill.is-range { background: linear-gradient(90deg, var(--gold) 0, var(--caramel) var(--lo), rgba(201, 138, 75, .4) var(--lo), rgba(201, 138, 75, .4) 100%); }
.ratiobar__limit { position: absolute; left: 90%; top: -.5rem; bottom: -.5rem; width: 2px; background: var(--red); }
.ratiobar__limit span { position: absolute; bottom: 100%; left: 50%; translate: -50% -.15rem; font-size: .6875rem; font-weight: 700; color: var(--red); white-space: nowrap; }

@media (min-width: 960px) {
  .fishlab { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "stage panel" "tabs tabs"; column-gap: 1.5rem; align-items: center; }
  .fishlab__stage { grid-area: stage; }
  .fishlab__panel { grid-area: panel; }
  .fishlab__tabs { grid-area: tabs; margin: 0; padding: .25rem 0; flex-wrap: wrap; justify-content: center; overflow: visible; }
}

/* 08 입지 · 09 마케팅 카드 */
.spot__big { margin-top: .4rem; font-weight: 700; font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); line-height: 1.25; letter-spacing: -.015em; }
.spot__big--mint { color: var(--mint); }
.spot__sub { margin-top: 1.15rem; font-weight: 700; }

/* ==========================================================================
   10 투자: 구성 막대
   ========================================================================== */
.stack { margin-top: .25rem; }
.stack__bar { display: flex; flex-direction: column; gap: 3px; height: 27rem; }
.stack__seg { flex: var(--v) 1 0; min-height: 3.1rem; display: flex; align-items: center; padding: .55rem 1rem; border-radius: .8rem; font-size: .9375rem; line-height: 1.4; }
.stack__seg b { font-weight: 700; }
.s-deposit { background: var(--mint-2); }
.s-interior { background: var(--brown); color: var(--cream); }
.s-machine { background: var(--caramel); }
.s-etc { background: var(--sand); }
.s-reserve { background: var(--cream-2); border: 2px dashed var(--dash); }
@media (min-width: 760px) {
  .stack__bar { flex-direction: row; height: 8.5rem; }
  .stack__seg { min-height: 0; padding: 0 1.1rem; }
}

/* ==========================================================================
   11 인테리어: 공간 레이어 패럴랙스 (전환 5)
   ========================================================================== */
.store { position: relative; margin-bottom: 1.5rem; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; perspective: 1100px; background: #E8D9C1; }
@media (min-width: 760px) { .store { aspect-ratio: 16 / 9; } }
.store__tilt, .store__scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.store__tilt { transition: transform .5s var(--ease); }
.store__scene { transition: transform .9s var(--ease); }
.store__layer { position: absolute; inset: -7%; margin: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); outline: 2px dashed transparent; outline-offset: -2px; }
.store__layer img { width: 100%; height: 100%; object-fit: cover; }
.store__layer--back { transform: translateZ(-60px) scale(1.06); }
.store__layer--mid { transform: translateZ(0); }
.store__layer--front { transform: translateZ(45px) scale(.96); }
.store__tag { position: absolute; left: 11%; top: 11%; padding: .3rem .7rem; border-radius: .5rem; background: var(--choco); color: var(--mint-hi); font-size: .75rem; font-weight: 700; opacity: 0; transition: opacity .4s; }
.store__layer--mid .store__tag { top: auto; bottom: 14%; left: auto; right: 11%; }
.store__layer--front .store__tag { top: 46%; left: 40%; }
.store.is-exploded .store__scene { transform: translateZ(-170px) rotateX(18deg) rotateY(-32deg) scale(.8); }
.store.is-exploded .store__layer { outline-color: rgba(42, 31, 26, .55); }
.store.is-exploded .store__layer--back { transform: translateZ(-160px); }
.store.is-exploded .store__layer--front { transform: translateZ(160px); }
.store.is-exploded .store__tag { opacity: 1; }
.store__toggle { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; }

/* 12 설비 */
.equip__top { display: flex; align-items: center; gap: .65rem; }
.equip__ico { width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: .8rem; background: var(--cream-2); color: var(--brown); }
.equip__big { margin-top: .9rem; font-weight: 700; font-size: clamp(2.3rem, 1.7rem + 2.4vw, 3.3rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.equip__sub { margin-top: .55rem; color: var(--ink-2); line-height: 1.6; }

/* ==========================================================================
   13 수제 고구마 소: 매크로 다이브 (전환 4)
   ========================================================================== */
.slide--dive { padding: 0; background: var(--cream-2); }
.dive { position: relative; height: 300vh; height: 300svh; }
.dive__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--choco); color: var(--cream); }
.dive__layer { position: absolute; inset: 0; transform-origin: 50% 44%; will-change: transform, opacity; }
.dive__layer + .dive__layer { opacity: 0; }
.dive__layer img { width: 100%; height: 100%; object-fit: cover; }
.dive__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(29, 21, 16, .55) 0%, rgba(29, 21, 16, 0) 28%, rgba(29, 21, 16, 0) 48%, rgba(29, 21, 16, .78) 100%); }
.dive__reticle { position: absolute; left: 50%; top: 44%; width: 11rem; height: 11rem; margin: -5.5rem 0 0 -5.5rem; border-radius: 50%; border: 1px solid rgba(250, 246, 238, .6); pointer-events: none; will-change: transform, opacity; }
.dive__reticle i { position: absolute; inset: .9rem; border-radius: 50%; border: 1px dashed rgba(127, 216, 190, .75); }
.dive__hud { position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); top: calc(var(--topbar) + env(safe-area-inset-top) + 1rem); display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.dive__zoom { min-width: 4.2rem; padding: .35rem .8rem; border-radius: 999px; background: var(--mint-hi); color: var(--choco); font-weight: 700; font-size: .875rem; text-align: center; font-variant-numeric: tabular-nums; }
.dive__steps { display: flex; gap: .35rem; }
.dive__steps i { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(250, 246, 238, .35); transition: background-color .3s; }
.dive__steps i.is-on { background: var(--mint-hi); }
.dive__head { position: absolute; left: 0; right: 0; bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
.dive__head .slide__meta { margin-bottom: .85rem; }
.dive__head .slide__no { color: var(--gold); border-color: rgba(250, 246, 238, .35); }
.dive__head .slide__title { color: var(--cream); max-width: 17ch; text-shadow: 0 2px 22px rgba(0, 0, 0, .35); }
.dive__after { padding-top: 3.25rem; padding-bottom: 4rem; }
.dive__after > .slide__lede { margin-bottom: 1.75rem; }

.steps__title { font-weight: 700; font-size: 1.125rem; }
.steps { list-style: none; counter-reset: st; display: grid; gap: .7rem; margin-top: .85rem; }
.steps li { counter-increment: st; position: relative; padding: 1rem 1.1rem 1rem 3.5rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); line-height: 1.65; }
.steps li::before { content: counter(st); position: absolute; left: 1rem; top: .95rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brown); color: var(--cream); font-weight: 700; font-size: .875rem; }

/* ==========================================================================
   14 손익: 매출 대비 막대
   ========================================================================== */
.mix { margin-bottom: 1.25rem; }
.mix__title { font-weight: 700; font-size: .875rem; color: var(--ink-3); }
.mix__row { display: grid; gap: .4rem; margin-top: .9rem; }
.mix__name { font-weight: 700; font-size: .875rem; }
.mix__bar { display: flex; gap: 2px; height: 2.2rem; border-radius: .6rem; overflow: hidden; }
.mix__bar i { flex: var(--v) 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .75rem; font-weight: 700; }
.mix__bar span { white-space: nowrap; }
.c1 { background: #8A4A16; color: #FAF6EE; }
.c2 { background: #A8642B; color: #FAF6EE; }
.c3 { background: #C98A4B; }
.c4 { background: #DCA970; }
.c5 { background: #E8C9A0; }
.c6 { background: #F2DFC3; }
.c7 { background: #BFB3A5; }
.c8 { background: #17705D; color: #FAF6EE; }
.mix__legend { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .9rem; margin-top: 1.1rem; font-size: .8125rem; color: var(--ink-2); line-height: 1.35; }
.mix__legend li { display: flex; align-items: center; gap: .5rem; }
.mix__legend i { width: .8rem; height: .8rem; flex: none; border-radius: .2rem; }
@media (min-width: 760px) { .mix__legend { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   15 월별 손익: 선 그래프 (원본 좌표 그대로)
   ========================================================================== */
.lchart { display: grid; gap: 1.25rem; padding: 1.15rem 1rem 1.25rem; }
.lchart__plot { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); grid-template-rows: 15rem auto; column-gap: .55rem; }
.lchart__y { position: relative; grid-row: 1; grid-column: 1; }
.lchart__y span { position: absolute; right: 0; top: var(--t); translate: 0 -50%; font-size: .6875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lchart__y .is-zero { color: var(--ink); font-weight: 700; }
.lchart__area { position: relative; grid-row: 1; grid-column: 2; }
.lchart__season { position: absolute; top: 0; bottom: 0; background: rgba(127, 216, 190, .18); border-radius: .25rem; }
.lchart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lchart__svg .g { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lchart__svg .g--zero { stroke: #8C7B6E; stroke-width: 1.5; }
.lchart__svg .ln { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lchart__svg .ln--cons { stroke-opacity: .6; stroke-dasharray: 9 6; }
.pt { position: absolute; left: var(--x); top: var(--y); width: .62rem; height: .62rem; margin: -.31rem 0 0 -.31rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--card); }
.pt--cons { background: #6FA897; }
.pt b { position: absolute; left: 50%; bottom: calc(100% + .3rem); translate: -50% 0; padding: 0 .2rem; border-radius: .25rem; background: rgba(255, 252, 246, .9); color: var(--mint); font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.pt--end b { left: auto; right: calc(100% + .35rem); bottom: auto; top: 50%; translate: 0 -50%; }
.lchart__x { position: relative; grid-row: 2; grid-column: 2; height: 1.5rem; margin-top: .45rem; }
.lchart__x span { position: absolute; left: calc(var(--i) / 11 * 100%); top: 0; translate: -50% 0; font-size: .6875rem; color: var(--ink-3); white-space: nowrap; }
.lchart__side { display: grid; gap: .6rem; align-content: start; }
.lg { display: flex; align-items: center; gap: .6rem; font-size: .9375rem; font-weight: 700; color: var(--mint); }
.lg i { width: 1.9rem; flex: none; border-top: 3px solid var(--mint); }
.lg--cons { font-weight: 500; }
.lg--cons i { border-top-style: dashed; opacity: .6; }
.lg--season { font-weight: 500; color: var(--ink-2); }
.lg--season i { height: .8rem; border: 0; border-radius: .2rem; background: rgba(127, 216, 190, .35); }
.lchart__note { margin-top: .3rem; padding: .85rem 1rem; border-radius: .8rem; background: var(--cream-2); line-height: 1.75; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 600px) { .lchart__plot { grid-template-rows: 20rem auto; } .lchart__y span, .lchart__x span, .pt b { font-size: .75rem; } }
@media (min-width: 880px) { .lchart { grid-template-columns: minmax(0, 1fr) 15rem; align-items: start; padding: 1.6rem 1.6rem 1.4rem; } }

/* ==========================================================================
   16 시나리오
   ========================================================================== */
.scn { display: grid; gap: 1.1rem; margin-bottom: 1.25rem; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--cream-2); }
.seg__btn { min-height: 2.75rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 1rem; cursor: pointer; touch-action: manipulation; transition: background-color .25s, color .25s; }
.seg__btn[aria-checked="true"] { background: var(--choco); color: var(--cream); }
.scn__out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.scn__k { font-size: .75rem; font-weight: 700; line-height: 1.4; color: var(--ink-3); }
.scn__v { margin-top: .3rem; font-weight: 700; font-size: clamp(1.25rem, 1rem + 1.4vw, 2.1rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.scn__v--mint { color: var(--mint); }
.bep__item { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-top: .9rem; padding-bottom: .65rem; }
.bep__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .375rem; border-radius: 999px; background: var(--cream-2); }
.bep__item i { position: absolute; left: 0; bottom: 0; z-index: 1; height: .375rem; width: calc(var(--v) / 78 * 100%); border-radius: 999px; background: var(--gold); }
.bep__k { font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.bep__v { font-weight: 700; font-size: 1.65rem; line-height: 1; white-space: nowrap; }

/* ==========================================================================
   17 실행 계획: 단계 타임라인
   ========================================================================== */
.road { list-style: none; position: relative; display: grid; gap: .9rem; padding-left: 2.1rem; }
.road__line { position: absolute; left: .58rem; top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: var(--line); }
.road__line i { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--mint)); transform-origin: 50% 0; scale: 1 0; }
.road__step { position: relative; padding: 1.1rem 1.2rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.road__step::before { content: ""; position: absolute; left: -1.95rem; top: 1.3rem; width: .95rem; height: .95rem; border-radius: 50%; border: 3px solid var(--gold); background: var(--card); }
.road__step--hl { border: 2px solid var(--mint); background: var(--mint-soft); }
.road__step--hl::before { border-color: var(--mint); background: var(--mint); }
.road__when { font-weight: 700; font-size: .875rem; color: var(--brown-2); }
.road__step--hl .road__when { color: var(--mint); }
.road__what { margin-top: .25rem; font-weight: 700; font-size: 1.25rem; line-height: 1.35; }
.road__cost { margin-top: .15rem; font-size: .9375rem; color: var(--ink-2); }
.road__k { margin-top: .8rem; padding-top: .65rem; border-top: 1px solid var(--line); font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.road__gate { margin-top: .2rem; line-height: 1.6; }
@media (min-width: 1000px) {
  .road { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; padding: 2rem 0 0; }
  .road__line { left: .5rem; right: .5rem; top: .35rem; bottom: auto; width: auto; height: 3px; }
  .road__line i { background: linear-gradient(90deg, var(--gold), var(--mint)); transform-origin: 0 50%; scale: 0 1; }
  .road__step::before { left: 1.2rem; top: -2.05rem; }
}

/* ==========================================================================
   18 성과 점검
   ========================================================================== */
.gauge { position: relative; margin: .25rem 0 2.75rem; padding-top: 1.9rem; }
.gauge__bar { display: flex; height: .8rem; border-radius: 999px; overflow: hidden; }
.gauge__bar .z--red { flex: 100 1 0; background: #E6B8AE; }
.gauge__bar .z--amber { flex: 30 1 0; background: #EDC99A; }
.gauge__bar .z--mint { flex: 50 1 0; background: #9BD9C3; }
.gauge__tick { position: absolute; left: var(--x); top: 1.9rem; width: 2px; height: .8rem; margin-left: -1px; background: var(--choco); }
.gauge__tick b { position: absolute; left: 50%; top: calc(100% + .35rem); translate: -50% 0; font-size: .75rem; white-space: nowrap; }
.gauge__pin { position: absolute; left: var(--x); top: .1rem; width: 2px; height: 2.6rem; margin-left: -1px; background: var(--mint); }
.gauge__pin b { position: absolute; right: .45rem; top: -.1rem; font-size: .75rem; font-weight: 700; color: var(--mint); white-space: nowrap; }
.gate__card { display: flex; flex-direction: column; }
.gate__card--go { border: 2px solid var(--mint); background: var(--mint-soft); }
.gate__card--hold { border: 2px solid var(--caramel); }
.gate__card--stop { border: 2px solid var(--red); }
.gate__big { font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.015em; }
.gate__card--go .gate__big { color: var(--mint); }
.gate__card--hold .gate__big { color: var(--brown-2); }
.gate__card--stop .gate__big { color: var(--red); }
.gate__k { margin-top: .25rem; font-size: .9375rem; color: var(--ink-2); }
.gate__what { margin-top: 1rem; font-weight: 700; font-size: 1.125rem; }
.gate__res { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.0625rem; }
.gate__card .card__text { margin-bottom: .9rem; }

/* 21 출처 */
.links { list-style: none; display: grid; gap: .5rem; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; padding: .6rem 1rem; border-radius: .8rem; border: 1px solid var(--line); background: var(--card); text-decoration: none; line-height: 1.5; transition: border-color .2s; }
.links a:hover { border-color: var(--mint); }
.links .ico { color: var(--ink-3); width: 1rem; height: 1rem; }

/* 푸터 */
.foot { background: var(--choco); color: var(--cream); padding: 3.5rem 0 calc(3.5rem + env(safe-area-inset-bottom)); }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; }
.foot__mark { width: 5rem; height: auto; }
.foot__word { margin-top: .4rem; font: 700 2.25rem/1 var(--font-display); }
.foot__roman { font-size: .6875rem; font-weight: 700; letter-spacing: .34em; color: var(--gold); }
.foot .btn { margin-top: 1.1rem; }

/* ==========================================================================
   스크롤 연동 등장 (CSS scroll-driven animation: 지원 브라우저에서만, 컴포지터에서 실행)
   ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv-in linear both; animation-timeline: view(); animation-range: entry 0% entry 160px; }
    .part__no { animation: part-no linear both; animation-timeline: view(); animation-range: cover; }
    .part__title, .part__eyebrow { animation: rv-in linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .stack__bar { animation: clip-down linear both; animation-timeline: view(); animation-range: entry 0% contain 0%; }
    .s-bar { animation: clip-down linear both; animation-timeline: view(); animation-range: entry 0% contain 0%; }
    .mix__bar { animation: clip-right linear both; animation-timeline: view(); animation-range: entry 20% contain 0%; }
    .lchart__svg { animation: clip-right linear both; animation-timeline: view(); animation-range: entry 15% contain 0%; }
    .gauge__bar { animation: clip-right linear both; animation-timeline: view(); animation-range: entry 20% contain 0%; }
    @media (min-width: 760px) { .stack__bar { animation-name: clip-right; } }
    @media (min-width: 860px) { .s-bar { animation-name: clip-right; } }
  }
}
@keyframes rv-in { from { opacity: 0; translate: 0 1.75rem; } to { opacity: 1; translate: 0 0; } }
@keyframes part-no { from { translate: 0 22%; } to { translate: 0 -22%; } }
@keyframes clip-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes clip-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ==========================================================================
   움직임 줄이기
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .steam { display: none; }
  .dive { height: auto; }
  .dive__stage { position: relative; height: 80vh; height: 80svh; }
  .dive__reticle { display: none; }
  .road__line i { scale: 1 1; }
}
