/* ==========================================================
   TEMPLATE 08 — JAPANDI INK
   Washi paper, sumi brushwork, vertical type, red seals.
   Bootstrap hanya untuk grid & utility.
   ========================================================== */

:root {
  --washi: #F2EEE4;
  --stone: #E3DDCF;
  --ink: #1E1C1A;
  --char: #4A4640;
  --mute: #8A8274;
  --red: #B33A2B;
  --gold: #B8975A;

  --f-display: 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --f-sans: 'Zen Kaku Gothic New', system-ui, sans-serif;

  --col: 480px;
  --vh: 100svh;
  --pad: 1.6rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scrollbar-gutter: stable; background: #171614; }
body { margin: 0; font-family: var(--f-sans); font-size: .92rem; line-height: 1.8; color: var(--char); background: #171614; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; height: var(--vh); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--washi); }

.invite { position: relative; width: min(100%, var(--col)); margin-inline: auto; background: var(--washi); overflow: hidden; container-type: inline-size; }
.fixed-col { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, var(--col)); margin-left: calc(min(100%, var(--col)) / -2); }
@media (min-width: 992px) {
  .invite { margin-right: 0; }
  .fixed-col { left: auto; right: 0; margin-left: 0; }
}

/* ---------- shared ---------- */
.sec { position: relative; padding: 4.6rem var(--pad) 5rem; overflow: hidden; isolation: isolate; background: var(--washi) url(../assets/textures/washi.svg); }
.sec > *:not(.deco) { position: relative; z-index: 2; }
.s-stone { background-color: var(--stone); }
.s-ink { background: var(--ink); color: #CFC8B8; }
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; max-width: none; translate: 0 var(--py, 0px); }

.lab { font-weight: 500; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red); }
.lab--light { color: #E08B7C; }
.vert { writing-mode: vertical-rl; font-weight: 500; font-size: .64rem; letter-spacing: .5em; text-transform: uppercase; white-space: nowrap; color: var(--mute); }
.ttl-j { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.3rem, 11cqw, 2.9rem); line-height: 1.1; letter-spacing: .02em; color: var(--ink); margin-top: .5rem; }
.ttl-j--light { color: var(--washi); }
.brushline { width: 110px; margin-top: .5rem; }
.note-j { max-width: 33ch; margin-top: .9rem; }
.note-j--ink { color: var(--char); }

.btn-j { position: relative; display: inline-block; padding: .2rem .1rem .7rem; border: 0; background: none; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; letter-spacing: .14em; color: var(--ink); cursor: pointer; }
.btn-j::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: 0; height: 9px; background: url(../assets/ornaments/stroke-red.svg) center / 100% 100% no-repeat; transition: transform .6s var(--ease); transform-origin: 0 50%; }
.btn-j:hover { color: var(--red); }
.btn-j:hover::after { transform: scaleX(1.08); }
.s-ink .btn-j { color: var(--washi); }
.btn-j--solid { width: 100%; padding: .9rem 1rem; background: var(--ink); color: var(--washi); text-align: center; }
.btn-j--solid::after { display: none; }
.btn-j--solid:hover { background: var(--red); color: var(--washi); }
.lnk-j { display: inline-block; padding: 0 0 .1rem; border: 0; border-bottom: 1px solid var(--red); background: none; font-weight: 500; font-size: .7rem; letter-spacing: .14em; color: var(--red); cursor: pointer; }

/* photo in ensō */
.ens { position: relative; aspect-ratio: 1; }
.ens-img { position: absolute; inset: 13%; border-radius: 50%; overflow: hidden; }
.ens-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ens-img img, .kake-img img, .scr-img img, .season-img img, .ph img, .inkfilm-img img, .inkmap-venue img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) sepia(.18) contrast(1.06); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); } }

