/* =========================================================================
   Project Details page — Hero / Web / Mobile / Related.
   Per-project branding via --brand / --brand-dark / --brand-light set inline.
   Reuses the site's light paper theme + white glass surfaces (theme.css).
   --pd-accent is the brand colour darkened for text on light surfaces
   (--brand-light is a lightened tint and fails contrast on paper).
   ========================================================================= */

.pd-section,
.pd-related-card {
    --pd-accent: color-mix(in srgb, var(--brand) 60%, var(--vs-navy));
}

.pd-section {
    padding: 116px 0 96px;
    position: relative;
    z-index: 1;
}

/* Ambient brand glow tinting the page with the project's own colour */
.pd-glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 640px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(58% 60% at 20% 0%, color-mix(in srgb, var(--brand) 20%, transparent) 0%, transparent 62%),
        radial-gradient(46% 52% at 88% 6%, color-mix(in srgb, var(--brand-light) 22%, transparent) 0%, transparent 60%);
}

/* ----------------------------- Breadcrumb ------------------------------ */
.pd-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vs-ink-faint);
    margin-bottom: 26px;
}
.pd-crumbs a {
    color: var(--vs-ink-soft);
    transition: color 0.25s var(--vs-ease);
}
.pd-crumbs a:hover { color: var(--pd-accent); }
.pd-crumb-sep { font-size: 0.75rem; opacity: 0.5; }
.pd-crumbs [aria-current] { color: var(--vs-ink); }

/* -------------------------------- Hero --------------------------------- */
.pd-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--vs-radius-lg);
    border: 1px solid var(--vs-glass-border);
    background: var(--vs-glass-bg);
    -webkit-backdrop-filter: blur(var(--vs-glass-blur));
    backdrop-filter: blur(var(--vs-glass-blur));
    box-shadow: var(--vs-shadow);
    margin-bottom: 38px;
}

/* Blurred cover art as atmosphere */
.pd-hero-bg {
    position: absolute;
    inset: -10%;
    z-index: 0;
}
.pd-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(34px) saturate(1.5);
    transform: scale(1.12);
    opacity: 0.30;
}

.pd-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent) 0%, transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.84) 78%, rgba(255, 255, 255, 0.92) 100%);
}

.pd-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 46px 44px 34px;
}

.pd-hero-main { max-width: 760px; }

.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: color-mix(in srgb, var(--brand) 88%, black 12%);
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--brand-light) 45%, transparent);
}

.pd-badge--live {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.40);
    color: #047857;
}

.pd-badge--soft {
    background: var(--vs-glass-bg-strong);
    border-color: var(--vs-glass-border);
    color: var(--vs-ink);
}

/* Pulsing "live" dot */
.pd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pd-pulse 2s infinite;
}
@keyframes pd-pulse {
    70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pd-title {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 10px;
    color: var(--vs-ink);
}

.pd-tagline {
    font-size: 1.1rem;
    color: var(--pd-accent);
    font-weight: 600;
    margin: 0;
}

.pd-hero-desc {
    color: var(--vs-ink-soft);
    font-size: 1rem;
    line-height: 1.7;
    margin: 14px 0 0;
    max-width: 640px;
}

.pd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--vs-ink-faint);
    font-weight: 600;
}
.pd-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pd-hero-meta .fa { color: var(--pd-accent); }

.pd-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.pd-hero-cta .vs-btn { font-size: 0.92rem; padding: 13px 24px; }

/* Fixed logo plate — see the matching rule in showcase.css. The uploaded logo
   is contained inside a stable box so square icons and wide wordmarks both
   render legibly instead of being scaled by height alone. */
.pd-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 104px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid var(--vs-line);
    box-shadow: 0 14px 30px -12px rgba(10, 22, 40, 0.28);
    flex-shrink: 0;
}
.pd-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ------------------------------- Stats --------------------------------- */
.pd-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border-top: 1px solid var(--vs-glass-border);
    background: var(--vs-glass-bg-strong);
}

.pd-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    border-right: 1px solid var(--vs-glass-border);
    cursor: pointer;
    outline-offset: -3px;
    transition: background-color 0.3s var(--vs-ease);
}
.pd-stat:last-child { border-right: 0; }
.pd-stat:hover,
.pd-stat:focus-within,
.pd-stat.is-open { background: rgba(10, 22, 40, 0.04); }

