/* =========================================================
   리드앤플레이 홈페이지 공통 디자인
   - 색은 아래 :root 한 곳만 고치면 전체가 바뀌어요. (PRD 1-2)
   - 휴대폰 화면을 먼저 만들고, 넓은 화면(1024px 이상)은 아래쪽에서 덧붙여요.
   ========================================================= */

:root {
  --color-bg: #FFFFFF;
  /* 포스터에 쓰인 베이지와 갈색을 그대로 가져왔어요 (2026-10-27 운영자 결정) */
  --color-surface: #FBF3E8;        /* 베이지: 섹션 바탕, 사진 칸 바탕 (서브 색은 이것 하나) */
  --color-primary-strong: #886A60; /* 갈색: 버튼, 링크, 강조 글자 */
  --color-primary-hover: #6F544B;  /* 갈색 버튼에 마우스를 올렸을 때 */
  --color-primary: #D9C6B4;        /* 연한 갈색: 테두리 같은 작은 장식에만 */
  --color-text: #222222;
  --color-text-sub: #6B6B6B;
  --color-line: #EFE6DA;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --header-h: 60px;
  --gutter: 20px;
  --section-gap: 88px;
  --radius-card: 20px;
  --radius-photo: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-strong); }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--color-primary-strong); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--color-text); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; margin: 0 auto; }

/* ---------- 글자 크기 (PRD 1-3) ---------- */
.label {
  display: inline-block; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary-strong);
}
.display { font-size: 30px; font-weight: 700; line-height: 1.3; }
.h2 { font-size: 24px; font-weight: 700; line-height: 1.35; }
.h3 { font-size: 19px; font-weight: 600; line-height: 1.4; }
.lead { font-size: 17px; line-height: 1.7; }
.body { font-size: 16px; line-height: 1.75; }
.caption { font-size: 13px; line-height: 1.5; color: var(--color-text-sub); }
.sub { color: var(--color-text-sub); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- 버튼 (PRD 1-2 CTA Color Rules) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--color-primary-strong); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary { background: #fff; color: var(--color-primary-strong); border-color: var(--color-primary-strong); }
.btn-secondary:hover { background: var(--color-surface); }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.btn-row .btn { width: 100%; }
.text-link {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- 헤더 (PRD 2-1) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--color-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 32px; width: auto; }
.nav-desktop, .header-b2b { display: none; }
.menu-btn {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--color-text);
}
.menu-btn svg { width: 26px; height: 26px; }

/* 휴대폰 메뉴 패널 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: #fff;
  display: flex; flex-direction: column; padding: 0 var(--gutter) 32px;
  transform: translateX(100%); transition: transform 0.25s ease; visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-menu nav { margin-top: 16px; }
.mobile-menu nav a {
  display: block; padding: 16px 4px; font-size: 20px; font-weight: 600; color: var(--color-text);
  text-decoration: none; border-bottom: 1px solid var(--color-line);
}
.mobile-menu nav a[aria-current="page"] { color: var(--color-primary-strong); }
.mobile-menu .btn { margin-top: auto; width: 100%; }

/* ---------- 섹션 공통 ---------- */
.section { padding: var(--section-gap) 0; }
.section-beige { background: var(--color-surface); }

.section-head { margin-bottom: 32px; }
.wave { display: block; width: 100%; height: 24px; color: var(--color-surface); }

.photo { border-radius: var(--radius-photo); overflow: hidden; background: var(--color-surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* 나타나는 효과 (PRD 1-5): 한 번만, 400ms */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 홈: 첫 화면 ---------- */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 28px; }
.hero .eyebrow { font-size: 15px; font-weight: 600; color: var(--color-primary-strong); margin-bottom: 10px; }
.hero .lead { margin-top: 14px; color: var(--color-text-sub); }
.hero-photo { position: relative; aspect-ratio: 1 / 1; }
.hero-photo-wrap .char {
  position: absolute; width: 72px; height: auto; bottom: 0;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.08));
}
.hero-photo-wrap .char-ming { left: 14px; }
.hero-photo-wrap .char-tokyeol { left: 78px; width: 62px; }
.hero-photo-wrap { position: relative; padding-bottom: 28px; }
/* 첫 화면 사진 슬라이드: 사진이 천천히 겹쳐 바뀌고, 살짝 확대됨 */
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { transform: scale(1); transition: transform 6s ease-out; }
.hero-slide.is-active img { transform: scale(1.06); }
.hero-slide figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.88); color: var(--color-primary-strong); font-size: 14px; font-weight: 600;
}
.hero-dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.hero-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.hero-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--color-primary); transition: width .3s, background .3s;
}
.hero-dots button[aria-current="true"]::before { width: 22px; background: var(--color-primary-strong); }