/* ---------- reveal ---------- */
[data-reveal] { transition: opacity 1.3s ease, transform 1.4s var(--ease), filter 1.3s ease, clip-path 1.5s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(20px); }
[data-reveal="fade"]:not(.is-in) { transform: none; }
[data-reveal="ink"]:not(.is-in) { transform: none; filter: blur(12px) contrast(1.6); }
[data-reveal="draw"] { clip-path: inset(0 0 0 0); }
[data-reveal="draw"]:not(.is-in) { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
[data-reveal="drop"]:not(.is-in) { transform: translateY(-40px); }

/* ==========================================================
   COVER — brushed away
   ========================================================== */
.cover { z-index: 1000; overflow: hidden; container-type: size; background: var(--washi) url(../assets/textures/washi.svg); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: clip-path 1.9s cubic-bezier(.7, 0, .2, 1); box-shadow: 0 0 0 100vmax var(--ink); }
.cover.is-opening { clip-path: polygon(130% 0, 130% 0, 100% 100%, 100% 100%); pointer-events: none; }
.cover-wash { width: 150%; left: -40%; top: -4%; opacity: .8; }
.cover-branch { width: 96%; right: -18%; top: -3%; }
.cover-vert { position: absolute; left: 1.4rem; top: 2rem; }
.cover-body { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(1.4rem, 5cqh, 3rem); }
.cover-ens { width: min(62%, 36cqh); margin-left: -4%; margin-bottom: clamp(.4rem, 2cqh, 1.2rem); }
.cover-names { font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 15.5cqw, 4.2rem); line-height: 1.02; color: var(--ink); }
.cover-names span, .side-names span { color: var(--red); }
.cover-stroke { width: 150px; margin: .6rem 0 .5rem; }
.cover-guest { margin-top: clamp(.6rem, 2.2cqh, 1.3rem); display: flex; flex-direction: column; }
.cover-guest span { font-size: .78rem; }
.cover-guest strong { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; color: var(--ink); line-height: 1.3; }
.cover .btn-j { margin-top: clamp(.7rem, 2.2cqh, 1.2rem); }
.cover-hanko { position: absolute; right: var(--pad); bottom: clamp(1.6rem, 5cqh, 3.2rem); width: 62px; rotate: 4deg; }
.cv { animation: cvIn 1.6s var(--ease) both; animation-delay: calc(.3s + var(--i) * .16s); }
@keyframes cvIn { from { opacity: 0; filter: blur(10px); } }

/* ==========================================================
   HERO
   ========================================================== */
