/* ==========================================================================
   주식회사 덕인 (DUCKIN) — Kitchen Appliance & Hardware Catalog 2027
   Offing 인쇄 단위 가로 편집 시스템 기반 (100 × 125u 시트, 6 × 8 그리드)
   ========================================================================== */

:root {
  /* White stock colour palette + 덕인 브라스 포인트 */
  --paper: #FFFFFF;
  --paper-second: #F4F2EE;
  --ink: #221F1B;
  --muted: #7E776B;
  --brass: #9C7B43;
  --brass-light: #D7BA80;
  --spread-line: #DAD6CE;
  --gutter-line: #ECE9E2;
  --rule: rgba(34, 31, 27, 0.18);
  --rule-soft: rgba(34, 31, 27, 0.16);
  --rule-strong: rgba(34, 31, 27, 0.20);
  --grid-tint: rgba(34, 31, 27, 0.11);

  /* Typography — 라틴·숫자 Crimson Pro, 한글 디스플레이 Noto Serif KR, 본문·표 Pretendard */
  --serif: "Crimson Pro", "Noto Serif KR", Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* Motion curves */
  --ease-out: cubic-bezier(.22, .7, .2, 1);
  --ease-inout: cubic-bezier(.65, 0, .2, 1);

  /* Fixed chrome & sheet geometry */
  --header-h: 50px;
  --bar-h: 44px;
  --sheet-h: calc(100vh - 94px);
  --page-w: min(calc(var(--sheet-h) * 0.8), 50vw);
  --u: calc(var(--page-w) / 100);
}

@supports (height: 100dvh) {
  :root {
    --sheet-h: calc(100dvh - 94px);
  }
}

/* 발표 모드 (F 키 또는 발표 버튼): 헤더·진행 바 숨김, 전체 높이 시트 사용 */
html.is-presenting {
  --header-h: 0px;
  --bar-h: 0px;
  --sheet-h: 100vh;
  --page-w: min(calc(var(--sheet-h) * 0.8), 50vw);
  --u: calc(var(--page-w) / 100);
}

@supports (height: 100dvh) {
  html.is-presenting {
    --sheet-h: 100dvh;
  }
}

/* Under 960px: one page at a time, still sideways */
@media (max-width: 960px) {
  :root,
  html.is-presenting {
    --page-w: min(calc(var(--sheet-h) * 0.8), 100vw);
    --u: calc(var(--page-w) / 100);
  }
}

/* Reset & base — 라운드·그림자 없음 */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
  box-shadow: none;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  overflow: hidden;
  height: 100%;
}

body {
  height: 100%;
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

button {
  cursor: pointer;
}

ul,
ol,
dl,
dd,
figure,
blockquote,
p,
h1,
h2,
h3,
table,
th,
td {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Accessible focus indicator (1px print rule) */
:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.skip-link:focus {
  top: 8px;
}

/* ==========================================================================
   Fixed Header (50px)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: opacity 0.45s var(--ease-out);
}

html.is-presenting .site-header,
html.is-presenting .progress-bar {
  opacity: 0;
  pointer-events: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.header-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-emblem {
  width: 22px;
  height: 22px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: var(--brass-light);
  flex-shrink: 0;
}

.header-wordmark {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  position: relative;
}

.header-issue {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-divider {
  width: 1px;
  height: 14px;
  background: var(--rule-strong);
}

.nav-link,
.text-link,
.header-menu-btn,
.index-close-btn,
.selection-clear-btn,
.subscribe-submit,
.header-wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 3px;
}

.nav-link,
.header-menu-btn,
.index-close-btn,
.selection-clear-btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.35s var(--ease-out);
}

.header-selection-btn {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.header-home-link {
  color: var(--ink);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active,
.header-menu-btn:hover,
.header-menu-btn:focus-visible,
.index-close-btn:hover,
.index-close-btn:focus-visible,
.selection-clear-btn:hover,
.selection-clear-btn:focus-visible {
  color: var(--ink);
}

.nav-link::after,
.text-link::after,
.header-menu-btn::after,
.index-close-btn::after,
.selection-clear-btn::after,
.subscribe-submit::after,
.header-wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.header-menu-btn:hover::after,
.header-menu-btn:focus-visible::after,
.index-close-btn:hover::after,
.index-close-btn:focus-visible::after,
.selection-clear-btn:hover::after,
.selection-clear-btn:focus-visible::after,
.subscribe-submit:hover::after,
.subscribe-submit:focus-visible::after,
.header-wordmark:hover::after,
.header-wordmark:focus-visible::after {
  transform: scaleX(1);
}

.header-menu-btn {
  display: none;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}

@media (max-width: 980px) {
  .header-nav,
  .header-divider,
  .header-actions {
    display: none;
  }

  .header-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .header-issue {
    display: none;
  }

  .site-header {
    padding-inline: 16px;
  }
}

/* 발표 모드 종료 플로팅 버튼 */
.present-exit-btn {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 60;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.45;
  transition: opacity 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.present-exit-btn:hover,
.present-exit-btn:focus-visible {
  opacity: 1;
  color: var(--ink);
}

.present-exit-btn[hidden] {
  display: none;
}

.present-exit-hint {
  margin-left: 4px;
  font-size: 10px;
}

/* ==========================================================================
   Full-Screen Overlays (Index Menu & Selection List)
   ========================================================================== */

.index-overlay,
.selection-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  overflow-y: auto;
  padding: 24px 32px 44px;
}

.index-overlay[hidden],
.selection-overlay[hidden] {
  display: none;
}

.index-overlay-inner,
.selection-overlay-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 68px);
  justify-content: space-between;
}

