/* Mâm quả — 붉은 칠기(sơn son) 쟁반 행렬. 재질 래스터: /assets/m/ (tools/make_materials.py). 방향 계약: .impeccable/surfaces/ */
:root {
  color-scheme: dark only;
  --lac-hi: #8d1d15;
  --lac: #6a120d;
  --lac-lo: #4a0b08;
  --floor: #5c0f0b;
  --gold: #d4af5a;
  --gold-lt: #ecd3a0;
  --gold-line: rgba(212, 175, 90, .55);
  --ivory: #f6efe2;
  --on-lac: #f8ead0;
  --ink: #2a0e0b;
  --ink-2: #5a2a22;
  --red: #8a1a13;
  --display: "Imbue", "Times New Roman", serif;
  --text: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --lacquer: url(/assets/m/lacquer.webp);
  --rim: url(/assets/m/rim.webp);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--gold) var(--lac-lo); }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--lac-lo);
  color: var(--on-lac);
  font: 400 16px/1.7 var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
}
/* 칠기 바탕: 가운데가 밝고 가장자리로 깊어지는 붉은 칠, 위쪽에 한 줄기 광택 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(170deg, rgba(255, 214, 170, .07) 0 18%, transparent 34%),
    radial-gradient(120% 80% at 50% 30%, var(--lac-hi) 0%, var(--lac) 52%, var(--lac-lo) 100%);
}
::selection { background: var(--gold); color: var(--ink); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
[hidden] { display: none !important; }

.proc { width: min(100%, 460px); margin: 0 auto; padding: 0 18px 120px; }

/* ---------- 쟁반 공통: 칠기 바닥 + 연꽃잎 금박 테(border-image) ---------- */
.tray {
  margin-top: 100px; text-align: center;
  --v: 1;
  /* 화면에 많이 들어온 쟁반은 앞으로(크기만 — 쪽지 색은 그대로 두려고 투명도는 쓰지 않는다) */
  transform: scale(calc(.965 + .035 * var(--v)));
  transition: transform .5s var(--ease);
}
.tray--lead { transform: none; }
/* 쟁반 이름: 테 위에 얹은 작은 칠기 명판에 쓴 글씨 */
.tray__name {
  position: relative; z-index: 5; display: inline-block;
  margin: 0 auto -24px; padding: 8px 26px 10px;
  background: var(--lacquer) center / cover, var(--lac);
  border: 1px solid var(--gold);
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px #5c0f0b, inset 0 0 0 4px rgba(212, 175, 90, .55), 0 10px 16px -8px rgba(0, 0, 0, .7);
  font: 400 31px/1 var(--display);
  font-variation-settings: "opsz" 90;
  color: var(--gold);
  letter-spacing: .01em;
}
.tray__body {
  position: relative; overflow: hidden;
  padding: 34px 6px 14px;
  border: 22px solid transparent;
  border-image: var(--rim) 34 round;
  background: var(--lacquer) center / cover, var(--floor);
  box-shadow: 0 28px 44px -24px rgba(0, 0, 0, .8);
}
.tray--album .tray__body { margin: 0 -12px; }

/* 덮개 천: JS 가 있을 때만 쟁반 바닥을 덮고, 화면에 들어오면 위로 걷힌다 */
.cloth {
  display: none; position: absolute; inset: 0; z-index: 3;
  background: url(/assets/m/hy.webp) center 46% / 92px no-repeat, url(/assets/m/cloth.webp) center / cover, #8f1a14;
  transform-origin: 50% 0;
  transition: transform 1.3s var(--ease), opacity .7s .5s;
}
.js .cloth { display: block; }
.tray.lifted .cloth { transform: translateY(-104%) scaleY(.9); opacity: 0; pointer-events: none; }