.hero { padding-top: 3.4rem; }
.hero-sun { width: 62%; right: -12%; top: 12.5rem; opacity: .92; }
.hero-vert { position: absolute !important; right: 1.2rem; top: 3.4rem; }
.hero-names { display: flex; flex-direction: column; margin-top: 1rem; font-family: var(--f-display); font-weight: 500; font-size: clamp(4rem, 20cqw, 5.4rem); line-height: 1.02; color: var(--ink); }
.hero-names i { font-style: normal; color: var(--red); }
.kake { width: 66%; margin: 2.4rem 0 0 auto; }
.kake-rod { display: block; height: 10px; margin: 0 -12px; border-radius: 5px; background: linear-gradient(#5A5046, #2A2622); }
.kake-img { aspect-ratio: 3 / 4.5; margin: 0; border-inline: 12px solid #D9D3C5; overflow: hidden; background: #D9D3C5; }
.kake-hanko { width: 56px; left: -30px; bottom: 34px; rotate: -5deg; z-index: 3; }
.kenburns { animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-branch { width: 84%; left: -32%; top: 46%; scale: -1 1; rotate: -8deg; z-index: 3 !important; }
.hero-foot { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.hero-foot p:first-child { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.5; color: var(--ink); white-space: nowrap; }
.hero-foot b { font-weight: 700; }
.hero-foot p:last-child { font-size: .84rem; line-height: 1.7; }

/* ==========================================================
   QUOTE
   ========================================================== */
.quote { padding-block: 5.4rem; }
.quote-enso { width: 90%; right: -36%; top: 8%; opacity: .14; animation: spin 180s linear infinite; }
.quote blockquote { margin: 1.4rem 0 1.2rem; font-family: var(--f-display); font-size: clamp(2.5rem, 12cqw, 3.2rem); line-height: 1.16; color: var(--washi); }
.quote-stroke { width: 170px; }
.quote-verse { margin: 2rem 0 0 22%; font-size: .86rem; }
.quote-verse span { display: block; margin-top: .9rem; font-weight: 500; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: #E08B7C; }

/* ==========================================================
   COUPLE — hanging scrolls
   ========================================================== */
.couple-wash { width: 150%; right: -60%; top: 26%; opacity: .7; }
.scrolls { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.6rem; }
.scr { position: relative; }
.scr--alt { margin-top: 4.4rem; }
.scr-vert { position: absolute !important; z-index: 3 !important; left: -.2rem; top: 1rem; padding: .7rem .2rem; background: var(--washi); font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .3em; text-transform: none; color: var(--ink); }
.scr-img { aspect-ratio: 3 / 4.6; margin-left: 1.1rem; overflow: hidden; border-top: 8px solid var(--ink); border-bottom: 8px solid var(--ink); }
.scr-info { margin: 1rem 0 0 1.1rem; }
.scr-info p:not(.lab) { margin: .3rem 0 .6rem; font-size: .8rem; line-height: 1.6; }

/* ==========================================================
   EVENT — tanzaku
   ========================================================== */
.bamboo { height: 9px; margin: 2.6rem -2.4rem 0; border-radius: 5px; background: linear-gradient(#5A5046, #2A2622); }
.tanzaku { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; padding: 0 .3rem; }
.tz { position: relative; margin-top: 30px; padding: 1.6rem .9rem 3.4rem 2.6rem; background: var(--washi) url(../assets/textures/washi.svg); box-shadow: 0 22px 30px -18px rgba(30, 28, 26, .5); transform-origin: 50% -30px; animation: swing 7s ease-in-out infinite; }
.tz--alt { margin-top: 62px; animation-duration: 9s; animation-direction: reverse; }
@keyframes swing { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
.tz-string { position: absolute; left: 50%; bottom: 100%; width: 1px; height: 30px; background: var(--ink); }
.tz--alt .tz-string { height: 62px; }
.tz::before { content: ""; position: absolute; left: 50%; top: 10px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--stone); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.tz h3 { position: absolute; left: .7rem; top: 1.8rem; font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; letter-spacing: .14em; text-transform: none; color: var(--ink); }
.tz-body .lab { font-size: .52rem; letter-spacing: .16em; }
.tz-day { font-family: var(--f-display); font-weight: 500; font-size: 3.7rem; line-height: 1; color: var(--red); }
.tz-date { font-weight: 500; font-size: .62rem; line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; }
.tz-time { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--ink); font-family: var(--f-display); font-size: .98rem; line-height: 1.5; color: var(--ink); }
.tz-place { margin: .7rem 0 .6rem; font-size: .72rem; line-height: 1.6; }
.tz-place b { display: block; font-family: var(--f-display); font-weight: 500; font-size: .92rem; color: var(--ink); }
.tz-hanko { position: absolute; right: .7rem; bottom: .7rem; width: 36px; }

/* ==========================================================
   COUNTDOWN
   ========================================================== */
.countdown { padding-block: 5rem; }
.count-enso { width: 84%; right: -30%; top: 6%; opacity: .5; animation: spin 160s linear infinite; }
.tally { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1.4rem 0 1rem; }
.tally div { display: flex; align-items: flex-start; gap: .3rem; }
.tally div + div { padding-left: .7rem; border-left: 1px solid var(--ink); }
.tally strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.5rem, 12.6cqw, 3.3rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tally .vert { padding-top: .3rem; font-size: .52rem; letter-spacing: .3em; color: var(--red); }
.count-note { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 1.4rem; }

/* ==========================================================
   STORY — four seasons
   ========================================================== */
.season { position: relative; display: grid; grid-template-columns: 46% 1fr; gap: 1.2rem; align-items: end; margin-top: 2.8rem; }
.season--alt { grid-template-columns: 1fr 46%; }
.season--alt .season-img { order: 2; }
.season-no { position: absolute !important; z-index: 3 !important; right: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 5px; background: var(--red); font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--washi); rotate: 4deg; }
.season--alt .season-no { right: auto; left: 0; rotate: -4deg; }
.season-img { aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); }
.season--alt .season-img { box-shadow: -10px 10px 0 var(--ink); }
.season h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; color: var(--ink); margin: .3rem 0 .4rem; }
.season-text p:not(.lab) { font-size: .8rem; line-height: 1.65; }
.season .lab { font-size: .56rem; letter-spacing: .18em; }

/* ==========================================================
   GALLERY — shoji screen
   ========================================================== */
.shoji { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 34cqw; grid-auto-flow: dense; gap: 3px; margin: 2.2rem calc(var(--pad) * -.45) 0; padding: 9px; background: #2A2622; box-shadow: 0 30px 40px -24px rgba(30, 28, 26, .7); }
.shoji > * { background: var(--washi) url(../assets/textures/washi.svg); min-height: 0; }
.ph { display: block; overflow: hidden; cursor: zoom-in; }
.ph img { transition: transform 1.8s var(--ease), filter 1s; }
.ph:hover img { transform: scale(1.06); filter: none; }
.pane { display: grid; place-items: center; }
.pane img { width: 62%; }
.pane .vert { font-family: var(--f-display); font-size: .82rem; letter-spacing: .3em; text-transform: none; color: var(--ink); }
.p1, .p8 { grid-column: span 2; grid-row: span 2; }
.p6 { grid-column: span 3; }

/* ==========================================================
   VIDEO
   ========================================================== */
.inkfilm { position: relative; display: block; width: calc(100% + 1.2rem); margin: 1.6rem -.6rem 1.4rem; padding: 0; border: 0; background: none; cursor: pointer; }
.inkfilm-img { display: block; aspect-ratio: 3 / 2; -webkit-mask: url(../assets/frames/mask-brush.svg) center / 100% 100% no-repeat; mask: url(../assets/frames/mask-brush.svg) center / 100% 100% no-repeat; }
.inkfilm-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; }
.inkfilm-play img { position: absolute; inset: 0; width: 100%; animation: breathe 4s ease-in-out infinite; }
.inkfilm-play i { position: relative; padding-left: 4px; color: var(--washi); }
.video .note-j { margin-top: .6rem; }

/* ==========================================================
   LIVE
   ========================================================== */
.live { display: grid; grid-template-columns: 34% 1fr; gap: 1.4rem; align-items: center; }
.pulse { aspect-ratio: 1; display: grid; place-items: center; }
.pulse img { position: absolute; inset: 0; width: 100%; animation: breathe 3s ease-in-out infinite; }
.pulse span { position: relative; font-weight: 500; font-size: .62rem; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--washi); }
.live .ttl-j { font-size: clamp(1.7rem, 8cqw, 2.1rem); }
.live-text p:not(.lab) { margin: .5rem 0 .9rem; font-size: .84rem; }
.live-text b { display: block; font-weight: 500; color: var(--ink); }

/* ==========================================================
   RSVP
   ========================================================== */
.rsvp-branch { width: 76%; right: -22%; top: -2%; opacity: .9; }
.paper { margin-top: 2.2rem; padding: 2.2rem 1.5rem 1.6rem; background: var(--washi) url(../assets/textures/washi.svg); box-shadow: 0 26px 36px -24px rgba(30, 28, 26, .6); border-top: 8px solid var(--ink); }
.lbl { display: block; margin-bottom: .3rem; font-weight: 500; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--red); }
.fld { width: 100%; padding: .4rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); outline: 0; transition: border-color .4s, box-shadow .4s; }
.fld::placeholder { color: rgba(74, 70, 64, .4); }
.fld:focus { box-shadow: 0 2px 0 var(--red); border-color: var(--red); }
.fld.is-invalid { border-color: var(--red); box-shadow: 0 2px 0 var(--red); }
textarea.fld { resize: none; padding: .7rem .8rem; border: 1px solid var(--ink); font-family: var(--f-sans); font-size: .92rem; line-height: 1.6; }
.choice { display: flex; gap: 1.3rem; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
.choice span::before { content: ""; width: 24px; height: 24px; background: url(../assets/ornaments/enso.svg) center / contain no-repeat; transition: background .3s; }
.choice input:checked + span { color: var(--ink); font-weight: 500; }
.choice input:checked + span::before { background: radial-gradient(circle, var(--red) 0 34%, transparent 36%), url(../assets/ornaments/enso.svg) center / contain no-repeat; }
.choice input:focus-visible + span { outline: 1px solid var(--red); outline-offset: 3px; }
.stepper { display: flex; align-items: center; gap: .2rem; }
.stepper button { width: 38px; height: 38px; border: 1px solid var(--ink); background: transparent; font-size: 1.1rem; line-height: 1; color: var(--ink); transition: background .3s, color .3s; }
.stepper button:hover { background: var(--ink); color: var(--washi); }
.stepper output { width: 3rem; text-align: center; font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.stepper em { margin-left: .4rem; font-style: normal; }
.rsvp-done { animation: cvIn 1.2s var(--ease) both; }
.rsvp-done img { width: 64px; }
.rsvp-done .ttl-j { font-size: 2rem; margin-top: .8rem; }
.rsvp-done p { margin: .5rem 0 1rem; }

/* ==========================================================
   WISHES
   ========================================================== */
.haiku { list-style: none; margin: 1.8rem 0 0; padding: 0 .6rem 0 0; max-height: 500px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.hk { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; padding: 1.2rem 0; background: url(../assets/ornaments/stroke.svg) 0 100% / 100% 6px no-repeat; }
.hk:last-child { background: none; }
.hk.is-new { animation: cvIn 1.2s var(--ease) both; }
.hk-init { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 5px; background: var(--red); font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1; color: var(--washi); rotate: -3deg; }
.hk-text { font-family: var(--f-display); font-size: 1.02rem; line-height: 1.65; color: var(--ink); }
.hk-by { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-top: .5rem; }
.hk-by b { font-weight: 500; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
.hk-by span { margin-left: auto; font-size: .64rem; color: var(--mute); }
.tg { padding: 0 .4rem; border: 1px solid var(--ink); font-style: normal; font-size: .54rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.tg--no { border-color: var(--red); color: var(--red); } .tg--maybe { border-color: var(--mute); color: var(--mute); }

/* ==========================================================
   GIFT — noshi envelope
   ========================================================== */
.noshi { position: relative; width: min(74%, 264px); margin: 2.4rem auto 0; padding: 2.4rem 1.2rem 1.8rem; text-align: center; background: #FBF9F3 url(../assets/textures/washi.svg); box-shadow: 0 30px 40px -22px rgba(30, 28, 26, .6), inset 0 0 0 1px rgba(30, 28, 26, .08); }
.noshi::before { content: ""; position: absolute; right: 0; top: 0; width: 34%; height: 100%; background: linear-gradient(105deg, transparent 49.6%, rgba(30, 28, 26, .12) 50%, rgba(255, 255, 255, .5) 51%); pointer-events: none; }
.noshi-vert { position: absolute; right: .7rem; top: 1rem; font-size: .54rem; }
.noshi-bank { font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--ink); }
.noshi-knot { width: 126%; max-width: none; margin: .4rem -13% .2rem; }
.noshi-no { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; letter-spacing: .08em; color: var(--ink); }
.noshi-name { margin-bottom: .9rem; font-size: .84rem; }
.send { margin-top: 2.8rem; padding-top: 1.2rem; border-top: 1px solid var(--ink); }
.send-addr { margin: .5rem 0 1rem; font-family: var(--f-display); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }

/* ==========================================================
   LOCATION
   ========================================================== */
.inkmap { margin: 2.2rem 1.6rem 0 0; }
.inkmap-img { aspect-ratio: 4 / 3.3; -webkit-mask: url(../assets/frames/mask-brush-2.svg) center / 100% 100% no-repeat; mask: url(../assets/frames/mask-brush-2.svg) center / 100% 100% no-repeat; }
.inkmap-img img { width: 100%; height: 100%; object-fit: cover; }
.inkmap-pin { position: absolute; left: 50%; top: 50%; width: 46px; margin: -23px 0 0 -23px; animation: breathe 2.6s ease-in-out infinite; }
.inkmap-venue { position: absolute; width: 32%; aspect-ratio: 3 / 4; right: -1.6rem; bottom: -1.6rem; overflow: hidden; border: 6px solid var(--washi); box-shadow: 0 16px 22px -14px rgba(30, 28, 26, .7); }
.inkmap-vert { position: absolute; right: -1.5rem; top: .6rem; font-size: .52rem; letter-spacing: .3em; }
.loc { margin-top: 2.6rem; }
.loc h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.9rem; line-height: 1.2; color: var(--ink); }
.loc p { margin: .5rem 0 1.2rem; max-width: 30ch; }

/* ==========================================================
   CLOSING + FOOTER
   ========================================================== */
.closing { padding-block: 5rem 3.4rem; }
.closing-vert { position: absolute !important; right: 1.3rem; top: 3rem; font-family: var(--f-display); font-size: 1.1rem; letter-spacing: .4em; color: #E08B7C; }
.closing-ens { width: 70%; margin-left: -6%; }
.closing-title { margin-top: 1rem; font-family: var(--f-display); font-weight: 500; font-size: clamp(4.2rem, 21cqw, 5.6rem); line-height: 1; color: var(--washi); }
.closing-stroke { width: 180px; margin: .8rem 0 1.4rem; }
.closing-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(242, 238, 228, .4); }
.closing-foot p { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.3; color: var(--washi); }
.closing-foot span { display: block; font-family: var(--f-sans); font-weight: 500; font-size: .62rem; letter-spacing: .3em; color: #E08B7C; }
.closing-foot img { width: 58px; rotate: 4deg; }

.footer { padding: 2.2rem var(--pad) 6rem; background: var(--washi) url(../assets/textures/washi.svg); border-top: 8px solid var(--ink); }
.footer-names { font-family: var(--f-display); font-weight: 500; font-size: 1.8rem; color: var(--ink); }
.footer-credit { margin-top: .8rem; font-size: .7rem; color: var(--mute); }

/* ==========================================================
   FLOATING UI
   ========================================================== */
.ui { z-index: 800; pointer-events: none; opacity: 0; transition: opacity 1.2s ease 1.2s; overflow: hidden; }
body.is-open .ui { opacity: 1; }
.ui > *:not(.blossoms) { pointer-events: auto; }
.dock { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(242, 238, 228, .96); border-top: 1px solid var(--ink); }
.dock a { display: grid; place-content: center; justify-items: center; font-weight: 500; font-size: .5rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); transition: color .4s; }
.dock a b { font-family: var(--f-display); font-weight: 500; font-size: .95rem; line-height: 1.1; }
.dock a.is-active { color: var(--red); }
.fab { position: absolute; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 5px; background: var(--red); color: var(--washi); font-size: .8rem; rotate: 3deg; box-shadow: 0 10px 16px -8px rgba(30, 28, 26, .6); transition: opacity .5s, transform .5s var(--ease), visibility .5s; }
.fab--music { bottom: 64px; }
.fab--music.is-playing i { animation: beat 1.3s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.25); } }
.fab--music:not(.is-playing) { background: var(--ink); }
.fab--top { bottom: 116px; background: var(--ink); opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab--top.is-show { opacity: 1; visibility: visible; transform: none; }
.toast-inv { position: absolute; left: var(--pad); bottom: 64px; max-width: 68%; padding: .6rem 1rem; background: var(--ink); color: var(--washi); border-left: 4px solid var(--red); font-size: .78rem; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none !important; }
.toast-inv.is-show { opacity: 1; transform: none; }
.blossoms { position: absolute; inset: 0; }
.blossoms i { position: absolute; top: -20px; width: 9px; height: 9px; border-radius: 80% 10% 80% 10%; background: var(--red); opacity: 0; }
body.is-open .blossoms i { animation: petal 16s linear infinite; }
.blossoms i:nth-child(1) { left: 14%; }
.blossoms i:nth-child(2) { left: 36%; animation-duration: 21s !important; animation-delay: 5s !important; }
.blossoms i:nth-child(3) { left: 58%; animation-duration: 18s !important; animation-delay: 9s !important; }
.blossoms i:nth-child(4) { left: 80%; animation-duration: 24s !important; animation-delay: 2s !important; }
.blossoms i:nth-child(5) { left: 92%; animation-duration: 20s !important; animation-delay: 13s !important; }
@keyframes petal { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 8% { opacity: .7; } 50% { transform: translate3d(-40px, 55vh, 0) rotate(200deg); } 92% { opacity: .7; } 100% { transform: translate3d(-70px, 112vh, 0) rotate(420deg); opacity: 0; } }
.grain { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: var(--washi) url(../assets/textures/washi.svg); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-fig { margin: 0; }
.lb-media img { max-width: min(82vw, 860px); max-height: 68vh; border-top: 10px solid var(--ink); border-bottom: 10px solid var(--ink); }
.lb-media iframe { display: block; width: min(90vw, 940px); aspect-ratio: 16 / 9; border: 0; background: #000; }
.lb-fig figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8rem; }
.lb-cap { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
.lb-count { font-weight: 500; font-size: .6rem; letter-spacing: .3em; color: var(--red); }
.lb-btn { position: absolute; z-index: 2; width: 42px; height: 42px; border: 1px solid var(--ink); background: var(--washi); color: var(--ink); display: grid; place-items: center; transition: background .3s, color .3s; }
.lb-btn:hover { background: var(--ink); color: var(--washi); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; bottom: 14px; } .lb-next { left: 62px; bottom: 14px; }
.lightbox.is-video .lb-prev, .lightbox.is-video .lb-next, .lightbox.is-video figcaption { display: none; }

/* desktop side */
.side { position: fixed; left: 0; top: 0; bottom: 0; width: calc(100% - var(--col)); align-items: flex-end; padding: 4rem 5rem; overflow: hidden; background: var(--washi) url(../assets/textures/washi.svg); }
.side-wash { position: absolute; width: 90vh; max-width: none; left: -10vh; top: -10vh; opacity: .8; }
.side-enso { position: absolute; width: 74vh; max-width: none; right: 4%; top: 50%; margin-top: -40vh; opacity: .22; }
.side-branch { position: absolute; width: 60vh; max-width: none; right: -6vh; top: -2vh; }
.side-vert { position: absolute; left: 5rem; top: 4rem; font-size: .76rem; }
.side-body { position: relative; z-index: 2; }
.side-names { font-family: var(--f-display); font-weight: 500; font-size: clamp(4.4rem, 8vw, 9rem); line-height: 1.02; color: var(--ink); }
.side-stroke { width: 260px; margin: 1.2rem 0 1rem; }
.side-hanko { position: absolute; right: 5rem; bottom: 4rem; width: 90px; rotate: 4deg; }

@media (max-width: 374px) {
  :root { --pad: 1.3rem; }
  .tz { padding-left: 2.3rem; }
  .tz h3 { left: .5rem; font-size: 1.35rem; }
  .choice { gap: .9rem; }
  .choice span { font-size: .82rem; }
}
.is-shot .ui { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  [data-reveal] { transition-duration: .01s; }
}