.index-overlay-head,
.selection-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.overlay-head-actions,
.selection-head-btns {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.index-esc-hint {
  color: var(--muted);
  margin-left: 4px;
  font-size: 11px;
}

.index-list {
  margin-block: auto;
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
}

.index-item {
  border-top: 1px solid var(--rule);
}

.index-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.1fr) minmax(0, 1.6fr) 96px;
  align-items: baseline;
  gap: 16px;
  padding-block: 12px;
  transition: opacity 0.3s var(--ease-out);
}

.index-list:hover .index-item {
  opacity: 0.42;
}

.index-list .index-item:hover,
.index-list .index-item:focus-within {
  opacity: 1;
}

.index-spread,
.index-pages {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.index-pages {
  text-align: right;
}

.index-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  transition: transform 0.4s var(--ease-out);
}

.index-item:hover .index-title,
.index-item:focus-within .index-title {
  transform: translate3d(8px, 0, 0);
}

.index-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
}

.index-overlay-foot {
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
}

/* Selection Overlay Specifics */
.selection-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.selection-body {
  flex: 1 1 auto;
  padding-block: 28px;
}

.selection-empty {
  padding-block: 64px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.selection-table[hidden],
.selection-empty[hidden] {
  display: none;
}

.selection-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-strong);
}

