/* Vellum invitation templates.
   Structure: shared base → per-template blocks (.t-<key>). Colours and fonts come
   from CSS variables set inline by templates.js (themeStyle). Cover type is sized
   in container units (cqi) so the same cover works full-screen and as a small card. */

.inv { color: var(--ink); background: var(--bg); font-family: var(--f-body); position: relative; -webkit-font-smoothing: antialiased; }
.inv *, .inv *::before, .inv *::after { box-sizing: border-box; }
.inv h1, .inv h2, .inv h3, .inv p, .inv ol, .inv dl, .inv dd, .inv figure { margin: 0; padding: 0; }
.inv ol { list-style: none; }
.inv img { display: block; max-width: 100%; }
.inv a { color: inherit; }
.inv-page { container-type: inline-size; overflow-x: clip; }
.inv.is-card { container-type: inline-size; height: 100%; overflow: hidden; }

/* ---------- cover base ---------- */
.inv .cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 24px; overflow: hidden; isolation: isolate; }
.inv.is-card .cover { min-height: 100%; height: 100%; }
.inv .c-names span { display: block; }
.inv .c-intro, .inv .c-venue, .inv .c-date { font-family: var(--f-body); }

/* ---------- sections base ---------- */
.inv .sec { padding: 72px max(24px, calc((100% - 720px) / 2)); text-align: center; }
.inv .sec-head { margin-bottom: 36px; }
.inv .sec-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 8cqi, 46px); line-height: 1.1; }
.inv .sec-div { display: flex; justify-content: center; margin-top: 14px; color: var(--accent); }
.inv .sec-div svg { height: 18px; width: auto; }
.inv p { line-height: 1.65; }
.inv .welcome p + p { margin-top: 1em; }
.inv .welcome { max-width: 34em; margin: 28px auto 0; font-size: 18px; }

.inv .sec-guest { padding-block: 56px 16px; }
.inv .g-dear { font-family: var(--f-display); font-size: clamp(26px, 7cqi, 38px); line-height: 1.2; }
.inv .g-seats { color: var(--muted); margin-top: 8px; }
.inv .g-table { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 18px; padding: 10px 22px; border: 1px solid currentColor; border-radius: 999px; }
.inv .g-table span { font-size: 14px; color: var(--muted); }
.inv .g-table strong { font-family: var(--f-display); font-size: 26px; font-weight: 400; }

.inv .parents { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.inv .parents p { color: var(--muted); font-size: 15px; }
.inv .parents strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--ink); margin-bottom: 4px; }
.inv .parents .amp { font-family: var(--f-script); font-size: 34px; color: var(--accent); }
@container (max-width: 420px) { .inv .parents { grid-template-columns: 1fr; } }