/* Little "more" cue at the far right of each stat */
.pd-stat-hint {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--vs-ink-faint);
    border: 1px solid var(--vs-glass-border);
    transition: transform 0.3s var(--vs-ease), color 0.3s var(--vs-ease), border-color 0.3s var(--vs-ease);
}
.pd-stat:hover .pd-stat-hint,
.pd-stat:focus-within .pd-stat-hint,
.pd-stat.is-open .pd-stat-hint {
    color: var(--pd-accent);
    border-color: color-mix(in srgb, var(--brand) 55%, transparent);
    transform: translateY(-2px);
}

/* ---------------------------- Stat popovers -----------------------------
   Opens upward: the hero clips its overflow and the stats sit along its
   bottom edge, so there is room above and none below. The last two tiles
   anchor from the right so a wide panel never runs past the hero. */
.pd-stat-pop {
    position: absolute;
    left: 18px;
    bottom: calc(100% + 12px);
    z-index: 40;
    width: min(360px, calc(100vw - 48px));
    max-height: 320px;
    /* The panel itself must not scroll -- its arrow (::after) hangs ~10px
       below the box and would raise a phantom scrollbar under overflow:auto.
       The list inside scrolls instead, which also pins the title in place. */
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    box-shadow: 0 24px 50px -20px rgba(10, 22, 40, 0.4);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    cursor: default;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.28s var(--vs-ease), transform 0.32s var(--vs-ease), visibility 0s linear 0.32s;
}
.pd-stat:nth-last-child(-n + 2) .pd-stat-pop { left: auto; right: 18px; }
.pd-stat-pop::after {
    content: "";
    position: absolute;
    left: 34px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    transform: rotate(45deg);
}
.pd-stat:nth-last-child(-n + 2) .pd-stat-pop::after { left: auto; right: 34px; }
.pd-stat:hover .pd-stat-pop,
.pd-stat:focus-within .pd-stat-pop,
.pd-stat.is-open .pd-stat-pop {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.pd-pop-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vs-ink-faint);
}
.pd-pop-title .fa { color: var(--pd-accent); }

.pd-pop-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* The one scrolling region. A bar only appears when the content is genuinely
   taller than the panel, and it is a slim brand rail rather than browser
   chrome; it also stops dragging the page once it bottoms out. */
.pd-pop-list,
.pd-pop-chips {
    min-height: 0;          /* lets the flex child shrink so it can scroll */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--brand) 55%, transparent) transparent;
}
.pd-pop-list::-webkit-scrollbar,
.pd-pop-chips::-webkit-scrollbar { width: 6px; }
.pd-pop-list::-webkit-scrollbar-track,
.pd-pop-chips::-webkit-scrollbar-track {
    background: transparent;
    margin: 2px 0;
}
.pd-pop-list::-webkit-scrollbar-thumb,
.pd-pop-chips::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-light), var(--brand));
}
.pd-pop-list::-webkit-scrollbar-thumb:hover,
.pd-pop-chips::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
}

.pd-pop-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--vs-ink);
    transition: background-color 0.25s var(--vs-ease);
}
.pd-pop-list li:hover { background: rgba(10, 22, 40, 0.05); }

.pd-pop-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    /* Darker end of the brand ramp: --brand-light is a *lightened* tint, and a
       white glyph on it washes out for pale brands. */
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border: 1px solid color-mix(in srgb, var(--brand-light) 30%, transparent);
}
.pd-pop-name {
    font-size: 0.92rem;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pd-pop-meta {
    margin-left: auto;
    flex: 0 0 auto;
    padding-left: 10px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--vs-ink-faint);
}

/* Key features are sentences, not labels -- let them wrap in full. */
.pd-pop-list--text li { align-items: flex-start; }
.pd-pop-list--text .pd-pop-name {
    white-space: normal;
    overflow: visible;
    font-weight: 600;
    line-height: 1.4;
}
.pd-pop-list--text .pd-pop-icon {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    font-size: 0.7rem;
}

.pd-pop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pd-pop-chip {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--vs-ink);
    background: rgba(10, 22, 40, 0.04);
    border: 1px solid var(--vs-line);
    transition: border-color 0.25s var(--vs-ease), background-color 0.25s var(--vs-ease);
}
.pd-pop-chip:hover {
    border-color: color-mix(in srgb, var(--brand) 55%, transparent);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.pd-pop-empty {
    margin: 0;
    font-size: 0.88rem;
    color: var(--vs-ink-soft);
}

.pd-stat .fa {
    font-size: 1.4rem;
    color: var(--pd-accent);
}

.pd-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--vs-ink);
}