.selection-table td {
  padding: 14px 12px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.selection-table .sel-model {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.selection-table .sel-cat {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.selection-table .num-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.selection-table .act-col {
  text-align: right;
  white-space: nowrap;
}

.sel-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sel-jump-link,
.sel-remove-btn {
  font-size: 12px;
  color: var(--muted);
  padding: 2px 4px;
  transition: color 0.2s var(--ease-out);
}

.sel-jump-link:hover,
.sel-remove-btn:hover {
  color: var(--ink);
}

.selection-foot {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selection-total-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.selection-total-label {
  font-size: 13.5px;
  color: var(--ink);
}

.selection-total-price {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.selection-foot-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 680px) {
  .index-row {
    grid-template-columns: 74px minmax(0, 1fr) 82px;
    gap: 10px;
  }

  .index-desc {
    display: none;
  }
}

/* ==========================================================================
   Horizontal Scroller Strip & Spreads Row (Offing 동일 수치)
   ========================================================================== */

.strip {
  position: fixed;
  top: var(--header-h);
  bottom: var(--bar-h);
  left: 0;
  right: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--paper);
}

.strip.is-animating {
  scroll-snap-type: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip-track {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  height: 100%;
  /* 첫·마지막 2면 스프레드가 화면 정중앙에 오도록 패딩 */
  padding-inline: max(0px, calc(50vw - var(--page-w)));
}

@media (max-width: 960px) {
  .strip-track {
    padding-inline: max(0px, calc(50vw - (var(--page-w) / 2)));
  }
}

.spread {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  height: var(--sheet-h);
  background: var(--paper);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.spread:last-child::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: var(--spread-line);
  pointer-events: none;
}

.spread-start-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--spread-line);
  z-index: 6;
  pointer-events: none;
  transform-origin: top center;
}

.spread-gutter-line {
  position: absolute;
  top: calc(4.6 * var(--u));
  bottom: calc(4.6 * var(--u));
  left: 50%;
  width: 1px;
  background: var(--gutter-line);
  z-index: 6;
  pointer-events: none;
  transform-origin: top center;
}

/* ==========================================================================
   Page Sheet & 6 × 8 Print Module Grid (Offing 동일 수치)
   ========================================================================== */

.page {
  position: relative;
  width: var(--page-w);
  height: var(--sheet-h);
  flex-shrink: 0;
  background: var(--paper);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: calc(2.4 * var(--u));
  overflow: hidden;
}

@media (max-width: 960px) {
  .spread {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .page {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

/* 여백 head 9u / foot 10u / outside 8u / inside 7u */
.page-left {
  padding: calc(9 * var(--u)) calc(7 * var(--u)) calc(10 * var(--u)) calc(8 * var(--u));
}

.page-right {
  padding: calc(9 * var(--u)) calc(8 * var(--u)) calc(10 * var(--u)) calc(7 * var(--u));
}

.page-back-cover {
  background: var(--paper-second);
}

.block {
  grid-area: var(--area);
  min-width: 0;
  min-height: 0;
  position: relative;
}

/* Running head & folio */
.running-head,
.folio {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(9px, calc(1.25 * var(--u)));
  text-transform: uppercase;
  letter-spacing: 0.13em;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.running-head {
  top: calc(4.1 * var(--u));
}

.folio {
  bottom: calc(4.1 * var(--u));
}

.page-left > .running-head,
.page-left > .folio {
  left: calc(8 * var(--u));
}

.page-right > .running-head,
.page-right > .folio {
  right: calc(8 * var(--u));
  text-align: right;
}

.page-bleed > .running-head,
.page-bleed > .folio {
  color: rgba(34, 31, 27, 0.82);
  background: rgba(255, 255, 255, 0.72);
  padding: calc(0.4 * var(--u)) calc(0.8 * var(--u));
}

/* Shift+G 6 × 8 module grid overlay */
.module-grid {
  position: absolute;
  inset: 0;
  padding: inherit;
  display: none;
  grid-template-columns: inherit;
  grid-template-rows: inherit;
  gap: inherit;
  pointer-events: none;
  z-index: 20;
}

html.show-grid .module-grid {
  display: grid;
}

.module-cell {
  border: 1px solid var(--grid-tint);
}

/* ==========================================================================
   Unit Typography & Editorial Primitives (한국어 최적화)
   ========================================================================== */

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: calc(var(--d, 10) * var(--u));
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: keep-all;
}

.body-copy {
  font-family: var(--sans);
  font-weight: 400;
  font-size: max(11px, calc(1.92 * var(--u)));
  line-height: 1.65;
  text-align: left;
  color: var(--ink);
  word-break: keep-all;
}

.body-copy p + p {
  margin-top: calc(1.5 * var(--u));
}

.body-copy strong {
  font-weight: 600;
}

.standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: max(12px, calc(2.65 * var(--u)));
  line-height: 1.52;
  text-align: left;
  color: var(--ink);
  word-break: keep-all;
}

.label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(9.5px, calc(1.36 * var(--u)));
  text-transform: uppercase;
  letter-spacing: 0.13em;
  line-height: 1.35;
  color: var(--muted);
}

.caption {
  font-family: var(--sans);
  font-weight: 400;
  font-size: max(10px, calc(1.46 * var(--u)));
  line-height: 1.48;
  color: var(--muted);
  word-break: keep-all;
}

.small-text {
  font-family: var(--sans);
  font-weight: 400;
  font-size: max(10px, calc(1.56 * var(--u)));
  line-height: 1.56;
  color: var(--ink);
  word-break: keep-all;
}

.text-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(10.5px, calc(1.52 * var(--u)));
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* Ruled rows & hairlines */
.ruled-row {
  position: relative;
  padding-top: calc(1.15 * var(--u));
}

.ruled-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
}

.ruled-row-both {
  padding-bottom: calc(1.15 * var(--u));
}

.ruled-row-both::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
}

/* Picture containers */
.pic-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #F6F5F2;
}

.pic-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* Product Selection Button (＋ 선택 / ✓ 선택됨) */
.select-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: calc(0.42 * var(--u)) calc(1.15 * var(--u));
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(9.5px, calc(1.36 * var(--u)));
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.22s var(--ease-out), color 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.select-toggle-btn:hover,
.select-toggle-btn:focus-visible {
  border-color: var(--ink);
}

.select-toggle-btn.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.select-toggle-sm {
  padding: calc(0.32 * var(--u)) calc(0.85 * var(--u));
  font-size: max(9px, calc(1.28 * var(--u)));
}

/* ==========================================================================
   Spread 01 — 표지 & 파트너 사용 안내
   ========================================================================== */

.cover-wordmark-block {
  display: flex;
  align-items: flex-start;
}

.cover-wordmark {
  line-height: 0.88;
  letter-spacing: 0.01em;
  margin-left: calc(-0.5 * var(--u));
}

.cover-meta-block {
  align-self: start;
}

.cover-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(1 * var(--u));
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(9.5px, calc(1.38 * var(--u)));
  letter-spacing: 0.09em;
  color: var(--ink);
}

.cover-meta-bar span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.cover-rail-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: calc(0.6 * var(--u));
}

.cover-tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: max(11.5px, calc(2.35 * var(--u)));
  line-height: 1.42;
  color: var(--ink);
}