.inv .count { display: flex; justify-content: center; gap: clamp(8px, 3cqi, 20px); }
.inv .cu { min-width: 68px; display: flex; flex-direction: column; align-items: center; }
.inv .cn { font-family: var(--f-display); font-size: clamp(34px, 10cqi, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.inv .cl { font-size: 13px; color: var(--muted); margin-top: 8px; }

.inv .events { display: grid; gap: 20px; }
@container (min-width: 700px) { .inv .events { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.inv .ev { padding: 32px 24px; background: var(--paper); }
.inv .ev h3 { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
.inv .ev-when { font-weight: 500; }
.inv .ev-where { margin-top: 10px; }
.inv .ev-where span, .inv .ev-note { color: var(--muted); font-size: 15px; }
.inv .ev-note { margin-top: 10px; font-style: italic; }
.inv .ev-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

.inv .btn-line, .inv .btn-solid, .inv .open-btn, .inv .pill {
  font: 500 14px/1 var(--f-body); letter-spacing: .04em; padding: 13px 22px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; transition: background .2s, color .2s;
}
.inv .btn-line { background: transparent; color: var(--ink); border: 1px solid currentColor; border-radius: 999px; }
.inv .btn-line:hover { background: var(--ink); color: var(--bg); }
.inv .btn-solid { background: var(--accent); color: var(--on); border: 0; border-radius: 999px; }
.inv :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.inv .couple { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 520px; margin: 0 auto; }
.inv .pc p { font-family: var(--f-display); font-size: 24px; margin-top: 14px; }
.inv .ph { margin: 0; overflow: hidden; position: relative; background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
.inv .ph img { width: 100%; height: 100%; object-fit: cover; }
.inv .ph-portrait { aspect-ratio: 3 / 4; }
.inv .ph-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--paper)) 0 10px, color-mix(in srgb, var(--accent) 4%, var(--paper)) 10px 20px); }

.inv .story { display: grid; gap: 28px; max-width: 520px; margin: 0 auto; text-align: left; }
.inv .story li { padding-left: 88px; position: relative; }
.inv .st-year { position: absolute; left: 0; top: 2px; font-family: var(--f-display); font-size: 22px; color: var(--accent); }
.inv .story h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.inv .story p { color: var(--muted); margin-top: 4px; }

.inv .sched { max-width: 440px; margin: 0 auto; text-align: left; }
.inv .sched li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.inv .sched time { font-family: var(--f-display); font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
.inv .sched span { font-size: 17px; }

.inv .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@container (min-width: 700px) { .inv .gallery { grid-template-columns: repeat(3, 1fr); } }
.inv .g-item { aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.inv .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.inv .g-item:hover img { transform: scale(1.04); }

.inv .venue-name { font-family: var(--f-display); font-size: 26px; }
.inv .venue-addr { color: var(--muted); margin-top: 4px; }
.inv .map { margin: 24px 0; aspect-ratio: 4 / 3; max-height: 380px; width: 100%; background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.inv .map iframe { width: 100%; height: 100%; border: 0; }
.inv .map-load { font: inherit; background: none; border: 1px solid currentColor; color: var(--ink); padding: 12px 20px; border-radius: 999px; cursor: pointer; }

.inv .details { display: grid; gap: 22px; max-width: 520px; margin: 0 auto; text-align: left; }
.inv .details dt { font-family: var(--f-display); font-size: 21px; }
.inv .details dd { color: var(--muted); margin-top: 4px; line-height: 1.6; }

.inv .rsvp-by { font-weight: 500; }
.inv .rsvp-note { color: var(--muted); margin-top: 8px; }
.inv .rsvp, .inv .rsvp-done { max-width: 460px; margin: 28px auto 0; text-align: left; display: grid; gap: 18px; }
.inv .rsvp[hidden], .inv .rsvp-done[hidden] { display: none; }
.inv .rsvp-done { text-align: center; justify-items: center; }
.inv .rsvp-msg { font-family: var(--f-display); font-size: 24px; line-height: 1.3; }
.inv .fld { display: grid; gap: 6px; }
.inv .fld > span { font-size: 14px; color: var(--muted); }
.inv .fld input, .inv .fld select, .inv .fld textarea, .inv .lock input {
  font: 16px/1.4 var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 10px; padding: 12px 14px; width: 100%; min-height: 46px;
}
.inv .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv .choice label { position: relative; }
.inv .choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.inv .choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 10px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 10px; font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.inv .choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.inv .choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.inv .meals { display: grid; gap: 12px; }
.inv .rsvp .btn-solid { justify-self: stretch; min-height: 52px; font-size: 16px; }
.inv .rsvp-err { color: #B3261E; background: #FDECEA; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.inv .rsvp.sending { opacity: .6; pointer-events: none; }

.inv .inv-foot { padding: 72px 24px 96px; text-align: center; }
.inv .closing { font-family: var(--f-display); font-size: clamp(22px, 6cqi, 30px); line-height: 1.3; max-width: 20em; margin: 0 auto; }
.inv .foot-names { font-family: var(--f-script); font-size: 34px; margin-top: 20px; color: var(--accent); }
.inv .hashtag { color: var(--muted); margin-top: 6px; }
.inv .contacts { margin-top: 32px; display: grid; gap: 8px; justify-items: center; }
.inv .contacts p { font-size: 14px; color: var(--muted); }
.inv .contacts a { text-decoration: none; display: grid; }
.inv .contacts a span { font-size: 14px; color: var(--muted); }

/* ---------- opener base ---------- */
.inv .opener { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: var(--bg); color: var(--ink); transition: opacity .7s ease .1s, visibility 0s linear .8s; overflow: hidden; }
.inv.is-open .opener { opacity: 0; visibility: hidden; pointer-events: none; }
.inv .open-btn { position: relative; z-index: 5; background: var(--paper); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 999px; box-shadow: 0 8px 24px -12px rgba(0,0,0,.35); }
.inv.is-opening .open-btn { opacity: 0; transition: opacity .3s; }
.inv .op-names { font-family: var(--f-script); font-size: clamp(34px, 9vw, 56px); line-height: 1.1; text-align: center; position: relative; z-index: 4; }

.music-btn { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); }
.music-btn svg { width: 22px; height: 22px; }
.music-btn .bars { display: none; }
.music-btn.playing .bars { display: block; }
.music-btn.playing .note { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(10,10,10,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

.inv .lock { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 24px; text-align: center; }
.inv .lock-names { font-family: var(--f-script); font-size: 48px; line-height: 1.1; color: var(--accent); }
.inv .lock-form { display: grid; gap: 12px; width: min(340px, 100%); }

/* =====================================================================
   1. BOW — solid colour card, satin bow, Bodoni italics
   ===================================================================== */
.t-bow .bow-card { position: relative; width: 100%; min-height: calc(100% - 0px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 8px 32px; }
.t-bow .cover { padding: 18px; }
.t-bow .cover::before { content: ""; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); pointer-events: none; }
.t-bow .bow { width: min(58cqi, 250px); height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.14)); margin-bottom: 6cqi; }
.t-bow .c-intro { font-size: clamp(13px, 3.6cqi, 16px); letter-spacing: .08em; color: var(--muted); }
.t-bow .c-names { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(44px, 15cqi, 96px); line-height: .98; margin: 5cqi 0; }
.t-bow .c-names .amp { font-family: var(--f-body); font-style: normal; font-size: clamp(13px, 3.6cqi, 16px); letter-spacing: .2em; margin: 2cqi 0; color: var(--muted); }
.t-bow .c-date { font-size: clamp(14px, 4cqi, 18px); letter-spacing: .06em; line-height: 1.6; }
.t-bow .c-venue { margin-top: 3cqi; font-size: clamp(13px, 3.6cqi, 16px); color: var(--muted); }
.t-bow .sec-title { font-style: italic; }
.t-bow .sec:nth-of-type(even) { background: var(--paper); }
.t-bow .sec:nth-of-type(even) .ev { background: var(--bg); }
.t-bow .ev { border-radius: 18px; }
.t-bow .ph, .t-bow .g-item { border-radius: 14px; }
.t-bow .ph::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.7); border-radius: 8px; pointer-events: none; }
.t-bow .btn-solid { background: var(--ink); color: var(--bg); }
.t-bow .foot-names { font-style: italic; }
.t-bow.v-navy .btn-solid { background: var(--accent); color: var(--deep); }
.t-bow .op-bow { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.t-bow .op-bow-svg { width: min(72vw, 340px); height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.18)); overflow: visible; }
.t-bow .op-bow-svg .bow-loops, .t-bow .op-bow-svg .bow-tails { transform-box: fill-box; transition: transform .9s cubic-bezier(.6,-0.2,.4,1), opacity .7s; }
.t-bow .op-bow-svg .bow-loops { transform-origin: 50% 70%; }
.t-bow .op-bow-svg .bow-tails { transform-origin: 50% 0; }
.t-bow .op-names { font-family: var(--f-display); font-style: italic; }
.t-bow.is-opening .bow-loops { transform: scale(1.5, .2); opacity: 0; }
.t-bow.is-opening .bow-tails { transform: translateY(60px) scaleY(1.4); opacity: 0; }
.t-bow.is-opening .op-names { opacity: 0; transition: opacity .5s .2s; }

/* =====================================================================
   2. WAX SEAL — envelope, deckled card, Pinyon script
   ===================================================================== */
.t-seal .cover { padding: 40px 18px; background: var(--bg); }
.t-seal .deckle { position: relative; width: min(100%, 560px); padding: 64px 26px 48px; }
.t-seal .deckle::before { content: ""; position: absolute; inset: 0; background: var(--paper); z-index: -1; filter: url(#vl-deckle); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.t-seal .c-seal { position: absolute; top: -34px; left: 50%; width: 84px; height: 84px; transform: translateX(-50%) rotate(-8deg); filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.seal-mono { font-family: 'Pinyon Script', cursive; font-size: 34px; }
.t-seal .c-intro { font-family: var(--f-display); font-style: italic; font-size: clamp(17px, 4.6cqi, 21px); color: var(--muted); }
.t-seal .c-names { font-family: var(--f-script); font-weight: 400; font-size: clamp(50px, 16cqi, 92px); line-height: 1.05; margin: 3cqi 0; }
.t-seal .c-names .amp { font-family: var(--f-display); font-style: italic; font-size: .4em; color: var(--accent); line-height: 1; }
.t-seal .c-invite { font-size: clamp(17px, 4.6cqi, 21px); font-style: italic; }
.t-seal .c-date { margin-top: 6cqi; font-size: clamp(16px, 4.4cqi, 20px); font-variant: small-caps; letter-spacing: .08em; line-height: 1.5; }
.t-seal .c-venue { margin-top: 4cqi; font-family: var(--f-display); font-size: clamp(16px, 4.4cqi, 20px); }
.t-seal .c-venue span { color: var(--muted); font-size: .85em; }
.t-seal .inv-page, .t-seal .sec { font-size: 19px; }
.t-seal .sec-title { font-family: var(--f-script); font-size: clamp(40px, 11cqi, 60px); }
.t-seal .ev { background: var(--paper); border: 3px double color-mix(in srgb, var(--accent) 50%, transparent); }
.t-seal .ev h3 { font-variant: small-caps; letter-spacing: .06em; }
.t-seal .ph-portrait { border-radius: 50%; aspect-ratio: 3 / 4; }
.t-seal .btn-line, .t-seal .btn-solid { border-radius: 2px; font-family: var(--f-display); font-size: 17px; font-variant: small-caps; letter-spacing: .08em; }
.t-seal .btn-solid { background: var(--accent); color: #fff; }
.t-seal .g-item { border: 8px solid var(--paper); box-shadow: 0 10px 24px -16px rgba(0,0,0,.4); }
.t-seal .opener { background: var(--bg); perspective: 1200px; }
.t-seal .env { position: relative; width: min(86vw, 420px); aspect-ratio: 1.45; margin-top: 20px; }
.t-seal .env-back, .t-seal .env-front, .t-seal .env-flap { position: absolute; inset: 0; background: var(--env); }
.t-seal .env-back { filter: brightness(.9); border-radius: 4px; }
.t-seal .env-letter { position: absolute; left: 6%; right: 6%; top: 8%; bottom: 6%; background: var(--paper); display: flex; align-items: flex-start; justify-content: center; padding-top: 14%; font-family: var(--f-script); font-size: clamp(22px, 6vw, 32px); transition: transform .8s cubic-bezier(.3,.7,.3,1) .75s; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.t-seal .env-front { clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); z-index: 3; box-shadow: inset 0 -30px 40px -30px rgba(0,0,0,.15); }
.t-seal .env-flap { clip-path: polygon(0 0, 100% 0, 50% 62%); z-index: 4; filter: brightness(1.04); transform-origin: top; transition: transform .6s ease-in .3s, z-index 0s .6s; }
.t-seal .env-seal { position: absolute; left: 50%; top: 62%; width: 96px; height: 96px; transform: translate(-50%, -50%); z-index: 5; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); transition: transform .4s, opacity .4s; }
.t-seal.is-opening .env-seal { transform: translate(-50%, -50%) scale(1.25) rotate(12deg); opacity: 0; }
.t-seal.is-opening .env-flap { transform: rotateX(180deg); z-index: 1; }
.t-seal.is-opening .env-letter { transform: translateY(-42%); }
.t-seal .opener .open-btn { margin-top: 12px; }

/* =====================================================================
   3. WILDFLOWER — hand-drawn stems, soft Fraunces, taped prints
   ===================================================================== */
.t-wildflower .cover { justify-content: flex-start; padding-top: 16cqi; }
.t-wildflower .wf { position: absolute; overflow: visible; }
.t-wildflower .wf-meadow { left: -4%; right: -4%; bottom: -1cqi; width: 108%; height: 46%; }
.t-wildflower .wf-back { opacity: .45; height: 38%; transform: scaleX(-1); }
.t-wildflower .sprig { width: min(34cqi, 150px); height: auto; overflow: visible; margin-bottom: 4cqi; }
.t-wildflower .wf-stem { fill: none; stroke: var(--stem); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.t-wildflower .wf-leaf { fill: color-mix(in srgb, var(--stem) 35%, transparent); stroke: var(--stem); stroke-width: 1; }
.t-wildflower .wf-petal { fill: var(--petal); stroke: var(--stem); stroke-width: .8; }
.t-wildflower .wf-poppy { fill: var(--poppy); stroke: color-mix(in srgb, var(--poppy) 70%, #000); stroke-width: .6; }
.t-wildflower .wf-corn { fill: var(--corn); }
.t-wildflower .wf-eye { fill: var(--eye); }
.t-wildflower .wf-ink { fill: var(--ink); }
.t-wildflower .inv-page .cover .wf-stem, .t-wildflower .opener .wf-stem { animation: wf-draw 2.4s ease-out both; }
.t-wildflower .inv-page .cover .wf-head, .t-wildflower .opener .wf-head { animation: wf-bloom .9s ease-out 1.5s both; transform-box: fill-box; transform-origin: center; }
@keyframes wf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wf-bloom { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
.t-wildflower .c-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.t-wildflower .c-intro { font-size: clamp(15px, 4.2cqi, 19px); color: var(--muted); font-style: italic; }
.t-wildflower .c-names { font-family: var(--f-display); font-weight: 350; font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: clamp(46px, 14cqi, 88px); line-height: 1; margin: 4cqi 0; }
.t-wildflower .c-names .amp { display: block; font-family: var(--f-script); font-style: normal; font-size: .62em; line-height: 1.1; color: var(--accent); margin: 1cqi 0 0; }
.t-wildflower .c-date { font-size: clamp(15px, 4.2cqi, 19px); }
.t-wildflower .c-venue { margin-top: 2cqi; color: var(--muted); font-size: clamp(14px, 3.8cqi, 17px); }
.t-wildflower .ph-polaroid { background: #fff; padding: 10px 10px 34px; box-shadow: 0 16px 30px -18px rgba(0,0,0,.45); transform: rotate(-3deg); overflow: visible; }
.t-wildflower .ph-polaroid img { aspect-ratio: 4 / 5; }
.t-wildflower .ph-polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(4deg); background: color-mix(in srgb, var(--accent) 35%, transparent); z-index: 2; }
.t-wildflower .c-photo { width: min(52cqi, 260px); margin-bottom: 6cqi; }
.t-wildflower .sec-title { font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 350; }
.t-wildflower .ev { background: var(--paper); border: 1.5px solid var(--stem); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; }
.t-wildflower .ph-portrait { background: #fff; padding: 8px 8px 30px; box-shadow: 0 14px 26px -18px rgba(0,0,0,.45); }
.t-wildflower .pc:first-child .ph-portrait { transform: rotate(-3deg); }
.t-wildflower .pc:last-child .ph-portrait { transform: rotate(2.5deg); }
.t-wildflower .g-item { background: #fff; padding: 6px 6px 20px; box-shadow: 0 12px 22px -16px rgba(0,0,0,.4); }
.t-wildflower .g-item:nth-child(odd) { transform: rotate(-2deg); }
.t-wildflower .g-item:nth-child(even) { transform: rotate(1.5deg); }
.t-wildflower .foot-names { font-size: 40px; }
.t-wildflower .op-wf { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 20vh; }
.t-wildflower .op-wf .wf-meadow { height: 42%; }
.t-wildflower .op-wf .sprig { width: 150px; }
.t-wildflower .op-names { font-family: var(--f-display); font-style: italic; font-weight: 350; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.t-wildflower .opener .open-btn { position: absolute; top: 60vh; }
.t-wildflower.is-opening .op-wf { transform: scale(1.12); opacity: 0; transition: transform 1s ease, opacity .9s; }

/* =====================================================================
   4. CELESTIAL — night sky, crescent, gold foil Cinzel
   ===================================================================== */
.t-celestial .cover { background-color: var(--bg); background-size: 100% 100%; }
.t-celestial .cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 60% at 50% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.t-celestial .foil { background: linear-gradient(100deg, var(--foil-b) 0%, var(--foil-a) 28%, var(--foil-b) 52%, var(--foil-a) 78%, var(--foil-b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-celestial .moon { width: min(22cqi, 110px); height: auto; margin-bottom: 7cqi; }
.t-celestial .moon-fill { fill: var(--foil-a); }
.t-celestial .sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.t-celestial .spark { fill: var(--foil-a); opacity: .85; }
.t-celestial .c-intro { font-family: var(--f-script); font-style: italic; font-size: clamp(17px, 4.8cqi, 22px); color: var(--muted); }
.t-celestial .c-names { font-family: var(--f-display); font-weight: 500; letter-spacing: .06em; font-size: clamp(36px, 12cqi, 70px); line-height: 1.05; margin: 5cqi 0; }
.t-celestial .c-names .amp { font-family: var(--f-script); font-style: italic; letter-spacing: 0; font-size: .6em; }
.t-celestial .c-date { display: flex; justify-content: center; font-family: var(--f-display); font-size: clamp(18px, 5.4cqi, 26px); letter-spacing: .1em; color: var(--accent); }
.t-celestial .c-date span { padding: 0 4cqi; }
.t-celestial .c-date span + span { border-left: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.t-celestial .c-venue { margin-top: 5cqi; font-size: clamp(14px, 3.8cqi, 16px); letter-spacing: .08em; color: var(--muted); }
.t-celestial .sec-title { letter-spacing: .08em; color: var(--accent); }
.t-celestial .sec-div { color: var(--accent); }
.t-celestial .sec-div .spark, .t-celestial .div-star path:last-child { fill: currentColor; }
.t-celestial .ev { background: var(--paper); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 200px 200px 16px 16px; padding-top: 56px; }
.t-celestial .cu { width: clamp(64px, 19cqi, 96px); aspect-ratio: 1; justify-content: center; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 50%; }
.t-celestial .cn { font-size: clamp(24px, 7cqi, 34px); color: var(--accent); }
.t-celestial .cl { margin-top: 4px; font-size: 11px; }
.t-celestial .ph-portrait, .t-celestial .g-item { border-radius: 50%; aspect-ratio: 1; box-shadow: 0 0 0 1px var(--accent), 0 0 0 7px var(--bg), 0 0 0 8px color-mix(in srgb, var(--accent) 50%, transparent); }
.t-celestial .gallery { gap: 18px; }
.t-celestial .btn-solid { background: linear-gradient(100deg, var(--foil-b), var(--foil-a), var(--foil-b)); color: var(--deep); }
.t-celestial .btn-line:hover { color: var(--deep); background: var(--accent); }
.t-celestial .choice input:checked + span { background: var(--accent); color: var(--deep); border-color: var(--accent); }
.t-celestial .foot-names { font-family: var(--f-display); font-size: 26px; letter-spacing: .08em; }
.t-celestial .opener { background: transparent; }
.t-celestial .op-sky { position: absolute; inset: 0; background-color: var(--deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; transition: transform 1.1s cubic-bezier(.7,0,.3,1); }
.t-celestial .op-moon { width: 120px; }
.t-celestial .op-names { font-family: var(--f-display); font-size: clamp(28px, 8vw, 46px); letter-spacing: .06em; }
.t-celestial .opener .open-btn { position: absolute; bottom: 16vh; background: transparent; color: var(--accent); border-color: var(--accent); }
.t-celestial.is-opening .op-sky { transform: translateY(-100%); }

/* =====================================================================
   5. GALLERY — monumental cropped names, flat putty, circles
   ===================================================================== */
.t-gallery, .t-gallery .sec { text-align: left; }
.t-gallery .cover { align-items: stretch; justify-content: space-between; text-align: left; padding: 22px 0 28px; }
.t-gallery .c-meta { display: flex; justify-content: space-between; gap: 16px; padding: 0 22px; font-size: 13px; }
.t-gallery .c-names { font-family: var(--f-display); font-weight: 500; font-size: 29cqi; line-height: .84; letter-spacing: -.045em; white-space: nowrap; margin: 0 -3cqi; }
.t-gallery .c-names span:last-child { text-align: right; }
.t-gallery .c-names i { font-weight: 400; font-size: .5em; letter-spacing: 0; margin-right: .08em; vertical-align: .35em; }
.t-gallery .c-foot { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 14px 18px; align-items: end; padding: 0 22px; }
.t-gallery .c-photo, .t-gallery .c-mono { grid-row: span 2; width: 38cqi; max-width: 260px; aspect-ratio: 1; border-radius: 50%; }
.t-gallery .c-mono { display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); font-family: var(--f-display); font-style: italic; font-size: 12cqi; }
.t-gallery .c-intro { font-size: 14px; color: var(--muted); max-width: 16em; }
.t-gallery .pill, .t-gallery .btn-solid { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 10px 22px; min-height: 40px; justify-self: start; font-size: 13px; }
.t-gallery .btn-line { border-radius: 999px; }
.t-gallery .sec-head { margin-bottom: 40px; }
.t-gallery .sec-title { font-weight: 500; font-size: clamp(44px, 15cqi, 110px); line-height: .9; letter-spacing: -.035em; }
.t-gallery .sec-div { justify-content: flex-start; color: currentColor; }
.t-gallery .sec-events, .t-gallery .sec-schedule, .t-gallery .sec-rsvp { background: var(--deep); color: var(--on); --ink: var(--on); --accent: var(--on); --muted: color-mix(in srgb, var(--on) 60%, transparent); --paper: color-mix(in srgb, var(--on) 8%, var(--deep)); --bg: var(--deep); }
.t-gallery .sec-rsvp .btn-solid { background: var(--on); color: var(--deep); }
.t-gallery .ev { border-radius: 9px; text-align: left; }
.t-gallery .ev-actions { justify-content: flex-start; }
.t-gallery .count { justify-content: flex-start; gap: 6cqi; }
.t-gallery .cu { align-items: flex-start; min-width: 0; }
.t-gallery .cn { font-size: clamp(48px, 16cqi, 110px); letter-spacing: -.04em; }
.t-gallery .ph-portrait, .t-gallery .g-item { border-radius: 50%; aspect-ratio: 1; }
.t-gallery .parents, .t-gallery .story, .t-gallery .sched, .t-gallery .details, .t-gallery .rsvp, .t-gallery .couple, .t-gallery .welcome { margin-left: 0; }
.t-gallery .inv-foot { text-align: left; padding-inline: 22px; }
.t-gallery .contacts { justify-items: start; }
.t-gallery .foot-names { font-family: var(--f-display); font-style: italic; color: var(--ink); }
.t-gallery .map { border-radius: 9px; }
.t-gallery .opener { background: transparent; }
.t-gallery .op-gal { position: absolute; inset: 0; background: var(--deep); color: var(--on); display: flex; align-items: center; justify-content: center; clip-path: circle(150% at 50% 50%); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1); }
.t-gallery .op-word { font-family: var(--f-display); font-weight: 500; font-size: clamp(56px, 20vw, 180px); line-height: .86; letter-spacing: -.04em; text-align: center; }
.t-gallery .opener .open-btn { position: absolute; bottom: 12vh; background: var(--bg); color: var(--ink); border: 0; }
.t-gallery.is-opening .op-gal { clip-path: circle(0% at 50% 50%); }
.t-gallery.v-ink .c-mono { border-color: var(--ink); }

/* =====================================================================
   6. RIVIERA — majolica tile frame, lemons, arches, shutters
   ===================================================================== */
.t-riviera .cover { padding: 14px; background: var(--tiles) 0 0 / 44px 44px; }
.t-riviera .tile-band { display: none; }
.t-riviera .c-inner { position: relative; width: 100%; min-height: calc(100svh - 28px); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 18px; overflow: hidden; }
.t-riviera.is-card .c-inner { min-height: 100%; height: 100%; }
.t-riviera .arch { width: min(50cqi, 280px); aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; border: 2px solid var(--accent); outline: 1px solid var(--accent); outline-offset: 5px; margin: 8px 0 6cqi; }
.t-riviera .arch img { width: 100%; height: 100%; object-fit: cover; }
.t-riviera .arch-tiles { width: 100%; height: 100%; background: var(--tiles) center / 36px 36px; }
.t-riviera .lemon { position: absolute; width: min(30cqi, 170px); height: auto; }
.t-riviera .c-lemon-a { top: 3cqi; left: -3cqi; transform: rotate(-18deg); }
.t-riviera .c-lemon-b { bottom: 3cqi; right: -3cqi; transform: rotate(160deg); }
.t-riviera .lemon-fruit { fill: var(--lemon); }
.t-riviera .lemon-leaf { fill: var(--leaf); }
.t-riviera .lemon-vein { stroke: color-mix(in srgb, var(--leaf) 40%, #fff); stroke-width: 1.2; }
.t-riviera .c-intro { font-size: clamp(13px, 3.6cqi, 16px); letter-spacing: .12em; color: var(--muted); }
.t-riviera .c-names { font-family: var(--f-display); font-weight: 400; font-size: clamp(42px, 13cqi, 80px); line-height: 1; letter-spacing: .03em; margin: 3cqi 0; color: var(--ink); }
.t-riviera .c-names .amp { color: var(--accent); font-size: .6em; }
.t-riviera .c-date { font-size: clamp(15px, 4.2cqi, 19px); letter-spacing: .1em; }
.t-riviera .c-venue { color: var(--muted); font-size: clamp(13px, 3.6cqi, 16px); margin-top: 2cqi; }
.t-riviera .sec-title { letter-spacing: .03em; color: var(--ink); }
.t-riviera .div-tile { width: 132px; height: 22px; background: var(--tiles) 0 0 / 22px 22px; }
.t-riviera .ev { border-radius: 999px 999px 6px 6px; padding-top: 64px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.t-riviera .ph-portrait, .t-riviera .g-item { border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; }
.t-riviera .btn-solid { background: var(--accent); color: #fff; border-radius: 4px; }
.t-riviera .btn-line { border-radius: 4px; }
.t-riviera .sec-schedule, .t-riviera .sec-details { background: var(--paper); }
.t-riviera .foot-names { font-family: var(--f-display); }
.t-riviera .opener { background: var(--bg); perspective: 1400px; }
.t-riviera .shutters { position: absolute; inset: 0; display: flex; }
.t-riviera .sh { flex: 1; height: 100%; border: 10px solid transparent; border-image: var(--tiles) 12 round; background:
  repeating-linear-gradient(180deg, color-mix(in srgb, var(--deep) 92%, #fff) 0 16px, var(--deep) 16px 18px, color-mix(in srgb, var(--deep) 80%, #000) 18px 20px);
  transition: transform 1.1s cubic-bezier(.6,0,.3,1); backface-visibility: hidden; }
.t-riviera .sh-l { transform-origin: left center; }
.t-riviera .sh-r { transform-origin: right center; }
.t-riviera .shutters .op-names { position: absolute; top: 34%; left: 0; right: 0; color: var(--on); font-family: var(--f-display); transition: opacity .4s; }
.t-riviera .opener .open-btn { position: absolute; bottom: 18vh; }
.t-riviera.is-opening .sh-l { transform: rotateY(-105deg); }
.t-riviera.is-opening .sh-r { transform: rotateY(105deg); }
.t-riviera.is-opening .shutters .op-names { opacity: 0; }

/* =====================================================================
   7. CEYLON — Kandyan maroon/gold, lotus, vine bands, temple doors
   ===================================================================== */
.t-ceylon .cover { gap: 0; padding: 0 22px; justify-content: space-between; }
.t-ceylon .vine-band { width: calc(100% + 44px); height: 24px; background: var(--vine) center / 64px 24px repeat-x; margin: 18px 0; flex: none; }
.t-ceylon .lotus { width: min(38cqi, 190px); height: auto; margin-top: auto; }
.t-ceylon .c-intro { font-size: clamp(15px, 4.2cqi, 19px); color: var(--muted); margin-top: 4cqi; }
.t-ceylon .c-names { font-family: var(--f-display); font-weight: 400; font-size: clamp(42px, 13cqi, 80px); line-height: 1.02; color: var(--gold-hi); margin: 4cqi 0 3cqi; }
.t-ceylon .c-names .amp { font-size: .5em; color: var(--gold); }
.t-ceylon .c-invite { font-style: italic; color: var(--muted); font-size: clamp(14px, 4cqi, 18px); max-width: 24em; }
.t-ceylon .c-date { display: flex; align-items: center; justify-content: center; margin-top: 6cqi; }
.t-ceylon .c-date span { font-size: clamp(13px, 3.6cqi, 16px); padding: 0 4cqi; min-width: 26cqi; }
.t-ceylon .c-date strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 12cqi, 64px); line-height: 1; padding: 1cqi 4cqi; border-left: 1px solid var(--gold); border-right: 1px solid var(--gold); color: var(--gold-hi); }
.t-ceylon .c-venue { margin: 5cqi 0 auto; font-family: var(--f-display); font-size: clamp(16px, 4.4cqi, 20px); }
.t-ceylon .ph-lotus, .t-ceylon .ph-portrait, .t-ceylon .g-item {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V52C0 30 26 14 50 0c24 14 50 30 50 52v78z'/%3E%3C/svg%3E") center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V52C0 30 26 14 50 0c24 14 50 30 50 52v78z'/%3E%3C/svg%3E") center / 100% 100%;
  aspect-ratio: 10 / 13; }
.t-ceylon .c-photo { width: min(46cqi, 240px); margin-top: 5cqi; }
.t-ceylon .sec-title { color: var(--gold-hi); }
.t-ceylon .sec-div { color: var(--gold); }
.t-ceylon .sec-words, .t-ceylon .sec-story, .t-ceylon .sec-details, .t-ceylon .sec-rsvp, .t-ceylon .sec-guest {
  background: var(--light); --ink: var(--lightInk); --muted: color-mix(in srgb, var(--lightInk) 65%, #fff); --paper: #fff; color: var(--ink); }
.t-ceylon .sec-words .sec-title, .t-ceylon .sec-story .sec-title, .t-ceylon .sec-details .sec-title, .t-ceylon .sec-rsvp .sec-title { color: var(--lightInk); }
.t-ceylon .sec-words .sec-div, .t-ceylon .sec-story .sec-div, .t-ceylon .sec-details .sec-div, .t-ceylon .sec-rsvp .sec-div { color: var(--gold-lo); }
.t-ceylon .ev { background: var(--paper); border: 1px solid var(--gold); outline: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); outline-offset: -8px; }
.t-ceylon .btn-solid { background: var(--deep); color: var(--gold-hi); border-radius: 4px; }
.t-ceylon .btn-line { border-radius: 4px; }
.t-ceylon .st-year { color: var(--gold-lo); }
.t-ceylon .cn { color: var(--gold-hi); }
.t-ceylon .foot-names { font-family: var(--f-display); color: var(--gold-hi); }
.t-ceylon.v-ivory .c-names, .t-ceylon.v-ivory .c-date strong, .t-ceylon.v-ivory .sec-title, .t-ceylon.v-ivory .cn, .t-ceylon.v-ivory .foot-names { color: var(--ink); }
.t-ceylon.v-ivory .sec-words, .t-ceylon.v-ivory .sec-story, .t-ceylon.v-ivory .sec-details, .t-ceylon.v-ivory .sec-rsvp, .t-ceylon.v-ivory .sec-guest { background: #F3E9D3; }
.t-ceylon.v-ivory .btn-solid { color: var(--on); }
.t-ceylon .opener { background: var(--deep); perspective: 1400px; }
.t-ceylon .doors { position: absolute; inset: 0; display: flex; }
.t-ceylon .door { flex: 1; height: 100%; position: relative; background:
  radial-gradient(circle, var(--gold) 2px, transparent 2.6px) 0 0 / 30px 30px, var(--bg);
  border: 2px solid var(--gold); box-shadow: inset 0 0 0 10px var(--bg), inset 0 0 0 11px var(--gold); transition: transform 1.2s cubic-bezier(.6,0,.3,1) .2s; backface-visibility: hidden; }
.t-ceylon .door::before, .t-ceylon .door::after { content: ""; position: absolute; left: 0; right: 0; height: 24px; background: var(--vine) 0 0 / 64px 24px repeat-x; }
.t-ceylon .door::before { top: 22px; }
.t-ceylon .door::after { bottom: 22px; }
.t-ceylon .door-l { transform-origin: left center; }
.t-ceylon .door-r { transform-origin: right center; }
.t-ceylon .door-medal { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; background: var(--deep); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; z-index: 3; transition: opacity .4s, transform .4s; }
.t-ceylon .door-medal .lotus { width: 104px; margin: 0; }
.t-ceylon .doors .op-names { position: absolute; top: calc(42% + 100px); left: 0; right: 0; color: var(--gold-hi); font-family: var(--f-display); font-size: clamp(26px, 7vw, 40px); transition: opacity .3s; }
.t-ceylon .opener .open-btn { position: absolute; bottom: 14vh; background: var(--deep); color: var(--gold-hi); border-color: var(--gold); }
.t-ceylon.is-opening .door-medal { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.t-ceylon.is-opening .doors .op-names { opacity: 0; }
.t-ceylon.is-opening .door-l { transform: rotateY(-100deg); }
.t-ceylon.is-opening .door-r { transform: rotateY(100deg); }

/* =====================================================================
   8. EDITORIAL — magazine cover, cover lines, drop caps
   ===================================================================== */
.t-editorial .cover { align-items: stretch; justify-content: space-between; text-align: left; padding: 18px 20px 20px; background: var(--bg); }
.t-editorial .cover.has-photo { color: #fff; }
.t-editorial .c-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.t-editorial .cover.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 55%, rgba(0,0,0,.6)); }
.t-editorial .c-bigmono { position: absolute; inset: 30cqi 0 0; z-index: -1; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--f-display); font-style: italic; font-size: 62cqi; line-height: .74; color: color-mix(in srgb, var(--accent) 12%, var(--bg)); padding-right: 4cqi; }
.t-editorial .c-bigmono span:last-child { margin-right: 18cqi; color: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.t-editorial .c-mast { position: relative; }
.t-editorial .c-title { font-family: var(--f-display); font-size: 24cqi; line-height: .8; letter-spacing: -.035em; margin-top: 3cqi; color: var(--accent); }
.t-editorial .cover.has-photo .c-title { color: #fff; }
.t-editorial .c-issue { position: absolute; right: 0; top: 0; font-size: clamp(11px, 3.2cqi, 14px); font-weight: 600; }
.t-editorial .c-lines { max-width: 78%; }
.t-editorial .c-kicker { display: inline-block; background: var(--accent); color: var(--on); font-weight: 600; font-size: clamp(12px, 3.4cqi, 15px); padding: 4px 8px; }
.t-editorial .c-names { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 13cqi, 84px); line-height: .92; letter-spacing: -.02em; margin: 3cqi 0 2cqi; }
.t-editorial .c-line { font-size: clamp(15px, 4.4cqi, 20px); line-height: 1.25; margin-top: 2cqi; }
.t-editorial .c-bar { position: absolute; right: 20px; bottom: 20px; background: #fff; color: #000; padding: 6px 8px 4px; display: grid; justify-items: center; }
.t-editorial .barcode { width: min(22cqi, 110px); height: 30px; fill: #000; }
.t-editorial .c-bar span { font-size: 10px; letter-spacing: .2em; }
.t-editorial .inv-page { font-size: 18px; }
.t-editorial .sec { text-align: left; border-top: 1px solid var(--ink); }
.t-editorial .sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.t-editorial .sec-title { font-style: italic; font-size: clamp(34px, 10cqi, 60px); line-height: 1; }
.t-editorial .sec-div { display: none; }
.t-editorial .welcome { margin-left: 0; font-size: 19px; }
.t-editorial .welcome p:first-child::first-letter { float: left; font-family: var(--f-display); font-size: 4.4em; line-height: .78; padding: .06em .08em 0 0; color: var(--accent); }
.t-editorial .parents { text-align: left; }
.t-editorial .ev { border-top: 4px solid var(--accent); text-align: left; }
.t-editorial .ev-actions { justify-content: flex-start; }
.t-editorial .ev h3 { font-size: 32px; }
.t-editorial .count { justify-content: space-between; }
.t-editorial .cn { font-size: clamp(44px, 14cqi, 90px); letter-spacing: -.03em; }
.t-editorial .gallery { grid-template-columns: repeat(2, 1fr); }
.t-editorial .g-item:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.t-editorial .btn-line, .t-editorial .btn-solid { border-radius: 0; text-transform: none; font-weight: 600; }
.t-editorial .btn-solid { background: var(--accent); color: var(--on); }
.t-editorial .choice span, .t-editorial .fld input, .t-editorial .fld select, .t-editorial .fld textarea { border-radius: 0; }
.t-editorial .story, .t-editorial .sched, .t-editorial .details, .t-editorial .rsvp, .t-editorial .couple { margin-left: 0; }
.t-editorial .story li { padding-left: 0; }
.t-editorial .st-year { position: static; display: block; font-size: 15px; font-family: var(--f-body); font-weight: 600; }
.t-editorial .inv-foot { text-align: left; border-top: 1px solid var(--ink); }
.t-editorial .contacts { justify-items: start; }
.t-editorial .foot-names { font-family: var(--f-display); font-style: italic; }
.t-editorial .closing { margin: 0; }
.t-editorial .opener { background: rgba(0,0,0,.3); perspective: 1600px; }
.t-editorial .op-page { position: absolute; inset: 0; }
.t-editorial .op-sheet { position: absolute; inset: 0; background: var(--bg); padding: 24px; transform-origin: left center; transition: transform 1.1s cubic-bezier(.6,0,.3,1), box-shadow 1.1s; box-shadow: 0 0 0 rgba(0,0,0,0); }
.t-editorial .op-title { font-family: var(--f-display); font-size: clamp(64px, 24vw, 220px); line-height: .8; letter-spacing: -.035em; color: var(--accent); }
.t-editorial .op-sheet .op-names { font-family: var(--f-display); text-align: left; margin-top: 24px; }
.t-editorial .opener .open-btn { position: absolute; bottom: 12vh; border-radius: 0; background: var(--ink); color: var(--bg); }
.t-editorial.is-opening .op-sheet { transform: rotateY(-100deg); box-shadow: -40px 0 80px rgba(0,0,0,.35); }

/* =====================================================================
   9. TROPICAL — sunset sky, sea, monstera + palm frame
   ===================================================================== */
.t-tropical .cover { background: linear-gradient(180deg, var(--sky-c) 0%, var(--sky-b) 38%, var(--sky-a) 64%, var(--sky-a) 66%); color: #fff; }
.t-tropical .sun { position: absolute; left: 50%; top: 66%; width: 52cqi; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #FFF6D8 0%, #FFE2A1 45%, transparent 70%); z-index: -1; }
.t-tropical .sea { position: absolute; left: 0; right: 0; bottom: 0; top: 66%; z-index: -1; background:
  repeating-linear-gradient(180deg, rgba(255,255,255,.14) 0 2px, transparent 2px 14px), linear-gradient(180deg, color-mix(in srgb, var(--sea) 70%, var(--sky-a)), var(--sea)); }
.t-tropical .leaf, .t-tropical .palm { position: absolute; height: auto; }
.t-tropical .leaf-fill { fill: var(--leaf); }
.t-tropical .palm .leaf-fill { fill: var(--leaf2); }
.t-tropical .leaf-rib { stroke: rgba(255,255,255,.22); stroke-width: 2; }
.t-tropical .palm .leaf-rib { stroke: var(--leaf2); stroke-width: 3; }
.t-tropical .lf-1 { width: 62cqi; left: -20cqi; bottom: -10cqi; transform: rotate(38deg); }
.t-tropical .lf-2 { width: 64cqi; right: -20cqi; top: -4cqi; transform: rotate(200deg); }
.t-tropical .lf-3 { width: 50cqi; right: -16cqi; bottom: -10cqi; transform: rotate(-38deg); }
.t-tropical .lf-4 { width: 60cqi; left: -22cqi; top: 2cqi; transform: rotate(-20deg) scaleX(-1); }
.t-tropical .c-inner { position: relative; z-index: 2; margin-top: -14cqi; }
.t-tropical .c-intro { font-size: clamp(14px, 4cqi, 18px); letter-spacing: .06em; opacity: .92; }
.t-tropical .c-names { font-family: var(--f-display); font-weight: 400; font-size: clamp(46px, 15cqi, 92px); line-height: .98; margin: 3cqi 0; text-shadow: 0 4px 30px rgba(80,20,30,.3); }
.t-tropical .c-names .amp { font-size: .5em; opacity: .9; }
.t-tropical .c-date { font-size: clamp(15px, 4.4cqi, 20px); letter-spacing: .08em; font-weight: 500; }
.t-tropical .c-venue { font-size: clamp(13px, 3.8cqi, 16px); opacity: .9; margin-top: 1cqi; }
.t-tropical .sec-title { color: var(--accent); }
.t-tropical .sec-div { color: var(--sea); }
.t-tropical .ev { border-radius: 24px; background: var(--paper); box-shadow: 0 20px 40px -30px rgba(0,0,0,.4); overflow: hidden; padding-top: 0; }
.t-tropical .ev h3 { background: linear-gradient(90deg, var(--sky-b), var(--sky-a)); color: #fff; padding: 22px 16px; margin: 0 -24px 18px; }
.t-tropical .ph-portrait, .t-tropical .g-item { border-radius: 24px 24px 50% 50% / 24px 24px 18% 18%; }
.t-tropical .btn-solid { background: var(--accent); color: #fff; }
.t-tropical .sec-schedule { background: color-mix(in srgb, var(--sea) 10%, var(--bg)); }
.t-tropical .foot-names { font-family: var(--f-display); }
.t-tropical .inv-foot { background: var(--deep); color: var(--on); --muted: color-mix(in srgb, var(--on) 70%, transparent); }
.t-tropical .opener { background: linear-gradient(180deg, var(--sky-c), var(--sky-a)); color: #fff; }
.t-tropical .jl { position: absolute; top: 0; bottom: 0; width: 60%; transition: transform 1.2s cubic-bezier(.6,0,.3,1); }
.t-tropical .jl-l { left: -6%; }
.t-tropical .jl-r { right: -6%; transform: scaleX(-1); }
.t-tropical .jl .leaf, .t-tropical .jl .palm { position: absolute; width: 120%; }
.t-tropical .jl .leaf:nth-child(1) { top: -8%; left: -34%; width: 150%; transform: rotate(118deg); }
.t-tropical .jl .palm { top: 30%; left: -52%; width: 150%; transform: rotate(18deg); }
.t-tropical .jl .leaf:nth-child(3) { bottom: -12%; left: -30%; width: 140%; transform: rotate(52deg); }
.t-tropical .jl .leaf .leaf-fill { fill: var(--leaf); }
.t-tropical .jl-r .leaf .leaf-fill { fill: var(--leaf2); }
.t-tropical .op-names { font-family: var(--f-display); text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.t-tropical .opener .open-btn { position: absolute; bottom: 16vh; }
.t-tropical.is-opening .jl-l { transform: translateX(-100%); }
.t-tropical.is-opening .jl-r { transform: scaleX(-1) translateX(-100%); }
.t-tropical.is-opening .op-names { opacity: 0; transition: opacity .4s; }

/* =====================================================================
   10. PEARL — blind emboss, iridescent monogram, vellum overlay
   ===================================================================== */
.t-pearl .cover { padding: 20px; }
.t-pearl .emboss-card { width: 100%; max-width: 560px; min-height: calc(100svh - 40px); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px;
  box-shadow: 0 1px 0 #fff inset, 0 30px 60px -40px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.03); }
.t-pearl.is-card .emboss-card { min-height: 100%; }
.t-pearl .c-mono { width: min(40cqi, 180px); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 8cqi;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,.08), inset -2px -2px 5px rgba(255,255,255,1), 0 0 0 1px rgba(0,0,0,.02); }
.t-pearl .c-mono span { font-family: var(--f-script); font-size: min(20cqi, 92px); line-height: 1; padding: 0 .1em;
  background: conic-gradient(from 200deg at 50% 55%, #d9b8a2, #9fb6d9, #d6a8cf, #a8cfb4, #e6cf95, #d9b8a2); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.14)) drop-shadow(-1px -1px 0 #fff); }
.t-pearl .c-intro, .t-pearl .c-date, .t-pearl .c-venue { font-size: clamp(12px, 3.4cqi, 15px); letter-spacing: .22em; color: var(--muted); }
.t-pearl .c-names { font-family: var(--f-script); font-weight: 400; font-size: clamp(60px, 19cqi, 118px); line-height: .9; margin: 5cqi 0; color: var(--ink); text-shadow: 1px 1px 0 rgba(255,255,255,.9), -1px -1px 1px rgba(0,0,0,.08); }
.t-pearl .c-names .amp { font-size: .45em; color: var(--accent); }
.t-pearl .c-venue { margin-top: 2cqi; }
.t-pearl .sec { background: var(--paper); }
.t-pearl .sec:nth-of-type(odd) { background: var(--bg); }
.t-pearl .sec-title { font-family: var(--f-script); font-size: clamp(48px, 13cqi, 72px); line-height: 1; }
.t-pearl .sec-div { color: var(--accent); }
.t-pearl .ev { background: var(--paper); box-shadow: inset 2px 2px 6px rgba(0,0,0,.05), inset -2px -2px 6px #fff, 0 0 0 1px rgba(0,0,0,.04); border-radius: 4px; }
.t-pearl .sec:nth-of-type(even) .ev { background: var(--bg); }
.t-pearl .ev h3 { letter-spacing: .1em; font-size: 20px; }
.t-pearl .ph { box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11px rgba(0,0,0,.06); }
.t-pearl .ph img { padding: 10px; }
.t-pearl .btn-solid { background: var(--ink); color: var(--paper); border-radius: 0; letter-spacing: .18em; }
.t-pearl .btn-line { border-radius: 0; letter-spacing: .14em; }
.t-pearl .foot-names { font-size: 52px; }
.t-pearl .opener { background: rgba(255,255,255,.52); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); transition: transform 1.1s cubic-bezier(.6,0,.3,1), opacity .5s .7s, visibility 0s 1.2s; }
.t-pearl .op-vellum { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.t-pearl .op-names { font-size: clamp(46px, 13vw, 80px); }
.t-pearl .opener .c-mono { width: 150px; margin: 0; }
.t-pearl .opener .c-mono span { font-size: 76px; }
.t-pearl.is-opening .opener { transform: translateY(-104%) rotate(-2deg); }


/* ---------- wishes wall + memories ---------- */
.inv .wish-form { max-width: 460px; margin: 0 auto 36px; display: grid; gap: 14px; text-align: left; }
.inv .wish-form .btn-line { justify-self: start; }
.inv .wish-ok { font-size: 15px; color: var(--muted); }
.inv .wishes { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; gap: 14px; text-align: left; }
.inv .wishes li { background: var(--paper); padding: 20px 22px; border-radius: 12px; }
.inv .wishes li p { font-size: 17px; line-height: 1.55; }
.inv .wishes cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--muted); }
.inv .wishes .wish-empty { background: none; text-align: center; color: var(--muted); }
.inv .mem-card { max-width: 460px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; padding: 40px 24px; border: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 18px; }
.inv .mem-cam { width: 44px; height: 36px; color: var(--accent); }
.inv .mem-card p { color: var(--muted); }
.t-gallery .wishes li, .t-editorial .wishes li, .t-pearl .wishes li { border-radius: 0; }
.t-gallery .mem-card, .t-editorial .mem-card { justify-items: start; text-align: left; border-radius: 0; }
.t-editorial .wishes li { border-left: 3px solid var(--accent); }
.t-ceylon .sec-wishes { background: var(--light); --ink: var(--lightInk); --muted: color-mix(in srgb, var(--lightInk) 65%, #fff); --paper: #fff; color: var(--ink); }
.t-ceylon .sec-wishes .sec-title { color: var(--lightInk); }
.t-celestial .mem-card { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.t-seal .wishes li { font-family: var(--f-display); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- reduced motion: skip every opening animation ---------- */
@media (prefers-reduced-motion: reduce) {
  .inv *, .inv *::before, .inv *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* =====================================================================
   EFFECTS LAYER — particles, video cover, scroll reveals, film section
   ===================================================================== */
.inv .fx-cover { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.inv .fx-page { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 30; opacity: .75; }
.inv .cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.inv .cover-video-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.12) 38%, rgba(0,0,0,.6)); }
.inv .cover.has-video { color: #fff; }
.inv .cover.has-video > :is(.pr-sky, .pr-moon, .water, .velvet, .spot, .na-sky, .na-sun, .beams, .scene) { display: none; }
.inv .sec-film .film { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.inv .sec-film video { width: 100%; height: 100%; display: block; }
.inv .rv { opacity: 0; translate: 0 26px; transition: opacity .9s ease var(--rv-d, 0ms), translate 1s cubic-bezier(.2,.7,.2,1) var(--rv-d, 0ms); }
.inv .rv.in { opacity: 1; translate: 0 0; }
.inv .ch, .inv .c-names span.ch { display: inline-block; white-space: pre; }
/* Scene animations wait until the guest opens the invitation. */
.inv:not(.is-open) .inv-page .cover, .inv:not(.is-open) .inv-page .cover * { animation-play-state: paused !important; }
@keyframes vl-flick { 0% { transform: scale(1, 1); } 50% { transform: scale(.88, 1.14); } 100% { transform: scale(1.06, .92); } }
@keyframes vl-bloom { from { opacity: 0; transform: scale(.2) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes vl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vl-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* =====================================================================
   11. PERAHERA — Esala night procession
   ===================================================================== */
.t-perahera .cover { background: var(--sky2); justify-content: flex-start; padding: 0 20px; }
.t-perahera .pr-sky { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% 0%, var(--sky1), var(--sky2) 70%); }
.t-perahera .pr-moon { position: absolute; top: 7cqi; right: 9cqi; width: 20cqi; max-width: 130px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #FFF9E6, #F6E3B0 55%, #E2C07A); box-shadow: 0 0 40px 12px rgba(255,228,160,.32), 0 0 140px 50px rgba(255,205,120,.14); }
.t-perahera .c-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 560px; margin: clamp(70px, 24cqi, 100px) auto clamp(230px, 58cqi, 290px); }
.t-perahera .c-intro { font-size: clamp(19px, 6cqi, 28px); color: var(--accent); font-weight: 500; }
.t-perahera .c-names { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 15.5cqi, 100px); line-height: .98; margin: 4cqi 0 3cqi; background: linear-gradient(180deg, #FFF3CF 10%, var(--accent) 60%, #A2701C); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 14px rgba(255,190,80,.35)); }
.t-perahera .c-names .amp { font-size: .42em; font-weight: 500; margin: 1cqi 0; }
.t-perahera .c-invite { font-size: clamp(15px, 4.3cqi, 20px); color: var(--muted); max-width: 24em; }
.t-perahera .c-date { margin-top: 5cqi; font-size: clamp(15px, 4.3cqi, 20px); }
.t-perahera .c-venue { color: var(--accent); font-size: clamp(15px, 4.2cqi, 19px); }
.t-perahera .ph-arch { width: min(40cqi, 220px); aspect-ratio: 3 / 4; border-radius: 999px 999px 8px 8px; margin-top: 6cqi; border: 2px solid var(--accent); }
.t-perahera .procession { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(220px, 58cqi, 300px); z-index: 1; pointer-events: none; }
.t-perahera .procession::before { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: #07040C; }
.t-perahera .temple { position: absolute; left: 0; bottom: 20%; height: 55%; width: auto; }
@container (min-width: 900px) { .t-perahera .temple { left: 6%; } .t-ninearch .c-inner { margin-top: -10px; } }
.t-perahera .tp { fill: #07040C; }
.t-perahera .temple .win { fill: var(--light); animation: vl-twinkle 3s ease-in-out infinite; }
.t-perahera .parade { position: absolute; bottom: 20%; left: 0; display: flex; align-items: flex-end; gap: 2cqi; height: 62%; animation: pr-parade 70s linear -30s infinite; will-change: transform; }
@keyframes pr-parade { from { transform: translateX(-140cqi); } to { transform: translateX(110cqi); } }
.t-perahera .ele { height: 100%; width: auto; overflow: visible; animation: pr-bob 1.3s ease-in-out infinite alternate; }
.t-perahera .ele:nth-of-type(2n) { animation-delay: -.6s; }
@keyframes pr-bob { to { transform: translateY(-2px); } }
.t-perahera .ele-body { fill: #07040C; }
.t-perahera .ele-cap { fill: var(--cap); }
.t-perahera .ele-lights circle { fill: var(--light); animation: vl-twinkle 2.2s ease-in-out infinite; }
.t-perahera .ele-fringe, .t-perahera .ele-canopy { fill: var(--accent); }
.t-perahera .ele-tail, .t-perahera .ele-pole { fill: none; stroke: #07040C; stroke-width: 2.2; stroke-linecap: round; }
.t-perahera .ele-tusk { fill: none; stroke: #F3E7C9; stroke-width: 2.4; stroke-linecap: round; }
.t-perahera .torch { height: 62%; width: auto; overflow: visible; }
.t-perahera .t-fig { fill: #07040C; }
.t-perahera .t-pole { stroke: #4A3420; stroke-width: 2; }
.t-perahera .flame, .t-perahera .flame-g .glow { transform-box: fill-box; transform-origin: 50% 100%; }
.t-perahera .flame { fill: #FFD36B; animation: vl-flick .16s ease-in-out infinite alternate; }
.t-perahera .flame-g .glow { fill: rgba(255,160,60,.45); transform-origin: center; filter: blur(3px); animation: vl-twinkle 1.1s ease-in-out infinite; }
.t-perahera .sec-title { color: var(--accent); font-weight: 600; }
.t-perahera .ev { background: var(--paper); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px 999px 14px 14px; padding-top: 60px; }
.t-perahera .ph-portrait, .t-perahera .g-item { border-radius: 999px 999px 10px 10px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.t-perahera .btn-solid { background: var(--accent); color: var(--deep); }
.t-perahera .choice input:checked + span { background: var(--accent); color: var(--deep); border-color: var(--accent); }
.t-perahera .foot-names { font-family: var(--f-display); font-weight: 700; }
.t-perahera .opener { background: var(--deep); }
.t-perahera .pr-curtain { position: absolute; inset: 0; }
.t-perahera .pc { position: absolute; top: 0; bottom: 0; width: 50.5%; border: 2px solid var(--accent); box-shadow: inset 0 0 0 8px var(--cap), inset 0 0 0 9px var(--accent);
  background: radial-gradient(circle, var(--accent) 1.7px, transparent 2.2px) 0 0 / 24px 24px, radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent) 1px, transparent 1.4px) 12px 12px / 24px 24px, linear-gradient(90deg, var(--cap), color-mix(in srgb, var(--cap) 60%, #000));
  transition: transform 1.5s cubic-bezier(.7,0,.25,1) .35s; }
.t-perahera .pc-l { left: 0; }
.t-perahera .pc-r { right: 0; transform: scaleX(-1); }
.t-perahera .pr-medal { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 140px; height: 140px; border-radius: 50%; background: var(--deep); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--deep), 0 0 0 7px var(--accent), 0 0 60px rgba(255,190,80,.35); display: flex; align-items: center; justify-content: center; z-index: 2; transition: opacity .5s, transform .5s; }
.t-perahera .pr-medal span { font-family: var(--f-display); font-weight: 700; font-size: 48px; color: var(--accent); }
.t-perahera .pr-curtain .op-names { position: absolute; top: calc(40% + 96px); left: 0; right: 0; color: var(--accent); font-family: var(--f-display); font-weight: 700; transition: opacity .4s; }
.t-perahera .opener .open-btn { position: absolute; bottom: 13vh; background: var(--deep); color: var(--accent); border-color: var(--accent); }
.t-perahera.is-opening .pr-medal { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
.t-perahera.is-opening .pr-curtain .op-names { opacity: 0; }
.t-perahera.is-opening .pc-l { transform: translateX(-102%); }
.t-perahera.is-opening .pc-r { transform: scaleX(-1) translateX(-102%); }

/* =====================================================================
   12. PAHANA — brass oil lamp and jasmine garlands
   ===================================================================== */
.t-pahana { --names: var(--deep); }
.t-pahana.v-maroon, .t-pahana.v-green { --names: var(--accent); }
.t-pahana .cover { padding: clamp(110px, 30cqi, 170px) 20px clamp(40px, 12cqi, 80px); }
.t-pahana .garlands { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 2; pointer-events: none; }
.t-pahana .strand { position: absolute; top: -4px; width: 3.4cqi; max-width: 20px; height: auto; transform-origin: 50% 0; animation: ph-sway var(--sw, 4s) ease-in-out var(--sd, 0s) infinite alternate; }
@keyframes ph-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.t-pahana .thread { stroke: var(--thread); stroke-width: 1; }
.t-pahana .bud { fill: #FFFDF6; stroke: rgba(0,0,0,.14); stroke-width: .5; }
.t-pahana .leafbud { fill: var(--thread); }
.t-pahana .mari { fill: #EE8A24; } .t-pahana .mari2 { fill: #F7AE3E; } .t-pahana .mari3 { fill: #B4521A; }
.t-pahana .c-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 560px; }
.t-pahana .lamp-wrap { position: relative; width: min(34cqi, 190px); margin-bottom: 5cqi; }
.t-pahana .pahana { position: relative; width: 100%; height: auto; overflow: visible; z-index: 1; filter: drop-shadow(0 12px 16px rgba(60,30,0,.25)); }
.t-pahana .lamp-glow { position: absolute; left: 50%; top: 28%; width: 230%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.3); border-radius: 50%; background: radial-gradient(circle, rgba(255,196,90,.6), rgba(255,170,60,.18) 40%, transparent 68%); opacity: 0; transition: opacity 2.4s, transform 2.4s; }
.t-pahana .lamp-wrap:has(.wick.lit) .lamp-glow, .t-pahana.is-card .lamp-glow, .t-pahana.intro-done .lamp-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.t-pahana .wick > * { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); transition: transform .7s cubic-bezier(.3,1.7,.5,1); }
.t-pahana .wick .glow { fill: rgba(255,190,80,.5); transform-origin: center; filter: blur(4px); }
.t-pahana .wick .flame { fill: #FFD56A; }
.t-pahana .wick.lit > *, .t-pahana.is-card .wick > *, .t-pahana.intro-done .wick > * { transform: scale(1); }
.t-pahana .wick.lit .flame, .t-pahana.is-card .wick .flame, .t-pahana.intro-done .wick .flame { animation: vl-flick .17s ease-in-out .7s infinite alternate; }
.t-pahana .c-intro { font-size: clamp(19px, 6cqi, 28px); color: var(--accent); font-weight: 500; }
.t-pahana .c-names { font-family: var(--f-display); font-weight: 700; font-size: clamp(46px, 15cqi, 96px); line-height: .98; margin: 3cqi 0; color: var(--names); }
.t-pahana .c-names .amp { font-size: .42em; font-weight: 500; color: var(--accent); }
.t-pahana .c-invite { font-size: clamp(15px, 4.3cqi, 20px); color: var(--muted); max-width: 24em; }
.t-pahana .c-date { margin-top: 5cqi; font-size: clamp(15px, 4.3cqi, 20px); }
.t-pahana .c-venue { color: var(--accent); font-size: clamp(15px, 4.2cqi, 19px); }
.t-pahana .sec-title { font-weight: 600; color: var(--names); }
.t-pahana .ev { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 16px; box-shadow: 0 20px 40px -32px rgba(80,40,0,.5); }
.t-pahana .ph-portrait, .t-pahana .g-item { border-radius: 16px; border: 4px solid var(--paper); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.t-pahana .btn-solid { background: var(--deep); color: var(--on); }
.t-pahana.v-maroon .btn-solid, .t-pahana.v-green .btn-solid { background: var(--accent); color: var(--deep); }
.t-pahana .foot-names { font-family: var(--f-display); font-weight: 700; }
.t-pahana .op-pahana { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.t-pahana .op-lamp { width: min(46vw, 210px); position: relative; }
.t-pahana .op-lamp .pahana { width: 100%; height: auto; overflow: visible; }
.t-pahana .op-names { font-family: var(--f-display); font-weight: 700; color: var(--names); }
.t-pahana .opener .open-btn { position: absolute; bottom: 10vh; }
.t-pahana.is-opening .op-pahana .wick > * { transform: scale(1); }
.t-pahana.is-opening .op-pahana .wick[data-i="1"] > * { transition-delay: .18s; }
.t-pahana.is-opening .op-pahana .wick[data-i="2"] > * { transition-delay: .36s; }
.t-pahana.is-opening .op-pahana .wick[data-i="3"] > * { transition-delay: .54s; }
.t-pahana.is-opening .op-pahana .wick[data-i="4"] > * { transition-delay: .72s; }
.t-pahana.is-opening .op-pahana { opacity: 0; transform: scale(1.06); transition: opacity .7s 1s, transform 1.4s .4s; }

/* =====================================================================
   13. NELUM POKUNA — lotus pond
   ===================================================================== */
.t-nelum .cover { background: var(--water2); }
.t-nelum .water { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(90% 60% at 30% 18%, color-mix(in srgb, var(--water1) 85%, #fff), transparent 62%), radial-gradient(80% 60% at 80% 92%, var(--water1), transparent 70%), linear-gradient(180deg, var(--water1), var(--water2)); }
.t-nelum .water::after { content: ""; position: absolute; inset: -20%; background: repeating-radial-gradient(ellipse at 50% 120%, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); animation: nl-water 16s ease-in-out infinite alternate; }
@keyframes nl-water { to { transform: translate(-3%, 2%) scale(1.05); } }
.t-nelum .pad { position: absolute; height: auto; transform: rotate(var(--rot)); animation: nl-drift 14s ease-in-out infinite alternate; }
@keyframes nl-drift { to { transform: rotate(calc(var(--rot) + 10deg)) translate(6px, 5px); } }
.t-nelum .pad-f { fill: var(--padc); }
.t-nelum .pad-v { stroke: var(--padv); stroke-width: 1.4; opacity: .6; }
.t-nelum .lotus { position: absolute; width: calc(36cqi * var(--s)); max-width: 230px; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); }
.t-nelum .lt-a { top: 5cqi; right: 3cqi; }
.t-nelum .lt-b { bottom: 8cqi; left: 1cqi; }
.t-nelum .lt-c { bottom: 30cqi; right: 7cqi; }
.t-nelum .pod { fill: #E9C75A; } .t-nelum .seed { fill: #8A6420; }
.t-nelum .ring { transform-box: fill-box; transform-origin: center; }
.t-nelum .inv-page .ring { animation: vl-bloom 1.8s cubic-bezier(.2,.8,.2,1) both; }
.t-nelum .inv-page .r2 { animation-delay: .3s; } .t-nelum .inv-page .r3 { animation-delay: .6s; } .t-nelum .inv-page .r4 { animation-delay: .9s; }
.t-nelum .inv-page .lt-b .ring { animation-duration: 2.2s; } .t-nelum .inv-page .lt-c .ring { animation-duration: 2.6s; }
.t-nelum .c-inner { position: relative; z-index: 2; }
.t-nelum .pond-frame { display: flex; flex-direction: column; align-items: center; padding: 12cqi 10cqi; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--water2) 75%, transparent), transparent); }
.t-nelum .c-intro { font-size: clamp(19px, 6cqi, 28px); color: var(--accent); font-weight: 500; }
.t-nelum .c-names { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 15cqi, 96px); line-height: .98; margin: 3cqi 0; text-shadow: 0 2px 24px color-mix(in srgb, var(--water2) 80%, transparent); }
.t-nelum .c-names .amp { font-size: .42em; font-weight: 500; color: var(--accent); }
.t-nelum .c-date { margin-top: 3cqi; font-size: clamp(15px, 4.3cqi, 20px); }
.t-nelum .c-venue { color: var(--accent); font-size: clamp(15px, 4.2cqi, 19px); }
.t-nelum .sec:nth-of-type(even) { background: var(--paper); }
.t-nelum .sec-title { font-weight: 600; }
.t-nelum .ev { border-radius: 50% 50% 18px 18px / 26% 26% 18px 18px; padding-top: 52px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.t-nelum .ph-portrait, .t-nelum .g-item { border-radius: 50%; aspect-ratio: 1; border: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.t-nelum .btn-solid { background: var(--accent); color: #fff; }
.t-nelum .foot-names { font-family: var(--f-display); font-weight: 700; }
.t-nelum .op-pond { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.t-nelum .op-pond .water { z-index: 0; }
.t-nelum .op-lotus { position: relative; width: min(58vw, 280px); height: auto; overflow: visible; z-index: 1; filter: drop-shadow(0 16px 20px rgba(0,0,0,.3)); }
.t-nelum .op-lotus .ring { transform: scale(.25); transition: transform 1.3s cubic-bezier(.2,.8,.2,1); }
.t-nelum .op-lotus .r4 { transform: scale(1); }
.t-nelum .op-pond .op-names { font-family: var(--f-display); font-weight: 700; z-index: 1; }
.t-nelum .opener .open-btn { position: absolute; bottom: 12vh; }
.t-nelum.is-opening .op-lotus .ring { transform: scale(1); }
.t-nelum.is-opening .op-lotus .r2 { transition-delay: .15s; } .t-nelum.is-opening .op-lotus .r1 { transition-delay: .3s; }

/* =====================================================================
   14. ROSE GARDEN — growing rose arch
   ===================================================================== */
.t-rosegarden .cover { padding: 0; }
.t-rosegarden .arch { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 390 / 760; transform: translateX(-50%); overflow: visible; }
.t-rosegarden .vine { fill: none; stroke: var(--leafc); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; }
.t-rosegarden .vine2 { stroke-width: 1.2; opacity: .55; }
.t-rosegarden .leaf { fill: var(--leafc); opacity: .92; }
.t-rosegarden .rose .rl { transform-box: fill-box; transform-origin: center; }
.t-rosegarden .inv-page .vine { animation: vl-draw 3.2s cubic-bezier(.4,0,.2,1) both; }
.t-rosegarden .inv-page .leaves { animation: vl-fade 1.4s 1.4s both; }
.t-rosegarden .inv-page .rose .rl { animation: vl-bloom 1.4s cubic-bezier(.2,.8,.2,1) both; }
.t-rosegarden .inv-page .rose .l2 { animation-delay: .15s; } .t-rosegarden .inv-page .rose .l3 { animation-delay: .3s; } .t-rosegarden .inv-page .rose .l4 { animation-delay: .45s; }
.t-rosegarden .inv-page .b8 .rl, .t-rosegarden .inv-page .b9 .rl { animation-delay: .4s; }
.t-rosegarden .inv-page .b6 .rl, .t-rosegarden .inv-page .b7 .rl { animation-delay: 1s; }
.t-rosegarden .inv-page .b4 .rl, .t-rosegarden .inv-page .b5 .rl { animation-delay: 1.6s; }
.t-rosegarden .inv-page .b2 .rl, .t-rosegarden .inv-page .b3 .rl { animation-delay: 2.2s; }
.t-rosegarden .inv-page .big .rl { animation-delay: 2.6s; }
.t-rosegarden .c-inner { position: relative; z-index: 2; width: min(80%, 340px); display: flex; flex-direction: column; align-items: center; padding-top: clamp(40px, 12cqi, 70px); }
.t-rosegarden .c-intro { font-style: italic; font-size: clamp(16px, 4.6cqi, 21px); color: var(--muted); }
.t-rosegarden .c-names { font-family: var(--f-script); font-weight: 400; font-size: clamp(54px, 17cqi, 104px); line-height: .95; margin: 3cqi 0; color: var(--accent); }
.t-rosegarden .c-names .amp { font-family: var(--f-display); font-style: italic; font-size: .36em; color: var(--muted); }
.t-rosegarden .c-invite { font-style: italic; font-size: clamp(16px, 4.4cqi, 20px); }
.t-rosegarden .c-date { margin-top: 5cqi; font-size: clamp(16px, 4.4cqi, 20px); font-variant: small-caps; letter-spacing: .06em; }
.t-rosegarden .c-venue { font-size: clamp(15px, 4.2cqi, 19px); color: var(--muted); }
.t-rosegarden .inv-page, .t-rosegarden .sec { font-size: 19px; }
.t-rosegarden .sec-title { font-family: var(--f-script); font-size: clamp(46px, 13cqi, 68px); color: var(--accent); }
.t-rosegarden .ev { border-radius: 999px 999px 18px 18px; padding-top: 60px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.t-rosegarden .ph-portrait, .t-rosegarden .g-item { border-radius: 999px 999px 14px 14px; }
.t-rosegarden .btn-solid { background: var(--accent); color: #fff; }
.t-rosegarden .foot-names { font-family: var(--f-script); font-size: 44px; }
.t-rosegarden .op-rose { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.t-rosegarden .op-bud { width: min(56vw, 260px); height: auto; overflow: visible; filter: drop-shadow(0 16px 22px rgba(90,20,40,.25)); }
.t-rosegarden .op-bud .rl { transform-box: fill-box; transform-origin: center; transition: transform 1.3s cubic-bezier(.2,.8,.2,1), opacity .6s; }
.t-rosegarden .op-bud .l1, .t-rosegarden .op-bud .l2 { transform: scale(.35) rotate(-30deg); }
.t-rosegarden .op-rose .op-names { font-family: var(--f-script); color: var(--accent); font-size: clamp(44px, 12vw, 70px); }
.t-rosegarden.is-opening .op-bud .rl { transform: scale(1.12); }
.t-rosegarden.is-opening .op-bud .l1 { transform: scale(1.5) rotate(20deg); opacity: 0; transition-delay: .5s; }

/* =====================================================================
   15. CHAPEL — church doors, stained-glass rose window
   ===================================================================== */
.t-chapel .cover { padding: 0; }
.t-chapel .gothic { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 390 / 760; transform: translateX(-50%); }
.t-chapel .g-line { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.t-chapel .g-line.thin { stroke-width: .8; opacity: .7; }
.t-chapel .beams { position: absolute; left: 50%; top: 8%; width: 170cqi; height: 110%; transform-origin: 50% 0; transform: translateX(-50%); z-index: 0;
  background: conic-gradient(from 150deg at 50% 0%, transparent 0deg, color-mix(in srgb, var(--g3) 22%, transparent) 8deg, transparent 15deg, color-mix(in srgb, var(--g1) 16%, transparent) 24deg, transparent 32deg, color-mix(in srgb, var(--g2) 16%, transparent) 40deg, transparent 50deg, color-mix(in srgb, var(--g3) 20%, transparent) 58deg, transparent 66deg);
  filter: blur(3px); animation: ch-beams 10s ease-in-out infinite alternate; }
@keyframes ch-beams { from { transform: translateX(-50%) rotate(-5deg); opacity: .7; } to { transform: translateX(-50%) rotate(5deg); opacity: 1; } }
.t-chapel .c-inner { position: relative; z-index: 2; width: min(78%, 360px); display: flex; flex-direction: column; align-items: center; padding-top: 4cqi; }
.t-chapel .rosewin { width: min(48cqi, 230px); height: auto; margin-bottom: 7cqi; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--g3) 55%, transparent)); }
.t-chapel .lead-f { fill: #1B1A22; }
.t-chapel .lead { fill: none; stroke: #1B1A22; stroke-width: 2.4; }
.t-chapel .pane { stroke: #1B1A22; stroke-width: 1.4; }
.t-chapel .inv-page .rosewin { animation: ch-glow 5s ease-in-out infinite alternate; }
@keyframes ch-glow { from { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--g3) 40%, transparent)) brightness(.95); } to { filter: drop-shadow(0 0 30px color-mix(in srgb, var(--g3) 70%, transparent)) brightness(1.12); } }
.t-chapel .c-intro { font-style: italic; font-size: clamp(16px, 4.6cqi, 21px); color: var(--muted); }
.t-chapel .c-names { font-family: var(--f-display); font-weight: 500; letter-spacing: .06em; font-size: clamp(34px, 11cqi, 66px); line-height: 1.05; margin: 3cqi 0; }
.t-chapel .c-names .amp { font-family: var(--f-script); letter-spacing: 0; font-size: .8em; color: var(--accent); line-height: 1.1; }
.t-chapel .c-invite { font-style: italic; font-size: clamp(16px, 4.4cqi, 20px); }
.t-chapel .c-date { margin-top: 5cqi; font-size: clamp(16px, 4.4cqi, 20px); font-variant: small-caps; letter-spacing: .08em; }
.t-chapel .c-venue { color: var(--accent); font-size: clamp(15px, 4.2cqi, 19px); }
.t-chapel .inv-page, .t-chapel .sec { font-size: 19px; }
.t-chapel .sec-title { letter-spacing: .06em; }
.t-chapel .ev { border-radius: 999px 999px 4px 4px; padding-top: 62px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.t-chapel .ph-portrait, .t-chapel .g-item { border-radius: 999px 999px 4px 4px; }
.t-chapel .btn-solid { background: var(--ink); color: var(--bg); border-radius: 4px; }
.t-chapel .btn-line { border-radius: 4px; }
.t-chapel .foot-names { font-family: var(--f-script); font-size: 42px; }
.t-chapel .opener { background: #0A0A0F; perspective: 1500px; }
.t-chapel .ch-doors { position: absolute; inset: 0; display: flex; }
.t-chapel .ch-doors::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 45%, rgba(255,244,214,.95), rgba(255,236,190,.2) 60%, transparent 80%); opacity: 0; transition: opacity 1s .4s; pointer-events: none; }
.t-chapel .chd { flex: 1; position: relative; transition: transform 1.5s cubic-bezier(.6,0,.3,1) .25s; backface-visibility: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 30%, rgba(0,0,0,.2)), repeating-linear-gradient(90deg, var(--door) 0 26px, color-mix(in srgb, var(--door) 78%, #000) 26px 28px); border: 3px solid #1E140C; }
.t-chapel .chd-l { transform-origin: left center; } .t-chapel .chd-r { transform-origin: right center; }
.t-chapel .chd i { position: absolute; left: 0; right: 0; height: 10px; background: #1E140C; border-radius: 5px; }
.t-chapel .chd i:nth-child(1) { top: 22%; } .t-chapel .chd i:nth-child(2) { top: 72%; }
.t-chapel .chd-l::after, .t-chapel .chd-r::after { content: ""; position: absolute; top: 48%; width: 26px; height: 26px; border: 4px solid #C9A04A; border-radius: 50%; }
.t-chapel .chd-l::after { right: 16px; } .t-chapel .chd-r::after { left: 16px; }
.t-chapel .ch-doors .op-names { position: absolute; top: 30%; left: 0; right: 0; color: #F3E6C8; font-family: var(--f-script); transition: opacity .4s; z-index: 2; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.t-chapel .opener .open-btn { position: absolute; bottom: 14vh; }
.t-chapel.is-opening .chd-l { transform: rotateY(-100deg); }
.t-chapel.is-opening .chd-r { transform: rotateY(100deg); }
.t-chapel.is-opening .ch-doors::after { opacity: 1; }
.t-chapel.is-opening .ch-doors .op-names { opacity: 0; }

/* =====================================================================
   16. VELVET NIGHT — homecoming, curtains, champagne, confetti
   ===================================================================== */
.t-velvet .cover { background: var(--bg); padding: 40px 22px; }
.t-velvet .velvet { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 3px, transparent 3px 28px), radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--bg) 85%, #fff), var(--deep) 82%); }
.t-velvet .spot { position: absolute; left: 50%; top: -10%; width: 130cqi; height: 125%; transform-origin: 50% 0; transform: translateX(-50%); background: conic-gradient(from 168deg at 50% 0%, transparent, rgba(255,240,210,.2) 12deg, transparent 24deg); animation: vl-sweep 7s ease-in-out infinite alternate; }
@keyframes vl-sweep { from { transform: translateX(-50%) rotate(-16deg); } to { transform: translateX(-50%) rotate(16deg); } }
.t-velvet .deco i { position: absolute; width: 20cqi; max-width: 120px; aspect-ratio: 1; border: 1px solid var(--accent); opacity: .7; }
.t-velvet .deco i:nth-child(1) { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.t-velvet .deco i:nth-child(2) { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.t-velvet .deco i:nth-child(3) { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.t-velvet .deco i:nth-child(4) { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.t-velvet .c-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 560px; }
.t-velvet .c-kicker { font-family: var(--f-script); font-size: clamp(36px, 11cqi, 60px); color: var(--accent); line-height: 1; }
.t-velvet .glasses { display: flex; justify-content: center; margin: 3cqi 0 2cqi; }
.t-velvet .flute { width: 11cqi; max-width: 64px; height: auto; overflow: visible; transform-origin: 50% 95%; }
.t-velvet .fl-l { transform: rotate(-10deg); } .t-velvet .fl-r { transform: rotate(10deg); }
.t-velvet .inv-page .fl-l { animation: vl-clink-l 1.6s .3s cubic-bezier(.3,.7,.3,1) both; }
.t-velvet .inv-page .fl-r { animation: vl-clink-r 1.6s .3s cubic-bezier(.3,.7,.3,1) both; }
@keyframes vl-clink-l { 0% { transform: translateX(-40px) rotate(-30deg); } 55% { transform: translateX(4px) rotate(8deg); } 100% { transform: rotate(-10deg); } }
@keyframes vl-clink-r { 0% { transform: translateX(40px) rotate(30deg); } 55% { transform: translateX(-4px) rotate(-8deg); } 100% { transform: rotate(10deg); } }
.t-velvet .glass { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.75); stroke-width: 1; }
.t-velvet .bubbly { fill: var(--accent); opacity: .85; }
.t-velvet .stem { stroke: rgba(255,255,255,.8); stroke-width: 1.4; }
.t-velvet .bub { fill: #fff; transform-box: fill-box; animation: vl-rise 2.4s linear infinite; }
@keyframes vl-rise { from { transform: translateY(0); opacity: .9; } to { transform: translateY(-36px); opacity: 0; } }
.t-velvet .c-names { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(46px, 14cqi, 90px); line-height: 1; margin: 2cqi 0 3cqi; }
.t-velvet .c-names .amp { font-family: var(--f-script); font-style: normal; font-size: .6em; color: var(--accent); }
.t-velvet .c-invite { color: var(--muted); font-size: clamp(15px, 4.2cqi, 19px); max-width: 22em; }
.t-velvet .c-date { margin-top: 5cqi; font-size: clamp(14px, 4cqi, 18px); letter-spacing: .12em; }
.t-velvet .c-venue { color: var(--accent); font-size: clamp(14px, 4cqi, 18px); letter-spacing: .06em; }
.t-velvet .sec-title { font-style: italic; }
.t-velvet .sec:nth-of-type(odd) { background: var(--paper); }
.t-velvet .ev { background: var(--bg); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px color-mix(in srgb, var(--accent) 35%, transparent); }
.t-velvet .sec:nth-of-type(odd) .ev { background: var(--deep); }
.t-velvet .ph-portrait, .t-velvet .g-item { border: 1px solid var(--accent); padding: 5px; background: transparent; }
.t-velvet .ph-portrait img, .t-velvet .g-item img { border-radius: 0; }
.t-velvet .btn-solid { background: var(--accent); color: var(--deep); border-radius: 0; letter-spacing: .12em; }
.t-velvet .btn-line { border-radius: 0; }
.t-velvet .choice input:checked + span { background: var(--accent); color: var(--deep); border-color: var(--accent); }
.t-velvet .foot-names { font-family: var(--f-script); font-size: 46px; }
.t-velvet .opener { background: var(--deep); }
.t-velvet .vl-stage { position: absolute; inset: 0; }
.t-velvet .vl-curtain { position: absolute; inset: 0; transition: transform 1.6s cubic-bezier(.7,0,.25,1) .2s;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 20%, transparent 75%, rgba(0,0,0,.45)), repeating-linear-gradient(90deg, var(--curtain) 0 14px, color-mix(in srgb, var(--curtain) 75%, #fff) 22px, var(--curtain) 30px, color-mix(in srgb, var(--curtain) 55%, #000) 44px, var(--curtain) 56px); }
.t-velvet .fringe { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; border-top: 4px solid var(--accent); background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 6px); }
.t-velvet .vl-stage .op-names { position: absolute; top: 38%; left: 0; right: 0; font-family: var(--f-script); color: var(--accent); font-size: clamp(46px, 13vw, 80px); text-shadow: 0 4px 20px rgba(0,0,0,.5); transition: opacity .4s; }
.t-velvet .opener .open-btn { position: absolute; bottom: 14vh; background: transparent; color: var(--accent); border-color: var(--accent); }
.t-velvet.is-opening .vl-curtain { transform: translateY(-104%); }
.t-velvet.is-opening .vl-stage .op-names { opacity: 0; }

/* =====================================================================
   17. NINE ARCHES — hill country, bridge and blue train
   ===================================================================== */
.t-ninearch .cover { justify-content: flex-start; padding: clamp(48px, 16cqi, 70px) 20px 0; background: var(--skyB); }
.t-ninearch .na-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--skyA), var(--skyB) 58%); }
.t-ninearch .na-sun { position: absolute; left: 60%; top: 30%; width: 34cqi; max-width: 260px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #FFF8E2, rgba(255,240,200,.55) 42%, transparent 70%); z-index: -1; }
.t-ninearch .scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.t-ninearch .hill.h1 { fill: var(--h1); } .t-ninearch .hill.h2 { fill: var(--h2); } .t-ninearch .hill.h3 { fill: var(--h3); }
.t-ninearch .mist { fill: #fff; opacity: .5; filter: blur(10px); animation: na-mist 18s ease-in-out infinite alternate; }
@keyframes na-mist { to { transform: translateX(40px); opacity: .3; } }
.t-ninearch .tea { fill: none; stroke: var(--tea); stroke-width: 2.2; opacity: .55; }
.t-ninearch .bridge { fill: var(--stone); stroke: color-mix(in srgb, var(--stone) 70%, #000); stroke-width: 1; }
.t-ninearch .parapet { stroke: color-mix(in srgb, var(--stone) 60%, #000); stroke-width: 2; }
.t-ninearch .car { fill: var(--train); } .t-ninearch .stripe { fill: #F2C14E; } .t-ninearch .train .win { fill: #E8F0FF; } .t-ninearch .wheel { fill: #222; }
.t-ninearch .train { transform: translateX(-800px); }
.t-ninearch .inv-page .train { animation: na-train 18s linear .2s infinite; }
@keyframes na-train { 0% { transform: translateX(-260px); } 60% { transform: translateX(1150px); } 100% { transform: translateX(1150px); } }
.t-ninearch.is-card .train { transform: translateX(110px); }
.t-ninearch .steam circle { fill: #fff; opacity: .8; transform-box: fill-box; transform-origin: center; animation: na-steam 1.4s ease-out infinite; }
.t-ninearch .steam circle:nth-child(2) { animation-delay: .45s; } .t-ninearch .steam circle:nth-child(3) { animation-delay: .9s; }
@keyframes na-steam { from { transform: translate(0, 0) scale(.6); opacity: .9; } to { transform: translate(-18px, -26px) scale(1.8); opacity: 0; } }
.t-ninearch .c-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 560px; }
.t-ninearch .c-intro { font-family: var(--f-script); font-size: clamp(30px, 9cqi, 50px); color: var(--accent); line-height: 1.1; }
.t-ninearch .c-names { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(44px, 13.5cqi, 76px); line-height: 1; margin: 2cqi 0 3cqi; }
.t-ninearch .c-names .amp { font-size: .5em; color: var(--accent); }
.t-ninearch .c-date { font-size: clamp(14px, 4cqi, 18px); letter-spacing: .1em; }
.t-ninearch .c-venue { color: var(--muted); font-size: clamp(14px, 4cqi, 18px); }
.t-ninearch .sec:nth-of-type(odd) { background: var(--paper); }
.t-ninearch .sec-title { font-style: italic; }
.t-ninearch .ev { border-radius: 14px; border-top: 5px solid var(--accent); box-shadow: 0 18px 40px -30px rgba(0,0,0,.5); }
.t-ninearch .sec:nth-of-type(odd) .ev { background: var(--bg); }
.t-ninearch .ph-portrait, .t-ninearch .g-item { border-radius: 120px 120px 12px 12px; }
.t-ninearch .btn-solid { background: var(--accent); color: #fff; }
.t-ninearch .foot-names { font-family: var(--f-script); font-size: 44px; }
.t-ninearch .opener { background: linear-gradient(180deg, var(--skyA), var(--skyB)); }
.t-ninearch .op-ticket { display: flex; align-items: center; justify-content: center; }
.t-ninearch .ticket { position: relative; width: min(84vw, 330px); padding: 22px 22px 18px; background: #F3E3C3; color: #3A2A18; border-radius: 10px; transform: rotate(-4deg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); font-family: var(--f-body); text-align: center;
  background-image: repeating-linear-gradient(0deg, rgba(120,80,30,.05) 0 2px, transparent 2px 6px); border: 2px dashed rgba(58,42,24,.35); transition: transform 1.1s cubic-bezier(.6,0,.3,1) .45s, opacity .6s .9s; }
.t-ninearch .tk-line { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.t-ninearch .tk-route { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin: 12px 0 6px; font-family: var(--f-display); font-style: italic; font-size: 30px; line-height: 1.1; }
.t-ninearch .tk-route span { font-family: var(--f-body); font-style: normal; font-size: 13px; }
.t-ninearch .tk-class { font-size: 14px; color: var(--accent); font-weight: 500; }
.t-ninearch .tk-row { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 10px; border-top: 1px solid rgba(58,42,24,.3); font-size: 12px; letter-spacing: .06em; }
.t-ninearch .tk-hole { position: absolute; top: 16px; right: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--skyA); box-shadow: inset 0 2px 3px rgba(0,0,0,.35); transform: scale(0); transition: transform .18s cubic-bezier(.3,1.8,.5,1); }
.t-ninearch .opener .open-btn { position: absolute; bottom: 14vh; }
.t-ninearch.is-opening .tk-hole { transform: scale(1); }
.t-ninearch.is-opening .ticket { transform: translateY(80vh) rotate(24deg); opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .inv .rv { opacity: 1; translate: none; }
  .t-pahana .wick > * { transform: scale(1); }
  .t-ninearch .train { transform: translateX(110px); }
}
