/* A satin keepsake with independently moving lid, box and paper. */
#gifts { background: radial-gradient(ellipse at 35% 48%, #fdfdff 0, #edf5ff 34%, #d5e5fb 75%, #c4daf7); }
#gifts .section-heading { margin-bottom: 24px; }
#gifts .gift-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
#gifts .gift-keepsake { --gift-art-size: 360px; --gift-stage-height: 590px; height: var(--gift-stage-height); max-width: 510px; margin: 0 auto; transition: height .8s cubic-bezier(.2,.7,.2,1); }
#gifts .gift-halo { width: min(370px, 90%); height: 415px; top: 47%; border-radius: 48% 48% 5px 5px; border-color: #9bb9df80; background: radial-gradient(ellipse, #ffffffb8, #e0edfc50 55%, transparent 75%); box-shadow: 0 0 0 11px #eaf3ff45, 0 0 0 12px #a9c4e64d; animation: keepsake-halo 7s ease-in-out infinite; transition: opacity .8s ease; }
#gifts .gift-halo::after { content: ''; position: absolute; inset: 12px; border: 1px solid #a1bcdb40; border-radius: inherit; }
.gift-sealed-caption { position: absolute; top: 49px; left: 0; right: 0; text-align: center; font: italic 26px/1.3 var(--serif); color: #5e7fae; margin: 0; transition: opacity .35s ease, transform .6s ease; }
#gifts .gift-bouquet { width: 285px; bottom: 44px; opacity: .94; }
#gifts .gift-bouquet-left { left: -95px; }
#gifts .gift-bouquet-right { right: -95px; }
#gifts .gift-box-button { width: 100%; height: 425px; bottom: 8px; left: 0; transform: none; padding: 0; background: none; border: 0; border-radius: 6px; color: #214583; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#gifts .gift-box-button:disabled { opacity: 1; cursor: progress; }
#gifts .gift-box-button[aria-expanded="true"] { height: 64px; }
#gifts .gift-box-button:focus-visible { outline: none; }
#gifts .gift-box-button:focus-visible .gift-action-label { outline: 3px solid #345db0; outline-offset: 5px; }
.gift-product { position: absolute; display: block; width: var(--gift-art-size); height: calc(var(--gift-art-size) * .92); left: 50%; bottom: 84px; transform: translateX(-50%); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2,.75,.2,1); pointer-events: none; }
.gift-product-body, .gift-product-lid { position: absolute; display: block; width: 100%; height: auto; left: 0; overflow: hidden; filter: drop-shadow(0 12px 9px #173a6b2b); }
.gift-product-body { bottom: 0; }
.gift-product-lid { bottom: calc(var(--gift-art-size) * .34); z-index: 3; transform-origin: 15% 85%; transition: transform 1.25s cubic-bezier(.22,.65,.2,1), opacity .7s ease; }
.gift-seal-letter { display: grid; place-items: center; position: absolute; width: calc(var(--gift-art-size) * .15); height: calc(var(--gift-art-size) * .15); bottom: calc(var(--gift-art-size) * .13); left: 50%; transform: translateX(-50%); z-index: 2; font: 400 calc(var(--gift-art-size) * .051)/1 var(--serif); color: #3c5680; text-shadow: 0 1px 0 #ffffffb3; }
.gift-ground-shadow { position: absolute; bottom: -2%; left: 8%; width: 84%; height: 9%; background: radial-gradient(ellipse, #23457238, transparent 70%); filter: blur(5px); transition: opacity .8s; }
.gift-product-glint { position: absolute; left: 12%; bottom: 14%; width: 6px; height: 6px; background: #f8fcff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 5px #fff); animation: keepsake-glint 4s ease-in-out infinite; }
.gift-product-glint::after { content: ''; position: absolute; inset: 0; background: #fff; }
#gifts .gift-box-button:hover:not(:disabled) .gift-product { transform: translateX(-50%) translateY(-7px) rotate(-1deg); }
#gifts .gift-action-label { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(290px, 92%); min-height: 62px; border-radius: 12px; padding: 16px 20px; gap: 12px; overflow: hidden; background: linear-gradient(120deg, #3264ba, #1f438d); color: #f5faff; border: 1px solid #a3c2ef; box-shadow: inset 0 1px 0 #e1efff66, 0 5px 0 #173773, 0 12px 25px #21498925; font: 600 15px/1.35 var(--sans); letter-spacing: .015em; transition: background .3s, box-shadow .3s; }
#gifts .gift-action-label .gift-action-text { font: inherit; }
#gifts .gift-action-icon { width: 24px; height: 24px; flex-shrink: 0; stroke-width: 1.3; }
#gifts .gift-action-glint { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #fff2 48%, transparent 65%); transform: translateX(-110%); animation: keepsake-button-sheen 7s ease-in-out infinite; pointer-events: none; }
.gift-radiance { position: absolute; z-index: 2; width: 85%; height: 390px; left: 7.5%; bottom: 155px; background: conic-gradient(from 330deg at 50% 100%, transparent, #fffdf4d9 14deg, #d9edff8a 24deg, #fffefaed 38deg, transparent 60deg); filter: blur(11px); opacity: 0; transform: scaleY(.2); transform-origin: center bottom; transition: opacity .8s ease, transform 1.4s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.gift-ripple { position: absolute; z-index: 2; width: 210px; height: 210px; border: 1px solid #f4faff; box-shadow: 0 0 0 5px #d9ecff35, 0 0 28px #f4faff; border-radius: 50%; left: calc(50% - 105px); bottom: 170px; opacity: 0; pointer-events: none; }
#gift-note { position: absolute; z-index: 6; top: 20px; bottom: auto; left: 50%; width: min(420px, calc(100% - 16px)); height: auto; padding: 31px 30px 27px; border: 1px solid #98b5d8; border-radius: 5px; background: radial-gradient(ellipse at 50% 0, #f5f9ff 0, #fffefa 55%, #f2f6fd 100%); box-shadow: 0 16px 40px #193e7d24, 0 2px 5px #294b7917; color: #34537e; text-align: center; opacity: 0; transform: translate(-50%, 140px) scale(.65) rotate(-5deg); transform-origin: center 90%; transition: transform .65s cubic-bezier(.3,.7,.2,1), opacity .35s ease; outline: none; }
#gift-note::before { content: ''; position: absolute; inset: 9px; border: 1px solid #afc4df80; pointer-events: none; }
#gift-note::after { content: ''; position: absolute; inset: 13px; border: 1px solid #c9d9ec65; pointer-events: none; }
#gift-note:focus-visible { box-shadow: 0 16px 40px #193e7d24, 0 0 0 3px #6a94c4; }
#gift-note .gift-note-eyebrow { display: block; font: 600 9px/1.5 var(--sans); letter-spacing: .19em; color: #6e8bb2; margin: 0 0 15px; }
#gift-note h3 { margin: 0; color: #254987; font: italic 500 33px/1.12 var(--serif); text-wrap: balance; }
.gift-note-flourish { display: block; width: 170px; height: auto; margin: 12px auto 15px; }
#gift-note p { margin: 0; color: #4e6687; font: 400 15px/1.75 var(--sans); }
.gift-new-beginning { margin: 19px 0 16px; padding: 17px 14px 18px; border-top: 1px solid #b9cce3; border-bottom: 1px solid #b9cce3; background: linear-gradient(90deg, transparent, #e5effb80, transparent); }
.gift-new-beginning > svg { display: block; width: 46px; height: 30px; margin: 0 auto 10px; fill: none; stroke: #88a7ce; stroke-width: 1.2; }
#gift-note .gift-new-beginning p { color: #335785; }
#gift-note .gift-note-thanks { font: italic 20px/1.3 var(--serif); color: #6b85aa; margin: 0 0 8px; }
#gift-note .gift-note-signature { display: block; font: 43px/1.2 var(--script); color: #2a5092; }
#gifts .gift-open .gift-sealed-caption { opacity: 0; transform: translateY(-15px); }
#gifts .gift-open .gift-halo { opacity: .42; }
#gifts .gift-open .gift-radiance { opacity: .85; transform: scaleY(1); }
#gifts .gift-opening .gift-ripple { animation: keepsake-ripple 1.8s ease-out .3s both; }
#gifts .gift-open .gift-product, #gifts .gift-open .gift-box-button:hover .gift-product { transform: translateX(-50%) translateY(42px) scale(.86); transition-delay: .45s; }
#gifts .gift-open .gift-product-lid { transform: translate(-55px, -175px) rotate(-22deg) scale(.92); opacity: 0; transition: transform 1.35s cubic-bezier(.2,.7,.2,1) .12s, opacity .65s ease .85s; }
#gifts .gift-open .gift-product-glint { opacity: 0; animation: none; }
#gifts .gift-open #gift-note { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(0); transition: transform 1.5s cubic-bezier(.16,.85,.24,1) .55s, opacity .65s ease .6s; }
#gifts .gift-open .gift-action-label { background: linear-gradient(120deg, #edf5ff, #cedff8); color: #234b90; box-shadow: inset 0 1px 0 #fff, 0 4px 0 #abc5e8, 0 12px 25px #21498915; }
.gift-burst { position: absolute; z-index: 8; inset: 0; overflow: visible; pointer-events: none; }
.gift-spark { position: absolute; width: 7px; height: 7px; background: #f7fbff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px #eef7ff); }
.gift-spark:nth-child(3n) { background: #7fa4de; width: 10px; height: 10px; }
.gift-spark.is-petal { width: 11px; height: 18px; clip-path: none; border-radius: 80% 20% 75% 25%; background: linear-gradient(135deg, #fff, #b6d2f6); filter: none; }
#gifts .gift-message { max-width: 470px; margin: 0 auto; padding: 20px 0; }
#gifts .gift-quote { font-size: clamp(42px, 4.5vw, 57px); line-height: 1.15; text-wrap: balance; }
#gifts .gift-companion { display: grid; place-items: center; width: 100%; min-height: 365px; padding: 15px 0; }
.gift-introduction, .gift-forever { grid-area: 1 / 1; width: 100%; transition: opacity .55s ease, transform .8s cubic-bezier(.2,.7,.2,1), visibility .55s; }
.gift-introduction { opacity: 1; visibility: visible; }
.gift-forever { opacity: 0; visibility: hidden; transform: translateY(24px) scale(.96); text-align: center; }
.gift-forever-monogram { display: flex; align-items: baseline; justify-content: center; gap: .025em; color: #274b8d; font: 400 clamp(120px, 13vw, 170px)/1 var(--serif); text-shadow: 0 2px 0 #ffffff80; }
.gift-forever-monogram i { font: 400 .43em/1 var(--script); color: #6b91c4; margin: 0 -.08em; }
.gift-forever-flourish { display: block; width: 230px; max-width: 80%; height: auto; margin: 12px auto 20px; }
#gifts .gift-forever p { margin: 0; color: #597caf; font: italic 34px/1.3 var(--serif); text-wrap: balance; }
#gifts.gift-is-open .gift-introduction { opacity: 0; visibility: hidden; transform: translateY(-18px); }
#gifts.gift-is-open .gift-forever { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: .6s; }
.gift-constellation { position: absolute; inset: 0; pointer-events: none; }
.gift-constellation i { position: absolute; width: 12px; height: 12px; background: #91b4e16b; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: keepsake-glint 5s ease-in-out infinite; }
.gift-constellation i:nth-child(1) { top: 17%; left: 13%; }.gift-constellation i:nth-child(2) { top: 32%; right: 15%; animation-delay: -2s; }.gift-constellation i:nth-child(3) { top: 52%; left: 7%; animation-delay: -1s; }.gift-constellation i:nth-child(4) { bottom: 16%; right: 22%; animation-delay: -3s; }.gift-constellation i:nth-child(5) { top: 12%; right: 30%; width: 7px; height: 7px; }.gift-constellation i:nth-child(6) { bottom: 12%; left: 40%; width: 8px; height: 8px; animation-delay: -2s; }
@keyframes keepsake-halo { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.07); } }
@keyframes keepsake-glint { 0%, 100% { opacity: .25; scale: .7; } 45% { opacity: .9; scale: 1.25; } 65% { opacity: .35; scale: .85; } }
@keyframes keepsake-button-sheen { 0%, 62% { transform: translateX(-110%); } 88%, 100% { transform: translateX(110%); } }
@keyframes keepsake-ripple { from { opacity: .85; transform: scale(.45); } to { opacity: 0; transform: scale(2.3); } }
#gifts:not(.scene-active) .gift-halo, #gifts:not(.scene-active) .gift-constellation i, #gifts:not(.scene-active) .gift-product-glint, #gifts:not(.scene-active) .gift-action-glint { animation-play-state: paused; }
@media (max-width: 900px) and (min-width: 651px) {
  #gifts .gift-story { gap: 28px; }
  #gifts .gift-keepsake { --gift-art-size: 310px; }
  #gift-note { padding: 28px 24px 25px; }
  #gift-note p { font-size: 14px; }
  #gifts .gift-quote { font-size: 43px; }
}
@media (max-width: 650px) {
  #gifts { padding: 78px 22px 85px; }
  #gifts .section-heading { margin-bottom: 10px; }
  #gifts .gift-story { grid-template-columns: 1fr; gap: 15px; }
  #gifts .gift-keepsake { --gift-art-size: min(330px, 96vw - 44px); --gift-stage-height: 530px; width: 100%; max-width: 390px; }
  #gifts .gift-box-button { height: 390px; }
  .gift-product { bottom: 80px; }
  #gifts .gift-halo { height: 355px; width: 88%; top: 47%; }
  .gift-sealed-caption { top: 32px; font-size: 23px; }
  #gifts .gift-bouquet { width: 245px; bottom: 45px; }
  #gifts .gift-bouquet-left { left: -85px; }#gifts .gift-bouquet-right { right: -85px; }
  #gifts .gift-action-label { min-height: 58px; width: min(280px, 92%); font-size: 14px; padding: 15px 16px; }
  #gift-note { top: 15px; width: calc(100% - 8px); padding: 28px 24px 24px; }
  #gift-note h3 { font-size: 31px; }
  #gift-note p { font-size: 14px; line-height: 1.75; }
  #gift-note .gift-note-eyebrow { font-size: 8px; letter-spacing: .16em; }
  .gift-note-flourish { width: 150px; margin: 10px auto 13px; }
  .gift-new-beginning { padding-inline: 6px; margin-top: 17px; }
  #gift-note .gift-note-thanks { font-size: 19px; }
  #gift-note .gift-note-signature { font-size: 39px; }
  #gifts .gift-open .gift-product-lid { transform: translate(-25px, -145px) rotate(-19deg) scale(.9); }
  #gifts .gift-message { padding: 22px 0 0; }
  #gifts .gift-quote { font-size: clamp(39px, 10.7vw, 47px); }
  #gifts .gift-companion { min-height: 225px; padding-top: 12px; }
  .gift-forever-monogram { font-size: 116px; }
  .gift-forever-flourish { width: 170px; margin: 2px auto 12px; }
  #gifts .gift-forever p { font-size: 27px; }
}
@media (max-width: 380px) {
  #gifts { padding-inline: 18px; }
  #gift-note { padding-inline: 20px; }
  #gift-note h3 { font-size: 29px; }
  #gift-note .gift-note-eyebrow { font-size: 7.5px; letter-spacing: .12em; }
}
body.motion-paused #gifts .gift-halo, body.motion-paused #gifts .gift-constellation i, body.motion-paused #gifts .gift-product-glint, body.motion-paused #gifts .gift-action-glint, body.motion-paused #gifts .gift-ripple { animation: none !important; }
body.motion-paused #gifts .gift-keepsake, body.motion-paused #gifts .gift-product, body.motion-paused #gifts .gift-product-lid, body.motion-paused #gift-note, body.motion-paused #gifts .gift-radiance { transition: none !important; }
body.motion-paused #gifts .gift-introduction, body.motion-paused #gifts .gift-forever { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  #gifts .gift-halo, #gifts .gift-constellation i, #gifts .gift-product-glint, #gifts .gift-action-glint, #gifts .gift-ripple { animation: none !important; }
  #gifts .gift-keepsake, #gifts .gift-product, #gifts .gift-product-lid, #gift-note, #gifts .gift-radiance { transition: none !important; }
  #gifts .gift-introduction, #gifts .gift-forever { transition: none !important; }
}