.cover-lines {
  display: flex;
  flex-direction: column;
  gap: calc(1.2 * var(--u));
}

.cover-lines .ruled-row {
  padding-top: calc(1.05 * var(--u));
  font-family: var(--sans);
  font-size: max(10px, calc(1.55 * var(--u)));
  line-height: 1.42;
  color: var(--ink);
}

.cover-lines a {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.45s var(--ease-out);
}

.cover-lines a:hover,
.cover-lines a:focus-visible {
  background-size: 100% 1px;
}

.section-head {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(1 * var(--u));
}

.letter-body {
  align-self: start;
}

.letter-body p.letter-sign {
  margin-top: calc(2 * var(--u));
  font-family: var(--serif);
  font-weight: 400;
  color: var(--muted);
}

.letter-note {
  align-self: end;
}

.reader-direction {
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(10px, calc(1.46 * var(--u)));
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ==========================================================================
   Spread 02 — 목차 & 소재와 마감
   ========================================================================== */

.contents-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: calc(0.4 * var(--u));
}

.contents-sub {
  max-width: 96%;
}

.toc-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.toc-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.toc-item {
  padding-top: calc(0.8 * var(--u));
  padding-bottom: calc(0.4 * var(--u));
  transition: opacity 0.35s var(--ease-out);
}

.toc-list:hover .toc-item,
.toc-list:focus-within .toc-item {
  opacity: 0.4;
}

.toc-list .toc-item:hover,
.toc-list .toc-item:focus-within {
  opacity: 1;
}

.toc-link {
  display: grid;
  grid-template-columns: calc(5.2 * var(--u)) minmax(0, 1fr);
  row-gap: calc(0.18 * var(--u));
  align-items: baseline;
}

.toc-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(9.5px, calc(1.36 * var(--u)));
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.toc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(12px, calc(2.55 * var(--u)));
  line-height: 1.18;
  color: var(--ink);
  transition: transform 0.42s var(--ease-out);
}

.toc-item:hover .toc-title,
.toc-item:focus-within .toc-title {
  transform: translate3d(calc(1 * var(--u)), 0, 0);
}

.toc-desc {
  grid-column: 2;
  font-family: var(--sans);
  font-size: max(10px, calc(1.45 * var(--u)));
  line-height: 1.32;
  color: var(--muted);
}

.issue-stamp-block {
  display: flex;
  flex-direction: column;
  gap: calc(1 * var(--u));
}

.issue-big-number {
  line-height: 0.88;
}

.issue-sub-meta {
  line-height: 1.55;
}

.frontispiece-block {
  display: flex;
  flex-direction: column;
  gap: calc(1 * var(--u));
}

.frontispiece-block .pic-frame {
  flex: 1 1 0;
  min-height: 0;
}

.contributors-block {
  align-self: end;
}

.materials-intro-wrap {
  padding-top: calc(1.1 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(0.75 * var(--u));
}

.materials-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(1 * var(--u));
}

.materials-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(12px, calc(2.4 * var(--u)));
  line-height: 1.2;
  color: var(--ink);
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(2.4 * var(--u));
}

/* ==========================================================================
   Spread 03 — 빌트인 기기 오프너 (Full Bleed + Drift)
   ========================================================================== */

.page-bleed .bleed-figure {
  position: absolute;
  inset: 0;
  grid-area: auto;
}

.bleed-frame {
  width: 100%;
  height: 100%;
}

.drift-track {
  position: relative;
  left: -5%;
  width: 110%;
  height: 100%;
  will-change: transform;
}

.drift-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opener-kicker {
  align-self: end;
}

.opener-title-block {
  display: flex;
  align-items: center;
}

.opener-standfirst-block {
  align-self: center;
}

.opener-byline-block {
  align-self: center;
}

.subcat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: calc(1.6 * var(--u));
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(10.5px, calc(1.68 * var(--u)));
  color: var(--ink);
}

.subcat-row a {
  display: inline-flex;
  align-items: baseline;
  gap: calc(0.55 * var(--u));
  transition: color 0.25s var(--ease-out);
}

.subcat-row a:hover {
  color: var(--muted);
}

.subcat-num {
  font-size: max(9.5px, calc(1.3 * var(--u)));
  color: var(--muted);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.opener-caption-block {
  align-self: end;
}

/* ==========================================================================
   Spread 04 & 05 — 제품 스펙 블록 & 설치 전 확인 박스
   ========================================================================== */

.compact-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(1 * var(--u));
  align-self: end;
  padding-bottom: calc(0.5 * var(--u));
  border-bottom: 1px solid var(--ink);
}

.product-entry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(0.75 * var(--u));
}

.entry-kicker {
  margin-bottom: calc(-0.2 * var(--u));
}

.product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(1.2 * var(--u));
}

