/* 순위 말고 매출: 책의 조판(outputs/ebook/seo-book/DESIGN.md)에서 색과 서체를 그대로 가져왔다.
   방향은 "One motif"(seed 1340056475). 모양은 하나, 표지의 막대다. 너비가 잰 숫자인 사각형. */

@font-face { font-family: "Head"; src: url("fonts/SCDream6.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Head"; src: url("fonts/SCDream8.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Head"; src: url("fonts/SCDream9.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Text"; src: url("fonts/NotoSerifKR-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Text"; src: url("fonts/NotoSerifKR-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #eeeeea;
  --ink: #000000;
  --muted: #4d4d4d;
  --accent: #fe7141;
  --accent-ink: #000000;
  --accent-text: #b93c0c;
  --sage: #d1ddd3;
  --lime: #f0ff1c;

  --font-display: "Head", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-text: "Text", "AppleMyungjo", "Batang", serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1rem + 1.5vw, 2.25rem);
  --step-head: clamp(1.875rem, 1rem + 3.1vw, 3.875rem);
  --step-display: clamp(3.5rem, 10.4vw, 9.5rem);

  --margin: clamp(1.125rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 13rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, dl, dd, dt { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.path :focus-visible, .about :focus-visible { outline-color: var(--lime); }
.button:focus-visible { outline-offset: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.display { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.05em; }
.head { font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.045em; }
.small { font-size: var(--step-small); line-height: 1.6; }
.nums { font-variant-numeric: tabular-nums; }
.wrap { padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 버튼은 막대다. 누르면 주황 막대가 왼쪽에서 차오른다 */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 1.9rem; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color 200ms ease, transform 140ms var(--ease-out); }
.button::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-expo); z-index: -1; }
.button:active { transform: scale(0.97); }
.button-small { min-height: 2.75rem; padding: 0 1.2rem; font-size: 1rem; }
.button-accent { background: var(--accent); color: var(--ink); }
.button-accent::before { background: var(--lime); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.09em; transition: text-decoration-color 200ms ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 0.09em; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { color: var(--ink); background-color: var(--accent); transition: color 200ms ease 140ms, background-color 0s linear 420ms, transform 140ms var(--ease-out); }
  .button-accent:hover { background-color: var(--lime); }
  .button:hover::before { transform: scaleX(1); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent-text); }
}

/* 위 막대 */
.bar { display: flex; align-items: center; gap: 2rem; padding-block: 1.1rem; }
.bar-name { font-family: var(--font-display); font-weight: 900; font-size: var(--step-body); letter-spacing: -0.05em; text-decoration: none; margin-right: auto; }
.bar-links { display: flex; gap: 1.75rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.03em; }
.bar-links a { text-decoration-line: underline; }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-height: calc(100svh - 5rem); padding-bottom: var(--margin); }
.hero-card { display: flex; flex-direction: column; min-width: 0; }
.funnel { display: grid; gap: 4px; margin-top: 1.5rem; }
.funnel-note { margin-top: 0.5rem; }
.funnel-row, .mark-row { display: flex; align-items: center; gap: 0.75rem; }
.funnel-bar { flex: none; height: clamp(2.5rem, 3.4vw, 3rem); width: calc(var(--w) * 1%); display: flex; align-items: center; transform-origin: left; }
.funnel-bar.b1, .funnel-bar.b2 { padding: 0.4rem 0.9rem; }
.funnel-bar span, .funnel-out { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.03em; white-space: nowrap; }
.funnel-bar.b1 { background: var(--accent); }
.funnel-bar.b2 { background: var(--sage); }
.funnel-bar.b3 { background: var(--ink); }
.hero-text { padding-block: clamp(1rem, 2.2vw, 2rem) 1.75rem; padding-right: 1.5rem; }
.hero-sub { margin-top: 1.75rem; max-width: 34em; font-size: max(1.125rem, var(--step-body)); }
.hero-text .button { margin-top: 1.75rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; max-width: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.03em; margin-top: auto; }
.hero-stage { position: relative; align-self: stretch; min-height: 30rem; background: var(--accent); display: grid; place-items: center; overflow: hidden; }
.hero-pages { position: relative; height: 86%; aspect-ratio: 1040 / 1477; }
.hero-pages img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-pages img.was-on { z-index: 1; }
.hero-pages img.is-on { z-index: 2; animation: fadein 1600ms ease both; }

/* 질문 */
.question { padding-top: clamp(5rem, 16vh, 11rem); }
.statement { max-width: 34em; margin-inline: auto; margin-bottom: clamp(5rem, 16vh, 11rem); font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); line-height: 1.42; letter-spacing: -0.04em; text-align: center; text-wrap: balance; }
.s-line { display: block; }

.path { background: var(--ink); color: #fff; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.path-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 2.25rem; }
.path-row > div { background: var(--lime); color: var(--ink); padding: 1.3rem 1.25rem 1.1rem; min-width: 0; display: flex; flex-direction: column-reverse; justify-content: space-between; gap: 1.5rem; }
.path-row > div:nth-child(2) { background: var(--sage); }
.path-row > div:nth-child(3) { background: var(--accent); }
.path-row dt { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.03em; }
.path-row dd { font-family: var(--font-display); font-weight: 900; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.path-note { margin-top: 1.75rem; max-width: 46em; }

/* 숫자 */
.stats { padding-top: var(--section); }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: start; }
.tile { position: relative; grid-row: 1; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.tile-a { grid-column: 1 / span 6; min-height: 70vh; background: var(--accent); }
.tile-b { grid-column: 7 / span 3; margin-top: 14vh; min-height: 44vh; background: var(--ink); color: #fff; }
.tile-b .tile-num { color: var(--lime); }
.tile-c { grid-column: 10 / span 3; margin-top: 28vh; min-height: 30vh; background: var(--sage); }
.tiles-title { grid-row: 1; grid-column: 7 / span 6; }
.tile-num { font-family: var(--font-display); font-weight: 900; max-width: none; }
.tile-cap { max-width: 22em; font-size: var(--step-body); line-height: 1.6; }
.stats-note { margin-top: 2.5rem; max-width: 44em; }

/* 차례 */
.chapters { padding-top: var(--section); }
.chapters-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.chapters-count { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.03em; white-space: nowrap; }
.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; row-gap: 40px; }
.dish { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.dish img { width: 96px; height: 56px; object-fit: cover; background: var(--surface); transition: transform 500ms var(--ease-out); }
.dish-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; max-width: none; font-family: var(--font-display); font-size: var(--step-body); letter-spacing: -0.035em; line-height: 1.35; }
.dish-top strong { font-weight: 900; }
.dish-top span { font-weight: 900; white-space: nowrap; }
.dish-desc { margin-top: 0.35rem; max-width: 34em; font-size: 1rem; line-height: 1.65; }
.dish-note { margin-top: 0.3rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); letter-spacing: -0.02em; color: var(--accent-text); }
.chapters-more { margin-top: 3.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.03em; }
@media (hover: hover) and (pointer: fine) { .dish:hover img { transform: scale(1.06); } }

/* 책 속: 막대 앞에 선 쪽 */
.pages { position: relative; margin-top: var(--section); min-height: max(46rem, 100svh); }
.pages-stage { position: absolute; inset: 0 var(--margin); }
.pages-shape { position: absolute; left: 34%; right: 22%; top: 16%; bottom: 10%; background: var(--accent); transition: background-color 500ms ease; }
.pages-stage[data-tone="b"] .pages-shape { background: var(--sage); }
.pages-stage[data-tone="c"] .pages-shape { background: var(--lime); }
.pages-object { position: absolute; left: 34%; right: 22%; top: 4%; bottom: 14%; }
.pages-object img { position: absolute; top: 0; left: 50%; height: 100%; width: auto; transform: translateX(-50%); z-index: 0; }
.pages-object img.was-on { z-index: 1; }
.pages-object img.is-on { z-index: 2; animation: fadein 300ms ease both; }
.pages-fact { position: absolute; left: calc(78% + 1.25rem); right: 0; bottom: 10%; font-size: var(--step-body); line-height: 1.6; }
.pages-list { position: absolute; left: var(--margin); bottom: 10%; width: 30%; }
.pages-title { font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.045em; margin-bottom: 1rem; }
.pages-names button { display: block; width: 100%; text-align: left; font-family: var(--font-display); font-weight: 900; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.045em; color: var(--muted); transition: color 200ms ease, transform 300ms var(--ease-out); }
.pages-names button[aria-selected="true"] { color: var(--ink); transform: translateX(0.55em); }
.pages-names button[aria-selected="true"]::before { content: ""; position: absolute; left: -0.55em; top: 0.42em; width: 0.38em; height: 0.38em; background: var(--accent); }
.pages-names li { position: relative; }
@media (hover: hover) and (pointer: fine) { .pages-names button:hover { color: var(--ink); } }
@media (min-width: 62.01em) { .pages { margin-top: 3rem; } .pages + .fit { margin-top: 6rem; } }

/* 맞는 분 */
.fit { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--section); }
.fit-half { padding: clamp(3.5rem, 7vw, 6.5rem) var(--margin); }
.fit-yes { background: var(--sage); }
.fit-no { background: var(--surface); padding-top: calc(clamp(3.5rem, 7vw, 6.5rem) + var(--step-head) * 1.12 + 2.5rem); }
.fit-yes .head { margin-bottom: 2.5rem; white-space: nowrap; }
.fit-label { font-size: var(--step-lead); letter-spacing: -0.045em; line-height: 1.25; }
.bars { margin-top: 1.5rem; display: grid; gap: 1.05rem; max-width: 32em; }
.bars li { position: relative; padding-left: 2.1em; }
.bars li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 1.3em; height: 0.42em; background: var(--ink); }
.fit-no .bars li::before { width: 0.42em; }

/* 들어 있는 것 */
.inside { padding-top: var(--section); }
.inside-head { margin-bottom: 3rem; }
.band { background: var(--bg); padding-top: 1.5rem; padding-bottom: 1.5rem; transition: background-color 360ms ease; }
.js .band[data-band] { cursor: pointer; }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; }
.band-line { font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.05em; color: var(--muted); transition: color 300ms ease; }
.band-more { margin-top: 0.7rem; }
.band:not(.is-on) .band-more { color: var(--muted); }
.band.is-on .band-line { color: var(--ink); }
.band-book.is-on { background: var(--lime); }
.band-kit.is-on { background: var(--sage); }
.band-audit.is-on { background: var(--accent); }
.switch { position: relative; display: block; width: 2.6em; height: 1.3em; font-size: clamp(1.75rem, 1rem + 2.4vw, 3rem); background: #767671; transition: background-color 240ms ease; flex: none; }
.switch span { position: absolute; top: 0.14em; left: 0.14em; width: 1.02em; height: 1.02em; background: #fff; transition: transform 300ms var(--ease-out); }
.switch[aria-checked="true"], .switch.is-locked { background: var(--ink); }
.switch[aria-checked="true"] span, .switch.is-locked span { transform: translateX(1.3em); }
.switch.is-locked { cursor: default; }
.switch:active span { transform: scaleX(1.12); }
.switch[aria-checked="true"]:active span { transform: translateX(1.2em) scaleX(1.12); }
.inside-note { margin-top: 1.5rem; max-width: none; font-size: 1rem; }
.inside-total { margin-top: 1rem; max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.5rem; font-family: var(--font-display); font-size: var(--step-body); letter-spacing: -0.035em; }
.inside-total strong { font-weight: 900; }
.inside-total a { font-weight: 600; }

/* 값 */
.price { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: var(--section); padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(4rem, 9vw, 8rem); background: var(--surface); min-height: 80svh; align-items: center; }
.price-side { grid-column: 1 / span 4; align-self: start; }
.price-side p { margin-top: 1.5rem; }
.plans { margin-top: 2.5rem; display: grid; gap: 6px; max-width: 22rem; }
.plans button { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; min-height: 2.75rem; text-align: left; padding: 0.55rem 1rem 0.55rem 2.9rem; font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); letter-spacing: -0.035em; color: var(--muted); background: transparent; transition: color 200ms ease, background-color 240ms ease; }
.plans button::before { content: ""; position: absolute; left: 0.9rem; top: 50%; width: 1.25rem; height: 0.5rem; margin-top: -0.25rem; background: var(--muted); transform: scaleX(0.35); transform-origin: left; transition: transform 360ms var(--ease-expo), background-color 240ms ease; }
.plans button[aria-checked="true"] { color: var(--ink); background: #fff; }
.plans button[aria-checked="true"]::before { transform: scaleX(1); background: var(--accent); }
.plan-price { font-weight: 600; white-space: nowrap; }
.price-main { grid-column: 6 / span 7; }
.price-figure { display: flex; flex-direction: column; align-items: flex-start; }
.price-num { font-family: var(--font-display); font-weight: 900; max-width: none; white-space: nowrap; }
.price-won { font-size: 0.42em; letter-spacing: -0.03em; margin-left: 0.12em; }
.price-cover { order: -1; width: clamp(5rem, 7vw, 7rem); margin-bottom: 1.25rem; background: #fff; }
.price-has { margin-top: 2rem; font-size: var(--step-body); }
.price-has li + li { margin-top: 0.2rem; }
.price-go { margin-top: 2rem; }
.price-msg { margin-top: 1rem; padding: 0.8rem 1rem; background: var(--lime); max-width: 34em; font-size: 1rem; }
.price-terms { margin-top: 1rem; }
.price-plain { margin-top: 1.5rem; }

/* 자주 묻는 질문: 서랍 속 카드 */
.faq { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq-title { grid-column: 1 / span 4; }
.cards { grid-column: 6 / span 7; --tabw: 200px; --tabstep: min(92px, calc((100% - var(--tabw)) / 7)); }
.card { --x: calc(var(--n) * var(--tabstep)); position: relative; padding-bottom: 28px; margin-top: -28px; background: var(--sage); clip-path: polygon(0 40px, var(--x) 40px, var(--x) 0, calc(var(--x) + var(--tabw)) 0, calc(var(--x) + var(--tabw)) 40px, 100% 40px, 100% 100%, 0 100%); }
.card:first-child { margin-top: 0; }
.card:nth-child(3n + 2) { background: var(--lime); }
.card:nth-child(3n) { background: var(--surface); }
.card summary { display: block; position: relative; padding: 40px 28px 0; min-height: 96px; cursor: pointer; list-style: none; }
.card summary::-webkit-details-marker { display: none; }
.card-tab { position: absolute; top: 0; left: var(--x); width: var(--tabw); height: 40px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.03em; transition: transform 240ms var(--ease-out); }
.card-q { display: block; padding-top: 1rem; font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); line-height: 1.4; letter-spacing: -0.04em; }
.card > p { padding: 0.9rem 28px 1.75rem; max-width: 50ch; box-sizing: content-box; }
@media (hover: hover) and (pointer: fine) { .card summary:hover .card-tab { transform: translateY(3px); } }

/* 지은이 */
.about { padding: 20px var(--margin); margin-top: var(--section); }
.about-panel { position: relative; display: grid; grid-template-columns: 63fr 37fr; padding-bottom: 56px; background: var(--ink); color: #fff; overflow: hidden; }
.about-left { display: flex; flex-direction: column; justify-content: space-between; padding: 56px 0 0 56px; min-width: 0; }
.about-left .head { max-width: 9em; }
.about-pic { width: 88%; margin-top: 5rem; overflow: hidden; background: #fff; }
.about-pic img { width: 100%; }
.about-right { padding: 56px 56px 0 0; display: grid; align-content: start; gap: 64px; }
.about-right > div { max-width: 22rem; }
.about-right h3 { font-size: var(--step-lead); letter-spacing: -0.045em; line-height: 1.25; color: var(--lime); }
.about-right p { margin-top: 0.9rem; font-size: 1rem; }
.about-right .about-go { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: -1rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }

/* 맨 아래 */
.foot { margin-top: clamp(3.5rem, 7vw, 6.5rem); padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; background: var(--sage); }
.mark { display: grid; gap: 4px; }
.mark-bar { flex: none; height: 11svh; min-height: 4.5rem; width: calc(var(--w) * 1%); display: flex; align-items: flex-end; transform-origin: left; }
.mark-bar.m1, .mark-bar.m2 { padding: 0.7rem 1rem; }
.mark-bar span, .mark-out { font-family: var(--font-display); font-weight: 900; font-size: var(--step-body); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.mark-bar.m1 { background: var(--ink); color: #fff; }
.mark-bar.m2 { background: var(--accent); }
.mark-bar.m3 { background: #fff; }
.mark-note { margin-top: 1.25rem; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 56px; }
.foot-links { grid-column: 1 / span 7; display: flex; flex-wrap: wrap; align-content: start; gap: 0.6rem 2.25rem; font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); letter-spacing: -0.035em; }
.foot-links a { text-decoration-line: underline; }
.biz { grid-column: 8 / span 5; font-size: var(--step-small); line-height: 1.8; }
.biz-name { font-weight: 600; }
.foot-last { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 3.5rem; }
.foot-last p { max-width: none; }

/* 움직임: 스크립트가 없으면 전부 그대로 보인다 */
@media (prefers-reduced-motion: no-preference) {
  .js .funnel-bar { transform: scaleX(0); animation: grow 900ms var(--ease-expo) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
  .js .funnel-bar.b2 { --d: 1; }
  .js .funnel-bar.b3 { --d: 2; }
  .js .funnel-bar span { opacity: 0; animation: show 500ms ease forwards; animation-delay: calc(var(--d, 0) * 110ms + 620ms); }
  .js .hero-text > *, .js .hero-links { opacity: 0; transform: translateY(20px); animation: rise 800ms var(--ease-out) forwards; }
  .js .hero-text > :nth-child(1) { animation-delay: 220ms; }
  .js .hero-text > :nth-child(2) { animation-delay: 310ms; }
  .js .hero-text > :nth-child(3) { animation-delay: 400ms; }
  .js .hero-links { animation-delay: 520ms; }
  .js .hero-pages { transform: translateY(28px) scale(0.97); opacity: 0; animation: rise 1100ms var(--ease-expo) 260ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .dish[data-reveal] { transform: translateX(-18px); }
  .js .dish[data-reveal].is-in { transform: none; }
  .js .mark-bar { transform: scaleX(0); transition: transform 1100ms var(--ease-expo); }
  .js .mark-bar.m2 { transition-delay: 120ms; }
  .js .mark-bar.m3 { transition-delay: 240ms; }
  .js .mark.is-in .mark-bar { transform: none; }
  .js .path-row > div { transform: translateY(18px); opacity: 0; transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); }
  .js .path-row > div:nth-child(2) { transition-delay: 90ms; }
  .js .path-row > div:nth-child(3) { transition-delay: 180ms; }
  .js .path-row.is-in > div { transform: none; opacity: 1; }
}
@keyframes grow { to { transform: none; } }
@keyframes show { to { opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-pages img.is-on, .pages-object img.is-on { animation: none; }
  .button::before, .switch span { transition: none; }
}

/* 좁은 화면 */
@media (max-width: 62em) {
  .bar-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { order: -1; position: relative; top: 0; height: 40svh; min-height: 17rem; }
  .hero-pages { height: 86%; }
  .hero-text { padding-block: 2.25rem 2.5rem; padding-right: 0; }
  .hero-card { gap: 0; }
  .hero-links { margin-top: 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; align-items: stretch; }
  .tiles-title { grid-column: 1 / -1; grid-row: 1; margin-bottom: 1.25rem; }
  .tile { grid-row: auto; padding: 20px; justify-content: flex-start; gap: 0.9rem; }
  .tile-a { grid-column: 1 / -1; min-height: 0; margin-top: 0; }
  .tile-b { grid-column: 1; margin-top: 0; min-height: 0; }
  .tile-c { grid-column: 2; margin-top: 0; min-height: 0; }
  .chapters-head { align-items: flex-end; }
  .menu { grid-template-columns: 1fr; row-gap: 30px; }
  .pages { min-height: 0; display: flex; flex-direction: column; }
  .pages-stage { position: relative; inset: auto; height: auto; padding-top: min(112vw, 44rem); }
  .pages-shape { left: 7%; right: 7%; bottom: auto; top: min(20vw, 8rem); height: min(92vw, 36rem); }
  .pages-object { left: 7%; right: 7%; bottom: auto; top: min(6vw, 2.4rem); height: min(96vw, 38rem); }
  .pages-fact { position: static; margin: 0; padding-top: 1rem; }
  .pages-list { position: static; width: auto; order: -1; padding: 0 0 1.75rem; }
  .pages-names { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 0.25rem; }
  .pages-names button { width: auto; padding-block: 0.5rem; }
  .pages-names button[aria-selected="true"] { transform: none; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.14em; text-underline-offset: 0.22em; }
  .pages-names button[aria-selected="true"]::before { display: none; }
  .fit { grid-template-columns: 1fr; }
  .fit-no { padding-top: clamp(3rem, 8vw, 4rem); }
  .fit-yes .head { white-space: normal; }
  .band-in { gap: 1.25rem; }
  .price { display: block; }
  .price-main { margin-top: 2.5rem; }
  .faq { display: block; }
  .cards { margin-top: 2.5rem; }
  .cards { --tabw: 124px; --tabstep: min(30px, calc((100% - var(--tabw)) / 7)); }
  .card summary { padding-inline: 20px; }
  .card > p { padding-inline: 20px; }
  .card-tab { font-size: var(--step-small); }
  .about { padding: 10px var(--margin); }
  .about-panel { grid-template-columns: 1fr; min-height: 0; padding-bottom: 24px; }
  .about-left { padding: 36px 24px 0; display: contents; }
  .about-left .head { padding: 40px 24px 0; max-width: none; }
  .about-right { padding: 40px 24px 0; gap: 40px; }
  .about-right > div { max-width: 36em; }
  .about-pic { order: 3; width: auto; margin: 2.5rem 24px 0; }
  .foot-grid { display: block; }
  .biz { margin-top: 2.25rem; }
  .mark-bar { height: 7svh; min-height: 3.5rem; }
}
@media (max-width: 40em) {
  .path-row { grid-template-columns: 1fr; }
  .statement { text-align: left; text-wrap: pretty; margin-inline: 0; }
  .s-line { display: inline; }
  .dish { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .dish img { width: 72px; height: 48px; }
  .switch { font-size: 2.2rem; }
  .tiles { grid-template-columns: 1fr; }
  .tile-b, .tile-c { grid-column: 1; }
  .dish-top { align-items: flex-start; }
  .hero-links { row-gap: 0; }
  .hero-links a, .foot-links a { padding-block: 0.55rem; }
  .chapters-head { margin-bottom: 2.5rem; }
  .foot-last { align-items: flex-start; }
}

/* 인쇄: 스크롤해야 나타나는 것을 전부 보이게 */
@media print {
  .js [data-reveal], .js .path-row > div, .js .funnel-bar span, .js .hero-text > *, .js .hero-links, .js .hero-pages { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .funnel-bar, .js .mark-bar { transform: none !important; animation: none !important; }
}
