/* =========================================================
   Gallery Dastaneh — Home page (redesign)
   Dark espresso hero with warm gold light, cream content sections,
   scroll-driven story for use cases, bento gallery with lightbox.
   ========================================================= */

body { background: var(--bg); }
main { display: block; }
section { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--bronze); letter-spacing: .3px; margin-bottom: 10px; }
.kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.kicker.light { color: var(--gold); }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.35; margin: 0; letter-spacing: -.3px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.sec-head p { color: var(--ink-soft); font-size: 15.5px; line-height: 2; margin: 14px 0 0; }

/* ---------- Header (transparent over the hero, glass after scrolling) ---------- */
header.home-header { position: fixed; top: 0; right: 0; left: 0; background: transparent; border-bottom: 1px solid transparent; backdrop-filter: none;
    transition: background .4s var(--ease), border-color .4s, box-shadow .4s; }
header.home-header .headrow { height: 84px; transition: height .4s var(--ease); }
header.home-header .brand span { color: var(--cream-hi); transition: color .4s; }
header.home-header nav a { color: rgba(251,246,234,.78); }
header.home-header nav a:hover { color: var(--gold-hi); }
header.home-header #menuBtn { color: var(--cream-hi); }
header.home-header .head-cta { background: linear-gradient(135deg, var(--gold-hi), var(--gold-2)); color: #2A1C10; }
header.home-header.scrolled { background: rgba(251,246,234,.86); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(46,32,21,.08); }
header.home-header.scrolled .headrow { height: 70px; }
header.home-header.scrolled .brand span { color: var(--bronze-dark); }
header.home-header.scrolled nav a { color: var(--ink-soft); }
header.home-header.scrolled nav a:hover { color: var(--bronze); }
header.home-header.scrolled #menuBtn { color: var(--ink); }
header.home-header.scrolled .acct-link { color: var(--bronze-dark); background: rgba(169,113,63,.08); border-color: rgba(169,113,63,.3); }
#mainNav { display: flex; gap: 28px; font-size: 14.5px; font-weight: 600; }
#mainNav a { position: relative; transition: color .2s; }
#mainNav a::after { content: ''; position: absolute; right: 0; left: 0; bottom: -6px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
#mainNav a:hover::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 14px; }
#menuBtn { display: none; background: none; border: none; padding: 6px; cursor: pointer; line-height: 0; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 70px; color: var(--cream-hi);
    background: radial-gradient(120% 90% at 30% 40%, var(--espresso-3) 0%, var(--espresso-2) 45%, var(--espresso) 100%); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow { position: absolute; width: 900px; height: 900px; left: -120px; top: 50%; transform: translateY(-50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(216,185,138,.30) 0%, rgba(201,162,75,.12) 35%, transparent 65%); filter: blur(10px); animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translateY(-50%) scale(.92); opacity: .8; } to { transform: translateY(-46%) scale(1.06); opacity: 1; } }
.hero-grain { position: absolute; inset: -50%; opacity: .09; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-dust { position: absolute; inset: 0;
    background-image: radial-gradient(1.5px 1.5px at 12% 22%, rgba(243,217,139,.8), transparent), radial-gradient(1px 1px at 72% 18%, rgba(243,217,139,.7), transparent),
      radial-gradient(1.5px 1.5px at 42% 78%, rgba(243,217,139,.6), transparent), radial-gradient(1px 1px at 88% 64%, rgba(243,217,139,.7), transparent),
      radial-gradient(2px 2px at 24% 58%, rgba(243,217,139,.5), transparent), radial-gradient(1px 1px at 58% 38%, rgba(243,217,139,.6), transparent),
      radial-gradient(1.5px 1.5px at 8% 86%, rgba(243,217,139,.5), transparent), radial-gradient(1px 1px at 94% 30%, rgba(243,217,139,.6), transparent);
    animation: drift 24s linear infinite; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-40px); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--gold); padding: 8px 16px; border-radius: 30px;
    border: 1px solid rgba(216,185,138,.35); background: rgba(216,185,138,.08); margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 0 rgba(243,217,139,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(243,217,139,.6); } 70% { box-shadow: 0 0 0 10px rgba(243,217,139,0); } 100% { box-shadow: 0 0 0 0 rgba(243,217,139,0); } }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.3; font-weight: 900; margin: 0 0 24px; letter-spacing: -.5px; }
