/* A responsive, illustrative view of Discover, its signals, and a campaign pipeline. */
.engine-preview { container: engine-preview / inline-size; margin-top: 48px; padding: clamp(18px, 3vw, 36px); padding-bottom: 20px; border-radius: 32px 32px 0 0; background: var(--night); }
.ep-niches { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ep-niches-label { flex: none; color: #aaaab0; font-size: 12px; }
.ep-niche-list { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ep-niche-list::-webkit-scrollbar { display: none; }
.ep-niche { flex: none; min-height: 38px; padding: 0 15px; border: 1px solid #3c3c42; border-radius: 999px; color: #d7d7dc; font-size: 13px; font-weight: 550; white-space: nowrap; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.ep-niche:hover { border-color: #6a6a70; color: #fff; }
.ep-niche:active { transform: scale(.96); }
.ep-niche:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.ep-niche.is-active { border-color: var(--lime); background: var(--lime); color: #171717; }
.ep-niches-more { flex: none; margin-left: auto; color: #8a8a90; font-size: 12px; white-space: nowrap; }
.ep-window { overflow: hidden; border: 1px solid #d9d9d3; border-radius: 18px; background: #fff; color: #171717; font-size: 13px; line-height: 1.45; letter-spacing: -.015em; box-shadow: 0 20px 60px -24px #000; }
.ep-status-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #328358; }
.ep-stage { position: relative; min-width: 0; height: 520px; overflow: hidden; }
.ep-panel { position: absolute; inset: 0; padding: 28px 32px; }
.ep-panel.is-entering { z-index: 1; }
.ep-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ep-overline { display: block; color: #686862; font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.ep-panel-head h3 { margin-top: 6px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 620; line-height: 1.05; letter-spacing: -.045em; }
.ep-scan { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 9px; border: 1px solid #e6e6e1; border-radius: 999px; color: #686862; font-size: 9px; white-space: nowrap; }
.ep-avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font-size: 9px; font-weight: 650; }
.ep-avatar-pink { background: #fce0ed; color: #882c52; }
.ep-avatar-blue { background: #e5e9fd; color: #3349ae; }
.ep-avatar-lime { background: #eff8db; color: #466519; }
.ep-avatar-peach { background: #ffead8; color: #875729; }
.ep-avatar-mint { background: #daf4e8; color: #276146; }
.ep-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ep-post { min-width: 0; overflow: hidden; border: 1px solid #e6e6e1; border-radius: 10px; background: #fff; }
.ep-post-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; overflow: hidden; padding: 12px; isolation: isolate; }
.ep-lift { position: absolute; top: 8px; left: 8px; padding: 4px 7px; border-radius: 999px; background: var(--lime); color: #171717; font-size: 10px; font-weight: 700; }
.ep-ugc { aspect-ratio: 1 / 1.05; justify-content: flex-start; padding: 0; background: #2a2622; color: #fff; }
.ep-ugc > img, .ep-thumb > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ep-ugc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .18) 0%, transparent 28%, transparent 55%, rgb(0 0 0 / .55) 100%); }
.ep-ugc-caption { position: absolute; top: 66%; left: 50%; max-width: 80%; padding: 5px 8px; border-radius: 6px; background: #fff; color: #111; font-size: clamp(9px, .9vw, 11px); font-weight: 650; line-height: 1.2; letter-spacing: -.01em; text-align: center; transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.ep-ugc-rail { position: absolute; right: 6px; bottom: 26px; display: grid; gap: 7px; justify-items: center; }
.ep-ugc-rail > span { display: grid; justify-items: center; gap: 1px; font-size: 8px; font-weight: 600; text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.ep-ugc-rail .i { font-size: 15px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .4)); }
.ep-ugc-tag { position: absolute; top: 8px; right: 8px; padding: 4px 7px; border-radius: 999px; background: rgb(255 255 255 / .92); color: #171717; font-size: 9px; font-weight: 650; white-space: nowrap; }
/* Each niche gets its own creator style, the way real posts in that space look. */
.ep-style-property .ep-ugc-caption { top: auto; right: auto; bottom: 30px; left: 10px; max-width: 72%; padding: 7px 9px; border-left: 3px solid var(--lime); border-radius: 4px; background: rgb(17 17 17 / .78); color: #fff; text-align: left; transform: none; box-shadow: none; }
.ep-style-property .ep-ugc-tag { background: #171717; color: #fff; }
.ep-style-fitness .ep-ugc-caption { top: 16%; padding: 0; background: none; box-shadow: none; color: #ffe14d; font-size: clamp(12px, 1.25vw, 16px); font-weight: 800; font-style: italic; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; text-shadow: 0 2px 0 #171717, 0 0 10px rgb(0 0 0 / .45); }
.ep-style-fitness .ep-ugc-tag { background: #171717; color: #fff; font-variant-numeric: tabular-nums; }
.ep-style-fitness .ep-ugc-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #ff4d4d; vertical-align: 1px; }
.ep-style-food .ep-ugc-caption { top: 18%; padding: 0; background: none; box-shadow: none; color: #fff; font: italic 400 clamp(15px, 1.6vw, 21px)/1.05 var(--serif); letter-spacing: -.01em; text-shadow: 0 1px 12px rgb(0 0 0 / .55); }
.ep-style-food .ep-ugc-tag { background: #fff3c4; color: #5a4300; }
.ep-style-services .ep-ugc-caption { top: auto; bottom: 30px; max-width: 70%; padding: 3px 6px; border-radius: 2px; background: #000; color: #fff; font-weight: 600; box-shadow: none; transform: translateX(-50%); }
.ep-style-services .ep-ugc-tag { background: rgb(17 17 17 / .6); color: #fff; backdrop-filter: blur(6px); }
.ep-ugc-handle { position: absolute; left: 10px; bottom: 10px; font-size: 9px; font-weight: 650; text-shadow: 0 1px 3px rgb(0 0 0 / .55); }
.ep-post-detail { display: grid; gap: 3px; padding: 10px 11px 11px; }
.ep-post-detail b { font-size: 14px; font-weight: 620; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ep-post-detail span { color: #686862; font-size: 10px; }
.ep-post-detail i { color: #276146; font-size: 12px; font-style: normal; }
.ep-signal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.ep-rank { min-width: 0; border: 1px solid #e6e6e1; border-radius: 14px; overflow: hidden; }
.ep-rank-head, .ep-rank-row { display: grid; grid-template-columns: 16px 38px minmax(0, 1fr) 62px 84px; align-items: center; gap: 10px; padding: 0 14px; }
.ep-rank-head { min-height: 34px; background: #fafaf8; border-bottom: 1px solid #e6e6e1; color: #686862; font-size: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ep-rank-head > span:nth-child(2) { grid-column: 2 / 4; }
.ep-rank-head > span:nth-child(3) { text-align: right; }
.ep-rank-list { margin: 0; padding: 0; list-style: none; }
.ep-rank-row { min-height: 61px; border-bottom: 1px solid #efefeb; transition: background-color 200ms ease; }
.ep-rank-row:last-child { border-bottom: 0; }
.ep-rank-row.is-top { background: linear-gradient(90deg, #f7fde8, #fff 70%); }
.ep-rank-n { color: #8a8a83; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.is-top .ep-rank-n { color: #171717; }
.ep-thumb { position: relative; isolation: isolate; display: block; width: 38px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #2a2622; color: #fff; }
.ep-thumb::after { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid #fff; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5)); transform: translate(-40%, -50%); }
.ep-rank-who { min-width: 0; }
.ep-rank-who > b { display: block; overflow: hidden; font-size: 11px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ep-rank-who small { display: flex; align-items: center; gap: 5px; margin-top: 4px; overflow: hidden; color: #686862; font-size: 9px; white-space: nowrap; }
.ep-rank-who .ep-avatar { width: 15px; height: 15px; font-size: 5px; }
.ep-rank-views { display: grid; text-align: right; font-size: 13px; font-weight: 620; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ep-rank-views small { margin-top: 2px; color: #8a8a83; font-size: 8px; font-weight: 450; letter-spacing: 0; }
.ep-lift-meter { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 22px; border-radius: 6px; background: #f1f1ed; overflow: hidden; }
.ep-lift-meter > i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 6px; background: #e2f6b4; transform-origin: left; }
.is-top .ep-lift-meter > i { background: var(--lime); }
.ep-rank-row:nth-child(2) .ep-lift-meter > i { width: 73%; }
.ep-rank-row:nth-child(3) .ep-lift-meter > i { width: 63%; }
.ep-rank-row:nth-child(4) .ep-lift-meter > i { width: 51%; }
.ep-rank-row:nth-child(5) .ep-lift-meter > i { width: 42%; }
.ep-lift-meter > b { position: relative; padding-right: 7px; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ep-spotlight { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px; border-radius: 14px; background: #171717; color: #fff; }
.ep-spot-top { display: flex; align-items: center; gap: 11px; }
.ep-thumb-lg { flex: none; width: 50px; color: #171717; }
.ep-spot-top > div { display: grid; gap: 3px; min-width: 0; }
.ep-spotlight .ep-overline { color: #a6a6a0; }
.ep-spot-top b { font-size: 14px; font-weight: 620; letter-spacing: -.03em; }
.ep-spot-top small { color: #a6a6a0; font-size: 9px; }
.ep-spot-lift { margin-left: auto; padding: 5px 8px; border-radius: 999px; background: var(--lime); color: #171717; font-size: 12px; font-weight: 700; }
.ep-spark { position: relative; flex: 1; min-height: 82px; padding-top: 14px; }
.ep-spark svg { display: block; width: 100%; height: 100%; min-height: 68px; overflow: visible; }
.ep-spark-base { fill: none; stroke: #5b5b56; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ep-spark-fill { fill: rgb(201 255 71 / .14); }
.ep-spark-line { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ep-spark-label { position: absolute; top: 0; left: 0; color: #a6a6a0; font-size: 8px; }
.ep-spark-usual { position: absolute; right: 0; bottom: 14%; color: #7d7d77; font-size: 8px; }
.ep-spot-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 12px; border-top: 1px solid #2f2f2c; }
.ep-spot-stats b { display: block; font-size: 16px; font-weight: 620; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ep-spot-stats span { display: block; margin-top: 4px; color: #a6a6a0; font-size: 8px; }
.ep-why > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.ep-why > div > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid #36362f; border-radius: 999px; color: #e6e6e0; font-size: 9px; }
.ep-why .i { color: var(--lime); font-size: 10px; }
.ep-live { animation: ep-pulse 1.8s ease-in-out infinite; }
/* Create: each finished piece sits on a studio canvas as the real thing. */
.ep-made-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ep-made { --tone: #fbd4e5; --tone-ink: #171717; --tone-deep: #e9a9c6; min-width: 0; overflow: hidden; border: 1px solid #e6e6e1; border-radius: 14px; background: #fff; transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms ease; }
.ep-tone-blue { --tone: #3d5afe; --tone-ink: #fff; --tone-deep: #2337c4; }
.ep-tone-lime { --tone: #d8efaa; --tone-ink: #171717; --tone-deep: #a9d45a; }
.ep-made:hover { border-color: #d6d6cf; box-shadow: 0 18px 40px -22px rgb(23 23 23 / .35); transform: translateY(-3px); }
.ep-made-art { container-type: inline-size; position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 1px 1px, rgb(23 23 23 / .09) 1px, transparent 0) 0 0 / 14px 14px, linear-gradient(160deg, #f7f7f3, #efefe9); }
.ep-made-art::before { content: ""; position: absolute; inset: 18% 22%; z-index: -1; border-radius: 50%; background: var(--tone); opacity: .35; filter: blur(34px); }
.ep-mk-brand { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 3.4cqw; font-weight: 650; letter-spacing: -.01em; }
.ep-mk-brand > i { display: grid; flex: none; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--tone-ink); color: var(--tone); font-size: .78em; font-style: normal; }

/* Carousel deck */
.ep-mk-deck { position: relative; width: 48%; aspect-ratio: 4 / 5; margin-top: -4%; }
.ep-mk-slide { position: absolute; inset: 0; border-radius: 3.4cqw; background: var(--tone); box-shadow: 0 1px 0 rgb(255 255 255 / .4) inset, 0 10px 24px -12px rgb(23 23 23 / .35); transition: transform 420ms var(--ease); }
.ep-mk-back2 { background: var(--tone-deep); opacity: .55; transform: translateX(26%) rotate(9deg) scale(.9); }
.ep-mk-back1 { background: var(--tone-deep); opacity: .85; transform: translateX(14%) rotate(4.5deg) scale(.95); }
.ep-mk-front { display: flex; flex-direction: column; padding: 7% 8%; color: var(--tone-ink); }
.ep-mk-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 8%; }
.ep-mk-front .ep-mk-n { font-size: 2.8cqw; font-weight: 650; letter-spacing: .04em; opacity: .65; white-space: nowrap; }
.ep-mk-front > b { margin-top: auto; font-size: 6.6cqw; font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.ep-mk-swipe { display: inline-flex; align-items: center; gap: 2px; padding: 1.4cqw 2.6cqw; border-radius: 999px; background: var(--tone-ink); color: var(--tone); font-size: 2.8cqw; font-weight: 650; }
.ep-mk-swipe .i { font-size: 1.15em; }
.ep-mk-dots { position: absolute; bottom: 6%; left: 50%; display: flex; gap: 1.2cqw; transform: translateX(-50%); }
.ep-mk-dots > i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: rgb(23 23 23 / .18); }
.ep-mk-dots > i:first-child { width: 4cqw; border-radius: 999px; background: #171717; }
.ep-made:hover .ep-mk-back2 { transform: translateX(40%) rotate(14deg) scale(.9); }
.ep-made:hover .ep-mk-back1 { transform: translateX(22%) rotate(7deg) scale(.95); }
.ep-made:hover .ep-mk-front { transform: translateX(-6%) rotate(-2deg); }

/* Vertical Reel */
.ep-mk-reel { position: relative; display: flex; flex-direction: column; width: 38%; aspect-ratio: 9 / 16; margin-top: 10%; overflow: hidden; padding: 7% 7% 9%; border: 1.2cqw solid #121212; border-radius: 5cqw; background: #222; color: #fff; isolation: isolate; box-shadow: 0 18px 34px -16px rgb(23 23 23 / .55); transition: transform 420ms var(--ease); }
.ep-mk-reel > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.6s var(--ease); }
.ep-mk-reel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .35), transparent 30%, transparent 50%, rgb(0 0 0 / .65)); }
.ep-mk-bar { display: block; height: 2px; margin-bottom: 7%; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / .35); }
.ep-mk-bar > i { display: block; width: 38%; height: 100%; background: #fff; }
.ep-mk-reel .ep-mk-brand { font-size: 2.5cqw; text-shadow: 0 1px 3px rgb(0 0 0 / .4); }
.ep-mk-reel .ep-mk-brand > i { background: var(--tone); color: var(--tone-ink); }
.ep-mk-play { position: absolute; top: 46%; left: 50%; display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 50%; background: rgb(255 255 255 / .22); backdrop-filter: blur(6px); font-size: 4cqw; transform: translate(-50%, -50%); transition: transform 260ms var(--ease), opacity 260ms ease; }
.ep-mk-cap { margin-top: auto; margin-right: 12%; font-size: 3.7cqw; font-weight: 750; line-height: 1.02; letter-spacing: -.035em; text-shadow: 0 1px 8px rgb(0 0 0 / .45); }
.ep-mk-rail { position: absolute; right: 5%; bottom: 9%; display: grid; gap: 2.6cqw; font-size: 3.6cqw; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .45)); }
.ep-mk-chip { position: absolute; display: inline-flex; align-items: center; gap: 4px; padding: 1.4cqw 2.6cqw; border: 1px solid #e6e6e1; border-radius: 999px; background: #fff; color: #171717; font-size: 2.8cqw; font-weight: 650; box-shadow: 0 8px 18px -10px rgb(23 23 23 / .4); transition: transform 420ms var(--ease); }
.ep-mk-chip-a { top: 20%; left: 9%; font-variant-numeric: tabular-nums; }
.ep-mk-chip-a::before { content: ""; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #ff4d4d; }
.ep-mk-chip-b { right: 8%; bottom: 22%; background: var(--tone); border-color: transparent; color: var(--tone-ink); }
.ep-made:hover .ep-mk-reel { transform: translateY(-4%) rotate(-1.5deg); }
.ep-made:hover .ep-mk-reel > img { transform: scale(1.06); }
.ep-made:hover .ep-mk-play { transform: translate(-50%, -50%) scale(1.12); }
.ep-made:hover .ep-mk-chip-a { transform: translate(-8%, -10%); }
.ep-made:hover .ep-mk-chip-b { transform: translate(8%, 10%); }

/* Footer */
.ep-made-copy { display: grid; gap: 5px; padding: 11px 13px 13px; border-top: 1px solid #efefea; }
.ep-made-copy > span { color: #686862; font-size: 10px; }
.ep-mk-status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 620; }
.ep-mk-status.is-done { color: #276146; }
.ep-mk-status > .ep-status-dot { background: #c68c2d; }

/* Entrance: the deck fans out and the Reel starts playing. */
.ep-panel.is-entering .ep-made:nth-child(2) { animation-delay: 80ms; }
.ep-panel.is-entering .ep-made:nth-child(3) { animation-delay: 160ms; }
.ep-panel.is-entering .ep-mk-back2 { animation: ep-fan2 620ms var(--ease) 220ms both; }
.ep-panel.is-entering .ep-mk-back1 { animation: ep-fan1 620ms var(--ease) 180ms both; }
.ep-panel.is-entering .ep-mk-reel { animation: ep-rise 560ms var(--ease) 160ms both; }
.ep-panel.is-entering .ep-mk-chip { animation: ep-pop 380ms var(--ease) 520ms both; }
.ep-panel.is-entering .ep-mk-bar > i { animation: ep-play 3.2s linear 400ms both; }
@keyframes ep-fan2 { from { transform: none; } }
@keyframes ep-fan1 { from { transform: none; } }
@keyframes ep-rise { from { opacity: 0; transform: translateY(14%) scale(.94); } }
@keyframes ep-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes ep-play { from { width: 0; } to { width: 62%; } }
.ep-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.ep-scenes { display: flex; flex: 1; align-items: stretch; gap: 12px; max-width: 600px; }
.ep-scene { position: relative; display: flex; flex: 1; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px 8px; overflow: hidden; border-bottom: 2px solid #36363a; color: #b5b5ba; font-size: 13px; font-weight: 500; text-align: left; transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.ep-scene > span { color: #939398; font-size: 10px; font-variant-numeric: tabular-nums; }
.ep-scene > i { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.ep-scene.is-active { color: #fff; }
.ep-scene.is-active > span { color: var(--lime); }
.ep-scene:hover { background: #1a1a20; color: #fff; }
.ep-scene:active, .ep-playback:active { transform: scale(.96); }
.ep-playback { display: flex; align-items: center; justify-content: center; flex: none; gap: 8px; min-width: 86px; min-height: 42px; padding: 0 13px; border: 1px solid #48484d; border-radius: 999px; color: #d7d7dc; font-size: 11px; transition: background-color 180ms ease, transform 180ms ease; }
.ep-playback:hover { background: #26262d; }
.ep-playback:focus-visible, .ep-scene:focus-visible { outline-color: var(--lime); }
.ep-pause-icon { width: 9px; height: 11px; border-right: 3px solid currentColor; border-left: 3px solid currentColor; }
.ep-playback[aria-label="Play dashboard preview"] .ep-pause-icon { width: 0; height: 0; border-top: 5px solid transparent; border-right: 0; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.engine-preview figcaption { margin-top: 14px; color: #aaaab0; font-size: 11px; line-height: 1.6; }
.ep-panel.is-entering .ep-arrive { animation: ep-arrive 400ms var(--ease) both; }
.ep-panel.is-entering .ep-arrive:nth-child(2) { animation-delay: 60ms; }
.ep-panel.is-entering .ep-arrive:nth-child(3), .ep-panel.is-entering .ep-lane:nth-child(2) { animation-delay: 120ms; }
.ep-panel.is-entering .ep-lane:nth-child(3) { animation-delay: 180ms; }
.ep-panel.is-entering .ep-rank-row { animation: ep-arrive 380ms var(--ease) both; }
.ep-panel.is-entering .ep-rank-row:nth-child(2) { animation-delay: 70ms; }
.ep-panel.is-entering .ep-rank-row:nth-child(3) { animation-delay: 140ms; }
.ep-panel.is-entering .ep-rank-row:nth-child(4) { animation-delay: 210ms; }
.ep-panel.is-entering .ep-rank-row:nth-child(5) { animation-delay: 280ms; }
.ep-panel.is-entering .ep-lift-meter > i { animation: ep-grow 700ms var(--ease) 250ms both; }
.ep-panel.is-entering .ep-spark-line { stroke-dasharray: 1; animation: ep-draw 1100ms var(--ease) 200ms both; }
.ep-panel.is-entering .ep-spark-fill { animation: ep-fade 600ms ease 700ms both; }
[data-preview-motion="paused"] .ep-creator-spark, [data-preview-motion="paused"] .ep-live { animation-play-state: paused; }
@keyframes ep-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ep-signal { 0%, 100% { opacity: .35; transform: scale(.8); } 45% { opacity: 1; transform: scale(1); } }
@keyframes ep-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ep-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ep-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ep-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(50 131 88 / .45); } 60% { box-shadow: 0 0 0 5px rgb(50 131 88 / 0); } }

/* The preview replaces the abstract business diagram; the explanation stays beneath it. */
.core-engine .engine-system { grid-template-columns: minmax(0, 1fr); margin-top: 0; padding-top: 8px; border-radius: 0 0 32px 32px; }
.core-engine .engine-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.core-engine .engine-steps li, .core-engine .engine-steps li:first-child, .core-engine .engine-steps li:last-child { display: block; padding: 20px 0 0; border: 0; }
.core-engine .engine-number { display: block; margin-bottom: 12px; }
.core-engine .engine-steps h3 { font-size: clamp(20px, 1.9vw, 26px); }
.core-engine .engine-steps p { font-size: 14px; }
@media (max-width: 960px) {
  .core-engine .engine-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
}
@container engine-preview (max-width: 760px) {
  .ep-panel { padding: 24px; }
  .ep-post-grid { gap: 10px; }
  .ep-ugc-rail { display: none; }
  .ep-made-grid { gap: 10px; }
  .ep-signal-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .ep-rank-head, .ep-rank-row { grid-template-columns: 12px 32px minmax(0, 1fr) 48px 50px; gap: 8px; padding: 0 10px; }
  .ep-rank-views small { display: none; }
  .ep-thumb { width: 32px; }
}
@container engine-preview (max-width: 520px) {
  .ep-stage { height: 590px; }
  .ep-panel { padding: 20px 16px; }
  .ep-panel-head { align-items: flex-start; margin-bottom: 20px; }
  .ep-panel-head h3 { margin-top: 7px; font-size: clamp(22px, 6.5cqw, 25px); }
  .ep-overline { font-size: 8px; }
  .ep-scan { display: none; }
  .ep-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-post-art { padding: 10px; }
  .ep-ugc { aspect-ratio: 4 / 5; }
  .ep-ugc-rail { display: none; }
  .ep-lift { top: 6px; left: 6px; font-size: 8px; }
  .ep-post-detail { padding: 8px 9px 9px; }
  .ep-post-detail b { font-size: 13px; }
  .ep-post-detail span { font-size: 9px; }
  .ep-ugc-caption { font-size: 9px; }
  .ep-style-food .ep-ugc-caption { top: 30%; font-size: 14px; }
  .ep-style-fitness .ep-ugc-caption { top: 28%; font-size: 11px; }
  .ep-style-property .ep-ugc-caption, .ep-style-services .ep-ugc-caption { bottom: 26px; }
  .ep-ugc-tag { top: 6px; right: 6px; padding: 3px 6px; font-size: 8px; }
  .ep-made-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ep-made { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; }
  .ep-made-art { aspect-ratio: 1; }
  .ep-mk-deck { width: 54%; margin-top: -6%; }
  .ep-mk-front > b { font-size: 8.4cqw; }
  .ep-mk-foot, .ep-mk-front .ep-mk-brand, .ep-mk-chip { display: none; }
  .ep-mk-reel { width: 46%; margin-top: 4%; }
  .ep-mk-cap { margin-right: 0; font-size: 5cqw; }
  .ep-mk-rail, .ep-mk-reel .ep-mk-brand { display: none; }
  .ep-made-copy { border-top: 0; padding: 14px; }
  .ep-made:hover { transform: none; }
  .ep-signal-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ep-rank-head, .ep-rank-row { grid-template-columns: 12px 30px minmax(0, 1fr) 42px 48px; gap: 7px; padding: 0 10px; }
  .ep-rank-row { min-height: 54px; }
  .ep-rank-row:nth-child(n + 5) { display: none; }
  .ep-thumb { width: 30px; }
  .ep-spotlight { gap: 10px; padding: 13px; }
  .ep-spark { display: none; }
  .ep-spot-stats { padding-top: 10px; }
  .ep-why { display: none; }
}
@media (max-width: 640px) {
  .ep-niches { order: -2; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .ep-niches-label { width: 100%; font-size: 11px; }
  .ep-niche-list { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; }
  .ep-niche { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .ep-niches-more { display: none; }
  .engine-preview { display: flex; flex-direction: column; margin-top: 32px; padding: 16px; padding-bottom: 16px; border-radius: 24px 24px 0 0; }
  .ep-window { border-radius: 12px; }
  .ep-controls { order: -1; gap: 8px; margin: 0 0 16px; }
  .ep-scenes { min-width: 0; gap: 4px; }
  .ep-scene { justify-content: center; gap: 0; padding-inline: 2px; font-size: 10px; }
  .ep-scene > span { display: none; }
  .ep-playback { width: 36px; min-width: 36px; min-height: 36px; padding: 0; }
  .ep-playback [data-preview-playback-label] { display: none; }
  .engine-preview figcaption { margin-top: 12px; font-size: 10px; }
  .core-engine .engine-system { padding-top: 0; border-radius: 0 0 24px 24px; }
  .core-engine .engine-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .core-engine .engine-steps li, .core-engine .engine-steps li:first-child, .core-engine .engine-steps li:last-child { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding-block: 22px; border-bottom: 1px solid rgb(244 243 238 / .14); }
  .core-engine .engine-steps li:last-child { border: 0; }
  .core-engine .engine-number { margin: 0; }
  .core-engine .engine-steps h3 { font-size: 23px; }
  .core-engine .engine-steps p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .engine-preview *, .engine-preview *::before, .engine-preview *::after { animation: none !important; transition: none !important; }
}
