/* ShayWay's Magic Mirrors
   Purple from the "You've got the vision" card, white to breathe, iridescent sheen carries all the motion. */

/* fonts: self-hosted, trimmed to the characters the site uses */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/dmsans-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --ink: #1d0640;
  --night: #24074f;
  --deep: #3a0d86;
  --violet: #5b21d6;
  --purple: #8a3ffc;
  --orchid: #c23cf0;
  --rose: #ff7ad9;
  --ice: #7fe0ff;
  --lilac: #c9b3ff;
  --mist: #efe8ff;
  --pearl: #fbf9ff;
  --white: #fff;
  --iri: linear-gradient(100deg, #fff 0%, #e9ddff 22%, #7fe0ff 40%, #ffb6ec 58%, #c9b3ff 78%, #fff 100%);
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: min(1240px, 100% - 8vw);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --galaxy:
    radial-gradient(60% 50% at 18% 20%, rgba(194, 60, 240, .55), transparent 70%),
    radial-gradient(50% 45% at 85% 25%, rgba(91, 33, 214, .7), transparent 70%),
    radial-gradient(55% 50% at 70% 85%, rgba(60, 70, 255, .45), transparent 70%),
    radial-gradient(45% 40% at 10% 90%, rgba(255, 95, 210, .35), transparent 70%),
    linear-gradient(160deg, #3b0f8f 0%, #2a0a6b 45%, #1d0650 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--pearl); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.02; margin: 0; font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -.01em; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
h2 em, h1 em { font-weight: 400; }
.eyebrow { font: 600 12px/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; margin: 0 0 18px; color: var(--lilac); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 14px; height: 14px; flex: none; background: currentColor; clip-path: path('M7 0 C7.8 5.5 8.5 6.2 14 7 C8.5 7.8 7.8 8.5 7 14 C6.2 8.5 5.5 7.8 0 7 C5.5 6.2 6.2 5.5 7 0Z'); }
.eyebrow-ink { color: var(--violet); }

/* ---------- wordmark (top left, slanted like Shay's sketch) ---------- */
.wordmark {
  display: inline-flex; flex-direction: column; text-decoration: none; color: #fff;
  font-family: var(--display); font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1;
  transform: rotate(-7deg); transform-origin: left bottom; line-height: .92; white-space: nowrap;
}
.wm-a { font-size: 19px; font-weight: 500; padding-left: 26px; letter-spacing: .01em; }
.wm-b { font-size: 28px; font-weight: 600; letter-spacing: -.005em; }
.wm-i { position: relative; display: inline-block; }
.wm-i svg { position: absolute; left: 50%; top: -.02em; width: .42em; height: .36em; transform: translateX(-50%); fill: var(--rose); overflow: visible; }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .4s, box-shadow .4s; }
.site-head-inner { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 28px; padding: 26px 0 18px; }
.site-head.is-solid { background: rgba(36, 7, 79, .94); box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 30px -12px rgba(20,2,60,.5); }
.site-nav { margin-left: auto; display: flex; gap: 26px; }
.site-nav a, .bag-btn { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .04em; opacity: .9; }
.site-nav a { position: relative; padding: 6px 0; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--iri); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); border-radius: 2px; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.bag-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.bag-btn svg { width: 18px; height: 18px; }
.bag-count { min-width: 20px; height: 20px; border-radius: 999px; background: #fff; color: var(--deep); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.bag-btn.bump .bag-count { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- scroll progress: a pour of iridescent resin with a rhinestone at the tip ---------- */
.smm-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.smm-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--orchid), var(--ice)); transform-origin: left; transform: scaleX(var(--p, 0)); position: relative; }

/* ---------- buttons: rolling label + rhinestone ---------- */
.btn {
  --bg: #fff; --fg: var(--deep);
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em;
  border: 1.5px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--iri); background-size: 220% 100%; opacity: 0; transition: opacity .4s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(138, 63, 252, .7); }
