/* =========================================================
   PAGE « ATELIER PAPIER » — complète site.css
   Un registre plus intime : compositions centrées, papier
   à bord frangé, enveloppe, cachet de cire, guirlande, étiquettes.
   ========================================================= */

.deckle { clip-path: polygon(0% 0.41%,3.85% 0.5%,7.69% 0.83%,11.54% 0.42%,15.38% 0.46%,19.23% 0.53%,23.08% 0.17%,26.92% 0.46%,30.77% 0.57%,34.62% 0.71%,38.46% 0.08%,42.31% 0.27%,46.15% 0.08%,50% 0.73%,53.85% 0.62%,57.69% 0.04%,61.54% 0.88%,65.38% 0.87%,69.23% 0.59%,73.08% 0.55%,76.92% 0.14%,80.77% 0.01%,84.62% 0.48%,88.46% 0.05%,92.31% 0.17%,96.15% 0.22%,99.97% 0%,99.58% 5.56%,99.6% 11.11%,99.24% 16.67%,99.53% 22.22%,99.42% 27.78%,99.55% 33.33%,99.4% 38.89%,99.59% 44.44%,99.75% 50%,99.1% 55.56%,99.1% 61.11%,99.24% 66.67%,99.36% 72.22%,99.72% 77.78%,99.79% 83.33%,99.74% 88.89%,99.94% 94.44%,100% 99.31%,96.15% 99.64%,92.31% 99.24%,88.46% 99.65%,84.62% 99.14%,80.77% 99.24%,76.92% 100%,73.08% 99.81%,69.23% 99.18%,65.38% 99.58%,61.54% 99.12%,57.69% 99.64%,53.85% 99.93%,50% 99.43%,46.15% 99.3%,42.31% 99.76%,38.46% 99.92%,34.62% 99.7%,30.77% 99.13%,26.92% 99.32%,23.08% 99.89%,19.23% 99.78%,15.38% 99.91%,11.54% 99.95%,7.69% 99.28%,3.85% 99.84%,0.5% 100%,0.4% 94.44%,0.17% 88.89%,0.66% 83.33%,0.12% 77.78%,0.58% 72.22%,0.1% 66.67%,0.38% 61.11%,0.19% 55.56%,0.24% 50%,0.87% 44.44%,0.72% 38.89%,0.27% 33.33%,0.8% 27.78%,0.19% 22.22%,0.35% 16.67%,0.77% 11.11%,0.58% 5.56%); }
.seal-b { fill: #6A3A8E; }
.scallop { position: absolute; left: 0; right: 0; height: 14px; background: radial-gradient(circle at 12px 14px, #EADCF6 11px, transparent 11.5px) 0 0 / 24px 14px repeat-x; }
.scallop-top { top: -13px; }
.scallop-bottom { bottom: -13px; transform: scaleY(-1); }

/* ---------- Hero centré ---------- */
.ah { padding-top: clamp(28px,3.4vw,48px); padding-bottom: clamp(56px,6vw,96px); text-align: center; }
.ah .kicker { justify-content: center; }
.ah .display { max-width: 15ch; margin: 0 auto; }
.ah .lede { max-width: 58ch; margin-left: auto; margin-right: auto; }
.ah .cta-row { justify-content: center; }

.table { position: relative; width: 100%; max-width: 1120px; margin: clamp(36px,4.6vw,64px) auto 0; aspect-ratio: 2.1 / 1; container-type: inline-size; text-align: left; }
.t-mat { position: absolute; left: 3%; right: 3%; top: 10%; bottom: 0; background-color: var(--lilac-2); background-image: url(../images/grain.png); background-size: 180px; }
.t-tape { position: absolute; z-index: 1; height: 2.4cqw; }
.t-tape-a { left: 1.4cqw; top: 8%; width: 9cqw; transform: rotate(-32deg); }
.t-tape-b { right: 1.4cqw; bottom: 3%; width: 9cqw; transform: rotate(-28deg); }
.env { position: absolute; left: 28cqw; bottom: 2.5cqw; width: 44cqw; height: auto; overflow: visible; --r: 0deg; }
.env-back { z-index: 1; filter: drop-shadow(0 24px 26px rgba(60,25,85,.32)); }
.env-front { z-index: 5; }
.env-flap { fill: #E6D2F5; }
.env-in { fill: #C9A6E2; }
.env-pocket { fill: #ECDBF8; }
.env-edge { fill: none; stroke: rgba(60,25,85,.22); stroke-width: 1.2; }
.lc { position: absolute; z-index: 2; width: 16cqw; aspect-ratio: 5 / 7; container-type: inline-size; box-shadow: 0 1px 1px rgba(60,25,85,.1), 0 12px 22px -12px rgba(60,25,85,.5); transform: rotate(var(--r)); transition: transform .7s var(--ease); }
.lc-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.5cqw; padding: 12cqw 9cqw; text-align: center; }
.lc-frame { position: absolute; inset: 5cqw; border: 1px solid rgba(60,25,85,.4); }
.lc-k { font: 500 max(6px,4.6cqw)/1.45 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.lc-names { font-family: var(--serif); font-style: italic; font-weight: 340; font-size: 12cqw; line-height: 1.02; font-variation-settings: "SOFT" 100; }
.lc-hand { font-family: var(--hand); font-size: 17cqw; font-weight: 600; line-height: 1; }
.lc-big { font-family: var(--serif); font-size: 15cqw; line-height: 1; letter-spacing: -.02em; font-variation-settings: "SOFT" 100; }
.lc-std { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 19cqw; line-height: .92; color: var(--yellow); font-variation-settings: "SOFT" 100; }
.lc-sprig { width: 32cqw; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.lc-star { width: 14cqw; height: 14cqw; }
.lc-1 { left: 32.5cqw; bottom: 12cqw; --r: -14deg; background: var(--card); color: var(--ink); }
.lc-2 { left: 42cqw; bottom: 10.5cqw; --r: -2deg; background: var(--lilac); color: var(--ink); z-index: 3; }
.lc-3 { left: 51.5cqw; bottom: 12cqw; --r: 12deg; background: var(--ink); color: var(--paper); z-index: 4; }
.lc-3 .lc-frame { border-color: rgba(250,245,236,.35); }
.table:hover .lc-1 { transform: translateY(-2.4cqw) rotate(-17deg); }
.table:hover .lc-2 { transform: translateY(-3.4cqw) rotate(-1deg); }
.table:hover .lc-3 { transform: translateY(-2.4cqw) rotate(15deg); }
.a-seal { position: absolute; z-index: 6; left: 46.5cqw; bottom: 8cqw; width: 7cqw; height: auto; filter: drop-shadow(0 6px 8px rgba(42,16,61,.4)); --r: -8deg; transform: rotate(var(--r)); }
.swatches { position: absolute; left: 8cqw; bottom: 3.5cqw; z-index: 3; width: 9cqw; height: 22cqw; }
.chip { position: absolute; left: 0; bottom: 0; width: 9cqw; height: 19cqw; overflow: hidden; background: var(--card); box-shadow: 0 10px 18px -10px rgba(60,25,85,.5); container-type: inline-size; transform-origin: 50% 92%; transform: rotate(var(--r)); transition: transform .6s var(--ease); }
.chip i { display: block; height: 66%; }
.chip span { display: block; padding: 7cqw 9cqw; font: 500 max(6px,8.5cqw)/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.chip b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15cqw; letter-spacing: 0; text-transform: none; }
.chip-1 { --r: -24deg; }
.chip-1 i { background: var(--lilac); }
.chip-2 { --r: -10deg; }
.chip-2 i { background: var(--yellow); }
.chip-3 { --r: 4deg; }
.chip-3 i { background: var(--ink); }
.swatches:hover .chip-1 { transform: rotate(-34deg); }
.swatches:hover .chip-2 { transform: rotate(-14deg); }
.swatches:hover .chip-3 { transform: rotate(8deg); }
.a-note { position: absolute; right: 5cqw; top: 13%; z-index: 6; width: 21cqw; font-family: var(--hand); font-size: 2.5cqw; font-weight: 500; line-height: 1.05; transform: rotate(-5deg); }
.a-note svg { display: block; width: 9cqw; height: auto; margin: .6cqw 0 0 2cqw; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-sprig { position: absolute; right: 8cqw; bottom: 3cqw; z-index: 3; width: 16cqw; height: auto; transform: rotate(-14deg); }
.a-sprig .stem { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; }
.a-sprig .leaf { fill: var(--lilac-3); stroke: var(--ink-2); stroke-width: 1; }

/* ---------- L'atelier ---------- */
.a-intro { padding-top: clamp(72px,8vw,120px); padding-bottom: clamp(72px,8vw,120px); }
.ai-grid { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,7fr); gap: clamp(40px,6vw,110px); align-items: start; }
.ai-photo { position: relative; width: 100%; max-width: 420px; margin-top: 20px; padding: 14px 14px 0; background: var(--card); box-shadow: 0 1px 1px rgba(60,25,85,.08), 0 34px 50px -30px rgba(60,25,85,.55); transform: rotate(-3deg); transition: transform .5s var(--ease); }
.ai-photo:hover { transform: rotate(-1deg) translateY(-6px); }
.ai-photo .clip { top: -26px; left: 22%; width: 22px; }
.ai-ph { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; background-color: var(--lilac-3); background-image: url(../images/grain.png); background-size: 150px; }
.ai-ph svg { width: 54px; height: 54px; color: var(--ink); stroke-width: 1.3; }
.ai-tag { position: absolute; left: 14px; top: 14px; max-width: 80%; padding: 6px 10px; background: var(--card); font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ai-photo figcaption { padding: 14px 4px 18px; font-family: var(--hand); font-size: 25px; font-weight: 500; line-height: 1.1; }
.ai-quote { position: relative; margin: 30px 0 0; padding-left: 1.1em; font-family: var(--serif); font-style: italic; font-weight: 340; font-size: clamp(24px,2.3vw,32px); line-height: 1.25; letter-spacing: -.01em; font-variation-settings: "SOFT" 100; }
.ai-quote::before { content: "«"; position: absolute; left: -.05em; top: -.18em; font-size: 2.2em; line-height: 1; color: var(--lilac); }
.ai-cols { columns: 2 250px; column-gap: 40px; margin-top: 32px; font-size: 14.5px; color: var(--ink-2); }
.ai-cols p { margin-bottom: 1em; break-inside: avoid; }
.ai-cols .drop::first-letter { float: left; padding: .06em .12em 0 0; font-family: var(--serif); font-size: 3.7em; font-style: italic; line-height: .8; color: var(--ink); }
.ai-sign { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.ai-sign .sig { display: inline-block; font-family: var(--hand); font-size: 54px; font-weight: 600; line-height: 1; transform: rotate(-4deg); }
.ai-sign p { padding-left: 18px; border-left: 1px solid currentColor; font-size: 11px; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Les créations ---------- */
.occ-sec { position: relative; z-index: 2; margin-top: 14px; margin-bottom: 14px; padding-top: clamp(64px,7vw,100px); padding-bottom: clamp(72px,8vw,110px); background-color: var(--lilac-2); background-image: url(../images/grain.png); background-size: 180px; }
.c-head { max-width: 760px; margin: 0 auto clamp(40px,5vw,64px); text-align: center; }
.c-head p:not(.eyebrow) { max-width: 52ch; margin: 22px auto 0; font-size: 15px; color: var(--ink-2); }
.occ-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(22px,3vw,44px); align-items: stretch; }
.occ { filter: drop-shadow(0 22px 22px rgba(60,25,85,.2)); transition: transform .5s var(--ease); }
.occ:nth-child(1) { transform: rotate(-1.4deg); }
.occ:nth-child(2) { transform: translateY(-14px) rotate(.8deg); }
.occ:nth-child(3) { transform: rotate(1.6deg); }
.occ:hover { transform: translateY(-20px) rotate(0deg); }
.occ-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; height: 100%; padding: 50px 34px 44px; background: var(--card); text-align: center; }
.occ-frame { position: absolute; inset: 14px; border: 1px solid rgba(60,25,85,.35); pointer-events: none; }
.occ:nth-child(2) .occ-card { background: var(--lilac); }
.occ:nth-child(3) .occ-card { background: var(--ink); color: var(--paper); }
.occ:nth-child(3) .occ-frame { border-color: rgba(250,245,236,.3); }
.occ-n { font: 500 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.occ-ill { width: 76px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.occ-t { font-family: var(--serif); font-style: italic; font-weight: 340; font-size: clamp(34px,3.4vw,48px); line-height: 1; letter-spacing: -.02em; font-variation-settings: "SOFT" 100; }
.occ-list { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 6px 0 10px; font: 500 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.occ-list li + li::before { content: "✦"; display: block; margin: 5px 0; font-size: 8px; opacity: .55; }
.occ-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-bottom: 1.5px solid currentColor; }
.occ-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.occ:hover .occ-link svg { transform: translateX(4px); }

/* ---------- Guirlande (déroulé) ---------- */
.garland-sec { padding-top: clamp(80px,8vw,124px); padding-bottom: clamp(72px,8vw,120px); }
.garland { position: relative; padding-top: 8px; }
.g-string { position: absolute; left: 0; top: 0; width: 100%; height: 80px; overflow: visible; }
.g-string path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.g-list { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(16px,2vw,28px); }
.g { position: relative; padding-top: 24px; }
.g:nth-child(1), .g:nth-child(5) { margin-top: 18px; }
.g:nth-child(2), .g:nth-child(4) { margin-top: 38px; }
.g:nth-child(3) { margin-top: 44px; }
.pin { position: absolute; left: 50%; top: 0; z-index: 2; width: 12px; height: 34px; margin-left: -6px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--yellow); }
.pin::after { content: ""; position: absolute; left: 1px; right: 1px; top: 15px; height: 1.5px; background: var(--ink); }
.g-card { position: relative; padding: 30px 22px 26px; background: var(--card); box-shadow: 0 1px 1px rgba(60,25,85,.08), 0 24px 34px -24px rgba(60,25,85,.5); transform-origin: 50% -14px; transform: rotate(var(--r)); transition: transform .6s var(--ease); }
.g:nth-child(1) .g-card { --r: -3deg; }
.g:nth-child(2) .g-card { --r: 2deg; background: var(--yellow); }
.g:nth-child(3) .g-card { --r: -1deg; background: var(--lilac); }
.g:nth-child(4) .g-card { --r: 3deg; }
.g:nth-child(5) .g-card { --r: -2deg; background: var(--paper-2); }
.g:hover .g-card { transform: rotate(0deg); }
.g-n { display: block; margin-bottom: 8px; font-family: var(--hand); font-size: 40px; font-weight: 600; line-height: 1; }
.g-card h3 { margin-bottom: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(21px,1.8vw,25px); line-height: 1.1; letter-spacing: -.015em; font-variation-settings: "SOFT" 100; }
.g-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Galerie ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(36px,4vw,56px) clamp(24px,3vw,44px); align-items: start; padding-top: 16px; }
.gal-grid .wcard:nth-child(1) { grid-column: 1 / 3; }
.gal-grid .wcard:nth-child(2) { grid-column: 3 / 5; margin-top: 48px; }
.gal-grid .wcard:nth-child(3) { grid-column: 5 / 7; }
.gal-grid .wcard:nth-child(4) { grid-column: 2 / 4; }
.gal-grid .wcard:nth-child(5) { grid-column: 4 / 6; margin-top: -24px; }
.gal-grid .sq .wph { aspect-ratio: 1 / 1; }
.gal-foot { display: flex; justify-content: center; margin-top: clamp(44px,5vw,72px); }

/* ---------- Bon à savoir : étiquettes ---------- */
.tags-sec { padding-top: clamp(80px,8vw,124px); padding-bottom: clamp(72px,8vw,120px); }
.tg-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(20px,2.6vw,36px); align-items: start; }
.tg { position: relative; padding-top: 44px; filter: drop-shadow(0 18px 18px rgba(60,25,85,.18)); transform: rotate(var(--r)); transform-origin: 50% 0; transition: transform .6s var(--ease); }
.tg:nth-child(1) { --r: -2.5deg; }
.tg:nth-child(2) { --r: 2deg; margin-top: 22px; }
.tg:nth-child(3) { --r: -1deg; margin-top: 8px; }
.tg:nth-child(4) { --r: 3deg; margin-top: 28px; }
.tg:hover { transform: rotate(0deg); }
.tg-string { position: absolute; left: 50%; top: 0; width: 60px; height: 52px; margin-left: -30px; overflow: visible; fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; }
.tg-card { position: relative; padding: 46px 24px 28px; background: var(--card); text-align: center; clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); }
.tg:nth-child(2) .tg-card { background: var(--yellow); }
.tg:nth-child(3) .tg-card { background: var(--lilac-2); }
.tg:nth-child(4) .tg-card { background: var(--paper-2); }
.tg-hole { position: absolute; left: 50%; top: 14px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgba(60,25,85,.25); }
.tg-k { margin-bottom: 10px; font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.tg-v { font-family: var(--serif); font-size: clamp(18px,1.5vw,21px); line-height: 1.3; letter-spacing: -.01em; font-variation-settings: "SOFT" 100; }

/* ---------- Carton-réponse ---------- */
.rsvp-sec { position: relative; margin-top: 14px; padding-top: clamp(72px,8vw,120px); padding-bottom: clamp(80px,9vw,140px); background-color: var(--lilac-2); background-image: url(../images/grain.png); background-size: 180px; }
.rsvp-wrap { position: relative; max-width: 780px; margin: 0 auto; filter: drop-shadow(0 34px 40px rgba(60,25,85,.25)); }
.rsvp { position: relative; padding: clamp(56px,6vw,80px) clamp(24px,6vw,80px) clamp(44px,5vw,64px); background: var(--card); text-align: center; transform: rotate(-.6deg); }
.rsvp-frame { position: absolute; inset: 16px; border: 1px solid rgba(60,25,85,.35); pointer-events: none; }
.rsvp-k { font: 500 11px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
.rsvp-h { margin-top: 16px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(56px,7vw,96px); line-height: .9; letter-spacing: -.02em; font-variation-settings: "SOFT" 100; }
.rsvp-sub { max-width: 44ch; margin: 18px auto 0; font-size: 15px; color: var(--ink-2); }
.rsvp-form { margin-top: 34px; text-align: left; }
.rsvp-occ { margin: 0; padding: 0; border: 0; min-width: 0; text-align: center; }
.rsvp-occ legend { width: 100%; margin-bottom: 12px; padding: 0; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.rsvp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rchip { position: relative; }
.rchip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rchip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font-family: var(--hand); font-size: 22px; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color .25s var(--ease), transform .25s var(--ease); }
.rchip span:hover { transform: translateY(-2px); }
.rchip input:checked + span { background: var(--yellow); }
.rchip input:focus-visible + span { outline: 2px dashed var(--ink); outline-offset: 3px; }
.rsvp-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 28px; margin-top: 30px; }
.rf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rf-wide { grid-column: 1 / -1; }
.rf > span { font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.rf input, .rf textarea { width: 100%; padding: 4px 2px 6px; border: 0; border-bottom: 1.5px dashed var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--hand); font-size: 25px; font-weight: 600; line-height: 1.2; }
.rf textarea { min-height: 90px; resize: vertical; }
.rf input::placeholder, .rf textarea::placeholder { color: #6E5A80; opacity: 1; }
.rf input:focus, .rf textarea:focus { outline: none; border-bottom-style: solid; background: rgba(255,225,105,.55); }
.rsvp-send { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; }
.rsvp-note { font-family: var(--hand); font-size: 22px; font-weight: 500; color: var(--ink-2); }
.rsvp-thanks { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.rsvp-hand { font-family: var(--hand); font-size: 56px; font-weight: 600; line-height: 1; transform: rotate(-3deg); }
.rsvp-thanks p:not(.rsvp-hand) { max-width: 40ch; font-size: 15px; color: var(--ink-2); }
.rsvp-thanks .sig { font-family: var(--hand); font-size: 40px; font-weight: 600; color: var(--ink); transform: rotate(-3deg); }
.rsvp-seal { position: absolute; left: 50%; top: -44px; z-index: 3; width: 88px; height: auto; margin-left: -44px; transform: rotate(-8deg); filter: drop-shadow(0 8px 10px rgba(42,16,61,.35)); }
.rsvp-sprig { position: absolute; z-index: 3; width: 150px; height: auto; }
.rsvp-sprig .stem { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; }
.rsvp-sprig .leaf { fill: var(--lilac); stroke: var(--ink-2); stroke-width: 1; }
.rsvp-sprig-a { left: -90px; bottom: 40px; transform: rotate(-28deg); }
.rsvp-sprig-b { right: -86px; top: 90px; transform: rotate(150deg); }

/* ---------- Animations propres à la page ---------- */
@keyframes slideout { from { transform: translateY(13cqw) rotate(var(--r)); } to { transform: rotate(var(--r)); } }
@media (prefers-reduced-motion: no-preference) {
  .motion .slideout { animation: slideout 1.2s var(--ease) backwards; }
  .motion .lc-1 { animation-delay: .45s; }
  .motion .lc-2 { animation-delay: .6s; }
  .motion .lc-3 { animation-delay: .75s; }
  .motion .g:hover .g-card { animation: swing 1.2s var(--ease); }
}
@keyframes swing { 0% { transform: rotate(var(--r)); } 30% { transform: rotate(4deg); } 60% { transform: rotate(-2deg); } 100% { transform: rotate(0deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g-list { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 36px; }
  .g-string { display: none; }
  .g:nth-child(n) { margin-top: 0; }
  .tg-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rsvp-sprig { display: none; }
}
@media (max-width: 900px) {
  .ai-grid, .occ-grid { grid-template-columns: minmax(0,1fr); }
  .ai-photo { max-width: 360px; margin: 20px auto 0; }
  .occ-grid { max-width: 460px; margin: 0 auto; gap: 40px; }
  .occ:nth-child(2) { transform: rotate(.8deg); }
  .gal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px 22px; }
  .gal-grid .wcard:nth-child(n) { grid-column: auto; margin-top: 0; }
  .gal-grid .wcard:nth-child(2n) { margin-top: 36px; }
}
@media (max-width: 640px) {
  .table { aspect-ratio: 1 / 1; }
  .t-mat { left: 0; right: 0; top: 14%; }
  .t-tape-a { width: 16cqw; height: 4.4cqw; top: 11%; }
  .t-tape-b { width: 16cqw; height: 4.4cqw; }
  .env { left: 8cqw; width: 84cqw; bottom: 4cqw; }
  .lc { width: 30cqw; }
  .lc-1 { left: 10cqw; bottom: 25cqw; }
  .lc-2 { left: 35cqw; bottom: 20.5cqw; }
  .lc-3 { left: 60cqw; bottom: 25cqw; }
  .a-seal { left: 43cqw; bottom: 14.5cqw; width: 14cqw; }
  .swatches, .a-note, .a-sprig { display: none; }
  .g-list { grid-template-columns: minmax(0,1fr); }
  .tg-list { grid-template-columns: minmax(0,1fr); max-width: 340px; margin: 0 auto; }
  .tg:nth-child(n) { margin-top: 0; }
  .rsvp-fields { grid-template-columns: minmax(0,1fr); }
  .rsvp-frame { inset: 10px; }
  .gal-grid { gap: 32px 16px; }
  .gal-grid .wimg { padding: 8px; }
  .gal-grid .wlabel { padding: 6px 8px; font-size: 9px; }
  .gal-grid .wtitle { font-size: 17px; }
}