.pd-stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vs-ink-faint);
}

/* -------------------------------- Tabs --------------------------------- */
.pd-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--vs-glass-bg);
    border: 1px solid var(--vs-glass-border);
    -webkit-backdrop-filter: blur(var(--vs-glass-blur));
    backdrop-filter: blur(var(--vs-glass-blur));
    margin-bottom: 30px;
    scroll-margin-top: 100px;
}

.pd-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--vs-ink-soft);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 11px 26px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: background-color 0.25s var(--vs-ease), color 0.25s var(--vs-ease);
}
.pd-tab:hover { color: var(--vs-ink); }
.pd-tab.is-active {
    background: var(--vs-navy);
    color: #fff;
    box-shadow: var(--vs-shadow-brand);
}

.pd-tab-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.pd-panel { display: none; }
.pd-panel.is-active { display: block; animation: pd-fade 0.45s var(--vs-ease); }

@keyframes pd-fade {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* ------------------------------ Web panel ------------------------------ */
.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.pd-main > * + * { margin-top: 22px; }

/* Browser chrome around the cover shot */
.pd-browser {
    border-radius: var(--vs-radius);
    overflow: hidden;
    border: 1px solid var(--vs-glass-border);
    background: #fff;
    box-shadow: var(--vs-shadow);
}

.pd-browser-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    background: rgba(10, 22, 40, 0.04);
    border-bottom: 1px solid var(--vs-line);
}

.pd-browser-dots { display: inline-flex; gap: 6px; }
.pd-browser-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.18);
}
.pd-browser-dots i:first-child { background: #ff5f57; }
.pd-browser-dots i:nth-child(2) { background: #febc2e; }
.pd-browser-dots i:nth-child(3) { background: #28c840; }

.pd-browser-url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vs-ink-faint);
    background: #fff;
    border: 1px solid var(--vs-line);
    border-radius: 999px;
    padding: 5px 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pd-browser-url .fa { font-size: 0.7rem; color: #047857; }

.pd-cover {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
/* The browser frame exists to show the uploaded banner, so the artwork is
   contained rather than cropped — `cover` was slicing the top off banners that
   are not 16/10 (headings and logos in the artwork were being cut). The brand
   gradient on .pd-cover fills whatever letterboxing is left. */
.pd-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.7s var(--vs-ease);
}
.pd-browser:hover .pd-cover img { transform: scale(1.045); }

.pd-cover-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
}
.pd-cover-empty .fa { font-size: 3rem; opacity: 0.85; }
.pd-cover-empty span { font-weight: 700; letter-spacing: 0.04em; }
/* Logo shown in place of a missing banner — same contained plate as the card. */
.pd-cover-logo {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(320px, 60%);
    height: 120px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 14px 30px -12px rgba(10, 22, 40, 0.35);
}
.pd-cover-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.pd-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, transparent 45%, rgba(6, 10, 14, 0.82) 100%);
    opacity: 0;
    transition: opacity 0.35s var(--vs-ease);
}
.pd-cover-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: color-mix(in srgb, var(--brand) 90%, black 10%);
    padding: 11px 22px;
    border-radius: 999px;
    transform: translateY(10px);
    transition: transform 0.35s var(--vs-ease);
    box-shadow: 0 12px 26px -10px rgba(10, 22, 40, 0.5);
}
.pd-browser:hover .pd-cover-overlay,
.pd-cover-overlay:focus-visible { opacity: 1; }
.pd-browser:hover .pd-cover-overlay span { transform: none; }

/* Content cards */
.pd-card {
    background: var(--vs-glass-bg);
    border: 1px solid var(--vs-glass-border);
    -webkit-backdrop-filter: blur(var(--vs-glass-blur));
    backdrop-filter: blur(var(--vs-glass-blur));
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
    padding: 26px;
    transition: border-color 0.35s var(--vs-ease), background-color 0.35s var(--vs-ease);
}
.pd-card:hover { border-color: color-mix(in srgb, var(--brand) 34%, transparent); }

.pd-aside .pd-card + .pd-card { margin-top: 20px; }

.pd-h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--vs-ink);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-h3 .fa { color: var(--pd-accent); }

.pd-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pd-accent);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    padding: 2px 9px;
    border-radius: 999px;
    margin-left: auto;
}

