/* ===== Ideas page: 8 wedding styles, Style Studio, style quiz ===== */

/* ---------- hero (light, palette orbs) ---------- */
.ideas-hero { background: radial-gradient(90% 70% at 50% 0%, #fffaf0 0%, var(--blush) 48%, var(--champagne) 100%); padding-bottom: clamp(64px, 8vw, 110px); }
.ideas-hero .ih-glow { position: absolute; inset: -20% -10% auto; height: 90%; z-index: 0; pointer-events: none; background: conic-gradient(from 200deg at 50% 60%, rgba(201, 164, 92, 0.0), rgba(201, 164, 92, 0.22), rgba(42, 157, 143, 0.08), rgba(201, 164, 92, 0.0), rgba(226, 201, 143, 0.16), rgba(201, 164, 92, 0.0)); filter: blur(40px); animation: ihSpin 30s linear infinite; }
@keyframes ihSpin { to { transform: rotate(360deg); } }
.ideas-title { max-width: 980px; margin-inline: auto; }
.ideas-title .kick { display: block; font-family: var(--font-accent); color: var(--gold); font-weight: 800; font-size: 0.45em; line-height: 1.6; margin-bottom: 4px; }
.ideas-hero .lead { max-width: 700px; }
.orbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; max-width: 720px; margin: clamp(38px, 5vw, 56px) auto 0; }
.orb { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--wine-800); min-height: 44px; }
.orb i { width: clamp(50px, 6vw, 64px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--c1) 0 33%, var(--c2) 0 66%, var(--c3) 0); box-shadow: 0 10px 24px -12px rgba(33, 26, 16, 0.55), inset 0 0 0 3px #fff; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); position: relative; }
.orb i::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.orb:hover i, .orb:focus-visible i { transform: translateY(-4px) rotate(40deg); box-shadow: 0 16px 30px -12px rgba(175, 138, 50, 0.7), inset 0 0 0 3px #fff; }
@media (min-width: 720px) { .orbs { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* ---------- manifesto ---------- */
.ideas-manifesto { padding-bottom: calc(var(--section) * 0.7); }
.manifesto-h { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem); color: var(--gold); margin-bottom: 18px; font-weight: 700; }
.manifesto-h .hl { color: inherit; }

/* ---------- Style Studio ---------- */
.studio-section { padding-top: calc(var(--section) * 0.5); }
.studio { position: relative; }
.studio-picker { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 12px; margin-bottom: 14px; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); padding-inline: 16px; }
.studio-picker::-webkit-scrollbar { display: none; }
.sp-tab { flex: none; scroll-snap-align: center; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 6px 16px 6px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 0.92rem; color: var(--wine-800); transition: background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s; white-space: nowrap; position: relative; }
.sp-tab .sw { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--c1) 0 33%, var(--c2) 0 66%, var(--c3) 0); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line); flex: none; }
.sp-tab:hover { border-color: var(--gold); }
.sp-tab[aria-selected="true"] { background: var(--wine-800); color: #fff; border-color: var(--wine-800); box-shadow: 0 10px 24px -12px rgba(33, 26, 16, 0.6); }
.sp-tab.is-saved::after { content: ""; position: absolute; top: 6px; left: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--paper); }
@media (min-width: 1100px) { .studio-picker { flex-wrap: wrap; justify-content: center; overflow: visible; mask-image: none; -webkit-mask-image: none; } }

.studio-stage { display: grid; gap: clamp(14px, 2vw, 22px) clamp(18px, 2.4vw, 34px); grid-template-areas: "scene" "panel" "gallery"; }
.scene-card { grid-area: scene; }
.studio-panels { grid-area: panel; }
.studio-galleries { grid-area: gallery; }
@media (min-width: 1024px) { .studio-stage { grid-template-columns: 1.4fr 1fr; grid-template-areas: "scene panel" "gallery panel"; grid-template-rows: auto 1fr; align-items: start; } }

