/* Brenora Studio — 사이트 테마 (scroll-world 엔진의 @layer sw 기본값보다 우선) */
:root, .sw-root {
  --sw-bg: #091328;
  --sw-ink: #F4F1EA;
  --sw-ink-soft: #AEB6C8;
  --sw-accent: #F2B84B;
  --sw-font-display: "Outfit", "IBM Plex Sans KR", system-ui, sans-serif;
  --sw-font-body: "IBM Plex Sans KR", system-ui, sans-serif;

  --navy: #091328;
  --navy-2: #0E1A35;
  --navy-3: #16233F;
  --ivory: #F4F1EA;
  --mist: #AEB6C8;
  --line: rgba(244, 241, 234, .16);
  --gold: #F2B84B;
  --gold-ink: #091328;
  --paper: #F8F5EF;
  --paper-ink: #1B2338;
  --paper-mute: #5A6176;
  --walnut: #3B2A1C;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { background: var(--navy); color-scheme: dark; }
body { margin: 0; background: var(--navy); color: var(--ivory); font-family: var(--sw-font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
main { display: block; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--gold); color: var(--gold-ink); border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- 엔진 크롬: 어두운 테마 ---------- */
.sw-brand__mark { width: 128px; height: 40px; border-radius: 0; box-shadow: none; background: url("../img/logo-light.png") left center / contain no-repeat; }
.sw-brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sw-nav { background: rgba(9, 19, 40, .62); border-color: var(--line); backdrop-filter: blur(10px); }
.sw-nav__item { color: #C9CFDB; min-height: 36px; }
.sw-nav__item:hover { color: var(--ivory); }
.sw-nav__item.is-active { color: var(--gold-ink); background: var(--gold); }
.sw-topcta { background: var(--gold); color: var(--gold-ink); min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
.sw-copylayer::before { background: linear-gradient(90deg, rgba(9,19,40,.92) 0%, rgba(9,19,40,.72) 38%, rgba(9,19,40,.28) 70%, transparent 100%); }
.sw-copy__num { color: var(--mist); }
.sw-copy__eyebrow { letter-spacing: .22em; }
.sw-copy { width: min(40vw, 520px); }
.sw-copy__title { font-size: clamp(1.9rem, 3.1vw, 2.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.18; word-break: keep-all; text-shadow: 0 2px 24px rgba(9,19,40,.6); }
.sw-copy__body { color: #DCE0E8; word-break: keep-all; text-shadow: 0 1px 14px rgba(9,19,40,.8); }
.sw-copy__tags { gap: 4px 0; }
.sw-copy__tags li { color: var(--mist); background: none; border: 0; border-radius: 0; padding: 0; font-weight: 500; cursor: default; }
.sw-copy__tags li + li::before { content: "·"; margin: 0 10px; color: var(--sw-accent); }
.sw-btn { min-height: 48px; box-sizing: border-box; display: inline-flex; align-items: center; }
.sw-btn--primary { color: var(--gold-ink); background: var(--gold); }
.sw-btn--ghost { color: var(--ivory); border-color: rgba(244,241,234,.45); background: rgba(9,19,40,.35); }
.sw-route__label { color: var(--ivory); background: rgba(9,19,40,.85); border-color: var(--line); }
.sw-hint { color: var(--mist); }
.sw-hint i { border-color: rgba(244,241,234,.4); }

/* ---------- 공통 ---------- */
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(244,241,234,.4); background: rgba(9,19,40,.8); color: var(--ivory); cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.icon-btn:hover:not(:disabled) { background: var(--ivory); color: var(--navy); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn--solid { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.icon-btn--solid:hover:not(:disabled) { background: #FFD488; color: var(--gold-ink); }
.btn { min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.btn--primary { background: var(--gold); color: var(--gold-ink); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: var(--gold); }
.btn--dark:hover { background: #142245; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.eyebrow { margin: 0 0 12px; font-family: "Outfit", sans-serif; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--mist); }

/* ---------- 패널 (엔진이 위치·투명도 제어) ---------- */
.panel { box-sizing: border-box; }
.panel--binder { width: min(640px, 48vw); }
.panel--compare { width: min(560px, 42vw); }
.panel--about { width: min(520px, 40vw); }

/* 바인더 */
.binder { display: flex; flex-direction: column; gap: 14px; }
.binder__book { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.12fr); aspect-ratio: 1.414 / 1; padding: 12px; box-sizing: border-box; background: linear-gradient(160deg, #22325A, #16233F); border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); perspective: 1800px; }
.binder__toc, .binder__page { background: var(--paper); color: var(--paper-ink); box-sizing: border-box; min-width: 0; }
.binder__toc { padding: 9% 9% 7%; border-radius: 3px 0 0 3px; box-shadow: inset -10px 0 18px -14px rgba(0,0,0,.45); overflow: auto; }
.binder__kicker { margin: 0 0 6px; font-family: "Outfit", sans-serif; font-size: 11px; letter-spacing: .3em; color: #8A6A3F; }
.binder__toc-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.binder__toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.binder__toc-list button { width: 100%; min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-bottom: 1px dotted #B9B3A6; border-radius: 0; background: transparent; color: var(--paper-ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.binder__toc-list button span:last-child { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--paper-mute); }
.binder__toc-list button:hover { background: rgba(27,35,56,.06); }
.binder__toc-list button[aria-current="page"] { background: var(--paper-ink); color: var(--paper); border-radius: 3px; border-bottom-color: transparent; }
.binder__toc-list button[aria-current="page"] span:last-child { color: #C9CFDB; }
.binder__rings { display: flex; flex-direction: column; justify-content: space-around; align-items: center; background: #1A2848; }
.binder__rings span { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #C9CDD6; box-sizing: border-box; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.binder__page { position: relative; border-radius: 0 3px 3px 0; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; box-shadow: inset 10px 0 18px -14px rgba(0,0,0,.45); }
.binder__page:active { cursor: grabbing; }
.binder__page:focus-visible { outline-offset: -3px; }
.sheet { position: absolute; inset: 0; padding: 8% 8% 7%; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; background: var(--paper); transform-origin: left center; backface-visibility: hidden; }
.sheet--enter-next { animation: sheet-in-next .5s var(--ease) both; }
.sheet--enter-prev { animation: sheet-in-prev .5s var(--ease) both; }
.sheet--leave-next { animation: sheet-out-next .45s var(--ease) both; z-index: 2; }
.sheet--leave-prev { animation: sheet-out-prev .45s var(--ease) both; z-index: 2; }
@keyframes sheet-out-next { to { transform: rotateY(-92deg); opacity: .2; } }
@keyframes sheet-in-next { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-out-prev { to { opacity: 0; } }
@keyframes sheet-in-prev { from { transform: rotateY(-92deg); opacity: .2; } to { transform: none; opacity: 1; } }
.sheet__kicker { margin: 0; font-family: "Outfit", sans-serif; font-size: 11px; letter-spacing: .24em; color: #8A6A3F; }
.sheet__title { margin: 0; font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; line-height: 1.2; }
.sheet__meta { margin: 0; font-size: 13px; color: var(--paper-mute); }
.sheet__plan { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #EFEBE3; border-radius: 3px; pointer-events: none; }
.sheet__btn { min-height: 46px; font-size: 15px; }
.sheet--cover { justify-content: center; align-items: center; text-align: center; gap: 10px; background: radial-gradient(120% 90% at 50% 30%, #FFFDF8, var(--paper)); }
.sheet--cover img { width: 72%; height: auto; }
.sheet--cover p { margin: 0; font-size: 14px; color: var(--paper-mute); }
.sheet--end { justify-content: center; text-align: center; gap: 12px; }
.sheet--end p { margin: 0; color: var(--paper-mute); font-size: 14px; }
.sheet__swipe { position: absolute; right: 12px; bottom: 8px; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--paper-mute); }
.binder__nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.binder__count { min-width: 64px; text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: #DCE0E8; }

/* 비포/애프터 */
.compare { position: relative; margin: 0; aspect-ratio: 4 / 3; border: 10px solid #ECE7DD; box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; background: #E9E6DF; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.compare__handle { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(40,40,40,.55); border: 2px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; gap: 2px; pointer-events: none; backdrop-filter: blur(4px); }
.compare__tag { position: absolute; bottom: 10px; padding: 3px 10px; background: rgba(9,19,40,.82); color: var(--ivory); font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .04em; pointer-events: none; }
.compare__tag--l { left: 10px; } .compare__tag--r { right: 10px; }
.compare__range { position: absolute; inset: 0; cursor: ew-resize; }
.compare__range input { width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.compare__caption { margin-top: 10px; font-size: 13px; color: var(--mist); text-align: right; }

/* About */
.about { padding: 32px 36px; background: rgba(9,19,40,.9); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); max-height: calc(100vh - 160px); overflow: auto; box-sizing: border-box; }
.about__name { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.25; }
.about__name span { font-family: "Outfit", sans-serif; font-size: 18px; font-weight: 300; color: var(--mist); }
.about__role { margin: 2px 0 18px; font-size: 14px; color: var(--mist); }
.about__label { margin: 0 0 8px; font-size: 13px; letter-spacing: .06em; color: var(--gold); }
.about__works { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; }
.about__works li { padding: 12px 0; border-bottom: 1px solid rgba(244,241,234,.1); display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.about__works li span { font-size: 13px; color: var(--mist); }
.about__meta { margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.about__meta dt { color: var(--mist); }
.about__meta dd { margin: 0; }
.about__meta dd span { color: var(--mist); }

/* ---------- 프로젝터 ---------- */
.projector { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); box-sizing: border-box; background: rgba(4, 8, 18, .9); }
.projector[hidden] { display: none; }
.projector__beam { position: absolute; left: 50%; top: 0; width: 70vw; height: 100%; transform: translateX(-50%); background: radial-gradient(60% 50% at 50% 50%, rgba(242,184,75,.10), transparent 70%); pointer-events: none; }
.projector__screen { position: relative; width: min(100%, calc((100vh - 80px) * 16 / 9 + 0px)); max-height: 100%; aspect-ratio: 16 / 10; display: flex; flex-direction: column; background: var(--navy); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.projector.is-opening .projector__screen { animation: screen-down .55s var(--ease) both; }
.projector.is-closing { animation: fade-out .22s ease both; }
@keyframes screen-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-out { to { opacity: 0; } }
.projector__bar { flex: none; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 14px 0 22px; border-bottom: 1px solid var(--line); }
.projector__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.projector__title h2 { margin: 0; font-size: 16px; font-weight: 500; white-space: nowrap; }
.projector__brand { font-family: "Outfit", sans-serif; font-size: 20px; font-weight: 500; }
.projector__sep { width: 1px; height: 20px; background: rgba(244,241,234,.25); }
.projector__meta { font-size: 14px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projector__stage { position: relative; flex: 1; min-height: 0; background: #0D1013; }
.projector__stage iframe { position: absolute; inset: 0; }
.projector__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--mist); font-size: 14px; }

/* ---------- 상담 신청 ---------- */
.contact { position: relative; z-index: 45; background: var(--navy-2); border-top: 1px solid var(--line); }
.contact__wrap { max-width: 1200px; margin: 0 auto; padding: 112px 32px 96px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.contact h2 { margin: 0 0 16px; font-size: 40px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.lead { margin: 0 0 40px; color: #C9CFDB; max-width: 38ch; word-break: keep-all; }
.contact__info { margin: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; font-size: 15px; }
.contact__info dt { color: var(--mist); }
.contact__info dd { margin: 0; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; color: #DCE0E8; }
.field input:not([type="checkbox"]), .field select, .field textarea { min-height: 48px; padding: 0 14px; box-sizing: border-box; background: var(--navy); color: var(--ivory); border: 1px solid rgba(244,241,234,.28); border-radius: 4px; font: inherit; font-size: 15px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 132px; }
.field input::placeholder, .field textarea::placeholder { color: #7D869A; }
.field [aria-invalid="true"] { border-color: #FF8A7A; }
.field__err { margin: 0; font-size: 13px; color: #FFB4A8; }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.field--check label { color: #C9CFDB; }
.field--check .field__err { flex-basis: 100%; }
.field--check { flex-wrap: wrap; }
.form__actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; }
.form__status { margin: 0; font-size: 14px; color: #DCE0E8; }
.footer { border-top: 1px solid var(--line); }
.footer__wrap { max-width: 1200px; margin: 0 auto; padding: 36px 32px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: 13px; color: var(--mist); }
.footer__wrap p { margin: 8px 0 0; }
.footer__wrap img { width: 140px; height: auto; display: block; }

/* ---------- 폰 · 좁은 화면 ---------- */
@media (max-width: 860px) {
  .sw-brand__mark { width: 104px; height: 32px; }
  .panel--binder, .panel--compare, .panel--about { width: auto; }
  .binder__book { grid-template-columns: 14px minmax(0, 1fr); aspect-ratio: 0.8 / 1; width: min(100%, 40vh); margin: 0 auto; padding: 8px; }
  .binder__toc { display: none; }
  .binder__nav { gap: 12px; }
  .compare { width: min(100%, 52vh); margin: 0 auto; }
  .compare__caption { display: none; }
  .sw-copy { width: auto; }
  /* 패널이 있는 장면(4~6)은 폰에서 제목만 남겨 겹침을 막음 */
  .sw-copylayer .sw-copy:nth-child(n+4):nth-child(-n+6) .sw-copy__body { display: none; }
  .sw-copylayer .sw-copy:nth-child(n+4):nth-child(-n+6) .sw-copy__title { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .sw-copylayer .sw-copy:nth-child(n+4):nth-child(-n+6) { bottom: calc(24px + env(safe-area-inset-bottom)); }
  .about { padding: 20px; max-height: 38vh; }
  .about__name { font-size: 24px; }
  .contact__wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 88px 16px 72px; }
  .contact h2 { font-size: 32px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer__wrap { padding: 32px 16px 40px; }
  .projector { padding: 0; }
  .projector__screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; border: 0; }
  .projector__meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet--enter-next, .sheet--enter-prev, .sheet--leave-next, .sheet--leave-prev { animation-duration: .01s; }
  .projector.is-opening .projector__screen, .projector.is-closing { animation: none; }
  .btn, .icon-btn { transition: none; }
}

/* 스팸 방지용 숨김 필드 */
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------- 제공 내용 · 진행 과정 ---------- */
.info { position: relative; z-index: 45; background: var(--navy); border-top: 1px solid var(--line); }
.info--alt { background: var(--navy-3); }
.info__wrap { max-width: 1200px; margin: 0 auto; padding: 104px 32px 96px; }
.info h2 { margin: 0 0 48px; font-size: 40px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; word-break: keep-all; }
.info h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.info p { margin: 0; color: #C9CFDB; word-break: keep-all; }
.offer, .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.offer__item { padding: 28px 24px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(244,241,234,.03); }
.offer__no { display: block; margin-bottom: 24px; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--gold); }
.steps__item { position: relative; padding-top: 56px; }
.steps__item::before { content: ""; position: absolute; top: 19px; left: 48px; right: -24px; height: 1px; background: var(--line); }
.steps__item:last-child::before { display: none; }
.steps__no { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-weight: 600; }
.choices { border: 0; margin: 0; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
.choices legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 14px; color: #DCE0E8; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: #DCE0E8; cursor: pointer; }
.choices input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
@media (max-width: 860px) {
  .info__wrap { padding: 80px 16px 72px; }
  .info h2 { font-size: 30px; margin-bottom: 32px; }
  .offer { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps__item { padding: 0 0 0 60px; min-height: 40px; }
  .steps__item::before { top: 48px; bottom: -20px; left: 19px; right: auto; width: 1px; height: auto; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .offer, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__item::before { display: none; }
}

/* ---------- 접수 완료 패널 (v8) ---------- */
.contact__wrap > .done { grid-column: 2; grid-row: 1; }
.done { align-self: start; padding: 32px; background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); }
.done:focus { outline: none; }
.done h3 { margin: 0 0 16px; font-size: 26px; line-height: 1.35; font-weight: 600; word-break: keep-all; }
.done__ref { margin: 0 0 24px; color: #C9CFDB; }
.done__ref strong { margin-left: 8px; font-family: "Outfit", sans-serif; font-size: 22px; letter-spacing: .06em; color: var(--gold); }
.done__steps { margin: 0 0 24px; padding-left: 20px; color: #DCE0E8; display: grid; gap: 6px; }
.done__note { margin: 0 0 24px; font-size: 14px; color: var(--mist); }
.field--check label a, .footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .done { padding: 24px 20px; } .contact__wrap > .done { grid-column: 1; grid-row: auto; } }
.form[hidden], .done[hidden] { display: none !important; }