.pd-desc {
    color: var(--vs-ink-soft);
    line-height: 1.75;
    font-size: 0.98rem;
    margin: 0;
}

.pd-desc-muted {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--vs-line);
    font-size: 0.9rem;
    color: var(--vs-ink-faint);
}
.pd-desc-muted .fa { color: var(--pd-accent); margin-right: 6px; }
.pd-desc-muted strong { color: var(--vs-ink); }

/* Key features */
.pd-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.pd-features li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 16px;
    border-radius: var(--vs-radius-sm);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--vs-line);
    transition: transform 0.3s var(--vs-ease), border-color 0.3s var(--vs-ease),
        background-color 0.3s var(--vs-ease);
}
.pd-features li:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: color-mix(in srgb, var(--brand) 42%, transparent);
    box-shadow: var(--vs-shadow);
}

.pd-feature-num {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--pd-accent);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    border-radius: 8px;
    padding: 4px 8px;
    line-height: 1.2;
}

.pd-feature-text {
    color: var(--vs-ink-soft);
    font-size: 0.94rem;
    line-height: 1.55;
}

/* Tech chips */
.pd-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip {
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--pd-accent);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    padding: 7px 13px;
    border-radius: 9px;
    white-space: nowrap;
    transition: transform 0.25s var(--vs-ease), background-color 0.25s var(--vs-ease);
}
.pd-chip:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--brand) 20%, transparent);
}

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pd-actions .vs-btn { width: 100%; }

/* --------------------------- Facts side rail --------------------------- */
.pd-aside {
    position: sticky;
    top: 100px;
}

.pd-fact-list { margin: 0; }

.pd-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--vs-line);
}
.pd-fact:last-child { border-bottom: 0; }

.pd-fact dt {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vs-ink-faint);
    flex-shrink: 0;
}

.pd-fact dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--vs-ink);
    text-align: right;
    word-break: break-word;
}

.pd-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pd-accent);
    font-weight: 700;
    transition: color 0.25s var(--vs-ease);
}
.pd-link:hover { color: var(--vs-ink); }
.pd-link .fa { font-size: 0.78rem; }

.pd-tags {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--vs-line);
}
.pd-tags-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vs-ink-faint);
    margin-bottom: 10px;
}
.pd-tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pd-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vs-ink-soft);
    background: rgba(10, 22, 40, 0.04);
    border: 1px solid var(--vs-line);
    padding: 5px 11px;
    border-radius: 999px;
}

.pd-cta-card {
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--brand) 14%, white),
        rgba(255, 255, 255, 0.7));
    border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}

/* ---------------------------- Mobile panel ----------------------------- */
.pd-mobile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.pd-h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--vs-ink);
    margin: 0 0 8px;
}

.pd-lead {
    color: var(--vs-ink-soft);
    font-size: 1rem;
    margin: 0;
}

.pd-platforms { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-platform {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--vs-ink);
    background: var(--vs-glass-bg);
    border: 1px solid var(--vs-line);
    padding: 9px 16px;
    border-radius: 999px;
}
.pd-platform.is-android .fa { color: #1f9d55; }
.pd-platform.is-ios .fa { color: var(--vs-ink); }

.pd-app {
    padding: 26px;
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
    background: var(--vs-glass-bg);
    border: 1px solid var(--vs-glass-border);
    -webkit-backdrop-filter: blur(var(--vs-glass-blur));
    backdrop-filter: blur(var(--vs-glass-blur));
}
.pd-app + .pd-app { margin-top: 22px; }

.pd-app-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.pd-app-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vs-ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-app-index {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    background: var(--brand-dark);
    border-radius: 9px;
    padding: 5px 10px;
    letter-spacing: 0.04em;
}

.pd-app-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vs-ink-faint);
}
.pd-app-count .fa { color: var(--pd-accent); }

.pd-shots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 22px;
}

/* Phone frame — bezel + notch around each screenshot */
.pd-phone {
    position: relative;
    display: block;
    width: 100%;
    appearance: none;
    cursor: zoom-in;
    padding: 10px;
    border-radius: 30px;
    background: linear-gradient(160deg, #1a2129, #05080a);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 40px -18px rgba(10, 22, 40, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: transform 0.4s var(--vs-ease), box-shadow 0.4s var(--vs-ease),
        border-color 0.4s var(--vs-ease);
}
.pd-phone:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--brand-light) 55%, transparent);
    box-shadow: 0 30px 50px -20px rgba(10, 22, 40, 0.6),
        0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent);
}

