/* Project detail pages (projects/*.html). Builds on home.css for the navbar, fonts and glass buttons. */
.pd {
    width: min(1080px, 84%);
    margin: 0 auto;
    padding: 1rem 0 5rem;
}

.pd-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pd-back:hover {
    color: #ffffff;
}

.pd-back svg {
    width: 14px;
    height: 14px;
}

/* Header: title block beside the project image */
.pd-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    align-items: center;
    gap: 3rem;
    margin: 2rem 0 4rem;
}

.pd-eyebrow {
    margin-bottom: 0.9rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.pd-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    overflow-wrap: break-word;
}

.pd-summary {
    max-width: 560px;
    margin-top: 1.1rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.pd-actions .glass-btn {
    height: 2.6rem;
    padding: 0 1.15rem;
    gap: 0.45rem;
    font-size: 0.85rem;
}

.pd-actions .glass-btn svg {
    width: 12px;
    height: 12px;
}

.pd-media {
    position: relative;
    aspect-ratio: 5 / 6;
    border-radius: 28px;
    overflow: hidden;
    background: #111111;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}

.pd-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Same hairline rim as the project cards */
.pd-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Body: write-up beside a sticky facts card */
.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 3.5rem;
}

.pd-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 680px;
}

.pd-content h2 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.pd-content p,
.pd-content li {
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
}

.pd-content p + p {
    margin-top: 0.9rem;
}

.pd-content strong {
    font-weight: 500;
    color: #ffffff;
}

.pd-content a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease;
}

.pd-content a:hover {
    border-bottom-color: #ffffff;
}

.pd-content ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.pd-content ul:not(.pd-related) li {
    position: relative;
    padding-left: 1.1rem;
}

.pd-content ul:not(.pd-related) li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

/* Small label above a section heading, e.g. "01 Create" */
.pd-kicker {
    display: block;
    margin-bottom: 0.35rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* Row of lifecycle stages (PayGoTickets overview) */
.pd-content .pd-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
    list-style: none;
}

.pd-content .pd-stages li {
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.pd-stages li span {
    margin-right: 0.4rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Numbered steps */
.pd-content .pd-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    counter-reset: step;
}

.pd-steps li {
    position: relative;
    padding-left: 2rem;
    counter-increment: step;
}

.pd-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.2em;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}

.pd-steps + p {
    margin-top: 1rem;
}

/* Linked list of related projects (Shrey's Studio page) */
.pd-related {
    gap: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pd-related a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 400;
}

.pd-related a span {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    text-align: right;
}

.pd-related a:hover span {
    color: rgba(255, 255, 255, 0.8);
}

.pd-video {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #111111;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pd-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pd-facts {
    position: sticky;
    top: 6rem;
    padding: 1.5rem 1.6rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pd-facts dl {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.pd-facts dt {
    margin-bottom: 0.3rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.pd-facts dd {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffffff;
}

.pd-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
    list-style: none;
}

.pd-stack li {
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
}

.pd-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
}

.pd-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s ease;
}

.pd-links a:hover {
    border-bottom-color: #ffffff;
}

.pd-links svg {
    width: 11px;
    height: 11px;
    opacity: 0.7;
}

/* Footer link to the next project */
.pd-next {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

.pd-next-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.pd-next-name {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.9rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pd-next-name svg {
    width: 0.8em;
    height: 0.8em;
    transition: translate 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-next:hover .pd-next-name svg {
    translate: 4px 0;
}

@media (max-width: 900px) {
    .pd-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .pd-facts {
        position: static;
    }
}

@media (max-width: 768px) {
    .pd {
        width: 88%;
    }

    .pd-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        margin: 1.5rem 0 3rem;
    }

    .pd-media {
        order: -1;
        width: min(100%, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-next:hover .pd-next-name svg {
        translate: none;
    }
}