.product-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: calc(0.9 * var(--u));
  min-width: 0;
}

.product-model {
  font-family: var(--serif);
  font-weight: 600;
  font-size: max(12px, calc(2.15 * var(--u)));
  letter-spacing: 0.03em;
  color: var(--ink);
}

.product-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(11.5px, calc(1.92 * var(--u)));
  line-height: 1.3;
  color: var(--ink);
}

.product-tag {
  font-family: var(--sans);
  font-size: max(9.5px, calc(1.3 * var(--u)));
  color: var(--muted);
  padding: calc(0.15 * var(--u)) calc(0.6 * var(--u));
  border: 1px solid var(--gutter-line);
}

.product-brand-pill {
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(9px, calc(1.24 * var(--u)));
  letter-spacing: 0.04em;
  color: var(--brass);
}

.product-desc {
  font-family: var(--sans);
  font-size: max(10px, calc(1.52 * var(--u)));
  line-height: 1.55;
  color: var(--ink);
  word-break: keep-all;
}

.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: grid;
  grid-template-columns: calc(22 * var(--u)) minmax(0, 1fr);
  align-items: baseline;
  gap: calc(1.4 * var(--u));
  padding-block: calc(0.62 * var(--u));
}

.spec-list-compact .spec-row {
  padding-block: calc(0.48 * var(--u));
}

.spec-row dt {
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(9.5px, calc(1.38 * var(--u)));
  color: var(--muted);
}

.spec-row dd {
  font-family: var(--sans);
  font-weight: 400;
  font-size: max(10px, calc(1.5 * var(--u)));
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.spec-price-row dd {
  font-weight: 600;
}

.page-foot-note {
  align-self: end;
}

.hob-photo-block {
  display: flex;
  flex-direction: column;
  gap: calc(0.9 * var(--u));
}

.hob-photo-block .pic-frame {
  flex: 1 1 0;
  min-height: 0;
}

/* Spread 05 Split & Precheck Box */
.split-photo-block {
  min-height: 0;
}

.split-copy-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(1 * var(--u));
}

.product-head-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: calc(0.75 * var(--u));
}

.product-title-serif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(14px, calc(3.3 * var(--u)));
  line-height: 1.22;
  color: var(--ink);
  word-break: keep-all;
}

.precheck-box {
  background: var(--paper-second);
  border: 1px solid var(--rule-strong);
  padding: calc(1.5 * var(--u)) calc(1.8 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(0.9 * var(--u));
}

.precheck-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(1 * var(--u));
  padding-bottom: calc(0.6 * var(--u));
  border-bottom: 1px solid var(--rule);
}

.precheck-title {
  color: var(--ink);
}

.precheck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(1.8 * var(--u));
}

.precheck-item strong {
  display: block;
  font-size: max(10px, calc(1.48 * var(--u)));
  font-weight: 600;
  color: var(--ink);
  margin-bottom: calc(0.35 * var(--u));
}

.precheck-item p {
  font-size: max(9.5px, calc(1.38 * var(--u)));
  line-height: 1.48;
  color: var(--ink);
}

.precheck-item em {
  font-style: normal;
  font-weight: 600;
}

/* ==========================================================================
   Spread 06 — 수전 & 마감 칩 (CSS 사각형 견본)
   ========================================================================== */

.faucet-top-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(1 * var(--u));
}

.swatch-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(1.8 * var(--u));
}

.swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(0.7 * var(--u));
}

.swatch-square {
  display: inline-block;
  width: max(12px, calc(2.1 * var(--u)));
  height: max(12px, calc(2.1 * var(--u)));
  border: 1px solid rgba(34, 31, 27, 0.28);
  flex-shrink: 0;
}

.swatch-steel {
  background: linear-gradient(135deg, #DEDEDE 0%, #B8BABC 48%, #E4E4E2 100%);
}

.swatch-black {
  background: #232220;
}

.swatch-brass {
  background: linear-gradient(135deg, #CEB47D 0%, #A98B52 52%, #C9AF79 100%);
}

.swatch-name {
  font-size: max(9.5px, calc(1.38 * var(--u)));
  font-weight: 500;
  color: var(--ink);
}

.faucet-thumb-block .pic-frame {
  width: 100%;
  height: 100%;
}

.faucet-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faucet-entry-inner {
  display: flex;
  flex-direction: column;
  gap: calc(0.65 * var(--u));
  padding-top: calc(1 * var(--u));
}

.faucet-spec-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 1.05fr 0.85fr;
  gap: calc(1 * var(--u));
  padding-top: calc(0.45 * var(--u));
  border-top: 1px solid var(--gutter-line);
}

.faucet-spec-grid dt {
  font-size: max(9px, calc(1.24 * var(--u)));
  color: var(--muted);
  margin-bottom: calc(0.15 * var(--u));
}

.faucet-spec-grid dd {
  font-size: max(9.5px, calc(1.42 * var(--u)));
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.faucet-spec-grid dd.price-val {
  font-weight: 600;
}

/* ==========================================================================
   Spread 07 — 싱크볼 & 사이즈 비교표
   ========================================================================== */

.sink-head {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(0.9 * var(--u));
}

.sink-lead-block {
  align-self: end;
}

.sink-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(2.4 * var(--u));
  padding-top: calc(1.3 * var(--u));
}

.sink-sub-label {
  color: var(--ink);
  margin-bottom: calc(0.45 * var(--u));
}

.sink-granite-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(0.8 * var(--u));
}

