:root {
  --accent: #17A64B;
  --ink: #111;
  --muted: #a3a3a3;
  --line: #e7e7e7;
  --paper: #fff;
  --cream: #f4efe3;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
#app { opacity: 0; transition: opacity .5s ease; }
#app.ready { opacity: 1; }

/* ---------- 로고 ---------- */
.logo { position: relative; display: inline-grid; place-items: center; color: var(--accent); text-decoration: none; }
.logo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.logo svg circle { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.logo .lines { position: relative; font-family: var(--font-logo, var(--font)); font-weight: var(--logo-weight, 700); line-height: 1.12; letter-spacing: .04em; text-align: center; }
.logo .lines span { display: block; }
.logo img.logo-img { position: relative; width: 100%; height: 100%; object-fit: contain; }

/* ---------- 메인 (진입) ---------- */
.main-screen { position: fixed; inset: 0; display: grid; place-items: center; background: #ddd center / cover no-repeat; }
.main-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.04), rgba(0,0,0,.12)); pointer-events: none; }
.main-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.main-center .logo { width: clamp(150px, 26vw, 220px); aspect-ratio: 1 / 1; }
/* 로고 = 입장 버튼: 올리면 색은 그대로, 살짝 커지기만 함 */
.logo.enter { cursor: pointer; border-radius: 50%; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.logo.enter:hover, .logo.enter:focus-visible { transform: scale(1.04); outline: none; }
.logo.enter:focus-visible { box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 6px var(--accent); }
.logo.enter:active { transform: scale(.98); }
.ig-icon { width: 24px; height: 24px; color: var(--accent); display: inline-block; }
.ig-icon svg { width: 100%; height: 100%; display: block; }

/* ---------- 헤더 ---------- */
.site-header { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 44px 16px 40px; }
.site-header .logo { width: 30px; aspect-ratio: 1 / 1; color: #cfcfcf; transition: color .2s; }
.site-header .logo:hover { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.page { max-width: 1120px; margin: 0 auto; padding: 0 16px 80px; }
.site-footer { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 24px 16px 48px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.site-footer .ig-icon { width: 18px; height: 18px; color: var(--muted); }
.site-footer .ig-icon:hover { color: var(--accent); }

/* ---------- Home ---------- */
.photos { display: grid; gap: 20px; }
.photos.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.photos.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photos.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photos:not(.cols-1) img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }
.photos img { width: 100%; height: auto; background: #f3f3f3; opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.photos img.in { opacity: 1; transform: none; }
.empty { text-align: center; color: var(--muted); padding: 80px 0; font-size: 14px; }

/* ---------- Contact ---------- */
.contact { max-width: 620px; margin: 0 auto; font-size: 15px; line-height: 1.9; }
.contact p { margin: 0; }
.contact .label { display: inline-block; min-width: 82px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.contact .note { margin-top: 18px; color: #777; font-size: 13.5px; line-height: 1.7; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; }
.contact a:hover { color: var(--accent); border-color: var(--accent); }
.contact .survey-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 34px;
  font: 600 14px/1 var(--font); color: #fff; background: var(--accent);
  border: 0; padding: 16px 26px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.contact .survey-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px -8px var(--accent); }
.survey-btn svg { width: 16px; height: 16px; }

/* ---------- 구글 폼 삽입 ---------- */
.form-embed { margin-top: 40px; }
.form-embed iframe { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); padding-top: 8px; }
.contact a.embed-open { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 사이트 디자인 폼 ---------- */
.cform { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); display: grid; gap: 30px; }
.cform-head h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.cform-head p, .cform-section p { margin: 0; color: #777; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.cform-section { padding-top: 8px; }
.cform-section h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.cfield { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.cfield .q { padding: 0; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.cfield .req { color: var(--accent); }
.cfield .qdesc { margin: -4px 0 2px; color: #888; font-size: 13px; line-height: 1.6; white-space: pre-line; }
.cfield input[type=text], .cfield input[type=email], .cfield input[type=date], .cfield input[type=time], .cfield input[type=datetime-local], .cfield textarea, .cfield select, .other-text {
  width: 100%; font: 400 15px/1.5 var(--font); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid #dcdcdc; border-radius: 0; padding: 8px 0 9px; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.cfield textarea { resize: none; min-height: 96px; overflow: hidden; }
.cfield select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E") right 2px center / 12px no-repeat; padding-right: 22px; cursor: pointer; }
.cfield input:focus, .cfield textarea:focus, .cfield select:focus, .other-text:focus { outline: none; border-bottom-color: var(--accent); }
.cfield.has-err input, .cfield.has-err textarea, .cfield.has-err select { border-bottom-color: #d0453a; }
.qerr { margin: 0; font-size: 12.5px; color: #d0453a; min-height: 0; }
.qerr:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 16px; border: 1.5px solid #dcdcdc; border-radius: 999px; font-size: 14px; line-height: 1.2; color: #444; transition: border-color .15s, background .15s, color .15s; }
.chip:hover span { border-color: #b5b5b5; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cfield.has-err .chip span { border-color: #e9b2ad; }
.chips.scale { flex-wrap: nowrap; gap: 6px; }
.chips.scale .chip { flex: 1; }
.chips.scale .chip span { display: block; text-align: center; padding: 10px 0; }
.scale-labels { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-top: 6px; }
.other-text { margin-top: 10px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cform-foot .survey-btn { margin-top: 0; border: 0; cursor: pointer; }
.cform-foot .survey-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.cform-msg { margin: 0; font-size: 13.5px; color: #777; }
.cform-msg.bad { color: #d0453a; }
.cform-done { margin-top: 44px; padding: 44px 16px; border-top: 1px solid var(--line); text-align: center; }
.cform-done .check { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; }
.cform-done p { margin: 16px 0 0; font-size: 15px; }

/* ---------- Partners (엔딩 크레딧) ---------- */
.credits { max-width: 720px; margin: 0 auto; }
.credits-window {
  --win-h: 70vh;
  position: relative; height: max(360px, calc(100vh - 250px)); overflow: hidden; outline: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.credits-window:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 8px; }
.credits-track { will-change: transform; }
.credits-window.rolling .credits-track { animation: credits-roll var(--dur, 60s) linear infinite; }
.credits-window.paused .credits-track { animation-play-state: paused; }
@keyframes credits-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.credits-roll { text-align: center; padding-bottom: 8px; }
.credits-spacer { height: var(--win-h); }
.credits-title { margin: 0 0 12px; font-size: 13px; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.credits-intro { margin: 0; color: #888; font-size: 14px; }
.credits-group { margin-top: 72px; }
.credits-group h2 { margin: 0 0 26px; font-size: 11.5px; letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; font-weight: 500; color: var(--accent); }
.credits-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.credits-group li { display: grid; gap: 4px; }
.credit-name { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.credit-link { display: grid; justify-items: center; gap: 10px; text-decoration: none; color: inherit; }
a.credit-link:hover .credit-name { color: var(--accent); }
.credit-logo { display: block; max-width: 180px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.has-logo .credit-name { font-size: 16px; }
.credit-loc { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.credits-end { margin: 96px 0 0; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.credits-controls { display: flex; justify-content: center; margin-top: 10px; }
.credits-toggle { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #c4c4c4; background: none; border: 0; cursor: pointer; transition: color .2s ease; -webkit-tap-highlight-color: transparent; }
.credits-toggle svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.credits-toggle:hover { color: #555; }
.credits-toggle:focus-visible { color: #555; outline: 1px dotted #999; outline-offset: 2px; }
.credits-empty { text-align: center; padding-top: 24px; }

/* 언어 선택: 사이트 글꼴 그대로, 꾸밈 없이 글자만. 마우스를 올리면 진해짐 */
.lang-switch { position: absolute; z-index: 5; font-family: inherit; }
.lang-switch button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .12em; color: var(--muted); transition: color .2s; }
.lang-btn::after { content: ""; width: 5px; height: 5px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--ink); }
.lang-list { position: absolute; top: calc(100% + 10px); right: 0; margin: 0; padding: 4px 0; list-style: none; background: #fff; min-width: 7.5em; text-align: right; }
.lang-list button { display: block; width: 100%; text-align: right; padding: 6px 2px; font-size: 13px; line-height: 1.3; color: var(--muted); white-space: nowrap; transition: color .15s; }
.lang-list button:hover, .lang-list button:focus-visible { color: var(--ink); outline: none; }
.lang-list button[aria-current] { color: var(--ink); font-weight: 600; }
.lang-switch button:focus-visible { outline: 1px dotted #999; outline-offset: 3px; }
.site-header { position: relative; }
.lang-switch.in-header { top: 24px; right: 24px; }
/* 메인 화면: 사진 위에서도 읽히도록 반투명 흰 바탕만 */
.lang-switch.on-main { top: 22px; right: 22px; }
.lang-switch.on-main .lang-btn { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #444; }
.lang-switch.on-main .lang-btn:hover, .lang-switch.on-main .lang-btn[aria-expanded="true"] { color: #111; }
.lang-switch.on-main .lang-list { top: calc(100% + 6px); padding: 6px 12px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lang-switch.on-main .lang-list button { color: #666; }
.lang-switch.on-main .lang-list button:hover, .lang-switch.on-main .lang-list button[aria-current] { color: #111; }

@media (max-width: 600px) {
  .lang-switch.in-header { top: 16px; right: 16px; }
  .lang-switch.on-main { top: 16px; right: 16px; }
  /* 휴대폰: 손가락으로 누르기 쉽게 글자와 간격을 키움 */
  .lang-btn { font-size: 13px; padding: 6px 0; }
  .lang-list button { font-size: 16px; padding: 11px 4px; }
  .photos.cols-3, .photos.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photos.cols-2 { gap: 10px; }
  .credit-name { font-size: 18px; }
  .credits-group { margin-top: 56px; }
  .site-header { padding: 32px 16px 28px; }
  .nav { gap: 6px 22px; }
  .contact { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .credits-window { height: auto; max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .credits-window.rolling .credits-track { animation: none; }
  .credits-roll[aria-hidden="true"], .credits-spacer, .credits-controls { display: none; }
  .photos img { opacity: 1; transform: none; transition: none; }
}
