/* ============================================================
   NORBURN DESIGN - about.css
   Page-specific styles for about.html
   Requires: ../css/style.css (base variables & components)
   ============================================================ */


/* ── Page Hero (dark, matches process page pattern) ────────── */
.page-hero {
    min-height: 56vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: calc(var(--nav-height) + 70px) 32px 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 10% 110%, rgba(199,50,0,0.20) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 90% 0%,   rgba(199,50,0,0.10) 0%, transparent 55%);
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.page-hero__title {
    color: var(--white);
    margin-bottom: 20px;
}

.page-hero__sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

.page-hero__scroll-hint {
    margin-top: 48px;
    font-size: 1.4rem;
    color: var(--brand);
    animation: bounce 2s ease infinite;
    padding-bottom: 28px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0);   opacity: 0.6; }
    50%       { transform: translateY(8px); opacity: 1;  }
}


/* ── Bio Strip ─────────────────────────────────────────────── */
.bio-strip {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 70px 40px 80px;
}

.bio-strip__inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.bio-strip__text {
    /*flex: 1 1 480px;*/
}

.bio-strip__text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    margin-bottom: 18px;
}

.bio-strip__text p:last-child {
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.bio-strip__stats {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 4px;
}

.bio-stat {
    border-left: 3px solid var(--brand);
    padding-left: 20px;
}

.bio-stat__number {
    display: block;
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.bio-stat__label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ── Section heading overrides for about page ──────────────── */
.about-cards .subtitle-heading,
.skills-section .subtitle-heading {
    margin-top: 70px;
    margin-bottom: 40px;
}

.about-cards .subtitle-heading p,
.skills-section .subtitle-heading p {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 500px;
}


/* ── Video Gallery Grid ────────────────────────────────────── */
.video-gallery {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 30px 60px;
}

.item-container {
    flex: 1 1 300px;
    max-width: 480px;
    min-height: 360px;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    animation: cardReveal 0.5s ease forwards;
    animation-timeline: view();
    animation-range: 60px 38%;
}

@keyframes cardReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Inner clickable wrapper */
.vidbg-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--brand);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.vidbg-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s ease;
}

.vidbg-container:hover img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Gradient overlay - always present, deepens on hover */
.vidbg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.25) 55%,
        rgba(0,0,0,0.08) 100%
    );
    z-index: 1;
    transition: opacity 0.35s ease;
}

/* Card overlay - sits above gradient */
.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Play button - centred, fades out on hover to reveal text */
.card-overlay__play {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 12px;
}

.card-overlay__play svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.vidbg-container:hover .card-overlay__play {
    opacity: 0;
    transform: scale(0.85);
}

/* Text content */
.card-overlay__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vidbg-container:hover .card-overlay__content {
    opacity: 1;
    transform: translateY(0);
}

.card-overlay__tag {
    display: inline-block;
    background-color: var(--brand);
    color: var(--white);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 9px;
}

.card-overlay__content p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.55;
    margin: 0;
}






/* Card label - always-visible title at bottom (replaces hover for labelling) */
.card-overlay__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 18px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.vidbg-container:hover .card-overlay__label {
    opacity: 0;
}

.card-overlay__label-title {
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.90);
    line-height: 1.2;
}

.card-overlay__label-type {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(199,50,0,0.90);
    flex-shrink: 0;
}

/* Focus style for keyboard users */
.vidbg-container:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}


/* ── Philosophy Quote Section ──────────────────────────────── */
.philosophy {
    background-color: var(--ink);
    padding: 90px 40px;
    text-align: center;
}

.philosophy__inner {
    max-width: 760px;
    margin: 0 auto;
}

.philosophy__quote {
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 36px;
    position: relative;
    font-style: normal;
}

.philosophy__mark {
    color: var(--brand);
    font-size: 1.4em;
    line-height: 0;
    vertical-align: -0.25em;
    margin-right: 4px;
}

.philosophy__body {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.85;
    max-width: 640px;
    margin: 0 auto;
}


/* ── Skills Grid ───────────────────────────────────────────── */
.skills-section {
    padding: 0 30px 80px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2px;
    max-width: 1060px;
    margin: 0 auto;
    border: 2px solid rgba(199,50,0,0.15);
    border-radius: 4px;
    overflow: hidden;
}

.skill-item {
    padding: 36px 32px;
    background-color: var(--white);
    border: 1px solid rgba(199,50,0,0.08);
    transition: background-color 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: cardReveal 0.5s ease forwards;
    animation-timeline: view();
    animation-range: 60px 40%;
}

.skill-item:hover {
    background-color: #fdf5f2;
}

.skill-item__icon {
    display: block;
    font-size: 1.4rem;
    color: var(--brand);
    margin-bottom: 14px;
    line-height: 1;
}

.skill-item h3 {
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 10px;
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.skill-item p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.65;
}


/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,12,0.97);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    touch-action: none;
    flex-direction: column;
}

.lightbox-content {
    width: min(900px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.lightbox-content video {
    width: 100%;
    display: block;
    border-radius: 3px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.info-panel {
    width: 100%;
    padding: 18px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#videoTitle {
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--white);
    margin: 0;
}

#videoCaption {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.5;
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid rgba(255,255,255,0.15);
    border-top: 3px solid var(--brand);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 0.9s linear infinite;
    position: absolute;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation buttons */
button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.06);
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(199,50,0,0.5);
}

.chev-prev-icon-cross line,
.chev-next-icon-cross line {
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    background-color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 0 3px;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: var(--brand-dark);
}

.close-icon-cross line {
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: transform 0.25s ease;
    transform-origin: center;
}

.close-btn:hover .close-icon-cross .line-1 { transform: rotate(90deg); }
.close-btn:hover .close-icon-cross .line-2 { transform: rotate(90deg); }


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {

    .bio-strip__inner {
        flex-direction: column;
        gap: 48px;
    }

    .bio-strip__stats {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 28px;
        display: block;
    }

    .bio-stat {
        /*      flex: 1 1 160px;
  */
        margin-bottom: 20px;
    }
}

@media (max-width: 720px) {

    .page-hero {
        min-height: 60vh;
        padding-top: calc(var(--nav-height) + 44px);
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .page-hero__sub {
        font-size: 0.95rem;
    }

    .bio-strip {
        padding: 52px 24px 60px;
    }

    .item-container {
        flex: 1 1 100%;
        max-width: 100%;
        min-height: 300px;
    }

    .vidbg-container {
        min-height: 300px;
    }

    /* On mobile, always show card text (no hover state) */
    .card-overlay__content {
        opacity: 1;
        transform: translateY(0);
    }

    .card-overlay__play {
        width: 52px;
        height: 52px;
    }

    .philosophy {
        padding: 60px 24px;
    }

    .philosophy__quote {
        font-size: 1.7rem;
    }

    .skills-section {
        padding: 0 16px 60px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .prev-btn { left: 8px; }
    .next-btn { right: 8px; }

    .lightbox-content {
        width: 95vw;
    }
}