.sink-table-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.table-head-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(1 * var(--u));
  padding-bottom: calc(0.7 * var(--u));
  border-bottom: 1px solid var(--ink);
}

.table-head-bar .label {
  color: var(--ink);
}

.catalog-table th {
  text-align: left;
  padding: calc(0.8 * var(--u)) calc(0.55 * var(--u));
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(9px, calc(1.28 * var(--u)));
  color: var(--muted);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}

.catalog-table td {
  padding: calc(0.95 * var(--u)) calc(0.55 * var(--u));
  font-family: var(--sans);
  font-size: max(9.5px, calc(1.38 * var(--u)));
  line-height: 1.38;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.catalog-table th:first-child,
.catalog-table td:first-child {
  padding-left: 0;
}

.catalog-table th:last-child,
.catalog-table td:last-child {
  padding-right: 0;
}

.model-cell strong,
.item-col strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.model-cell span,
.item-col span {
  display: block;
  font-size: max(9px, calc(1.22 * var(--u)));
  color: var(--muted);
}

.num-cell,
.num-col {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.catalog-table .num-col {
  text-align: right;
}

.catalog-table .act-col {
  text-align: right;
  white-space: nowrap;
}

.price-cell {
  font-weight: 600;
}

.table-foot-caption {
  padding-top: calc(0.8 * var(--u));
}

/* ==========================================================================
   Spread 08 — 하드웨어 4종 & 숫자 카운터 3개
   ========================================================================== */

.notes-head {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(0.9 * var(--u));
}

.notes-deck {
  align-self: end;
  padding-bottom: calc(0.4 * var(--u));
}

.hw-card {
  display: flex;
  flex-direction: column;
  gap: calc(1.1 * var(--u));
  min-height: 0;
}

.hw-card .hw-pic {
  flex: 1 1 0;
  min-height: 0;
}

.hw-copy {
  display: flex;
  flex-direction: column;
  gap: calc(0.45 * var(--u));
}

.hw-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(0.8 * var(--u));
}

.hw-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(11px, calc(1.8 * var(--u)));
  line-height: 1.3;
  color: var(--ink);
}

.hw-meta {
  font-size: max(9.5px, calc(1.34 * var(--u)));
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hw-price {
  font-size: max(10px, calc(1.45 * var(--u)));
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.counters-block {
  align-self: end;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(2.4 * var(--u));
  padding-block: calc(1.5 * var(--u));
}

.counter-item {
  display: flex;
  flex-direction: column;
  gap: calc(0.55 * var(--u));
}

.counter-line {
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
}

.counter-unit {
  font-family: var(--sans);
  font-size: max(11px, calc(2.1 * var(--u)));
  font-weight: 400;
  margin-left: calc(0.25 * var(--u));
}

/* ==========================================================================
   Spread 09 — 시공 체크리스트 & 리드타임·자료실
   ========================================================================== */

.checklist-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: calc(0.4 * var(--u));
}

.checklist-table-wrap {
  display: flex;
  flex-direction: column;
}

.checklist-table {
  border-top: 1px solid var(--ink);
}

.checklist-table td {
  padding-block: calc(0.88 * var(--u));
  font-size: max(9.5px, calc(1.34 * var(--u)));
  line-height: 1.44;
  vertical-align: top;
}

.checklist-table .item-col {
  width: 20%;
  white-space: nowrap;
}

.block-kicker {
  color: var(--ink);
  margin-bottom: calc(0.9 * var(--u));
}

.logistics-block {
  display: flex;
  flex-direction: column;
}

.masthead-list {
  display: flex;
  flex-direction: column;
}

.masthead-row {
  display: grid;
  grid-template-columns: calc(21 * var(--u)) minmax(0, 1fr);
  align-items: baseline;
  gap: calc(1.8 * var(--u));
  padding-block: calc(0.82 * var(--u));
}

.masthead-row dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(9.5px, calc(1.38 * var(--u)));
  color: var(--ink);
}

.masthead-row dd {
  font-family: var(--sans);
  font-size: max(9.8px, calc(1.44 * var(--u)));
  line-height: 1.48;
  color: var(--ink);
}

