/* Template "mandapam-dawn": full-screen scene + illustrated couple.
   A template is this token block plus the scene drawing; the content sections are shared. */
:root {
  --sky-a: #ffc978; --sky-b: #ffe2b0; --sky-c: #fff4dc;
  --maroon: #7a1626; --maroon-dk: #4f0b18; --ruby: #c1121f;
  --brass: #d9a23a; --brass-dk: #9a6a14; --leaf: #3a9a58; --leaf-dk: #23703c;
  --paper: #fff8ea; --paper-2: #f8e9c9; --ink: #2b1a12; --muted: #7a5f48; --line: rgba(43, 26, 18, .14);
  --floor: #e9c98f;
  --font-display: "Baloo Thambi 2", "Hind Madurai", system-ui, sans-serif;
  --font-body: "Manrope", "Hind Madurai", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, fieldset { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[lang="ta"] { font-family: "Hind Madurai", var(--font-body); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 10px; }
.nojs { padding: 40px 20px; text-align: center; }

.btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 700 1.05rem/1.2 var(--font-display); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(180deg, #f7cf72, #dc9c2c); color: #3a1d00; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 26px -12px rgba(122, 60, 0, .8); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-maroon { background: var(--maroon); color: #fff3d6; }
.btn-line { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- cover: temple doors ---------- */
.doors { position: fixed; inset: 0; z-index: 50; perspective: 1500px; display: grid; place-items: center; padding: 20px; }
.door { position: absolute; top: 0; bottom: 0; width: 50.2%; transition: transform 1.8s var(--ease-io) .3s; box-shadow: inset 0 0 60px rgba(0, 0, 0, .45);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 9px), radial-gradient(circle at 50% 50%, rgba(255, 200, 120, .16) 0 2px, transparent 3px) 0 0 / 34px 34px, linear-gradient(90deg, #5b2a12, #8a4a20 45%, #6a3418); }
.door-l { left: 0; transform-origin: 0 50%; border-right: 3px solid #3a1808; }
.door-r { right: 0; transform-origin: 100% 50%; border-left: 3px solid #3a1808; }
.door i { position: absolute; left: 13%; right: 13%; height: 25%; border-radius: 10px; border: 2px solid rgba(40, 14, 0, .55); box-shadow: inset 0 0 0 6px rgba(255, 214, 140, .09), inset 0 12px 26px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 220, 160, .18); }
.door i:nth-child(1) { top: 8%; } .door i:nth-child(2) { top: 37.500%; } .door i:nth-child(3) { top: 67%; }
.door b { position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; border: 7px solid var(--brass); box-shadow: 0 4px 8px rgba(0, 0, 0, .5), inset 0 2px 2px rgba(0, 0, 0, .3); }
.door-l b { right: 16px; } .door-r b { left: 16px; }
.plaque { position: relative; z-index: 2; width: min(330px, 86vw); text-align: center; display: grid; gap: 10px; justify-items: center; padding: 30px 22px 26px; border-radius: 26px; background: var(--paper); border: 3px solid var(--brass); box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--brass-dk), 0 30px 60px -20px rgba(0, 0, 0, .7); transition: opacity .5s, transform .6s var(--ease); }
.plaque-top { color: var(--ruby); font-weight: 600; }
.plaque-names { font: 800 2.3rem/1.1 var(--font-display); color: var(--maroon); }
.plaque-to { color: var(--muted); font-size: .98rem; margin-bottom: 6px; }
.doors.is-opening .door-l { transform: rotateY(-108deg); }
.doors.is-opening .door-r { transform: rotateY(108deg); }
.doors.is-opening .plaque { opacity: 0; transform: scale(.9) translateY(20px); }
.doors.is-opening { pointer-events: none; }

/* ---------- fixed controls ---------- */
.langbar { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 60; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 248, 234, .92); border: 1px solid var(--line); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .5); }
.langbar button { border: 0; background: transparent; cursor: pointer; padding: 7px 13px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.langbar button[aria-pressed="true"] { background: var(--maroon); color: #fff3d6; }
.studio { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 12px; z-index: 45; display: grid; gap: 8px; justify-items: start; }
.studio-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255, 248, 234, .92); border-radius: 999px; padding: 9px 14px; cursor: pointer; font-size: .84rem; font-weight: 700; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .5); }
.studio-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--maroon); stroke-width: 1.800; }
.studio-toggle circle { fill: var(--maroon); stroke: none; }
.studio-panel { max-height: calc(100svh - 76px); overflow-y: auto; width: min(310px, calc(100vw - 24px)); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 16px; display: grid; gap: 12px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); }
.studio-note { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.studio-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; background: var(--c); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--maroon); }
.studio-row.wide { grid-template-columns: 1fr; gap: 7px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.chips button { display: grid; justify-items: center; gap: 2px; padding: 7px 2px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); cursor: pointer; font-size: .7rem; font-weight: 700; line-height: 1.2; }
.chips canvas { width: 30px; height: 30px; }
.chips button[aria-pressed="true"] { border-color: var(--maroon); box-shadow: 0 0 0 2px var(--maroon); background: #fff; }
.studio-rows { display: grid; gap: 12px; }
.mini .specs { display: none; }
.chips svg { width: 38px; height: 34px; cursor: pointer; }
.seg { display: flex; gap: 6px; }
.seg button, .pick { flex: 1; padding: 9px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); cursor: pointer; font-size: .8rem; font-weight: 700; line-height: 1.2; }
.seg button[aria-pressed="true"] { border-color: var(--maroon); box-shadow: 0 0 0 2px var(--maroon); background: #fff; }
.photo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-card { display: grid; gap: 6px; align-content: start; }
.tune { display: grid; gap: 2px; }
.tune label { display: grid; font-size: .7rem; font-weight: 600; color: var(--muted); }
.tune input { width: 100%; accent-color: var(--maroon); }
.studio-row.wide .studio-note { font-weight: 500; }
.studio-row.toggles { grid-template-columns: 1fr; display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; }
.studio-row.toggles input { accent-color: var(--maroon); width: 16px; height: 16px; vertical-align: -2px; }

/* ---------- stage ---------- */
.stage { position: relative; min-height: max(100svh, 720px); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--sky-a), var(--sky-b) 42%, var(--sky-c) 78%); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 78px; background: var(--floor); z-index: 0; }
.scene { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 67%; z-index: 1; overflow: visible; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.stage-text { position: absolute; top: max(74px, calc(env(safe-area-inset-top) + 62px)); left: 0; right: 0; z-index: 3; text-align: center; padding-inline: 18px; display: grid; gap: 4px; justify-items: center; }
.invocation { color: var(--ruby); font-weight: 600; font-size: 1.05rem; }
.names { font: 800 clamp(2.700rem, 12.500vw, 4.400rem)/1.05 var(--font-display); color: var(--maroon); letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 0 rgba(255, 255, 255, .5); }
.names:focus { outline: none; }
.names em { font-style: normal; color: var(--brass-dk); font-size: .7em; margin-inline: .12em; }
.when { display: grid; gap: 0; margin-top: 2px; }
.when b { font: 700 1.2rem/1.3 var(--font-display); }
.when span { font-size: .95rem; color: var(--muted); }
.stage-actions { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 5; display: grid; justify-items: center; gap: 4px; }
.bless { padding: 12px 22px; font-size: 1rem; }
.bless-count { font-size: .8rem; font-weight: 700; color: var(--maroon-dk); min-height: 1.2em; }
.rise { opacity: 0; transform: translateY(20px); }
.is-open .rise { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--n, 0) * 160ms + 900ms); }