h1 .h1-line { display: block; color: var(--cream-hi); }
h1 .h1-accent { display: block; background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 40%, #E9C98A 60%, var(--gold-2) 100%); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
@keyframes sheen { to { background-position: -200% center; } }
.hero-lead { font-size: 16.5px; line-height: 2.05; color: rgba(251,246,234,.74); max-width: 520px; margin: 0 0 36px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-stage { position: relative; height: min(640px, 76vh); display: flex; align-items: center; justify-content: center; }
.stage-halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; top: 52%; left: 50%; transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(243,217,139,.28), rgba(216,185,138,.08) 45%, transparent 68%); }
.stage-halo::before, .stage-halo::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(216,185,138,.18); animation: ring 14s linear infinite; }
.stage-halo::after { inset: 16%; border-style: dashed; border-color: rgba(216,185,138,.14); animation-duration: 22s; animation-direction: reverse; }
@keyframes ring { to { transform: rotate(360deg); } }
#heroPendant { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#heroPendant.dragging { cursor: grabbing; }
.stage-caption { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
    padding: 10px 18px; border-radius: 30px; background: rgba(21,14,9,.55); border: 1px solid rgba(216,185,138,.3); backdrop-filter: blur(8px);
    font-size: 13.5px; font-weight: 700; color: var(--cream-hi); transition: opacity .35s, transform .35s var(--ease); }
.stage-caption.swap { opacity: 0; transform: translate(-50%, 6px); }
.cap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 12px var(--gold-hi); }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(216,185,138,.5); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
/* the band is tilted and slightly oversized; the wrapper clips it so the page never scrolls sideways */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; padding: 24px 0; margin: -42px 0 -24px; }
.marquee { background: linear-gradient(90deg, var(--bronze-dark), var(--bronze), var(--bronze-dark)); color: var(--cream-hi);
    overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg) scale(1.02); box-shadow: 0 14px 34px rgba(46,32,21,.25); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; font-size: 18px; font-weight: 800; white-space: nowrap; }
/* spacing as a margin on every item (not flex gap) so the four copies are exactly equal and 25% is one copy */
.marquee-track > * { flex-shrink: 0; margin-inline-end: 26px; }
.marquee-track i { font-style: normal; color: var(--gold-hi); font-size: 14px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(25%); } }   /* one of the four copies */

