/* ============================================================
   PROLIFIC VA — work.css
   Page-specific styles for work.html
   Extends style.css — all base tokens (fonts, colors, nav,
   modal, whatsapp, stars) come from there.
   ============================================================ */

/* Work page uses a simpler body gradient — full dark top,
   transitions to mid-slate for the cards, then light for CTA */
body.work-page {
    background: linear-gradient(
        180deg,
        #0a0a0f  0%,
        #12121a  6%,
        #1a1a25 14%,
        #252535 28%,
        #3a3a4a 50%,
        #52536a 68%,
        #7393B3 84%,
        #b8c4d6 94%,
        #e8eef5 100%
    );
}

/* ── Work page nav overrides ── */

/* Remove hamburger toggle from work page nav entirely */
.navbar-work .nav-toggle { display: none !important; }

/* Logo with sub-label stacked beneath */
.logo-work {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
    line-height: 1;
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.45);
    transition: color 0.25s ease;
}

.logo-work:hover .logo-sub {
    color: rgba(212, 175, 55, 0.7);
}

/* Single Home link — right side */
.nav-home-link {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(212, 175, 55, 0.72);
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-home-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #f4c84b;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-home-link:hover {
    color: #f4c84b;
    text-shadow: 0 0 8px rgba(244, 200, 75, 0.35);
}

.nav-home-link:hover::after {
    transform: scaleX(1);
}
.work-hero {
    position: relative;
    min-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Bottom padding reduced — first section overlaps via negative margin */
    padding: 10rem 5vw 5rem;
    overflow: visible;   /* allow card peek to overflow downward */
    text-align: center;
    /* Vignette: dims centre stars so the title is the brightest thing */
    isolation: isolate;
}

/* Radial mask dims stars toward the centre where the headline sits */
.work-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        ellipse 70% 60% at 50% 40%,
        rgba(6, 6, 12, 0.52) 0%,
        rgba(6, 6, 12, 0.18) 55%,
        transparent 100%
    );
}

.work-hero-content {
    position: relative;
    z-index: 3;
    max-width: 640px;
}

.work-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: #ffb803;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.work-hero-sub {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: rgba(255, 255, 255, 0.55);
    max-width: 46ch;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

/* Scroll nudge CTA */
.work-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(212, 175, 55, 0.7);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease;
    animation: heroCtaNudge 2.2s ease-in-out infinite;
}

.work-hero-cta:hover {
    color: #f5c842;
    animation: none;
}

.work-hero-cta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.work-hero-cta:hover svg {
    transform: translateY(3px);
}

@keyframes heroCtaNudge {
    0%, 100% { opacity: 0.7;  transform: translateY(0); }
    50%       { opacity: 1;    transform: translateY(4px); }
}

/* Stars inside hero sit below the vignette overlay */
.work-hero .stars,
.work-hero .shooting-stars {
    z-index: 0;
}
.work-hero .noise-overlay {
    z-index: 0;
}

/* ── Main content wrapper ── */
.work-main {
    width: 100%;
    overflow-x: clip;
}

/* ── Section layout ── */
.work-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 5vw 4rem;
}

/* First section overlaps the hero bottom by 60px — card peek effect */
.work-section:first-of-type {
    margin-top: -60px;
    padding-top: 0;
    position: relative;
    z-index: 4;
}

/* Section label: stacked, not inline */
.work-section-label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2.5rem;
}

.section-tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 400;
    color: #ffb803;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-desc {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    line-height: 1.5 !important;
    max-width: 52ch;
    margin: 0;
}

/* ── Divider between sections ── */
.work-section-divider {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5vw;
}

.work-section-divider span {
    display: block;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.3) 20%,
        rgba(212, 175, 55, 0.3) 80%,
        transparent
    );
}

/* ════════════════════════════════════════════
   WORK CARDS — shared base
   ════════════════════════════════════════════ */