/* scene drawing */
.px { transition: transform .5s var(--ease); }
.sun { fill: #fff0c2; opacity: .6; } .sun-2 { fill: #fffaf0; opacity: .85; }
.banana rect { fill: #86ad62; } .leaf { fill: var(--leaf); } .leaf-2 { fill: var(--leaf-dk); }
.floor { fill: var(--floor); } .step { fill: #c99a5c; }
.pillar { fill: #dcaa4c; } .band rect { fill: var(--maroon); }
.canopy { fill: var(--maroon); } .canopy-edge { fill: none; stroke: var(--brass); stroke-width: 7; stroke-linecap: round; }
.brass { fill: var(--brass); }
.string { fill: none; stroke-linecap: round; stroke-width: 9; stroke-dasharray: .1 13; stroke: #f5a81c; transform-box: fill-box; transform-origin: 50% 0; animation: sway 5s var(--ease-io) infinite alternate; animation-delay: var(--d, 0s); }
.string.alt { stroke: #fff3d6; }
.tassel { fill: var(--ruby); }
.mango { fill: var(--leaf); } .mango.alt { fill: var(--leaf-dk); }
@keyframes sway { from { transform: rotate(-1.600deg); } to { transform: rotate(1.600deg); } }
.flame { fill: #ffb21f; transform-box: fill-box; transform-origin: 50% 100%; animation: flick 1.300s ease-in-out infinite alternate; filter: drop-shadow(0 0 7px #ffb21f); }
.lamp:last-child .flame { animation-delay: .4s; }
@keyframes flick { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.88, 1.12) rotate(3deg); } }

/* the couple: one drawing, many looks */
.couple { --skin-g: #b97a4f; --skin-b: #c98a5e; --hair: #1d1410; --saree: #b3123a; --blouse: #1f6f4a; --shirt: #f7ecd0; cursor: pointer; outline-offset: 6px; }
.couple:focus { outline: none; }
.shadow { fill: rgba(70, 30, 0, .2); }
.skin-g { fill: var(--skin-g); } .skin-b { fill: var(--skin-b); } .hair { fill: var(--hair); }
.veshti { fill: #fdf6e4; } .zari { fill: var(--brass); }
.zari-line { fill: none; stroke: var(--brass); stroke-width: 5; stroke-linecap: round; }
.chutti { stroke-width: 3; }
.shirt { fill: var(--shirt); } .anga { fill: #fffaf0; }
.saree { fill: var(--saree); } .blouse { fill: var(--blouse); }
.pleat { fill: none; stroke: color-mix(in srgb, var(--saree) 68%, #000); stroke-width: 3; stroke-linecap: round; }
.arm { fill: none; stroke-width: 18; stroke-linecap: round; }
.shirt-stroke { stroke: color-mix(in srgb, var(--shirt) 86%, #6b4a1a); }
.skin-b-stroke { stroke: var(--skin-b); stroke-width: 15; }
.cap { fill: none; stroke-width: 20; stroke-linecap: round; } .blouse-stroke { stroke: var(--blouse); }
.bangle { fill: none; stroke: var(--brass); stroke-width: 4.500; stroke-linecap: round; } .bangle-2 { stroke: var(--ruby); }
.mala-rope { fill: none; stroke: #3f8f4f; stroke-width: 4; }
.mala { fill: none; stroke-linecap: round; stroke-width: 13; stroke-dasharray: .1 18; }
.m1 { stroke: #d1304a; } .m2 { stroke: #fff3d6; stroke-dashoffset: 9; }
.necklace { fill: none; stroke: var(--brass); stroke-width: 4; stroke-linecap: round; }
.plait { fill: none; stroke: var(--hair); stroke-width: 15; stroke-linecap: round; }
.malli { fill: none; stroke: #fffaf0; stroke-width: 7; stroke-linecap: round; stroke-dasharray: .1 10; }
.brow, .lash { fill: none; stroke: var(--hair); stroke-width: 3; stroke-linecap: round; } .lash { stroke-width: 2.200; }
.eyes ellipse { fill: #1d1410; }
.eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5.200s infinite; }
.bride .eyes { animation-delay: 1.700s; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96.500% { transform: scaleY(.08); } }
.cheek { fill: #e0566b; opacity: .3; }
.tache { fill: var(--hair); }
.smile { fill: none; stroke: #5a2418; stroke-width: 3.200; stroke-linecap: round; }
.specs { fill: rgba(255, 255, 255, .16); stroke: #2b2b2b; stroke-width: 2.600; stroke-linecap: round; }
.ruby { fill: var(--ruby); stroke: var(--brass); stroke-width: 1.500; } .bindi { fill: var(--ruby); }
.glint { fill: #fff; }
/* suit */
.couple { --suit: #23324f; }
.suit { fill: var(--suit); } .suit-dk { fill: color-mix(in srgb, var(--suit) 80%, #000); } .suit-stroke { stroke: var(--suit); }
.lapel { fill: color-mix(in srgb, var(--suit) 68%, #000); } .tie { fill: var(--ruby); } .shoe { fill: #1d1410; } .btn { fill: var(--brass); }
/* Tanjore-inspired style */
.tj-panel { fill: #14503c; } .tj-band { fill: none; stroke: var(--brass); stroke-width: 18; }
.tj-line { fill: none; stroke: #f8e3a0; stroke-width: 2; }
.tj-gem { fill: none; stroke-linecap: round; stroke-width: 8; stroke-dasharray: .1 30; } .tj-gem.r { stroke: #c1121f; } .tj-gem.g { stroke: #2fae76; stroke-dashoffset: 15; }
.tj-plinth { fill: var(--brass); }
.style-tanjore .veshti, .style-tanjore .shirt, .style-tanjore .anga, .style-tanjore .saree, .style-tanjore .blouse { stroke: var(--brass); stroke-width: 2.500; stroke-linejoin: round; }
.butta { fill: #f8e3a0; }
.eye-w { fill: #fffdf6; stroke: var(--hair); stroke-width: 2.400; stroke-linejoin: round; }
.lips { fill: #b3123a; }
.gold-line { fill: none; stroke: var(--brass); stroke-width: 4; stroke-linecap: round; }
.nose-ring { fill: none; stroke: var(--brass); stroke-width: 2; }
/* photo faces */
.sticker { fill: #fff; stroke: var(--brass); stroke-width: 3; }
.ph-empty { fill: var(--paper-2); stroke: var(--brass-dk); stroke-width: 3; stroke-dasharray: 9 8; }
.ph-plus { fill: none; stroke: var(--brass-dk); stroke-width: 6; stroke-linecap: round; }
.ph-text { font: 700 17px var(--font-body); fill: var(--brass-dk); text-anchor: middle; }
.ph-dot { fill: var(--brass-dk); opacity: .55; }
.style-photo .head { animation: bobble 2.400s ease-in-out infinite alternate; }
.style-photo .bride .head { animation-delay: -1.200s; }
@keyframes bobble { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.is-off { display: none; }
.head { transform-box: fill-box; transform-origin: 50% 92%; transition: transform .7s var(--ease); }
.person { transform-box: fill-box; transform-origin: 50% 100%; }
.couple.is-happy .groom .head { transform: rotate(6deg); }
.couple.is-happy .bride .head { transform: rotate(-6deg); }
.couple.is-happy .person { animation: hop .75s var(--ease); }
.couple.is-happy .bride { animation-delay: .09s; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-16px) scale(.98, 1.03); } 62% { transform: translateY(0) scale(1.03, .97); } }
@media (hover: hover) { .couple:hover .groom .head { transform: rotate(4deg); } .couple:hover .bride .head { transform: rotate(-4deg); } }

/* ---------- content ---------- */
.content { background: var(--paper); position: relative; z-index: 2; }
.sec { padding: 60px 22px; }
.in { max-width: 600px; margin-inline: auto; }
.sec-title { text-align: center; font: 700 2rem/1.15 var(--font-display); color: var(--maroon); margin-bottom: 26px; }
.sec-title::after { content: "• • •"; display: block; font-size: .8rem; letter-spacing: .5em; color: var(--brass); margin-top: 4px; padding-left: .5em; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.greet { text-align: center; }
.greet .in { display: grid; gap: 16px; }
.dear { font: 700 1.550rem/1.3 var(--font-display); color: var(--maroon); }
.msg { color: var(--muted); max-width: 36ch; margin-inline: auto; }
.hosts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; margin-top: 12px; padding: 20px 14px; border-radius: var(--r); background: var(--paper-2); }
.hosts .amp { font: 800 1.600rem var(--font-display); color: var(--brass-dk); padding-top: 20px; }
.host { display: grid; gap: 2px; }
.host small { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-dk); }
.host small[lang="ta"] { letter-spacing: 0; font-size: .86rem; }
.host b { font: 700 1.550rem/1.2 var(--font-display); }
.host span { font-size: .86rem; color: var(--muted); line-height: 1.45; }

.count { background: var(--maroon); color: #fff3d6; text-align: center; background-image: radial-gradient(rgba(255, 220, 150, .12) 1.500px, transparent 2px); background-size: 22px 22px; }
.count .sec-title { color: #ffd98a; font-size: 1.500rem; margin-bottom: 18px; } .count .sec-title::after { display: none; }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.clock div { border-radius: 18px; padding: 14px 4px 10px; display: grid; background: rgba(255, 243, 214, .1); border: 1px solid rgba(255, 217, 138, .35); }
.clock b { font: 700 2.300rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; color: #ffd98a; }
.clock small { font-size: .74rem; opacity: .85; }

.story { background: var(--paper-2); padding-inline: 0; }
.story-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 22px 18px; scrollbar-width: none; }
.story-strip::-webkit-scrollbar { display: none; }
.story-card { flex: none; width: 70%; max-width: 270px; scroll-snap-align: center; background: var(--paper); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; border: 1px solid var(--line); position: relative; }
.story-card::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 5px rgba(217, 162, 58, .25); }
.story-card b { font: 800 2rem/1 var(--font-display); color: var(--maroon); }
.story-card span { color: var(--muted); font-size: .96rem; }

.fn-list { display: grid; gap: 14px; }
.fn { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; }
.fn.main { border: 2px solid var(--brass); background: linear-gradient(180deg, #fffdf5, #fff4d8); }
.fn-when { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: .86rem; color: var(--muted); }
.fn-when b { color: var(--maroon); }
.fn h3 { font: 700 1.500rem/1.2 var(--font-display); }
.fn p { font-size: .95rem; color: var(--muted); }
.fn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fn-actions .btn { padding: 10px 16px; font-size: .92rem; }

.gallery { background: var(--paper-2); overflow: hidden; }
.stack { position: relative; height: 400px; cursor: pointer; }
.pol { position: absolute; inset: 0; margin: auto; width: min(68%, 280px); height: max-content; background: #fff; padding: 12px 12px 14px; border-radius: 8px; box-shadow: 0 18px 34px -16px rgba(60, 20, 0, .55); display: grid; gap: 10px; transition: transform .6s var(--ease); border: 0; text-align: center; font-size: .92rem; color: var(--muted); }
.pol .ph, .pol img { width: 100%; aspect-ratio: 1; border-radius: 4px; display: block; object-fit: cover; }
.pol[data-pos="0"] { transform: rotate(-3deg); z-index: 4; }
.pol[data-pos="1"] { transform: rotate(5deg) translate(16px, 6px) scale(.97); z-index: 3; }
.pol[data-pos="2"] { transform: rotate(-8deg) translate(-18px, 10px) scale(.94); z-index: 2; }
.pol[data-pos="3"] { transform: rotate(9deg) translate(8px, 16px) scale(.91); z-index: 1; }
.pol.is-leaving { transform: translateX(118%) rotate(22deg); }
.ph { position: relative; overflow: hidden; }
.ph::after { content: ""; position: absolute; left: 50%; bottom: -8%; width: 60%; aspect-ratio: 1; border-radius: 50% 50% 0 0; transform: translateX(-50%); background: rgba(255, 255, 255, .22); box-shadow: 0 -72px 0 -30px rgba(255, 255, 255, .26); }
.ph.t1 { background: linear-gradient(160deg, #f0b860, #b05a1c); } .ph.t2 { background: linear-gradient(160deg, #86c2a8, #1f6a52); }
.ph.t3 { background: linear-gradient(160deg, #eaa3a0, #8f2433); } .ph.t4 { background: linear-gradient(160deg, #e0cf9f, #8a6a2a); }
.hint { text-align: center; font-size: .86rem; color: var(--muted); margin-top: 4px; }

.rsvp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; }
.rsvp-card form { display: grid; gap: 18px; }
.rsvp-sub { text-align: center; color: var(--muted); font-size: .95rem; margin: -14px 0 20px; }
.field { display: grid; gap: 6px; }
.field > label, .field legend { font-size: .86rem; font-weight: 700; padding: 0; }
.field input[type="text"], .field textarea { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(217, 162, 58, .25); }
.field textarea { min-height: 84px; resize: vertical; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.choices { display: grid; gap: 8px; margin-top: 6px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span { display: block; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.choices input:checked + span { background: var(--maroon); border-color: var(--maroon); color: #fff3d6; }
.choices input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 3px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; justify-self: start; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; font-size: 1.200rem; font-weight: 700; }
.stepper output { min-width: 44px; text-align: center; font: 700 1.300rem var(--font-display); font-variant-numeric: tabular-nums; }
.err { color: #b3261e; font-size: .84rem; font-weight: 600; }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; }
.done h3 { font: 800 1.900rem var(--font-display); color: var(--maroon); }
.done p { color: var(--muted); font-size: .95rem; max-width: 30ch; }

.foot { text-align: center; padding: 56px 22px max(40px, env(safe-area-inset-bottom)); background: var(--maroon); color: #fff3d6; }
.foot .in { display: grid; gap: 16px; justify-items: center; }
.signoff { font: 700 1.450rem/1.35 var(--font-display); max-width: 22ch; text-wrap: balance; color: #ffd98a; }
.contacts { display: grid; gap: 4px; font-size: .92rem; opacity: .9; }
.foot .btn-line { border-color: rgba(255, 243, 214, .4); color: #fff3d6; padding: 10px 18px; font-size: .92rem; }
.made { font-size: .76rem; opacity: .65; }

/* ---------- laptop: the scene stays on the left, the story scrolls on the right ---------- */
@media (min-width: 980px) {
  .layout { display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); }
  .stage { position: sticky; top: 0; height: 100vh; min-height: 0; }
  .stage-text { top: 8vh; }
  .names { font-size: clamp(3rem, 5.200vw, 4.800rem); }
  .sec { padding: 84px 40px; }
  .story { padding-inline: 40px; }
  .story-strip { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; padding: 0; max-width: 600px; margin-inline: auto; }
  .story-card { width: auto; max-width: none; }
  .fn-list { grid-template-columns: 1fr; }
  .langbar { right: 20px; top: 16px; } .studio { left: 20px; top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
  .fx { display: none; }
}
