/* =========================================================
   MPP Jewellers – E-Catalogue "The Lookbook Reels"
   Film-reel showcase + 3D flipbook viewer
   ========================================================= */
.ecat {
    --ink: #07110d;
    --ink-2: #0d1f17;
    --ink-3: #14302a;
    --gold: #d4af37;
    --gold-2: #f3d27a;
    --gold-3: #a8842a;
    --cream: #f6efe0;
    --muted: rgba(246, 239, 224, .62);
    background: radial-gradient(120% 80% at 50% 0%, #133227 0%, var(--ink) 55%) fixed, var(--ink);
    color: var(--cream);
    overflow: clip;
    font-family: 'Montserrat', sans-serif;
}
.ecat h1, .ecat h2 { font-family: 'Cinzel', serif; font-weight: 500; color: var(--cream); margin: 0; }
.ecat-eyebrow {
    display: inline-block; font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
    color: var(--gold); font-weight: 600;
}

/* Buttons */
.ecat-btn {
    --b: var(--gold);
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 15px 30px; border-radius: 999px; font: 600 13px/1 'Montserrat', sans-serif;
    letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
    border: 1px solid var(--b); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s, color .35s;
    position: relative; overflow: hidden; isolation: isolate;
}
.ecat-btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-3)); color: #1a1205; border-color: transparent; }
.ecat-btn--gold::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s;
}
.ecat-btn--gold:hover::after { transform: translateX(120%); }
.ecat-btn--ghost { background: transparent; color: var(--cream); border-color: rgba(212,175,55,.45); }
.ecat-btn--ghost:hover { background: rgba(212,175,55,.12); color: var(--gold-2); }
.ecat-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(212,175,55,.55); }
.ecat-btn:focus-visible, .ecat-frame-btn:focus-visible, .ecat-tile:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }

/* Reveal on scroll */
.ecat-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.ecat-reveal.is-in { opacity: 1; transform: none; }