.btn:hover::before { opacity: .55; }
.btn-light { --bg: #fff; --fg: var(--deep); }
.btn-dark { --bg: var(--deep); --fg: #fff; }
.btn-dark::before { background: linear-gradient(100deg, var(--deep), var(--orchid), var(--violet)); }
.btn-ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.5); }
.btn-sm { padding: 12px 18px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.roll { position: relative; display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.roll > span { grid-area: 1 / 1; transition: transform .5s var(--ease); }
.roll > span + span { transform: translateY(110%); }
.btn:hover .roll > span:first-child, .btn:focus-visible .roll > span:first-child { transform: translateY(-110%); }
.btn:hover .roll > span + span, .btn:focus-visible .roll > span + span { transform: none; }
.btn-gem { width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff 0 25%, #e9ddff 45%, #a7c8ff 75%, #7d5cff); box-shadow: 0 0 0 1.5px rgba(255,255,255,.7), 0 0 10px rgba(127, 224, 255, .7); }

/* ---------- galaxy backgrounds ---------- */
.nebula { position: absolute; inset: 0; background: var(--galaxy); overflow: hidden; z-index: -1; }
.nebula::after { /* airbrush spray grain, like the card */
  content: ''; position: absolute; inset: 0; opacity: .35; mix-blend-mode: screen;
  background-image: radial-gradient(rgba(255,255,255,.5) .6px, transparent 1px), radial-gradient(rgba(255,200,250,.35) .5px, transparent 1px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px;
  -webkit-mask: radial-gradient(40% 35% at 25% 35%, #000, transparent 70%), radial-gradient(35% 30% at 78% 70%, #000, transparent 70%);
  mask: radial-gradient(40% 35% at 25% 35%, #000, transparent 70%), radial-gradient(35% 30% at 78% 70%, #000, transparent 70%);
}
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; left: var(--x); top: var(--y); width: calc(18px * var(--s)); height: calc(18px * var(--s)); background: #fff; clip-path: path('M9 0 C10 7 11 8 18 9 C11 10 10 11 9 18 C8 11 7 10 0 9 C7 8 8 7 9 0Z'); opacity: .85; }
.stars i.dot { clip-path: circle(22%); }
.ribbons { position: absolute; inset: -6%; width: 112%; height: 112%; will-change: transform; }
.rb { fill: none; stroke-width: 90; stroke-linecap: round; filter: blur(28px); opacity: .7; }
.rb-b { stroke-width: 60; }
.rb-c { stroke-width: 120; opacity: .35; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; isolation: isolate; display: grid; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4vw; }
.hero-title { font-size: clamp(3.2rem, 8.4vw, 7.6rem); line-height: .9; font-weight: 400; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.hero-title span { display: inline-block; }
.hero-title em { display: block; font-weight: 300; background: var(--iri); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero-lede { max-width: 30em; font-size: clamp(17px, 1.4vw, 19px); color: rgba(255,255,255,.86); margin: 26px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.36), rgba(201,179,255,.16) 42%, transparent 72%); top: 4%; }
.hero-mirror { position: relative; width: min(390px, 82%); transform: rotate(-8deg); will-change: transform; }
.hero-mirror-art { aspect-ratio: 200 / 288; }
.hero-mirror-art svg { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(20, 2, 60, .55)); }
.hero-glass { position: absolute; left: 50%; top: var(--gy, 34%); width: var(--gw, 52%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; display: grid; place-content: center; text-align: center; pointer-events: none; overflow: hidden; padding: 8%; }
.hero-glass::before { /* the reflection follows you */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at var(--mx, 35%) var(--my, 30%), rgba(255,255,255,.45), rgba(201,179,255,.12) 35%, transparent 60%);
  mix-blend-mode: screen;
}
.hero-hi { font: 600 11px/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); min-height: 1.2em; margin-bottom: 8px; position: relative; }
.hero-words { font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 25px); line-height: 1.12; color: #fff; text-shadow: 0 0 18px rgba(201,179,255,.7); position: relative; transition: opacity .6s, filter .6s, transform .6s; }
.hero-words.out { opacity: 0; filter: blur(6px); transform: scale(.92); }
.hero-mark { position: absolute; width: 170px; left: -2%; bottom: 4%; transform: rotate(-10deg); filter: drop-shadow(0 12px 18px rgba(20,2,60,.5)); }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; translate: -50% 0; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: #fff; translate: -50% 0; }

/* ---------- affirmation ribbon ---------- */
.ribbon { background: #fff; color: var(--deep); overflow: hidden; border-block: 1px solid var(--mist); padding: 20px 0; }
.ribbon-track { display: flex; width: max-content; }
.ribbon ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ribbon li { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); white-space: nowrap; display: flex; align-items: center; padding-right: 34px; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.ribbon li::after { content: ''; width: 22px; height: 22px; margin-left: 34px; background: linear-gradient(135deg, var(--purple), var(--orchid), var(--ice)); clip-path: path('M11 0 C12.3 8.5 13.5 9.7 22 11 C13.5 12.3 12.3 13.5 11 22 C9.7 13.5 8.5 12.3 0 11 C8.5 9.7 9.7 8.5 11 0Z'); }
.ribbon li:nth-child(3n)::after { clip-path: path('M11 20 C3 14 -1 8 3 3 C6 0 10 1.5 11 5 C12 1.5 16 0 19 3 C23 8 19 14 11 20Z'); background: var(--rose); }

/* ---------- story ---------- */
.story { position: relative; padding: clamp(90px, 12vw, 160px) 0 90px; background:
  radial-gradient(40% 50% at 92% 10%, rgba(201,179,255,.45), transparent 70%),
  radial-gradient(35% 45% at 0% 90%, rgba(255,182,236,.35), transparent 70%), var(--pearl); overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px 6vw; align-items: start; }
.story-head { grid-column: 1 / -1; }
.story-head h2 { color: var(--deep); max-width: 12em; }
.story-card { position: relative; display: flex; align-items: center; gap: 0; padding-top: 10px; }
.getwell { position: relative; width: 58%; aspect-ratio: 5 / 6.4; background: #fff; border-radius: 6px; padding: 26px 22px; transform: rotate(-6deg); box-shadow: 0 30px 50px -24px rgba(58,13,134,.45), 0 1px 0 var(--mist); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--mist); }
.getwell::before { content: ''; position: absolute; inset: 12px; border: 1.5px dashed var(--lilac); border-radius: 4px; }
.gw-front { font-family: var(--display); font-style: italic; font-size: clamp(26px, 3vw, 40px); line-height: .95; color: var(--violet); position: relative; }
.gw-hand { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 17px; color: var(--deep); position: relative; transform: rotate(-3deg); }
.gw-arrow { width: 26%; color: var(--purple); margin: 0 -2% 0 -2%; transform: translateY(-30px); }
.story-mini { width: 44%; transform: rotate(5deg); filter: drop-shadow(0 22px 26px rgba(58,13,134,.3)); }
.story-copy { max-width: 34em; }
.story-big { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.22; color: var(--deep); margin-top: 0; font-variation-settings: 'SOFT' 100; }
.story-copy p { margin: 0 0 1.1em; }
.sig { font-family: var(--display); font-style: italic; font-size: 26px; color: var(--purple); }

/* rhinestone divider */
.gems-row { display: flex; justify-content: center; gap: 18px; margin-top: 80px; }
.gems-row i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 25%, #e9ddff 45%, #a7c8ff 75%, #7d5cff); box-shadow: 0 0 0 1.5px #fff, 0 3px 8px rgba(91,33,214,.35); }
.gems-row i:nth-child(odd) { width: 8px; height: 8px; margin-top: 2px; }

/* heading sheen: light sweeps across like it does across glass */
.sheen { --hc: var(--deep); background: linear-gradient(100deg, var(--hc) 0 42%, #fff 47%, var(--ice) 50%, var(--rose) 53%, var(--hc) 58% 100%); background-size: 320% 100%; background-position: 0% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheen-light { --hc: #fff; }
.sheen em { color: transparent; }

/* ---------- hall of mirrors ---------- */
.hall { position: relative; padding: 120px 0 130px; background: linear-gradient(180deg, var(--pearl), var(--mist) 30%, #f6f0ff 70%, var(--pearl)); }
.hall-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 6vw; align-items: end; }
.hall-head h2 { color: var(--deep); }
.hall-note { max-width: 26em; margin: 0; color: #4a2b80; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 46px 0 10px; }
.chip { border: 1.5px solid var(--lilac); background: rgba(255,255,255,.7); color: var(--deep); padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--purple); }
.chip.is-on { background: var(--deep); border-color: var(--deep); color: #fff; }
.filter-status { min-height: 1.6em; font-size: 14px; color: #6a4aa3; margin: 0 0 30px; }

.original { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; margin: 10px 0 100px; }
.original-photo { position: relative; border-radius: 999px 999px 36px 36px; overflow: hidden; aspect-ratio: 4 / 5; outline: 10px solid #fff; outline-offset: -1px; box-shadow: 0 40px 70px -30px rgba(58,13,134,.6); max-width: 520px; }
.original-pair { position: relative; max-width: 520px; }
/* skip drawing sections until they're near the screen */
.story, .hall, .ritual, .customs, .site-foot { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.original-illo { position: absolute; right: -9%; bottom: -8%; width: 34%; padding: 14px 12px 12px; border: 0; border-radius: 120px 120px 24px 24px; background: rgba(255,255,255,.94); box-shadow: 0 24px 40px -18px rgba(58,13,134,.5); cursor: pointer; transform: rotate(6deg); transition: transform .5s var(--ease); }
.original-illo:hover, .original-illo:focus-visible { transform: rotate(0deg) translateY(-6px); }
.original-illo svg { width: 78%; height: auto; margin: 0 auto; }
.original-photo picture { display: block; height: 100%; }
.original-photo img { width: 100%; height: 100%; object-fit: cover; }
.original-photo .glint { position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 48%, transparent 56%); transform: translateX(-70%); pointer-events: none; }
.original-copy h3 { font-size: clamp(2.4rem, 4.6vw, 4rem); color: var(--deep); margin-bottom: 14px; }
.original-copy p { max-width: 26em; }
.m-price { font-family: var(--display); font-size: 26px; color: var(--purple); margin: 10px 0 18px; }

.hall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 70px 3vw; align-items: end; }
.m-card { position: relative; text-align: center; transition: opacity .4s; }
.m-card[hidden] { display: none; }
.m-card:nth-child(4n+2), .m-card:nth-child(4n+4) { transform: translateY(46px); }
.m-look { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.m-art { position: relative; width: var(--w, 86%); margin: 0 auto; transform: rotate(var(--tilt, 0deg)); transition: transform .6s var(--ease); }
.m-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 22px rgba(58, 13, 134, .28)); }
.m-words { position: absolute; left: calc(var(--gx) * 100%); top: calc(var(--gy) * 100%); width: calc(var(--gw) * 100%); translate: -50% -50%; font-family: var(--display); font-style: italic; color: #fff; font-size: clamp(12px, 1.05vw, 15px); line-height: 1.15; text-shadow: 0 0 10px rgba(201,179,255,.9); opacity: 0; transition: opacity .5s, filter .5s; filter: blur(4px); pointer-events: none; }
.m-look:hover .m-art, .m-look:focus-visible .m-art { transform: rotate(0deg) translateY(-10px) scale(1.03); }
.m-look:hover .m-words, .m-look:focus-visible .m-words { opacity: 1; filter: none; }
.m-meta h3 { font-size: 24px; color: var(--deep); margin: 18px 0 4px; font-style: italic; font-weight: 500; }
.m-tags { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6a4aa3; }
.m-meta .m-price { font-size: 20px; margin: 6px 0 0; }
.sample-note { margin: 110px auto 0; text-align: center; font-size: 14px; color: #6a4aa3; max-width: 36em; }

/* ---------- ritual ---------- */
.ritual { position: relative; color: #fff; padding: 140px 0; isolation: isolate; overflow: hidden; }
.nebula-soft { opacity: .95; }
.ritual h2 { max-width: 13em; }
.steps { list-style: none; padding: 0; margin: 70px 0 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps li { position: relative; padding: 30px 28px 32px; border-radius: 200px 200px 28px 28px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22); text-align: center; }
.step-n { display: grid; place-items: center; width: 70px; height: 70px; margin: 10px auto 22px; border-radius: 50%; font-family: var(--display); font-style: italic; font-size: 34px; color: var(--deep); background: radial-gradient(circle at 35% 30%, #fff, #e9ddff 50%, #c9b3ff); box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 0 40px rgba(201,179,255,.6); }
.steps h3 { font-size: 28px; margin-bottom: 10px; }
.steps p { margin: 0; color: rgba(255,255,255,.82); }
.oracle { display: grid; grid-template-columns: .9fr 1fr; gap: 6vw; align-items: center; }
.oracle-mirror { position: relative; width: min(380px, 100%); margin-inline: auto; }
.oracle-art { aspect-ratio: 200 / 282; }
.oracle-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(10, 0, 40, .6)); }
.oracle-words { position: absolute; left: 50%; top: var(--gy, 34%); width: 50%; translate: -50% -50%; margin: 0; text-align: center; font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 24px); line-height: 1.15; text-shadow: 0 0 16px rgba(201,179,255,.8); transition: opacity .6s, filter .6s; }
.oracle-words.out { opacity: 0; filter: blur(8px); }
.oracle-side h3 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 10px; }
.oracle-side > p { color: rgba(255,255,255,.82); max-width: 28em; }
.name-form { margin: 26px 0 18px; }
.name-form label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--lilac); margin-bottom: 8px; }
.name-row { display: flex; gap: 10px; max-width: 420px; }
.name-row input { flex: 1; min-width: 0; padding: 13px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.name-row input::placeholder { color: rgba(255,255,255,.55); }

/* ---------- customs studio ---------- */
.customs { position: relative; padding: 140px 0 150px; background:
  radial-gradient(40% 50% at 8% 15%, rgba(201,179,255,.4), transparent 70%),
  radial-gradient(35% 40% at 95% 85%, rgba(127,224,255,.25), transparent 70%), #fff; }
.customs-head { max-width: 40em; }
.customs-head h2 { color: var(--deep); margin-bottom: 18px; }
.studio { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6vw; margin-top: 70px; align-items: start; }
.studio-preview { position: sticky; top: 110px; text-align: center; perspective: 1400px; }
.flip { position: relative; width: min(340px, 86%); margin: 0 auto; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.flip.is-back { transform: rotateY(180deg); }
.flip-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.custom-art svg, .custom-back svg { width: 100%; height: auto; filter: drop-shadow(0 30px 36px rgba(58,13,134,.32)); }
.custom-words { position: absolute; left: calc(var(--gx, .5) * 100%); top: calc(var(--gy, .33) * 100%); width: calc(var(--gw, .5) * 100%); translate: -50% -50%; margin: 0; font-family: var(--display); font-style: italic; color: #fff; font-size: clamp(15px, 1.6vw, 20px); line-height: 1.15; text-shadow: 0 0 12px rgba(201,179,255,.9); }
.flip-btn { margin-top: 22px; background: none; border: 1.5px solid var(--lilac); color: var(--deep); padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.studio-form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.studio-form legend { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; padding: 0; }
.studio-form legend small { text-transform: none; letter-spacing: 0; font-weight: 400; color: #6a4aa3; margin-left: 6px; font-size: 13px; }
.opts { display: flex; flex-wrap: wrap; gap: 9px; }
.opt { border: 1.5px solid var(--lilac); background: #fff; color: var(--deep); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 14px; transition: background .25s, color .25s, border-color .25s; }
.opt[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.swatches .opt { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--sw); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--lilac); }
.swatches .opt[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--deep); background: var(--sw); }
.words-field { display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); }
.words-field input { display: block; width: 100%; margin-top: 12px; padding: 14px 18px; border-radius: 16px; border: 1.5px solid var(--lilac); font: 400 17px var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; }
.studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.soon { font-size: 13px; color: var(--violet); background: var(--mist); padding: 7px 14px; border-radius: 999px; }
.studio-status { min-height: 1.6em; color: var(--violet); margin: 14px 0 0; }

/* ---------- footer ---------- */
.site-foot { position: relative; color: #fff; padding: 110px 0 40px; isolation: isolate; overflow: hidden; text-align: center; }
.foot-logo { width: 190px; margin: 0 auto 26px; filter: drop-shadow(0 20px 30px rgba(10,0,40,.5)); }
.foot-line { font-family: var(--display); font-size: clamp(2rem, 5vw, 4rem); line-height: 1; margin: 0 0 40px; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.foot-line em { background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-bottom: 50px; }
.foot-nav a { text-decoration: none; opacity: .85; }
.foot-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.fine { font-size: 13px; opacity: .65; margin: 0; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(29, 6, 64, .6); backdrop-filter: blur(6px); }
.sheet { width: min(920px, 94vw); border-radius: 32px; background: linear-gradient(160deg, #fff, var(--mist)); }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 50px; align-items: center; }
.sheet-art { position: relative; }
.sheet-art svg { width: 82%; margin: 0 auto; height: auto; filter: drop-shadow(0 24px 30px rgba(58,13,134,.3)); }
.sheet-copy h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--deep); font-style: italic; }
.sheet-words { font-family: var(--display); font-style: italic; font-size: 21px; color: var(--purple); margin: 12px 0 22px; }
.sheet-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 10px; font-size: 15px; }
.sheet-dl dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6a4aa3; padding-top: 3px; }
.sheet-dl dd { margin: 0; }
.sheet-one { font-size: 13px; color: #6a4aa3; margin-top: 14px; }
.sheet-x { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--lilac); background: #fff; font-size: 24px; line-height: 1; cursor: pointer; color: var(--deep); z-index: 2; }
.bag { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(420px, 100vw); background: #fff; padding: 30px; display: none; flex-direction: column; }
.bag[open] { display: flex; }
.bag-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.bag-head h3 { font-size: 34px; color: var(--deep); font-style: italic; }
.bag-head .sheet-x { position: static; }
.bag-list { list-style: none; padding: 0; margin: 0; flex: 1; overflow: auto; }
.bag-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--mist); }
.bag-thumb { width: 56px; height: 70px; display: grid; place-items: center; }
.bag-thumb svg, .bag-thumb img { max-height: 70px; width: auto; border-radius: 8px; }
.bag-list strong { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 19px; color: var(--deep); display: block; }
.bag-list small { color: #6a4aa3; }
.bag-rm { background: none; border: 0; color: var(--violet); cursor: pointer; text-decoration: underline; font-size: 13px; }
.bag-empty { color: #6a4aa3; }
.bag-foot { border-top: 1px solid var(--mist); padding-top: 18px; }
.bag-total { font-family: var(--display); font-size: 24px; color: var(--deep); margin: 0 0 14px; }
.bag-foot .btn { width: 100%; justify-content: center; }

.toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 400; background: var(--deep); color: #fff; padding: 13px 22px; border-radius: 999px; box-shadow: 0 16px 40px -10px rgba(29,6,64,.6); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; font-size: 15px; }
.toast.show { opacity: 1; transform: none; }

/* ---------- cursor: a sparkle with a glitter trail ---------- */
.smm-cursor, .glitter { display: none; }
@media (pointer: fine) and (hover: hover) {
  html.motion.cursor-on body, html.motion.cursor-on a, html.motion.cursor-on button, html.motion.cursor-on [data-look] { cursor: none; }
  html.motion.cursor-on input, html.motion.cursor-on textarea, html.motion.cursor-on select { cursor: text; }
  html.motion.cursor-on .smm-cursor { display: block; position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; transition: opacity .25s; }
  .smm-cursor svg { width: 22px; height: 22px; fill: #fff; translate: -50% -50%; filter: drop-shadow(0 0 4px rgba(138,63,252,.9)) drop-shadow(0 0 1px #3a0d86); transition: transform .35s var(--ease), opacity .3s; }
  .cur-ring { position: absolute; left: 0; top: 0; width: 76px; height: 76px; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--body); letter-spacing: .2em; text-transform: uppercase; color: #fff; background: rgba(58, 13, 134, .55); backdrop-filter: blur(4px); border: 1.5px solid rgba(255,255,255,.7); transform: scale(0); transition: transform .4s var(--ease); }
  .smm-cursor.is-look .cur-ring { transform: scale(1); }
  .smm-cursor.is-look svg { transform: scale(.4); opacity: 0; }
  .smm-cursor.is-gone { opacity: 0; }
  html.motion.cursor-on .glitter { display: block; position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none; z-index: 499; opacity: 0; }
}

/* =================================================================
   MOTION: everything animated lives under html.motion
   ================================================================= */
html.motion .stars i { animation: twinkle 3.2s ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
html.motion .ribbons { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-3%, 3%) scale(1.06); } }
html.motion .hero-mirror { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-16px); } }
html.motion .hero-mark { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-6deg) translateY(-8px); } }
html.motion .hero-scroll span { animation: scrolly 1.8s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
html.motion .ribbon-track { animation: marquee 38s linear infinite; }
html.motion .ribbon:hover .ribbon-track, html.motion .ribbon.paused .ribbon-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.m-glint { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(35deg); }
html.motion .m-look:hover .m-glint, html.motion .m-look:focus-visible .m-glint, html.motion .flip:hover .m-glint { transform: rotate(35deg) translateX(240px); transition: transform 1.1s var(--ease); }
html.motion .original:hover .glint { transform: translateX(70%); transition: transform 1.2s var(--ease); }
html.motion .gems-row.in i { animation: gem-in .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes gem-in { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.4); box-shadow: 0 0 0 1.5px #fff, 0 0 18px #7fe0ff; } 100% { opacity: 1; transform: scale(1); } }
html.motion .smm-progress span::after { content: ''; position: absolute; right: -5px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #a7c8ff 70%, #7d5cff); box-shadow: 0 0 10px #7fe0ff; transform: scaleX(calc(1 / max(var(--p, 1), .01))); }

.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* sheen on scroll: CSS scroll timeline where supported, class fallback otherwise */
html.motion .sheen { background-position: 100% 0; }
@supports (animation-timeline: view()) {
  html.motion .sheen { animation: sheen linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  html.motion .smm-progress span { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  html.motion .smm-progress span::after { display: none; }
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
html.motion.no-sdt .sheen { transition: background-position 1.6s var(--ease); }
html.motion.no-sdt .sheen.in { background-position: 0% 0; }

/* reveal on scroll (decor only; content is visible without JS) */
html.motion.no-sdt .rise { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.motion.no-sdt .rise.in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  html.motion .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}

/* hero entrance after the intro */
html.motion.intro-done .hero-copy > * { animation: up 1s var(--ease) both; }
html.motion.intro-done .hero-copy > :nth-child(2) { animation-delay: .1s; }
html.motion.intro-done .hero-copy > :nth-child(3) { animation-delay: .2s; }
html.motion.intro-done .hero-copy > :nth-child(4) { animation-delay: .3s; }
@keyframes up { from { opacity: 0; transform: translateY(26px); } }

/* =================================================================
   OPENING
   ================================================================= */
.smm-intro, .smm-intro-skip { display: none; }
html.has-intro { overflow: hidden; }
html.has-intro .smm-intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 2147483000; cursor: pointer; overflow: hidden;
  background: var(--galaxy);
  animation: in-out .55s ease-in 4.6s both;
}
html.has-intro .smm-intro-skip {
  display: inline-flex; position: fixed; right: 22px; bottom: 22px; z-index: 2147483001;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 10px 18px; font-size: 13px; letter-spacing: .08em; cursor: pointer;
  animation: in-out .3s ease 4.8s both;
}
html.intro-hold .smm-intro, html.intro-hold .smm-intro *, html.intro-hold .smm-intro-skip { animation-play-state: paused !important; }
.in-sky { position: absolute; inset: 0; }
.in-sky svg { position: absolute; left: var(--x); top: var(--y); width: calc(26px * var(--s)); height: calc(26px * var(--s)); overflow: visible; fill: #fff; animation: twinkle 2.4s ease-in-out var(--d) infinite; }
.in-head { position: absolute; top: 0; left: 0; right: 0; }
.wm-intro .wm-a, .wm-intro .wm-b { animation: in-write .8s cubic-bezier(.6, .1, .2, 1) .45s both; }
.wm-intro .wm-b { animation-delay: .8s; }
@keyframes in-write { from { clip-path: inset(-20% 100% -20% 0); transform: translateY(8px); } to { clip-path: inset(-20% -10% -20% 0); transform: none; } }

.in-scene1, .in-scene2 { grid-area: 1 / 1; }
.in-scene1 { width: min(80vmin, 580px); transform-origin: 82.2% 26.3%; animation: in-zoom .8s cubic-bezier(.55, 0, .85, .35) 2.2s both; }
.in-pop { animation: in-pop .9s cubic-bezier(.2, .9, .25, 1.15) .15s both; }
.in-logo { width: 100%; height: auto; overflow: visible; }
.in-arm { transform-box: view-box; transform-origin: 284px 200px; animation: in-arm 1.05s cubic-bezier(.3, 1.35, .45, 1) .85s both; }
.in-body { transform-box: view-box; transform-origin: 190px 340px; animation: in-lean .7s ease-in-out 1.55s both; }
.in-face { animation: in-fade .45s ease 1.75s both; }
.in-hearts use { fill: #c48cff; stroke: #2a0a5e; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: in-heart .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.in-hearts .h1 { animation-delay: 1.9s; } .in-hearts .h2 { animation-delay: 2s; } .in-hearts .h3 { animation-delay: 2.1s; }
.in-scene2 { width: min(84vmin, 640px); animation: in-close .85s cubic-bezier(.2, .8, .2, 1) 2.4s both; }
.in-close { width: 100%; height: auto; overflow: visible; transform-origin: 50% 50%; animation: in-expand 1.05s cubic-bezier(.7, 0, .3, 1) 4.15s both; }
.in-eye { transform-box: fill-box; transform-origin: 50% 55%; animation: in-blink .38s ease-in-out 3.2s both; }
.in-glints { animation: in-glint .7s ease 3.55s both; }
.in-glow { opacity: 0; animation: in-glow .45s ease-in 3.8s both; }

@keyframes in-pop { 0% { opacity: 0; transform: translateY(60px) scale(.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes in-arm { from { transform: rotate(82deg); } to { transform: rotate(-7deg); } }
@keyframes in-lean { to { transform: rotate(4deg); } }
@keyframes in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes in-heart { 0% { opacity: 0; transform: translateY(14px) scale(0); } 100% { opacity: 1; transform: none; } }
@keyframes in-zoom { 0% { transform: none; opacity: 1; } 65% { opacity: 1; } 100% { transform: scale(5.5); opacity: 0; } }
@keyframes in-close { from { opacity: 0; transform: scale(.32) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes in-blink { 0%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(.05); } }
@keyframes in-glint { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes in-glow { from { opacity: 0; } to { opacity: 1; } }
@keyframes in-expand { to { transform: scale(4.2); } }
@keyframes in-out { to { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-card:nth-child(n) { transform: none; }
  .m-card:nth-child(3n+2) { transform: translateY(40px); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .bag-btn { margin-left: auto; }
  .hero { padding-top: 120px; }
  .hero-grid, .story-grid, .hall-head, .original, .oracle, .studio, .sheet-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; order: -1; margin-top: 10px; }
  .hero-mirror { width: min(250px, 62%); }
  .hero-mark { width: 80px; left: 4%; }
  .hero-scroll { display: none; }
  .steps { grid-template-columns: 1fr; }
  .studio-preview { position: relative; top: 0; }
  .sheet-grid { padding: 60px 24px 30px; }
  .sheet-art svg { width: 56%; }
}
@media (max-width: 600px) {
  .original-illo { right: -2%; width: 38%; }
  .wm-a { font-size: 16px; padding-left: 20px; }
  .wm-b { font-size: 23px; }
  .bag-btn span:not(.bag-count) { display: none; }
  .hall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 18px; }
  .m-card:nth-child(n) { transform: none; }
  .m-card:nth-child(even) { transform: translateY(34px); }
  .m-meta h3 { font-size: 19px; }
  .m-tags { font-size: 10px; letter-spacing: .1em; }
  .story-card { flex-wrap: nowrap; }
  .original { margin-bottom: 70px; }
}
