/* =====================================================================
   SHANEXWEBCO — Editor Portfolio (light editorial "PORTFOLIO" reel style)
   File: assets/css/editor-portfolio.css · shared by page-ameen.php (and copies for other team members)
   01 Base · 02 Hero · 03 Reel wall · 04 About + FAQ · 05 CTA · 06 Lightbox · 07 Motion safety
   ===================================================================== */

/* 01 — Base */
.ep {
    --red: #E2312B;
    --red-2: #C8211C;
    --paper: #F1EEEA;
    --ink: #1E1E1E;
    --mute: #6E6A66;
    --tall: 'League Gothic', 'Oswald', 'Arial Narrow', Impact, sans-serif;
    --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --hh: var(--sx-hh, 0px);
    --pad: clamp(16px, 4.5vw, 64px);
    position: relative;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
.ep *, .ep *::before, .ep *::after { box-sizing: border-box; }
.ep h1, .ep h2, .ep h3, .ep p, .ep ul, .ep figure { margin: 0; padding: 0; }
.ep ul { list-style: none; }
.ep img { display: block; max-width: 100%; }
.ep a { color: inherit; }
.ep .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ep-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.ep-ch { display: inline-block; }

/* Halftone dots that fade toward the centre (like printed paper) */
.ep-dots { position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(0,0,0,.12) 1px, transparent 1.4px); background-size: 7px 7px;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, #000 100%); mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, #000 100%); opacity: .55; }

/* The giant tall red word: gradient fill fading down + red outline */
.ep-big { position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap; font: 400 min(33vw, 47svh)/.84 var(--tall); letter-spacing: .005em; pointer-events: none; }
.ep-big .ep-ch { color: var(--red);
    background: linear-gradient(180deg, #E0403A 0%, #E7615B 40%, rgba(236,140,134,.55) 75%, rgba(241,238,234,.2) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    -webkit-text-stroke: clamp(1px, .22vw, 2.5px) var(--red); paint-order: stroke fill; }

/* 02 — Hero (inside the pinned stage) */
.ep-stage { position: relative; background: var(--paper); }
.ep-hero { position: relative; height: calc(100svh - var(--hh)); min-height: 560px; overflow: hidden; transform-origin: 50% 40%; }
.ep-gsap .ep-stage { height: calc(100svh - var(--hh)); min-height: 560px; overflow: hidden; }
.ep-gsap .ep-hero { position: absolute; inset: 0; height: auto; min-height: 0; }
.ep-hero .ep-big { top: 3%; }
.ep-photo { --ep-hf: .72; --ep-x: 50%; --ep-w: min(100vw, calc(max(560px, 100svh - var(--hh)) * var(--ep-hf) * var(--ep-ar, .75)));
    position: absolute; z-index: 2; bottom: 0; width: var(--ep-w); height: calc(var(--ep-hf) * 100%); left: calc(var(--ep-x) - var(--ep-w) / 2);
    display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.ep-photo img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.18)); }
.ep-hello { position: absolute; z-index: 3; left: var(--pad); bottom: 16%; }
.ep-hello__hi { display: block; font: 600 clamp(15px, 3.6vw, 26px)/1 var(--sans); letter-spacing: -.02em; margin-bottom: .2em; padding-left: .1em; }
.ep-hello__name { font: 400 clamp(64px, 19vw, 150px)/.86 var(--tall); color: var(--red); letter-spacing: .01em; }
.ep-role { position: absolute; z-index: 3; right: var(--pad); bottom: 16%; max-width: 46vw; }
.ep-role__title { font: 700 clamp(16px, 4.2vw, 34px)/1.05 var(--sans); color: var(--red); letter-spacing: -.02em; margin-bottom: 8px; }
.ep-role__list { display: grid; gap: 4px; }
.ep-role__list li { display: flex; align-items: center; gap: 8px; font: 400 clamp(12px, 2.9vw, 19px)/1.35 var(--sans); color: var(--ink); }
.ep-star { display: inline-block; font-size: .9em; color: var(--ink); }
.ep-hint { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); font: 600 10.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--mute); padding-top: 26px; }
.ep-hint::before { content: ''; position: absolute; left: 50%; top: 0; width: 1.5px; height: 18px; background: var(--red); animation: epHint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes epHint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 699px) {
    .ep-hello { bottom: 7%; }
    .ep-role { top: calc(3% + min(33vw, 47svh) * .9); bottom: auto; }
    .ep-photo { --ep-hf: .7; --ep-w: min(170vw, calc(max(560px, 100svh - var(--hh)) * var(--ep-hf) * var(--ep-ar, .75))); }
    .ep-photo--cta { --ep-hf: .66; }
    .ep-hello__hi, .ep-role { text-shadow: 0 0 18px rgba(241,238,234,.9), 0 0 4px rgba(241,238,234,.9); }
}
@media (min-width: 900px) {
    .ep-hero .ep-big { top: 2%; font-size: min(34vw, 66svh); }
    .ep-photo { --ep-hf: .9; --ep-x: 48%; --ep-w: min(64vw, calc(max(560px, 100svh - var(--hh)) * var(--ep-hf) * var(--ep-ar, .75))); }
    .ep-hello { left: 6vw; bottom: 9%; }
    .ep-role { right: 7vw; bottom: 12%; max-width: 340px; }
    .ep-hint { display: none; }
}

