:root {
  --welcome-pink: #ff1493;
  --welcome-gold: #f8dc88;
}

.brand-logo { width: 58px; height: 58px; flex: 0 0 auto; object-fit: contain; border-radius: 50%; clip-path: circle(49% at 50% 50%); }
.poster-frame img { object-fit: contain; }
.poster-frame .home-logo { clip-path: circle(49% at 50% 50%); }
.founder-frame { width: min(100%, 390px); justify-self: center; }
.founder-frame img { aspect-ratio: 2 / 3; object-fit: contain; object-position: center; }
.category-jump { grid-column: 1 / -1; padding: 22px 4px 0; scroll-margin-top: 112px; }
.category-jump h3 { margin: 3px 0 7px; color: var(--plum); font: 600 clamp(1.8rem,3vw,2.5rem) var(--serif); }
.category-jump p:last-child { max-width: 620px; margin: 0; color: var(--muted); }
#keychains, #bracelets, #kristine, #ordering, #contact { scroll-margin-top: 105px; }

.welcome-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; align-content: center; gap: 16px; padding: 32px 20px; overflow: hidden; background: var(--welcome-pink); color: white; text-align: center; opacity: 1; visibility: visible; transition: opacity .5s ease, visibility .5s ease; }
.welcome-screen[hidden] { display: none; }
.welcome-screen.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
body.welcome-active { overflow: hidden; }
.welcome-logo { position: relative; z-index: 1; width: min(68vw, 360px); aspect-ratio: 1; object-fit: contain; clip-path: circle(49% at 50% 50%); filter: drop-shadow(0 14px 24px #75104955); }
.welcome-tagline { position: relative; z-index: 1; margin: 0; color: #fff8e9; font: italic clamp(1rem,2.8vw,1.5rem) var(--serif); text-shadow: 0 2px 12px #6d173d55; }
.skip-intro { position: absolute; z-index: 3; right: clamp(18px,4vw,48px); bottom: clamp(18px,4vh,40px); padding: 10px 16px; border: 1px solid var(--welcome-gold); border-radius: 999px; background: #72164f44; color: white; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.skip-intro:hover, .skip-intro:focus-visible { background: #72164f88; outline: 2px solid white; outline-offset: 3px; }
.skip-intro span { color: var(--welcome-gold); margin-left: 5px; }
.welcome-sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.welcome-sparkles span { position: absolute; color: var(--welcome-gold); text-shadow: 0 0 12px #fff2b0, 0 0 25px #fff2b0; animation: sparkle 1.8s ease-in-out infinite alternate; }
.welcome-sparkles span:nth-child(1) { left: 11%; top: 19%; font-size: 23px; }
.welcome-sparkles span:nth-child(2) { right: 15%; top: 15%; font-size: 17px; animation-delay: .4s; }
.welcome-sparkles span:nth-child(3) { left: 19%; bottom: 24%; font-size: 16px; animation-delay: .7s; }
.welcome-sparkles span:nth-child(4) { right: 12%; bottom: 27%; font-size: 26px; animation-delay: .2s; }
.welcome-sparkles span:nth-child(5) { left: 50%; top: 8%; font-size: 15px; animation-delay: .9s; }
.welcome-sparkles span:nth-child(6) { right: 32%; bottom: 13%; font-size: 14px; animation-delay: .55s; }
@keyframes sparkle { from { opacity: .35; transform: scale(.78) rotate(-12deg); } to { opacity: 1; transform: scale(1.18) rotate(12deg); } }

.product-detail { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(940px,calc(100vw - 28px)); max-width: none; max-height: min(90dvh,850px); padding: 0; border: 1px solid #d4af37aa; border-radius: 22px; background: var(--ivory); color: var(--ink); box-shadow: 0 30px 100px #210c2c55; overflow: auto; }
.product-detail[open] { display: block; }
.product-detail::backdrop { background: #24122dcc; backdrop-filter: blur(5px); }
.detail-close { position: sticky; float: right; top: 10px; z-index: 5; width: 42px; height: 42px; margin: 12px 12px -54px 0; border: 1px solid #d4af37; border-radius: 50%; background: #fffaf3f2; color: var(--plum); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr); min-height: 490px; }
.detail-photo-panel { display: grid; place-items: center; min-height: 480px; padding: 34px; background: linear-gradient(145deg,#fff,#fae8f2); overflow: hidden; }
.detail-zoom { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 380px; padding: 0; border: 0; background: transparent; overflow: hidden; cursor: zoom-in; }
.detail-zoom[aria-pressed="true"] { cursor: zoom-out; }
.detail-zoom img { max-width: 100%; max-height: min(68dvh,600px); width: auto; height: auto; object-fit: contain; transition: transform .25s ease; }
.detail-zoom img.is-zoomed { transform: scale(1.75); }
.detail-zoom span { position: absolute; right: 7px; bottom: 7px; padding: 6px 10px; border-radius: 999px; background: #4b145bdd; color: white; font-size: .67rem; letter-spacing: .04em; }
.detail-copy { padding: 66px clamp(24px,4vw,45px) 34px; align-self: center; }
.detail-copy h2 { margin: 0 0 12px; font: 600 clamp(2rem,4vw,3rem)/1.06 var(--serif); color: var(--plum); }
.detail-price { margin: 0 0 15px; color: var(--pink); font: 700 1.35rem var(--sans); }
.detail-description { color: #59445f; line-height: 1.7; }
.detail-options { display: grid; grid-template-columns: .75fr 1.25fr; gap: 12px; margin: 24px 0 16px; }
.detail-options label { display: grid; gap: 6px; color: var(--plum); font-size: .75rem; font-weight: 700; }
.detail-options input, .detail-options select { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #d5bdd8; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.detail-note, .detail-status { color: var(--muted); font-size: .75rem; line-height: 1.55; }
.detail-order { border: 0; cursor: pointer; }
.detail-status { min-height: 2.5em; margin: 10px 0 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #e8469c; outline-offset: 3px; }

@media (max-width: 1080px) and (min-width: 761px) {
  .site-nav { gap: 9px; font-size: .68rem; }
  .site-nav .nav-order { padding: 9px 11px; }
}
@media (max-width: 760px) {
  .brand-logo { width: 44px; height: 44px; }
  .founder-frame { width: min(88vw, 350px); }
  .category-jump { grid-column: 1 / -1; padding-top: 14px; }
  .product-detail { width: min(560px,calc(100vw - 18px)); max-height: calc(100dvh - 18px); border-radius: 16px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-photo-panel { min-height: 300px; max-height: 42dvh; padding: 20px; }
  .detail-zoom { min-height: 250px; }
  .detail-zoom img { max-height: 38dvh; }
  .detail-copy { padding: 28px 22px 25px; }
  .detail-copy h2 { font-size: 2rem; padding-right: 30px; }
  .detail-close { margin: 9px 9px -51px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-screen, .welcome-sparkles span, .detail-zoom img { animation: none !important; transition-duration: .01ms !important; }
}