/* ---------- 첫 쟁반 ---------- */
.tray--lead { margin-top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 56px 0 22px; }
.octa { position: relative; width: min(66vw, 320px); aspect-ratio: 1; margin: 34px auto 30px; touch-action: none; }
.octa__rim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)); }
.octa__rim polygon { fill: #4f0c08; stroke: var(--gold); stroke-width: .9; }
.octa__rim .in { fill: none; stroke-width: .35; stroke: rgba(212, 175, 90, .7); }
.octa__photo {
  position: absolute; inset: 6.5%;
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  background: var(--lac);
}
.octa__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.08); transition: transform 2.2s var(--ease); }
.open .octa__photo img { transform: none; }
/* 천: 쟁반보다 큰 정사각 천을 마름모로 얹어 네 모서리 술이 테 밖으로 늘어진다 */
.veil {
  position: absolute; inset: -14%; z-index: 2; border: 0; padding: 0; background: none;
  color: var(--on-lac);
  transform: translate3d(0, var(--lift, 0px), 0) rotate(calc(-4deg + var(--lift, 0px) * .02deg));
  will-change: transform;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5));
}
.veil__cloth { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.veil__from, .veil__to { position: absolute; left: 22%; right: 22%; text-align: center; }
.veil__from { top: 58%; font: 500 14.5px/1.3 var(--text); color: var(--gold-lt); }
.veil__to { top: 63.5%; font: 400 28px/1.1 var(--display); font-variation-settings: "opsz" 60; color: var(--on-lac); overflow-wrap: anywhere; }
.open .veil { transition: transform 1.3s var(--ease), opacity .8s .4s; transform: translate3d(0, -82%, 0) rotate(-14deg) scale(.92); opacity: 0; pointer-events: none; }
/* 저절로 걷힐 때는 천천히: 먼저 살짝 들리고, 위로 미끄러지며 기울어 사라진다 */
.open.auto .veil { transition: transform 3.4s cubic-bezier(.5, 0, .15, 1), opacity 1.4s 2.2s; }
.open.auto .octa__photo img { transition-duration: 4.2s; }
.veil.back { transition: transform .45s var(--ease); }

.names {
  margin: 0; text-align: center;
  font: 400 clamp(44px, 13.4vw, 62px)/.94 var(--display);
  font-variation-settings: "opsz" 100;
  color: var(--on-lac);
  letter-spacing: -.005em;
}
.names .va { display: block; margin: 10px 0 8px; font: 500 15px/1 var(--text); color: var(--gold); letter-spacing: .02em; }

/* 상아색 쪽지(오래 읽는 글자) */
.slip, .env__in { color-scheme: light; text-wrap: pretty; }
.slip {
  background: var(--ivory); color: var(--ink);
  border-radius: 3px; padding: 22px 20px;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6);
  text-align: left;
}
.slip--lead { margin: 4px 0 0; }
.lead-when { font: 400 38px/1.05 var(--display); font-variation-settings: "opsz" 80; }
.lead-where { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.lead-left { margin-top: 10px; font: 500 15px/1.4 var(--text); color: var(--red); }
.lead-left:empty { display: none; }
.acts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.acts .btn { flex: 1 1 140px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  border: 1px solid currentColor; background: none;
  font: 500 15.5px/1 var(--text); text-decoration: none; color: var(--red);
  transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--ivory); }