.pd-phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 42%;
    height: 15px;
    border-radius: 0 0 12px 12px;
    background: #05080a;
    z-index: 2;
}

.pd-phone-screen {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    background: #070f16;
    aspect-ratio: 9 / 16;
}
.pd-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-phone-zoom {
    position: absolute;
    inset: 10px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 14, 0.55);
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.35s var(--vs-ease);
}
.pd-phone:hover .pd-phone-zoom,
.pd-phone:focus-visible .pd-phone-zoom { opacity: 1; }

/* "As uploaded" — the admin's other choice for this project. No bezel, no
   notch and no 9:16 crop: the screenshot keeps its own proportions, which is
   what a tablet or desktop capture needs. Same button either way, so the
   lightbox and the keyboard path are untouched. */
.pd-shots--plain {
    /* Five across. A screenshot here is a glance, not a poster: narrower tiles
       make each one shorter, so a gallery stays one or two rows instead of a
       column of billboards. Fixed counts rather than auto-fill, because the
       row has to come out at five whatever the screenshots' own width is. */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}
@media (max-width: 1099px) {
    .pd-shots--plain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
    .pd-shots--plain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pd-phone.is-plain {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border-color: var(--vs-line);
    box-shadow: var(--vs-shadow);
}
.pd-phone.is-plain .pd-phone-notch { display: none; }
.pd-phone.is-plain .pd-phone-screen {
    aspect-ratio: auto;
    border-radius: 16px;
}
.pd-phone.is-plain .pd-phone-screen img {
    height: auto;
    object-fit: contain;
}
.pd-phone.is-plain .pd-phone-zoom {
    inset: 0;
    border-radius: 16px;
}

.pd-empty {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--vs-ink-faint);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------------------------- Related grid ----------------------------- */
.pd-related { margin-top: 72px; }

.pd-related-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}
.pd-related-head .pd-h2 { margin: 0; }

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.pd-related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
    background: var(--vs-glass-bg);
    border: 1px solid var(--vs-glass-border);
    -webkit-backdrop-filter: blur(var(--vs-glass-blur));
    backdrop-filter: blur(var(--vs-glass-blur));
    transition: transform 0.35s var(--vs-ease), border-color 0.35s var(--vs-ease),
        background-color 0.35s var(--vs-ease);
}
.pd-related-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: var(--vs-shadow-hover);
    border-color: color-mix(in srgb, var(--brand) 40%, transparent);
}

.pd-related-media {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, black));
    color: #fff;
    font-size: 1.5rem;
}
.pd-related-media img { width: 100%; height: 100%; object-fit: cover; }

/* A logo is a mark, not a photograph: it is fitted whole rather than cropped,
   and sits on a light plate because logos are drawn for light surfaces — the
   ones in this catalogue run dark and would disappear on the brand tile. The
   icon fallback above is drawn light, so it keeps that tile. */
.pd-related-media--logo {
    background: #fff;
    border: 1px solid var(--vs-line);
}
.pd-related-media--logo img {
    object-fit: contain;
    /* Tight, because these marks are wide — 1.5:1 up to 3.8:1 — and a square
       tile gives a wide one its height from its width. Every pixel of padding
       costs more than it does on a square mark. */
    padding: 8px;
}

.pd-related-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.pd-related-cat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pd-accent);
}

.pd-related-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vs-ink);
    line-height: 1.25;
}

.pd-related-tag {
    font-size: 0.85rem;
    color: var(--vs-ink-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-related-go {
    margin-left: auto;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pd-accent);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    transition: transform 0.35s var(--vs-ease), background-color 0.35s var(--vs-ease);
}
.pd-related-card:hover .pd-related-go {
    transform: translateX(4px);
    background: color-mix(in srgb, var(--brand) 24%, transparent);
}

/* ----------------------------- Closing band ----------------------------
   Navy island like the site's CTA band: tokens re-declared inverted. */
.pd-band {
    --vs-ink: #ffffff;
    --vs-ink-soft: rgba(255, 255, 255, 0.78);
    --vs-ink-faint: rgba(255, 255, 255, 0.62);
    --vs-line: rgba(255, 255, 255, 0.12);
    --vs-glass-bg: rgba(255, 255, 255, 0.07);
    --vs-glass-bg-strong: rgba(255, 255, 255, 0.13);
    --vs-glass-border: rgba(255, 255, 255, 0.16);
    --vs-btn-bg: #ffffff;
    --vs-btn-fg: var(--vs-navy);
    margin-top: 64px;
    padding: 40px 44px;
    border-radius: var(--vs-radius-lg);
    color: var(--vs-ink);
    box-shadow: 0 30px 60px -36px rgba(10, 22, 40, 0.6);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(90% 160% at 0% 0%, color-mix(in srgb, var(--brand) 45%, transparent) 0%, transparent 60%),
        var(--vs-navy);
    border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--vs-glass-border));
    -webkit-backdrop-filter: blur(var(--vs-glass-blur));
    backdrop-filter: blur(var(--vs-glass-blur));
}