/* 03 — Reel wall: plain grid without JS; pinned overlay with stacked slots when GSAP runs */
.ep-wall { position: relative; z-index: 4; padding: 40px var(--pad) 60px; background: var(--paper); }
.ep-wall__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 900px; margin: 0 auto; }
.ep-slot { display: contents; }
.ep-reel { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 2px solid #1E1E1E; border-radius: 14px; overflow: hidden; background: #ddd; cursor: pointer; box-shadow: 0 18px 40px -18px rgba(0,0,0,.4); }
.ep-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-reel__play { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--red); box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .3s; }
.ep-reel__play svg { width: 16px; height: 16px; margin-left: 2px; }
.ep-reel:hover .ep-reel__play { transform: scale(1.15); }
.ep-reel:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.ep-wall__count { margin-top: 18px; text-align: center; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ep-wall__count b { color: var(--red); font-weight: 700; }
@media (min-width: 700px) { .ep-wall__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.ep-gsap .ep-wall { position: absolute; inset: 0; padding: 0 var(--pad); background: transparent; display: flex; flex-direction: column; justify-content: center; visibility: hidden; }
.ep-gsap .ep-wall__grid { width: 100%; }
.ep-gsap .ep-slot { display: block; position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; }
.ep-gsap .ep-slot .ep-reel { position: absolute; inset: 0; height: 100%; }
.ep-gsap .ep-wall__grid--1, .ep-gsap .ep-wall__grid--2 { max-width: 520px; }
.ep-gsap .ep-wall__grid--1 { grid-template-columns: 1fr; max-width: 260px; }
.ep-gsap .ep-wall__grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 699px) {
    .ep-gsap .ep-wall__grid { max-width: min(100%, calc((100svh - var(--hh) - 130px) * .5625 * 2 + 12px)); }
}
@media (min-width: 700px) {
    .ep-gsap .ep-wall__grid { max-width: min(1000px, calc((100svh - var(--hh) - 140px) * .5625 * 4 + 54px)); }
}

/* 04 — About + FAQ */
.ep-about { position: relative; padding: clamp(70px, 10vw, 130px) 0; background: #fff; }
.ep-about__grid { display: grid; gap: 40px; }
.ep-kicker { font: 600 12px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ep-about__title { margin-top: 14px; font: 400 clamp(46px, 9vw, 96px)/.92 var(--tall); text-transform: uppercase; letter-spacing: .01em; }
.ep-about__title em { font-style: normal; color: var(--red); }
.ep-about__text { margin-top: 20px; max-width: 560px; font-size: 16px; line-height: 1.75; color: var(--mute); }
.ep-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ep-tools li { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ink); font: 500 13px/1 var(--sans); }
.ep-faq__item { border-top: 1.5px solid #E6E2DD; }
.ep-faq__item:last-child { border-bottom: 1.5px solid #E6E2DD; }
.ep-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.ep-faq__item summary::-webkit-details-marker { display: none; }
.ep-faq__item h3 { font: 600 clamp(16px, 1.6vw, 19px)/1.35 var(--sans); transition: color .3s; }
.ep-faq__item summary:hover h3, .ep-faq__item[open] h3 { color: var(--red); }
.ep-faq__item i { position: relative; flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); transition: background .3s, border-color .3s, color .3s; }
.ep-faq__item i::before, .ep-faq__item i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: currentColor; }
.ep-faq__item i::after { transform: rotate(90deg); transition: transform .35s; }
.ep-faq__item[open] i { background: var(--red); border-color: var(--red); color: #fff; }
.ep-faq__item[open] i::after { transform: rotate(0); }
.ep-faq__item p { padding-bottom: 20px; font-size: 15px; line-height: 1.7; color: var(--mute); }
@media (min-width: 1000px) { .ep-about__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; } }

/* 05 — READY TO / LEVEL UP */
.ep-cta { position: relative; height: calc(100svh - var(--hh)); min-height: 560px; overflow: hidden; background: var(--paper); }
.ep-big--cta { top: 4%; font-size: min(28vw, 50svh); }
.ep-photo--cta { --ep-hf: .74; }
.ep-cta__level { position: absolute; z-index: 3; left: var(--pad); bottom: 17%; font: 400 clamp(54px, 15vw, 130px)/.9 var(--tall); color: #2A2A2A; letter-spacing: .01em; }
.ep-cta__btnwrap { position: absolute; z-index: 4; right: var(--pad); bottom: 19%; }
.ep-cta__ripple { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: rgba(226,49,43,.16); pointer-events: none; animation: epRipple 2.6s ease-out infinite; }
@keyframes epRipple { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.ep-cta__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 150px; padding: 14px 30px; border-radius: 999px; background: var(--red); color: #fff !important; font: 600 clamp(16px, 2vw, 21px)/1 var(--sans); text-decoration: none; box-shadow: 0 14px 34px -12px rgba(226,49,43,.8); transition: background .3s; will-change: transform; }
.ep-cta__btn:hover { background: var(--red-2); }
.ep-cta__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.ep-cta__foot { position: absolute; z-index: 4; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.ep-cta__foot a { text-decoration: none; }
.ep-cta__foot a:hover { color: var(--red); }
@media (max-width: 699px) {
    .ep-cta__level { bottom: 21%; }
    .ep-cta__btnwrap { bottom: 9%; right: 50%; transform: translateX(50%); }
    .ep-cta__foot { bottom: 10px; font-size: 10px; }
}
@media (min-width: 900px) {
    .ep-big--cta { font-size: min(27vw, 66svh); }
    .ep-photo--cta { --ep-hf: .9; --ep-x: 53%; }
    .ep-cta__level { left: 8vw; bottom: 9%; }
    .ep-cta__btnwrap { right: 9vw; bottom: 12%; }
}

/* 06 — Lightbox */
.ep-lb { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: rgba(10,10,10,.92); }
.ep-lb[hidden] { display: none; }
.ep-lb video { max-width: 100%; max-height: 82svh; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; }
.ep-lb__close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: 400 28px/1 var(--sans); cursor: pointer; }
.ep-lb__link { color: #fff !important; font: 500 14px/1 var(--sans); text-decoration: underline; }

/* 07 — Motion safety: intro items hidden only until GSAP starts (3.5s fallback) */
.shx-js:not(.ep-safe):not(.ep-run) .ep-hero .ep-big .ep-ch,
.shx-js:not(.ep-safe):not(.ep-run) .ep-hero .ep-photo,
.shx-js:not(.ep-safe):not(.ep-run) .ep-hello,
.shx-js:not(.ep-safe):not(.ep-run) .ep-role { opacity: 0; }
html:not(.ep-gsap) .ep-hint { display: none; }
@media (prefers-reduced-motion: reduce) {
    .ep-cta__ripple, .ep-hint::before { animation: none; }
}

/* =====================================================================
   08 — Featured videos (3–4 big players with sound)
   ===================================================================== */
.ep-feat { position: relative; padding: clamp(70px, 10vw, 130px) 0; background: var(--paper); }
.ep-feat__head { text-align: center; max-width: 760px; margin: 0 auto clamp(34px, 5vw, 60px); }
.ep-feat__title { margin-top: 10px; font: 400 clamp(64px, 16vw, 170px)/.86 var(--tall); letter-spacing: .01em; }
.ep-feat__line { display: inline-block; white-space: nowrap; }
.ep-feat__line--red .ep-ch { color: var(--red); }
.ep-feat__sub { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--mute); }
.ep-feat__grid { display: grid; gap: 22px; }
.ep-vid { min-width: 0; }
.ep-vid__frame { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: #1a1a1a; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.ep-vid--v .ep-vid__frame { aspect-ratio: 9 / 16; max-height: 80svh; margin: 0 auto; }
.ep-vid__frame video, .ep-vid__frame img, .ep-vid__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.ep-vid__frame iframe { z-index: 3; background: #000; }
.ep-vid__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0; border: 0; background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 55%); cursor: pointer; }
.ep-vid__play span { display: grid; place-items: center; width: clamp(62px, 9vw, 86px); height: clamp(62px, 9vw, 86px); border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 0 rgba(226,49,43,.55); animation: epPlay 2.2s ease-out infinite; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.ep-vid__play svg { width: 42%; height: 42%; margin-left: 6%; }
.ep-vid__play:hover span { transform: scale(1.12); }
.ep-vid__play:focus-visible span { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes epPlay { 0% { box-shadow: 0 0 0 0 rgba(226,49,43,.55); } 100% { box-shadow: 0 0 0 26px rgba(226,49,43,0); } }
.ep-vid__no { position: absolute; z-index: 2; left: 14px; top: 10px; font: 400 clamp(30px, 4vw, 44px)/1 var(--tall); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); pointer-events: none; }
.ep-vid__frame.is-playing .ep-vid__play, .ep-vid__frame.is-playing .ep-vid__no { display: none; }
.ep-vid__info { padding: 14px 4px 0; }
.ep-vid__info span { font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ep-vid__info h3 { margin-top: 4px; font: 600 clamp(17px, 1.6vw, 20px)/1.3 var(--sans); }
@media (min-width: 760px) {
    .ep-feat__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .ep-feat__grid--3 .ep-vid:first-child { grid-column: 1 / -1; }
    .ep-feat__grid--1 { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .ep-vid__play span { animation: none; } }

/* Admin-only empty frames for videos not uploaded yet */
.ep-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; text-align: center; background: repeating-linear-gradient(45deg, #ece8e3, #ece8e3 10px, #f5f2ee 10px, #f5f2ee 20px); border: 2px dashed rgba(226,49,43,.6); color: var(--ink); cursor: default; box-shadow: none; }
.ep-ph span { font: 400 clamp(22px, 3vw, 34px)/1 var(--tall); color: var(--red); text-transform: uppercase; }
.ep-ph code { max-width: 100%; font: 500 11px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; background: #fff; padding: 4px 8px; border-radius: 6px; }
.ep-ph small { font-size: 10.5px; color: var(--mute); }
.ep-vid__frame.ep-ph { position: relative; }