.btn--red:hover { background: #a2221a; }
.btn--ghost { color: var(--gold-lt); border-color: var(--gold-line); margin-top: 22px; }
.btn--ghost:hover { background: rgba(212, 175, 90, .12); }
.btn svg, .ic svg, .code__k svg, .sound svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- 초대 쪽지 ---------- */
.letter { text-align: center; padding: 26px 18px 24px; }
.fams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #e3d3b4; }
.fam__side { font: 500 14.5px/1.3 var(--text); color: var(--red); }
.fam__who { font: 400 21px/1.2 var(--display); font-variation-settings: "opsz" 40; color: var(--ink); }
.fam p:first-child { display: flex; flex-direction: column; gap: 2px; }
.fam__where { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.announce { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; }
.pair { margin: 4px 0; display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.pair .full { font: 400 31px/1.12 var(--display); font-variation-settings: "opsz" 80; color: var(--ink); }
.pair .role { font: 500 14px/1 var(--text); color: var(--red); }
.prose { max-width: 34ch; margin: 18px auto 0; font-size: 16px; line-height: 1.75; color: var(--ink); }
.guest { font: 400 23px/1.2 var(--display); color: var(--red); }

/* ---------- 둥근 쟁반: 날짜 ---------- */
.plate {
  position: relative; overflow: hidden;
  width: min(90vw, 390px); aspect-ratio: 1; margin: -10px auto 0;
  border-radius: 50%;
  background: url(/assets/m/round.webp) center / contain no-repeat;
  display: grid; place-content: center; justify-items: center; padding: 19%;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55));
}
.plate .cloth { inset: 8%; border-radius: 50%; background-size: 80px, cover; }
.plate__day { font: 500 15px/1.3 var(--text); color: var(--gold-lt); }
.plate__time { margin: 2px 0 2px; font: 400 clamp(64px, 20vw, 86px)/.95 var(--display); font-variation-settings: "opsz" 100; color: #fff3dc; }
.plate__what { font: 500 15.5px/1.35 var(--text); color: var(--gold); }
.plate__next { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--gold-line); font: 500 14px/1.45 var(--text); color: var(--on-lac); }
.plate__next b, .plate__next span { display: block; white-space: nowrap; font-weight: 500; }
.plate__next span { font-weight: 400; font-size: 14px; color: var(--gold-lt); }
.year { margin-top: 14px; font-size: 15px; color: var(--gold-lt); }

/* ---------- 길 ---------- */
.place { font: 400 34px/1.1 var(--display); font-variation-settings: "opsz" 80; }
.addr { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }
.code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 56px; margin: 18px 0 10px; padding: 0 16px;
  border: 1.5px dashed var(--red); border-radius: 6px; background: #fffaf0; color: var(--ink);
}
.code__v { font: 500 19px/1 var(--text); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.code__k { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--text); color: var(--red); }
.tip { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- 긴 쟁반: 앨범 ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot { position: relative; border: 0; padding: 4px; background: #3c0906; box-shadow: inset 0 0 0 1px var(--gold-line), 0 8px 14px -8px rgba(0, 0, 0, .7); overflow: hidden; aspect-ratio: 3 / 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; background: var(--c); transition: transform .9s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot--0 { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.shot--3 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.shot--3 img { object-position: 50% 30%; }
.quote { margin: 26px auto 0; max-width: 18ch; font: 400 30px/1.15 var(--display); font-variation-settings: "opsz" 70; color: var(--on-lac); }

/* ---------- 회신 ---------- */
.form { display: grid; gap: 20px; }
.form__ask { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.field { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font: 500 15px/1.3 var(--text); color: var(--ink); padding: 0; }
.field i { font-style: normal; font-weight: 400; color: var(--red); font-size: 14px; }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #cdb68c; border-radius: 6px; background: #fffaf0; color: var(--ink);
  font-size: 16px; caret-color: var(--red);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: #fffaf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a1a13' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field textarea { resize: none; min-height: 96px; }
.field input:not([type="radio"]):focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.field ::placeholder { color: #7a5e53; }
.opts { display: grid; gap: 8px; }
.opts label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px solid #cdb68c; border-radius: 6px; background: #fffaf0; font-weight: 400; cursor: pointer; }
/* 손으로 그린 라디오: son 테두리, 고르면 son 점 + 금 테 */
.opts input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border: 1.5px solid var(--red); border-radius: 50%; background: #fffaf0; display: grid; place-items: center; }
.opts input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .2s var(--ease); }
.opts input:checked::after { transform: scale(1); }
.opts input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.opts label:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.form__status { min-height: 1.6em; font: 500 15px/1.5 var(--text); color: var(--red); text-align: center; }
.form.sent .form__status { color: #2f5a2a; }

/* ---------- 뚜껑 달린 tráp: 축의금 ---------- */
.trap { perspective: 900px; margin-top: -4px; }
.trap__lid {
  position: relative; z-index: 2; width: 100%; min-height: 210px;
  border: 26px solid transparent; border-image: var(--rim) 34 round;
  background: url(/assets/m/hy.webp) center 30% / 80px no-repeat, var(--lacquer) center / cover, var(--lac);
  display: grid; align-content: end; justify-items: center; padding: 0 0 4px;
  color: var(--gold-lt); font: 500 16px/1 var(--text);
  box-shadow: 0 18px 26px -14px rgba(0, 0, 0, .8);
  transform-origin: 50% 0;
  transition: transform 1.3s var(--ease), min-height .9s var(--ease);
}
.trap__lid span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(42, 14, 11, .55); }
.trap__box {
  margin-top: -6px; padding: 10px 4px 6px;
  border: 22px solid transparent; border-image: var(--rim) 34 round;
  background: var(--lacquer) center / cover, var(--floor);
  box-shadow: inset 0 14px 18px -10px rgba(0, 0, 0, .7), 0 28px 40px -22px rgba(0, 0, 0, .8);
  min-height: 52px;
}
/* 연 뚜껑은 납작해지지 않고 윗면(囍)이 보인 채 옆으로 비켜 기대어 놓인다 */
.trap.open .trap__lid { min-height: 150px; margin-bottom: -46px; transform: translate(9%, -6px) rotate(7deg) scale(.7); transform-origin: 50% 0; pointer-events: none; }
.trap.open .trap__lid span { opacity: 0; }
.env__in { padding: 20px 16px; animation: rise 1s .35s var(--ease) both; }
/* 뚜껑이 열리기 전에는 쪽지를 접어 두고(JS 있을 때만), 열리면 떠오른다 */
.js .trap:not(.open) .env__in { display: none; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.env__who { font: 400 26px/1.1 var(--display); margin-bottom: 14px; text-align: center; }
.qr { display: block; width: min(100%, 236px); margin: 0 auto 16px; padding: 14px; border: 0; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #e3d3b4; }
.qr img { width: 100%; height: auto; }
.env__in dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 16px; font-size: 15px; }
.env__in dt { color: var(--ink-2); }
.env__in dd { margin: 0; text-align: right; font-weight: 500; white-space: nowrap; }
.env__in dd.acc { font-size: 20px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.env__in .btn { width: 100%; }
.env__note { max-width: 32ch; margin: 18px auto 0; font-size: 14.5px; line-height: 1.6; color: var(--gold-lt); }

/* ---------- 끝 ---------- */
.tray--end { margin-top: 110px; }
/* 맺음: 첫 쟁반과 같은 이중 가는 금테 팔각 쟁반 */
.end__octa { position: relative; width: min(72vw, 330px); aspect-ratio: 1; margin: 0 auto 28px; }
.end__octa .octa__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.end__line { text-wrap: balance; max-width: 16ch; margin: 0 auto; font: 400 36px/1.1 var(--display); font-variation-settings: "opsz" 90; color: var(--on-lac); }
.end__sign { margin-top: 12px; font: 500 15px/1.4 var(--text); color: var(--gold); }
.credit { margin-top: 30px; font-size: 14.5px; color: var(--gold-lt); }

/* ---------- 겹창·떠 있는 단추 ---------- */
.ic { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--gold-line); border-radius: 50%; background: rgba(42, 14, 11, .72); color: var(--gold-lt); }
.sound {
  position: fixed; z-index: 40; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top));
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--gold); border-radius: 50%; background: rgba(74, 11, 8, .88);
  color: var(--gold-lt); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .7);
}
.sound svg { width: 22px; height: 22px; }
.sound .w { display: none; }
.sound[aria-pressed="true"] .w { display: inline; }
.sound[aria-pressed="true"] .x { display: none; }