/* ---------------- HERO ---------------- */
.ecat-hero {
    position: relative; min-height: min(92vh, 880px); display: grid; place-items: center;
    padding: 90px 20px 110px; isolation: isolate;
}
.ecat-hero-grid { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.ecat-hero-grid .ecat-hero-inner { text-align: left; }
.ecat-hero-grid .ecat-lead { margin: 0; }
.ecat-hero-grid .ecat-stats, .ecat-hero-grid .ecat-hero-cta { justify-content: flex-start; }

/* Fanned deck of catalogue covers */
.ecat-fan-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.ecat-fan { --w: clamp(170px, 17vw, 240px); position: relative; width: 100%; height: calc(var(--w) * 2.05); }
.ecat-fan-card {
    --a: calc((var(--i) - (var(--n) - 1) / 2) * 10deg);
    position: absolute; left: 50%; bottom: 6%; width: var(--w); aspect-ratio: 4 / 5; margin-left: calc(var(--w) / -2);
    padding: 0; border: 1px solid rgba(243,210,122,.35); border-radius: 8px; overflow: hidden; cursor: pointer; background: #111;
    transform-origin: 50% 135%; transform: rotate(0deg) translateY(30px); opacity: 0;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4);
    transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .6s, box-shadow .5s, filter .5s;
    transition-delay: calc(var(--i) * 70ms + .25s);
    z-index: calc(10 - var(--i));
    filter: brightness(.72) saturate(.9);
}
.ecat-fan-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecat.is-ready .ecat-fan-card { transform: rotate(var(--a)); opacity: 1; }
.ecat.is-ready .ecat-fan-card.is-active {
    transform: rotate(calc(var(--a) * .6)) translateY(-42px) scale(1.08); z-index: 30; filter: none; transition-delay: 0s;
    box-shadow: 0 40px 70px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(243,210,122,.8), 0 0 50px -10px rgba(212,175,55,.55);
}
.ecat.is-ready .ecat-fan-card:not(.is-active) { transition-delay: 0s; }
.ecat-fan-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 48%, transparent 60%); background-size: 260% 100%; background-position: 130% 0; }
.ecat-fan-card.is-active .ecat-fan-shine { animation: ecatShine 1.4s .2s ease-out; }
@keyframes ecatShine { to { background-position: -130% 0; } }
.ecat-fan-caption { text-align: center; margin-top: 4px; min-height: 74px; display: flex; flex-direction: column; gap: 4px; }
.ecat-fan-caption small { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ecat-fan-caption strong { font: 500 clamp(22px, 2.2vw, 30px)/1.1 'Cinzel', serif; color: var(--cream); }
.ecat-fan-caption span { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.ecat-fan-caption.is-swap strong, .ecat-fan-caption.is-swap small { animation: ecatCap .5s both; }
@keyframes ecatCap { from { opacity: 0; transform: translateY(8px); } }
.ecat-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ecat-hero-glow {
    position: absolute; z-index: -2; width: 70vmin; height: 70vmin; left: 72%; top: 46%;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,.28), rgba(212,175,55,0) 65%);
    filter: blur(10px); animation: ecatBreathe 7s ease-in-out infinite;
}
@keyframes ecatBreathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .75; } }
.ecat-hero-inner { max-width: 880px; }
.ecat-title { font-size: clamp(44px, min(5.6vw, 10vh), 92px); line-height: .92; letter-spacing: .02em; margin: 22px 0 26px; }
.ecat-title-line { display: block; overflow: hidden; padding: .04em 0; }
.ecat-title-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.ecat-title-line:nth-child(2) > span { transition-delay: .12s; }
.ecat-title-line:nth-child(3) > span { transition-delay: .24s; }
.ecat.is-ready .ecat-title-line > span { transform: none; }
.ecat-title-gold > span {
    font-style: italic; font-family: 'Playfair Display', 'Cormorant Garamond', serif; font-weight: 500;
    background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold-2) 30%, #fff6d6 45%, var(--gold) 60%, var(--gold-3) 100%);
    background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: ecatSheen 6s linear infinite;
}
@keyframes ecatSheen { to { background-position: -220% 0; } }
.ecat-lead { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.8; max-width: 640px; margin: 0 auto; }
.ecat-stats { display: flex; justify-content: center; gap: clamp(26px, 5vw, 60px); margin: 34px 0 34px; }
.ecat-stats div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ecat-stats strong { font: 500 clamp(30px, 4vw, 44px)/1 'Cinzel', serif; color: var(--gold-2); }
.ecat-stats span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.ecat-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ecat-scroll-cue { position: absolute; bottom: 34px; left: 50%; width: 26px; height: 44px; margin-left: -13px; border: 1px solid rgba(212,175,55,.5); border-radius: 20px; }
.ecat-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: ecatCue 1.8s infinite; }
@keyframes ecatCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------------- FEATURE (3D book) ---------------- */
.ecat-feature { padding: 70px 20px 110px; }
.ecat-feature-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.ecat-book3d-wrap { perspective: 1800px; display: grid; place-items: center; position: relative; }
.ecat-book3d {
    --rx: 8deg; --ry: -22deg;
    position: relative; width: min(380px, 78vw); aspect-ratio: 1 / var(--ratio, 1.25);
    border: 0; padding: 0; background: none; cursor: pointer;
    transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .9s cubic-bezier(.2,.8,.2,1);
    animation: ecatFloat 6s ease-in-out infinite;
}
@keyframes ecatFloat { 50% { translate: 0 -14px; } }
.ecat-book3d:hover { --ry: -8deg; --rx: 4deg; }
.ecat-book3d-cover { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; transform: translateZ(14px); box-shadow: inset 6px 0 12px -6px rgba(0,0,0,.6); }
.ecat-book3d-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecat-book3d-cover::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 18px; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.12) 40%, transparent); z-index: 1; }
.ecat-book3d-pages {
    position: absolute; top: 5px; bottom: 5px; left: calc(100% - 15px); width: 26px; transform: rotateY(90deg);
    background: repeating-linear-gradient(90deg, #f8f1e1 0 2px, #d9cfb8 2px 3px);
}
.ecat-book3d::after { /* back cover */
    content: ''; position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; background: #2a160c; transform: translateZ(-14px);
}
.ecat-book3d-shine { position: absolute; inset: 0; transform: translateZ(15px); border-radius: 3px 8px 8px 3px; pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.25) 48%, rgba(255,255,255,0) 60%); background-size: 250% 100%; background-position: var(--sx, 120%) 0; transition: background-position .3s; }
.ecat-book3d-shadow { position: absolute; bottom: -38px; width: 70%; height: 30px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.65), transparent 70%); filter: blur(6px); animation: ecatShadow 6s ease-in-out infinite; }
@keyframes ecatShadow { 50% { transform: scale(.85); opacity: .7; } }
.ecat-now { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ecat-now i { width: 8px; height: 8px; border-radius: 50%; background: #e0483e; box-shadow: 0 0 0 0 rgba(224,72,62,.7); animation: ecatRec 1.6s infinite; }
@keyframes ecatRec { 70% { box-shadow: 0 0 0 10px rgba(224,72,62,0); } 100% { box-shadow: 0 0 0 0 rgba(224,72,62,0); } }
.ecat-feature-copy h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; margin: 18px 0 14px; }
.ecat-feature-tag { font: italic 400 clamp(19px, 2vw, 24px)/1.4 'Playfair Display', serif; color: var(--gold-2); margin: 0 0 16px; }
.ecat-feature-desc { color: var(--muted); line-height: 1.8; margin: 0 0 22px; }
.ecat-feature-meta { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.ecat-feature-meta li { font-size: 12px; letter-spacing: .08em; padding: 8px 14px; border: 1px solid rgba(212,175,55,.3); border-radius: 999px; color: var(--cream); }
.ecat-feature-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- REELS (film strip) ---------------- */
.ecat-reels { position: relative; padding-top: 40px; }
.ecat-reels-head { text-align: center; padding: 0 20px 46px; max-width: 760px; margin: 0 auto; }
.ecat-reels-head { max-width: 1100px; }
.ecat-reels-head h2 { font-size: clamp(26px, 3.4vw, 46px); margin: 14px 0 12px; white-space: nowrap; }
.ecat-reels-head p, .ecat-lead, .ecat-feature-desc, .ecat-cta p { text-wrap: pretty; }
.ecat h2 { text-wrap: balance; }
.ecat-reels-head p { color: var(--muted); margin: 0; }
.ecat-reels-pin { position: relative; }          /* height set by JS on desktop */
.ecat-reels-sticky { position: sticky; top: var(--hdr, 0px); height: calc(100vh - var(--hdr, 0px)); display: flex; align-items: center; overflow: hidden; }
.ecat-strip {
    display: flex; gap: 0; padding: 0 8vw; will-change: transform;
    background:
        linear-gradient(#050a08, #050a08) top / 100% 46px no-repeat,
        linear-gradient(#050a08, #050a08) bottom / 100% 46px no-repeat;
    position: relative;
}
.ecat-strip::before, .ecat-strip::after { /* sprocket holes */
    content: ''; position: absolute; left: 0; right: 0; height: 18px; pointer-events: none;
    background: radial-gradient(closest-side, transparent 0) ;
    background-image: linear-gradient(90deg, rgba(246,239,224,.9) 0 16px, transparent 16px 40px);
    background-size: 40px 18px; background-repeat: repeat-x;
    -webkit-mask: linear-gradient(#000 0 0); border-radius: 3px; opacity: .14;
}
.ecat-strip::before { top: 14px; }
.ecat-strip::after { bottom: 14px; }
.ecat-frame { flex: 0 0 auto; padding: 56px 18px; border-right: 2px solid #050a08; background: #0a1511; }
.ecat-frame-btn { display: block; width: clamp(200px, min(26vw, calc((100vh - var(--hdr, 0px) - 360px) * .8)), 330px); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; }
.ecat-frame-media { position: relative; display: block; aspect-ratio: 1 / var(--ratio, 1.25); overflow: hidden; border-radius: 4px; background: #111; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.ecat-frame-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .7s, clip-path .9s cubic-bezier(.7,0,.2,1), filter .6s; }
.ecat-frame-cover { filter: sepia(.25) saturate(.85) brightness(.9); }
.ecat-frame-peek { clip-path: inset(0 0 0 100%); }
.ecat-frame-btn:hover .ecat-frame-cover, .ecat-frame-btn:focus-visible .ecat-frame-cover { transform: scale(1.06); filter: none; }
.ecat-frame-btn:hover .ecat-frame-peek, .ecat-frame-btn:focus-visible .ecat-frame-peek { clip-path: inset(0 0 0 42%); transition-delay: .25s; }
.ecat-frame-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); pointer-events: none; }
.ecat-frame-film { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: overlay; opacity: .35;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px); }
.ecat-frame-btn { position: relative; }
.ecat-frame-play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
    display: grid; place-items: center; color: #1a1205; background: rgba(243,210,122,.92); transform: scale(.6); opacity: 0; transition: .5s cubic-bezier(.2,.8,.2,1); }
.ecat-frame-play svg { width: 24px; height: 24px; margin-left: 3px; }
.ecat-frame-btn:hover .ecat-frame-play { transform: scale(1); opacity: 1; }
.ecat-frame-info { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; }
.ecat-frame-no { font: 600 10px/1 'Montserrat', sans-serif; letter-spacing: .34em; color: var(--gold); text-transform: uppercase; }
.ecat-frame-title { font: 500 24px/1.15 'Cinzel', serif; color: var(--cream); transition: color .3s; }
.ecat-frame-btn:hover .ecat-frame-title { color: var(--gold-2); }
.ecat-frame-sub { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
/* Reel navigation (arrows + numbered tabs + counter) */
.ecat-reels-sticky { flex-direction: column; justify-content: center; gap: 22px; }
.ecat-reelnav { display: flex; align-items: center; gap: 14px; width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 10px 12px; border-radius: 999px;
    background: rgba(7,17,13,.78); border: 1px solid rgba(212,175,55,.25); backdrop-filter: blur(6px); }
.ecat-rn-arrow { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(212,175,55,.5); background: transparent; color: var(--cream); transition: .25s; }
.ecat-rn-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ecat-rn-arrow:hover:not(:disabled) { background: var(--gold); color: #1a1205; border-color: var(--gold); transform: scale(1.06); }
.ecat-rn-arrow:disabled { opacity: .3; cursor: default; }
.ecat-rn-tabs { position: relative; flex: 1; display: flex; justify-content: space-between; gap: 4px; min-width: 0; }
.ecat-rn-track { position: absolute; left: 18px; right: 18px; top: 50%; height: 1px; background: rgba(246,239,224,.16); pointer-events: none; }
.ecat-rn-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width .15s linear; }
.ecat-rn-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 0; border-radius: 999px; background: #0a1511; color: var(--muted); cursor: pointer; transition: .3s; min-width: 0; }
.ecat-rn-tab b { font: 600 12px/1 'Montserrat', sans-serif; letter-spacing: .1em; color: inherit; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(212,175,55,.35); background: #0a1511; transition: .3s; }
.ecat-rn-tab em { font-style: normal; font-size: 12px; letter-spacing: .04em; white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s, opacity .3s; }
.ecat-rn-tab:hover { color: var(--cream); }
.ecat-rn-tab:hover b { border-color: var(--gold); }
.ecat-rn-tab.is-active { color: var(--cream); background: rgba(212,175,55,.14); }
.ecat-rn-tab.is-active b { background: var(--gold); color: #1a1205; border-color: var(--gold); }
.ecat-rn-tab.is-active em { max-width: 160px; opacity: 1; }
.ecat-rn-count { flex: 0 0 auto; font-size: 12px; letter-spacing: .12em; color: var(--muted); min-width: 58px; text-align: center; }
.ecat-rn-count b { color: var(--gold-2); font: 500 18px 'Cinzel', serif; }
.ecat-rn-hint { margin: 0; text-align: center; font-size: 11px; letter-spacing: .14em; color: rgba(246,239,224,.5); display: flex; align-items: center; justify-content: center; gap: 10px; }
.ecat-rn-mouse { width: 16px; height: 24px; border: 1px solid rgba(212,175,55,.6); border-radius: 10px; position: relative; }
.ecat-rn-mouse::after { content: ''; position: absolute; left: 50%; top: 5px; width: 2px; height: 5px; margin-left: -1px; border-radius: 2px; background: var(--gold); animation: ecatCue 1.8s infinite; }
.ecat:not(.has-pin) .ecat-rn-hint { display: none; }
.ecat-frame.is-current .ecat-frame-cover { filter: none; }
.ecat-frame.is-current .ecat-frame-title { color: var(--gold-2); }
.ecat-progress { position: sticky; bottom: 26px; width: min(300px, 50vw); height: 2px; margin: -40px auto 0; background: rgba(246,239,224,.15); z-index: 3; }
.ecat-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.ecat:not(.has-pin) .ecat-progress { display: none; }

/* No pinning (mobile / reduced motion): swipe strip */
.ecat:not(.has-pin) .ecat-reels-sticky { position: static; height: auto; overflow: visible; }
.ecat:not(.has-pin) .ecat-strip-scroller { width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ecat:not(.has-pin) .ecat-strip-scroller::-webkit-scrollbar { display: none; }
.ecat:not(.has-pin) .ecat-strip { padding: 0 20px; }
.ecat:not(.has-pin) .ecat-frame { scroll-snap-align: center; }

/* ---------------- INSIDE (marquee) ---------------- */
.ecat-inside { padding: 120px 0 60px; }
.ecat-marquee { overflow: hidden; padding: 10px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ecat-marquee-track { display: flex; gap: 16px; width: max-content; animation: ecatMarquee 70s linear infinite; }
.ecat-marquee--rev .ecat-marquee-track { animation-direction: reverse; animation-duration: 80s; }
.ecat-marquee:hover .ecat-marquee-track { animation-play-state: paused; }
@keyframes ecatMarquee { to { transform: translateX(-50%); } }
.ecat-tile { position: relative; flex: 0 0 auto; width: 170px; aspect-ratio: 4/5; border: 0; padding: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: #111; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.ecat-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecat-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 9px; font-size: 10.5px; letter-spacing: .06em; color: #fff; text-align: left;
    background: linear-gradient(transparent, rgba(0,0,0,.75)); transform: translateY(100%); transition: transform .4s; }
.ecat-tile:hover { transform: translateY(-8px) rotate(-1.5deg) scale(1.04); box-shadow: 0 24px 40px -18px rgba(212,175,55,.6); z-index: 2; }
.ecat-tile:hover span { transform: none; }

/* ---------------- CTA ---------------- */
.ecat-cta { padding: 80px 20px 130px; }
.ecat-cta-inner { max-width: 900px; margin: 0 auto; text-align: center; padding: clamp(40px, 6vw, 70px); border-radius: 24px; position: relative;
    background: linear-gradient(160deg, rgba(212,175,55,.14), rgba(212,175,55,.02)); border: 1px solid rgba(212,175,55,.28); overflow: hidden; }
.ecat-cta-inner::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; border: 1px solid rgba(212,175,55,.25); box-shadow: 0 0 0 40px rgba(212,175,55,.04), 0 0 0 90px rgba(212,175,55,.03); }
.ecat-cta h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; margin-bottom: 16px; }
.ecat-cta h2 em { font-family: 'Playfair Display', serif; color: var(--gold-2); font-weight: 400; display: block; }
.ecat-cta p { color: var(--muted); line-height: 1.8; max-width: 620px; margin: 0 auto 30px; }
.ecat-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ecat-empty { text-align: center; padding: 40px 20px 120px; color: var(--muted); }

/* =========================================================
   FLIPBOOK VIEWER
   ========================================================= */
.fb { position: fixed; inset: 0; z-index: 10050; color: #f6efe0; font-family: 'Montserrat', sans-serif; }
.fb[hidden] { display: none; }
.fb-backdrop { position: absolute; inset: 0; background: radial-gradient(100% 80% at 50% 40%, rgba(22,48,38,.96), rgba(4,9,7,.98)); backdrop-filter: blur(8px); animation: fbFade .5s both; }
@keyframes fbFade { from { opacity: 0; } }
.fb-shell { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; animation: fbRise .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fbRise { from { opacity: 0; transform: scale(.97); } }
.fb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(14px, 3vw, 30px); }
.fb-titlebox { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fb-reel { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: #d4af37; }
.fb-title { font: 500 clamp(16px, 2vw, 22px)/1.2 'Cinzel', serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-tools { display: flex; gap: 6px; }
.fb-tool { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(212,175,55,.3); background: rgba(255,255,255,.03); color: #f6efe0; cursor: pointer; transition: .25s; text-decoration: none; }
.fb-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fb-tool:hover, .fb-tool.is-on { background: #d4af37; color: #1a1205; border-color: #d4af37; }
.fb-tool[hidden] { display: none; }
.fb-close { background: rgba(255,255,255,.08); }

.fb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 6px clamp(56px, 7vw, 100px); }
.fb-book-wrap { width: 100%; height: 100%; display: grid; place-items: center; perspective: 2600px; }
.fb-book { position: relative; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.fb-book::before { /* soft floor shadow */
    content: ''; position: absolute; left: 4%; right: 4%; bottom: -26px; height: 26px; border-radius: 50%;
    background: radial-gradient(rgba(0,0,0,.6), transparent 70%); filter: blur(4px);
}
.fb-leaf { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; transform-origin: left center; transition: transform .95s cubic-bezier(.45,.05,.2,1); will-change: transform; cursor: grab; }
.fb-leaf.is-dragging { transition: none; cursor: grabbing; }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #f6efe0; }
.fb-face img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.fb-face--front { border-radius: 0 4px 4px 0; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.fb-face--back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.fb-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0); transition: opacity .95s; }
.fb-face--front::after { background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 18%), linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.35)); }
.fb-face--back::after { background: linear-gradient(270deg, rgba(0,0,0,.28), transparent 18%), linear-gradient(270deg, rgba(0,0,0,0), rgba(0,0,0,.35)); }
.fb-face--front::before, .fb-face--back::before { /* spine gutter shading (always) */
    content: ''; position: absolute; top: 0; bottom: 0; width: 7%; z-index: 1; pointer-events: none;
}
.fb-face--front::before { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.22), transparent); }
.fb-face--back::before { right: 0; background: linear-gradient(270deg, rgba(0,0,0,.22), transparent); }
.fb-face--blank { background: linear-gradient(135deg, #1d3a30, #0d1f17); }
.fb-face--blank::before { display: none; }
.fb-face img.is-loading { opacity: 0; }
.fb-face img { transition: opacity .4s; }
.fb-face .fb-spin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%; border: 2px solid rgba(168,132,42,.25); border-top-color: #a8842a; animation: fbSpin 1s linear infinite; }
@keyframes fbSpin { to { transform: rotate(360deg); } }

.fb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(212,175,55,.35); background: rgba(7,17,13,.55); color: #f6efe0; cursor: pointer; display: grid; place-items: center; z-index: 5; transition: .25s; }
.fb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fb-nav:hover:not(:disabled) { background: #d4af37; color: #1a1205; }
.fb-nav:disabled { opacity: .25; cursor: default; }
.fb-prev { left: clamp(6px, 2vw, 26px); }
.fb-next { right: clamp(6px, 2vw, 26px); }
.fb-hint { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .14em; color: rgba(246,239,224,.45); white-space: nowrap; animation: fbHint 6s 1.5s both; pointer-events: none; }
@keyframes fbHint { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

.fb-foot { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 14px clamp(14px, 3vw, 30px) 20px; }
.fb-scrub { display: flex; align-items: center; gap: 14px; flex: 1 1 320px; max-width: 520px; }
.fb-count { font: 500 13px/1 'Montserrat', sans-serif; letter-spacing: .1em; min-width: 74px; color: rgba(246,239,224,.8); }
.fb-range { flex: 1; -webkit-appearance: none; appearance: none; height: 2px; background: linear-gradient(90deg, #d4af37 var(--p, 0%), rgba(246,239,224,.2) var(--p, 0%)); border-radius: 2px; outline: none; }
.fb-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #f3d27a; border: 3px solid #0d1f17; box-shadow: 0 0 0 1px #d4af37; cursor: pointer; }
.fb-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #f3d27a; border: 3px solid #0d1f17; cursor: pointer; }
.fb-ask, .fb-vc { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; font: 600 12px/1 'Montserrat', sans-serif; letter-spacing: .08em; text-decoration: none; cursor: pointer; transition: .25s; }
.fb-ask { background: #25d366; color: #05200f; border: 0; }
.fb-ask:hover { background: #3ee07a; transform: translateY(-1px); }
.fb-vc { background: transparent; color: #f6efe0; border: 1px solid rgba(212,175,55,.45); }
.fb-vc:hover { background: rgba(212,175,55,.15); }

.fb-thumbs { position: absolute; inset: 70px 0 0; background: rgba(5,11,9,.94); overflow-y: auto; padding: 20px clamp(14px, 4vw, 50px) 40px; z-index: 8; animation: fbFade .3s; }
.fb-thumbs[hidden], .fb-zoom[hidden] { display: none; }
.fb-thumbs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; max-width: 1200px; margin: 0 auto; }
.fb-thumb { border: 0; padding: 0; background: none; cursor: pointer; color: rgba(246,239,224,.7); font-size: 11px; letter-spacing: .1em; text-align: center; }
.fb-thumb img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 8px; outline: 2px solid transparent; outline-offset: 3px; transition: .25s; }
.fb-thumb:hover img { transform: translateY(-4px); }
.fb-thumb.is-current img { outline-color: #d4af37; }
.fb-zoom { position: absolute; inset: 0; z-index: 9; background: #050b09; overflow: auto; cursor: zoom-out; animation: fbFade .3s; }
.fb-zoom img { display: block; width: min(1200px, 100%); margin: 0 auto; }
.fb-zoom-close { position: fixed; top: 16px; right: 16px; }
.fb-toast { position: absolute; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #f3d27a; color: #1a1205; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; transition: .35s; pointer-events: none; z-index: 10; }
.fb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.fb-open { overflow: hidden; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .ecat-rn-tab.is-active em { max-width: 0; opacity: 0; }
    .ecat-rn-tab { padding: 6px; }
}
@media (max-width: 900px) {
    .ecat-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .ecat-hero-grid .ecat-hero-inner { text-align: center; }
    .ecat-hero-grid .ecat-lead { margin: 0 auto; }
    .ecat-hero-grid .ecat-stats, .ecat-hero-grid .ecat-hero-cta { justify-content: center; }
    .ecat-hero-glow { left: 50%; }
    .ecat-fan { --w: clamp(130px, 34vw, 190px); }
    .ecat-feature-inner { grid-template-columns: 1fr; text-align: center; }
    .ecat-feature-meta, .ecat-feature-actions { justify-content: center; }
    .ecat-book3d { --ry: -14deg; }
}
@media (max-width: 767px) {
    .ecat-hero { padding: 80px 18px 100px; min-height: 0; }
    .ecat-frame { padding: 56px 12px; }
    .ecat-frame-btn { width: 62vw; }
    .ecat-tile { width: 130px; }
    .ecat-reelnav { gap: 8px; padding: 8px; order: -1; }
    .ecat-rn-arrow { width: 40px; height: 40px; }
    .ecat-rn-tab b { width: 26px; height: 26px; font-size: 11px; }
    .ecat-rn-count { display: none; }
    .ecat-hero { padding-top: 60px; }
    .fb-stage { padding: 4px 8px 26px; }
    .fb-nav { top: auto; bottom: 0; margin: 0; width: 44px; height: 44px; }
    .fb-prev { left: 12px; } .fb-next { right: 12px; }
    .fb-hide-sm, .fb-hint { display: none; }
    .fb-reel { font-size: 9px; letter-spacing: .22em; white-space: nowrap; }
    .fb-tool { width: 38px; height: 38px; }
    .fb-foot { gap: 10px; padding-bottom: 16px; }
    .fb-scrub { flex-basis: 100%; }
    .fb-ask span, .fb-vc span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .ecat *, .fb * { animation: none !important; transition-duration: .01ms !important; }
    .ecat-reveal { opacity: 1; transform: none; }
    .ecat-title-line > span { transform: none; }
}

/* ---- Reels carousel (auto-moving) ---- */
.ecat { --fw: clamp(210px, min(24vw, calc((100vh - var(--hdr, 0px) - 300px) * .8)), 320px); }
.ecat-frame-btn { width: var(--fw) !important; }
.ecat .ecat-strip { width: max-content; padding-inline: 0 !important; }
.ecat-reels-sticky { padding: 10px 0 20px; }
.ecat-frame { transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; }
.ecat-frame:not(.is-current) { opacity: .5; transform: scale(.92); filter: saturate(.7); }
.ecat-frame:not(.is-current):hover { opacity: .85; }
.ecat-frame.is-current { opacity: 1; transform: none; }
.ecat-frame.is-current .ecat-frame-media { box-shadow: 0 30px 60px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(243,210,122,.55), 0 0 60px -14px rgba(212,175,55,.5); }
@media (max-width: 767px) {
    .ecat { --fw: 62vw; }
    .ecat-reels-head h2 { white-space: normal; }
}