.archive-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.archive-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(1 * var(--u));
}

.archive-list {
  display: flex;
  flex-direction: column;
}

.archive-row {
  padding-block: calc(0.85 * var(--u));
}

.archive-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(1 * var(--u));
  transition: opacity 0.25s var(--ease-out);
}

.archive-link:hover {
  opacity: 0.65;
}

.archive-icon {
  display: inline-flex;
  color: var(--ink);
}

.archive-title {
  font-size: max(10px, calc(1.45 * var(--u)));
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-meta {
  font-size: max(9px, calc(1.26 * var(--u)));
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.archive-notice {
  margin-top: calc(1 * var(--u));
  padding: calc(0.75 * var(--u)) calc(1 * var(--u));
  background: var(--paper-second);
  border-left: 2px solid var(--ink);
  font-size: max(9.5px, calc(1.38 * var(--u)));
  color: var(--ink);
}

.archive-notice[hidden] {
  display: none;
}

/* ==========================================================================
   Spread 10 — 문의 안내 & 뒤표지
   ========================================================================== */

.colophon-head {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(0.9 * var(--u));
}

.inquiry-card-inner {
  display: flex;
  flex-direction: column;
  gap: calc(0.85 * var(--u));
  padding-top: calc(1.2 * var(--u));
}

.inquiry-kicker {
  color: var(--muted);
}

.inquiry-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(13px, calc(2.65 * var(--u)));
  line-height: 1.25;
  color: var(--ink);
}

.inquiry-meta {
  margin-top: calc(0.3 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(0.38 * var(--u));
  padding-top: calc(0.75 * var(--u));
  border-top: 1px solid var(--gutter-line);
}

.inquiry-meta div {
  display: grid;
  grid-template-columns: calc(8.5 * var(--u)) minmax(0, 1fr);
  gap: calc(0.8 * var(--u));
  font-size: max(9.5px, calc(1.38 * var(--u)));
}

.inquiry-meta dt {
  color: var(--muted);
}

.inquiry-meta dd {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.subscribe-block {
  align-self: center;
}

.subscribe-form {
  display: flex;
  align-items: baseline;
  gap: calc(1.6 * var(--u));
  padding-top: calc(1.3 * var(--u));
  padding-bottom: calc(0.95 * var(--u));
  border-bottom: 1px solid var(--rule);
}

.subscribe-label {
  color: var(--ink);
  flex-shrink: 0;
}

.subscribe-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: max(11px, calc(1.65 * var(--u)));
  color: var(--ink);
}

.subscribe-input::placeholder {
  color: var(--muted);
}

.subscribe-input:focus {
  outline: none;
}

.subscribe-submit {
  flex-shrink: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(10px, calc(1.45 * var(--u)));
  letter-spacing: 0.04em;
  color: var(--ink);
}

.subscribe-reply {
  padding-top: calc(1 * var(--u));
  font-family: var(--sans);
  font-weight: 500;
  font-size: max(10.5px, calc(1.55 * var(--u)));
  color: var(--ink);
}

.subscribe-reply[hidden] {
  display: none;
}

.colophon-foot {
  align-self: end;
}

.colophon-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: calc(1.2 * var(--u));
}

.back-imprint-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(0.9 * var(--u));
}

.back-next {
  color: var(--muted);
}

/* ==========================================================================
   Progress Bar (44px Fixed Bottom) + 발표 버튼
   ========================================================================== */

.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: 22px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: opacity 0.45s var(--ease-out);
}

