/* Home showcase — public/css/home-showcase.css */
.vf, .vf-dlg {
    --navy: #21425f;
    --navy-d: #162f46;
    --gold: #f0b92f;
    --paper: #fffdf8;
    --ink-2: rgba(255, 255, 255, .88);
    --ink-3: rgba(255, 255, 255, .72);
    --vf-h: 450px;
    --vf-media-w: 300px;
}
.vf *, .vf *::before, .vf *::after, .vf-dlg *, .vf-dlg *::before, .vf-dlg *::after { box-sizing: border-box; }
.vf [hidden], .vf-dlg [hidden] { display: none !important; }
.vf h2, .vf h3, .vf p, .vf-dlg h3, .vf-dlg p { margin: 0; padding: 0; background: none; border: 0; text-transform: none; text-align: left; letter-spacing: normal; }

.vf {
    width: 100%;
    padding: 64px 0 72px;
    background: linear-gradient(180deg, var(--navy) 0%, #1d3b56 100%);
    border-top: 4px solid var(--gold);
    color: #fff;
    overflow: hidden;
    content-visibility: auto;              /* skip rendering until near viewport */
    contain-intrinsic-size: auto 760px;
}
.vf-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.vf-cap { text-transform: capitalize; }
.vf-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }

/* focus */
.vf :is(button, a, [tabindex]):focus-visible, .vf-dlg :is(button, a, [tabindex]):focus-visible { outline: 3px solid rgba(240, 185, 47, .85); outline-offset: 3px; }

