/* Mode Presentasi studi kasus (resources/views/public/portfolio-present.blade.php, app.js initPresentation).
   Satu slide per layar di atas latar gelap tetap; warna hanya token (tokens.css). Aksen memakai --fm-cream tetap (bukan
   --fm-accent yang menjadi abu-abu di tema gelap). */
.portfolio-deck-body { margin: 0; overflow: hidden; background: var(--fm-shade-950); }
/* Layar rapat tanpa ajakan pasang aplikasi. */
.portfolio-deck-body .install-banner { display: none !important; }
.portfolio-deck { position: fixed; inset: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; color: var(--fm-white); background: linear-gradient(126deg, var(--fm-shade-950) 0%, var(--fm-shade-800) 55%, var(--fm-shade-600) 100%); }
.deck-bar { display: flex; align-items: center; gap: .9rem; padding: .65rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid color-mix(in srgb, var(--fm-white) 12%, transparent); }
.deck-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: .04em; }
.deck-brand .brand-mark { width: 30px; height: 30px; }
.deck-brand small { display: block; color: color-mix(in srgb, var(--fm-white) 60%, transparent); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.deck-title { flex: 1; min-width: 0; overflow: hidden; color: color-mix(in srgb, var(--fm-white) 72%, transparent); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.deck-counter { color: var(--fm-cream); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.deck-icon { display: inline-grid; flex-shrink: 0; width: 40px; height: 40px; place-items: center; border: 1px solid color-mix(in srgb, var(--fm-white) 22%, transparent); border-radius: 50%; background: transparent; color: var(--fm-white); text-decoration: none; transition: background .18s ease; }
.deck-icon:hover, .deck-icon:focus-visible { background: color-mix(in srgb, var(--fm-white) 12%, transparent); color: var(--fm-white); }
.deck-progress { height: 3px; background: color-mix(in srgb, var(--fm-white) 10%, transparent); }
.deck-progress span { display: block; width: 0; height: 100%; background: var(--fm-cream); transition: width .2s ease; }

.deck-slides { position: relative; min-height: 0; }
.deck-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: clamp(1.25rem, 4vw, 3.5rem) clamp(1.25rem, 7vw, 7rem); overflow-y: auto; animation: deck-in .2s ease-out; }
.deck-slide[hidden] { display: none; }
@keyframes deck-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.deck-slide h1 { margin: 0; color: var(--fm-white); font-size: clamp(2rem, 5.2vw, 4.4rem); line-height: 1.05; }
.deck-slide h2 { margin: 0; color: var(--fm-white); font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.15; }
.deck-number, .deck-kicker { color: var(--fm-cream); font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.deck-kicker { display: inline-flex; align-items: center; gap: .45rem; }
.deck-lead { max-width: 46rem; margin: 0; color: color-mix(in srgb, var(--fm-white) 82%, transparent); font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.55; }
.deck-note { max-width: 46rem; margin: 0; padding: .55rem .8rem; border-left: 3px solid var(--fm-cream); background: color-mix(in srgb, var(--fm-white) 8%, transparent); font-size: .85rem; }

.deck-slide.is-cover { display: grid; align-content: center; }
.deck-cover-copy { display: grid; gap: 1rem; }
.deck-cover-media { margin: 0; }
.deck-cover-media img, .deck-slide.is-image img { display: block; max-width: 100%; height: auto; max-height: 60vh; margin: 0 auto; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 60px -30px var(--fm-shadow-base); }

.deck-text { display: grid; gap: .9rem; max-width: 56rem; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.65; }
.deck-text p { margin: 0; }
.deck-list, .deck-steps { display: grid; gap: .8rem; max-width: 56rem; margin: 0; padding: 0; list-style: none; font-size: clamp(1rem, 1.7vw, 1.35rem); }
.deck-list li, .deck-facts > div, .deck-results > div { border: 1px solid color-mix(in srgb, var(--fm-white) 14%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--fm-white) 6%, transparent); }
.deck-list li { padding: .8rem 1rem; }
.deck-steps { counter-reset: deck-step; }
.deck-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; counter-increment: deck-step; }
.deck-steps li::before { display: grid; grid-row: span 2; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 50%; background: var(--fm-cream); color: var(--fm-navy-950); font-size: .95rem; font-weight: 800; content: counter(deck-step); }
.deck-steps span { grid-column: 2; color: color-mix(in srgb, var(--fm-white) 75%, transparent); font-size: .9em; }

.deck-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; width: 100%; max-width: 70rem; margin: 0; }
.deck-facts > div { padding: 1rem 1.1rem; }
.deck-facts dt, .deck-details dt { color: color-mix(in srgb, var(--fm-white) 60%, transparent); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.deck-facts dd { margin: .3rem 0 0; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 700; }
.deck-client-logo { width: auto; max-height: 70px; padding: .5rem; border-radius: 10px; background: var(--fm-white); }
.deck-details { display: grid; gap: .6rem; max-width: 56rem; margin: 0; }
.deck-details dd { margin: .15rem 0 0; }
.deck-palette { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .9rem; }
.deck-palette i { display: inline-block; width: 1.6rem; height: 1.6rem; margin-right: .4rem; border: 1px solid color-mix(in srgb, var(--fm-white) 30%, transparent); border-radius: 6px; vertical-align: middle; }

.deck-slide.is-image figure { display: grid; gap: .7rem; justify-items: center; margin: 0; }
.deck-slide.is-image img { max-height: 68vh; }
.deck-slide.is-image figcaption { color: color-mix(in srgb, var(--fm-white) 75%, transparent); font-size: 1rem; text-align: center; }
.deck-video { width: min(100%, 64rem); margin: 0 auto; }

.deck-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; width: 100%; max-width: 70rem; }
.deck-results > div { display: grid; gap: .3rem; padding: 1.4rem; }
.deck-results strong { color: var(--fm-cream); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.deck-results span { font-size: 1.05rem; font-weight: 700; }
.deck-results small { color: color-mix(in srgb, var(--fm-white) 60%, transparent); }
.deck-quote { max-width: 56rem; margin: 0 auto; }
.deck-quote blockquote { margin: 0; font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.4; }
.deck-quote figcaption { margin-top: 1rem; color: color-mix(in srgb, var(--fm-white) 75%, transparent); }

.deck-slide.is-closing { display: grid; align-content: center; gap: 2rem; }
.deck-cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; padding: .85rem 1.3rem; border-radius: 999px; background: var(--fm-cream); color: var(--fm-navy-950); font-weight: 800; text-decoration: none; }
.deck-cta:hover { color: var(--fm-navy-950); }
.deck-qr { display: grid; gap: .6rem; justify-items: center; margin: 0; }
.deck-qr img { width: 180px; height: 180px; padding: 10px; border-radius: 14px; background: var(--fm-white); }
.deck-qr figcaption { max-width: 14rem; color: color-mix(in srgb, var(--fm-white) 75%, transparent); font-size: .85rem; text-align: center; }

.deck-nav { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem clamp(1rem, 3vw, 2rem) calc(.65rem + env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, var(--fm-white) 12%, transparent); }
.deck-nav button { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem 1.1rem; border: 1px solid color-mix(in srgb, var(--fm-white) 25%, transparent); border-radius: 999px; background: transparent; color: var(--fm-white); font-weight: 700; transition: background .18s ease, opacity .18s ease; }
.deck-nav button:hover:not(:disabled), .deck-nav button:focus-visible { background: color-mix(in srgb, var(--fm-white) 12%, transparent); }
.deck-nav button:disabled { opacity: .35; }

@media (min-width: 992px) {
    .deck-slide.is-cover { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
    .deck-slide.is-closing { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 575.98px) {
    .deck-title { display: none; }
    .deck-brand > span:last-child { display: none; }
    .deck-bar { justify-content: flex-end; }
    .deck-brand { margin-right: auto; }
    .deck-slide { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .deck-slide { animation: none; }
    .deck-progress span, .deck-icon, .deck-nav button { transition: none; }
}
