:root {
  --paper: #f3f3f1;
  --paper-2: #e9e9e6;
  --ink: #121212;
  --ink-2: #55534f;
  --ink-3: #6b6966;
  --dim: #8a8884;
  --line: rgba(18, 18, 18, .12);
  --night: #0c0c0c;
  --night-ink: #f1efea;
  --night-2: rgba(241, 239, 234, .62);
  --night-line: rgba(241, 239, 234, .14);
  --gold: #e3cca3;
  --gold-ink: #8a6a3a;
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss06";
}
::selection { background: var(--ink); color: var(--paper); }
.night ::selection { background: var(--gold); color: var(--night); }
html { scrollbar-color: #c9c8c4 var(--paper); }

a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 243, 241, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top nav .get { color: var(--paper); background: var(--ink); padding: 7px 16px; border-radius: 999px; font-weight: 600; }
.top nav .get:hover { color: var(--paper); background: #000; }
@media (max-width: 640px) { .top nav .opt { display: none; } }

/* ---------- type ---------- */
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.4vw, 7.4rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h1 .dim, h2 .dim { color: var(--dim); }
.night h2 .dim { color: rgba(241, 239, 234, .4); }
p { margin: 0; }
.body { color: var(--ink-2); max-width: 30em; font-size: 1.06rem; }
.night .body { color: var(--night-2); }

/* ---------- buttons ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; transition: background .2s, color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-line { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); cursor: default; }
.night .btn-dark { background: var(--night-ink); color: var(--night); }
.night .btn-dark:hover { background: #fff; }
.night .btn-line { box-shadow: inset 0 0 0 1px var(--night-line); color: rgba(241, 239, 234, .45); }
.note { font-size: 13.5px; color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 0; }
.hero-head { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: end; }
.hero-side { max-width: 330px; padding-bottom: 14px; }
.hero-side .body { font-size: 1rem; }
.hero-side .cta { margin-top: 24px; }
.hero-side .note { margin-top: 12px; }
@media (max-width: 900px) { .hero-head { grid-template-columns: 1fr; } .hero-side { max-width: 440px; padding-bottom: 0; } }

.stage { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.scene { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.stage.shot .flash { animation: flash .7s var(--ease); }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }

.hero-phone { position: absolute; right: clamp(20px, 6vw, 96px); bottom: clamp(-90px, -6vw, -40px); width: clamp(210px, 23vw, 320px); border-radius: clamp(30px, 3.2vw, 44px); overflow: hidden; background: #000; box-shadow: 0 2px 0 1px rgba(0, 0, 0, .9), 0 30px 60px -18px rgba(0, 0, 0, .5); }
.hero-phone .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.stage.shot .hero-phone .flash { animation: flash .7s var(--ease) .04s; }

.shutter-dock { position: absolute; left: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); display: flex; align-items: center; gap: 16px; padding: 10px 22px 10px 10px; border-radius: 999px; background: rgba(12, 12, 12, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; }
.shutter { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; background: none; padding: 4px; cursor: pointer; transition: transform .2s var(--ease); }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.shutter:active { transform: scale(.94); }
.shutter:active span { transform: scale(.88); }
.readout { font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, .75); min-width: 9.5em; }
.readout b { display: block; font-size: 20px; font-weight: 600; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .scene { aspect-ratio: 4 / 5; }
  .scene img { object-position: 30% 50%; }
  .hero-phone { width: 44%; right: 16px; bottom: -48px; }
  .shutter-dock { padding-right: 16px; gap: 12px; }
  .shutter { width: 50px; height: 50px; }
  .readout { min-width: 0; }
}

/* ---------- facts ---------- */
.facts { padding: clamp(110px, 12vw, 170px) 0 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts li { padding: 26px 32px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 26em; }
.facts li b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
@media (max-width: 760px) { .facts ul { grid-template-columns: 1fr; } .facts li { padding: 22px 0; border-bottom: 1px solid var(--line); } }

/* ---------- filters ---------- */
.filters { padding: clamp(120px, 14vw, 200px) 0 clamp(120px, 14vw, 200px); }
.filters-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.filters .phone { justify-self: center; width: min(100%, 340px); border-radius: 40px; overflow: hidden; background: #000; box-shadow: 0 2px 0 1px rgba(0, 0, 0, .9), 0 30px 60px -20px rgba(0, 0, 0, .45); }
.filters .body { margin-top: 24px; }
.spec { margin: 40px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 28px; max-width: 30em; }
.spec dt, .spec dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.spec dt { font-weight: 600; letter-spacing: -.01em; }
.spec dd { color: var(--ink-2); }
@media (max-width: 900px) { .filters-grid { grid-template-columns: 1fr; } .filters .phone { order: 2; width: min(72%, 320px); } }

/* ---------- calendar (night band) ---------- */
.night { background: var(--night); color: var(--night-ink); }
.calendar { padding: 0 0 clamp(110px, 13vw, 190px); }
.cal-shots { display: grid; grid-template-columns: repeat(2, minmax(0, .62fr)) minmax(0, 1fr); gap: clamp(14px, 2.4vw, 32px); margin-top: clamp(24px, 4vw, 48px); align-items: end; }
.cal-shots figure { margin: 0; }
.cal-shots .phone { border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--night-line); }
.cal-shots .widget { border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--night-line); }
.cal-shots figcaption { margin-top: 18px; font-size: 15px; color: var(--night-2); max-width: 24em; }
.cal-shots figcaption b { display: block; color: var(--night-ink); font-weight: 600; }
@media (max-width: 900px) {
    .cal-shots { grid-template-columns: 1fr 1fr; }
  .cal-shots figure:last-child { grid-column: 1 / -1; }
}

/* ---------- vault ---------- */
.vault { padding: clamp(120px, 14vw, 200px) 0 0; }
.vault-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.vault .shot img { border-radius: 22px; background: var(--night); }
.vault .body { margin-top: 24px; }
.promise { list-style: none; margin: 36px 0 0; padding: 0; max-width: 30em; }
.promise li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.promise li:last-child { border-bottom: 1px solid var(--line); }
.promise li b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.more { display: inline-block; margin-top: 22px; font-size: 15px; font-weight: 600; }
@media (max-width: 900px) { .vault-grid { grid-template-columns: 1fr; } .vault .shot { order: 2; } }

/* ---------- close ---------- */
.close { padding: clamp(130px, 15vw, 220px) 0 clamp(100px, 12vw, 160px); }
.close .wrap { display: grid; grid-template-columns: auto 1fr; gap: 28px 40px; align-items: center; }
.close .icon { width: clamp(84px, 9vw, 128px); height: auto; border-radius: 26%; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); }
.close .cta { margin-top: 28px; }
.close .note { margin-top: 12px; }
@media (max-width: 640px) { .close .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- documents (privacy, terms) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(80px, 10vw, 140px); }
.doc h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
.doc .date { color: var(--ink-3); font-size: 15px; margin: 14px 0 44px; }
.doc .intro { font-size: 1.1rem; max-width: 60ch; }
.doc h2 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; margin: 52px 0 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--ink-2); max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc li { margin: 6px 0; }
.doc b { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { padding-left: 1.2em; margin: 10px 0 0; }
.doc a { color: var(--gold-ink); }
.doc .sign { margin-top: 52px; color: var(--ink-3); font-size: 15px; }

/* ---------- scroll scenes (shared) ---------- */
.swap-sticky, .cal-sticky { position: sticky; top: 0; height: var(--stage-h, 100vh); display: flex; align-items: center; overflow: hidden; }

/* ---------- background swap scene ---------- */
.swap { padding-top: clamp(60px, 8vw, 120px); }
.swap-track { height: 560vh; }
.swap-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 110px); align-items: center; }
.swap .body { margin-top: 22px; }
.swap-list { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: none; }
.swap-list li { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.4; color: rgba(18, 18, 18, .16); transition: color .45s var(--ease), transform .45s var(--ease); transform-origin: left center; }
.swap-list li.on { color: var(--ink); transform: translateX(10px); }
.swap .note { margin-top: 28px; max-width: 26em; }

