/* Aura extras - try-on, stories, planner, reels, foil, glitter */

/* ---------- loader: the crown traces itself in gold ---------- */
.loader__mark { position: relative; width: 150px; animation: glow 2.4s ease-in-out infinite; }
.loader__mark .loader__logo { animation: logoIn .9s 1.3s var(--ease) both; }
.loader__crown { position: absolute; inset: 0; width: 100%; height: auto; overflow: visible; }
.loader__crown path { fill: url(#crownGold); fill-opacity: 0; stroke: url(#crownGold); stroke-width: 4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: crownDraw 1.5s .1s cubic-bezier(.65,0,.35,1) forwards, crownFill .6s 1.2s ease forwards, crownOut .5s 2s ease forwards; }
@keyframes crownDraw { to { stroke-dashoffset: 0; } }
@keyframes crownFill { to { fill-opacity: 1; } }
@keyframes crownOut { to { opacity: 0; } }
@keyframes logoIn { from { opacity: 0; filter: blur(6px); } }

/* ---------- gold foil headings ---------- */
.foil { --foil-a: #b8893f; --foil-b: #f3d9a1; --foil-hi: #fffaf0;
  background-image: linear-gradient(100deg, var(--foil-a) 0%, var(--foil-b) 30%, var(--foil-hi) 45%, var(--foil-b) 55%, var(--foil-a) 75%, var(--foil-b) 100%);
  background-size: 260% 100%; background-position: var(--foil, 100%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.section-head--light .foil, .stories .foil { --foil-a: #8a6424; --foil-b: #b8893f; --foil-hi: #e9c987; }

/* ---------- shared bits ---------- */
.sample-tag { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 999px; border: 1px dashed currentColor; font-size: .62rem; letter-spacing: .14em; vertical-align: middle; opacity: .8; }
.sample-tag[hidden] { display: none; }
.pill--dark { background: var(--ink); color: var(--ivory); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.pill--dark:hover { background: var(--crimson); }
.pill--dark:disabled { opacity: .35; cursor: not-allowed; }
.pill--line { border: 1px solid currentColor; }
.pill--line:hover { background: rgba(12,7,8,.06); }
.pill:disabled { opacity: .4; cursor: not-allowed; }
.glitter { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }

/* ---------- 9 · real-brides stories ---------- */
.stories { background: var(--ivory); color: var(--ink); }
.stories__list { display: grid; gap: clamp(60px, 9vw, 130px); }
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.story--flip .story__gallery { order: 2; }
.story__gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5/4; }
.story__img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; cursor: zoom-in; transition: transform .8s var(--ease); box-shadow: 0 20px 40px rgba(60,20,20,.12); }
.story__img:hover { transform: scale(1.02); }
.story__img--0 { grid-row: span 2; }
.story__kicker { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.story h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 1rem; }
.story__text > p:not(.story__kicker) { color: #4d403c; max-width: 520px; }
.story__chips { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.story__chips li { font-size: .74rem; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(12,7,8,.18); }
.story blockquote { color: var(--ink); border-left-color: var(--accent); font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.story cite { display: block; margin-top: .6rem; font: 600 .8rem/1.4 var(--sans); font-style: normal; color: #7a6a64; letter-spacing: .06em; }

/* ---------- 7 · function planner ---------- */
.planner { background: var(--ink); }
.planner__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.planner__pick { display: grid; gap: 10px; }
.pf { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .3s, background .3s; }
.pf.is-on { border-color: var(--gold); background: rgba(215,176,106,.07); }
.pf__tick { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.pf__tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--gold); display: grid; place-items: center; transition: background .25s; }
.pf__tick input:checked + .pf__box { background: var(--gold); }
.pf__tick input:checked + .pf__box::after { content: '✓'; color: var(--ink); font-size: .85rem; font-weight: 700; }
.pf__tick input:focus-visible + .pf__box { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.pf__name { font: 400 1.25rem/1.2 var(--serif); }
.pf__name em { display: block; font: 400 .78rem/1.4 var(--sans); color: var(--muted); }
.pf__when { display: flex; gap: 8px; opacity: .35; pointer-events: none; transition: opacity .3s; }
.pf.is-on .pf__when { opacity: 1; pointer-events: auto; }
.pf__when input, .pf__when select, .planner__name input { font: 400 .85rem var(--sans); color: var(--ivory); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 9px 10px; color-scheme: dark; }
.pf__when select option { background: var(--ink-2); }
.planner__plan { position: sticky; top: 100px; padding: clamp(22px, 3vw, 36px); border-radius: 26px; background: radial-gradient(120% 140% at 100% 0%, var(--crimson-deep), var(--ink-2) 70%); border: 1px solid var(--line); }
.planner__plan h3 { margin-bottom: 1.2rem; }
.planner__timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--gold); display: grid; gap: 16px; min-height: 80px; }
.planner__timeline li { position: relative; }
.planner__timeline li::before { content: ''; position: absolute; left: -28px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(215,176,106,.2); }
.planner__timeline li.is-empty { color: var(--muted); font-size: .9rem; }
.planner__timeline li.is-empty::before { background: var(--muted); }
.planner__timeline time { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.planner__timeline b { display: block; font: 400 1.3rem/1.3 var(--serif); }
.planner__timeline span { font-size: .82rem; color: var(--ivory-2); }
.planner__sum { margin: 1.4rem 0 1rem; font-size: .85rem; color: var(--gold-hi); min-height: 1.3em; }
.planner__name { display: grid; gap: 6px; margin-bottom: 14px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.planner__name input { font-size: 1rem; padding: 12px 14px; letter-spacing: 0; text-transform: none; }

/* ---------- 8 · video reviews wall ---------- */
.reels__head { display: flex; align-items: center; gap: 10px; margin: clamp(50px, 7vw, 90px) 0 20px; color: var(--ink); }
.reels__head h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.reels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.reel { position: relative; margin: 0; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(60,20,20,.15); }
.reel video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85) brightness(.9); }
.reel.is-playing video { transform: scale(1.06); filter: none; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,7,8,.85), transparent 45%); pointer-events: none; }
.reel figcaption { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.reel figcaption b { display: block; font: 400 1.15rem/1.2 var(--serif); }
.reel figcaption span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); }
.reel__sound { position: absolute; z-index: 2; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(12,7,8,.5); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); }
.reel__sound .reel__wave { opacity: .25; }
.reel__sound[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.reel__sound[aria-pressed="true"] .reel__wave { opacity: 1; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .reels { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- mobile ---------- */
@media (max-width: 800px) {
  .loader__mark { width: 120px; }

  .story, .planner__grid { grid-template-columns: 1fr; }
  .story--flip .story__gallery { order: 0; }
  .pf { grid-template-columns: 1fr; }
  .pf__when { display: none; }
  .pf.is-on .pf__when { display: flex; }
  .pf__when input { flex: 1; }
  .planner__plan { position: relative; top: 0; }
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62vw; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 10px; scrollbar-width: none; }
  .reels::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .loader__crown path { stroke-dashoffset: 0; fill-opacity: 1; animation: none; }
  .loader__mark .loader__logo { animation: none; }
}

/* real portrait photos: keep faces and crowns in frame when cropped */
.g img, .story__img, .svc__img img { object-position: 50% 22%; }

/* occasions: up to three photos side by side follow the cursor */
.ofloat { width: auto; height: 250px; display: flex; gap: 10px; overflow: visible; border-radius: 0; box-shadow: none; background: none; }
.ofloat img { flex: none; position: static; width: 190px; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 16px; border: 3px solid var(--ivory); box-shadow: 0 24px 50px rgba(0,0,0,.5); opacity: 0; transform: translateY(14px); transition: transform .5s var(--ease), opacity .35s; }
.ofloat img[hidden] { display: none; }
.ofloat.is-on img { opacity: 1; transform: none; }
.ofloat.is-on img:nth-child(2) { transition-delay: .05s; }
.ofloat.is-on img:nth-child(3) { transition-delay: .1s; }

/* awards: the wide third card keeps its caption visible under the photo (desktop row only:
   on tablets/phones the card stacks and its photo uses the 16:10 ratio from style.css) */
@media (min-width: 1101px) { .awards .award:last-child img { height: auto; min-height: 0; flex: 1 1 0; } }
@media (max-width: 1100px) { .awards .award:last-child img { height: auto; min-height: 0; flex: none; aspect-ratio: 16/10; } }

/* the tilted marquee is wider than the screen: clip it so phones can't pan sideways
   (clip, unlike hidden, doesn't create a scroll container, so sticky elements keep working) */
html, body { overflow-x: clip; }

/* Netlify injects its own badge (/.netlify/scripts/hud) into every page on this plan. Its inline
   script is blocked by our CSP, which would leave an invisible box swallowing clicks in the corner. */
#nl-badge-frame { display: none !important; }

/* reviews: swipe row with arrow buttons */
.reviews__nav { display: flex; gap: 10px; margin-top: 22px; }
.reviews__arrow { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(12,7,8,.22); color: var(--ink); background: #fff; box-shadow: 0 8px 22px rgba(60,20,20,.08); transition: background .3s, color .3s, opacity .3s, transform .3s var(--ease); }
.reviews__arrow:hover:not(:disabled) { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.reviews__arrow:disabled { opacity: .35; cursor: default; }
.reviews__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* kind words: rating badges, source filters, every WedMeGood review with photos */
.reviews__scores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.score { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid rgba(12,7,8,.1); box-shadow: 0 8px 22px rgba(60,20,20,.06); transition: transform .3s var(--ease); }
.score:hover { transform: translateY(-2px); }
.score b { font: 600 1rem/1 var(--sans); color: var(--accent); }
.score span { font-size: .82rem; color: #4d403c; }
.reviews__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.reviews__filters button { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(12,7,8,.2); font-size: .82rem; letter-spacing: .04em; color: var(--ink); transition: background .3s, color .3s; }
.reviews__filters button i { font-style: normal; opacity: .6; margin-left: 4px; }
.reviews__filters button.is-active, .reviews__filters button:hover { background: var(--ink); color: var(--ivory); }
.reviews__rail { align-items: start; overflow-anchor: none; }
.review { min-height: 330px; }
.review[hidden] { display: none; }
.review--wmg::before { content: none; }
.review__stars { color: var(--accent); letter-spacing: .2em; font-size: .9rem; margin-bottom: 14px; }
.review__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; margin-bottom: .6rem; }
.review__text.is-open { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.review__more { align-self: flex-start; padding: 0; margin: 0 0 1rem; font: 600 .8rem/1.4 var(--sans); color: var(--accent); border-bottom: 1px solid currentColor; }
.review__photos { display: flex; gap: 8px; margin: 0 0 1.1rem; overflow-x: auto; scrollbar-width: none; }
.review__photos::-webkit-scrollbar { display: none; }
.review__photo { flex: none; width: 84px; height: 104px; border-radius: 12px; overflow: hidden; padding: 0; cursor: zoom-in; box-shadow: 0 6px 16px rgba(60,20,20,.12); transition: transform .3s var(--ease); }
.review__photo:hover { transform: translateY(-2px); }
.review__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.review cite { margin-top: auto; }
.reviews__nav { align-items: center; }
.reviews__count { order: 3; margin-left: 6px; font: 500 .82rem/1 var(--sans); letter-spacing: .08em; color: #7a6a64; min-width: 70px; }

/* phones: the hero copy sits on her white sweater, so give it a deeper fade and a soft shadow */
@media (max-width: 800px) {
  .hero--frames .hero__vignette { background: linear-gradient(to top, rgba(var(--shade), .92) 0%, rgba(var(--shade), .7) 30%, rgba(var(--shade), .3) 46%, transparent 60%); }
  .hero__hi { color: var(--gold-hi); text-shadow: 0 2px 14px rgba(0, 0, 0, .55); font-weight: 500; }
  .hero__name, .hero__bio { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
}

/* phone menu open: the bar steps aside so only the close (X) button sits over the menu */
.nav { transition: background .4s, border-color .4s, box-shadow .4s, transform .5s var(--ease); }
.nav > * { transition: opacity .3s, visibility .3s; }
.nav.is-menu-open { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-menu-open > :not(.nav__burger) { opacity: 0; visibility: hidden; pointer-events: none; }

/* phone menu: solid background (no page text showing through), sized to fit the screen,
   and scrollable on very short phones instead of spilling past the edges */
.menu { background: var(--ink); overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; padding-top: max(88px, env(safe-area-inset-top)); padding-bottom: 32px; }
.menu > a { font-size: clamp(1.7rem, 7.4vw, 2.6rem); line-height: 1.32; }
.menu__logo { width: 92px; margin-bottom: 18px; flex: none; }
.menu__meta { margin-top: 22px; font-size: .95rem; }