/* heading + category tabs */
.vf-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.vf-heading { max-width: 620px; display: flex; flex-direction: column; gap: 10px; }
.vf-heading h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.vf-heading p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.vf-tabs { display: flex; gap: 28px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.vf-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 0 0 12px; min-height: 44px; color: var(--ink-3); font: 650 15px/1.2 inherit; cursor: pointer; white-space: nowrap; }
.vf-tab:hover, .vf-tab[aria-selected="true"] { color: #fff; }
.vf-tab[aria-selected="true"] { border-bottom-color: var(--gold); }

/* desk: fixed height on desktop */
.vf-desk { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 40px; height: var(--vf-h); align-items: stretch; }
.vf-desk--one { grid-template-columns: minmax(0, 1fr); }
.vf-list { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.vf-item { appearance: none; flex: none; display: flex; align-items: center; width: 100%; min-height: 56px; background: none; border: 0; border-left: 3px solid transparent; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-left: -2px; padding: 12px 8px 12px 20px; cursor: pointer; }
.vf-num { font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .62); }
.vf-item:hover { background: rgba(255, 255, 255, .06); }
.vf-item:hover .vf-num { color: #fff; }
.vf-item[aria-selected="true"] { border-left-color: var(--gold); background: rgba(255, 255, 255, .09); }
.vf-item[aria-selected="true"] .vf-num { color: var(--gold); }

.vf-stages { height: 100%; min-height: 0; min-width: 0; }
.vf-stage { display: grid; grid-template-columns: var(--vf-media-w) minmax(0, 1fr); gap: 44px; height: 100%; min-height: 0; animation: vfIn .25s ease; }
@keyframes vfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* media */
.vf-media { height: 100%; min-height: 0; }
.vf-paper { appearance: none; position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--paper); box-shadow: 0 16px 36px rgba(0, 0, 0, .32); cursor: zoom-in; }
.vf-paper img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vf-blank { display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 64px; cursor: default; opacity: .9; }
video.vf-paper { object-fit: contain; background: #000; cursor: auto; }
.vf-media iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 8px; background: #000; }
.vf-video { display: flex; align-items: center; justify-content: center; background: var(--navy-d); cursor: pointer; text-decoration: none; }
.vf-video img { position: absolute; inset: 0; }
.vf-play { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 22px rgba(0, 0, 0, .4); }
.vf-play .vf-i { fill: currentColor; margin-left: 3px; }

/* copy */
.vf-copy { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.vf-meta { flex: none; display: flex; flex-wrap: wrap; gap: 6px 22px; color: #fff; font-size: 15px; font-weight: 600; }
.vf-chip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.vf-chip .vf-i { font-size: 15px; color: var(--gold); }
.vf-k, .vf-lbl { color: var(--gold); font-weight: 700; }
.vf-lbl { font-size: 13px; }
.vf-title .vf-lbl { font-size: .55em; }
.vf-text .vf-lbl { font-size: inherit; }
.vf-title { flex: none; color: #fff; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vf-field { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.vf-text { color: var(--ink-2); font-size: 16px; line-height: 1.75; max-width: 72ch; white-space: pre-line; overflow-wrap: anywhere; }
.vf-expert { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; min-width: 0; }
.vf-expert a { color: #fff; font-weight: 650; text-decoration: none; }
.vf-expert a:hover { color: var(--gold); text-decoration: underline; }
.vf-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.vf-actions { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.vf-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--gold); color: var(--navy-d); font-size: 15px; font-weight: 750; text-decoration: none; }
.vf-btn:hover { background: #ffc94d; color: var(--navy-d); }
.vf-link { appearance: none; background: none; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .35); min-height: 44px; padding: 4px 0; color: #fff; font-size: 15px; font-weight: 650; cursor: pointer; }
.vf-link:hover { border-bottom-color: var(--gold); }

/* details / image dialog (native <dialog>) */
.vf-dlg { width: min(940px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-top: 4px solid var(--gold); border-radius: 14px; background: var(--navy-d); color: #fff; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overscroll-behavior: contain; }
.vf-dlg::backdrop { background: rgba(5, 12, 24, .82); }
.vf-dlg.is-img { width: auto; max-width: 96vw; background: transparent; border: 0; box-shadow: none; }
.vf-dlg-x { position: sticky; top: 10px; float: right; z-index: 2; margin: 10px 10px 0 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.vf-dlg-x:hover { background: rgba(255, 255, 255, .2); }
.vf-dlg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 64px 32px 32px; }
.vf-dlg-grid.has-img { grid-template-columns: minmax(160px, 280px) minmax(0, 1fr); }
.vf-dlg-thumb { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 8px; background: var(--paper); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.vf-dlg-copy { min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.vf-dlg-full { display: block; max-width: 100%; max-height: calc(100vh - 80px); margin: auto; border-radius: 8px; background: #fff; }
.vf-dlg .vf-title { display: block; overflow: visible; -webkit-line-clamp: unset; }
.vf-dlg .vf-field { overflow: visible; padding: 0; }

/* tablet */
@media (max-width: 1050px) {
    .vf { --vf-h: 470px; --vf-media-w: 240px; }
    .vf-desk { grid-template-columns: minmax(0, 1fr); height: auto; gap: 20px; }
    .vf-list { flex-direction: row; height: auto; border-bottom: 1px solid rgba(255, 255, 255, .14); overflow-x: auto; overflow-y: hidden; gap: 4px; scrollbar-width: none; }
    .vf-item { width: auto; margin: 0 0 -1px; padding: 8px 18px; border-left: 0; border-bottom: 3px solid transparent; justify-content: center; }
    .vf-item[aria-selected="true"] { border-left-color: transparent; border-bottom-color: var(--gold); }
    .vf-num { font-size: 26px; }
    .vf-stage { height: var(--vf-h); gap: 28px; }
}

/* mobile: natural height, text box capped */
@media (max-width: 700px) {
    .vf { padding: 44px 0 52px; }
    .vf-shell { width: calc(100% - 28px); gap: 28px; }
    .vf-tabs { width: 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; }
    .vf-stage { grid-template-columns: minmax(0, 1fr); height: auto; gap: 20px; }
    .vf-media { height: 240px; }
    .vf-copy { height: auto; }
    .vf-field { max-height: 220px; }
    .vf-text { font-size: 15px; }
    .vf-btn { width: 100%; justify-content: center; }
    .vf-dlg { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
    .vf-dlg-grid, .vf-dlg-grid.has-img { grid-template-columns: minmax(0, 1fr); padding: 56px 20px 24px; }
    .vf-dlg-thumb { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    .vf *, .vf-dlg { animation: none !important; transition: none !important; }
}