/* scene colour variables (animatable) */
@property --sc-sky1 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-sky2 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-orb { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --sc-far { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-far2 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-wall { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-wall2 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-accent { syntax: "<color>"; inherits: true; initial-value: #c9a45c; }
@property --sc-drape { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-bulb { syntax: "<color>"; inherits: true; initial-value: #ffd98a; }
@property --sc-floor { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-floor2 { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-rug { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --sc-arch { syntax: "<color>"; inherits: true; initial-value: #c9a45c; }
@property --sc-arch-in { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --sc-seat { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --sc-leaf { syntax: "<color>"; inherits: true; initial-value: #6d7a55; }
@property --sc-f1 { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --sc-f2 { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --sc-f3 { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --sc-cloth { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --sc-cloth2 { syntax: "<color>"; inherits: true; initial-value: #eee; }
@property --sc-candle { syntax: "<color>"; inherits: true; initial-value: #fff8ea; }
@property --sc-pampas { syntax: "<color>"; inherits: true; initial-value: #efe2cc; }
@property --sc-glow { syntax: "<color>"; inherits: true; initial-value: #ffc56b; }
@property --sc-stars { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --sc-orb-o { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --sc-glow-o { syntax: "<number>"; inherits: true; initial-value: 0.3; }

.scene-card { position: relative; margin: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--wine-900); isolation: isolate; }
.scene { width: 100%; height: auto; aspect-ratio: 800 / 560; display: block; }
.scene {
  transition: --sc-sky1 1.1s var(--ease), --sc-sky2 1.1s var(--ease), --sc-orb 1.1s, --sc-far 1.1s, --sc-far2 1.1s, --sc-wall 1.1s var(--ease), --sc-wall2 1.1s var(--ease), --sc-accent 1.1s, --sc-drape 1.1s, --sc-bulb 1.1s, --sc-floor 1.1s var(--ease), --sc-floor2 1.1s var(--ease), --sc-rug 1.1s, --sc-arch 1.1s, --sc-arch-in 1.1s, --sc-seat 1.1s, --sc-leaf 1.1s, --sc-f1 1.1s, --sc-f2 1.1s, --sc-f3 1.1s, --sc-cloth 1.1s, --sc-cloth2 1.1s, --sc-candle 1.1s, --sc-pampas 1.1s, --sc-glow 1.1s, --sc-stars 1.4s, --sc-orb-o 1.2s, --sc-glow-o 1.2s;
}
.scene .d { opacity: 0; transition: opacity 0.9s var(--ease); }
.scene .flame { transform-box: fill-box; transform-origin: 50% 90%; animation: flick 1.8s ease-in-out infinite; }
.scene .flame:nth-child(2n) { animation-duration: 2.3s; animation-delay: -0.6s; }
@keyframes flick { 0%, 100% { transform: scale(1, 1); opacity: 1; } 30% { transform: scale(0.92, 1.08); } 60% { transform: scale(1.05, 0.94); opacity: 0.85; } }
.scene .bulb { animation: twinkleB 3.4s ease-in-out infinite; }
@keyframes twinkleB { 50% { opacity: 0.55; } }
.scene .fog-a { animation: fogDrift 14s ease-in-out infinite alternate; }
.scene .fog-b { animation: fogDrift 18s ease-in-out infinite alternate-reverse; }
@keyframes fogDrift { to { transform: translateX(60px); } }
.scene .burst { transform-box: fill-box; transform-origin: center; animation: burst2 3.6s ease-out infinite; }
@keyframes burst2 { 0% { transform: scale(0.1); opacity: 0; } 12% { opacity: 1; } 70% { opacity: 0.7; } 100% { transform: scale(1.15); opacity: 0; } }
.reduced .scene .flame, .reduced .scene .bulb, .reduced .scene .fog-a, .reduced .scene .fog-b, .reduced .scene .burst { animation: none; }
.reduced .scene .burst { opacity: 0.8; }

/* style palettes (the styles keep their own colours inside the scene) */
.scene.st-classic { --sc-sky1: #2a1216; --sc-sky2: #4a1c26; --sc-orb: #ffe3a0; --sc-orb-o: 0; --sc-stars: 0; --sc-far: #2d1a14; --sc-far2: #24140f; --sc-wall: #5b1d2c; --sc-wall2: #3c1119; --sc-accent: #d7b46a; --sc-drape: #7a1f33; --sc-bulb: #ffd98a; --sc-floor: #3a1c16; --sc-floor2: #1f0e0b; --sc-rug: #7a1f33; --sc-arch: #c9a45c; --sc-arch-in: #f3e2c2; --sc-seat: #fffaf0; --sc-leaf: #6d7a55; --sc-f1: #fffaf0; --sc-f2: #f1e6d2; --sc-f3: #e8d3b0; --sc-cloth: #fbf3e4; --sc-cloth2: #e3cfa9; --sc-candle: #fff8ea; --sc-pampas: #efe2cc; --sc-glow: #ffc56b; --sc-glow-o: 0.55; }
.scene.st-modern { --sc-sky1: #f4f2ee; --sc-sky2: #e5e1da; --sc-orb: #ffffff; --sc-orb-o: 0; --sc-stars: 0; --sc-far: #d9d4cc; --sc-far2: #c9c2b8; --sc-wall: #e9e6e0; --sc-wall2: #f7f6f3; --sc-accent: #b9b1a6; --sc-drape: #d9d4cc; --sc-bulb: #fff5dc; --sc-floor: #d4cec5; --sc-floor2: #b9b1a6; --sc-rug: #d9d4cc; --sc-arch: #6b7a4f; --sc-arch-in: #fbfaf8; --sc-seat: #b9b1a6; --sc-leaf: #6b7a4f; --sc-f1: #ffffff; --sc-f2: #f3f1ec; --sc-f3: #e6e2da; --sc-cloth: #ffffff; --sc-cloth2: #e8e4dd; --sc-candle: #ffffff; --sc-pampas: #e7e1d6; --sc-glow: #fff1cf; --sc-glow-o: 0.22; }
.scene.st-rustic { --sc-sky1: #f2c98c; --sc-sky2: #f6e7cc; --sc-orb: #ffe0a3; --sc-orb-o: 0.9; --sc-stars: 0; --sc-far: #a7b595; --sc-far2: #7e9577; --sc-wall: #d8c3a2; --sc-wall2: #eadbc0; --sc-accent: #b88d62; --sc-drape: #eadbc0; --sc-bulb: #ffe7a6; --sc-floor: #a6b68d; --sc-floor2: #7f9468; --sc-rug: #d8c3a2; --sc-arch: #8a6440; --sc-arch-in: #f3ead9; --sc-seat: #f3ead9; --sc-leaf: #7f9a73; --sc-f1: #f3ead9; --sc-f2: #e8c07a; --sc-f3: #c98f6d; --sc-cloth: #b88d62; --sc-cloth2: #8a6440; --sc-candle: #fff4dc; --sc-pampas: #efe2cc; --sc-glow: #ffcf7d; --sc-glow-o: 0.35; }
.scene.st-boho { --sc-sky1: #e59a82; --sc-sky2: #f6dcc3; --sc-orb: #ffd2a3; --sc-orb-o: 1; --sc-stars: 0; --sc-far: #d8b596; --sc-far2: #c19a78; --sc-wall: #e9d6bd; --sc-wall2: #f4ead9; --sc-accent: #b48a66; --sc-drape: #f4ead9; --sc-bulb: #ffe0b0; --sc-floor: #e2c9aa; --sc-floor2: #c9a883; --sc-rug: #c98f6f; --sc-arch: #9c7250; --sc-arch-in: rgba(244, 234, 217, 0.35); --sc-seat: #f4ead9; --sc-leaf: #9a9a6c; --sc-f1: #e6a79a; --sc-f2: #f4ead9; --sc-f3: #d98c7a; --sc-cloth: #efe2cc; --sc-cloth2: #d9c1a0; --sc-candle: #fff4e4; --sc-pampas: #f3e7d2; --sc-glow: #ffb98a; --sc-glow-o: 0.4; }
.scene.st-vintage { --sc-sky1: #f5e3e0; --sc-sky2: #efd6d3; --sc-orb: #fff; --sc-orb-o: 0; --sc-stars: 0; --sc-far: #e9c4c6; --sc-far2: #d8aeb1; --sc-wall: #f2dcd9; --sc-wall2: #e5c0c2; --sc-accent: #b39a62; --sc-drape: #caa3a0; --sc-bulb: #ffe9c4; --sc-floor: #a4826b; --sc-floor2: #7a5d4b; --sc-rug: #e9c4c6; --sc-arch: #b39a62; --sc-arch-in: #fbf2ee; --sc-seat: #e9c4c6; --sc-leaf: #8d9a7a; --sc-f1: #e9c4c6; --sc-f2: #f7e4e1; --sc-f3: #d9a3a8; --sc-cloth: #f8efe6; --sc-cloth2: #e8d5c4; --sc-candle: #fff6ee; --sc-pampas: #efe2cc; --sc-glow: #ffd9b8; --sc-glow-o: 0.3; }
.scene.st-persian { --sc-sky1: #0f3d3a; --sc-sky2: #145450; --sc-orb: #fff; --sc-orb-o: 0; --sc-stars: 0; --sc-far: #145450; --sc-far2: #0f3d3a; --sc-wall: #134e4a; --sc-wall2: #1d6b64; --sc-accent: #d4b068; --sc-drape: #9b2226; --sc-bulb: #ffd98a; --sc-floor: #7a1a1f; --sc-floor2: #4c0f13; --sc-rug: #9b2226; --sc-arch: #2a9d8f; --sc-arch-in: #0e3b38; --sc-seat: #f5ecd9; --sc-leaf: #3f7a5a; --sc-f1: #ffffff; --sc-f2: #c73a3f; --sc-f3: #f4d9a6; --sc-cloth: #f5ecd9; --sc-cloth2: #e2cf9e; --sc-candle: #fff8ea; --sc-pampas: #efe2cc; --sc-glow: #ffc56b; --sc-glow-o: 0.5; }
.scene.st-garden-night { --sc-sky1: #070b1d; --sc-sky2: #1b2340; --sc-orb: #f4f1e2; --sc-orb-o: 1; --sc-stars: 1; --sc-far: #16261d; --sc-far2: #0f1c15; --sc-wall: #111; --sc-wall2: #222; --sc-accent: #c9a45c; --sc-drape: #1b2340; --sc-bulb: #ffd98a; --sc-floor: #1a2a20; --sc-floor2: #0c140f; --sc-rug: #2f4a3a; --sc-arch: #c9a45c; --sc-arch-in: rgba(27, 35, 64, 0.55); --sc-seat: #efe7d6; --sc-leaf: #2f4a3a; --sc-f1: #ffffff; --sc-f2: #f2ead7; --sc-f3: #d9c690; --sc-cloth: #efe7d6; --sc-cloth2: #b8ab8c; --sc-candle: #fff8ea; --sc-pampas: #efe2cc; --sc-glow: #ffcf7d; --sc-glow-o: 0.55; }
.scene.st-floral { --sc-sky1: #d9eef5; --sc-sky2: #fdf5f2; --sc-orb: #fff7e6; --sc-orb-o: 0.85; --sc-stars: 0; --sc-far: #cfe5c2; --sc-far2: #a8cf98; --sc-wall: #fbeff1; --sc-wall2: #fff; --sc-accent: #d9a7b3; --sc-drape: #fbeff1; --sc-bulb: #fff3dc; --sc-floor: #e6f0dc; --sc-floor2: #c9deb8; --sc-rug: #f7dbe1; --sc-arch: #ffffff; --sc-arch-in: rgba(255, 255, 255, 0.4); --sc-seat: #ffffff; --sc-leaf: #8fbf85; --sc-f1: #f1b8c4; --sc-f2: #ffffff; --sc-f3: #e88fa3; --sc-cloth: #ffffff; --sc-cloth2: #f2e6e8; --sc-candle: #fff; --sc-pampas: #efe2cc; --sc-glow: #fff0e6; --sc-glow-o: 0.3; }

/* which details each style shows */
.st-classic :is(.d-swag, .d-wall, .d-drapes, .d-chandelier, .d-arch-round, .d-fl, .d-tall, .d-boards, .d-centre),
.st-modern :is(.d-wall, .d-led, .d-arch-ring, .d-stems),
.st-rustic :is(.d-trees, .d-lights, .d-arch-round, .d-fl, .d-jars, .d-grain, .d-legs, .d-centre),
.st-boho :is(.d-swag, .d-trees, .d-arch-round, .d-fl, .d-pampas, .d-rug, .d-floorc, .d-jars, .d-centre),
.st-vintage :is(.d-swag, .d-wall, .d-stripes, .d-frames, .d-arch-round, .d-fl, .d-gramo, .d-boards, .d-tall, .d-centre),
.st-persian :is(.d-wall, .d-niches, .d-arch-persian, .d-fl, .d-rug, .d-candelabra, .d-mirror, .d-termeh),
.st-garden-night :is(.d-swag, .d-trees, .d-lights, .d-lights2, .d-arch-round, .d-fl, .d-fog, .d-fw, .d-jars, .d-centre),
.st-floral :is(.d-trees, .d-arch-round, .d-florarch, .d-fl, .d-cascade, .d-petalpath, .d-centre) { opacity: 1; }

.scene-cap { position: absolute; inset-inline-start: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(20, 16, 9, 0.55); color: #fff; font-size: 0.8rem; font-weight: 600; line-height: 1.6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.scene-cap .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 10px var(--gold-300); flex: none; }
.scene-badge { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.78); color: var(--wine-800); font-size: 0.8rem; font-weight: 700; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.scene-badge svg { width: 15px; height: 15px; color: var(--gold); }
.scene-card.is-switching .scene-badge { animation: badgePop 0.7s var(--ease); }
@keyframes badgePop { 0% { transform: scale(0.9); opacity: 0.4; } 100% { transform: none; opacity: 1; } }

/* info panels: stacked in one cell so the anchors always have a position */
.studio-panels { display: grid; align-self: stretch; }
.style-panel { grid-area: 1 / 1; background: var(--paper); border-radius: var(--radius-xl); padding: clamp(22px, 2.6vw, 36px); box-shadow: var(--shadow-sm); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s; display: flex; flex-direction: column; }
.style-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.7s var(--ease) 0.1s, transform 0.7s var(--ease) 0.1s, visibility 0s; }
.sp-num { font-family: var(--font-latin); font-size: 1.1rem; color: var(--gold); font-weight: 600; }
.sp-num i { font-style: normal; color: var(--ink-mute); }
.sp-name { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-top: 4px; }
.sp-mood { font-family: var(--font-classic); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); color: var(--ink-soft); line-height: 1.9; margin-top: 8px; }
.sp-palette { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; }
.sp-palette li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--wine-800); }
.sp-palette i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.1); }
.sp-label { font-size: 0.8rem; font-weight: 800; color: var(--gold); margin-top: 20px; }
.sp-sign { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sp-sign li { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; background: var(--cream); font-size: 0.86rem; font-weight: 600; line-height: 1.55; color: var(--wine-800); }
.sp-sign svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.sp-meta { display: grid; gap: 12px; margin: 18px 0 0; }
.sp-meta div { border-top: 1px solid var(--line); padding-top: 12px; }
.sp-meta dt { font-size: 0.8rem; font-weight: 800; color: var(--gold); }
.sp-meta dd { margin: 2px 0 0; color: var(--ink-soft); line-height: 1.9; font-size: 0.95rem; }
.sp-meta a { color: var(--wine); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold-300); text-underline-offset: 4px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.sp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 12px; background: var(--wine-800); color: #fff; font-weight: 700; font-size: 0.9rem; transition: background 0.3s, transform 0.3s var(--ease); }
.sp-btn svg { width: 17px; height: 17px; color: var(--gold-300); }
.sp-btn:hover { transform: translateY(-2px); }
.sp-btn[aria-pressed="true"] { background: var(--gold); color: var(--wine-900); }
.sp-btn[aria-pressed="true"] svg { color: var(--wine-900); }
.sp-btn.ghost { background: transparent; color: var(--wine-800); border: 1px solid var(--line-strong); }
.sp-btn.ghost svg { color: var(--gold); }

.studio-galleries { display: grid; }
.style-gallery { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 16px); opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s; }
.style-gallery.is-active { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease) 0.15s, visibility 0s; }
.style-gallery .media { border-radius: var(--radius); }
@media (max-width: 640px) {
  .style-gallery { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .style-gallery::-webkit-scrollbar { display: none; }
  .style-gallery .media { scroll-snap-align: start; }
  .sp-sign { grid-template-columns: 1fr; }
}
.studio-cta { text-align: center; margin-top: clamp(28px, 4vw, 44px); color: var(--ink-soft); font-size: 1.02rem; }
.studio-cta b { color: var(--wine-800); }

/* ---------- quiz ---------- */
.quiz-section { overflow: clip; }
.quiz-wrap { display: grid; gap: clamp(30px, 4vw, 70px); align-items: center; }
@media (min-width: 1024px) { .quiz-wrap { grid-template-columns: 0.85fr 1.15fr; } }
.quiz-points { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.quiz-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.quiz-points svg { width: 20px; height: 20px; color: var(--gold-300); flex: none; }
.quiz-card { position: relative; border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 38px); background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(226, 201, 143, 0.22); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz-count { font-weight: 700; color: var(--gold-300); font-size: 0.9rem; }
.quiz-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: rgba(255, 255, 255, 0.75); font-weight: 600; font-size: 0.9rem; transition: opacity 0.3s, background 0.3s; }
.quiz-back:hover { background: rgba(255, 255, 255, 0.08); }
.quiz-back svg { width: 16px; height: 16px; }
.quiz-back[disabled] { opacity: 0; pointer-events: none; }
.quiz-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 10px 0 24px; }
.quiz-bar i { display: block; height: 100%; width: 0; margin-inline-start: 0; border-radius: inherit; background: linear-gradient(270deg, var(--gold-300), var(--gold)); transition: width 0.7s var(--ease); }
.quiz-stage { display: grid; }
.quiz-q { grid-area: 1 / 1; border: 0; margin: 0; padding: 0; min-width: 0; opacity: 0; visibility: hidden; transform: translateX(-40px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s; }
.quiz-q.is-done { transform: translateX(40px); }
.quiz-q.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s var(--ease) 0.12s, transform 0.7s var(--ease) 0.12s, visibility 0s; }
.quiz-q legend { padding: 0; margin-bottom: 18px; width: 100%; }
.quiz-q h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); color: #fff; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qo { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 118px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-weight: 700; font-size: 1rem; text-align: start; line-height: 1.6; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.qo:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(226, 201, 143, 0.5); transform: translateY(-3px); }
.qo.is-picked { background: var(--gold); border-color: var(--gold); color: var(--wine-900); }
.qo.is-picked .qo-ico { background: rgba(20, 16, 9, 0.12); color: var(--wine-900); }
.qo-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(226, 201, 143, 0.14); color: var(--gold-300); transition: background 0.3s, color 0.3s; }
.qo-ico svg { width: 24px; height: 24px; }
.qo .pal { display: flex; }
.qo .pal i { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(20, 16, 9, 0.55); }
.qo .pal i + i { margin-inline-start: -10px; }
.qo-pal { font-size: 0.9rem; }
.qo-quote { font-family: var(--font-classic); font-size: 1.15rem; }

.quiz-result { grid-area: 1 / 1; display: grid; gap: clamp(18px, 3vw, 30px); align-items: center; animation: tabIn 0.8s var(--ease) both; }
.quiz-result[hidden] { display: none; }
.quiz-result:focus { outline: none; }
@media (min-width: 560px) { .quiz-result { grid-template-columns: 170px 1fr; } }
@media (min-width: 1024px) { .quiz-result { grid-template-columns: 190px 1fr; } }
.story { --c1: #f3ead9; --c2: #b88d62; --c3: #8ea58c; position: relative; aspect-ratio: 9 / 16; width: min(190px, 52vw); margin-inline: auto; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 12px 18px; text-align: center; color: #fff; background: radial-gradient(90% 50% at 50% 35%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 70%), linear-gradient(170deg, #2a2114, #141009 70%); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(226, 201, 143, 0.35); transition: background 0.8s; }
.story::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(226, 201, 143, 0.35); border-radius: 14px; pointer-events: none; }
.st-top { font-size: 0.7rem; color: var(--gold-300); font-weight: 700; }
.st-arch { width: 56%; aspect-ratio: 5 / 6; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--c1), var(--c2) 58%, var(--c3)); border: 3px solid #c9a45c; border-bottom: 0; box-shadow: 0 0 40px -6px color-mix(in srgb, var(--c2) 70%, transparent); transition: background 0.8s; }
.st-name { font-size: 1.25rem; line-height: 1.4; }
.st-pal { display: flex; gap: 6px; }
.st-pal i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.st-pal i:nth-child(1) { background: var(--c1); } .st-pal i:nth-child(2) { background: var(--c2); } .st-pal i:nth-child(3) { background: var(--c3); }
.st-brand { font-family: var(--font-accent); font-weight: 900; color: var(--gold-300); font-size: 1rem; line-height: 1.5; }
.qr-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-300); font-weight: 700; font-size: 0.9rem; }
.qr-kicker svg { width: 16px; height: 16px; }
.qr-name { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); color: #fff; margin-top: 4px; }
.qr-line { font-family: var(--font-classic); font-size: 1.15rem; line-height: 1.9; color: rgba(255, 255, 255, 0.85); margin-top: 8px; }
.qr-pal-label { margin-top: 10px; color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; }
.qr-pal-label span { color: var(--gold-100); font-weight: 700; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.qr-mini { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; }
.qr-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: rgba(255, 255, 255, 0.8); font-weight: 600; font-size: 0.92rem; padding-inline: 4px; }
.qr-link:hover { color: var(--gold-300); }
.qr-link svg { width: 17px; height: 17px; color: var(--gold-300); }
.qr-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-top: 6px; }
@media (max-width: 559px) { .qr-body { text-align: center; } .qr-actions, .qr-mini { justify-content: center; } .qo { min-height: 104px; padding: 14px; } }

/* ---------- tips ---------- */
.tips { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); counter-reset: tip; }
.tip { position: relative; padding: 26px 24px 26px; border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-sm); counter-increment: tip; overflow: hidden; }
.tip::after { content: counter(tip, persian); position: absolute; top: 6px; left: 18px; font-size: 4.2rem; font-weight: 800; line-height: 1.2; color: var(--gold-100); z-index: 0; }
.tip > * { position: relative; z-index: 1; }
.tip-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--wine-800); color: var(--gold-300); margin-bottom: 18px; }
.tip-ico svg { width: 22px; height: 22px; }
.tip h3 { font-size: 1.15rem; }
.tip p { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.9; }
.tip-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.tip-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.92rem; color: var(--wine-800); transition: background 0.3s, border-color 0.3s; }
.tip-links a:hover { background: var(--gold-100); border-color: var(--gold); }
.tip-links svg { width: 17px; height: 17px; color: var(--gold); }

/* ---------- moments & hashtag ---------- */
.moment .media[data-slot]:not(.has-media)::after { bottom: auto; top: 18px; inset-inline-start: 14px; max-width: calc(100% - 100px); }
.hashtag-card { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(22px, 3vw, 36px); padding: clamp(22px, 3vw, 40px); border-radius: var(--radius-xl); background: radial-gradient(80% 90% at 100% 0%, rgba(201, 164, 92, 0.3), transparent 60%), linear-gradient(160deg, #fcf6ea, var(--cream)); border: 1px solid var(--line); }
@media (min-width: 900px) { .hashtag-card { grid-template-columns: 1.1fr 0.9fr; } }
.hc-tag { display: inline-block; font-family: var(--font-accent); font-weight: 900; color: var(--gold); font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.3rem); line-height: 1.4; }
.hashtag-card p { margin-top: 10px; color: var(--ink-soft); line-height: 2; }
.hashtag-card .btn-row { margin-top: 20px; }
.hc-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hc-wall .media { border-radius: var(--radius); }
@media (min-width: 900px) { .hc-wall .media:nth-child(2) { transform: translateY(18px); } .hc-wall .media:nth-child(3) { transform: translateY(-8px); } }

/* ---------- idea book ---------- */
.book { display: grid; gap: 30px; align-items: center; padding: clamp(26px, 4vw, 60px); border-radius: var(--radius-xl); }
@media (min-width: 960px) { .book { grid-template-columns: 1.3fr 0.7fr; } }
.book .eyebrow { background: rgba(255, 255, 255, 0.08); border-color: rgba(226, 201, 143, 0.28); color: var(--gold-100); }
.book .h2 { color: #fff; }
.book .hl { color: var(--gold-300); }
.book-text > p { margin-top: 14px; color: rgba(255, 255, 255, 0.72); line-height: 2; max-width: 620px; }
.book .btn-glass { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; --chip: rgba(255, 255, 255, 0.12); }
.book .btn-glass .chip { color: var(--gold-300); }
.book-saved { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.book-saved .bs-empty { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; }
.book-saved a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 14px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(226, 201, 143, 0.25); color: #fff; font-weight: 600; font-size: 0.88rem; }
.book-saved a .sw { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(var(--c1) 0 33%, var(--c2) 0 66%, var(--c3) 0); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); }
.book-saved a.is-quiz { border-color: var(--gold); }
.book-soft { margin-top: 22px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.55) !important; }
.book-soft a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-300); font-weight: 700; }
.book-soft svg { width: 16px; height: 16px; }
.book-art { display: grid; place-items: center; }
@media (max-width: 959px) { .book-art { order: -1; } .book-cover b { font-size: 1.5rem; } }
.book-cover { position: relative; width: min(260px, 52vw); aspect-ratio: 3 / 4; border-radius: 10px 22px 22px 10px; padding: 26px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; background: linear-gradient(150deg, #f6ebd3, #e2c98f 60%, #c9a45c); color: var(--wine-900); box-shadow: 30px 40px 60px -30px rgba(0, 0, 0, 0.8), inset -10px 0 0 rgba(20, 16, 9, 0.12); transform: rotate(-4deg); transition: transform 0.8s var(--ease); }
.book:hover .book-cover { transform: rotate(0deg) translateY(-6px); }
.book-cover::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(20, 16, 9, 0.3); border-radius: 6px 14px 14px 6px; }
.bc-latin { font-family: var(--font-latin); letter-spacing: 0.25em; font-size: 0.72rem; direction: ltr; }
.book-cover b { font-family: var(--font-accent); font-weight: 900; font-size: 1.6rem; line-height: 1.4; color: var(--wine-800); }
.bc-pal { display: flex; gap: 6px; }
.bc-pal i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; }
.book-cover svg { width: 34px; height: 34px; color: var(--wine); }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 14px; background: var(--wine-900); color: #fff; font-weight: 600; font-size: 0.92rem; box-shadow: var(--shadow-lg); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1023px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }
