/* 오로오라 사이트 공통 스타일 (메인·고객지원·개인정보 처리방침)
   설화수 메인 구조(중앙 로고·풀블리드 배너·각진 타일·아웃라인 버튼)를 따른다. 규칙은 design-guide.md 참고.
   r/ (앱 연결 페이지)만 예전 css/style.css를 쓴다. */
:root {
  --navy: #0f1d42;
  --navy-2: #1c3166;
  --teal: #2a8aa6;
  --gold: #b8975a;
  --ink: #15192a;
  --sub: #4a5065;
  --muted: #8a8fa0;
  --paper: #ffffff;
  --tile: #efefef;
  --line: #e3e3e3;
  --accent: var(--teal);
  --header-ink: #ffffff;
  --bar-track: rgba(255,255,255,.3);
  --logo-filter: brightness(0) invert(1);
  --font-body: 'Noto Sans KR', sans-serif;
  --font-title: 'Noto Sans KR', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── 헤더: 유틸 / 중앙 로고 / 메뉴 2단 ── */
.header { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--header-ink); }
.header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 22px; font-size: 14px; }
.header-top .util { display: flex; gap: 14px; justify-content: flex-end; }
.header-top .util a + a::before { content: ''; display: inline-block; width: 1px; height: 11px; background: currentColor; opacity: .5; margin-right: 14px; }
.logo img { height: 30px; filter: var(--logo-filter); }
.gnb { display: flex; justify-content: center; gap: 44px; padding: 26px 0 0; font-size: 15px; font-weight: 500; }
.gnb a { position: relative; padding-bottom: 6px; }
.gnb a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s; }
.gnb a:hover::after { transform: scaleX(1); }