/* ---------- 카드 ---------- */
.card {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .btn { margin-top: auto; width: 100%; min-height: 48px; padding: 0 16px; font-size: 15px; }
.card-photo { aspect-ratio: 1 / 1; background: var(--color-surface); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 놀이 종류 카드 (홈 H-03) */
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.type-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 168px; padding: 18px 12px; text-align: center; text-decoration: none; color: var(--color-text);
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-card);
  transition: transform 0.2s, border-color 0.2s;
}
.type-card:hover { transform: translateY(-4px); border-color: var(--color-primary); }
.type-card:last-child { grid-column: span 2; }
.type-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-surface);
}
.type-icon img { width: 44px; height: 44px; object-fit: contain; }
.type-icon span { font-size: 22px; font-weight: 700; color: var(--color-primary-strong); }
.type-card .h3 { font-size: 18px; }
.type-card p { font-size: 14px; line-height: 1.5; color: var(--color-text-sub); }

/* 이렇게 놀아요 (홈 H-04): 휴대폰은 옆으로 넘기기 */
.play-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px;
  margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin;
}
.play-scroll > * { scroll-snap-align: start; }
.play-card .card-photo { aspect-ratio: 4 / 5; }
.play-card .card-body { gap: 6px; }

/* 브랜드 소개 (홈 H-05) */
.split { display: grid; gap: 28px; align-items: center; }
.split .photo { aspect-ratio: 4 / 5; }