/* ---------- Highlights ---------- */
.highlights { padding: 70px 0 10px; }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hl { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.hl:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(46,32,21,.08); }
.hl-ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--bronze-dark);
    background: linear-gradient(135deg, #F3E3C8, #E9D2AA); }
.hl b { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 3px; }
.hl span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Use cases: scroll story ---------- */
.uses { padding: 100px 0 60px; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.story-stage { position: sticky; top: 110px; height: calc(100vh - 150px); max-height: 640px; display: flex; align-items: center; }
.stage-frame { position: relative; width: 100%; aspect-ratio: 1; max-height: 100%; border-radius: 34px; overflow: hidden; margin: 0 auto;
    background: radial-gradient(circle at 50% 40%, #FFFBF2, #EBDDC2); box-shadow: 0 40px 80px -30px rgba(46,32,21,.45), 0 0 0 1px rgba(122,74,35,.08); }
.stage-set { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.stage-set.on { opacity: 1; visibility: visible; }
.stage-img { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.stage-img.on { opacity: 1; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.stage-set.on .stage-img.on img { transform: scale(1); }
.stage-img.is-pendant { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #3A2A1D, #150E09); }
.stage-img.is-pendant img, .ch-media .is-pendant img { width: 62%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; transform: none;
    border: 12px solid #D5D9DD; box-shadow: 0 0 0 2px #9DA3A9, 0 0 0 4px #EEF0F2, 0 30px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.2); }
.stage-count { position: absolute; bottom: 18px; left: 18px; padding: 7px 14px; border-radius: 20px; font-size: 13px; color: var(--cream-hi);
    background: rgba(21,14,9,.55); backdrop-filter: blur(6px); }
.stage-count b { color: var(--gold-hi); font-size: 15px; }

.chapters { list-style: none; margin: 0; padding: 0; }
.chapter { display: flex; gap: 22px; min-height: 62vh; padding: 40px 0; opacity: .35; transition: opacity .5s var(--ease); }
.chapter.on { opacity: 1; }
.chapter:first-child { padding-top: 10vh; }
.chapter:last-child { min-height: 70vh; }
.ch-num { flex-shrink: 0; font-size: 15px; font-weight: 900; color: var(--bronze); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--line); background: var(--bg-alt); transition: background .4s, color .4s, border-color .4s; }
.chapter.on .ch-num { background: var(--bronze); color: #fff; border-color: var(--bronze); box-shadow: 0 8px 20px rgba(169,113,63,.35); }
.ch-body { flex: 1; min-width: 0; }
.ch-body h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.5; margin: 6px 0 14px; }
.ch-ico { display: inline-block; margin-inline-end: 10px; }
.ch-body p { font-size: 16px; line-height: 2.05; color: var(--ink-soft); margin: 0 0 18px; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ch-tags span { font-size: 12.5px; font-weight: 700; color: var(--bronze-dark); padding: 6px 13px; border-radius: 20px; background: var(--card); }
.ch-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--bronze-dark); padding: 11px 20px; border-radius: 30px;
    border: 1.5px solid var(--bronze); transition: background .3s, color .3s, gap .3s; }
.ch-cta:hover { background: var(--bronze); color: #fff; gap: 12px; }
.ch-media { display: none; }

/* ---------- How it works ---------- */
.how { padding: 90px 0; background: var(--bg-alt); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; right: 16%; left: 16%; border-top: 2px dashed var(--gold); opacity: .8; }
.step { position: relative; text-align: center; padding: 0 14px; }
.step-num { position: relative; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900; color: #2A1C10; background: linear-gradient(135deg, var(--gold-hi), var(--gold-2)); box-shadow: 0 0 0 8px var(--bg-alt), 0 12px 30px rgba(201,162,75,.4); }
.step h3 { font-size: 19px; font-weight: 900; margin: 0 0 10px; }
.step p { font-size: 14.5px; line-height: 2; color: var(--ink-soft); margin: 0; }

/* ---------- Products ---------- */
.products { padding: 100px 0; }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; perspective: 1200px; }
.prod-card { position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line);
    transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }
.prod-card:hover { box-shadow: 0 40px 70px -30px rgba(46,32,21,.45); }
.prod-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.prod-card:hover .prod-img img { transform: scale(1.07); }
.prod-img .shine { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 45%); opacity: 0; transition: opacity .4s; }
.prod-card:hover .shine { opacity: 1; }
.prod-body { padding: 28px 30px 30px; }
.prod-body h3 { font-size: 24px; font-weight: 900; margin: 0 0 8px; }
.prod-body p { font-size: 15px; color: var(--ink-soft); line-height: 1.9; margin: 0 0 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chips span { background: var(--card); color: var(--bronze-dark); font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 16px; }
.prod-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--bronze-dark); transition: gap .3s; }
.prod-card:hover .prod-cta { gap: 13px; }

/* ---------- Gallery (bento + lightbox) ---------- */
.gallery { padding: 100px 0; background: var(--espresso); color: var(--cream-hi); }
.gallery .sec-head p { color: rgba(251,246,234,.6); }
.gallery .kicker { color: var(--gold); }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.gal-item { position: relative; aspect-ratio: 1; padding: 0; border: none; border-radius: 20px; overflow: hidden; cursor: zoom-in; background: var(--espresso-3); font-family: inherit; }
/* photos are square: featured items take a 2x2 block, one-way spans change the shape */
.gal-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gal-item.tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gal-item.wide.tall { aspect-ratio: 1; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease), filter .6s; }
.gal-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,14,9,.85), transparent 55%); opacity: 0; transition: opacity .45s; }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.08); }
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }
.gal-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gal-cap { position: absolute; z-index: 1; right: 18px; left: 60px; bottom: 16px; text-align: right; font-size: 13.5px; font-weight: 700; color: var(--cream-hi);
    opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s var(--ease); }
