/* ==========================================================
   TEMPLATE 03 — EDITORIAL MONOCHROME
   A wedding invitation laid out like a fashion magazine issue.
   Bootstrap hanya untuk grid & utility.
   ========================================================== */

:root {
  --paper: #F4F2EC;
  --paper-2: #E8E4DA;
  --ink: #121212;
  --mute: #7A766E;
  --red: #B3301F;

  --f-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --f-sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;

  --col: 480px;
  --vh: 100svh;
  --pad: 1.25rem;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

html { scrollbar-gutter: stable; background: #0B0B0B; }
body { margin: 0; font-family: var(--f-sans); font-size: .95rem; line-height: 1.6; color: var(--ink); background: #0B0B0B; -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, figure, dl, dd { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--red); color: var(--paper); }

.invite { position: relative; width: min(100%, var(--col)); margin-inline: auto; background: var(--paper); 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: 0 var(--pad) 4.4rem; overflow: hidden; isolation: isolate; background: var(--paper); }
.sec > *:not(.deco):not(.bg-photo) { position: relative; z-index: 2; }
.s-ink { background: var(--ink); color: var(--paper); }
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; max-width: none; translate: 0 var(--py, 0px); }

.run { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 .7rem; margin-bottom: 2.4rem; border-bottom: 1px solid var(--ink); font-weight: 500; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; }
.run span:first-child { font-family: var(--f-display); font-style: italic; font-size: .9rem; letter-spacing: 0; text-transform: none; line-height: 1; }
.run--light { border-color: rgba(244, 242, 236, .55); }
.kicker { display: block; font-weight: 600; font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--red); }
.kicker--light, .s-ink .kicker { color: #E7A79B; }
.headline { font-family: var(--f-display); font-size: clamp(2.9rem, 14.4cqw, 3.8rem); line-height: .95; letter-spacing: -.02em; margin-bottom: 1.4rem; }
.headline i { display: block; font-size: .42em; letter-spacing: 0; margin-bottom: .25em; }
.body { max-width: 34ch; color: #3B3936; }
.s-ink .body { color: rgba(244, 242, 236, .8); }

.lnk { display: inline-flex; align-items: center; gap: .8rem; padding: 0 0 .4rem; border: 0; border-bottom: 1px solid currentColor; background: none; font-weight: 600; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.lnk img { width: 42px; transition: transform .6s var(--ease); }
.lnk:hover img { transform: translateX(8px); }
.btn-e { display: inline-flex; align-items: center; gap: 1.1rem; padding: 1rem 1.3rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; transition: background .4s, border-color .4s, color .4s; }
.btn-e img { width: 40px; transition: transform .6s var(--ease); }
.btn-e:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn-e:hover img { transform: translateX(8px); }
.btn-e--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-e--light:hover img { filter: invert(1); }
.btn-e--block { width: 100%; justify-content: space-between; }

.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; }

.ticker { margin: 0 calc(var(--pad) * -1); overflow: hidden; padding: .6rem 0 .5rem; border-block: 1px solid currentColor; }
.ticker div { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.ticker span { white-space: nowrap; font-weight: 600; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; }
.ticker--red { background: var(--red); color: var(--paper); border: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.count-big strong, .prog-time, .chap-year, .slab strong, .coord, .cover-mast, .profile-init, .closing-title, .hero-title { font-variation-settings: "opsz" 30; }

/* ---------- reveal ---------- */
[data-reveal] { transition: opacity 1s ease, transform 1.4s var(--ease), clip-path 1.5s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }
[data-reveal="fade"]:not(.is-in) { transform: none; }
[data-reveal="mask"] { clip-path: inset(0 0 0 0); }
[data-reveal="mask"]:not(.is-in) { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
[data-reveal="rise"]:not(.is-in) { opacity: 1; transform: translateY(108%); }

/* ==========================================================
   COVER — magazine cover, opens like a page
   ========================================================== */
.cover { z-index: 1000; overflow: hidden; container-type: size; background: var(--ink); color: var(--paper); transform-origin: 0 50%; transition: transform 1.7s cubic-bezier(.7, 0, .2, 1), box-shadow 1.7s; }
.cover.is-opening { transform: perspective(1800px) rotateY(-104deg); box-shadow: 60px 0 80px rgba(0, 0, 0, .6); pointer-events: none; }
.cover-photo { position: absolute; inset: 0; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.12); animation: kb 20s ease-in-out infinite alternate; }
.cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(18, 18, 18, .55), rgba(18, 18, 18, 0) 26%, rgba(18, 18, 18, 0) 42%, rgba(18, 18, 18, .92) 78%); }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.cover-run { position: absolute; top: 14px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; padding-bottom: .5rem; border-bottom: 1px solid rgba(244, 242, 236, .7); font-weight: 600; font-size: .54rem; letter-spacing: .22em; text-transform: uppercase; }
.cover-mast { position: absolute; top: 34px; left: 0; right: 0; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 29cqw; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.cover-tag { position: absolute; right: var(--pad); top: calc(46px + 27cqw); text-align: right; font-weight: 600; font-size: .58rem; line-height: 1.5; letter-spacing: .24em; text-transform: uppercase; padding-right: .7rem; border-right: 2px solid var(--red); }
.cover-lines { position: absolute; left: var(--pad); right: var(--pad); bottom: 1.5rem; }
.cover .kicker { color: #F0B5AA; }
.cover-names { font-family: var(--f-display); font-size: clamp(3rem, 15.5cqw, 4.2rem); line-height: .93; letter-spacing: -.02em; margin: .5rem 0 .6rem; }
.cover-sub { max-width: 30ch; font-size: .8rem; line-height: 1.45; opacity: .85; }
.label { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center; max-width: 300px; margin-top: clamp(.8rem, 2.6cqh, 1.3rem); padding: .65rem .8rem .6rem; background: var(--paper); color: var(--ink); rotate: -1.4deg; box-shadow: 0 16px 24px -12px rgba(0, 0, 0, .7); }
.label span { font-weight: 600; font-size: .5rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.label strong { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.3rem; line-height: 1.15; }
.label img { grid-column: 2; grid-row: 1 / 3; width: 84px; }
.cover .btn-e { margin-top: clamp(.9rem, 2.6cqh, 1.3rem); }
.cv { animation: cvIn 1.3s var(--ease) both; animation-delay: calc(.25s + var(--i) * .11s); }
@keyframes cvIn { from { opacity: 0; transform: translateY(22px); } }

/* ==========================================================
   HERO
   ========================================================== */
.hero-title { font-family: var(--f-display); font-size: clamp(4.6rem, 24cqw, 6.8rem); line-height: .88; letter-spacing: -.035em; margin-bottom: 1.8rem; }
.hero-title .line:nth-child(2) { padding-left: 9%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 37% 1fr; gap: 1rem; align-items: end; }
.hero-lede { font-family: var(--f-display); font-style: italic; font-size: 1.08rem; line-height: 1.32; margin-top: .5rem; }
.hero-date { margin: 1.4rem 0 1rem; }
.hero-date small { display: block; margin-bottom: .7rem; font-weight: 600; font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.hero-date span { position: relative; display: inline-block; margin-left: .5rem; font-family: var(--f-display); font-size: 1.45rem; line-height: 1; font-variant-numeric: lining-nums; }
.hero-date img { position: absolute; left: -20%; top: -62%; width: 140%; max-width: none; }
.hero-fig { margin-right: calc(var(--pad) * -1); }
.hero-fig img { width: 100%; aspect-ratio: 3 / 4.1; object-fit: cover; filter: grayscale(1) contrast(1.1); }
figcaption { margin-top: .5rem; font-weight: 500; font-size: .5rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.hero-stamp { width: 96px; left: 35%; top: -8%; z-index: 3; animation: spin 32s linear infinite; }
.toc { margin-top: 3.2rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.toc .kicker { margin-bottom: .4rem; }
.toc a { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: baseline; padding: .75rem 0 .65rem; border-bottom: 1px solid rgba(18, 18, 18, .22); transition: padding .6s var(--ease); }
.toc a i { font-style: normal; font-weight: 600; font-size: .58rem; color: var(--red); }
.toc a span { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.toc a b { font-weight: 500; font-size: .54rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.toc a:hover { padding-left: .7rem; }
.toc a:hover span { font-style: italic; }

/* ==========================================================
   QUOTE
   ========================================================== */
.quote { padding-bottom: 5rem; }
.quote blockquote { margin: 1.4rem 0 2.6rem; padding-left: .1em; font-family: var(--f-display); font-size: clamp(2.6rem, 12.6cqw, 3.4rem); line-height: 1; letter-spacing: -.02em; }
.quote .q { display: block; height: .46em; font-size: 2.4em; line-height: .78; color: var(--red); }
.quote-foot { margin-left: 28%; padding-top: 1rem; border-top: 1px solid rgba(244, 242, 236, .5); }
.quote-foot p { font-size: .85rem; line-height: 1.6; opacity: .8; margin-bottom: 1rem; }
.quote-ast { width: 64px; right: var(--pad); top: 4.4rem; animation: spin 24s linear infinite; }

/* ==========================================================
   COUPLE — profiles
   ========================================================== */
.profile { position: relative; margin-top: 2.2rem; }
.profile-init { right: -.4rem; top: -1.4rem; font-family: var(--f-display); font-weight: 700; font-size: 17rem; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(18, 18, 18, .4); }
.profile--alt .profile-init { right: auto; left: -.4rem; }
.profile-fig { position: relative; z-index: 1; width: 68%; margin-left: calc(var(--pad) * -1); }
.profile-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.profile-fig figcaption { padding-left: var(--pad); }
.profile--alt .profile-fig { margin-left: auto; margin-right: calc(var(--pad) * -1); }
.profile--alt .profile-fig figcaption { padding: 0 var(--pad) 0 0; text-align: right; }
.profile-body { margin-top: 1.4rem; padding-left: 20%; }
.profile--alt .profile-body { padding: 0 20% 0 0; }
.profile-body h3 { font-family: var(--f-display); font-size: clamp(2.5rem, 12cqw, 3.1rem); line-height: .98; letter-spacing: -.02em; }
.profile-body dl, .credits dl { display: grid; grid-template-columns: 5.6rem 1fr; gap: .5rem .8rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid currentColor; }
dt { padding-top: .22rem; font-weight: 600; font-size: .52rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
dd { font-size: .9rem; line-height: 1.45; }
.and { display: flex; align-items: center; gap: 1.2rem; margin: 2.6rem 0 .4rem; }
.and::before, .and::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.and span { font-family: var(--f-display); font-style: italic; font-size: 4.6rem; line-height: .9; }
.couple { padding-bottom: 5.4rem; }
.couple-stem { width: 40%; right: -9%; bottom: -3%; rotate: 14deg; opacity: .55; }

/* ==========================================================
   EVENT — programme
   ========================================================== */
.slab { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: -2.4rem calc(var(--pad) * -1) 2.6rem; padding: 1.5rem var(--pad) 1.2rem; background: var(--ink); color: var(--paper); }
.slab span { font-weight: 600; font-size: .6rem; line-height: 1.6; letter-spacing: .24em; text-transform: uppercase; }
.slab span:last-child { text-align: right; }
.slab strong { font-family: var(--f-display); font-weight: 700; font-size: 6.6rem; line-height: .82; letter-spacing: -.05em; font-variant-numeric: lining-nums; }
.prog { position: relative; padding: 1.1rem 0 2.2rem; border-top: 2px solid var(--ink); }
.prog-ix { position: absolute; right: 0; top: 1.1rem; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--red); }
.prog-time { font-family: var(--f-display); font-size: clamp(4.8rem, 24cqw, 6.4rem); line-height: .92; letter-spacing: -.045em; font-variant-numeric: lining-nums; }
.prog-body { padding-left: 26%; margin-top: .5rem; }
.prog-body h3 { font-family: var(--f-display); font-size: 2.1rem; line-height: 1.02; margin: .4rem 0 .6rem; }
.prog-body p:not(.kicker) { font-size: .9rem; line-height: 1.5; color: #3B3936; margin-bottom: 1rem; }
.event { padding-bottom: 2rem; }

/* ==========================================================
   COUNTDOWN
   ========================================================== */
.countdown { padding-bottom: 4rem; }
.count-big { display: flex; align-items: baseline; gap: .7rem; margin-top: -.6rem; }
.count-big strong { font-family: var(--f-display); font-weight: 700; font-size: clamp(9rem, 47cqw, 13rem); line-height: .82; letter-spacing: -.06em; font-variant-numeric: lining-nums tabular-nums; }
.count-big em { font-family: var(--f-display); font-size: 2.1rem; color: #E7A79B; }
.count-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.6rem; border-block: 1px solid rgba(244, 242, 236, .5); }
.count-row p { padding: .9rem 0 .8rem; }
.count-row p + p { padding-left: 1rem; border-left: 1px solid rgba(244, 242, 236, .5); }
.count-row strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.7rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.count-row span { font-weight: 600; font-size: .5rem; letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.count-note { margin: 1.6rem 0 1.5rem; font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; }
.lnk--light img { filter: none; }

/* ==========================================================
   STORY — chapters
   ========================================================== */
.chap { display: flow-root; padding: 1rem 0 2.2rem; border-top: 1px solid var(--ink); }
.chap-no { font-weight: 600; font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--red); }
.chap-year { font-family: var(--f-display); font-weight: 700; font-size: 4.8rem; line-height: .95; letter-spacing: -.045em; font-variant-numeric: lining-nums; }
.chap-fig { float: right; width: 45%; margin: .4rem calc(var(--pad) * -1) .6rem 1.1rem; }
.chap--alt .chap-fig { float: left; margin: .4rem 1.1rem .6rem calc(var(--pad) * -1); }
.chap-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.chap-fig figcaption { padding-inline: .2rem; }
.chap--alt .chap-fig figcaption { text-align: right; }
.chap h3 { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.02; margin: .7rem 0 .6rem; }
.chap p.dropcap { font-size: .9rem; line-height: 1.55; color: #3B3936; }
.dropcap::first-letter { float: left; font-family: var(--f-display); font-weight: 700; font-size: 3.5rem; line-height: .78; padding: .28rem .5rem 0 0; color: var(--ink); }
.pull { padding: 2rem 0 2.6rem; border-top: 1px solid var(--ink); text-align: center; font-family: var(--f-display); font-size: 2.3rem; line-height: 1.08; letter-spacing: -.01em; }
.pull img { width: 62%; margin: .5rem auto 0; }

/* ==========================================================
   GALLERY — lookbook
   ========================================================== */
.ph { display: block; overflow: hidden; cursor: zoom-in; }
.ph img { width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: transform 1.8s var(--ease), filter 1s; }
.ph:hover img { transform: scale(1.05); filter: grayscale(.1); }
.spread { margin: -2.4rem calc(var(--pad) * -1) 0; }
.ph--wide img { aspect-ratio: 4 / 4.8; }
.spread-word { position: absolute; left: var(--pad); bottom: 1rem; z-index: 3; font-family: var(--f-display); font-weight: 700; font-size: clamp(4.8rem, 25cqw, 6.8rem); line-height: .8; letter-spacing: -.04em; color: var(--paper); text-shadow: 0 4px 30px rgba(0, 0, 0, .35); pointer-events: none; }
.spread-word em { font-weight: 400; }
.duo { display: grid; grid-template-columns: 58% 1fr; gap: .8rem; margin-top: 2.4rem; }
.ph--tall img { aspect-ratio: 3 / 4.5; }
.duo-side { display: flex; flex-direction: column; justify-content: flex-end; gap: .8rem; }
.ph--sq img { aspect-ratio: 1; }
.cap { font-size: .78rem; line-height: 1.45; color: #3B3936; }
.cap b { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .52rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.sheet { margin: 2.6rem calc(var(--pad) * -1) 0; padding: 1rem var(--pad) 1.3rem; background: var(--ink); color: var(--paper); }
.sheet-head { display: flex; justify-content: space-between; font-weight: 600; font-size: .52rem; letter-spacing: .22em; text-transform: uppercase; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; margin-top: .9rem; }
.sheet .ph { position: relative; overflow: visible; }
.sheet .ph img { aspect-ratio: 3 / 2.1; }
.sheet .ph i { display: block; padding-top: 4px; font-style: normal; font-weight: 600; font-size: .5rem; letter-spacing: .14em; color: #E2BC55; }
.sheet .ph.is-pick::after { content: ""; position: absolute; inset: -7px -5px 10px; border: 2px solid #D8452F; border-radius: 50%; rotate: -7deg; pointer-events: none; }
.gallery { padding-bottom: 0; }

/* ==========================================================
   VIDEO
   ========================================================== */
.film { position: relative; display: block; width: calc(100% + var(--pad) * 2); margin: -2.4rem calc(var(--pad) * -1) 0; padding: 0; border: 0; background: none; overflow: hidden; cursor: pointer; }
.film img { width: 100%; aspect-ratio: 16 / 11.5; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.72); transition: transform 2.4s var(--ease); }
.film:hover img { transform: scale(1.05); }
.film-play { position: absolute; left: var(--pad); bottom: .4rem; display: flex; align-items: baseline; gap: .8rem; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 5rem; line-height: 1; color: var(--paper); }
.film-play i { font-size: 1.3rem; color: #E7A79B; }
.film-time { position: absolute; right: var(--pad); top: 1rem; padding: .2rem .5rem .1rem; border: 1px solid var(--paper); font-weight: 600; font-size: .58rem; letter-spacing: .14em; color: var(--paper); }
.credits { margin-top: 1.5rem; }
.credits h2 { font-family: var(--f-display); font-size: 2.1rem; line-height: 1.05; }
.credits dt { color: rgba(244, 242, 236, .55); }
.credits dl { border-color: rgba(244, 242, 236, .5); }

/* ==========================================================
   LIVE
   ========================================================== */
.live .kicker { margin: 2.8rem 0 .8rem; }
.live .btn-e { margin-top: 1.5rem; }
.live { padding-bottom: 3.6rem; }

/* ==========================================================
   RSVP — reply coupon
   ========================================================== */
.rsvp { background: var(--paper); box-shadow: inset 0 2px 0 var(--ink); }
.coupon { margin-top: 2.2rem; padding: 2rem 1.2rem 1.3rem; border: 1.5px dashed var(--ink); }
.coupon-cut { position: absolute; top: -.6rem; left: 1rem; padding: 0 .45rem; background: var(--paper); font-size: .95rem; rotate: -90deg; }
.lbl { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; }
.fld { width: 100%; padding: .35rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--ink); outline: 0; transition: box-shadow .3s, border-color .3s; }
.fld::placeholder { color: rgba(18, 18, 18, .35); }
.fld:focus { box-shadow: 0 1px 0 var(--ink); }
.fld.is-invalid { border-color: var(--red); box-shadow: 0 1px 0 var(--red); }
textarea.fld { resize: none; padding: .7rem .8rem; border: 1px solid var(--ink); font-family: var(--f-sans); font-style: normal; font-size: .95rem; line-height: 1.5; }
.choice { display: grid; gap: .55rem; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: .8rem; font-size: .98rem; }
.choice span::before { content: ""; width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid var(--ink); font-size: .8rem; line-height: 1; transition: background .3s; }
.choice input:checked + span::before { content: "✕"; background: var(--ink); color: var(--paper); }
.choice input:checked + span { font-weight: 600; }
.choice input:focus-visible + span::before { outline: 2px solid var(--red); outline-offset: 2px; }
.stepper { display: inline-flex; border: 1px solid var(--ink); }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 1.2rem; line-height: 1; transition: background .3s, color .3s; }
.stepper button:hover { background: var(--ink); color: var(--paper); }
.stepper output { width: 3.4rem; display: grid; place-items: center; border-inline: 1px solid var(--ink); font-family: var(--f-display); font-size: 1.5rem; font-variant-numeric: lining-nums; }
.rsvp-done { animation: cvIn 1s var(--ease) both; }
.rsvp-done img { width: 44px; animation: spin 14s linear infinite; }
.rsvp-done h3 { font-family: var(--f-display); font-size: 3rem; line-height: 1; margin: 1rem 0 .6rem; }
.rsvp-done p { max-width: 30ch; margin-bottom: 1.2rem; }

/* ==========================================================
   WISHES — letters
   ========================================================== */
.wishes .kicker { margin-top: -.6rem; }
.letters { list-style: none; margin: 1.4rem 0 0; padding: 0 .7rem 0 0; max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--paper) transparent; }
.letter { padding: 1.2rem 0 1.25rem; border-top: 1px solid rgba(244, 242, 236, .35); }
.letter.is-new { animation: cvIn 1s var(--ease) both; }
.letter-text { font-family: var(--f-display); font-style: italic; font-size: 1.32rem; line-height: 1.26; }
.letter-text::before { content: "“"; color: #E7A79B; }
.letter-text::after { content: "”"; color: #E7A79B; }
.letter-by { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; }
.letter-by b { font-weight: 600; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }
.letter-by span { margin-left: auto; font-size: .56rem; letter-spacing: .1em; opacity: .55; }
.tg { padding: .12rem .4rem .08rem; border: 1px solid currentColor; font-style: normal; font-weight: 600; font-size: .46rem; letter-spacing: .18em; text-transform: uppercase; }
.tg--no { color: #E7A79B; } .tg--maybe { color: #D9C57E; }

/* ==========================================================
   GIFT — receipt
   ========================================================== */
.gift { background: var(--paper-2); }
.receipt { width: min(100%, 304px); margin: 2.2rem auto 0; padding: 1.5rem 1.2rem 2.2rem; background: #FFFFFF; font-family: 'Courier New', Courier, monospace; rotate: -1.3deg;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.receipt-head { text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.receipt-head span { display: block; margin-top: .5rem; font-family: 'Courier New', Courier, monospace; font-weight: 400; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 1rem 0; padding: .9rem 0; border-block: 1px dashed var(--ink); }
.receipt dt { padding: 0; font-family: inherit; font-weight: 400; font-size: .7rem; letter-spacing: .06em; color: var(--ink); }
.receipt dd { text-align: right; font-size: .85rem; font-weight: 700; }
.receipt-no { font-size: 1.12rem !important; }
.receipt .btn-e { font-family: var(--f-sans); }
.receipt-bar { width: 170px; margin: 1.2rem auto .5rem; }
.receipt-foot { text-align: center; font-size: .66rem; letter-spacing: .1em; }
.send { margin-top: 2.6rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.send-addr { margin: .5rem 0 1.1rem; font-family: var(--f-display); font-size: 1.4rem; line-height: 1.22; }

/* ==========================================================
   LOCATION
   ========================================================== */
.coord { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.9rem, 14.6cqw, 3.9rem); line-height: .95; letter-spacing: -.035em; font-variant-numeric: lining-nums; }
.coord span { display: block; }
.coord span:last-child { text-align: right; font-weight: 400; font-style: italic; }
.plan { margin: 2.2rem .5rem 2.4rem; overflow: visible; }
.plan > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plan-pin { position: absolute; left: 50%; top: 50%; width: 38px; margin: -19px 0 0 -19px; }
.plan-pin img { animation: spin 12s linear infinite; }
.plan-marks { position: absolute; inset: -16px; border: 22px solid transparent; border-image: url(../assets/frames/crop-marks.svg) 60 / 22px stretch; pointer-events: none; }
.plan[data-reveal="mask"] { clip-path: inset(-20px); }
.plan[data-reveal="mask"]:not(.is-in) { clip-path: inset(-20px 100% -20px -20px); }
.venue { display: grid; grid-template-columns: 34% 1fr; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
.venue img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.venue h3 { font-family: var(--f-display); font-size: 2rem; line-height: 1; margin: .4rem 0 .5rem; }
.venue p:not(.kicker) { font-size: .86rem; line-height: 1.45; color: #3B3936; }
.location { padding-bottom: 4.6rem; }

/* ==========================================================
   CLOSING + FOOTER
   ========================================================== */
.closing { min-height: max(var(--vh), 720px); display: flex; flex-direction: column; padding-bottom: 2.2rem; }
.bg-photo { position: absolute; inset: -10% 0; z-index: -1; }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; filter: grayscale(1) contrast(1.1); }
.bg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(18, 18, 18, .7), rgba(18, 18, 18, .15) 30%, rgba(18, 18, 18, .3) 50%, rgba(18, 18, 18, .95) 82%); }
.closing-body { margin-top: auto; }
.closing-title { font-family: var(--f-display); font-size: clamp(5.2rem, 27cqw, 7.4rem); line-height: .86; letter-spacing: -.035em; }
.closing-sub { margin-top: .9rem; font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: #E7A79B; }
.closing-text { max-width: 33ch; margin-top: .8rem; font-size: .86rem; opacity: .85; }
.closing-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(244, 242, 236, .6); }
.closing-foot p { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.2; }
.closing-foot span { display: block; font-family: var(--f-sans); font-weight: 600; font-size: .56rem; letter-spacing: .24em; }
.closing-foot img { width: 112px; }

.footer { padding: 2rem var(--pad) 5.4rem; background: var(--paper); border-top: 2px solid var(--ink); }
.footer-mast { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.colophon { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.3rem 0; padding-block: .9rem; border-block: 1px solid var(--ink); }
.colophon p { font-size: .7rem; line-height: 1.4; }
.colophon b { display: block; margin-bottom: .2rem; font-weight: 600; font-size: .48rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.footer-credit { font-size: .62rem; letter-spacing: .08em; color: var(--mute); }

/* ==========================================================
   FLOATING UI
   ========================================================== */
.ui { z-index: 800; pointer-events: none; opacity: 0; transition: opacity 1s ease .9s; }
body.is-open .ui { opacity: 1; }
.ui > * { pointer-events: auto; }
.dock { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; justify-content: space-between; padding: 0 var(--pad); background: var(--paper); border-top: 1px solid var(--ink); }
.dock a { display: grid; place-items: center; font-weight: 600; font-size: .54rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); box-shadow: inset 0 0 0 var(--red); transition: color .3s, box-shadow .4s; }
.dock a.is-active { color: var(--ink); box-shadow: inset 0 3px 0 var(--red); }
.fab { position: absolute; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: .8rem; transition: opacity .4s, transform .5s var(--ease), visibility .4s, background .3s, color .3s; }
.fab--music { bottom: 58px; }
.fab--music.is-playing { background: var(--ink); color: var(--paper); }
.fab--music.is-playing i { animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.25); } }
.fab--top { bottom: 106px; 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: 58px; max-width: 70%; padding: .6rem .9rem; background: var(--ink); color: var(--paper); border-left: 3px solid var(--red); font-size: .74rem; line-height: 1.4; opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none !important; }
.toast-inv.is-show { opacity: 1; transform: none; }
.grain { position: fixed; inset: 0; z-index: 3000; pointer-events: none; background: url(../assets/textures/paper.svg) 0 0 / 300px; opacity: .5; mix-blend-mode: multiply; }

/* lightbox — a white page */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: var(--paper); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-fig { margin: 0; text-align: left; }
.lb-media img { max-width: min(84vw, 900px); max-height: 70vh; }
.lb-media iframe { display: block; width: min(92vw, 960px); aspect-ratio: 16 / 9; border: 0; background: #000; }
.lb-fig figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8rem; padding-top: .6rem; border-top: 1px solid var(--ink); color: var(--ink); letter-spacing: 0; text-transform: none; }
.lb-cap { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; }
.lb-count { font-weight: 600; font-size: .58rem; letter-spacing: .22em; }
.lb-btn { position: absolute; z-index: 2; width: 42px; height: 42px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: background .3s, color .3s; }
.lb-btn:hover { background: var(--ink); color: var(--paper); }
.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)); flex-direction: column; justify-content: space-between; padding: 2rem 2.6rem 2.2rem; background: var(--ink); color: var(--paper); overflow: hidden; }
.side-run { display: flex; justify-content: space-between; padding-bottom: .8rem; border-bottom: 1px solid rgba(244, 242, 236, .6); font-weight: 600; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; }
.side-mast { font-family: var(--f-display); font-size: clamp(6rem, 13.5vw, 15rem); line-height: .84; letter-spacing: -.045em; }
.side-mast em { padding-left: 8%; }
.side-stamp { position: absolute; right: 7%; top: 14%; width: 160px; animation: spin 34s linear infinite; }
.side-foot { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 1rem; border-top: 1px solid rgba(244, 242, 236, .6); font-weight: 600; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; }
.side-foot img { width: 140px; }

@media (max-width: 374px) {
  :root { --pad: 1.05rem; }
  .profile-init { font-size: 15rem; }
  .dock a { font-size: .5rem; letter-spacing: .1em; }
}
.is-shot .ui, .is-shot .grain { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  [data-reveal] { transition-duration: .01s; }
}