/* ---------- 제품 페이지 ---------- */
.page-head { padding: 56px 0 32px; text-align: center; }
.page-head .lead { margin-top: 12px; color: var(--color-text-sub); }
.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--gutter) 8px;
  margin: 0 calc(var(--gutter) * -1) 24px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--color-line); background: #fff; color: var(--color-text);
  font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.tab[aria-selected="true"] {
  border-color: var(--color-primary-strong); color: var(--color-primary-strong); font-weight: 700;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* 휴대폰: 사진은 왼쪽, 글과 버튼은 오른쪽 (버튼 글자가 두 줄로 깨지지 않게) */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.product-grid .card { flex-direction: row; }
.product-grid .card-photo { flex: 0 0 132px; aspect-ratio: auto; min-height: 132px; }
.product-grid .card-body { padding: 14px 14px 12px; gap: 6px; }
.product-grid .card-body .btn { min-height: 44px; font-size: 14px; margin-top: 8px; }
.product-grid .set-link { min-height: 32px; justify-content: flex-start; }
.product-grid .h3 { font-size: 16px; }
.product-grid .card-body p { font-size: 13.5px; line-height: 1.55; color: var(--color-text-sub); }
.set-link { font-size: 13px; text-align: center; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.notice {
  margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--color-surface);
  font-size: 13px; line-height: 1.5;
}
.related { margin-top: 36px; }
.related-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.related-row a { flex: 0 0 auto; width: 92px; text-decoration: none; color: var(--color-text); font-size: 13px; text-align: center; }
.related-row img { height: 120px; width: auto; margin: 0 auto 6px; border-radius: 8px; border: 1px solid var(--color-line); }
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.poster-grid figure { margin: 0; text-align: center; font-size: 13px; }
.poster-grid img { border-radius: 8px; border: 1px solid var(--color-line); margin-bottom: 6px; }

/* ---------- 놀이 도안 ---------- */
.sheet-grid { display: grid; gap: 16px; }
.sheet-card { position: relative; }
.badge {
  display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.badge-free { background: var(--color-surface); color: var(--color-primary-strong); }
.badge-buy { background: #F0F0F0; color: var(--color-text); }
.sheet-card.big .card-photo { aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--color-surface); }
.sheet-card.big .card-photo img { width: auto; height: auto; max-height: 160px; object-fit: contain; }

/* ---------- 브랜드 이야기 ---------- */
.story-photo { aspect-ratio: 4 / 5; max-width: 960px; margin: 32px auto 12px; }
.story-photo picture { display: block; height: 100%; }
.big-word { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.magnet-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.magnet-photos .photo:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
.magnet-photos .photo { aspect-ratio: 1 / 1; }
.role-grid { display: grid; gap: 16px; margin-top: 32px; }
.role-card { padding: 24px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--color-line); }
.role-card .role-img { width: 88px; height: 88px; border-radius: 50%; background: var(--color-surface); display: grid; place-items: center; margin-bottom: 16px; }
.role-card .role-img img { width: 62px; height: 62px; object-fit: contain; }
.emphasis { margin-top: 36px; font-size: 20px; font-weight: 600; line-height: 1.5; color: var(--color-primary-strong); text-align: center; }
.story-body p + p { margin-top: 14px; }
/* 홈 '오늘은 어떤 놀이를 해볼까요?' 옆 밍과 토결이 그림 */
.sheet-art img { width: 100%; max-width: 440px; height: auto; margin: 0 auto; mix-blend-mode: multiply; } /* 흰 테두리가 베이지 바탕에 스며들게 */
.page-eyebrow { font-size: 14px; font-weight: 600; color: var(--color-primary-strong); margin-bottom: 18px; }
.role-card .h3 { color: var(--color-primary-strong); }
/* 브랜드 이야기 끝: 작은 로고와 한 줄 문구 */
.final-sign { margin-top: 48px; }
.final .final-sign img { width: 84px; margin-bottom: 12px; }
.final-sign p { font-size: 17px; font-weight: 600; color: var(--color-primary-strong); }

/* ---------- 마지막 버튼 섹션 ---------- */
.final { text-align: center; }
.final img { width: 120px; margin: 0 auto 20px; }
.final .btn-row { max-width: 420px; margin-left: auto; margin-right: auto; }

/* ---------- 후기 준비 중 ---------- */
.empty-state { text-align: center; padding: 72px 0 96px; }
.empty-state .chars { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.empty-state .chars img { width: 80px; }
.empty-state .btn { margin-top: 28px; }

/* ---------- 푸터 (PRD 4) ---------- */
.site-footer {
  background: var(--color-surface); padding: 48px 0;
  font-size: 14px; line-height: 1.7;
}
.footer-grid { display: grid; gap: 28px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 12px; }
.site-footer h2 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; color: var(--color-text); }
.site-footer .footer-legal { margin-top: 28px; font-weight: 700; }
.site-footer .footer-legal a { display: inline-flex; min-height: 36px; align-items: center; color: var(--color-text); }
.site-footer .copy { margin-top: 8px; font-size: 13px; color: var(--color-text-sub); }

/* ---------- 개인정보 처리방침 ---------- */
.policy .lead { margin-top: 16px; }
.policy .caption { margin-top: 12px; }
.policy .h3 { margin-top: 40px; margin-bottom: 12px; }
.policy p + p, .policy ul + p { margin-top: 12px; }
.policy ul { margin: 0; padding-left: 20px; }
.policy li + li { margin-top: 6px; }
.policy a { color: var(--color-primary-strong); text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { margin: 12px 0; overflow-x: auto; }
.policy table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.policy th, .policy td { padding: 10px 12px; border: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.policy thead th { background: var(--color-surface); }
.policy tbody th { font-weight: 600; }

/* ---------- 기관 주문 문의 안내창 (PRD 2-4) ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(34,34,34,0.45); }
.modal-panel {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
  border-radius: 24px 24px 0 0; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  animation: sheet-up 0.3s ease;
  max-height: 90vh; max-height: 90dvh; overflow-y: auto;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; font-size: 26px; cursor: pointer; color: var(--color-text);
}
.modal-panel .h2 { font-size: 21px; padding-right: 44px; }
.modal-panel .btn { width: 100%; margin-top: 12px; }
.modal-panel p { margin-top: 10px; color: var(--color-text-sub); }

/* 기관 주문 문의 입력 양식 */
.b2b-form { margin-top: 20px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.field em, .consent-check em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--color-primary-strong); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #CFC5BA; border-radius: 12px;
  background: #fff; color: var(--color-text); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-primary-strong); outline-offset: 1px; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { padding: 14px; border-radius: 12px; background: var(--color-surface); font-size: 14px; line-height: 1.6; }
.consent-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
.consent-check input { flex: none; width: 22px; height: 22px; accent-color: var(--color-primary-strong); }
.consent ul { margin: 6px 0 0; padding-left: 18px; color: var(--color-text-sub); }
.modal-panel .consent p { margin-top: 6px; font-size: 13px; }
.consent a { color: var(--color-primary-strong); text-decoration: underline; text-underline-offset: 3px; }
.modal-panel .form-message { margin: 0; color: #B3261E; font-size: 14px; font-weight: 600; }
.form-message:empty { display: none; }
.modal-panel .b2b-form .btn { margin-top: 0; }
.b2b-done { margin-top: 20px; padding: 24px 20px; border-radius: 12px; background: var(--color-surface); text-align: center; outline: none; }
.b2b-form[hidden], .b2b-done[hidden] { display: none; }
.modal-panel .b2b-other { margin-top: 16px; font-size: 14px; text-align: center; }
.b2b-other a { color: var(--color-primary-strong); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   넓은 화면 (PC, 1024px 이상)
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 80px; --section-gap: 144px; --gutter: 24px; }
  .display { font-size: 48px; }
  .h2 { font-size: 36px; }
  .h3 { font-size: 22px; }
  .lead { font-size: 20px; }
  .body { font-size: 18px; }
  .caption { font-size: 14px; }
  .btn { font-size: 17px; }
  body { font-size: 18px; }

  .logo img { height: 40px; }
  .menu-btn { display: none; }
  .nav-desktop { display: flex; gap: 32px; margin-left: auto; margin-right: 32px; }
  .nav-desktop a { color: var(--color-text); text-decoration: none; font-weight: 500; padding: 8px 0; }
  .nav-desktop a:hover { color: var(--color-primary-strong); }
  .nav-desktop a[aria-current="page"] {
    color: var(--color-primary-strong); font-weight: 600;
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px;
  }
  .header-b2b { display: inline-flex; min-height: 44px; padding: 0 20px; font-size: 15px; }
  .site-header.is-scrolled .header-inner { height: 64px; }
  .header-inner { transition: height 0.2s; }

  .btn-row { flex-direction: row; }
  .btn-row .btn { width: auto; }

  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; min-height: 560px; }

  .hero-photo-wrap .char { width: 96px; }
  .hero-photo-wrap .char-tokyeol { left: 100px; width: 82px; }

  .type-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .type-card { min-height: 240px; }
  .type-card:last-child { grid-column: auto; }

  .play-card .card-photo { aspect-ratio: 1 / 1; }
  .play-scroll { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 24px; }

  .split { grid-template-columns: 5fr 7fr; gap: 64px; }

  .page-head { padding: 96px 0 40px; }
  .tabs { justify-content: center; margin: 0 0 40px; padding: 0; overflow: visible; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .product-grid .card { flex-direction: column; }
  .product-grid .card-photo { flex: none; aspect-ratio: 1 / 1; min-height: 0; }
  .product-grid .card-body { padding: 18px 18px 20px; }
  .product-grid .card-body .btn { min-height: 48px; font-size: 15px; }
  .product-grid .set-link { justify-content: center; }
  .product-grid .h3 { font-size: 20px; }
  .product-grid .card-body p { font-size: 15px; }
  .poster-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }

  .sheet-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .sheet-card.big { grid-column: span 2; flex-direction: row; }
  .sheet-card.big .card-photo { flex: 0 0 50%; aspect-ratio: auto; min-height: 280px; }
  .sheet-card.big .card-body { padding: 40px; justify-content: center; }
  .sheet-card.big .card-body .btn { margin-top: 16px; width: auto; align-self: flex-start; }

  .story-photo { aspect-ratio: 3 / 2; }
  .big-word { font-size: 54px; }
  .name-split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .magnet-split { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: center; }
  .magnet-split .magnet-photos { order: -1; }
  .role-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }

  .modal-panel {
    left: 50%; top: 50%; right: auto; bottom: auto; width: 480px; transform: translate(-50%, -50%);
    border-radius: 24px; padding: 36px; animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 휴대폰에서만 줄을 바꾸는 자리 (<br class="m">): PC에서는 숨김 */
@media (min-width: 1024px) { br.m { display: none; } }

/* 줄이 자연스럽게 넘어갈 때 한 글자만 혼자 남지 않게 (지원하는 브라우저에서만 동작) */
h1, h2, h3 { text-wrap: balance; }
p, figcaption { text-wrap: pretty; }