.cam { --h: min(calc(var(--stage-h, 100vh) * .82), 780px); height: var(--h); width: calc(var(--h) * .4615); border-radius: calc(var(--h) * .07); background: #000; padding: calc(var(--h) * .012); box-shadow: 0 2px 0 1px rgba(0, 0, 0, .9), 0 40px 80px -24px rgba(0, 0, 0, .5); display: flex; flex-direction: column; overflow: hidden; }
.cam-view { position: relative; flex: 1; border-radius: calc(var(--h) * .058) calc(var(--h) * .058) 18px 18px; overflow: hidden; background: #1a1a1a; }
.cam-bgs img { position: absolute; inset: -6% -4%; width: 108%; height: 112%; object-fit: cover; opacity: 0; will-change: opacity, transform; }
.cam-bgs img:first-child { opacity: 1; }
.cam-person { position: absolute; left: 50%; bottom: 0; width: 112%; max-width: none; transform: translateX(-50%); pointer-events: none; }
.cam-top { position: absolute; top: 14px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.pill i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
.pill.gold { color: var(--gold); }
.cam-panel { flex: none; height: 27%; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 0 12px; }
.cam-tray { list-style: none; margin: 0; padding: 0 0 0 calc(50% - 26px); display: flex; gap: 14px; will-change: transform; }
.cam-tray li { flex: none; width: 52px; text-align: center; color: rgba(255, 255, 255, .5); font-size: 10.5px; letter-spacing: -.01em; white-space: nowrap; transition: color .3s; }
.cam-tray img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-bottom: 5px; box-shadow: 0 0 0 2px transparent; transition: box-shadow .3s var(--ease); }
.cam-tray li.on { color: #fff; }
.cam-tray li.on img { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--gold); }
.cam-shutter { flex: none; align-self: center; width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; padding: 3px; }
.cam-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }

@media (max-width: 860px) {
  .swap { padding-top: 40px; }
  .swap-sticky { align-items: flex-start; padding-top: 72px; }
  .swap-grid { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .swap-copy { justify-self: stretch; }
  .swap h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .swap .body, .swap .note { display: none; }
  .swap-list { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; }
  .swap-list li { font-size: 1.05rem; }
  .swap-list li.on { transform: none; }
  .cam { --h: min(calc(var(--stage-h, 100vh) * .62), 560px); }
}

/* ---------- calendar fill scene ---------- */
.cal-track { height: 280vh; }
.cal-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.cal-copy .body { margin-top: 20px; }
.cal-copy h2 { margin-top: clamp(20px, 3vw, 40px); font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
.day { font-weight: 200; font-size: clamp(7rem, 15vw, 13rem); line-height: .78; letter-spacing: -.07em; color: var(--gold); font-variant-numeric: tabular-nums; margin-left: -.05em; }
.day small { display: block; font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--night-2); line-height: 1; margin: 20px 0 0 .45em; }
.month { width: 100%; max-width: 560px; justify-self: end; }
.dow, .days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(4px, .7vw, 8px); }
.dow li { text-align: center; font-size: 12px; color: var(--night-2); padding-bottom: 10px; }
.days li { position: relative; aspect-ratio: 1; border-radius: clamp(6px, .9vw, 10px); background: rgba(241, 239, 234, .05); overflow: hidden; }
.days li b { position: absolute; left: 7px; top: 5px; font-size: 11px; font-weight: 600; color: rgba(241, 239, 234, .5); font-variant-numeric: tabular-nums; z-index: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.days li.future b { color: rgba(241, 239, 234, .22); }
.days img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.days li.has b { color: #fff; }
.days li.today { box-shadow: 0 0 0 2px var(--gold); }
.js .days li.has:not(.lit) img { opacity: 0; transform: scale(1.18); }
.js .days li.has:not(.lit) b { color: rgba(241, 239, 234, .5); }
@media (max-width: 860px) {
  .cal-track { height: 240vh; }
  .cal-sticky { align-items: flex-start; padding-top: 76px; }
  .cal-grid { grid-template-columns: 1fr; gap: 22px; }
  .cal-copy .body { display: none; }
  .cal-copy h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-top: 14px; }
  .day { font-size: clamp(5.5rem, 26vw, 8rem); }
  .month { justify-self: stretch; max-width: none; }
}

/* ---------- reduced motion: scenes become static ---------- */
@media (prefers-reduced-motion: reduce) {
  .swap-track, .cal-track { height: auto; }
  .swap-sticky, .cal-sticky { position: static; height: auto; padding: 40px 0; }
  .js .days li.has:not(.lit) img { opacity: 1; transform: none; }
  .swap-list li, .days img { transition: none; }
}