.pd-band-title {
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--vs-ink);
    margin: 0 0 6px;
}
.pd-band-sub { color: var(--vs-ink-soft); margin: 0; }
.pd-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* .pd-band is not one of theme.css's dark islands, so give its ghost button the dark-island look */
.pd-band .vs-btn-ghost {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
    box-shadow: none;
}
.pd-band .vs-btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.6); }

/* ------------------------------ Lightbox ------------------------------- */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 40px 20px;
    background: rgba(5, 8, 10, 0.90);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: pd-fade 0.3s var(--vs-ease);
}
.pd-lightbox[hidden] { display: none; }

body.pd-lb-open { overflow: hidden; }

.pd-lb-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-height: 100%;
}
.pd-lb-figure img {
    max-height: 78vh;
    max-width: min(420px, 86vw);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
    object-fit: contain;
}
.pd-lb-figure figcaption {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--vs-ink-soft);
}

.pd-lb-nav,
.pd-lb-close {
    appearance: none;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: background-color 0.25s var(--vs-ease), transform 0.25s var(--vs-ease);
}
.pd-lb-nav:hover,
.pd-lb-close:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.06); }

.pd-lb-close {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 1rem;
}

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 1024px) {
    .pd-grid { grid-template-columns: 1fr; }
    .pd-aside { position: static; }
    .pd-actions .vs-btn { width: auto; }
}

@media (max-width: 860px) {
    .pd-hero-inner { padding: 34px 26px 28px; }
    .pd-stat { padding: 18px 20px; }
    .pd-band { padding: 32px 26px; }
}

@media (max-width: 600px) {
    .pd-section { padding: 96px 0 72px; }
    .pd-hero { border-radius: 20px; }
    .pd-hero-inner { padding: 28px 20px 24px; }
    .pd-logo { width: 148px; height: 80px; padding: 12px 14px; }
    .pd-stats { grid-template-columns: repeat(2, 1fr); }
    .pd-stat { border-right: 0; border-top: 1px solid var(--vs-glass-border); }
    /* Two tiles per row here, so a panel anchors to its own column's outer
       edge -- otherwise it spills past the hero, which clips its overflow.
       The .pd-stats prefix is what lets these beat the desktop rules. */
    .pd-stats .pd-stat .pd-stat-pop {
        width: min(340px, calc(100vw - 44px));
        max-height: 260px;
    }
    .pd-stats .pd-stat:nth-child(odd) .pd-stat-pop { left: 0; right: auto; }
    .pd-stats .pd-stat:nth-child(even) .pd-stat-pop { left: auto; right: 0; }
    .pd-stats .pd-stat:nth-child(odd) .pd-stat-pop::after { left: 26px; right: auto; }
    .pd-stats .pd-stat:nth-child(even) .pd-stat-pop::after { left: auto; right: 26px; }
    .pd-tabs { display: flex; width: 100%; }
    .pd-tab { flex: 1; justify-content: center; padding: 11px 12px; }
    .pd-card, .pd-app { padding: 20px; }
    .pd-features { grid-template-columns: 1fr; }
    .pd-shots { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
    .pd-shots--plain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pd-fact { flex-direction: column; align-items: flex-start; gap: 3px; }
    .pd-fact dd { text-align: left; }
    .pd-related-card { padding: 14px; gap: 13px; }
    .pd-related-media { width: 62px; height: 62px; }
    .pd-lightbox { gap: 8px; padding: 70px 12px 30px; }
    .pd-lb-nav { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-panel.is-active,
    .pd-lightbox { animation: none; }
    .pd-dot { animation: none; }
    .pd-phone,
    .pd-features li,
    .pd-related-card,
    .pd-chip,
    .pd-cover img { transition: none; }
    .pd-phone:hover,
    .pd-features li:hover,
    .pd-related-card:hover { transform: none; }
}