/* ── 히어로 슬라이더 ── */
.hero { position: relative; height: 640px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.slide.on { opacity: 1; }
.slide-inner { position: relative; height: 100%; display: flex; align-items: center; }
/* 사진 한 장을 깔고 왼쪽만 어둡게 눌러 문구를 읽히게 한다 */
.slide.photo .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.slide.photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,11,30,.82) 0%, rgba(6,11,30,.45) 32%, transparent 55%), linear-gradient(180deg, rgba(6,11,30,.55) 0%, transparent 28%); }
.slide-copy { position: relative; z-index: 2; padding-top: 120px; max-width: 420px; }
.slide-copy .eyebrow { font-size: 17px; opacity: .85; margin-bottom: 14px; }
.slide-copy h1 { font-family: var(--font-title); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.slide-visual { position: absolute; right: max(24px, calc((100vw - 1280px) / 2 + 24px)); bottom: 10px; width: 470px; z-index: 1; }
/* .wrap 정렬선에 맞춘다 (absolute라 max-width가 안 먹으므로 직접 계산) */
.progress { position: absolute; left: max(24px, calc((100vw - 1280px) / 2 + 24px)); bottom: 90px; display: flex; align-items: center; gap: 14px; z-index: 3; padding: 0; }
.progress .bar { width: 420px; height: 3px; background: var(--bar-track); position: relative; }
.progress .bar i { position: absolute; inset: 0 auto 0 0; width: 50%; background: currentColor; transition: left .6s; }
.progress .pause { width: 18px; height: 18px; border: 1px solid currentColor; display: grid; place-items: center; font-size: 8px; }

/* ── 섹션 공통 ── */
.sec { padding: 120px 0 0; }
.sec-title { font-family: var(--font-title); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 30px; }
.sec-title small { display: block; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 17px; color: var(--accent); margin-bottom: 6px; letter-spacing: .04em; }

/* 각진 회색 타일 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile .pic { aspect-ratio: 1 / 1; background: var(--tile); overflow: hidden; position: relative; }
.tile .pic > img, .tile .pic > video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover .pic > img, .tile:hover .pic > video { transform: scale(1.04); }

/* 소재 특징 4칸: 세로로 긴 사진·영상 */
.tiles.four { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tiles.four .pic { aspect-ratio: 4 / 5; }
.tile .rule { font-size: 13px; color: var(--sub); margin-top: 10px; line-height: 1.6; }
.tile .meta { text-align: center; padding: 20px 0 0; }
.tile h3 { font-family: var(--font-title); font-size: 18px; font-weight: 700; }
.tile .en { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tile .note { font-size: 14px; color: var(--sub); margin-top: 10px; }

/* 아웃라인 버튼 */
.btn { display: inline-block; border: 1px solid currentColor; padding: 11px 22px; font-size: 14px; transition: background .3s, color .3s; }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn { border-color: currentColor; }
.on-dark .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* 와이드 배너 */
.banner { position: relative; height: 520px; overflow: hidden; display: flex; align-items: center; }
.banner .copy { position: relative; z-index: 2; padding-left: 9%; max-width: 520px; }
.banner h2 { font-family: var(--font-title); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.banner p { font-size: 15px; line-height: 1.8; opacity: .85; margin-bottom: 30px; }
.banner .visual { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); height: 86%; }
.banner .visual img { height: 100%; width: auto; }
/* 방수 컷: 검은 배경 사진을 오른쪽에 붙이고 왼쪽 가장자리를 배경색으로 녹인다 */
.banner.water { background: #000; color: #fff; }
.banner.water .visual { right: 0; top: 0; transform: none; height: 100%; }
.banner.water .visual img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }

/* 한 벌 전체 라인업 */
.lead { font-size: 16px; line-height: 1.8; color: var(--sub); margin: -10px 0 48px; }
.lineup { margin: 0 0 80px; }
.lineup img { width: 100%; max-width: 1080px; margin: 0 auto; }
.legend { max-width: 1080px; margin: 24px auto 0; display: grid; gap: 0; font-size: 14px; }
.legend div { display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.legend dt { flex: 0 0 96px; font-weight: 700; }
.legend dd { color: var(--sub); line-height: 1.7; }

/* 플레이용 디자인: 접사 사진 + 요점 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .pic { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tile); }
.split .pic img { width: 100%; height: 100%; object-fit: cover; }
.split .lead { margin-bottom: 36px; }
.points { list-style: none; border-top: 1px solid var(--ink); }
.points li { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.points strong { font-family: var(--font-title); font-size: 17px; }
.points span { font-size: 14px; color: var(--sub); line-height: 1.6; }

/* 카드 속 유물 12점 */
.relics ol { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; list-style: none; counter-reset: relic; border-top: 1px solid var(--ink); }
.relics li { counter-increment: relic; display: flex; gap: 14px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--font-title); font-size: 16px; }
.relics li::before { content: counter(relic, decimal-leading-zero); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; color: var(--accent); }
.relics .src { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* 텀블벅 펀딩 이력 */
.history { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 56px auto 0; text-align: left; }
.history a { display: block; padding-top: 18px; border-top: 1px solid var(--ink); transition: opacity .3s; }
.history a:hover { opacity: .65; }
.history .yr { display: block; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 30px; color: var(--accent); line-height: 1; }
.history strong { display: block; margin-top: 12px; font-family: var(--font-title); font-size: 16px; }
.history em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--muted); }
.band .cap .history-note { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* 1:2:1 비대칭 */
.trio { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; }
.trio .side { background: var(--tile); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 36px 20px 30px; text-align: center; }
.trio .side img { width: 58%; box-shadow: 0 18px 40px rgba(0,0,0,.18); border-radius: 14px; margin-bottom: 26px; }
.trio .side h3 { font-family: var(--font-title); font-size: 17px; font-weight: 700; }
.trio .side p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.trio .main { position: relative; min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; padding: 44px; color: #fff; }
.trio .main .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.trio .main:hover .cover { transform: scale(1.03); }
.trio .main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,22,52,.78)); }
.trio .main .copy { position: relative; z-index: 2; }
/* 앱 표지는 노란 일러스트라 남색 대신 짙은 갈색으로 글자 바탕을 깐다 */
.trio .main.app .cover { object-position: center 20%; }
.trio .main.app::after { background: linear-gradient(180deg, transparent 50%, rgba(40,28,6,.8)); }
/* 스킨 3종을 부채꼴로 */
.trio .side .skins { position: relative; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 20px; }
.trio .side .skins img { position: absolute; left: 50%; bottom: 8%; width: 38%; margin: 0; border-radius: 8px; transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.trio .side .skins img:nth-child(1) { transform: translateX(-108%) rotate(-12deg); }
.trio .side .skins img:nth-child(2) { transform: translateX(-50%) translateY(-6%); z-index: 1; }
.trio .side .skins img:nth-child(3) { transform: translateX(8%) rotate(12deg); z-index: 2; }
.trio .side:hover .skins img:nth-child(1) { transform: translateX(-114%) rotate(-16deg); }
.trio .side:hover .skins img:nth-child(2) { transform: translateX(-50%) translateY(-10%); }
.trio .side:hover .skins img:nth-child(3) { transform: translateX(14%) rotate(16deg); }
.trio .main h3 { font-family: var(--font-title); font-size: 22px; font-weight: 700; }
.trio .main p { font-size: 14px; margin-top: 8px; opacity: .85; }
/* 앱 스토어 버튼: 티츄 1:2:1 아래 가운데 */
.stores { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }

/* 풀블리드 띠 + 중앙 타이틀 */
.band { margin-top: 120px; }
.band .art { height: 420px; position: relative; overflow: hidden; }
/* 자수 용·봉황: 검은 바탕 원본을 screen 합성으로 띠 배경에 녹인다 */
.band .art.embroidery { display: flex; justify-content: center; align-items: center; gap: 2%; background: radial-gradient(70% 90% at 50% 50%, #16295a 0%, #0a1330 60%, #050914 100%); }
.band .art.embroidery img { width: 44%; max-width: 620px; mix-blend-mode: screen; }
.band .art.embroidery img:last-child { transform: translateY(18px); }
.band .cap { text-align: center; padding-top: 34px; }
.band .cap h2 { font-family: var(--font-title); font-size: 26px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.02em; }
.band .cap p { font-size: 15px; color: var(--sub); }

/* 푸터 */
.footer { margin-top: 110px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer .row { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; }
.footer .links { display: flex; gap: 0; }
.footer .links a + a::before { content: ''; display: inline-block; width: 1px; height: 10px; background: var(--line); margin: 0 14px; }
.footer .legal { border-top: 1px solid var(--line); padding: 20px 24px 40px; line-height: 1.8; }

/* ── 서브 페이지: 남색 머리 띠 + 읽기 폭 본문 ── */
.page-head { background: radial-gradient(120% 160% at 85% 0%, var(--navy-2) 0%, var(--navy) 55%, #081129 100%); color: #fff; padding: 196px 0 64px; }
.page-head .eyebrow { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 17px; color: var(--gold); letter-spacing: .04em; margin-bottom: 10px; }
.page-head h1 { font-family: var(--font-title); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.page-head h1 .tag { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 10px; border: 1px solid var(--gold); color: var(--gold); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.page-head p { margin-top: 14px; font-size: 15px; line-height: 1.7; opacity: .8; }
.doc { max-width: 820px; margin: 0 auto; padding: 72px 24px 0; }
.doc > p, .doc li, .doc td { font-size: 15px; line-height: 1.85; color: var(--sub); }
.doc > p + p { margin-top: 12px; }
.doc h2 { font-family: var(--font-title); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 64px 0 16px; padding-top: 22px; border-top: 1px solid var(--ink); }
.doc h3 { font-family: var(--font-title); font-size: 16px; font-weight: 700; margin: 32px 0 10px; }
.doc ul { padding-left: 1.2em; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }
.doc .toc { margin: 40px 0 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc .toc strong { display: block; font-size: 14px; margin-bottom: 12px; }
.doc .toc ol { columns: 2; column-gap: 40px; padding-left: 1.4em; }
.doc .toc li { font-size: 14px; margin: 0 0 6px; break-inside: avoid; }
.doc .note { margin: 16px 0; padding: 14px 18px; border-left: 2px solid var(--gold); background: #f6f4ef; font-size: 14px; line-height: 1.75; color: var(--sub); }
.doc .table-wrap { margin: 16px 0; overflow-x: auto; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; }
.doc th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ink); padding: 12px 10px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.doc td { font-size: 14px; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.65; }
.doc .doc-foot { margin-top: 40px; font-size: 13px; color: var(--muted); }
/* 고객지원: 이메일 문의 블록 */
.contact { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 32px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.contact h2 { margin: 0; padding: 0; border: 0; }
.contact p { margin-top: 8px; font-size: 14px; color: var(--sub); }
.doc .contact .btn { color: var(--ink); text-decoration: none; white-space: nowrap; }
.doc .contact .btn:hover { color: var(--paper); }
.doc .points { margin-top: 8px; padding-left: 0; }
.doc .points li { margin: 0; }
.doc h2 + .points { border-top: 0; }

/* 반응형 */
@media (max-width: 900px) {
  .gnb { gap: 22px; font-size: 14px; overflow-x: auto; justify-content: flex-start; padding: 22px 24px 0; scrollbar-width: none; }
  .gnb a { white-space: nowrap; }
  .header-top .lang, .header-top .util { visibility: hidden; }
  .hero { height: 680px; }
  .slide-inner { align-items: flex-start; }
  .slide-copy { padding-top: 150px; }
  .slide-copy h1 { font-size: 30px; }
  .slide-visual { width: 92%; right: 4%; bottom: 40px; }
  .progress { bottom: 24px; }
  .progress .bar { width: 60vw; }
  .tiles { grid-template-columns: 1fr; }
  .tiles.four { grid-template-columns: 1fr 1fr; gap: 12px; }
  .band .art { height: 240px; }
  .band .art.embroidery img { width: 48%; }
  .banner { height: auto; flex-direction: column; align-items: stretch; padding: 50px 0 0; }
  .banner .copy { padding: 0 24px; }
  .banner .visual { position: static; transform: none; height: 300px; margin: 30px auto 0; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .main { grid-column: 1 / -1; order: -1; min-height: 440px; padding: 28px; }
  .legend div { flex-direction: column; gap: 4px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .relics ol { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .relics li { font-size: 14px; }
  .history { grid-template-columns: 1fr; gap: 16px; }
  .footer .row { flex-direction: column; gap: 14px; align-items: flex-start; }
  .page-head { padding: 150px 0 44px; }
  .page-head h1 { font-size: 26px; }
  .doc { padding-top: 48px; }
  .doc .toc ol { columns: 1; }
  .contact { flex-direction: column; align-items: flex-start; }
  .stores { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .slide, .tile .pic img { transition: none; } }

/* ── 밤하늘 테마: 카드 박스의 남색을 히어로·배너에 ── */
.hero, .on-dark { color: #fff; }
.progress { color: #fff; }
.progress .pause { color: #fff; background: none; cursor: pointer; }
.slide-visual img { filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.slide.tichu { background: radial-gradient(120% 90% at 75% 60%, #1f4f7a 0%, var(--navy) 60%, #081129 100%); }
.slide.tichu .slide-visual { display: flex; gap: 20px; bottom: -60px; width: 520px; }
.slide.tichu .slide-visual img { width: 48%; border-radius: 22px; }
.slide.tichu .slide-visual img:nth-child(2) { transform: translateY(-50px); }
.trio .main { background: var(--navy); }
.gold-rule { width: 40px; height: 1px; background: var(--gold); margin: 0 0 22px; }