.gal-zoom { position: absolute; z-index: 1; left: 14px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(251,246,234,.92); color: var(--bronze-dark); opacity: 0; transform: scale(.7); transition: opacity .45s, transform .45s var(--ease); }
.gal-item:hover .gal-cap, .gal-item:hover .gal-zoom, .gal-item:focus-visible .gal-cap, .gal-item:focus-visible .gal-zoom { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(12,8,5,.92); backdrop-filter: blur(10px);
    opacity: 0; transition: opacity .35s; }
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-figure { margin: 0; max-width: min(88vw, 900px); display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(.94); transition: transform .45s var(--ease); }
.lightbox.open .lb-figure { transform: none; }
.lb-figure img { max-width: 100%; max-height: 80vh; border-radius: 18px; box-shadow: 0 40px 90px rgba(0,0,0,.6); transition: opacity .3s; user-select: none; -webkit-user-drag: none; }
.lb-figure img.fading { opacity: 0; }
.lb-figure figcaption { display: flex; gap: 14px; align-items: center; color: var(--cream-hi); font-size: 14.5px; font-weight: 700; }
.lb-count { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.lb-close, .lb-nav { position: absolute; border: 1px solid rgba(216,185,138,.35); background: rgba(251,246,234,.08); color: var(--cream-hi); cursor: pointer;
    display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .25s, transform .25s; font-family: inherit; }
.lb-close { top: 22px; left: 22px; width: 46px; height: 46px; font-size: 18px; }
.lb-nav { top: 50%; width: 54px; height: 54px; margin-top: -27px; }
.lb-prev { right: 24px; }
.lb-next { left: 24px; }
.lb-close:hover, .lb-nav:hover { background: rgba(216,185,138,.25); transform: scale(1.06); }

/* ---------- Final CTA ---------- */
.final { padding: 100px 0 110px; }
.final-card { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding: 70px 64px; border-radius: 40px; overflow: hidden; color: var(--cream-hi);
    background: radial-gradient(120% 120% at 80% 20%, var(--espresso-3), var(--espresso) 70%); box-shadow: 0 50px 100px -40px rgba(21,14,9,.7); isolation: isolate; }
.final-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
    background: conic-gradient(from var(--ang, 0deg), transparent 0 30%, var(--gold-hi), transparent 50% 80%, var(--gold) 90%, transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinBorder 8s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinBorder { to { --ang: 360deg; } }
.final-glow { position: absolute; z-index: -1; width: 600px; height: 600px; left: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(216,185,138,.25), transparent 60%); }
.final-text h2 { margin: 6px 0 16px; font-size: clamp(28px, 3.6vw, 44px); }
.final-text p { font-size: 16.5px; line-height: 2; color: rgba(251,246,234,.74); margin: 0 0 32px; max-width: 480px; }
.final-note { margin-top: 18px; font-size: 13px; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.final-note::before { content: '✓'; width: 20px; height: 20px; border-radius: 50%; background: rgba(216,185,138,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.final-photos { position: relative; height: 380px; }
.fp { position: absolute; width: 58%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 6px solid var(--cream-hi); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.fp1 { top: 0; left: 4%; transform: rotate(-8deg); z-index: 2; animation: float1 7s ease-in-out infinite; }
.fp2 { bottom: 0; left: 36%; transform: rotate(7deg); z-index: 3; animation: float2 8s ease-in-out infinite; }
.fp3 { top: 18%; right: 0; transform: rotate(-2deg); width: 44%; z-index: 1; opacity: .85; animation: float1 9s ease-in-out infinite reverse; }
@keyframes float1 { 50% { translate: 0 -12px; } }
@keyframes float2 { 50% { translate: 0 10px; } }

/* ---------- Footer ---------- */

/* ---------- Reveal (JS adds .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    #mainNav { gap: 20px; }
    .hl-grid { grid-template-columns: repeat(2, 1fr); }
    .gal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    #menuBtn { display: block; }
    #mainNav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-alt);
        border-bottom: 1px solid var(--line); padding: 8px 40px 16px; box-shadow: 0 12px 24px rgba(58,43,30,.12); }
    #mainNav.open { display: flex; }
    header.home-header nav a, header.home-header.scrolled nav a { color: var(--ink-soft); padding: 13px 0; border-bottom: 1px solid var(--line); }
    #mainNav a::after { display: none; }
    #mainNav a:last-child { border-bottom: none; }
    .hero { padding: 100px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 10px; }
    .hero-text { order: 2; }
    .hero-stage { order: 1; height: 44vh; height: 44svh; min-height: 300px; }
    .hero { justify-content: flex-start; padding-top: 88px; }
    .hero-lead { margin-inline: auto; }
    .cta-row { justify-content: center; }
    .scroll-cue { display: none; }
    .story { grid-template-columns: 1fr; gap: 0; }
    .story-stage { display: none; }
    .chapter { flex-direction: column; gap: 14px; min-height: 0; opacity: 1; padding: 26px 0; border-bottom: 1px solid var(--line); }
    .ch-num { width: 40px; height: 40px; font-size: 14px; background: var(--bronze); color: #fff; border-color: var(--bronze); }
    .chapter:first-child { padding-top: 0; }
    .chapter:last-child { min-height: 0; border-bottom: none; }
    .ch-media { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 18px; padding-bottom: 4px; }
    .ch-media figure { flex: 0 0 78%; margin: 0; aspect-ratio: 1; border-radius: 22px; overflow: hidden; scroll-snap-align: center; }
    .ch-media figure:only-child { flex-basis: 100%; }
    .ch-media img { width: 100%; height: 100%; object-fit: cover; }
    .ch-media figure.is-pendant { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #3A2A1D, #150E09); }
    .steps { grid-template-columns: 1fr; gap: 34px; }
    .steps::before { top: 20px; bottom: 20px; right: 50%; left: auto; border-top: none; border-right: 2px dashed var(--gold); }
    .prod-grid { grid-template-columns: 1fr; }
    .final-card { grid-template-columns: 1fr; padding: 50px 28px; text-align: center; }
    .final-text p { margin-inline: auto; }
    .final-note { justify-content: center; }
    .final-photos { height: 300px; max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
    #mainNav { padding: 8px 20px 16px; }
    .head-cta { padding: 9px 16px; font-size: 13px; }
    .brand span { font-size: 17px; }
    .hl-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hl { flex-direction: column; text-align: center; padding: 16px 10px; gap: 10px; }
    .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gal-cap, .gal-zoom { opacity: 1; transform: none; }
    .gal-item::after { opacity: .7; }
    .gal-cap { font-size: 12px; left: 50px; }
    .gal-zoom { width: 32px; height: 32px; }
    .lb-nav { width: 44px; height: 44px; margin-top: -22px; top: auto; bottom: 26px; }
    .lb-prev { right: calc(50% + 12px); }
    .lb-next { left: calc(50% + 12px); }
    .uses, .products, .gallery { padding: 70px 0; }
    .how { padding: 70px 0; }
    .final { padding: 70px 0; }
    .marquee-track { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- customer reviews ---------- */
.home-reviews { padding: 90px 0; }
.home-reviews .hr-sum { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.home-reviews .hr-sum b { font-size: 18px; color: var(--ink); }
.hr-more { text-align: center; margin-top: 10px; }
.hr-more a { font-weight: 800; color: var(--bronze); }
@media (max-width: 760px) { .home-reviews { padding: 60px 0; } }