.progress-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.progress-spread {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.progress-name {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.progress-track {
  position: relative;
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule-soft);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.progress-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.present-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.present-btn:hover,
.present-btn:focus-visible {
  border-color: var(--ink);
  background: var(--paper-second);
}

.present-key {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.progress-pages {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

.step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink);
  transition: opacity 0.3s var(--ease-out);
}

.step-btn.is-end,
.step-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

@media (max-width: 640px) {
  .progress-name,
  .progress-sep,
  .present-btn {
    display: none;
  }

  .progress-bar {
    padding-inline: 16px;
    gap: 12px;
  }
}

/* ==========================================================================
   Intro, Word-Mask, Hairline & Arrival Choreography (JS-gated only)
   ========================================================================== */

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-top: 0.08em;
  margin-top: -0.08em;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.word-inner {
  display: inline-block;
  will-change: transform;
}

html.has-js:not(.reduced-motion) .site-header.intro-hidden,
html.has-js:not(.reduced-motion) .progress-bar.intro-hidden {
  opacity: 0;
  pointer-events: none;
}

html.has-js:not(.reduced-motion) .spread-start-line,
html.has-js:not(.reduced-motion) .spread-gutter-line {
  transform: scaleY(0);
  transition: transform 1.1s var(--ease-inout);
  transition-delay: var(--line-delay, 0ms);
}

html.has-js:not(.reduced-motion) .lines-drawn .spread-start-line,
html.has-js:not(.reduced-motion) .lines-drawn .spread-gutter-line {
  transform: scaleY(1);
}

html.has-js:not(.reduced-motion) [data-arrive] {
  opacity: 0;
  transform: translate3d(0, calc(1.8 * var(--u)), 0);
  transition:
    transform 0.9s var(--ease-out) var(--arrive-delay, 0ms),
    opacity 1.1s var(--ease-out) var(--arrive-delay, 0ms);
  will-change: transform, opacity;
}

html.has-js:not(.reduced-motion) [data-arrive].is-arrived {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.has-js:not(.reduced-motion) [data-intro-coverline] {
  opacity: 0;
  transform: translate3d(0, calc(1.2 * var(--u)), 0);
  transition:
    transform 0.9s var(--ease-out),
    opacity 1s var(--ease-out);
}

html.has-js:not(.reduced-motion) [data-intro-coverline].is-arrived {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.has-js:not(.reduced-motion) [data-arrive] .pic-frame img {
  transform: scale(1.045);
  transition: transform 1.6s var(--ease-out) var(--arrive-delay, 0ms);
}

html.has-js:not(.reduced-motion) [data-arrive].is-arrived .pic-frame img {
  transform: scale(1);
}

html.has-js:not(.reduced-motion) .ruled-group .ruled-row::before,
html.has-js:not(.reduced-motion) .ruled-group .ruled-row-both::after {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-inout) calc(var(--arrive-delay, 0ms) + var(--rule-delay, 0ms));
}

html.has-js:not(.reduced-motion) .is-arrived .ruled-row::before,
html.has-js:not(.reduced-motion) .is-arrived .ruled-row-both::after {
  transform: scaleX(1);
}

html.has-js:not(.reduced-motion) .word-inner {
  transform: translate3d(0, 115%, 0);
  transition: transform 0.9s var(--ease-out) calc(var(--arrive-delay, 0ms) + var(--word-delay, 0ms));
}

html.has-js:not(.reduced-motion) .is-arrived .word-inner,
html.has-js:not(.reduced-motion) [data-intro-wordmark].is-arrived .word-inner {
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   Stacked Mode — Offing 기존 반응형 분기 유지 (<= 700px wide or <= 560px tall)
   ========================================================================== */

@media (max-width: 700px), (max-height: 560px) {
  :root,
  html.is-presenting {
    --u: min(1.95vw, 7.6px);
  }

  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .strip {
    position: static;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    padding-top: var(--header-h);
    padding-bottom: var(--bar-h);
  }

  .spread,
  .page {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .strip-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding-inline: 0;
  }

  .spread {
    flex-direction: column;
    width: 100%;
    height: auto;
    border-top: 1px solid var(--spread-line);
  }

  .spread:first-child {
    border-top: 0;
  }

  .spread:last-child::after,
  .spread-start-line,
  .spread-gutter-line {
    display: none;
  }

  .page {
    width: 100%;
    max-width: 620px;
    height: auto;
    margin-inline: auto;
    padding: 46px 22px 50px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 14px;
    overflow: visible;
  }

  .page + .page {
    border-top: 1px solid var(--gutter-line);
  }

  .page-back-cover {
    max-width: 620px;
  }

  .page-left > .running-head,
  .page-left > .folio {
    left: 22px;
  }

  .page-right > .running-head,
  .page-right > .folio {
    right: 22px;
  }

  .running-head {
    top: 16px;
  }

  .folio {
    bottom: 16px;
  }

  .block {
    grid-area: auto;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .cover-rail-block {
    order: 4;
    gap: 16px;
    padding-right: 0;
  }

  .cover-photo-block {
    order: 3;
  }

  .page-bleed {
    padding-top: 46px;
  }

  .page-bleed .bleed-figure {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
  }

  .drift-track {
    left: 0;
    width: 100%;
    transform: none !important;
  }

  .pic-frame,
  .frontispiece-block .pic-frame,
  .hob-photo-block .pic-frame,
  .hw-card .hw-pic {
    flex: none;
    height: auto;
    aspect-ratio: var(--ratio);
  }

  .contributors-grid,
  .sink-lead-grid,
  .precheck-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faucet-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .masthead-row,
  .spec-row {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
  }

  .sink-table-wrap,
  .checklist-table-wrap {
    overflow-x: auto;
  }

  .module-grid {
    grid-template-rows: 1fr;
  }

  .module-cell:nth-child(n + 5) {
    display: none;
  }
}

/* ==========================================================================
   Reduced Motion Accessibility Override
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