.gallery { position: fixed; inset: 0; z-index: 60; background: var(--lac-lo); overflow-y: auto; overscroll-behavior: contain; }
.gallery__bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: rgba(74, 11, 8, .96); border-bottom: 1px solid rgba(212, 175, 90, .3); }
.gallery__bar p { font: 400 26px/1 var(--display); color: var(--gold); }
.gallery__body { width: min(100%, 720px); margin: 0 auto; padding: 8px 14px 40px; }
.gallery h3 { margin: 26px 4px 12px; font: 400 26px/1.1 var(--display); color: var(--on-lac); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.g { border: 0; padding: 0; aspect-ratio: 2 / 3; background: var(--c); overflow: hidden; }
.g img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(30, 6, 4, .97); touch-action: none; }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s var(--ease), opacity .25s; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -23px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 14px; color: var(--gold-lt); }

.toast { position: fixed; z-index: 90; left: 50%; top: 16px; transform: translate(-50%, -20px); opacity: 0; visibility: hidden; padding: 12px 18px; border-radius: 999px; background: var(--ivory); color: var(--ink); font: 500 14.5px/1.3 var(--text); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); transition: transform .4s var(--ease), opacity .3s, visibility 0s .4s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .4s var(--ease), opacity .3s; }

/* ---------- 고르기 화면 ---------- */
.chooser { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 16px; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.chooser__hy { width: 92px; height: auto; margin: 0 auto 4px; }
.chooser__date { font-size: 15.5px; color: var(--gold-lt); }
.chooser__ask { margin-top: 22px; font: 400 26px/1.2 var(--display); color: var(--gold); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.door { text-decoration: none; display: grid; gap: 6px; justify-items: center; }
.door__tray { position: relative; width: 100%; aspect-ratio: 1; margin-bottom: 8px; transition: transform .4s var(--ease); }
.door:hover .door__tray { transform: translateY(-4px); }
.door .octa__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.door b { font: 400 25px/1.1 var(--display); font-weight: 400; color: var(--on-lac); }
.door span:last-child { font-size: 14px; color: var(--gold-lt); }

/* ---------- 넓은 화면: 첫 쟁반은 왼쪽에 머물고, 행렬은 오른쪽으로 지나간다 ---------- */
@media (min-width: 980px) {
  .proc:not(.chooser) { width: min(100%, 1060px); display: grid; grid-template-columns: minmax(0, 1fr) 460px; column-gap: 72px; align-items: start; }
  .proc:not(.chooser) > .tray { grid-column: 2; }
  .proc:not(.chooser) > .tray--lead { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: 0; height: 100svh; min-height: 0; padding: 70px 0 28px; gap: 14px; }
  .proc:not(.chooser) > .tray--lead .octa { width: min(24vw, 300px, 34vh); margin: 30px auto 34px; }
  .proc:not(.chooser) > .tray--lead .names { font-size: clamp(40px, 5.6vh, 56px); }
  .proc:not(.chooser) > .tray:nth-child(2) { margin-top: 12vh; }
}

/* ---------- 효과 ---------- */
.fx { position: fixed; inset: 0; z-index: 35; width: 100%; height: 100%; pointer-events: none; }
/* 폰을 기울이면(--tx/--ty) 금박·칠기 위로 빛 한 줄기가 지나간다. soft-light 라 상아 쪽지 글자는 거의 그대로 */
.tray:not(.tray--lead) { position: relative; }
.tray:not(.tray--lead)::after, .octa::after {
  content: ""; position: absolute; inset: 22px 0 0; z-index: 6; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 236, 190, .55) 47%, rgba(255, 252, 238, .8) 50%, rgba(255, 236, 190, .55) 53%, transparent 62%) no-repeat;
  background-size: 300% 300%;
  background-position: calc(50% + var(--tx, 0) * 48%) calc(50% + var(--ty, 0) * 30%);
  mix-blend-mode: soft-light;
}
.tray--end::after { display: none; }
.octa::after { inset: 0; clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%); z-index: 1; }
/* 이름이 금빛 붓으로 한 줄씩 써진다(천이 걷힌 뒤) */
.js .names .ink, .js .guest { display: inline-block; clip-path: inset(-20% 100% -30% 0); }
.js .names .ink { display: block; }
/* 이름은 천을 기다리지 않고 페이지가 열리자마자 써진다(늦게 보이면 손님이 기다려야 함) */
.js .names .ink { animation: write 1.3s .25s cubic-bezier(.55, .05, .3, 1) forwards, glint 2.2s .25s ease-out forwards; }
.js .names .ink:last-child { animation-delay: .85s, .85s; }
.lifted .guest { animation: write 1.4s .7s cubic-bezier(.55, .05, .3, 1) forwards, glint 2.4s .7s ease-out forwards; }
@keyframes write { to { clip-path: inset(-20% -4% -30% 0); } }
/* 막 쓴 글씨는 금빛, 마르면서 본래 상아색으로 */
@keyframes glint { 0%, 35% { color: var(--gold); } 100% { color: inherit; } }
/* 마지막 사진은 화면에 들어오면 아주 천천히 다가온다 */
.end__octa .octa__photo img { transform: scale(1); transition: transform 16s linear; }
.tray--end.lifted .end__octa .octa__photo img { transform: scale(1.1); }

/* 동작 줄이기: 천을 덮지 않고, 움직임 없이 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .cloth { display: none; }
  .tray { transform: none; opacity: 1; }
  .js .names .ink, .js .guest { clip-path: none; }
  .tray:not(.tray--lead)::after, .octa::after { display: none; }
}