.work-card {
    background: rgba(14, 15, 22, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(48px);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.work-card.revealed {
    opacity: 1;
    transform: translateY(0);
    /* timing controlled by JS via --reveal-delay */
    transition:
        opacity   0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.work-card:hover {
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}

/* Prevent hover fighting with reveal animation before card is in */
.work-card:not(.revealed):hover {
    transform: none;
}

/* Image container */
.work-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0e18;
    flex-shrink: 0;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.work-card:hover .work-card-image img {
    transform: scale(1.04);
}

/* Dark background for UI screenshots (POS, etc.) */
.work-card-image-dark {
    background: #0a0a14;
}

.work-card-image-dark img {
    object-fit: contain;
    padding: 1.5rem;
}

/* Card body */
.work-card-body {
    padding: 2.25rem 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.work-card-body .project-category {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(224, 192, 112, 0.7);
    margin-bottom: 0.6rem;
    opacity: 1;
}

.work-card-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.work-card-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.work-card-pitch {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
    color: #f5c842;
    line-height: 1.45 !important;
    margin-bottom: 1.5rem !important;
    flex: 1;
}

/* Feature checklist */
.work-card-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1.75rem;
}

.work-card-features li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.work-card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f5c842;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Link */
.work-card-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f5c842;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.25s ease, transform 0.25s ease;
    align-self: flex-start;
}

.work-card-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.work-card-link-muted {
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

/* ════════════════════════════════════════════
   HERO CARD — KweliAI, full width horizontal
   ════════════════════════════════════════════ */
.work-card-hero {
    flex-direction: row;
    margin-bottom: 2rem;
    min-height: 400px;
}

.work-card-hero .work-card-image {
    width: 55%;
    aspect-ratio: unset;
    flex-shrink: 0;
}

.work-card-hero .work-card-body {
    width: 45%;
    padding: 3rem 3rem 2.75rem;
    justify-content: center;
}

.work-card-hero .work-card-body h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

@media (max-width: 900px) {
    .work-card-hero {
        flex-direction: column;
    }
    .work-card-hero .work-card-image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .work-card-hero .work-card-body {
        width: 100%;
        padding: 2.25rem;
    }
}

/* ════════════════════════════════════════════
   PAIR layout (2 equal cards)
   ════════════════════════════════════════════ */
.work-card-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .work-card-pair {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════
   TRIO layout (3 equal cards)
   ════════════════════════════════════════════ */
.work-card-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .work-card-trio {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .work-card-trio {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════
   FOOTER CTA
   ════════════════════════════════════════════ */
.work-cta-footer {
    padding: 10rem 5vw 6rem;
    text-align: center;
    position: relative;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(253, 250, 243, 0.08) 40%,
        #fdfaf3 70%,
        #fff8e1 100%
    );
}

.work-cta-content {
    max-width: 560px;
    margin: 0 auto 4rem;
}

.work-cta-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    color: #001f3f;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.work-cta-content p {
    font-size: 1.1rem !important;
    color: rgba(0, 31, 63, 0.6);
    line-height: 1.7 !important;
    margin-bottom: 2.5rem !important;
    max-width: 44ch;
    margin-left: auto;
    margin-right: auto;
}

.work-cta-meta {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.work-cta-meta .slogan {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #0d2b5e;
    font-style: italic;
    opacity: 0.7;
    margin: 0;
}

.work-cta-meta .copyright {
    font-size: 0.85rem;
    color: rgba(26, 58, 110, 0.55);
    margin: 0;
}

.work-cta-meta .copyright a {
    color: rgba(26, 58, 110, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.work-cta-meta .copyright a:hover {
    color: #b8860b;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .work-hero { min-height: 42vh; padding: 8rem 5vw 4rem; }
    .work-section:first-of-type { margin-top: -40px; }
    .work-section { padding: 4rem 5vw 3rem; }
    .work-section-label { gap: 0.75rem; }
    .work-card-body { padding: 1.75rem 1.5rem 1.5rem; }
    .work-card-features { grid-template-columns: 1fr 1fr; }
    .work-cta-footer { padding: 7rem 5vw 5rem; }
}